@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.js CHANGED
@@ -2877,116 +2877,65 @@ var require_set = __commonJS({
2877
2877
  }
2878
2878
  });
2879
2879
 
2880
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
2881
- var require_stackClear = __commonJS({
2882
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) {
2883
- "use strict";
2884
- var ListCache = require_ListCache();
2885
- function stackClear() {
2886
- this.__data__ = new ListCache();
2887
- this.size = 0;
2888
- }
2889
- module.exports = stackClear;
2890
- }
2891
- });
2892
-
2893
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
2894
- var require_stackDelete = __commonJS({
2895
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) {
2896
- "use strict";
2897
- function stackDelete(key) {
2898
- var data = this.__data__, result = data["delete"](key);
2899
- this.size = data.size;
2900
- return result;
2901
- }
2902
- module.exports = stackDelete;
2903
- }
2904
- });
2905
-
2906
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
2907
- var require_stackGet = __commonJS({
2908
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) {
2909
- "use strict";
2910
- function stackGet(key) {
2911
- return this.__data__.get(key);
2912
- }
2913
- module.exports = stackGet;
2914
- }
2915
- });
2916
-
2917
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
2918
- var require_stackHas = __commonJS({
2919
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) {
2880
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
2881
+ var require_baseGet = __commonJS({
2882
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports, module) {
2920
2883
  "use strict";
2921
- function stackHas(key) {
2922
- return this.__data__.has(key);
2884
+ var castPath = require_castPath();
2885
+ var toKey = require_toKey();
2886
+ function baseGet(object, path) {
2887
+ path = castPath(path, object);
2888
+ var index = 0, length = path.length;
2889
+ while (object != null && index < length) {
2890
+ object = object[toKey(path[index++])];
2891
+ }
2892
+ return index && index == length ? object : void 0;
2923
2893
  }
2924
- module.exports = stackHas;
2894
+ module.exports = baseGet;
2925
2895
  }
2926
2896
  });
2927
2897
 
2928
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
2929
- var require_stackSet = __commonJS({
2930
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports, module) {
2898
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
2899
+ var require_get = __commonJS({
2900
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports, module) {
2931
2901
  "use strict";
2932
- var ListCache = require_ListCache();
2933
- var Map2 = require_Map();
2934
- var MapCache = require_MapCache();
2935
- var LARGE_ARRAY_SIZE = 200;
2936
- function stackSet(key, value) {
2937
- var data = this.__data__;
2938
- if (data instanceof ListCache) {
2939
- var pairs = data.__data__;
2940
- if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
2941
- pairs.push([key, value]);
2942
- this.size = ++data.size;
2943
- return this;
2944
- }
2945
- data = this.__data__ = new MapCache(pairs);
2946
- }
2947
- data.set(key, value);
2948
- this.size = data.size;
2949
- return this;
2902
+ var baseGet = require_baseGet();
2903
+ function get2(object, path, defaultValue) {
2904
+ var result = object == null ? void 0 : baseGet(object, path);
2905
+ return result === void 0 ? defaultValue : result;
2950
2906
  }
2951
- module.exports = stackSet;
2907
+ module.exports = get2;
2952
2908
  }
2953
2909
  });
2954
2910
 
2955
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
2956
- var require_Stack = __commonJS({
2957
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports, module) {
2911
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js
2912
+ var require_isString = __commonJS({
2913
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"(exports, module) {
2958
2914
  "use strict";
2959
- var ListCache = require_ListCache();
2960
- var stackClear = require_stackClear();
2961
- var stackDelete = require_stackDelete();
2962
- var stackGet = require_stackGet();
2963
- var stackHas = require_stackHas();
2964
- var stackSet = require_stackSet();
2965
- function Stack(entries) {
2966
- var data = this.__data__ = new ListCache(entries);
2967
- this.size = data.size;
2915
+ var baseGetTag = require_baseGetTag();
2916
+ var isArray = require_isArray();
2917
+ var isObjectLike = require_isObjectLike();
2918
+ var stringTag = "[object String]";
2919
+ function isString2(value) {
2920
+ return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
2968
2921
  }
2969
- Stack.prototype.clear = stackClear;
2970
- Stack.prototype["delete"] = stackDelete;
2971
- Stack.prototype.get = stackGet;
2972
- Stack.prototype.has = stackHas;
2973
- Stack.prototype.set = stackSet;
2974
- module.exports = Stack;
2922
+ module.exports = isString2;
2975
2923
  }
2976
2924
  });
2977
2925
 
2978
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js
2979
- var require_assignMergeValue = __commonJS({
2980
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(exports, module) {
2926
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js
2927
+ var require_arrayAggregator = __commonJS({
2928
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js"(exports, module) {
2981
2929
  "use strict";
2982
- var baseAssignValue = require_baseAssignValue();
2983
- var eq = require_eq2();
2984
- function assignMergeValue(object, key, value) {
2985
- if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
2986
- baseAssignValue(object, key, value);
2930
+ function arrayAggregator(array, setter, iteratee, accumulator) {
2931
+ var index = -1, length = array == null ? 0 : array.length;
2932
+ while (++index < length) {
2933
+ var value = array[index];
2934
+ setter(accumulator, value, iteratee(value), array);
2987
2935
  }
2936
+ return accumulator;
2988
2937
  }
2989
- module.exports = assignMergeValue;
2938
+ module.exports = arrayAggregator;
2990
2939
  }
2991
2940
  });
2992
2941
 
@@ -3020,154 +2969,18 @@ var require_baseFor = __commonJS({
3020
2969
  }
3021
2970
  });
3022
2971
 
3023
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js
3024
- var require_cloneBuffer = __commonJS({
3025
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(exports, module) {
2972
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
2973
+ var require_baseTimes = __commonJS({
2974
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports, module) {
3026
2975
  "use strict";
3027
- var root = require_root();
3028
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
3029
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
3030
- var moduleExports = freeModule && freeModule.exports === freeExports;
3031
- var Buffer2 = moduleExports ? root.Buffer : void 0;
3032
- var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
3033
- function cloneBuffer(buffer, isDeep) {
3034
- if (isDeep) {
3035
- return buffer.slice();
2976
+ function baseTimes(n, iteratee) {
2977
+ var index = -1, result = Array(n);
2978
+ while (++index < n) {
2979
+ result[index] = iteratee(index);
3036
2980
  }
3037
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
3038
- buffer.copy(result);
3039
- return result;
3040
- }
3041
- module.exports = cloneBuffer;
3042
- }
3043
- });
3044
-
3045
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
3046
- var require_Uint8Array = __commonJS({
3047
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports, module) {
3048
- "use strict";
3049
- var root = require_root();
3050
- var Uint8Array2 = root.Uint8Array;
3051
- module.exports = Uint8Array2;
3052
- }
3053
- });
3054
-
3055
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js
3056
- var require_cloneArrayBuffer = __commonJS({
3057
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(exports, module) {
3058
- "use strict";
3059
- var Uint8Array2 = require_Uint8Array();
3060
- function cloneArrayBuffer(arrayBuffer) {
3061
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
3062
- new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
3063
2981
  return result;
3064
2982
  }
3065
- module.exports = cloneArrayBuffer;
3066
- }
3067
- });
3068
-
3069
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js
3070
- var require_cloneTypedArray = __commonJS({
3071
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(exports, module) {
3072
- "use strict";
3073
- var cloneArrayBuffer = require_cloneArrayBuffer();
3074
- function cloneTypedArray(typedArray, isDeep) {
3075
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
3076
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
3077
- }
3078
- module.exports = cloneTypedArray;
3079
- }
3080
- });
3081
-
3082
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js
3083
- var require_copyArray = __commonJS({
3084
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js"(exports, module) {
3085
- "use strict";
3086
- function copyArray(source, array) {
3087
- var index = -1, length = source.length;
3088
- array || (array = Array(length));
3089
- while (++index < length) {
3090
- array[index] = source[index];
3091
- }
3092
- return array;
3093
- }
3094
- module.exports = copyArray;
3095
- }
3096
- });
3097
-
3098
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js
3099
- var require_baseCreate = __commonJS({
3100
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(exports, module) {
3101
- "use strict";
3102
- var isObject = require_isObject();
3103
- var objectCreate = Object.create;
3104
- var baseCreate = /* @__PURE__ */ function() {
3105
- function object() {
3106
- }
3107
- return function(proto) {
3108
- if (!isObject(proto)) {
3109
- return {};
3110
- }
3111
- if (objectCreate) {
3112
- return objectCreate(proto);
3113
- }
3114
- object.prototype = proto;
3115
- var result = new object();
3116
- object.prototype = void 0;
3117
- return result;
3118
- };
3119
- }();
3120
- module.exports = baseCreate;
3121
- }
3122
- });
3123
-
3124
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
3125
- var require_overArg = __commonJS({
3126
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports, module) {
3127
- "use strict";
3128
- function overArg(func, transform) {
3129
- return function(arg) {
3130
- return func(transform(arg));
3131
- };
3132
- }
3133
- module.exports = overArg;
3134
- }
3135
- });
3136
-
3137
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js
3138
- var require_getPrototype = __commonJS({
3139
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(exports, module) {
3140
- "use strict";
3141
- var overArg = require_overArg();
3142
- var getPrototype = overArg(Object.getPrototypeOf, Object);
3143
- module.exports = getPrototype;
3144
- }
3145
- });
3146
-
3147
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
3148
- var require_isPrototype = __commonJS({
3149
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports, module) {
3150
- "use strict";
3151
- var objectProto = Object.prototype;
3152
- function isPrototype(value) {
3153
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
3154
- return value === proto;
3155
- }
3156
- module.exports = isPrototype;
3157
- }
3158
- });
3159
-
3160
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js
3161
- var require_initCloneObject = __commonJS({
3162
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(exports, module) {
3163
- "use strict";
3164
- var baseCreate = require_baseCreate();
3165
- var getPrototype = require_getPrototype();
3166
- var isPrototype = require_isPrototype();
3167
- function initCloneObject(object) {
3168
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
3169
- }
3170
- module.exports = initCloneObject;
2983
+ module.exports = baseTimes;
3171
2984
  }
3172
2985
  });
3173
2986
 
@@ -3203,44 +3016,6 @@ var require_isArguments = __commonJS({
3203
3016
  }
3204
3017
  });
3205
3018
 
3206
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
3207
- var require_isLength = __commonJS({
3208
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports, module) {
3209
- "use strict";
3210
- var MAX_SAFE_INTEGER = 9007199254740991;
3211
- function isLength(value) {
3212
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3213
- }
3214
- module.exports = isLength;
3215
- }
3216
- });
3217
-
3218
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
3219
- var require_isArrayLike = __commonJS({
3220
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports, module) {
3221
- "use strict";
3222
- var isFunction = require_isFunction();
3223
- var isLength = require_isLength();
3224
- function isArrayLike(value) {
3225
- return value != null && isLength(value.length) && !isFunction(value);
3226
- }
3227
- module.exports = isArrayLike;
3228
- }
3229
- });
3230
-
3231
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js
3232
- var require_isArrayLikeObject = __commonJS({
3233
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(exports, module) {
3234
- "use strict";
3235
- var isArrayLike = require_isArrayLike();
3236
- var isObjectLike = require_isObjectLike();
3237
- function isArrayLikeObject(value) {
3238
- return isObjectLike(value) && isArrayLike(value);
3239
- }
3240
- module.exports = isArrayLikeObject;
3241
- }
3242
- });
3243
-
3244
3019
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js
3245
3020
  var require_stubFalse = __commonJS({
3246
3021
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js"(exports, module) {
@@ -3268,31 +3043,15 @@ var require_isBuffer = __commonJS({
3268
3043
  }
3269
3044
  });
3270
3045
 
3271
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js
3272
- var require_isPlainObject = __commonJS({
3273
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(exports, module) {
3046
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js
3047
+ var require_isLength = __commonJS({
3048
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js"(exports, module) {
3274
3049
  "use strict";
3275
- var baseGetTag = require_baseGetTag();
3276
- var getPrototype = require_getPrototype();
3277
- var isObjectLike = require_isObjectLike();
3278
- var objectTag = "[object Object]";
3279
- var funcProto = Function.prototype;
3280
- var objectProto = Object.prototype;
3281
- var funcToString = funcProto.toString;
3282
- var hasOwnProperty = objectProto.hasOwnProperty;
3283
- var objectCtorString = funcToString.call(Object);
3284
- function isPlainObject(value) {
3285
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
3286
- return false;
3287
- }
3288
- var proto = getPrototype(value);
3289
- if (proto === null) {
3290
- return true;
3291
- }
3292
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
3293
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
3050
+ var MAX_SAFE_INTEGER = 9007199254740991;
3051
+ function isLength(value) {
3052
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
3294
3053
  }
3295
- module.exports = isPlainObject;
3054
+ module.exports = isLength;
3296
3055
  }
3297
3056
  });
3298
3057
 
@@ -3377,534 +3136,67 @@ var require_nodeUtil = __commonJS({
3377
3136
  var require_isTypedArray = __commonJS({
3378
3137
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js"(exports, module) {
3379
3138
  "use strict";
3380
- var baseIsTypedArray = require_baseIsTypedArray();
3381
- var baseUnary = require_baseUnary();
3382
- var nodeUtil = require_nodeUtil();
3383
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
3384
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3385
- module.exports = isTypedArray;
3386
- }
3387
- });
3388
-
3389
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js
3390
- var require_safeGet = __commonJS({
3391
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js"(exports, module) {
3392
- "use strict";
3393
- function safeGet(object, key) {
3394
- if (key === "constructor" && typeof object[key] === "function") {
3395
- return;
3396
- }
3397
- if (key == "__proto__") {
3398
- return;
3399
- }
3400
- return object[key];
3401
- }
3402
- module.exports = safeGet;
3403
- }
3404
- });
3405
-
3406
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js
3407
- var require_copyObject = __commonJS({
3408
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js"(exports, module) {
3409
- "use strict";
3410
- var assignValue = require_assignValue();
3411
- var baseAssignValue = require_baseAssignValue();
3412
- function copyObject(source, props, object, customizer) {
3413
- var isNew = !object;
3414
- object || (object = {});
3415
- var index = -1, length = props.length;
3416
- while (++index < length) {
3417
- var key = props[index];
3418
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
3419
- if (newValue === void 0) {
3420
- newValue = source[key];
3421
- }
3422
- if (isNew) {
3423
- baseAssignValue(object, key, newValue);
3424
- } else {
3425
- assignValue(object, key, newValue);
3426
- }
3427
- }
3428
- return object;
3429
- }
3430
- module.exports = copyObject;
3431
- }
3432
- });
3433
-
3434
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js
3435
- var require_baseTimes = __commonJS({
3436
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(exports, module) {
3437
- "use strict";
3438
- function baseTimes(n, iteratee) {
3439
- var index = -1, result = Array(n);
3440
- while (++index < n) {
3441
- result[index] = iteratee(index);
3442
- }
3443
- return result;
3444
- }
3445
- module.exports = baseTimes;
3446
- }
3447
- });
3448
-
3449
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
3450
- var require_arrayLikeKeys = __commonJS({
3451
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
3452
- "use strict";
3453
- var baseTimes = require_baseTimes();
3454
- var isArguments = require_isArguments();
3455
- var isArray = require_isArray();
3456
- var isBuffer = require_isBuffer();
3457
- var isIndex = require_isIndex();
3458
- var isTypedArray = require_isTypedArray();
3459
- var objectProto = Object.prototype;
3460
- var hasOwnProperty = objectProto.hasOwnProperty;
3461
- function arrayLikeKeys(value, inherited) {
3462
- var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
3463
- for (var key in value) {
3464
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
3465
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3466
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3467
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
3468
- isIndex(key, length)))) {
3469
- result.push(key);
3470
- }
3471
- }
3472
- return result;
3473
- }
3474
- module.exports = arrayLikeKeys;
3475
- }
3476
- });
3477
-
3478
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js
3479
- var require_nativeKeysIn = __commonJS({
3480
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(exports, module) {
3481
- "use strict";
3482
- function nativeKeysIn(object) {
3483
- var result = [];
3484
- if (object != null) {
3485
- for (var key in Object(object)) {
3486
- result.push(key);
3487
- }
3488
- }
3489
- return result;
3490
- }
3491
- module.exports = nativeKeysIn;
3492
- }
3493
- });
3494
-
3495
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js
3496
- var require_baseKeysIn = __commonJS({
3497
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(exports, module) {
3498
- "use strict";
3499
- var isObject = require_isObject();
3500
- var isPrototype = require_isPrototype();
3501
- var nativeKeysIn = require_nativeKeysIn();
3502
- var objectProto = Object.prototype;
3503
- var hasOwnProperty = objectProto.hasOwnProperty;
3504
- function baseKeysIn(object) {
3505
- if (!isObject(object)) {
3506
- return nativeKeysIn(object);
3507
- }
3508
- var isProto = isPrototype(object), result = [];
3509
- for (var key in object) {
3510
- if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
3511
- result.push(key);
3512
- }
3513
- }
3514
- return result;
3515
- }
3516
- module.exports = baseKeysIn;
3517
- }
3518
- });
3519
-
3520
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js
3521
- var require_keysIn = __commonJS({
3522
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js"(exports, module) {
3523
- "use strict";
3524
- var arrayLikeKeys = require_arrayLikeKeys();
3525
- var baseKeysIn = require_baseKeysIn();
3526
- var isArrayLike = require_isArrayLike();
3527
- function keysIn(object) {
3528
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
3529
- }
3530
- module.exports = keysIn;
3531
- }
3532
- });
3533
-
3534
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js
3535
- var require_toPlainObject = __commonJS({
3536
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(exports, module) {
3537
- "use strict";
3538
- var copyObject = require_copyObject();
3539
- var keysIn = require_keysIn();
3540
- function toPlainObject(value) {
3541
- return copyObject(value, keysIn(value));
3542
- }
3543
- module.exports = toPlainObject;
3544
- }
3545
- });
3546
-
3547
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js
3548
- var require_baseMergeDeep = __commonJS({
3549
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(exports, module) {
3550
- "use strict";
3551
- var assignMergeValue = require_assignMergeValue();
3552
- var cloneBuffer = require_cloneBuffer();
3553
- var cloneTypedArray = require_cloneTypedArray();
3554
- var copyArray = require_copyArray();
3555
- var initCloneObject = require_initCloneObject();
3556
- var isArguments = require_isArguments();
3557
- var isArray = require_isArray();
3558
- var isArrayLikeObject = require_isArrayLikeObject();
3559
- var isBuffer = require_isBuffer();
3560
- var isFunction = require_isFunction();
3561
- var isObject = require_isObject();
3562
- var isPlainObject = require_isPlainObject();
3563
- var isTypedArray = require_isTypedArray();
3564
- var safeGet = require_safeGet();
3565
- var toPlainObject = require_toPlainObject();
3566
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
3567
- var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
3568
- if (stacked) {
3569
- assignMergeValue(object, key, stacked);
3570
- return;
3571
- }
3572
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
3573
- var isCommon = newValue === void 0;
3574
- if (isCommon) {
3575
- var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
3576
- newValue = srcValue;
3577
- if (isArr || isBuff || isTyped) {
3578
- if (isArray(objValue)) {
3579
- newValue = objValue;
3580
- } else if (isArrayLikeObject(objValue)) {
3581
- newValue = copyArray(objValue);
3582
- } else if (isBuff) {
3583
- isCommon = false;
3584
- newValue = cloneBuffer(srcValue, true);
3585
- } else if (isTyped) {
3586
- isCommon = false;
3587
- newValue = cloneTypedArray(srcValue, true);
3588
- } else {
3589
- newValue = [];
3590
- }
3591
- } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
3592
- newValue = objValue;
3593
- if (isArguments(objValue)) {
3594
- newValue = toPlainObject(objValue);
3595
- } else if (!isObject(objValue) || isFunction(objValue)) {
3596
- newValue = initCloneObject(srcValue);
3597
- }
3598
- } else {
3599
- isCommon = false;
3600
- }
3601
- }
3602
- if (isCommon) {
3603
- stack.set(srcValue, newValue);
3604
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
3605
- stack["delete"](srcValue);
3606
- }
3607
- assignMergeValue(object, key, newValue);
3608
- }
3609
- module.exports = baseMergeDeep;
3610
- }
3611
- });
3612
-
3613
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js
3614
- var require_baseMerge = __commonJS({
3615
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(exports, module) {
3616
- "use strict";
3617
- var Stack = require_Stack();
3618
- var assignMergeValue = require_assignMergeValue();
3619
- var baseFor = require_baseFor();
3620
- var baseMergeDeep = require_baseMergeDeep();
3621
- var isObject = require_isObject();
3622
- var keysIn = require_keysIn();
3623
- var safeGet = require_safeGet();
3624
- function baseMerge(object, source, srcIndex, customizer, stack) {
3625
- if (object === source) {
3626
- return;
3627
- }
3628
- baseFor(source, function(srcValue, key) {
3629
- stack || (stack = new Stack());
3630
- if (isObject(srcValue)) {
3631
- baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
3632
- } else {
3633
- var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
3634
- if (newValue === void 0) {
3635
- newValue = srcValue;
3636
- }
3637
- assignMergeValue(object, key, newValue);
3638
- }
3639
- }, keysIn);
3640
- }
3641
- module.exports = baseMerge;
3642
- }
3643
- });
3644
-
3645
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
3646
- var require_identity = __commonJS({
3647
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports, module) {
3648
- "use strict";
3649
- function identity(value) {
3650
- return value;
3651
- }
3652
- module.exports = identity;
3653
- }
3654
- });
3655
-
3656
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js
3657
- var require_apply = __commonJS({
3658
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js"(exports, module) {
3659
- "use strict";
3660
- function apply(func, thisArg, args) {
3661
- switch (args.length) {
3662
- case 0:
3663
- return func.call(thisArg);
3664
- case 1:
3665
- return func.call(thisArg, args[0]);
3666
- case 2:
3667
- return func.call(thisArg, args[0], args[1]);
3668
- case 3:
3669
- return func.call(thisArg, args[0], args[1], args[2]);
3670
- }
3671
- return func.apply(thisArg, args);
3672
- }
3673
- module.exports = apply;
3674
- }
3675
- });
3676
-
3677
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js
3678
- var require_overRest = __commonJS({
3679
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js"(exports, module) {
3680
- "use strict";
3681
- var apply = require_apply();
3682
- var nativeMax = Math.max;
3683
- function overRest(func, start, transform) {
3684
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
3685
- return function() {
3686
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
3687
- while (++index < length) {
3688
- array[index] = args[start + index];
3689
- }
3690
- index = -1;
3691
- var otherArgs = Array(start + 1);
3692
- while (++index < start) {
3693
- otherArgs[index] = args[index];
3694
- }
3695
- otherArgs[start] = transform(array);
3696
- return apply(func, this, otherArgs);
3697
- };
3698
- }
3699
- module.exports = overRest;
3700
- }
3701
- });
3702
-
3703
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js
3704
- var require_constant = __commonJS({
3705
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"(exports, module) {
3706
- "use strict";
3707
- function constant(value) {
3708
- return function() {
3709
- return value;
3710
- };
3711
- }
3712
- module.exports = constant;
3713
- }
3714
- });
3715
-
3716
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js
3717
- var require_baseSetToString = __commonJS({
3718
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(exports, module) {
3719
- "use strict";
3720
- var constant = require_constant();
3721
- var defineProperty = require_defineProperty();
3722
- var identity = require_identity();
3723
- var baseSetToString = !defineProperty ? identity : function(func, string) {
3724
- return defineProperty(func, "toString", {
3725
- "configurable": true,
3726
- "enumerable": false,
3727
- "value": constant(string),
3728
- "writable": true
3729
- });
3730
- };
3731
- module.exports = baseSetToString;
3732
- }
3733
- });
3734
-
3735
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js
3736
- var require_shortOut = __commonJS({
3737
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js"(exports, module) {
3738
- "use strict";
3739
- var HOT_COUNT = 800;
3740
- var HOT_SPAN = 16;
3741
- var nativeNow = Date.now;
3742
- function shortOut(func) {
3743
- var count = 0, lastCalled = 0;
3744
- return function() {
3745
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
3746
- lastCalled = stamp;
3747
- if (remaining > 0) {
3748
- if (++count >= HOT_COUNT) {
3749
- return arguments[0];
3750
- }
3751
- } else {
3752
- count = 0;
3753
- }
3754
- return func.apply(void 0, arguments);
3755
- };
3756
- }
3757
- module.exports = shortOut;
3758
- }
3759
- });
3760
-
3761
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js
3762
- var require_setToString = __commonJS({
3763
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js"(exports, module) {
3764
- "use strict";
3765
- var baseSetToString = require_baseSetToString();
3766
- var shortOut = require_shortOut();
3767
- var setToString = shortOut(baseSetToString);
3768
- module.exports = setToString;
3769
- }
3770
- });
3771
-
3772
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js
3773
- var require_baseRest = __commonJS({
3774
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"(exports, module) {
3775
- "use strict";
3776
- var identity = require_identity();
3777
- var overRest = require_overRest();
3778
- var setToString = require_setToString();
3779
- function baseRest(func, start) {
3780
- return setToString(overRest(func, start, identity), func + "");
3781
- }
3782
- module.exports = baseRest;
3783
- }
3784
- });
3785
-
3786
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js
3787
- var require_isIterateeCall = __commonJS({
3788
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(exports, module) {
3789
- "use strict";
3790
- var eq = require_eq2();
3791
- var isArrayLike = require_isArrayLike();
3792
- var isIndex = require_isIndex();
3793
- var isObject = require_isObject();
3794
- function isIterateeCall(value, index, object) {
3795
- if (!isObject(object)) {
3796
- return false;
3797
- }
3798
- var type = typeof index;
3799
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
3800
- return eq(object[index], value);
3801
- }
3802
- return false;
3803
- }
3804
- module.exports = isIterateeCall;
3805
- }
3806
- });
3807
-
3808
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js
3809
- var require_createAssigner = __commonJS({
3810
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(exports, module) {
3811
- "use strict";
3812
- var baseRest = require_baseRest();
3813
- var isIterateeCall = require_isIterateeCall();
3814
- function createAssigner(assigner) {
3815
- return baseRest(function(object, sources) {
3816
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
3817
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
3818
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
3819
- customizer = length < 3 ? void 0 : customizer;
3820
- length = 1;
3821
- }
3822
- object = Object(object);
3823
- while (++index < length) {
3824
- var source = sources[index];
3825
- if (source) {
3826
- assigner(object, source, index, customizer);
3827
- }
3828
- }
3829
- return object;
3830
- });
3831
- }
3832
- module.exports = createAssigner;
3833
- }
3834
- });
3835
-
3836
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js
3837
- var require_merge = __commonJS({
3838
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js"(exports, module) {
3839
- "use strict";
3840
- var baseMerge = require_baseMerge();
3841
- var createAssigner = require_createAssigner();
3842
- var merge3 = createAssigner(function(object, source, srcIndex) {
3843
- baseMerge(object, source, srcIndex);
3844
- });
3845
- module.exports = merge3;
3846
- }
3847
- });
3848
-
3849
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js
3850
- var require_baseGet = __commonJS({
3851
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js"(exports, module) {
3852
- "use strict";
3853
- var castPath = require_castPath();
3854
- var toKey = require_toKey();
3855
- function baseGet(object, path) {
3856
- path = castPath(path, object);
3857
- var index = 0, length = path.length;
3858
- while (object != null && index < length) {
3859
- object = object[toKey(path[index++])];
3860
- }
3861
- return index && index == length ? object : void 0;
3862
- }
3863
- module.exports = baseGet;
3139
+ var baseIsTypedArray = require_baseIsTypedArray();
3140
+ var baseUnary = require_baseUnary();
3141
+ var nodeUtil = require_nodeUtil();
3142
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
3143
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
3144
+ module.exports = isTypedArray;
3864
3145
  }
3865
3146
  });
