@rspress/shared 0.0.0-next-20230926070920 → 0.0.0-next-20231020055855

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.mjs CHANGED
@@ -1,119 +1,3 @@
1
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
2
- function listCacheClear() {
3
- this.__data__ = [];
4
- this.size = 0;
5
- }
6
- var listCacheClear_default = listCacheClear;
7
-
8
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
9
- function eq(value, other) {
10
- return value === other || value !== value && other !== other;
11
- }
12
- var eq_default = eq;
13
-
14
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
15
- function assocIndexOf(array, key) {
16
- var length = array.length;
17
- while (length--) {
18
- if (eq_default(array[length][0], key)) {
19
- return length;
20
- }
21
- }
22
- return -1;
23
- }
24
- var assocIndexOf_default = assocIndexOf;
25
-
26
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
27
- var arrayProto = Array.prototype;
28
- var splice = arrayProto.splice;
29
- function listCacheDelete(key) {
30
- var data = this.__data__, index = assocIndexOf_default(data, key);
31
- if (index < 0) {
32
- return false;
33
- }
34
- var lastIndex = data.length - 1;
35
- if (index == lastIndex) {
36
- data.pop();
37
- } else {
38
- splice.call(data, index, 1);
39
- }
40
- --this.size;
41
- return true;
42
- }
43
- var listCacheDelete_default = listCacheDelete;
44
-
45
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
46
- function listCacheGet(key) {
47
- var data = this.__data__, index = assocIndexOf_default(data, key);
48
- return index < 0 ? void 0 : data[index][1];
49
- }
50
- var listCacheGet_default = listCacheGet;
51
-
52
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
53
- function listCacheHas(key) {
54
- return assocIndexOf_default(this.__data__, key) > -1;
55
- }
56
- var listCacheHas_default = listCacheHas;
57
-
58
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
59
- function listCacheSet(key, value) {
60
- var data = this.__data__, index = assocIndexOf_default(data, key);
61
- if (index < 0) {
62
- ++this.size;
63
- data.push([
64
- key,
65
- value
66
- ]);
67
- } else {
68
- data[index][1] = value;
69
- }
70
- return this;
71
- }
72
- var listCacheSet_default = listCacheSet;
73
-
74
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
75
- function ListCache(entries) {
76
- var index = -1, length = entries == null ? 0 : entries.length;
77
- this.clear();
78
- while (++index < length) {
79
- var entry = entries[index];
80
- this.set(entry[0], entry[1]);
81
- }
82
- }
83
- ListCache.prototype.clear = listCacheClear_default;
84
- ListCache.prototype["delete"] = listCacheDelete_default;
85
- ListCache.prototype.get = listCacheGet_default;
86
- ListCache.prototype.has = listCacheHas_default;
87
- ListCache.prototype.set = listCacheSet_default;
88
- var ListCache_default = ListCache;
89
-
90
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
91
- function stackClear() {
92
- this.__data__ = new ListCache_default();
93
- this.size = 0;
94
- }
95
- var stackClear_default = stackClear;
96
-
97
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
98
- function stackDelete(key) {
99
- var data = this.__data__, result = data["delete"](key);
100
- this.size = data.size;
101
- return result;
102
- }
103
- var stackDelete_default = stackDelete;
104
-
105
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
106
- function stackGet(key) {
107
- return this.__data__.get(key);
108
- }
109
- var stackGet_default = stackGet;
110
-
111
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
112
- function stackHas(key) {
113
- return this.__data__.has(key);
114
- }
115
- var stackHas_default = stackHas;
116
-
117
1
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
118
2
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
119
3
  var freeGlobal_default = freeGlobal;
@@ -171,6 +55,16 @@ function baseGetTag(value) {
171
55
  }
172
56
  var baseGetTag_default = baseGetTag;
173
57
 
