@qlover/fe-release 2.3.5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +323 -1001
- package/dist/cli.js +330 -1003
- package/dist/index.cjs +708 -1378
- package/dist/index.d.ts +43 -96
- package/dist/index.js +715 -1380
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -24,187 +24,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
mod
|
|
25
25
|
));
|
|
26
26
|
|
|
27
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
28
|
-
var
|
|
29
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
30
|
-
"use strict";
|
|
31
|
-
function listCacheClear() {
|
|
32
|
-
this.__data__ = [];
|
|
33
|
-
this.size = 0;
|
|
34
|
-
}
|
|
35
|
-
module.exports = listCacheClear;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js
|
|
40
|
-
var require_eq = __commonJS({
|
|
41
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports, module) {
|
|
42
|
-
"use strict";
|
|
43
|
-
function eq(value, other) {
|
|
44
|
-
return value === other || value !== value && other !== other;
|
|
45
|
-
}
|
|
46
|
-
module.exports = eq;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js
|
|
51
|
-
var require_assocIndexOf = __commonJS({
|
|
52
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports, module) {
|
|
53
|
-
"use strict";
|
|
54
|
-
var eq = require_eq();
|
|
55
|
-
function assocIndexOf(array, key) {
|
|
56
|
-
var length = array.length;
|
|
57
|
-
while (length--) {
|
|
58
|
-
if (eq(array[length][0], key)) {
|
|
59
|
-
return length;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
return -1;
|
|
63
|
-
}
|
|
64
|
-
module.exports = assocIndexOf;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js
|
|
69
|
-
var require_listCacheDelete = __commonJS({
|
|
70
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports, module) {
|
|
71
|
-
"use strict";
|
|
72
|
-
var assocIndexOf = require_assocIndexOf();
|
|
73
|
-
var arrayProto = Array.prototype;
|
|
74
|
-
var splice = arrayProto.splice;
|
|
75
|
-
function listCacheDelete(key) {
|
|
76
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
77
|
-
if (index < 0) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
var lastIndex = data.length - 1;
|
|
81
|
-
if (index == lastIndex) {
|
|
82
|
-
data.pop();
|
|
83
|
-
} else {
|
|
84
|
-
splice.call(data, index, 1);
|
|
85
|
-
}
|
|
86
|
-
--this.size;
|
|
87
|
-
return true;
|
|
88
|
-
}
|
|
89
|
-
module.exports = listCacheDelete;
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js
|
|
94
|
-
var require_listCacheGet = __commonJS({
|
|
95
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports, module) {
|
|
96
|
-
"use strict";
|
|
97
|
-
var assocIndexOf = require_assocIndexOf();
|
|
98
|
-
function listCacheGet(key) {
|
|
99
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
100
|
-
return index < 0 ? void 0 : data[index][1];
|
|
101
|
-
}
|
|
102
|
-
module.exports = listCacheGet;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js
|
|
107
|
-
var require_listCacheHas = __commonJS({
|
|
108
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports, module) {
|
|
109
|
-
"use strict";
|
|
110
|
-
var assocIndexOf = require_assocIndexOf();
|
|
111
|
-
function listCacheHas(key) {
|
|
112
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
113
|
-
}
|
|
114
|
-
module.exports = listCacheHas;
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js
|
|
119
|
-
var require_listCacheSet = __commonJS({
|
|
120
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports, module) {
|
|
121
|
-
"use strict";
|
|
122
|
-
var assocIndexOf = require_assocIndexOf();
|
|
123
|
-
function listCacheSet(key, value) {
|
|
124
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
125
|
-
if (index < 0) {
|
|
126
|
-
++this.size;
|
|
127
|
-
data.push([key, value]);
|
|
128
|
-
} else {
|
|
129
|
-
data[index][1] = value;
|
|
130
|
-
}
|
|
131
|
-
return this;
|
|
132
|
-
}
|
|
133
|
-
module.exports = listCacheSet;
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js
|
|
138
|
-
var require_ListCache = __commonJS({
|
|
139
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports, module) {
|
|
140
|
-
"use strict";
|
|
141
|
-
var listCacheClear = require_listCacheClear();
|
|
142
|
-
var listCacheDelete = require_listCacheDelete();
|
|
143
|
-
var listCacheGet = require_listCacheGet();
|
|
144
|
-
var listCacheHas = require_listCacheHas();
|
|
145
|
-
var listCacheSet = require_listCacheSet();
|
|
146
|
-
function ListCache(entries) {
|
|
147
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
148
|
-
this.clear();
|
|
149
|
-
while (++index < length) {
|
|
150
|
-
var entry = entries[index];
|
|
151
|
-
this.set(entry[0], entry[1]);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
ListCache.prototype.clear = listCacheClear;
|
|
155
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
156
|
-
ListCache.prototype.get = listCacheGet;
|
|
157
|
-
ListCache.prototype.has = listCacheHas;
|
|
158
|
-
ListCache.prototype.set = listCacheSet;
|
|
159
|
-
module.exports = ListCache;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
|
|
164
|
-
var require_stackClear = __commonJS({
|
|
165
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) {
|
|
166
|
-
"use strict";
|
|
167
|
-
var ListCache = require_ListCache();
|
|
168
|
-
function stackClear() {
|
|
169
|
-
this.__data__ = new ListCache();
|
|
170
|
-
this.size = 0;
|
|
171
|
-
}
|
|
172
|
-
module.exports = stackClear;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
|
|
177
|
-
var require_stackDelete = __commonJS({
|
|
178
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) {
|
|
179
|
-
"use strict";
|
|
180
|
-
function stackDelete(key) {
|
|
181
|
-
var data = this.__data__, result = data["delete"](key);
|
|
182
|
-
this.size = data.size;
|
|
183
|
-
return result;
|
|
184
|
-
}
|
|
185
|
-
module.exports = stackDelete;
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
|
|
190
|
-
var require_stackGet = __commonJS({
|
|
191
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) {
|
|
192
|
-
"use strict";
|
|
193
|
-
function stackGet(key) {
|
|
194
|
-
return this.__data__.get(key);
|
|
195
|
-
}
|
|
196
|
-
module.exports = stackGet;
|
|
197
|
-
}
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
|
|
201
|
-
var require_stackHas = __commonJS({
|
|
202
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) {
|
|
27
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js
|
|
28
|
+
var require_isArray = __commonJS({
|
|
29
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"(exports, module) {
|
|
203
30
|
"use strict";
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
module.exports = stackHas;
|
|
31
|
+
var isArray = Array.isArray;
|
|
32
|
+
module.exports = isArray;
|
|
208
33
|
}
|
|
209
34
|
});
|
|
210
35
|
|
|
@@ -301,6 +126,53 @@ var require_baseGetTag = __commonJS({
|
|
|
301
126
|
}
|
|
302
127
|
});
|
|
303
128
|
|
|
129
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js
|
|
130
|
+
var require_isObjectLike = __commonJS({
|
|
131
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(exports, module) {
|
|
132
|
+
"use strict";
|
|
133
|
+
function isObjectLike(value) {
|
|
134
|
+
return value != null && typeof value == "object";
|
|
135
|
+
}
|
|
136
|
+
module.exports = isObjectLike;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js
|
|
141
|
+
var require_isSymbol = __commonJS({
|
|
142
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports, module) {
|
|
143
|
+
"use strict";
|
|
144
|
+
var baseGetTag = require_baseGetTag();
|
|
145
|
+
var isObjectLike = require_isObjectLike();
|
|
146
|
+
var symbolTag = "[object Symbol]";
|
|
147
|
+
function isSymbol(value) {
|
|
148
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
149
|
+
}
|
|
150
|
+
module.exports = isSymbol;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js
|
|
155
|
+
var require_isKey = __commonJS({
|
|
156
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"(exports, module) {
|
|
157
|
+
"use strict";
|
|
158
|
+
var isArray = require_isArray();
|
|
159
|
+
var isSymbol = require_isSymbol();
|
|
160
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
161
|
+
var reIsPlainProp = /^\w*$/;
|
|
162
|
+
function isKey(value, object) {
|
|
163
|
+
if (isArray(value)) {
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
var type = typeof value;
|
|
167
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
171
|
+
}
|
|
172
|
+
module.exports = isKey;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
304
176
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js
|
|
305
177
|
var require_isObject = __commonJS({
|
|
306
178
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(exports, module) {
|
|
@@ -436,17 +308,6 @@ var require_getNative = __commonJS({
|
|
|
436
308
|
}
|
|
437
309
|
});
|
|
438
310
|
|
|
439
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js
|
|
440
|
-
var require_Map = __commonJS({
|
|
441
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports, module) {
|
|
442
|
-
"use strict";
|
|
443
|
-
var getNative = require_getNative();
|
|
444
|
-
var root = require_root();
|
|
445
|
-
var Map = getNative(root, "Map");
|
|
446
|
-
module.exports = Map;
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
|
|
450
311
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js
|
|
451
312
|
var require_nativeCreate = __commonJS({
|
|
452
313
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(exports, module) {
|
|
@@ -560,16 +421,163 @@ var require_Hash = __commonJS({
|
|
|
560
421
|
}
|
|
561
422
|
});
|
|
562
423
|
|
|
563
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
564
|
-
var
|
|
565
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
424
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js
|
|
425
|
+
var require_listCacheClear = __commonJS({
|
|
426
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(exports, module) {
|
|
566
427
|
"use strict";
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
var Map = require_Map();
|
|
570
|
-
function mapCacheClear() {
|
|
428
|
+
function listCacheClear() {
|
|
429
|
+
this.__data__ = [];
|
|
571
430
|
this.size = 0;
|
|
572
|
-
|
|
431
|
+
}
|
|
432
|
+
module.exports = listCacheClear;
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js
|
|
437
|
+
var require_eq = __commonJS({
|
|
438
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports, module) {
|
|
439
|
+
"use strict";
|
|
440
|
+
function eq(value, other) {
|
|
441
|
+
return value === other || value !== value && other !== other;
|
|
442
|
+
}
|
|
443
|
+
module.exports = eq;
|
|
444
|
+
}
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js
|
|
448
|
+
var require_assocIndexOf = __commonJS({
|
|
449
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports, module) {
|
|
450
|
+
"use strict";
|
|
451
|
+
var eq = require_eq();
|
|
452
|
+
function assocIndexOf(array, key) {
|
|
453
|
+
var length = array.length;
|
|
454
|
+
while (length--) {
|
|
455
|
+
if (eq(array[length][0], key)) {
|
|
456
|
+
return length;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
return -1;
|
|
460
|
+
}
|
|
461
|
+
module.exports = assocIndexOf;
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js
|
|
466
|
+
var require_listCacheDelete = __commonJS({
|
|
467
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports, module) {
|
|
468
|
+
"use strict";
|
|
469
|
+
var assocIndexOf = require_assocIndexOf();
|
|
470
|
+
var arrayProto = Array.prototype;
|
|
471
|
+
var splice = arrayProto.splice;
|
|
472
|
+
function listCacheDelete(key) {
|
|
473
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
474
|
+
if (index < 0) {
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
var lastIndex = data.length - 1;
|
|
478
|
+
if (index == lastIndex) {
|
|
479
|
+
data.pop();
|
|
480
|
+
} else {
|
|
481
|
+
splice.call(data, index, 1);
|
|
482
|
+
}
|
|
483
|
+
--this.size;
|
|
484
|
+
return true;
|
|
485
|
+
}
|
|
486
|
+
module.exports = listCacheDelete;
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js
|
|
491
|
+
var require_listCacheGet = __commonJS({
|
|
492
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports, module) {
|
|
493
|
+
"use strict";
|
|
494
|
+
var assocIndexOf = require_assocIndexOf();
|
|
495
|
+
function listCacheGet(key) {
|
|
496
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
497
|
+
return index < 0 ? void 0 : data[index][1];
|
|
498
|
+
}
|
|
499
|
+
module.exports = listCacheGet;
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
|
|
503
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js
|
|
504
|
+
var require_listCacheHas = __commonJS({
|
|
505
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports, module) {
|
|
506
|
+
"use strict";
|
|
507
|
+
var assocIndexOf = require_assocIndexOf();
|
|
508
|
+
function listCacheHas(key) {
|
|
509
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
510
|
+
}
|
|
511
|
+
module.exports = listCacheHas;
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
|
|
515
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js
|
|
516
|
+
var require_listCacheSet = __commonJS({
|
|
517
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports, module) {
|
|
518
|
+
"use strict";
|
|
519
|
+
var assocIndexOf = require_assocIndexOf();
|
|
520
|
+
function listCacheSet(key, value) {
|
|
521
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
522
|
+
if (index < 0) {
|
|
523
|
+
++this.size;
|
|
524
|
+
data.push([key, value]);
|
|
525
|
+
} else {
|
|
526
|
+
data[index][1] = value;
|
|
527
|
+
}
|
|
528
|
+
return this;
|
|
529
|
+
}
|
|
530
|
+
module.exports = listCacheSet;
|
|
531
|
+
}
|
|
532
|
+
});
|
|
533
|
+
|
|
534
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js
|
|
535
|
+
var require_ListCache = __commonJS({
|
|
536
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports, module) {
|
|
537
|
+
"use strict";
|
|
538
|
+
var listCacheClear = require_listCacheClear();
|
|
539
|
+
var listCacheDelete = require_listCacheDelete();
|
|
540
|
+
var listCacheGet = require_listCacheGet();
|
|
541
|
+
var listCacheHas = require_listCacheHas();
|
|
542
|
+
var listCacheSet = require_listCacheSet();
|
|
543
|
+
function ListCache(entries) {
|
|
544
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
545
|
+
this.clear();
|
|
546
|
+
while (++index < length) {
|
|
547
|
+
var entry = entries[index];
|
|
548
|
+
this.set(entry[0], entry[1]);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
ListCache.prototype.clear = listCacheClear;
|
|
552
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
553
|
+
ListCache.prototype.get = listCacheGet;
|
|
554
|
+
ListCache.prototype.has = listCacheHas;
|
|
555
|
+
ListCache.prototype.set = listCacheSet;
|
|
556
|
+
module.exports = ListCache;
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
|
|
560
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js
|
|
561
|
+
var require_Map = __commonJS({
|
|
562
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports, module) {
|
|
563
|
+
"use strict";
|
|
564
|
+
var getNative = require_getNative();
|
|
565
|
+
var root = require_root();
|
|
566
|
+
var Map = getNative(root, "Map");
|
|
567
|
+
module.exports = Map;
|
|
568
|
+
}
|
|
569
|
+
});
|
|
570
|
+
|
|
571
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js
|
|
572
|
+
var require_mapCacheClear = __commonJS({
|
|
573
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(exports, module) {
|
|
574
|
+
"use strict";
|
|
575
|
+
var Hash = require_Hash();
|
|
576
|
+
var ListCache = require_ListCache();
|
|
577
|
+
var Map = require_Map();
|
|
578
|
+
function mapCacheClear() {
|
|
579
|
+
this.size = 0;
|
|
580
|
+
this.__data__ = {
|
|
573
581
|
"hash": new Hash(),
|
|
574
582
|
"map": new (Map || ListCache)(),
|
|
575
583
|
"string": new Hash()
|
|
@@ -683,298 +691,306 @@ var require_MapCache = __commonJS({
|
|
|
683
691
|
}
|
|
684
692
|
});
|
|
685
693
|
|
|
686
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
687
|
-
var
|
|
688
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
694
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js
|
|
695
|
+
var require_memoize = __commonJS({
|
|
696
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js"(exports, module) {
|
|
689
697
|
"use strict";
|
|
690
|
-
var ListCache = require_ListCache();
|
|
691
|
-
var Map = require_Map();
|
|
692
698
|
var MapCache = require_MapCache();
|
|
693
|
-
var
|
|
694
|
-
function
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
var pairs = data.__data__;
|
|
698
|
-
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
699
|
-
pairs.push([key, value]);
|
|
700
|
-
this.size = ++data.size;
|
|
701
|
-
return this;
|
|
702
|
-
}
|
|
703
|
-
data = this.__data__ = new MapCache(pairs);
|
|
699
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
700
|
+
function memoize(func, resolver) {
|
|
701
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
702
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
704
703
|
}
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
704
|
+
var memoized = function() {
|
|
705
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
706
|
+
if (cache.has(key)) {
|
|
707
|
+
return cache.get(key);
|
|
708
|
+
}
|
|
709
|
+
var result = func.apply(this, args);
|
|
710
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
711
|
+
return result;
|
|
712
|
+
};
|
|
713
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
714
|
+
return memoized;
|
|
708
715
|
}
|
|
709
|
-
|
|
716
|
+
memoize.Cache = MapCache;
|
|
717
|
+
module.exports = memoize;
|
|
710
718
|
}
|
|
711
719
|
});
|
|
712
720
|
|
|
713
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
714
|
-
var
|
|
715
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
721
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js
|
|
722
|
+
var require_memoizeCapped = __commonJS({
|
|
723
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js"(exports, module) {
|
|
716
724
|
"use strict";
|
|
717
|
-
var
|
|
718
|
-
var
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
725
|
+
var memoize = require_memoize();
|
|
726
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
727
|
+
function memoizeCapped(func) {
|
|
728
|
+
var result = memoize(func, function(key) {
|
|
729
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
730
|
+
cache.clear();
|
|
731
|
+
}
|
|
732
|
+
return key;
|
|
733
|
+
});
|
|
734
|
+
var cache = result.cache;
|
|
735
|
+
return result;
|
|
726
736
|
}
|
|
727
|
-
|
|
728
|
-
Stack.prototype["delete"] = stackDelete;
|
|
729
|
-
Stack.prototype.get = stackGet;
|
|
730
|
-
Stack.prototype.has = stackHas;
|
|
731
|
-
Stack.prototype.set = stackSet;
|
|
732
|
-
module.exports = Stack;
|
|
737
|
+
module.exports = memoizeCapped;
|
|
733
738
|
}
|
|
734
739
|
});
|
|
735
740
|
|
|
736
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
737
|
-
var
|
|
738
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
741
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js
|
|
742
|
+
var require_stringToPath = __commonJS({
|
|
743
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js"(exports, module) {
|
|
739
744
|
"use strict";
|
|
740
|
-
var
|
|
741
|
-
var
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
745
|
+
var memoizeCapped = require_memoizeCapped();
|
|
746
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
747
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
748
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
749
|
+
var result = [];
|
|
750
|
+
if (string.charCodeAt(0) === 46) {
|
|
751
|
+
result.push("");
|
|
747
752
|
}
|
|
748
|
-
|
|
749
|
-
|
|
753
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
754
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
755
|
+
});
|
|
756
|
+
return result;
|
|
757
|
+
});
|
|
758
|
+
module.exports = stringToPath;
|
|
750
759
|
}
|
|
751
760
|
});
|
|
752
761
|
|
|
753
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
754
|
-
var
|
|
755
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
756
|
-
"use strict";
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
"configurable": true,
|
|
762
|
-
"enumerable": true,
|
|
763
|
-
"value": value,
|
|
764
|
-
"writable": true
|
|
765
|
-
});
|
|
766
|
-
} else {
|
|
767
|
-
object[key] = value;
|
|
762
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js
|
|
763
|
+
var require_arrayMap = __commonJS({
|
|
764
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports, module) {
|
|
765
|
+
"use strict";
|
|
766
|
+
function arrayMap(array, iteratee) {
|
|
767
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
768
|
+
while (++index < length) {
|
|
769
|
+
result[index] = iteratee(array[index], index, array);
|
|
768
770
|
}
|
|
771
|
+
return result;
|
|
769
772
|
}
|
|
770
|
-
module.exports =
|
|
773
|
+
module.exports = arrayMap;
|
|
771
774
|
}
|
|
772
775
|
});
|
|
773
776
|
|
|
774
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
775
|
-
var
|
|
776
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
777
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js
|
|
778
|
+
var require_baseToString = __commonJS({
|
|
779
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports, module) {
|
|
777
780
|
"use strict";
|
|
778
|
-
var
|
|
779
|
-
var
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
781
|
+
var Symbol2 = require_Symbol();
|
|
782
|
+
var arrayMap = require_arrayMap();
|
|
783
|
+
var isArray = require_isArray();
|
|
784
|
+
var isSymbol = require_isSymbol();
|
|
785
|
+
var INFINITY = 1 / 0;
|
|
786
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
787
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
788
|
+
function baseToString(value) {
|
|
789
|
+
if (typeof value == "string") {
|
|
790
|
+
return value;
|
|
791
|
+
}
|
|
792
|
+
if (isArray(value)) {
|
|
793
|
+
return arrayMap(value, baseToString) + "";
|
|
783
794
|
}
|
|
795
|
+
if (isSymbol(value)) {
|
|
796
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
797
|
+
}
|
|
798
|
+
var result = value + "";
|
|
799
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
784
800
|
}
|
|
785
|
-
module.exports =
|
|
801
|
+
module.exports = baseToString;
|
|
786
802
|
}
|
|
787
803
|
});
|
|
788
804
|
|
|
789
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
790
|
-
var
|
|
791
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
805
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js
|
|
806
|
+
var require_toString = __commonJS({
|
|
807
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports, module) {
|
|
792
808
|
"use strict";
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
while (length--) {
|
|
797
|
-
var key = props[fromRight ? length : ++index];
|
|
798
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
799
|
-
break;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return object;
|
|
803
|
-
};
|
|
809
|
+
var baseToString = require_baseToString();
|
|
810
|
+
function toString(value) {
|
|
811
|
+
return value == null ? "" : baseToString(value);
|
|
804
812
|
}
|
|
805
|
-
module.exports =
|
|
806
|
-
}
|
|
807
|
-
});
|
|
808
|
-
|
|
809
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js
|
|
810
|
-
var require_baseFor = __commonJS({
|
|
811
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(exports, module) {
|
|
812
|
-
"use strict";
|
|
813
|
-
var createBaseFor = require_createBaseFor();
|
|
814
|
-
var baseFor = createBaseFor();
|
|
815
|
-
module.exports = baseFor;
|
|
813
|
+
module.exports = toString;
|
|
816
814
|
}
|
|
817
815
|
});
|
|
818
816
|
|
|
819
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
820
|
-
var
|
|
821
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
817
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js
|
|
818
|
+
var require_castPath = __commonJS({
|
|
819
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"(exports, module) {
|
|
822
820
|
"use strict";
|
|
823
|
-
var
|
|
824
|
-
var
|
|
825
|
-
var
|
|
826
|
-
var
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
if (isDeep) {
|
|
831
|
-
return buffer.slice();
|
|
821
|
+
var isArray = require_isArray();
|
|
822
|
+
var isKey = require_isKey();
|
|
823
|
+
var stringToPath = require_stringToPath();
|
|
824
|
+
var toString = require_toString();
|
|
825
|
+
function castPath(value, object) {
|
|
826
|
+
if (isArray(value)) {
|
|
827
|
+
return value;
|
|
832
828
|
}
|
|
833
|
-
|
|
834
|
-
buffer.copy(result);
|
|
835
|
-
return result;
|
|
829
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
836
830
|
}
|
|
837
|
-
module.exports =
|
|
831
|
+
module.exports = castPath;
|
|
838
832
|
}
|
|
839
833
|
});
|
|
840
834
|
|
|
841
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
842
|
-
var
|
|
843
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
835
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js
|
|
836
|
+
var require_toKey = __commonJS({
|
|
837
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js"(exports, module) {
|
|
844
838
|
"use strict";
|
|
845
|
-
var
|
|
846
|
-
var
|
|
847
|
-
|
|
839
|
+
var isSymbol = require_isSymbol();
|
|
840
|
+
var INFINITY = 1 / 0;
|
|
841
|
+
function toKey(value) {
|
|
842
|
+
if (typeof value == "string" || isSymbol(value)) {
|
|
843
|
+
return value;
|
|
844
|
+
}
|
|
845
|
+
var result = value + "";
|
|
846
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
847
|
+
}
|
|
848
|
+
module.exports = toKey;
|
|
848
849
|
}
|
|
849
850
|
});
|
|
850
851
|
|
|
851
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
852
|
-
var
|
|
853
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
852
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
|
|
853
|
+
var require_baseGet = __commonJS({
|
|
854
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports, module) {
|
|
854
855
|
"use strict";
|
|
855
|
-
var
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
856
|
+
var castPath = require_castPath();
|
|
857
|
+
var toKey = require_toKey();
|
|
858
|
+
function baseGet(object, path) {
|
|
859
|
+
path = castPath(path, object);
|
|
860
|
+
var index = 0, length = path.length;
|
|
861
|
+
while (object != null && index < length) {
|
|
862
|
+
object = object[toKey(path[index++])];
|
|
863
|
+
}
|
|
864
|
+
return index && index == length ? object : void 0;
|
|
860
865
|
}
|
|
861
|
-
module.exports =
|
|
866
|
+
module.exports = baseGet;
|
|
862
867
|
}
|
|
863
868
|
});
|
|
864
869
|
|
|
865
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
866
|
-
var
|
|
867
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
870
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
|
|
871
|
+
var require_get = __commonJS({
|
|
872
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports, module) {
|
|
868
873
|
"use strict";
|
|
869
|
-
var
|
|
870
|
-
function
|
|
871
|
-
var
|
|
872
|
-
return
|
|
874
|
+
var baseGet = require_baseGet();
|
|
875
|
+
function get2(object, path, defaultValue) {
|
|
876
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
877
|
+
return result === void 0 ? defaultValue : result;
|
|
873
878
|
}
|
|
874
|
-
module.exports =
|
|
879
|
+
module.exports = get2;
|
|
875
880
|
}
|
|
876
881
|
});
|
|
877
882
|
|
|
878
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
879
|
-
var
|
|
880
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
883
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js
|
|
884
|
+
var require_isString = __commonJS({
|
|
885
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"(exports, module) {
|
|
881
886
|
"use strict";
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
return array;
|
|
887
|
+
var baseGetTag = require_baseGetTag();
|
|
888
|
+
var isArray = require_isArray();
|
|
889
|
+
var isObjectLike = require_isObjectLike();
|
|
890
|
+
var stringTag = "[object String]";
|
|
891
|
+
function isString2(value) {
|
|
892
|
+
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
889
893
|
}
|
|
890
|
-
module.exports =
|
|
894
|
+
module.exports = isString2;
|
|
891
895
|
}
|
|
892
896
|
});
|
|
893
897
|
|
|
894
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
895
|
-
var
|
|
896
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
898
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js
|
|
899
|
+
var require_defineProperty = __commonJS({
|
|
900
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(exports, module) {
|
|
897
901
|
"use strict";
|
|
898
|
-
var
|
|
899
|
-
var
|
|
900
|
-
|
|
901
|
-
|
|
902
|
+
var getNative = require_getNative();
|
|
903
|
+
var defineProperty = function() {
|
|
904
|
+
try {
|
|
905
|
+
var func = getNative(Object, "defineProperty");
|
|
906
|
+
func({}, "", {});
|
|
907
|
+
return func;
|
|
908
|
+
} catch (e) {
|
|
902
909
|
}
|
|
903
|
-
return function(proto) {
|
|
904
|
-
if (!isObject(proto)) {
|
|
905
|
-
return {};
|
|
906
|
-
}
|
|
907
|
-
if (objectCreate) {
|
|
908
|
-
return objectCreate(proto);
|
|
909
|
-
}
|
|
910
|
-
object.prototype = proto;
|
|
911
|
-
var result = new object();
|
|
912
|
-
object.prototype = void 0;
|
|
913
|
-
return result;
|
|
914
|
-
};
|
|
915
910
|
}();
|
|
916
|
-
module.exports =
|
|
911
|
+
module.exports = defineProperty;
|
|
917
912
|
}
|
|
918
913
|
});
|
|
919
914
|
|
|
920
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
921
|
-
var
|
|
922
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
915
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js
|
|
916
|
+
var require_baseAssignValue = __commonJS({
|
|
917
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(exports, module) {
|
|
923
918
|
"use strict";
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
919
|
+
var defineProperty = require_defineProperty();
|
|
920
|
+
function baseAssignValue(object, key, value) {
|
|
921
|
+
if (key == "__proto__" && defineProperty) {
|
|
922
|
+
defineProperty(object, key, {
|
|
923
|
+
"configurable": true,
|
|
924
|
+
"enumerable": true,
|
|
925
|
+
"value": value,
|
|
926
|
+
"writable": true
|
|
927
|
+
});
|
|
928
|
+
} else {
|
|
929
|
+
object[key] = value;
|
|
930
|
+
}
|
|
928
931
|
}
|
|
929
|
-
module.exports =
|
|
932
|
+
module.exports = baseAssignValue;
|
|
930
933
|
}
|
|
931
934
|
});
|
|
932
935
|
|
|
933
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
934
|
-
var
|
|
935
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
936
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js
|
|
937
|
+
var require_arrayAggregator = __commonJS({
|
|
938
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js"(exports, module) {
|
|
936
939
|
"use strict";
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
941
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
942
|
+
while (++index < length) {
|
|
943
|
+
var value = array[index];
|
|
944
|
+
setter(accumulator, value, iteratee(value), array);
|
|
945
|
+
}
|
|
946
|
+
return accumulator;
|
|
947
|
+
}
|
|
948
|
+
module.exports = arrayAggregator;
|
|
940
949
|
}
|
|
941
950
|
});
|
|
942
951
|
|
|
943
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
944
|
-
var
|
|
945
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
952
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js
|
|
953
|
+
var require_createBaseFor = __commonJS({
|
|
954
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(exports, module) {
|
|
946
955
|
"use strict";
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
956
|
+
function createBaseFor(fromRight) {
|
|
957
|
+
return function(object, iteratee, keysFunc) {
|
|
958
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
959
|
+
while (length--) {
|
|
960
|
+
var key = props[fromRight ? length : ++index];
|
|
961
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
962
|
+
break;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
return object;
|
|
966
|
+
};
|
|
951
967
|
}
|
|
952
|
-
module.exports =
|
|
968
|
+
module.exports = createBaseFor;
|
|
953
969
|
}
|
|
954
970
|
});
|
|
955
971
|
|
|
956
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
957
|
-
var
|
|
958
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
972
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js
|
|
973
|
+
var require_baseFor = __commonJS({
|
|
974
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"(exports, module) {
|
|
959
975
|
"use strict";
|
|
960
|
-
var
|
|
961
|
-
var
|
|
962
|
-
|
|
963
|
-
function initCloneObject(object) {
|
|
964
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
965
|
-
}
|
|
966
|
-
module.exports = initCloneObject;
|
|
976
|
+
var createBaseFor = require_createBaseFor();
|
|
977
|
+
var baseFor = createBaseFor();
|
|
978
|
+
module.exports = baseFor;
|
|
967
979
|
}
|
|
968
980
|
});
|
|
969
981
|
|
|
970
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
971
|
-
var
|
|
972
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
982
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
|
|
983
|
+
var require_baseTimes = __commonJS({
|
|
984
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports, module) {
|
|
973
985
|
"use strict";
|
|
974
|
-
function
|
|
975
|
-
|
|
986
|
+
function baseTimes(n, iteratee) {
|
|
987
|
+
var index = -1, result = Array(n);
|
|
988
|
+
while (++index < n) {
|
|
989
|
+
result[index] = iteratee(index);
|
|
990
|
+
}
|
|
991
|
+
return result;
|
|
976
992
|
}
|
|
977
|
-
module.exports =
|
|
993
|
+
module.exports = baseTimes;
|
|
978
994
|
}
|
|
979
995
|
});
|
|
980
996
|
|
|
@@ -1010,56 +1026,9 @@ var require_isArguments = __commonJS({
|
|
|
1010
1026
|
}
|
|
1011
1027
|
});
|
|
1012
1028
|
|
|
1013
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1014
|
-
var
|
|
1015
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1016
|
-
"use strict";
|
|
1017
|
-
var isArray = Array.isArray;
|
|
1018
|
-
module.exports = isArray;
|
|
1019
|
-
}
|
|
1020
|
-
});
|
|
1021
|
-
|
|
1022
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
|
|
1023
|
-
var require_isLength = __commonJS({
|
|
1024
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports, module) {
|
|
1025
|
-
"use strict";
|
|
1026
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1027
|
-
function isLength(value) {
|
|
1028
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1029
|
-
}
|
|
1030
|
-
module.exports = isLength;
|
|
1031
|
-
}
|
|
1032
|
-
});
|
|
1033
|
-
|
|
1034
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
|
|
1035
|
-
var require_isArrayLike = __commonJS({
|
|
1036
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports, module) {
|
|
1037
|
-
"use strict";
|
|
1038
|
-
var isFunction = require_isFunction();
|
|
1039
|
-
var isLength = require_isLength();
|
|
1040
|
-
function isArrayLike(value) {
|
|
1041
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
1042
|
-
}
|
|
1043
|
-
module.exports = isArrayLike;
|
|
1044
|
-
}
|
|
1045
|
-
});
|
|
1046
|
-
|
|
1047
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js
|
|
1048
|
-
var require_isArrayLikeObject = __commonJS({
|
|
1049
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(exports, module) {
|
|
1050
|
-
"use strict";
|
|
1051
|
-
var isArrayLike = require_isArrayLike();
|
|
1052
|
-
var isObjectLike = require_isObjectLike();
|
|
1053
|
-
function isArrayLikeObject(value) {
|
|
1054
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
1055
|
-
}
|
|
1056
|
-
module.exports = isArrayLikeObject;
|
|
1057
|
-
}
|
|
1058
|
-
});
|
|
1059
|
-
|
|
1060
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
|
|
1061
|
-
var require_stubFalse = __commonJS({
|
|
1062
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports, module) {
|
|
1029
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
|
|
1030
|
+
var require_stubFalse = __commonJS({
|
|
1031
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports, module) {
|
|
1063
1032
|
"use strict";
|
|
1064
1033
|
function stubFalse() {
|
|
1065
1034
|
return false;
|
|
@@ -1084,31 +1053,30 @@ var require_isBuffer = __commonJS({
|
|
|
1084
1053
|
}
|
|
1085
1054
|
});
|
|
1086
1055
|
|
|
1087
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1088
|
-
var
|
|
1089
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1056
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js
|
|
1057
|
+
var require_isIndex = __commonJS({
|
|
1058
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(exports, module) {
|
|
1090
1059
|
"use strict";
|
|
1091
|
-
var
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
1060
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1061
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1062
|
+
function isIndex(value, length) {
|
|
1063
|
+
var type = typeof value;
|
|
1064
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1065
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
1066
|
+
}
|
|
1067
|
+
module.exports = isIndex;
|
|
1068
|
+
}
|
|
1069
|
+
});
|
|
1070
|
+
|
|
1071
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
|
|
1072
|
+
var require_isLength = __commonJS({
|
|
1073
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports, module) {
|
|
1074
|
+
"use strict";
|
|
1075
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1076
|
+
function isLength(value) {
|
|
1077
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1110
1078
|
}
|
|
1111
|
-
module.exports =
|
|
1079
|
+
module.exports = isLength;
|
|
1112
1080
|
}
|
|
1113
1081
|
});
|
|
1114
1082
|
|
|
@@ -1202,99 +1170,6 @@ var require_isTypedArray = __commonJS({
|
|
|
1202
1170
|
}
|
|
1203
1171
|
});
|
|
1204
1172
|
|
|
1205
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js
|
|
1206
|
-
var require_safeGet = __commonJS({
|
|
1207
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(exports, module) {
|
|
1208
|
-
"use strict";
|
|
1209
|
-
function safeGet(object, key) {
|
|
1210
|
-
if (key === "constructor" && typeof object[key] === "function") {
|
|
1211
|
-
return;
|
|
1212
|
-
}
|
|
1213
|
-
if (key == "__proto__") {
|
|
1214
|
-
return;
|
|
1215
|
-
}
|
|
1216
|
-
return object[key];
|
|
1217
|
-
}
|
|
1218
|
-
module.exports = safeGet;
|
|
1219
|
-
}
|
|
1220
|
-
});
|
|
1221
|
-
|
|
1222
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
|
|
1223
|
-
var require_assignValue = __commonJS({
|
|
1224
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports, module) {
|
|
1225
|
-
"use strict";
|
|
1226
|
-
var baseAssignValue = require_baseAssignValue();
|
|
1227
|
-
var eq = require_eq();
|
|
1228
|
-
var objectProto = Object.prototype;
|
|
1229
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1230
|
-
function assignValue(object, key, value) {
|
|
1231
|
-
var objValue = object[key];
|
|
1232
|
-
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
1233
|
-
baseAssignValue(object, key, value);
|
|
1234
|
-
}
|
|
1235
|
-
}
|
|
1236
|
-
module.exports = assignValue;
|
|
1237
|
-
}
|
|
1238
|
-
});
|
|
1239
|
-
|
|
1240
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js
|
|
1241
|
-
var require_copyObject = __commonJS({
|
|
1242
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(exports, module) {
|
|
1243
|
-
"use strict";
|
|
1244
|
-
var assignValue = require_assignValue();
|
|
1245
|
-
var baseAssignValue = require_baseAssignValue();
|
|
1246
|
-
function copyObject(source, props, object, customizer) {
|
|
1247
|
-
var isNew = !object;
|
|
1248
|
-
object || (object = {});
|
|
1249
|
-
var index = -1, length = props.length;
|
|
1250
|
-
while (++index < length) {
|
|
1251
|
-
var key = props[index];
|
|
1252
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
1253
|
-
if (newValue === void 0) {
|
|
1254
|
-
newValue = source[key];
|
|
1255
|
-
}
|
|
1256
|
-
if (isNew) {
|
|
1257
|
-
baseAssignValue(object, key, newValue);
|
|
1258
|
-
} else {
|
|
1259
|
-
assignValue(object, key, newValue);
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
return object;
|
|
1263
|
-
}
|
|
1264
|
-
module.exports = copyObject;
|
|
1265
|
-
}
|
|
1266
|
-
});
|
|
1267
|
-
|
|
1268
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
|
|
1269
|
-
var require_baseTimes = __commonJS({
|
|
1270
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports, module) {
|
|
1271
|
-
"use strict";
|
|
1272
|
-
function baseTimes(n, iteratee) {
|
|
1273
|
-
var index = -1, result = Array(n);
|
|
1274
|
-
while (++index < n) {
|
|
1275
|
-
result[index] = iteratee(index);
|
|
1276
|
-
}
|
|
1277
|
-
return result;
|
|
1278
|
-
}
|
|
1279
|
-
module.exports = baseTimes;
|
|
1280
|
-
}
|
|
1281
|
-
});
|
|
1282
|
-
|
|
1283
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js
|
|
1284
|
-
var require_isIndex = __commonJS({
|
|
1285
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js"(exports, module) {
|
|
1286
|
-
"use strict";
|
|
1287
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1288
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1289
|
-
function isIndex(value, length) {
|
|
1290
|
-
var type = typeof value;
|
|
1291
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1292
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
1293
|
-
}
|
|
1294
|
-
module.exports = isIndex;
|
|
1295
|
-
}
|
|
1296
|
-
});
|
|
1297
|
-
|
|
1298
1173
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
|
|
1299
1174
|
var require_arrayLikeKeys = __commonJS({
|
|
1300
1175
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
|
|
@@ -1314,640 +1189,39 @@ var require_arrayLikeKeys = __commonJS({
|
|
|
1314
1189
|
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1315
1190
|
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1316
1191
|
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
1317
|
-
isIndex(key, length)))) {
|
|
1318
|
-
result.push(key);
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
return result;
|
|
1322
|
-
}
|
|
1323
|
-
module.exports = arrayLikeKeys;
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
|
|
1327
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
|
|
1328
|
-
var require_nativeKeysIn = __commonJS({
|
|
1329
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports, module) {
|
|
1330
|
-
"use strict";
|
|
1331
|
-
function nativeKeysIn(object) {
|
|
1332
|
-
var result = [];
|
|
1333
|
-
if (object != null) {
|
|
1334
|
-
for (var key in Object(object)) {
|
|
1335
|
-
result.push(key);
|
|
1336
|
-
}
|
|
1337
|
-
}
|
|
1338
|
-
return result;
|
|
1339
|
-
}
|
|
1340
|
-
module.exports = nativeKeysIn;
|
|
1341
|
-
}
|
|
1342
|
-
});
|
|
1343
|
-
|
|
1344
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
|
|
1345
|
-
var require_baseKeysIn = __commonJS({
|
|
1346
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports, module) {
|
|
1347
|
-
"use strict";
|
|
1348
|
-
var isObject = require_isObject();
|
|
1349
|
-
var isPrototype = require_isPrototype();
|
|
1350
|
-
var nativeKeysIn = require_nativeKeysIn();
|
|
1351
|
-
var objectProto = Object.prototype;
|
|
1352
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1353
|
-
function baseKeysIn(object) {
|
|
1354
|
-
if (!isObject(object)) {
|
|
1355
|
-
return nativeKeysIn(object);
|
|
1356
|
-
}
|
|
1357
|
-
var isProto = isPrototype(object), result = [];
|
|
1358
|
-
for (var key in object) {
|
|
1359
|
-
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
1360
|
-
result.push(key);
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
return result;
|
|
1364
|
-
}
|
|
1365
|
-
module.exports = baseKeysIn;
|
|
1366
|
-
}
|
|
1367
|
-
});
|
|
1368
|
-
|
|
1369
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
|
|
1370
|
-
var require_keysIn = __commonJS({
|
|
1371
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports, module) {
|
|
1372
|
-
"use strict";
|
|
1373
|
-
var arrayLikeKeys = require_arrayLikeKeys();
|
|
1374
|
-
var baseKeysIn = require_baseKeysIn();
|
|
1375
|
-
var isArrayLike = require_isArrayLike();
|
|
1376
|
-
function keysIn(object) {
|
|
1377
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1378
|
-
}
|
|
1379
|
-
module.exports = keysIn;
|
|
1380
|
-
}
|
|
1381
|
-
});
|
|
1382
|
-
|
|
1383
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
|
|
1384
|
-
var require_toPlainObject = __commonJS({
|
|
1385
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports, module) {
|
|
1386
|
-
"use strict";
|
|
1387
|
-
var copyObject = require_copyObject();
|
|
1388
|
-
var keysIn = require_keysIn();
|
|
1389
|
-
function toPlainObject(value) {
|
|
1390
|
-
return copyObject(value, keysIn(value));
|
|
1391
|
-
}
|
|
1392
|
-
module.exports = toPlainObject;
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
|
|
1396
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
|
|
1397
|
-
var require_baseMergeDeep = __commonJS({
|
|
1398
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(exports, module) {
|
|
1399
|
-
"use strict";
|
|
1400
|
-
var assignMergeValue = require_assignMergeValue();
|
|
1401
|
-
var cloneBuffer = require_cloneBuffer();
|
|
1402
|
-
var cloneTypedArray = require_cloneTypedArray();
|
|
1403
|
-
var copyArray = require_copyArray();
|
|
1404
|
-
var initCloneObject = require_initCloneObject();
|
|
1405
|
-
var isArguments = require_isArguments();
|
|
1406
|
-
var isArray = require_isArray();
|
|
1407
|
-
var isArrayLikeObject = require_isArrayLikeObject();
|
|
1408
|
-
var isBuffer = require_isBuffer();
|
|
1409
|
-
var isFunction = require_isFunction();
|
|
1410
|
-
var isObject = require_isObject();
|
|
1411
|
-
var isPlainObject = require_isPlainObject();
|
|
1412
|
-
var isTypedArray = require_isTypedArray();
|
|
1413
|
-
var safeGet = require_safeGet();
|
|
1414
|
-
var toPlainObject = require_toPlainObject();
|
|
1415
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
1416
|
-
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
1417
|
-
if (stacked) {
|
|
1418
|
-
assignMergeValue(object, key, stacked);
|
|
1419
|
-
return;
|
|
1420
|
-
}
|
|
1421
|
-
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
1422
|
-
var isCommon = newValue === void 0;
|
|
1423
|
-
if (isCommon) {
|
|
1424
|
-
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
1425
|
-
newValue = srcValue;
|
|
1426
|
-
if (isArr || isBuff || isTyped) {
|
|
1427
|
-
if (isArray(objValue)) {
|
|
1428
|
-
newValue = objValue;
|
|
1429
|
-
} else if (isArrayLikeObject(objValue)) {
|
|
1430
|
-
newValue = copyArray(objValue);
|
|
1431
|
-
} else if (isBuff) {
|
|
1432
|
-
isCommon = false;
|
|
1433
|
-
newValue = cloneBuffer(srcValue, true);
|
|
1434
|
-
} else if (isTyped) {
|
|
1435
|
-
isCommon = false;
|
|
1436
|
-
newValue = cloneTypedArray(srcValue, true);
|
|
1437
|
-
} else {
|
|
1438
|
-
newValue = [];
|
|
1439
|
-
}
|
|
1440
|
-
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
1441
|
-
newValue = objValue;
|
|
1442
|
-
if (isArguments(objValue)) {
|
|
1443
|
-
newValue = toPlainObject(objValue);
|
|
1444
|
-
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
1445
|
-
newValue = initCloneObject(srcValue);
|
|
1446
|
-
}
|
|
1447
|
-
} else {
|
|
1448
|
-
isCommon = false;
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
if (isCommon) {
|
|
1452
|
-
stack.set(srcValue, newValue);
|
|
1453
|
-
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
1454
|
-
stack["delete"](srcValue);
|
|
1455
|
-
}
|
|
1456
|
-
assignMergeValue(object, key, newValue);
|
|
1457
|
-
}
|
|
1458
|
-
module.exports = baseMergeDeep;
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
|
|
1462
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js
|
|
1463
|
-
var require_baseMerge = __commonJS({
|
|
1464
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(exports, module) {
|
|
1465
|
-
"use strict";
|
|
1466
|
-
var Stack = require_Stack();
|
|
1467
|
-
var assignMergeValue = require_assignMergeValue();
|
|
1468
|
-
var baseFor = require_baseFor();
|
|
1469
|
-
var baseMergeDeep = require_baseMergeDeep();
|
|
1470
|
-
var isObject = require_isObject();
|
|
1471
|
-
var keysIn = require_keysIn();
|
|
1472
|
-
var safeGet = require_safeGet();
|
|
1473
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
1474
|
-
if (object === source) {
|
|
1475
|
-
return;
|
|
1476
|
-
}
|
|
1477
|
-
baseFor(source, function(srcValue, key) {
|
|
1478
|
-
stack || (stack = new Stack());
|
|
1479
|
-
if (isObject(srcValue)) {
|
|
1480
|
-
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
1481
|
-
} else {
|
|
1482
|
-
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
1483
|
-
if (newValue === void 0) {
|
|
1484
|
-
newValue = srcValue;
|
|
1485
|
-
}
|
|
1486
|
-
assignMergeValue(object, key, newValue);
|
|
1487
|
-
}
|
|
1488
|
-
}, keysIn);
|
|
1489
|
-
}
|
|
1490
|
-
module.exports = baseMerge;
|
|
1491
|
-
}
|
|
1492
|
-
});
|
|
1493
|
-
|
|
1494
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
|
|
1495
|
-
var require_identity = __commonJS({
|
|
1496
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports, module) {
|
|
1497
|
-
"use strict";
|
|
1498
|
-
function identity(value) {
|
|
1499
|
-
return value;
|
|
1500
|
-
}
|
|
1501
|
-
module.exports = identity;
|
|
1502
|
-
}
|
|
1503
|
-
});
|
|
1504
|
-
|
|
1505
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js
|
|
1506
|
-
var require_apply = __commonJS({
|
|
1507
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(exports, module) {
|
|
1508
|
-
"use strict";
|
|
1509
|
-
function apply(func, thisArg, args) {
|
|
1510
|
-
switch (args.length) {
|
|
1511
|
-
case 0:
|
|
1512
|
-
return func.call(thisArg);
|
|
1513
|
-
case 1:
|
|
1514
|
-
return func.call(thisArg, args[0]);
|
|
1515
|
-
case 2:
|
|
1516
|
-
return func.call(thisArg, args[0], args[1]);
|
|
1517
|
-
case 3:
|
|
1518
|
-
return func.call(thisArg, args[0], args[1], args[2]);
|
|
1519
|
-
}
|
|
1520
|
-
return func.apply(thisArg, args);
|
|
1521
|
-
}
|
|
1522
|
-
module.exports = apply;
|
|
1523
|
-
}
|
|
1524
|
-
});
|
|
1525
|
-
|
|
1526
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js
|
|
1527
|
-
var require_overRest = __commonJS({
|
|
1528
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports, module) {
|
|
1529
|
-
"use strict";
|
|
1530
|
-
var apply = require_apply();
|
|
1531
|
-
var nativeMax = Math.max;
|
|
1532
|
-
function overRest(func, start, transform) {
|
|
1533
|
-
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
1534
|
-
return function() {
|
|
1535
|
-
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
1536
|
-
while (++index < length) {
|
|
1537
|
-
array[index] = args[start + index];
|
|
1538
|
-
}
|
|
1539
|
-
index = -1;
|
|
1540
|
-
var otherArgs = Array(start + 1);
|
|
1541
|
-
while (++index < start) {
|
|
1542
|
-
otherArgs[index] = args[index];
|
|
1543
|
-
}
|
|
1544
|
-
otherArgs[start] = transform(array);
|
|
1545
|
-
return apply(func, this, otherArgs);
|
|
1546
|
-
};
|
|
1547
|
-
}
|
|
1548
|
-
module.exports = overRest;
|
|
1549
|
-
}
|
|
1550
|
-
});
|
|
1551
|
-
|
|
1552
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js
|
|
1553
|
-
var require_constant = __commonJS({
|
|
1554
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(exports, module) {
|
|
1555
|
-
"use strict";
|
|
1556
|
-
function constant(value) {
|
|
1557
|
-
return function() {
|
|
1558
|
-
return value;
|
|
1559
|
-
};
|
|
1560
|
-
}
|
|
1561
|
-
module.exports = constant;
|
|
1562
|
-
}
|
|
1563
|
-
});
|
|
1564
|
-
|
|
1565
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js
|
|
1566
|
-
var require_baseSetToString = __commonJS({
|
|
1567
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(exports, module) {
|
|
1568
|
-
"use strict";
|
|
1569
|
-
var constant = require_constant();
|
|
1570
|
-
var defineProperty = require_defineProperty();
|
|
1571
|
-
var identity = require_identity();
|
|
1572
|
-
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
1573
|
-
return defineProperty(func, "toString", {
|
|
1574
|
-
"configurable": true,
|
|
1575
|
-
"enumerable": false,
|
|
1576
|
-
"value": constant(string),
|
|
1577
|
-
"writable": true
|
|
1578
|
-
});
|
|
1579
|
-
};
|
|
1580
|
-
module.exports = baseSetToString;
|
|
1581
|
-
}
|
|
1582
|
-
});
|
|
1583
|
-
|
|
1584
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js
|
|
1585
|
-
var require_shortOut = __commonJS({
|
|
1586
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(exports, module) {
|
|
1587
|
-
"use strict";
|
|
1588
|
-
var HOT_COUNT = 800;
|
|
1589
|
-
var HOT_SPAN = 16;
|
|
1590
|
-
var nativeNow = Date.now;
|
|
1591
|
-
function shortOut(func) {
|
|
1592
|
-
var count = 0, lastCalled = 0;
|
|
1593
|
-
return function() {
|
|
1594
|
-
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
1595
|
-
lastCalled = stamp;
|
|
1596
|
-
if (remaining > 0) {
|
|
1597
|
-
if (++count >= HOT_COUNT) {
|
|
1598
|
-
return arguments[0];
|
|
1599
|
-
}
|
|
1600
|
-
} else {
|
|
1601
|
-
count = 0;
|
|
1602
|
-
}
|
|
1603
|
-
return func.apply(void 0, arguments);
|
|
1604
|
-
};
|
|
1605
|
-
}
|
|
1606
|
-
module.exports = shortOut;
|
|
1607
|
-
}
|
|
1608
|
-
});
|
|
1609
|
-
|
|
1610
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js
|
|
1611
|
-
var require_setToString = __commonJS({
|
|
1612
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(exports, module) {
|
|
1613
|
-
"use strict";
|
|
1614
|
-
var baseSetToString = require_baseSetToString();
|
|
1615
|
-
var shortOut = require_shortOut();
|
|
1616
|
-
var setToString = shortOut(baseSetToString);
|
|
1617
|
-
module.exports = setToString;
|
|
1618
|
-
}
|
|
1619
|
-
});
|
|
1620
|
-
|
|
1621
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js
|
|
1622
|
-
var require_baseRest = __commonJS({
|
|
1623
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(exports, module) {
|
|
1624
|
-
"use strict";
|
|
1625
|
-
var identity = require_identity();
|
|
1626
|
-
var overRest = require_overRest();
|
|
1627
|
-
var setToString = require_setToString();
|
|
1628
|
-
function baseRest(func, start) {
|
|
1629
|
-
return setToString(overRest(func, start, identity), func + "");
|
|
1630
|
-
}
|
|
1631
|
-
module.exports = baseRest;
|
|
1632
|
-
}
|
|
1633
|
-
});
|
|
1634
|
-
|
|
1635
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js
|
|
1636
|
-
var require_isIterateeCall = __commonJS({
|
|
1637
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(exports, module) {
|
|
1638
|
-
"use strict";
|
|
1639
|
-
var eq = require_eq();
|
|
1640
|
-
var isArrayLike = require_isArrayLike();
|
|
1641
|
-
var isIndex = require_isIndex();
|
|
1642
|
-
var isObject = require_isObject();
|
|
1643
|
-
function isIterateeCall(value, index, object) {
|
|
1644
|
-
if (!isObject(object)) {
|
|
1645
|
-
return false;
|
|
1646
|
-
}
|
|
1647
|
-
var type = typeof index;
|
|
1648
|
-
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
1649
|
-
return eq(object[index], value);
|
|
1650
|
-
}
|
|
1651
|
-
return false;
|
|
1652
|
-
}
|
|
1653
|
-
module.exports = isIterateeCall;
|
|
1654
|
-
}
|
|
1655
|
-
});
|
|
1656
|
-
|
|
1657
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js
|
|
1658
|
-
var require_createAssigner = __commonJS({
|
|
1659
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(exports, module) {
|
|
1660
|
-
"use strict";
|
|
1661
|
-
var baseRest = require_baseRest();
|
|
1662
|
-
var isIterateeCall = require_isIterateeCall();
|
|
1663
|
-
function createAssigner(assigner) {
|
|
1664
|
-
return baseRest(function(object, sources) {
|
|
1665
|
-
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
1666
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
1667
|
-
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
1668
|
-
customizer = length < 3 ? void 0 : customizer;
|
|
1669
|
-
length = 1;
|
|
1670
|
-
}
|
|
1671
|
-
object = Object(object);
|
|
1672
|
-
while (++index < length) {
|
|
1673
|
-
var source = sources[index];
|
|
1674
|
-
if (source) {
|
|
1675
|
-
assigner(object, source, index, customizer);
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
return object;
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
module.exports = createAssigner;
|
|
1682
|
-
}
|
|
1683
|
-
});
|
|
1684
|
-
|
|
1685
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
|
|
1686
|
-
var require_merge = __commonJS({
|
|
1687
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports, module) {
|
|
1688
|
-
"use strict";
|
|
1689
|
-
var baseMerge = require_baseMerge();
|
|
1690
|
-
var createAssigner = require_createAssigner();
|
|
1691
|
-
var merge3 = createAssigner(function(object, source, srcIndex) {
|
|
1692
|
-
baseMerge(object, source, srcIndex);
|
|
1693
|
-
});
|
|
1694
|
-
module.exports = merge3;
|
|
1695
|
-
}
|
|
1696
|
-
});
|
|
1697
|
-
|
|
1698
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js
|
|
1699
|
-
var require_isSymbol = __commonJS({
|
|
1700
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js"(exports, module) {
|
|
1701
|
-
"use strict";
|
|
1702
|
-
var baseGetTag = require_baseGetTag();
|
|
1703
|
-
var isObjectLike = require_isObjectLike();
|
|
1704
|
-
var symbolTag = "[object Symbol]";
|
|
1705
|
-
function isSymbol(value) {
|
|
1706
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
|
1707
|
-
}
|
|
1708
|
-
module.exports = isSymbol;
|
|
1709
|
-
}
|
|
1710
|
-
});
|
|
1711
|
-
|
|
1712
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js
|
|
1713
|
-
var require_isKey = __commonJS({
|
|
1714
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js"(exports, module) {
|
|
1715
|
-
"use strict";
|
|
1716
|
-
var isArray = require_isArray();
|
|
1717
|
-
var isSymbol = require_isSymbol();
|
|
1718
|
-
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
1719
|
-
var reIsPlainProp = /^\w*$/;
|
|
1720
|
-
function isKey(value, object) {
|
|
1721
|
-
if (isArray(value)) {
|
|
1722
|
-
return false;
|
|
1723
|
-
}
|
|
1724
|
-
var type = typeof value;
|
|
1725
|
-
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
|
|
1726
|
-
return true;
|
|
1727
|
-
}
|
|
1728
|
-
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1729
|
-
}
|
|
1730
|
-
module.exports = isKey;
|
|
1731
|
-
}
|
|
1732
|
-
});
|
|
1733
|
-
|
|
1734
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js
|
|
1735
|
-
var require_memoize = __commonJS({
|
|
1736
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js"(exports, module) {
|
|
1737
|
-
"use strict";
|
|
1738
|
-
var MapCache = require_MapCache();
|
|
1739
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1740
|
-
function memoize(func, resolver) {
|
|
1741
|
-
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
1742
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1743
|
-
}
|
|
1744
|
-
var memoized = function() {
|
|
1745
|
-
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1746
|
-
if (cache.has(key)) {
|
|
1747
|
-
return cache.get(key);
|
|
1748
|
-
}
|
|
1749
|
-
var result = func.apply(this, args);
|
|
1750
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
1751
|
-
return result;
|
|
1752
|
-
};
|
|
1753
|
-
memoized.cache = new (memoize.Cache || MapCache)();
|
|
1754
|
-
return memoized;
|
|
1755
|
-
}
|
|
1756
|
-
memoize.Cache = MapCache;
|
|
1757
|
-
module.exports = memoize;
|
|
1758
|
-
}
|
|
1759
|
-
});
|
|
1760
|
-
|
|
1761
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js
|
|
1762
|
-
var require_memoizeCapped = __commonJS({
|
|
1763
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js"(exports, module) {
|
|
1764
|
-
"use strict";
|
|
1765
|
-
var memoize = require_memoize();
|
|
1766
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
1767
|
-
function memoizeCapped(func) {
|
|
1768
|
-
var result = memoize(func, function(key) {
|
|
1769
|
-
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1770
|
-
cache.clear();
|
|
1771
|
-
}
|
|
1772
|
-
return key;
|
|
1773
|
-
});
|
|
1774
|
-
var cache = result.cache;
|
|
1775
|
-
return result;
|
|
1776
|
-
}
|
|
1777
|
-
module.exports = memoizeCapped;
|
|
1778
|
-
}
|
|
1779
|
-
});
|
|
1780
|
-
|
|
1781
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js
|
|
1782
|
-
var require_stringToPath = __commonJS({
|
|
1783
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js"(exports, module) {
|
|
1784
|
-
"use strict";
|
|
1785
|
-
var memoizeCapped = require_memoizeCapped();
|
|
1786
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1787
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
1788
|
-
var stringToPath = memoizeCapped(function(string) {
|
|
1789
|
-
var result = [];
|
|
1790
|
-
if (string.charCodeAt(0) === 46) {
|
|
1791
|
-
result.push("");
|
|
1792
|
-
}
|
|
1793
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1794
|
-
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
1795
|
-
});
|
|
1796
|
-
return result;
|
|
1797
|
-
});
|
|
1798
|
-
module.exports = stringToPath;
|
|
1799
|
-
}
|
|
1800
|
-
});
|
|
1801
|
-
|
|
1802
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js
|
|
1803
|
-
var require_arrayMap = __commonJS({
|
|
1804
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"(exports, module) {
|
|
1805
|
-
"use strict";
|
|
1806
|
-
function arrayMap(array, iteratee) {
|
|
1807
|
-
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1808
|
-
while (++index < length) {
|
|
1809
|
-
result[index] = iteratee(array[index], index, array);
|
|
1810
|
-
}
|
|
1811
|
-
return result;
|
|
1812
|
-
}
|
|
1813
|
-
module.exports = arrayMap;
|
|
1814
|
-
}
|
|
1815
|
-
});
|
|
1816
|
-
|
|
1817
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js
|
|
1818
|
-
var require_baseToString = __commonJS({
|
|
1819
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js"(exports, module) {
|
|
1820
|
-
"use strict";
|
|
1821
|
-
var Symbol2 = require_Symbol();
|
|
1822
|
-
var arrayMap = require_arrayMap();
|
|
1823
|
-
var isArray = require_isArray();
|
|
1824
|
-
var isSymbol = require_isSymbol();
|
|
1825
|
-
var INFINITY = 1 / 0;
|
|
1826
|
-
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
1827
|
-
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
1828
|
-
function baseToString(value) {
|
|
1829
|
-
if (typeof value == "string") {
|
|
1830
|
-
return value;
|
|
1831
|
-
}
|
|
1832
|
-
if (isArray(value)) {
|
|
1833
|
-
return arrayMap(value, baseToString) + "";
|
|
1834
|
-
}
|
|
1835
|
-
if (isSymbol(value)) {
|
|
1836
|
-
return symbolToString ? symbolToString.call(value) : "";
|
|
1837
|
-
}
|
|
1838
|
-
var result = value + "";
|
|
1839
|
-
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1840
|
-
}
|
|
1841
|
-
module.exports = baseToString;
|
|
1842
|
-
}
|
|
1843
|
-
});
|
|
1844
|
-
|
|
1845
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js
|
|
1846
|
-
var require_toString = __commonJS({
|
|
1847
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js"(exports, module) {
|
|
1848
|
-
"use strict";
|
|
1849
|
-
var baseToString = require_baseToString();
|
|
1850
|
-
function toString(value) {
|
|
1851
|
-
return value == null ? "" : baseToString(value);
|
|
1852
|
-
}
|
|
1853
|
-
module.exports = toString;
|
|
1854
|
-
}
|
|
1855
|
-
});
|
|
1856
|
-
|
|
1857
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js
|
|
1858
|
-
var require_castPath = __commonJS({
|
|
1859
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js"(exports, module) {
|
|
1860
|
-
"use strict";
|
|
1861
|
-
var isArray = require_isArray();
|
|
1862
|
-
var isKey = require_isKey();
|
|
1863
|
-
var stringToPath = require_stringToPath();
|
|
1864
|
-
var toString = require_toString();
|
|
1865
|
-
function castPath(value, object) {
|
|
1866
|
-
if (isArray(value)) {
|
|
1867
|
-
return value;
|
|
1868
|
-
}
|
|
1869
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
1870
|
-
}
|
|
1871
|
-
module.exports = castPath;
|
|
1872
|
-
}
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js
|
|
1876
|
-
var require_toKey = __commonJS({
|
|
1877
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js"(exports, module) {
|
|
1878
|
-
"use strict";
|
|
1879
|
-
var isSymbol = require_isSymbol();
|
|
1880
|
-
var INFINITY = 1 / 0;
|
|
1881
|
-
function toKey(value) {
|
|
1882
|
-
if (typeof value == "string" || isSymbol(value)) {
|
|
1883
|
-
return value;
|
|
1884
|
-
}
|
|
1885
|
-
var result = value + "";
|
|
1886
|
-
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1887
|
-
}
|
|
1888
|
-
module.exports = toKey;
|
|
1889
|
-
}
|
|
1890
|
-
});
|
|
1891
|
-
|
|
1892
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
|
|
1893
|
-
var require_baseGet = __commonJS({
|
|
1894
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports, module) {
|
|
1895
|
-
"use strict";
|
|
1896
|
-
var castPath = require_castPath();
|
|
1897
|
-
var toKey = require_toKey();
|
|
1898
|
-
function baseGet(object, path) {
|
|
1899
|
-
path = castPath(path, object);
|
|
1900
|
-
var index = 0, length = path.length;
|
|
1901
|
-
while (object != null && index < length) {
|
|
1902
|
-
object = object[toKey(path[index++])];
|
|
1192
|
+
isIndex(key, length)))) {
|
|
1193
|
+
result.push(key);
|
|
1194
|
+
}
|
|
1903
1195
|
}
|
|
1904
|
-
return
|
|
1905
|
-
}
|
|
1906
|
-
module.exports = baseGet;
|
|
1907
|
-
}
|
|
1908
|
-
});
|
|
1909
|
-
|
|
1910
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
|
|
1911
|
-
var require_get = __commonJS({
|
|
1912
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports, module) {
|
|
1913
|
-
"use strict";
|
|
1914
|
-
var baseGet = require_baseGet();
|
|
1915
|
-
function get3(object, path, defaultValue) {
|
|
1916
|
-
var result = object == null ? void 0 : baseGet(object, path);
|
|
1917
|
-
return result === void 0 ? defaultValue : result;
|
|
1196
|
+
return result;
|
|
1918
1197
|
}
|
|
1919
|
-
module.exports =
|
|
1198
|
+
module.exports = arrayLikeKeys;
|
|
1920
1199
|
}
|
|
1921
1200
|
});
|
|
1922
1201
|
|
|
1923
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1924
|
-
var
|
|
1925
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1202
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
|
|
1203
|
+
var require_isPrototype = __commonJS({
|
|
1204
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports, module) {
|
|
1926
1205
|
"use strict";
|
|
1927
|
-
var
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
function isString2(value) {
|
|
1932
|
-
return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
|
|
1206
|
+
var objectProto = Object.prototype;
|
|
1207
|
+
function isPrototype(value) {
|
|
1208
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
1209
|
+
return value === proto;
|
|
1933
1210
|
}
|
|
1934
|
-
module.exports =
|
|
1211
|
+
module.exports = isPrototype;
|
|
1935
1212
|
}
|
|
1936
1213
|
});
|
|
1937
1214
|
|
|
1938
|
-
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1939
|
-
var
|
|
1940
|
-
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/
|
|
1215
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
|
|
1216
|
+
var require_overArg = __commonJS({
|
|
1217
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports, module) {
|
|
1941
1218
|
"use strict";
|
|
1942
|
-
function
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
setter(accumulator, value, iteratee(value), array);
|
|
1947
|
-
}
|
|
1948
|
-
return accumulator;
|
|
1219
|
+
function overArg(func, transform) {
|
|
1220
|
+
return function(arg) {
|
|
1221
|
+
return func(transform(arg));
|
|
1222
|
+
};
|
|
1949
1223
|
}
|
|
1950
|
-
module.exports =
|
|
1224
|
+
module.exports = overArg;
|
|
1951
1225
|
}
|
|
1952
1226
|
});
|
|
1953
1227
|
|
|
@@ -1985,6 +1259,19 @@ var require_baseKeys = __commonJS({
|
|
|
1985
1259
|
}
|
|
1986
1260
|
});
|
|
1987
1261
|
|
|
1262
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
|
|
1263
|
+
var require_isArrayLike = __commonJS({
|
|
1264
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports, module) {
|
|
1265
|
+
"use strict";
|
|
1266
|
+
var isFunction = require_isFunction();
|
|
1267
|
+
var isLength = require_isLength();
|
|
1268
|
+
function isArrayLike(value) {
|
|
1269
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1270
|
+
}
|
|
1271
|
+
module.exports = isArrayLike;
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
|
|
1988
1275
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js
|
|
1989
1276
|
var require_keys = __commonJS({
|
|
1990
1277
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"(exports, module) {
|
|
@@ -2064,6 +1351,104 @@ var require_baseAggregator = __commonJS({
|
|
|
2064
1351
|
}
|
|
2065
1352
|
});
|
|
2066
1353
|
|
|
1354
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
|
|
1355
|
+
var require_stackClear = __commonJS({
|
|
1356
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) {
|
|
1357
|
+
"use strict";
|
|
1358
|
+
var ListCache = require_ListCache();
|
|
1359
|
+
function stackClear() {
|
|
1360
|
+
this.__data__ = new ListCache();
|
|
1361
|
+
this.size = 0;
|
|
1362
|
+
}
|
|
1363
|
+
module.exports = stackClear;
|
|
1364
|
+
}
|
|
1365
|
+
});
|
|
1366
|
+
|
|
1367
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
|
|
1368
|
+
var require_stackDelete = __commonJS({
|
|
1369
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) {
|
|
1370
|
+
"use strict";
|
|
1371
|
+
function stackDelete(key) {
|
|
1372
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1373
|
+
this.size = data.size;
|
|
1374
|
+
return result;
|
|
1375
|
+
}
|
|
1376
|
+
module.exports = stackDelete;
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
|
|
1380
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
|
|
1381
|
+
var require_stackGet = __commonJS({
|
|
1382
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) {
|
|
1383
|
+
"use strict";
|
|
1384
|
+
function stackGet(key) {
|
|
1385
|
+
return this.__data__.get(key);
|
|
1386
|
+
}
|
|
1387
|
+
module.exports = stackGet;
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
|
|
1391
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
|
|
1392
|
+
var require_stackHas = __commonJS({
|
|
1393
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) {
|
|
1394
|
+
"use strict";
|
|
1395
|
+
function stackHas(key) {
|
|
1396
|
+
return this.__data__.has(key);
|
|
1397
|
+
}
|
|
1398
|
+
module.exports = stackHas;
|
|
1399
|
+
}
|
|
1400
|
+
});
|
|
1401
|
+
|
|
1402
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
|
|
1403
|
+
var require_stackSet = __commonJS({
|
|
1404
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports, module) {
|
|
1405
|
+
"use strict";
|
|
1406
|
+
var ListCache = require_ListCache();
|
|
1407
|
+
var Map = require_Map();
|
|
1408
|
+
var MapCache = require_MapCache();
|
|
1409
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
1410
|
+
function stackSet(key, value) {
|
|
1411
|
+
var data = this.__data__;
|
|
1412
|
+
if (data instanceof ListCache) {
|
|
1413
|
+
var pairs = data.__data__;
|
|
1414
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1415
|
+
pairs.push([key, value]);
|
|
1416
|
+
this.size = ++data.size;
|
|
1417
|
+
return this;
|
|
1418
|
+
}
|
|
1419
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1420
|
+
}
|
|
1421
|
+
data.set(key, value);
|
|
1422
|
+
this.size = data.size;
|
|
1423
|
+
return this;
|
|
1424
|
+
}
|
|
1425
|
+
module.exports = stackSet;
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
|
|
1429
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
|
|
1430
|
+
var require_Stack = __commonJS({
|
|
1431
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports, module) {
|
|
1432
|
+
"use strict";
|
|
1433
|
+
var ListCache = require_ListCache();
|
|
1434
|
+
var stackClear = require_stackClear();
|
|
1435
|
+
var stackDelete = require_stackDelete();
|
|
1436
|
+
var stackGet = require_stackGet();
|
|
1437
|
+
var stackHas = require_stackHas();
|
|
1438
|
+
var stackSet = require_stackSet();
|
|
1439
|
+
function Stack(entries) {
|
|
1440
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1441
|
+
this.size = data.size;
|
|
1442
|
+
}
|
|
1443
|
+
Stack.prototype.clear = stackClear;
|
|
1444
|
+
Stack.prototype["delete"] = stackDelete;
|
|
1445
|
+
Stack.prototype.get = stackGet;
|
|
1446
|
+
Stack.prototype.has = stackHas;
|
|
1447
|
+
Stack.prototype.set = stackSet;
|
|
1448
|
+
module.exports = Stack;
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
|
|
2067
1452
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js
|
|
2068
1453
|
var require_setCacheAdd = __commonJS({
|
|
2069
1454
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js"(exports, module) {
|
|
@@ -2192,6 +1577,16 @@ var require_equalArrays = __commonJS({
|
|
|
2192
1577
|
}
|
|
2193
1578
|
});
|
|
2194
1579
|
|
|
1580
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
|
|
1581
|
+
var require_Uint8Array = __commonJS({
|
|
1582
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports, module) {
|
|
1583
|
+
"use strict";
|
|
1584
|
+
var root = require_root();
|
|
1585
|
+
var Uint8Array2 = root.Uint8Array;
|
|
1586
|
+
module.exports = Uint8Array2;
|
|
1587
|
+
}
|
|
1588
|
+
});
|
|
1589
|
+
|
|
2195
1590
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js
|
|
2196
1591
|
var require_mapToArray = __commonJS({
|
|
2197
1592
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(exports, module) {
|
|
@@ -2776,7 +2171,7 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
2776
2171
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"(exports, module) {
|
|
2777
2172
|
"use strict";
|
|
2778
2173
|
var baseIsEqual = require_baseIsEqual();
|
|
2779
|
-
var
|
|
2174
|
+
var get2 = require_get();
|
|
2780
2175
|
var hasIn = require_hasIn();
|
|
2781
2176
|
var isKey = require_isKey();
|
|
2782
2177
|
var isStrictComparable = require_isStrictComparable();
|
|
@@ -2789,7 +2184,7 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
2789
2184
|
return matchesStrictComparable(toKey(path), srcValue);
|
|
2790
2185
|
}
|
|
2791
2186
|
return function(object) {
|
|
2792
|
-
var objValue =
|
|
2187
|
+
var objValue = get2(object, path);
|
|
2793
2188
|
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
2794
2189
|
};
|
|
2795
2190
|
}
|
|
@@ -2797,6 +2192,17 @@ var require_baseMatchesProperty = __commonJS({
|
|
|
2797
2192
|
}
|
|
2798
2193
|
});
|
|
2799
2194
|
|
|
2195
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
|
|
2196
|
+
var require_identity = __commonJS({
|
|
2197
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports, module) {
|
|
2198
|
+
"use strict";
|
|
2199
|
+
function identity(value) {
|
|
2200
|
+
return value;
|
|
2201
|
+
}
|
|
2202
|
+
module.exports = identity;
|
|
2203
|
+
}
|
|
2204
|
+
});
|
|
2205
|
+
|
|
2800
2206
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js
|
|
2801
2207
|
var require_baseProperty = __commonJS({
|
|
2802
2208
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"(exports, module) {
|
|
@@ -2901,6 +2307,24 @@ var require_groupBy = __commonJS({
|
|
|
2901
2307
|
}
|
|
2902
2308
|
});
|
|
2903
2309
|
|
|
2310
|
+
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js
|
|
2311
|
+
var require_assignValue = __commonJS({
|
|
2312
|
+
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js"(exports, module) {
|
|
2313
|
+
"use strict";
|
|
2314
|
+
var baseAssignValue = require_baseAssignValue();
|
|
2315
|
+
var eq = require_eq();
|
|
2316
|
+
var objectProto = Object.prototype;
|
|
2317
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2318
|
+
function assignValue(object, key, value) {
|
|
2319
|
+
var objValue = object[key];
|
|
2320
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
2321
|
+
baseAssignValue(object, key, value);
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
module.exports = assignValue;
|
|
2325
|
+
}
|
|
2326
|
+
});
|
|
2327
|
+
|
|
2904
2328
|
// ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js
|
|
2905
2329
|
var require_baseSet = __commonJS({
|
|
2906
2330
|
"../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js"(exports, module) {
|
|
@@ -2950,10 +2374,7 @@ var require_set = __commonJS({
|
|
|
2950
2374
|
});
|
|
2951
2375
|
|
|
2952
2376
|
// src/implments/ReleaseContext.ts
|
|
2953
|
-
var import_merge = __toESM(require_merge(), 1);
|
|
2954
2377
|
var import_get = __toESM(require_get(), 1);
|
|
2955
|
-
import { FeScriptContext } from "@qlover/scripts-context";
|
|
2956
|
-
import { Env } from "@qlover/env-loader";
|
|
2957
2378
|
|
|
2958
2379
|
// src/defaults.ts
|
|
2959
2380
|
var DEFAULT_SOURCE_BRANCH = "master";
|
|
@@ -2967,52 +2388,40 @@ var WORKSPACE_VERSION_SEPARATOR = "@";
|
|
|
2967
2388
|
var BATCH_PR_BODY = "\n## ${name} ${version}\n${changelog}\n";
|
|
2968
2389
|
|
|
2969
2390
|
// src/implments/ReleaseContext.ts
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
this.
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
}
|
|
2984
|
-
this.
|
|
2985
|
-
{
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
}
|
|
2990
|
-
getDefaultShreadOptions(props) {
|
|
2991
|
-
return {
|
|
2992
|
-
rootPath: process.cwd(),
|
|
2993
|
-
// use currentBranch by default
|
|
2994
|
-
sourceBranch: this._env.get("FE_RELEASE_BRANCH") || this._env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH,
|
|
2995
|
-
releaseEnv: this._env.get("FE_RELEASE_ENV") || this._env.get("NODE_ENV") || "development",
|
|
2996
|
-
...props
|
|
2997
|
-
};
|
|
2391
|
+
import {
|
|
2392
|
+
ScriptContext
|
|
2393
|
+
} from "@qlover/scripts-context";
|
|
2394
|
+
var ReleaseContext = class extends ScriptContext {
|
|
2395
|
+
constructor(name, options) {
|
|
2396
|
+
super(name, options);
|
|
2397
|
+
if (!this.options.rootPath) {
|
|
2398
|
+
this.setOptions({ rootPath: process.cwd() });
|
|
2399
|
+
}
|
|
2400
|
+
if (!this.options.sourceBranch) {
|
|
2401
|
+
this.setOptions({
|
|
2402
|
+
sourceBranch: this.env.get("FE_RELEASE_BRANCH") || this.env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH
|
|
2403
|
+
});
|
|
2404
|
+
}
|
|
2405
|
+
if (!this.options.releaseEnv) {
|
|
2406
|
+
this.setOptions({
|
|
2407
|
+
releaseEnv: this.env.get("FE_RELEASE_ENV") || this.env.get("NODE_ENV") || "development"
|
|
2408
|
+
});
|
|
2409
|
+
}
|
|
2998
2410
|
}
|
|
2999
2411
|
get rootPath() {
|
|
3000
|
-
return this.
|
|
2412
|
+
return this.getOptions("rootPath");
|
|
3001
2413
|
}
|
|
3002
2414
|
get sourceBranch() {
|
|
3003
|
-
return this.
|
|
2415
|
+
return this.getOptions("sourceBranch");
|
|
3004
2416
|
}
|
|
3005
2417
|
get releaseEnv() {
|
|
3006
|
-
return this.
|
|
3007
|
-
}
|
|
3008
|
-
get env() {
|
|
3009
|
-
return this._env;
|
|
2418
|
+
return this.getOptions("releaseEnv");
|
|
3010
2419
|
}
|
|
3011
2420
|
get workspaces() {
|
|
3012
|
-
return this.
|
|
2421
|
+
return this.getOptions("workspaces.workspaces");
|
|
3013
2422
|
}
|
|
3014
2423
|
get workspace() {
|
|
3015
|
-
return this.
|
|
2424
|
+
return this.getOptions("workspaces.workspace");
|
|
3016
2425
|
}
|
|
3017
2426
|
setWorkspaces(workspaces) {
|
|
3018
2427
|
this.options.workspaces = {
|
|
@@ -3020,15 +2429,6 @@ var ReleaseContext = class extends FeScriptContext {
|
|
|
3020
2429
|
workspaces
|
|
3021
2430
|
};
|
|
3022
2431
|
}
|
|
3023
|
-
setConfig(config) {
|
|
3024
|
-
this.options = (0, import_merge.default)(this.options, config);
|
|
3025
|
-
}
|
|
3026
|
-
getConfig(key, defaultValue) {
|
|
3027
|
-
return (0, import_get.default)(this.options, key, defaultValue);
|
|
3028
|
-
}
|
|
3029
|
-
setShared(shared) {
|
|
3030
|
-
this.shared = (0, import_merge.default)(this.shared, shared);
|
|
3031
|
-
}
|
|
3032
2432
|
getPkg(key, defaultValue) {
|
|
3033
2433
|
const packageJson = this.workspace?.packageJson;
|
|
3034
2434
|
if (!packageJson) {
|
|
@@ -3041,7 +2441,7 @@ var ReleaseContext = class extends FeScriptContext {
|
|
|
3041
2441
|
}
|
|
3042
2442
|
getTemplateContext() {
|
|
3043
2443
|
return {
|
|
3044
|
-
...this.
|
|
2444
|
+
...this.getOptions(),
|
|
3045
2445
|
...this.workspace,
|
|
3046
2446
|
publishPath: this.workspace?.path || "",
|
|
3047
2447
|
// deprecated
|
|
@@ -3074,6 +2474,7 @@ function tuple(plugin, ...args) {
|
|
|
3074
2474
|
import { AsyncExecutor } from "@qlover/fe-corekit";
|
|
3075
2475
|
|
|
3076
2476
|
// src/implments/ReleaseParams.ts
|
|
2477
|
+
import { Shell } from "@qlover/scripts-context";
|
|
3077
2478
|
var DEFAULT_RELEASE_CONFIG = {
|
|
3078
2479
|
maxWorkspace: MAX_WORKSPACE,
|
|
3079
2480
|
multiWorkspaceSeparator: MULTI_WORKSPACE_SEPARATOR,
|
|
@@ -3082,8 +2483,7 @@ var DEFAULT_RELEASE_CONFIG = {
|
|
|
3082
2483
|
batchTagName: "batch-${length}-packages-${timestamp}"
|
|
3083
2484
|
};
|
|
3084
2485
|
var ReleaseParams = class {
|
|
3085
|
-
constructor(
|
|
3086
|
-
this.shell = shell;
|
|
2486
|
+
constructor(logger, config = {}) {
|
|
3087
2487
|
this.logger = logger;
|
|
3088
2488
|
this.config = {
|
|
3089
2489
|
...DEFAULT_RELEASE_CONFIG,
|
|
@@ -3097,7 +2497,7 @@ var ReleaseParams = class {
|
|
|
3097
2497
|
throw new Error("Branch name template is not a string");
|
|
3098
2498
|
}
|
|
3099
2499
|
this.logger.debug("Release Branch template is:", branchNameTpl);
|
|
3100
|
-
return
|
|
2500
|
+
return Shell.format(branchNameTpl, {
|
|
3101
2501
|
pkgName: releaseName,
|
|
3102
2502
|
releaseName,
|
|
3103
2503
|
tagName,
|
|
@@ -3111,7 +2511,7 @@ var ReleaseParams = class {
|
|
|
3111
2511
|
throw new Error("Branch name template is not a string");
|
|
3112
2512
|
}
|
|
3113
2513
|
this.logger.debug("Release Batch Branch template is:", branchNameTpl);
|
|
3114
|
-
return
|
|
2514
|
+
return Shell.format(branchNameTpl, {
|
|
3115
2515
|
pkgName: releaseName,
|
|
3116
2516
|
releaseName,
|
|
3117
2517
|
tagName,
|
|
@@ -3135,7 +2535,7 @@ var ReleaseParams = class {
|
|
|
3135
2535
|
return composeWorkspaces[0].version;
|
|
3136
2536
|
}
|
|
3137
2537
|
const { batchTagName } = this.config;
|
|
3138
|
-
return
|
|
2538
|
+
return Shell.format(batchTagName, {
|
|
3139
2539
|
length: composeWorkspaces.length,
|
|
3140
2540
|
timestamp: Date.now()
|
|
3141
2541
|
});
|
|
@@ -3156,7 +2556,7 @@ var ReleaseParams = class {
|
|
|
3156
2556
|
}
|
|
3157
2557
|
getPRTitle(releaseBranchParams, context) {
|
|
3158
2558
|
const prTitleTpl = this.config.PRTitle || DEFAULT_PR_TITLE;
|
|
3159
|
-
return
|
|
2559
|
+
return Shell.format(prTitleTpl, {
|
|
3160
2560
|
...context,
|
|
3161
2561
|
tagName: releaseBranchParams.tagName,
|
|
3162
2562
|
pkgName: releaseBranchParams.releaseBranch
|
|
@@ -3171,7 +2571,7 @@ var ReleaseParams = class {
|
|
|
3171
2571
|
getPRBody(composeWorkspaces, releaseBranchParams, context) {
|
|
3172
2572
|
const PRBodyTpl = this.config.PRBody;
|
|
3173
2573
|
const changelog = composeWorkspaces.length > 1 ? composeWorkspaces.map((workspace) => {
|
|
3174
|
-
return
|
|
2574
|
+
return Shell.format(
|
|
3175
2575
|
BATCH_PR_BODY,
|
|
3176
2576
|
workspace
|
|
3177
2577
|
);
|
|
@@ -3180,7 +2580,7 @@ var ReleaseParams = class {
|
|
|
3180
2580
|
const tagName = composeWorkspaces.length === 1 ? releaseBranchParams.tagName : composeWorkspaces.map(
|
|
3181
2581
|
(workspace) => `${workspace.name}${workspaceVersionSeparator}${workspace.version}`
|
|
3182
2582
|
).join(" ");
|
|
3183
|
-
return
|
|
2583
|
+
return Shell.format(PRBodyTpl, {
|
|
3184
2584
|
...context,
|
|
3185
2585
|
tagName,
|
|
3186
2586
|
changelog
|
|
@@ -3189,6 +2589,7 @@ var ReleaseParams = class {
|
|
|
3189
2589
|
};
|
|
3190
2590
|
|
|
3191
2591
|
// src/plugins/githubPR/GithubManager.ts
|
|
2592
|
+
import { Shell as Shell2 } from "@qlover/scripts-context";
|
|
3192
2593
|
import { Octokit } from "@octokit/rest";
|
|
3193
2594
|
var GithubManager = class {
|
|
3194
2595
|
constructor(context) {
|
|
@@ -3196,7 +2597,7 @@ var GithubManager = class {
|
|
|
3196
2597
|
}
|
|
3197
2598
|
_octokit = null;
|
|
3198
2599
|
getGitHubUserInfo() {
|
|
3199
|
-
const { authorName, repoName } = this.context.
|
|
2600
|
+
const { authorName, repoName } = this.context.getOptions();
|
|
3200
2601
|
if (!authorName || !repoName) {
|
|
3201
2602
|
throw new Error("Author name or repo name is not set");
|
|
3202
2603
|
}
|
|
@@ -3206,7 +2607,7 @@ var GithubManager = class {
|
|
|
3206
2607
|
};
|
|
3207
2608
|
}
|
|
3208
2609
|
getToken() {
|
|
3209
|
-
const { tokenRef = "GITHUB_TOKEN" } = this.context.
|
|
2610
|
+
const { tokenRef = "GITHUB_TOKEN" } = this.context.getOptions("githubPR");
|
|
3210
2611
|
const token = this.context.env.get(tokenRef);
|
|
3211
2612
|
if (!token) {
|
|
3212
2613
|
throw new Error(
|
|
@@ -3219,7 +2620,7 @@ var GithubManager = class {
|
|
|
3219
2620
|
if (this._octokit) {
|
|
3220
2621
|
return this._octokit;
|
|
3221
2622
|
}
|
|
3222
|
-
const { timeout } = this.context.
|
|
2623
|
+
const { timeout } = this.context.getOptions("githubPR");
|
|
3223
2624
|
const options = {
|
|
3224
2625
|
auth: this.getToken(),
|
|
3225
2626
|
request: {
|
|
@@ -3241,7 +2642,7 @@ var GithubManager = class {
|
|
|
3241
2642
|
* @default `squash`
|
|
3242
2643
|
*/
|
|
3243
2644
|
get autoMergeType() {
|
|
3244
|
-
return this.context.
|
|
2645
|
+
return this.context.getOptions().autoMergeType || DEFAULT_AUTO_MERGE_TYPE;
|
|
3245
2646
|
}
|
|
3246
2647
|
/**
|
|
3247
2648
|
* Dry run PR number
|
|
@@ -3249,7 +2650,7 @@ var GithubManager = class {
|
|
|
3249
2650
|
* @default `999999`
|
|
3250
2651
|
*/
|
|
3251
2652
|
get dryRunPRNumber() {
|
|
3252
|
-
return this.context.
|
|
2653
|
+
return this.context.getOptions("githubPR.dryRunPRNumber", "999999");
|
|
3253
2654
|
}
|
|
3254
2655
|
/**
|
|
3255
2656
|
* Auto merge release PR
|
|
@@ -3257,7 +2658,7 @@ var GithubManager = class {
|
|
|
3257
2658
|
* @default `false`
|
|
3258
2659
|
*/
|
|
3259
2660
|
get autoMergeReleasePR() {
|
|
3260
|
-
return this.context.
|
|
2661
|
+
return this.context.getOptions("autoMergeReleasePR") || DEFAULT_AUTO_MERGE_RELEASE_PR;
|
|
3261
2662
|
}
|
|
3262
2663
|
/**
|
|
3263
2664
|
* Automatically merges a pull request.
|
|
@@ -3272,7 +2673,7 @@ var GithubManager = class {
|
|
|
3272
2673
|
}
|
|
3273
2674
|
const mergeMethod = this.autoMergeType;
|
|
3274
2675
|
if (this.context.dryRun) {
|
|
3275
|
-
const { repoName, authorName } = this.context.
|
|
2676
|
+
const { repoName, authorName } = this.context.getOptions();
|
|
3276
2677
|
this.logger.info(
|
|
3277
2678
|
`[DRY RUN] Would merge PR #${prNumber} with method '${mergeMethod}' in repo ${authorName}/${repoName}, branch ${releaseBranch}`
|
|
3278
2679
|
);
|
|
@@ -3337,7 +2738,7 @@ var GithubManager = class {
|
|
|
3337
2738
|
* @throws If the label is not valid or if the creation fails.
|
|
3338
2739
|
*/
|
|
3339
2740
|
async createReleasePRLabel() {
|
|
3340
|
-
const label = this.context.
|
|
2741
|
+
const label = this.context.getOptions().label;
|
|
3341
2742
|
if (!label || !label.name || !label.description || !label.color) {
|
|
3342
2743
|
throw new Error("Label is not valid, skipping creation");
|
|
3343
2744
|
}
|
|
@@ -3372,7 +2773,7 @@ var GithubManager = class {
|
|
|
3372
2773
|
* @throws If the creation fails or if the pull request already exists.
|
|
3373
2774
|
*/
|
|
3374
2775
|
async createReleasePR(options) {
|
|
3375
|
-
const dryRunCreatePR = this.context.
|
|
2776
|
+
const dryRunCreatePR = this.context.getOptions("githubPR.dryRunCreatePR");
|
|
3376
2777
|
if (dryRunCreatePR || this.context.dryRun) {
|
|
3377
2778
|
this.logger.info(`[DRY RUN] Would create PR with:`, {
|
|
3378
2779
|
...options,
|
|
@@ -3424,7 +2825,7 @@ var GithubManager = class {
|
|
|
3424
2825
|
makeLatest = true,
|
|
3425
2826
|
releaseNotes,
|
|
3426
2827
|
discussionCategoryName = void 0
|
|
3427
|
-
} = this.context.
|
|
2828
|
+
} = this.context.getOptions("githubPR");
|
|
3428
2829
|
const name = releaseName;
|
|
3429
2830
|
const body = autoGenerate ? "" : this.truncateBody(String(releaseNotes));
|
|
3430
2831
|
return {
|
|
@@ -3445,7 +2846,7 @@ var GithubManager = class {
|
|
|
3445
2846
|
tag_name: workspace.tagName,
|
|
3446
2847
|
body: workspace.changelog
|
|
3447
2848
|
});
|
|
3448
|
-
meragedOptions.name =
|
|
2849
|
+
meragedOptions.name = Shell2.format(
|
|
3449
2850
|
meragedOptions.name,
|
|
3450
2851
|
workspace
|
|
3451
2852
|
);
|
|
@@ -3477,92 +2878,14 @@ var GithubManager = class {
|
|
|
3477
2878
|
|
|
3478
2879
|
// src/plugins/GitBase.ts
|
|
3479
2880
|
var import_isString = __toESM(require_isString(), 1);
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
var import_merge2 = __toESM(require_merge(), 1);
|
|
3483
|
-
var import_get2 = __toESM(require_get(), 1);
|
|
3484
|
-
var Plugin = class {
|
|
3485
|
-
constructor(context, pluginName, props = {}) {
|
|
3486
|
-
this.context = context;
|
|
3487
|
-
this.pluginName = pluginName;
|
|
3488
|
-
this.props = props;
|
|
3489
|
-
this.setConfig(this.getInitialProps(props));
|
|
3490
|
-
}
|
|
3491
|
-
onlyOne = true;
|
|
3492
|
-
getInitialProps(props) {
|
|
3493
|
-
const pluginConfig = this.context.options[this.pluginName];
|
|
3494
|
-
const fileConfig = (0, import_get2.default)(this.context.shared, this.pluginName);
|
|
3495
|
-
return pluginConfig || props ? (0, import_merge2.default)({}, fileConfig, props, pluginConfig) : {};
|
|
3496
|
-
}
|
|
3497
|
-
get logger() {
|
|
3498
|
-
return this.context.logger;
|
|
3499
|
-
}
|
|
3500
|
-
get shell() {
|
|
3501
|
-
return this.context.shell;
|
|
3502
|
-
}
|
|
3503
|
-
get options() {
|
|
3504
|
-
return this.context.getConfig(this.pluginName, {});
|
|
3505
|
-
}
|
|
3506
|
-
getEnv(key, defaultValue) {
|
|
3507
|
-
return this.context.env.get(key) ?? defaultValue;
|
|
3508
|
-
}
|
|
3509
|
-
enabled(_name, _context) {
|
|
3510
|
-
return true;
|
|
3511
|
-
}
|
|
3512
|
-
getConfig(keys, defaultValue) {
|
|
3513
|
-
if (!keys) {
|
|
3514
|
-
return this.context.getConfig(this.pluginName, defaultValue);
|
|
3515
|
-
}
|
|
3516
|
-
return this.context.getConfig(
|
|
3517
|
-
[this.pluginName, ...Array.isArray(keys) ? keys : [keys]],
|
|
3518
|
-
defaultValue
|
|
3519
|
-
);
|
|
3520
|
-
}
|
|
3521
|
-
setConfig(config) {
|
|
3522
|
-
this.context.setConfig({
|
|
3523
|
-
[this.pluginName]: config
|
|
3524
|
-
});
|
|
3525
|
-
}
|
|
3526
|
-
onBefore(_context) {
|
|
3527
|
-
}
|
|
3528
|
-
onExec(_context) {
|
|
3529
|
-
}
|
|
3530
|
-
onSuccess(_context) {
|
|
3531
|
-
}
|
|
3532
|
-
onError(_context) {
|
|
3533
|
-
}
|
|
3534
|
-
/**
|
|
3535
|
-
* run a step
|
|
3536
|
-
*
|
|
3537
|
-
* this will log the step and return the result of the task
|
|
3538
|
-
*
|
|
3539
|
-
* @param label - the label of the step
|
|
3540
|
-
* @param task - the task to run
|
|
3541
|
-
* @returns the result of the task
|
|
3542
|
-
*/
|
|
3543
|
-
async step({ label, task }) {
|
|
3544
|
-
this.logger.log();
|
|
3545
|
-
this.logger.info(label);
|
|
3546
|
-
this.logger.log();
|
|
3547
|
-
try {
|
|
3548
|
-
const res = await task();
|
|
3549
|
-
this.logger.info(`${label} - success`);
|
|
3550
|
-
return res;
|
|
3551
|
-
} catch (e) {
|
|
3552
|
-
this.logger.error(e);
|
|
3553
|
-
throw e;
|
|
3554
|
-
}
|
|
3555
|
-
}
|
|
3556
|
-
};
|
|
3557
|
-
|
|
3558
|
-
// src/plugins/GitBase.ts
|
|
3559
|
-
var GitBase = class extends Plugin {
|
|
2881
|
+
import { ScriptPlugin } from "@qlover/scripts-context";
|
|
2882
|
+
var GitBase = class extends ScriptPlugin {
|
|
3560
2883
|
async onBefore() {
|
|
3561
2884
|
const repoInfo = await this.getUserInfo();
|
|
3562
2885
|
if (!repoInfo) {
|
|
3563
2886
|
throw new Error("Failed to get repoInfo");
|
|
3564
2887
|
}
|
|
3565
|
-
let currentBranch = this.context.
|
|
2888
|
+
let currentBranch = this.context.options.currentBranch;
|
|
3566
2889
|
if (!currentBranch) {
|
|
3567
2890
|
currentBranch = await this.getCurrentBranch();
|
|
3568
2891
|
}
|
|
@@ -3571,7 +2894,7 @@ var GitBase = class extends Plugin {
|
|
|
3571
2894
|
dryRun: false
|
|
3572
2895
|
});
|
|
3573
2896
|
}
|
|
3574
|
-
this.context.
|
|
2897
|
+
this.context.setOptions({
|
|
3575
2898
|
repoName: repoInfo.repoName,
|
|
3576
2899
|
authorName: repoInfo.authorName,
|
|
3577
2900
|
currentBranch
|
|
@@ -3683,14 +3006,14 @@ var GitChangelog = class {
|
|
|
3683
3006
|
* @returns
|
|
3684
3007
|
*/
|
|
3685
3008
|
async getGitLog(options = {}) {
|
|
3686
|
-
const { directory, noMerges = true,
|
|
3009
|
+
const { directory, noMerges = true, fields } = options;
|
|
3687
3010
|
const from = await this.resolveTag(options.from, "root");
|
|
3688
3011
|
const to = await this.resolveTag(options.to, "HEAD");
|
|
3689
3012
|
const range = from === to ? to : `${from}..${to}`;
|
|
3690
3013
|
const gitLogOptions = {
|
|
3691
3014
|
repo: ".",
|
|
3692
3015
|
number: 1e3,
|
|
3693
|
-
fields
|
|
3016
|
+
fields,
|
|
3694
3017
|
branch: range,
|
|
3695
3018
|
file: directory,
|
|
3696
3019
|
nameStatus: false,
|
|
@@ -3784,6 +3107,7 @@ var GitChangelog = class {
|
|
|
3784
3107
|
|
|
3785
3108
|
// src/implments/changelog/GitChangelogFormatter.ts
|
|
3786
3109
|
var import_groupBy = __toESM(require_groupBy(), 1);
|
|
3110
|
+
import { Shell as Shell3 } from "@qlover/scripts-context";
|
|
3787
3111
|
var DEFAULT_TEMPLATE = "\n- ${scopeHeader} ${commitlint.message} ${commitLink} ${prLink}";
|
|
3788
3112
|
var GitChangelogFormatter = class {
|
|
3789
3113
|
constructor(options) {
|
|
@@ -3834,7 +3158,7 @@ var GitChangelogFormatter = class {
|
|
|
3834
3158
|
hash.slice(0, 7),
|
|
3835
3159
|
repoUrl ? `${repoUrl}/commit/${hash}` : ""
|
|
3836
3160
|
) : "";
|
|
3837
|
-
return
|
|
3161
|
+
return Shell3.format(formatTemplate, {
|
|
3838
3162
|
...commit,
|
|
3839
3163
|
scopeHeader,
|
|
3840
3164
|
commitLink: hashLink,
|
|
@@ -3999,11 +3323,11 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
|
|
|
3999
3323
|
async transformWorkspace(workspaces, context) {
|
|
4000
3324
|
const githubRootPath = [
|
|
4001
3325
|
DOMAIN,
|
|
4002
|
-
context.
|
|
4003
|
-
context.
|
|
3326
|
+
context.getOptions("authorName"),
|
|
3327
|
+
context.getOptions("repoName")
|
|
4004
3328
|
].join("/");
|
|
4005
3329
|
const changelogProps = {
|
|
4006
|
-
...context.
|
|
3330
|
+
...context.getOptions("changelog"),
|
|
4007
3331
|
githubRootPath,
|
|
4008
3332
|
mergePRcommit: true,
|
|
4009
3333
|
shell: context.shell,
|
|
@@ -4019,7 +3343,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
|
|
|
4019
3343
|
const changelog = await githubChangelog.getFullCommit({
|
|
4020
3344
|
from: workspace.lastTag ?? "",
|
|
4021
3345
|
directory: workspace.path,
|
|
4022
|
-
|
|
3346
|
+
fields: CHANGELOG_ALL_FIELDS
|
|
4023
3347
|
});
|
|
4024
3348
|
if (typeof changelog === "string") {
|
|
4025
3349
|
return {
|
|
@@ -4041,6 +3365,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
|
|
|
4041
3365
|
};
|
|
4042
3366
|
|
|
4043
3367
|
// src/plugins/githubPR/GithubPR.ts
|
|
3368
|
+
import { Shell as Shell4 } from "@qlover/scripts-context";
|
|
4044
3369
|
var DEFAULT_RELEASE_NAME = "Release ${name} v${version}";
|
|
4045
3370
|
var DEFAULT_COMMIT_MESSAGE = "chore(tag): ${name} v${version}";
|
|
4046
3371
|
var GithubPR = class extends GitBase {
|
|
@@ -4051,9 +3376,9 @@ var GithubPR = class extends GitBase {
|
|
|
4051
3376
|
});
|
|
4052
3377
|
this.context = context;
|
|
4053
3378
|
this.githubManager = new GithubManager(this.context);
|
|
4054
|
-
this.releaseParams = new ReleaseParams(context.
|
|
4055
|
-
PRTitle: this.getConfig("PRTitle", this.context.
|
|
4056
|
-
PRBody: this.getConfig("PRBody", this.context.
|
|
3379
|
+
this.releaseParams = new ReleaseParams(context.logger, {
|
|
3380
|
+
PRTitle: this.getConfig("PRTitle", this.context.options.PRTitle),
|
|
3381
|
+
PRBody: this.getConfig("PRBody", this.context.options.PRBody),
|
|
4057
3382
|
...this.props
|
|
4058
3383
|
});
|
|
4059
3384
|
}
|
|
@@ -4086,7 +3411,7 @@ var GithubPR = class extends GitBase {
|
|
|
4086
3411
|
}
|
|
4087
3412
|
await super.onBefore();
|
|
4088
3413
|
if (this.isPublish) {
|
|
4089
|
-
const npmToken = this.getEnv("NPM_TOKEN");
|
|
3414
|
+
const npmToken = this.context.getEnv("NPM_TOKEN");
|
|
4090
3415
|
if (!npmToken) {
|
|
4091
3416
|
throw new Error("NPM_TOKEN is not set");
|
|
4092
3417
|
}
|
|
@@ -4098,7 +3423,7 @@ var GithubPR = class extends GitBase {
|
|
|
4098
3423
|
async onExec() {
|
|
4099
3424
|
const workspaces = this.context.workspaces;
|
|
4100
3425
|
const githubChangelog = new GithubChangelog(
|
|
4101
|
-
this.context.
|
|
3426
|
+
this.context.getOptions("changelog"),
|
|
4102
3427
|
this.githubManager
|
|
4103
3428
|
);
|
|
4104
3429
|
const newWorkspaces = await this.step({
|
|
@@ -4173,7 +3498,7 @@ var GithubPR = class extends GitBase {
|
|
|
4173
3498
|
);
|
|
4174
3499
|
}
|
|
4175
3500
|
async commitWorkspace(workspace, commitArgs = []) {
|
|
4176
|
-
const commitMessage =
|
|
3501
|
+
const commitMessage = Shell4.format(
|
|
4177
3502
|
this.getConfig("commitMessage", DEFAULT_COMMIT_MESSAGE),
|
|
4178
3503
|
workspace
|
|
4179
3504
|
);
|
|
@@ -4192,13 +3517,14 @@ var GithubPR = class extends GitBase {
|
|
|
4192
3517
|
async createReleaseBranch(workspaces) {
|
|
4193
3518
|
const params = this.releaseParams.getReleaseBranchParams(
|
|
4194
3519
|
workspaces,
|
|
3520
|
+
// @ts-expect-error TODO: fix this
|
|
4195
3521
|
this.context.getTemplateContext()
|
|
4196
3522
|
);
|
|
4197
3523
|
const { tagName, releaseBranch } = params;
|
|
4198
3524
|
if (typeof tagName !== "string") {
|
|
4199
3525
|
throw new Error("Tag name is not a string");
|
|
4200
3526
|
}
|
|
4201
|
-
const { sourceBranch, currentBranch } = this.context.
|
|
3527
|
+
const { sourceBranch, currentBranch } = this.context.getOptions();
|
|
4202
3528
|
this.context.logger.debug("PR TagName is:", tagName);
|
|
4203
3529
|
this.context.logger.debug("PR CurrentBranch is:", currentBranch);
|
|
4204
3530
|
this.context.logger.debug("PR SourceBranch is:", sourceBranch);
|
|
@@ -4234,7 +3560,7 @@ var GithubPR = class extends GitBase {
|
|
|
4234
3560
|
const label = await this.githubManager.createReleasePRLabel();
|
|
4235
3561
|
let labels = [label.name];
|
|
4236
3562
|
if (this.getConfig("pushChangeLabels")) {
|
|
4237
|
-
const changeLabels = this.context.
|
|
3563
|
+
const changeLabels = this.context.getOptions("workspaces.changeLabels");
|
|
4238
3564
|
if (Array.isArray(changeLabels) && changeLabels.length > 0) {
|
|
4239
3565
|
labels.push(...changeLabels);
|
|
4240
3566
|
}
|
|
@@ -4322,7 +3648,8 @@ var WorkspaceCreator = class _WorkspaceCreator {
|
|
|
4322
3648
|
};
|
|
4323
3649
|
|
|
4324
3650
|
// src/plugins/workspaces/Workspaces.ts
|
|
4325
|
-
|
|
3651
|
+
import { ScriptPlugin as ScriptPlugin2 } from "@qlover/scripts-context";
|
|
3652
|
+
var Workspaces = class extends ScriptPlugin2 {
|
|
4326
3653
|
releaseTask = null;
|
|
4327
3654
|
workspacesList = [];
|
|
4328
3655
|
_skip = false;
|
|
@@ -4330,8 +3657,8 @@ var Workspaces = class extends Plugin {
|
|
|
4330
3657
|
constructor(context) {
|
|
4331
3658
|
super(context, "workspaces");
|
|
4332
3659
|
this.releaseLabel = new ReleaseLabel({
|
|
4333
|
-
changePackagesLabel: this.context.
|
|
4334
|
-
packagesDirectories: this.context.
|
|
3660
|
+
changePackagesLabel: this.context.options.changePackagesLabel || "change:${name}",
|
|
3661
|
+
packagesDirectories: this.context.options.packagesDirectories || [],
|
|
4335
3662
|
compare: (changedFilePath, packagePath) => resolve(changedFilePath).startsWith(resolve(packagePath))
|
|
4336
3663
|
});
|
|
4337
3664
|
}
|
|
@@ -4349,7 +3676,7 @@ var Workspaces = class extends Plugin {
|
|
|
4349
3676
|
if (this.getConfig("skipCheckPackage") || workspaces.length === 0) {
|
|
4350
3677
|
throw new Error("No changes to publish packages");
|
|
4351
3678
|
}
|
|
4352
|
-
const
|
|
3679
|
+
const publishPath = this.context.getOptions("publishPath");
|
|
4353
3680
|
if (publishPath) {
|
|
4354
3681
|
const targetWorkspace = workspaces.find(
|
|
4355
3682
|
(workspace2) => resolve(workspace2.root) === resolve(publishPath)
|
|
@@ -4383,7 +3710,7 @@ var Workspaces = class extends Plugin {
|
|
|
4383
3710
|
this.releaseTask = releaseTask;
|
|
4384
3711
|
}
|
|
4385
3712
|
setCurrentWorkspace(workspace, workspaces) {
|
|
4386
|
-
this.context.
|
|
3713
|
+
this.context.setOptions({
|
|
4387
3714
|
publishPath: workspace.path
|
|
4388
3715
|
});
|
|
4389
3716
|
this.setConfig({
|
|
@@ -4415,7 +3742,7 @@ var Workspaces = class extends Plugin {
|
|
|
4415
3742
|
}
|
|
4416
3743
|
getProjectWorkspaces() {
|
|
4417
3744
|
const rootPath = this.context.rootPath;
|
|
4418
|
-
const packagesDirectories = this.context.
|
|
3745
|
+
const packagesDirectories = this.context.options.packagesDirectories;
|
|
4419
3746
|
if (Array.isArray(packagesDirectories) && packagesDirectories.length > 0) {
|
|
4420
3747
|
return packagesDirectories.map(
|
|
4421
3748
|
(path) => WorkspaceCreator.toWorkspace({ path }, rootPath)
|
|
@@ -4639,8 +3966,12 @@ async function loaderPluginsFromPluginTuples(context, pluginsTuples, maxLimit =
|
|
|
4639
3966
|
// src/plugins/Changelog.ts
|
|
4640
3967
|
import { join as join4 } from "path";
|
|
4641
3968
|
import { existsSync, writeFileSync } from "fs";
|
|
3969
|
+
import {
|
|
3970
|
+
ScriptPlugin as ScriptPlugin3,
|
|
3971
|
+
Shell as Shell5
|
|
3972
|
+
} from "@qlover/scripts-context";
|
|
4642
3973
|
var contentTmplate = "---\n'${name}': '${increment}'\n---\n\n${changelog}";
|
|
4643
|
-
var Changelog = class extends
|
|
3974
|
+
var Changelog = class extends ScriptPlugin3 {
|
|
4644
3975
|
constructor(context, props) {
|
|
4645
3976
|
super(context, "changelog", {
|
|
4646
3977
|
increment: "patch",
|
|
@@ -4719,7 +4050,7 @@ var Changelog = class extends Plugin {
|
|
|
4719
4050
|
this.context.setWorkspaces(newWorkspaces);
|
|
4720
4051
|
}
|
|
4721
4052
|
async restoreIgnorePackages() {
|
|
4722
|
-
const { changedPaths = [], packages = [] } = this.context.
|
|
4053
|
+
const { changedPaths = [], packages = [] } = this.context.getOptions(
|
|
4723
4054
|
"workspaces"
|
|
4724
4055
|
);
|
|
4725
4056
|
const noChangedPackages = packages.filter((pkgPath) => !changedPaths.includes(pkgPath)).map(
|
|
@@ -4731,7 +4062,7 @@ var Changelog = class extends Plugin {
|
|
|
4731
4062
|
}
|
|
4732
4063
|
}
|
|
4733
4064
|
getTagPrefix(workspace) {
|
|
4734
|
-
return
|
|
4065
|
+
return Shell5.format(
|
|
4735
4066
|
this.getConfig("tagPrefix"),
|
|
4736
4067
|
workspace
|
|
4737
4068
|
);
|
|
@@ -4748,8 +4079,8 @@ var Changelog = class extends Plugin {
|
|
|
4748
4079
|
...baseConfig,
|
|
4749
4080
|
from: tagName,
|
|
4750
4081
|
directory: workspace.path,
|
|
4751
|
-
shell: this.shell,
|
|
4752
|
-
|
|
4082
|
+
shell: this.context.shell,
|
|
4083
|
+
fields: CHANGELOG_ALL_FIELDS,
|
|
4753
4084
|
logger: this.logger
|
|
4754
4085
|
};
|
|
4755
4086
|
const gitChangelog = new GitChangelog(props);
|
|
@@ -4764,7 +4095,7 @@ var Changelog = class extends Plugin {
|
|
|
4764
4095
|
generateTagName(workspace) {
|
|
4765
4096
|
try {
|
|
4766
4097
|
const tagTemplate = this.getConfig("tagTemplate");
|
|
4767
|
-
return
|
|
4098
|
+
return Shell5.format(
|
|
4768
4099
|
tagTemplate,
|
|
4769
4100
|
workspace
|
|
4770
4101
|
);
|
|
@@ -4776,7 +4107,7 @@ var Changelog = class extends Plugin {
|
|
|
4776
4107
|
async getTagName(workspace) {
|
|
4777
4108
|
try {
|
|
4778
4109
|
const currentTagPattern = this.generateTagName(workspace);
|
|
4779
|
-
const tagMatch =
|
|
4110
|
+
const tagMatch = Shell5.format(
|
|
4780
4111
|
this.getConfig("tagMatch"),
|
|
4781
4112
|
workspace
|
|
4782
4113
|
);
|
|
@@ -4800,7 +4131,7 @@ var Changelog = class extends Plugin {
|
|
|
4800
4131
|
}
|
|
4801
4132
|
}
|
|
4802
4133
|
getIncrement() {
|
|
4803
|
-
const lables = this.context.
|
|
4134
|
+
const lables = this.context.getOptions("workspaces.changeLabels");
|
|
4804
4135
|
if (Array.isArray(lables) && lables.length > 0) {
|
|
4805
4136
|
if (lables.includes("increment:major")) {
|
|
4806
4137
|
return "major";
|
|
@@ -4818,7 +4149,7 @@ var Changelog = class extends Plugin {
|
|
|
4818
4149
|
const changesetPath = join4(this.changesetRoot, `${changesetName}.md`);
|
|
4819
4150
|
const increment = this.getIncrement();
|
|
4820
4151
|
this.logger.debug("increment is:", [increment]);
|
|
4821
|
-
const fileContent =
|
|
4152
|
+
const fileContent = Shell5.format(contentTmplate, {
|
|
4822
4153
|
...workspace,
|
|
4823
4154
|
increment
|
|
4824
4155
|
});
|
|
@@ -4843,18 +4174,19 @@ var innerTuples = [
|
|
|
4843
4174
|
tuple(Changelog, {}),
|
|
4844
4175
|
tuple(GithubPR, {})
|
|
4845
4176
|
];
|
|
4177
|
+
var defaultName = "release";
|
|
4846
4178
|
var ReleaseTask = class {
|
|
4847
4179
|
constructor(options = {}, executor = new AsyncExecutor(), defaultTuples = innerTuples) {
|
|
4848
4180
|
this.executor = executor;
|
|
4849
4181
|
this.defaultTuples = defaultTuples;
|
|
4850
|
-
this.context = new ReleaseContext(options);
|
|
4182
|
+
this.context = new ReleaseContext(defaultName, options);
|
|
4851
4183
|
}
|
|
4852
4184
|
context;
|
|
4853
4185
|
getContext() {
|
|
4854
4186
|
return this.context;
|
|
4855
4187
|
}
|
|
4856
4188
|
async usePlugins(externalTuples) {
|
|
4857
|
-
externalTuples = externalTuples || this.context.
|
|
4189
|
+
externalTuples = externalTuples || this.context.options.plugins || [];
|
|
4858
4190
|
const plugins = await loaderPluginsFromPluginTuples(this.context, [
|
|
4859
4191
|
...this.defaultTuples,
|
|
4860
4192
|
...externalTuples
|
|
@@ -4882,6 +4214,9 @@ var ReleaseTask = class {
|
|
|
4882
4214
|
}
|
|
4883
4215
|
};
|
|
4884
4216
|
|
|
4217
|
+
// src/index.ts
|
|
4218
|
+
import { ScriptPlugin as ScriptPlugin4 } from "@qlover/scripts-context";
|
|
4219
|
+
|
|
4885
4220
|
// src/utils/args.ts
|
|
4886
4221
|
var import_set = __toESM(require_set(), 1);
|
|
4887
4222
|
function reduceOptions(opts, commonKey) {
|
|
@@ -4898,10 +4233,10 @@ export {
|
|
|
4898
4233
|
CHANGELOG_ALL_FIELDS,
|
|
4899
4234
|
GitChangelog,
|
|
4900
4235
|
GitChangelogFormatter,
|
|
4901
|
-
Plugin,
|
|
4902
4236
|
ReleaseContext,
|
|
4903
4237
|
ReleaseLabel,
|
|
4904
4238
|
ReleaseTask,
|
|
4239
|
+
ScriptPlugin4 as ScriptPlugin,
|
|
4905
4240
|
factory,
|
|
4906
4241
|
load,
|
|
4907
4242
|
loaderPluginsFromPluginTuples,
|