3866
3147
 
3867
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js
3868
- var require_get = __commonJS({
3869
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"(exports, module) {
3148
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js
3149
+ var require_arrayLikeKeys = __commonJS({
3150
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(exports, module) {
3870
3151
  "use strict";
3871
- var baseGet = require_baseGet();
3872
- function get3(object, path, defaultValue) {
3873
- var result = object == null ? void 0 : baseGet(object, path);
3874
- return result === void 0 ? defaultValue : result;
3152
+ var baseTimes = require_baseTimes();
3153
+ var isArguments = require_isArguments();
3154
+ var isArray = require_isArray();
3155
+ var isBuffer = require_isBuffer();
3156
+ var isIndex = require_isIndex();
3157
+ var isTypedArray = require_isTypedArray();
3158
+ var objectProto = Object.prototype;
3159
+ var hasOwnProperty = objectProto.hasOwnProperty;
3160
+ function arrayLikeKeys(value, inherited) {
3161
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
3162
+ for (var key in value) {
3163
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
3164
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
3165
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
3166
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
3167
+ isIndex(key, length)))) {
3168
+ result.push(key);
3169
+ }
3170
+ }
3171
+ return result;
3875
3172
  }
3876
- module.exports = get3;
3173
+ module.exports = arrayLikeKeys;
3877
3174
  }
3878
3175
  });
