@tmagic/table 1.8.0-beta.11 → 1.8.0-beta.12
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/es/ActionButton.js +5 -0
- package/dist/es/ActionButton.vue_vue_type_script_lang.js +51 -0
- package/dist/es/ActionPopconfirm.js +5 -0
- package/dist/es/ActionPopconfirm.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/es/ActionsColumn.vue_vue_type_script_setup_true_lang.js +92 -43
- package/dist/es/ComponentColumn.vue_vue_type_script_setup_true_lang.js +3 -11
- package/dist/es/TextColumn.vue_vue_type_script_setup_true_lang.js +2 -4
- package/dist/es/actionHelpers.js +17 -0
- package/dist/es/componentHelpers.js +11 -0
- package/dist/es/formHelpers.js +9 -0
- package/dist/es/style.css +16 -0
- package/dist/style.css +16 -0
- package/dist/tmagic-table.umd.cjs +1215 -974
- package/package.json +6 -5
- package/src/ActionButton.vue +73 -0
- package/src/ActionPopconfirm.vue +44 -0
- package/src/ActionsColumn.vue +81 -47
- package/src/ComponentColumn.vue +4 -17
- package/src/TextColumn.vue +2 -8
- package/src/actionHelpers.ts +26 -0
- package/src/componentHelpers.ts +15 -0
- package/src/formHelpers.ts +12 -0
- package/src/schema.ts +49 -2
- package/src/theme/index.scss +19 -0
- package/types/index.d.ts +38 -5
|
@@ -1,230 +1,17 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("@tmagic/design"), require("@tmagic/form"), require("@tmagic/utils")) : typeof define === "function" && define.amd ? define([
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("@tmagic/design"), require("@element-plus/icons-vue"), require("@tmagic/form"), require("@tmagic/utils")) : typeof define === "function" && define.amd ? define([
|
|
3
3
|
"exports",
|
|
4
4
|
"vue",
|
|
5
5
|
"@tmagic/design",
|
|
6
|
+
"@element-plus/icons-vue",
|
|
6
7
|
"@tmagic/form",
|
|
7
8
|
"@tmagic/utils"
|
|
8
|
-
], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicTable = {}, global.Vue, global._tmagic_design, global._tmagic_form, global._tmagic_utils));
|
|
9
|
-
})(this, function(exports, vue, _tmagic_design, _tmagic_form, _tmagic_utils) {
|
|
9
|
+
], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.TMagicTable = {}, global.Vue, global._tmagic_design, global._element_plus_icons_vue, global._tmagic_form, global._tmagic_utils));
|
|
10
|
+
})(this, function(exports, vue, _tmagic_design, _element_plus_icons_vue, _tmagic_form, _tmagic_utils) {
|
|
10
11
|
Object.defineProperties(exports, {
|
|
11
12
|
__esModule: { value: true },
|
|
12
13
|
[Symbol.toStringTag]: { value: "Module" }
|
|
13
14
|
});
|
|
14
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
|
|
15
|
-
/**
|
|
16
|
-
* Removes all key-value entries from the list cache.
|
|
17
|
-
*
|
|
18
|
-
* @private
|
|
19
|
-
* @name clear
|
|
20
|
-
* @memberOf ListCache
|
|
21
|
-
*/
|
|
22
|
-
function listCacheClear() {
|
|
23
|
-
this.__data__ = [];
|
|
24
|
-
this.size = 0;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
|
|
28
|
-
/**
|
|
29
|
-
* Performs a
|
|
30
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
31
|
-
* comparison between two values to determine if they are equivalent.
|
|
32
|
-
*
|
|
33
|
-
* @static
|
|
34
|
-
* @memberOf _
|
|
35
|
-
* @since 4.0.0
|
|
36
|
-
* @category Lang
|
|
37
|
-
* @param {*} value The value to compare.
|
|
38
|
-
* @param {*} other The other value to compare.
|
|
39
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
40
|
-
* @example
|
|
41
|
-
*
|
|
42
|
-
* var object = { 'a': 1 };
|
|
43
|
-
* var other = { 'a': 1 };
|
|
44
|
-
*
|
|
45
|
-
* _.eq(object, object);
|
|
46
|
-
* // => true
|
|
47
|
-
*
|
|
48
|
-
* _.eq(object, other);
|
|
49
|
-
* // => false
|
|
50
|
-
*
|
|
51
|
-
* _.eq('a', 'a');
|
|
52
|
-
* // => true
|
|
53
|
-
*
|
|
54
|
-
* _.eq('a', Object('a'));
|
|
55
|
-
* // => false
|
|
56
|
-
*
|
|
57
|
-
* _.eq(NaN, NaN);
|
|
58
|
-
* // => true
|
|
59
|
-
*/
|
|
60
|
-
function eq(value, other) {
|
|
61
|
-
return value === other || value !== value && other !== other;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
|
|
65
|
-
/**
|
|
66
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
67
|
-
*
|
|
68
|
-
* @private
|
|
69
|
-
* @param {Array} array The array to inspect.
|
|
70
|
-
* @param {*} key The key to search for.
|
|
71
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
72
|
-
*/
|
|
73
|
-
function assocIndexOf(array, key) {
|
|
74
|
-
var length = array.length;
|
|
75
|
-
while (length--) if (eq(array[length][0], key)) return length;
|
|
76
|
-
return -1;
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
|
|
80
|
-
/** Built-in value references. */
|
|
81
|
-
var splice = Array.prototype.splice;
|
|
82
|
-
/**
|
|
83
|
-
* Removes `key` and its value from the list cache.
|
|
84
|
-
*
|
|
85
|
-
* @private
|
|
86
|
-
* @name delete
|
|
87
|
-
* @memberOf ListCache
|
|
88
|
-
* @param {string} key The key of the value to remove.
|
|
89
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
90
|
-
*/
|
|
91
|
-
function listCacheDelete(key) {
|
|
92
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
93
|
-
if (index < 0) return false;
|
|
94
|
-
if (index == data.length - 1) data.pop();
|
|
95
|
-
else splice.call(data, index, 1);
|
|
96
|
-
--this.size;
|
|
97
|
-
return true;
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
|
|
101
|
-
/**
|
|
102
|
-
* Gets the list cache value for `key`.
|
|
103
|
-
*
|
|
104
|
-
* @private
|
|
105
|
-
* @name get
|
|
106
|
-
* @memberOf ListCache
|
|
107
|
-
* @param {string} key The key of the value to get.
|
|
108
|
-
* @returns {*} Returns the entry value.
|
|
109
|
-
*/
|
|
110
|
-
function listCacheGet(key) {
|
|
111
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
112
|
-
return index < 0 ? void 0 : data[index][1];
|
|
113
|
-
}
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
|
|
116
|
-
/**
|
|
117
|
-
* Checks if a list cache value for `key` exists.
|
|
118
|
-
*
|
|
119
|
-
* @private
|
|
120
|
-
* @name has
|
|
121
|
-
* @memberOf ListCache
|
|
122
|
-
* @param {string} key The key of the entry to check.
|
|
123
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
124
|
-
*/
|
|
125
|
-
function listCacheHas(key) {
|
|
126
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
|
|
130
|
-
/**
|
|
131
|
-
* Sets the list cache `key` to `value`.
|
|
132
|
-
*
|
|
133
|
-
* @private
|
|
134
|
-
* @name set
|
|
135
|
-
* @memberOf ListCache
|
|
136
|
-
* @param {string} key The key of the value to set.
|
|
137
|
-
* @param {*} value The value to set.
|
|
138
|
-
* @returns {Object} Returns the list cache instance.
|
|
139
|
-
*/
|
|
140
|
-
function listCacheSet(key, value) {
|
|
141
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
142
|
-
if (index < 0) {
|
|
143
|
-
++this.size;
|
|
144
|
-
data.push([key, value]);
|
|
145
|
-
} else data[index][1] = value;
|
|
146
|
-
return this;
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
|
|
150
|
-
/**
|
|
151
|
-
* Creates an list cache object.
|
|
152
|
-
*
|
|
153
|
-
* @private
|
|
154
|
-
* @constructor
|
|
155
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
156
|
-
*/
|
|
157
|
-
function ListCache(entries) {
|
|
158
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
159
|
-
this.clear();
|
|
160
|
-
while (++index < length) {
|
|
161
|
-
var entry = entries[index];
|
|
162
|
-
this.set(entry[0], entry[1]);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
ListCache.prototype.clear = listCacheClear;
|
|
166
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
167
|
-
ListCache.prototype.get = listCacheGet;
|
|
168
|
-
ListCache.prototype.has = listCacheHas;
|
|
169
|
-
ListCache.prototype.set = listCacheSet;
|
|
170
|
-
//#endregion
|
|
171
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
|
|
172
|
-
/**
|
|
173
|
-
* Removes all key-value entries from the stack.
|
|
174
|
-
*
|
|
175
|
-
* @private
|
|
176
|
-
* @name clear
|
|
177
|
-
* @memberOf Stack
|
|
178
|
-
*/
|
|
179
|
-
function stackClear() {
|
|
180
|
-
this.__data__ = new ListCache();
|
|
181
|
-
this.size = 0;
|
|
182
|
-
}
|
|
183
|
-
//#endregion
|
|
184
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
|
|
185
|
-
/**
|
|
186
|
-
* Removes `key` and its value from the stack.
|
|
187
|
-
*
|
|
188
|
-
* @private
|
|
189
|
-
* @name delete
|
|
190
|
-
* @memberOf Stack
|
|
191
|
-
* @param {string} key The key of the value to remove.
|
|
192
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
193
|
-
*/
|
|
194
|
-
function stackDelete(key) {
|
|
195
|
-
var data = this.__data__, result = data["delete"](key);
|
|
196
|
-
this.size = data.size;
|
|
197
|
-
return result;
|
|
198
|
-
}
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
|
|
201
|
-
/**
|
|
202
|
-
* Gets the stack value for `key`.
|
|
203
|
-
*
|
|
204
|
-
* @private
|
|
205
|
-
* @name get
|
|
206
|
-
* @memberOf Stack
|
|
207
|
-
* @param {string} key The key of the value to get.
|
|
208
|
-
* @returns {*} Returns the entry value.
|
|
209
|
-
*/
|
|
210
|
-
function stackGet(key) {
|
|
211
|
-
return this.__data__.get(key);
|
|
212
|
-
}
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
|
|
215
|
-
/**
|
|
216
|
-
* Checks if a stack value for `key` exists.
|
|
217
|
-
*
|
|
218
|
-
* @private
|
|
219
|
-
* @name has
|
|
220
|
-
* @memberOf Stack
|
|
221
|
-
* @param {string} key The key of the entry to check.
|
|
222
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
223
|
-
*/
|
|
224
|
-
function stackHas(key) {
|
|
225
|
-
return this.__data__.has(key);
|
|
226
|
-
}
|
|
227
|
-
//#endregion
|
|
228
15
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
|
|
229
16
|
/** Detect free variable `global` from Node.js. */
|
|
230
17
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
@@ -291,7 +78,8 @@
|
|
|
291
78
|
//#endregion
|
|
292
79
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
|
|
293
80
|
/** `Object#toString` result references. */
|
|
294
|
-
var nullTag = "[object Null]"
|
|
81
|
+
var nullTag = "[object Null]";
|
|
82
|
+
var undefinedTag = "[object Undefined]";
|
|
295
83
|
/** Built-in value references. */
|
|
296
84
|
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
297
85
|
/**
|
|
@@ -306,61 +94,119 @@
|
|
|
306
94
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
307
95
|
}
|
|
308
96
|
//#endregion
|
|
309
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
97
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
310
98
|
/**
|
|
311
|
-
* Checks if `value` is
|
|
312
|
-
*
|
|
313
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
99
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
100
|
+
* and has a `typeof` result of "object".
|
|
314
101
|
*
|
|
315
102
|
* @static
|
|
316
103
|
* @memberOf _
|
|
317
|
-
* @since 0.
|
|
104
|
+
* @since 4.0.0
|
|
318
105
|
* @category Lang
|
|
319
106
|
* @param {*} value The value to check.
|
|
320
|
-
* @returns {boolean} Returns `true` if `value` is
|
|
107
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
321
108
|
* @example
|
|
322
109
|
*
|
|
323
|
-
* _.
|
|
110
|
+
* _.isObjectLike({});
|
|
324
111
|
* // => true
|
|
325
112
|
*
|
|
326
|
-
* _.
|
|
113
|
+
* _.isObjectLike([1, 2, 3]);
|
|
327
114
|
* // => true
|
|
328
115
|
*
|
|
329
|
-
* _.
|
|
330
|
-
* // =>
|
|
116
|
+
* _.isObjectLike(_.noop);
|
|
117
|
+
* // => false
|
|
331
118
|
*
|
|
332
|
-
* _.
|
|
119
|
+
* _.isObjectLike(null);
|
|
333
120
|
* // => false
|
|
334
121
|
*/
|
|
335
|
-
function
|
|
336
|
-
|
|
337
|
-
return value != null && (type == "object" || type == "function");
|
|
122
|
+
function isObjectLike(value) {
|
|
123
|
+
return value != null && typeof value == "object";
|
|
338
124
|
}
|
|
339
125
|
//#endregion
|
|
340
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
341
|
-
/** `Object#toString` result references. */
|
|
342
|
-
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
126
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
343
127
|
/**
|
|
344
|
-
* Checks if `value` is classified as
|
|
128
|
+
* Checks if `value` is classified as an `Array` object.
|
|
345
129
|
*
|
|
346
130
|
* @static
|
|
347
131
|
* @memberOf _
|
|
348
132
|
* @since 0.1.0
|
|
349
133
|
* @category Lang
|
|
350
134
|
* @param {*} value The value to check.
|
|
351
|
-
* @returns {boolean} Returns `true` if `value` is
|
|
135
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
352
136
|
* @example
|
|
353
137
|
*
|
|
354
|
-
* _.
|
|
138
|
+
* _.isArray([1, 2, 3]);
|
|
355
139
|
* // => true
|
|
356
140
|
*
|
|
357
|
-
* _.
|
|
141
|
+
* _.isArray(document.body.children);
|
|
358
142
|
* // => false
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
143
|
+
*
|
|
144
|
+
* _.isArray('abc');
|
|
145
|
+
* // => false
|
|
146
|
+
*
|
|
147
|
+
* _.isArray(_.noop);
|
|
148
|
+
* // => false
|
|
149
|
+
*/
|
|
150
|
+
var isArray = Array.isArray;
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js
|
|
153
|
+
/**
|
|
154
|
+
* Checks if `value` is the
|
|
155
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
156
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
157
|
+
*
|
|
158
|
+
* @static
|
|
159
|
+
* @memberOf _
|
|
160
|
+
* @since 0.1.0
|
|
161
|
+
* @category Lang
|
|
162
|
+
* @param {*} value The value to check.
|
|
163
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
164
|
+
* @example
|
|
165
|
+
*
|
|
166
|
+
* _.isObject({});
|
|
167
|
+
* // => true
|
|
168
|
+
*
|
|
169
|
+
* _.isObject([1, 2, 3]);
|
|
170
|
+
* // => true
|
|
171
|
+
*
|
|
172
|
+
* _.isObject(_.noop);
|
|
173
|
+
* // => true
|
|
174
|
+
*
|
|
175
|
+
* _.isObject(null);
|
|
176
|
+
* // => false
|
|
177
|
+
*/
|
|
178
|
+
function isObject(value) {
|
|
179
|
+
var type = typeof value;
|
|
180
|
+
return value != null && (type == "object" || type == "function");
|
|
181
|
+
}
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js
|
|
184
|
+
/** `Object#toString` result references. */
|
|
185
|
+
var asyncTag = "[object AsyncFunction]";
|
|
186
|
+
var funcTag$2 = "[object Function]";
|
|
187
|
+
var genTag$1 = "[object GeneratorFunction]";
|
|
188
|
+
var proxyTag = "[object Proxy]";
|
|
189
|
+
/**
|
|
190
|
+
* Checks if `value` is classified as a `Function` object.
|
|
191
|
+
*
|
|
192
|
+
* @static
|
|
193
|
+
* @memberOf _
|
|
194
|
+
* @since 0.1.0
|
|
195
|
+
* @category Lang
|
|
196
|
+
* @param {*} value The value to check.
|
|
197
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
198
|
+
* @example
|
|
199
|
+
*
|
|
200
|
+
* _.isFunction(_);
|
|
201
|
+
* // => true
|
|
202
|
+
*
|
|
203
|
+
* _.isFunction(/abc/);
|
|
204
|
+
* // => false
|
|
205
|
+
*/
|
|
206
|
+
function isFunction(value) {
|
|
207
|
+
if (!isObject(value)) return false;
|
|
208
|
+
var tag = baseGetTag(value);
|
|
209
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
364
210
|
}
|
|
365
211
|
//#endregion
|
|
366
212
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js
|
|
@@ -415,7 +261,8 @@
|
|
|
415
261
|
/** Used to detect host constructors (Safari). */
|
|
416
262
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
417
263
|
/** Used for built-in method references. */
|
|
418
|
-
var funcProto = Function.prototype
|
|
264
|
+
var funcProto = Function.prototype;
|
|
265
|
+
var objectProto$2 = Object.prototype;
|
|
419
266
|
/** Used to resolve the decompiled source of functions. */
|
|
420
267
|
var funcToString = funcProto.toString;
|
|
421
268
|
/** Used to check objects for own properties. */
|
|
@@ -462,347 +309,152 @@
|
|
|
462
309
|
return baseIsNative(value) ? value : void 0;
|
|
463
310
|
}
|
|
464
311
|
//#endregion
|
|
465
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
466
|
-
var
|
|
467
|
-
//#endregion
|
|
468
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
|
|
469
|
-
var nativeCreate = getNative(Object, "create");
|
|
312
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
|
|
313
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
470
314
|
//#endregion
|
|
471
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
315
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
|
|
316
|
+
/** Built-in value references. */
|
|
317
|
+
var objectCreate = Object.create;
|
|
472
318
|
/**
|
|
473
|
-
*
|
|
319
|
+
* The base implementation of `_.create` without support for assigning
|
|
320
|
+
* properties to the created object.
|
|
474
321
|
*
|
|
475
322
|
* @private
|
|
476
|
-
* @
|
|
477
|
-
* @
|
|
323
|
+
* @param {Object} proto The object to inherit from.
|
|
324
|
+
* @returns {Object} Returns the new object.
|
|
478
325
|
*/
|
|
479
|
-
function
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
326
|
+
var baseCreate = function() {
|
|
327
|
+
function object() {}
|
|
328
|
+
return function(proto) {
|
|
329
|
+
if (!isObject(proto)) return {};
|
|
330
|
+
if (objectCreate) return objectCreate(proto);
|
|
331
|
+
object.prototype = proto;
|
|
332
|
+
var result = new object();
|
|
333
|
+
object.prototype = void 0;
|
|
334
|
+
return result;
|
|
335
|
+
};
|
|
336
|
+
}();
|
|
483
337
|
//#endregion
|
|
484
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
338
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
|
|
485
339
|
/**
|
|
486
|
-
*
|
|
340
|
+
* Copies the values of `source` to `array`.
|
|
487
341
|
*
|
|
488
342
|
* @private
|
|
489
|
-
* @
|
|
490
|
-
* @
|
|
491
|
-
* @
|
|
492
|
-
* @param {string} key The key of the value to remove.
|
|
493
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
343
|
+
* @param {Array} source The array to copy values from.
|
|
344
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
345
|
+
* @returns {Array} Returns `array`.
|
|
494
346
|
*/
|
|
495
|
-
function
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
|
|
347
|
+
function copyArray(source, array) {
|
|
348
|
+
var index = -1, length = source.length;
|
|
349
|
+
array || (array = Array(length));
|
|
350
|
+
while (++index < length) array[index] = source[index];
|
|
351
|
+
return array;
|
|
499
352
|
}
|
|
500
353
|
//#endregion
|
|
501
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
354
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
|
|
355
|
+
var defineProperty = function() {
|
|
356
|
+
try {
|
|
357
|
+
var func = getNative(Object, "defineProperty");
|
|
358
|
+
func({}, "", {});
|
|
359
|
+
return func;
|
|
360
|
+
} catch (e) {}
|
|
361
|
+
}();
|
|
362
|
+
//#endregion
|
|
363
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
506
364
|
/**
|
|
507
|
-
*
|
|
365
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
366
|
+
* iteratee shorthands.
|
|
508
367
|
*
|
|
509
368
|
* @private
|
|
510
|
-
* @
|
|
511
|
-
* @
|
|
512
|
-
* @
|
|
513
|
-
* @returns {*} Returns the entry value.
|
|
369
|
+
* @param {Array} [array] The array to iterate over.
|
|
370
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
371
|
+
* @returns {Array} Returns `array`.
|
|
514
372
|
*/
|
|
515
|
-
function
|
|
516
|
-
var
|
|
517
|
-
if (
|
|
518
|
-
|
|
519
|
-
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
520
|
-
}
|
|
521
|
-
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
373
|
+
function arrayEach(array, iteratee) {
|
|
374
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
375
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
376
|
+
return array;
|
|
522
377
|
}
|
|
523
378
|
//#endregion
|
|
524
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
525
|
-
/** Used
|
|
526
|
-
var
|
|
379
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js
|
|
380
|
+
/** Used as references for various `Number` constants. */
|
|
381
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
382
|
+
/** Used to detect unsigned integer values. */
|
|
383
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
527
384
|
/**
|
|
528
|
-
* Checks if
|
|
385
|
+
* Checks if `value` is a valid array-like index.
|
|
529
386
|
*
|
|
530
387
|
* @private
|
|
531
|
-
* @
|
|
532
|
-
* @
|
|
533
|
-
* @
|
|
534
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
388
|
+
* @param {*} value The value to check.
|
|
389
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
390
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
535
391
|
*/
|
|
536
|
-
function
|
|
537
|
-
var
|
|
538
|
-
|
|
392
|
+
function isIndex(value, length) {
|
|
393
|
+
var type = typeof value;
|
|
394
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
395
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
539
396
|
}
|
|
540
397
|
//#endregion
|
|
541
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
542
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
543
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
398
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
|
|
544
399
|
/**
|
|
545
|
-
*
|
|
400
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
401
|
+
* value checks.
|
|
546
402
|
*
|
|
547
403
|
* @private
|
|
548
|
-
* @
|
|
549
|
-
* @
|
|
550
|
-
* @param {
|
|
551
|
-
* @param {*} value The value to set.
|
|
552
|
-
* @returns {Object} Returns the hash instance.
|
|
404
|
+
* @param {Object} object The object to modify.
|
|
405
|
+
* @param {string} key The key of the property to assign.
|
|
406
|
+
* @param {*} value The value to assign.
|
|
553
407
|
*/
|
|
554
|
-
function
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
408
|
+
function baseAssignValue(object, key, value) {
|
|
409
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
410
|
+
"configurable": true,
|
|
411
|
+
"enumerable": true,
|
|
412
|
+
"value": value,
|
|
413
|
+
"writable": true
|
|
414
|
+
});
|
|
415
|
+
else object[key] = value;
|
|
559
416
|
}
|
|
560
417
|
//#endregion
|
|
561
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
418
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js
|
|
562
419
|
/**
|
|
563
|
-
*
|
|
420
|
+
* Performs a
|
|
421
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
422
|
+
* comparison between two values to determine if they are equivalent.
|
|
564
423
|
*
|
|
565
|
-
* @
|
|
566
|
-
* @
|
|
567
|
-
* @
|
|
424
|
+
* @static
|
|
425
|
+
* @memberOf _
|
|
426
|
+
* @since 4.0.0
|
|
427
|
+
* @category Lang
|
|
428
|
+
* @param {*} value The value to compare.
|
|
429
|
+
* @param {*} other The other value to compare.
|
|
430
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
431
|
+
* @example
|
|
432
|
+
*
|
|
433
|
+
* var object = { 'a': 1 };
|
|
434
|
+
* var other = { 'a': 1 };
|
|
435
|
+
*
|
|
436
|
+
* _.eq(object, object);
|
|
437
|
+
* // => true
|
|
438
|
+
*
|
|
439
|
+
* _.eq(object, other);
|
|
440
|
+
* // => false
|
|
441
|
+
*
|
|
442
|
+
* _.eq('a', 'a');
|
|
443
|
+
* // => true
|
|
444
|
+
*
|
|
445
|
+
* _.eq('a', Object('a'));
|
|
446
|
+
* // => false
|
|
447
|
+
*
|
|
448
|
+
* _.eq(NaN, NaN);
|
|
449
|
+
* // => true
|
|
568
450
|
*/
|
|
569
|
-
function
|
|
570
|
-
|
|
571
|
-
this.clear();
|
|
572
|
-
while (++index < length) {
|
|
573
|
-
var entry = entries[index];
|
|
574
|
-
this.set(entry[0], entry[1]);
|
|
575
|
-
}
|
|
451
|
+
function eq(value, other) {
|
|
452
|
+
return value === other || value !== value && other !== other;
|
|
576
453
|
}
|
|
577
|
-
Hash.prototype.clear = hashClear;
|
|
578
|
-
Hash.prototype["delete"] = hashDelete;
|
|
579
|
-
Hash.prototype.get = hashGet;
|
|
580
|
-
Hash.prototype.has = hashHas;
|
|
581
|
-
Hash.prototype.set = hashSet;
|
|
582
454
|
//#endregion
|
|
583
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
584
|
-
/**
|
|
585
|
-
|
|
586
|
-
*
|
|
587
|
-
* @private
|
|
588
|
-
* @name clear
|
|
589
|
-
* @memberOf MapCache
|
|
590
|
-
*/
|
|
591
|
-
function mapCacheClear() {
|
|
592
|
-
this.size = 0;
|
|
593
|
-
this.__data__ = {
|
|
594
|
-
"hash": new Hash(),
|
|
595
|
-
"map": new (Map || ListCache)(),
|
|
596
|
-
"string": new Hash()
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
//#endregion
|
|
600
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
|
|
601
|
-
/**
|
|
602
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
603
|
-
*
|
|
604
|
-
* @private
|
|
605
|
-
* @param {*} value The value to check.
|
|
606
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
607
|
-
*/
|
|
608
|
-
function isKeyable(value) {
|
|
609
|
-
var type = typeof value;
|
|
610
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
611
|
-
}
|
|
612
|
-
//#endregion
|
|
613
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
|
|
614
|
-
/**
|
|
615
|
-
* Gets the data for `map`.
|
|
616
|
-
*
|
|
617
|
-
* @private
|
|
618
|
-
* @param {Object} map The map to query.
|
|
619
|
-
* @param {string} key The reference key.
|
|
620
|
-
* @returns {*} Returns the map data.
|
|
621
|
-
*/
|
|
622
|
-
function getMapData(map, key) {
|
|
623
|
-
var data = map.__data__;
|
|
624
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
625
|
-
}
|
|
626
|
-
//#endregion
|
|
627
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
|
|
628
|
-
/**
|
|
629
|
-
* Removes `key` and its value from the map.
|
|
630
|
-
*
|
|
631
|
-
* @private
|
|
632
|
-
* @name delete
|
|
633
|
-
* @memberOf MapCache
|
|
634
|
-
* @param {string} key The key of the value to remove.
|
|
635
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
636
|
-
*/
|
|
637
|
-
function mapCacheDelete(key) {
|
|
638
|
-
var result = getMapData(this, key)["delete"](key);
|
|
639
|
-
this.size -= result ? 1 : 0;
|
|
640
|
-
return result;
|
|
641
|
-
}
|
|
642
|
-
//#endregion
|
|
643
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
|
|
644
|
-
/**
|
|
645
|
-
* Gets the map value for `key`.
|
|
646
|
-
*
|
|
647
|
-
* @private
|
|
648
|
-
* @name get
|
|
649
|
-
* @memberOf MapCache
|
|
650
|
-
* @param {string} key The key of the value to get.
|
|
651
|
-
* @returns {*} Returns the entry value.
|
|
652
|
-
*/
|
|
653
|
-
function mapCacheGet(key) {
|
|
654
|
-
return getMapData(this, key).get(key);
|
|
655
|
-
}
|
|
656
|
-
//#endregion
|
|
657
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
|
|
658
|
-
/**
|
|
659
|
-
* Checks if a map value for `key` exists.
|
|
660
|
-
*
|
|
661
|
-
* @private
|
|
662
|
-
* @name has
|
|
663
|
-
* @memberOf MapCache
|
|
664
|
-
* @param {string} key The key of the entry to check.
|
|
665
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
666
|
-
*/
|
|
667
|
-
function mapCacheHas(key) {
|
|
668
|
-
return getMapData(this, key).has(key);
|
|
669
|
-
}
|
|
670
|
-
//#endregion
|
|
671
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
|
|
672
|
-
/**
|
|
673
|
-
* Sets the map `key` to `value`.
|
|
674
|
-
*
|
|
675
|
-
* @private
|
|
676
|
-
* @name set
|
|
677
|
-
* @memberOf MapCache
|
|
678
|
-
* @param {string} key The key of the value to set.
|
|
679
|
-
* @param {*} value The value to set.
|
|
680
|
-
* @returns {Object} Returns the map cache instance.
|
|
681
|
-
*/
|
|
682
|
-
function mapCacheSet(key, value) {
|
|
683
|
-
var data = getMapData(this, key), size = data.size;
|
|
684
|
-
data.set(key, value);
|
|
685
|
-
this.size += data.size == size ? 0 : 1;
|
|
686
|
-
return this;
|
|
687
|
-
}
|
|
688
|
-
//#endregion
|
|
689
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
|
|
690
|
-
/**
|
|
691
|
-
* Creates a map cache object to store key-value pairs.
|
|
692
|
-
*
|
|
693
|
-
* @private
|
|
694
|
-
* @constructor
|
|
695
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
696
|
-
*/
|
|
697
|
-
function MapCache(entries) {
|
|
698
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
699
|
-
this.clear();
|
|
700
|
-
while (++index < length) {
|
|
701
|
-
var entry = entries[index];
|
|
702
|
-
this.set(entry[0], entry[1]);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
706
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
707
|
-
MapCache.prototype.get = mapCacheGet;
|
|
708
|
-
MapCache.prototype.has = mapCacheHas;
|
|
709
|
-
MapCache.prototype.set = mapCacheSet;
|
|
710
|
-
//#endregion
|
|
711
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
|
|
712
|
-
/** Used as the size to enable large array optimizations. */
|
|
713
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
714
|
-
/**
|
|
715
|
-
* Sets the stack `key` to `value`.
|
|
716
|
-
*
|
|
717
|
-
* @private
|
|
718
|
-
* @name set
|
|
719
|
-
* @memberOf Stack
|
|
720
|
-
* @param {string} key The key of the value to set.
|
|
721
|
-
* @param {*} value The value to set.
|
|
722
|
-
* @returns {Object} Returns the stack cache instance.
|
|
723
|
-
*/
|
|
724
|
-
function stackSet(key, value) {
|
|
725
|
-
var data = this.__data__;
|
|
726
|
-
if (data instanceof ListCache) {
|
|
727
|
-
var pairs = data.__data__;
|
|
728
|
-
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
729
|
-
pairs.push([key, value]);
|
|
730
|
-
this.size = ++data.size;
|
|
731
|
-
return this;
|
|
732
|
-
}
|
|
733
|
-
data = this.__data__ = new MapCache(pairs);
|
|
734
|
-
}
|
|
735
|
-
data.set(key, value);
|
|
736
|
-
this.size = data.size;
|
|
737
|
-
return this;
|
|
738
|
-
}
|
|
739
|
-
//#endregion
|
|
740
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
|
|
741
|
-
/**
|
|
742
|
-
* Creates a stack cache object to store key-value pairs.
|
|
743
|
-
*
|
|
744
|
-
* @private
|
|
745
|
-
* @constructor
|
|
746
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
747
|
-
*/
|
|
748
|
-
function Stack(entries) {
|
|
749
|
-
var data = this.__data__ = new ListCache(entries);
|
|
750
|
-
this.size = data.size;
|
|
751
|
-
}
|
|
752
|
-
Stack.prototype.clear = stackClear;
|
|
753
|
-
Stack.prototype["delete"] = stackDelete;
|
|
754
|
-
Stack.prototype.get = stackGet;
|
|
755
|
-
Stack.prototype.has = stackHas;
|
|
756
|
-
Stack.prototype.set = stackSet;
|
|
757
|
-
//#endregion
|
|
758
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js
|
|
759
|
-
/**
|
|
760
|
-
* A specialized version of `_.forEach` for arrays without support for
|
|
761
|
-
* iteratee shorthands.
|
|
762
|
-
*
|
|
763
|
-
* @private
|
|
764
|
-
* @param {Array} [array] The array to iterate over.
|
|
765
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
766
|
-
* @returns {Array} Returns `array`.
|
|
767
|
-
*/
|
|
768
|
-
function arrayEach(array, iteratee) {
|
|
769
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
770
|
-
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
771
|
-
return array;
|
|
772
|
-
}
|
|
773
|
-
//#endregion
|
|
774
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js
|
|
775
|
-
var defineProperty = function() {
|
|
776
|
-
try {
|
|
777
|
-
var func = getNative(Object, "defineProperty");
|
|
778
|
-
func({}, "", {});
|
|
779
|
-
return func;
|
|
780
|
-
} catch (e) {}
|
|
781
|
-
}();
|
|
782
|
-
//#endregion
|
|
783
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js
|
|
784
|
-
/**
|
|
785
|
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
786
|
-
* value checks.
|
|
787
|
-
*
|
|
788
|
-
* @private
|
|
789
|
-
* @param {Object} object The object to modify.
|
|
790
|
-
* @param {string} key The key of the property to assign.
|
|
791
|
-
* @param {*} value The value to assign.
|
|
792
|
-
*/
|
|
793
|
-
function baseAssignValue(object, key, value) {
|
|
794
|
-
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
795
|
-
"configurable": true,
|
|
796
|
-
"enumerable": true,
|
|
797
|
-
"value": value,
|
|
798
|
-
"writable": true
|
|
799
|
-
});
|
|
800
|
-
else object[key] = value;
|
|
801
|
-
}
|
|
802
|
-
//#endregion
|
|
803
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
|
|
804
|
-
/** Used to check objects for own properties. */
|
|
805
|
-
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
455
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
|
|
456
|
+
/** Used to check objects for own properties. */
|
|
457
|
+
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
806
458
|
/**
|
|
807
459
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
808
460
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -815,7 +467,7 @@
|
|
|
815
467
|
*/
|
|
816
468
|
function assignValue(object, key, value) {
|
|
817
469
|
var objValue = object[key];
|
|
818
|
-
if (!(hasOwnProperty$
|
|
470
|
+
if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
819
471
|
}
|
|
820
472
|
//#endregion
|
|
821
473
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js
|
|
@@ -843,49 +495,98 @@
|
|
|
843
495
|
return object;
|
|
844
496
|
}
|
|
845
497
|
//#endregion
|
|
846
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
498
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js
|
|
499
|
+
/** Used as references for various `Number` constants. */
|
|
500
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
847
501
|
/**
|
|
848
|
-
*
|
|
849
|
-
* or max array length checks.
|
|
502
|
+
* Checks if `value` is a valid array-like length.
|
|
850
503
|
*
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
854
|
-
* @returns {Array} Returns the array of results.
|
|
855
|
-
*/
|
|
856
|
-
function baseTimes(n, iteratee) {
|
|
857
|
-
var index = -1, result = Array(n);
|
|
858
|
-
while (++index < n) result[index] = iteratee(index);
|
|
859
|
-
return result;
|
|
860
|
-
}
|
|
861
|
-
//#endregion
|
|
862
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
|
|
863
|
-
/**
|
|
864
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
865
|
-
* and has a `typeof` result of "object".
|
|
504
|
+
* **Note:** This method is loosely based on
|
|
505
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
866
506
|
*
|
|
867
507
|
* @static
|
|
868
508
|
* @memberOf _
|
|
869
509
|
* @since 4.0.0
|
|
870
510
|
* @category Lang
|
|
871
511
|
* @param {*} value The value to check.
|
|
872
|
-
* @returns {boolean} Returns `true` if `value` is
|
|
512
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
873
513
|
* @example
|
|
874
514
|
*
|
|
875
|
-
* _.
|
|
876
|
-
* // => true
|
|
877
|
-
*
|
|
878
|
-
* _.isObjectLike([1, 2, 3]);
|
|
515
|
+
* _.isLength(3);
|
|
879
516
|
* // => true
|
|
880
517
|
*
|
|
881
|
-
* _.
|
|
518
|
+
* _.isLength(Number.MIN_VALUE);
|
|
882
519
|
* // => false
|
|
883
520
|
*
|
|
884
|
-
* _.
|
|
521
|
+
* _.isLength(Infinity);
|
|
522
|
+
* // => false
|
|
523
|
+
*
|
|
524
|
+
* _.isLength('3');
|
|
885
525
|
* // => false
|
|
886
526
|
*/
|
|
887
|
-
function
|
|
888
|
-
return value
|
|
527
|
+
function isLength(value) {
|
|
528
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
529
|
+
}
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js
|
|
532
|
+
/**
|
|
533
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
534
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
535
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
536
|
+
*
|
|
537
|
+
* @static
|
|
538
|
+
* @memberOf _
|
|
539
|
+
* @since 4.0.0
|
|
540
|
+
* @category Lang
|
|
541
|
+
* @param {*} value The value to check.
|
|
542
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
543
|
+
* @example
|
|
544
|
+
*
|
|
545
|
+
* _.isArrayLike([1, 2, 3]);
|
|
546
|
+
* // => true
|
|
547
|
+
*
|
|
548
|
+
* _.isArrayLike(document.body.children);
|
|
549
|
+
* // => true
|
|
550
|
+
*
|
|
551
|
+
* _.isArrayLike('abc');
|
|
552
|
+
* // => true
|
|
553
|
+
*
|
|
554
|
+
* _.isArrayLike(_.noop);
|
|
555
|
+
* // => false
|
|
556
|
+
*/
|
|
557
|
+
function isArrayLike(value) {
|
|
558
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
559
|
+
}
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js
|
|
562
|
+
/** Used for built-in method references. */
|
|
563
|
+
var objectProto$1 = Object.prototype;
|
|
564
|
+
/**
|
|
565
|
+
* Checks if `value` is likely a prototype object.
|
|
566
|
+
*
|
|
567
|
+
* @private
|
|
568
|
+
* @param {*} value The value to check.
|
|
569
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
570
|
+
*/
|
|
571
|
+
function isPrototype(value) {
|
|
572
|
+
var Ctor = value && value.constructor;
|
|
573
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
574
|
+
}
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js
|
|
577
|
+
/**
|
|
578
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
579
|
+
* or max array length checks.
|
|
580
|
+
*
|
|
581
|
+
* @private
|
|
582
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
583
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
584
|
+
* @returns {Array} Returns the array of results.
|
|
585
|
+
*/
|
|
586
|
+
function baseTimes(n, iteratee) {
|
|
587
|
+
var index = -1, result = Array(n);
|
|
588
|
+
while (++index < n) result[index] = iteratee(index);
|
|
589
|
+
return result;
|
|
889
590
|
}
|
|
890
591
|
//#endregion
|
|
891
592
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js
|
|
@@ -904,11 +605,11 @@
|
|
|
904
605
|
//#endregion
|
|
905
606
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js
|
|
906
607
|
/** Used for built-in method references. */
|
|
907
|
-
var objectProto
|
|
608
|
+
var objectProto = Object.prototype;
|
|
908
609
|
/** Used to check objects for own properties. */
|
|
909
|
-
var hasOwnProperty$
|
|
610
|
+
var hasOwnProperty$6 = objectProto.hasOwnProperty;
|
|
910
611
|
/** Built-in value references. */
|
|
911
|
-
var propertyIsEnumerable$1 = objectProto
|
|
612
|
+
var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
|
|
912
613
|
/**
|
|
913
614
|
* Checks if `value` is likely an `arguments` object.
|
|
914
615
|
*
|
|
@@ -930,35 +631,9 @@
|
|
|
930
631
|
var isArguments = baseIsArguments(function() {
|
|
931
632
|
return arguments;
|
|
932
633
|
}()) ? baseIsArguments : function(value) {
|
|
933
|
-
return isObjectLike(value) && hasOwnProperty$
|
|
634
|
+
return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
934
635
|
};
|
|
935
636
|
//#endregion
|
|
936
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
|
|
937
|
-
/**
|
|
938
|
-
* Checks if `value` is classified as an `Array` object.
|
|
939
|
-
*
|
|
940
|
-
* @static
|
|
941
|
-
* @memberOf _
|
|
942
|
-
* @since 0.1.0
|
|
943
|
-
* @category Lang
|
|
944
|
-
* @param {*} value The value to check.
|
|
945
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
946
|
-
* @example
|
|
947
|
-
*
|
|
948
|
-
* _.isArray([1, 2, 3]);
|
|
949
|
-
* // => true
|
|
950
|
-
*
|
|
951
|
-
* _.isArray(document.body.children);
|
|
952
|
-
* // => false
|
|
953
|
-
*
|
|
954
|
-
* _.isArray('abc');
|
|
955
|
-
* // => false
|
|
956
|
-
*
|
|
957
|
-
* _.isArray(_.noop);
|
|
958
|
-
* // => false
|
|
959
|
-
*/
|
|
960
|
-
var isArray = Array.isArray;
|
|
961
|
-
//#endregion
|
|
962
637
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js
|
|
963
638
|
/**
|
|
964
639
|
* This method returns `false`.
|
|
@@ -1003,331 +678,745 @@
|
|
|
1003
678
|
*/
|
|
1004
679
|
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
1005
680
|
//#endregion
|
|
1006
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1007
|
-
/**
|
|
1008
|
-
var
|
|
1009
|
-
|
|
1010
|
-
var
|
|
681
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js
|
|
682
|
+
/** `Object#toString` result references. */
|
|
683
|
+
var argsTag$1 = "[object Arguments]";
|
|
684
|
+
var arrayTag$1 = "[object Array]";
|
|
685
|
+
var boolTag$2 = "[object Boolean]";
|
|
686
|
+
var dateTag$2 = "[object Date]";
|
|
687
|
+
var errorTag$1 = "[object Error]";
|
|
688
|
+
var funcTag$1 = "[object Function]";
|
|
689
|
+
var mapTag$4 = "[object Map]";
|
|
690
|
+
var numberTag$2 = "[object Number]";
|
|
691
|
+
var objectTag$2 = "[object Object]";
|
|
692
|
+
var regexpTag$2 = "[object RegExp]";
|
|
693
|
+
var setTag$4 = "[object Set]";
|
|
694
|
+
var stringTag$2 = "[object String]";
|
|
695
|
+
var weakMapTag$2 = "[object WeakMap]";
|
|
696
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]";
|
|
697
|
+
var dataViewTag$3 = "[object DataView]";
|
|
698
|
+
var float32Tag$2 = "[object Float32Array]";
|
|
699
|
+
var float64Tag$2 = "[object Float64Array]";
|
|
700
|
+
var int8Tag$2 = "[object Int8Array]";
|
|
701
|
+
var int16Tag$2 = "[object Int16Array]";
|
|
702
|
+
var int32Tag$2 = "[object Int32Array]";
|
|
703
|
+
var uint8Tag$2 = "[object Uint8Array]";
|
|
704
|
+
var uint8ClampedTag$2 = "[object Uint8ClampedArray]";
|
|
705
|
+
var uint16Tag$2 = "[object Uint16Array]";
|
|
706
|
+
var uint32Tag$2 = "[object Uint32Array]";
|
|
707
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
708
|
+
var typedArrayTags = {};
|
|
709
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
710
|
+
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
711
|
+
/**
|
|
712
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
713
|
+
*
|
|
714
|
+
* @private
|
|
715
|
+
* @param {*} value The value to check.
|
|
716
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
717
|
+
*/
|
|
718
|
+
function baseIsTypedArray(value) {
|
|
719
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
720
|
+
}
|
|
721
|
+
//#endregion
|
|
722
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js
|
|
723
|
+
/**
|
|
724
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
725
|
+
*
|
|
726
|
+
* @private
|
|
727
|
+
* @param {Function} func The function to cap arguments for.
|
|
728
|
+
* @returns {Function} Returns the new capped function.
|
|
729
|
+
*/
|
|
730
|
+
function baseUnary(func) {
|
|
731
|
+
return function(value) {
|
|
732
|
+
return func(value);
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js
|
|
737
|
+
/** Detect free variable `exports`. */
|
|
738
|
+
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
739
|
+
/** Detect free variable `module`. */
|
|
740
|
+
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
741
|
+
/** Detect free variable `process` from Node.js. */
|
|
742
|
+
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
743
|
+
/** Used to access faster Node.js helpers. */
|
|
744
|
+
var nodeUtil = function() {
|
|
745
|
+
try {
|
|
746
|
+
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
747
|
+
if (types) return types;
|
|
748
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
749
|
+
} catch (e) {}
|
|
750
|
+
}();
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
|
|
753
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
754
|
+
/**
|
|
755
|
+
* Checks if `value` is classified as a typed array.
|
|
756
|
+
*
|
|
757
|
+
* @static
|
|
758
|
+
* @memberOf _
|
|
759
|
+
* @since 3.0.0
|
|
760
|
+
* @category Lang
|
|
761
|
+
* @param {*} value The value to check.
|
|
762
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
763
|
+
* @example
|
|
764
|
+
*
|
|
765
|
+
* _.isTypedArray(new Uint8Array);
|
|
766
|
+
* // => true
|
|
767
|
+
*
|
|
768
|
+
* _.isTypedArray([]);
|
|
769
|
+
* // => false
|
|
770
|
+
*/
|
|
771
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
772
|
+
//#endregion
|
|
773
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js
|
|
774
|
+
/** Used to check objects for own properties. */
|
|
775
|
+
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
776
|
+
/**
|
|
777
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
778
|
+
*
|
|
779
|
+
* @private
|
|
780
|
+
* @param {*} value The value to query.
|
|
781
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
782
|
+
* @returns {Array} Returns the array of property names.
|
|
783
|
+
*/
|
|
784
|
+
function arrayLikeKeys(value, inherited) {
|
|
785
|
+
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;
|
|
786
|
+
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);
|
|
787
|
+
return result;
|
|
788
|
+
}
|
|
789
|
+
//#endregion
|
|
790
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
|
|
791
|
+
/**
|
|
792
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
793
|
+
*
|
|
794
|
+
* @private
|
|
795
|
+
* @param {Function} func The function to wrap.
|
|
796
|
+
* @param {Function} transform The argument transform.
|
|
797
|
+
* @returns {Function} Returns the new function.
|
|
798
|
+
*/
|
|
799
|
+
function overArg(func, transform) {
|
|
800
|
+
return function(arg) {
|
|
801
|
+
return func(transform(arg));
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
//#endregion
|
|
805
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
806
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
807
|
+
//#endregion
|
|
808
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js
|
|
809
|
+
/** Used to check objects for own properties. */
|
|
810
|
+
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
811
|
+
/**
|
|
812
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
813
|
+
*
|
|
814
|
+
* @private
|
|
815
|
+
* @param {Object} object The object to query.
|
|
816
|
+
* @returns {Array} Returns the array of property names.
|
|
817
|
+
*/
|
|
818
|
+
function baseKeys(object) {
|
|
819
|
+
if (!isPrototype(object)) return nativeKeys(object);
|
|
820
|
+
var result = [];
|
|
821
|
+
for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
|
|
822
|
+
return result;
|
|
823
|
+
}
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js
|
|
826
|
+
/**
|
|
827
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
828
|
+
*
|
|
829
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
830
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
831
|
+
* for more details.
|
|
832
|
+
*
|
|
833
|
+
* @static
|
|
834
|
+
* @since 0.1.0
|
|
835
|
+
* @memberOf _
|
|
836
|
+
* @category Object
|
|
837
|
+
* @param {Object} object The object to query.
|
|
838
|
+
* @returns {Array} Returns the array of property names.
|
|
839
|
+
* @example
|
|
840
|
+
*
|
|
841
|
+
* function Foo() {
|
|
842
|
+
* this.a = 1;
|
|
843
|
+
* this.b = 2;
|
|
844
|
+
* }
|
|
845
|
+
*
|
|
846
|
+
* Foo.prototype.c = 3;
|
|
847
|
+
*
|
|
848
|
+
* _.keys(new Foo);
|
|
849
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
850
|
+
*
|
|
851
|
+
* _.keys('hi');
|
|
852
|
+
* // => ['0', '1']
|
|
853
|
+
*/
|
|
854
|
+
function keys(object) {
|
|
855
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
856
|
+
}
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
859
|
+
/**
|
|
860
|
+
* This function is like
|
|
861
|
+
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
862
|
+
* except that it includes inherited enumerable properties.
|
|
863
|
+
*
|
|
864
|
+
* @private
|
|
865
|
+
* @param {Object} object The object to query.
|
|
866
|
+
* @returns {Array} Returns the array of property names.
|
|
867
|
+
*/
|
|
868
|
+
function nativeKeysIn(object) {
|
|
869
|
+
var result = [];
|
|
870
|
+
if (object != null) for (var key in Object(object)) result.push(key);
|
|
871
|
+
return result;
|
|
872
|
+
}
|
|
873
|
+
//#endregion
|
|
874
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
|
|
875
|
+
/** Used to check objects for own properties. */
|
|
876
|
+
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
877
|
+
/**
|
|
878
|
+
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
879
|
+
*
|
|
880
|
+
* @private
|
|
881
|
+
* @param {Object} object The object to query.
|
|
882
|
+
* @returns {Array} Returns the array of property names.
|
|
883
|
+
*/
|
|
884
|
+
function baseKeysIn(object) {
|
|
885
|
+
if (!isObject(object)) return nativeKeysIn(object);
|
|
886
|
+
var isProto = isPrototype(object), result = [];
|
|
887
|
+
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) result.push(key);
|
|
888
|
+
return result;
|
|
889
|
+
}
|
|
890
|
+
//#endregion
|
|
891
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
|
|
892
|
+
/**
|
|
893
|
+
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
894
|
+
*
|
|
895
|
+
* **Note:** Non-object values are coerced to objects.
|
|
896
|
+
*
|
|
897
|
+
* @static
|
|
898
|
+
* @memberOf _
|
|
899
|
+
* @since 3.0.0
|
|
900
|
+
* @category Object
|
|
901
|
+
* @param {Object} object The object to query.
|
|
902
|
+
* @returns {Array} Returns the array of property names.
|
|
903
|
+
* @example
|
|
904
|
+
*
|
|
905
|
+
* function Foo() {
|
|
906
|
+
* this.a = 1;
|
|
907
|
+
* this.b = 2;
|
|
908
|
+
* }
|
|
909
|
+
*
|
|
910
|
+
* Foo.prototype.c = 3;
|
|
911
|
+
*
|
|
912
|
+
* _.keysIn(new Foo);
|
|
913
|
+
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
914
|
+
*/
|
|
915
|
+
function keysIn(object) {
|
|
916
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
917
|
+
}
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js
|
|
920
|
+
var nativeCreate = getNative(Object, "create");
|
|
921
|
+
//#endregion
|
|
922
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js
|
|
923
|
+
/**
|
|
924
|
+
* Removes all key-value entries from the hash.
|
|
925
|
+
*
|
|
926
|
+
* @private
|
|
927
|
+
* @name clear
|
|
928
|
+
* @memberOf Hash
|
|
929
|
+
*/
|
|
930
|
+
function hashClear() {
|
|
931
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
932
|
+
this.size = 0;
|
|
933
|
+
}
|
|
934
|
+
//#endregion
|
|
935
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js
|
|
936
|
+
/**
|
|
937
|
+
* Removes `key` and its value from the hash.
|
|
938
|
+
*
|
|
939
|
+
* @private
|
|
940
|
+
* @name delete
|
|
941
|
+
* @memberOf Hash
|
|
942
|
+
* @param {Object} hash The hash to modify.
|
|
943
|
+
* @param {string} key The key of the value to remove.
|
|
944
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
945
|
+
*/
|
|
946
|
+
function hashDelete(key) {
|
|
947
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
948
|
+
this.size -= result ? 1 : 0;
|
|
949
|
+
return result;
|
|
950
|
+
}
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js
|
|
953
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
954
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
955
|
+
/** Used to check objects for own properties. */
|
|
956
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
957
|
+
/**
|
|
958
|
+
* Gets the hash value for `key`.
|
|
959
|
+
*
|
|
960
|
+
* @private
|
|
961
|
+
* @name get
|
|
962
|
+
* @memberOf Hash
|
|
963
|
+
* @param {string} key The key of the value to get.
|
|
964
|
+
* @returns {*} Returns the entry value.
|
|
965
|
+
*/
|
|
966
|
+
function hashGet(key) {
|
|
967
|
+
var data = this.__data__;
|
|
968
|
+
if (nativeCreate) {
|
|
969
|
+
var result = data[key];
|
|
970
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
971
|
+
}
|
|
972
|
+
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
973
|
+
}
|
|
974
|
+
//#endregion
|
|
975
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js
|
|
976
|
+
/** Used to check objects for own properties. */
|
|
977
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
978
|
+
/**
|
|
979
|
+
* Checks if a hash value for `key` exists.
|
|
980
|
+
*
|
|
981
|
+
* @private
|
|
982
|
+
* @name has
|
|
983
|
+
* @memberOf Hash
|
|
984
|
+
* @param {string} key The key of the entry to check.
|
|
985
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
986
|
+
*/
|
|
987
|
+
function hashHas(key) {
|
|
988
|
+
var data = this.__data__;
|
|
989
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
990
|
+
}
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js
|
|
993
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
994
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
995
|
+
/**
|
|
996
|
+
* Sets the hash `key` to `value`.
|
|
997
|
+
*
|
|
998
|
+
* @private
|
|
999
|
+
* @name set
|
|
1000
|
+
* @memberOf Hash
|
|
1001
|
+
* @param {string} key The key of the value to set.
|
|
1002
|
+
* @param {*} value The value to set.
|
|
1003
|
+
* @returns {Object} Returns the hash instance.
|
|
1004
|
+
*/
|
|
1005
|
+
function hashSet(key, value) {
|
|
1006
|
+
var data = this.__data__;
|
|
1007
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1008
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1009
|
+
return this;
|
|
1010
|
+
}
|
|
1011
|
+
//#endregion
|
|
1012
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js
|
|
1013
|
+
/**
|
|
1014
|
+
* Creates a hash object.
|
|
1015
|
+
*
|
|
1016
|
+
* @private
|
|
1017
|
+
* @constructor
|
|
1018
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1019
|
+
*/
|
|
1020
|
+
function Hash(entries) {
|
|
1021
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1022
|
+
this.clear();
|
|
1023
|
+
while (++index < length) {
|
|
1024
|
+
var entry = entries[index];
|
|
1025
|
+
this.set(entry[0], entry[1]);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
Hash.prototype.clear = hashClear;
|
|
1029
|
+
Hash.prototype["delete"] = hashDelete;
|
|
1030
|
+
Hash.prototype.get = hashGet;
|
|
1031
|
+
Hash.prototype.has = hashHas;
|
|
1032
|
+
Hash.prototype.set = hashSet;
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js
|
|
1035
|
+
/**
|
|
1036
|
+
* Removes all key-value entries from the list cache.
|
|
1037
|
+
*
|
|
1038
|
+
* @private
|
|
1039
|
+
* @name clear
|
|
1040
|
+
* @memberOf ListCache
|
|
1041
|
+
*/
|
|
1042
|
+
function listCacheClear() {
|
|
1043
|
+
this.__data__ = [];
|
|
1044
|
+
this.size = 0;
|
|
1045
|
+
}
|
|
1046
|
+
//#endregion
|
|
1047
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js
|
|
1048
|
+
/**
|
|
1049
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1050
|
+
*
|
|
1051
|
+
* @private
|
|
1052
|
+
* @param {Array} array The array to inspect.
|
|
1053
|
+
* @param {*} key The key to search for.
|
|
1054
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1055
|
+
*/
|
|
1056
|
+
function assocIndexOf(array, key) {
|
|
1057
|
+
var length = array.length;
|
|
1058
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
1059
|
+
return -1;
|
|
1060
|
+
}
|
|
1061
|
+
//#endregion
|
|
1062
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js
|
|
1063
|
+
/** Built-in value references. */
|
|
1064
|
+
var splice = Array.prototype.splice;
|
|
1065
|
+
/**
|
|
1066
|
+
* Removes `key` and its value from the list cache.
|
|
1067
|
+
*
|
|
1068
|
+
* @private
|
|
1069
|
+
* @name delete
|
|
1070
|
+
* @memberOf ListCache
|
|
1071
|
+
* @param {string} key The key of the value to remove.
|
|
1072
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1073
|
+
*/
|
|
1074
|
+
function listCacheDelete(key) {
|
|
1075
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1076
|
+
if (index < 0) return false;
|
|
1077
|
+
if (index == data.length - 1) data.pop();
|
|
1078
|
+
else splice.call(data, index, 1);
|
|
1079
|
+
--this.size;
|
|
1080
|
+
return true;
|
|
1081
|
+
}
|
|
1082
|
+
//#endregion
|
|
1083
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js
|
|
1084
|
+
/**
|
|
1085
|
+
* Gets the list cache value for `key`.
|
|
1086
|
+
*
|
|
1087
|
+
* @private
|
|
1088
|
+
* @name get
|
|
1089
|
+
* @memberOf ListCache
|
|
1090
|
+
* @param {string} key The key of the value to get.
|
|
1091
|
+
* @returns {*} Returns the entry value.
|
|
1092
|
+
*/
|
|
1093
|
+
function listCacheGet(key) {
|
|
1094
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1095
|
+
return index < 0 ? void 0 : data[index][1];
|
|
1096
|
+
}
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js
|
|
1099
|
+
/**
|
|
1100
|
+
* Checks if a list cache value for `key` exists.
|
|
1101
|
+
*
|
|
1102
|
+
* @private
|
|
1103
|
+
* @name has
|
|
1104
|
+
* @memberOf ListCache
|
|
1105
|
+
* @param {string} key The key of the entry to check.
|
|
1106
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1107
|
+
*/
|
|
1108
|
+
function listCacheHas(key) {
|
|
1109
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
1110
|
+
}
|
|
1111
|
+
//#endregion
|
|
1112
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js
|
|
1113
|
+
/**
|
|
1114
|
+
* Sets the list cache `key` to `value`.
|
|
1115
|
+
*
|
|
1116
|
+
* @private
|
|
1117
|
+
* @name set
|
|
1118
|
+
* @memberOf ListCache
|
|
1119
|
+
* @param {string} key The key of the value to set.
|
|
1120
|
+
* @param {*} value The value to set.
|
|
1121
|
+
* @returns {Object} Returns the list cache instance.
|
|
1122
|
+
*/
|
|
1123
|
+
function listCacheSet(key, value) {
|
|
1124
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1125
|
+
if (index < 0) {
|
|
1126
|
+
++this.size;
|
|
1127
|
+
data.push([key, value]);
|
|
1128
|
+
} else data[index][1] = value;
|
|
1129
|
+
return this;
|
|
1130
|
+
}
|
|
1131
|
+
//#endregion
|
|
1132
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js
|
|
1133
|
+
/**
|
|
1134
|
+
* Creates an list cache object.
|
|
1135
|
+
*
|
|
1136
|
+
* @private
|
|
1137
|
+
* @constructor
|
|
1138
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1139
|
+
*/
|
|
1140
|
+
function ListCache(entries) {
|
|
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
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
ListCache.prototype.clear = listCacheClear;
|
|
1149
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
1150
|
+
ListCache.prototype.get = listCacheGet;
|
|
1151
|
+
ListCache.prototype.has = listCacheHas;
|
|
1152
|
+
ListCache.prototype.set = listCacheSet;
|
|
1153
|
+
//#endregion
|
|
1154
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js
|
|
1155
|
+
var Map = getNative(root, "Map");
|
|
1156
|
+
//#endregion
|
|
1157
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js
|
|
1158
|
+
/**
|
|
1159
|
+
* Removes all key-value entries from the map.
|
|
1160
|
+
*
|
|
1161
|
+
* @private
|
|
1162
|
+
* @name clear
|
|
1163
|
+
* @memberOf MapCache
|
|
1164
|
+
*/
|
|
1165
|
+
function mapCacheClear() {
|
|
1166
|
+
this.size = 0;
|
|
1167
|
+
this.__data__ = {
|
|
1168
|
+
"hash": new Hash(),
|
|
1169
|
+
"map": new (Map || ListCache)(),
|
|
1170
|
+
"string": new Hash()
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
//#endregion
|
|
1174
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js
|
|
1011
1175
|
/**
|
|
1012
|
-
* Checks if `value` is
|
|
1176
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1013
1177
|
*
|
|
1014
1178
|
* @private
|
|
1015
1179
|
* @param {*} value The value to check.
|
|
1016
|
-
* @
|
|
1017
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1180
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1018
1181
|
*/
|
|
1019
|
-
function
|
|
1182
|
+
function isKeyable(value) {
|
|
1020
1183
|
var type = typeof value;
|
|
1021
|
-
|
|
1022
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
1184
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1023
1185
|
}
|
|
1024
1186
|
//#endregion
|
|
1025
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1026
|
-
/** Used as references for various `Number` constants. */
|
|
1027
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1187
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js
|
|
1028
1188
|
/**
|
|
1029
|
-
*
|
|
1030
|
-
*
|
|
1031
|
-
* **Note:** This method is loosely based on
|
|
1032
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1033
|
-
*
|
|
1034
|
-
* @static
|
|
1035
|
-
* @memberOf _
|
|
1036
|
-
* @since 4.0.0
|
|
1037
|
-
* @category Lang
|
|
1038
|
-
* @param {*} value The value to check.
|
|
1039
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1040
|
-
* @example
|
|
1041
|
-
*
|
|
1042
|
-
* _.isLength(3);
|
|
1043
|
-
* // => true
|
|
1044
|
-
*
|
|
1045
|
-
* _.isLength(Number.MIN_VALUE);
|
|
1046
|
-
* // => false
|
|
1047
|
-
*
|
|
1048
|
-
* _.isLength(Infinity);
|
|
1049
|
-
* // => false
|
|
1189
|
+
* Gets the data for `map`.
|
|
1050
1190
|
*
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1191
|
+
* @private
|
|
1192
|
+
* @param {Object} map The map to query.
|
|
1193
|
+
* @param {string} key The reference key.
|
|
1194
|
+
* @returns {*} Returns the map data.
|
|
1053
1195
|
*/
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1196
|
+
function getMapData(map, key) {
|
|
1197
|
+
var data = map.__data__;
|
|
1198
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1056
1199
|
}
|
|
1057
1200
|
//#endregion
|
|
1058
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1059
|
-
/** `Object#toString` result references. */
|
|
1060
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
1061
|
-
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
1062
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1063
|
-
var typedArrayTags = {};
|
|
1064
|
-
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
1065
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
1201
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js
|
|
1066
1202
|
/**
|
|
1067
|
-
*
|
|
1203
|
+
* Removes `key` and its value from the map.
|
|
1068
1204
|
*
|
|
1069
1205
|
* @private
|
|
1070
|
-
* @
|
|
1071
|
-
* @
|
|
1206
|
+
* @name delete
|
|
1207
|
+
* @memberOf MapCache
|
|
1208
|
+
* @param {string} key The key of the value to remove.
|
|
1209
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1072
1210
|
*/
|
|
1073
|
-
function
|
|
1074
|
-
|
|
1211
|
+
function mapCacheDelete(key) {
|
|
1212
|
+
var result = getMapData(this, key)["delete"](key);
|
|
1213
|
+
this.size -= result ? 1 : 0;
|
|
1214
|
+
return result;
|
|
1075
1215
|
}
|
|
1076
1216
|
//#endregion
|
|
1077
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1217
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js
|
|
1078
1218
|
/**
|
|
1079
|
-
*
|
|
1219
|
+
* Gets the map value for `key`.
|
|
1080
1220
|
*
|
|
1081
1221
|
* @private
|
|
1082
|
-
* @
|
|
1083
|
-
* @
|
|
1222
|
+
* @name get
|
|
1223
|
+
* @memberOf MapCache
|
|
1224
|
+
* @param {string} key The key of the value to get.
|
|
1225
|
+
* @returns {*} Returns the entry value.
|
|
1084
1226
|
*/
|
|
1085
|
-
function
|
|
1086
|
-
return
|
|
1087
|
-
return func(value);
|
|
1088
|
-
};
|
|
1227
|
+
function mapCacheGet(key) {
|
|
1228
|
+
return getMapData(this, key).get(key);
|
|
1089
1229
|
}
|
|
1090
1230
|
//#endregion
|
|
1091
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1092
|
-
/** Detect free variable `exports`. */
|
|
1093
|
-
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1094
|
-
/** Detect free variable `module`. */
|
|
1095
|
-
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
1096
|
-
/** Detect free variable `process` from Node.js. */
|
|
1097
|
-
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
1098
|
-
/** Used to access faster Node.js helpers. */
|
|
1099
|
-
var nodeUtil = function() {
|
|
1100
|
-
try {
|
|
1101
|
-
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
1102
|
-
if (types) return types;
|
|
1103
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1104
|
-
} catch (e) {}
|
|
1105
|
-
}();
|
|
1106
|
-
//#endregion
|
|
1107
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js
|
|
1108
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1231
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js
|
|
1109
1232
|
/**
|
|
1110
|
-
* Checks if
|
|
1111
|
-
*
|
|
1112
|
-
* @static
|
|
1113
|
-
* @memberOf _
|
|
1114
|
-
* @since 3.0.0
|
|
1115
|
-
* @category Lang
|
|
1116
|
-
* @param {*} value The value to check.
|
|
1117
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1118
|
-
* @example
|
|
1119
|
-
*
|
|
1120
|
-
* _.isTypedArray(new Uint8Array);
|
|
1121
|
-
* // => true
|
|
1233
|
+
* Checks if a map value for `key` exists.
|
|
1122
1234
|
*
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1235
|
+
* @private
|
|
1236
|
+
* @name has
|
|
1237
|
+
* @memberOf MapCache
|
|
1238
|
+
* @param {string} key The key of the entry to check.
|
|
1239
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1125
1240
|
*/
|
|
1126
|
-
|
|
1241
|
+
function mapCacheHas(key) {
|
|
1242
|
+
return getMapData(this, key).has(key);
|
|
1243
|
+
}
|
|
1127
1244
|
//#endregion
|
|
1128
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1129
|
-
/** Used to check objects for own properties. */
|
|
1130
|
-
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1245
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js
|
|
1131
1246
|
/**
|
|
1132
|
-
*
|
|
1247
|
+
* Sets the map `key` to `value`.
|
|
1133
1248
|
*
|
|
1134
1249
|
* @private
|
|
1135
|
-
* @
|
|
1136
|
-
* @
|
|
1137
|
-
* @
|
|
1250
|
+
* @name set
|
|
1251
|
+
* @memberOf MapCache
|
|
1252
|
+
* @param {string} key The key of the value to set.
|
|
1253
|
+
* @param {*} value The value to set.
|
|
1254
|
+
* @returns {Object} Returns the map cache instance.
|
|
1138
1255
|
*/
|
|
1139
|
-
function
|
|
1140
|
-
var
|
|
1141
|
-
|
|
1142
|
-
|
|
1256
|
+
function mapCacheSet(key, value) {
|
|
1257
|
+
var data = getMapData(this, key), size = data.size;
|
|
1258
|
+
data.set(key, value);
|
|
1259
|
+
this.size += data.size == size ? 0 : 1;
|
|
1260
|
+
return this;
|
|
1143
1261
|
}
|
|
1144
1262
|
//#endregion
|
|
1145
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1146
|
-
/** Used for built-in method references. */
|
|
1147
|
-
var objectProto = Object.prototype;
|
|
1263
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js
|
|
1148
1264
|
/**
|
|
1149
|
-
*
|
|
1265
|
+
* Creates a map cache object to store key-value pairs.
|
|
1150
1266
|
*
|
|
1151
1267
|
* @private
|
|
1152
|
-
* @
|
|
1153
|
-
* @
|
|
1268
|
+
* @constructor
|
|
1269
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1154
1270
|
*/
|
|
1155
|
-
function
|
|
1156
|
-
var
|
|
1157
|
-
|
|
1271
|
+
function MapCache(entries) {
|
|
1272
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1273
|
+
this.clear();
|
|
1274
|
+
while (++index < length) {
|
|
1275
|
+
var entry = entries[index];
|
|
1276
|
+
this.set(entry[0], entry[1]);
|
|
1277
|
+
}
|
|
1158
1278
|
}
|
|
1279
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
1280
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1281
|
+
MapCache.prototype.get = mapCacheGet;
|
|
1282
|
+
MapCache.prototype.has = mapCacheHas;
|
|
1283
|
+
MapCache.prototype.set = mapCacheSet;
|
|
1159
1284
|
//#endregion
|
|
1160
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1285
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
|
|
1161
1286
|
/**
|
|
1162
|
-
*
|
|
1287
|
+
* Appends the elements of `values` to `array`.
|
|
1163
1288
|
*
|
|
1164
1289
|
* @private
|
|
1165
|
-
* @param {
|
|
1166
|
-
* @param {
|
|
1167
|
-
* @returns {
|
|
1290
|
+
* @param {Array} array The array to modify.
|
|
1291
|
+
* @param {Array} values The values to append.
|
|
1292
|
+
* @returns {Array} Returns `array`.
|
|
1168
1293
|
*/
|
|
1169
|
-
function
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1294
|
+
function arrayPush(array, values) {
|
|
1295
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1296
|
+
while (++index < length) array[offset + index] = values[index];
|
|
1297
|
+
return array;
|
|
1173
1298
|
}
|
|
1174
1299
|
//#endregion
|
|
1175
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1176
|
-
|
|
1300
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
|
|
1301
|
+
/** Built-in value references. */
|
|
1302
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1177
1303
|
//#endregion
|
|
1178
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1179
|
-
/** Used to check objects for own properties. */
|
|
1180
|
-
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1304
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js
|
|
1181
1305
|
/**
|
|
1182
|
-
*
|
|
1306
|
+
* Removes all key-value entries from the stack.
|
|
1183
1307
|
*
|
|
1184
1308
|
* @private
|
|
1185
|
-
* @
|
|
1186
|
-
* @
|
|
1309
|
+
* @name clear
|
|
1310
|
+
* @memberOf Stack
|
|
1187
1311
|
*/
|
|
1188
|
-
function
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
for (var key in Object(object)) if (hasOwnProperty$2.call(object, key) && key != "constructor") result.push(key);
|
|
1192
|
-
return result;
|
|
1312
|
+
function stackClear() {
|
|
1313
|
+
this.__data__ = new ListCache();
|
|
1314
|
+
this.size = 0;
|
|
1193
1315
|
}
|
|
1194
1316
|
//#endregion
|
|
1195
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1317
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js
|
|
1196
1318
|
/**
|
|
1197
|
-
*
|
|
1198
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
1199
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1200
|
-
*
|
|
1201
|
-
* @static
|
|
1202
|
-
* @memberOf _
|
|
1203
|
-
* @since 4.0.0
|
|
1204
|
-
* @category Lang
|
|
1205
|
-
* @param {*} value The value to check.
|
|
1206
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1207
|
-
* @example
|
|
1208
|
-
*
|
|
1209
|
-
* _.isArrayLike([1, 2, 3]);
|
|
1210
|
-
* // => true
|
|
1211
|
-
*
|
|
1212
|
-
* _.isArrayLike(document.body.children);
|
|
1213
|
-
* // => true
|
|
1214
|
-
*
|
|
1215
|
-
* _.isArrayLike('abc');
|
|
1216
|
-
* // => true
|
|
1319
|
+
* Removes `key` and its value from the stack.
|
|
1217
1320
|
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1321
|
+
* @private
|
|
1322
|
+
* @name delete
|
|
1323
|
+
* @memberOf Stack
|
|
1324
|
+
* @param {string} key The key of the value to remove.
|
|
1325
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1220
1326
|
*/
|
|
1221
|
-
function
|
|
1222
|
-
|
|
1327
|
+
function stackDelete(key) {
|
|
1328
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1329
|
+
this.size = data.size;
|
|
1330
|
+
return result;
|
|
1223
1331
|
}
|
|
1224
1332
|
//#endregion
|
|
1225
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1333
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js
|
|
1226
1334
|
/**
|
|
1227
|
-
*
|
|
1228
|
-
*
|
|
1229
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
1230
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1231
|
-
* for more details.
|
|
1232
|
-
*
|
|
1233
|
-
* @static
|
|
1234
|
-
* @since 0.1.0
|
|
1235
|
-
* @memberOf _
|
|
1236
|
-
* @category Object
|
|
1237
|
-
* @param {Object} object The object to query.
|
|
1238
|
-
* @returns {Array} Returns the array of property names.
|
|
1239
|
-
* @example
|
|
1240
|
-
*
|
|
1241
|
-
* function Foo() {
|
|
1242
|
-
* this.a = 1;
|
|
1243
|
-
* this.b = 2;
|
|
1244
|
-
* }
|
|
1245
|
-
*
|
|
1246
|
-
* Foo.prototype.c = 3;
|
|
1247
|
-
*
|
|
1248
|
-
* _.keys(new Foo);
|
|
1249
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1335
|
+
* Gets the stack value for `key`.
|
|
1250
1336
|
*
|
|
1251
|
-
*
|
|
1252
|
-
*
|
|
1337
|
+
* @private
|
|
1338
|
+
* @name get
|
|
1339
|
+
* @memberOf Stack
|
|
1340
|
+
* @param {string} key The key of the value to get.
|
|
1341
|
+
* @returns {*} Returns the entry value.
|
|
1253
1342
|
*/
|
|
1254
|
-
function
|
|
1255
|
-
return
|
|
1343
|
+
function stackGet(key) {
|
|
1344
|
+
return this.__data__.get(key);
|
|
1256
1345
|
}
|
|
1257
1346
|
//#endregion
|
|
1258
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1347
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js
|
|
1259
1348
|
/**
|
|
1260
|
-
*
|
|
1261
|
-
* or `customizer` functions.
|
|
1349
|
+
* Checks if a stack value for `key` exists.
|
|
1262
1350
|
*
|
|
1263
1351
|
* @private
|
|
1264
|
-
* @
|
|
1265
|
-
* @
|
|
1266
|
-
* @
|
|
1352
|
+
* @name has
|
|
1353
|
+
* @memberOf Stack
|
|
1354
|
+
* @param {string} key The key of the entry to check.
|
|
1355
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1267
1356
|
*/
|
|
1268
|
-
function
|
|
1269
|
-
return
|
|
1357
|
+
function stackHas(key) {
|
|
1358
|
+
return this.__data__.has(key);
|
|
1270
1359
|
}
|
|
1271
1360
|
//#endregion
|
|
1272
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1361
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js
|
|
1362
|
+
/** Used as the size to enable large array optimizations. */
|
|
1363
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
1273
1364
|
/**
|
|
1274
|
-
*
|
|
1275
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1276
|
-
* except that it includes inherited enumerable properties.
|
|
1365
|
+
* Sets the stack `key` to `value`.
|
|
1277
1366
|
*
|
|
1278
1367
|
* @private
|
|
1279
|
-
* @
|
|
1280
|
-
* @
|
|
1368
|
+
* @name set
|
|
1369
|
+
* @memberOf Stack
|
|
1370
|
+
* @param {string} key The key of the value to set.
|
|
1371
|
+
* @param {*} value The value to set.
|
|
1372
|
+
* @returns {Object} Returns the stack cache instance.
|
|
1281
1373
|
*/
|
|
1282
|
-
function
|
|
1283
|
-
var
|
|
1284
|
-
if (
|
|
1285
|
-
|
|
1374
|
+
function stackSet(key, value) {
|
|
1375
|
+
var data = this.__data__;
|
|
1376
|
+
if (data instanceof ListCache) {
|
|
1377
|
+
var pairs = data.__data__;
|
|
1378
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1379
|
+
pairs.push([key, value]);
|
|
1380
|
+
this.size = ++data.size;
|
|
1381
|
+
return this;
|
|
1382
|
+
}
|
|
1383
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1384
|
+
}
|
|
1385
|
+
data.set(key, value);
|
|
1386
|
+
this.size = data.size;
|
|
1387
|
+
return this;
|
|
1286
1388
|
}
|
|
1287
1389
|
//#endregion
|
|
1288
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1289
|
-
/** Used to check objects for own properties. */
|
|
1290
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1390
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js
|
|
1291
1391
|
/**
|
|
1292
|
-
*
|
|
1392
|
+
* Creates a stack cache object to store key-value pairs.
|
|
1293
1393
|
*
|
|
1294
1394
|
* @private
|
|
1295
|
-
* @
|
|
1296
|
-
* @
|
|
1395
|
+
* @constructor
|
|
1396
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1297
1397
|
*/
|
|
1298
|
-
function
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) result.push(key);
|
|
1302
|
-
return result;
|
|
1398
|
+
function Stack(entries) {
|
|
1399
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1400
|
+
this.size = data.size;
|
|
1303
1401
|
}
|
|
1402
|
+
Stack.prototype.clear = stackClear;
|
|
1403
|
+
Stack.prototype["delete"] = stackDelete;
|
|
1404
|
+
Stack.prototype.get = stackGet;
|
|
1405
|
+
Stack.prototype.has = stackHas;
|
|
1406
|
+
Stack.prototype.set = stackSet;
|
|
1304
1407
|
//#endregion
|
|
1305
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/
|
|
1408
|
+
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js
|
|
1306
1409
|
/**
|
|
1307
|
-
*
|
|
1308
|
-
*
|
|
1309
|
-
* **Note:** Non-object values are coerced to objects.
|
|
1310
|
-
*
|
|
1311
|
-
* @static
|
|
1312
|
-
* @memberOf _
|
|
1313
|
-
* @since 3.0.0
|
|
1314
|
-
* @category Object
|
|
1315
|
-
* @param {Object} object The object to query.
|
|
1316
|
-
* @returns {Array} Returns the array of property names.
|
|
1317
|
-
* @example
|
|
1318
|
-
*
|
|
1319
|
-
* function Foo() {
|
|
1320
|
-
* this.a = 1;
|
|
1321
|
-
* this.b = 2;
|
|
1322
|
-
* }
|
|
1323
|
-
*
|
|
1324
|
-
* Foo.prototype.c = 3;
|
|
1410
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
1411
|
+
* or `customizer` functions.
|
|
1325
1412
|
*
|
|
1326
|
-
*
|
|
1327
|
-
*
|
|
1413
|
+
* @private
|
|
1414
|
+
* @param {Object} object The destination object.
|
|
1415
|
+
* @param {Object} source The source object.
|
|
1416
|
+
* @returns {Object} Returns `object`.
|
|
1328
1417
|
*/
|
|
1329
|
-
function
|
|
1330
|
-
return
|
|
1418
|
+
function baseAssign(object, source) {
|
|
1419
|
+
return object && copyObject(source, keys(source), object);
|
|
1331
1420
|
}
|
|
1332
1421
|
//#endregion
|
|
1333
1422
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js
|
|
@@ -1350,7 +1439,8 @@
|
|
|
1350
1439
|
/** Detect free variable `module`. */
|
|
1351
1440
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1352
1441
|
/** Built-in value references. */
|
|
1353
|
-
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0
|
|
1442
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0;
|
|
1443
|
+
var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1354
1444
|
/**
|
|
1355
1445
|
* Creates a clone of `buffer`.
|
|
1356
1446
|
*
|
|
@@ -1366,22 +1456,6 @@
|
|
|
1366
1456
|
return result;
|
|
1367
1457
|
}
|
|
1368
1458
|
//#endregion
|
|
1369
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js
|
|
1370
|
-
/**
|
|
1371
|
-
* Copies the values of `source` to `array`.
|
|
1372
|
-
*
|
|
1373
|
-
* @private
|
|
1374
|
-
* @param {Array} source The array to copy values from.
|
|
1375
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
1376
|
-
* @returns {Array} Returns `array`.
|
|
1377
|
-
*/
|
|
1378
|
-
function copyArray(source, array) {
|
|
1379
|
-
var index = -1, length = source.length;
|
|
1380
|
-
array || (array = Array(length));
|
|
1381
|
-
while (++index < length) array[index] = source[index];
|
|
1382
|
-
return array;
|
|
1383
|
-
}
|
|
1384
|
-
//#endregion
|
|
1385
1459
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js
|
|
1386
1460
|
/**
|
|
1387
1461
|
* A specialized version of `_.filter` for arrays without support for
|
|
@@ -1456,25 +1530,6 @@
|
|
|
1456
1530
|
return copyObject(source, getSymbols(source), object);
|
|
1457
1531
|
}
|
|
1458
1532
|
//#endregion
|
|
1459
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js
|
|
1460
|
-
/**
|
|
1461
|
-
* Appends the elements of `values` to `array`.
|
|
1462
|
-
*
|
|
1463
|
-
* @private
|
|
1464
|
-
* @param {Array} array The array to modify.
|
|
1465
|
-
* @param {Array} values The values to append.
|
|
1466
|
-
* @returns {Array} Returns `array`.
|
|
1467
|
-
*/
|
|
1468
|
-
function arrayPush(array, values) {
|
|
1469
|
-
var index = -1, length = values.length, offset = array.length;
|
|
1470
|
-
while (++index < length) array[offset + index] = values[index];
|
|
1471
|
-
return array;
|
|
1472
|
-
}
|
|
1473
|
-
//#endregion
|
|
1474
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
|
|
1475
|
-
/** Built-in value references. */
|
|
1476
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1477
|
-
//#endregion
|
|
1478
1533
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
|
|
1479
1534
|
/**
|
|
1480
1535
|
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
@@ -1556,15 +1611,20 @@
|
|
|
1556
1611
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js
|
|
1557
1612
|
var Set = getNative(root, "Set");
|
|
1558
1613
|
//#endregion
|
|
1559
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js
|
|
1560
|
-
var WeakMap = getNative(root, "WeakMap");
|
|
1561
|
-
//#endregion
|
|
1562
1614
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js
|
|
1563
1615
|
/** `Object#toString` result references. */
|
|
1564
|
-
var mapTag$3 = "[object Map]"
|
|
1616
|
+
var mapTag$3 = "[object Map]";
|
|
1617
|
+
var objectTag$1 = "[object Object]";
|
|
1618
|
+
var promiseTag = "[object Promise]";
|
|
1619
|
+
var setTag$3 = "[object Set]";
|
|
1620
|
+
var weakMapTag$1 = "[object WeakMap]";
|
|
1565
1621
|
var dataViewTag$2 = "[object DataView]";
|
|
1566
1622
|
/** Used to detect maps, sets, and weakmaps. */
|
|
1567
|
-
var dataViewCtorString = toSource(DataView)
|
|
1623
|
+
var dataViewCtorString = toSource(DataView);
|
|
1624
|
+
var mapCtorString = toSource(Map);
|
|
1625
|
+
var promiseCtorString = toSource(Promise$1);
|
|
1626
|
+
var setCtorString = toSource(Set);
|
|
1627
|
+
var weakMapCtorString = toSource(WeakMap);
|
|
1568
1628
|
/**
|
|
1569
1629
|
* Gets the `toStringTag` of `value`.
|
|
1570
1630
|
*
|
|
@@ -1655,7 +1715,8 @@
|
|
|
1655
1715
|
//#endregion
|
|
1656
1716
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js
|
|
1657
1717
|
/** Used to convert symbols to primitives and strings. */
|
|
1658
|
-
var symbolProto = Symbol ? Symbol.prototype : void 0
|
|
1718
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0;
|
|
1719
|
+
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1659
1720
|
/**
|
|
1660
1721
|
* Creates a clone of the `symbol` object.
|
|
1661
1722
|
*
|
|
@@ -1683,8 +1744,25 @@
|
|
|
1683
1744
|
//#endregion
|
|
1684
1745
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js
|
|
1685
1746
|
/** `Object#toString` result references. */
|
|
1686
|
-
var boolTag$1 = "[object Boolean]"
|
|
1687
|
-
var
|
|
1747
|
+
var boolTag$1 = "[object Boolean]";
|
|
1748
|
+
var dateTag$1 = "[object Date]";
|
|
1749
|
+
var mapTag$2 = "[object Map]";
|
|
1750
|
+
var numberTag$1 = "[object Number]";
|
|
1751
|
+
var regexpTag$1 = "[object RegExp]";
|
|
1752
|
+
var setTag$2 = "[object Set]";
|
|
1753
|
+
var stringTag$1 = "[object String]";
|
|
1754
|
+
var symbolTag$1 = "[object Symbol]";
|
|
1755
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]";
|
|
1756
|
+
var dataViewTag$1 = "[object DataView]";
|
|
1757
|
+
var float32Tag$1 = "[object Float32Array]";
|
|
1758
|
+
var float64Tag$1 = "[object Float64Array]";
|
|
1759
|
+
var int8Tag$1 = "[object Int8Array]";
|
|
1760
|
+
var int16Tag$1 = "[object Int16Array]";
|
|
1761
|
+
var int32Tag$1 = "[object Int32Array]";
|
|
1762
|
+
var uint8Tag$1 = "[object Uint8Array]";
|
|
1763
|
+
var uint8ClampedTag$1 = "[object Uint8ClampedArray]";
|
|
1764
|
+
var uint16Tag$1 = "[object Uint16Array]";
|
|
1765
|
+
var uint32Tag$1 = "[object Uint32Array]";
|
|
1688
1766
|
/**
|
|
1689
1767
|
* Initializes an object clone based on its `toStringTag`.
|
|
1690
1768
|
*
|
|
@@ -1722,29 +1800,6 @@
|
|
|
1722
1800
|
}
|
|
1723
1801
|
}
|
|
1724
1802
|
//#endregion
|
|
1725
|
-
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js
|
|
1726
|
-
/** Built-in value references. */
|
|
1727
|
-
var objectCreate = Object.create;
|
|
1728
|
-
/**
|
|
1729
|
-
* The base implementation of `_.create` without support for assigning
|
|
1730
|
-
* properties to the created object.
|
|
1731
|
-
*
|
|
1732
|
-
* @private
|
|
1733
|
-
* @param {Object} proto The object to inherit from.
|
|
1734
|
-
* @returns {Object} Returns the new object.
|
|
1735
|
-
*/
|
|
1736
|
-
var baseCreate = function() {
|
|
1737
|
-
function object() {}
|
|
1738
|
-
return function(proto) {
|
|
1739
|
-
if (!isObject(proto)) return {};
|
|
1740
|
-
if (objectCreate) return objectCreate(proto);
|
|
1741
|
-
object.prototype = proto;
|
|
1742
|
-
var result = new object();
|
|
1743
|
-
object.prototype = void 0;
|
|
1744
|
-
return result;
|
|
1745
|
-
};
|
|
1746
|
-
}();
|
|
1747
|
-
//#endregion
|
|
1748
1803
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js
|
|
1749
1804
|
/**
|
|
1750
1805
|
* Initializes an object clone.
|
|
@@ -1829,10 +1884,36 @@
|
|
|
1829
1884
|
//#endregion
|
|
1830
1885
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js
|
|
1831
1886
|
/** Used to compose bitmasks for cloning. */
|
|
1832
|
-
var CLONE_DEEP_FLAG$1 = 1
|
|
1887
|
+
var CLONE_DEEP_FLAG$1 = 1;
|
|
1888
|
+
var CLONE_FLAT_FLAG = 2;
|
|
1889
|
+
var CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1833
1890
|
/** `Object#toString` result references. */
|
|
1834
|
-
var argsTag = "[object Arguments]"
|
|
1835
|
-
var
|
|
1891
|
+
var argsTag = "[object Arguments]";
|
|
1892
|
+
var arrayTag = "[object Array]";
|
|
1893
|
+
var boolTag = "[object Boolean]";
|
|
1894
|
+
var dateTag = "[object Date]";
|
|
1895
|
+
var errorTag = "[object Error]";
|
|
1896
|
+
var funcTag = "[object Function]";
|
|
1897
|
+
var genTag = "[object GeneratorFunction]";
|
|
1898
|
+
var mapTag = "[object Map]";
|
|
1899
|
+
var numberTag = "[object Number]";
|
|
1900
|
+
var objectTag = "[object Object]";
|
|
1901
|
+
var regexpTag = "[object RegExp]";
|
|
1902
|
+
var setTag = "[object Set]";
|
|
1903
|
+
var stringTag = "[object String]";
|
|
1904
|
+
var symbolTag = "[object Symbol]";
|
|
1905
|
+
var weakMapTag = "[object WeakMap]";
|
|
1906
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1907
|
+
var dataViewTag = "[object DataView]";
|
|
1908
|
+
var float32Tag = "[object Float32Array]";
|
|
1909
|
+
var float64Tag = "[object Float64Array]";
|
|
1910
|
+
var int8Tag = "[object Int8Array]";
|
|
1911
|
+
var int16Tag = "[object Int16Array]";
|
|
1912
|
+
var int32Tag = "[object Int32Array]";
|
|
1913
|
+
var uint8Tag = "[object Uint8Array]";
|
|
1914
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
1915
|
+
var uint16Tag = "[object Uint16Array]";
|
|
1916
|
+
var uint32Tag = "[object Uint32Array]";
|
|
1836
1917
|
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
1837
1918
|
var cloneableTags = {};
|
|
1838
1919
|
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
@@ -1896,7 +1977,8 @@
|
|
|
1896
1977
|
//#endregion
|
|
1897
1978
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js
|
|
1898
1979
|
/** Used to compose bitmasks for cloning. */
|
|
1899
|
-
var CLONE_DEEP_FLAG = 1
|
|
1980
|
+
var CLONE_DEEP_FLAG = 1;
|
|
1981
|
+
var CLONE_SYMBOLS_FLAG = 4;
|
|
1900
1982
|
/**
|
|
1901
1983
|
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1902
1984
|
*
|
|
@@ -1919,8 +2001,116 @@
|
|
|
1919
2001
|
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
1920
2002
|
}
|
|
1921
2003
|
//#endregion
|
|
2004
|
+
//#region packages/table/src/actionHelpers.ts
|
|
2005
|
+
var display = (fuc, row) => {
|
|
2006
|
+
if (typeof fuc === "function") return fuc(row);
|
|
2007
|
+
if (typeof fuc === "boolean") return fuc;
|
|
2008
|
+
return true;
|
|
2009
|
+
};
|
|
2010
|
+
var disabled = (fuc, row) => {
|
|
2011
|
+
if (typeof fuc === "function") return fuc(row);
|
|
2012
|
+
if (typeof fuc === "boolean") return fuc;
|
|
2013
|
+
return false;
|
|
2014
|
+
};
|
|
2015
|
+
var formatActionText = (fuc, row) => {
|
|
2016
|
+
if (typeof fuc === "function") return fuc(row);
|
|
2017
|
+
return fuc;
|
|
2018
|
+
};
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region packages/table/src/ActionButton.vue
|
|
2021
|
+
var ActionButton_default = (0, vue.defineComponent)({
|
|
2022
|
+
name: "MTableActionButton",
|
|
2023
|
+
props: {
|
|
2024
|
+
action: {
|
|
2025
|
+
type: Object,
|
|
2026
|
+
required: true
|
|
2027
|
+
},
|
|
2028
|
+
row: {
|
|
2029
|
+
type: null,
|
|
2030
|
+
required: true
|
|
2031
|
+
},
|
|
2032
|
+
index: {
|
|
2033
|
+
type: Number,
|
|
2034
|
+
required: true
|
|
2035
|
+
},
|
|
2036
|
+
btnClass: {
|
|
2037
|
+
type: String,
|
|
2038
|
+
default: "action-btn"
|
|
2039
|
+
},
|
|
2040
|
+
visible: {
|
|
2041
|
+
type: Boolean,
|
|
2042
|
+
default: true
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
emits: ["click"],
|
|
2046
|
+
setup(props, { emit }) {
|
|
2047
|
+
const onClick = () => emit("click", props.action, props.row, props.index);
|
|
2048
|
+
return () => {
|
|
2049
|
+
const button = (0, vue.withDirectives)((0, vue.h)(_tmagic_design.TMagicButton, {
|
|
2050
|
+
class: props.btnClass,
|
|
2051
|
+
link: true,
|
|
2052
|
+
size: "small",
|
|
2053
|
+
type: props.action.buttonType || "primary",
|
|
2054
|
+
icon: props.action.icon,
|
|
2055
|
+
disabled: disabled(props.action.disabled, props.row),
|
|
2056
|
+
onClick
|
|
2057
|
+
}, () => (0, vue.h)("span", { innerHTML: formatActionText(props.action.text, props.row) })), [[vue.vShow, props.visible]]);
|
|
2058
|
+
if (!props.action.tooltip) return button;
|
|
2059
|
+
return (0, vue.h)(_tmagic_design.TMagicTooltip, {
|
|
2060
|
+
placement: props.action.tooltipPlacement || "top",
|
|
2061
|
+
content: props.action.tooltip
|
|
2062
|
+
}, () => button);
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
//#endregion
|
|
2067
|
+
//#region packages/table/src/ActionPopconfirm.vue
|
|
2068
|
+
var ActionPopconfirm_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
2069
|
+
name: "MTableActionPopconfirm",
|
|
2070
|
+
__name: "ActionPopconfirm",
|
|
2071
|
+
props: {
|
|
2072
|
+
action: {},
|
|
2073
|
+
row: {},
|
|
2074
|
+
index: {},
|
|
2075
|
+
btnClass: { default: "action-btn" },
|
|
2076
|
+
visible: {
|
|
2077
|
+
type: Boolean,
|
|
2078
|
+
default: true
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
emits: ["confirm"],
|
|
2082
|
+
setup(__props, { emit: __emit }) {
|
|
2083
|
+
const props = __props;
|
|
2084
|
+
const emit = __emit;
|
|
2085
|
+
const onConfirm = () => emit("confirm", props.action, props.row, props.index);
|
|
2086
|
+
return (_ctx, _cache) => {
|
|
2087
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_tmagic_design.TMagicPopconfirm), {
|
|
2088
|
+
placement: "top",
|
|
2089
|
+
width: __props.action.popconfirmWidth,
|
|
2090
|
+
title: (0, vue.unref)(formatActionText)(__props.action.confirmText, __props.row) || "确定执行此操作?",
|
|
2091
|
+
onConfirm
|
|
2092
|
+
}, {
|
|
2093
|
+
reference: (0, vue.withCtx)(() => [(0, vue.createVNode)(ActionButton_default, {
|
|
2094
|
+
action: __props.action,
|
|
2095
|
+
row: __props.row,
|
|
2096
|
+
index: __props.index,
|
|
2097
|
+
"btn-class": __props.btnClass,
|
|
2098
|
+
visible: __props.visible
|
|
2099
|
+
}, null, 8, [
|
|
2100
|
+
"action",
|
|
2101
|
+
"row",
|
|
2102
|
+
"index",
|
|
2103
|
+
"btn-class",
|
|
2104
|
+
"visible"
|
|
2105
|
+
])]),
|
|
2106
|
+
_: 1
|
|
2107
|
+
}, 8, ["width", "title"]);
|
|
2108
|
+
};
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
//#endregion
|
|
1922
2112
|
//#region packages/table/src/ActionsColumn.vue?vue&type=script&setup=true&lang.ts
|
|
1923
|
-
var _hoisted_1$2 =
|
|
2113
|
+
var _hoisted_1$2 = { class: "tmagic-table-sub-actions" };
|
|
1924
2114
|
//#endregion
|
|
1925
2115
|
//#region packages/table/src/ActionsColumn.vue
|
|
1926
2116
|
var ActionsColumn_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -1935,23 +2125,13 @@
|
|
|
1935
2125
|
index: {}
|
|
1936
2126
|
},
|
|
1937
2127
|
emits: ["after-action", "after-action-cancel"],
|
|
1938
|
-
setup(__props, { emit: __emit }) {
|
|
2128
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1939
2129
|
const props = __props;
|
|
1940
|
-
const
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
if (typeof fuc === "boolean") return fuc;
|
|
1944
|
-
return true;
|
|
1945
|
-
};
|
|
1946
|
-
const disabled = (fuc, row) => {
|
|
1947
|
-
if (typeof fuc === "function") return fuc(row);
|
|
1948
|
-
if (typeof fuc === "boolean") return fuc;
|
|
1949
|
-
return false;
|
|
1950
|
-
};
|
|
1951
|
-
const formatter = (fuc, row) => {
|
|
1952
|
-
if (typeof fuc === "function") return fuc(row);
|
|
1953
|
-
return fuc;
|
|
2130
|
+
const popoverVisible = (0, vue.ref)(false);
|
|
2131
|
+
const togglePopover = () => {
|
|
2132
|
+
popoverVisible.value = !popoverVisible.value;
|
|
1954
2133
|
};
|
|
2134
|
+
const emit = __emit;
|
|
1955
2135
|
const actionHandler = async (action, row, index) => {
|
|
1956
2136
|
await action.before?.(row, index);
|
|
1957
2137
|
if (action.type === "edit") props.editState[index] = cloneDeep(row);
|
|
@@ -1981,47 +2161,102 @@
|
|
|
1981
2161
|
if (cancel) await cancel({ index });
|
|
1982
2162
|
emit("after-action-cancel", { index });
|
|
1983
2163
|
};
|
|
2164
|
+
__expose({
|
|
2165
|
+
actionHandler,
|
|
2166
|
+
save,
|
|
2167
|
+
cancel
|
|
2168
|
+
});
|
|
1984
2169
|
return (_ctx, _cache) => {
|
|
1985
2170
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [
|
|
1986
2171
|
((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.config.actions, (action, actionIndex) => {
|
|
1987
|
-
return (0, vue.openBlock)(), (0, vue.
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
2172
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: actionIndex }, [action.popconfirm ? ((0, vue.openBlock)(), (0, vue.createBlock)(ActionPopconfirm_default, {
|
|
2173
|
+
key: 0,
|
|
2174
|
+
action,
|
|
2175
|
+
row: __props.row,
|
|
2176
|
+
index: __props.index,
|
|
2177
|
+
visible: (0, vue.unref)(display)(action.display, __props.row) && !__props.editState[__props.index],
|
|
2178
|
+
onConfirm: actionHandler
|
|
2179
|
+
}, null, 8, [
|
|
2180
|
+
"action",
|
|
2181
|
+
"row",
|
|
2182
|
+
"index",
|
|
2183
|
+
"visible"
|
|
2184
|
+
])) : action.type === "sub-actions" ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_tmagic_design.TMagicPopover), {
|
|
2185
|
+
key: 1,
|
|
2186
|
+
visible: popoverVisible.value,
|
|
2187
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => popoverVisible.value = $event),
|
|
2188
|
+
trigger: "click",
|
|
2189
|
+
placement: action.subActionConfig?.placement || "bottom",
|
|
2190
|
+
width: action.subActionConfig?.popoverWidth,
|
|
2191
|
+
"popper-class": action.subActionConfig?.popoverClass,
|
|
2192
|
+
"destroy-on-close": action.subActionConfig?.popoverDestroyOnClose ?? true
|
|
1992
2193
|
}, {
|
|
1993
|
-
|
|
2194
|
+
reference: (0, vue.withCtx)(() => [(0, vue.withDirectives)((0, vue.createVNode)((0, vue.unref)(_tmagic_design.TMagicButton), {
|
|
1994
2195
|
class: "action-btn",
|
|
1995
2196
|
link: "",
|
|
1996
2197
|
size: "small",
|
|
1997
2198
|
type: action.buttonType || "primary",
|
|
1998
|
-
icon:
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2199
|
+
icon: popoverVisible.value ? (0, vue.unref)(_element_plus_icons_vue.ArrowDown) : (0, vue.unref)(_element_plus_icons_vue.ArrowRight),
|
|
2200
|
+
onClick: (0, vue.withModifiers)(togglePopover, ["stop"])
|
|
2201
|
+
}, null, 8, ["type", "icon"]), [[vue.vShow, action.subActionConfig?.items?.length && (0, vue.unref)(display)(action.display, __props.row) && !__props.editState[__props.index]]])]),
|
|
2202
|
+
default: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", _hoisted_1$2, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(action.subActionConfig?.items, (subAction, subIndex) => {
|
|
2203
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: subIndex }, [subAction.popconfirm ? ((0, vue.openBlock)(), (0, vue.createBlock)(ActionPopconfirm_default, {
|
|
2204
|
+
key: 0,
|
|
2205
|
+
action: subAction,
|
|
2206
|
+
row: __props.row,
|
|
2207
|
+
index: __props.index,
|
|
2208
|
+
"btn-class": "sub-action-btn",
|
|
2209
|
+
visible: (0, vue.unref)(display)(subAction.display, __props.row),
|
|
2210
|
+
onConfirm: actionHandler
|
|
2211
|
+
}, null, 8, [
|
|
2212
|
+
"action",
|
|
2213
|
+
"row",
|
|
2214
|
+
"index",
|
|
2215
|
+
"visible"
|
|
2216
|
+
])) : ((0, vue.openBlock)(), (0, vue.createBlock)(ActionButton_default, {
|
|
2217
|
+
key: 1,
|
|
2218
|
+
action: subAction,
|
|
2219
|
+
row: __props.row,
|
|
2220
|
+
index: __props.index,
|
|
2221
|
+
"btn-class": "sub-action-btn",
|
|
2222
|
+
visible: (0, vue.unref)(display)(subAction.display, __props.row),
|
|
2223
|
+
onClick: actionHandler
|
|
2224
|
+
}, null, 8, [
|
|
2225
|
+
"action",
|
|
2226
|
+
"row",
|
|
2227
|
+
"index",
|
|
2228
|
+
"visible"
|
|
2229
|
+
]))], 64);
|
|
2230
|
+
}), 128))])]),
|
|
2010
2231
|
_: 2
|
|
2011
2232
|
}, 1032, [
|
|
2233
|
+
"visible",
|
|
2012
2234
|
"placement",
|
|
2013
|
-
"
|
|
2014
|
-
"
|
|
2015
|
-
|
|
2235
|
+
"width",
|
|
2236
|
+
"popper-class",
|
|
2237
|
+
"destroy-on-close"
|
|
2238
|
+
])) : ((0, vue.openBlock)(), (0, vue.createBlock)(ActionButton_default, {
|
|
2239
|
+
key: 2,
|
|
2240
|
+
action,
|
|
2241
|
+
row: __props.row,
|
|
2242
|
+
index: __props.index,
|
|
2243
|
+
visible: (0, vue.unref)(display)(action.display, __props.row) && !__props.editState[__props.index],
|
|
2244
|
+
onClick: actionHandler
|
|
2245
|
+
}, null, 8, [
|
|
2246
|
+
"action",
|
|
2247
|
+
"row",
|
|
2248
|
+
"index",
|
|
2249
|
+
"visible"
|
|
2250
|
+
]))], 64);
|
|
2016
2251
|
}), 128)),
|
|
2017
2252
|
(0, vue.withDirectives)((0, vue.createVNode)((0, vue.unref)(_tmagic_design.TMagicButton), {
|
|
2018
2253
|
class: "action-btn",
|
|
2019
2254
|
link: "",
|
|
2020
2255
|
type: "primary",
|
|
2021
2256
|
size: "small",
|
|
2022
|
-
onClick: _cache[
|
|
2257
|
+
onClick: _cache[1] || (_cache[1] = ($event) => save(__props.index, __props.config))
|
|
2023
2258
|
}, {
|
|
2024
|
-
default: (0, vue.withCtx)(() => [..._cache[
|
|
2259
|
+
default: (0, vue.withCtx)(() => [..._cache[3] || (_cache[3] = [(0, vue.createTextVNode)("保存", -1)])]),
|
|
2025
2260
|
_: 1
|
|
2026
2261
|
}, 512), [[vue.vShow, __props.editState[__props.index]]]),
|
|
2027
2262
|
(0, vue.withDirectives)((0, vue.createVNode)((0, vue.unref)(_tmagic_design.TMagicButton), {
|
|
@@ -2029,9 +2264,9 @@
|
|
|
2029
2264
|
link: "",
|
|
2030
2265
|
type: "danger",
|
|
2031
2266
|
size: "small",
|
|
2032
|
-
onClick: _cache[
|
|
2267
|
+
onClick: _cache[2] || (_cache[2] = ($event) => cancel(__props.index, __props.config))
|
|
2033
2268
|
}, {
|
|
2034
|
-
default: (0, vue.withCtx)(() => [..._cache[
|
|
2269
|
+
default: (0, vue.withCtx)(() => [..._cache[4] || (_cache[4] = [(0, vue.createTextVNode)("取消", -1)])]),
|
|
2035
2270
|
_: 1
|
|
2036
2271
|
}, 512), [[vue.vShow, __props.editState[__props.index]]])
|
|
2037
2272
|
], 64);
|
|
@@ -2039,6 +2274,16 @@
|
|
|
2039
2274
|
}
|
|
2040
2275
|
});
|
|
2041
2276
|
//#endregion
|
|
2277
|
+
//#region packages/table/src/componentHelpers.ts
|
|
2278
|
+
var resolveComponentProps = (config, row, index) => {
|
|
2279
|
+
if (typeof config.props === "function") return config.props(row, index) || {};
|
|
2280
|
+
return config.props || {};
|
|
2281
|
+
};
|
|
2282
|
+
var resolveComponentListeners = (config, row, index) => {
|
|
2283
|
+
if (typeof config.listeners === "function") return config.listeners(row, index) || {};
|
|
2284
|
+
return config.listeners || {};
|
|
2285
|
+
};
|
|
2286
|
+
//#endregion
|
|
2042
2287
|
//#region packages/table/src/ComponentColumn.vue
|
|
2043
2288
|
var ComponentColumn_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
2044
2289
|
name: "MTableColumn",
|
|
@@ -2049,17 +2294,8 @@
|
|
|
2049
2294
|
index: {}
|
|
2050
2295
|
},
|
|
2051
2296
|
setup(__props) {
|
|
2052
|
-
const props = __props;
|
|
2053
|
-
const componentProps = (row, index) => {
|
|
2054
|
-
if (typeof props.config.props === "function") return props.config.props(row, index) || {};
|
|
2055
|
-
return props.config.props || {};
|
|
2056
|
-
};
|
|
2057
|
-
const componentListeners = (row, index) => {
|
|
2058
|
-
if (typeof props.config.listeners === "function") return props.config.listeners(row, index) || {};
|
|
2059
|
-
return props.config.listeners || {};
|
|
2060
|
-
};
|
|
2061
2297
|
return (_ctx, _cache) => {
|
|
2062
|
-
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.config.component), (0, vue.mergeProps)(
|
|
2298
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.config.component), (0, vue.mergeProps)((0, vue.unref)(resolveComponentProps)(__props.config, __props.row, __props.index), (0, vue.toHandlers)((0, vue.unref)(resolveComponentListeners)(__props.config, __props.row, __props.index))), null, 16);
|
|
2063
2299
|
};
|
|
2064
2300
|
}
|
|
2065
2301
|
});
|
|
@@ -2165,6 +2401,13 @@
|
|
|
2165
2401
|
}
|
|
2166
2402
|
});
|
|
2167
2403
|
//#endregion
|
|
2404
|
+
//#region packages/table/src/formHelpers.ts
|
|
2405
|
+
var applyInlineEditChange = (target, eventData) => {
|
|
2406
|
+
if (eventData.changeRecords?.length) {
|
|
2407
|
+
for (const record of eventData.changeRecords) if (record.propPath) (0, _tmagic_utils.setValueByKeyPath)(record.propPath, record.value, target);
|
|
2408
|
+
}
|
|
2409
|
+
};
|
|
2410
|
+
//#endregion
|
|
2168
2411
|
//#region packages/table/src/TextColumn.vue?vue&type=script&setup=true&lang.ts
|
|
2169
2412
|
var _hoisted_1 = { key: 0 };
|
|
2170
2413
|
var _hoisted_2 = ["innerHTML"];
|
|
@@ -2186,9 +2429,7 @@
|
|
|
2186
2429
|
setup(__props) {
|
|
2187
2430
|
const props = __props;
|
|
2188
2431
|
const formChangeHandler = (v, eventData) => {
|
|
2189
|
-
|
|
2190
|
-
for (const record of eventData.changeRecords) if (record.propPath) (0, _tmagic_utils.setValueByKeyPath)(record.propPath, record.value, props.editState[props.index]);
|
|
2191
|
-
}
|
|
2432
|
+
applyInlineEditChange(props.editState[props.index], eventData);
|
|
2192
2433
|
};
|
|
2193
2434
|
return (_ctx, _cache) => {
|
|
2194
2435
|
return __props.config.type === "index" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1, (0, vue.toDisplayString)(__props.config.pageIndex && __props.config.pageSize ? __props.config.pageIndex * __props.config.pageSize + __props.index + 1 : __props.index + 1), 1)) : (__props.config.type || __props.config.editInlineFormConfig) && __props.editState[__props.index] ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(_tmagic_form.MForm), {
|