@catladder/cli 0.0.0-main-42eb5549 → 0.0.0-main-583cebe7
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/bundles/catci/index.js +1310 -717
- package/dist/bundles/catenv/index.js +6130 -6149
- package/dist/bundles/cli/index.js +29265 -29388
- package/dist/cli/src/config/getProjectConfig.js +21 -40
- package/dist/cli/src/config/getProjectConfig.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/config/getProjectConfig.ts +16 -17
|
@@ -13028,7 +13028,7 @@ exports.flatten = (...args) => {
|
|
|
13028
13028
|
"use strict";
|
|
13029
13029
|
|
|
13030
13030
|
|
|
13031
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
13031
|
+
var GetIntrinsic = __nccwpck_require__(62);
|
|
13032
13032
|
|
|
13033
13033
|
var callBind = __nccwpck_require__(3398);
|
|
13034
13034
|
|
|
@@ -13051,8 +13051,8 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
13051
13051
|
"use strict";
|
|
13052
13052
|
|
|
13053
13053
|
|
|
13054
|
-
var bind = __nccwpck_require__(
|
|
13055
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
13054
|
+
var bind = __nccwpck_require__(5039);
|
|
13055
|
+
var GetIntrinsic = __nccwpck_require__(62);
|
|
13056
13056
|
|
|
13057
13057
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
13058
13058
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
@@ -13098,6 +13098,488 @@ if ($defineProperty) {
|
|
|
13098
13098
|
}
|
|
13099
13099
|
|
|
13100
13100
|
|
|
13101
|
+
/***/ }),
|
|
13102
|
+
|
|
13103
|
+
/***/ 1450:
|
|
13104
|
+
/***/ ((module) => {
|
|
13105
|
+
|
|
13106
|
+
"use strict";
|
|
13107
|
+
|
|
13108
|
+
|
|
13109
|
+
/* eslint no-invalid-this: 1 */
|
|
13110
|
+
|
|
13111
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
13112
|
+
var slice = Array.prototype.slice;
|
|
13113
|
+
var toStr = Object.prototype.toString;
|
|
13114
|
+
var funcType = '[object Function]';
|
|
13115
|
+
|
|
13116
|
+
module.exports = function bind(that) {
|
|
13117
|
+
var target = this;
|
|
13118
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
13119
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
13120
|
+
}
|
|
13121
|
+
var args = slice.call(arguments, 1);
|
|
13122
|
+
|
|
13123
|
+
var bound;
|
|
13124
|
+
var binder = function () {
|
|
13125
|
+
if (this instanceof bound) {
|
|
13126
|
+
var result = target.apply(
|
|
13127
|
+
this,
|
|
13128
|
+
args.concat(slice.call(arguments))
|
|
13129
|
+
);
|
|
13130
|
+
if (Object(result) === result) {
|
|
13131
|
+
return result;
|
|
13132
|
+
}
|
|
13133
|
+
return this;
|
|
13134
|
+
} else {
|
|
13135
|
+
return target.apply(
|
|
13136
|
+
that,
|
|
13137
|
+
args.concat(slice.call(arguments))
|
|
13138
|
+
);
|
|
13139
|
+
}
|
|
13140
|
+
};
|
|
13141
|
+
|
|
13142
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
13143
|
+
var boundArgs = [];
|
|
13144
|
+
for (var i = 0; i < boundLength; i++) {
|
|
13145
|
+
boundArgs.push('$' + i);
|
|
13146
|
+
}
|
|
13147
|
+
|
|
13148
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
13149
|
+
|
|
13150
|
+
if (target.prototype) {
|
|
13151
|
+
var Empty = function Empty() {};
|
|
13152
|
+
Empty.prototype = target.prototype;
|
|
13153
|
+
bound.prototype = new Empty();
|
|
13154
|
+
Empty.prototype = null;
|
|
13155
|
+
}
|
|
13156
|
+
|
|
13157
|
+
return bound;
|
|
13158
|
+
};
|
|
13159
|
+
|
|
13160
|
+
|
|
13161
|
+
/***/ }),
|
|
13162
|
+
|
|
13163
|
+
/***/ 5039:
|
|
13164
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
13165
|
+
|
|
13166
|
+
"use strict";
|
|
13167
|
+
|
|
13168
|
+
|
|
13169
|
+
var implementation = __nccwpck_require__(1450);
|
|
13170
|
+
|
|
13171
|
+
module.exports = Function.prototype.bind || implementation;
|
|
13172
|
+
|
|
13173
|
+
|
|
13174
|
+
/***/ }),
|
|
13175
|
+
|
|
13176
|
+
/***/ 62:
|
|
13177
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
13178
|
+
|
|
13179
|
+
"use strict";
|
|
13180
|
+
|
|
13181
|
+
|
|
13182
|
+
var undefined;
|
|
13183
|
+
|
|
13184
|
+
var $SyntaxError = SyntaxError;
|
|
13185
|
+
var $Function = Function;
|
|
13186
|
+
var $TypeError = TypeError;
|
|
13187
|
+
|
|
13188
|
+
// eslint-disable-next-line consistent-return
|
|
13189
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
13190
|
+
try {
|
|
13191
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
13192
|
+
} catch (e) {}
|
|
13193
|
+
};
|
|
13194
|
+
|
|
13195
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
13196
|
+
if ($gOPD) {
|
|
13197
|
+
try {
|
|
13198
|
+
$gOPD({}, '');
|
|
13199
|
+
} catch (e) {
|
|
13200
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
13201
|
+
}
|
|
13202
|
+
}
|
|
13203
|
+
|
|
13204
|
+
var throwTypeError = function () {
|
|
13205
|
+
throw new $TypeError();
|
|
13206
|
+
};
|
|
13207
|
+
var ThrowTypeError = $gOPD
|
|
13208
|
+
? (function () {
|
|
13209
|
+
try {
|
|
13210
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
13211
|
+
arguments.callee; // IE 8 does not throw here
|
|
13212
|
+
return throwTypeError;
|
|
13213
|
+
} catch (calleeThrows) {
|
|
13214
|
+
try {
|
|
13215
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
13216
|
+
return $gOPD(arguments, 'callee').get;
|
|
13217
|
+
} catch (gOPDthrows) {
|
|
13218
|
+
return throwTypeError;
|
|
13219
|
+
}
|
|
13220
|
+
}
|
|
13221
|
+
}())
|
|
13222
|
+
: throwTypeError;
|
|
13223
|
+
|
|
13224
|
+
var hasSymbols = __nccwpck_require__(9340)();
|
|
13225
|
+
|
|
13226
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
13227
|
+
|
|
13228
|
+
var needsEval = {};
|
|
13229
|
+
|
|
13230
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
13231
|
+
|
|
13232
|
+
var INTRINSICS = {
|
|
13233
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
13234
|
+
'%Array%': Array,
|
|
13235
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
13236
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
13237
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
13238
|
+
'%AsyncFunction%': needsEval,
|
|
13239
|
+
'%AsyncGenerator%': needsEval,
|
|
13240
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
13241
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
13242
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
13243
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
13244
|
+
'%Boolean%': Boolean,
|
|
13245
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
13246
|
+
'%Date%': Date,
|
|
13247
|
+
'%decodeURI%': decodeURI,
|
|
13248
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
13249
|
+
'%encodeURI%': encodeURI,
|
|
13250
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
13251
|
+
'%Error%': Error,
|
|
13252
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
13253
|
+
'%EvalError%': EvalError,
|
|
13254
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
13255
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
13256
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
13257
|
+
'%Function%': $Function,
|
|
13258
|
+
'%GeneratorFunction%': needsEval,
|
|
13259
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
13260
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
13261
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
13262
|
+
'%isFinite%': isFinite,
|
|
13263
|
+
'%isNaN%': isNaN,
|
|
13264
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
13265
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
13266
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
13267
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
13268
|
+
'%Math%': Math,
|
|
13269
|
+
'%Number%': Number,
|
|
13270
|
+
'%Object%': Object,
|
|
13271
|
+
'%parseFloat%': parseFloat,
|
|
13272
|
+
'%parseInt%': parseInt,
|
|
13273
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
13274
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
13275
|
+
'%RangeError%': RangeError,
|
|
13276
|
+
'%ReferenceError%': ReferenceError,
|
|
13277
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
13278
|
+
'%RegExp%': RegExp,
|
|
13279
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
13280
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
13281
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
13282
|
+
'%String%': String,
|
|
13283
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
13284
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
13285
|
+
'%SyntaxError%': $SyntaxError,
|
|
13286
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
13287
|
+
'%TypedArray%': TypedArray,
|
|
13288
|
+
'%TypeError%': $TypeError,
|
|
13289
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
13290
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
13291
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
13292
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
13293
|
+
'%URIError%': URIError,
|
|
13294
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
13295
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
13296
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
13297
|
+
};
|
|
13298
|
+
|
|
13299
|
+
var doEval = function doEval(name) {
|
|
13300
|
+
var value;
|
|
13301
|
+
if (name === '%AsyncFunction%') {
|
|
13302
|
+
value = getEvalledConstructor('async function () {}');
|
|
13303
|
+
} else if (name === '%GeneratorFunction%') {
|
|
13304
|
+
value = getEvalledConstructor('function* () {}');
|
|
13305
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
13306
|
+
value = getEvalledConstructor('async function* () {}');
|
|
13307
|
+
} else if (name === '%AsyncGenerator%') {
|
|
13308
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
13309
|
+
if (fn) {
|
|
13310
|
+
value = fn.prototype;
|
|
13311
|
+
}
|
|
13312
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
13313
|
+
var gen = doEval('%AsyncGenerator%');
|
|
13314
|
+
if (gen) {
|
|
13315
|
+
value = getProto(gen.prototype);
|
|
13316
|
+
}
|
|
13317
|
+
}
|
|
13318
|
+
|
|
13319
|
+
INTRINSICS[name] = value;
|
|
13320
|
+
|
|
13321
|
+
return value;
|
|
13322
|
+
};
|
|
13323
|
+
|
|
13324
|
+
var LEGACY_ALIASES = {
|
|
13325
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
13326
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
13327
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
13328
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
13329
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
13330
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
13331
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
13332
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
13333
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
13334
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
13335
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
13336
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
13337
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
13338
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
13339
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
13340
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
13341
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
13342
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
13343
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
13344
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
13345
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
13346
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
13347
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
13348
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
13349
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
13350
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
13351
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
13352
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
13353
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
13354
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
13355
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
13356
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
13357
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
13358
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
13359
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
13360
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
13361
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
13362
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
13363
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
13364
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
13365
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
13366
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
13367
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
13368
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
13369
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
13370
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
13371
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
13372
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
13373
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
13374
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
13375
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
13376
|
+
};
|
|
13377
|
+
|
|
13378
|
+
var bind = __nccwpck_require__(5039);
|
|
13379
|
+
var hasOwn = __nccwpck_require__(1558);
|
|
13380
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
13381
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
13382
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
13383
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
13384
|
+
|
|
13385
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
13386
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
13387
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
13388
|
+
var stringToPath = function stringToPath(string) {
|
|
13389
|
+
var first = $strSlice(string, 0, 1);
|
|
13390
|
+
var last = $strSlice(string, -1);
|
|
13391
|
+
if (first === '%' && last !== '%') {
|
|
13392
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
13393
|
+
} else if (last === '%' && first !== '%') {
|
|
13394
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
13395
|
+
}
|
|
13396
|
+
var result = [];
|
|
13397
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
13398
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
13399
|
+
});
|
|
13400
|
+
return result;
|
|
13401
|
+
};
|
|
13402
|
+
/* end adaptation */
|
|
13403
|
+
|
|
13404
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
13405
|
+
var intrinsicName = name;
|
|
13406
|
+
var alias;
|
|
13407
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
13408
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
13409
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
13410
|
+
}
|
|
13411
|
+
|
|
13412
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
13413
|
+
var value = INTRINSICS[intrinsicName];
|
|
13414
|
+
if (value === needsEval) {
|
|
13415
|
+
value = doEval(intrinsicName);
|
|
13416
|
+
}
|
|
13417
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
13418
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
13419
|
+
}
|
|
13420
|
+
|
|
13421
|
+
return {
|
|
13422
|
+
alias: alias,
|
|
13423
|
+
name: intrinsicName,
|
|
13424
|
+
value: value
|
|
13425
|
+
};
|
|
13426
|
+
}
|
|
13427
|
+
|
|
13428
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
13429
|
+
};
|
|
13430
|
+
|
|
13431
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
13432
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
13433
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
13434
|
+
}
|
|
13435
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
13436
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
13437
|
+
}
|
|
13438
|
+
|
|
13439
|
+
var parts = stringToPath(name);
|
|
13440
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
13441
|
+
|
|
13442
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
13443
|
+
var intrinsicRealName = intrinsic.name;
|
|
13444
|
+
var value = intrinsic.value;
|
|
13445
|
+
var skipFurtherCaching = false;
|
|
13446
|
+
|
|
13447
|
+
var alias = intrinsic.alias;
|
|
13448
|
+
if (alias) {
|
|
13449
|
+
intrinsicBaseName = alias[0];
|
|
13450
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
13451
|
+
}
|
|
13452
|
+
|
|
13453
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
13454
|
+
var part = parts[i];
|
|
13455
|
+
var first = $strSlice(part, 0, 1);
|
|
13456
|
+
var last = $strSlice(part, -1);
|
|
13457
|
+
if (
|
|
13458
|
+
(
|
|
13459
|
+
(first === '"' || first === "'" || first === '`')
|
|
13460
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
13461
|
+
)
|
|
13462
|
+
&& first !== last
|
|
13463
|
+
) {
|
|
13464
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
13465
|
+
}
|
|
13466
|
+
if (part === 'constructor' || !isOwn) {
|
|
13467
|
+
skipFurtherCaching = true;
|
|
13468
|
+
}
|
|
13469
|
+
|
|
13470
|
+
intrinsicBaseName += '.' + part;
|
|
13471
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
13472
|
+
|
|
13473
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
13474
|
+
value = INTRINSICS[intrinsicRealName];
|
|
13475
|
+
} else if (value != null) {
|
|
13476
|
+
if (!(part in value)) {
|
|
13477
|
+
if (!allowMissing) {
|
|
13478
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
13479
|
+
}
|
|
13480
|
+
return void undefined;
|
|
13481
|
+
}
|
|
13482
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
13483
|
+
var desc = $gOPD(value, part);
|
|
13484
|
+
isOwn = !!desc;
|
|
13485
|
+
|
|
13486
|
+
// By convention, when a data property is converted to an accessor
|
|
13487
|
+
// property to emulate a data property that does not suffer from
|
|
13488
|
+
// the override mistake, that accessor's getter is marked with
|
|
13489
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
13490
|
+
// uphold the illusion by pretending to see that original data
|
|
13491
|
+
// property, i.e., returning the value rather than the getter
|
|
13492
|
+
// itself.
|
|
13493
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
13494
|
+
value = desc.get;
|
|
13495
|
+
} else {
|
|
13496
|
+
value = value[part];
|
|
13497
|
+
}
|
|
13498
|
+
} else {
|
|
13499
|
+
isOwn = hasOwn(value, part);
|
|
13500
|
+
value = value[part];
|
|
13501
|
+
}
|
|
13502
|
+
|
|
13503
|
+
if (isOwn && !skipFurtherCaching) {
|
|
13504
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
13505
|
+
}
|
|
13506
|
+
}
|
|
13507
|
+
}
|
|
13508
|
+
return value;
|
|
13509
|
+
};
|
|
13510
|
+
|
|
13511
|
+
|
|
13512
|
+
/***/ }),
|
|
13513
|
+
|
|
13514
|
+
/***/ 9340:
|
|
13515
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
13516
|
+
|
|
13517
|
+
"use strict";
|
|
13518
|
+
|
|
13519
|
+
|
|
13520
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
13521
|
+
var hasSymbolSham = __nccwpck_require__(3933);
|
|
13522
|
+
|
|
13523
|
+
module.exports = function hasNativeSymbols() {
|
|
13524
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
13525
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
13526
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
13527
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
13528
|
+
|
|
13529
|
+
return hasSymbolSham();
|
|
13530
|
+
};
|
|
13531
|
+
|
|
13532
|
+
|
|
13533
|
+
/***/ }),
|
|
13534
|
+
|
|
13535
|
+
/***/ 3933:
|
|
13536
|
+
/***/ ((module) => {
|
|
13537
|
+
|
|
13538
|
+
"use strict";
|
|
13539
|
+
|
|
13540
|
+
|
|
13541
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
13542
|
+
module.exports = function hasSymbols() {
|
|
13543
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
13544
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
13545
|
+
|
|
13546
|
+
var obj = {};
|
|
13547
|
+
var sym = Symbol('test');
|
|
13548
|
+
var symObj = Object(sym);
|
|
13549
|
+
if (typeof sym === 'string') { return false; }
|
|
13550
|
+
|
|
13551
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
13552
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
13553
|
+
|
|
13554
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
13555
|
+
// if (sym instanceof Symbol) { return false; }
|
|
13556
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
13557
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
13558
|
+
|
|
13559
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
13560
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
13561
|
+
|
|
13562
|
+
var symVal = 42;
|
|
13563
|
+
obj[sym] = symVal;
|
|
13564
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
13565
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
13566
|
+
|
|
13567
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
13568
|
+
|
|
13569
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
13570
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
13571
|
+
|
|
13572
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
13573
|
+
|
|
13574
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
13575
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
13576
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
13577
|
+
}
|
|
13578
|
+
|
|
13579
|
+
return true;
|
|
13580
|
+
};
|
|
13581
|
+
|
|
13582
|
+
|
|
13101
13583
|
/***/ }),
|
|
13102
13584
|
|
|
13103
13585
|
/***/ 2701:
|
|
@@ -22213,25 +22695,6 @@ __nccwpck_require__(497);
|
|
|
22213
22695
|
module.exports = __nccwpck_require__(1157);
|
|
22214
22696
|
|
|
22215
22697
|
|
|
22216
|
-
/***/ }),
|
|
22217
|
-
|
|
22218
|
-
/***/ 1369:
|
|
22219
|
-
/***/ ((module) => {
|
|
22220
|
-
|
|
22221
|
-
"use strict";
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
22225
|
-
|
|
22226
|
-
module.exports = function (str) {
|
|
22227
|
-
if (typeof str !== 'string') {
|
|
22228
|
-
throw new TypeError('Expected a string');
|
|
22229
|
-
}
|
|
22230
|
-
|
|
22231
|
-
return str.replace(matchOperatorsRe, '\\$&');
|
|
22232
|
-
};
|
|
22233
|
-
|
|
22234
|
-
|
|
22235
22698
|
/***/ }),
|
|
22236
22699
|
|
|
22237
22700
|
/***/ 4793:
|
|
@@ -22278,7 +22741,7 @@ module.exports = function (cb) {
|
|
|
22278
22741
|
"use strict";
|
|
22279
22742
|
|
|
22280
22743
|
var objectAssign = __nccwpck_require__(1756);
|
|
22281
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
22744
|
+
var escapeStringRegexp = __nccwpck_require__(7043);
|
|
22282
22745
|
var platform = process.platform;
|
|
22283
22746
|
|
|
22284
22747
|
var main = {
|
|
@@ -22425,6 +22888,25 @@ var fn = function (str) {
|
|
|
22425
22888
|
module.exports = objectAssign(fn, figures);
|
|
22426
22889
|
|
|
22427
22890
|
|
|
22891
|
+
/***/ }),
|
|
22892
|
+
|
|
22893
|
+
/***/ 7043:
|
|
22894
|
+
/***/ ((module) => {
|
|
22895
|
+
|
|
22896
|
+
"use strict";
|
|
22897
|
+
|
|
22898
|
+
|
|
22899
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
22900
|
+
|
|
22901
|
+
module.exports = function (str) {
|
|
22902
|
+
if (typeof str !== 'string') {
|
|
22903
|
+
throw new TypeError('Expected a string');
|
|
22904
|
+
}
|
|
22905
|
+
|
|
22906
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
22907
|
+
};
|
|
22908
|
+
|
|
22909
|
+
|
|
22428
22910
|
/***/ }),
|
|
22429
22911
|
|
|
22430
22912
|
/***/ 8191:
|
|
@@ -22684,7 +23166,31 @@ module.exports = fill;
|
|
|
22684
23166
|
|
|
22685
23167
|
/***/ }),
|
|
22686
23168
|
|
|
22687
|
-
/***/
|
|
23169
|
+
/***/ 1098:
|
|
23170
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23171
|
+
|
|
23172
|
+
"use strict";
|
|
23173
|
+
|
|
23174
|
+
var ansiRegex = __nccwpck_require__(1082);
|
|
23175
|
+
var re = new RegExp(ansiRegex().source); // remove the `g` flag
|
|
23176
|
+
module.exports = re.test.bind(re);
|
|
23177
|
+
|
|
23178
|
+
|
|
23179
|
+
/***/ }),
|
|
23180
|
+
|
|
23181
|
+
/***/ 1082:
|
|
23182
|
+
/***/ ((module) => {
|
|
23183
|
+
|
|
23184
|
+
"use strict";
|
|
23185
|
+
|
|
23186
|
+
module.exports = function () {
|
|
23187
|
+
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
23188
|
+
};
|
|
23189
|
+
|
|
23190
|
+
|
|
23191
|
+
/***/ }),
|
|
23192
|
+
|
|
23193
|
+
/***/ 6324:
|
|
22688
23194
|
/***/ ((module) => {
|
|
22689
23195
|
|
|
22690
23196
|
"use strict";
|
|
@@ -22744,450 +23250,17 @@ module.exports = function bind(that) {
|
|
|
22744
23250
|
|
|
22745
23251
|
/***/ }),
|
|
22746
23252
|
|
|
22747
|
-
/***/
|
|
23253
|
+
/***/ 2025:
|
|
22748
23254
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22749
23255
|
|
|
22750
23256
|
"use strict";
|
|
22751
23257
|
|
|
22752
23258
|
|
|
22753
|
-
var implementation = __nccwpck_require__(
|
|
23259
|
+
var implementation = __nccwpck_require__(6324);
|
|
22754
23260
|
|
|
22755
23261
|
module.exports = Function.prototype.bind || implementation;
|
|
22756
23262
|
|
|
22757
23263
|
|
|
22758
|
-
/***/ }),
|
|
22759
|
-
|
|
22760
|
-
/***/ 7603:
|
|
22761
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
22762
|
-
|
|
22763
|
-
"use strict";
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
var undefined;
|
|
22767
|
-
|
|
22768
|
-
var $SyntaxError = SyntaxError;
|
|
22769
|
-
var $Function = Function;
|
|
22770
|
-
var $TypeError = TypeError;
|
|
22771
|
-
|
|
22772
|
-
// eslint-disable-next-line consistent-return
|
|
22773
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
22774
|
-
try {
|
|
22775
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
22776
|
-
} catch (e) {}
|
|
22777
|
-
};
|
|
22778
|
-
|
|
22779
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
22780
|
-
if ($gOPD) {
|
|
22781
|
-
try {
|
|
22782
|
-
$gOPD({}, '');
|
|
22783
|
-
} catch (e) {
|
|
22784
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
22785
|
-
}
|
|
22786
|
-
}
|
|
22787
|
-
|
|
22788
|
-
var throwTypeError = function () {
|
|
22789
|
-
throw new $TypeError();
|
|
22790
|
-
};
|
|
22791
|
-
var ThrowTypeError = $gOPD
|
|
22792
|
-
? (function () {
|
|
22793
|
-
try {
|
|
22794
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
22795
|
-
arguments.callee; // IE 8 does not throw here
|
|
22796
|
-
return throwTypeError;
|
|
22797
|
-
} catch (calleeThrows) {
|
|
22798
|
-
try {
|
|
22799
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
22800
|
-
return $gOPD(arguments, 'callee').get;
|
|
22801
|
-
} catch (gOPDthrows) {
|
|
22802
|
-
return throwTypeError;
|
|
22803
|
-
}
|
|
22804
|
-
}
|
|
22805
|
-
}())
|
|
22806
|
-
: throwTypeError;
|
|
22807
|
-
|
|
22808
|
-
var hasSymbols = __nccwpck_require__(5132)();
|
|
22809
|
-
|
|
22810
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
22811
|
-
|
|
22812
|
-
var needsEval = {};
|
|
22813
|
-
|
|
22814
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
22815
|
-
|
|
22816
|
-
var INTRINSICS = {
|
|
22817
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
22818
|
-
'%Array%': Array,
|
|
22819
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
22820
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
22821
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
22822
|
-
'%AsyncFunction%': needsEval,
|
|
22823
|
-
'%AsyncGenerator%': needsEval,
|
|
22824
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
22825
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
22826
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
22827
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
22828
|
-
'%Boolean%': Boolean,
|
|
22829
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
22830
|
-
'%Date%': Date,
|
|
22831
|
-
'%decodeURI%': decodeURI,
|
|
22832
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
22833
|
-
'%encodeURI%': encodeURI,
|
|
22834
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
22835
|
-
'%Error%': Error,
|
|
22836
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
22837
|
-
'%EvalError%': EvalError,
|
|
22838
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
22839
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
22840
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
22841
|
-
'%Function%': $Function,
|
|
22842
|
-
'%GeneratorFunction%': needsEval,
|
|
22843
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
22844
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
22845
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
22846
|
-
'%isFinite%': isFinite,
|
|
22847
|
-
'%isNaN%': isNaN,
|
|
22848
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
22849
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
22850
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
22851
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
22852
|
-
'%Math%': Math,
|
|
22853
|
-
'%Number%': Number,
|
|
22854
|
-
'%Object%': Object,
|
|
22855
|
-
'%parseFloat%': parseFloat,
|
|
22856
|
-
'%parseInt%': parseInt,
|
|
22857
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
22858
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
22859
|
-
'%RangeError%': RangeError,
|
|
22860
|
-
'%ReferenceError%': ReferenceError,
|
|
22861
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
22862
|
-
'%RegExp%': RegExp,
|
|
22863
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
22864
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
22865
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
22866
|
-
'%String%': String,
|
|
22867
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
22868
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
22869
|
-
'%SyntaxError%': $SyntaxError,
|
|
22870
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
22871
|
-
'%TypedArray%': TypedArray,
|
|
22872
|
-
'%TypeError%': $TypeError,
|
|
22873
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
22874
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
22875
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
22876
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
22877
|
-
'%URIError%': URIError,
|
|
22878
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
22879
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
22880
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
22881
|
-
};
|
|
22882
|
-
|
|
22883
|
-
var doEval = function doEval(name) {
|
|
22884
|
-
var value;
|
|
22885
|
-
if (name === '%AsyncFunction%') {
|
|
22886
|
-
value = getEvalledConstructor('async function () {}');
|
|
22887
|
-
} else if (name === '%GeneratorFunction%') {
|
|
22888
|
-
value = getEvalledConstructor('function* () {}');
|
|
22889
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
22890
|
-
value = getEvalledConstructor('async function* () {}');
|
|
22891
|
-
} else if (name === '%AsyncGenerator%') {
|
|
22892
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
22893
|
-
if (fn) {
|
|
22894
|
-
value = fn.prototype;
|
|
22895
|
-
}
|
|
22896
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
22897
|
-
var gen = doEval('%AsyncGenerator%');
|
|
22898
|
-
if (gen) {
|
|
22899
|
-
value = getProto(gen.prototype);
|
|
22900
|
-
}
|
|
22901
|
-
}
|
|
22902
|
-
|
|
22903
|
-
INTRINSICS[name] = value;
|
|
22904
|
-
|
|
22905
|
-
return value;
|
|
22906
|
-
};
|
|
22907
|
-
|
|
22908
|
-
var LEGACY_ALIASES = {
|
|
22909
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
22910
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
22911
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
22912
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
22913
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
22914
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
22915
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
22916
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
22917
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
22918
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
22919
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
22920
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
22921
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
22922
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
22923
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
22924
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
22925
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
22926
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
22927
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
22928
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
22929
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
22930
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
22931
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
22932
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
22933
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
22934
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
22935
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
22936
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
22937
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
22938
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
22939
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
22940
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
22941
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
22942
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
22943
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
22944
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
22945
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
22946
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
22947
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
22948
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
22949
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
22950
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
22951
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
22952
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
22953
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
22954
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
22955
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
22956
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
22957
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
22958
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
22959
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
22960
|
-
};
|
|
22961
|
-
|
|
22962
|
-
var bind = __nccwpck_require__(5887);
|
|
22963
|
-
var hasOwn = __nccwpck_require__(1558);
|
|
22964
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
22965
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
22966
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
22967
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
22968
|
-
|
|
22969
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
22970
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
22971
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
22972
|
-
var stringToPath = function stringToPath(string) {
|
|
22973
|
-
var first = $strSlice(string, 0, 1);
|
|
22974
|
-
var last = $strSlice(string, -1);
|
|
22975
|
-
if (first === '%' && last !== '%') {
|
|
22976
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
22977
|
-
} else if (last === '%' && first !== '%') {
|
|
22978
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
22979
|
-
}
|
|
22980
|
-
var result = [];
|
|
22981
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
22982
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
22983
|
-
});
|
|
22984
|
-
return result;
|
|
22985
|
-
};
|
|
22986
|
-
/* end adaptation */
|
|
22987
|
-
|
|
22988
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
22989
|
-
var intrinsicName = name;
|
|
22990
|
-
var alias;
|
|
22991
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
22992
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
22993
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
22994
|
-
}
|
|
22995
|
-
|
|
22996
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
22997
|
-
var value = INTRINSICS[intrinsicName];
|
|
22998
|
-
if (value === needsEval) {
|
|
22999
|
-
value = doEval(intrinsicName);
|
|
23000
|
-
}
|
|
23001
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
23002
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
23003
|
-
}
|
|
23004
|
-
|
|
23005
|
-
return {
|
|
23006
|
-
alias: alias,
|
|
23007
|
-
name: intrinsicName,
|
|
23008
|
-
value: value
|
|
23009
|
-
};
|
|
23010
|
-
}
|
|
23011
|
-
|
|
23012
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
23013
|
-
};
|
|
23014
|
-
|
|
23015
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
23016
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
23017
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
23018
|
-
}
|
|
23019
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
23020
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
23021
|
-
}
|
|
23022
|
-
|
|
23023
|
-
var parts = stringToPath(name);
|
|
23024
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
23025
|
-
|
|
23026
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
23027
|
-
var intrinsicRealName = intrinsic.name;
|
|
23028
|
-
var value = intrinsic.value;
|
|
23029
|
-
var skipFurtherCaching = false;
|
|
23030
|
-
|
|
23031
|
-
var alias = intrinsic.alias;
|
|
23032
|
-
if (alias) {
|
|
23033
|
-
intrinsicBaseName = alias[0];
|
|
23034
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
23035
|
-
}
|
|
23036
|
-
|
|
23037
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
23038
|
-
var part = parts[i];
|
|
23039
|
-
var first = $strSlice(part, 0, 1);
|
|
23040
|
-
var last = $strSlice(part, -1);
|
|
23041
|
-
if (
|
|
23042
|
-
(
|
|
23043
|
-
(first === '"' || first === "'" || first === '`')
|
|
23044
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
23045
|
-
)
|
|
23046
|
-
&& first !== last
|
|
23047
|
-
) {
|
|
23048
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
23049
|
-
}
|
|
23050
|
-
if (part === 'constructor' || !isOwn) {
|
|
23051
|
-
skipFurtherCaching = true;
|
|
23052
|
-
}
|
|
23053
|
-
|
|
23054
|
-
intrinsicBaseName += '.' + part;
|
|
23055
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
23056
|
-
|
|
23057
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
23058
|
-
value = INTRINSICS[intrinsicRealName];
|
|
23059
|
-
} else if (value != null) {
|
|
23060
|
-
if (!(part in value)) {
|
|
23061
|
-
if (!allowMissing) {
|
|
23062
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
23063
|
-
}
|
|
23064
|
-
return void undefined;
|
|
23065
|
-
}
|
|
23066
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
23067
|
-
var desc = $gOPD(value, part);
|
|
23068
|
-
isOwn = !!desc;
|
|
23069
|
-
|
|
23070
|
-
// By convention, when a data property is converted to an accessor
|
|
23071
|
-
// property to emulate a data property that does not suffer from
|
|
23072
|
-
// the override mistake, that accessor's getter is marked with
|
|
23073
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
23074
|
-
// uphold the illusion by pretending to see that original data
|
|
23075
|
-
// property, i.e., returning the value rather than the getter
|
|
23076
|
-
// itself.
|
|
23077
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
23078
|
-
value = desc.get;
|
|
23079
|
-
} else {
|
|
23080
|
-
value = value[part];
|
|
23081
|
-
}
|
|
23082
|
-
} else {
|
|
23083
|
-
isOwn = hasOwn(value, part);
|
|
23084
|
-
value = value[part];
|
|
23085
|
-
}
|
|
23086
|
-
|
|
23087
|
-
if (isOwn && !skipFurtherCaching) {
|
|
23088
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
23089
|
-
}
|
|
23090
|
-
}
|
|
23091
|
-
}
|
|
23092
|
-
return value;
|
|
23093
|
-
};
|
|
23094
|
-
|
|
23095
|
-
|
|
23096
|
-
/***/ }),
|
|
23097
|
-
|
|
23098
|
-
/***/ 1098:
|
|
23099
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23100
|
-
|
|
23101
|
-
"use strict";
|
|
23102
|
-
|
|
23103
|
-
var ansiRegex = __nccwpck_require__(1082);
|
|
23104
|
-
var re = new RegExp(ansiRegex().source); // remove the `g` flag
|
|
23105
|
-
module.exports = re.test.bind(re);
|
|
23106
|
-
|
|
23107
|
-
|
|
23108
|
-
/***/ }),
|
|
23109
|
-
|
|
23110
|
-
/***/ 1082:
|
|
23111
|
-
/***/ ((module) => {
|
|
23112
|
-
|
|
23113
|
-
"use strict";
|
|
23114
|
-
|
|
23115
|
-
module.exports = function () {
|
|
23116
|
-
return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
|
|
23117
|
-
};
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
/***/ }),
|
|
23121
|
-
|
|
23122
|
-
/***/ 5132:
|
|
23123
|
-
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
23124
|
-
|
|
23125
|
-
"use strict";
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
23129
|
-
var hasSymbolSham = __nccwpck_require__(2180);
|
|
23130
|
-
|
|
23131
|
-
module.exports = function hasNativeSymbols() {
|
|
23132
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
23133
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
23134
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
23135
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
23136
|
-
|
|
23137
|
-
return hasSymbolSham();
|
|
23138
|
-
};
|
|
23139
|
-
|
|
23140
|
-
|
|
23141
|
-
/***/ }),
|
|
23142
|
-
|
|
23143
|
-
/***/ 2180:
|
|
23144
|
-
/***/ ((module) => {
|
|
23145
|
-
|
|
23146
|
-
"use strict";
|
|
23147
|
-
|
|
23148
|
-
|
|
23149
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
23150
|
-
module.exports = function hasSymbols() {
|
|
23151
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
23152
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
23153
|
-
|
|
23154
|
-
var obj = {};
|
|
23155
|
-
var sym = Symbol('test');
|
|
23156
|
-
var symObj = Object(sym);
|
|
23157
|
-
if (typeof sym === 'string') { return false; }
|
|
23158
|
-
|
|
23159
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
23160
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
23161
|
-
|
|
23162
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
23163
|
-
// if (sym instanceof Symbol) { return false; }
|
|
23164
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
23165
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
23166
|
-
|
|
23167
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
23168
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
23169
|
-
|
|
23170
|
-
var symVal = 42;
|
|
23171
|
-
obj[sym] = symVal;
|
|
23172
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
23173
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
23174
|
-
|
|
23175
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
23176
|
-
|
|
23177
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
23178
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
23179
|
-
|
|
23180
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
23181
|
-
|
|
23182
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
23183
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
23184
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
23185
|
-
}
|
|
23186
|
-
|
|
23187
|
-
return true;
|
|
23188
|
-
};
|
|
23189
|
-
|
|
23190
|
-
|
|
23191
23264
|
/***/ }),
|
|
23192
23265
|
|
|
23193
23266
|
/***/ 1558:
|
|
@@ -23196,7 +23269,7 @@ module.exports = function hasSymbols() {
|
|
|
23196
23269
|
"use strict";
|
|
23197
23270
|
|
|
23198
23271
|
|
|
23199
|
-
var bind = __nccwpck_require__(
|
|
23272
|
+
var bind = __nccwpck_require__(2025);
|
|
23200
23273
|
|
|
23201
23274
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
23202
23275
|
|
|
@@ -25726,7 +25799,7 @@ Object.defineProperty(module, 'exports', {
|
|
|
25726
25799
|
|
|
25727
25800
|
"use strict";
|
|
25728
25801
|
|
|
25729
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
25802
|
+
var escapeStringRegexp = __nccwpck_require__(9679);
|
|
25730
25803
|
var ansiStyles = __nccwpck_require__(6695);
|
|
25731
25804
|
var stripAnsi = __nccwpck_require__(9310);
|
|
25732
25805
|
var hasAnsi = __nccwpck_require__(1098);
|
|
@@ -25843,6 +25916,25 @@ module.exports.stripColor = stripAnsi;
|
|
|
25843
25916
|
module.exports.supportsColor = supportsColor;
|
|
25844
25917
|
|
|
25845
25918
|
|
|
25919
|
+
/***/ }),
|
|
25920
|
+
|
|
25921
|
+
/***/ 9679:
|
|
25922
|
+
/***/ ((module) => {
|
|
25923
|
+
|
|
25924
|
+
"use strict";
|
|
25925
|
+
|
|
25926
|
+
|
|
25927
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
25928
|
+
|
|
25929
|
+
module.exports = function (str) {
|
|
25930
|
+
if (typeof str !== 'string') {
|
|
25931
|
+
throw new TypeError('Expected a string');
|
|
25932
|
+
}
|
|
25933
|
+
|
|
25934
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
25935
|
+
};
|
|
25936
|
+
|
|
25937
|
+
|
|
25846
25938
|
/***/ }),
|
|
25847
25939
|
|
|
25848
25940
|
/***/ 6294:
|
|
@@ -55517,6 +55609,258 @@ module.exports = function(num) {
|
|
|
55517
55609
|
}.call(this));
|
|
55518
55610
|
|
|
55519
55611
|
|
|
55612
|
+
/***/ }),
|
|
55613
|
+
|
|
55614
|
+
/***/ 5982:
|
|
55615
|
+
/***/ ((module) => {
|
|
55616
|
+
|
|
55617
|
+
module.exports = function (args, opts) {
|
|
55618
|
+
if (!opts) opts = {};
|
|
55619
|
+
|
|
55620
|
+
var flags = { bools : {}, strings : {}, unknownFn: null };
|
|
55621
|
+
|
|
55622
|
+
if (typeof opts['unknown'] === 'function') {
|
|
55623
|
+
flags.unknownFn = opts['unknown'];
|
|
55624
|
+
}
|
|
55625
|
+
|
|
55626
|
+
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
|
|
55627
|
+
flags.allBools = true;
|
|
55628
|
+
} else {
|
|
55629
|
+
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
|
|
55630
|
+
flags.bools[key] = true;
|
|
55631
|
+
});
|
|
55632
|
+
}
|
|
55633
|
+
|
|
55634
|
+
var aliases = {};
|
|
55635
|
+
Object.keys(opts.alias || {}).forEach(function (key) {
|
|
55636
|
+
aliases[key] = [].concat(opts.alias[key]);
|
|
55637
|
+
aliases[key].forEach(function (x) {
|
|
55638
|
+
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
|
55639
|
+
return x !== y;
|
|
55640
|
+
}));
|
|
55641
|
+
});
|
|
55642
|
+
});
|
|
55643
|
+
|
|
55644
|
+
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
|
55645
|
+
flags.strings[key] = true;
|
|
55646
|
+
if (aliases[key]) {
|
|
55647
|
+
flags.strings[aliases[key]] = true;
|
|
55648
|
+
}
|
|
55649
|
+
});
|
|
55650
|
+
|
|
55651
|
+
var defaults = opts['default'] || {};
|
|
55652
|
+
|
|
55653
|
+
var argv = { _ : [] };
|
|
55654
|
+
Object.keys(flags.bools).forEach(function (key) {
|
|
55655
|
+
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
|
55656
|
+
});
|
|
55657
|
+
|
|
55658
|
+
var notFlags = [];
|
|
55659
|
+
|
|
55660
|
+
if (args.indexOf('--') !== -1) {
|
|
55661
|
+
notFlags = args.slice(args.indexOf('--')+1);
|
|
55662
|
+
args = args.slice(0, args.indexOf('--'));
|
|
55663
|
+
}
|
|
55664
|
+
|
|
55665
|
+
function argDefined(key, arg) {
|
|
55666
|
+
return (flags.allBools && /^--[^=]+$/.test(arg)) ||
|
|
55667
|
+
flags.strings[key] || flags.bools[key] || aliases[key];
|
|
55668
|
+
}
|
|
55669
|
+
|
|
55670
|
+
function setArg (key, val, arg) {
|
|
55671
|
+
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
|
55672
|
+
if (flags.unknownFn(arg) === false) return;
|
|
55673
|
+
}
|
|
55674
|
+
|
|
55675
|
+
var value = !flags.strings[key] && isNumber(val)
|
|
55676
|
+
? Number(val) : val
|
|
55677
|
+
;
|
|
55678
|
+
setKey(argv, key.split('.'), value);
|
|
55679
|
+
|
|
55680
|
+
(aliases[key] || []).forEach(function (x) {
|
|
55681
|
+
setKey(argv, x.split('.'), value);
|
|
55682
|
+
});
|
|
55683
|
+
}
|
|
55684
|
+
|
|
55685
|
+
function setKey (obj, keys, value) {
|
|
55686
|
+
var o = obj;
|
|
55687
|
+
for (var i = 0; i < keys.length-1; i++) {
|
|
55688
|
+
var key = keys[i];
|
|
55689
|
+
if (key === '__proto__') return;
|
|
55690
|
+
if (o[key] === undefined) o[key] = {};
|
|
55691
|
+
if (o[key] === Object.prototype || o[key] === Number.prototype
|
|
55692
|
+
|| o[key] === String.prototype) o[key] = {};
|
|
55693
|
+
if (o[key] === Array.prototype) o[key] = [];
|
|
55694
|
+
o = o[key];
|
|
55695
|
+
}
|
|
55696
|
+
|
|
55697
|
+
var key = keys[keys.length - 1];
|
|
55698
|
+
if (key === '__proto__') return;
|
|
55699
|
+
if (o === Object.prototype || o === Number.prototype
|
|
55700
|
+
|| o === String.prototype) o = {};
|
|
55701
|
+
if (o === Array.prototype) o = [];
|
|
55702
|
+
if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
|
|
55703
|
+
o[key] = value;
|
|
55704
|
+
}
|
|
55705
|
+
else if (Array.isArray(o[key])) {
|
|
55706
|
+
o[key].push(value);
|
|
55707
|
+
}
|
|
55708
|
+
else {
|
|
55709
|
+
o[key] = [ o[key], value ];
|
|
55710
|
+
}
|
|
55711
|
+
}
|
|
55712
|
+
|
|
55713
|
+
function aliasIsBoolean(key) {
|
|
55714
|
+
return aliases[key].some(function (x) {
|
|
55715
|
+
return flags.bools[x];
|
|
55716
|
+
});
|
|
55717
|
+
}
|
|
55718
|
+
|
|
55719
|
+
for (var i = 0; i < args.length; i++) {
|
|
55720
|
+
var arg = args[i];
|
|
55721
|
+
|
|
55722
|
+
if (/^--.+=/.test(arg)) {
|
|
55723
|
+
// Using [\s\S] instead of . because js doesn't support the
|
|
55724
|
+
// 'dotall' regex modifier. See:
|
|
55725
|
+
// http://stackoverflow.com/a/1068308/13216
|
|
55726
|
+
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
|
55727
|
+
var key = m[1];
|
|
55728
|
+
var value = m[2];
|
|
55729
|
+
if (flags.bools[key]) {
|
|
55730
|
+
value = value !== 'false';
|
|
55731
|
+
}
|
|
55732
|
+
setArg(key, value, arg);
|
|
55733
|
+
}
|
|
55734
|
+
else if (/^--no-.+/.test(arg)) {
|
|
55735
|
+
var key = arg.match(/^--no-(.+)/)[1];
|
|
55736
|
+
setArg(key, false, arg);
|
|
55737
|
+
}
|
|
55738
|
+
else if (/^--.+/.test(arg)) {
|
|
55739
|
+
var key = arg.match(/^--(.+)/)[1];
|
|
55740
|
+
var next = args[i + 1];
|
|
55741
|
+
if (next !== undefined && !/^-/.test(next)
|
|
55742
|
+
&& !flags.bools[key]
|
|
55743
|
+
&& !flags.allBools
|
|
55744
|
+
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
55745
|
+
setArg(key, next, arg);
|
|
55746
|
+
i++;
|
|
55747
|
+
}
|
|
55748
|
+
else if (/^(true|false)$/.test(next)) {
|
|
55749
|
+
setArg(key, next === 'true', arg);
|
|
55750
|
+
i++;
|
|
55751
|
+
}
|
|
55752
|
+
else {
|
|
55753
|
+
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
55754
|
+
}
|
|
55755
|
+
}
|
|
55756
|
+
else if (/^-[^-]+/.test(arg)) {
|
|
55757
|
+
var letters = arg.slice(1,-1).split('');
|
|
55758
|
+
|
|
55759
|
+
var broken = false;
|
|
55760
|
+
for (var j = 0; j < letters.length; j++) {
|
|
55761
|
+
var next = arg.slice(j+2);
|
|
55762
|
+
|
|
55763
|
+
if (next === '-') {
|
|
55764
|
+
setArg(letters[j], next, arg)
|
|
55765
|
+
continue;
|
|
55766
|
+
}
|
|
55767
|
+
|
|
55768
|
+
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
|
|
55769
|
+
setArg(letters[j], next.split('=')[1], arg);
|
|
55770
|
+
broken = true;
|
|
55771
|
+
break;
|
|
55772
|
+
}
|
|
55773
|
+
|
|
55774
|
+
if (/[A-Za-z]/.test(letters[j])
|
|
55775
|
+
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
|
55776
|
+
setArg(letters[j], next, arg);
|
|
55777
|
+
broken = true;
|
|
55778
|
+
break;
|
|
55779
|
+
}
|
|
55780
|
+
|
|
55781
|
+
if (letters[j+1] && letters[j+1].match(/\W/)) {
|
|
55782
|
+
setArg(letters[j], arg.slice(j+2), arg);
|
|
55783
|
+
broken = true;
|
|
55784
|
+
break;
|
|
55785
|
+
}
|
|
55786
|
+
else {
|
|
55787
|
+
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
55788
|
+
}
|
|
55789
|
+
}
|
|
55790
|
+
|
|
55791
|
+
var key = arg.slice(-1)[0];
|
|
55792
|
+
if (!broken && key !== '-') {
|
|
55793
|
+
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
|
|
55794
|
+
&& !flags.bools[key]
|
|
55795
|
+
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
55796
|
+
setArg(key, args[i+1], arg);
|
|
55797
|
+
i++;
|
|
55798
|
+
}
|
|
55799
|
+
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
|
|
55800
|
+
setArg(key, args[i+1] === 'true', arg);
|
|
55801
|
+
i++;
|
|
55802
|
+
}
|
|
55803
|
+
else {
|
|
55804
|
+
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
55805
|
+
}
|
|
55806
|
+
}
|
|
55807
|
+
}
|
|
55808
|
+
else {
|
|
55809
|
+
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
|
55810
|
+
argv._.push(
|
|
55811
|
+
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
|
|
55812
|
+
);
|
|
55813
|
+
}
|
|
55814
|
+
if (opts.stopEarly) {
|
|
55815
|
+
argv._.push.apply(argv._, args.slice(i + 1));
|
|
55816
|
+
break;
|
|
55817
|
+
}
|
|
55818
|
+
}
|
|
55819
|
+
}
|
|
55820
|
+
|
|
55821
|
+
Object.keys(defaults).forEach(function (key) {
|
|
55822
|
+
if (!hasKey(argv, key.split('.'))) {
|
|
55823
|
+
setKey(argv, key.split('.'), defaults[key]);
|
|
55824
|
+
|
|
55825
|
+
(aliases[key] || []).forEach(function (x) {
|
|
55826
|
+
setKey(argv, x.split('.'), defaults[key]);
|
|
55827
|
+
});
|
|
55828
|
+
}
|
|
55829
|
+
});
|
|
55830
|
+
|
|
55831
|
+
if (opts['--']) {
|
|
55832
|
+
argv['--'] = new Array();
|
|
55833
|
+
notFlags.forEach(function(key) {
|
|
55834
|
+
argv['--'].push(key);
|
|
55835
|
+
});
|
|
55836
|
+
}
|
|
55837
|
+
else {
|
|
55838
|
+
notFlags.forEach(function(key) {
|
|
55839
|
+
argv._.push(key);
|
|
55840
|
+
});
|
|
55841
|
+
}
|
|
55842
|
+
|
|
55843
|
+
return argv;
|
|
55844
|
+
};
|
|
55845
|
+
|
|
55846
|
+
function hasKey (obj, keys) {
|
|
55847
|
+
var o = obj;
|
|
55848
|
+
keys.slice(0,-1).forEach(function (key) {
|
|
55849
|
+
o = (o[key] || {});
|
|
55850
|
+
});
|
|
55851
|
+
|
|
55852
|
+
var key = keys[keys.length - 1];
|
|
55853
|
+
return key in o;
|
|
55854
|
+
}
|
|
55855
|
+
|
|
55856
|
+
function isNumber (x) {
|
|
55857
|
+
if (typeof x === 'number') return true;
|
|
55858
|
+
if (/^0x[0-9a-f]+$/i.test(x)) return true;
|
|
55859
|
+
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
55860
|
+
}
|
|
55861
|
+
|
|
55862
|
+
|
|
55863
|
+
|
|
55520
55864
|
/***/ }),
|
|
55521
55865
|
|
|
55522
55866
|
/***/ 4778:
|
|
@@ -63626,7 +63970,7 @@ observableProto.controlled = function (enableQueue, scheduler) {
|
|
|
63626
63970
|
"use strict";
|
|
63627
63971
|
|
|
63628
63972
|
|
|
63629
|
-
var GetIntrinsic = __nccwpck_require__(
|
|
63973
|
+
var GetIntrinsic = __nccwpck_require__(2375);
|
|
63630
63974
|
var callBound = __nccwpck_require__(4469);
|
|
63631
63975
|
var inspect = __nccwpck_require__(8819);
|
|
63632
63976
|
|
|
@@ -63750,6 +64094,488 @@ module.exports = function getSideChannel() {
|
|
|
63750
64094
|
};
|
|
63751
64095
|
|
|
63752
64096
|
|
|
64097
|
+
/***/ }),
|
|
64098
|
+
|
|
64099
|
+
/***/ 2475:
|
|
64100
|
+
/***/ ((module) => {
|
|
64101
|
+
|
|
64102
|
+
"use strict";
|
|
64103
|
+
|
|
64104
|
+
|
|
64105
|
+
/* eslint no-invalid-this: 1 */
|
|
64106
|
+
|
|
64107
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
64108
|
+
var slice = Array.prototype.slice;
|
|
64109
|
+
var toStr = Object.prototype.toString;
|
|
64110
|
+
var funcType = '[object Function]';
|
|
64111
|
+
|
|
64112
|
+
module.exports = function bind(that) {
|
|
64113
|
+
var target = this;
|
|
64114
|
+
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
|
|
64115
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
64116
|
+
}
|
|
64117
|
+
var args = slice.call(arguments, 1);
|
|
64118
|
+
|
|
64119
|
+
var bound;
|
|
64120
|
+
var binder = function () {
|
|
64121
|
+
if (this instanceof bound) {
|
|
64122
|
+
var result = target.apply(
|
|
64123
|
+
this,
|
|
64124
|
+
args.concat(slice.call(arguments))
|
|
64125
|
+
);
|
|
64126
|
+
if (Object(result) === result) {
|
|
64127
|
+
return result;
|
|
64128
|
+
}
|
|
64129
|
+
return this;
|
|
64130
|
+
} else {
|
|
64131
|
+
return target.apply(
|
|
64132
|
+
that,
|
|
64133
|
+
args.concat(slice.call(arguments))
|
|
64134
|
+
);
|
|
64135
|
+
}
|
|
64136
|
+
};
|
|
64137
|
+
|
|
64138
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
64139
|
+
var boundArgs = [];
|
|
64140
|
+
for (var i = 0; i < boundLength; i++) {
|
|
64141
|
+
boundArgs.push('$' + i);
|
|
64142
|
+
}
|
|
64143
|
+
|
|
64144
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
64145
|
+
|
|
64146
|
+
if (target.prototype) {
|
|
64147
|
+
var Empty = function Empty() {};
|
|
64148
|
+
Empty.prototype = target.prototype;
|
|
64149
|
+
bound.prototype = new Empty();
|
|
64150
|
+
Empty.prototype = null;
|
|
64151
|
+
}
|
|
64152
|
+
|
|
64153
|
+
return bound;
|
|
64154
|
+
};
|
|
64155
|
+
|
|
64156
|
+
|
|
64157
|
+
/***/ }),
|
|
64158
|
+
|
|
64159
|
+
/***/ 7019:
|
|
64160
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
64161
|
+
|
|
64162
|
+
"use strict";
|
|
64163
|
+
|
|
64164
|
+
|
|
64165
|
+
var implementation = __nccwpck_require__(2475);
|
|
64166
|
+
|
|
64167
|
+
module.exports = Function.prototype.bind || implementation;
|
|
64168
|
+
|
|
64169
|
+
|
|
64170
|
+
/***/ }),
|
|
64171
|
+
|
|
64172
|
+
/***/ 2375:
|
|
64173
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
64174
|
+
|
|
64175
|
+
"use strict";
|
|
64176
|
+
|
|
64177
|
+
|
|
64178
|
+
var undefined;
|
|
64179
|
+
|
|
64180
|
+
var $SyntaxError = SyntaxError;
|
|
64181
|
+
var $Function = Function;
|
|
64182
|
+
var $TypeError = TypeError;
|
|
64183
|
+
|
|
64184
|
+
// eslint-disable-next-line consistent-return
|
|
64185
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
64186
|
+
try {
|
|
64187
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
64188
|
+
} catch (e) {}
|
|
64189
|
+
};
|
|
64190
|
+
|
|
64191
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
64192
|
+
if ($gOPD) {
|
|
64193
|
+
try {
|
|
64194
|
+
$gOPD({}, '');
|
|
64195
|
+
} catch (e) {
|
|
64196
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
64197
|
+
}
|
|
64198
|
+
}
|
|
64199
|
+
|
|
64200
|
+
var throwTypeError = function () {
|
|
64201
|
+
throw new $TypeError();
|
|
64202
|
+
};
|
|
64203
|
+
var ThrowTypeError = $gOPD
|
|
64204
|
+
? (function () {
|
|
64205
|
+
try {
|
|
64206
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
64207
|
+
arguments.callee; // IE 8 does not throw here
|
|
64208
|
+
return throwTypeError;
|
|
64209
|
+
} catch (calleeThrows) {
|
|
64210
|
+
try {
|
|
64211
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
64212
|
+
return $gOPD(arguments, 'callee').get;
|
|
64213
|
+
} catch (gOPDthrows) {
|
|
64214
|
+
return throwTypeError;
|
|
64215
|
+
}
|
|
64216
|
+
}
|
|
64217
|
+
}())
|
|
64218
|
+
: throwTypeError;
|
|
64219
|
+
|
|
64220
|
+
var hasSymbols = __nccwpck_require__(2890)();
|
|
64221
|
+
|
|
64222
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
64223
|
+
|
|
64224
|
+
var needsEval = {};
|
|
64225
|
+
|
|
64226
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
64227
|
+
|
|
64228
|
+
var INTRINSICS = {
|
|
64229
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
64230
|
+
'%Array%': Array,
|
|
64231
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
64232
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
64233
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
64234
|
+
'%AsyncFunction%': needsEval,
|
|
64235
|
+
'%AsyncGenerator%': needsEval,
|
|
64236
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
64237
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
64238
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
64239
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
64240
|
+
'%Boolean%': Boolean,
|
|
64241
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
64242
|
+
'%Date%': Date,
|
|
64243
|
+
'%decodeURI%': decodeURI,
|
|
64244
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
64245
|
+
'%encodeURI%': encodeURI,
|
|
64246
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
64247
|
+
'%Error%': Error,
|
|
64248
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
64249
|
+
'%EvalError%': EvalError,
|
|
64250
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
64251
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
64252
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
64253
|
+
'%Function%': $Function,
|
|
64254
|
+
'%GeneratorFunction%': needsEval,
|
|
64255
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
64256
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
64257
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
64258
|
+
'%isFinite%': isFinite,
|
|
64259
|
+
'%isNaN%': isNaN,
|
|
64260
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
64261
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
64262
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
64263
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
64264
|
+
'%Math%': Math,
|
|
64265
|
+
'%Number%': Number,
|
|
64266
|
+
'%Object%': Object,
|
|
64267
|
+
'%parseFloat%': parseFloat,
|
|
64268
|
+
'%parseInt%': parseInt,
|
|
64269
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
64270
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
64271
|
+
'%RangeError%': RangeError,
|
|
64272
|
+
'%ReferenceError%': ReferenceError,
|
|
64273
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
64274
|
+
'%RegExp%': RegExp,
|
|
64275
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
64276
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
64277
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
64278
|
+
'%String%': String,
|
|
64279
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
64280
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
64281
|
+
'%SyntaxError%': $SyntaxError,
|
|
64282
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
64283
|
+
'%TypedArray%': TypedArray,
|
|
64284
|
+
'%TypeError%': $TypeError,
|
|
64285
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
64286
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
64287
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
64288
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
64289
|
+
'%URIError%': URIError,
|
|
64290
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
64291
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
64292
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
64293
|
+
};
|
|
64294
|
+
|
|
64295
|
+
var doEval = function doEval(name) {
|
|
64296
|
+
var value;
|
|
64297
|
+
if (name === '%AsyncFunction%') {
|
|
64298
|
+
value = getEvalledConstructor('async function () {}');
|
|
64299
|
+
} else if (name === '%GeneratorFunction%') {
|
|
64300
|
+
value = getEvalledConstructor('function* () {}');
|
|
64301
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
64302
|
+
value = getEvalledConstructor('async function* () {}');
|
|
64303
|
+
} else if (name === '%AsyncGenerator%') {
|
|
64304
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
64305
|
+
if (fn) {
|
|
64306
|
+
value = fn.prototype;
|
|
64307
|
+
}
|
|
64308
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
64309
|
+
var gen = doEval('%AsyncGenerator%');
|
|
64310
|
+
if (gen) {
|
|
64311
|
+
value = getProto(gen.prototype);
|
|
64312
|
+
}
|
|
64313
|
+
}
|
|
64314
|
+
|
|
64315
|
+
INTRINSICS[name] = value;
|
|
64316
|
+
|
|
64317
|
+
return value;
|
|
64318
|
+
};
|
|
64319
|
+
|
|
64320
|
+
var LEGACY_ALIASES = {
|
|
64321
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
64322
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
64323
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
64324
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
64325
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
64326
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
64327
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
64328
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
64329
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
64330
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
64331
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
64332
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
64333
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
64334
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
64335
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
64336
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
64337
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
64338
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
64339
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
64340
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
64341
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
64342
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
64343
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
64344
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
64345
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
64346
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
64347
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
64348
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
64349
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
64350
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
64351
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
64352
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
64353
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
64354
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
64355
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
64356
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
64357
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
64358
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
64359
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
64360
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
64361
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
64362
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
64363
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
64364
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
64365
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
64366
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
64367
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
64368
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
64369
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
64370
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
64371
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
64372
|
+
};
|
|
64373
|
+
|
|
64374
|
+
var bind = __nccwpck_require__(7019);
|
|
64375
|
+
var hasOwn = __nccwpck_require__(1558);
|
|
64376
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
64377
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
64378
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
64379
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
64380
|
+
|
|
64381
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
64382
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
64383
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
64384
|
+
var stringToPath = function stringToPath(string) {
|
|
64385
|
+
var first = $strSlice(string, 0, 1);
|
|
64386
|
+
var last = $strSlice(string, -1);
|
|
64387
|
+
if (first === '%' && last !== '%') {
|
|
64388
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
64389
|
+
} else if (last === '%' && first !== '%') {
|
|
64390
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
64391
|
+
}
|
|
64392
|
+
var result = [];
|
|
64393
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
64394
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
64395
|
+
});
|
|
64396
|
+
return result;
|
|
64397
|
+
};
|
|
64398
|
+
/* end adaptation */
|
|
64399
|
+
|
|
64400
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
64401
|
+
var intrinsicName = name;
|
|
64402
|
+
var alias;
|
|
64403
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
64404
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
64405
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
64406
|
+
}
|
|
64407
|
+
|
|
64408
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
64409
|
+
var value = INTRINSICS[intrinsicName];
|
|
64410
|
+
if (value === needsEval) {
|
|
64411
|
+
value = doEval(intrinsicName);
|
|
64412
|
+
}
|
|
64413
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
64414
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
64415
|
+
}
|
|
64416
|
+
|
|
64417
|
+
return {
|
|
64418
|
+
alias: alias,
|
|
64419
|
+
name: intrinsicName,
|
|
64420
|
+
value: value
|
|
64421
|
+
};
|
|
64422
|
+
}
|
|
64423
|
+
|
|
64424
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
64425
|
+
};
|
|
64426
|
+
|
|
64427
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
64428
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
64429
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
64430
|
+
}
|
|
64431
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
64432
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
64433
|
+
}
|
|
64434
|
+
|
|
64435
|
+
var parts = stringToPath(name);
|
|
64436
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
64437
|
+
|
|
64438
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
64439
|
+
var intrinsicRealName = intrinsic.name;
|
|
64440
|
+
var value = intrinsic.value;
|
|
64441
|
+
var skipFurtherCaching = false;
|
|
64442
|
+
|
|
64443
|
+
var alias = intrinsic.alias;
|
|
64444
|
+
if (alias) {
|
|
64445
|
+
intrinsicBaseName = alias[0];
|
|
64446
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
64447
|
+
}
|
|
64448
|
+
|
|
64449
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
64450
|
+
var part = parts[i];
|
|
64451
|
+
var first = $strSlice(part, 0, 1);
|
|
64452
|
+
var last = $strSlice(part, -1);
|
|
64453
|
+
if (
|
|
64454
|
+
(
|
|
64455
|
+
(first === '"' || first === "'" || first === '`')
|
|
64456
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
64457
|
+
)
|
|
64458
|
+
&& first !== last
|
|
64459
|
+
) {
|
|
64460
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
64461
|
+
}
|
|
64462
|
+
if (part === 'constructor' || !isOwn) {
|
|
64463
|
+
skipFurtherCaching = true;
|
|
64464
|
+
}
|
|
64465
|
+
|
|
64466
|
+
intrinsicBaseName += '.' + part;
|
|
64467
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
64468
|
+
|
|
64469
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
64470
|
+
value = INTRINSICS[intrinsicRealName];
|
|
64471
|
+
} else if (value != null) {
|
|
64472
|
+
if (!(part in value)) {
|
|
64473
|
+
if (!allowMissing) {
|
|
64474
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
64475
|
+
}
|
|
64476
|
+
return void undefined;
|
|
64477
|
+
}
|
|
64478
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
64479
|
+
var desc = $gOPD(value, part);
|
|
64480
|
+
isOwn = !!desc;
|
|
64481
|
+
|
|
64482
|
+
// By convention, when a data property is converted to an accessor
|
|
64483
|
+
// property to emulate a data property that does not suffer from
|
|
64484
|
+
// the override mistake, that accessor's getter is marked with
|
|
64485
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
64486
|
+
// uphold the illusion by pretending to see that original data
|
|
64487
|
+
// property, i.e., returning the value rather than the getter
|
|
64488
|
+
// itself.
|
|
64489
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
64490
|
+
value = desc.get;
|
|
64491
|
+
} else {
|
|
64492
|
+
value = value[part];
|
|
64493
|
+
}
|
|
64494
|
+
} else {
|
|
64495
|
+
isOwn = hasOwn(value, part);
|
|
64496
|
+
value = value[part];
|
|
64497
|
+
}
|
|
64498
|
+
|
|
64499
|
+
if (isOwn && !skipFurtherCaching) {
|
|
64500
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
64501
|
+
}
|
|
64502
|
+
}
|
|
64503
|
+
}
|
|
64504
|
+
return value;
|
|
64505
|
+
};
|
|
64506
|
+
|
|
64507
|
+
|
|
64508
|
+
/***/ }),
|
|
64509
|
+
|
|
64510
|
+
/***/ 2890:
|
|
64511
|
+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
64512
|
+
|
|
64513
|
+
"use strict";
|
|
64514
|
+
|
|
64515
|
+
|
|
64516
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
64517
|
+
var hasSymbolSham = __nccwpck_require__(4862);
|
|
64518
|
+
|
|
64519
|
+
module.exports = function hasNativeSymbols() {
|
|
64520
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
64521
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
64522
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
64523
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
64524
|
+
|
|
64525
|
+
return hasSymbolSham();
|
|
64526
|
+
};
|
|
64527
|
+
|
|
64528
|
+
|
|
64529
|
+
/***/ }),
|
|
64530
|
+
|
|
64531
|
+
/***/ 4862:
|
|
64532
|
+
/***/ ((module) => {
|
|
64533
|
+
|
|
64534
|
+
"use strict";
|
|
64535
|
+
|
|
64536
|
+
|
|
64537
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
64538
|
+
module.exports = function hasSymbols() {
|
|
64539
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
64540
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
64541
|
+
|
|
64542
|
+
var obj = {};
|
|
64543
|
+
var sym = Symbol('test');
|
|
64544
|
+
var symObj = Object(sym);
|
|
64545
|
+
if (typeof sym === 'string') { return false; }
|
|
64546
|
+
|
|
64547
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
64548
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
64549
|
+
|
|
64550
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
64551
|
+
// if (sym instanceof Symbol) { return false; }
|
|
64552
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
64553
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
64554
|
+
|
|
64555
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
64556
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
64557
|
+
|
|
64558
|
+
var symVal = 42;
|
|
64559
|
+
obj[sym] = symVal;
|
|
64560
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
64561
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
64562
|
+
|
|
64563
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
64564
|
+
|
|
64565
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
64566
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
64567
|
+
|
|
64568
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
64569
|
+
|
|
64570
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
64571
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
64572
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
64573
|
+
}
|
|
64574
|
+
|
|
64575
|
+
return true;
|
|
64576
|
+
};
|
|
64577
|
+
|
|
64578
|
+
|
|
63753
64579
|
/***/ }),
|
|
63754
64580
|
|
|
63755
64581
|
/***/ 8819:
|
|
@@ -67489,7 +68315,7 @@ if (!global.__vorpal.ui.exists) {
|
|
|
67489
68315
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
|
|
67490
68316
|
|
|
67491
68317
|
var _ = __nccwpck_require__(3255);
|
|
67492
|
-
var minimist = __nccwpck_require__(
|
|
68318
|
+
var minimist = __nccwpck_require__(5982);
|
|
67493
68319
|
var strip = __nccwpck_require__(7668);
|
|
67494
68320
|
|
|
67495
68321
|
var util = {
|
|
@@ -68022,7 +68848,7 @@ var VorpalUtil = __nccwpck_require__(9821);
|
|
|
68022
68848
|
var ui = __nccwpck_require__(2155);
|
|
68023
68849
|
var Session = __nccwpck_require__(3120);
|
|
68024
68850
|
var intercept = __nccwpck_require__(5447);
|
|
68025
|
-
var minimist = __nccwpck_require__(
|
|
68851
|
+
var minimist = __nccwpck_require__(5982);
|
|
68026
68852
|
var commons = __nccwpck_require__(8972);
|
|
68027
68853
|
var chalk = __nccwpck_require__(8173);
|
|
68028
68854
|
var os = __nccwpck_require__(2037);
|
|
@@ -69451,7 +70277,7 @@ Object.defineProperty(module, 'exports', {
|
|
|
69451
70277
|
|
|
69452
70278
|
"use strict";
|
|
69453
70279
|
|
|
69454
|
-
var escapeStringRegexp = __nccwpck_require__(
|
|
70280
|
+
var escapeStringRegexp = __nccwpck_require__(8082);
|
|
69455
70281
|
var ansiStyles = __nccwpck_require__(1982);
|
|
69456
70282
|
var stripAnsi = __nccwpck_require__(7668);
|
|
69457
70283
|
var hasAnsi = __nccwpck_require__(1098);
|
|
@@ -69568,6 +70394,25 @@ module.exports.stripColor = stripAnsi;
|
|
|
69568
70394
|
module.exports.supportsColor = supportsColor;
|
|
69569
70395
|
|
|
69570
70396
|
|
|
70397
|
+
/***/ }),
|
|
70398
|
+
|
|
70399
|
+
/***/ 8082:
|
|
70400
|
+
/***/ ((module) => {
|
|
70401
|
+
|
|
70402
|
+
"use strict";
|
|
70403
|
+
|
|
70404
|
+
|
|
70405
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
70406
|
+
|
|
70407
|
+
module.exports = function (str) {
|
|
70408
|
+
if (typeof str !== 'string') {
|
|
70409
|
+
throw new TypeError('Expected a string');
|
|
70410
|
+
}
|
|
70411
|
+
|
|
70412
|
+
return str.replace(matchOperatorsRe, '\\$&');
|
|
70413
|
+
};
|
|
70414
|
+
|
|
70415
|
+
|
|
69571
70416
|
/***/ }),
|
|
69572
70417
|
|
|
69573
70418
|
/***/ 6666:
|
|
@@ -69660,258 +70505,6 @@ module.exports.stderr = main(process.stderr);
|
|
|
69660
70505
|
module.exports.create = main;
|
|
69661
70506
|
|
|
69662
70507
|
|
|
69663
|
-
/***/ }),
|
|
69664
|
-
|
|
69665
|
-
/***/ 1675:
|
|
69666
|
-
/***/ ((module) => {
|
|
69667
|
-
|
|
69668
|
-
module.exports = function (args, opts) {
|
|
69669
|
-
if (!opts) opts = {};
|
|
69670
|
-
|
|
69671
|
-
var flags = { bools : {}, strings : {}, unknownFn: null };
|
|
69672
|
-
|
|
69673
|
-
if (typeof opts['unknown'] === 'function') {
|
|
69674
|
-
flags.unknownFn = opts['unknown'];
|
|
69675
|
-
}
|
|
69676
|
-
|
|
69677
|
-
if (typeof opts['boolean'] === 'boolean' && opts['boolean']) {
|
|
69678
|
-
flags.allBools = true;
|
|
69679
|
-
} else {
|
|
69680
|
-
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
|
|
69681
|
-
flags.bools[key] = true;
|
|
69682
|
-
});
|
|
69683
|
-
}
|
|
69684
|
-
|
|
69685
|
-
var aliases = {};
|
|
69686
|
-
Object.keys(opts.alias || {}).forEach(function (key) {
|
|
69687
|
-
aliases[key] = [].concat(opts.alias[key]);
|
|
69688
|
-
aliases[key].forEach(function (x) {
|
|
69689
|
-
aliases[x] = [key].concat(aliases[key].filter(function (y) {
|
|
69690
|
-
return x !== y;
|
|
69691
|
-
}));
|
|
69692
|
-
});
|
|
69693
|
-
});
|
|
69694
|
-
|
|
69695
|
-
[].concat(opts.string).filter(Boolean).forEach(function (key) {
|
|
69696
|
-
flags.strings[key] = true;
|
|
69697
|
-
if (aliases[key]) {
|
|
69698
|
-
flags.strings[aliases[key]] = true;
|
|
69699
|
-
}
|
|
69700
|
-
});
|
|
69701
|
-
|
|
69702
|
-
var defaults = opts['default'] || {};
|
|
69703
|
-
|
|
69704
|
-
var argv = { _ : [] };
|
|
69705
|
-
Object.keys(flags.bools).forEach(function (key) {
|
|
69706
|
-
setArg(key, defaults[key] === undefined ? false : defaults[key]);
|
|
69707
|
-
});
|
|
69708
|
-
|
|
69709
|
-
var notFlags = [];
|
|
69710
|
-
|
|
69711
|
-
if (args.indexOf('--') !== -1) {
|
|
69712
|
-
notFlags = args.slice(args.indexOf('--')+1);
|
|
69713
|
-
args = args.slice(0, args.indexOf('--'));
|
|
69714
|
-
}
|
|
69715
|
-
|
|
69716
|
-
function argDefined(key, arg) {
|
|
69717
|
-
return (flags.allBools && /^--[^=]+$/.test(arg)) ||
|
|
69718
|
-
flags.strings[key] || flags.bools[key] || aliases[key];
|
|
69719
|
-
}
|
|
69720
|
-
|
|
69721
|
-
function setArg (key, val, arg) {
|
|
69722
|
-
if (arg && flags.unknownFn && !argDefined(key, arg)) {
|
|
69723
|
-
if (flags.unknownFn(arg) === false) return;
|
|
69724
|
-
}
|
|
69725
|
-
|
|
69726
|
-
var value = !flags.strings[key] && isNumber(val)
|
|
69727
|
-
? Number(val) : val
|
|
69728
|
-
;
|
|
69729
|
-
setKey(argv, key.split('.'), value);
|
|
69730
|
-
|
|
69731
|
-
(aliases[key] || []).forEach(function (x) {
|
|
69732
|
-
setKey(argv, x.split('.'), value);
|
|
69733
|
-
});
|
|
69734
|
-
}
|
|
69735
|
-
|
|
69736
|
-
function setKey (obj, keys, value) {
|
|
69737
|
-
var o = obj;
|
|
69738
|
-
for (var i = 0; i < keys.length-1; i++) {
|
|
69739
|
-
var key = keys[i];
|
|
69740
|
-
if (key === '__proto__') return;
|
|
69741
|
-
if (o[key] === undefined) o[key] = {};
|
|
69742
|
-
if (o[key] === Object.prototype || o[key] === Number.prototype
|
|
69743
|
-
|| o[key] === String.prototype) o[key] = {};
|
|
69744
|
-
if (o[key] === Array.prototype) o[key] = [];
|
|
69745
|
-
o = o[key];
|
|
69746
|
-
}
|
|
69747
|
-
|
|
69748
|
-
var key = keys[keys.length - 1];
|
|
69749
|
-
if (key === '__proto__') return;
|
|
69750
|
-
if (o === Object.prototype || o === Number.prototype
|
|
69751
|
-
|| o === String.prototype) o = {};
|
|
69752
|
-
if (o === Array.prototype) o = [];
|
|
69753
|
-
if (o[key] === undefined || flags.bools[key] || typeof o[key] === 'boolean') {
|
|
69754
|
-
o[key] = value;
|
|
69755
|
-
}
|
|
69756
|
-
else if (Array.isArray(o[key])) {
|
|
69757
|
-
o[key].push(value);
|
|
69758
|
-
}
|
|
69759
|
-
else {
|
|
69760
|
-
o[key] = [ o[key], value ];
|
|
69761
|
-
}
|
|
69762
|
-
}
|
|
69763
|
-
|
|
69764
|
-
function aliasIsBoolean(key) {
|
|
69765
|
-
return aliases[key].some(function (x) {
|
|
69766
|
-
return flags.bools[x];
|
|
69767
|
-
});
|
|
69768
|
-
}
|
|
69769
|
-
|
|
69770
|
-
for (var i = 0; i < args.length; i++) {
|
|
69771
|
-
var arg = args[i];
|
|
69772
|
-
|
|
69773
|
-
if (/^--.+=/.test(arg)) {
|
|
69774
|
-
// Using [\s\S] instead of . because js doesn't support the
|
|
69775
|
-
// 'dotall' regex modifier. See:
|
|
69776
|
-
// http://stackoverflow.com/a/1068308/13216
|
|
69777
|
-
var m = arg.match(/^--([^=]+)=([\s\S]*)$/);
|
|
69778
|
-
var key = m[1];
|
|
69779
|
-
var value = m[2];
|
|
69780
|
-
if (flags.bools[key]) {
|
|
69781
|
-
value = value !== 'false';
|
|
69782
|
-
}
|
|
69783
|
-
setArg(key, value, arg);
|
|
69784
|
-
}
|
|
69785
|
-
else if (/^--no-.+/.test(arg)) {
|
|
69786
|
-
var key = arg.match(/^--no-(.+)/)[1];
|
|
69787
|
-
setArg(key, false, arg);
|
|
69788
|
-
}
|
|
69789
|
-
else if (/^--.+/.test(arg)) {
|
|
69790
|
-
var key = arg.match(/^--(.+)/)[1];
|
|
69791
|
-
var next = args[i + 1];
|
|
69792
|
-
if (next !== undefined && !/^-/.test(next)
|
|
69793
|
-
&& !flags.bools[key]
|
|
69794
|
-
&& !flags.allBools
|
|
69795
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
69796
|
-
setArg(key, next, arg);
|
|
69797
|
-
i++;
|
|
69798
|
-
}
|
|
69799
|
-
else if (/^(true|false)$/.test(next)) {
|
|
69800
|
-
setArg(key, next === 'true', arg);
|
|
69801
|
-
i++;
|
|
69802
|
-
}
|
|
69803
|
-
else {
|
|
69804
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
69805
|
-
}
|
|
69806
|
-
}
|
|
69807
|
-
else if (/^-[^-]+/.test(arg)) {
|
|
69808
|
-
var letters = arg.slice(1,-1).split('');
|
|
69809
|
-
|
|
69810
|
-
var broken = false;
|
|
69811
|
-
for (var j = 0; j < letters.length; j++) {
|
|
69812
|
-
var next = arg.slice(j+2);
|
|
69813
|
-
|
|
69814
|
-
if (next === '-') {
|
|
69815
|
-
setArg(letters[j], next, arg)
|
|
69816
|
-
continue;
|
|
69817
|
-
}
|
|
69818
|
-
|
|
69819
|
-
if (/[A-Za-z]/.test(letters[j]) && /=/.test(next)) {
|
|
69820
|
-
setArg(letters[j], next.split('=')[1], arg);
|
|
69821
|
-
broken = true;
|
|
69822
|
-
break;
|
|
69823
|
-
}
|
|
69824
|
-
|
|
69825
|
-
if (/[A-Za-z]/.test(letters[j])
|
|
69826
|
-
&& /-?\d+(\.\d*)?(e-?\d+)?$/.test(next)) {
|
|
69827
|
-
setArg(letters[j], next, arg);
|
|
69828
|
-
broken = true;
|
|
69829
|
-
break;
|
|
69830
|
-
}
|
|
69831
|
-
|
|
69832
|
-
if (letters[j+1] && letters[j+1].match(/\W/)) {
|
|
69833
|
-
setArg(letters[j], arg.slice(j+2), arg);
|
|
69834
|
-
broken = true;
|
|
69835
|
-
break;
|
|
69836
|
-
}
|
|
69837
|
-
else {
|
|
69838
|
-
setArg(letters[j], flags.strings[letters[j]] ? '' : true, arg);
|
|
69839
|
-
}
|
|
69840
|
-
}
|
|
69841
|
-
|
|
69842
|
-
var key = arg.slice(-1)[0];
|
|
69843
|
-
if (!broken && key !== '-') {
|
|
69844
|
-
if (args[i+1] && !/^(-|--)[^-]/.test(args[i+1])
|
|
69845
|
-
&& !flags.bools[key]
|
|
69846
|
-
&& (aliases[key] ? !aliasIsBoolean(key) : true)) {
|
|
69847
|
-
setArg(key, args[i+1], arg);
|
|
69848
|
-
i++;
|
|
69849
|
-
}
|
|
69850
|
-
else if (args[i+1] && /^(true|false)$/.test(args[i+1])) {
|
|
69851
|
-
setArg(key, args[i+1] === 'true', arg);
|
|
69852
|
-
i++;
|
|
69853
|
-
}
|
|
69854
|
-
else {
|
|
69855
|
-
setArg(key, flags.strings[key] ? '' : true, arg);
|
|
69856
|
-
}
|
|
69857
|
-
}
|
|
69858
|
-
}
|
|
69859
|
-
else {
|
|
69860
|
-
if (!flags.unknownFn || flags.unknownFn(arg) !== false) {
|
|
69861
|
-
argv._.push(
|
|
69862
|
-
flags.strings['_'] || !isNumber(arg) ? arg : Number(arg)
|
|
69863
|
-
);
|
|
69864
|
-
}
|
|
69865
|
-
if (opts.stopEarly) {
|
|
69866
|
-
argv._.push.apply(argv._, args.slice(i + 1));
|
|
69867
|
-
break;
|
|
69868
|
-
}
|
|
69869
|
-
}
|
|
69870
|
-
}
|
|
69871
|
-
|
|
69872
|
-
Object.keys(defaults).forEach(function (key) {
|
|
69873
|
-
if (!hasKey(argv, key.split('.'))) {
|
|
69874
|
-
setKey(argv, key.split('.'), defaults[key]);
|
|
69875
|
-
|
|
69876
|
-
(aliases[key] || []).forEach(function (x) {
|
|
69877
|
-
setKey(argv, x.split('.'), defaults[key]);
|
|
69878
|
-
});
|
|
69879
|
-
}
|
|
69880
|
-
});
|
|
69881
|
-
|
|
69882
|
-
if (opts['--']) {
|
|
69883
|
-
argv['--'] = new Array();
|
|
69884
|
-
notFlags.forEach(function(key) {
|
|
69885
|
-
argv['--'].push(key);
|
|
69886
|
-
});
|
|
69887
|
-
}
|
|
69888
|
-
else {
|
|
69889
|
-
notFlags.forEach(function(key) {
|
|
69890
|
-
argv._.push(key);
|
|
69891
|
-
});
|
|
69892
|
-
}
|
|
69893
|
-
|
|
69894
|
-
return argv;
|
|
69895
|
-
};
|
|
69896
|
-
|
|
69897
|
-
function hasKey (obj, keys) {
|
|
69898
|
-
var o = obj;
|
|
69899
|
-
keys.slice(0,-1).forEach(function (key) {
|
|
69900
|
-
o = (o[key] || {});
|
|
69901
|
-
});
|
|
69902
|
-
|
|
69903
|
-
var key = keys[keys.length - 1];
|
|
69904
|
-
return key in o;
|
|
69905
|
-
}
|
|
69906
|
-
|
|
69907
|
-
function isNumber (x) {
|
|
69908
|
-
if (typeof x === 'number') return true;
|
|
69909
|
-
if (/^0x[0-9a-f]+$/i.test(x)) return true;
|
|
69910
|
-
return /^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(x);
|
|
69911
|
-
}
|
|
69912
|
-
|
|
69913
|
-
|
|
69914
|
-
|
|
69915
70508
|
/***/ }),
|
|
69916
70509
|
|
|
69917
70510
|
/***/ 1389:
|