@tailor-cms/ce-flashcards-display 0.0.1 → 0.0.2

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 CHANGED
@@ -1,45 +1,2880 @@
1
- import { createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
2
- import './index.css';//#region ../manifest/dist/index.mjs
1
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderList, resolveComponent, toDisplayString, withCtx, withKeys, withModifiers } from "vue";
2
+ import './index.css';//#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/stringify.js
3
+ var byteToHex = [];
4
+ for (let i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).slice(1));
5
+ function unsafeStringify(arr, offset = 0) {
6
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
7
+ }
8
+ //#endregion
9
+ //#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/rng.js
10
+ var rnds8 = new Uint8Array(16);
11
+ function rng() {
12
+ return crypto.getRandomValues(rnds8);
13
+ }
14
+ //#endregion
15
+ //#region ../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist/v4.js
16
+ function v4(options, buf, offset) {
17
+ if (!buf && !options && crypto.randomUUID) return crypto.randomUUID();
18
+ return _v4(options, buf, offset);
19
+ }
20
+ function _v4(options, buf, offset) {
21
+ options = options || {};
22
+ const rnds = options.random ?? options.rng?.() ?? rng();
23
+ if (rnds.length < 16) throw new Error("Random bytes length must be >= 16");
24
+ rnds[6] = rnds[6] & 15 | 64;
25
+ rnds[8] = rnds[8] & 63 | 128;
26
+ if (buf) {
27
+ offset = offset || 0;
28
+ if (offset < 0 || offset + 16 > buf.length) throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
29
+ for (let i = 0; i < 16; ++i) buf[offset + i] = rnds[i];
30
+ return buf;
31
+ }
32
+ return unsafeStringify(rnds);
33
+ }
34
+ //#endregion
35
+ //#region ../manifest/dist/index.mjs
36
+ var id1 = v4();
37
+ var id2 = v4();
3
38
  var type = "FLASHCARDS";
4
39
  var name = "Flashcards";
5
- var initState = (_config) => ({});
40
+ var initState = () => ({
41
+ embeds: {},
42
+ items: {
43
+ [id1]: {
44
+ id: id1,
45
+ front: {},
46
+ back: {},
47
+ position: 1
48
+ },
49
+ [id2]: {
50
+ id: id2,
51
+ front: {},
52
+ back: {},
53
+ position: 2
54
+ }
55
+ },
56
+ height: 360
57
+ });
6
58
  var ui = {
7
59
  icon: "mdi-cards-outline",
8
60
  forceFullWidth: true
9
61
  };
