@hairy/utils 1.47.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js DELETED
@@ -1,4006 +0,0 @@
1
- // src/browser/file.ts
2
- function openFilePicker(option = {}) {
3
- const { multiple = true, accept } = option;
4
- return new Promise((resolve, reject) => {
5
- const inputElement = document.createElement("input");
6
- inputElement.type = "file";
7
- inputElement.multiple = multiple;
8
- accept && (inputElement.accept = accept);
9
- inputElement.click();
10
- const timer = setTimeout(reject, 20 * 1e3);
11
- inputElement.addEventListener("change", (event) => {
12
- const files = event.target.files;
13
- if (files) {
14
- resolve(Object.values(files));
15
- clearTimeout(timer);
16
- }
17
- });
18
- });
19
- }
20
- var showOpenFilePicker = openFilePicker;
21
- function openImagePicker(options = {}) {
22
- const { multiple = true } = options;
23
- return openFilePicker({ multiple, accept: "image/jpeg,image/x-png,image/gif" });
24
- }
25
- var selectImages = openImagePicker;
26
- var showOpenImagePicker = openImagePicker;
27
- function downloadBlobFile(data, name) {
28
- const blob = new Blob([data]);
29
- const link = document.createElement("a");
30
- const url = window.URL.createObjectURL(blob);
31
- link.href = url;
32
- link.download = name;
33
- link.click();
34
- }
35
- function downloadUrlFile(url, name) {
36
- const a = document.createElement("a");
37
- name && (a.download = name);
38
- a.href = url;
39
- a.click();
40
- }
41
- var downloadNetworkFile = downloadUrlFile;
42
- function readFileReader(formType, file) {
43
- return new Promise((resolve, reject) => {
44
- if (typeof FileReader === "undefined") {
45
- console.warn("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u4F7F\u7528 FileReader Api");
46
- reject();
47
- }
48
- const reader = new FileReader();
49
- reader[formType](file);
50
- reader.onloadend = function() {
51
- isNull(this.result) ? reject() : resolve(this.result);
52
- };
53
- });
54
- }
55
-
56
- // src/browser/util.ts
57
- function redirectTo(url, target = "_blank") {
58
- const link = document.createElement("a");
59
- link.href = url;
60
- link.target = target;
61
- link.click();
62
- link.remove();
63
- }
64
- function dialsPhone(phoneNumber) {
65
- const aTag = document.createElement("a");
66
- aTag.setAttribute("href", `tel:${phoneNumber}`);
67
- aTag.setAttribute("target", "_blank");
68
- aTag.click();
69
- }
70
- function on(obj, ...args) {
71
- if (obj && obj.addEventListener)
72
- obj.addEventListener(...args);
73
- }
74
- function off(obj, ...args) {
75
- if (obj && obj.removeEventListener)
76
- obj.removeEventListener(...args);
77
- }
78
-
79
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
80
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
81
- var freeGlobal_default = freeGlobal;
82
-
83
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
84
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
85
- var root = freeGlobal_default || freeSelf || Function("return this")();
86
- var root_default = root;
87
-
88
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
89
- var Symbol = root_default.Symbol;
90
- var Symbol_default = Symbol;
91
-
92
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
93
- var objectProto = Object.prototype;
94
- var hasOwnProperty = objectProto.hasOwnProperty;
95
- var nativeObjectToString = objectProto.toString;
96
- var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
97
- function getRawTag(value) {
98
- var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
99
- try {
100
- value[symToStringTag] = void 0;
101
- var unmasked = true;
102
- } catch (e) {
103
- }
104
- var result = nativeObjectToString.call(value);
105
- if (unmasked) {
106
- if (isOwn) {
107
- value[symToStringTag] = tag;
108
- } else {
109
- delete value[symToStringTag];
110
- }
111
- }
112
- return result;
113
- }
114
- var getRawTag_default = getRawTag;
115
-
116
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
117
- var objectProto2 = Object.prototype;
118
- var nativeObjectToString2 = objectProto2.toString;
119
- function objectToString(value) {
120
- return nativeObjectToString2.call(value);
121
- }
122
- var objectToString_default = objectToString;
123
-
124
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
125
- var nullTag = "[object Null]";
126
- var undefinedTag = "[object Undefined]";
127
- var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
128
- function baseGetTag(value) {
129
- if (value == null) {
130
- return value === void 0 ? undefinedTag : nullTag;
131
- }
132
- return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
133
- }
134
- var baseGetTag_default = baseGetTag;
135
-
136
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
137
- function isObjectLike(value) {
138
- return value != null && typeof value == "object";
139
- }
140
- var isObjectLike_default = isObjectLike;
141
-
142
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js
143
- var symbolTag = "[object Symbol]";
144
- function isSymbol(value) {
145
- return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
146
- }
147
- var isSymbol_default = isSymbol;
148
-
149
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js
150
- function arrayMap(array, iteratee) {
151
- var index = -1, length = array == null ? 0 : array.length, result = Array(length);
152
- while (++index < length) {
153
- result[index] = iteratee(array[index], index, array);
154
- }
155
- return result;
156
- }
157
- var arrayMap_default = arrayMap;
158
-
159
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
160
- var isArray = Array.isArray;
161
- var isArray_default = isArray;
162
-
163
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js
164
- var INFINITY = 1 / 0;
165
- var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
166
- var symbolToString = symbolProto ? symbolProto.toString : void 0;
167
- function baseToString(value) {
168
- if (typeof value == "string") {
169
- return value;
170
- }
171
- if (isArray_default(value)) {
172
- return arrayMap_default(value, baseToString) + "";
173
- }
174
- if (isSymbol_default(value)) {
175
- return symbolToString ? symbolToString.call(value) : "";
176
- }
177
- var result = value + "";
178
- return result == "0" && 1 / value == -INFINITY ? "-0" : result;
179
- }
180
- var baseToString_default = baseToString;
181
-
182
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js
183
- var reWhitespace = /\s/;
184
- function trimmedEndIndex(string) {
185
- var index = string.length;
186
- while (index-- && reWhitespace.test(string.charAt(index))) {
187
- }
188
- return index;
189
- }
190
- var trimmedEndIndex_default = trimmedEndIndex;
191
-
192
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js
193
- var reTrimStart = /^\s+/;
194
- function baseTrim(string) {
195
- return string ? string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string;
196
- }
197
- var baseTrim_default = baseTrim;
198
-
199
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
200
- function isObject(value) {
201
- var type = typeof value;
202
- return value != null && (type == "object" || type == "function");
203
- }
204
- var isObject_default = isObject;
205
-
206
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js
207
- var NAN = 0 / 0;
208
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
209
- var reIsBinary = /^0b[01]+$/i;
210
- var reIsOctal = /^0o[0-7]+$/i;
211
- var freeParseInt = parseInt;
212
- function toNumber(value) {
213
- if (typeof value == "number") {
214
- return value;
215
- }
216
- if (isSymbol_default(value)) {
217
- return NAN;
218
- }
219
- if (isObject_default(value)) {
220
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
221
- value = isObject_default(other) ? other + "" : other;
222
- }
223
- if (typeof value != "string") {
224
- return value === 0 ? value : +value;
225
- }
226
- value = baseTrim_default(value);
227
- var isBinary = reIsBinary.test(value);
228
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
229
- }
230
- var toNumber_default = toNumber;
231
-
232
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toFinite.js
233
- var INFINITY2 = 1 / 0;
234
- var MAX_INTEGER = 17976931348623157e292;
235
- function toFinite(value) {
236
- if (!value) {
237
- return value === 0 ? value : 0;
238
- }
239
- value = toNumber_default(value);
240
- if (value === INFINITY2 || value === -INFINITY2) {
241
- var sign = value < 0 ? -1 : 1;
242
- return sign * MAX_INTEGER;
243
- }
244
- return value === value ? value : 0;
245
- }
246
- var toFinite_default = toFinite;
247
-
248
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toInteger.js
249
- function toInteger(value) {
250
- var result = toFinite_default(value), remainder = result % 1;
251
- return result === result ? remainder ? result - remainder : result : 0;
252
- }
253
- var toInteger_default = toInteger;
254
-
255
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js
256
- function identity(value) {
257
- return value;
258
- }
259
- var identity_default = identity;
260
-
261
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
262
- var asyncTag = "[object AsyncFunction]";
263
- var funcTag = "[object Function]";
264
- var genTag = "[object GeneratorFunction]";
265
- var proxyTag = "[object Proxy]";
266
- function isFunction(value) {
267
- if (!isObject_default(value)) {
268
- return false;
269
- }
270
- var tag = baseGetTag_default(value);
271
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
272
- }
273
- var isFunction_default = isFunction;
274
-
275
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
276
- var coreJsData = root_default["__core-js_shared__"];
277
- var coreJsData_default = coreJsData;
278
-
279
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js
280
- var maskSrcKey = function() {
281
- var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
282
- return uid ? "Symbol(src)_1." + uid : "";
283
- }();
284
- function isMasked(func) {
285
- return !!maskSrcKey && maskSrcKey in func;
286
- }
287
- var isMasked_default = isMasked;
288
-
289
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js
290
- var funcProto = Function.prototype;
291
- var funcToString = funcProto.toString;
292
- function toSource(func) {
293
- if (func != null) {
294
- try {
295
- return funcToString.call(func);
296
- } catch (e) {
297
- }
298
- try {
299
- return func + "";
300
- } catch (e) {
301
- }
302
- }
303
- return "";
304
- }
305
- var toSource_default = toSource;
306
-
307
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js
308
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
309
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
310
- var funcProto2 = Function.prototype;
311
- var objectProto3 = Object.prototype;
312
- var funcToString2 = funcProto2.toString;
313
- var hasOwnProperty2 = objectProto3.hasOwnProperty;
314
- var reIsNative = RegExp(
315
- "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
316
- );
317
- function baseIsNative(value) {
318
- if (!isObject_default(value) || isMasked_default(value)) {
319
- return false;
320
- }
321
- var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
322
- return pattern.test(toSource_default(value));
323
- }
324
- var baseIsNative_default = baseIsNative;
325
-
326
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js
327
- function getValue(object, key) {
328
- return object == null ? void 0 : object[key];
329
- }
330
- var getValue_default = getValue;
331
-
332
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js
333
- function getNative(object, key) {
334
- var value = getValue_default(object, key);
335
- return baseIsNative_default(value) ? value : void 0;
336
- }
337
- var getNative_default = getNative;
338
-
339
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
340
- var WeakMap = getNative_default(root_default, "WeakMap");
341
- var WeakMap_default = WeakMap;
342
-
343
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
344
- var objectCreate = Object.create;
345
- var baseCreate = /* @__PURE__ */ function() {
346
- function object() {
347
- }
348
- return function(proto) {
349
- if (!isObject_default(proto)) {
350
- return {};
351
- }
352
- if (objectCreate) {
353
- return objectCreate(proto);
354
- }
355
- object.prototype = proto;
356
- var result = new object();
357
- object.prototype = void 0;
358
- return result;
359
- };
360
- }();
361
- var baseCreate_default = baseCreate;
362
-
363
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js
364
- function apply(func, thisArg, args) {
365
- switch (args.length) {
366
- case 0:
367
- return func.call(thisArg);
368
- case 1:
369
- return func.call(thisArg, args[0]);
370
- case 2:
371
- return func.call(thisArg, args[0], args[1]);
372
- case 3:
373
- return func.call(thisArg, args[0], args[1], args[2]);
374
- }
375
- return func.apply(thisArg, args);
376
- }
377
- var apply_default = apply;
378
-
379
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.js
380
- function noop() {
381
- }
382
- var noop_default = noop;
383
-
384
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
385
- function copyArray(source, array) {
386
- var index = -1, length = source.length;
387
- array || (array = Array(length));
388
- while (++index < length) {
389
- array[index] = source[index];
390
- }
391
- return array;
392
- }
393
- var copyArray_default = copyArray;
394
-
395
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js
396
- var HOT_COUNT = 800;
397
- var HOT_SPAN = 16;
398
- var nativeNow = Date.now;
399
- function shortOut(func) {
400
- var count = 0, lastCalled = 0;
401
- return function() {
402
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
403
- lastCalled = stamp;
404
- if (remaining > 0) {
405
- if (++count >= HOT_COUNT) {
406
- return arguments[0];
407
- }
408
- } else {
409
- count = 0;
410
- }
411
- return func.apply(void 0, arguments);
412
- };
413
- }
414
- var shortOut_default = shortOut;
415
-
416
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js
417
- function constant(value) {
418
- return function() {
419
- return value;
420
- };
421
- }
422
- var constant_default = constant;
423
-
424
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
425
- var defineProperty = function() {
426
- try {
427
- var func = getNative_default(Object, "defineProperty");
428
- func({}, "", {});
429
- return func;
430
- } catch (e) {
431
- }
432
- }();
433
- var defineProperty_default = defineProperty;
434
-
435
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js
436
- var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
437
- return defineProperty_default(func, "toString", {
438
- "configurable": true,
439
- "enumerable": false,
440
- "value": constant_default(string),
441
- "writable": true
442
- });
443
- };
444
- var baseSetToString_default = baseSetToString;
445
-
446
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js
447
- var setToString = shortOut_default(baseSetToString_default);
448
- var setToString_default = setToString;
449
-
450
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
451
- function arrayEach(array, iteratee) {
452
- var index = -1, length = array == null ? 0 : array.length;
453
- while (++index < length) {
454
- if (iteratee(array[index], index, array) === false) {
455
- break;
456
- }
457
- }
458
- return array;
459
- }
460
- var arrayEach_default = arrayEach;
461
-
462
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.js
463
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
464
- var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
465
- while (fromRight ? index-- : ++index < length) {
466
- if (predicate(array[index], index, array)) {
467
- return index;
468
- }
469
- }
470
- return -1;
471
- }
472
- var baseFindIndex_default = baseFindIndex;
473
-
474
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.js
475
- function baseIsNaN(value) {
476
- return value !== value;
477
- }
478
- var baseIsNaN_default = baseIsNaN;
479
-
480
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.js
481
- function strictIndexOf(array, value, fromIndex) {
482
- var index = fromIndex - 1, length = array.length;
483
- while (++index < length) {
484
- if (array[index] === value) {
485
- return index;
486
- }
487
- }
488
- return -1;
489
- }
490
- var strictIndexOf_default = strictIndexOf;
491
-
492
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.js
493
- function baseIndexOf(array, value, fromIndex) {
494
- return value === value ? strictIndexOf_default(array, value, fromIndex) : baseFindIndex_default(array, baseIsNaN_default, fromIndex);
495
- }
496
- var baseIndexOf_default = baseIndexOf;
497
-
498
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.js
499
- function arrayIncludes(array, value) {
500
- var length = array == null ? 0 : array.length;
501
- return !!length && baseIndexOf_default(array, value, 0) > -1;
502
- }
503
- var arrayIncludes_default = arrayIncludes;
504
-
505
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
506
- var MAX_SAFE_INTEGER = 9007199254740991;
507
- var reIsUint = /^(?:0|[1-9]\d*)$/;
508
- function isIndex(value, length) {
509
- var type = typeof value;
510
- length = length == null ? MAX_SAFE_INTEGER : length;
511
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
512
- }
513
- var isIndex_default = isIndex;
514
-
515
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
516
- function baseAssignValue(object, key, value) {
517
- if (key == "__proto__" && defineProperty_default) {
518
- defineProperty_default(object, key, {
519
- "configurable": true,
520
- "enumerable": true,
521
- "value": value,
522
- "writable": true
523
- });
524
- } else {
525
- object[key] = value;
526
- }
527
- }
528
- var baseAssignValue_default = baseAssignValue;
529
-
530
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
531
- function eq(value, other) {
532
- return value === other || value !== value && other !== other;
533
- }
534
- var eq_default = eq;
535
-
536
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
537
- var objectProto4 = Object.prototype;
538
- var hasOwnProperty3 = objectProto4.hasOwnProperty;
539
- function assignValue(object, key, value) {
540
- var objValue = object[key];
541
- if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
542
- baseAssignValue_default(object, key, value);
543
- }
544
- }
545
- var assignValue_default = assignValue;
546
-
547
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
548
- function copyObject(source, props, object, customizer) {
549
- var isNew = !object;
550
- object || (object = {});
551
- var index = -1, length = props.length;
552
- while (++index < length) {
553
- var key = props[index];
554
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
555
- if (newValue === void 0) {
556
- newValue = source[key];
557
- }
558
- if (isNew) {
559
- baseAssignValue_default(object, key, newValue);
560
- } else {
561
- assignValue_default(object, key, newValue);
562
- }
563
- }
564
- return object;
565
- }
566
- var copyObject_default = copyObject;
567
-
568
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js
569
- var nativeMax = Math.max;
570
- function overRest(func, start, transform) {
571
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
572
- return function() {
573
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
574
- while (++index < length) {
575
- array[index] = args[start + index];
576
- }
577
- index = -1;
578
- var otherArgs = Array(start + 1);
579
- while (++index < start) {
580
- otherArgs[index] = args[index];
581
- }
582
- otherArgs[start] = transform(array);
583
- return apply_default(func, this, otherArgs);
584
- };
585
- }
586
- var overRest_default = overRest;
587
-
588
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js
589
- function baseRest(func, start) {
590
- return setToString_default(overRest_default(func, start, identity_default), func + "");
591
- }
592
- var baseRest_default = baseRest;
593
-
594
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
595
- var MAX_SAFE_INTEGER2 = 9007199254740991;
596
- function isLength(value) {
597
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
598
- }
599
- var isLength_default = isLength;
600
-
601
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
602
- function isArrayLike(value) {
603
- return value != null && isLength_default(value.length) && !isFunction_default(value);
604
- }
605
- var isArrayLike_default = isArrayLike;
606
-
607
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js
608
- function isIterateeCall(value, index, object) {
609
- if (!isObject_default(object)) {
610
- return false;
611
- }
612
- var type = typeof index;
613
- if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
614
- return eq_default(object[index], value);
615
- }
616
- return false;
617
- }
618
- var isIterateeCall_default = isIterateeCall;
619
-
620
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js
621
- function createAssigner(assigner) {
622
- return baseRest_default(function(object, sources) {
623
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
624
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
625
- if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
626
- customizer = length < 3 ? void 0 : customizer;
627
- length = 1;
628
- }
629
- object = Object(object);
630
- while (++index < length) {
631
- var source = sources[index];
632
- if (source) {
633
- assigner(object, source, index, customizer);
634
- }
635
- }
636
- return object;
637
- });
638
- }
639
- var createAssigner_default = createAssigner;
640
-
641
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
642
- var objectProto5 = Object.prototype;
643
- function isPrototype(value) {
644
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5;
645
- return value === proto;
646
- }
647
- var isPrototype_default = isPrototype;
648
-
649
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
650
- function baseTimes(n, iteratee) {
651
- var index = -1, result = Array(n);
652
- while (++index < n) {
653
- result[index] = iteratee(index);
654
- }
655
- return result;
656
- }
657
- var baseTimes_default = baseTimes;
658
-
659
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
660
- var argsTag = "[object Arguments]";
661
- function baseIsArguments(value) {
662
- return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
663
- }
664
- var baseIsArguments_default = baseIsArguments;
665
-
666
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
667
- var objectProto6 = Object.prototype;
668
- var hasOwnProperty4 = objectProto6.hasOwnProperty;
669
- var propertyIsEnumerable = objectProto6.propertyIsEnumerable;
670
- var isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
671
- return arguments;
672
- }()) ? baseIsArguments_default : function(value) {
673
- return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
674
- };
675
- var isArguments_default = isArguments;
676
-
677
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
678
- function stubFalse() {
679
- return false;
680
- }
681
- var stubFalse_default = stubFalse;
682
-
683
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
684
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
685
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
686
- var moduleExports = freeModule && freeModule.exports === freeExports;
687
- var Buffer = moduleExports ? root_default.Buffer : void 0;
688
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
689
- var isBuffer = nativeIsBuffer || stubFalse_default;
690
- var isBuffer_default = isBuffer;
691
-
692
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
693
- var argsTag2 = "[object Arguments]";
694
- var arrayTag = "[object Array]";
695
- var boolTag = "[object Boolean]";
696
- var dateTag = "[object Date]";
697
- var errorTag = "[object Error]";
698
- var funcTag2 = "[object Function]";
699
- var mapTag = "[object Map]";
700
- var numberTag = "[object Number]";
701
- var objectTag = "[object Object]";
702
- var regexpTag = "[object RegExp]";
703
- var setTag = "[object Set]";
704
- var stringTag = "[object String]";
705
- var weakMapTag = "[object WeakMap]";
706
- var arrayBufferTag = "[object ArrayBuffer]";
707
- var dataViewTag = "[object DataView]";
708
- var float32Tag = "[object Float32Array]";
709
- var float64Tag = "[object Float64Array]";
710
- var int8Tag = "[object Int8Array]";
711
- var int16Tag = "[object Int16Array]";
712
- var int32Tag = "[object Int32Array]";
713
- var uint8Tag = "[object Uint8Array]";
714
- var uint8ClampedTag = "[object Uint8ClampedArray]";
715
- var uint16Tag = "[object Uint16Array]";
716
- var uint32Tag = "[object Uint32Array]";
717
- var typedArrayTags = {};
718
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
719
- 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;
720
- function baseIsTypedArray(value) {
721
- return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
722
- }
723
- var baseIsTypedArray_default = baseIsTypedArray;
724
-
725
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
726
- function baseUnary(func) {
727
- return function(value) {
728
- return func(value);
729
- };
730
- }
731
- var baseUnary_default = baseUnary;
732
-
733
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
734
- var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
735
- var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
736
- var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
737
- var freeProcess = moduleExports2 && freeGlobal_default.process;
738
- var nodeUtil = function() {
739
- try {
740
- var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
741
- if (types) {
742
- return types;
743
- }
744
- return freeProcess && freeProcess.binding && freeProcess.binding("util");
745
- } catch (e) {
746
- }
747
- }();
748
- var nodeUtil_default = nodeUtil;
749
-
750
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
751
- var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
752
- var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
753
- var isTypedArray_default = isTypedArray;
754
-
755
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
756
- var objectProto7 = Object.prototype;
757
- var hasOwnProperty5 = objectProto7.hasOwnProperty;
758
- function arrayLikeKeys(value, inherited) {
759
- 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;
760
- for (var key in value) {
761
- if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
762
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
763
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
764
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
765
- isIndex_default(key, length)))) {
766
- result.push(key);
767
- }
768
- }
769
- return result;
770
- }
771
- var arrayLikeKeys_default = arrayLikeKeys;
772
-
773
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
774
- function overArg(func, transform) {
775
- return function(arg) {
776
- return func(transform(arg));
777
- };
778
- }
779
- var overArg_default = overArg;
780
-
781
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
782
- var nativeKeys = overArg_default(Object.keys, Object);
783
- var nativeKeys_default = nativeKeys;
784
-
785
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
786
- var objectProto8 = Object.prototype;
787
- var hasOwnProperty6 = objectProto8.hasOwnProperty;
788
- function baseKeys(object) {
789
- if (!isPrototype_default(object)) {
790
- return nativeKeys_default(object);
791
- }
792
- var result = [];
793
- for (var key in Object(object)) {
794
- if (hasOwnProperty6.call(object, key) && key != "constructor") {
795
- result.push(key);
796
- }
797
- }
798
- return result;
799
- }
800
- var baseKeys_default = baseKeys;
801
-
802
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
803
- function keys(object) {
804
- return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
805
- }
806
- var keys_default = keys;
807
-
808
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
809
- function nativeKeysIn(object) {
810
- var result = [];
811
- if (object != null) {
812
- for (var key in Object(object)) {
813
- result.push(key);
814
- }
815
- }
816
- return result;
817
- }
818
- var nativeKeysIn_default = nativeKeysIn;
819
-
820
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
821
- var objectProto9 = Object.prototype;
822
- var hasOwnProperty7 = objectProto9.hasOwnProperty;
823
- function baseKeysIn(object) {
824
- if (!isObject_default(object)) {
825
- return nativeKeysIn_default(object);
826
- }
827
- var isProto = isPrototype_default(object), result = [];
828
- for (var key in object) {
829
- if (!(key == "constructor" && (isProto || !hasOwnProperty7.call(object, key)))) {
830
- result.push(key);
831
- }
832
- }
833
- return result;
834
- }
835
- var baseKeysIn_default = baseKeysIn;
836
-
837
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
838
- function keysIn(object) {
839
- return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
840
- }
841
- var keysIn_default = keysIn;
842
-
843
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js
844
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
845
- var reIsPlainProp = /^\w*$/;
846
- function isKey(value, object) {
847
- if (isArray_default(value)) {
848
- return false;
849
- }
850
- var type = typeof value;
851
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value)) {
852
- return true;
853
- }
854
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
855
- }
856
- var isKey_default = isKey;
857
-
858
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
859
- var nativeCreate = getNative_default(Object, "create");
860
- var nativeCreate_default = nativeCreate;
861
-
862
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
863
- function hashClear() {
864
- this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
865
- this.size = 0;
866
- }
867
- var hashClear_default = hashClear;
868
-
869
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
870
- function hashDelete(key) {
871
- var result = this.has(key) && delete this.__data__[key];
872
- this.size -= result ? 1 : 0;
873
- return result;
874
- }
875
- var hashDelete_default = hashDelete;
876
-
877
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
878
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
879
- var objectProto10 = Object.prototype;
880
- var hasOwnProperty8 = objectProto10.hasOwnProperty;
881
- function hashGet(key) {
882
- var data = this.__data__;
883
- if (nativeCreate_default) {
884
- var result = data[key];
885
- return result === HASH_UNDEFINED ? void 0 : result;
886
- }
887
- return hasOwnProperty8.call(data, key) ? data[key] : void 0;
888
- }
889
- var hashGet_default = hashGet;
890
-
891
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
892
- var objectProto11 = Object.prototype;
893
- var hasOwnProperty9 = objectProto11.hasOwnProperty;
894
- function hashHas(key) {
895
- var data = this.__data__;
896
- return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty9.call(data, key);
897
- }
898
- var hashHas_default = hashHas;
899
-
900
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
901
- var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
902
- function hashSet(key, value) {
903
- var data = this.__data__;
904
- this.size += this.has(key) ? 0 : 1;
905
- data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
906
- return this;
907
- }
908
- var hashSet_default = hashSet;
909
-
910
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
911
- function Hash(entries) {
912
- var index = -1, length = entries == null ? 0 : entries.length;
913
- this.clear();
914
- while (++index < length) {
915
- var entry = entries[index];
916
- this.set(entry[0], entry[1]);
917
- }
918
- }
919
- Hash.prototype.clear = hashClear_default;
920
- Hash.prototype["delete"] = hashDelete_default;
921
- Hash.prototype.get = hashGet_default;
922
- Hash.prototype.has = hashHas_default;
923
- Hash.prototype.set = hashSet_default;
924
- var Hash_default = Hash;
925
-
926
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
927
- function listCacheClear() {
928
- this.__data__ = [];
929
- this.size = 0;
930
- }
931
- var listCacheClear_default = listCacheClear;
932
-
933
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
934
- function assocIndexOf(array, key) {
935
- var length = array.length;
936
- while (length--) {
937
- if (eq_default(array[length][0], key)) {
938
- return length;
939
- }
940
- }
941
- return -1;
942
- }
943
- var assocIndexOf_default = assocIndexOf;
944
-
945
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
946
- var arrayProto = Array.prototype;
947
- var splice = arrayProto.splice;
948
- function listCacheDelete(key) {
949
- var data = this.__data__, index = assocIndexOf_default(data, key);
950
- if (index < 0) {
951
- return false;
952
- }
953
- var lastIndex = data.length - 1;
954
- if (index == lastIndex) {
955
- data.pop();
956
- } else {
957
- splice.call(data, index, 1);
958
- }
959
- --this.size;
960
- return true;
961
- }
962
- var listCacheDelete_default = listCacheDelete;
963
-
964
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
965
- function listCacheGet(key) {
966
- var data = this.__data__, index = assocIndexOf_default(data, key);
967
- return index < 0 ? void 0 : data[index][1];
968
- }
969
- var listCacheGet_default = listCacheGet;
970
-
971
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
972
- function listCacheHas(key) {
973
- return assocIndexOf_default(this.__data__, key) > -1;
974
- }
975
- var listCacheHas_default = listCacheHas;
976
-
977
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
978
- function listCacheSet(key, value) {
979
- var data = this.__data__, index = assocIndexOf_default(data, key);
980
- if (index < 0) {
981
- ++this.size;
982
- data.push([key, value]);
983
- } else {
984
- data[index][1] = value;
985
- }
986
- return this;
987
- }
988
- var listCacheSet_default = listCacheSet;
989
-
990
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
991
- function ListCache(entries) {
992
- var index = -1, length = entries == null ? 0 : entries.length;
993
- this.clear();
994
- while (++index < length) {
995
- var entry = entries[index];
996
- this.set(entry[0], entry[1]);
997
- }
998
- }
999
- ListCache.prototype.clear = listCacheClear_default;
1000
- ListCache.prototype["delete"] = listCacheDelete_default;
1001
- ListCache.prototype.get = listCacheGet_default;
1002
- ListCache.prototype.has = listCacheHas_default;
1003
- ListCache.prototype.set = listCacheSet_default;
1004
- var ListCache_default = ListCache;
1005
-
1006
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
1007
- var Map = getNative_default(root_default, "Map");
1008
- var Map_default = Map;
1009
-
1010
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
1011
- function mapCacheClear() {
1012
- this.size = 0;
1013
- this.__data__ = {
1014
- "hash": new Hash_default(),
1015
- "map": new (Map_default || ListCache_default)(),
1016
- "string": new Hash_default()
1017
- };
1018
- }
1019
- var mapCacheClear_default = mapCacheClear;
1020
-
1021
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
1022
- function isKeyable(value) {
1023
- var type = typeof value;
1024
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1025
- }
1026
- var isKeyable_default = isKeyable;
1027
-
1028
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
1029
- function getMapData(map, key) {
1030
- var data = map.__data__;
1031
- return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1032
- }
1033
- var getMapData_default = getMapData;
1034
-
1035
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
1036
- function mapCacheDelete(key) {
1037
- var result = getMapData_default(this, key)["delete"](key);
1038
- this.size -= result ? 1 : 0;
1039
- return result;
1040
- }
1041
- var mapCacheDelete_default = mapCacheDelete;
1042
-
1043
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
1044
- function mapCacheGet(key) {
1045
- return getMapData_default(this, key).get(key);
1046
- }
1047
- var mapCacheGet_default = mapCacheGet;
1048
-
1049
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
1050
- function mapCacheHas(key) {
1051
- return getMapData_default(this, key).has(key);
1052
- }
1053
- var mapCacheHas_default = mapCacheHas;
1054
-
1055
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
1056
- function mapCacheSet(key, value) {
1057
- var data = getMapData_default(this, key), size2 = data.size;
1058
- data.set(key, value);
1059
- this.size += data.size == size2 ? 0 : 1;
1060
- return this;
1061
- }
1062
- var mapCacheSet_default = mapCacheSet;
1063
-
1064
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
1065
- function MapCache(entries) {
1066
- var index = -1, length = entries == null ? 0 : entries.length;
1067
- this.clear();
1068
- while (++index < length) {
1069
- var entry = entries[index];
1070
- this.set(entry[0], entry[1]);
1071
- }
1072
- }
1073
- MapCache.prototype.clear = mapCacheClear_default;
1074
- MapCache.prototype["delete"] = mapCacheDelete_default;
1075
- MapCache.prototype.get = mapCacheGet_default;
1076
- MapCache.prototype.has = mapCacheHas_default;
1077
- MapCache.prototype.set = mapCacheSet_default;
1078
- var MapCache_default = MapCache;
1079
-
1080
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js
1081
- var FUNC_ERROR_TEXT = "Expected a function";
1082
- function memoize(func, resolver) {
1083
- if (typeof func != "function" || resolver != null && typeof resolver != "function") {
1084
- throw new TypeError(FUNC_ERROR_TEXT);
1085
- }
1086
- var memoized = function() {
1087
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1088
- if (cache.has(key)) {
1089
- return cache.get(key);
1090
- }
1091
- var result = func.apply(this, args);
1092
- memoized.cache = cache.set(key, result) || cache;
1093
- return result;
1094
- };
1095
- memoized.cache = new (memoize.Cache || MapCache_default)();
1096
- return memoized;
1097
- }
1098
- memoize.Cache = MapCache_default;
1099
- var memoize_default = memoize;
1100
-
1101
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js
1102
- var MAX_MEMOIZE_SIZE = 500;
1103
- function memoizeCapped(func) {
1104
- var result = memoize_default(func, function(key) {
1105
- if (cache.size === MAX_MEMOIZE_SIZE) {
1106
- cache.clear();
1107
- }
1108
- return key;
1109
- });
1110
- var cache = result.cache;
1111
- return result;
1112
- }
1113
- var memoizeCapped_default = memoizeCapped;
1114
-
1115
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js
1116
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1117
- var reEscapeChar = /\\(\\)?/g;
1118
- var stringToPath = memoizeCapped_default(function(string) {
1119
- var result = [];
1120
- if (string.charCodeAt(0) === 46) {
1121
- result.push("");
1122
- }
1123
- string.replace(rePropName, function(match, number, quote, subString) {
1124
- result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
1125
- });
1126
- return result;
1127
- });
1128
- var stringToPath_default = stringToPath;
1129
-
1130
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js
1131
- function toString2(value) {
1132
- return value == null ? "" : baseToString_default(value);
1133
- }
1134
- var toString_default = toString2;
1135
-
1136
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js
1137
- function castPath(value, object) {
1138
- if (isArray_default(value)) {
1139
- return value;
1140
- }
1141
- return isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
1142
- }
1143
- var castPath_default = castPath;
1144
-
1145
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js
1146
- var INFINITY3 = 1 / 0;
1147
- function toKey(value) {
1148
- if (typeof value == "string" || isSymbol_default(value)) {
1149
- return value;
1150
- }
1151
- var result = value + "";
1152
- return result == "0" && 1 / value == -INFINITY3 ? "-0" : result;
1153
- }
1154
- var toKey_default = toKey;
1155
-
1156
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.js
1157
- function baseGet(object, path) {
1158
- path = castPath_default(path, object);
1159
- var index = 0, length = path.length;
1160
- while (object != null && index < length) {
1161
- object = object[toKey_default(path[index++])];
1162
- }
1163
- return index && index == length ? object : void 0;
1164
- }
1165
- var baseGet_default = baseGet;
1166
-
1167
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.js
1168
- function get(object, path, defaultValue) {
1169
- var result = object == null ? void 0 : baseGet_default(object, path);
1170
- return result === void 0 ? defaultValue : result;
1171
- }
1172
- var get_default = get;
1173
-
1174
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
1175
- function arrayPush(array, values2) {
1176
- var index = -1, length = values2.length, offset = array.length;
1177
- while (++index < length) {
1178
- array[offset + index] = values2[index];
1179
- }
1180
- return array;
1181
- }
1182
- var arrayPush_default = arrayPush;
1183
-
1184
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.js
1185
- var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0;
1186
- function isFlattenable(value) {
1187
- return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
1188
- }
1189
- var isFlattenable_default = isFlattenable;
1190
-
1191
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.js
1192
- function baseFlatten(array, depth, predicate, isStrict, result) {
1193
- var index = -1, length = array.length;
1194
- predicate || (predicate = isFlattenable_default);
1195
- result || (result = []);
1196
- while (++index < length) {
1197
- var value = array[index];
1198
- if (depth > 0 && predicate(value)) {
1199
- if (depth > 1) {
1200
- baseFlatten(value, depth - 1, predicate, isStrict, result);
1201
- } else {
1202
- arrayPush_default(result, value);
1203
- }
1204
- } else if (!isStrict) {
1205
- result[result.length] = value;
1206
- }
1207
- }
1208
- return result;
1209
- }
1210
- var baseFlatten_default = baseFlatten;
1211
-
1212
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.js
1213
- function flatten(array) {
1214
- var length = array == null ? 0 : array.length;
1215
- return length ? baseFlatten_default(array, 1) : [];
1216
- }
1217
- var flatten_default = flatten;
1218
-
1219
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_flatRest.js
1220
- function flatRest(func) {
1221
- return setToString_default(overRest_default(func, void 0, flatten_default), func + "");
1222
- }
1223
- var flatRest_default = flatRest;
1224
-
1225
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
1226
- var getPrototype = overArg_default(Object.getPrototypeOf, Object);
1227
- var getPrototype_default = getPrototype;
1228
-
1229
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js
1230
- var objectTag2 = "[object Object]";
1231
- var funcProto3 = Function.prototype;
1232
- var objectProto12 = Object.prototype;
1233
- var funcToString3 = funcProto3.toString;
1234
- var hasOwnProperty10 = objectProto12.hasOwnProperty;
1235
- var objectCtorString = funcToString3.call(Object);
1236
- function isPlainObject(value) {
1237
- if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) {
1238
- return false;
1239
- }
1240
- var proto = getPrototype_default(value);
1241
- if (proto === null) {
1242
- return true;
1243
- }
1244
- var Ctor = hasOwnProperty10.call(proto, "constructor") && proto.constructor;
1245
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
1246
- }
1247
- var isPlainObject_default = isPlainObject;
1248
-
1249
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isError.js
1250
- var domExcTag = "[object DOMException]";
1251
- var errorTag2 = "[object Error]";
1252
- function isError(value) {
1253
- if (!isObjectLike_default(value)) {
1254
- return false;
1255
- }
1256
- var tag = baseGetTag_default(value);
1257
- return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject_default(value);
1258
- }
1259
- var isError_default = isError;
1260
-
1261
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/before.js
1262
- var FUNC_ERROR_TEXT2 = "Expected a function";
1263
- function before(n, func) {
1264
- var result;
1265
- if (typeof func != "function") {
1266
- throw new TypeError(FUNC_ERROR_TEXT2);
1267
- }
1268
- n = toInteger_default(n);
1269
- return function() {
1270
- if (--n > 0) {
1271
- result = func.apply(this, arguments);
1272
- }
1273
- if (n <= 1) {
1274
- func = void 0;
1275
- }
1276
- return result;
1277
- };
1278
- }
1279
- var before_default = before;
1280
-
1281
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js
1282
- function baseSlice(array, start, end) {
1283
- var index = -1, length = array.length;
1284
- if (start < 0) {
1285
- start = -start > length ? 0 : length + start;
1286
- }
1287
- end = end > length ? length : end;
1288
- if (end < 0) {
1289
- end += length;
1290
- }
1291
- length = start > end ? 0 : end - start >>> 0;
1292
- start >>>= 0;
1293
- var result = Array(length);
1294
- while (++index < length) {
1295
- result[index] = array[index + start];
1296
- }
1297
- return result;
1298
- }
1299
- var baseSlice_default = baseSlice;
1300
-
1301
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js
1302
- function castSlice(array, start, end) {
1303
- var length = array.length;
1304
- end = end === void 0 ? length : end;
1305
- return !start && end >= length ? array : baseSlice_default(array, start, end);
1306
- }
1307
- var castSlice_default = castSlice;
1308
-
1309
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js
1310
- var rsAstralRange = "\\ud800-\\udfff";
1311
- var rsComboMarksRange = "\\u0300-\\u036f";
1312
- var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
1313
- var rsComboSymbolsRange = "\\u20d0-\\u20ff";
1314
- var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
1315
- var rsVarRange = "\\ufe0e\\ufe0f";
1316
- var rsZWJ = "\\u200d";
1317
- var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
1318
- function hasUnicode(string) {
1319
- return reHasUnicode.test(string);
1320
- }
1321
- var hasUnicode_default = hasUnicode;
1322
-
1323
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js
1324
- function asciiToArray(string) {
1325
- return string.split("");
1326
- }
1327
- var asciiToArray_default = asciiToArray;
1328
-
1329
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js
1330
- var rsAstralRange2 = "\\ud800-\\udfff";
1331
- var rsComboMarksRange2 = "\\u0300-\\u036f";
1332
- var reComboHalfMarksRange2 = "\\ufe20-\\ufe2f";
1333
- var rsComboSymbolsRange2 = "\\u20d0-\\u20ff";
1334
- var rsComboRange2 = rsComboMarksRange2 + reComboHalfMarksRange2 + rsComboSymbolsRange2;
1335
- var rsVarRange2 = "\\ufe0e\\ufe0f";
1336
- var rsAstral = "[" + rsAstralRange2 + "]";
1337
- var rsCombo = "[" + rsComboRange2 + "]";
1338
- var rsFitz = "\\ud83c[\\udffb-\\udfff]";
1339
- var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
1340
- var rsNonAstral = "[^" + rsAstralRange2 + "]";
1341
- var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
1342
- var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
1343
- var rsZWJ2 = "\\u200d";
1344
- var reOptMod = rsModifier + "?";
1345
- var rsOptVar = "[" + rsVarRange2 + "]?";
1346
- var rsOptJoin = "(?:" + rsZWJ2 + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
1347
- var rsSeq = rsOptVar + reOptMod + rsOptJoin;
1348
- var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
1349
- var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
1350
- function unicodeToArray(string) {
1351
- return string.match(reUnicode) || [];
1352
- }
1353
- var unicodeToArray_default = unicodeToArray;
1354
-
1355
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js
1356
- function stringToArray(string) {
1357
- return hasUnicode_default(string) ? unicodeToArray_default(string) : asciiToArray_default(string);
1358
- }
1359
- var stringToArray_default = stringToArray;
1360
-
1361
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/chunk.js
1362
- var nativeCeil = Math.ceil;
1363
- var nativeMax2 = Math.max;
1364
- function chunk(array, size2, guard) {
1365
- if (guard ? isIterateeCall_default(array, size2, guard) : size2 === void 0) {
1366
- size2 = 1;
1367
- } else {
1368
- size2 = nativeMax2(toInteger_default(size2), 0);
1369
- }
1370
- var length = array == null ? 0 : array.length;
1371
- if (!length || size2 < 1) {
1372
- return [];
1373
- }
1374
- var index = 0, resIndex = 0, result = Array(nativeCeil(length / size2));
1375
- while (index < length) {
1376
- result[resIndex++] = baseSlice_default(array, index, index += size2);
1377
- }
1378
- return result;
1379
- }
1380
- var chunk_default = chunk;
1381
-
1382
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
1383
- function stackClear() {
1384
- this.__data__ = new ListCache_default();
1385
- this.size = 0;
1386
- }
1387
- var stackClear_default = stackClear;
1388
-
1389
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
1390
- function stackDelete(key) {
1391
- var data = this.__data__, result = data["delete"](key);
1392
- this.size = data.size;
1393
- return result;
1394
- }
1395
- var stackDelete_default = stackDelete;
1396
-
1397
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
1398
- function stackGet(key) {
1399
- return this.__data__.get(key);
1400
- }
1401
- var stackGet_default = stackGet;
1402
-
1403
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
1404
- function stackHas(key) {
1405
- return this.__data__.has(key);
1406
- }
1407
- var stackHas_default = stackHas;
1408
-
1409
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
1410
- var LARGE_ARRAY_SIZE = 200;
1411
- function stackSet(key, value) {
1412
- var data = this.__data__;
1413
- if (data instanceof ListCache_default) {
1414
- var pairs = data.__data__;
1415
- if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
1416
- pairs.push([key, value]);
1417
- this.size = ++data.size;
1418
- return this;
1419
- }
1420
- data = this.__data__ = new MapCache_default(pairs);
1421
- }
1422
- data.set(key, value);
1423
- this.size = data.size;
1424
- return this;
1425
- }
1426
- var stackSet_default = stackSet;
1427
-
1428
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
1429
- function Stack(entries) {
1430
- var data = this.__data__ = new ListCache_default(entries);
1431
- this.size = data.size;
1432
- }
1433
- Stack.prototype.clear = stackClear_default;
1434
- Stack.prototype["delete"] = stackDelete_default;
1435
- Stack.prototype.get = stackGet_default;
1436
- Stack.prototype.has = stackHas_default;
1437
- Stack.prototype.set = stackSet_default;
1438
- var Stack_default = Stack;
1439
-
1440
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js
1441
- function baseAssign(object, source) {
1442
- return object && copyObject_default(source, keys_default(source), object);
1443
- }
1444
- var baseAssign_default = baseAssign;
1445
-
1446
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js
1447
- function baseAssignIn(object, source) {
1448
- return object && copyObject_default(source, keysIn_default(source), object);
1449
- }
1450
- var baseAssignIn_default = baseAssignIn;
1451
-
1452
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js
1453
- var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
1454
- var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
1455
- var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
1456
- var Buffer2 = moduleExports3 ? root_default.Buffer : void 0;
1457
- var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
1458
- function cloneBuffer(buffer, isDeep) {
1459
- if (isDeep) {
1460
- return buffer.slice();
1461
- }
1462
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1463
- buffer.copy(result);
1464
- return result;
1465
- }
1466
- var cloneBuffer_default = cloneBuffer;
1467
-
1468
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
1469
- function arrayFilter(array, predicate) {
1470
- var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1471
- while (++index < length) {
1472
- var value = array[index];
1473
- if (predicate(value, index, array)) {
1474
- result[resIndex++] = value;
1475
- }
1476
- }
1477
- return result;
1478
- }
1479
- var arrayFilter_default = arrayFilter;
1480
-
1481
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js
1482
- function stubArray() {
1483
- return [];
1484
- }
1485
- var stubArray_default = stubArray;
1486
-
1487
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js
1488
- var objectProto13 = Object.prototype;
1489
- var propertyIsEnumerable2 = objectProto13.propertyIsEnumerable;
1490
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1491
- var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
1492
- if (object == null) {
1493
- return [];
1494
- }
1495
- object = Object(object);
1496
- return arrayFilter_default(nativeGetSymbols(object), function(symbol) {
1497
- return propertyIsEnumerable2.call(object, symbol);
1498
- });
1499
- };
1500
- var getSymbols_default = getSymbols;
1501
-
1502
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js
1503
- function copySymbols(source, object) {
1504
- return copyObject_default(source, getSymbols_default(source), object);
1505
- }
1506
- var copySymbols_default = copySymbols;
1507
-
1508
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
1509
- var nativeGetSymbols2 = Object.getOwnPropertySymbols;
1510
- var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object) {
1511
- var result = [];
1512
- while (object) {
1513
- arrayPush_default(result, getSymbols_default(object));
1514
- object = getPrototype_default(object);
1515
- }
1516
- return result;
1517
- };
1518
- var getSymbolsIn_default = getSymbolsIn;
1519
-
1520
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js
1521
- function copySymbolsIn(source, object) {
1522
- return copyObject_default(source, getSymbolsIn_default(source), object);
1523
- }
1524
- var copySymbolsIn_default = copySymbolsIn;
1525
-
1526
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js
1527
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1528
- var result = keysFunc(object);
1529
- return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
1530
- }
1531
- var baseGetAllKeys_default = baseGetAllKeys;
1532
-
1533
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js
1534
- function getAllKeys(object) {
1535
- return baseGetAllKeys_default(object, keys_default, getSymbols_default);
1536
- }
1537
- var getAllKeys_default = getAllKeys;
1538
-
1539
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js
1540
- function getAllKeysIn(object) {
1541
- return baseGetAllKeys_default(object, keysIn_default, getSymbolsIn_default);
1542
- }
1543
- var getAllKeysIn_default = getAllKeysIn;
1544
-
1545
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
1546
- var DataView = getNative_default(root_default, "DataView");
1547
- var DataView_default = DataView;
1548
-
1549
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js
1550
- var Promise2 = getNative_default(root_default, "Promise");
1551
- var Promise_default = Promise2;
1552
-
1553
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
1554
- var Set = getNative_default(root_default, "Set");
1555
- var Set_default = Set;
1556
-
1557
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
1558
- var mapTag2 = "[object Map]";
1559
- var objectTag3 = "[object Object]";
1560
- var promiseTag = "[object Promise]";
1561
- var setTag2 = "[object Set]";
1562
- var weakMapTag2 = "[object WeakMap]";
1563
- var dataViewTag2 = "[object DataView]";
1564
- var dataViewCtorString = toSource_default(DataView_default);
1565
- var mapCtorString = toSource_default(Map_default);
1566
- var promiseCtorString = toSource_default(Promise_default);
1567
- var setCtorString = toSource_default(Set_default);
1568
- var weakMapCtorString = toSource_default(WeakMap_default);
1569
- var getTag = baseGetTag_default;
1570
- if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
1571
- getTag = function(value) {
1572
- var result = baseGetTag_default(value), Ctor = result == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
1573
- if (ctorString) {
1574
- switch (ctorString) {
1575
- case dataViewCtorString:
1576
- return dataViewTag2;
1577
- case mapCtorString:
1578
- return mapTag2;
1579
- case promiseCtorString:
1580
- return promiseTag;
1581
- case setCtorString:
1582
- return setTag2;
1583
- case weakMapCtorString:
1584
- return weakMapTag2;
1585
- }
1586
- }
1587
- return result;
1588
- };
1589
- }
1590
- var getTag_default = getTag;
1591
-
1592
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js
1593
- var objectProto14 = Object.prototype;
1594
- var hasOwnProperty11 = objectProto14.hasOwnProperty;
1595
- function initCloneArray(array) {
1596
- var length = array.length, result = new array.constructor(length);
1597
- if (length && typeof array[0] == "string" && hasOwnProperty11.call(array, "index")) {
1598
- result.index = array.index;
1599
- result.input = array.input;
1600
- }
1601
- return result;
1602
- }
1603
- var initCloneArray_default = initCloneArray;
1604
-
1605
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
1606
- var Uint8Array = root_default.Uint8Array;
1607
- var Uint8Array_default = Uint8Array;
1608
-
1609
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js
1610
- function cloneArrayBuffer(arrayBuffer) {
1611
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1612
- new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
1613
- return result;
1614
- }
1615
- var cloneArrayBuffer_default = cloneArrayBuffer;
1616
-
1617
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js
1618
- function cloneDataView(dataView, isDeep) {
1619
- var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
1620
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1621
- }
1622
- var cloneDataView_default = cloneDataView;
1623
-
1624
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js
1625
- var reFlags = /\w*$/;
1626
- function cloneRegExp(regexp) {
1627
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
1628
- result.lastIndex = regexp.lastIndex;
1629
- return result;
1630
- }
1631
- var cloneRegExp_default = cloneRegExp;
1632
-
1633
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js
1634
- var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
1635
- var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
1636
- function cloneSymbol(symbol) {
1637
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1638
- }
1639
- var cloneSymbol_default = cloneSymbol;
1640
-
1641
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js
1642
- function cloneTypedArray(typedArray, isDeep) {
1643
- var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
1644
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1645
- }
1646
- var cloneTypedArray_default = cloneTypedArray;
1647
-
1648
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js
1649
- var boolTag2 = "[object Boolean]";
1650
- var dateTag2 = "[object Date]";
1651
- var mapTag3 = "[object Map]";
1652
- var numberTag2 = "[object Number]";
1653
- var regexpTag2 = "[object RegExp]";
1654
- var setTag3 = "[object Set]";
1655
- var stringTag2 = "[object String]";
1656
- var symbolTag2 = "[object Symbol]";
1657
- var arrayBufferTag2 = "[object ArrayBuffer]";
1658
- var dataViewTag3 = "[object DataView]";
1659
- var float32Tag2 = "[object Float32Array]";
1660
- var float64Tag2 = "[object Float64Array]";
1661
- var int8Tag2 = "[object Int8Array]";
1662
- var int16Tag2 = "[object Int16Array]";
1663
- var int32Tag2 = "[object Int32Array]";
1664
- var uint8Tag2 = "[object Uint8Array]";
1665
- var uint8ClampedTag2 = "[object Uint8ClampedArray]";
1666
- var uint16Tag2 = "[object Uint16Array]";
1667
- var uint32Tag2 = "[object Uint32Array]";
1668
- function initCloneByTag(object, tag, isDeep) {
1669
- var Ctor = object.constructor;
1670
- switch (tag) {
1671
- case arrayBufferTag2:
1672
- return cloneArrayBuffer_default(object);
1673
- case boolTag2:
1674
- case dateTag2:
1675
- return new Ctor(+object);
1676
- case dataViewTag3:
1677
- return cloneDataView_default(object, isDeep);
1678
- case float32Tag2:
1679
- case float64Tag2:
1680
- case int8Tag2:
1681
- case int16Tag2:
1682
- case int32Tag2:
1683
- case uint8Tag2:
1684
- case uint8ClampedTag2:
1685
- case uint16Tag2:
1686
- case uint32Tag2:
1687
- return cloneTypedArray_default(object, isDeep);
1688
- case mapTag3:
1689
- return new Ctor();
1690
- case numberTag2:
1691
- case stringTag2:
1692
- return new Ctor(object);
1693
- case regexpTag2:
1694
- return cloneRegExp_default(object);
1695
- case setTag3:
1696
- return new Ctor();
1697
- case symbolTag2:
1698
- return cloneSymbol_default(object);
1699
- }
1700
- }
1701
- var initCloneByTag_default = initCloneByTag;
1702
-
1703
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
1704
- function initCloneObject(object) {
1705
- return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
1706
- }
1707
- var initCloneObject_default = initCloneObject;
1708
-
1709
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js
1710
- var mapTag4 = "[object Map]";
1711
- function baseIsMap(value) {
1712
- return isObjectLike_default(value) && getTag_default(value) == mapTag4;
1713
- }
1714
- var baseIsMap_default = baseIsMap;
1715
-
1716
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js
1717
- var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
1718
- var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
1719
- var isMap_default = isMap;
1720
-
1721
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js
1722
- var setTag4 = "[object Set]";
1723
- function baseIsSet(value) {
1724
- return isObjectLike_default(value) && getTag_default(value) == setTag4;
1725
- }
1726
- var baseIsSet_default = baseIsSet;
1727
-
1728
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js
1729
- var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
1730
- var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
1731
- var isSet_default = isSet;
1732
-
1733
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js
1734
- var CLONE_DEEP_FLAG = 1;
1735
- var CLONE_FLAT_FLAG = 2;
1736
- var CLONE_SYMBOLS_FLAG = 4;
1737
- var argsTag3 = "[object Arguments]";
1738
- var arrayTag2 = "[object Array]";
1739
- var boolTag3 = "[object Boolean]";
1740
- var dateTag3 = "[object Date]";
1741
- var errorTag3 = "[object Error]";
1742
- var funcTag3 = "[object Function]";
1743
- var genTag2 = "[object GeneratorFunction]";
1744
- var mapTag5 = "[object Map]";
1745
- var numberTag3 = "[object Number]";
1746
- var objectTag4 = "[object Object]";
1747
- var regexpTag3 = "[object RegExp]";
1748
- var setTag5 = "[object Set]";
1749
- var stringTag3 = "[object String]";
1750
- var symbolTag3 = "[object Symbol]";
1751
- var weakMapTag3 = "[object WeakMap]";
1752
- var arrayBufferTag3 = "[object ArrayBuffer]";
1753
- var dataViewTag4 = "[object DataView]";
1754
- var float32Tag3 = "[object Float32Array]";
1755
- var float64Tag3 = "[object Float64Array]";
1756
- var int8Tag3 = "[object Int8Array]";
1757
- var int16Tag3 = "[object Int16Array]";
1758
- var int32Tag3 = "[object Int32Array]";
1759
- var uint8Tag3 = "[object Uint8Array]";
1760
- var uint8ClampedTag3 = "[object Uint8ClampedArray]";
1761
- var uint16Tag3 = "[object Uint16Array]";
1762
- var uint32Tag3 = "[object Uint32Array]";
1763
- var cloneableTags = {};
1764
- cloneableTags[argsTag3] = cloneableTags[arrayTag2] = cloneableTags[arrayBufferTag3] = cloneableTags[dataViewTag4] = cloneableTags[boolTag3] = cloneableTags[dateTag3] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag5] = cloneableTags[numberTag3] = cloneableTags[objectTag4] = cloneableTags[regexpTag3] = cloneableTags[setTag5] = cloneableTags[stringTag3] = cloneableTags[symbolTag3] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true;
1765
- cloneableTags[errorTag3] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false;
1766
- function baseClone(value, bitmask, customizer, key, object, stack) {
1767
- var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
1768
- if (customizer) {
1769
- result = object ? customizer(value, key, object, stack) : customizer(value);
1770
- }
1771
- if (result !== void 0) {
1772
- return result;
1773
- }
1774
- if (!isObject_default(value)) {
1775
- return value;
1776
- }
1777
- var isArr = isArray_default(value);
1778
- if (isArr) {
1779
- result = initCloneArray_default(value);
1780
- if (!isDeep) {
1781
- return copyArray_default(value, result);
1782
- }
1783
- } else {
1784
- var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2;
1785
- if (isBuffer_default(value)) {
1786
- return cloneBuffer_default(value, isDeep);
1787
- }
1788
- if (tag == objectTag4 || tag == argsTag3 || isFunc && !object) {
1789
- result = isFlat || isFunc ? {} : initCloneObject_default(value);
1790
- if (!isDeep) {
1791
- return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value));
1792
- }
1793
- } else {
1794
- if (!cloneableTags[tag]) {
1795
- return object ? value : {};
1796
- }
1797
- result = initCloneByTag_default(value, tag, isDeep);
1798
- }
1799
- }
1800
- stack || (stack = new Stack_default());
1801
- var stacked = stack.get(value);
1802
- if (stacked) {
1803
- return stacked;
1804
- }
1805
- stack.set(value, result);
1806
- if (isSet_default(value)) {
1807
- value.forEach(function(subValue) {
1808
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
1809
- });
1810
- } else if (isMap_default(value)) {
1811
- value.forEach(function(subValue, key2) {
1812
- result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
1813
- });
1814
- }
1815
- var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
1816
- var props = isArr ? void 0 : keysFunc(value);
1817
- arrayEach_default(props || value, function(subValue, key2) {
1818
- if (props) {
1819
- key2 = subValue;
1820
- subValue = value[key2];
1821
- }
1822
- assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
1823
- });
1824
- return result;
1825
- }
1826
- var baseClone_default = baseClone;
1827
-
1828
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.js
1829
- var CLONE_SYMBOLS_FLAG2 = 4;
1830
- function clone(value) {
1831
- return baseClone_default(value, CLONE_SYMBOLS_FLAG2);
1832
- }
1833
- var clone_default = clone;
1834
-
1835
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js
1836
- var CLONE_DEEP_FLAG2 = 1;
1837
- var CLONE_SYMBOLS_FLAG3 = 4;
1838
- function cloneDeep(value) {
1839
- return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG3);
1840
- }
1841
- var cloneDeep_default = cloneDeep;
1842
-
1843
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js
1844
- var CLONE_DEEP_FLAG3 = 1;
1845
- var CLONE_SYMBOLS_FLAG4 = 4;
1846
- function cloneDeepWith(value, customizer) {
1847
- customizer = typeof customizer == "function" ? customizer : void 0;
1848
- return baseClone_default(value, CLONE_DEEP_FLAG3 | CLONE_SYMBOLS_FLAG4, customizer);
1849
- }
1850
- var cloneDeepWith_default = cloneDeepWith;
1851
-
1852
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneWith.js
1853
- var CLONE_SYMBOLS_FLAG5 = 4;
1854
- function cloneWith(value, customizer) {
1855
- customizer = typeof customizer == "function" ? customizer : void 0;
1856
- return baseClone_default(value, CLONE_SYMBOLS_FLAG5, customizer);
1857
- }
1858
- var cloneWith_default = cloneWith;
1859
-
1860
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/concat.js
1861
- function concat() {
1862
- var length = arguments.length;
1863
- if (!length) {
1864
- return [];
1865
- }
1866
- var args = Array(length - 1), array = arguments[0], index = length;
1867
- while (index--) {
1868
- args[index - 1] = arguments[index];
1869
- }
1870
- return arrayPush_default(isArray_default(array) ? copyArray_default(array) : [array], baseFlatten_default(args, 1));
1871
- }
1872
- var concat_default = concat;
1873
-
1874
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js
1875
- var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
1876
- function setCacheAdd(value) {
1877
- this.__data__.set(value, HASH_UNDEFINED3);
1878
- return this;
1879
- }
1880
- var setCacheAdd_default = setCacheAdd;
1881
-
1882
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js
1883
- function setCacheHas(value) {
1884
- return this.__data__.has(value);
1885
- }
1886
- var setCacheHas_default = setCacheHas;
1887
-
1888
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js
1889
- function SetCache(values2) {
1890
- var index = -1, length = values2 == null ? 0 : values2.length;
1891
- this.__data__ = new MapCache_default();
1892
- while (++index < length) {
1893
- this.add(values2[index]);
1894
- }
1895
- }
1896
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
1897
- SetCache.prototype.has = setCacheHas_default;
1898
- var SetCache_default = SetCache;
1899
-
1900
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js
1901
- function arraySome(array, predicate) {
1902
- var index = -1, length = array == null ? 0 : array.length;
1903
- while (++index < length) {
1904
- if (predicate(array[index], index, array)) {
1905
- return true;
1906
- }
1907
- }
1908
- return false;
1909
- }
1910
- var arraySome_default = arraySome;
1911
-
1912
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js
1913
- function cacheHas(cache, key) {
1914
- return cache.has(key);
1915
- }
1916
- var cacheHas_default = cacheHas;
1917
-
1918
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js
1919
- var COMPARE_PARTIAL_FLAG = 1;
1920
- var COMPARE_UNORDERED_FLAG = 2;
1921
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1922
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
1923
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1924
- return false;
1925
- }
1926
- var arrStacked = stack.get(array);
1927
- var othStacked = stack.get(other);
1928
- if (arrStacked && othStacked) {
1929
- return arrStacked == other && othStacked == array;
1930
- }
1931
- var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
1932
- stack.set(array, other);
1933
- stack.set(other, array);
1934
- while (++index < arrLength) {
1935
- var arrValue = array[index], othValue = other[index];
1936
- if (customizer) {
1937
- var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
1938
- }
1939
- if (compared !== void 0) {
1940
- if (compared) {
1941
- continue;
1942
- }
1943
- result = false;
1944
- break;
1945
- }
1946
- if (seen) {
1947
- if (!arraySome_default(other, function(othValue2, othIndex) {
1948
- if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
1949
- return seen.push(othIndex);
1950
- }
1951
- })) {
1952
- result = false;
1953
- break;
1954
- }
1955
- } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1956
- result = false;
1957
- break;
1958
- }
1959
- }
1960
- stack["delete"](array);
1961
- stack["delete"](other);
1962
- return result;
1963
- }
1964
- var equalArrays_default = equalArrays;
1965
-
1966
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js
1967
- function mapToArray(map) {
1968
- var index = -1, result = Array(map.size);
1969
- map.forEach(function(value, key) {
1970
- result[++index] = [key, value];
1971
- });
1972
- return result;
1973
- }
1974
- var mapToArray_default = mapToArray;
1975
-
1976
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js
1977
- function setToArray(set2) {
1978
- var index = -1, result = Array(set2.size);
1979
- set2.forEach(function(value) {
1980
- result[++index] = value;
1981
- });
1982
- return result;
1983
- }
1984
- var setToArray_default = setToArray;
1985
-
1986
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js
1987
- var COMPARE_PARTIAL_FLAG2 = 1;
1988
- var COMPARE_UNORDERED_FLAG2 = 2;
1989
- var boolTag4 = "[object Boolean]";
1990
- var dateTag4 = "[object Date]";
1991
- var errorTag4 = "[object Error]";
1992
- var mapTag6 = "[object Map]";
1993
- var numberTag4 = "[object Number]";
1994
- var regexpTag4 = "[object RegExp]";
1995
- var setTag6 = "[object Set]";
1996
- var stringTag4 = "[object String]";
1997
- var symbolTag4 = "[object Symbol]";
1998
- var arrayBufferTag4 = "[object ArrayBuffer]";
1999
- var dataViewTag5 = "[object DataView]";
2000
- var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0;
2001
- var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0;
2002
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2003
- switch (tag) {
2004
- case dataViewTag5:
2005
- if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
2006
- return false;
2007
- }
2008
- object = object.buffer;
2009
- other = other.buffer;
2010
- case arrayBufferTag4:
2011
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other))) {
2012
- return false;
2013
- }
2014
- return true;
2015
- case boolTag4:
2016
- case dateTag4:
2017
- case numberTag4:
2018
- return eq_default(+object, +other);
2019
- case errorTag4:
2020
- return object.name == other.name && object.message == other.message;
2021
- case regexpTag4:
2022
- case stringTag4:
2023
- return object == other + "";
2024
- case mapTag6:
2025
- var convert = mapToArray_default;
2026
- case setTag6:
2027
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
2028
- convert || (convert = setToArray_default);
2029
- if (object.size != other.size && !isPartial) {
2030
- return false;
2031
- }
2032
- var stacked = stack.get(object);
2033
- if (stacked) {
2034
- return stacked == other;
2035
- }
2036
- bitmask |= COMPARE_UNORDERED_FLAG2;
2037
- stack.set(object, other);
2038
- var result = equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2039
- stack["delete"](object);
2040
- return result;
2041
- case symbolTag4:
2042
- if (symbolValueOf2) {
2043
- return symbolValueOf2.call(object) == symbolValueOf2.call(other);
2044
- }
2045
- }
2046
- return false;
2047
- }
2048
- var equalByTag_default = equalByTag;
2049
-
2050
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js
2051
- var COMPARE_PARTIAL_FLAG3 = 1;
2052
- var objectProto15 = Object.prototype;
2053
- var hasOwnProperty12 = objectProto15.hasOwnProperty;
2054
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2055
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
2056
- if (objLength != othLength && !isPartial) {
2057
- return false;
2058
- }
2059
- var index = objLength;
2060
- while (index--) {
2061
- var key = objProps[index];
2062
- if (!(isPartial ? key in other : hasOwnProperty12.call(other, key))) {
2063
- return false;
2064
- }
2065
- }
2066
- var objStacked = stack.get(object);
2067
- var othStacked = stack.get(other);
2068
- if (objStacked && othStacked) {
2069
- return objStacked == other && othStacked == object;
2070
- }
2071
- var result = true;
2072
- stack.set(object, other);
2073
- stack.set(other, object);
2074
- var skipCtor = isPartial;
2075
- while (++index < objLength) {
2076
- key = objProps[index];
2077
- var objValue = object[key], othValue = other[key];
2078
- if (customizer) {
2079
- var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
2080
- }
2081
- if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2082
- result = false;
2083
- break;
2084
- }
2085
- skipCtor || (skipCtor = key == "constructor");
2086
- }
2087
- if (result && !skipCtor) {
2088
- var objCtor = object.constructor, othCtor = other.constructor;
2089
- if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
2090
- result = false;
2091
- }
2092
- }
2093
- stack["delete"](object);
2094
- stack["delete"](other);
2095
- return result;
2096
- }
2097
- var equalObjects_default = equalObjects;
2098
-
2099
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js
2100
- var COMPARE_PARTIAL_FLAG4 = 1;
2101
- var argsTag4 = "[object Arguments]";
2102
- var arrayTag3 = "[object Array]";
2103
- var objectTag5 = "[object Object]";
2104
- var objectProto16 = Object.prototype;
2105
- var hasOwnProperty13 = objectProto16.hasOwnProperty;
2106
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2107
- var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag3 : getTag_default(object), othTag = othIsArr ? arrayTag3 : getTag_default(other);
2108
- objTag = objTag == argsTag4 ? objectTag5 : objTag;
2109
- othTag = othTag == argsTag4 ? objectTag5 : othTag;
2110
- var objIsObj = objTag == objectTag5, othIsObj = othTag == objectTag5, isSameTag = objTag == othTag;
2111
- if (isSameTag && isBuffer_default(object)) {
2112
- if (!isBuffer_default(other)) {
2113
- return false;
2114
- }
2115
- objIsArr = true;
2116
- objIsObj = false;
2117
- }
2118
- if (isSameTag && !objIsObj) {
2119
- stack || (stack = new Stack_default());
2120
- return objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
2121
- }
2122
- if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
2123
- var objIsWrapped = objIsObj && hasOwnProperty13.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty13.call(other, "__wrapped__");
2124
- if (objIsWrapped || othIsWrapped) {
2125
- var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
2126
- stack || (stack = new Stack_default());
2127
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2128
- }
2129
- }
2130
- if (!isSameTag) {
2131
- return false;
2132
- }
2133
- stack || (stack = new Stack_default());
2134
- return equalObjects_default(object, other, bitmask, customizer, equalFunc, stack);
2135
- }
2136
- var baseIsEqualDeep_default = baseIsEqualDeep;
2137
-
2138
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js
2139
- function baseIsEqual(value, other, bitmask, customizer, stack) {
2140
- if (value === other) {
2141
- return true;
2142
- }
2143
- if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
2144
- return value !== value && other !== other;
2145
- }
2146
- return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
2147
- }
2148
- var baseIsEqual_default = baseIsEqual;
2149
-
2150
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.js
2151
- var COMPARE_PARTIAL_FLAG5 = 1;
2152
- var COMPARE_UNORDERED_FLAG3 = 2;
2153
- function baseIsMatch(object, source, matchData, customizer) {
2154
- var index = matchData.length, length = index, noCustomizer = !customizer;
2155
- if (object == null) {
2156
- return !length;
2157
- }
2158
- object = Object(object);
2159
- while (index--) {
2160
- var data = matchData[index];
2161
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
2162
- return false;
2163
- }
2164
- }
2165
- while (++index < length) {
2166
- data = matchData[index];
2167
- var key = data[0], objValue = object[key], srcValue = data[1];
2168
- if (noCustomizer && data[2]) {
2169
- if (objValue === void 0 && !(key in object)) {
2170
- return false;
2171
- }
2172
- } else {
2173
- var stack = new Stack_default();
2174
- if (customizer) {
2175
- var result = customizer(objValue, srcValue, key, object, source, stack);
2176
- }
2177
- if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) {
2178
- return false;
2179
- }
2180
- }
2181
- }
2182
- return true;
2183
- }
2184
- var baseIsMatch_default = baseIsMatch;
2185
-
2186
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.js
2187
- function isStrictComparable(value) {
2188
- return value === value && !isObject_default(value);
2189
- }
2190
- var isStrictComparable_default = isStrictComparable;
2191
-
2192
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.js
2193
- function getMatchData(object) {
2194
- var result = keys_default(object), length = result.length;
2195
- while (length--) {
2196
- var key = result[length], value = object[key];
2197
- result[length] = [key, value, isStrictComparable_default(value)];
2198
- }
2199
- return result;
2200
- }
2201
- var getMatchData_default = getMatchData;
2202
-
2203
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.js
2204
- function matchesStrictComparable(key, srcValue) {
2205
- return function(object) {
2206
- if (object == null) {
2207
- return false;
2208
- }
2209
- return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
2210
- };
2211
- }
2212
- var matchesStrictComparable_default = matchesStrictComparable;
2213
-
2214
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.js
2215
- function baseMatches(source) {
2216
- var matchData = getMatchData_default(source);
2217
- if (matchData.length == 1 && matchData[0][2]) {
2218
- return matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
2219
- }
2220
- return function(object) {
2221
- return object === source || baseIsMatch_default(object, source, matchData);
2222
- };
2223
- }
2224
- var baseMatches_default = baseMatches;
2225
-
2226
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js
2227
- function baseHasIn(object, key) {
2228
- return object != null && key in Object(object);
2229
- }
2230
- var baseHasIn_default = baseHasIn;
2231
-
2232
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js
2233
- function hasPath(object, path, hasFunc) {
2234
- path = castPath_default(path, object);
2235
- var index = -1, length = path.length, result = false;
2236
- while (++index < length) {
2237
- var key = toKey_default(path[index]);
2238
- if (!(result = object != null && hasFunc(object, key))) {
2239
- break;
2240
- }
2241
- object = object[key];
2242
- }
2243
- if (result || ++index != length) {
2244
- return result;
2245
- }
2246
- length = object == null ? 0 : object.length;
2247
- return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object));
2248
- }
2249
- var hasPath_default = hasPath;
2250
-
2251
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js
2252
- function hasIn(object, path) {
2253
- return object != null && hasPath_default(object, path, baseHasIn_default);
2254
- }
2255
- var hasIn_default = hasIn;
2256
-
2257
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.js
2258
- var COMPARE_PARTIAL_FLAG6 = 1;
2259
- var COMPARE_UNORDERED_FLAG4 = 2;
2260
- function baseMatchesProperty(path, srcValue) {
2261
- if (isKey_default(path) && isStrictComparable_default(srcValue)) {
2262
- return matchesStrictComparable_default(toKey_default(path), srcValue);
2263
- }
2264
- return function(object) {
2265
- var objValue = get_default(object, path);
2266
- return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
2267
- };
2268
- }
2269
- var baseMatchesProperty_default = baseMatchesProperty;
2270
-
2271
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.js
2272
- function baseProperty(key) {
2273
- return function(object) {
2274
- return object == null ? void 0 : object[key];
2275
- };
2276
- }
2277
- var baseProperty_default = baseProperty;
2278
-
2279
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.js
2280
- function basePropertyDeep(path) {
2281
- return function(object) {
2282
- return baseGet_default(object, path);
2283
- };
2284
- }
2285
- var basePropertyDeep_default = basePropertyDeep;
2286
-
2287
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.js
2288
- function property(path) {
2289
- return isKey_default(path) ? baseProperty_default(toKey_default(path)) : basePropertyDeep_default(path);
2290
- }
2291
- var property_default = property;
2292
-
2293
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.js
2294
- function baseIteratee(value) {
2295
- if (typeof value == "function") {
2296
- return value;
2297
- }
2298
- if (value == null) {
2299
- return identity_default;
2300
- }
2301
- if (typeof value == "object") {
2302
- return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value);
2303
- }
2304
- return property_default(value);
2305
- }
2306
- var baseIteratee_default = baseIteratee;
2307
-
2308
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayAggregator.js
2309
- function arrayAggregator(array, setter, iteratee, accumulator) {
2310
- var index = -1, length = array == null ? 0 : array.length;
2311
- while (++index < length) {
2312
- var value = array[index];
2313
- setter(accumulator, value, iteratee(value), array);
2314
- }
2315
- return accumulator;
2316
- }
2317
- var arrayAggregator_default = arrayAggregator;
2318
-
2319
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
2320
- function createBaseFor(fromRight) {
2321
- return function(object, iteratee, keysFunc) {
2322
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
2323
- while (length--) {
2324
- var key = props[fromRight ? length : ++index];
2325
- if (iteratee(iterable[key], key, iterable) === false) {
2326
- break;
2327
- }
2328
- }
2329
- return object;
2330
- };
2331
- }
2332
- var createBaseFor_default = createBaseFor;
2333
-
2334
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
2335
- var baseFor = createBaseFor_default();
2336
- var baseFor_default = baseFor;
2337
-
2338
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js
2339
- function baseForOwn(object, iteratee) {
2340
- return object && baseFor_default(object, iteratee, keys_default);
2341
- }
2342
- var baseForOwn_default = baseForOwn;
2343
-
2344
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.js
2345
- function createBaseEach(eachFunc, fromRight) {
2346
- return function(collection, iteratee) {
2347
- if (collection == null) {
2348
- return collection;
2349
- }
2350
- if (!isArrayLike_default(collection)) {
2351
- return eachFunc(collection, iteratee);
2352
- }
2353
- var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
2354
- while (fromRight ? index-- : ++index < length) {
2355
- if (iteratee(iterable[index], index, iterable) === false) {
2356
- break;
2357
- }
2358
- }
2359
- return collection;
2360
- };
2361
- }
2362
- var createBaseEach_default = createBaseEach;
2363
-
2364
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.js
2365
- var baseEach = createBaseEach_default(baseForOwn_default);
2366
- var baseEach_default = baseEach;
2367
-
2368
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAggregator.js
2369
- function baseAggregator(collection, setter, iteratee, accumulator) {
2370
- baseEach_default(collection, function(value, key, collection2) {
2371
- setter(accumulator, value, iteratee(value), collection2);
2372
- });
2373
- return accumulator;
2374
- }
2375
- var baseAggregator_default = baseAggregator;
2376
-
2377
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAggregator.js
2378
- function createAggregator(setter, initializer) {
2379
- return function(collection, iteratee) {
2380
- var func = isArray_default(collection) ? arrayAggregator_default : baseAggregator_default, accumulator = initializer ? initializer() : {};
2381
- return func(collection, setter, baseIteratee_default(iteratee, 2), accumulator);
2382
- };
2383
- }
2384
- var createAggregator_default = createAggregator;
2385
-
2386
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js
2387
- var now = function() {
2388
- return root_default.Date.now();
2389
- };
2390
- var now_default = now;
2391
-
2392
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js
2393
- var FUNC_ERROR_TEXT3 = "Expected a function";
2394
- var nativeMax3 = Math.max;
2395
- var nativeMin = Math.min;
2396
- function debounce(func, wait, options) {
2397
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
2398
- if (typeof func != "function") {
2399
- throw new TypeError(FUNC_ERROR_TEXT3);
2400
- }
2401
- wait = toNumber_default(wait) || 0;
2402
- if (isObject_default(options)) {
2403
- leading = !!options.leading;
2404
- maxing = "maxWait" in options;
2405
- maxWait = maxing ? nativeMax3(toNumber_default(options.maxWait) || 0, wait) : maxWait;
2406
- trailing = "trailing" in options ? !!options.trailing : trailing;
2407
- }
2408
- function invokeFunc(time) {
2409
- var args = lastArgs, thisArg = lastThis;
2410
- lastArgs = lastThis = void 0;
2411
- lastInvokeTime = time;
2412
- result = func.apply(thisArg, args);
2413
- return result;
2414
- }
2415
- function leadingEdge(time) {
2416
- lastInvokeTime = time;
2417
- timerId = setTimeout(timerExpired, wait);
2418
- return leading ? invokeFunc(time) : result;
2419
- }
2420
- function remainingWait(time) {
2421
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
2422
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
2423
- }
2424
- function shouldInvoke(time) {
2425
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
2426
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
2427
- }
2428
- function timerExpired() {
2429
- var time = now_default();
2430
- if (shouldInvoke(time)) {
2431
- return trailingEdge(time);
2432
- }
2433
- timerId = setTimeout(timerExpired, remainingWait(time));
2434
- }
2435
- function trailingEdge(time) {
2436
- timerId = void 0;
2437
- if (trailing && lastArgs) {
2438
- return invokeFunc(time);
2439
- }
2440
- lastArgs = lastThis = void 0;
2441
- return result;
2442
- }
2443
- function cancel() {
2444
- if (timerId !== void 0) {
2445
- clearTimeout(timerId);
2446
- }
2447
- lastInvokeTime = 0;
2448
- lastArgs = lastCallTime = lastThis = timerId = void 0;
2449
- }
2450
- function flush() {
2451
- return timerId === void 0 ? result : trailingEdge(now_default());
2452
- }
2453
- function debounced() {
2454
- var time = now_default(), isInvoking = shouldInvoke(time);
2455
- lastArgs = arguments;
2456
- lastThis = this;
2457
- lastCallTime = time;
2458
- if (isInvoking) {
2459
- if (timerId === void 0) {
2460
- return leadingEdge(lastCallTime);
2461
- }
2462
- if (maxing) {
2463
- clearTimeout(timerId);
2464
- timerId = setTimeout(timerExpired, wait);
2465
- return invokeFunc(lastCallTime);
2466
- }
2467
- }
2468
- if (timerId === void 0) {
2469
- timerId = setTimeout(timerExpired, wait);
2470
- }
2471
- return result;
2472
- }
2473
- debounced.cancel = cancel;
2474
- debounced.flush = flush;
2475
- return debounced;
2476
- }
2477
- var debounce_default = debounce;
2478
-
2479
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js
2480
- function assignMergeValue(object, key, value) {
2481
- if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
2482
- baseAssignValue_default(object, key, value);
2483
- }
2484
- }
2485
- var assignMergeValue_default = assignMergeValue;
2486
-
2487
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.js
2488
- function isArrayLikeObject(value) {
2489
- return isObjectLike_default(value) && isArrayLike_default(value);
2490
- }
2491
- var isArrayLikeObject_default = isArrayLikeObject;
2492
-
2493
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js
2494
- function safeGet(object, key) {
2495
- if (key === "constructor" && typeof object[key] === "function") {
2496
- return;
2497
- }
2498
- if (key == "__proto__") {
2499
- return;
2500
- }
2501
- return object[key];
2502
- }
2503
- var safeGet_default = safeGet;
2504
-
2505
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.js
2506
- function toPlainObject(value) {
2507
- return copyObject_default(value, keysIn_default(value));
2508
- }
2509
- var toPlainObject_default = toPlainObject;
2510
-
2511
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.js
2512
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
2513
- var objValue = safeGet_default(object, key), srcValue = safeGet_default(source, key), stacked = stack.get(srcValue);
2514
- if (stacked) {
2515
- assignMergeValue_default(object, key, stacked);
2516
- return;
2517
- }
2518
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
2519
- var isCommon = newValue === void 0;
2520
- if (isCommon) {
2521
- var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue);
2522
- newValue = srcValue;
2523
- if (isArr || isBuff || isTyped) {
2524
- if (isArray_default(objValue)) {
2525
- newValue = objValue;
2526
- } else if (isArrayLikeObject_default(objValue)) {
2527
- newValue = copyArray_default(objValue);
2528
- } else if (isBuff) {
2529
- isCommon = false;
2530
- newValue = cloneBuffer_default(srcValue, true);
2531
- } else if (isTyped) {
2532
- isCommon = false;
2533
- newValue = cloneTypedArray_default(srcValue, true);
2534
- } else {
2535
- newValue = [];
2536
- }
2537
- } else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) {
2538
- newValue = objValue;
2539
- if (isArguments_default(objValue)) {
2540
- newValue = toPlainObject_default(objValue);
2541
- } else if (!isObject_default(objValue) || isFunction_default(objValue)) {
2542
- newValue = initCloneObject_default(srcValue);
2543
- }
2544
- } else {
2545
- isCommon = false;
2546
- }
2547
- }
2548
- if (isCommon) {
2549
- stack.set(srcValue, newValue);
2550
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
2551
- stack["delete"](srcValue);
2552
- }
2553
- assignMergeValue_default(object, key, newValue);
2554
- }
2555
- var baseMergeDeep_default = baseMergeDeep;
2556
-
2557
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.js
2558
- function baseMerge(object, source, srcIndex, customizer, stack) {
2559
- if (object === source) {
2560
- return;
2561
- }
2562
- baseFor_default(source, function(srcValue, key) {
2563
- stack || (stack = new Stack_default());
2564
- if (isObject_default(srcValue)) {
2565
- baseMergeDeep_default(object, source, key, srcIndex, baseMerge, customizer, stack);
2566
- } else {
2567
- var newValue = customizer ? customizer(safeGet_default(object, key), srcValue, key + "", object, source, stack) : void 0;
2568
- if (newValue === void 0) {
2569
- newValue = srcValue;
2570
- }
2571
- assignMergeValue_default(object, key, newValue);
2572
- }
2573
- }, keysIn_default);
2574
- }
2575
- var baseMerge_default = baseMerge;
2576
-
2577
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js
2578
- var mergeWith = createAssigner_default(function(object, source, srcIndex, customizer) {
2579
- baseMerge_default(object, source, srcIndex, customizer);
2580
- });
2581
- var mergeWith_default = mergeWith;
2582
-
2583
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js
2584
- function arrayIncludesWith(array, value, comparator) {
2585
- var index = -1, length = array == null ? 0 : array.length;
2586
- while (++index < length) {
2587
- if (comparator(value, array[index])) {
2588
- return true;
2589
- }
2590
- }
2591
- return false;
2592
- }
2593
- var arrayIncludesWith_default = arrayIncludesWith;
2594
-
2595
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/last.js
2596
- function last(array) {
2597
- var length = array == null ? 0 : array.length;
2598
- return length ? array[length - 1] : void 0;
2599
- }
2600
- var last_default = last;
2601
-
2602
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createFind.js
2603
- function createFind(findIndexFunc) {
2604
- return function(collection, predicate, fromIndex) {
2605
- var iterable = Object(collection);
2606
- if (!isArrayLike_default(collection)) {
2607
- var iteratee = baseIteratee_default(predicate, 3);
2608
- collection = keys_default(collection);
2609
- predicate = function(key) {
2610
- return iteratee(iterable[key], key, iterable);
2611
- };
2612
- }
2613
- var index = findIndexFunc(collection, predicate, fromIndex);
2614
- return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
2615
- };
2616
- }
2617
- var createFind_default = createFind;
2618
-
2619
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/findIndex.js
2620
- var nativeMax4 = Math.max;
2621
- function findIndex(array, predicate, fromIndex) {
2622
- var length = array == null ? 0 : array.length;
2623
- if (!length) {
2624
- return -1;
2625
- }
2626
- var index = fromIndex == null ? 0 : toInteger_default(fromIndex);
2627
- if (index < 0) {
2628
- index = nativeMax4(length + index, 0);
2629
- }
2630
- return baseFindIndex_default(array, baseIteratee_default(predicate, 3), index);
2631
- }
2632
- var findIndex_default = findIndex;
2633
-
2634
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/find.js
2635
- var find = createFind_default(findIndex_default);
2636
- var find_default = find;
2637
-
2638
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/groupBy.js
2639
- var objectProto17 = Object.prototype;
2640
- var hasOwnProperty14 = objectProto17.hasOwnProperty;
2641
- var groupBy = createAggregator_default(function(result, value, key) {
2642
- if (hasOwnProperty14.call(result, key)) {
2643
- result[key].push(value);
2644
- } else {
2645
- baseAssignValue_default(result, key, [value]);
2646
- }
2647
- });
2648
- var groupBy_default = groupBy;
2649
-
2650
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGt.js
2651
- function baseGt(value, other) {
2652
- return value > other;
2653
- }
2654
- var baseGt_default = baseGt;
2655
-
2656
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js
2657
- var stringTag5 = "[object String]";
2658
- function isString(value) {
2659
- return typeof value == "string" || !isArray_default(value) && isObjectLike_default(value) && baseGetTag_default(value) == stringTag5;
2660
- }
2661
- var isString_default = isString;
2662
-
2663
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseValues.js
2664
- function baseValues(object, props) {
2665
- return arrayMap_default(props, function(key) {
2666
- return object[key];
2667
- });
2668
- }
2669
- var baseValues_default = baseValues;
2670
-
2671
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/values.js
2672
- function values(object) {
2673
- return object == null ? [] : baseValues_default(object, keys_default(object));
2674
- }
2675
- var values_default = values;
2676
-
2677
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_parent.js
2678
- function parent(object, path) {
2679
- return path.length < 2 ? object : baseGet_default(object, baseSlice_default(path, 0, -1));
2680
- }
2681
- var parent_default = parent;
2682
-
2683
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArrayBuffer.js
2684
- var arrayBufferTag5 = "[object ArrayBuffer]";
2685
- function baseIsArrayBuffer(value) {
2686
- return isObjectLike_default(value) && baseGetTag_default(value) == arrayBufferTag5;
2687
- }
2688
- var baseIsArrayBuffer_default = baseIsArrayBuffer;
2689
-
2690
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayBuffer.js
2691
- var nodeIsArrayBuffer = nodeUtil_default && nodeUtil_default.isArrayBuffer;
2692
- var isArrayBuffer = nodeIsArrayBuffer ? baseUnary_default(nodeIsArrayBuffer) : baseIsArrayBuffer_default;
2693
- var isArrayBuffer_default = isArrayBuffer;
2694
-
2695
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBoolean.js
2696
- var boolTag5 = "[object Boolean]";
2697
- function isBoolean(value) {
2698
- return value === true || value === false || isObjectLike_default(value) && baseGetTag_default(value) == boolTag5;
2699
- }
2700
- var isBoolean_default = isBoolean;
2701
-
2702
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsDate.js
2703
- var dateTag5 = "[object Date]";
2704
- function baseIsDate(value) {
2705
- return isObjectLike_default(value) && baseGetTag_default(value) == dateTag5;
2706
- }
2707
- var baseIsDate_default = baseIsDate;
2708
-
2709
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isDate.js
2710
- var nodeIsDate = nodeUtil_default && nodeUtil_default.isDate;
2711
- var isDate = nodeIsDate ? baseUnary_default(nodeIsDate) : baseIsDate_default;
2712
- var isDate_default = isDate;
2713
-
2714
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isElement.js
2715
- function isElement(value) {
2716
- return isObjectLike_default(value) && value.nodeType === 1 && !isPlainObject_default(value);
2717
- }
2718
- var isElement_default = isElement;
2719
-
2720
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.js
2721
- var mapTag7 = "[object Map]";
2722
- var setTag7 = "[object Set]";
2723
- var objectProto18 = Object.prototype;
2724
- var hasOwnProperty15 = objectProto18.hasOwnProperty;
2725
- function isEmpty(value) {
2726
- if (value == null) {
2727
- return true;
2728
- }
2729
- if (isArrayLike_default(value) && (isArray_default(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer_default(value) || isTypedArray_default(value) || isArguments_default(value))) {
2730
- return !value.length;
2731
- }
2732
- var tag = getTag_default(value);
2733
- if (tag == mapTag7 || tag == setTag7) {
2734
- return !value.size;
2735
- }
2736
- if (isPrototype_default(value)) {
2737
- return !baseKeys_default(value).length;
2738
- }
2739
- for (var key in value) {
2740
- if (hasOwnProperty15.call(value, key)) {
2741
- return false;
2742
- }
2743
- }
2744
- return true;
2745
- }
2746
- var isEmpty_default = isEmpty;
2747
-
2748
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js
2749
- function isEqual(value, other) {
2750
- return baseIsEqual_default(value, other);
2751
- }
2752
- var isEqual_default = isEqual;
2753
-
2754
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.js
2755
- function isEqualWith(value, other, customizer) {
2756
- customizer = typeof customizer == "function" ? customizer : void 0;
2757
- var result = customizer ? customizer(value, other) : void 0;
2758
- return result === void 0 ? baseIsEqual_default(value, other, void 0, customizer) : !!result;
2759
- }
2760
- var isEqualWith_default = isEqualWith;
2761
-
2762
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isInteger.js
2763
- function isInteger(value) {
2764
- return typeof value == "number" && value == toInteger_default(value);
2765
- }
2766
- var isInteger_default = isInteger;
2767
-
2768
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMatch.js
2769
- function isMatch(object, source) {
2770
- return object === source || baseIsMatch_default(object, source, getMatchData_default(source));
2771
- }
2772
- var isMatch_default = isMatch;
2773
-
2774
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMatchWith.js
2775
- function isMatchWith(object, source, customizer) {
2776
- customizer = typeof customizer == "function" ? customizer : void 0;
2777
- return baseIsMatch_default(object, source, getMatchData_default(source), customizer);
2778
- }
2779
- var isMatchWith_default = isMatchWith;
2780
-
2781
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNumber.js
2782
- var numberTag5 = "[object Number]";
2783
- function isNumber(value) {
2784
- return typeof value == "number" || isObjectLike_default(value) && baseGetTag_default(value) == numberTag5;
2785
- }
2786
- var isNumber_default = isNumber;
2787
-
2788
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNaN.js
2789
- function isNaN(value) {
2790
- return isNumber_default(value) && value != +value;
2791
- }
2792
- var isNaN_default = isNaN;
2793
-
2794
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMaskable.js
2795
- var isMaskable = coreJsData_default ? isFunction_default : stubFalse_default;
2796
- var isMaskable_default = isMaskable;
2797
-
2798
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNative.js
2799
- var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";
2800
- function isNative(value) {
2801
- if (isMaskable_default(value)) {
2802
- throw new Error(CORE_ERROR_TEXT);
2803
- }
2804
- return baseIsNative_default(value);
2805
- }
2806
- var isNative_default = isNative;
2807
-
2808
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isNull.js
2809
- function isNull2(value) {
2810
- return value === null;
2811
- }
2812
- var isNull_default = isNull2;
2813
-
2814
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsRegExp.js
2815
- var regexpTag5 = "[object RegExp]";
2816
- function baseIsRegExp(value) {
2817
- return isObjectLike_default(value) && baseGetTag_default(value) == regexpTag5;
2818
- }
2819
- var baseIsRegExp_default = baseIsRegExp;
2820
-
2821
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isRegExp.js
2822
- var nodeIsRegExp = nodeUtil_default && nodeUtil_default.isRegExp;
2823
- var isRegExp = nodeIsRegExp ? baseUnary_default(nodeIsRegExp) : baseIsRegExp_default;
2824
- var isRegExp_default = isRegExp;
2825
-
2826
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isUndefined.js
2827
- function isUndefined(value) {
2828
- return value === void 0;
2829
- }
2830
- var isUndefined_default = isUndefined;
2831
-
2832
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isWeakMap.js
2833
- var weakMapTag4 = "[object WeakMap]";
2834
- function isWeakMap(value) {
2835
- return isObjectLike_default(value) && getTag_default(value) == weakMapTag4;
2836
- }
2837
- var isWeakMap_default = isWeakMap;
2838
-
2839
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isWeakSet.js
2840
- var weakSetTag = "[object WeakSet]";
2841
- function isWeakSet(value) {
2842
- return isObjectLike_default(value) && baseGetTag_default(value) == weakSetTag;
2843
- }
2844
- var isWeakSet_default = isWeakSet;
2845
-
2846
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/join.js
2847
- var arrayProto2 = Array.prototype;
2848
- var nativeJoin = arrayProto2.join;
2849
- function join(array, separator) {
2850
- return array == null ? "" : nativeJoin.call(array, separator);
2851
- }
2852
- var join_default = join;
2853
-
2854
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keyBy.js
2855
- var keyBy = createAggregator_default(function(result, value, key) {
2856
- baseAssignValue_default(result, key, value);
2857
- });
2858
- var keyBy_default = keyBy;
2859
-
2860
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.js
2861
- function baseLt(value, other) {
2862
- return value < other;
2863
- }
2864
- var baseLt_default = baseLt;
2865
-
2866
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.js
2867
- function baseExtremum(array, iteratee, comparator) {
2868
- var index = -1, length = array.length;
2869
- while (++index < length) {
2870
- var value = array[index], current = iteratee(value);
2871
- if (current != null && (computed === void 0 ? current === current && !isSymbol_default(current) : comparator(current, computed))) {
2872
- var computed = current, result = value;
2873
- }
2874
- }
2875
- return result;
2876
- }
2877
- var baseExtremum_default = baseExtremum;
2878
-
2879
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/max.js
2880
- function max(array) {
2881
- return array && array.length ? baseExtremum_default(array, identity_default, baseGt_default) : void 0;
2882
- }
2883
- var max_default = max;
2884
-
2885
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/maxBy.js
2886
- function maxBy(array, iteratee) {
2887
- return array && array.length ? baseExtremum_default(array, baseIteratee_default(iteratee, 2), baseGt_default) : void 0;
2888
- }
2889
- var maxBy_default = maxBy;
2890
-
2891
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.js
2892
- var merge = createAssigner_default(function(object, source, srcIndex) {
2893
- baseMerge_default(object, source, srcIndex);
2894
- });
2895
- var merge_default = merge;
2896
-
2897
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.js
2898
- function min(array) {
2899
- return array && array.length ? baseExtremum_default(array, identity_default, baseLt_default) : void 0;
2900
- }
2901
- var min_default = min;
2902
-
2903
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/minBy.js
2904
- function minBy(array, iteratee) {
2905
- return array && array.length ? baseExtremum_default(array, baseIteratee_default(iteratee, 2), baseLt_default) : void 0;
2906
- }
2907
- var minBy_default = minBy;
2908
-
2909
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/negate.js
2910
- var FUNC_ERROR_TEXT4 = "Expected a function";
2911
- function negate(predicate) {
2912
- if (typeof predicate != "function") {
2913
- throw new TypeError(FUNC_ERROR_TEXT4);
2914
- }
2915
- return function() {
2916
- var args = arguments;
2917
- switch (args.length) {
2918
- case 0:
2919
- return !predicate.call(this);
2920
- case 1:
2921
- return !predicate.call(this, args[0]);
2922
- case 2:
2923
- return !predicate.call(this, args[0], args[1]);
2924
- case 3:
2925
- return !predicate.call(this, args[0], args[1], args[2]);
2926
- }
2927
- return !predicate.apply(this, args);
2928
- };
2929
- }
2930
- var negate_default = negate;
2931
-
2932
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnset.js
2933
- function baseUnset(object, path) {
2934
- path = castPath_default(path, object);
2935
- object = parent_default(object, path);
2936
- return object == null || delete object[toKey_default(last_default(path))];
2937
- }
2938
- var baseUnset_default = baseUnset;
2939
-
2940
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_customOmitClone.js
2941
- function customOmitClone(value) {
2942
- return isPlainObject_default(value) ? void 0 : value;
2943
- }
2944
- var customOmitClone_default = customOmitClone;
2945
-
2946
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/omit.js
2947
- var CLONE_DEEP_FLAG4 = 1;
2948
- var CLONE_FLAT_FLAG2 = 2;
2949
- var CLONE_SYMBOLS_FLAG6 = 4;
2950
- var omit = flatRest_default(function(object, paths) {
2951
- var result = {};
2952
- if (object == null) {
2953
- return result;
2954
- }
2955
- var isDeep = false;
2956
- paths = arrayMap_default(paths, function(path) {
2957
- path = castPath_default(path, object);
2958
- isDeep || (isDeep = path.length > 1);
2959
- return path;
2960
- });
2961
- copyObject_default(object, getAllKeysIn_default(object), result);
2962
- if (isDeep) {
2963
- result = baseClone_default(result, CLONE_DEEP_FLAG4 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG6, customOmitClone_default);
2964
- }
2965
- var length = paths.length;
2966
- while (length--) {
2967
- baseUnset_default(result, paths[length]);
2968
- }
2969
- return result;
2970
- });
2971
- var omit_default = omit;
2972
-
2973
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js
2974
- function baseSet(object, path, value, customizer) {
2975
- if (!isObject_default(object)) {
2976
- return object;
2977
- }
2978
- path = castPath_default(path, object);
2979
- var index = -1, length = path.length, lastIndex = length - 1, nested = object;
2980
- while (nested != null && ++index < length) {
2981
- var key = toKey_default(path[index]), newValue = value;
2982
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
2983
- return object;
2984
- }
2985
- if (index != lastIndex) {
2986
- var objValue = nested[key];
2987
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
2988
- if (newValue === void 0) {
2989
- newValue = isObject_default(objValue) ? objValue : isIndex_default(path[index + 1]) ? [] : {};
2990
- }
2991
- }
2992
- assignValue_default(nested, key, newValue);
2993
- nested = nested[key];
2994
- }
2995
- return object;
2996
- }
2997
- var baseSet_default = baseSet;
2998
-
2999
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePickBy.js
3000
- function basePickBy(object, paths, predicate) {
3001
- var index = -1, length = paths.length, result = {};
3002
- while (++index < length) {
3003
- var path = paths[index], value = baseGet_default(object, path);
3004
- if (predicate(value, path)) {
3005
- baseSet_default(result, castPath_default(path, object), value);
3006
- }
3007
- }
3008
- return result;
3009
- }
3010
- var basePickBy_default = basePickBy;
3011
-
3012
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pickBy.js
3013
- function pickBy(object, predicate) {
3014
- if (object == null) {
3015
- return {};
3016
- }
3017
- var props = arrayMap_default(getAllKeysIn_default(object), function(prop) {
3018
- return [prop];
3019
- });
3020
- predicate = baseIteratee_default(predicate);
3021
- return basePickBy_default(object, props, function(value, path) {
3022
- return predicate(value, path[0]);
3023
- });
3024
- }
3025
- var pickBy_default = pickBy;
3026
-
3027
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/omitBy.js
3028
- function omitBy(object, predicate) {
3029
- return pickBy_default(object, negate_default(baseIteratee_default(predicate)));
3030
- }
3031
- var omitBy_default = omitBy;
3032
-
3033
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/once.js
3034
- function once(func) {
3035
- return before_default(2, func);
3036
- }
3037
- var once_default = once;
3038
-
3039
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiSize.js
3040
- var asciiSize = baseProperty_default("length");
3041
- var asciiSize_default = asciiSize;
3042
-
3043
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeSize.js
3044
- var rsAstralRange3 = "\\ud800-\\udfff";
3045
- var rsComboMarksRange3 = "\\u0300-\\u036f";
3046
- var reComboHalfMarksRange3 = "\\ufe20-\\ufe2f";
3047
- var rsComboSymbolsRange3 = "\\u20d0-\\u20ff";
3048
- var rsComboRange3 = rsComboMarksRange3 + reComboHalfMarksRange3 + rsComboSymbolsRange3;
3049
- var rsVarRange3 = "\\ufe0e\\ufe0f";
3050
- var rsAstral2 = "[" + rsAstralRange3 + "]";
3051
- var rsCombo2 = "[" + rsComboRange3 + "]";
3052
- var rsFitz2 = "\\ud83c[\\udffb-\\udfff]";
3053
- var rsModifier2 = "(?:" + rsCombo2 + "|" + rsFitz2 + ")";
3054
- var rsNonAstral2 = "[^" + rsAstralRange3 + "]";
3055
- var rsRegional2 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
3056
- var rsSurrPair2 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
3057
- var rsZWJ3 = "\\u200d";
3058
- var reOptMod2 = rsModifier2 + "?";
3059
- var rsOptVar2 = "[" + rsVarRange3 + "]?";
3060
- var rsOptJoin2 = "(?:" + rsZWJ3 + "(?:" + [rsNonAstral2, rsRegional2, rsSurrPair2].join("|") + ")" + rsOptVar2 + reOptMod2 + ")*";
3061
- var rsSeq2 = rsOptVar2 + reOptMod2 + rsOptJoin2;
3062
- var rsSymbol2 = "(?:" + [rsNonAstral2 + rsCombo2 + "?", rsCombo2, rsRegional2, rsSurrPair2, rsAstral2].join("|") + ")";
3063
- var reUnicode2 = RegExp(rsFitz2 + "(?=" + rsFitz2 + ")|" + rsSymbol2 + rsSeq2, "g");
3064
- function unicodeSize(string) {
3065
- var result = reUnicode2.lastIndex = 0;
3066
- while (reUnicode2.test(string)) {
3067
- ++result;
3068
- }
3069
- return result;
3070
- }
3071
- var unicodeSize_default = unicodeSize;
3072
-
3073
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringSize.js
3074
- function stringSize(string) {
3075
- return hasUnicode_default(string) ? unicodeSize_default(string) : asciiSize_default(string);
3076
- }
3077
- var stringSize_default = stringSize;
3078
-
3079
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePick.js
3080
- function basePick(object, paths) {
3081
- return basePickBy_default(object, paths, function(value, path) {
3082
- return hasIn_default(object, path);
3083
- });
3084
- }
3085
- var basePick_default = basePick;
3086
-
3087
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pick.js
3088
- var pick = flatRest_default(function(object, paths) {
3089
- return object == null ? {} : basePick_default(object, paths);
3090
- });
3091
- var pick_default = pick;
3092
-
3093
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRange.js
3094
- var nativeCeil2 = Math.ceil;
3095
- var nativeMax5 = Math.max;
3096
- function baseRange(start, end, step, fromRight) {
3097
- var index = -1, length = nativeMax5(nativeCeil2((end - start) / (step || 1)), 0), result = Array(length);
3098
- while (length--) {
3099
- result[fromRight ? length : ++index] = start;
3100
- start += step;
3101
- }
3102
- return result;
3103
- }
3104
- var baseRange_default = baseRange;
3105
-
3106
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createRange.js
3107
- function createRange(fromRight) {
3108
- return function(start, end, step) {
3109
- if (step && typeof step != "number" && isIterateeCall_default(start, end, step)) {
3110
- end = step = void 0;
3111
- }
3112
- start = toFinite_default(start);
3113
- if (end === void 0) {
3114
- end = start;
3115
- start = 0;
3116
- } else {
3117
- end = toFinite_default(end);
3118
- }
3119
- step = step === void 0 ? start < end ? 1 : -1 : toFinite_default(step);
3120
- return baseRange_default(start, end, step, fromRight);
3121
- };
3122
- }
3123
- var createRange_default = createRange;
3124
-
3125
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/range.js
3126
- var range = createRange_default();
3127
- var range_default = range;
3128
-
3129
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.js
3130
- function set(object, path, value) {
3131
- return object == null ? object : baseSet_default(object, path, value);
3132
- }
3133
- var set_default = set;
3134
-
3135
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/truncate.js
3136
- var DEFAULT_TRUNC_LENGTH = 30;
3137
- var DEFAULT_TRUNC_OMISSION = "...";
3138
- var reFlags2 = /\w*$/;
3139
- function truncate(string, options) {
3140
- var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
3141
- if (isObject_default(options)) {
3142
- var separator = "separator" in options ? options.separator : separator;
3143
- length = "length" in options ? toInteger_default(options.length) : length;
3144
- omission = "omission" in options ? baseToString_default(options.omission) : omission;
3145
- }
3146
- string = toString_default(string);
3147
- var strLength = string.length;
3148
- if (hasUnicode_default(string)) {
3149
- var strSymbols = stringToArray_default(string);
3150
- strLength = strSymbols.length;
3151
- }
3152
- if (length >= strLength) {
3153
- return string;
3154
- }
3155
- var end = length - stringSize_default(omission);
3156
- if (end < 1) {
3157
- return omission;
3158
- }
3159
- var result = strSymbols ? castSlice_default(strSymbols, 0, end).join("") : string.slice(0, end);
3160
- if (separator === void 0) {
3161
- return result + omission;
3162
- }
3163
- if (strSymbols) {
3164
- end += result.length - end;
3165
- }
3166
- if (isRegExp_default(separator)) {
3167
- if (string.slice(end).search(separator)) {
3168
- var match, substring = result;
3169
- if (!separator.global) {
3170
- separator = RegExp(separator.source, toString_default(reFlags2.exec(separator)) + "g");
3171
- }
3172
- separator.lastIndex = 0;
3173
- while (match = separator.exec(substring)) {
3174
- var newEnd = match.index;
3175
- }
3176
- result = result.slice(0, newEnd === void 0 ? end : newEnd);
3177
- }
3178
- } else if (string.indexOf(baseToString_default(separator), end) != end) {
3179
- var index = result.lastIndexOf(separator);
3180
- if (index > -1) {
3181
- result = result.slice(0, index);
3182
- }
3183
- }
3184
- return result + omission;
3185
- }
3186
- var truncate_default = truncate;
3187
-
3188
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.js
3189
- var INFINITY4 = 1 / 0;
3190
- var createSet = !(Set_default && 1 / setToArray_default(new Set_default([, -0]))[1] == INFINITY4) ? noop_default : function(values2) {
3191
- return new Set_default(values2);
3192
- };
3193
- var createSet_default = createSet;
3194
-
3195
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js
3196
- var LARGE_ARRAY_SIZE2 = 200;
3197
- function baseUniq(array, iteratee, comparator) {
3198
- var index = -1, includes = arrayIncludes_default, length = array.length, isCommon = true, result = [], seen = result;
3199
- if (comparator) {
3200
- isCommon = false;
3201
- includes = arrayIncludesWith_default;
3202
- } else if (length >= LARGE_ARRAY_SIZE2) {
3203
- var set2 = iteratee ? null : createSet_default(array);
3204
- if (set2) {
3205
- return setToArray_default(set2);
3206
- }
3207
- isCommon = false;
3208
- includes = cacheHas_default;
3209
- seen = new SetCache_default();
3210
- } else {
3211
- seen = iteratee ? [] : result;
3212
- }
3213
- outer:
3214
- while (++index < length) {
3215
- var value = array[index], computed = iteratee ? iteratee(value) : value;
3216
- value = comparator || value !== 0 ? value : 0;
3217
- if (isCommon && computed === computed) {
3218
- var seenIndex = seen.length;
3219
- while (seenIndex--) {
3220
- if (seen[seenIndex] === computed) {
3221
- continue outer;
3222
- }
3223
- }
3224
- if (iteratee) {
3225
- seen.push(computed);
3226
- }
3227
- result.push(value);
3228
- } else if (!includes(seen, computed, comparator)) {
3229
- if (seen !== result) {
3230
- seen.push(computed);
3231
- }
3232
- result.push(value);
3233
- }
3234
- }
3235
- return result;
3236
- }
3237
- var baseUniq_default = baseUniq;
3238
-
3239
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniq.js
3240
- function uniq(array) {
3241
- return array && array.length ? baseUniq_default(array) : [];
3242
- }
3243
- var uniq_default = uniq;
3244
-
3245
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.js
3246
- function uniqBy(array, iteratee) {
3247
- return array && array.length ? baseUniq_default(array, baseIteratee_default(iteratee, 2)) : [];
3248
- }
3249
- var uniqBy_default = uniqBy;
3250
-
3251
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
3252
- function uniqWith(array, comparator) {
3253
- comparator = typeof comparator == "function" ? comparator : void 0;
3254
- return array && array.length ? baseUniq_default(array, void 0, comparator) : [];
3255
- }
3256
- var uniqWith_default = uniqWith;
3257
-
3258
- // src/is/index.ts
3259
- var isBrowser = () => typeof window !== "undefined";
3260
- var isWeex = () => typeof WXEnvironment !== "undefined" && !!WXEnvironment.platform;
3261
- var weexPlatform = () => isWeex() && WXEnvironment.platform.toLowerCase();
3262
- var UA = () => isBrowser() && window.navigator.userAgent.toLowerCase() || "";
3263
- var isIE = () => UA() && /msie|trident/.test(UA());
3264
- var isIE9 = () => UA() && UA().indexOf("msie 9.0") > 0;
3265
- var isIE11 = () => isBrowser() && navigator.userAgent.includes("Trident") && navigator.userAgent.includes("rv:11.0");
3266
- var isEdge = () => UA() && UA().indexOf("edge/") > 0;
3267
- var isAndroid = () => UA() && UA().indexOf("android") > 0 || weexPlatform() === "android";
3268
- var isIOS = () => UA() && /iphone|ipad|ipod|ios/.test(UA()) || weexPlatform() === "ios";
3269
- var isChrome = () => UA() && /chrome\/\d+/.test(UA()) && !isEdge();
3270
- var isPhantomJS = () => UA() && /phantomjs/.test(UA());
3271
- var isFF = () => typeof UA() === "string" && UA().match(/firefox\/(\d+)/);
3272
- var isMobile = () => isBrowser() && navigator.userAgent.toLowerCase().includes("mobile");
3273
- var isFormData = (value) => isObject_default(value) && isBrowser() && value instanceof FormData;
3274
- var isWindow = (value) => typeof window !== "undefined" && toString.call(value) === "[object Window]";
3275
- var isTruthy = (value) => Boolean(value);
3276
-
3277
- // ../../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js
3278
- var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
3279
- var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
3280
- var SPLIT_SEPARATE_NUMBER_RE = /(\d)\p{Ll}|(\p{L})\d/u;
3281
- var DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
3282
- var SPLIT_REPLACE_VALUE = "$1\0$2";
3283
- var DEFAULT_PREFIX_SUFFIX_CHARACTERS = "";
3284
- function split(value) {
3285
- let result = value.trim();
3286
- result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
3287
- result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
3288
- let start = 0;
3289
- let end = result.length;
3290
- while (result.charAt(start) === "\0")
3291
- start++;
3292
- if (start === end)
3293
- return [];
3294
- while (result.charAt(end - 1) === "\0")
3295
- end--;
3296
- return result.slice(start, end).split(/\0/g);
3297
- }
3298
- function splitSeparateNumbers(value) {
3299
- const words = split(value);
3300
- for (let i = 0; i < words.length; i++) {
3301
- const word = words[i];
3302
- const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);
3303
- if (match) {
3304
- const offset = match.index + (match[1] ?? match[2]).length;
3305
- words.splice(i, 1, word.slice(0, offset), word.slice(offset));
3306
- }
3307
- }
3308
- return words;
3309
- }
3310
- function noCase(input, options) {
3311
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
3312
- return prefix + words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? " ") + suffix;
3313
- }
3314
- function camelCase(input, options) {
3315
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
3316
- const lower = lowerFactory(options?.locale);
3317
- const upper = upperFactory(options?.locale);
3318
- const transform = options?.mergeAmbiguousCharacters ? capitalCaseTransformFactory(lower, upper) : pascalCaseTransformFactory(lower, upper);
3319
- return prefix + words.map((word, index) => {
3320
- if (index === 0)
3321
- return lower(word);
3322
- return transform(word, index);
3323
- }).join(options?.delimiter ?? "") + suffix;
3324
- }
3325
- function pascalCase(input, options) {
3326
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
3327
- const lower = lowerFactory(options?.locale);
3328
- const upper = upperFactory(options?.locale);
3329
- const transform = options?.mergeAmbiguousCharacters ? capitalCaseTransformFactory(lower, upper) : pascalCaseTransformFactory(lower, upper);
3330
- return prefix + words.map(transform).join(options?.delimiter ?? "") + suffix;
3331
- }
3332
- function pascalSnakeCase(input, options) {
3333
- return capitalCase(input, { delimiter: "_", ...options });
3334
- }
3335
- function capitalCase(input, options) {
3336
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
3337
- const lower = lowerFactory(options?.locale);
3338
- const upper = upperFactory(options?.locale);
3339
- return prefix + words.map(capitalCaseTransformFactory(lower, upper)).join(options?.delimiter ?? " ") + suffix;
3340
- }
3341
- function constantCase(input, options) {
3342
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
3343
- return prefix + words.map(upperFactory(options?.locale)).join(options?.delimiter ?? "_") + suffix;
3344
- }
3345
- function dotCase(input, options) {
3346
- return noCase(input, { delimiter: ".", ...options });
3347
- }
3348
- function kebabCase(input, options) {
3349
- return noCase(input, { delimiter: "-", ...options });
3350
- }
3351
- function pathCase(input, options) {
3352
- return noCase(input, { delimiter: "/", ...options });
3353
- }
3354
- function sentenceCase(input, options) {
3355
- const [prefix, words, suffix] = splitPrefixSuffix(input, options);
3356
- const lower = lowerFactory(options?.locale);
3357
- const upper = upperFactory(options?.locale);
3358
- const transform = capitalCaseTransformFactory(lower, upper);
3359
- return prefix + words.map((word, index) => {
3360
- if (index === 0)
3361
- return transform(word);
3362
- return lower(word);
3363
- }).join(options?.delimiter ?? " ") + suffix;
3364
- }
3365
- function snakeCase(input, options) {
3366
- return noCase(input, { delimiter: "_", ...options });
3367
- }
3368
- function trainCase(input, options) {
3369
- return capitalCase(input, { delimiter: "-", ...options });
3370
- }
3371
- function lowerFactory(locale) {
3372
- return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
3373
- }
3374
- function upperFactory(locale) {
3375
- return locale === false ? (input) => input.toUpperCase() : (input) => input.toLocaleUpperCase(locale);
3376
- }
3377
- function capitalCaseTransformFactory(lower, upper) {
3378
- return (word) => `${upper(word[0])}${lower(word.slice(1))}`;
3379
- }
3380
- function pascalCaseTransformFactory(lower, upper) {
3381
- return (word, index) => {
3382
- const char0 = word[0];
3383
- const initial = index > 0 && char0 >= "0" && char0 <= "9" ? "_" + char0 : upper(char0);
3384
- return initial + lower(word.slice(1));
3385
- };
3386
- }
3387
- function splitPrefixSuffix(input, options = {}) {
3388
- const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);
3389
- const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
3390
- const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
3391
- let prefixIndex = 0;
3392
- let suffixIndex = input.length;
3393
- while (prefixIndex < input.length) {
3394
- const char = input.charAt(prefixIndex);
3395
- if (!prefixCharacters.includes(char))
3396
- break;
3397
- prefixIndex++;
3398
- }
3399
- while (suffixIndex > prefixIndex) {
3400
- const index = suffixIndex - 1;
3401
- const char = input.charAt(index);
3402
- if (!suffixCharacters.includes(char))
3403
- break;
3404
- suffixIndex = index;
3405
- }
3406
- return [
3407
- input.slice(0, prefixIndex),
3408
- splitFn(input.slice(prefixIndex, suffixIndex)),
3409
- input.slice(suffixIndex)
3410
- ];
3411
- }
3412
-
3413
- // src/number/index.ts
3414
- import _Bignumber from "bignumber.js";
3415
-
3416
- // src/util/compose-promise.ts
3417
- function pCompose(...fns) {
3418
- if (fns.length === 0)
3419
- throw new Error("Expected at least one argument");
3420
- return async (input) => {
3421
- let value = input;
3422
- for (const fn of fns.reverse())
3423
- value = await fn(value);
3424
- return value;
3425
- };
3426
- }
3427
-
3428
- // src/util/compose.ts
3429
- function compose(...fns) {
3430
- const fn = fns.pop();
3431
- return fns.reduceRight((v, f) => f(v), fn);
3432
- }
3433
- compose.promise = pCompose;
3434
-
3435
- // src/util/noop.ts
3436
- var noop2 = () => {
3437
- };
3438
-
3439
- // src/util/deferred.ts
3440
- var Deferred = class extends Promise {
3441
- resolve;
3442
- reject;
3443
- constructor(executor = noop2) {
3444
- let _resolve, _reject;
3445
- super((resolve_, reject_) => {
3446
- _resolve = resolve_;
3447
- _reject = reject_;
3448
- return executor(resolve_, reject_);
3449
- });
3450
- this.resolve = (value) => {
3451
- _resolve(value);
3452
- return this;
3453
- };
3454
- this.reject = (reason) => {
3455
- _reject(reason);
3456
- return this;
3457
- };
3458
- }
3459
- };
3460
-
3461
- // src/util/delay.ts
3462
- function delay(ms) {
3463
- return new Promise((resolve) => setTimeout(resolve, ms));
3464
- }
3465
-
3466
- // src/util/json.ts
3467
- function tryParseJson(text) {
3468
- try {
3469
- return JSON.parse(text || "");
3470
- } catch {
3471
- return void 0;
3472
- }
3473
- }
3474
-
3475
- // src/util/loop.ts
3476
- function loop_return(fn) {
3477
- async function next(ms) {
3478
- await delay(ms);
3479
- return fn(next);
3480
- }
3481
- return fn(next);
3482
- }
3483
- function loop(fn) {
3484
- let looping = true;
3485
- async function next(ms) {
3486
- if (!looping)
3487
- return;
3488
- await delay(ms);
3489
- return fn(next);
3490
- }
3491
- function cancel() {
3492
- looping = false;
3493
- }
3494
- fn(next);
3495
- return cancel;
3496
- }
3497
- loop.return = loop_return;
3498
-
3499
- // src/util/pipe-promise.ts
3500
- function pPipe(...fns) {
3501
- if (fns.length === 0)
3502
- throw new Error("Expected at least one argument");
3503
- return async (input) => {
3504
- let value = input;
3505
- for (const fn of fns)
3506
- value = await fn(value);
3507
- return value;
3508
- };
3509
- }
3510
-
3511
- // src/util/pipe.ts
3512
- function pipe(...fns) {
3513
- return fns.reduce((v, f) => f(v));
3514
- }
3515
- pipe.promise = pPipe;
3516
-
3517
- // src/util/proxy.ts
3518
- function proxy(initObject, initExtend, options) {
3519
- initObject && Reflect.set(initObject, "__proxy_updated", true);
3520
- let target = initObject || { __proxy_updated: false };
3521
- const extended = initExtend || {};
3522
- const proxy2 = {
3523
- update(object) {
3524
- if (!object) {
3525
- target = void 0;
3526
- return;
3527
- }
3528
- Reflect.set(object, "__proxy_updated", true);
3529
- target = object;
3530
- },
3531
- get source() {
3532
- return Reflect.get(target, "__proxy_updated") ? target : void 0;
3533
- },
3534
- strictMessage: options?.strictMessage || "Proxy not updated. Call object.proxy.update() to update the proxy."
3535
- };
3536
- const proxyed = new Proxy({}, {
3537
- get: (_, p) => {
3538
- if (p === "proxy")
3539
- return proxy2;
3540
- if (p in extended)
3541
- return Reflect.get(extended, p);
3542
- if (!Reflect.get(target, "__proxy_updated"))
3543
- throw new Error(proxy2.strictMessage);
3544
- return typeof target?.[p] === "function" ? target?.[p].bind(target) : target?.[p];
3545
- },
3546
- set: (_, p, v) => {
3547
- if (p in extended)
3548
- return Reflect.set(extended, p, v);
3549
- target[p] = v;
3550
- return true;
3551
- }
3552
- });
3553
- return proxyed;
3554
- }
3555
-
3556
- // src/util/random.ts
3557
- function randomItem(array) {
3558
- return array[Math.floor(Math.random() * array.length)];
3559
- }
3560
- function randomNumber(min2, max2) {
3561
- return Math.random() * (max2 - min2) + min2;
3562
- }
3563
- var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3564
- function randomString(size2 = 10, chars = urlAlphabet) {
3565
- let id = "";
3566
- let i = size2;
3567
- const len = chars.length;
3568
- while (i--)
3569
- id += chars[Math.random() * len | 0];
3570
- return id;
3571
- }
3572
-
3573
- // src/util/serialized.ts
3574
- function formdataToObject(formData) {
3575
- return Object.fromEntries(formData.entries());
3576
- }
3577
- function objectToFormdata(object) {
3578
- const formdata = new FormData();
3579
- for (const [key, value] of Object.entries(object))
3580
- formdata.set(key, value);
3581
- return formdata;
3582
- }
3583
- function nonnanable(value) {
3584
- return Number.isNaN(Number(value)) ? void 0 : value;
3585
- }
3586
- function numberify(value) {
3587
- return Number.isNaN(Number(value)) ? 0 : Number(value);
3588
- }
3589
- function stringify(value) {
3590
- return String(value);
3591
- }
3592
- function numberish(value) {
3593
- if (value === void 0 || value === null)
3594
- return "0";
3595
- if (Number.isNaN(Number(value)))
3596
- return "0";
3597
- return value.toString();
3598
- }
3599
-
3600
- // src/util/to.ts
3601
- async function to(promise, error) {
3602
- return (isFunction_default(promise) ? promise() : promise).then((data) => [null, data]).catch((err) => {
3603
- if (error) {
3604
- const parsedError = Object.assign({}, err, error);
3605
- return [parsedError, void 0];
3606
- }
3607
- return [err, void 0];
3608
- });
3609
- }
3610
-
3611
- // src/util/to-array.ts
3612
- function toArray(value, required = false) {
3613
- if (!value)
3614
- return required === false ? void 0 : [];
3615
- return Array.isArray(value) ? value : [value];
3616
- }
3617
-
3618
- // src/util/unit.ts
3619
- function unit(value, unit2 = "px") {
3620
- if (!(isString_default(value) || isNumber_default(value)))
3621
- return "";
3622
- value = String(value);
3623
- return /\D/.test(value) ? value : value + unit2;
3624
- }
3625
- var _unit = (value, _unit2) => unit(value, _unit2);
3626
- function size(dimension, unit2) {
3627
- const format = (value) => _unit(value, unit2);
3628
- if (typeof dimension === "string" || typeof dimension === "number")
3629
- return { width: format(dimension), height: format(dimension) };
3630
- if (Array.isArray(dimension))
3631
- return { width: format(dimension[0]), height: format(dimension[1]) };
3632
- if (typeof dimension === "object")
3633
- return { width: format(dimension.width), height: format(dimension.height) };
3634
- return { width: "", height: "" };
3635
- }
3636
-
3637
- // src/util/util.ts
3638
- var arange = range_default;
3639
- function select(...args) {
3640
- for (const [cond, value] of args) {
3641
- if (cond)
3642
- return value;
3643
- }
3644
- return void 0;
3645
- }
3646
- var riposte = select;
3647
- function unwrap(value) {
3648
- return typeof value === "function" ? value() : value;
3649
- }
3650
- function whenever(value, callback) {
3651
- return value ? callback(value) : void 0;
3652
- }
3653
- function call(fn, ...args) {
3654
- return fn(...args);
3655
- }
3656
-
3657
- // src/number/index.ts
3658
- var DEFAULT_BIGNUM_CONFIG = {
3659
- ROUNDING_MODE: _Bignumber.ROUND_UP,
3660
- DECIMAL_PLACES: 6
3661
- };
3662
- var Bignumber = _Bignumber.clone(DEFAULT_BIGNUM_CONFIG);
3663
- var BIG_INTS = {
3664
- t: { v: 10 ** 12, d: 13, n: "t" },
3665
- b: { v: 10 ** 9, d: 10, n: "b" },
3666
- m: { v: 10 ** 6, d: 7, n: "m" },
3667
- k: { v: 10 ** 3, d: 4, n: "k" }
3668
- };
3669
- function bignumber(n = "0", base) {
3670
- return new Bignumber(numberish(n), base);
3671
- }
3672
- bignumber.clone = function(config) {
3673
- return Bignumber.clone({ ...DEFAULT_BIGNUM_CONFIG, ...config });
3674
- };
3675
- function gte(a, b) {
3676
- return bignumber(a).gte(bignumber(b));
3677
- }
3678
- function gt(a, b) {
3679
- return bignumber(a).gt(bignumber(b));
3680
- }
3681
- function lte(a, b) {
3682
- return bignumber(a).lte(bignumber(b));
3683
- }
3684
- function lt(a, b) {
3685
- return bignumber(a).lt(bignumber(b));
3686
- }
3687
- function plus(array, options) {
3688
- const rounding = options?.r || Bignumber.ROUND_DOWN;
3689
- const decimal2 = options?.d || 6;
3690
- return array.filter((v) => bignumber(v).gt(0)).reduce((t, v) => t.plus(numberish(v)), bignumber(0)).toFixed(decimal2, rounding);
3691
- }
3692
- function divide(array, options) {
3693
- const rounding = options?.r || Bignumber.ROUND_DOWN;
3694
- const decimal2 = options?.d || 6;
3695
- return array.reduce((t, v) => t.div(bignumber(v)), bignumber(1)).toFixed(decimal2, rounding);
3696
- }
3697
- function multiply(array, options) {
3698
- const rounding = options?.r || Bignumber.ROUND_DOWN;
3699
- const decimal2 = options?.d || 6;
3700
- return array.reduce((t, v) => t.times(bignumber(v)), bignumber(1)).toFixed(decimal2, rounding);
3701
- }
3702
- function average(array, options) {
3703
- const rounding = options?.r || Bignumber.ROUND_DOWN;
3704
- const decimal2 = options?.d || 0;
3705
- if (array.length === 0)
3706
- return "0";
3707
- return bignumber(plus(array)).div(array.length).toFixed(decimal2, rounding);
3708
- }
3709
- function percentage(total, count, options) {
3710
- options ??= { d: 3, r: Bignumber.ROUND_DOWN };
3711
- const rounding = options?.r || Bignumber.ROUND_DOWN;
3712
- const decimal2 = options?.d || 3;
3713
- if (bignumber(total).lte(0) || bignumber(count).lte(0))
3714
- return "0";
3715
- return bignumber(count).div(bignumber(total)).times(100).toFixed(decimal2, rounding);
3716
- }
3717
- function zerofill(value, n = 2, type = "positive") {
3718
- const _value = integer(value);
3719
- if (_value.length >= n)
3720
- return value;
3721
- const zero = "0".repeat(n - _value.length);
3722
- if (type === "positive")
3723
- return zero + value;
3724
- if (type === "reverse")
3725
- return zero + value;
3726
- return "";
3727
- }
3728
- function zeroRemove(value, convert = true) {
3729
- const _value = convert ? numberish(value) : value || "";
3730
- return _value.toString().replace(/\.?0+$/, "");
3731
- }
3732
- function integer(value) {
3733
- return new Bignumber(numberish(value)).toFixed(0);
3734
- }
3735
- function decimal(value, n = 2) {
3736
- let [integer2, decimal2] = numberish(value).split(".");
3737
- if (n <= 0)
3738
- return integer2;
3739
- if (!decimal2)
3740
- decimal2 = "0";
3741
- decimal2 = decimal2.slice(0, n);
3742
- decimal2 = decimal2 + "0".repeat(n - decimal2.length);
3743
- return `${integer2}.${decimal2}`;
3744
- }
3745
- function parseNumeric(num, delimiters = ["t", "b", "m"]) {
3746
- const mappings = [
3747
- delimiters.includes("t") && ((n) => gte(n, BIG_INTS.t.v) && BIG_INTS.t),
3748
- delimiters.includes("b") && ((n) => gte(n, BIG_INTS.b.v) && lt(n, BIG_INTS.t.v) && BIG_INTS.b),
3749
- delimiters.includes("m") && ((n) => gte(n, BIG_INTS.m.v) && lt(n, BIG_INTS.b.v) && BIG_INTS.m),
3750
- delimiters.includes("k") && ((n) => gte(n, BIG_INTS.k.v) && lt(n, BIG_INTS.m.v) && BIG_INTS.k)
3751
- ];
3752
- let options;
3753
- for (const analy of mappings) {
3754
- const opts = analy && analy(bignumber(num).toFixed(0));
3755
- opts && (options = opts);
3756
- }
3757
- return options || { v: 1, d: 0, n: "" };
3758
- }
3759
- function formatNumeric(value = "0", options) {
3760
- if (options?.default && bignumber(value).isZero())
3761
- return options?.default;
3762
- const {
3763
- rounding = Bignumber.ROUND_DOWN,
3764
- delimiters,
3765
- format,
3766
- decimals = 2
3767
- } = options || {};
3768
- const config = parseNumeric(value, delimiters || []);
3769
- let number = bignumber(value).div(config.v).toFormat(decimals, rounding, {
3770
- decimalSeparator: ".",
3771
- groupSeparator: ",",
3772
- groupSize: 3,
3773
- secondaryGroupSize: 0,
3774
- fractionGroupSeparator: " ",
3775
- fractionGroupSize: 0,
3776
- ...format
3777
- });
3778
- number = options?.decimalsZero === false ? zeroRemove(number, false) : number;
3779
- return `${number}${config.n}`;
3780
- }
3781
-
3782
- // src/string/index.ts
3783
- function cover(value, mode, symbol = "*") {
3784
- return value.slice(0, mode[0]) + symbol.repeat(mode[1]) + value.slice(-mode[2]);
3785
- }
3786
- function shortenId(value, startWith = 6, endWith = 4) {
3787
- if (!value)
3788
- return "";
3789
- return `${value.slice(0, startWith)}...${value.slice(-endWith)}`;
3790
- }
3791
- function slash(str) {
3792
- return str.replace(/\\/g, "/");
3793
- }
3794
- function ensurePrefix(prefix, str) {
3795
- if (!str.startsWith(prefix))
3796
- return prefix + str;
3797
- return str;
3798
- }
3799
- function ensureSuffix(suffix, str) {
3800
- if (!str.endsWith(suffix))
3801
- return str + suffix;
3802
- return str;
3803
- }
3804
- function template(str, ...args) {
3805
- const [firstArg, fallback] = args;
3806
- if (isObject_default(firstArg)) {
3807
- const vars = firstArg;
3808
- return str.replace(/\{(\w+)\}/g, (_, key) => vars[key] || ((typeof fallback === "function" ? fallback(key) : fallback) ?? key));
3809
- } else {
3810
- return str.replace(/\{(\d+)\}/g, (_, key) => {
3811
- const index = Number(key);
3812
- if (Number.isNaN(index))
3813
- return key;
3814
- return args[index];
3815
- });
3816
- }
3817
- }
3818
- var _reFullWs = /^\s*$/;
3819
- function unindent(str) {
3820
- const lines = (typeof str === "string" ? str : str[0]).split("\n");
3821
- const whitespaceLines = lines.map((line) => _reFullWs.test(line));
3822
- const commonIndent = lines.reduce((min2, line, idx) => {
3823
- if (whitespaceLines[idx])
3824
- return min2;
3825
- const indent = line.match(/^\s*/)?.[0].length;
3826
- return indent === void 0 ? min2 : Math.min(min2, indent);
3827
- }, Number.POSITIVE_INFINITY);
3828
- let emptyLinesHead = 0;
3829
- while (emptyLinesHead < lines.length && whitespaceLines[emptyLinesHead])
3830
- emptyLinesHead++;
3831
- let emptyLinesTail = 0;
3832
- while (emptyLinesTail < lines.length && whitespaceLines[lines.length - emptyLinesTail - 1])
3833
- emptyLinesTail++;
3834
- return lines.slice(emptyLinesHead, lines.length - emptyLinesTail).map((line) => line.slice(commonIndent)).join("\n");
3835
- }
3836
- export {
3837
- BIG_INTS,
3838
- Bignumber,
3839
- DEFAULT_BIGNUM_CONFIG,
3840
- Deferred,
3841
- arange,
3842
- average,
3843
- bignumber,
3844
- call,
3845
- camelCase,
3846
- capitalCase,
3847
- chunk_default as chunk,
3848
- clone_default as clone,
3849
- cloneDeep_default as cloneDeep,
3850
- cloneDeepWith_default as cloneDeepWith,
3851
- cloneWith_default as cloneWith,
3852
- compose,
3853
- concat_default as concat,
3854
- constantCase,
3855
- cover,
3856
- debounce_default as debounce,
3857
- decimal,
3858
- delay,
3859
- dialsPhone,
3860
- divide,
3861
- dotCase,
3862
- downloadBlobFile,
3863
- downloadNetworkFile,
3864
- downloadUrlFile,
3865
- ensurePrefix,
3866
- ensureSuffix,
3867
- find_default as find,
3868
- formatNumeric,
3869
- formdataToObject,
3870
- get_default as get,
3871
- groupBy_default as groupBy,
3872
- gt,
3873
- gte,
3874
- integer,
3875
- isAndroid,
3876
- isArguments_default as isArguments,
3877
- isArray_default as isArray,
3878
- isArrayBuffer_default as isArrayBuffer,
3879
- isArrayLike_default as isArrayLike,
3880
- isArrayLikeObject_default as isArrayLikeObject,
3881
- isBoolean_default as isBoolean,
3882
- isBrowser,
3883
- isBuffer_default as isBuffer,
3884
- isChrome,
3885
- isDate_default as isDate,
3886
- isEdge,
3887
- isElement_default as isElement,
3888
- isEmpty_default as isEmpty,
3889
- isEqual_default as isEqual,
3890
- isEqualWith_default as isEqualWith,
3891
- isError_default as isError,
3892
- isFF,
3893
- isFormData,
3894
- isFunction_default as isFunction,
3895
- isIE,
3896
- isIE11,
3897
- isIE9,
3898
- isIOS,
3899
- isInteger_default as isInteger,
3900
- isMap_default as isMap,
3901
- isMatch_default as isMatch,
3902
- isMatchWith_default as isMatchWith,
3903
- isMobile,
3904
- isNaN_default as isNaN,
3905
- isNative_default as isNative,
3906
- isNull_default as isNull,
3907
- isNumber_default as isNumber,
3908
- isObject_default as isObject,
3909
- isObjectLike_default as isObjectLike,
3910
- isPhantomJS,
3911
- isPlainObject_default as isPlainObject,
3912
- isRegExp_default as isRegexp,
3913
- isSet_default as isSet,
3914
- isString_default as isString,
3915
- isSymbol_default as isSymbol,
3916
- isTruthy,
3917
- isUndefined_default as isUndefined,
3918
- isWeakMap_default as isWeakMap,
3919
- isWeakSet_default as isWeakSet,
3920
- isWeex,
3921
- isWindow,
3922
- join_default as join,
3923
- kebabCase,
3924
- keyBy_default as keyBy,
3925
- keys_default as keys,
3926
- loop,
3927
- lt,
3928
- lte,
3929
- max_default as max,
3930
- maxBy_default as maxBy,
3931
- merge_default as merge,
3932
- mergeWith_default as mergeWith,
3933
- min_default as min,
3934
- minBy_default as minBy,
3935
- multiply,
3936
- noCase,
3937
- nonnanable,
3938
- noop2 as noop,
3939
- numberify,
3940
- numberish,
3941
- objectToFormdata,
3942
- off,
3943
- omit_default as omit,
3944
- omitBy_default as omitBy,
3945
- on,
3946
- once_default as once,
3947
- openFilePicker,
3948
- openImagePicker,
3949
- parseNumeric,
3950
- pascalCase,
3951
- pascalSnakeCase,
3952
- pathCase,
3953
- percentage,
3954
- pick_default as pick,
3955
- pickBy_default as pickBy,
3956
- pipe,
3957
- plus,
3958
- proxy,
3959
- randomItem,
3960
- randomNumber,
3961
- randomString,
3962
- range_default as range,
3963
- readFileReader,
3964
- redirectTo,
3965
- riposte,
3966
- select,
3967
- selectImages,
3968
- sentenceCase,
3969
- set_default as set,
3970
- shortenId,
3971
- showOpenFilePicker,
3972
- showOpenImagePicker,
3973
- size,
3974
- slash,
3975
- snakeCase,
3976
- stringify,
3977
- template,
3978
- to,
3979
- toArray,
3980
- trainCase,
3981
- truncate_default as truncate,
3982
- tryParseJson,
3983
- unindent,
3984
- uniq_default as uniq,
3985
- uniqBy_default as uniqBy,
3986
- uniqWith_default as uniqWith,
3987
- unit,
3988
- unwrap,
3989
- values_default as values,
3990
- whenever,
3991
- zeroRemove,
3992
- zerofill
3993
- };
3994
- /*! Bundled license information:
3995
-
3996
- lodash-es/lodash.js:
3997
- (**
3998
- * @license
3999
- * Lodash (Custom Build) <https://lodash.com/>
4000
- * Build: `lodash modularize exports="es" -o ./`
4001
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
4002
- * Released under MIT license <https://lodash.com/license>
4003
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
4004
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
4005
- *)
4006
- */