@salesforce/core-bundle 8.18.1 → 8.18.2
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/lib/index.js +1280 -18
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -12336,7 +12336,7 @@ var require_package2 = __commonJS({
|
|
|
12336
12336
|
"package.json"(exports2, module2) {
|
|
12337
12337
|
module2.exports = {
|
|
12338
12338
|
name: "@salesforce/core-bundle",
|
|
12339
|
-
version: "8.18.
|
|
12339
|
+
version: "8.18.2",
|
|
12340
12340
|
description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
12341
12341
|
main: "lib/index",
|
|
12342
12342
|
types: "lib/index.d.ts",
|
|
@@ -12381,7 +12381,7 @@ var require_package2 = __commonJS({
|
|
|
12381
12381
|
"change-case": "^4.1.2",
|
|
12382
12382
|
"fast-levenshtein": "^3.0.0",
|
|
12383
12383
|
faye: "^1.4.0",
|
|
12384
|
-
"form-data": "^4.0.
|
|
12384
|
+
"form-data": "^4.0.4",
|
|
12385
12385
|
js2xmlparser: "^4.0.1",
|
|
12386
12386
|
jsonwebtoken: "9.0.2",
|
|
12387
12387
|
jszip: "3.10.1",
|
|
@@ -31693,9 +31693,9 @@ var require_asynckit = __commonJS({
|
|
|
31693
31693
|
}
|
|
31694
31694
|
});
|
|
31695
31695
|
|
|
31696
|
-
// node_modules/form-data/lib/populate.js
|
|
31696
|
+
// node_modules/@jsforce/jsforce-node/node_modules/form-data/lib/populate.js
|
|
31697
31697
|
var require_populate = __commonJS({
|
|
31698
|
-
"node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
31698
|
+
"node_modules/@jsforce/jsforce-node/node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
31699
31699
|
module2.exports = function(dst, src) {
|
|
31700
31700
|
Object.keys(src).forEach(function(prop) {
|
|
31701
31701
|
dst[prop] = dst[prop] || src[prop];
|
|
@@ -31705,9 +31705,9 @@ var require_populate = __commonJS({
|
|
|
31705
31705
|
}
|
|
31706
31706
|
});
|
|
31707
31707
|
|
|
31708
|
-
// node_modules/form-data/lib/form_data.js
|
|
31708
|
+
// node_modules/@jsforce/jsforce-node/node_modules/form-data/lib/form_data.js
|
|
31709
31709
|
var require_form_data = __commonJS({
|
|
31710
|
-
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
31710
|
+
"node_modules/@jsforce/jsforce-node/node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
31711
31711
|
var CombinedStream = require_combined_stream();
|
|
31712
31712
|
var util = require("util");
|
|
31713
31713
|
var path = require("path");
|
|
@@ -33131,6 +33131,1268 @@ var require_transport2 = __commonJS({
|
|
|
33131
33131
|
}
|
|
33132
33132
|
});
|
|
33133
33133
|
|
|
33134
|
+
// node_modules/es-set-tostringtag/node_modules/es-object-atoms/index.js
|
|
33135
|
+
var require_es_object_atoms = __commonJS({
|
|
33136
|
+
"node_modules/es-set-tostringtag/node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
33137
|
+
"use strict";
|
|
33138
|
+
module2.exports = Object;
|
|
33139
|
+
}
|
|
33140
|
+
});
|
|
33141
|
+
|
|
33142
|
+
// node_modules/es-errors/index.js
|
|
33143
|
+
var require_es_errors = __commonJS({
|
|
33144
|
+
"node_modules/es-errors/index.js"(exports2, module2) {
|
|
33145
|
+
"use strict";
|
|
33146
|
+
module2.exports = Error;
|
|
33147
|
+
}
|
|
33148
|
+
});
|
|
33149
|
+
|
|
33150
|
+
// node_modules/es-errors/eval.js
|
|
33151
|
+
var require_eval = __commonJS({
|
|
33152
|
+
"node_modules/es-errors/eval.js"(exports2, module2) {
|
|
33153
|
+
"use strict";
|
|
33154
|
+
module2.exports = EvalError;
|
|
33155
|
+
}
|
|
33156
|
+
});
|
|
33157
|
+
|
|
33158
|
+
// node_modules/es-errors/range.js
|
|
33159
|
+
var require_range2 = __commonJS({
|
|
33160
|
+
"node_modules/es-errors/range.js"(exports2, module2) {
|
|
33161
|
+
"use strict";
|
|
33162
|
+
module2.exports = RangeError;
|
|
33163
|
+
}
|
|
33164
|
+
});
|
|
33165
|
+
|
|
33166
|
+
// node_modules/es-errors/ref.js
|
|
33167
|
+
var require_ref = __commonJS({
|
|
33168
|
+
"node_modules/es-errors/ref.js"(exports2, module2) {
|
|
33169
|
+
"use strict";
|
|
33170
|
+
module2.exports = ReferenceError;
|
|
33171
|
+
}
|
|
33172
|
+
});
|
|
33173
|
+
|
|
33174
|
+
// node_modules/es-errors/syntax.js
|
|
33175
|
+
var require_syntax = __commonJS({
|
|
33176
|
+
"node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
33177
|
+
"use strict";
|
|
33178
|
+
module2.exports = SyntaxError;
|
|
33179
|
+
}
|
|
33180
|
+
});
|
|
33181
|
+
|
|
33182
|
+
// node_modules/es-errors/type.js
|
|
33183
|
+
var require_type = __commonJS({
|
|
33184
|
+
"node_modules/es-errors/type.js"(exports2, module2) {
|
|
33185
|
+
"use strict";
|
|
33186
|
+
module2.exports = TypeError;
|
|
33187
|
+
}
|
|
33188
|
+
});
|
|
33189
|
+
|
|
33190
|
+
// node_modules/es-errors/uri.js
|
|
33191
|
+
var require_uri = __commonJS({
|
|
33192
|
+
"node_modules/es-errors/uri.js"(exports2, module2) {
|
|
33193
|
+
"use strict";
|
|
33194
|
+
module2.exports = URIError;
|
|
33195
|
+
}
|
|
33196
|
+
});
|
|
33197
|
+
|
|
33198
|
+
// node_modules/math-intrinsics/abs.js
|
|
33199
|
+
var require_abs = __commonJS({
|
|
33200
|
+
"node_modules/math-intrinsics/abs.js"(exports2, module2) {
|
|
33201
|
+
"use strict";
|
|
33202
|
+
module2.exports = Math.abs;
|
|
33203
|
+
}
|
|
33204
|
+
});
|
|
33205
|
+
|
|
33206
|
+
// node_modules/math-intrinsics/floor.js
|
|
33207
|
+
var require_floor = __commonJS({
|
|
33208
|
+
"node_modules/math-intrinsics/floor.js"(exports2, module2) {
|
|
33209
|
+
"use strict";
|
|
33210
|
+
module2.exports = Math.floor;
|
|
33211
|
+
}
|
|
33212
|
+
});
|
|
33213
|
+
|
|
33214
|
+
// node_modules/math-intrinsics/max.js
|
|
33215
|
+
var require_max = __commonJS({
|
|
33216
|
+
"node_modules/math-intrinsics/max.js"(exports2, module2) {
|
|
33217
|
+
"use strict";
|
|
33218
|
+
module2.exports = Math.max;
|
|
33219
|
+
}
|
|
33220
|
+
});
|
|
33221
|
+
|
|
33222
|
+
// node_modules/math-intrinsics/min.js
|
|
33223
|
+
var require_min = __commonJS({
|
|
33224
|
+
"node_modules/math-intrinsics/min.js"(exports2, module2) {
|
|
33225
|
+
"use strict";
|
|
33226
|
+
module2.exports = Math.min;
|
|
33227
|
+
}
|
|
33228
|
+
});
|
|
33229
|
+
|
|
33230
|
+
// node_modules/math-intrinsics/pow.js
|
|
33231
|
+
var require_pow = __commonJS({
|
|
33232
|
+
"node_modules/math-intrinsics/pow.js"(exports2, module2) {
|
|
33233
|
+
"use strict";
|
|
33234
|
+
module2.exports = Math.pow;
|
|
33235
|
+
}
|
|
33236
|
+
});
|
|
33237
|
+
|
|
33238
|
+
// node_modules/math-intrinsics/round.js
|
|
33239
|
+
var require_round = __commonJS({
|
|
33240
|
+
"node_modules/math-intrinsics/round.js"(exports2, module2) {
|
|
33241
|
+
"use strict";
|
|
33242
|
+
module2.exports = Math.round;
|
|
33243
|
+
}
|
|
33244
|
+
});
|
|
33245
|
+
|
|
33246
|
+
// node_modules/math-intrinsics/isNaN.js
|
|
33247
|
+
var require_isNaN = __commonJS({
|
|
33248
|
+
"node_modules/math-intrinsics/isNaN.js"(exports2, module2) {
|
|
33249
|
+
"use strict";
|
|
33250
|
+
module2.exports = Number.isNaN || function isNaN2(a) {
|
|
33251
|
+
return a !== a;
|
|
33252
|
+
};
|
|
33253
|
+
}
|
|
33254
|
+
});
|
|
33255
|
+
|
|
33256
|
+
// node_modules/math-intrinsics/sign.js
|
|
33257
|
+
var require_sign = __commonJS({
|
|
33258
|
+
"node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
33259
|
+
"use strict";
|
|
33260
|
+
var $isNaN = require_isNaN();
|
|
33261
|
+
module2.exports = function sign(number) {
|
|
33262
|
+
if ($isNaN(number) || number === 0) {
|
|
33263
|
+
return number;
|
|
33264
|
+
}
|
|
33265
|
+
return number < 0 ? -1 : 1;
|
|
33266
|
+
};
|
|
33267
|
+
}
|
|
33268
|
+
});
|
|
33269
|
+
|
|
33270
|
+
// node_modules/es-set-tostringtag/node_modules/gopd/gOPD.js
|
|
33271
|
+
var require_gOPD = __commonJS({
|
|
33272
|
+
"node_modules/es-set-tostringtag/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
33273
|
+
"use strict";
|
|
33274
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
33275
|
+
}
|
|
33276
|
+
});
|
|
33277
|
+
|
|
33278
|
+
// node_modules/es-set-tostringtag/node_modules/gopd/index.js
|
|
33279
|
+
var require_gopd = __commonJS({
|
|
33280
|
+
"node_modules/es-set-tostringtag/node_modules/gopd/index.js"(exports2, module2) {
|
|
33281
|
+
"use strict";
|
|
33282
|
+
var $gOPD = require_gOPD();
|
|
33283
|
+
if ($gOPD) {
|
|
33284
|
+
try {
|
|
33285
|
+
$gOPD([], "length");
|
|
33286
|
+
} catch (e) {
|
|
33287
|
+
$gOPD = null;
|
|
33288
|
+
}
|
|
33289
|
+
}
|
|
33290
|
+
module2.exports = $gOPD;
|
|
33291
|
+
}
|
|
33292
|
+
});
|
|
33293
|
+
|
|
33294
|
+
// node_modules/es-set-tostringtag/node_modules/es-define-property/index.js
|
|
33295
|
+
var require_es_define_property = __commonJS({
|
|
33296
|
+
"node_modules/es-set-tostringtag/node_modules/es-define-property/index.js"(exports2, module2) {
|
|
33297
|
+
"use strict";
|
|
33298
|
+
var $defineProperty = Object.defineProperty || false;
|
|
33299
|
+
if ($defineProperty) {
|
|
33300
|
+
try {
|
|
33301
|
+
$defineProperty({}, "a", { value: 1 });
|
|
33302
|
+
} catch (e) {
|
|
33303
|
+
$defineProperty = false;
|
|
33304
|
+
}
|
|
33305
|
+
}
|
|
33306
|
+
module2.exports = $defineProperty;
|
|
33307
|
+
}
|
|
33308
|
+
});
|
|
33309
|
+
|
|
33310
|
+
// node_modules/es-set-tostringtag/node_modules/has-symbols/shams.js
|
|
33311
|
+
var require_shams = __commonJS({
|
|
33312
|
+
"node_modules/es-set-tostringtag/node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
33313
|
+
"use strict";
|
|
33314
|
+
module2.exports = function hasSymbols() {
|
|
33315
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
33316
|
+
return false;
|
|
33317
|
+
}
|
|
33318
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
33319
|
+
return true;
|
|
33320
|
+
}
|
|
33321
|
+
var obj = {};
|
|
33322
|
+
var sym = Symbol("test");
|
|
33323
|
+
var symObj = Object(sym);
|
|
33324
|
+
if (typeof sym === "string") {
|
|
33325
|
+
return false;
|
|
33326
|
+
}
|
|
33327
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
33328
|
+
return false;
|
|
33329
|
+
}
|
|
33330
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
33331
|
+
return false;
|
|
33332
|
+
}
|
|
33333
|
+
var symVal = 42;
|
|
33334
|
+
obj[sym] = symVal;
|
|
33335
|
+
for (var _ in obj) {
|
|
33336
|
+
return false;
|
|
33337
|
+
}
|
|
33338
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
33339
|
+
return false;
|
|
33340
|
+
}
|
|
33341
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
33342
|
+
return false;
|
|
33343
|
+
}
|
|
33344
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
33345
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
33346
|
+
return false;
|
|
33347
|
+
}
|
|
33348
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
33349
|
+
return false;
|
|
33350
|
+
}
|
|
33351
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
33352
|
+
var descriptor = (
|
|
33353
|
+
/** @type {PropertyDescriptor} */
|
|
33354
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
33355
|
+
);
|
|
33356
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
33357
|
+
return false;
|
|
33358
|
+
}
|
|
33359
|
+
}
|
|
33360
|
+
return true;
|
|
33361
|
+
};
|
|
33362
|
+
}
|
|
33363
|
+
});
|
|
33364
|
+
|
|
33365
|
+
// node_modules/es-set-tostringtag/node_modules/has-symbols/index.js
|
|
33366
|
+
var require_has_symbols = __commonJS({
|
|
33367
|
+
"node_modules/es-set-tostringtag/node_modules/has-symbols/index.js"(exports2, module2) {
|
|
33368
|
+
"use strict";
|
|
33369
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
33370
|
+
var hasSymbolSham = require_shams();
|
|
33371
|
+
module2.exports = function hasNativeSymbols() {
|
|
33372
|
+
if (typeof origSymbol !== "function") {
|
|
33373
|
+
return false;
|
|
33374
|
+
}
|
|
33375
|
+
if (typeof Symbol !== "function") {
|
|
33376
|
+
return false;
|
|
33377
|
+
}
|
|
33378
|
+
if (typeof origSymbol("foo") !== "symbol") {
|
|
33379
|
+
return false;
|
|
33380
|
+
}
|
|
33381
|
+
if (typeof Symbol("bar") !== "symbol") {
|
|
33382
|
+
return false;
|
|
33383
|
+
}
|
|
33384
|
+
return hasSymbolSham();
|
|
33385
|
+
};
|
|
33386
|
+
}
|
|
33387
|
+
});
|
|
33388
|
+
|
|
33389
|
+
// node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
33390
|
+
var require_Reflect_getPrototypeOf = __commonJS({
|
|
33391
|
+
"node_modules/get-proto/Reflect.getPrototypeOf.js"(exports2, module2) {
|
|
33392
|
+
"use strict";
|
|
33393
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
33394
|
+
}
|
|
33395
|
+
});
|
|
33396
|
+
|
|
33397
|
+
// node_modules/es-object-atoms/index.js
|
|
33398
|
+
var require_es_object_atoms2 = __commonJS({
|
|
33399
|
+
"node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
33400
|
+
"use strict";
|
|
33401
|
+
module2.exports = Object;
|
|
33402
|
+
}
|
|
33403
|
+
});
|
|
33404
|
+
|
|
33405
|
+
// node_modules/get-proto/Object.getPrototypeOf.js
|
|
33406
|
+
var require_Object_getPrototypeOf = __commonJS({
|
|
33407
|
+
"node_modules/get-proto/Object.getPrototypeOf.js"(exports2, module2) {
|
|
33408
|
+
"use strict";
|
|
33409
|
+
var $Object = require_es_object_atoms2();
|
|
33410
|
+
module2.exports = $Object.getPrototypeOf || null;
|
|
33411
|
+
}
|
|
33412
|
+
});
|
|
33413
|
+
|
|
33414
|
+
// node_modules/function-bind/implementation.js
|
|
33415
|
+
var require_implementation = __commonJS({
|
|
33416
|
+
"node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
33417
|
+
"use strict";
|
|
33418
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
33419
|
+
var toStr = Object.prototype.toString;
|
|
33420
|
+
var max = Math.max;
|
|
33421
|
+
var funcType = "[object Function]";
|
|
33422
|
+
var concatty = function concatty2(a, b) {
|
|
33423
|
+
var arr = [];
|
|
33424
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
33425
|
+
arr[i] = a[i];
|
|
33426
|
+
}
|
|
33427
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
33428
|
+
arr[j + a.length] = b[j];
|
|
33429
|
+
}
|
|
33430
|
+
return arr;
|
|
33431
|
+
};
|
|
33432
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
33433
|
+
var arr = [];
|
|
33434
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
33435
|
+
arr[j] = arrLike[i];
|
|
33436
|
+
}
|
|
33437
|
+
return arr;
|
|
33438
|
+
};
|
|
33439
|
+
var joiny = function(arr, joiner) {
|
|
33440
|
+
var str = "";
|
|
33441
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
33442
|
+
str += arr[i];
|
|
33443
|
+
if (i + 1 < arr.length) {
|
|
33444
|
+
str += joiner;
|
|
33445
|
+
}
|
|
33446
|
+
}
|
|
33447
|
+
return str;
|
|
33448
|
+
};
|
|
33449
|
+
module2.exports = function bind(that) {
|
|
33450
|
+
var target = this;
|
|
33451
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
33452
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
33453
|
+
}
|
|
33454
|
+
var args = slicy(arguments, 1);
|
|
33455
|
+
var bound;
|
|
33456
|
+
var binder = function() {
|
|
33457
|
+
if (this instanceof bound) {
|
|
33458
|
+
var result = target.apply(
|
|
33459
|
+
this,
|
|
33460
|
+
concatty(args, arguments)
|
|
33461
|
+
);
|
|
33462
|
+
if (Object(result) === result) {
|
|
33463
|
+
return result;
|
|
33464
|
+
}
|
|
33465
|
+
return this;
|
|
33466
|
+
}
|
|
33467
|
+
return target.apply(
|
|
33468
|
+
that,
|
|
33469
|
+
concatty(args, arguments)
|
|
33470
|
+
);
|
|
33471
|
+
};
|
|
33472
|
+
var boundLength = max(0, target.length - args.length);
|
|
33473
|
+
var boundArgs = [];
|
|
33474
|
+
for (var i = 0; i < boundLength; i++) {
|
|
33475
|
+
boundArgs[i] = "$" + i;
|
|
33476
|
+
}
|
|
33477
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
33478
|
+
if (target.prototype) {
|
|
33479
|
+
var Empty = function Empty2() {
|
|
33480
|
+
};
|
|
33481
|
+
Empty.prototype = target.prototype;
|
|
33482
|
+
bound.prototype = new Empty();
|
|
33483
|
+
Empty.prototype = null;
|
|
33484
|
+
}
|
|
33485
|
+
return bound;
|
|
33486
|
+
};
|
|
33487
|
+
}
|
|
33488
|
+
});
|
|
33489
|
+
|
|
33490
|
+
// node_modules/function-bind/index.js
|
|
33491
|
+
var require_function_bind = __commonJS({
|
|
33492
|
+
"node_modules/function-bind/index.js"(exports2, module2) {
|
|
33493
|
+
"use strict";
|
|
33494
|
+
var implementation = require_implementation();
|
|
33495
|
+
module2.exports = Function.prototype.bind || implementation;
|
|
33496
|
+
}
|
|
33497
|
+
});
|
|
33498
|
+
|
|
33499
|
+
// node_modules/call-bind-apply-helpers/functionCall.js
|
|
33500
|
+
var require_functionCall = __commonJS({
|
|
33501
|
+
"node_modules/call-bind-apply-helpers/functionCall.js"(exports2, module2) {
|
|
33502
|
+
"use strict";
|
|
33503
|
+
module2.exports = Function.prototype.call;
|
|
33504
|
+
}
|
|
33505
|
+
});
|
|
33506
|
+
|
|
33507
|
+
// node_modules/call-bind-apply-helpers/functionApply.js
|
|
33508
|
+
var require_functionApply = __commonJS({
|
|
33509
|
+
"node_modules/call-bind-apply-helpers/functionApply.js"(exports2, module2) {
|
|
33510
|
+
"use strict";
|
|
33511
|
+
module2.exports = Function.prototype.apply;
|
|
33512
|
+
}
|
|
33513
|
+
});
|
|
33514
|
+
|
|
33515
|
+
// node_modules/call-bind-apply-helpers/reflectApply.js
|
|
33516
|
+
var require_reflectApply = __commonJS({
|
|
33517
|
+
"node_modules/call-bind-apply-helpers/reflectApply.js"(exports2, module2) {
|
|
33518
|
+
"use strict";
|
|
33519
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
33520
|
+
}
|
|
33521
|
+
});
|
|
33522
|
+
|
|
33523
|
+
// node_modules/call-bind-apply-helpers/actualApply.js
|
|
33524
|
+
var require_actualApply = __commonJS({
|
|
33525
|
+
"node_modules/call-bind-apply-helpers/actualApply.js"(exports2, module2) {
|
|
33526
|
+
"use strict";
|
|
33527
|
+
var bind = require_function_bind();
|
|
33528
|
+
var $apply = require_functionApply();
|
|
33529
|
+
var $call = require_functionCall();
|
|
33530
|
+
var $reflectApply = require_reflectApply();
|
|
33531
|
+
module2.exports = $reflectApply || bind.call($call, $apply);
|
|
33532
|
+
}
|
|
33533
|
+
});
|
|
33534
|
+
|
|
33535
|
+
// node_modules/call-bind-apply-helpers/index.js
|
|
33536
|
+
var require_call_bind_apply_helpers = __commonJS({
|
|
33537
|
+
"node_modules/call-bind-apply-helpers/index.js"(exports2, module2) {
|
|
33538
|
+
"use strict";
|
|
33539
|
+
var bind = require_function_bind();
|
|
33540
|
+
var $TypeError = require_type();
|
|
33541
|
+
var $call = require_functionCall();
|
|
33542
|
+
var $actualApply = require_actualApply();
|
|
33543
|
+
module2.exports = function callBindBasic(args) {
|
|
33544
|
+
if (args.length < 1 || typeof args[0] !== "function") {
|
|
33545
|
+
throw new $TypeError("a function is required");
|
|
33546
|
+
}
|
|
33547
|
+
return $actualApply(bind, $call, args);
|
|
33548
|
+
};
|
|
33549
|
+
}
|
|
33550
|
+
});
|
|
33551
|
+
|
|
33552
|
+
// node_modules/dunder-proto/node_modules/gopd/gOPD.js
|
|
33553
|
+
var require_gOPD2 = __commonJS({
|
|
33554
|
+
"node_modules/dunder-proto/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
33555
|
+
"use strict";
|
|
33556
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
33557
|
+
}
|
|
33558
|
+
});
|
|
33559
|
+
|
|
33560
|
+
// node_modules/dunder-proto/node_modules/gopd/index.js
|
|
33561
|
+
var require_gopd2 = __commonJS({
|
|
33562
|
+
"node_modules/dunder-proto/node_modules/gopd/index.js"(exports2, module2) {
|
|
33563
|
+
"use strict";
|
|
33564
|
+
var $gOPD = require_gOPD2();
|
|
33565
|
+
if ($gOPD) {
|
|
33566
|
+
try {
|
|
33567
|
+
$gOPD([], "length");
|
|
33568
|
+
} catch (e) {
|
|
33569
|
+
$gOPD = null;
|
|
33570
|
+
}
|
|
33571
|
+
}
|
|
33572
|
+
module2.exports = $gOPD;
|
|
33573
|
+
}
|
|
33574
|
+
});
|
|
33575
|
+
|
|
33576
|
+
// node_modules/dunder-proto/get.js
|
|
33577
|
+
var require_get2 = __commonJS({
|
|
33578
|
+
"node_modules/dunder-proto/get.js"(exports2, module2) {
|
|
33579
|
+
"use strict";
|
|
33580
|
+
var callBind = require_call_bind_apply_helpers();
|
|
33581
|
+
var gOPD = require_gopd2();
|
|
33582
|
+
var hasProtoAccessor;
|
|
33583
|
+
try {
|
|
33584
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
33585
|
+
[].__proto__ === Array.prototype;
|
|
33586
|
+
} catch (e) {
|
|
33587
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
33588
|
+
throw e;
|
|
33589
|
+
}
|
|
33590
|
+
}
|
|
33591
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(
|
|
33592
|
+
Object.prototype,
|
|
33593
|
+
/** @type {keyof typeof Object.prototype} */
|
|
33594
|
+
"__proto__"
|
|
33595
|
+
);
|
|
33596
|
+
var $Object = Object;
|
|
33597
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
33598
|
+
module2.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
33599
|
+
/** @type {import('./get')} */
|
|
33600
|
+
function getDunder(value) {
|
|
33601
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
33602
|
+
}
|
|
33603
|
+
) : false;
|
|
33604
|
+
}
|
|
33605
|
+
});
|
|
33606
|
+
|
|
33607
|
+
// node_modules/get-proto/index.js
|
|
33608
|
+
var require_get_proto = __commonJS({
|
|
33609
|
+
"node_modules/get-proto/index.js"(exports2, module2) {
|
|
33610
|
+
"use strict";
|
|
33611
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
33612
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
33613
|
+
var getDunderProto = require_get2();
|
|
33614
|
+
module2.exports = reflectGetProto ? function getProto(O) {
|
|
33615
|
+
return reflectGetProto(O);
|
|
33616
|
+
} : originalGetProto ? function getProto(O) {
|
|
33617
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
33618
|
+
throw new TypeError("getProto: not an object");
|
|
33619
|
+
}
|
|
33620
|
+
return originalGetProto(O);
|
|
33621
|
+
} : getDunderProto ? function getProto(O) {
|
|
33622
|
+
return getDunderProto(O);
|
|
33623
|
+
} : null;
|
|
33624
|
+
}
|
|
33625
|
+
});
|
|
33626
|
+
|
|
33627
|
+
// node_modules/hasown/index.js
|
|
33628
|
+
var require_hasown = __commonJS({
|
|
33629
|
+
"node_modules/hasown/index.js"(exports2, module2) {
|
|
33630
|
+
"use strict";
|
|
33631
|
+
var call = Function.prototype.call;
|
|
33632
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
33633
|
+
var bind = require_function_bind();
|
|
33634
|
+
module2.exports = bind.call(call, $hasOwn);
|
|
33635
|
+
}
|
|
33636
|
+
});
|
|
33637
|
+
|
|
33638
|
+
// node_modules/es-set-tostringtag/node_modules/get-intrinsic/index.js
|
|
33639
|
+
var require_get_intrinsic = __commonJS({
|
|
33640
|
+
"node_modules/es-set-tostringtag/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
33641
|
+
"use strict";
|
|
33642
|
+
var undefined2;
|
|
33643
|
+
var $Object = require_es_object_atoms();
|
|
33644
|
+
var $Error = require_es_errors();
|
|
33645
|
+
var $EvalError = require_eval();
|
|
33646
|
+
var $RangeError = require_range2();
|
|
33647
|
+
var $ReferenceError = require_ref();
|
|
33648
|
+
var $SyntaxError = require_syntax();
|
|
33649
|
+
var $TypeError = require_type();
|
|
33650
|
+
var $URIError = require_uri();
|
|
33651
|
+
var abs = require_abs();
|
|
33652
|
+
var floor = require_floor();
|
|
33653
|
+
var max = require_max();
|
|
33654
|
+
var min = require_min();
|
|
33655
|
+
var pow = require_pow();
|
|
33656
|
+
var round = require_round();
|
|
33657
|
+
var sign = require_sign();
|
|
33658
|
+
var $Function = Function;
|
|
33659
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
33660
|
+
try {
|
|
33661
|
+
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
33662
|
+
} catch (e) {
|
|
33663
|
+
}
|
|
33664
|
+
};
|
|
33665
|
+
var $gOPD = require_gopd();
|
|
33666
|
+
var $defineProperty = require_es_define_property();
|
|
33667
|
+
var throwTypeError = function() {
|
|
33668
|
+
throw new $TypeError();
|
|
33669
|
+
};
|
|
33670
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
33671
|
+
try {
|
|
33672
|
+
arguments.callee;
|
|
33673
|
+
return throwTypeError;
|
|
33674
|
+
} catch (calleeThrows) {
|
|
33675
|
+
try {
|
|
33676
|
+
return $gOPD(arguments, "callee").get;
|
|
33677
|
+
} catch (gOPDthrows) {
|
|
33678
|
+
return throwTypeError;
|
|
33679
|
+
}
|
|
33680
|
+
}
|
|
33681
|
+
}() : throwTypeError;
|
|
33682
|
+
var hasSymbols = require_has_symbols()();
|
|
33683
|
+
var getProto = require_get_proto();
|
|
33684
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
33685
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
33686
|
+
var $apply = require_functionApply();
|
|
33687
|
+
var $call = require_functionCall();
|
|
33688
|
+
var needsEval = {};
|
|
33689
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
33690
|
+
var INTRINSICS = {
|
|
33691
|
+
__proto__: null,
|
|
33692
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
33693
|
+
"%Array%": Array,
|
|
33694
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
33695
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
33696
|
+
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
33697
|
+
"%AsyncFunction%": needsEval,
|
|
33698
|
+
"%AsyncGenerator%": needsEval,
|
|
33699
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
33700
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
33701
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
33702
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
33703
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
33704
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
33705
|
+
"%Boolean%": Boolean,
|
|
33706
|
+
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
33707
|
+
"%Date%": Date,
|
|
33708
|
+
"%decodeURI%": decodeURI,
|
|
33709
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
33710
|
+
"%encodeURI%": encodeURI,
|
|
33711
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
33712
|
+
"%Error%": $Error,
|
|
33713
|
+
"%eval%": eval,
|
|
33714
|
+
// eslint-disable-line no-eval
|
|
33715
|
+
"%EvalError%": $EvalError,
|
|
33716
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
|
|
33717
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
33718
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
33719
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
33720
|
+
"%Function%": $Function,
|
|
33721
|
+
"%GeneratorFunction%": needsEval,
|
|
33722
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
33723
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
33724
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
33725
|
+
"%isFinite%": isFinite,
|
|
33726
|
+
"%isNaN%": isNaN,
|
|
33727
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
33728
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
33729
|
+
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
33730
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
33731
|
+
"%Math%": Math,
|
|
33732
|
+
"%Number%": Number,
|
|
33733
|
+
"%Object%": $Object,
|
|
33734
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
33735
|
+
"%parseFloat%": parseFloat,
|
|
33736
|
+
"%parseInt%": parseInt,
|
|
33737
|
+
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
33738
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
33739
|
+
"%RangeError%": $RangeError,
|
|
33740
|
+
"%ReferenceError%": $ReferenceError,
|
|
33741
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
33742
|
+
"%RegExp%": RegExp,
|
|
33743
|
+
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
33744
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
33745
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
33746
|
+
"%String%": String,
|
|
33747
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
33748
|
+
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
33749
|
+
"%SyntaxError%": $SyntaxError,
|
|
33750
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
33751
|
+
"%TypedArray%": TypedArray,
|
|
33752
|
+
"%TypeError%": $TypeError,
|
|
33753
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
33754
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
33755
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
33756
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
33757
|
+
"%URIError%": $URIError,
|
|
33758
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
33759
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
33760
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
|
|
33761
|
+
"%Function.prototype.call%": $call,
|
|
33762
|
+
"%Function.prototype.apply%": $apply,
|
|
33763
|
+
"%Object.defineProperty%": $defineProperty,
|
|
33764
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
33765
|
+
"%Math.abs%": abs,
|
|
33766
|
+
"%Math.floor%": floor,
|
|
33767
|
+
"%Math.max%": max,
|
|
33768
|
+
"%Math.min%": min,
|
|
33769
|
+
"%Math.pow%": pow,
|
|
33770
|
+
"%Math.round%": round,
|
|
33771
|
+
"%Math.sign%": sign,
|
|
33772
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
33773
|
+
};
|
|
33774
|
+
if (getProto) {
|
|
33775
|
+
try {
|
|
33776
|
+
null.error;
|
|
33777
|
+
} catch (e) {
|
|
33778
|
+
errorProto = getProto(getProto(e));
|
|
33779
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
33780
|
+
}
|
|
33781
|
+
}
|
|
33782
|
+
var errorProto;
|
|
33783
|
+
var doEval = function doEval2(name) {
|
|
33784
|
+
var value;
|
|
33785
|
+
if (name === "%AsyncFunction%") {
|
|
33786
|
+
value = getEvalledConstructor("async function () {}");
|
|
33787
|
+
} else if (name === "%GeneratorFunction%") {
|
|
33788
|
+
value = getEvalledConstructor("function* () {}");
|
|
33789
|
+
} else if (name === "%AsyncGeneratorFunction%") {
|
|
33790
|
+
value = getEvalledConstructor("async function* () {}");
|
|
33791
|
+
} else if (name === "%AsyncGenerator%") {
|
|
33792
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
33793
|
+
if (fn) {
|
|
33794
|
+
value = fn.prototype;
|
|
33795
|
+
}
|
|
33796
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
33797
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
33798
|
+
if (gen && getProto) {
|
|
33799
|
+
value = getProto(gen.prototype);
|
|
33800
|
+
}
|
|
33801
|
+
}
|
|
33802
|
+
INTRINSICS[name] = value;
|
|
33803
|
+
return value;
|
|
33804
|
+
};
|
|
33805
|
+
var LEGACY_ALIASES = {
|
|
33806
|
+
__proto__: null,
|
|
33807
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
33808
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
33809
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
33810
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
33811
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
33812
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
33813
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
33814
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
33815
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
33816
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
33817
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
33818
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
33819
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
33820
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
33821
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
33822
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
33823
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
33824
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
33825
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
33826
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
33827
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
33828
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
33829
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
33830
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
33831
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
33832
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
33833
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
33834
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
33835
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
33836
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
33837
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
33838
|
+
"%Promise_all%": ["Promise", "all"],
|
|
33839
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
33840
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
33841
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
33842
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
33843
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
33844
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
33845
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
33846
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
33847
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
33848
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
33849
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
33850
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
33851
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
33852
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
33853
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
33854
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
33855
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
33856
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
33857
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
33858
|
+
};
|
|
33859
|
+
var bind = require_function_bind();
|
|
33860
|
+
var hasOwn = require_hasown();
|
|
33861
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
33862
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
33863
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
33864
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
33865
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
33866
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
33867
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
33868
|
+
var stringToPath = function stringToPath2(string) {
|
|
33869
|
+
var first = $strSlice(string, 0, 1);
|
|
33870
|
+
var last = $strSlice(string, -1);
|
|
33871
|
+
if (first === "%" && last !== "%") {
|
|
33872
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
33873
|
+
} else if (last === "%" && first !== "%") {
|
|
33874
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
33875
|
+
}
|
|
33876
|
+
var result = [];
|
|
33877
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
33878
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
33879
|
+
});
|
|
33880
|
+
return result;
|
|
33881
|
+
};
|
|
33882
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
33883
|
+
var intrinsicName = name;
|
|
33884
|
+
var alias;
|
|
33885
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
33886
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
33887
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
33888
|
+
}
|
|
33889
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
33890
|
+
var value = INTRINSICS[intrinsicName];
|
|
33891
|
+
if (value === needsEval) {
|
|
33892
|
+
value = doEval(intrinsicName);
|
|
33893
|
+
}
|
|
33894
|
+
if (typeof value === "undefined" && !allowMissing) {
|
|
33895
|
+
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
33896
|
+
}
|
|
33897
|
+
return {
|
|
33898
|
+
alias,
|
|
33899
|
+
name: intrinsicName,
|
|
33900
|
+
value
|
|
33901
|
+
};
|
|
33902
|
+
}
|
|
33903
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
33904
|
+
};
|
|
33905
|
+
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
33906
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
33907
|
+
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
33908
|
+
}
|
|
33909
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
33910
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
33911
|
+
}
|
|
33912
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
33913
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
33914
|
+
}
|
|
33915
|
+
var parts = stringToPath(name);
|
|
33916
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
33917
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
33918
|
+
var intrinsicRealName = intrinsic.name;
|
|
33919
|
+
var value = intrinsic.value;
|
|
33920
|
+
var skipFurtherCaching = false;
|
|
33921
|
+
var alias = intrinsic.alias;
|
|
33922
|
+
if (alias) {
|
|
33923
|
+
intrinsicBaseName = alias[0];
|
|
33924
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
33925
|
+
}
|
|
33926
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
33927
|
+
var part = parts[i];
|
|
33928
|
+
var first = $strSlice(part, 0, 1);
|
|
33929
|
+
var last = $strSlice(part, -1);
|
|
33930
|
+
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
33931
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
33932
|
+
}
|
|
33933
|
+
if (part === "constructor" || !isOwn) {
|
|
33934
|
+
skipFurtherCaching = true;
|
|
33935
|
+
}
|
|
33936
|
+
intrinsicBaseName += "." + part;
|
|
33937
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
33938
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
33939
|
+
value = INTRINSICS[intrinsicRealName];
|
|
33940
|
+
} else if (value != null) {
|
|
33941
|
+
if (!(part in value)) {
|
|
33942
|
+
if (!allowMissing) {
|
|
33943
|
+
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
33944
|
+
}
|
|
33945
|
+
return void undefined2;
|
|
33946
|
+
}
|
|
33947
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
33948
|
+
var desc = $gOPD(value, part);
|
|
33949
|
+
isOwn = !!desc;
|
|
33950
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
33951
|
+
value = desc.get;
|
|
33952
|
+
} else {
|
|
33953
|
+
value = value[part];
|
|
33954
|
+
}
|
|
33955
|
+
} else {
|
|
33956
|
+
isOwn = hasOwn(value, part);
|
|
33957
|
+
value = value[part];
|
|
33958
|
+
}
|
|
33959
|
+
if (isOwn && !skipFurtherCaching) {
|
|
33960
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
33961
|
+
}
|
|
33962
|
+
}
|
|
33963
|
+
}
|
|
33964
|
+
return value;
|
|
33965
|
+
};
|
|
33966
|
+
}
|
|
33967
|
+
});
|
|
33968
|
+
|
|
33969
|
+
// node_modules/has-symbols/shams.js
|
|
33970
|
+
var require_shams2 = __commonJS({
|
|
33971
|
+
"node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
33972
|
+
"use strict";
|
|
33973
|
+
module2.exports = function hasSymbols() {
|
|
33974
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
33975
|
+
return false;
|
|
33976
|
+
}
|
|
33977
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
33978
|
+
return true;
|
|
33979
|
+
}
|
|
33980
|
+
var obj = {};
|
|
33981
|
+
var sym = Symbol("test");
|
|
33982
|
+
var symObj = Object(sym);
|
|
33983
|
+
if (typeof sym === "string") {
|
|
33984
|
+
return false;
|
|
33985
|
+
}
|
|
33986
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
33987
|
+
return false;
|
|
33988
|
+
}
|
|
33989
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
33990
|
+
return false;
|
|
33991
|
+
}
|
|
33992
|
+
var symVal = 42;
|
|
33993
|
+
obj[sym] = symVal;
|
|
33994
|
+
for (sym in obj) {
|
|
33995
|
+
return false;
|
|
33996
|
+
}
|
|
33997
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
33998
|
+
return false;
|
|
33999
|
+
}
|
|
34000
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
34001
|
+
return false;
|
|
34002
|
+
}
|
|
34003
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
34004
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
34005
|
+
return false;
|
|
34006
|
+
}
|
|
34007
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
34008
|
+
return false;
|
|
34009
|
+
}
|
|
34010
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
34011
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
34012
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
34013
|
+
return false;
|
|
34014
|
+
}
|
|
34015
|
+
}
|
|
34016
|
+
return true;
|
|
34017
|
+
};
|
|
34018
|
+
}
|
|
34019
|
+
});
|
|
34020
|
+
|
|
34021
|
+
// node_modules/has-tostringtag/shams.js
|
|
34022
|
+
var require_shams3 = __commonJS({
|
|
34023
|
+
"node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
34024
|
+
"use strict";
|
|
34025
|
+
var hasSymbols = require_shams2();
|
|
34026
|
+
module2.exports = function hasToStringTagShams() {
|
|
34027
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
34028
|
+
};
|
|
34029
|
+
}
|
|
34030
|
+
});
|
|
34031
|
+
|
|
34032
|
+
// node_modules/es-set-tostringtag/index.js
|
|
34033
|
+
var require_es_set_tostringtag = __commonJS({
|
|
34034
|
+
"node_modules/es-set-tostringtag/index.js"(exports2, module2) {
|
|
34035
|
+
"use strict";
|
|
34036
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
34037
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
34038
|
+
var hasToStringTag = require_shams3()();
|
|
34039
|
+
var hasOwn = require_hasown();
|
|
34040
|
+
var $TypeError = require_type();
|
|
34041
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
34042
|
+
module2.exports = function setToStringTag(object, value) {
|
|
34043
|
+
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
34044
|
+
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
34045
|
+
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
34046
|
+
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
34047
|
+
}
|
|
34048
|
+
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
|
34049
|
+
if ($defineProperty) {
|
|
34050
|
+
$defineProperty(object, toStringTag, {
|
|
34051
|
+
configurable: !nonConfigurable,
|
|
34052
|
+
enumerable: false,
|
|
34053
|
+
value,
|
|
34054
|
+
writable: false
|
|
34055
|
+
});
|
|
34056
|
+
} else {
|
|
34057
|
+
object[toStringTag] = value;
|
|
34058
|
+
}
|
|
34059
|
+
}
|
|
34060
|
+
};
|
|
34061
|
+
}
|
|
34062
|
+
});
|
|
34063
|
+
|
|
34064
|
+
// node_modules/form-data/lib/populate.js
|
|
34065
|
+
var require_populate2 = __commonJS({
|
|
34066
|
+
"node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
34067
|
+
"use strict";
|
|
34068
|
+
module2.exports = function(dst, src) {
|
|
34069
|
+
Object.keys(src).forEach(function(prop) {
|
|
34070
|
+
dst[prop] = dst[prop] || src[prop];
|
|
34071
|
+
});
|
|
34072
|
+
return dst;
|
|
34073
|
+
};
|
|
34074
|
+
}
|
|
34075
|
+
});
|
|
34076
|
+
|
|
34077
|
+
// node_modules/form-data/lib/form_data.js
|
|
34078
|
+
var require_form_data2 = __commonJS({
|
|
34079
|
+
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
34080
|
+
"use strict";
|
|
34081
|
+
var CombinedStream = require_combined_stream();
|
|
34082
|
+
var util = require("util");
|
|
34083
|
+
var path = require("path");
|
|
34084
|
+
var http = require("http");
|
|
34085
|
+
var https = require("https");
|
|
34086
|
+
var parseUrl = require("url").parse;
|
|
34087
|
+
var fs = require("fs");
|
|
34088
|
+
var Stream = require("stream").Stream;
|
|
34089
|
+
var crypto = require("crypto");
|
|
34090
|
+
var mime = require_mime_types();
|
|
34091
|
+
var asynckit = require_asynckit();
|
|
34092
|
+
var setToStringTag = require_es_set_tostringtag();
|
|
34093
|
+
var hasOwn = require_hasown();
|
|
34094
|
+
var populate = require_populate2();
|
|
34095
|
+
function FormData2(options) {
|
|
34096
|
+
if (!(this instanceof FormData2)) {
|
|
34097
|
+
return new FormData2(options);
|
|
34098
|
+
}
|
|
34099
|
+
this._overheadLength = 0;
|
|
34100
|
+
this._valueLength = 0;
|
|
34101
|
+
this._valuesToMeasure = [];
|
|
34102
|
+
CombinedStream.call(this);
|
|
34103
|
+
options = options || {};
|
|
34104
|
+
for (var option in options) {
|
|
34105
|
+
this[option] = options[option];
|
|
34106
|
+
}
|
|
34107
|
+
}
|
|
34108
|
+
util.inherits(FormData2, CombinedStream);
|
|
34109
|
+
FormData2.LINE_BREAK = "\r\n";
|
|
34110
|
+
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
34111
|
+
FormData2.prototype.append = function(field, value, options) {
|
|
34112
|
+
options = options || {};
|
|
34113
|
+
if (typeof options === "string") {
|
|
34114
|
+
options = { filename: options };
|
|
34115
|
+
}
|
|
34116
|
+
var append = CombinedStream.prototype.append.bind(this);
|
|
34117
|
+
if (typeof value === "number" || value == null) {
|
|
34118
|
+
value = String(value);
|
|
34119
|
+
}
|
|
34120
|
+
if (Array.isArray(value)) {
|
|
34121
|
+
this._error(new Error("Arrays are not supported."));
|
|
34122
|
+
return;
|
|
34123
|
+
}
|
|
34124
|
+
var header = this._multiPartHeader(field, value, options);
|
|
34125
|
+
var footer = this._multiPartFooter();
|
|
34126
|
+
append(header);
|
|
34127
|
+
append(value);
|
|
34128
|
+
append(footer);
|
|
34129
|
+
this._trackLength(header, value, options);
|
|
34130
|
+
};
|
|
34131
|
+
FormData2.prototype._trackLength = function(header, value, options) {
|
|
34132
|
+
var valueLength = 0;
|
|
34133
|
+
if (options.knownLength != null) {
|
|
34134
|
+
valueLength += Number(options.knownLength);
|
|
34135
|
+
} else if (Buffer.isBuffer(value)) {
|
|
34136
|
+
valueLength = value.length;
|
|
34137
|
+
} else if (typeof value === "string") {
|
|
34138
|
+
valueLength = Buffer.byteLength(value);
|
|
34139
|
+
}
|
|
34140
|
+
this._valueLength += valueLength;
|
|
34141
|
+
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
34142
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
34143
|
+
return;
|
|
34144
|
+
}
|
|
34145
|
+
if (!options.knownLength) {
|
|
34146
|
+
this._valuesToMeasure.push(value);
|
|
34147
|
+
}
|
|
34148
|
+
};
|
|
34149
|
+
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
34150
|
+
if (hasOwn(value, "fd")) {
|
|
34151
|
+
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
34152
|
+
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
34153
|
+
} else {
|
|
34154
|
+
fs.stat(value.path, function(err, stat) {
|
|
34155
|
+
if (err) {
|
|
34156
|
+
callback(err);
|
|
34157
|
+
return;
|
|
34158
|
+
}
|
|
34159
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
34160
|
+
callback(null, fileSize);
|
|
34161
|
+
});
|
|
34162
|
+
}
|
|
34163
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
34164
|
+
callback(null, Number(value.headers["content-length"]));
|
|
34165
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
34166
|
+
value.on("response", function(response) {
|
|
34167
|
+
value.pause();
|
|
34168
|
+
callback(null, Number(response.headers["content-length"]));
|
|
34169
|
+
});
|
|
34170
|
+
value.resume();
|
|
34171
|
+
} else {
|
|
34172
|
+
callback("Unknown stream");
|
|
34173
|
+
}
|
|
34174
|
+
};
|
|
34175
|
+
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
34176
|
+
if (typeof options.header === "string") {
|
|
34177
|
+
return options.header;
|
|
34178
|
+
}
|
|
34179
|
+
var contentDisposition = this._getContentDisposition(value, options);
|
|
34180
|
+
var contentType = this._getContentType(value, options);
|
|
34181
|
+
var contents = "";
|
|
34182
|
+
var headers = {
|
|
34183
|
+
// add custom disposition as third element or keep it two elements if not
|
|
34184
|
+
"Content-Disposition": ["form-data", 'name="' + field + '"'].concat(contentDisposition || []),
|
|
34185
|
+
// if no content type. allow it to be empty array
|
|
34186
|
+
"Content-Type": [].concat(contentType || [])
|
|
34187
|
+
};
|
|
34188
|
+
if (typeof options.header === "object") {
|
|
34189
|
+
populate(headers, options.header);
|
|
34190
|
+
}
|
|
34191
|
+
var header;
|
|
34192
|
+
for (var prop in headers) {
|
|
34193
|
+
if (hasOwn(headers, prop)) {
|
|
34194
|
+
header = headers[prop];
|
|
34195
|
+
if (header == null) {
|
|
34196
|
+
continue;
|
|
34197
|
+
}
|
|
34198
|
+
if (!Array.isArray(header)) {
|
|
34199
|
+
header = [header];
|
|
34200
|
+
}
|
|
34201
|
+
if (header.length) {
|
|
34202
|
+
contents += prop + ": " + header.join("; ") + FormData2.LINE_BREAK;
|
|
34203
|
+
}
|
|
34204
|
+
}
|
|
34205
|
+
}
|
|
34206
|
+
return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
|
|
34207
|
+
};
|
|
34208
|
+
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
34209
|
+
var filename;
|
|
34210
|
+
if (typeof options.filepath === "string") {
|
|
34211
|
+
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
34212
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
34213
|
+
filename = path.basename(options.filename || value && (value.name || value.path));
|
|
34214
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
34215
|
+
filename = path.basename(value.client._httpMessage.path || "");
|
|
34216
|
+
}
|
|
34217
|
+
if (filename) {
|
|
34218
|
+
return 'filename="' + filename + '"';
|
|
34219
|
+
}
|
|
34220
|
+
};
|
|
34221
|
+
FormData2.prototype._getContentType = function(value, options) {
|
|
34222
|
+
var contentType = options.contentType;
|
|
34223
|
+
if (!contentType && value && value.name) {
|
|
34224
|
+
contentType = mime.lookup(value.name);
|
|
34225
|
+
}
|
|
34226
|
+
if (!contentType && value && value.path) {
|
|
34227
|
+
contentType = mime.lookup(value.path);
|
|
34228
|
+
}
|
|
34229
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
34230
|
+
contentType = value.headers["content-type"];
|
|
34231
|
+
}
|
|
34232
|
+
if (!contentType && (options.filepath || options.filename)) {
|
|
34233
|
+
contentType = mime.lookup(options.filepath || options.filename);
|
|
34234
|
+
}
|
|
34235
|
+
if (!contentType && value && typeof value === "object") {
|
|
34236
|
+
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
34237
|
+
}
|
|
34238
|
+
return contentType;
|
|
34239
|
+
};
|
|
34240
|
+
FormData2.prototype._multiPartFooter = function() {
|
|
34241
|
+
return function(next) {
|
|
34242
|
+
var footer = FormData2.LINE_BREAK;
|
|
34243
|
+
var lastPart = this._streams.length === 0;
|
|
34244
|
+
if (lastPart) {
|
|
34245
|
+
footer += this._lastBoundary();
|
|
34246
|
+
}
|
|
34247
|
+
next(footer);
|
|
34248
|
+
}.bind(this);
|
|
34249
|
+
};
|
|
34250
|
+
FormData2.prototype._lastBoundary = function() {
|
|
34251
|
+
return "--" + this.getBoundary() + "--" + FormData2.LINE_BREAK;
|
|
34252
|
+
};
|
|
34253
|
+
FormData2.prototype.getHeaders = function(userHeaders) {
|
|
34254
|
+
var header;
|
|
34255
|
+
var formHeaders = {
|
|
34256
|
+
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
34257
|
+
};
|
|
34258
|
+
for (header in userHeaders) {
|
|
34259
|
+
if (hasOwn(userHeaders, header)) {
|
|
34260
|
+
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
34261
|
+
}
|
|
34262
|
+
}
|
|
34263
|
+
return formHeaders;
|
|
34264
|
+
};
|
|
34265
|
+
FormData2.prototype.setBoundary = function(boundary) {
|
|
34266
|
+
if (typeof boundary !== "string") {
|
|
34267
|
+
throw new TypeError("FormData boundary must be a string");
|
|
34268
|
+
}
|
|
34269
|
+
this._boundary = boundary;
|
|
34270
|
+
};
|
|
34271
|
+
FormData2.prototype.getBoundary = function() {
|
|
34272
|
+
if (!this._boundary) {
|
|
34273
|
+
this._generateBoundary();
|
|
34274
|
+
}
|
|
34275
|
+
return this._boundary;
|
|
34276
|
+
};
|
|
34277
|
+
FormData2.prototype.getBuffer = function() {
|
|
34278
|
+
var dataBuffer = new Buffer.alloc(0);
|
|
34279
|
+
var boundary = this.getBoundary();
|
|
34280
|
+
for (var i = 0, len = this._streams.length; i < len; i++) {
|
|
34281
|
+
if (typeof this._streams[i] !== "function") {
|
|
34282
|
+
if (Buffer.isBuffer(this._streams[i])) {
|
|
34283
|
+
dataBuffer = Buffer.concat([dataBuffer, this._streams[i]]);
|
|
34284
|
+
} else {
|
|
34285
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(this._streams[i])]);
|
|
34286
|
+
}
|
|
34287
|
+
if (typeof this._streams[i] !== "string" || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
|
34288
|
+
dataBuffer = Buffer.concat([dataBuffer, Buffer.from(FormData2.LINE_BREAK)]);
|
|
34289
|
+
}
|
|
34290
|
+
}
|
|
34291
|
+
}
|
|
34292
|
+
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
34293
|
+
};
|
|
34294
|
+
FormData2.prototype._generateBoundary = function() {
|
|
34295
|
+
this._boundary = "--------------------------" + crypto.randomBytes(12).toString("hex");
|
|
34296
|
+
};
|
|
34297
|
+
FormData2.prototype.getLengthSync = function() {
|
|
34298
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
34299
|
+
if (this._streams.length) {
|
|
34300
|
+
knownLength += this._lastBoundary().length;
|
|
34301
|
+
}
|
|
34302
|
+
if (!this.hasKnownLength()) {
|
|
34303
|
+
this._error(new Error("Cannot calculate proper length in synchronous way."));
|
|
34304
|
+
}
|
|
34305
|
+
return knownLength;
|
|
34306
|
+
};
|
|
34307
|
+
FormData2.prototype.hasKnownLength = function() {
|
|
34308
|
+
var hasKnownLength = true;
|
|
34309
|
+
if (this._valuesToMeasure.length) {
|
|
34310
|
+
hasKnownLength = false;
|
|
34311
|
+
}
|
|
34312
|
+
return hasKnownLength;
|
|
34313
|
+
};
|
|
34314
|
+
FormData2.prototype.getLength = function(cb) {
|
|
34315
|
+
var knownLength = this._overheadLength + this._valueLength;
|
|
34316
|
+
if (this._streams.length) {
|
|
34317
|
+
knownLength += this._lastBoundary().length;
|
|
34318
|
+
}
|
|
34319
|
+
if (!this._valuesToMeasure.length) {
|
|
34320
|
+
process.nextTick(cb.bind(this, null, knownLength));
|
|
34321
|
+
return;
|
|
34322
|
+
}
|
|
34323
|
+
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
|
34324
|
+
if (err) {
|
|
34325
|
+
cb(err);
|
|
34326
|
+
return;
|
|
34327
|
+
}
|
|
34328
|
+
values.forEach(function(length) {
|
|
34329
|
+
knownLength += length;
|
|
34330
|
+
});
|
|
34331
|
+
cb(null, knownLength);
|
|
34332
|
+
});
|
|
34333
|
+
};
|
|
34334
|
+
FormData2.prototype.submit = function(params, cb) {
|
|
34335
|
+
var request;
|
|
34336
|
+
var options;
|
|
34337
|
+
var defaults = { method: "post" };
|
|
34338
|
+
if (typeof params === "string") {
|
|
34339
|
+
params = parseUrl(params);
|
|
34340
|
+
options = populate({
|
|
34341
|
+
port: params.port,
|
|
34342
|
+
path: params.pathname,
|
|
34343
|
+
host: params.hostname,
|
|
34344
|
+
protocol: params.protocol
|
|
34345
|
+
}, defaults);
|
|
34346
|
+
} else {
|
|
34347
|
+
options = populate(params, defaults);
|
|
34348
|
+
if (!options.port) {
|
|
34349
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
34350
|
+
}
|
|
34351
|
+
}
|
|
34352
|
+
options.headers = this.getHeaders(params.headers);
|
|
34353
|
+
if (options.protocol === "https:") {
|
|
34354
|
+
request = https.request(options);
|
|
34355
|
+
} else {
|
|
34356
|
+
request = http.request(options);
|
|
34357
|
+
}
|
|
34358
|
+
this.getLength(function(err, length) {
|
|
34359
|
+
if (err && err !== "Unknown stream") {
|
|
34360
|
+
this._error(err);
|
|
34361
|
+
return;
|
|
34362
|
+
}
|
|
34363
|
+
if (length) {
|
|
34364
|
+
request.setHeader("Content-Length", length);
|
|
34365
|
+
}
|
|
34366
|
+
this.pipe(request);
|
|
34367
|
+
if (cb) {
|
|
34368
|
+
var onResponse;
|
|
34369
|
+
var callback = function(error, responce) {
|
|
34370
|
+
request.removeListener("error", callback);
|
|
34371
|
+
request.removeListener("response", onResponse);
|
|
34372
|
+
return cb.call(this, error, responce);
|
|
34373
|
+
};
|
|
34374
|
+
onResponse = callback.bind(this, null);
|
|
34375
|
+
request.on("error", callback);
|
|
34376
|
+
request.on("response", onResponse);
|
|
34377
|
+
}
|
|
34378
|
+
}.bind(this));
|
|
34379
|
+
return request;
|
|
34380
|
+
};
|
|
34381
|
+
FormData2.prototype._error = function(err) {
|
|
34382
|
+
if (!this.error) {
|
|
34383
|
+
this.error = err;
|
|
34384
|
+
this.pause();
|
|
34385
|
+
this.emit("error", err);
|
|
34386
|
+
}
|
|
34387
|
+
};
|
|
34388
|
+
FormData2.prototype.toString = function() {
|
|
34389
|
+
return "[object FormData]";
|
|
34390
|
+
};
|
|
34391
|
+
setToStringTag(FormData2, "FormData");
|
|
34392
|
+
module2.exports = FormData2;
|
|
34393
|
+
}
|
|
34394
|
+
});
|
|
34395
|
+
|
|
33134
34396
|
// node_modules/@jsforce/jsforce-node/lib/VERSION.js
|
|
33135
34397
|
var require_VERSION = __commonJS({
|
|
33136
34398
|
"node_modules/@jsforce/jsforce-node/lib/VERSION.js"(exports2) {
|
|
@@ -64500,7 +65762,7 @@ var require_channel = __commonJS({
|
|
|
64500
65762
|
});
|
|
64501
65763
|
|
|
64502
65764
|
// node_modules/faye/src/util/uri.js
|
|
64503
|
-
var
|
|
65765
|
+
var require_uri2 = __commonJS({
|
|
64504
65766
|
"node_modules/faye/src/util/uri.js"(exports2, module2) {
|
|
64505
65767
|
"use strict";
|
|
64506
65768
|
module2.exports = {
|
|
@@ -77217,7 +78479,7 @@ var require_node_local = __commonJS({
|
|
|
77217
78479
|
"use strict";
|
|
77218
78480
|
var asap = require_asap();
|
|
77219
78481
|
var Class = require_class();
|
|
77220
|
-
var URI =
|
|
78482
|
+
var URI = require_uri2();
|
|
77221
78483
|
var copyObject = require_copy_object();
|
|
77222
78484
|
var assign = require_assign();
|
|
77223
78485
|
var Server = require_server();
|
|
@@ -79930,7 +81192,7 @@ var require_web_socket = __commonJS({
|
|
|
79930
81192
|
var Class = require_class();
|
|
79931
81193
|
var Promise2 = require_promise2();
|
|
79932
81194
|
var Set2 = require_set();
|
|
79933
|
-
var URI =
|
|
81195
|
+
var URI = require_uri2();
|
|
79934
81196
|
var browser = require_node_shim();
|
|
79935
81197
|
var copyObject = require_copy_object();
|
|
79936
81198
|
var assign = require_assign();
|
|
@@ -80280,7 +81542,7 @@ var require_node_http = __commonJS({
|
|
|
80280
81542
|
var https = require("https");
|
|
80281
81543
|
var tunnel = require_tunnel_agent();
|
|
80282
81544
|
var Class = require_class();
|
|
80283
|
-
var URI =
|
|
81545
|
+
var URI = require_uri2();
|
|
80284
81546
|
var assign = require_assign();
|
|
80285
81547
|
var toJSON = require_to_json();
|
|
80286
81548
|
var Transport = require_transport3();
|
|
@@ -80443,7 +81705,7 @@ var require_dispatcher = __commonJS({
|
|
|
80443
81705
|
"node_modules/faye/src/protocol/dispatcher.js"(exports2, module2) {
|
|
80444
81706
|
"use strict";
|
|
80445
81707
|
var Class = require_class();
|
|
80446
|
-
var URI =
|
|
81708
|
+
var URI = require_uri2();
|
|
80447
81709
|
var cookies = require_node_cookies();
|
|
80448
81710
|
var assign = require_assign();
|
|
80449
81711
|
var Logging = require_logging();
|
|
@@ -83606,7 +84868,7 @@ var require_lodash8 = __commonJS({
|
|
|
83606
84868
|
});
|
|
83607
84869
|
|
|
83608
84870
|
// node_modules/jsonwebtoken/sign.js
|
|
83609
|
-
var
|
|
84871
|
+
var require_sign2 = __commonJS({
|
|
83610
84872
|
"node_modules/jsonwebtoken/sign.js"(exports2, module2) {
|
|
83611
84873
|
var timespan = require_timespan();
|
|
83612
84874
|
var PS_SUPPORTED = require_psSupported();
|
|
@@ -83836,7 +85098,7 @@ var require_jsonwebtoken = __commonJS({
|
|
|
83836
85098
|
module2.exports = {
|
|
83837
85099
|
decode: require_decode(),
|
|
83838
85100
|
verify: require_verify(),
|
|
83839
|
-
sign:
|
|
85101
|
+
sign: require_sign2(),
|
|
83840
85102
|
JsonWebTokenError: require_JsonWebTokenError(),
|
|
83841
85103
|
NotBeforeError: require_NotBeforeError(),
|
|
83842
85104
|
TokenExpiredError: require_TokenExpiredError()
|
|
@@ -89516,7 +90778,7 @@ var require_fast_uri = __commonJS({
|
|
|
89516
90778
|
});
|
|
89517
90779
|
|
|
89518
90780
|
// node_modules/ajv/dist/runtime/uri.js
|
|
89519
|
-
var
|
|
90781
|
+
var require_uri3 = __commonJS({
|
|
89520
90782
|
"node_modules/ajv/dist/runtime/uri.js"(exports2) {
|
|
89521
90783
|
"use strict";
|
|
89522
90784
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -89564,7 +90826,7 @@ var require_core2 = __commonJS({
|
|
|
89564
90826
|
var dataType_1 = require_dataType();
|
|
89565
90827
|
var util_1 = require_util2();
|
|
89566
90828
|
var $dataRefSchema = require_data();
|
|
89567
|
-
var uri_1 =
|
|
90829
|
+
var uri_1 = require_uri3();
|
|
89568
90830
|
var defaultRegExp = (str, flags) => new RegExp(str, flags);
|
|
89569
90831
|
defaultRegExp.code = "new RegExp";
|
|
89570
90832
|
var META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"];
|
|
@@ -90153,7 +91415,7 @@ var require_id = __commonJS({
|
|
|
90153
91415
|
});
|
|
90154
91416
|
|
|
90155
91417
|
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
90156
|
-
var
|
|
91418
|
+
var require_ref2 = __commonJS({
|
|
90157
91419
|
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
|
|
90158
91420
|
"use strict";
|
|
90159
91421
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -90280,7 +91542,7 @@ var require_core3 = __commonJS({
|
|
|
90280
91542
|
"use strict";
|
|
90281
91543
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
90282
91544
|
var id_1 = require_id();
|
|
90283
|
-
var ref_1 =
|
|
91545
|
+
var ref_1 = require_ref2();
|
|
90284
91546
|
var core = [
|
|
90285
91547
|
"$schema",
|
|
90286
91548
|
"$id",
|
|
@@ -110136,7 +111398,7 @@ var require_deviceOauthService = __commonJS({
|
|
|
110136
111398
|
var transport_1 = __importDefault3(require_transport2());
|
|
110137
111399
|
var kit_1 = require_lib2();
|
|
110138
111400
|
var ts_types_1 = require_lib();
|
|
110139
|
-
var form_data_1 = __importDefault3(
|
|
111401
|
+
var form_data_1 = __importDefault3(require_form_data2());
|
|
110140
111402
|
var logger_12 = require_logger();
|
|
110141
111403
|
var authInfo_12 = require_authInfo();
|
|
110142
111404
|
var connection_12 = require_connection3();
|