10
- var isEmpty = (_data) => false;
62
+ var isEmpty = (data) => !data.items || Object.keys(data.items).length === 0;
11
63
  var manifest$1 = {
12
64
  type,
13
65
  version: "1.0",
14
66
  name,
67
+ isComposite: true,
15
68
  ssr: false,
16
69
  initState,
17
70
  isEmpty,
18
71
  ui,
19
- mocks: {
20
- displayContexts: [{
21
- name: "Test preset 1",
22
- data: { state: "I have a value" }
23
- }, {
24
- name: "Test preset 2",
25
- data: { state: "I have a different value" }
26
- }],
27
- referencesData: { linked: [{ title: "Mock linked element" }] }
72
+ ai: {
73
+ Schema: {
74
+ type: "json_schema",
75
+ name: "ce_flashcards",
76
+ schema: {
77
+ type: "object",
78
+ properties: { cards: {
79
+ type: "array",
80
+ minItems: 2,
81
+ items: {
82
+ type: "object",
83
+ properties: {
84
+ front: { type: "string" },
85
+ back: { type: "string" }
86
+ },
87
+ required: ["front", "back"],
88
+ additionalProperties: false
89
+ }
90
+ } },
91
+ required: ["cards"],
92
+ additionalProperties: false
93
+ }
94
+ },
95
+ getPrompt: () => `
96
+ Generate a flashcards content element as an object with the following
97
+ properties:
98
+ {
99
+ "cards": [
100
+ {
101
+ "front": "",
102
+ "back": ""
103
+ }
104
+ ]
105
+ }
106
+ where:
107
+ - 'cards' is an array of flashcard objects where:
108
+ - 'front' is the prompt side of the card (e.g. a question or term).
109
+ - 'back' is the answer side of the card (e.g. the answer or definition).
110
+ `,
111
+ processResponse: (val) => {
112
+ return {
113
+ ...val.cards.reduce((acc, { front, back }, index) => {
114
+ const frontId = v4();
115
+ const backId = v4();
116
+ const itemId = v4();
117
+ acc.embeds[frontId] = {
118
+ id: frontId,
119
+ data: { content: front },
120
+ embedded: true,
121
+ position: 1,
122
+ type: "TIPTAP_HTML"
123
+ };
124
+ acc.embeds[backId] = {
125
+ id: backId,
126
+ data: { content: back },
127
+ embedded: true,
128
+ position: 1,
129
+ type: "TIPTAP_HTML"
130
+ };
131
+ acc.items[itemId] = {
132
+ id: itemId,
133
+ front: { [frontId]: true },
134
+ back: { [backId]: true },
135
+ position: index + 1
136
+ };
137
+ return acc;
138
+ }, {
139
+ items: {},
140
+ embeds: {}
141
+ }),
142
+ height: 360
143
+ };
144
+ }
28
145
  }
29
146
  };
30
147
  //#endregion
148
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js
149
+ /** Detect free variable `global` from Node.js. */
150
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
151
+ //#endregion
152
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.js
153
+ /** Detect free variable `self`. */
154
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
155
+ /** Used as a reference to the global object. */
156
+ var root = freeGlobal || freeSelf || Function("return this")();
157
+ //#endregion
158
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js
159
+ /** Built-in value references. */
160
+ var Symbol = root.Symbol;
161
+ //#endregion
162
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js
163
+ /** Used for built-in method references. */
164
+ var objectProto$3 = Object.prototype;
165
+ /** Used to check objects for own properties. */
166
+ var hasOwnProperty$8 = objectProto$3.hasOwnProperty;
167
+ /**
168
+ * Used to resolve the
169
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
170
+ * of values.
171
+ */
172
+ var nativeObjectToString$1 = objectProto$3.toString;
173
+ /** Built-in value references. */
174
+ var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
175
+ /**
176
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
177
+ *
178
+ * @private
179
+ * @param {*} value The value to query.
180
+ * @returns {string} Returns the raw `toStringTag`.
181
+ */
182
+ function getRawTag(value) {
183
+ var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
184
+ try {
185
+ value[symToStringTag$1] = void 0;
186
+ var unmasked = true;
187
+ } catch (e) {}
188
+ var result = nativeObjectToString$1.call(value);
189
+ if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
190
+ else delete value[symToStringTag$1];
191
+ return result;
192
+ }
193
+ //#endregion
194
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
195
+ /**
196
+ * Used to resolve the
197
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
198
+ * of values.
199
+ */
200
+ var nativeObjectToString = Object.prototype.toString;
201
+ /**
202
+ * Converts `value` to a string using `Object.prototype.toString`.
203
+ *
204
+ * @private
205
+ * @param {*} value The value to convert.
206
+ * @returns {string} Returns the converted string.
207
+ */
208
+ function objectToString(value) {
209
+ return nativeObjectToString.call(value);
210
+ }
211
+ //#endregion
212
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
213
+ /** `Object#toString` result references. */
214
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
215
+ /** Built-in value references. */
216
+ var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
217
+ /**
218
+ * The base implementation of `getTag` without fallbacks for buggy environments.
219
+ *
220
+ * @private
221
+ * @param {*} value The value to query.
222
+ * @returns {string} Returns the `toStringTag`.
223
+ */
224
+ function baseGetTag(value) {
225
+ if (value == null) return value === void 0 ? undefinedTag : nullTag;
226
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
227
+ }
228
+ //#endregion
229
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
230
+ /**
231
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
232
+ * and has a `typeof` result of "object".
233
+ *
234
+ * @static
235
+ * @memberOf _
236
+ * @since 4.0.0
237
+ * @category Lang
238
+ * @param {*} value The value to check.
239
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
240
+ * @example
241
+ *
242
+ * _.isObjectLike({});
243
+ * // => true
244
+ *
245
+ * _.isObjectLike([1, 2, 3]);
246
+ * // => true
247
+ *
248
+ * _.isObjectLike(_.noop);
249
+ * // => false
250
+ *
251
+ * _.isObjectLike(null);
252
+ * // => false
253
+ */
254
+ function isObjectLike(value) {
255
+ return value != null && typeof value == "object";
256
+ }
257
+ //#endregion
258
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
259
+ /** `Object#toString` result references. */
260
+ var symbolTag$1 = "[object Symbol]";
261
+ /**
262
+ * Checks if `value` is classified as a `Symbol` primitive or object.
263
+ *
264
+ * @static
265
+ * @memberOf _
266
+ * @since 4.0.0
267
+ * @category Lang
268
+ * @param {*} value The value to check.
269
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
270
+ * @example
271
+ *
272
+ * _.isSymbol(Symbol.iterator);
273
+ * // => true
274
+ *
275
+ * _.isSymbol('abc');
276
+ * // => false
277
+ */
278
+ function isSymbol(value) {
279
+ return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$1;
280
+ }
281
+ //#endregion
282
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
283
+ /**
284
+ * A specialized version of `_.map` for arrays without support for iteratee
285
+ * shorthands.
286
+ *
287
+ * @private
288
+ * @param {Array} [array] The array to iterate over.
289
+ * @param {Function} iteratee The function invoked per iteration.
290
+ * @returns {Array} Returns the new mapped array.
291
+ */
292
+ function arrayMap(array, iteratee) {
293
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
294
+ while (++index < length) result[index] = iteratee(array[index], index, array);
295
+ return result;
296
+ }
297
+ //#endregion
298
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
299
+ /**
300
+ * Checks if `value` is classified as an `Array` object.
301
+ *
302
+ * @static
303
+ * @memberOf _
304
+ * @since 0.1.0
305
+ * @category Lang
306
+ * @param {*} value The value to check.
307
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
308
+ * @example
309
+ *
310
+ * _.isArray([1, 2, 3]);
311
+ * // => true
312
+ *
313
+ * _.isArray(document.body.children);
314
+ * // => false
315
+ *
316
+ * _.isArray('abc');
317
+ * // => false
318
+ *
319
+ * _.isArray(_.noop);
320
+ * // => false
321
+ */
322
+ var isArray = Array.isArray;
323
+ //#endregion
324
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js
325
+ /** Used as references for various `Number` constants. */
326
+ var INFINITY$1 = Infinity;
327
+ /** Used to convert symbols to primitives and strings. */
328
+ var symbolProto$1 = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
329
+ /**
330
+ * The base implementation of `_.toString` which doesn't convert nullish
331
+ * values to empty strings.
332
+ *
333
+ * @private
334
+ * @param {*} value The value to process.
335
+ * @returns {string} Returns the string.
336
+ */
337
+ function baseToString(value) {
338
+ if (typeof value == "string") return value;
339
+ if (isArray(value)) return arrayMap(value, baseToString) + "";
340
+ if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
341
+ var result = value + "";
342
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
343
+ }
344
+ //#endregion
345
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
346
+ /**
347
+ * Checks if `value` is the
348
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
349
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
350
+ *
351
+ * @static
352
+ * @memberOf _
353
+ * @since 0.1.0
354
+ * @category Lang
355
+ * @param {*} value The value to check.
356
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
357
+ * @example
358
+ *
359
+ * _.isObject({});
360
+ * // => true
361
+ *
362
+ * _.isObject([1, 2, 3]);
363
+ * // => true
364
+ *
365
+ * _.isObject(_.noop);
366
+ * // => true
367
+ *
368
+ * _.isObject(null);
369
+ * // => false
370
+ */
371
+ function isObject(value) {
372
+ var type = typeof value;
373
+ return value != null && (type == "object" || type == "function");
374
+ }
375
+ //#endregion
376
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.js
377
+ /**
378
+ * This method returns the first argument it receives.
379
+ *
380
+ * @static
381
+ * @since 0.1.0
382
+ * @memberOf _
383
+ * @category Util
384
+ * @param {*} value Any value.
385
+ * @returns {*} Returns `value`.
386
+ * @example
387
+ *
388
+ * var object = { 'a': 1 };
389
+ *
390
+ * console.log(_.identity(object) === object);
391
+ * // => true
392
+ */
393
+ function identity(value) {
394
+ return value;
395
+ }
396
+ //#endregion
397
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
398
+ /** `Object#toString` result references. */
399
+ var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
400
+ /**
401
+ * Checks if `value` is classified as a `Function` object.
402
+ *
403
+ * @static
404
+ * @memberOf _
405
+ * @since 0.1.0
406
+ * @category Lang
407
+ * @param {*} value The value to check.
408
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
409
+ * @example
410
+ *
411
+ * _.isFunction(_);
412
+ * // => true
413
+ *
414
+ * _.isFunction(/abc/);
415
+ * // => false
416
+ */
417
+ function isFunction(value) {
418
+ if (!isObject(value)) return false;
419
+ var tag = baseGetTag(value);
420
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
421
+ }
422
+ //#endregion
423
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
424
+ /** Used to detect overreaching core-js shims. */
425
+ var coreJsData = root["__core-js_shared__"];
426
+ //#endregion
427
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js
428
+ /** Used to detect methods masquerading as native. */
429
+ var maskSrcKey = function() {
430
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
431
+ return uid ? "Symbol(src)_1." + uid : "";
432
+ }();
433
+ /**
434
+ * Checks if `func` has its source masked.
435
+ *
436
+ * @private
437
+ * @param {Function} func The function to check.
438
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
439
+ */
440
+ function isMasked(func) {
441
+ return !!maskSrcKey && maskSrcKey in func;
442
+ }
443
+ //#endregion
444
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
445
+ /** Used to resolve the decompiled source of functions. */
446
+ var funcToString$1 = Function.prototype.toString;
447
+ /**
448
+ * Converts `func` to its source code.
449
+ *
450
+ * @private
451
+ * @param {Function} func The function to convert.
452
+ * @returns {string} Returns the source code.
453
+ */
454
+ function toSource(func) {
455
+ if (func != null) {
456
+ try {
457
+ return funcToString$1.call(func);
458
+ } catch (e) {}
459
+ try {
460
+ return func + "";
461
+ } catch (e) {}
462
+ }
463
+ return "";
464
+ }
465
+ //#endregion
466
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
467
+ /**
468
+ * Used to match `RegExp`
469
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
470
+ */
471
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
472
+ /** Used to detect host constructors (Safari). */
473
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
474
+ /** Used for built-in method references. */
475
+ var funcProto = Function.prototype, objectProto$2 = Object.prototype;
476
+ /** Used to resolve the decompiled source of functions. */
477
+ var funcToString = funcProto.toString;
478
+ /** Used to check objects for own properties. */
479
+ var hasOwnProperty$7 = objectProto$2.hasOwnProperty;
480
+ /** Used to detect if a method is native. */
481
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
482
+ /**
483
+ * The base implementation of `_.isNative` without bad shim checks.
484
+ *
485
+ * @private
486
+ * @param {*} value The value to check.
487
+ * @returns {boolean} Returns `true` if `value` is a native function,
488
+ * else `false`.
489
+ */
490
+ function baseIsNative(value) {
491
+ if (!isObject(value) || isMasked(value)) return false;
492
+ return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
493
+ }
494
+ //#endregion
495
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
496
+ /**
497
+ * Gets the value at `key` of `object`.
498
+ *
499
+ * @private
500
+ * @param {Object} [object] The object to query.
501
+ * @param {string} key The key of the property to get.
502
+ * @returns {*} Returns the property value.
503
+ */
504
+ function getValue(object, key) {
505
+ return object == null ? void 0 : object[key];
506
+ }
507
+ //#endregion
508
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
509
+ /**
510
+ * Gets the native function at `key` of `object`.
511
+ *
512
+ * @private
513
+ * @param {Object} object The object to query.
514
+ * @param {string} key The key of the method to get.
515
+ * @returns {*} Returns the function if it's native, else `undefined`.
516
+ */
517
+ function getNative(object, key) {
518
+ var value = getValue(object, key);
519
+ return baseIsNative(value) ? value : void 0;
520
+ }
521
+ //#endregion
522
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
523
+ var WeakMap = getNative(root, "WeakMap");
524
+ //#endregion
525
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_apply.js
526
+ /**
527
+ * A faster alternative to `Function#apply`, this function invokes `func`
528
+ * with the `this` binding of `thisArg` and the arguments of `args`.
529
+ *
530
+ * @private
531
+ * @param {Function} func The function to invoke.
532
+ * @param {*} thisArg The `this` binding of `func`.
533
+ * @param {Array} args The arguments to invoke `func` with.
534
+ * @returns {*} Returns the result of `func`.
535
+ */
536
+ function apply(func, thisArg, args) {
537
+ switch (args.length) {
538
+ case 0: return func.call(thisArg);
539
+ case 1: return func.call(thisArg, args[0]);
540
+ case 2: return func.call(thisArg, args[0], args[1]);
541
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
542
+ }
543
+ return func.apply(thisArg, args);
544
+ }
545
+ //#endregion
546
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js
547
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
548
+ var HOT_COUNT = 800, HOT_SPAN = 16;
549
+ var nativeNow = Date.now;
550
+ /**
551
+ * Creates a function that'll short out and invoke `identity` instead
552
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
553
+ * milliseconds.
554
+ *
555
+ * @private
556
+ * @param {Function} func The function to restrict.
557
+ * @returns {Function} Returns the new shortable function.
558
+ */
559
+ function shortOut(func) {
560
+ var count = 0, lastCalled = 0;
561
+ return function() {
562
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
563
+ lastCalled = stamp;
564
+ if (remaining > 0) {
565
+ if (++count >= HOT_COUNT) return arguments[0];
566
+ } else count = 0;
567
+ return func.apply(void 0, arguments);
568
+ };
569
+ }
570
+ //#endregion
571
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/constant.js
572
+ /**
573
+ * Creates a function that returns `value`.
574
+ *
575
+ * @static
576
+ * @memberOf _
577
+ * @since 2.4.0
578
+ * @category Util
579
+ * @param {*} value The value to return from the new function.
580
+ * @returns {Function} Returns the new constant function.
581
+ * @example
582
+ *
583
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
584
+ *
585
+ * console.log(objects);
586
+ * // => [{ 'a': 1 }, { 'a': 1 }]
587
+ *
588
+ * console.log(objects[0] === objects[1]);
589
+ * // => true
590
+ */
591
+ function constant(value) {
592
+ return function() {
593
+ return value;
594
+ };
595
+ }
596
+ //#endregion
597
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
598
+ var defineProperty = function() {
599
+ try {
600
+ var func = getNative(Object, "defineProperty");
601
+ func({}, "", {});
602
+ return func;
603
+ } catch (e) {}
604
+ }();
605
+ //#endregion
606
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js
607
+ /**
608
+ * Sets the `toString` method of `func` to return `string`.
609
+ *
610
+ * @private
611
+ * @param {Function} func The function to modify.
612
+ * @param {Function} string The `toString` result.
613
+ * @returns {Function} Returns `func`.
614
+ */
615
+ var setToString = shortOut(!defineProperty ? identity : function(func, string) {
616
+ return defineProperty(func, "toString", {
617
+ "configurable": true,
618
+ "enumerable": false,
619
+ "value": constant(string),
620
+ "writable": true
621
+ });
622
+ });
623
+ //#endregion
624
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
625
+ /** Used as references for various `Number` constants. */
626
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
627
+ /** Used to detect unsigned integer values. */
628
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
629
+ /**
630
+ * Checks if `value` is a valid array-like index.
631
+ *
632
+ * @private
633
+ * @param {*} value The value to check.
634
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
635
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
636
+ */
637
+ function isIndex(value, length) {
638
+ var type = typeof value;
639
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
640
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
641
+ }
642
+ //#endregion
643
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.js
644
+ /**
645
+ * Performs a
646
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
647
+ * comparison between two values to determine if they are equivalent.
648
+ *
649
+ * @static
650
+ * @memberOf _
651
+ * @since 4.0.0
652
+ * @category Lang
653
+ * @param {*} value The value to compare.
654
+ * @param {*} other The other value to compare.
655
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
656
+ * @example
657
+ *
658
+ * var object = { 'a': 1 };
659
+ * var other = { 'a': 1 };
660
+ *
661
+ * _.eq(object, object);
662
+ * // => true
663
+ *
664
+ * _.eq(object, other);
665
+ * // => false
666
+ *
667
+ * _.eq('a', 'a');
668
+ * // => true
669
+ *
670
+ * _.eq('a', Object('a'));
671
+ * // => false
672
+ *
673
+ * _.eq(NaN, NaN);
674
+ * // => true
675
+ */
676
+ function eq(value, other) {
677
+ return value === other || value !== value && other !== other;
678
+ }
679
+ //#endregion
680
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js
681
+ var nativeMax = Math.max;
682
+ /**
683
+ * A specialized version of `baseRest` which transforms the rest array.
684
+ *
685
+ * @private
686
+ * @param {Function} func The function to apply a rest parameter to.
687
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
688
+ * @param {Function} transform The rest array transform.
689
+ * @returns {Function} Returns the new function.
690
+ */
691
+ function overRest(func, start, transform) {
692
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
693
+ return function() {
694
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
695
+ while (++index < length) array[index] = args[start + index];
696
+ index = -1;
697
+ var otherArgs = Array(start + 1);
698
+ while (++index < start) otherArgs[index] = args[index];
699
+ otherArgs[start] = transform(array);
700
+ return apply(func, this, otherArgs);
701
+ };
702
+ }
703
+ //#endregion
704
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js
705
+ /**
706
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
707
+ *
708
+ * @private
709
+ * @param {Function} func The function to apply a rest parameter to.
710
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
711
+ * @returns {Function} Returns the new function.
712
+ */
713
+ function baseRest(func, start) {
714
+ return setToString(overRest(func, start, identity), func + "");
715
+ }
716
+ //#endregion
717
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
718
+ /** Used as references for various `Number` constants. */
719
+ var MAX_SAFE_INTEGER = 9007199254740991;
720
+ /**
721
+ * Checks if `value` is a valid array-like length.
722
+ *
723
+ * **Note:** This method is loosely based on
724
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
725
+ *
726
+ * @static
727
+ * @memberOf _
728
+ * @since 4.0.0
729
+ * @category Lang
730
+ * @param {*} value The value to check.
731
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
732
+ * @example
733
+ *
734
+ * _.isLength(3);
735
+ * // => true
736
+ *
737
+ * _.isLength(Number.MIN_VALUE);
738
+ * // => false
739
+ *
740
+ * _.isLength(Infinity);
741
+ * // => false
742
+ *
743
+ * _.isLength('3');
744
+ * // => false
745
+ */
746
+ function isLength(value) {
747
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
748
+ }
749
+ //#endregion
750
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
751
+ /**
752
+ * Checks if `value` is array-like. A value is considered array-like if it's
753
+ * not a function and has a `value.length` that's an integer greater than or
754
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
755
+ *
756
+ * @static
757
+ * @memberOf _
758
+ * @since 4.0.0
759
+ * @category Lang
760
+ * @param {*} value The value to check.
761
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
762
+ * @example
763
+ *
764
+ * _.isArrayLike([1, 2, 3]);
765
+ * // => true
766
+ *
767
+ * _.isArrayLike(document.body.children);
768
+ * // => true
769
+ *
770
+ * _.isArrayLike('abc');
771
+ * // => true
772
+ *
773
+ * _.isArrayLike(_.noop);
774
+ * // => false
775
+ */
776
+ function isArrayLike(value) {
777
+ return value != null && isLength(value.length) && !isFunction(value);
778
+ }
779
+ //#endregion
780
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
781
+ /**
782
+ * Checks if the given arguments are from an iteratee call.
783
+ *
784
+ * @private
785
+ * @param {*} value The potential iteratee value argument.
786
+ * @param {*} index The potential iteratee index or key argument.
787
+ * @param {*} object The potential iteratee object argument.
788
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
789
+ * else `false`.
790
+ */
791
+ function isIterateeCall(value, index, object) {
792
+ if (!isObject(object)) return false;
793
+ var type = typeof index;
794
+ if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
795
+ return false;
796
+ }
797
+ //#endregion
798
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
799
+ /** Used for built-in method references. */
800
+ var objectProto$1 = Object.prototype;
801
+ /**
802
+ * Checks if `value` is likely a prototype object.
803
+ *
804
+ * @private
805
+ * @param {*} value The value to check.
806
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
807
+ */
808
+ function isPrototype(value) {
809
+ var Ctor = value && value.constructor;
810
+ return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
811
+ }
812
+ //#endregion
813
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
814
+ /**
815
+ * The base implementation of `_.times` without support for iteratee shorthands
816
+ * or max array length checks.
817
+ *
818
+ * @private
819
+ * @param {number} n The number of times to invoke `iteratee`.
820
+ * @param {Function} iteratee The function invoked per iteration.
821
+ * @returns {Array} Returns the array of results.
822
+ */
823
+ function baseTimes(n, iteratee) {
824
+ var index = -1, result = Array(n);
825
+ while (++index < n) result[index] = iteratee(index);
826
+ return result;
827
+ }
828
+ //#endregion
829
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
830
+ /** `Object#toString` result references. */
831
+ var argsTag$2 = "[object Arguments]";
832
+ /**
833
+ * The base implementation of `_.isArguments`.
834
+ *
835
+ * @private
836
+ * @param {*} value The value to check.
837
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
838
+ */
839
+ function baseIsArguments(value) {
840
+ return isObjectLike(value) && baseGetTag(value) == argsTag$2;
841
+ }
842
+ //#endregion
843
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
844
+ /** Used for built-in method references. */
845
+ var objectProto = Object.prototype;
846
+ /** Used to check objects for own properties. */
847
+ var hasOwnProperty$6 = objectProto.hasOwnProperty;
848
+ /** Built-in value references. */
849
+ var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
850
+ /**
851
+ * Checks if `value` is likely an `arguments` object.
852
+ *
853
+ * @static
854
+ * @memberOf _
855
+ * @since 0.1.0
856
+ * @category Lang
857
+ * @param {*} value The value to check.
858
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
859
+ * else `false`.
860
+ * @example
861
+ *
862
+ * _.isArguments(function() { return arguments; }());
863
+ * // => true
864
+ *
865
+ * _.isArguments([1, 2, 3]);
866
+ * // => false
867
+ */
868
+ var isArguments = baseIsArguments(function() {
869
+ return arguments;
870
+ }()) ? baseIsArguments : function(value) {
871
+ return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
872
+ };
873
+ //#endregion
874
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
875
+ /**
876
+ * This method returns `false`.
877
+ *
878
+ * @static
879
+ * @memberOf _
880
+ * @since 4.13.0
881
+ * @category Util
882
+ * @returns {boolean} Returns `false`.
883
+ * @example
884
+ *
885
+ * _.times(2, _.stubFalse);
886
+ * // => [false, false]
887
+ */
888
+ function stubFalse() {
889
+ return false;
890
+ }
891
+ //#endregion
892
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
893
+ /** Detect free variable `exports`. */
894
+ var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
895
+ /** Detect free variable `module`. */
896
+ var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
897
+ /** Built-in value references. */
898
+ var Buffer = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buffer : void 0;
899
+ /**
900
+ * Checks if `value` is a buffer.
901
+ *
902
+ * @static
903
+ * @memberOf _
904
+ * @since 4.3.0
905
+ * @category Lang
906
+ * @param {*} value The value to check.
907
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
908
+ * @example
909
+ *
910
+ * _.isBuffer(new Buffer(2));
911
+ * // => true
912
+ *
913
+ * _.isBuffer(new Uint8Array(2));
914
+ * // => false
915
+ */
916
+ var isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse;
917
+ //#endregion
918
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js
919
+ /** `Object#toString` result references. */
920
+ var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", weakMapTag$1 = "[object WeakMap]";
921
+ var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
922
+ /** Used to identify `toStringTag` values of typed arrays. */
923
+ var typedArrayTags = {};
924
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
925
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] = typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] = typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] = typedArrayTags[weakMapTag$1] = false;
926
+ /**
927
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
928
+ *
929
+ * @private
930
+ * @param {*} value The value to check.
931
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
932
+ */
933
+ function baseIsTypedArray(value) {
934
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
935
+ }
936
+ //#endregion
937
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
938
+ /**
939
+ * The base implementation of `_.unary` without support for storing metadata.
940
+ *
941
+ * @private
942
+ * @param {Function} func The function to cap arguments for.
943
+ * @returns {Function} Returns the new capped function.
944
+ */
945
+ function baseUnary(func) {
946
+ return function(value) {
947
+ return func(value);
948
+ };
949
+ }
950
+ //#endregion
951
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
952
+ /** Detect free variable `exports`. */
953
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
954
+ /** Detect free variable `module`. */
955
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
956
+ /** Detect free variable `process` from Node.js. */
957
+ var freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process;
958
+ /** Used to access faster Node.js helpers. */
959
+ var nodeUtil = function() {
960
+ try {
961
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
962
+ if (types) return types;
963
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
964
+ } catch (e) {}
965
+ }();
966
+ //#endregion
967
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js
968
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
969
+ /**
970
+ * Checks if `value` is classified as a typed array.
971
+ *
972
+ * @static
973
+ * @memberOf _
974
+ * @since 3.0.0
975
+ * @category Lang
976
+ * @param {*} value The value to check.
977
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
978
+ * @example
979
+ *
980
+ * _.isTypedArray(new Uint8Array);
981
+ * // => true
982
+ *
983
+ * _.isTypedArray([]);
984
+ * // => false
985
+ */
986
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
987
+ //#endregion
988
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js
989
+ /** Used to check objects for own properties. */
990
+ var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
991
+ /**
992
+ * Creates an array of the enumerable property names of the array-like `value`.
993
+ *
994
+ * @private
995
+ * @param {*} value The value to query.
996
+ * @param {boolean} inherited Specify returning inherited property names.
997
+ * @returns {Array} Returns the array of property names.
998
+ */
999
+ function arrayLikeKeys(value, inherited) {
1000
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
1001
+ for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
1002
+ return result;
1003
+ }
1004
+ //#endregion
1005
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
1006
+ /**
1007
+ * Creates a unary function that invokes `func` with its argument transformed.
1008
+ *
1009
+ * @private
1010
+ * @param {Function} func The function to wrap.
1011
+ * @param {Function} transform The argument transform.
1012
+ * @returns {Function} Returns the new function.
1013
+ */
1014
+ function overArg(func, transform) {
1015
+ return function(arg) {
1016
+ return func(transform(arg));
1017
+ };
1018
+ }
1019
+ //#endregion
1020
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
1021
+ var nativeKeys = overArg(Object.keys, Object);
1022
+ //#endregion
1023
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js
1024
+ /** Used to check objects for own properties. */
1025
+ var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
1026
+ /**
1027
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1028
+ *
1029
+ * @private
1030
+ * @param {Object} object The object to query.
1031
+ * @returns {Array} Returns the array of property names.
1032
+ */
1033
+ function baseKeys(object) {
1034
+ if (!isPrototype(object)) return nativeKeys(object);
1035
+ var result = [];
1036
+ for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
1037
+ return result;
1038
+ }
1039
+ //#endregion
1040
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.js
1041
+ /**
1042
+ * Creates an array of the own enumerable property names of `object`.
1043
+ *
1044
+ * **Note:** Non-object values are coerced to objects. See the
1045
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1046
+ * for more details.
1047
+ *
1048
+ * @static
1049
+ * @since 0.1.0
1050
+ * @memberOf _
1051
+ * @category Object
1052
+ * @param {Object} object The object to query.
1053
+ * @returns {Array} Returns the array of property names.
1054
+ * @example
1055
+ *
1056
+ * function Foo() {
1057
+ * this.a = 1;
1058
+ * this.b = 2;
1059
+ * }
1060
+ *
1061
+ * Foo.prototype.c = 3;
1062
+ *
1063
+ * _.keys(new Foo);
1064
+ * // => ['a', 'b'] (iteration order is not guaranteed)
1065
+ *
1066
+ * _.keys('hi');
1067
+ * // => ['0', '1']
1068
+ */
1069
+ function keys(object) {
1070
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1071
+ }
1072
+ //#endregion
1073
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
1074
+ /** Used to match property names within property paths. */
1075
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
1076
+ /**
1077
+ * Checks if `value` is a property name and not a property path.
1078
+ *
1079
+ * @private
1080
+ * @param {*} value The value to check.
1081
+ * @param {Object} [object] The object to query keys on.
1082
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1083
+ */
1084
+ function isKey(value, object) {
1085
+ if (isArray(value)) return false;
1086
+ var type = typeof value;
1087
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
1088
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
1089
+ }
1090
+ //#endregion
1091
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
1092
+ var nativeCreate = getNative(Object, "create");
1093
+ //#endregion
1094
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
1095
+ /**
1096
+ * Removes all key-value entries from the hash.
1097
+ *
1098
+ * @private
1099
+ * @name clear
1100
+ * @memberOf Hash
1101
+ */
1102
+ function hashClear() {
1103
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
1104
+ this.size = 0;
1105
+ }
1106
+ //#endregion
1107
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
1108
+ /**
1109
+ * Removes `key` and its value from the hash.
1110
+ *
1111
+ * @private
1112
+ * @name delete
1113
+ * @memberOf Hash
1114
+ * @param {Object} hash The hash to modify.
1115
+ * @param {string} key The key of the value to remove.
1116
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1117
+ */
1118
+ function hashDelete(key) {
1119
+ var result = this.has(key) && delete this.__data__[key];
1120
+ this.size -= result ? 1 : 0;
1121
+ return result;
1122
+ }
1123
+ //#endregion
1124
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
1125
+ /** Used to stand-in for `undefined` hash values. */
1126
+ var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
1127
+ /** Used to check objects for own properties. */
1128
+ var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
1129
+ /**
1130
+ * Gets the hash value for `key`.
1131
+ *
1132
+ * @private
1133
+ * @name get
1134
+ * @memberOf Hash
1135
+ * @param {string} key The key of the value to get.
1136
+ * @returns {*} Returns the entry value.
1137
+ */
1138
+ function hashGet(key) {
1139
+ var data = this.__data__;
1140
+ if (nativeCreate) {
1141
+ var result = data[key];
1142
+ return result === HASH_UNDEFINED$2 ? void 0 : result;
1143
+ }
1144
+ return hasOwnProperty$3.call(data, key) ? data[key] : void 0;
1145
+ }
1146
+ //#endregion
1147
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
1148
+ /** Used to check objects for own properties. */
1149
+ var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
1150
+ /**
1151
+ * Checks if a hash value for `key` exists.
1152
+ *
1153
+ * @private
1154
+ * @name has
1155
+ * @memberOf Hash
1156
+ * @param {string} key The key of the entry to check.
1157
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1158
+ */
1159
+ function hashHas(key) {
1160
+ var data = this.__data__;
1161
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$2.call(data, key);
1162
+ }
1163
+ //#endregion
1164
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
1165
+ /** Used to stand-in for `undefined` hash values. */
1166
+ var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
1167
+ /**
1168
+ * Sets the hash `key` to `value`.
1169
+ *
1170
+ * @private
1171
+ * @name set
1172
+ * @memberOf Hash
1173
+ * @param {string} key The key of the value to set.
1174
+ * @param {*} value The value to set.
1175
+ * @returns {Object} Returns the hash instance.
1176
+ */
1177
+ function hashSet(key, value) {
1178
+ var data = this.__data__;
1179
+ this.size += this.has(key) ? 0 : 1;
1180
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
1181
+ return this;
1182
+ }
1183
+ //#endregion
1184
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
1185
+ /**
1186
+ * Creates a hash object.
1187
+ *
1188
+ * @private
1189
+ * @constructor
1190
+ * @param {Array} [entries] The key-value pairs to cache.
1191
+ */
1192
+ function Hash(entries) {
1193
+ var index = -1, length = entries == null ? 0 : entries.length;
1194
+ this.clear();
1195
+ while (++index < length) {
1196
+ var entry = entries[index];
1197
+ this.set(entry[0], entry[1]);
1198
+ }
1199
+ }
1200
+ Hash.prototype.clear = hashClear;
1201
+ Hash.prototype["delete"] = hashDelete;
1202
+ Hash.prototype.get = hashGet;
1203
+ Hash.prototype.has = hashHas;
1204
+ Hash.prototype.set = hashSet;
1205
+ //#endregion
1206
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
1207
+ /**
1208
+ * Removes all key-value entries from the list cache.
1209
+ *
1210
+ * @private
1211
+ * @name clear
1212
+ * @memberOf ListCache
1213
+ */
1214
+ function listCacheClear() {
1215
+ this.__data__ = [];
1216
+ this.size = 0;
1217
+ }
1218
+ //#endregion
1219
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
1220
+ /**
1221
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1222
+ *
1223
+ * @private
1224
+ * @param {Array} array The array to inspect.
1225
+ * @param {*} key The key to search for.
1226
+ * @returns {number} Returns the index of the matched value, else `-1`.
1227
+ */
1228
+ function assocIndexOf(array, key) {
1229
+ var length = array.length;
1230
+ while (length--) if (eq(array[length][0], key)) return length;
1231
+ return -1;
1232
+ }
1233
+ //#endregion
1234
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
1235
+ /** Built-in value references. */
1236
+ var splice = Array.prototype.splice;
1237
+ /**
1238
+ * Removes `key` and its value from the list cache.
1239
+ *
1240
+ * @private
1241
+ * @name delete
1242
+ * @memberOf ListCache
1243
+ * @param {string} key The key of the value to remove.
1244
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1245
+ */
1246
+ function listCacheDelete(key) {
1247
+ var data = this.__data__, index = assocIndexOf(data, key);
1248
+ if (index < 0) return false;
1249
+ if (index == data.length - 1) data.pop();
1250
+ else splice.call(data, index, 1);
1251
+ --this.size;
1252
+ return true;
1253
+ }
1254
+ //#endregion
1255
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
1256
+ /**
1257
+ * Gets the list cache value for `key`.
1258
+ *
1259
+ * @private
1260
+ * @name get
1261
+ * @memberOf ListCache
1262
+ * @param {string} key The key of the value to get.
1263
+ * @returns {*} Returns the entry value.
1264
+ */
1265
+ function listCacheGet(key) {
1266
+ var data = this.__data__, index = assocIndexOf(data, key);
1267
+ return index < 0 ? void 0 : data[index][1];
1268
+ }
1269
+ //#endregion
1270
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
1271
+ /**
1272
+ * Checks if a list cache value for `key` exists.
1273
+ *
1274
+ * @private
1275
+ * @name has
1276
+ * @memberOf ListCache
1277
+ * @param {string} key The key of the entry to check.
1278
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1279
+ */
1280
+ function listCacheHas(key) {
1281
+ return assocIndexOf(this.__data__, key) > -1;
1282
+ }
1283
+ //#endregion
1284
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
1285
+ /**
1286
+ * Sets the list cache `key` to `value`.
1287
+ *
1288
+ * @private
1289
+ * @name set
1290
+ * @memberOf ListCache
1291
+ * @param {string} key The key of the value to set.
1292
+ * @param {*} value The value to set.
1293
+ * @returns {Object} Returns the list cache instance.
1294
+ */
1295
+ function listCacheSet(key, value) {
1296
+ var data = this.__data__, index = assocIndexOf(data, key);
1297
+ if (index < 0) {
1298
+ ++this.size;
1299
+ data.push([key, value]);
1300
+ } else data[index][1] = value;
1301
+ return this;
1302
+ }
1303
+ //#endregion
1304
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
1305
+ /**
1306
+ * Creates an list cache object.
1307
+ *
1308
+ * @private
1309
+ * @constructor
1310
+ * @param {Array} [entries] The key-value pairs to cache.
1311
+ */
1312
+ function ListCache(entries) {
1313
+ var index = -1, length = entries == null ? 0 : entries.length;
1314
+ this.clear();
1315
+ while (++index < length) {
1316
+ var entry = entries[index];
1317
+ this.set(entry[0], entry[1]);
1318
+ }
1319
+ }
1320
+ ListCache.prototype.clear = listCacheClear;
1321
+ ListCache.prototype["delete"] = listCacheDelete;
1322
+ ListCache.prototype.get = listCacheGet;
1323
+ ListCache.prototype.has = listCacheHas;
1324
+ ListCache.prototype.set = listCacheSet;
1325
+ //#endregion
1326
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
1327
+ var Map = getNative(root, "Map");
1328
+ //#endregion
1329
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
1330
+ /**
1331
+ * Removes all key-value entries from the map.
1332
+ *
1333
+ * @private
1334
+ * @name clear
1335
+ * @memberOf MapCache
1336
+ */
1337
+ function mapCacheClear() {
1338
+ this.size = 0;
1339
+ this.__data__ = {
1340
+ "hash": new Hash(),
1341
+ "map": new (Map || ListCache)(),
1342
+ "string": new Hash()
1343
+ };
1344
+ }
1345
+ //#endregion
1346
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
1347
+ /**
1348
+ * Checks if `value` is suitable for use as unique object key.
1349
+ *
1350
+ * @private
1351
+ * @param {*} value The value to check.
1352
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1353
+ */
1354
+ function isKeyable(value) {
1355
+ var type = typeof value;
1356
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
1357
+ }
1358
+ //#endregion
1359
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
1360
+ /**
1361
+ * Gets the data for `map`.
1362
+ *
1363
+ * @private
1364
+ * @param {Object} map The map to query.
1365
+ * @param {string} key The reference key.
1366
+ * @returns {*} Returns the map data.
1367
+ */
1368
+ function getMapData(map, key) {
1369
+ var data = map.__data__;
1370
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
1371
+ }
1372
+ //#endregion
1373
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
1374
+ /**
1375
+ * Removes `key` and its value from the map.
1376
+ *
1377
+ * @private
1378
+ * @name delete
1379
+ * @memberOf MapCache
1380
+ * @param {string} key The key of the value to remove.
1381
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1382
+ */
1383
+ function mapCacheDelete(key) {
1384
+ var result = getMapData(this, key)["delete"](key);
1385
+ this.size -= result ? 1 : 0;
1386
+ return result;
1387
+ }
1388
+ //#endregion
1389
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
1390
+ /**
1391
+ * Gets the map value for `key`.
1392
+ *
1393
+ * @private
1394
+ * @name get
1395
+ * @memberOf MapCache
1396
+ * @param {string} key The key of the value to get.
1397
+ * @returns {*} Returns the entry value.
1398
+ */
1399
+ function mapCacheGet(key) {
1400
+ return getMapData(this, key).get(key);
1401
+ }
1402
+ //#endregion
1403
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
1404
+ /**
1405
+ * Checks if a map value for `key` exists.
1406
+ *
1407
+ * @private
1408
+ * @name has
1409
+ * @memberOf MapCache
1410
+ * @param {string} key The key of the entry to check.
1411
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1412
+ */
1413
+ function mapCacheHas(key) {
1414
+ return getMapData(this, key).has(key);
1415
+ }
1416
+ //#endregion
1417
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
1418
+ /**
1419
+ * Sets the map `key` to `value`.
1420
+ *
1421
+ * @private
1422
+ * @name set
1423
+ * @memberOf MapCache
1424
+ * @param {string} key The key of the value to set.
1425
+ * @param {*} value The value to set.
1426
+ * @returns {Object} Returns the map cache instance.
1427
+ */
1428
+ function mapCacheSet(key, value) {
1429
+ var data = getMapData(this, key), size = data.size;
1430
+ data.set(key, value);
1431
+ this.size += data.size == size ? 0 : 1;
1432
+ return this;
1433
+ }
1434
+ //#endregion
1435
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
1436
+ /**
1437
+ * Creates a map cache object to store key-value pairs.
1438
+ *
1439
+ * @private
1440
+ * @constructor
1441
+ * @param {Array} [entries] The key-value pairs to cache.
1442
+ */
1443
+ function MapCache(entries) {
1444
+ var index = -1, length = entries == null ? 0 : entries.length;
1445
+ this.clear();
1446
+ while (++index < length) {
1447
+ var entry = entries[index];
1448
+ this.set(entry[0], entry[1]);
1449
+ }
1450
+ }
1451
+ MapCache.prototype.clear = mapCacheClear;
1452
+ MapCache.prototype["delete"] = mapCacheDelete;
1453
+ MapCache.prototype.get = mapCacheGet;
1454
+ MapCache.prototype.has = mapCacheHas;
1455
+ MapCache.prototype.set = mapCacheSet;
1456
+ //#endregion
1457
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
1458
+ /** Error message constants. */
1459
+ var FUNC_ERROR_TEXT = "Expected a function";
1460
+ /**
1461
+ * Creates a function that memoizes the result of `func`. If `resolver` is
1462
+ * provided, it determines the cache key for storing the result based on the
1463
+ * arguments provided to the memoized function. By default, the first argument
1464
+ * provided to the memoized function is used as the map cache key. The `func`
1465
+ * is invoked with the `this` binding of the memoized function.
1466
+ *
1467
+ * **Note:** The cache is exposed as the `cache` property on the memoized
1468
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
1469
+ * constructor with one whose instances implement the
1470
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1471
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1472
+ *
1473
+ * @static
1474
+ * @memberOf _
1475
+ * @since 0.1.0
1476
+ * @category Function
1477
+ * @param {Function} func The function to have its output memoized.
1478
+ * @param {Function} [resolver] The function to resolve the cache key.
1479
+ * @returns {Function} Returns the new memoized function.
1480
+ * @example
1481
+ *
1482
+ * var object = { 'a': 1, 'b': 2 };
1483
+ * var other = { 'c': 3, 'd': 4 };
1484
+ *
1485
+ * var values = _.memoize(_.values);
1486
+ * values(object);
1487
+ * // => [1, 2]
1488
+ *
1489
+ * values(other);
1490
+ * // => [3, 4]
1491
+ *
1492
+ * object.a = 2;
1493
+ * values(object);
1494
+ * // => [1, 2]
1495
+ *
1496
+ * // Modify the result cache.
1497
+ * values.cache.set(object, ['a', 'b']);
1498
+ * values(object);
1499
+ * // => ['a', 'b']
1500
+ *
1501
+ * // Replace `_.memoize.Cache`.
1502
+ * _.memoize.Cache = WeakMap;
1503
+ */
1504
+ function memoize(func, resolver) {
1505
+ if (typeof func != "function" || resolver != null && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
1506
+ var memoized = function() {
1507
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1508
+ if (cache.has(key)) return cache.get(key);
1509
+ var result = func.apply(this, args);
1510
+ memoized.cache = cache.set(key, result) || cache;
1511
+ return result;
1512
+ };
1513
+ memoized.cache = new (memoize.Cache || MapCache)();
1514
+ return memoized;
1515
+ }
1516
+ memoize.Cache = MapCache;
1517
+ //#endregion
1518
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
1519
+ /** Used as the maximum memoize cache size. */
1520
+ var MAX_MEMOIZE_SIZE = 500;
1521
+ /**
1522
+ * A specialized version of `_.memoize` which clears the memoized function's
1523
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1524
+ *
1525
+ * @private
1526
+ * @param {Function} func The function to have its output memoized.
1527
+ * @returns {Function} Returns the new memoized function.
1528
+ */
1529
+ function memoizeCapped(func) {
1530
+ var result = memoize(func, function(key) {
1531
+ if (cache.size === MAX_MEMOIZE_SIZE) cache.clear();
1532
+ return key;
1533
+ });
1534
+ var cache = result.cache;
1535
+ return result;
1536
+ }
1537
+ //#endregion
1538
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
1539
+ /** Used to match property names within property paths. */
1540
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1541
+ /** Used to match backslashes in property paths. */
1542
+ var reEscapeChar = /\\(\\)?/g;
1543
+ /**
1544
+ * Converts `string` to a property path array.
1545
+ *
1546
+ * @private
1547
+ * @param {string} string The string to convert.
1548
+ * @returns {Array} Returns the property path array.
1549
+ */
1550
+ var stringToPath = memoizeCapped(function(string) {
1551
+ var result = [];
1552
+ if (string.charCodeAt(0) === 46) result.push("");
1553
+ string.replace(rePropName, function(match, number, quote, subString) {
1554
+ result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
1555
+ });
1556
+ return result;
1557
+ });
1558
+ //#endregion
1559
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.js
1560
+ /**
1561
+ * Converts `value` to a string. An empty string is returned for `null`
1562
+ * and `undefined` values. The sign of `-0` is preserved.
1563
+ *
1564
+ * @static
1565
+ * @memberOf _
1566
+ * @since 4.0.0
1567
+ * @category Lang
1568
+ * @param {*} value The value to convert.
1569
+ * @returns {string} Returns the converted string.
1570
+ * @example
1571
+ *
1572
+ * _.toString(null);
1573
+ * // => ''
1574
+ *
1575
+ * _.toString(-0);
1576
+ * // => '-0'
1577
+ *
1578
+ * _.toString([1, 2, 3]);
1579
+ * // => '1,2,3'
1580
+ */
1581
+ function toString(value) {
1582
+ return value == null ? "" : baseToString(value);
1583
+ }
1584
+ //#endregion
1585
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
1586
+ /**
1587
+ * Casts `value` to a path array if it's not one.
1588
+ *
1589
+ * @private
1590
+ * @param {*} value The value to inspect.
1591
+ * @param {Object} [object] The object to query keys on.
1592
+ * @returns {Array} Returns the cast property path array.
1593
+ */
1594
+ function castPath(value, object) {
1595
+ if (isArray(value)) return value;
1596
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
1597
+ }
1598
+ //#endregion
1599
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
1600
+ /** Used as references for various `Number` constants. */
1601
+ var INFINITY = Infinity;
1602
+ /**
1603
+ * Converts `value` to a string key if it's not a string or symbol.
1604
+ *
1605
+ * @private
1606
+ * @param {*} value The value to inspect.
1607
+ * @returns {string|symbol} Returns the key.
1608
+ */
1609
+ function toKey(value) {
1610
+ if (typeof value == "string" || isSymbol(value)) return value;
1611
+ var result = value + "";
1612
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1613
+ }
1614
+ //#endregion
1615
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
1616
+ /**
1617
+ * The base implementation of `_.get` without support for default values.
1618
+ *
1619
+ * @private
1620
+ * @param {Object} object The object to query.
1621
+ * @param {Array|string} path The path of the property to get.
1622
+ * @returns {*} Returns the resolved value.
1623
+ */
1624
+ function baseGet(object, path) {
1625
+ path = castPath(path, object);
1626
+ var index = 0, length = path.length;
1627
+ while (object != null && index < length) object = object[toKey(path[index++])];
1628
+ return index && index == length ? object : void 0;
1629
+ }
1630
+ //#endregion
1631
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.js
1632
+ /**
1633
+ * Gets the value at `path` of `object`. If the resolved value is
1634
+ * `undefined`, the `defaultValue` is returned in its place.
1635
+ *
1636
+ * @static
1637
+ * @memberOf _
1638
+ * @since 3.7.0
1639
+ * @category Object
1640
+ * @param {Object} object The object to query.
1641
+ * @param {Array|string} path The path of the property to get.
1642
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1643
+ * @returns {*} Returns the resolved value.
1644
+ * @example
1645
+ *
1646
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1647
+ *
1648
+ * _.get(object, 'a[0].b.c');
1649
+ * // => 3
1650
+ *
1651
+ * _.get(object, ['a', '0', 'b', 'c']);
1652
+ * // => 3
1653
+ *
1654
+ * _.get(object, 'a.b.c', 'default');
1655
+ * // => 'default'
1656
+ */
1657
+ function get(object, path, defaultValue) {
1658
+ var result = object == null ? void 0 : baseGet(object, path);
1659
+ return result === void 0 ? defaultValue : result;
1660
+ }
1661
+ //#endregion
1662
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
1663
+ /**
1664
+ * Appends the elements of `values` to `array`.
1665
+ *
1666
+ * @private
1667
+ * @param {Array} array The array to modify.
1668
+ * @param {Array} values The values to append.
1669
+ * @returns {Array} Returns `array`.
1670
+ */
1671
+ function arrayPush(array, values) {
1672
+ var index = -1, length = values.length, offset = array.length;
1673
+ while (++index < length) array[offset + index] = values[index];
1674
+ return array;
1675
+ }
1676
+ //#endregion
1677
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.js
1678
+ /** Built-in value references. */
1679
+ var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
1680
+ /**
1681
+ * Checks if `value` is a flattenable `arguments` object or array.
1682
+ *
1683
+ * @private
1684
+ * @param {*} value The value to check.
1685
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
1686
+ */
1687
+ function isFlattenable(value) {
1688
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
1689
+ }
1690
+ //#endregion
1691
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.js
1692
+ /**
1693
+ * The base implementation of `_.flatten` with support for restricting flattening.
1694
+ *
1695
+ * @private
1696
+ * @param {Array} array The array to flatten.
1697
+ * @param {number} depth The maximum recursion depth.
1698
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
1699
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
1700
+ * @param {Array} [result=[]] The initial result value.
1701
+ * @returns {Array} Returns the new flattened array.
1702
+ */
1703
+ function baseFlatten(array, depth, predicate, isStrict, result) {
1704
+ var index = -1, length = array.length;
1705
+ predicate || (predicate = isFlattenable);
1706
+ result || (result = []);
1707
+ while (++index < length) {
1708
+ var value = array[index];
1709
+ if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
1710
+ else arrayPush(result, value);
1711
+ else if (!isStrict) result[result.length] = value;
1712
+ }
1713
+ return result;
1714
+ }
1715
+ //#endregion
1716
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
1717
+ /**
1718
+ * Removes all key-value entries from the stack.
1719
+ *
1720
+ * @private
1721
+ * @name clear
1722
+ * @memberOf Stack
1723
+ */
1724
+ function stackClear() {
1725
+ this.__data__ = new ListCache();
1726
+ this.size = 0;
1727
+ }
1728
+ //#endregion
1729
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
1730
+ /**
1731
+ * Removes `key` and its value from the stack.
1732
+ *
1733
+ * @private
1734
+ * @name delete
1735
+ * @memberOf Stack
1736
+ * @param {string} key The key of the value to remove.
1737
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1738
+ */
1739
+ function stackDelete(key) {
1740
+ var data = this.__data__, result = data["delete"](key);
1741
+ this.size = data.size;
1742
+ return result;
1743
+ }
1744
+ //#endregion
1745
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
1746
+ /**
1747
+ * Gets the stack value for `key`.
1748
+ *
1749
+ * @private
1750
+ * @name get
1751
+ * @memberOf Stack
1752
+ * @param {string} key The key of the value to get.
1753
+ * @returns {*} Returns the entry value.
1754
+ */
1755
+ function stackGet(key) {
1756
+ return this.__data__.get(key);
1757
+ }
1758
+ //#endregion
1759
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
1760
+ /**
1761
+ * Checks if a stack value for `key` exists.
1762
+ *
1763
+ * @private
1764
+ * @name has
1765
+ * @memberOf Stack
1766
+ * @param {string} key The key of the entry to check.
1767
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1768
+ */
1769
+ function stackHas(key) {
1770
+ return this.__data__.has(key);
1771
+ }
1772
+ //#endregion
1773
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
1774
+ /** Used as the size to enable large array optimizations. */
1775
+ var LARGE_ARRAY_SIZE = 200;
1776
+ /**
1777
+ * Sets the stack `key` to `value`.
1778
+ *
1779
+ * @private
1780
+ * @name set
1781
+ * @memberOf Stack
1782
+ * @param {string} key The key of the value to set.
1783
+ * @param {*} value The value to set.
1784
+ * @returns {Object} Returns the stack cache instance.
1785
+ */
1786
+ function stackSet(key, value) {
1787
+ var data = this.__data__;
1788
+ if (data instanceof ListCache) {
1789
+ var pairs = data.__data__;
1790
+ if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
1791
+ pairs.push([key, value]);
1792
+ this.size = ++data.size;
1793
+ return this;
1794
+ }
1795
+ data = this.__data__ = new MapCache(pairs);
1796
+ }
1797
+ data.set(key, value);
1798
+ this.size = data.size;
1799
+ return this;
1800
+ }
1801
+ //#endregion
1802
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
1803
+ /**
1804
+ * Creates a stack cache object to store key-value pairs.
1805
+ *
1806
+ * @private
1807
+ * @constructor
1808
+ * @param {Array} [entries] The key-value pairs to cache.
1809
+ */
1810
+ function Stack(entries) {
1811
+ var data = this.__data__ = new ListCache(entries);
1812
+ this.size = data.size;
1813
+ }
1814
+ Stack.prototype.clear = stackClear;
1815
+ Stack.prototype["delete"] = stackDelete;
1816
+ Stack.prototype.get = stackGet;
1817
+ Stack.prototype.has = stackHas;
1818
+ Stack.prototype.set = stackSet;
1819
+ //#endregion
1820
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
1821
+ /**
1822
+ * A specialized version of `_.filter` for arrays without support for
1823
+ * iteratee shorthands.
1824
+ *
1825
+ * @private
1826
+ * @param {Array} [array] The array to iterate over.
1827
+ * @param {Function} predicate The function invoked per iteration.
1828
+ * @returns {Array} Returns the new filtered array.
1829
+ */
1830
+ function arrayFilter(array, predicate) {
1831
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1832
+ while (++index < length) {
1833
+ var value = array[index];
1834
+ if (predicate(value, index, array)) result[resIndex++] = value;
1835
+ }
1836
+ return result;
1837
+ }
1838
+ //#endregion
1839
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
1840
+ /**
1841
+ * This method returns a new empty array.
1842
+ *
1843
+ * @static
1844
+ * @memberOf _
1845
+ * @since 4.13.0
1846
+ * @category Util
1847
+ * @returns {Array} Returns the new empty array.
1848
+ * @example
1849
+ *
1850
+ * var arrays = _.times(2, _.stubArray);
1851
+ *
1852
+ * console.log(arrays);
1853
+ * // => [[], []]
1854
+ *
1855
+ * console.log(arrays[0] === arrays[1]);
1856
+ * // => false
1857
+ */
1858
+ function stubArray() {
1859
+ return [];
1860
+ }
1861
+ //#endregion
1862
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
1863
+ /** Built-in value references. */
1864
+ var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
1865
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1866
+ /**
1867
+ * Creates an array of the own enumerable symbols of `object`.
1868
+ *
1869
+ * @private
1870
+ * @param {Object} object The object to query.
1871
+ * @returns {Array} Returns the array of symbols.
1872
+ */
1873
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1874
+ if (object == null) return [];
1875
+ object = Object(object);
1876
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
1877
+ return propertyIsEnumerable.call(object, symbol);
1878
+ });
1879
+ };
1880
+ //#endregion
1881
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
1882
+ /**
1883
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1884
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1885
+ * symbols of `object`.
1886
+ *
1887
+ * @private
1888
+ * @param {Object} object The object to query.
1889
+ * @param {Function} keysFunc The function to get the keys of `object`.
1890
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1891
+ * @returns {Array} Returns the array of property names and symbols.
1892
+ */
1893
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1894
+ var result = keysFunc(object);
1895
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
1896
+ }
1897
+ //#endregion
1898
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
1899
+ /**
1900
+ * Creates an array of own enumerable property names and symbols of `object`.
1901
+ *
1902
+ * @private
1903
+ * @param {Object} object The object to query.
1904
+ * @returns {Array} Returns the array of property names and symbols.
1905
+ */
1906
+ function getAllKeys(object) {
1907
+ return baseGetAllKeys(object, keys, getSymbols);
1908
+ }
1909
+ //#endregion
1910
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
1911
+ var DataView = getNative(root, "DataView");
1912
+ //#endregion
1913
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js
1914
+ var Promise$1 = getNative(root, "Promise");
1915
+ //#endregion
1916
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.js
1917
+ var Set = getNative(root, "Set");
1918
+ //#endregion
1919
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js
1920
+ /** `Object#toString` result references. */
1921
+ var mapTag$1 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$1 = "[object Set]", weakMapTag = "[object WeakMap]";
1922
+ var dataViewTag$1 = "[object DataView]";
1923
+ /** Used to detect maps, sets, and weakmaps. */
1924
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
1925
+ /**
1926
+ * Gets the `toStringTag` of `value`.
1927
+ *
1928
+ * @private
1929
+ * @param {*} value The value to query.
1930
+ * @returns {string} Returns the `toStringTag`.
1931
+ */
1932
+ var getTag = baseGetTag;
1933
+ if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$1 || Map && getTag(new Map()) != mapTag$1 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$1 || WeakMap && getTag(new WeakMap()) != weakMapTag) getTag = function(value) {
1934
+ var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
1935
+ if (ctorString) switch (ctorString) {
1936
+ case dataViewCtorString: return dataViewTag$1;
1937
+ case mapCtorString: return mapTag$1;
1938
+ case promiseCtorString: return promiseTag;
1939
+ case setCtorString: return setTag$1;
1940
+ case weakMapCtorString: return weakMapTag;
1941
+ }
1942
+ return result;
1943
+ };
1944
+ var _getTag_default = getTag;
1945
+ //#endregion
1946
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
1947
+ /** Built-in value references. */
1948
+ var Uint8Array$1 = root.Uint8Array;
1949
+ //#endregion
1950
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
1951
+ /** Used to stand-in for `undefined` hash values. */
1952
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
1953
+ /**
1954
+ * Adds `value` to the array cache.
1955
+ *
1956
+ * @private
1957
+ * @name add
1958
+ * @memberOf SetCache
1959
+ * @alias push
1960
+ * @param {*} value The value to cache.
1961
+ * @returns {Object} Returns the cache instance.
1962
+ */
1963
+ function setCacheAdd(value) {
1964
+ this.__data__.set(value, HASH_UNDEFINED);
1965
+ return this;
1966
+ }
1967
+ //#endregion
1968
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
1969
+ /**
1970
+ * Checks if `value` is in the array cache.
1971
+ *
1972
+ * @private
1973
+ * @name has
1974
+ * @memberOf SetCache
1975
+ * @param {*} value The value to search for.
1976
+ * @returns {boolean} Returns `true` if `value` is found, else `false`.
1977
+ */
1978
+ function setCacheHas(value) {
1979
+ return this.__data__.has(value);
1980
+ }
1981
+ //#endregion
1982
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
1983
+ /**
1984
+ *
1985
+ * Creates an array cache object to store unique values.
1986
+ *
1987
+ * @private
1988
+ * @constructor
1989
+ * @param {Array} [values] The values to cache.
1990
+ */
1991
+ function SetCache(values) {
1992
+ var index = -1, length = values == null ? 0 : values.length;
1993
+ this.__data__ = new MapCache();
1994
+ while (++index < length) this.add(values[index]);
1995
+ }
1996
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
1997
+ SetCache.prototype.has = setCacheHas;
1998
+ //#endregion
1999
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
2000
+ /**
2001
+ * A specialized version of `_.some` for arrays without support for iteratee
2002
+ * shorthands.
2003
+ *
2004
+ * @private
2005
+ * @param {Array} [array] The array to iterate over.
2006
+ * @param {Function} predicate The function invoked per iteration.
2007
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
2008
+ * else `false`.
2009
+ */
2010
+ function arraySome(array, predicate) {
2011
+ var index = -1, length = array == null ? 0 : array.length;
2012
+ while (++index < length) if (predicate(array[index], index, array)) return true;
2013
+ return false;
2014
+ }
2015
+ //#endregion
2016
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
2017
+ /**
2018
+ * Checks if a `cache` value for `key` exists.
2019
+ *
2020
+ * @private
2021
+ * @param {Object} cache The cache to query.
2022
+ * @param {string} key The key of the entry to check.
2023
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2024
+ */
2025
+ function cacheHas(cache, key) {
2026
+ return cache.has(key);
2027
+ }
2028
+ //#endregion
2029
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
2030
+ /** Used to compose bitmasks for value comparisons. */
2031
+ var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
2032
+ /**
2033
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
2034
+ * partial deep comparisons.
2035
+ *
2036
+ * @private
2037
+ * @param {Array} array The array to compare.
2038
+ * @param {Array} other The other array to compare.
2039
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2040
+ * @param {Function} customizer The function to customize comparisons.
2041
+ * @param {Function} equalFunc The function to determine equivalents of values.
2042
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
2043
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
2044
+ */
2045
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2046
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
2047
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) return false;
2048
+ var arrStacked = stack.get(array);
2049
+ var othStacked = stack.get(other);
2050
+ if (arrStacked && othStacked) return arrStacked == other && othStacked == array;
2051
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2052
+ stack.set(array, other);
2053
+ stack.set(other, array);
2054
+ while (++index < arrLength) {
2055
+ var arrValue = array[index], othValue = other[index];
2056
+ if (customizer) var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
2057
+ if (compared !== void 0) {
2058
+ if (compared) continue;
2059
+ result = false;
2060
+ break;
2061
+ }
2062
+ if (seen) {
2063
+ if (!arraySome(other, function(othValue, othIndex) {
2064
+ if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) return seen.push(othIndex);
2065
+ })) {
2066
+ result = false;
2067
+ break;
2068
+ }
2069
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2070
+ result = false;
2071
+ break;
2072
+ }
2073
+ }
2074
+ stack["delete"](array);
2075
+ stack["delete"](other);
2076
+ return result;
2077
+ }
2078
+ //#endregion
2079
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
2080
+ /**
2081
+ * Converts `map` to its key-value pairs.
2082
+ *
2083
+ * @private
2084
+ * @param {Object} map The map to convert.
2085
+ * @returns {Array} Returns the key-value pairs.
2086
+ */
2087
+ function mapToArray(map) {
2088
+ var index = -1, result = Array(map.size);
2089
+ map.forEach(function(value, key) {
2090
+ result[++index] = [key, value];
2091
+ });
2092
+ return result;
2093
+ }
2094
+ //#endregion
2095
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
2096
+ /**
2097
+ * Converts `set` to an array of its values.
2098
+ *
2099
+ * @private
2100
+ * @param {Object} set The set to convert.
2101
+ * @returns {Array} Returns the values.
2102
+ */
2103
+ function setToArray(set) {
2104
+ var index = -1, result = Array(set.size);
2105
+ set.forEach(function(value) {
2106
+ result[++index] = value;
2107
+ });
2108
+ return result;
2109
+ }
2110
+ //#endregion
2111
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
2112
+ /** Used to compose bitmasks for value comparisons. */
2113
+ var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
2114
+ /** `Object#toString` result references. */
2115
+ var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
2116
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
2117
+ /** Used to convert symbols to primitives and strings. */
2118
+ var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
2119
+ /**
2120
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
2121
+ * the same `toStringTag`.
2122
+ *
2123
+ * **Note:** This function only supports comparing values with tags of
2124
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2125
+ *
2126
+ * @private
2127
+ * @param {Object} object The object to compare.
2128
+ * @param {Object} other The other object to compare.
2129
+ * @param {string} tag The `toStringTag` of the objects to compare.
2130
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2131
+ * @param {Function} customizer The function to customize comparisons.
2132
+ * @param {Function} equalFunc The function to determine equivalents of values.
2133
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2134
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2135
+ */
2136
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2137
+ switch (tag) {
2138
+ case dataViewTag:
2139
+ if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) return false;
2140
+ object = object.buffer;
2141
+ other = other.buffer;
2142
+ case arrayBufferTag:
2143
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) return false;
2144
+ return true;
2145
+ case boolTag:
2146
+ case dateTag:
2147
+ case numberTag: return eq(+object, +other);
2148
+ case errorTag: return object.name == other.name && object.message == other.message;
2149
+ case regexpTag:
2150
+ case stringTag: return object == other + "";
2151
+ case mapTag: var convert = mapToArray;
2152
+ case setTag:
2153
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
2154
+ convert || (convert = setToArray);
2155
+ if (object.size != other.size && !isPartial) return false;
2156
+ var stacked = stack.get(object);
2157
+ if (stacked) return stacked == other;
2158
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
2159
+ stack.set(object, other);
2160
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2161
+ stack["delete"](object);
2162
+ return result;
2163
+ case symbolTag: if (symbolValueOf) return symbolValueOf.call(object) == symbolValueOf.call(other);
2164
+ }
2165
+ return false;
2166
+ }
2167
+ //#endregion
2168
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
2169
+ /** Used to compose bitmasks for value comparisons. */
2170
+ var COMPARE_PARTIAL_FLAG$3 = 1;
2171
+ /** Used to check objects for own properties. */
2172
+ var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
2173
+ /**
2174
+ * A specialized version of `baseIsEqualDeep` for objects with support for
2175
+ * partial deep comparisons.
2176
+ *
2177
+ * @private
2178
+ * @param {Object} object The object to compare.
2179
+ * @param {Object} other The other object to compare.
2180
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2181
+ * @param {Function} customizer The function to customize comparisons.
2182
+ * @param {Function} equalFunc The function to determine equivalents of values.
2183
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2184
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2185
+ */
2186
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2187
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys(object), objLength = objProps.length;
2188
+ if (objLength != getAllKeys(other).length && !isPartial) return false;
2189
+ var index = objLength;
2190
+ while (index--) {
2191
+ var key = objProps[index];
2192
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) return false;
2193
+ }
2194
+ var objStacked = stack.get(object);
2195
+ var othStacked = stack.get(other);
2196
+ if (objStacked && othStacked) return objStacked == other && othStacked == object;
2197
+ var result = true;
2198
+ stack.set(object, other);
2199
+ stack.set(other, object);
2200
+ var skipCtor = isPartial;
2201
+ while (++index < objLength) {
2202
+ key = objProps[index];
2203
+ var objValue = object[key], othValue = other[key];
2204
+ if (customizer) var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
2205
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2206
+ result = false;
2207
+ break;
2208
+ }
2209
+ skipCtor || (skipCtor = key == "constructor");
2210
+ }
2211
+ if (result && !skipCtor) {
2212
+ var objCtor = object.constructor, othCtor = other.constructor;
2213
+ if (objCtor != othCtor && "constructor" in object && "constructor" in other && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) result = false;
2214
+ }
2215
+ stack["delete"](object);
2216
+ stack["delete"](other);
2217
+ return result;
2218
+ }
2219
+ //#endregion
2220
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
2221
+ /** Used to compose bitmasks for value comparisons. */
2222
+ var COMPARE_PARTIAL_FLAG$2 = 1;
2223
+ /** `Object#toString` result references. */
2224
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
2225
+ /** Used to check objects for own properties. */
2226
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
2227
+ /**
2228
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
2229
+ * deep comparisons and tracks traversed objects enabling objects with circular
2230
+ * references to be compared.
2231
+ *
2232
+ * @private
2233
+ * @param {Object} object The object to compare.
2234
+ * @param {Object} other The other object to compare.
2235
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2236
+ * @param {Function} customizer The function to customize comparisons.
2237
+ * @param {Function} equalFunc The function to determine equivalents of values.
2238
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2239
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2240
+ */
2241
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2242
+ var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : _getTag_default(object), othTag = othIsArr ? arrayTag : _getTag_default(other);
2243
+ objTag = objTag == argsTag ? objectTag : objTag;
2244
+ othTag = othTag == argsTag ? objectTag : othTag;
2245
+ var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
2246
+ if (isSameTag && isBuffer(object)) {
2247
+ if (!isBuffer(other)) return false;
2248
+ objIsArr = true;
2249
+ objIsObj = false;
2250
+ }
2251
+ if (isSameTag && !objIsObj) {
2252
+ stack || (stack = new Stack());
2253
+ return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2254
+ }
2255
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2256
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
2257
+ if (objIsWrapped || othIsWrapped) {
2258
+ var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
2259
+ stack || (stack = new Stack());
2260
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2261
+ }
2262
+ }
2263
+ if (!isSameTag) return false;
2264
+ stack || (stack = new Stack());
2265
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2266
+ }
2267
+ //#endregion
2268
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
2269
+ /**
2270
+ * The base implementation of `_.isEqual` which supports partial comparisons
2271
+ * and tracks traversed objects.
2272
+ *
2273
+ * @private
2274
+ * @param {*} value The value to compare.
2275
+ * @param {*} other The other value to compare.
2276
+ * @param {boolean} bitmask The bitmask flags.
2277
+ * 1 - Unordered comparison
2278
+ * 2 - Partial comparison
2279
+ * @param {Function} [customizer] The function to customize comparisons.
2280
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2281
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2282
+ */
2283
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
2284
+ if (value === other) return true;
2285
+ if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) return value !== value && other !== other;
2286
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2287
+ }
2288
+ //#endregion
2289
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
2290
+ /** Used to compose bitmasks for value comparisons. */
2291
+ var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
2292
+ /**
2293
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
2294
+ *
2295
+ * @private
2296
+ * @param {Object} object The object to inspect.
2297
+ * @param {Object} source The object of property values to match.
2298
+ * @param {Array} matchData The property names, values, and compare flags to match.
2299
+ * @param {Function} [customizer] The function to customize comparisons.
2300
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2301
+ */
2302
+ function baseIsMatch(object, source, matchData, customizer) {
2303
+ var index = matchData.length, length = index, noCustomizer = !customizer;
2304
+ if (object == null) return !length;
2305
+ object = Object(object);
2306
+ while (index--) {
2307
+ var data = matchData[index];
2308
+ if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) return false;
2309
+ }
2310
+ while (++index < length) {
2311
+ data = matchData[index];
2312
+ var key = data[0], objValue = object[key], srcValue = data[1];
2313
+ if (noCustomizer && data[2]) {
2314
+ if (objValue === void 0 && !(key in object)) return false;
2315
+ } else {
2316
+ var stack = new Stack();
2317
+ if (customizer) var result = customizer(objValue, srcValue, key, object, source, stack);
2318
+ if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) return false;
2319
+ }
2320
+ }
2321
+ return true;
2322
+ }
2323
+ //#endregion
2324
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
2325
+ /**
2326
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2327
+ *
2328
+ * @private
2329
+ * @param {*} value The value to check.
2330
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
2331
+ * equality comparisons, else `false`.
2332
+ */
2333
+ function isStrictComparable(value) {
2334
+ return value === value && !isObject(value);
2335
+ }
2336
+ //#endregion
2337
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
2338
+ /**
2339
+ * Gets the property names, values, and compare flags of `object`.
2340
+ *
2341
+ * @private
2342
+ * @param {Object} object The object to query.
2343
+ * @returns {Array} Returns the match data of `object`.
2344
+ */
2345
+ function getMatchData(object) {
2346
+ var result = keys(object), length = result.length;
2347
+ while (length--) {
2348
+ var key = result[length], value = object[key];
2349
+ result[length] = [
2350
+ key,
2351
+ value,
2352
+ isStrictComparable(value)
2353
+ ];
2354
+ }
2355
+ return result;
2356
+ }
2357
+ //#endregion
2358
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
2359
+ /**
2360
+ * A specialized version of `matchesProperty` for source values suitable
2361
+ * for strict equality comparisons, i.e. `===`.
2362
+ *
2363
+ * @private
2364
+ * @param {string} key The key of the property to get.
2365
+ * @param {*} srcValue The value to match.
2366
+ * @returns {Function} Returns the new spec function.
2367
+ */
2368
+ function matchesStrictComparable(key, srcValue) {
2369
+ return function(object) {
2370
+ if (object == null) return false;
2371
+ return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
2372
+ };
2373
+ }
2374
+ //#endregion
2375
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
2376
+ /**
2377
+ * The base implementation of `_.matches` which doesn't clone `source`.
2378
+ *
2379
+ * @private
2380
+ * @param {Object} source The object of property values to match.
2381
+ * @returns {Function} Returns the new spec function.
2382
+ */
2383
+ function baseMatches(source) {
2384
+ var matchData = getMatchData(source);
2385
+ if (matchData.length == 1 && matchData[0][2]) return matchesStrictComparable(matchData[0][0], matchData[0][1]);
2386
+ return function(object) {
2387
+ return object === source || baseIsMatch(object, source, matchData);
2388
+ };
2389
+ }
2390
+ //#endregion
2391
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
2392
+ /**
2393
+ * The base implementation of `_.hasIn` without support for deep paths.
2394
+ *
2395
+ * @private
2396
+ * @param {Object} [object] The object to query.
2397
+ * @param {Array|string} key The key to check.
2398
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
2399
+ */
2400
+ function baseHasIn(object, key) {
2401
+ return object != null && key in Object(object);
2402
+ }
2403
+ //#endregion
2404
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
2405
+ /**
2406
+ * Checks if `path` exists on `object`.
2407
+ *
2408
+ * @private
2409
+ * @param {Object} object The object to query.
2410
+ * @param {Array|string} path The path to check.
2411
+ * @param {Function} hasFunc The function to check properties.
2412
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2413
+ */
2414
+ function hasPath(object, path, hasFunc) {
2415
+ path = castPath(path, object);
2416
+ var index = -1, length = path.length, result = false;
2417
+ while (++index < length) {
2418
+ var key = toKey(path[index]);
2419
+ if (!(result = object != null && hasFunc(object, key))) break;
2420
+ object = object[key];
2421
+ }
2422
+ if (result || ++index != length) return result;
2423
+ length = object == null ? 0 : object.length;
2424
+ return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
2425
+ }
2426
+ //#endregion
2427
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
2428
+ /**
2429
+ * Checks if `path` is a direct or inherited property of `object`.
2430
+ *
2431
+ * @static
2432
+ * @memberOf _
2433
+ * @since 4.0.0
2434
+ * @category Object
2435
+ * @param {Object} object The object to query.
2436
+ * @param {Array|string} path The path to check.
2437
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2438
+ * @example
2439
+ *
2440
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2441
+ *
2442
+ * _.hasIn(object, 'a');
2443
+ * // => true
2444
+ *
2445
+ * _.hasIn(object, 'a.b');
2446
+ * // => true
2447
+ *
2448
+ * _.hasIn(object, ['a', 'b']);
2449
+ * // => true
2450
+ *
2451
+ * _.hasIn(object, 'b');
2452
+ * // => false
2453
+ */
2454
+ function hasIn(object, path) {
2455
+ return object != null && hasPath(object, path, baseHasIn);
2456
+ }
2457
+ //#endregion
2458
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
2459
+ /** Used to compose bitmasks for value comparisons. */
2460
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
2461
+ /**
2462
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2463
+ *
2464
+ * @private
2465
+ * @param {string} path The path of the property to get.
2466
+ * @param {*} srcValue The value to match.
2467
+ * @returns {Function} Returns the new spec function.
2468
+ */
2469
+ function baseMatchesProperty(path, srcValue) {
2470
+ if (isKey(path) && isStrictComparable(srcValue)) return matchesStrictComparable(toKey(path), srcValue);
2471
+ return function(object) {
2472
+ var objValue = get(object, path);
2473
+ return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2474
+ };
2475
+ }
2476
+ //#endregion
2477
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js
2478
+ /**
2479
+ * The base implementation of `_.property` without support for deep paths.
2480
+ *
2481
+ * @private
2482
+ * @param {string} key The key of the property to get.
2483
+ * @returns {Function} Returns the new accessor function.
2484
+ */
2485
+ function baseProperty(key) {
2486
+ return function(object) {
2487
+ return object == null ? void 0 : object[key];
2488
+ };
2489
+ }
2490
+ //#endregion
2491
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
2492
+ /**
2493
+ * A specialized version of `baseProperty` which supports deep paths.
2494
+ *
2495
+ * @private
2496
+ * @param {Array|string} path The path of the property to get.
2497
+ * @returns {Function} Returns the new accessor function.
2498
+ */
2499
+ function basePropertyDeep(path) {
2500
+ return function(object) {
2501
+ return baseGet(object, path);
2502
+ };
2503
+ }
2504
+ //#endregion
2505
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/property.js
2506
+ /**
2507
+ * Creates a function that returns the value at `path` of a given object.
2508
+ *
2509
+ * @static
2510
+ * @memberOf _
2511
+ * @since 2.4.0
2512
+ * @category Util
2513
+ * @param {Array|string} path The path of the property to get.
2514
+ * @returns {Function} Returns the new accessor function.
2515
+ * @example
2516
+ *
2517
+ * var objects = [
2518
+ * { 'a': { 'b': 2 } },
2519
+ * { 'a': { 'b': 1 } }
2520
+ * ];
2521
+ *
2522
+ * _.map(objects, _.property('a.b'));
2523
+ * // => [2, 1]
2524
+ *
2525
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2526
+ * // => [1, 2]
2527
+ */
2528
+ function property(path) {
2529
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
2530
+ }
2531
+ //#endregion
2532
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
2533
+ /**
2534
+ * The base implementation of `_.iteratee`.
2535
+ *
2536
+ * @private
2537
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
2538
+ * @returns {Function} Returns the iteratee.
2539
+ */
2540
+ function baseIteratee(value) {
2541
+ if (typeof value == "function") return value;
2542
+ if (value == null) return identity;
2543
+ if (typeof value == "object") return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
2544
+ return property(value);
2545
+ }
2546
+ //#endregion
2547
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js
2548
+ /**
2549
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
2550
+ *
2551
+ * @private
2552
+ * @param {boolean} [fromRight] Specify iterating from right to left.
2553
+ * @returns {Function} Returns the new base function.
2554
+ */
2555
+ function createBaseFor(fromRight) {
2556
+ return function(object, iteratee, keysFunc) {
2557
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
2558
+ while (length--) {
2559
+ var key = props[fromRight ? length : ++index];
2560
+ if (iteratee(iterable[key], key, iterable) === false) break;
2561
+ }
2562
+ return object;
2563
+ };
2564
+ }
2565
+ //#endregion
2566
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js
2567
+ /**
2568
+ * The base implementation of `baseForOwn` which iterates over `object`
2569
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
2570
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
2571
+ *
2572
+ * @private
2573
+ * @param {Object} object The object to iterate over.
2574
+ * @param {Function} iteratee The function invoked per iteration.
2575
+ * @param {Function} keysFunc The function to get the keys of `object`.
2576
+ * @returns {Object} Returns `object`.
2577
+ */
2578
+ var baseFor = createBaseFor();
2579
+ //#endregion
2580
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.js
2581
+ /**
2582
+ * The base implementation of `_.forOwn` without support for iteratee shorthands.
2583
+ *
2584
+ * @private
2585
+ * @param {Object} object The object to iterate over.
2586
+ * @param {Function} iteratee The function invoked per iteration.
2587
+ * @returns {Object} Returns `object`.
2588
+ */
2589
+ function baseForOwn(object, iteratee) {
2590
+ return object && baseFor(object, iteratee, keys);
2591
+ }
2592
+ //#endregion
2593
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.js
2594
+ /**
2595
+ * Creates a `baseEach` or `baseEachRight` function.
2596
+ *
2597
+ * @private
2598
+ * @param {Function} eachFunc The function to iterate over a collection.
2599
+ * @param {boolean} [fromRight] Specify iterating from right to left.
2600
+ * @returns {Function} Returns the new base function.
2601
+ */
2602
+ function createBaseEach(eachFunc, fromRight) {
2603
+ return function(collection, iteratee) {
2604
+ if (collection == null) return collection;
2605
+ if (!isArrayLike(collection)) return eachFunc(collection, iteratee);
2606
+ var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
2607
+ while (fromRight ? index-- : ++index < length) if (iteratee(iterable[index], index, iterable) === false) break;
2608
+ return collection;
2609
+ };
2610
+ }
2611
+ //#endregion
2612
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.js
2613
+ /**
2614
+ * The base implementation of `_.forEach` without support for iteratee shorthands.
2615
+ *
2616
+ * @private
2617
+ * @param {Array|Object} collection The collection to iterate over.
2618
+ * @param {Function} iteratee The function invoked per iteration.
2619
+ * @returns {Array|Object} Returns `collection`.
2620
+ */
2621
+ var baseEach = createBaseEach(baseForOwn);
2622
+ //#endregion
2623
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js
2624
+ /**
2625
+ * The base implementation of `_.map` without support for iteratee shorthands.
2626
+ *
2627
+ * @private
2628
+ * @param {Array|Object} collection The collection to iterate over.
2629
+ * @param {Function} iteratee The function invoked per iteration.
2630
+ * @returns {Array} Returns the new mapped array.
2631
+ */
2632
+ function baseMap(collection, iteratee) {
2633
+ var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
2634
+ baseEach(collection, function(value, key, collection) {
2635
+ result[++index] = iteratee(value, key, collection);
2636
+ });
2637
+ return result;
2638
+ }
2639
+ //#endregion
2640
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSortBy.js
2641
+ /**
2642
+ * The base implementation of `_.sortBy` which uses `comparer` to define the
2643
+ * sort order of `array` and replaces criteria objects with their corresponding
2644
+ * values.
2645
+ *
2646
+ * @private
2647
+ * @param {Array} array The array to sort.
2648
+ * @param {Function} comparer The function to define sort order.
2649
+ * @returns {Array} Returns `array`.
2650
+ */
2651
+ function baseSortBy(array, comparer) {
2652
+ var length = array.length;
2653
+ array.sort(comparer);
2654
+ while (length--) array[length] = array[length].value;
2655
+ return array;
2656
+ }
2657
+ //#endregion
2658
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareAscending.js
2659
+ /**
2660
+ * Compares values to sort them in ascending order.
2661
+ *
2662
+ * @private
2663
+ * @param {*} value The value to compare.
2664
+ * @param {*} other The other value to compare.
2665
+ * @returns {number} Returns the sort order indicator for `value`.
2666
+ */
2667
+ function compareAscending(value, other) {
2668
+ if (value !== other) {
2669
+ var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
2670
+ var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
2671
+ if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) return 1;
2672
+ if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) return -1;
2673
+ }
2674
+ return 0;
2675
+ }
2676
+ //#endregion
2677
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareMultiple.js
2678
+ /**
2679
+ * Used by `_.orderBy` to compare multiple properties of a value to another
2680
+ * and stable sort them.
2681
+ *
2682
+ * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
2683
+ * specify an order of "desc" for descending or "asc" for ascending sort order
2684
+ * of corresponding values.
2685
+ *
2686
+ * @private
2687
+ * @param {Object} object The object to compare.
2688
+ * @param {Object} other The other object to compare.
2689
+ * @param {boolean[]|string[]} orders The order to sort by for each property.
2690
+ * @returns {number} Returns the sort order indicator for `object`.
2691
+ */
2692
+ function compareMultiple(object, other, orders) {
2693
+ var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
2694
+ while (++index < length) {
2695
+ var result = compareAscending(objCriteria[index], othCriteria[index]);
2696
+ if (result) {
2697
+ if (index >= ordersLength) return result;
2698
+ return result * (orders[index] == "desc" ? -1 : 1);
2699
+ }
2700
+ }
2701
+ return object.index - other.index;
2702
+ }
2703
+ //#endregion
2704
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseOrderBy.js
2705
+ /**
2706
+ * The base implementation of `_.orderBy` without param guards.
2707
+ *
2708
+ * @private
2709
+ * @param {Array|Object} collection The collection to iterate over.
2710
+ * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
2711
+ * @param {string[]} orders The sort orders of `iteratees`.
2712
+ * @returns {Array} Returns the new sorted array.
2713
+ */
2714
+ function baseOrderBy(collection, iteratees, orders) {
2715
+ if (iteratees.length) iteratees = arrayMap(iteratees, function(iteratee) {
2716
+ if (isArray(iteratee)) return function(value) {
2717
+ return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
2718
+ };
2719
+ return iteratee;
2720
+ });
2721
+ else iteratees = [identity];
2722
+ var index = -1;
2723
+ iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
2724
+ return baseSortBy(baseMap(collection, function(value, key, collection) {
2725
+ return {
2726
+ "criteria": arrayMap(iteratees, function(iteratee) {
2727
+ return iteratee(value);
2728
+ }),
2729
+ "index": ++index,
2730
+ "value": value
2731
+ };
2732
+ }), function(object, other) {
2733
+ return compareMultiple(object, other, orders);
2734
+ });
2735
+ }
2736
+ //#endregion
2737
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/sortBy.js
2738
+ /**
2739
+ * Creates an array of elements, sorted in ascending order by the results of
2740
+ * running each element in a collection thru each iteratee. This method
2741
+ * performs a stable sort, that is, it preserves the original sort order of
2742
+ * equal elements. The iteratees are invoked with one argument: (value).
2743
+ *
2744
+ * @static
2745
+ * @memberOf _
2746
+ * @since 0.1.0
2747
+ * @category Collection
2748
+ * @param {Array|Object} collection The collection to iterate over.
2749
+ * @param {...(Function|Function[])} [iteratees=[_.identity]]
2750
+ * The iteratees to sort by.
2751
+ * @returns {Array} Returns the new sorted array.
2752
+ * @example
2753
+ *
2754
+ * var users = [
2755
+ * { 'user': 'fred', 'age': 48 },
2756
+ * { 'user': 'barney', 'age': 36 },
2757
+ * { 'user': 'fred', 'age': 30 },
2758
+ * { 'user': 'barney', 'age': 34 }
2759
+ * ];
2760
+ *
2761
+ * _.sortBy(users, [function(o) { return o.user; }]);
2762
+ * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
2763
+ *
2764
+ * _.sortBy(users, ['user', 'age']);
2765
+ * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
2766
+ */
2767
+ var sortBy = baseRest(function(collection, iteratees) {
2768
+ if (collection == null) return [];
2769
+ var length = iteratees.length;
2770
+ if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) iteratees = [];
2771
+ else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) iteratees = [iteratees[0]];
2772
+ return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
2773
+ });
2774
+ //#endregion
31
2775
  //#region src/components/Display.vue?vue&type=script&setup=true&lang.ts
