keycloakify 10.0.0-rc.118 → 10.0.0-rc.119
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/bin/{490.index.js → 246.index.js} +20 -2
- package/bin/31.index.js +151 -159
- package/bin/440.index.js +27 -22
- package/bin/526.index.js +168 -56
- package/bin/599.index.js +560 -0
- package/bin/622.index.js +4 -2
- package/bin/{36.index.js → 678.index.js} +577 -71
- package/bin/{180.index.js → 697.index.js} +611 -526
- package/bin/743.index.js +70 -0
- package/bin/780.index.js +729 -0
- package/bin/932.index.js +725 -48
- package/bin/{966.index.js → 941.index.js} +2 -19
- package/bin/main.js +19 -7
- package/bin/shared/buildContext.d.ts +28 -19
- package/bin/shared/buildContext.js.map +1 -1
- package/bin/shared/getLatestsSemVersionedTag.d.ts +10 -0
- package/bin/shared/getLatestsSemVersionedTag.js.map +1 -0
- package/bin/shared/promptKeycloakVersion.js.map +1 -1
- package/package.json +24 -5
- package/src/bin/initialize-account-theme/copyBoilerplate.ts +32 -0
- package/src/bin/initialize-account-theme/index.ts +1 -0
- package/src/bin/initialize-account-theme/initialize-account-theme.ts +95 -0
- package/src/bin/initialize-account-theme/initializeAccountTheme_multiPage.ts +21 -0
- package/src/bin/initialize-account-theme/initializeAccountTheme_singlePage.ts +150 -0
- package/src/bin/initialize-account-theme/src/multi-page/KcContext.ts +12 -0
- package/src/bin/initialize-account-theme/src/multi-page/KcPage.tsx +25 -0
- package/src/bin/initialize-account-theme/src/multi-page/KcPageStory.tsx +38 -0
- package/src/bin/initialize-account-theme/src/multi-page/i18n.ts +5 -0
- package/src/bin/initialize-account-theme/src/single-page/KcContext.ts +7 -0
- package/src/bin/initialize-account-theme/src/single-page/KcPage.tsx +11 -0
- package/src/bin/initialize-account-theme/updateAccountThemeImplementationInConfig.ts +92 -0
- package/src/bin/keycloakify/buildJars/buildJar.ts +2 -2
- package/src/bin/keycloakify/buildJars/buildJars.ts +3 -4
- package/src/bin/keycloakify/generateResources/generateResourcesForMainTheme.ts +26 -20
- package/src/bin/keycloakify/keycloakify.ts +1 -1
- package/src/bin/keycloakify/replacers/replaceImportsInJsCode/replaceImportsInJsCode.ts +2 -2
- package/src/bin/main.ts +14 -0
- package/src/bin/shared/buildContext.ts +246 -225
- package/src/bin/shared/getLatestsSemVersionedTag.ts +180 -0
- package/src/bin/shared/promptKeycloakVersion.ts +8 -77
- package/src/bin/start-keycloak/appBuild.ts +13 -9
- package/src/bin/tools/downloadAndExtractArchive.ts +4 -2
- package/src/bin/tools/npmInstall.ts +63 -0
- package/src/bin/tools/octokit-addons/getLatestsSemVersionedTag.ts +3 -2
- package/src/bin/tsconfig.json +3 -1
- package/src/vite-plugin/vite-plugin.ts +7 -5
- package/vite-plugin/index.js +156 -180
- package/vite-plugin/vite-plugin.d.ts +6 -4
@@ -1,5 +1,5 @@
|
|
1
|
-
exports.id =
|
2
|
-
exports.ids = [
|
1
|
+
exports.id = 697;
|
2
|
+
exports.ids = [697];
|
3
3
|
exports.modules = {
|
4
4
|
|
5
5
|
/***/ 40334:
|
@@ -3759,145 +3759,6 @@ var Octokit = import_core.Octokit.plugin(
|
|
3759
3759
|
0 && (0);
|
3760
3760
|
|
3761
3761
|
|
3762
|
-
/***/ }),
|
3763
|
-
|
3764
|
-
/***/ 18512:
|
3765
|
-
/***/ ((module) => {
|
3766
|
-
|
3767
|
-
"use strict";
|
3768
|
-
|
3769
|
-
const x = module.exports;
|
3770
|
-
const ESC = '\u001B[';
|
3771
|
-
const OSC = '\u001B]';
|
3772
|
-
const BEL = '\u0007';
|
3773
|
-
const SEP = ';';
|
3774
|
-
const isTerminalApp = process.env.TERM_PROGRAM === 'Apple_Terminal';
|
3775
|
-
|
3776
|
-
x.cursorTo = (x, y) => {
|
3777
|
-
if (typeof x !== 'number') {
|
3778
|
-
throw new TypeError('The `x` argument is required');
|
3779
|
-
}
|
3780
|
-
|
3781
|
-
if (typeof y !== 'number') {
|
3782
|
-
return ESC + (x + 1) + 'G';
|
3783
|
-
}
|
3784
|
-
|
3785
|
-
return ESC + (y + 1) + ';' + (x + 1) + 'H';
|
3786
|
-
};
|
3787
|
-
|
3788
|
-
x.cursorMove = (x, y) => {
|
3789
|
-
if (typeof x !== 'number') {
|
3790
|
-
throw new TypeError('The `x` argument is required');
|
3791
|
-
}
|
3792
|
-
|
3793
|
-
let ret = '';
|
3794
|
-
|
3795
|
-
if (x < 0) {
|
3796
|
-
ret += ESC + (-x) + 'D';
|
3797
|
-
} else if (x > 0) {
|
3798
|
-
ret += ESC + x + 'C';
|
3799
|
-
}
|
3800
|
-
|
3801
|
-
if (y < 0) {
|
3802
|
-
ret += ESC + (-y) + 'A';
|
3803
|
-
} else if (y > 0) {
|
3804
|
-
ret += ESC + y + 'B';
|
3805
|
-
}
|
3806
|
-
|
3807
|
-
return ret;
|
3808
|
-
};
|
3809
|
-
|
3810
|
-
x.cursorUp = count => ESC + (typeof count === 'number' ? count : 1) + 'A';
|
3811
|
-
x.cursorDown = count => ESC + (typeof count === 'number' ? count : 1) + 'B';
|
3812
|
-
x.cursorForward = count => ESC + (typeof count === 'number' ? count : 1) + 'C';
|
3813
|
-
x.cursorBackward = count => ESC + (typeof count === 'number' ? count : 1) + 'D';
|
3814
|
-
|
3815
|
-
x.cursorLeft = ESC + 'G';
|
3816
|
-
x.cursorSavePosition = ESC + (isTerminalApp ? '7' : 's');
|
3817
|
-
x.cursorRestorePosition = ESC + (isTerminalApp ? '8' : 'u');
|
3818
|
-
x.cursorGetPosition = ESC + '6n';
|
3819
|
-
x.cursorNextLine = ESC + 'E';
|
3820
|
-
x.cursorPrevLine = ESC + 'F';
|
3821
|
-
x.cursorHide = ESC + '?25l';
|
3822
|
-
x.cursorShow = ESC + '?25h';
|
3823
|
-
|
3824
|
-
x.eraseLines = count => {
|
3825
|
-
let clear = '';
|
3826
|
-
|
3827
|
-
for (let i = 0; i < count; i++) {
|
3828
|
-
clear += x.eraseLine + (i < count - 1 ? x.cursorUp() : '');
|
3829
|
-
}
|
3830
|
-
|
3831
|
-
if (count) {
|
3832
|
-
clear += x.cursorLeft;
|
3833
|
-
}
|
3834
|
-
|
3835
|
-
return clear;
|
3836
|
-
};
|
3837
|
-
|
3838
|
-
x.eraseEndLine = ESC + 'K';
|
3839
|
-
x.eraseStartLine = ESC + '1K';
|
3840
|
-
x.eraseLine = ESC + '2K';
|
3841
|
-
x.eraseDown = ESC + 'J';
|
3842
|
-
x.eraseUp = ESC + '1J';
|
3843
|
-
x.eraseScreen = ESC + '2J';
|
3844
|
-
x.scrollUp = ESC + 'S';
|
3845
|
-
x.scrollDown = ESC + 'T';
|
3846
|
-
|
3847
|
-
x.clearScreen = '\u001Bc';
|
3848
|
-
|
3849
|
-
x.clearTerminal = process.platform === 'win32' ?
|
3850
|
-
`${x.eraseScreen}${ESC}0f` :
|
3851
|
-
// 1. Erases the screen (Only done in case `2` is not supported)
|
3852
|
-
// 2. Erases the whole screen including scrollback buffer
|
3853
|
-
// 3. Moves cursor to the top-left position
|
3854
|
-
// More info: https://www.real-world-systems.com/docs/ANSIcode.html
|
3855
|
-
`${x.eraseScreen}${ESC}3J${ESC}H`;
|
3856
|
-
|
3857
|
-
x.beep = BEL;
|
3858
|
-
|
3859
|
-
x.link = (text, url) => {
|
3860
|
-
return [
|
3861
|
-
OSC,
|
3862
|
-
'8',
|
3863
|
-
SEP,
|
3864
|
-
SEP,
|
3865
|
-
url,
|
3866
|
-
BEL,
|
3867
|
-
text,
|
3868
|
-
OSC,
|
3869
|
-
'8',
|
3870
|
-
SEP,
|
3871
|
-
SEP,
|
3872
|
-
BEL
|
3873
|
-
].join('');
|
3874
|
-
};
|
3875
|
-
|
3876
|
-
x.image = (buf, opts) => {
|
3877
|
-
opts = opts || {};
|
3878
|
-
|
3879
|
-
let ret = OSC + '1337;File=inline=1';
|
3880
|
-
|
3881
|
-
if (opts.width) {
|
3882
|
-
ret += `;width=${opts.width}`;
|
3883
|
-
}
|
3884
|
-
|
3885
|
-
if (opts.height) {
|
3886
|
-
ret += `;height=${opts.height}`;
|
3887
|
-
}
|
3888
|
-
|
3889
|
-
if (opts.preserveAspectRatio === false) {
|
3890
|
-
ret += ';preserveAspectRatio=0';
|
3891
|
-
}
|
3892
|
-
|
3893
|
-
return ret + ':' + buf.toString('base64') + BEL;
|
3894
|
-
};
|
3895
|
-
|
3896
|
-
x.iTerm = {};
|
3897
|
-
|
3898
|
-
x.iTerm.setCwd = cwd => OSC + '50;CurrentDir=' + (cwd || process.cwd()) + BEL;
|
3899
|
-
|
3900
|
-
|
3901
3762
|
/***/ }),
|
3902
3763
|
|
3903
3764
|
/***/ 83682:
|
@@ -4081,467 +3942,691 @@ function removeHook(state, name, method) {
|
|
4081
3942
|
|
4082
3943
|
/***/ }),
|
4083
3944
|
|
4084
|
-
/***/
|
3945
|
+
/***/ 58932:
|
4085
3946
|
/***/ ((__unused_webpack_module, exports) => {
|
4086
3947
|
|
4087
3948
|
"use strict";
|
4088
3949
|
|
4089
3950
|
|
4090
|
-
Object.defineProperty(exports, "__esModule", ({
|
4091
|
-
value: true
|
4092
|
-
}));
|
4093
|
-
exports.withPromise = exports.withCallback = void 0;
|
4094
|
-
|
4095
|
-
/**
|
4096
|
-
* Open the input with a normal callback function
|
4097
|
-
*
|
4098
|
-
* @param {Input} input - input object
|
4099
|
-
* @param {function} valueMapper - function which maps the resulting id and value back to the expected format
|
4100
|
-
* @param {function} callback - callback function
|
4101
|
-
*/
|
4102
|
-
const withCallback = (input, valueMapper, callback) => {
|
4103
|
-
input.open();
|
4104
|
-
input.onSelect((id, value) => callback(valueMapper(id, value)));
|
4105
|
-
};
|
4106
|
-
/**
|
4107
|
-
* Open the input with a promise
|
4108
|
-
*
|
4109
|
-
* @param {Input} input - input object
|
4110
|
-
* @param {function} valueMapper - function which maps the resulting id and value back to the expected format
|
4111
|
-
*/
|
4112
|
-
|
4113
|
-
|
4114
|
-
exports.withCallback = withCallback;
|
3951
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4115
3952
|
|
4116
|
-
|
4117
|
-
|
4118
|
-
|
4119
|
-
input.onSelect((id, value) => {
|
4120
|
-
if (id === null) {
|
4121
|
-
reject();
|
4122
|
-
} else {
|
4123
|
-
resolve(valueMapper(id, value));
|
4124
|
-
}
|
4125
|
-
});
|
4126
|
-
});
|
4127
|
-
};
|
3953
|
+
class Deprecation extends Error {
|
3954
|
+
constructor(message) {
|
3955
|
+
super(message); // Maintains proper stack trace (only available on V8)
|
4128
3956
|
|
4129
|
-
|
3957
|
+
/* istanbul ignore next */
|
4130
3958
|
|
4131
|
-
|
3959
|
+
if (Error.captureStackTrace) {
|
3960
|
+
Error.captureStackTrace(this, this.constructor);
|
3961
|
+
}
|
4132
3962
|
|
4133
|
-
|
4134
|
-
|
3963
|
+
this.name = 'Deprecation';
|
3964
|
+
}
|
4135
3965
|
|
4136
|
-
|
3966
|
+
}
|
4137
3967
|
|
3968
|
+
exports.Deprecation = Deprecation;
|
4138
3969
|
|
4139
|
-
Object.defineProperty(exports, "__esModule", ({
|
4140
|
-
value: true
|
4141
|
-
}));
|
4142
|
-
exports["default"] = void 0;
|
4143
3970
|
|
4144
|
-
|
3971
|
+
/***/ }),
|
4145
3972
|
|
4146
|
-
|
3973
|
+
/***/ 53501:
|
3974
|
+
/***/ (function(__unused_webpack_module, exports) {
|
4147
3975
|
|
4148
|
-
|
3976
|
+
"use strict";
|
4149
3977
|
|
4150
|
-
var
|
3978
|
+
var __read = (this && this.__read) || function (o, n) {
|
3979
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
3980
|
+
if (!m) return o;
|
3981
|
+
var i = m.call(o), r, ar = [], e;
|
3982
|
+
try {
|
3983
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
3984
|
+
}
|
3985
|
+
catch (error) { e = { error: error }; }
|
3986
|
+
finally {
|
3987
|
+
try {
|
3988
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
3989
|
+
}
|
3990
|
+
finally { if (e) throw e.error; }
|
3991
|
+
}
|
3992
|
+
return ar;
|
3993
|
+
};
|
3994
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
3995
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
3996
|
+
if (ar || !(i in from)) {
|
3997
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
3998
|
+
ar[i] = from[i];
|
3999
|
+
}
|
4000
|
+
}
|
4001
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
4002
|
+
};
|
4003
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4004
|
+
exports.getPrototypeChain = void 0;
|
4005
|
+
function getPrototypeChain(obj, callback) {
|
4006
|
+
var proto = Object.getPrototypeOf(obj);
|
4007
|
+
if (!proto) {
|
4008
|
+
return [];
|
4009
|
+
}
|
4010
|
+
var doContinue = callback === null || callback === void 0 ? void 0 : callback(proto);
|
4011
|
+
if (!doContinue) {
|
4012
|
+
return [proto];
|
4013
|
+
}
|
4014
|
+
return __spreadArray([proto], __read(getPrototypeChain(proto)), false);
|
4015
|
+
}
|
4016
|
+
exports.getPrototypeChain = getPrototypeChain;
|
4017
|
+
getPrototypeChain.isMatched = function (obj, regExp) {
|
4018
|
+
var out = false;
|
4019
|
+
getPrototypeChain(obj, function (_a) {
|
4020
|
+
var constructor = _a.constructor;
|
4021
|
+
out = regExp.test(constructor.name);
|
4022
|
+
return !out;
|
4023
|
+
});
|
4024
|
+
return out;
|
4025
|
+
};
|
4026
|
+
//# sourceMappingURL=getPrototypeChain.js.map
|
4151
4027
|
|
4152
|
-
|
4028
|
+
/***/ }),
|
4153
4029
|
|
4154
|
-
|
4030
|
+
/***/ 33805:
|
4031
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
4155
4032
|
|
4156
|
-
|
4033
|
+
"use strict";
|
4157
4034
|
|
4158
|
-
|
4159
|
-
|
4160
|
-
|
4161
|
-
|
4162
|
-
|
4163
|
-
|
4164
|
-
|
4165
|
-
|
4166
|
-
|
4167
|
-
|
4168
|
-
|
4169
|
-
|
4170
|
-
|
4035
|
+
var __values = (this && this.__values) || function(o) {
|
4036
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
4037
|
+
if (m) return m.call(o);
|
4038
|
+
if (o && typeof o.length === "number") return {
|
4039
|
+
next: function () {
|
4040
|
+
if (o && i >= o.length) o = void 0;
|
4041
|
+
return { value: o && o[i++], done: !o };
|
4042
|
+
}
|
4043
|
+
};
|
4044
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
4045
|
+
};
|
4046
|
+
var __read = (this && this.__read) || function (o, n) {
|
4047
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
4048
|
+
if (!m) return o;
|
4049
|
+
var i = m.call(o), r, ar = [], e;
|
4050
|
+
try {
|
4051
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
4052
|
+
}
|
4053
|
+
catch (error) { e = { error: error }; }
|
4054
|
+
finally {
|
4055
|
+
try {
|
4056
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
4057
|
+
}
|
4058
|
+
finally { if (e) throw e.error; }
|
4059
|
+
}
|
4060
|
+
return ar;
|
4171
4061
|
};
|
4062
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
4063
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
4064
|
+
if (ar || !(i in from)) {
|
4065
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
4066
|
+
ar[i] = from[i];
|
4067
|
+
}
|
4068
|
+
}
|
4069
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
4070
|
+
};
|
4071
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4072
|
+
exports.sameFactory = exports.same = void 0;
|
4073
|
+
// @denoify-line-ignore
|
4074
|
+
var Set_1 = __webpack_require__(44105);
|
4075
|
+
// @denoify-line-ignore
|
4076
|
+
__webpack_require__(12903);
|
4077
|
+
var types_1 = __webpack_require__(5725);
|
4078
|
+
var allEquals_1 = __webpack_require__(32243);
|
4172
4079
|
/**
|
4173
|
-
*
|
4080
|
+
* Function that perform a in depth comparison of two things of arbitrary type T
|
4081
|
+
* to see if they represent the same date regardless of object references.
|
4174
4082
|
*
|
4175
|
-
*
|
4176
|
-
*
|
4177
|
-
|
4178
|
-
|
4179
|
-
|
4180
|
-
|
4181
|
-
|
4182
|
-
|
4183
|
-
|
4184
|
-
|
4185
|
-
|
4186
|
-
|
4187
|
-
|
4188
|
-
|
4189
|
-
|
4190
|
-
|
4191
|
-
|
4192
|
-
|
4193
|
-
|
4194
|
-
|
4195
|
-
|
4196
|
-
|
4197
|
-
|
4198
|
-
|
4199
|
-
|
4200
|
-
|
4201
|
-
|
4202
|
-
|
4203
|
-
|
4204
|
-
|
4205
|
-
};
|
4206
|
-
|
4207
|
-
|
4208
|
-
|
4209
|
-
|
4210
|
-
|
4211
|
-
|
4212
|
-
|
4083
|
+
* Think of it as JSON.stringify(o1) === JSON.stringify(o2)
|
4084
|
+
* but unlike a test performed with JSON.stringify the order in the property
|
4085
|
+
* have been assigned to an object does not matter and circular references are supported.
|
4086
|
+
*
|
4087
|
+
*
|
4088
|
+
* If takeIntoAccountArraysOrdering === false then
|
4089
|
+
* representsSameData(["a", "b"], ["b", "a"]) will return true.
|
4090
|
+
*
|
4091
|
+
* If Date are compared via .getTime()
|
4092
|
+
*
|
4093
|
+
* The objects can includes Map and Set.
|
4094
|
+
* */
|
4095
|
+
exports.same = (function () {
|
4096
|
+
function sameRec(o1, o2, _a, o1Path, o2Path, o1RealRef, o2RealRef) {
|
4097
|
+
var e_1, _b, e_2, _c;
|
4098
|
+
var _d = _a === void 0 ? { "takeIntoAccountArraysOrdering": true } : _a, takeIntoAccountArraysOrdering = _d.takeIntoAccountArraysOrdering;
|
4099
|
+
if (o1RealRef === void 0) { o1RealRef = o1; }
|
4100
|
+
if (o2RealRef === void 0) { o2RealRef = o2; }
|
4101
|
+
if (Object.is(o1, o2)) {
|
4102
|
+
return true;
|
4103
|
+
}
|
4104
|
+
{
|
4105
|
+
var i1 = o1Path.map(function (_a) {
|
4106
|
+
var obj = _a.obj;
|
4107
|
+
return obj;
|
4108
|
+
}).indexOf(o1RealRef);
|
4109
|
+
if (i1 >= 0) {
|
4110
|
+
var i2 = o2Path.map(function (_a) {
|
4111
|
+
var obj = _a.obj;
|
4112
|
+
return obj;
|
4113
|
+
}).indexOf(o2RealRef);
|
4114
|
+
if (i1 !== i2) {
|
4115
|
+
return false;
|
4116
|
+
}
|
4117
|
+
return (0, allEquals_1.arrAllEquals)([o1Path, o2Path]
|
4118
|
+
.map(function (oPath) { return oPath
|
4119
|
+
.map(function (_a) {
|
4120
|
+
var key = _a.key;
|
4121
|
+
return key;
|
4122
|
+
})
|
4123
|
+
.join(""); }));
|
4124
|
+
}
|
4125
|
+
}
|
4126
|
+
if (!(o1 instanceof Object && o2 instanceof Object)) {
|
4127
|
+
return false;
|
4128
|
+
}
|
4129
|
+
if (typeof o1 === "function" || typeof o2 === "function") {
|
4130
|
+
return false;
|
4131
|
+
}
|
4132
|
+
if (types_1.DateLike.match(o1)) {
|
4133
|
+
if (!types_1.DateLike.match(o2)) {
|
4134
|
+
return false;
|
4135
|
+
}
|
4136
|
+
return o1.getTime() === o2.getTime();
|
4137
|
+
}
|
4138
|
+
if (types_1.MapLike.match(o1)) {
|
4139
|
+
if (!types_1.MapLike.match(o2)) {
|
4140
|
+
return false;
|
4141
|
+
}
|
4142
|
+
var newO1 = new Set_1.Polyfill();
|
4143
|
+
var newO2 = new Set_1.Polyfill();
|
4144
|
+
try {
|
4145
|
+
for (var _e = __values([o1, o2]), _f = _e.next(); !_f.done; _f = _e.next()) {
|
4146
|
+
var o = _f.value;
|
4147
|
+
var newO = o === o1 ? newO1 : newO2;
|
4148
|
+
var arr = Array.from(o.keys());
|
4149
|
+
for (var i = 0; i < arr.length; i++) {
|
4150
|
+
var key = arr[i];
|
4151
|
+
var value = o.get(key);
|
4152
|
+
newO.add({ key: key, value: value });
|
4153
|
+
}
|
4154
|
+
}
|
4155
|
+
}
|
4156
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
4157
|
+
finally {
|
4158
|
+
try {
|
4159
|
+
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
|
4160
|
+
}
|
4161
|
+
finally { if (e_1) throw e_1.error; }
|
4162
|
+
}
|
4163
|
+
return sameRec(newO1, newO2, { takeIntoAccountArraysOrdering: takeIntoAccountArraysOrdering }, o1Path, o2Path, o1RealRef, o2RealRef);
|
4164
|
+
}
|
4165
|
+
var takeIntoAccountArraysOrderingOv = undefined;
|
4166
|
+
if (types_1.SetLike.match(o1)) {
|
4167
|
+
if (!types_1.SetLike.match(o2)) {
|
4168
|
+
return false;
|
4169
|
+
}
|
4170
|
+
o1 = Array.from(o1.values());
|
4171
|
+
o2 = Array.from(o2.values());
|
4172
|
+
takeIntoAccountArraysOrderingOv = false;
|
4173
|
+
}
|
4174
|
+
if (types_1.ArrayLike.match(o1)) {
|
4175
|
+
if (!types_1.ArrayLike.match(o2)) {
|
4176
|
+
return false;
|
4177
|
+
}
|
4178
|
+
if (o1.length !== o2.length) {
|
4179
|
+
return false;
|
4180
|
+
}
|
4181
|
+
if (!(takeIntoAccountArraysOrderingOv !== undefined ?
|
4182
|
+
takeIntoAccountArraysOrderingOv :
|
4183
|
+
takeIntoAccountArraysOrdering)) {
|
4184
|
+
var o2Set = new Set_1.Polyfill(Array.from(o2));
|
4185
|
+
for (var i = 0; i < o1.length; i++) {
|
4186
|
+
if (!("".concat(i) in o1)) {
|
4187
|
+
continue;
|
4188
|
+
}
|
4189
|
+
var val1 = o1[i];
|
4190
|
+
if (o2Set.has(val1)) {
|
4191
|
+
o2Set.delete(val1);
|
4192
|
+
continue;
|
4193
|
+
}
|
4194
|
+
var isFound = false;
|
4195
|
+
try {
|
4196
|
+
for (var _g = (e_2 = void 0, __values(o2Set.values())), _h = _g.next(); !_h.done; _h = _g.next()) {
|
4197
|
+
var val2 = _h.value;
|
4198
|
+
if (!sameRec(val1, val2, { takeIntoAccountArraysOrdering: takeIntoAccountArraysOrdering }, __spreadArray(__spreadArray([], __read(o1Path), false), [{ "obj": o1RealRef, "key": "*" }], false), __spreadArray(__spreadArray([], __read(o2Path), false), [{ "obj": o2RealRef, "key": "*" }], false))) {
|
4199
|
+
continue;
|
4200
|
+
}
|
4201
|
+
isFound = true;
|
4202
|
+
o2Set.delete(val2);
|
4203
|
+
break;
|
4204
|
+
}
|
4205
|
+
}
|
4206
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
4207
|
+
finally {
|
4208
|
+
try {
|
4209
|
+
if (_h && !_h.done && (_c = _g.return)) _c.call(_g);
|
4210
|
+
}
|
4211
|
+
finally { if (e_2) throw e_2.error; }
|
4212
|
+
}
|
4213
|
+
if (!isFound) {
|
4214
|
+
return false;
|
4215
|
+
}
|
4216
|
+
}
|
4217
|
+
return true;
|
4218
|
+
}
|
4219
|
+
//continue
|
4220
|
+
}
|
4221
|
+
else if (!sameRec(Object.keys(o1).filter(function (key) { return o1[key] !== undefined; }), Object.keys(o2).filter(function (key) { return o2[key] !== undefined; }), { "takeIntoAccountArraysOrdering": false }, [], [])) {
|
4222
|
+
return false;
|
4223
|
+
}
|
4224
|
+
for (var key in o1) {
|
4225
|
+
if (!sameRec(o1[key], o2[key], { takeIntoAccountArraysOrdering: takeIntoAccountArraysOrdering }, __spreadArray(__spreadArray([], __read(o1Path), false), [{ "obj": o1RealRef, key: key }], false), __spreadArray(__spreadArray([], __read(o2Path), false), [{ "obj": o2RealRef, key: key }], false))) {
|
4226
|
+
return false;
|
4227
|
+
}
|
4228
|
+
}
|
4229
|
+
return true;
|
4230
|
+
}
|
4231
|
+
return function same(o1, o2, _a) {
|
4232
|
+
var _b = _a === void 0 ? { "takeIntoAccountArraysOrdering": true } : _a, takeIntoAccountArraysOrdering = _b.takeIntoAccountArraysOrdering;
|
4233
|
+
return sameRec(o1, o2, { takeIntoAccountArraysOrdering: takeIntoAccountArraysOrdering }, [], []);
|
4234
|
+
};
|
4235
|
+
})();
|
4236
|
+
/**
|
4237
|
+
* Return the "same" function with "takeIntoAccountArraysOrdering" default value set as desired.
|
4238
|
+
* */
|
4239
|
+
function sameFactory(_a) {
|
4240
|
+
var takeIntoAccountArraysOrdering = _a.takeIntoAccountArraysOrdering;
|
4241
|
+
return {
|
4242
|
+
"same": function (o1, o2, prop) {
|
4243
|
+
if (prop === void 0) { prop = { takeIntoAccountArraysOrdering: takeIntoAccountArraysOrdering }; }
|
4244
|
+
return (0, exports.same)(o1, o2, prop);
|
4245
|
+
}
|
4246
|
+
};
|
4247
|
+
}
|
4248
|
+
exports.sameFactory = sameFactory;
|
4249
|
+
//# sourceMappingURL=same.js.map
|
4213
4250
|
|
4214
4251
|
/***/ }),
|
4215
4252
|
|
4216
|
-
/***/
|
4253
|
+
/***/ 5725:
|
4217
4254
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
4218
4255
|
|
4219
4256
|
"use strict";
|
4220
4257
|
|
4221
|
-
|
4222
|
-
|
4223
|
-
|
4224
|
-
|
4225
|
-
|
4226
|
-
|
4227
|
-
|
4228
|
-
|
4229
|
-
|
4230
|
-
|
4231
|
-
/**
|
4232
|
-
* Handle cli input
|
4233
|
-
*/
|
4234
|
-
class Input {
|
4235
|
-
/**
|
4236
|
-
* Input constructor
|
4237
|
-
*
|
4238
|
-
* @param {any} stream - stream to catch (optional)
|
4239
|
-
*/
|
4240
|
-
constructor(stream = process.stdin) {
|
4241
|
-
// set default values
|
4242
|
-
this.stream = stream;
|
4243
|
-
this.values = [];
|
4244
|
-
this.selectedValue = 0;
|
4245
|
-
|
4246
|
-
this.onSelectListener = () => {};
|
4247
|
-
|
4248
|
-
this.onKeyPress = this.onKeyPress.bind(this);
|
4249
|
-
}
|
4250
|
-
/**
|
4251
|
-
* Set the available values
|
4252
|
-
*
|
4253
|
-
* @param {array} values - all available values
|
4254
|
-
*/
|
4255
|
-
|
4256
|
-
|
4257
|
-
setValues(values) {
|
4258
|
-
this.values = values;
|
4259
|
-
|
4260
|
-
if (this.renderer) {
|
4261
|
-
this.renderer.setValues(values);
|
4258
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4259
|
+
exports.DateLike = exports.ArrayLike = exports.MapLike = exports.SetLike = void 0;
|
4260
|
+
var typeGuard_1 = __webpack_require__(47393);
|
4261
|
+
var getPrototypeChain_1 = __webpack_require__(53501);
|
4262
|
+
var SetLike;
|
4263
|
+
(function (SetLike) {
|
4264
|
+
function match(set) {
|
4265
|
+
return ((0, typeGuard_1.typeGuard)(set, true) &&
|
4266
|
+
typeof set.values === "function" &&
|
4267
|
+
getPrototypeChain_1.getPrototypeChain.isMatched(set, /Set/));
|
4262
4268
|
}
|
4263
|
-
|
4264
|
-
|
4265
|
-
|
4266
|
-
|
4267
|
-
|
4268
|
-
|
4269
|
-
|
4270
|
-
|
4271
|
-
|
4272
|
-
|
4273
|
-
|
4274
|
-
|
4275
|
-
|
4276
|
-
|
4277
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
|
4281
|
-
|
4282
|
-
|
4283
|
-
|
4284
|
-
|
4285
|
-
|
4286
|
-
|
4287
|
-
|
4288
|
-
|
4289
|
-
|
4290
|
-
|
4291
|
-
|
4292
|
-
|
4293
|
-
|
4294
|
-
|
4295
|
-
|
4296
|
-
* Open the stream and listen for input
|
4297
|
-
*/
|
4298
|
-
|
4299
|
-
|
4300
|
-
open() {
|
4301
|
-
// register keypress event
|
4302
|
-
_readline.default.emitKeypressEvents(this.stream); // handle keypress
|
4303
|
-
|
4304
|
-
|
4305
|
-
this.stream.on('keypress', this.onKeyPress); // initially render the response
|
4269
|
+
SetLike.match = match;
|
4270
|
+
})(SetLike = exports.SetLike || (exports.SetLike = {}));
|
4271
|
+
var MapLike;
|
4272
|
+
(function (MapLike) {
|
4273
|
+
function match(map) {
|
4274
|
+
return ((0, typeGuard_1.typeGuard)(map, true) &&
|
4275
|
+
typeof map.keys === "function" &&
|
4276
|
+
typeof map.get === "function" &&
|
4277
|
+
getPrototypeChain_1.getPrototypeChain.isMatched(map, /Map/));
|
4278
|
+
}
|
4279
|
+
MapLike.match = match;
|
4280
|
+
})(MapLike = exports.MapLike || (exports.MapLike = {}));
|
4281
|
+
var ArrayLike;
|
4282
|
+
(function (ArrayLike) {
|
4283
|
+
function match(arr) {
|
4284
|
+
return ((0, typeGuard_1.typeGuard)(arr, true) &&
|
4285
|
+
typeof arr.length === "number" &&
|
4286
|
+
arr.length !== 0 ?
|
4287
|
+
("".concat(arr.length - 1) in arr) :
|
4288
|
+
getPrototypeChain_1.getPrototypeChain.isMatched(arr, /Array/));
|
4289
|
+
}
|
4290
|
+
ArrayLike.match = match;
|
4291
|
+
})(ArrayLike = exports.ArrayLike || (exports.ArrayLike = {}));
|
4292
|
+
var DateLike;
|
4293
|
+
(function (DateLike) {
|
4294
|
+
function match(date) {
|
4295
|
+
return ((0, typeGuard_1.typeGuard)(date, true) &&
|
4296
|
+
typeof date.getTime === "function" &&
|
4297
|
+
getPrototypeChain_1.getPrototypeChain.isMatched(date, /Date/));
|
4298
|
+
}
|
4299
|
+
DateLike.match = match;
|
4300
|
+
})(DateLike = exports.DateLike || (exports.DateLike = {}));
|
4301
|
+
//# sourceMappingURL=types.js.map
|
4306
4302
|
|
4307
|
-
|
4308
|
-
this.renderer.render(this.selectedValue);
|
4309
|
-
} // hide pressed keys and start listening on input
|
4303
|
+
/***/ }),
|
4310
4304
|
|
4305
|
+
/***/ 32243:
|
4306
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
4311
4307
|
|
4312
|
-
|
4313
|
-
this.stream.resume();
|
4314
|
-
}
|
4315
|
-
/**
|
4316
|
-
* Close the stream
|
4317
|
-
*
|
4318
|
-
* @param {boolean} cancelled - true if no value was selected (optional)
|
4319
|
-
*/
|
4308
|
+
"use strict";
|
4320
4309
|
|
4310
|
+
var __read = (this && this.__read) || function (o, n) {
|
4311
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
4312
|
+
if (!m) return o;
|
4313
|
+
var i = m.call(o), r, ar = [], e;
|
4314
|
+
try {
|
4315
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
4316
|
+
}
|
4317
|
+
catch (error) { e = { error: error }; }
|
4318
|
+
finally {
|
4319
|
+
try {
|
4320
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
4321
|
+
}
|
4322
|
+
finally { if (e) throw e.error; }
|
4323
|
+
}
|
4324
|
+
return ar;
|
4325
|
+
};
|
4326
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
4327
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
4328
|
+
if (ar || !(i in from)) {
|
4329
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
4330
|
+
ar[i] = from[i];
|
4331
|
+
}
|
4332
|
+
}
|
4333
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
4334
|
+
};
|
4335
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4336
|
+
exports.allEqualsFactory = exports.allEquals = exports.arrAllEquals = void 0;
|
4337
|
+
var allEqualsTo_1 = __webpack_require__(49685);
|
4338
|
+
var reduceify_1 = __webpack_require__(37560);
|
4339
|
+
function arrAllEquals(arr, areEquals) {
|
4340
|
+
if (areEquals === void 0) { areEquals = function (e1, e2) { return e1 === e2; }; }
|
4341
|
+
if (arr.length === 0) {
|
4342
|
+
return true;
|
4343
|
+
}
|
4344
|
+
return arr.reduce.apply(arr, __spreadArray([], __read((0, allEqualsTo_1.allEqualsTo)(arr[0], areEquals)), false));
|
4345
|
+
}
|
4346
|
+
exports.arrAllEquals = arrAllEquals;
|
4347
|
+
;
|
4348
|
+
function allEquals(areEquals) {
|
4349
|
+
return (0, reduceify_1.toReduceArguments)(arrAllEquals, areEquals);
|
4350
|
+
}
|
4351
|
+
exports.allEquals = allEquals;
|
4352
|
+
function allEqualsFactory(_a) {
|
4353
|
+
var areEquals = _a.areEquals;
|
4354
|
+
return { "allEquals": function () { return allEquals(areEquals); } };
|
4355
|
+
}
|
4356
|
+
exports.allEqualsFactory = allEqualsFactory;
|
4357
|
+
//# sourceMappingURL=allEquals.js.map
|
4321
4358
|
|
4322
|
-
|
4323
|
-
// reset stream properties
|
4324
|
-
this.stream.setRawMode(false);
|
4325
|
-
this.stream.pause(); // cleanup the output
|
4359
|
+
/***/ }),
|
4326
4360
|
|
4327
|
-
|
4328
|
-
|
4329
|
-
} // call the on select listener
|
4361
|
+
/***/ 49685:
|
4362
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
4330
4363
|
|
4364
|
+
"use strict";
|
4331
4365
|
|
4332
|
-
|
4333
|
-
|
4334
|
-
|
4335
|
-
|
4366
|
+
var __read = (this && this.__read) || function (o, n) {
|
4367
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
4368
|
+
if (!m) return o;
|
4369
|
+
var i = m.call(o), r, ar = [], e;
|
4370
|
+
try {
|
4371
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
4336
4372
|
}
|
4337
|
-
|
4338
|
-
|
4339
|
-
|
4340
|
-
|
4341
|
-
|
4342
|
-
|
4343
|
-
|
4344
|
-
|
4345
|
-
render() {
|
4346
|
-
if (!this.renderer) {
|
4347
|
-
return;
|
4373
|
+
catch (error) { e = { error: error }; }
|
4374
|
+
finally {
|
4375
|
+
try {
|
4376
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
4377
|
+
}
|
4378
|
+
finally { if (e) throw e.error; }
|
4348
4379
|
}
|
4349
|
-
|
4350
|
-
|
4351
|
-
|
4352
|
-
|
4353
|
-
|
4354
|
-
|
4355
|
-
|
4356
|
-
|
4357
|
-
*/
|
4358
|
-
|
4359
|
-
|
4360
|
-
onKeyPress(string, key) {
|
4361
|
-
if (key) {
|
4362
|
-
if (key.name === 'up' && this.selectedValue > 0) {
|
4363
|
-
this.selectedValue--;
|
4364
|
-
this.render();
|
4365
|
-
} else if (key.name === 'down' && this.selectedValue + 1 < this.values.length) {
|
4366
|
-
this.selectedValue++;
|
4367
|
-
this.render();
|
4368
|
-
} else if (key.name === 'return') {
|
4369
|
-
this.close();
|
4370
|
-
} else if (key.name === 'escape' || key.name === 'c' && key.ctrl) {
|
4371
|
-
this.close(true);
|
4372
|
-
}
|
4380
|
+
return ar;
|
4381
|
+
};
|
4382
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
4383
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
4384
|
+
if (ar || !(i in from)) {
|
4385
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
4386
|
+
ar[i] = from[i];
|
4387
|
+
}
|
4373
4388
|
}
|
4374
|
-
|
4375
|
-
|
4389
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
4390
|
+
};
|
4391
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4392
|
+
exports.allEqualsToFactory = exports.allEqualsTo = exports.arrAllEqualsTo = void 0;
|
4393
|
+
var reduceify_1 = __webpack_require__(37560);
|
4394
|
+
var every_1 = __webpack_require__(9594);
|
4395
|
+
function arrAllEqualsTo(arr, to, areEquals) {
|
4396
|
+
if (areEquals === void 0) { areEquals = function (e, to) { return e === to; }; }
|
4397
|
+
return arr.reduce.apply(arr, __spreadArray([], __read((0, every_1.every)(function (e) { return areEquals(e, to); })), false));
|
4376
4398
|
}
|
4377
|
-
|
4378
|
-
|
4399
|
+
exports.arrAllEqualsTo = arrAllEqualsTo;
|
4400
|
+
;
|
4401
|
+
function allEqualsTo(to, areEquals) {
|
4402
|
+
return (0, reduceify_1.toReduceArguments)(arrAllEqualsTo, to, areEquals);
|
4403
|
+
}
|
4404
|
+
exports.allEqualsTo = allEqualsTo;
|
4405
|
+
function allEqualsToFactory(_a) {
|
4406
|
+
var areEquals = _a.areEquals;
|
4407
|
+
return { "allEqualsTo": function (to) { return allEqualsTo(to, areEquals); } };
|
4408
|
+
}
|
4409
|
+
exports.allEqualsToFactory = allEqualsToFactory;
|
4410
|
+
//# sourceMappingURL=allEqualsTo.js.map
|
4379
4411
|
|
4380
4412
|
/***/ }),
|
4381
4413
|
|
4382
|
-
/***/
|
4414
|
+
/***/ 9594:
|
4383
4415
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
4384
4416
|
|
4385
4417
|
"use strict";
|
4386
4418
|
|
4387
|
-
|
4388
|
-
|
4389
|
-
|
4390
|
-
|
4391
|
-
|
4392
|
-
|
4393
|
-
|
4394
|
-
|
4395
|
-
var _ansiEscapes = __webpack_require__(18512);
|
4396
|
-
|
4397
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
4398
|
-
|
4399
|
-
/**
|
4400
|
-
* Response renderer
|
4401
|
-
*/
|
4402
|
-
class Renderer {
|
4403
|
-
/**
|
4404
|
-
* Renderer constructor
|
4405
|
-
*
|
4406
|
-
* @param {object} options - renderer options
|
4407
|
-
* @param {any} stream - stream to write to (optional)
|
4408
|
-
*/
|
4409
|
-
constructor(options, stream = process.stdout) {
|
4410
|
-
this.options = options;
|
4411
|
-
this.stream = stream;
|
4412
|
-
this.values = [];
|
4413
|
-
this.initialRender = true;
|
4414
|
-
}
|
4415
|
-
/**
|
4416
|
-
* Set the available values
|
4417
|
-
*
|
4418
|
-
* @param {array} values - all available values
|
4419
|
-
*/
|
4420
|
-
|
4421
|
-
|
4422
|
-
setValues(values) {
|
4423
|
-
this.values = values;
|
4424
|
-
}
|
4425
|
-
/**
|
4426
|
-
* Render the values
|
4427
|
-
*
|
4428
|
-
* @param {number} selectedValue - selected value (optional)
|
4429
|
-
*/
|
4430
|
-
|
4431
|
-
|
4432
|
-
render(selectedValue = 0) {
|
4433
|
-
if (this.initialRender) {
|
4434
|
-
// hide the cursor initially
|
4435
|
-
this.initialRender = false;
|
4436
|
-
this.stream.write(_ansiEscapes.cursorHide);
|
4437
|
-
} else {
|
4438
|
-
// remove previous lines and values
|
4439
|
-
this.stream.write((0, _ansiEscapes.eraseLines)(this.values.length));
|
4440
|
-
} // output the current values
|
4441
|
-
|
4442
|
-
|
4443
|
-
this.values.forEach((value, index) => {
|
4444
|
-
const symbol = selectedValue === index ? this.options.selected : this.options.unselected;
|
4445
|
-
const indentation = ' '.repeat(this.options.indentation);
|
4446
|
-
const renderedValue = this.options.valueRenderer(value, selectedValue === index);
|
4447
|
-
const end = index !== this.values.length - 1 ? '\n' : '';
|
4448
|
-
this.stream.write(indentation + symbol + ' ' + renderedValue + end);
|
4449
|
-
});
|
4450
|
-
}
|
4451
|
-
/**
|
4452
|
-
* Cleanup the console at the end
|
4453
|
-
*/
|
4454
|
-
|
4455
|
-
|
4456
|
-
cleanup() {
|
4457
|
-
this.stream.write((0, _ansiEscapes.eraseLines)(this.values.length));
|
4458
|
-
this.stream.write(_ansiEscapes.cursorShow);
|
4459
|
-
}
|
4460
|
-
|
4419
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4420
|
+
exports.every = exports.arrEvery = void 0;
|
4421
|
+
var reduceify_1 = __webpack_require__(37560);
|
4422
|
+
function arrEvery(arr, test) {
|
4423
|
+
if (test === void 0) { test = function (e) { return !!e; }; }
|
4424
|
+
return arr
|
4425
|
+
.map(function (e) { return test(e); })
|
4426
|
+
.reduce(function (prev, curr) { return curr && prev; }, true);
|
4461
4427
|
}
|
4462
|
-
|
4463
|
-
|
4428
|
+
exports.arrEvery = arrEvery;
|
4429
|
+
function every(test) {
|
4430
|
+
return (0, reduceify_1.toReduceArguments)(arrEvery, test);
|
4431
|
+
}
|
4432
|
+
exports.every = every;
|
4433
|
+
//# sourceMappingURL=every.js.map
|
4464
4434
|
|
4465
4435
|
/***/ }),
|
4466
4436
|
|
4467
|
-
/***/
|
4468
|
-
/***/ ((__unused_webpack_module, exports)
|
4437
|
+
/***/ 37560:
|
4438
|
+
/***/ (function(__unused_webpack_module, exports) {
|
4469
4439
|
|
4470
4440
|
"use strict";
|
4471
4441
|
|
4472
|
-
|
4473
|
-
|
4474
|
-
|
4475
|
-
|
4476
|
-
|
4477
|
-
|
4478
|
-
/**
|
4479
|
-
* Map incoming and outgoing values if the initial values are an array
|
4480
|
-
*
|
4481
|
-
* @param {object} options - cli-select options
|
4482
|
-
*/
|
4483
|
-
const withArrayValues = options => {
|
4484
|
-
return {
|
4485
|
-
input: options.values,
|
4486
|
-
output: (id, value) => {
|
4487
|
-
return {
|
4488
|
-
id,
|
4489
|
-
value
|
4490
|
-
};
|
4442
|
+
var __read = (this && this.__read) || function (o, n) {
|
4443
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
4444
|
+
if (!m) return o;
|
4445
|
+
var i = m.call(o), r, ar = [], e;
|
4446
|
+
try {
|
4447
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
4491
4448
|
}
|
4492
|
-
|
4449
|
+
catch (error) { e = { error: error }; }
|
4450
|
+
finally {
|
4451
|
+
try {
|
4452
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
4453
|
+
}
|
4454
|
+
finally { if (e) throw e.error; }
|
4455
|
+
}
|
4456
|
+
return ar;
|
4493
4457
|
};
|
4494
|
-
|
4495
|
-
|
4496
|
-
|
4497
|
-
|
4498
|
-
|
4499
|
-
|
4500
|
-
|
4501
|
-
exports.withArrayValues = withArrayValues;
|
4502
|
-
|
4503
|
-
const withObjectValues = options => {
|
4504
|
-
const originalValues = options.values;
|
4505
|
-
return {
|
4506
|
-
input: Object.values(originalValues),
|
4507
|
-
output: (id, value) => {
|
4508
|
-
return {
|
4509
|
-
id: Object.keys(originalValues)[id],
|
4510
|
-
value
|
4511
|
-
};
|
4458
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
4459
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
4460
|
+
if (ar || !(i in from)) {
|
4461
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
4462
|
+
ar[i] = from[i];
|
4463
|
+
}
|
4512
4464
|
}
|
4513
|
-
|
4465
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
4514
4466
|
};
|
4515
|
-
|
4516
|
-
exports.
|
4467
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
4468
|
+
exports.toReduceArguments = void 0;
|
4469
|
+
function toReduceArguments(arrOp) {
|
4470
|
+
var params = [];
|
4471
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
4472
|
+
params[_i - 1] = arguments[_i];
|
4473
|
+
}
|
4474
|
+
var outWrap = [];
|
4475
|
+
var reduceCallbackFunction = function () {
|
4476
|
+
var _a = [];
|
4477
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
4478
|
+
_a[_i] = arguments[_i];
|
4479
|
+
}
|
4480
|
+
var _b = __read(_a, 4), array = _b[3];
|
4481
|
+
var out;
|
4482
|
+
if (outWrap.length === 1) {
|
4483
|
+
out = outWrap[0];
|
4484
|
+
}
|
4485
|
+
else {
|
4486
|
+
out = arrOp.apply(void 0, __spreadArray([array], __read(params), false));
|
4487
|
+
outWrap = [out];
|
4488
|
+
}
|
4489
|
+
return out;
|
4490
|
+
};
|
4491
|
+
return [
|
4492
|
+
reduceCallbackFunction,
|
4493
|
+
arrOp.apply(void 0, __spreadArray([[]], __read(params), false))
|
4494
|
+
];
|
4495
|
+
}
|
4496
|
+
exports.toReduceArguments = toReduceArguments;
|
4497
|
+
//# sourceMappingURL=reduceify.js.map
|
4517
4498
|
|
4518
4499
|
/***/ }),
|
4519
4500
|
|
4520
|
-
/***/
|
4501
|
+
/***/ 65134:
|
4521
4502
|
/***/ ((__unused_webpack_module, exports) => {
|
4522
4503
|
|
4523
4504
|
"use strict";
|
4524
4505
|
|
4506
|
+
exports.__esModule = true;
|
4507
|
+
exports.Polyfill = exports.LightMapImpl = void 0;
|
4508
|
+
var LightMapImpl = /** @class */ (function () {
|
4509
|
+
function LightMapImpl() {
|
4510
|
+
this.record = [];
|
4511
|
+
}
|
4512
|
+
LightMapImpl.prototype.has = function (key) {
|
4513
|
+
return this.record
|
4514
|
+
.map(function (_a) {
|
4515
|
+
var _key = _a[0];
|
4516
|
+
return _key;
|
4517
|
+
})
|
4518
|
+
.indexOf(key) >= 0;
|
4519
|
+
};
|
4520
|
+
LightMapImpl.prototype.get = function (key) {
|
4521
|
+
var entry = this.record
|
4522
|
+
.filter(function (_a) {
|
4523
|
+
var _key = _a[0];
|
4524
|
+
return _key === key;
|
4525
|
+
})[0];
|
4526
|
+
if (entry === undefined) {
|
4527
|
+
return undefined;
|
4528
|
+
}
|
4529
|
+
return entry[1];
|
4530
|
+
};
|
4531
|
+
LightMapImpl.prototype.set = function (key, value) {
|
4532
|
+
var entry = this.record
|
4533
|
+
.filter(function (_a) {
|
4534
|
+
var _key = _a[0];
|
4535
|
+
return _key === key;
|
4536
|
+
})[0];
|
4537
|
+
if (entry === undefined) {
|
4538
|
+
this.record.push([key, value]);
|
4539
|
+
}
|
4540
|
+
else {
|
4541
|
+
entry[1] = value;
|
4542
|
+
}
|
4543
|
+
return this;
|
4544
|
+
};
|
4545
|
+
LightMapImpl.prototype["delete"] = function (key) {
|
4546
|
+
var index = this.record.map(function (_a) {
|
4547
|
+
var key = _a[0];
|
4548
|
+
return key;
|
4549
|
+
}).indexOf(key);
|
4550
|
+
if (index < 0) {
|
4551
|
+
return false;
|
4552
|
+
}
|
4553
|
+
this.record.splice(index, 1);
|
4554
|
+
return true;
|
4555
|
+
};
|
4556
|
+
LightMapImpl.prototype.keys = function () {
|
4557
|
+
return this.record.map(function (_a) {
|
4558
|
+
var key = _a[0];
|
4559
|
+
return key;
|
4560
|
+
});
|
4561
|
+
};
|
4562
|
+
return LightMapImpl;
|
4563
|
+
}());
|
4564
|
+
exports.LightMapImpl = LightMapImpl;
|
4565
|
+
exports.Polyfill = typeof Map !== "undefined" ? Map : LightMapImpl;
|
4566
|
+
//# sourceMappingURL=Map.js.map
|
4525
4567
|
|
4526
|
-
|
4568
|
+
/***/ }),
|
4527
4569
|
|
4528
|
-
|
4529
|
-
|
4530
|
-
super(message); // Maintains proper stack trace (only available on V8)
|
4570
|
+
/***/ 12903:
|
4571
|
+
/***/ ((__unused_webpack_module, exports) => {
|
4531
4572
|
|
4532
|
-
|
4573
|
+
"use strict";
|
4533
4574
|
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4575
|
+
exports.__esModule = true;
|
4576
|
+
if (!Object.is) {
|
4577
|
+
Object.is = function (x, y) {
|
4578
|
+
// SameValue algorithm
|
4579
|
+
if (x === y) { // Steps 1-5, 7-10
|
4580
|
+
// Steps 6.b-6.e: +0 != -0
|
4581
|
+
return x !== 0 || 1 / x === 1 / y;
|
4582
|
+
}
|
4583
|
+
else {
|
4584
|
+
// Step 6.a: NaN == NaN
|
4585
|
+
return x !== x && y !== y;
|
4586
|
+
}
|
4587
|
+
};
|
4588
|
+
}
|
4589
|
+
//# sourceMappingURL=Object.is.js.map
|
4537
4590
|
|
4538
|
-
|
4539
|
-
}
|
4591
|
+
/***/ }),
|
4540
4592
|
|
4541
|
-
|
4593
|
+
/***/ 44105:
|
4594
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
4542
4595
|
|
4543
|
-
|
4596
|
+
"use strict";
|
4544
4597
|
|
4598
|
+
exports.__esModule = true;
|
4599
|
+
exports.Polyfill = exports.LightSetImpl = void 0;
|
4600
|
+
var Map_1 = __webpack_require__(65134);
|
4601
|
+
var LightSetImpl = /** @class */ (function () {
|
4602
|
+
function LightSetImpl(values) {
|
4603
|
+
this.map = new Map_1.Polyfill();
|
4604
|
+
if (values === undefined) {
|
4605
|
+
return;
|
4606
|
+
}
|
4607
|
+
for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
|
4608
|
+
var value = values_1[_i];
|
4609
|
+
this.add(value);
|
4610
|
+
}
|
4611
|
+
}
|
4612
|
+
LightSetImpl.prototype.has = function (value) {
|
4613
|
+
return this.map.has(value);
|
4614
|
+
};
|
4615
|
+
LightSetImpl.prototype.add = function (value) {
|
4616
|
+
this.map.set(value, true);
|
4617
|
+
return this;
|
4618
|
+
};
|
4619
|
+
LightSetImpl.prototype.values = function () {
|
4620
|
+
return this.map.keys();
|
4621
|
+
};
|
4622
|
+
LightSetImpl.prototype["delete"] = function (value) {
|
4623
|
+
return this.map["delete"](value);
|
4624
|
+
};
|
4625
|
+
return LightSetImpl;
|
4626
|
+
}());
|
4627
|
+
exports.LightSetImpl = LightSetImpl;
|
4628
|
+
exports.Polyfill = typeof Set !== "undefined" ? Set : LightSetImpl;
|
4629
|
+
//# sourceMappingURL=Set.js.map
|
4545
4630
|
|
4546
4631
|
/***/ }),
|
4547
4632
|
|