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