32
- var _hoisted_1 = { class: "tce-root" };
2776
+ var _hoisted_1 = { class: "tce-flashcards-root" };
2777
+ var _hoisted_2 = ["onKeydown"];
2778
+ var _hoisted_3 = { class: "flip-card-inner" };
2779
+ var _hoisted_4 = { class: "flip-card-body flex-grow-1" };
2780
+ var _hoisted_5 = {
2781
+ key: 0,
2782
+ class: "d-flex align-center justify-center ga-4 mt-2"
2783
+ };
2784
+ var _hoisted_6 = { class: "text-label-large" };
33
2785
  var Display_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
34
2786
  __name: "Display",
35
2787
  props: {
36
2788
  element: {},
37
2789
  userState: {}
38
2790
  },
39
- emits: ["interaction"],
40
2791
  setup(__props) {
2792
+ const props = __props;
2793
+ const currentIndex = ref(0);
2794
+ const isFlipped = ref(false);
2795
+ const cards = computed(() => sortBy(props.element.data.items, "position"));
2796
+ const cardCount = computed(() => cards.value.length);
2797
+ const cardHeight = computed(() => props.element.data.height ?? 360);
2798
+ const faceEmbeds = (face) => {
2799
+ const { embeds } = props.element.data;
2800
+ return sortBy(Object.keys(face).map((id) => embeds[id]), "position");
2801
+ };
2802
+ const faces = computed(() => {
2803
+ const card = cards.value[currentIndex.value];
2804
+ if (!card) return [];
2805
+ return [{
2806
+ key: "front",
2807
+ label: "Front",
2808
+ embeds: faceEmbeds(card.front)
2809
+ }, {
2810
+ key: "back",
2811
+ label: "Back",
2812
+ embeds: faceEmbeds(card.back)
2813
+ }];
2814
+ });
2815
+ const flip = () => {
2816
+ isFlipped.value = !isFlipped.value;
2817
+ };
2818
+ const go = (delta) => {
2819
+ const next = currentIndex.value + delta;
2820
+ if (next < 0 || next > cardCount.value - 1) return;
2821
+ isFlipped.value = false;
2822
+ currentIndex.value = next;
2823
+ };
41
2824
  return (_ctx, _cache) => {
42
- return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("p", null, " This is the Display version of the content element id: " + toDisplayString(__props.element.id), 1)]);
2825
+ const _component_VEmptyState = resolveComponent("VEmptyState");
2826
+ const _component_TailorEmbeddedContainer = resolveComponent("TailorEmbeddedContainer");
2827
+ const _component_VSheet = resolveComponent("VSheet");
2828
+ const _component_VBtn = resolveComponent("VBtn");
2829
+ return openBlock(), createElementBlock("div", _hoisted_1, [!cardCount.value ? (openBlock(), createBlock(_component_VEmptyState, {
2830
+ key: 0,
2831
+ class: "pa-8",
2832
+ icon: "mdi-cards-outline",
2833
+ text: "This deck doesn't have any cards to study.",
2834
+ title: "No flashcards yet"
2835
+ })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div", {
2836
+ class: normalizeClass([{ "is-flipped": isFlipped.value }, "flip-card mx-auto"]),
2837
+ style: normalizeStyle({ height: `${cardHeight.value}px` }),
2838
+ role: "button",
2839
+ tabindex: "0",
2840
+ onClick: flip,
2841
+ onKeydown: [withKeys(flip, ["enter"]), withKeys(withModifiers(flip, ["prevent"]), ["space"])]
2842
+ }, [createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(faces.value, (face) => {
2843
+ return openBlock(), createBlock(_component_VSheet, {
2844
+ key: face.key,
2845
+ class: normalizeClass([`flip-card-face flip-card-face-${face.key}`, "d-flex flex-column px-8 py-6"]),
2846
+ rounded: "lg"
2847
+ }, {
2848
+ default: withCtx(() => [createElementVNode("div", _hoisted_4, [!face.embeds.length ? (openBlock(), createBlock(_component_VEmptyState, {
2849
+ key: 0,
2850
+ title: `The ${face.label.toLowerCase()} is empty`,
2851
+ icon: "mdi-card-text-outline",
2852
+ text: "There's no content on this side of the card."
2853
+ }, null, 8, ["title"])) : (openBlock(), createBlock(_component_TailorEmbeddedContainer, {
2854
+ key: 1,
2855
+ elements: face.embeds
2856
+ }, null, 8, ["elements"]))])]),
2857
+ _: 2
2858
+ }, 1032, ["class"]);
2859
+ }), 128))])], 46, _hoisted_2), cardCount.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_5, [
2860
+ createVNode(_component_VBtn, {
2861
+ disabled: currentIndex.value === 0,
2862
+ "aria-label": "Previous card",
2863
+ density: "comfortable",
2864
+ icon: "mdi-chevron-left",
2865
+ variant: "text",
2866
+ onClick: _cache[0] || (_cache[0] = ($event) => go(-1))
2867
+ }, null, 8, ["disabled"]),
2868
+ createElementVNode("span", _hoisted_6, toDisplayString(currentIndex.value + 1) + " / " + toDisplayString(cardCount.value), 1),
2869
+ createVNode(_component_VBtn, {
2870
+ disabled: currentIndex.value === cardCount.value - 1,
2871
+ "aria-label": "Next card",
2872
+ density: "comfortable",
2873
+ icon: "mdi-chevron-right",
2874
+ variant: "text",
2875
+ onClick: _cache[1] || (_cache[1] = ($event) => go(1))
2876
+ }, null, 8, ["disabled"])
2877
+ ])) : createCommentVNode("", true)], 64))]);
43
2878
  };
44
2879
  }
45
2880
  });
@@ -52,7 +2887,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
52
2887
  };
53
2888
  //#endregion
54
2889
  //#region src/components/Display.vue
55
- var Display_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a4d7e010"]]);
2890
+ var Display_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Display_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cd800399"]]);
56
2891
  //#endregion
57
2892
  //#region src/index.ts
58
2893
  var manifest = {