3879
3176
 
3880
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js
3881
- var require_isString = __commonJS({
3882
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js"(exports, module) {
3177
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js
3178
+ var require_isPrototype = __commonJS({
3179
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js"(exports, module) {
3883
3180
  "use strict";
3884
- var baseGetTag = require_baseGetTag();
3885
- var isArray = require_isArray();
3886
- var isObjectLike = require_isObjectLike();
3887
- var stringTag = "[object String]";
3888
- function isString2(value) {
3889
- return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
3181
+ var objectProto = Object.prototype;
3182
+ function isPrototype(value) {
3183
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
3184
+ return value === proto;
3890
3185
  }
3891
- module.exports = isString2;
3186
+ module.exports = isPrototype;
3892
3187
  }
3893
3188
  });
3894
3189
 
3895
- // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js
3896
- var require_arrayAggregator = __commonJS({
3897
- "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayAggregator.js"(exports, module) {
3190
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js
3191
+ var require_overArg = __commonJS({
3192
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js"(exports, module) {
3898
3193
  "use strict";
3899
- function arrayAggregator(array, setter, iteratee, accumulator) {
3900
- var index = -1, length = array == null ? 0 : array.length;
3901
- while (++index < length) {
3902
- var value = array[index];
3903
- setter(accumulator, value, iteratee(value), array);
3904
- }
3905
- return accumulator;
3194
+ function overArg(func, transform) {
3195
+ return function(arg) {
3196
+ return func(transform(arg));
3197
+ };
3906
3198
  }
3907
- module.exports = arrayAggregator;
3199
+ module.exports = overArg;
3908
3200
  }
3909
3201
  });
3910
3202
 
@@ -3942,6 +3234,19 @@ var require_baseKeys = __commonJS({
3942
3234
  }
3943
3235
  });
3944
3236
 
3237
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js
3238
+ var require_isArrayLike = __commonJS({
3239
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"(exports, module) {
3240
+ "use strict";
3241
+ var isFunction = require_isFunction();
3242
+ var isLength = require_isLength();
3243
+ function isArrayLike(value) {
3244
+ return value != null && isLength(value.length) && !isFunction(value);
3245
+ }
3246
+ module.exports = isArrayLike;
3247
+ }
3248
+ });
3249
+
3945
3250
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js
3946
3251
  var require_keys = __commonJS({
3947
3252
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js"(exports, module) {
@@ -4021,6 +3326,104 @@ var require_baseAggregator = __commonJS({
4021
3326
  }
4022
3327
  });
4023
3328
 
3329
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js
3330
+ var require_stackClear = __commonJS({
3331
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) {
3332
+ "use strict";
3333
+ var ListCache = require_ListCache();
3334
+ function stackClear() {
3335
+ this.__data__ = new ListCache();
3336
+ this.size = 0;
3337
+ }
3338
+ module.exports = stackClear;
3339
+ }
3340
+ });
3341
+
3342
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js
3343
+ var require_stackDelete = __commonJS({
3344
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) {
3345
+ "use strict";
3346
+ function stackDelete(key) {
3347
+ var data = this.__data__, result = data["delete"](key);
3348
+ this.size = data.size;
3349
+ return result;
3350
+ }
3351
+ module.exports = stackDelete;
3352
+ }
3353
+ });
3354
+
3355
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js
3356
+ var require_stackGet = __commonJS({
3357
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) {
3358
+ "use strict";
3359
+ function stackGet(key) {
3360
+ return this.__data__.get(key);
3361
+ }
3362
+ module.exports = stackGet;
3363
+ }
3364
+ });
3365
+
3366
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js
3367
+ var require_stackHas = __commonJS({
3368
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) {
3369
+ "use strict";
3370
+ function stackHas(key) {
3371
+ return this.__data__.has(key);
3372
+ }
3373
+ module.exports = stackHas;
3374
+ }
3375
+ });
3376
+
3377
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js
3378
+ var require_stackSet = __commonJS({
3379
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports, module) {
3380
+ "use strict";
3381
+ var ListCache = require_ListCache();
3382
+ var Map2 = require_Map();
3383
+ var MapCache = require_MapCache();
3384
+ var LARGE_ARRAY_SIZE = 200;
3385
+ function stackSet(key, value) {
3386
+ var data = this.__data__;
3387
+ if (data instanceof ListCache) {
3388
+ var pairs = data.__data__;
3389
+ if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
3390
+ pairs.push([key, value]);
3391
+ this.size = ++data.size;
3392
+ return this;
3393
+ }
3394
+ data = this.__data__ = new MapCache(pairs);
3395
+ }
3396
+ data.set(key, value);
3397
+ this.size = data.size;
3398
+ return this;
3399
+ }
3400
+ module.exports = stackSet;
3401
+ }
3402
+ });
3403
+
3404
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js
3405
+ var require_Stack = __commonJS({
3406
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports, module) {
3407
+ "use strict";
3408
+ var ListCache = require_ListCache();
3409
+ var stackClear = require_stackClear();
3410
+ var stackDelete = require_stackDelete();
3411
+ var stackGet = require_stackGet();
3412
+ var stackHas = require_stackHas();
3413
+ var stackSet = require_stackSet();
3414
+ function Stack(entries) {
3415
+ var data = this.__data__ = new ListCache(entries);
3416
+ this.size = data.size;
3417
+ }
3418
+ Stack.prototype.clear = stackClear;
3419
+ Stack.prototype["delete"] = stackDelete;
3420
+ Stack.prototype.get = stackGet;
3421
+ Stack.prototype.has = stackHas;
3422
+ Stack.prototype.set = stackSet;
3423
+ module.exports = Stack;
3424
+ }
3425
+ });
3426
+
4024
3427
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js
4025
3428
  var require_setCacheAdd = __commonJS({
4026
3429
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js"(exports, module) {
@@ -4149,6 +3552,16 @@ var require_equalArrays = __commonJS({
4149
3552
  }
4150
3553
  });
4151
3554
 
3555
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js
3556
+ var require_Uint8Array = __commonJS({
3557
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(exports, module) {
3558
+ "use strict";
3559
+ var root = require_root();
3560
+ var Uint8Array2 = root.Uint8Array;
3561
+ module.exports = Uint8Array2;
3562
+ }
3563
+ });
3564
+
4152
3565
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js
4153
3566
  var require_mapToArray = __commonJS({
4154
3567
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(exports, module) {
@@ -4733,7 +4146,7 @@ var require_baseMatchesProperty = __commonJS({
4733
4146
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMatchesProperty.js"(exports, module) {
4734
4147
  "use strict";
4735
4148
  var baseIsEqual = require_baseIsEqual();
4736
- var get3 = require_get();
4149
+ var get2 = require_get();
4737
4150
  var hasIn = require_hasIn();
4738
4151
  var isKey = require_isKey();
4739
4152
  var isStrictComparable = require_isStrictComparable();
@@ -4746,7 +4159,7 @@ var require_baseMatchesProperty = __commonJS({
4746
4159
  return matchesStrictComparable(toKey(path), srcValue);
4747
4160
  }
4748
4161
  return function(object) {
4749
- var objValue = get3(object, path);
4162
+ var objValue = get2(object, path);
4750
4163
  return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
4751
4164
  };
4752
4165
  }
@@ -4754,6 +4167,17 @@ var require_baseMatchesProperty = __commonJS({
4754
4167
  }
4755
4168
  });
4756
4169
 
4170
+ // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js
4171
+ var require_identity = __commonJS({
4172
+ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js"(exports, module) {
4173
+ "use strict";
4174
+ function identity(value) {
4175
+ return value;
4176
+ }
4177
+ module.exports = identity;
4178
+ }
4179
+ });
4180
+
4757
4181
  // ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js
4758
4182
  var require_baseProperty = __commonJS({
4759
4183
  "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseProperty.js"(exports, module) {
@@ -4863,7 +4287,7 @@ import { Command } from "commander";
4863
4287
 
4864
4288
  // package.json
4865
4289
  var description = "A tool for releasing front-end projects, supporting multiple release modes and configurations, simplifying the release process and improving efficiency.";
4866
- var version = "2.3.5";
4290
+ var version = "3.0.0";
4867
4291
 
4868
4292
  // src/cli.ts
4869
4293
  var import_semver = __toESM(require_semver2(), 1);
@@ -4890,10 +4314,7 @@ function tuple(plugin, ...args) {
4890
4314
  import { AsyncExecutor } from "@qlover/fe-corekit";
4891
4315
 
4892
4316
  // src/implments/ReleaseContext.ts
4893
- var import_merge = __toESM(require_merge(), 1);
4894
4317
  var import_get = __toESM(require_get(), 1);
4895
- import { FeScriptContext } from "@qlover/scripts-context";
4896
- import { Env } from "@qlover/env-loader";
4897
4318
 
4898
4319
  // src/defaults.ts
4899
4320
  var DEFAULT_SOURCE_BRANCH = "master";
@@ -4907,52 +4328,40 @@ var WORKSPACE_VERSION_SEPARATOR = "@";
4907
4328
  var BATCH_PR_BODY = "\n## ${name} ${version}\n${changelog}\n";
4908
4329
 
4909
4330
  // src/implments/ReleaseContext.ts
4910
- var DEFAULT_ENV_ORDER = [".env.local", ".env"];
4911
- var ReleaseContext = class extends FeScriptContext {
4912
- _env;
4913
- /**
4914
- * Shared Config
4915
- */
4916
- shared;
4917
- constructor(context) {
4918
- super(context);
4919
- this._env = Env.searchEnv({
4920
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
4921
- logger: this.logger,
4922
- preloadList: this.feConfig.envOrder || DEFAULT_ENV_ORDER
4923
- });
4924
- this.shared = Object.assign(
4925
- {},
4926
- this.feConfig.release,
4927
- this.getDefaultShreadOptions(context.shared)
4928
- );
4929
- }
4930
- getDefaultShreadOptions(props) {
4931
- return {
4932
- rootPath: process.cwd(),
4933
- // use currentBranch by default
4934
- sourceBranch: this._env.get("FE_RELEASE_BRANCH") || this._env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH,
4935
- releaseEnv: this._env.get("FE_RELEASE_ENV") || this._env.get("NODE_ENV") || "development",
4936
- ...props
4937
- };
4331
+ import {
4332
+ ScriptContext
4333
+ } from "@qlover/scripts-context";
4334
+ var ReleaseContext = class extends ScriptContext {
4335
+ constructor(name, options) {
4336
+ super(name, options);
4337
+ if (!this.options.rootPath) {
4338
+ this.setOptions({ rootPath: process.cwd() });
4339
+ }
4340
+ if (!this.options.sourceBranch) {
4341
+ this.setOptions({
4342
+ sourceBranch: this.env.get("FE_RELEASE_BRANCH") || this.env.get("FE_RELEASE_SOURCE_BRANCH") || DEFAULT_SOURCE_BRANCH
4343
+ });
4344
+ }
4345
+ if (!this.options.releaseEnv) {
4346
+ this.setOptions({
4347
+ releaseEnv: this.env.get("FE_RELEASE_ENV") || this.env.get("NODE_ENV") || "development"
4348
+ });
4349
+ }
4938
4350
  }
4939
4351
  get rootPath() {
4940
- return this.shared.rootPath;
4352
+ return this.getOptions("rootPath");
4941
4353
  }
4942
4354
  get sourceBranch() {
4943
- return this.shared.sourceBranch;
4355
+ return this.getOptions("sourceBranch");
4944
4356
  }
4945
4357
  get releaseEnv() {
4946
- return this.shared.releaseEnv;
4947
- }
4948
- get env() {
4949
- return this._env;
4358
+ return this.getOptions("releaseEnv");
4950
4359
  }
4951
4360
  get workspaces() {
4952
- return this.getConfig("workspaces.workspaces");
4361
+ return this.getOptions("workspaces.workspaces");
4953
4362
  }
4954
4363
  get workspace() {
4955
- return this.getConfig("workspaces.workspace");
4364
+ return this.getOptions("workspaces.workspace");
4956
4365
  }
4957
4366
  setWorkspaces(workspaces) {
4958
4367
  this.options.workspaces = {
@@ -4960,15 +4369,6 @@ var ReleaseContext = class extends FeScriptContext {
4960
4369
  workspaces
4961
4370
  };
4962
4371
  }
4963
- setConfig(config) {
4964
- this.options = (0, import_merge.default)(this.options, config);
4965
- }
4966
- getConfig(key, defaultValue) {
4967
- return (0, import_get.default)(this.options, key, defaultValue);
4968
- }
4969
- setShared(shared) {
4970
- this.shared = (0, import_merge.default)(this.shared, shared);
4971
- }
4972
4372
  getPkg(key, defaultValue) {
4973
4373
  const packageJson = this.workspace?.packageJson;
4974
4374
  if (!packageJson) {
@@ -4981,7 +4381,7 @@ var ReleaseContext = class extends FeScriptContext {
4981
4381
  }
4982
4382
  getTemplateContext() {
4983
4383
  return {
4984
- ...this.shared,
4384
+ ...this.getOptions(),
4985
4385
  ...this.workspace,
4986
4386
  publishPath: this.workspace?.path || "",
4987
4387
  // deprecated
@@ -5006,6 +4406,7 @@ var ReleaseContext = class extends FeScriptContext {
5006
4406
  };
5007
4407
 
5008
4408
  // src/implments/ReleaseParams.ts
4409
+ import { Shell } from "@qlover/scripts-context";
5009
4410
  var DEFAULT_RELEASE_CONFIG = {
5010
4411
  maxWorkspace: MAX_WORKSPACE,
5011
4412
  multiWorkspaceSeparator: MULTI_WORKSPACE_SEPARATOR,
@@ -5014,8 +4415,7 @@ var DEFAULT_RELEASE_CONFIG = {
5014
4415
  batchTagName: "batch-${length}-packages-${timestamp}"
5015
4416
  };
5016
4417
  var ReleaseParams = class {
5017
- constructor(shell, logger, config = {}) {
5018
- this.shell = shell;
4418
+ constructor(logger, config = {}) {
5019
4419
  this.logger = logger;
5020
4420
  this.config = {
5021
4421
  ...DEFAULT_RELEASE_CONFIG,
@@ -5029,7 +4429,7 @@ var ReleaseParams = class {
5029
4429
  throw new Error("Branch name template is not a string");
5030
4430
  }
5031
4431
  this.logger.debug("Release Branch template is:", branchNameTpl);
5032
- return this.shell.format(branchNameTpl, {
4432
+ return Shell.format(branchNameTpl, {
5033
4433
  pkgName: releaseName,
5034
4434
  releaseName,
5035
4435
  tagName,
@@ -5043,7 +4443,7 @@ var ReleaseParams = class {
5043
4443
  throw new Error("Branch name template is not a string");
5044
4444
  }
5045
4445
  this.logger.debug("Release Batch Branch template is:", branchNameTpl);
5046
- return this.shell.format(branchNameTpl, {
4446
+ return Shell.format(branchNameTpl, {
5047
4447
  pkgName: releaseName,
5048
4448
  releaseName,
5049
4449
  tagName,
@@ -5067,7 +4467,7 @@ var ReleaseParams = class {
5067
4467
  return composeWorkspaces[0].version;
5068
4468
  }
5069
4469
  const { batchTagName } = this.config;
5070
- return this.shell.format(batchTagName, {
4470
+ return Shell.format(batchTagName, {
5071
4471
  length: composeWorkspaces.length,
5072
4472
  timestamp: Date.now()
5073
4473
  });
@@ -5088,7 +4488,7 @@ var ReleaseParams = class {
5088
4488
  }
5089
4489
  getPRTitle(releaseBranchParams, context) {
5090
4490
  const prTitleTpl = this.config.PRTitle || DEFAULT_PR_TITLE;
5091
- return this.shell.format(prTitleTpl, {
4491
+ return Shell.format(prTitleTpl, {
5092
4492
  ...context,
5093
4493
  tagName: releaseBranchParams.tagName,
5094
4494
  pkgName: releaseBranchParams.releaseBranch
@@ -5103,7 +4503,7 @@ var ReleaseParams = class {
5103
4503
  getPRBody(composeWorkspaces, releaseBranchParams, context) {
5104
4504
  const PRBodyTpl = this.config.PRBody;
5105
4505
  const changelog = composeWorkspaces.length > 1 ? composeWorkspaces.map((workspace) => {
5106
- return this.shell.format(
4506
+ return Shell.format(
5107
4507
  BATCH_PR_BODY,
5108
4508
  workspace
5109
4509
  );
@@ -5112,7 +4512,7 @@ var ReleaseParams = class {
5112
4512
  const tagName = composeWorkspaces.length === 1 ? releaseBranchParams.tagName : composeWorkspaces.map(
5113
4513
  (workspace) => `${workspace.name}${workspaceVersionSeparator}${workspace.version}`
5114
4514
  ).join(" ");
5115
- return this.shell.format(PRBodyTpl, {
4515
+ return Shell.format(PRBodyTpl, {
5116
4516
  ...context,
5117
4517
  tagName,
5118
4518
  changelog
@@ -5121,6 +4521,7 @@ var ReleaseParams = class {
5121
4521
  };
5122
4522
 
5123
4523
  // src/plugins/githubPR/GithubManager.ts
4524
+ import { Shell as Shell2 } from "@qlover/scripts-context";
5124
4525
  import { Octokit } from "@octokit/rest";
5125
4526
  var GithubManager = class {
5126
4527
  constructor(context) {
@@ -5128,7 +4529,7 @@ var GithubManager = class {
5128
4529
  }
5129
4530
  _octokit = null;
5130
4531
  getGitHubUserInfo() {
5131
- const { authorName, repoName } = this.context.shared;
4532
+ const { authorName, repoName } = this.context.getOptions();
5132
4533
  if (!authorName || !repoName) {
5133
4534
  throw new Error("Author name or repo name is not set");
5134
4535
  }
@@ -5138,7 +4539,7 @@ var GithubManager = class {
5138
4539
  };
5139
4540
  }
5140
4541
  getToken() {
5141
- const { tokenRef = "GITHUB_TOKEN" } = this.context.getConfig("githubPR");
4542
+ const { tokenRef = "GITHUB_TOKEN" } = this.context.getOptions("githubPR");
5142
4543
  const token = this.context.env.get(tokenRef);
5143
4544
  if (!token) {
5144
4545
  throw new Error(
@@ -5151,7 +4552,7 @@ var GithubManager = class {
5151
4552
  if (this._octokit) {
5152
4553
  return this._octokit;
5153
4554
  }
5154
- const { timeout } = this.context.getConfig("githubPR");
4555
+ const { timeout } = this.context.getOptions("githubPR");
5155
4556
  const options = {
5156
4557
  auth: this.getToken(),
5157
4558
  request: {
@@ -5173,7 +4574,7 @@ var GithubManager = class {
5173
4574
  * @default `squash`
5174
4575
  */
5175
4576
  get autoMergeType() {
5176
- return this.context.shared.autoMergeType || DEFAULT_AUTO_MERGE_TYPE;
4577
+ return this.context.getOptions().autoMergeType || DEFAULT_AUTO_MERGE_TYPE;
5177
4578
  }
5178
4579
  /**
5179
4580
  * Dry run PR number
@@ -5181,7 +4582,7 @@ var GithubManager = class {
5181
4582
  * @default `999999`
5182
4583
  */
5183
4584
  get dryRunPRNumber() {
5184
- return this.context.getConfig("githubPR.dryRunPRNumber", "999999");
4585
+ return this.context.getOptions("githubPR.dryRunPRNumber", "999999");
5185
4586
  }
5186
4587
  /**
5187
4588
  * Auto merge release PR
@@ -5189,7 +4590,7 @@ var GithubManager = class {
5189
4590
  * @default `false`
5190
4591
  */
5191
4592
  get autoMergeReleasePR() {
5192
- return this.context.shared.autoMergeReleasePR || DEFAULT_AUTO_MERGE_RELEASE_PR;
4593
+ return this.context.getOptions("autoMergeReleasePR") || DEFAULT_AUTO_MERGE_RELEASE_PR;
5193
4594
  }
5194
4595
  /**
5195
4596
  * Automatically merges a pull request.
@@ -5204,7 +4605,7 @@ var GithubManager = class {
5204
4605
  }
5205
4606
  const mergeMethod = this.autoMergeType;
5206
4607
  if (this.context.dryRun) {
5207
- const { repoName, authorName } = this.context.shared;
4608
+ const { repoName, authorName } = this.context.getOptions();
5208
4609
  this.logger.info(
5209
4610
  `[DRY RUN] Would merge PR #${prNumber} with method '${mergeMethod}' in repo ${authorName}/${repoName}, branch ${releaseBranch}`
5210
4611
  );
@@ -5269,7 +4670,7 @@ var GithubManager = class {
5269
4670
  * @throws If the label is not valid or if the creation fails.
5270
4671
  */
5271
4672
  async createReleasePRLabel() {
5272
- const label = this.context.shared.label;
4673
+ const label = this.context.getOptions().label;
5273
4674
  if (!label || !label.name || !label.description || !label.color) {
5274
4675
  throw new Error("Label is not valid, skipping creation");
5275
4676
  }
@@ -5304,7 +4705,7 @@ var GithubManager = class {
5304
4705
  * @throws If the creation fails or if the pull request already exists.
5305
4706
  */
5306
4707
  async createReleasePR(options) {
5307
- const dryRunCreatePR = this.context.getConfig("githubPR.dryRunCreatePR");
4708
+ const dryRunCreatePR = this.context.getOptions("githubPR.dryRunCreatePR");
5308
4709
  if (dryRunCreatePR || this.context.dryRun) {
5309
4710
  this.logger.info(`[DRY RUN] Would create PR with:`, {
5310
4711
  ...options,
@@ -5356,7 +4757,7 @@ var GithubManager = class {
5356
4757
  makeLatest = true,
5357
4758
  releaseNotes,
5358
4759
  discussionCategoryName = void 0
5359
- } = this.context.getConfig("githubPR");
4760
+ } = this.context.getOptions("githubPR");
5360
4761
  const name = releaseName;
5361
4762
  const body = autoGenerate ? "" : this.truncateBody(String(releaseNotes));
5362
4763
  return {
@@ -5377,7 +4778,7 @@ var GithubManager = class {
5377
4778
  tag_name: workspace.tagName,
5378
4779
  body: workspace.changelog
5379
4780
  });
5380
- meragedOptions.name = this.shell.format(
4781
+ meragedOptions.name = Shell2.format(
5381
4782
  meragedOptions.name,
5382
4783
  workspace
5383
4784
  );
@@ -5409,92 +4810,14 @@ var GithubManager = class {
5409
4810
 
5410
4811
  // src/plugins/GitBase.ts
5411
4812
  var import_isString = __toESM(require_isString(), 1);
5412
-
5413
- // src/plugins/Plugin.ts
5414
- var import_merge2 = __toESM(require_merge(), 1);
5415
- var import_get2 = __toESM(require_get(), 1);
5416
- var Plugin = class {
5417
- constructor(context, pluginName, props = {}) {
5418
- this.context = context;
5419
- this.pluginName = pluginName;
5420
- this.props = props;
5421
- this.setConfig(this.getInitialProps(props));
5422
- }
5423
- onlyOne = true;
5424
- getInitialProps(props) {
5425
- const pluginConfig = this.context.options[this.pluginName];
5426
- const fileConfig = (0, import_get2.default)(this.context.shared, this.pluginName);
5427
- return pluginConfig || props ? (0, import_merge2.default)({}, fileConfig, props, pluginConfig) : {};
5428
- }
5429
- get logger() {
5430
- return this.context.logger;
5431
- }
5432
- get shell() {
5433
- return this.context.shell;
5434
- }
5435
- get options() {
5436
- return this.context.getConfig(this.pluginName, {});
5437
- }
5438
- getEnv(key, defaultValue) {
5439
- return this.context.env.get(key) ?? defaultValue;
5440
- }
5441
- enabled(_name, _context) {
5442
- return true;
5443
- }
5444
- getConfig(keys, defaultValue) {
5445
- if (!keys) {
5446
- return this.context.getConfig(this.pluginName, defaultValue);
5447
- }
5448
- return this.context.getConfig(
5449
- [this.pluginName, ...Array.isArray(keys) ? keys : [keys]],
5450
- defaultValue
5451
- );
5452
- }
5453
- setConfig(config) {
5454
- this.context.setConfig({
5455
- [this.pluginName]: config
5456
- });
5457
- }
5458
- onBefore(_context) {
5459
- }
5460
- onExec(_context) {
5461
- }
5462
- onSuccess(_context) {
5463
- }
5464
- onError(_context) {
5465
- }
5466
- /**
5467
- * run a step
5468
- *
5469
- * this will log the step and return the result of the task
5470
- *
5471
- * @param label - the label of the step
5472
- * @param task - the task to run
5473
- * @returns the result of the task
5474
- */
5475
- async step({ label, task }) {
5476
- this.logger.log();
5477
- this.logger.info(label);
5478
- this.logger.log();
5479
- try {
5480
- const res = await task();
5481
- this.logger.info(`${label} - success`);
5482
- return res;
5483
- } catch (e) {
5484
- this.logger.error(e);
5485
- throw e;
5486
- }
5487
- }
5488
- };
5489
-
5490
- // src/plugins/GitBase.ts
5491
- var GitBase = class extends Plugin {
4813
+ import { ScriptPlugin } from "@qlover/scripts-context";
4814
+ var GitBase = class extends ScriptPlugin {
5492
4815
  async onBefore() {
5493
4816
  const repoInfo = await this.getUserInfo();
5494
4817
  if (!repoInfo) {
5495
4818
  throw new Error("Failed to get repoInfo");
5496
4819
  }
5497
- let currentBranch = this.context.shared.currentBranch;
4820
+ let currentBranch = this.context.options.currentBranch;
5498
4821
  if (!currentBranch) {
5499
4822
  currentBranch = await this.getCurrentBranch();
5500
4823
  }
@@ -5503,7 +4826,7 @@ var GitBase = class extends Plugin {
5503
4826
  dryRun: false
5504
4827
  });
5505
4828
  }
5506
- this.context.setShared({
4829
+ this.context.setOptions({
5507
4830
  repoName: repoInfo.repoName,
5508
4831
  authorName: repoInfo.authorName,
5509
4832
  currentBranch
@@ -5615,14 +4938,14 @@ var GitChangelog = class {
5615
4938
  * @returns
5616
4939
  */
5617
4940
  async getGitLog(options = {}) {
5618
- const { directory, noMerges = true, fileds } = options;
4941
+ const { directory, noMerges = true, fields } = options;
5619
4942
  const from = await this.resolveTag(options.from, "root");
5620
4943
  const to = await this.resolveTag(options.to, "HEAD");
5621
4944
  const range = from === to ? to : `${from}..${to}`;
5622
4945
  const gitLogOptions = {
5623
4946
  repo: ".",
5624
4947
  number: 1e3,
5625
- fields: fileds,
4948
+ fields,
5626
4949
  branch: range,
5627
4950
  file: directory,
5628
4951
  nameStatus: false,
@@ -5716,6 +5039,7 @@ var GitChangelog = class {
5716
5039
 
5717
5040
  // src/implments/changelog/GitChangelogFormatter.ts
5718
5041
  var import_groupBy = __toESM(require_groupBy(), 1);
5042
+ import { Shell as Shell3 } from "@qlover/scripts-context";
5719
5043
  var DEFAULT_TEMPLATE = "\n- ${scopeHeader} ${commitlint.message} ${commitLink} ${prLink}";
5720
5044
  var GitChangelogFormatter = class {
5721
5045
  constructor(options) {
@@ -5766,7 +5090,7 @@ var GitChangelogFormatter = class {
5766
5090
  hash.slice(0, 7),
5767
5091
  repoUrl ? `${repoUrl}/commit/${hash}` : ""
5768
5092
  ) : "";
5769
- return this.options.shell.format(formatTemplate, {
5093
+ return Shell3.format(formatTemplate, {
5770
5094
  ...commit,
5771
5095
  scopeHeader,
5772
5096
  commitLink: hashLink,
@@ -5931,11 +5255,11 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
5931
5255
  async transformWorkspace(workspaces, context) {
5932
5256
  const githubRootPath = [
5933
5257
  DOMAIN,
5934
- context.shared.authorName,
5935
- context.shared.repoName
5258
+ context.getOptions("authorName"),
5259
+ context.getOptions("repoName")
5936
5260
  ].join("/");
5937
5261
  const changelogProps = {
5938
- ...context.getConfig("changelog"),
5262
+ ...context.getOptions("changelog"),
5939
5263
  githubRootPath,
5940
5264
  mergePRcommit: true,
5941
5265
  shell: context.shell,
@@ -5951,7 +5275,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
5951
5275
  const changelog = await githubChangelog.getFullCommit({
5952
5276
  from: workspace.lastTag ?? "",
5953
5277
  directory: workspace.path,
5954
- fileds: CHANGELOG_ALL_FIELDS
5278
+ fields: CHANGELOG_ALL_FIELDS
5955
5279
  });
5956
5280
  if (typeof changelog === "string") {
5957
5281
  return {
@@ -5973,6 +5297,7 @@ var GithubChangelog = class _GithubChangelog extends GitChangelog {
5973
5297
  };
5974
5298
 
5975
5299
  // src/plugins/githubPR/GithubPR.ts
5300
+ import { Shell as Shell4 } from "@qlover/scripts-context";
5976
5301
  var DEFAULT_RELEASE_NAME = "Release ${name} v${version}";
5977
5302
  var DEFAULT_COMMIT_MESSAGE = "chore(tag): ${name} v${version}";
5978
5303
  var GithubPR = class extends GitBase {
@@ -5983,9 +5308,9 @@ var GithubPR = class extends GitBase {
5983
5308
  });
5984
5309
  this.context = context;
5985
5310
  this.githubManager = new GithubManager(this.context);
5986
- this.releaseParams = new ReleaseParams(context.shell, context.logger, {
5987
- PRTitle: this.getConfig("PRTitle", this.context.shared.PRTitle),
5988
- PRBody: this.getConfig("PRBody", this.context.shared.PRBody),
5311
+ this.releaseParams = new ReleaseParams(context.logger, {
5312
+ PRTitle: this.getConfig("PRTitle", this.context.options.PRTitle),
5313
+ PRBody: this.getConfig("PRBody", this.context.options.PRBody),
5989
5314
  ...this.props
5990
5315
  });
5991
5316
  }
@@ -6018,7 +5343,7 @@ var GithubPR = class extends GitBase {
6018
5343
  }
6019
5344
  await super.onBefore();
6020
5345
  if (this.isPublish) {
6021
- const npmToken = this.getEnv("NPM_TOKEN");
5346
+ const npmToken = this.context.getEnv("NPM_TOKEN");
6022
5347
  if (!npmToken) {
6023
5348
  throw new Error("NPM_TOKEN is not set");
6024
5349
  }
@@ -6030,7 +5355,7 @@ var GithubPR = class extends GitBase {
6030
5355
  async onExec() {
6031
5356
  const workspaces = this.context.workspaces;
6032
5357
  const githubChangelog = new GithubChangelog(
6033
- this.context.getConfig("changelog"),
5358
+ this.context.getOptions("changelog"),
6034
5359
  this.githubManager
6035
5360
  );
6036
5361
  const newWorkspaces = await this.step({
@@ -6105,7 +5430,7 @@ var GithubPR = class extends GitBase {
6105
5430
  );
6106
5431
  }
6107
5432
  async commitWorkspace(workspace, commitArgs = []) {
6108
- const commitMessage = this.shell.format(
5433
+ const commitMessage = Shell4.format(
6109
5434
  this.getConfig("commitMessage", DEFAULT_COMMIT_MESSAGE),
6110
5435
  workspace
6111
5436
  );
@@ -6124,13 +5449,14 @@ var GithubPR = class extends GitBase {
6124
5449
  async createReleaseBranch(workspaces) {
6125
5450
  const params = this.releaseParams.getReleaseBranchParams(
6126
5451
  workspaces,
5452
+ // @ts-expect-error TODO: fix this
6127
5453
  this.context.getTemplateContext()
6128
5454
  );
6129
5455
  const { tagName, releaseBranch } = params;
6130
5456
  if (typeof tagName !== "string") {
6131
5457
  throw new Error("Tag name is not a string");
6132
5458
  }
6133
- const { sourceBranch, currentBranch } = this.context.shared;
5459
+ const { sourceBranch, currentBranch } = this.context.getOptions();
6134
5460
  this.context.logger.debug("PR TagName is:", tagName);
6135
5461
  this.context.logger.debug("PR CurrentBranch is:", currentBranch);
6136
5462
  this.context.logger.debug("PR SourceBranch is:", sourceBranch);
@@ -6166,7 +5492,7 @@ var GithubPR = class extends GitBase {
6166
5492
  const label = await this.githubManager.createReleasePRLabel();
6167
5493
  let labels = [label.name];
6168
5494
  if (this.getConfig("pushChangeLabels")) {
6169
- const changeLabels = this.context.getConfig("workspaces.changeLabels");
5495
+ const changeLabels = this.context.getOptions("workspaces.changeLabels");
6170
5496
  if (Array.isArray(changeLabels) && changeLabels.length > 0) {
6171
5497
  labels.push(...changeLabels);
6172
5498
  }
@@ -6254,7 +5580,8 @@ var WorkspaceCreator = class _WorkspaceCreator {
6254
5580
  };
6255
5581
 
6256
5582
  // src/plugins/workspaces/Workspaces.ts
6257
- var Workspaces = class extends Plugin {
5583
+ import { ScriptPlugin as ScriptPlugin2 } from "@qlover/scripts-context";
5584
+ var Workspaces = class extends ScriptPlugin2 {
6258
5585
  releaseTask = null;
6259
5586
  workspacesList = [];
6260
5587
  _skip = false;
@@ -6262,8 +5589,8 @@ var Workspaces = class extends Plugin {
6262
5589
  constructor(context) {
6263
5590
  super(context, "workspaces");
6264
5591
  this.releaseLabel = new ReleaseLabel({
6265
- changePackagesLabel: this.context.shared.changePackagesLabel || "change:${name}",
6266
- packagesDirectories: this.context.shared.packagesDirectories || [],
5592
+ changePackagesLabel: this.context.options.changePackagesLabel || "change:${name}",
5593
+ packagesDirectories: this.context.options.packagesDirectories || [],
6267
5594
  compare: (changedFilePath, packagePath) => resolve(changedFilePath).startsWith(resolve(packagePath))
6268
5595
  });
6269
5596
  }
@@ -6281,7 +5608,7 @@ var Workspaces = class extends Plugin {
6281
5608
  if (this.getConfig("skipCheckPackage") || workspaces.length === 0) {
6282
5609
  throw new Error("No changes to publish packages");
6283
5610
  }
6284
- const { publishPath } = this.context.shared;
5611
+ const publishPath = this.context.getOptions("publishPath");
6285
5612
  if (publishPath) {
6286
5613
  const targetWorkspace = workspaces.find(
6287
5614
  (workspace2) => resolve(workspace2.root) === resolve(publishPath)
@@ -6315,7 +5642,7 @@ var Workspaces = class extends Plugin {
6315
5642
  this.releaseTask = releaseTask;
6316
5643
  }
6317
5644
  setCurrentWorkspace(workspace, workspaces) {
6318
- this.context.setShared({
5645
+ this.context.setOptions({
6319
5646
  publishPath: workspace.path
6320
5647
  });
6321
5648
  this.setConfig({
@@ -6347,7 +5674,7 @@ var Workspaces = class extends Plugin {
6347
5674
  }
6348
5675
  getProjectWorkspaces() {
6349
5676
  const rootPath = this.context.rootPath;
6350
- const packagesDirectories = this.context.shared.packagesDirectories;
5677
+ const packagesDirectories = this.context.options.packagesDirectories;
6351
5678
  if (Array.isArray(packagesDirectories) && packagesDirectories.length > 0) {
6352
5679
  return packagesDirectories.map(
6353
5680
  (path) => WorkspaceCreator.toWorkspace({ path }, rootPath)
@@ -6571,8 +5898,12 @@ async function loaderPluginsFromPluginTuples(context, pluginsTuples, maxLimit =
6571
5898
  // src/plugins/Changelog.ts
6572
5899
  import { join as join4 } from "path";
6573
5900
  import { existsSync, writeFileSync } from "fs";
5901
+ import {
5902
+ ScriptPlugin as ScriptPlugin3,
5903
+ Shell as Shell5
5904
+ } from "@qlover/scripts-context";
6574
5905
  var contentTmplate = "---\n'${name}': '${increment}'\n---\n\n${changelog}";
6575
- var Changelog = class extends Plugin {
5906
+ var Changelog = class extends ScriptPlugin3 {
6576
5907
  constructor(context, props) {
6577
5908
  super(context, "changelog", {
6578
5909
  increment: "patch",
@@ -6651,7 +5982,7 @@ var Changelog = class extends Plugin {
6651
5982
  this.context.setWorkspaces(newWorkspaces);
6652
5983
  }
6653
5984
  async restoreIgnorePackages() {
6654
- const { changedPaths = [], packages = [] } = this.context.getConfig(
5985
+ const { changedPaths = [], packages = [] } = this.context.getOptions(
6655
5986
  "workspaces"
6656
5987
  );
6657
5988
  const noChangedPackages = packages.filter((pkgPath) => !changedPaths.includes(pkgPath)).map(
@@ -6663,7 +5994,7 @@ var Changelog = class extends Plugin {
6663
5994
  }
6664
5995
  }
6665
5996
  getTagPrefix(workspace) {
6666
- return this.shell.format(
5997
+ return Shell5.format(
6667
5998
  this.getConfig("tagPrefix"),
6668
5999
  workspace
6669
6000
  );
@@ -6680,8 +6011,8 @@ var Changelog = class extends Plugin {
6680
6011
  ...baseConfig,
6681
6012
  from: tagName,
6682
6013
  directory: workspace.path,
6683
- shell: this.shell,
6684
- fileds: CHANGELOG_ALL_FIELDS,
6014
+ shell: this.context.shell,
6015
+ fields: CHANGELOG_ALL_FIELDS,
6685
6016
  logger: this.logger
6686
6017
  };
6687
6018
  const gitChangelog = new GitChangelog(props);
@@ -6696,7 +6027,7 @@ var Changelog = class extends Plugin {
6696
6027
  generateTagName(workspace) {
6697
6028
  try {
6698
6029
  const tagTemplate = this.getConfig("tagTemplate");
6699
- return this.shell.format(
6030
+ return Shell5.format(
6700
6031
  tagTemplate,
6701
6032
  workspace
6702
6033
  );
@@ -6708,7 +6039,7 @@ var Changelog = class extends Plugin {
6708
6039
  async getTagName(workspace) {
6709
6040
  try {
6710
6041
  const currentTagPattern = this.generateTagName(workspace);
6711
- const tagMatch = this.shell.format(
6042
+ const tagMatch = Shell5.format(
6712
6043
  this.getConfig("tagMatch"),
6713
6044
  workspace
6714
6045
  );
@@ -6732,7 +6063,7 @@ var Changelog = class extends Plugin {
6732
6063
  }
6733
6064
  }
6734
6065
  getIncrement() {
6735
- const lables = this.context.getConfig("workspaces.changeLabels");
6066
+ const lables = this.context.getOptions("workspaces.changeLabels");
6736
6067
  if (Array.isArray(lables) && lables.length > 0) {
6737
6068
  if (lables.includes("increment:major")) {
6738
6069
  return "major";
@@ -6750,7 +6081,7 @@ var Changelog = class extends Plugin {
6750
6081
  const changesetPath = join4(this.changesetRoot, `${changesetName}.md`);
6751
6082
  const increment = this.getIncrement();
6752
6083
  this.logger.debug("increment is:", [increment]);
6753
- const fileContent = this.shell.format(contentTmplate, {
6084
+ const fileContent = Shell5.format(contentTmplate, {
6754
6085
  ...workspace,
6755
6086
  increment
6756
6087
  });
@@ -6775,18 +6106,19 @@ var innerTuples = [
6775
6106
  tuple(Changelog, {}),
6776
6107
  tuple(GithubPR, {})
6777
6108
  ];
6109
+ var defaultName = "release";
6778
6110
  var ReleaseTask = class {
6779
6111
  constructor(options = {}, executor = new AsyncExecutor(), defaultTuples = innerTuples) {
6780
6112
  this.executor = executor;
6781
6113
  this.defaultTuples = defaultTuples;
6782
- this.context = new ReleaseContext(options);
6114
+ this.context = new ReleaseContext(defaultName, options);
6783
6115
  }
6784
6116
  context;
6785
6117
  getContext() {
6786
6118
  return this.context;
6787
6119
  }
6788
6120
  async usePlugins(externalTuples) {
6789
- externalTuples = externalTuples || this.context.shared.plugins || [];
6121
+ externalTuples = externalTuples || this.context.options.plugins || [];
6790
6122
  const plugins = await loaderPluginsFromPluginTuples(this.context, [
6791
6123
  ...this.defaultTuples,
6792
6124
  ...externalTuples
@@ -6863,16 +6195,11 @@ function programArgs() {
6863
6195
  splitWithComma
6864
6196
  );
6865
6197
  program.parse();
6866
- return reduceOptions(program.opts(), "shared");
6198
+ return reduceOptions(program.opts(), "global");
6867
6199
  }
6868
6200
  async function main() {
6869
- const { shared: commonOptions, ...allOptions } = programArgs();
6870
- const { dryRun, verbose, ...shared } = commonOptions;
6871
- const options = Object.assign(
6872
- allOptions,
6873
- {}
6874
- );
6875
- await new ReleaseTask({ dryRun, verbose, options, shared }).exec();
6201
+ const { global: global2, ...allOptions } = programArgs();
6202
+ await new ReleaseTask({ ...global2, options: allOptions }).exec();
6876
6203
  }
6877
6204
  main().catch((e) => {
6878
6205
  console.error(e.message);