58
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
59
+ function isObjectLike(value) {
60
+ return value != null && typeof value == "object";
61
+ }
62
+ var isObjectLike_default = isObjectLike;
63
+
64
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
65
+ var isArray = Array.isArray;
66
+ var isArray_default = isArray;
67
+
174
68
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
175
69
  function isObject(value) {
176
70
  var type = typeof value;
@@ -178,6 +72,12 @@ function isObject(value) {
178
72
  }
179
73
  var isObject_default = isObject;
180
74
 
75
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js
76
+ function identity(value) {
77
+ return value;
78
+ }
79
+ var identity_default = identity;
80
+
181
81
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
182
82
  var asyncTag = "[object AsyncFunction]";
183
83
  var funcTag = "[object Function]";
@@ -231,7 +131,9 @@ var funcProto2 = Function.prototype;
231
131
  var objectProto3 = Object.prototype;
232
132
  var funcToString2 = funcProto2.toString;
233
133
  var hasOwnProperty2 = objectProto3.hasOwnProperty;
234
- var reIsNative = RegExp("^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
134
+ var reIsNative = RegExp(
135
+ "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
136
+ );
235
137
  function baseIsNative(value) {
236
138
  if (!isObject_default(value) || isMasked_default(value)) {
237
139
  return false;
@@ -254,181 +156,81 @@ function getNative(object, key) {
254
156
  }
255
157
  var getNative_default = getNative;
256
158
 
257
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
258
- var Map = getNative_default(root_default, "Map");
259
- var Map_default = Map;
260
-
261
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
262
- var nativeCreate = getNative_default(Object, "create");
263
- var nativeCreate_default = nativeCreate;
264
-
265
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
266
- function hashClear() {
267
- this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
268
- this.size = 0;
269
- }
270
- var hashClear_default = hashClear;
271
-
272
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
273
- function hashDelete(key) {
274
- var result = this.has(key) && delete this.__data__[key];
275
- this.size -= result ? 1 : 0;
276
- return result;
277
- }
278
- var hashDelete_default = hashDelete;
279
-
280
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
281
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
282
- var objectProto4 = Object.prototype;
283
- var hasOwnProperty3 = objectProto4.hasOwnProperty;
284
- function hashGet(key) {
285
- var data = this.__data__;
286
- if (nativeCreate_default) {
287
- var result = data[key];
288
- return result === HASH_UNDEFINED ? void 0 : result;
159
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
160
+ var objectCreate = Object.create;
161
+ var baseCreate = function() {
162
+ function object() {
289
163
  }
290
- return hasOwnProperty3.call(data, key) ? data[key] : void 0;
291
- }
292
- var hashGet_default = hashGet;
293
-
294
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
295
- var objectProto5 = Object.prototype;
296
- var hasOwnProperty4 = objectProto5.hasOwnProperty;
297
- function hashHas(key) {
298
- var data = this.__data__;
299
- return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key);
300
- }
301
- var hashHas_default = hashHas;
164
+ return function(proto) {
165
+ if (!isObject_default(proto)) {
166
+ return {};
167
+ }
168
+ if (objectCreate) {
169
+ return objectCreate(proto);
170
+ }
171
+ object.prototype = proto;
172
+ var result = new object();
173
+ object.prototype = void 0;
174
+ return result;
175
+ };
176
+ }();
177
+ var baseCreate_default = baseCreate;
302
178
 
303
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
304
- var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
305
- function hashSet(key, value) {
306
- var data = this.__data__;
307
- this.size += this.has(key) ? 0 : 1;
308
- data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
309
- return this;
179
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js
180
+ function apply(func, thisArg, args) {
181
+ switch (args.length) {
182
+ case 0:
183
+ return func.call(thisArg);
184
+ case 1:
185
+ return func.call(thisArg, args[0]);
186
+ case 2:
187
+ return func.call(thisArg, args[0], args[1]);
188
+ case 3:
189
+ return func.call(thisArg, args[0], args[1], args[2]);
190
+ }
191
+ return func.apply(thisArg, args);
310
192
  }
311
- var hashSet_default = hashSet;
193
+ var apply_default = apply;
312
194
 
313
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
314
- function Hash(entries) {
315
- var index = -1, length = entries == null ? 0 : entries.length;
316
- this.clear();
195
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
196
+ function copyArray(source, array) {
197
+ var index = -1, length = source.length;
198
+ array || (array = Array(length));
317
199
  while (++index < length) {
318
- var entry = entries[index];
319
- this.set(entry[0], entry[1]);
200
+ array[index] = source[index];
320
201
  }
202
+ return array;
321
203
  }
322
- Hash.prototype.clear = hashClear_default;
323
- Hash.prototype["delete"] = hashDelete_default;
324
- Hash.prototype.get = hashGet_default;
325
- Hash.prototype.has = hashHas_default;
326
- Hash.prototype.set = hashSet_default;
327
- var Hash_default = Hash;
204
+ var copyArray_default = copyArray;
328
205
 
329
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
330
- function mapCacheClear() {
331
- this.size = 0;
332
- this.__data__ = {
333
- "hash": new Hash_default(),
334
- "map": new (Map_default || ListCache_default)(),
335
- "string": new Hash_default()
206
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js
207
+ var HOT_COUNT = 800;
208
+ var HOT_SPAN = 16;
209
+ var nativeNow = Date.now;
210
+ function shortOut(func) {
211
+ var count = 0, lastCalled = 0;
212
+ return function() {
213
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
214
+ lastCalled = stamp;
215
+ if (remaining > 0) {
216
+ if (++count >= HOT_COUNT) {
217
+ return arguments[0];
218
+ }
219
+ } else {
220
+ count = 0;
221
+ }
222
+ return func.apply(void 0, arguments);
336
223
  };
337
224
  }
338
- var mapCacheClear_default = mapCacheClear;
225
+ var shortOut_default = shortOut;
339
226
 
340
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
341
- function isKeyable(value) {
342
- var type = typeof value;
343
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
344
- }
345
- var isKeyable_default = isKeyable;
346
-
347
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
348
- function getMapData(map, key) {
349
- var data = map.__data__;
350
- return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
351
- }
352
- var getMapData_default = getMapData;
353
-
354
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
355
- function mapCacheDelete(key) {
356
- var result = getMapData_default(this, key)["delete"](key);
357
- this.size -= result ? 1 : 0;
358
- return result;
359
- }
360
- var mapCacheDelete_default = mapCacheDelete;
361
-
362
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
363
- function mapCacheGet(key) {
364
- return getMapData_default(this, key).get(key);
365
- }
366
- var mapCacheGet_default = mapCacheGet;
367
-
368
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
369
- function mapCacheHas(key) {
370
- return getMapData_default(this, key).has(key);
371
- }
372
- var mapCacheHas_default = mapCacheHas;
373
-
374
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
375
- function mapCacheSet(key, value) {
376
- var data = getMapData_default(this, key), size = data.size;
377
- data.set(key, value);
378
- this.size += data.size == size ? 0 : 1;
379
- return this;
380
- }
381
- var mapCacheSet_default = mapCacheSet;
382
-
383
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
384
- function MapCache(entries) {
385
- var index = -1, length = entries == null ? 0 : entries.length;
386
- this.clear();
387
- while (++index < length) {
388
- var entry = entries[index];
389
- this.set(entry[0], entry[1]);
390
- }
391
- }
392
- MapCache.prototype.clear = mapCacheClear_default;
393
- MapCache.prototype["delete"] = mapCacheDelete_default;
394
- MapCache.prototype.get = mapCacheGet_default;
395
- MapCache.prototype.has = mapCacheHas_default;
396
- MapCache.prototype.set = mapCacheSet_default;
397
- var MapCache_default = MapCache;
398
-
399
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
400
- var LARGE_ARRAY_SIZE = 200;
401
- function stackSet(key, value) {
402
- var data = this.__data__;
403
- if (data instanceof ListCache_default) {
404
- var pairs = data.__data__;
405
- if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
406
- pairs.push([
407
- key,
408
- value
409
- ]);
410
- this.size = ++data.size;
411
- return this;
412
- }
413
- data = this.__data__ = new MapCache_default(pairs);
414
- }
415
- data.set(key, value);
416
- this.size = data.size;
417
- return this;
418
- }
419
- var stackSet_default = stackSet;
420
-
421
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
422
- function Stack(entries) {
423
- var data = this.__data__ = new ListCache_default(entries);
424
- this.size = data.size;
227
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js
228
+ function constant(value) {
229
+ return function() {
230
+ return value;
231
+ };
425
232
  }
426
- Stack.prototype.clear = stackClear_default;
427
- Stack.prototype["delete"] = stackDelete_default;
428
- Stack.prototype.get = stackGet_default;
429
- Stack.prototype.has = stackHas_default;
430
- Stack.prototype.set = stackSet_default;
431
- var Stack_default = Stack;
233
+ var constant_default = constant;
432
234
 
433
235
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
434
236
  var defineProperty = function() {
@@ -441,6 +243,31 @@ var defineProperty = function() {
441
243
  }();
442
244
  var defineProperty_default = defineProperty;
443
245
 
246
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js
247
+ var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
248
+ return defineProperty_default(func, "toString", {
249
+ "configurable": true,
250
+ "enumerable": false,
251
+ "value": constant_default(string),
252
+ "writable": true
253
+ });
254
+ };
255
+ var baseSetToString_default = baseSetToString;
256
+
257
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js
258
+ var setToString = shortOut_default(baseSetToString_default);
259
+ var setToString_default = setToString;
260
+
261
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
262
+ var MAX_SAFE_INTEGER = 9007199254740991;
263
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
264
+ function isIndex(value, length) {
265
+ var type = typeof value;
266
+ length = length == null ? MAX_SAFE_INTEGER : length;
267
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
268
+ }
269
+ var isIndex_default = isIndex;
270
+
444
271
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
445
272
  function baseAssignValue(object, key, value) {
446
273
  if (key == "__proto__" && defineProperty_default) {
@@ -456,130 +283,134 @@ function baseAssignValue(object, key, value) {
456
283
  }
457
284
  var baseAssignValue_default = baseAssignValue;
458
285
 
459
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js
460
- function assignMergeValue(object, key, value) {
461
- if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
286
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
287
+ function eq(value, other) {
288
+ return value === other || value !== value && other !== other;
289
+ }
290
+ var eq_default = eq;
291
+
292
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
293
+ var objectProto4 = Object.prototype;
294
+ var hasOwnProperty3 = objectProto4.hasOwnProperty;
295
+ function assignValue(object, key, value) {
296
+ var objValue = object[key];
297
+ if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
462
298
  baseAssignValue_default(object, key, value);
463
299
  }
464
300
  }
465
- var assignMergeValue_default = assignMergeValue;
301
+ var assignValue_default = assignValue;
466
302
 
467
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
468
- function createBaseFor(fromRight) {
469
- return function(object, iteratee, keysFunc) {
470
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
471
- while (length--) {
472
- var key = props[fromRight ? length : ++index];
473
- if (iteratee(iterable[key], key, iterable) === false) {
474
- break;
475
- }
303
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
304
+ function copyObject(source, props, object, customizer) {
305
+ var isNew = !object;
306
+ object || (object = {});
307
+ var index = -1, length = props.length;
308
+ while (++index < length) {
309
+ var key = props[index];
310
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
311
+ if (newValue === void 0) {
312
+ newValue = source[key];
476
313
  }
477
- return object;
478
- };
314
+ if (isNew) {
315
+ baseAssignValue_default(object, key, newValue);
316
+ } else {
317
+ assignValue_default(object, key, newValue);
318
+ }
319
+ }
320
+ return object;
479
321
  }
480
- var createBaseFor_default = createBaseFor;
481
-
482
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
483
- var baseFor = createBaseFor_default();
484
- var baseFor_default = baseFor;
322
+ var copyObject_default = copyObject;
485
323
 
486
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js
487
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
488
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
489
- var moduleExports = freeModule && freeModule.exports === freeExports;
490
- var Buffer = moduleExports ? root_default.Buffer : void 0;
491
- var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
492
- function cloneBuffer(buffer, isDeep) {
493
- if (isDeep) {
494
- return buffer.slice();
495
- }
496
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
497
- buffer.copy(result);
498
- return result;
324
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js
325
+ var nativeMax = Math.max;
326
+ function overRest(func, start, transform) {
327
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
328
+ return function() {
329
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
330
+ while (++index < length) {
331
+ array[index] = args[start + index];
332
+ }
333
+ index = -1;
334
+ var otherArgs = Array(start + 1);
335
+ while (++index < start) {
336
+ otherArgs[index] = args[index];
337
+ }
338
+ otherArgs[start] = transform(array);
339
+ return apply_default(func, this, otherArgs);
340
+ };
499
341
  }
500
- var cloneBuffer_default = cloneBuffer;
342
+ var overRest_default = overRest;
501
343
 
502
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
503
- var Uint8Array = root_default.Uint8Array;
504
- var Uint8Array_default = Uint8Array;
344
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js
345
+ function baseRest(func, start) {
346
+ return setToString_default(overRest_default(func, start, identity_default), func + "");
347
+ }
348
+ var baseRest_default = baseRest;
505
349
 
506
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js
507
- function cloneArrayBuffer(arrayBuffer) {
508
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
509
- new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
510
- return result;
350
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
351
+ var MAX_SAFE_INTEGER2 = 9007199254740991;
352
+ function isLength(value) {
353
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
511
354
  }
512
- var cloneArrayBuffer_default = cloneArrayBuffer;
355
+ var isLength_default = isLength;
513
356
 
514
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js
515
- function cloneTypedArray(typedArray, isDeep) {
516
- var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
517
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
357
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
358
+ function isArrayLike(value) {
359
+ return value != null && isLength_default(value.length) && !isFunction_default(value);
518
360
  }
519
- var cloneTypedArray_default = cloneTypedArray;
361
+ var isArrayLike_default = isArrayLike;
520
362
 
521
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
522
- function copyArray(source, array) {
523
- var index = -1, length = source.length;
524
- array || (array = Array(length));
525
- while (++index < length) {
526
- array[index] = source[index];
363
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js
364
+ function isIterateeCall(value, index, object) {
365
+ if (!isObject_default(object)) {
366
+ return false;
527
367
  }
528
- return array;
368
+ var type = typeof index;
369
+ if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
370
+ return eq_default(object[index], value);
371
+ }
372
+ return false;
529
373
  }
530
- var copyArray_default = copyArray;
374
+ var isIterateeCall_default = isIterateeCall;
531
375
 
532
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
533
- var objectCreate = Object.create;
534
- var baseCreate = function() {
535
- function object() {
536
- }
537
- return function(proto) {
538
- if (!isObject_default(proto)) {
539
- return {};
376
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js
377
+ function createAssigner(assigner) {
378
+ return baseRest_default(function(object, sources) {
379
+ var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
380
+ customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
381
+ if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
382
+ customizer = length < 3 ? void 0 : customizer;
383
+ length = 1;
540
384
  }
541
- if (objectCreate) {
542
- return objectCreate(proto);
385
+ object = Object(object);
386
+ while (++index < length) {
387
+ var source = sources[index];
388
+ if (source) {
389
+ assigner(object, source, index, customizer);
390
+ }
543
391
  }
544
- object.prototype = proto;
545
- var result = new object();
546
- object.prototype = void 0;
547
- return result;
548
- };
549
- }();
550
- var baseCreate_default = baseCreate;
551
-
552
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
553
- function overArg(func, transform) {
554
- return function(arg) {
555
- return func(transform(arg));
556
- };
392
+ return object;
393
+ });
557
394
  }
558
- var overArg_default = overArg;
559
-
560
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
561
- var getPrototype = overArg_default(Object.getPrototypeOf, Object);
562
- var getPrototype_default = getPrototype;
395
+ var createAssigner_default = createAssigner;
563
396
 
564
397
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
565
- var objectProto6 = Object.prototype;
398
+ var objectProto5 = Object.prototype;
566
399
  function isPrototype(value) {
567
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto6;
400
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5;
568
401
  return value === proto;
569
402
  }
570
403
  var isPrototype_default = isPrototype;
571
404
 
572
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
573
- function initCloneObject(object) {
574
- return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
575
- }
576
- var initCloneObject_default = initCloneObject;
577
-
578
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
579
- function isObjectLike(value) {
580
- return value != null && typeof value == "object";
405
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
406
+ function baseTimes(n, iteratee) {
407
+ var index = -1, result = Array(n);
408
+ while (++index < n) {
409
+ result[index] = iteratee(index);
410
+ }
411
+ return result;
581
412
  }
582
- var isObjectLike_default = isObjectLike;
413
+ var baseTimes_default = baseTimes;
583
414
 
584
415
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
585
416
  var argsTag = "[object Arguments]";
@@ -589,39 +420,16 @@ function baseIsArguments(value) {
589
420
  var baseIsArguments_default = baseIsArguments;
590
421
 
591
422
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
592
- var objectProto7 = Object.prototype;
593
- var hasOwnProperty5 = objectProto7.hasOwnProperty;
594
- var propertyIsEnumerable = objectProto7.propertyIsEnumerable;
423
+ var objectProto6 = Object.prototype;
424
+ var hasOwnProperty4 = objectProto6.hasOwnProperty;
425
+ var propertyIsEnumerable = objectProto6.propertyIsEnumerable;
595
426
  var isArguments = baseIsArguments_default(function() {
596
427
  return arguments;
597
428
  }()) ? baseIsArguments_default : function(value) {
598
- return isObjectLike_default(value) && hasOwnProperty5.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
429
+ return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
599
430
  };
600
431
  var isArguments_default = isArguments;
601
432
 
602
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
603
- var isArray = Array.isArray;
604
- var isArray_default = isArray;
605
-
606
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
607
- var MAX_SAFE_INTEGER = 9007199254740991;
608
- function isLength(value) {
609
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
610
- }
611
- var isLength_default = isLength;
612
-
613
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
614
- function isArrayLike(value) {
615
- return value != null && isLength_default(value.length) && !isFunction_default(value);
616
- }
617
- var isArrayLike_default = isArrayLike;
618
-
619
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.js
620
- function isArrayLikeObject(value) {
621
- return isObjectLike_default(value) && isArrayLike_default(value);
622
- }
623
- var isArrayLikeObject_default = isArrayLikeObject;
624
-
625
433
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
626
434
  function stubFalse() {
627
435
  return false;
@@ -629,34 +437,14 @@ function stubFalse() {
629
437
  var stubFalse_default = stubFalse;
630
438
 
631
439
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js
632
- var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
633
- var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
634
- var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
635
- var Buffer2 = moduleExports2 ? root_default.Buffer : void 0;
636
- var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
440
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
441
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
442
+ var moduleExports = freeModule && freeModule.exports === freeExports;
443
+ var Buffer = moduleExports ? root_default.Buffer : void 0;
444
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
637
445
  var isBuffer = nativeIsBuffer || stubFalse_default;
638
446
  var isBuffer_default = isBuffer;
639
447
 
640
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js
641
- var objectTag = "[object Object]";
642
- var funcProto3 = Function.prototype;
643
- var objectProto8 = Object.prototype;
644
- var funcToString3 = funcProto3.toString;
645
- var hasOwnProperty6 = objectProto8.hasOwnProperty;
646
- var objectCtorString = funcToString3.call(Object);
647
- function isPlainObject(value) {
648
- if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag) {
649
- return false;
650
- }
651
- var proto = getPrototype_default(value);
652
- if (proto === null) {
653
- return true;
654
- }
655
- var Ctor = hasOwnProperty6.call(proto, "constructor") && proto.constructor;
656
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
657
- }
658
- var isPlainObject_default = isPlainObject;
659
-
660
448
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
661
449
  var argsTag2 = "[object Arguments]";
662
450
  var arrayTag = "[object Array]";
@@ -666,7 +454,7 @@ var errorTag = "[object Error]";
666
454
  var funcTag2 = "[object Function]";
667
455
  var mapTag = "[object Map]";
668
456
  var numberTag = "[object Number]";
669
- var objectTag2 = "[object Object]";
457
+ var objectTag = "[object Object]";
670
458
  var regexpTag = "[object RegExp]";
671
459
  var setTag = "[object Set]";
672
460
  var stringTag = "[object String]";
@@ -684,7 +472,7 @@ var uint16Tag = "[object Uint16Array]";
684
472
  var uint32Tag = "[object Uint32Array]";
685
473
  var typedArrayTags = {};
686
474
  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
687
- typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag2] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
475
+ 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;
688
476
  function baseIsTypedArray(value) {
689
477
  return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
690
478
  }
@@ -699,13 +487,13 @@ function baseUnary(func) {
699
487
  var baseUnary_default = baseUnary;
700
488
 
701
489
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
702
- var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
703
- var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
704
- var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
705
- var freeProcess = moduleExports3 && freeGlobal_default.process;
490
+ var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
491
+ var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
492
+ var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
493
+ var freeProcess = moduleExports2 && freeGlobal_default.process;
706
494
  var nodeUtil = function() {
707
495
  try {
708
- var types = freeModule3 && freeModule3.require && freeModule3.require("util").types;
496
+ var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
709
497
  if (types) {
710
498
  return types;
711
499
  }
@@ -720,122 +508,466 @@ var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
720
508
  var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
721
509
  var isTypedArray_default = isTypedArray;
722
510
 
723
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js
724
- function safeGet(object, key) {
725
- if (key === "constructor" && typeof object[key] === "function") {
726
- return;
511
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
512
+ var objectProto7 = Object.prototype;
513
+ var hasOwnProperty5 = objectProto7.hasOwnProperty;
514
+ function arrayLikeKeys(value, inherited) {
515
+ 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;
516
+ for (var key in value) {
517
+ if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
518
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
519
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
520
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
521
+ isIndex_default(key, length)))) {
522
+ result.push(key);
523
+ }
727
524
  }
728
- if (key == "__proto__") {
729
- return;
525
+ return result;
526
+ }
527
+ var arrayLikeKeys_default = arrayLikeKeys;
528
+
529
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
530
+ function overArg(func, transform) {
531
+ return function(arg) {
532
+ return func(transform(arg));
533
+ };
534
+ }
535
+ var overArg_default = overArg;
536
+
537
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
538
+ function nativeKeysIn(object) {
539
+ var result = [];
540
+ if (object != null) {
541
+ for (var key in Object(object)) {
542
+ result.push(key);
543
+ }
730
544
  }
731
- return object[key];
545
+ return result;
732
546
  }
733
- var safeGet_default = safeGet;
547
+ var nativeKeysIn_default = nativeKeysIn;
734
548
 
735
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
549
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
550
+ var objectProto8 = Object.prototype;
551
+ var hasOwnProperty6 = objectProto8.hasOwnProperty;
552
+ function baseKeysIn(object) {
553
+ if (!isObject_default(object)) {
554
+ return nativeKeysIn_default(object);
555
+ }
556
+ var isProto = isPrototype_default(object), result = [];
557
+ for (var key in object) {
558
+ if (!(key == "constructor" && (isProto || !hasOwnProperty6.call(object, key)))) {
559
+ result.push(key);
560
+ }
561
+ }
562
+ return result;
563
+ }
564
+ var baseKeysIn_default = baseKeysIn;
565
+
566
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
567
+ function keysIn(object) {
568
+ return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
569
+ }
570
+ var keysIn_default = keysIn;
571
+
572
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
573
+ var nativeCreate = getNative_default(Object, "create");
574
+ var nativeCreate_default = nativeCreate;
575
+
576
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
577
+ function hashClear() {
578
+ this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
579
+ this.size = 0;
580
+ }
581
+ var hashClear_default = hashClear;
582
+
583
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
584
+ function hashDelete(key) {
585
+ var result = this.has(key) && delete this.__data__[key];
586
+ this.size -= result ? 1 : 0;
587
+ return result;
588
+ }
589
+ var hashDelete_default = hashDelete;
590
+
591
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
592
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
736
593
  var objectProto9 = Object.prototype;
737
594
  var hasOwnProperty7 = objectProto9.hasOwnProperty;
738
- function assignValue(object, key, value) {
739
- var objValue = object[key];
740
- if (!(hasOwnProperty7.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
741
- baseAssignValue_default(object, key, value);
595
+ function hashGet(key) {
596
+ var data = this.__data__;
597
+ if (nativeCreate_default) {
598
+ var result = data[key];
599
+ return result === HASH_UNDEFINED ? void 0 : result;
742
600
  }
601
+ return hasOwnProperty7.call(data, key) ? data[key] : void 0;
743
602
  }
744
- var assignValue_default = assignValue;
603
+ var hashGet_default = hashGet;
745
604
 
746
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
747
- function copyObject(source, props, object, customizer) {
748
- var isNew = !object;
749
- object || (object = {});
750
- var index = -1, length = props.length;
605
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
606
+ var objectProto10 = Object.prototype;
607
+ var hasOwnProperty8 = objectProto10.hasOwnProperty;
608
+ function hashHas(key) {
609
+ var data = this.__data__;
610
+ return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty8.call(data, key);
611
+ }
612
+ var hashHas_default = hashHas;
613
+
614
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
615
+ var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
616
+ function hashSet(key, value) {
617
+ var data = this.__data__;
618
+ this.size += this.has(key) ? 0 : 1;
619
+ data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
620
+ return this;
621
+ }
622
+ var hashSet_default = hashSet;
623
+
624
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
625
+ function Hash(entries) {
626
+ var index = -1, length = entries == null ? 0 : entries.length;
627
+ this.clear();
751
628
  while (++index < length) {
752
- var key = props[index];
753
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
754
- if (newValue === void 0) {
755
- newValue = source[key];
629
+ var entry = entries[index];
630
+ this.set(entry[0], entry[1]);
631
+ }
632
+ }
633
+ Hash.prototype.clear = hashClear_default;
634
+ Hash.prototype["delete"] = hashDelete_default;
635
+ Hash.prototype.get = hashGet_default;
636
+ Hash.prototype.has = hashHas_default;
637
+ Hash.prototype.set = hashSet_default;
638
+ var Hash_default = Hash;
639
+
640
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
641
+ function listCacheClear() {
642
+ this.__data__ = [];
643
+ this.size = 0;
644
+ }
645
+ var listCacheClear_default = listCacheClear;
646
+
647
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
648
+ function assocIndexOf(array, key) {
649
+ var length = array.length;
650
+ while (length--) {
651
+ if (eq_default(array[length][0], key)) {
652
+ return length;
756
653
  }
757
- if (isNew) {
758
- baseAssignValue_default(object, key, newValue);
759
- } else {
760
- assignValue_default(object, key, newValue);
654
+ }
655
+ return -1;
656
+ }
657
+ var assocIndexOf_default = assocIndexOf;
658
+
659
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
660
+ var arrayProto = Array.prototype;
661
+ var splice = arrayProto.splice;
662
+ function listCacheDelete(key) {
663
+ var data = this.__data__, index = assocIndexOf_default(data, key);
664
+ if (index < 0) {
665
+ return false;
666
+ }
667
+ var lastIndex = data.length - 1;
668
+ if (index == lastIndex) {
669
+ data.pop();
670
+ } else {
671
+ splice.call(data, index, 1);
672
+ }
673
+ --this.size;
674
+ return true;
675
+ }
676
+ var listCacheDelete_default = listCacheDelete;
677
+
678
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
679
+ function listCacheGet(key) {
680
+ var data = this.__data__, index = assocIndexOf_default(data, key);
681
+ return index < 0 ? void 0 : data[index][1];
682
+ }
683
+ var listCacheGet_default = listCacheGet;
684
+
685
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
686
+ function listCacheHas(key) {
687
+ return assocIndexOf_default(this.__data__, key) > -1;
688
+ }
689
+ var listCacheHas_default = listCacheHas;
690
+
691
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
692
+ function listCacheSet(key, value) {
693
+ var data = this.__data__, index = assocIndexOf_default(data, key);
694
+ if (index < 0) {
695
+ ++this.size;
696
+ data.push([key, value]);
697
+ } else {
698
+ data[index][1] = value;
699
+ }
700
+ return this;
701
+ }
702
+ var listCacheSet_default = listCacheSet;
703
+
704
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
705
+ function ListCache(entries) {
706
+ var index = -1, length = entries == null ? 0 : entries.length;
707
+ this.clear();
708
+ while (++index < length) {
709
+ var entry = entries[index];
710
+ this.set(entry[0], entry[1]);
711
+ }
712
+ }
713
+ ListCache.prototype.clear = listCacheClear_default;
714
+ ListCache.prototype["delete"] = listCacheDelete_default;
715
+ ListCache.prototype.get = listCacheGet_default;
716
+ ListCache.prototype.has = listCacheHas_default;
717
+ ListCache.prototype.set = listCacheSet_default;
718
+ var ListCache_default = ListCache;
719
+
720
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
721
+ var Map = getNative_default(root_default, "Map");
722
+ var Map_default = Map;
723
+
724
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
725
+ function mapCacheClear() {
726
+ this.size = 0;
727
+ this.__data__ = {
728
+ "hash": new Hash_default(),
729
+ "map": new (Map_default || ListCache_default)(),
730
+ "string": new Hash_default()
731
+ };
732
+ }
733
+ var mapCacheClear_default = mapCacheClear;
734
+
735
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
736
+ function isKeyable(value) {
737
+ var type = typeof value;
738
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
739
+ }
740
+ var isKeyable_default = isKeyable;
741
+
742
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
743
+ function getMapData(map, key) {
744
+ var data = map.__data__;
745
+ return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
746
+ }
747
+ var getMapData_default = getMapData;
748
+
749
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
750
+ function mapCacheDelete(key) {
751
+ var result = getMapData_default(this, key)["delete"](key);
752
+ this.size -= result ? 1 : 0;
753
+ return result;
754
+ }
755
+ var mapCacheDelete_default = mapCacheDelete;
756
+
757
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
758
+ function mapCacheGet(key) {
759
+ return getMapData_default(this, key).get(key);
760
+ }
761
+ var mapCacheGet_default = mapCacheGet;
762
+
763
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
764
+ function mapCacheHas(key) {
765
+ return getMapData_default(this, key).has(key);
766
+ }
767
+ var mapCacheHas_default = mapCacheHas;
768
+
769
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
770
+ function mapCacheSet(key, value) {
771
+ var data = getMapData_default(this, key), size = data.size;
772
+ data.set(key, value);
773
+ this.size += data.size == size ? 0 : 1;
774
+ return this;
775
+ }
776
+ var mapCacheSet_default = mapCacheSet;
777
+
778
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
779
+ function MapCache(entries) {
780
+ var index = -1, length = entries == null ? 0 : entries.length;
781
+ this.clear();
782
+ while (++index < length) {
783
+ var entry = entries[index];
784
+ this.set(entry[0], entry[1]);
785
+ }
786
+ }
787
+ MapCache.prototype.clear = mapCacheClear_default;
788
+ MapCache.prototype["delete"] = mapCacheDelete_default;
789
+ MapCache.prototype.get = mapCacheGet_default;
790
+ MapCache.prototype.has = mapCacheHas_default;
791
+ MapCache.prototype.set = mapCacheSet_default;
792
+ var MapCache_default = MapCache;
793
+
794
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
795
+ var getPrototype = overArg_default(Object.getPrototypeOf, Object);
796
+ var getPrototype_default = getPrototype;
797
+
798
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js
799
+ var objectTag2 = "[object Object]";
800
+ var funcProto3 = Function.prototype;
801
+ var objectProto11 = Object.prototype;
802
+ var funcToString3 = funcProto3.toString;
803
+ var hasOwnProperty9 = objectProto11.hasOwnProperty;
804
+ var objectCtorString = funcToString3.call(Object);
805
+ function isPlainObject(value) {
806
+ if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) {
807
+ return false;
808
+ }
809
+ var proto = getPrototype_default(value);
810
+ if (proto === null) {
811
+ return true;
812
+ }
813
+ var Ctor = hasOwnProperty9.call(proto, "constructor") && proto.constructor;
814
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
815
+ }
816
+ var isPlainObject_default = isPlainObject;
817
+
818
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/castArray.js
819
+ function castArray() {
820
+ if (!arguments.length) {
821
+ return [];
822
+ }
823
+ var value = arguments[0];
824
+ return isArray_default(value) ? value : [value];
825
+ }
826
+ var castArray_default = castArray;
827
+
828
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
829
+ function stackClear() {
830
+ this.__data__ = new ListCache_default();
831
+ this.size = 0;
832
+ }
833
+ var stackClear_default = stackClear;
834
+
835
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
836
+ function stackDelete(key) {
837
+ var data = this.__data__, result = data["delete"](key);
838
+ this.size = data.size;
839
+ return result;
840
+ }
841
+ var stackDelete_default = stackDelete;
842
+
843
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
844
+ function stackGet(key) {
845
+ return this.__data__.get(key);
846
+ }
847
+ var stackGet_default = stackGet;
848
+
849
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
850
+ function stackHas(key) {
851
+ return this.__data__.has(key);
852
+ }
853
+ var stackHas_default = stackHas;
854
+
855
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
856
+ var LARGE_ARRAY_SIZE = 200;
857
+ function stackSet(key, value) {
858
+ var data = this.__data__;
859
+ if (data instanceof ListCache_default) {
860
+ var pairs = data.__data__;
861
+ if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
862
+ pairs.push([key, value]);
863
+ this.size = ++data.size;
864
+ return this;
761
865
  }
866
+ data = this.__data__ = new MapCache_default(pairs);
762
867
  }
763
- return object;
868
+ data.set(key, value);
869
+ this.size = data.size;
870
+ return this;
764
871
  }
765
- var copyObject_default = copyObject;
872
+ var stackSet_default = stackSet;
766
873
 
767
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
768
- function baseTimes(n, iteratee) {
769
- var index = -1, result = Array(n);
770
- while (++index < n) {
771
- result[index] = iteratee(index);
874
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
875
+ function Stack(entries) {
876
+ var data = this.__data__ = new ListCache_default(entries);
877
+ this.size = data.size;
878
+ }
879
+ Stack.prototype.clear = stackClear_default;
880
+ Stack.prototype["delete"] = stackDelete_default;
881
+ Stack.prototype.get = stackGet_default;
882
+ Stack.prototype.has = stackHas_default;
883
+ Stack.prototype.set = stackSet_default;
884
+ var Stack_default = Stack;
885
+
886
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js
887
+ var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
888
+ var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
889
+ var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
890
+ var Buffer2 = moduleExports3 ? root_default.Buffer : void 0;
891
+ var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
892
+ function cloneBuffer(buffer, isDeep) {
893
+ if (isDeep) {
894
+ return buffer.slice();
772
895
  }
896
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
897
+ buffer.copy(result);
773
898
  return result;
774
899
  }
775
- var baseTimes_default = baseTimes;
900
+ var cloneBuffer_default = cloneBuffer;
776
901
 
777
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
778
- var MAX_SAFE_INTEGER2 = 9007199254740991;
779
- var reIsUint = /^(?:0|[1-9]\d*)$/;
780
- function isIndex(value, length) {
781
- var type = typeof value;
782
- length = length == null ? MAX_SAFE_INTEGER2 : length;
783
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
784
- }
785
- var isIndex_default = isIndex;
902
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js
903
+ var Uint8Array = root_default.Uint8Array;
904
+ var Uint8Array_default = Uint8Array;
786
905
 
787
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
788
- var objectProto10 = Object.prototype;
789
- var hasOwnProperty8 = objectProto10.hasOwnProperty;
790
- function arrayLikeKeys(value, inherited) {
791
- 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;
792
- for (var key in value) {
793
- if ((inherited || hasOwnProperty8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
794
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
795
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
796
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
797
- isIndex_default(key, length)))) {
798
- result.push(key);
799
- }
800
- }
906
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js
907
+ function cloneArrayBuffer(arrayBuffer) {
908
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
909
+ new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
801
910
  return result;
802
911
  }
803
- var arrayLikeKeys_default = arrayLikeKeys;
912
+ var cloneArrayBuffer_default = cloneArrayBuffer;
804
913
 
805
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
806
- function nativeKeysIn(object) {
807
- var result = [];
808
- if (object != null) {
809
- for (var key in Object(object)) {
810
- result.push(key);
811
- }
812
- }
813
- return result;
914
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js
915
+ function cloneTypedArray(typedArray, isDeep) {
916
+ var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
917
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
814
918
  }
815
- var nativeKeysIn_default = nativeKeysIn;
919
+ var cloneTypedArray_default = cloneTypedArray;
816
920
 
817
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
818
- var objectProto11 = Object.prototype;
819
- var hasOwnProperty9 = objectProto11.hasOwnProperty;
820
- function baseKeysIn(object) {
821
- if (!isObject_default(object)) {
822
- return nativeKeysIn_default(object);
823
- }
824
- var isProto = isPrototype_default(object), result = [];
825
- for (var key in object) {
826
- if (!(key == "constructor" && (isProto || !hasOwnProperty9.call(object, key)))) {
827
- result.push(key);
921
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
922
+ function initCloneObject(object) {
923
+ return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
924
+ }
925
+ var initCloneObject_default = initCloneObject;
926
+
927
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
928
+ function createBaseFor(fromRight) {
929
+ return function(object, iteratee, keysFunc) {
930
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
931
+ while (length--) {
932
+ var key = props[fromRight ? length : ++index];
933
+ if (iteratee(iterable[key], key, iterable) === false) {
934
+ break;
935
+ }
828
936
  }
937
+ return object;
938
+ };
939
+ }
940
+ var createBaseFor_default = createBaseFor;
941
+
942
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
943
+ var baseFor = createBaseFor_default();
944
+ var baseFor_default = baseFor;
945
+
946
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js
947
+ function assignMergeValue(object, key, value) {
948
+ if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
949
+ baseAssignValue_default(object, key, value);
829
950
  }
830
- return result;
831
951
  }
832
- var baseKeysIn_default = baseKeysIn;
952
+ var assignMergeValue_default = assignMergeValue;
833
953
 
834
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
835
- function keysIn(object) {
836
- return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
954
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.js
955
+ function isArrayLikeObject(value) {
956
+ return isObjectLike_default(value) && isArrayLike_default(value);
837
957
  }
838
- var keysIn_default = keysIn;
958
+ var isArrayLikeObject_default = isArrayLikeObject;
959
+
960
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js
961
+ function safeGet(object, key) {
962
+ if (key === "constructor" && typeof object[key] === "function") {
963
+ return;
964
+ }
965
+ if (key == "__proto__") {
966
+ return;
967
+ }
968
+ return object[key];
969
+ }
970
+ var safeGet_default = safeGet;
839
971
 
840
972
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.js
841
973
  function toPlainObject(value) {
@@ -909,132 +1041,6 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
909
1041
  }
910
1042
  var baseMerge_default = baseMerge;
911
1043
 
912
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js
913
- function identity(value) {
914
- return value;
915
- }
916
- var identity_default = identity;
917
-
918
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js
919
- function apply(func, thisArg, args) {
920
- switch (args.length) {
921
- case 0:
922
- return func.call(thisArg);
923
- case 1:
924
- return func.call(thisArg, args[0]);
925
- case 2:
926
- return func.call(thisArg, args[0], args[1]);
927
- case 3:
928
- return func.call(thisArg, args[0], args[1], args[2]);
929
- }
930
- return func.apply(thisArg, args);
931
- }
932
- var apply_default = apply;
933
-
934
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js
935
- var nativeMax = Math.max;
936
- function overRest(func, start, transform) {
937
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
938
- return function() {
939
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
940
- while (++index < length) {
941
- array[index] = args[start + index];
942
- }
943
- index = -1;
944
- var otherArgs = Array(start + 1);
945
- while (++index < start) {
946
- otherArgs[index] = args[index];
947
- }
948
- otherArgs[start] = transform(array);
949
- return apply_default(func, this, otherArgs);
950
- };
951
- }
952
- var overRest_default = overRest;
953
-
954
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js
955
- function constant(value) {
956
- return function() {
957
- return value;
958
- };
959
- }
960
- var constant_default = constant;
961
-
962
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js
963
- var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
964
- return defineProperty_default(func, "toString", {
965
- "configurable": true,
966
- "enumerable": false,
967
- "value": constant_default(string),
968
- "writable": true
969
- });
970
- };
971
- var baseSetToString_default = baseSetToString;
972
-
973
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js
974
- var HOT_COUNT = 800;
975
- var HOT_SPAN = 16;
976
- var nativeNow = Date.now;
977
- function shortOut(func) {
978
- var count = 0, lastCalled = 0;
979
- return function() {
980
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
981
- lastCalled = stamp;
982
- if (remaining > 0) {
983
- if (++count >= HOT_COUNT) {
984
- return arguments[0];
985
- }
986
- } else {
987
- count = 0;
988
- }
989
- return func.apply(void 0, arguments);
990
- };
991
- }
992
- var shortOut_default = shortOut;
993
-
994
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js
995
- var setToString = shortOut_default(baseSetToString_default);
996
- var setToString_default = setToString;
997
-
998
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js
999
- function baseRest(func, start) {
1000
- return setToString_default(overRest_default(func, start, identity_default), func + "");
1001
- }
1002
- var baseRest_default = baseRest;
1003
-
1004
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js
1005
- function isIterateeCall(value, index, object) {
1006
- if (!isObject_default(object)) {
1007
- return false;
1008
- }
1009
- var type = typeof index;
1010
- if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
1011
- return eq_default(object[index], value);
1012
- }
1013
- return false;
1014
- }
1015
- var isIterateeCall_default = isIterateeCall;
1016
-
1017
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js
1018
- function createAssigner(assigner) {
1019
- return baseRest_default(function(object, sources) {
1020
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
1021
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
1022
- if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
1023
- customizer = length < 3 ? void 0 : customizer;
1024
- length = 1;
1025
- }
1026
- object = Object(object);
1027
- while (++index < length) {
1028
- var source = sources[index];
1029
- if (source) {
1030
- assigner(object, source, index, customizer);
1031
- }
1032
- }
1033
- return object;
1034
- });
1035
- }
1036
- var createAssigner_default = createAssigner;
1037
-
1038
1044
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js
1039
1045
  var mergeWith = createAssigner_default(function(object, source, srcIndex, customizer) {
1040
1046
  baseMerge_default(object, source, srcIndex, customizer);
@@ -1047,18 +1053,6 @@ function isUndefined(value) {
1047
1053
  }
1048
1054
  var isUndefined_default = isUndefined;
1049
1055
 
1050
- // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/castArray.js
1051
- function castArray() {
1052
- if (!arguments.length) {
1053
- return [];
1054
- }
1055
- var value = arguments[0];
1056
- return isArray_default(value) ? value : [
1057
- value
1058
- ];
1059
- }
1060
- var castArray_default = castArray;
1061
-
1062
1056
  // src/utils/index.ts
1063
1057
  var QUERY_REGEXP = /\?.*$/s;
1064
1058
  var HASH_REGEXP = /#.*$/s;
@@ -1113,31 +1107,63 @@ function normalizeSlash(url) {
1113
1107
  function isExternalUrl(url) {
1114
1108
  return url.startsWith("http://") || url.startsWith("https://") || url.startsWith("mailto:") || url.startsWith("tel:");
1115
1109
  }
1116
- function replaceLang(rawUrl, targetLang, defaultLang, langs, base = "") {
1110
+ function replaceLang(rawUrl, lang, version, base = "") {
1117
1111
  let url = removeBase(rawUrl, base);
1118
1112
  if (!url) {
1119
1113
  url = "/index.html";
1120
1114
  }
1121
- const originalLang = url.split("/")[1];
1122
- const inDefaultLang = !langs.includes(originalLang);
1123
- let result;
1124
- if (inDefaultLang) {
1125
- if (targetLang === defaultLang) {
1126
- result = url;
1127
- } else {
1128
- result = addLeadingSlash(`${targetLang}${url}`);
1115
+ let versionPart = "";
1116
+ let langPart = "";
1117
+ let purePathPart = "";
1118
+ const parts = url.split("/").filter(Boolean);
1119
+ if (version.current && version.current !== version.default) {
1120
+ versionPart = parts.shift() || "";
1121
+ }
1122
+ if (lang.target !== lang.default) {
1123
+ langPart = lang.target;
1124
+ if (lang.current !== lang.default) {
1125
+ parts.shift();
1126
+ }
1127
+ } else {
1128
+ parts.shift();
1129
+ }
1130
+ purePathPart = parts.join("/") || "";
1131
+ if ((versionPart || langPart) && !purePathPart) {
1132
+ purePathPart = "index.html";
1133
+ }
1134
+ return withBase(
1135
+ addLeadingSlash(
1136
+ [versionPart, langPart, purePathPart].filter(Boolean).join("/")
1137
+ ),
1138
+ base
1139
+ );
1140
+ }
1141
+ function replaceVersion(rawUrl, version, base = "") {
1142
+ let url = removeBase(rawUrl, base);
1143
+ if (!url) {
1144
+ url = "/index.html";
1145
+ }
1146
+ let versionPart = "";
1147
+ const parts = url.split("/").filter(Boolean);
1148
+ if (version.target !== version.default) {
1149
+ versionPart = version.target;
1150
+ if (version.current !== version.default) {
1151
+ parts.shift();
1129
1152
  }
1130
- } else if (targetLang === defaultLang) {
1131
- result = url.replace(`/${originalLang}`, "");
1132
1153
  } else {
1133
- result = url.replace(originalLang, targetLang);
1154
+ parts.shift();
1134
1155
  }
1135
- return withBase(result, base);
1156
+ let restPart = parts.join("/") || "";
1157
+ if (versionPart && !restPart) {
1158
+ restPart = "index.html";
1159
+ }
1160
+ return withBase(
1161
+ addLeadingSlash([versionPart, restPart].filter(Boolean).join("/")),
1162
+ base
1163
+ );
1136
1164
  }
1137
1165
  var omit = (obj, keys) => {
1138
- const ret = {
1139
- ...obj
1140
- };
1166
+ const ret = { ...obj };
1141
1167
  for (const key of keys) {
1142
1168
  delete ret[key];
1143
1169
  }
@@ -1150,7 +1176,7 @@ var parseUrl = (url) => {
1150
1176
  hash
1151
1177
  };
1152
1178
  };
1153
- function normalizeHref(url) {
1179
+ function normalizeHref(url, cleanUrls = false) {
1154
1180
  if (!url) {
1155
1181
  return "/";
1156
1182
  }
@@ -1161,7 +1187,7 @@ function normalizeHref(url) {
1161
1187
  if (url.startsWith("mailto:") || url.startsWith("tel:")) {
1162
1188
  return url;
1163
1189
  }
1164
- if (!cleanUrl2.endsWith(".html")) {
1190
+ if (!cleanUrls && !cleanUrl2.endsWith(".html")) {
1165
1191
  if (cleanUrl2.endsWith("/")) {
1166
1192
  cleanUrl2 += "index.html";
1167
1193
  } else {
@@ -1189,18 +1215,12 @@ function withoutHash(url) {
1189
1215
  return url.split("#")[0];
1190
1216
  }
1191
1217
  var mergeDocConfig = (...configs) => mergeWith_default({}, ...configs, (target, source) => {
1192
- const pair = [
1193
- target,
1194
- source
1195
- ];
1218
+ const pair = [target, source];
1196
1219
  if (pair.some(isUndefined_default)) {
1197
1220
  return void 0;
1198
1221
  }
1199
1222
  if (pair.some(isArray_default)) {
1200
- return [
1201
- ...castArray_default(target),
1202
- ...castArray_default(source)
1203
- ];
1223
+ return [...castArray_default(target), ...castArray_default(source)];
1204
1224
  }
1205
1225
  return void 0;
1206
1226
  });
@@ -1228,9 +1248,23 @@ export {
1228
1248
  removeLeadingSlash,
1229
1249
  removeTrailingSlash,
1230
1250
  replaceLang,
1251
+ replaceVersion,
1231
1252
  slash,
1232
1253
  withBase,
1233
1254
  withoutBase,
1234
1255
  withoutHash,
1235
1256
  withoutLang
1236
1257
  };
1258
+ /*! Bundled license information:
1259
+
1260
+ lodash-es/lodash.js:
1261
+ (**
1262
+ * @license
1263
+ * Lodash (Custom Build) <https://lodash.com/>
1264
+ * Build: `lodash modularize exports="es" -o ./`
1265
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1266
+ * Released under MIT license <https://lodash.com/license>
1267
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1268
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1269
+ *)
1270
+ */