@stellar/stellar-sdk 13.0.0-rc.2 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +112 -7
- package/README.md +1 -1
- package/dist/stellar-sdk-minimal.js +448 -77
- package/dist/stellar-sdk-minimal.min.js +1 -1
- package/dist/stellar-sdk-no-axios.js +1044 -234
- package/dist/stellar-sdk-no-axios.min.js +1 -1
- package/dist/stellar-sdk-no-eventsource.js +171 -148
- package/dist/stellar-sdk-no-eventsource.min.js +1 -1
- package/dist/stellar-sdk.js +767 -305
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/friendbot/index.d.ts +1 -0
- package/lib/horizon/call_builder.d.ts +1 -1
- package/lib/horizon/horizon_api.d.ts +13 -0
- package/lib/horizon/horizon_axios_client.js +1 -1
- package/lib/horizon/server.d.ts +5 -0
- package/lib/horizon/server.js +80 -59
- package/lib/minimal/friendbot/index.d.ts +1 -0
- package/lib/minimal/horizon/call_builder.d.ts +1 -1
- package/lib/minimal/horizon/horizon_api.d.ts +13 -0
- package/lib/minimal/horizon/horizon_axios_client.js +1 -1
- package/lib/minimal/horizon/server.d.ts +5 -0
- package/lib/minimal/horizon/server.js +80 -59
- package/lib/minimal/rpc/api.d.ts +2 -1
- package/lib/minimal/rpc/axios.js +1 -1
- package/lib/minimal/rpc/parsers.js +1 -0
- package/lib/minimal/rpc/server.js +27 -8
- package/lib/no-axios/friendbot/index.d.ts +1 -0
- package/lib/no-axios/horizon/call_builder.d.ts +1 -1
- package/lib/no-axios/horizon/horizon_api.d.ts +13 -0
- package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
- package/lib/no-axios/horizon/server.d.ts +5 -0
- package/lib/no-axios/horizon/server.js +80 -59
- package/lib/no-axios/rpc/api.d.ts +2 -1
- package/lib/no-axios/rpc/axios.js +1 -1
- package/lib/no-axios/rpc/parsers.js +1 -0
- package/lib/no-axios/rpc/server.js +27 -8
- package/lib/no-eventsource/friendbot/index.d.ts +1 -0
- package/lib/no-eventsource/horizon/call_builder.d.ts +1 -1
- package/lib/no-eventsource/horizon/horizon_api.d.ts +13 -0
- package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
- package/lib/no-eventsource/horizon/server.d.ts +5 -0
- package/lib/no-eventsource/horizon/server.js +80 -59
- package/lib/no-eventsource/rpc/api.d.ts +2 -1
- package/lib/no-eventsource/rpc/axios.js +1 -1
- package/lib/no-eventsource/rpc/parsers.js +1 -0
- package/lib/no-eventsource/rpc/server.js +27 -8
- package/lib/rpc/api.d.ts +2 -1
- package/lib/rpc/axios.js +1 -1
- package/lib/rpc/parsers.js +1 -0
- package/lib/rpc/server.js +27 -8
- package/package.json +11 -11
package/dist/stellar-sdk.js
CHANGED
|
@@ -11063,6 +11063,12 @@ exports.walkInvocationTree = walkInvocationTree;
|
|
|
11063
11063
|
var _asset = __webpack_require__(1764);
|
|
11064
11064
|
var _address = __webpack_require__(1180);
|
|
11065
11065
|
var _scval = __webpack_require__(7177);
|
|
11066
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11067
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11068
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11069
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11070
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
11071
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11066
11072
|
/**
|
|
11067
11073
|
* @typedef CreateInvocation
|
|
11068
11074
|
*
|
|
@@ -11076,6 +11082,9 @@ var _scval = __webpack_require__(7177);
|
|
|
11076
11082
|
* @prop {string} wasm.address contract address of this deployment
|
|
11077
11083
|
* @prop {string} wasm.salt hex salt that the user consumed when creating
|
|
11078
11084
|
* this contract (encoded in the resulting address)
|
|
11085
|
+
* @prop {any[]} [wasm.constructorArgs] a list of natively-represented values
|
|
11086
|
+
* (see {@link scValToNative}) that are passed to the constructor when
|
|
11087
|
+
* creating this contract
|
|
11079
11088
|
*/
|
|
11080
11089
|
|
|
11081
11090
|
/**
|
|
@@ -11084,8 +11093,8 @@ var _scval = __webpack_require__(7177);
|
|
|
11084
11093
|
* @prop {string} source the strkey of the contract (C...) being invoked
|
|
11085
11094
|
* @prop {string} function the name of the function being invoked
|
|
11086
11095
|
* @prop {any[]} args the natively-represented parameters to the function
|
|
11087
|
-
* invocation (see {@link scValToNative}
|
|
11088
|
-
* represented a JS types
|
|
11096
|
+
* invocation (see {@link scValToNative} for rules on how they're
|
|
11097
|
+
* represented a JS types)
|
|
11089
11098
|
*/
|
|
11090
11099
|
|
|
11091
11100
|
/**
|
|
@@ -11146,7 +11155,7 @@ function buildInvocationTree(root) {
|
|
|
11146
11155
|
/** @type {InvocationTree} */
|
|
11147
11156
|
var output = {};
|
|
11148
11157
|
|
|
11149
|
-
/** @type {xdr.CreateContractArgs
|
|
11158
|
+
/** @type {xdr.CreateContractArgs|xdr.CreateContractArgsV2|xdr.InvokeContractArgs} */
|
|
11150
11159
|
var inner = fn.value();
|
|
11151
11160
|
switch (fn["switch"]().value) {
|
|
11152
11161
|
// sorobanAuthorizedFunctionTypeContractFn
|
|
@@ -11162,8 +11171,11 @@ function buildInvocationTree(root) {
|
|
|
11162
11171
|
break;
|
|
11163
11172
|
|
|
11164
11173
|
// sorobanAuthorizedFunctionTypeCreateContractHostFn
|
|
11165
|
-
|
|
11174
|
+
// sorobanAuthorizedFunctionTypeCreateContractV2HostFn
|
|
11175
|
+
case 1: // fallthrough: just no ctor args in V1
|
|
11176
|
+
case 2:
|
|
11166
11177
|
{
|
|
11178
|
+
var createV2 = fn["switch"]().value === 2;
|
|
11167
11179
|
output.type = 'create';
|
|
11168
11180
|
output.args = {};
|
|
11169
11181
|
|
|
@@ -11187,11 +11199,15 @@ function buildInvocationTree(root) {
|
|
|
11187
11199
|
/** @type {xdr.ContractIdPreimageFromAddress} */
|
|
11188
11200
|
var details = preimage.fromAddress();
|
|
11189
11201
|
output.args.type = 'wasm';
|
|
11190
|
-
output.args.wasm = {
|
|
11202
|
+
output.args.wasm = _objectSpread({
|
|
11191
11203
|
salt: details.salt().toString('hex'),
|
|
11192
11204
|
hash: exec.wasmHash().toString('hex'),
|
|
11193
11205
|
address: _address.Address.fromScAddress(details.address()).toString()
|
|
11194
|
-
}
|
|
11206
|
+
}, createV2 && {
|
|
11207
|
+
constructorArgs: inner.constructorArgs().map(function (arg) {
|
|
11208
|
+
return (0, _scval.scValToNative)(arg);
|
|
11209
|
+
})
|
|
11210
|
+
});
|
|
11195
11211
|
break;
|
|
11196
11212
|
}
|
|
11197
11213
|
|
|
@@ -27714,7 +27730,7 @@ var http_client = __webpack_require__(9983);
|
|
|
27714
27730
|
function horizon_axios_client_typeof(o) { "@babel/helpers - typeof"; return horizon_axios_client_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, horizon_axios_client_typeof(o); }
|
|
27715
27731
|
|
|
27716
27732
|
|
|
27717
|
-
var version = "13.
|
|
27733
|
+
var version = "13.1.0";
|
|
27718
27734
|
var SERVER_TIME_MAP = {};
|
|
27719
27735
|
var AxiosClient = (0,http_client/* create */.vt)({
|
|
27720
27736
|
headers: {
|
|
@@ -29100,28 +29116,49 @@ var HorizonServer = function () {
|
|
|
29100
29116
|
}
|
|
29101
29117
|
return feeStats;
|
|
29102
29118
|
}())
|
|
29119
|
+
}, {
|
|
29120
|
+
key: "root",
|
|
29121
|
+
value: (function () {
|
|
29122
|
+
var _root = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee4() {
|
|
29123
|
+
var cb;
|
|
29124
|
+
return server_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
29125
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
29126
|
+
case 0:
|
|
29127
|
+
cb = new CallBuilder(URI_default()(this.serverURL));
|
|
29128
|
+
return _context4.abrupt("return", cb.call());
|
|
29129
|
+
case 2:
|
|
29130
|
+
case "end":
|
|
29131
|
+
return _context4.stop();
|
|
29132
|
+
}
|
|
29133
|
+
}, _callee4, this);
|
|
29134
|
+
}));
|
|
29135
|
+
function root() {
|
|
29136
|
+
return _root.apply(this, arguments);
|
|
29137
|
+
}
|
|
29138
|
+
return root;
|
|
29139
|
+
}())
|
|
29103
29140
|
}, {
|
|
29104
29141
|
key: "submitTransaction",
|
|
29105
29142
|
value: (function () {
|
|
29106
|
-
var _submitTransaction = server_asyncToGenerator(server_regeneratorRuntime().mark(function
|
|
29143
|
+
var _submitTransaction = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee5(transaction) {
|
|
29107
29144
|
var opts,
|
|
29108
29145
|
tx,
|
|
29109
|
-
|
|
29110
|
-
return server_regeneratorRuntime().wrap(function
|
|
29111
|
-
while (1) switch (
|
|
29146
|
+
_args5 = arguments;
|
|
29147
|
+
return server_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
29148
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
29112
29149
|
case 0:
|
|
29113
|
-
opts =
|
|
29150
|
+
opts = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : {
|
|
29114
29151
|
skipMemoRequiredCheck: false
|
|
29115
29152
|
};
|
|
29116
29153
|
if (opts.skipMemoRequiredCheck) {
|
|
29117
|
-
|
|
29154
|
+
_context5.next = 4;
|
|
29118
29155
|
break;
|
|
29119
29156
|
}
|
|
29120
|
-
|
|
29157
|
+
_context5.next = 4;
|
|
29121
29158
|
return this.checkMemoRequired(transaction);
|
|
29122
29159
|
case 4:
|
|
29123
29160
|
tx = encodeURIComponent(transaction.toEnvelope().toXDR().toString("base64"));
|
|
29124
|
-
return
|
|
29161
|
+
return _context5.abrupt("return", horizon_axios_client.post(URI_default()(this.serverURL).segment("transactions").toString(), "tx=".concat(tx), {
|
|
29125
29162
|
timeout: SUBMIT_TRANSACTION_TIMEOUT
|
|
29126
29163
|
}).then(function (response) {
|
|
29127
29164
|
if (!response.data.result_xdr) {
|
|
@@ -29232,9 +29269,9 @@ var HorizonServer = function () {
|
|
|
29232
29269
|
}));
|
|
29233
29270
|
case 6:
|
|
29234
29271
|
case "end":
|
|
29235
|
-
return
|
|
29272
|
+
return _context5.stop();
|
|
29236
29273
|
}
|
|
29237
|
-
},
|
|
29274
|
+
}, _callee5, this);
|
|
29238
29275
|
}));
|
|
29239
29276
|
function submitTransaction(_x2) {
|
|
29240
29277
|
return _submitTransaction.apply(this, arguments);
|
|
@@ -29244,25 +29281,25 @@ var HorizonServer = function () {
|
|
|
29244
29281
|
}, {
|
|
29245
29282
|
key: "submitAsyncTransaction",
|
|
29246
29283
|
value: (function () {
|
|
29247
|
-
var _submitAsyncTransaction = server_asyncToGenerator(server_regeneratorRuntime().mark(function
|
|
29284
|
+
var _submitAsyncTransaction = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee6(transaction) {
|
|
29248
29285
|
var opts,
|
|
29249
29286
|
tx,
|
|
29250
|
-
|
|
29251
|
-
return server_regeneratorRuntime().wrap(function
|
|
29252
|
-
while (1) switch (
|
|
29287
|
+
_args6 = arguments;
|
|
29288
|
+
return server_regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
29289
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
29253
29290
|
case 0:
|
|
29254
|
-
opts =
|
|
29291
|
+
opts = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : {
|
|
29255
29292
|
skipMemoRequiredCheck: false
|
|
29256
29293
|
};
|
|
29257
29294
|
if (opts.skipMemoRequiredCheck) {
|
|
29258
|
-
|
|
29295
|
+
_context6.next = 4;
|
|
29259
29296
|
break;
|
|
29260
29297
|
}
|
|
29261
|
-
|
|
29298
|
+
_context6.next = 4;
|
|
29262
29299
|
return this.checkMemoRequired(transaction);
|
|
29263
29300
|
case 4:
|
|
29264
29301
|
tx = encodeURIComponent(transaction.toEnvelope().toXDR().toString("base64"));
|
|
29265
|
-
return
|
|
29302
|
+
return _context6.abrupt("return", horizon_axios_client.post(URI_default()(this.serverURL).segment("transactions_async").toString(), "tx=".concat(tx)).then(function (response) {
|
|
29266
29303
|
return response.data;
|
|
29267
29304
|
}).catch(function (response) {
|
|
29268
29305
|
if (response instanceof Error) {
|
|
@@ -29272,9 +29309,9 @@ var HorizonServer = function () {
|
|
|
29272
29309
|
}));
|
|
29273
29310
|
case 6:
|
|
29274
29311
|
case "end":
|
|
29275
|
-
return
|
|
29312
|
+
return _context6.stop();
|
|
29276
29313
|
}
|
|
29277
|
-
},
|
|
29314
|
+
}, _callee6, this);
|
|
29278
29315
|
}));
|
|
29279
29316
|
function submitAsyncTransaction(_x3) {
|
|
29280
29317
|
return _submitAsyncTransaction.apply(this, arguments);
|
|
@@ -29359,21 +29396,21 @@ var HorizonServer = function () {
|
|
|
29359
29396
|
}, {
|
|
29360
29397
|
key: "loadAccount",
|
|
29361
29398
|
value: (function () {
|
|
29362
|
-
var _loadAccount = server_asyncToGenerator(server_regeneratorRuntime().mark(function
|
|
29399
|
+
var _loadAccount = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee7(accountId) {
|
|
29363
29400
|
var res;
|
|
29364
|
-
return server_regeneratorRuntime().wrap(function
|
|
29365
|
-
while (1) switch (
|
|
29401
|
+
return server_regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
29402
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
29366
29403
|
case 0:
|
|
29367
|
-
|
|
29404
|
+
_context7.next = 2;
|
|
29368
29405
|
return this.accounts().accountId(accountId).call();
|
|
29369
29406
|
case 2:
|
|
29370
|
-
res =
|
|
29371
|
-
return
|
|
29407
|
+
res = _context7.sent;
|
|
29408
|
+
return _context7.abrupt("return", new AccountResponse(res));
|
|
29372
29409
|
case 4:
|
|
29373
29410
|
case "end":
|
|
29374
|
-
return
|
|
29411
|
+
return _context7.stop();
|
|
29375
29412
|
}
|
|
29376
|
-
},
|
|
29413
|
+
}, _callee7, this);
|
|
29377
29414
|
}));
|
|
29378
29415
|
function loadAccount(_x4) {
|
|
29379
29416
|
return _loadAccount.apply(this, arguments);
|
|
@@ -29388,88 +29425,88 @@ var HorizonServer = function () {
|
|
|
29388
29425
|
}, {
|
|
29389
29426
|
key: "checkMemoRequired",
|
|
29390
29427
|
value: (function () {
|
|
29391
|
-
var _checkMemoRequired = server_asyncToGenerator(server_regeneratorRuntime().mark(function
|
|
29428
|
+
var _checkMemoRequired = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee8(transaction) {
|
|
29392
29429
|
var destinations, i, operation, destination, account;
|
|
29393
|
-
return server_regeneratorRuntime().wrap(function
|
|
29394
|
-
while (1) switch (
|
|
29430
|
+
return server_regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
29431
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
29395
29432
|
case 0:
|
|
29396
29433
|
if (transaction instanceof lib.FeeBumpTransaction) {
|
|
29397
29434
|
transaction = transaction.innerTransaction;
|
|
29398
29435
|
}
|
|
29399
29436
|
if (!(transaction.memo.type !== "none")) {
|
|
29400
|
-
|
|
29437
|
+
_context8.next = 3;
|
|
29401
29438
|
break;
|
|
29402
29439
|
}
|
|
29403
|
-
return
|
|
29440
|
+
return _context8.abrupt("return");
|
|
29404
29441
|
case 3:
|
|
29405
29442
|
destinations = new Set();
|
|
29406
29443
|
i = 0;
|
|
29407
29444
|
case 5:
|
|
29408
29445
|
if (!(i < transaction.operations.length)) {
|
|
29409
|
-
|
|
29446
|
+
_context8.next = 36;
|
|
29410
29447
|
break;
|
|
29411
29448
|
}
|
|
29412
29449
|
operation = transaction.operations[i];
|
|
29413
|
-
|
|
29414
|
-
|
|
29450
|
+
_context8.t0 = operation.type;
|
|
29451
|
+
_context8.next = _context8.t0 === "payment" ? 10 : _context8.t0 === "pathPaymentStrictReceive" ? 10 : _context8.t0 === "pathPaymentStrictSend" ? 10 : _context8.t0 === "accountMerge" ? 10 : 11;
|
|
29415
29452
|
break;
|
|
29416
29453
|
case 10:
|
|
29417
|
-
return
|
|
29454
|
+
return _context8.abrupt("break", 12);
|
|
29418
29455
|
case 11:
|
|
29419
|
-
return
|
|
29456
|
+
return _context8.abrupt("continue", 33);
|
|
29420
29457
|
case 12:
|
|
29421
29458
|
destination = operation.destination;
|
|
29422
29459
|
if (!destinations.has(destination)) {
|
|
29423
|
-
|
|
29460
|
+
_context8.next = 15;
|
|
29424
29461
|
break;
|
|
29425
29462
|
}
|
|
29426
|
-
return
|
|
29463
|
+
return _context8.abrupt("continue", 33);
|
|
29427
29464
|
case 15:
|
|
29428
29465
|
destinations.add(destination);
|
|
29429
29466
|
if (!destination.startsWith("M")) {
|
|
29430
|
-
|
|
29467
|
+
_context8.next = 18;
|
|
29431
29468
|
break;
|
|
29432
29469
|
}
|
|
29433
|
-
return
|
|
29470
|
+
return _context8.abrupt("continue", 33);
|
|
29434
29471
|
case 18:
|
|
29435
|
-
|
|
29436
|
-
|
|
29472
|
+
_context8.prev = 18;
|
|
29473
|
+
_context8.next = 21;
|
|
29437
29474
|
return this.loadAccount(destination);
|
|
29438
29475
|
case 21:
|
|
29439
|
-
account =
|
|
29476
|
+
account = _context8.sent;
|
|
29440
29477
|
if (!(account.data_attr["config.memo_required"] === ACCOUNT_REQUIRES_MEMO)) {
|
|
29441
|
-
|
|
29478
|
+
_context8.next = 24;
|
|
29442
29479
|
break;
|
|
29443
29480
|
}
|
|
29444
29481
|
throw new errors/* AccountRequiresMemoError */.Cu("account requires memo", destination, i);
|
|
29445
29482
|
case 24:
|
|
29446
|
-
|
|
29483
|
+
_context8.next = 33;
|
|
29447
29484
|
break;
|
|
29448
29485
|
case 26:
|
|
29449
|
-
|
|
29450
|
-
|
|
29451
|
-
if (!(
|
|
29452
|
-
|
|
29486
|
+
_context8.prev = 26;
|
|
29487
|
+
_context8.t1 = _context8["catch"](18);
|
|
29488
|
+
if (!(_context8.t1 instanceof errors/* AccountRequiresMemoError */.Cu)) {
|
|
29489
|
+
_context8.next = 30;
|
|
29453
29490
|
break;
|
|
29454
29491
|
}
|
|
29455
|
-
throw
|
|
29492
|
+
throw _context8.t1;
|
|
29456
29493
|
case 30:
|
|
29457
|
-
if (
|
|
29458
|
-
|
|
29494
|
+
if (_context8.t1 instanceof errors/* NotFoundError */.m_) {
|
|
29495
|
+
_context8.next = 32;
|
|
29459
29496
|
break;
|
|
29460
29497
|
}
|
|
29461
|
-
throw
|
|
29498
|
+
throw _context8.t1;
|
|
29462
29499
|
case 32:
|
|
29463
|
-
return
|
|
29500
|
+
return _context8.abrupt("continue", 33);
|
|
29464
29501
|
case 33:
|
|
29465
29502
|
i += 1;
|
|
29466
|
-
|
|
29503
|
+
_context8.next = 5;
|
|
29467
29504
|
break;
|
|
29468
29505
|
case 36:
|
|
29469
29506
|
case "end":
|
|
29470
|
-
return
|
|
29507
|
+
return _context8.stop();
|
|
29471
29508
|
}
|
|
29472
|
-
},
|
|
29509
|
+
}, _callee8, this, [[18, 26]]);
|
|
29473
29510
|
}));
|
|
29474
29511
|
function checkMemoRequired(_x5) {
|
|
29475
29512
|
return _checkMemoRequired.apply(this, arguments);
|
|
@@ -30704,7 +30741,7 @@ function buildURL_encode(val) {
|
|
|
30704
30741
|
*
|
|
30705
30742
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
30706
30743
|
* @param {object} [params] The params to be appended
|
|
30707
|
-
* @param {?object} options
|
|
30744
|
+
* @param {?(object|Function)} options
|
|
30708
30745
|
*
|
|
30709
30746
|
* @returns {string} The formatted url
|
|
30710
30747
|
*/
|
|
@@ -30716,6 +30753,12 @@ function buildURL(url, params, options) {
|
|
|
30716
30753
|
|
|
30717
30754
|
const _encode = options && options.encode || buildURL_encode;
|
|
30718
30755
|
|
|
30756
|
+
if (utils.isFunction(options)) {
|
|
30757
|
+
options = {
|
|
30758
|
+
serialize: options
|
|
30759
|
+
};
|
|
30760
|
+
}
|
|
30761
|
+
|
|
30719
30762
|
const serializeFn = options && options.serialize;
|
|
30720
30763
|
|
|
30721
30764
|
let serializedParams;
|
|
@@ -31803,71 +31846,18 @@ const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));
|
|
|
31803
31846
|
;// ./node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
31804
31847
|
|
|
31805
31848
|
|
|
31849
|
+
/* harmony default export */ const isURLSameOrigin = (platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
31850
|
+
url = new URL(url, platform.origin);
|
|
31806
31851
|
|
|
31807
|
-
|
|
31808
|
-
|
|
31809
|
-
|
|
31810
|
-
|
|
31811
|
-
|
|
31812
|
-
|
|
31813
|
-
|
|
31814
|
-
|
|
31815
|
-
|
|
31816
|
-
let originURL;
|
|
31817
|
-
|
|
31818
|
-
/**
|
|
31819
|
-
* Parse a URL to discover its components
|
|
31820
|
-
*
|
|
31821
|
-
* @param {String} url The URL to be parsed
|
|
31822
|
-
* @returns {Object}
|
|
31823
|
-
*/
|
|
31824
|
-
function resolveURL(url) {
|
|
31825
|
-
let href = url;
|
|
31826
|
-
|
|
31827
|
-
if (msie) {
|
|
31828
|
-
// IE needs attribute set twice to normalize properties
|
|
31829
|
-
urlParsingNode.setAttribute('href', href);
|
|
31830
|
-
href = urlParsingNode.href;
|
|
31831
|
-
}
|
|
31832
|
-
|
|
31833
|
-
urlParsingNode.setAttribute('href', href);
|
|
31834
|
-
|
|
31835
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
31836
|
-
return {
|
|
31837
|
-
href: urlParsingNode.href,
|
|
31838
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
31839
|
-
host: urlParsingNode.host,
|
|
31840
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
31841
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
31842
|
-
hostname: urlParsingNode.hostname,
|
|
31843
|
-
port: urlParsingNode.port,
|
|
31844
|
-
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
31845
|
-
urlParsingNode.pathname :
|
|
31846
|
-
'/' + urlParsingNode.pathname
|
|
31847
|
-
};
|
|
31848
|
-
}
|
|
31849
|
-
|
|
31850
|
-
originURL = resolveURL(window.location.href);
|
|
31851
|
-
|
|
31852
|
-
/**
|
|
31853
|
-
* Determine if a URL shares the same origin as the current location
|
|
31854
|
-
*
|
|
31855
|
-
* @param {String} requestURL The URL to test
|
|
31856
|
-
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
31857
|
-
*/
|
|
31858
|
-
return function isURLSameOrigin(requestURL) {
|
|
31859
|
-
const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
31860
|
-
return (parsed.protocol === originURL.protocol &&
|
|
31861
|
-
parsed.host === originURL.host);
|
|
31862
|
-
};
|
|
31863
|
-
})() :
|
|
31864
|
-
|
|
31865
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
31866
|
-
(function nonStandardBrowserEnv() {
|
|
31867
|
-
return function isURLSameOrigin() {
|
|
31868
|
-
return true;
|
|
31869
|
-
};
|
|
31870
|
-
})());
|
|
31852
|
+
return (
|
|
31853
|
+
origin.protocol === url.protocol &&
|
|
31854
|
+
origin.host === url.host &&
|
|
31855
|
+
(isMSIE || origin.port === url.port)
|
|
31856
|
+
);
|
|
31857
|
+
})(
|
|
31858
|
+
new URL(platform.origin),
|
|
31859
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
31860
|
+
) : () => true);
|
|
31871
31861
|
|
|
31872
31862
|
;// ./node_modules/axios/lib/helpers/cookies.js
|
|
31873
31863
|
|
|
@@ -31992,7 +31982,7 @@ function mergeConfig(config1, config2) {
|
|
|
31992
31982
|
config2 = config2 || {};
|
|
31993
31983
|
const config = {};
|
|
31994
31984
|
|
|
31995
|
-
function getMergedValue(target, source, caseless) {
|
|
31985
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
31996
31986
|
if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
|
|
31997
31987
|
return utils.merge.call({caseless}, target, source);
|
|
31998
31988
|
} else if (utils.isPlainObject(source)) {
|
|
@@ -32004,11 +31994,11 @@ function mergeConfig(config1, config2) {
|
|
|
32004
31994
|
}
|
|
32005
31995
|
|
|
32006
31996
|
// eslint-disable-next-line consistent-return
|
|
32007
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
31997
|
+
function mergeDeepProperties(a, b, prop , caseless) {
|
|
32008
31998
|
if (!utils.isUndefined(b)) {
|
|
32009
|
-
return getMergedValue(a, b, caseless);
|
|
31999
|
+
return getMergedValue(a, b, prop , caseless);
|
|
32010
32000
|
} else if (!utils.isUndefined(a)) {
|
|
32011
|
-
return getMergedValue(undefined, a, caseless);
|
|
32001
|
+
return getMergedValue(undefined, a, prop , caseless);
|
|
32012
32002
|
}
|
|
32013
32003
|
}
|
|
32014
32004
|
|
|
@@ -32066,7 +32056,7 @@ function mergeConfig(config1, config2) {
|
|
|
32066
32056
|
socketPath: defaultToConfig2,
|
|
32067
32057
|
responseEncoding: defaultToConfig2,
|
|
32068
32058
|
validateStatus: mergeDirectKeys,
|
|
32069
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
32059
|
+
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
32070
32060
|
};
|
|
32071
32061
|
|
|
32072
32062
|
utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
@@ -32871,7 +32861,7 @@ function dispatchRequest(config) {
|
|
|
32871
32861
|
}
|
|
32872
32862
|
|
|
32873
32863
|
;// ./node_modules/axios/lib/env/data.js
|
|
32874
|
-
const VERSION = "1.7.
|
|
32864
|
+
const VERSION = "1.7.9";
|
|
32875
32865
|
;// ./node_modules/axios/lib/helpers/validator.js
|
|
32876
32866
|
|
|
32877
32867
|
|
|
@@ -32927,6 +32917,14 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
32927
32917
|
};
|
|
32928
32918
|
};
|
|
32929
32919
|
|
|
32920
|
+
validators.spelling = function spelling(correctSpelling) {
|
|
32921
|
+
return (value, opt) => {
|
|
32922
|
+
// eslint-disable-next-line no-console
|
|
32923
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
32924
|
+
return true;
|
|
32925
|
+
}
|
|
32926
|
+
};
|
|
32927
|
+
|
|
32930
32928
|
/**
|
|
32931
32929
|
* Assert object's properties type
|
|
32932
32930
|
*
|
|
@@ -33008,9 +33006,9 @@ class Axios {
|
|
|
33008
33006
|
return await this._request(configOrUrl, config);
|
|
33009
33007
|
} catch (err) {
|
|
33010
33008
|
if (err instanceof Error) {
|
|
33011
|
-
let dummy;
|
|
33009
|
+
let dummy = {};
|
|
33012
33010
|
|
|
33013
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
33011
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
33014
33012
|
|
|
33015
33013
|
// slice off the Error: ... line
|
|
33016
33014
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
@@ -33065,6 +33063,11 @@ class Axios {
|
|
|
33065
33063
|
}
|
|
33066
33064
|
}
|
|
33067
33065
|
|
|
33066
|
+
validator.assertOptions(config, {
|
|
33067
|
+
baseUrl: Axios_validators.spelling('baseURL'),
|
|
33068
|
+
withXsrfToken: Axios_validators.spelling('withXSRFToken')
|
|
33069
|
+
}, true);
|
|
33070
|
+
|
|
33068
33071
|
// Set config.method
|
|
33069
33072
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
33070
33073
|
|
|
@@ -33738,7 +33741,7 @@ var lib = __webpack_require__(356);
|
|
|
33738
33741
|
var http_client = __webpack_require__(9983);
|
|
33739
33742
|
;// ./src/rpc/axios.ts
|
|
33740
33743
|
|
|
33741
|
-
var version = "13.
|
|
33744
|
+
var version = "13.1.0";
|
|
33742
33745
|
var AxiosClient = (0,http_client/* create */.vt)({
|
|
33743
33746
|
headers: {
|
|
33744
33747
|
'X-Client-Name': 'js-soroban-client',
|
|
@@ -34489,7 +34492,7 @@ var RpcServer = function () {
|
|
|
34489
34492
|
key: "requestAirdrop",
|
|
34490
34493
|
value: (function () {
|
|
34491
34494
|
var _requestAirdrop = server_asyncToGenerator(server_regeneratorRuntime().mark(function _callee22(address, friendbotUrl) {
|
|
34492
|
-
var account, response, meta, sequence, _error$response, _error$response$detai;
|
|
34495
|
+
var account, response, meta, txMeta, sequence, _error$response, _error$response$detai;
|
|
34493
34496
|
return server_regeneratorRuntime().wrap(function _callee22$(_context22) {
|
|
34494
34497
|
while (1) switch (_context22.prev = _context22.next) {
|
|
34495
34498
|
case 0:
|
|
@@ -34516,28 +34519,47 @@ var RpcServer = function () {
|
|
|
34516
34519
|
return axios.post("".concat(friendbotUrl, "?addr=").concat(encodeURIComponent(account)));
|
|
34517
34520
|
case 12:
|
|
34518
34521
|
response = _context22.sent;
|
|
34522
|
+
if (response.data.result_meta_xdr) {
|
|
34523
|
+
_context22.next = 22;
|
|
34524
|
+
break;
|
|
34525
|
+
}
|
|
34526
|
+
_context22.next = 16;
|
|
34527
|
+
return this.getTransaction(response.data.hash);
|
|
34528
|
+
case 16:
|
|
34529
|
+
txMeta = _context22.sent;
|
|
34530
|
+
if (!(txMeta.status !== api/* Api */.j.GetTransactionStatus.SUCCESS)) {
|
|
34531
|
+
_context22.next = 19;
|
|
34532
|
+
break;
|
|
34533
|
+
}
|
|
34534
|
+
throw new Error("Funding account ".concat(address, " failed"));
|
|
34535
|
+
case 19:
|
|
34536
|
+
meta = txMeta.resultMetaXdr;
|
|
34537
|
+
_context22.next = 23;
|
|
34538
|
+
break;
|
|
34539
|
+
case 22:
|
|
34519
34540
|
meta = lib.xdr.TransactionMeta.fromXDR(response.data.result_meta_xdr, 'base64');
|
|
34541
|
+
case 23:
|
|
34520
34542
|
sequence = findCreatedAccountSequenceInTransactionMeta(meta);
|
|
34521
34543
|
return _context22.abrupt("return", new lib.Account(account, sequence));
|
|
34522
|
-
case
|
|
34523
|
-
_context22.prev =
|
|
34544
|
+
case 27:
|
|
34545
|
+
_context22.prev = 27;
|
|
34524
34546
|
_context22.t1 = _context22["catch"](9);
|
|
34525
34547
|
if (!(((_error$response = _context22.t1.response) === null || _error$response === void 0 ? void 0 : _error$response.status) === 400)) {
|
|
34526
|
-
_context22.next =
|
|
34548
|
+
_context22.next = 32;
|
|
34527
34549
|
break;
|
|
34528
34550
|
}
|
|
34529
34551
|
if (!((_error$response$detai = _context22.t1.response.detail) !== null && _error$response$detai !== void 0 && _error$response$detai.includes('createAccountAlreadyExist'))) {
|
|
34530
|
-
_context22.next =
|
|
34552
|
+
_context22.next = 32;
|
|
34531
34553
|
break;
|
|
34532
34554
|
}
|
|
34533
34555
|
return _context22.abrupt("return", this.getAccount(account));
|
|
34534
|
-
case
|
|
34556
|
+
case 32:
|
|
34535
34557
|
throw _context22.t1;
|
|
34536
|
-
case
|
|
34558
|
+
case 33:
|
|
34537
34559
|
case "end":
|
|
34538
34560
|
return _context22.stop();
|
|
34539
34561
|
}
|
|
34540
|
-
}, _callee22, this, [[9,
|
|
34562
|
+
}, _callee22, this, [[9, 27]]);
|
|
34541
34563
|
}));
|
|
34542
34564
|
function requestAirdrop(_x21, _x22) {
|
|
34543
34565
|
return _requestAirdrop.apply(this, arguments);
|
|
@@ -34750,6 +34772,7 @@ function parseRawEvents(raw) {
|
|
|
34750
34772
|
var _raw$events;
|
|
34751
34773
|
return {
|
|
34752
34774
|
latestLedger: raw.latestLedger,
|
|
34775
|
+
cursor: raw.cursor,
|
|
34753
34776
|
events: ((_raw$events = raw.events) !== null && _raw$events !== void 0 ? _raw$events : []).map(function (evt) {
|
|
34754
34777
|
var clone = _objectSpread({}, evt);
|
|
34755
34778
|
delete clone.contractId;
|
|
@@ -40998,6 +41021,101 @@ module.exports = {
|
|
|
40998
41021
|
}
|
|
40999
41022
|
|
|
41000
41023
|
|
|
41024
|
+
/***/ }),
|
|
41025
|
+
|
|
41026
|
+
/***/ 3144:
|
|
41027
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41028
|
+
|
|
41029
|
+
"use strict";
|
|
41030
|
+
|
|
41031
|
+
|
|
41032
|
+
var bind = __webpack_require__(6743);
|
|
41033
|
+
|
|
41034
|
+
var $apply = __webpack_require__(1002);
|
|
41035
|
+
var $call = __webpack_require__(76);
|
|
41036
|
+
var $reflectApply = __webpack_require__(7119);
|
|
41037
|
+
|
|
41038
|
+
/** @type {import('./actualApply')} */
|
|
41039
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
41040
|
+
|
|
41041
|
+
|
|
41042
|
+
/***/ }),
|
|
41043
|
+
|
|
41044
|
+
/***/ 2205:
|
|
41045
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41046
|
+
|
|
41047
|
+
"use strict";
|
|
41048
|
+
|
|
41049
|
+
|
|
41050
|
+
var bind = __webpack_require__(6743);
|
|
41051
|
+
var $apply = __webpack_require__(1002);
|
|
41052
|
+
var actualApply = __webpack_require__(3144);
|
|
41053
|
+
|
|
41054
|
+
/** @type {import('./applyBind')} */
|
|
41055
|
+
module.exports = function applyBind() {
|
|
41056
|
+
return actualApply(bind, $apply, arguments);
|
|
41057
|
+
};
|
|
41058
|
+
|
|
41059
|
+
|
|
41060
|
+
/***/ }),
|
|
41061
|
+
|
|
41062
|
+
/***/ 1002:
|
|
41063
|
+
/***/ ((module) => {
|
|
41064
|
+
|
|
41065
|
+
"use strict";
|
|
41066
|
+
|
|
41067
|
+
|
|
41068
|
+
/** @type {import('./functionApply')} */
|
|
41069
|
+
module.exports = Function.prototype.apply;
|
|
41070
|
+
|
|
41071
|
+
|
|
41072
|
+
/***/ }),
|
|
41073
|
+
|
|
41074
|
+
/***/ 76:
|
|
41075
|
+
/***/ ((module) => {
|
|
41076
|
+
|
|
41077
|
+
"use strict";
|
|
41078
|
+
|
|
41079
|
+
|
|
41080
|
+
/** @type {import('./functionCall')} */
|
|
41081
|
+
module.exports = Function.prototype.call;
|
|
41082
|
+
|
|
41083
|
+
|
|
41084
|
+
/***/ }),
|
|
41085
|
+
|
|
41086
|
+
/***/ 3126:
|
|
41087
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41088
|
+
|
|
41089
|
+
"use strict";
|
|
41090
|
+
|
|
41091
|
+
|
|
41092
|
+
var bind = __webpack_require__(6743);
|
|
41093
|
+
var $TypeError = __webpack_require__(9675);
|
|
41094
|
+
|
|
41095
|
+
var $call = __webpack_require__(76);
|
|
41096
|
+
var $actualApply = __webpack_require__(3144);
|
|
41097
|
+
|
|
41098
|
+
/** @type {import('.')} */
|
|
41099
|
+
module.exports = function callBindBasic(args) {
|
|
41100
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
41101
|
+
throw new $TypeError('a function is required');
|
|
41102
|
+
}
|
|
41103
|
+
return $actualApply(bind, $call, args);
|
|
41104
|
+
};
|
|
41105
|
+
|
|
41106
|
+
|
|
41107
|
+
/***/ }),
|
|
41108
|
+
|
|
41109
|
+
/***/ 7119:
|
|
41110
|
+
/***/ ((module) => {
|
|
41111
|
+
|
|
41112
|
+
"use strict";
|
|
41113
|
+
|
|
41114
|
+
|
|
41115
|
+
/** @type {import('./reflectApply')} */
|
|
41116
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
41117
|
+
|
|
41118
|
+
|
|
41001
41119
|
/***/ }),
|
|
41002
41120
|
|
|
41003
41121
|
/***/ 8075:
|
|
@@ -41029,34 +41147,23 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
41029
41147
|
"use strict";
|
|
41030
41148
|
|
|
41031
41149
|
|
|
41032
|
-
var bind = __webpack_require__(6743);
|
|
41033
|
-
var GetIntrinsic = __webpack_require__(453);
|
|
41034
41150
|
var setFunctionLength = __webpack_require__(6897);
|
|
41035
41151
|
|
|
41036
|
-
var $TypeError = __webpack_require__(9675);
|
|
41037
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
41038
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
41039
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
41040
|
-
|
|
41041
41152
|
var $defineProperty = __webpack_require__(655);
|
|
41042
|
-
|
|
41153
|
+
|
|
41154
|
+
var callBindBasic = __webpack_require__(3126);
|
|
41155
|
+
var applyBind = __webpack_require__(2205);
|
|
41043
41156
|
|
|
41044
41157
|
module.exports = function callBind(originalFunction) {
|
|
41045
|
-
|
|
41046
|
-
|
|
41047
|
-
}
|
|
41048
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
41158
|
+
var func = callBindBasic(arguments);
|
|
41159
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
41049
41160
|
return setFunctionLength(
|
|
41050
41161
|
func,
|
|
41051
|
-
1 +
|
|
41162
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
41052
41163
|
true
|
|
41053
41164
|
);
|
|
41054
41165
|
};
|
|
41055
41166
|
|
|
41056
|
-
var applyBind = function applyBind() {
|
|
41057
|
-
return $reflectApply(bind, $apply, arguments);
|
|
41058
|
-
};
|
|
41059
|
-
|
|
41060
41167
|
if ($defineProperty) {
|
|
41061
41168
|
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
41062
41169
|
} else {
|
|
@@ -41064,6 +41171,32 @@ if ($defineProperty) {
|
|
|
41064
41171
|
}
|
|
41065
41172
|
|
|
41066
41173
|
|
|
41174
|
+
/***/ }),
|
|
41175
|
+
|
|
41176
|
+
/***/ 6556:
|
|
41177
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41178
|
+
|
|
41179
|
+
"use strict";
|
|
41180
|
+
|
|
41181
|
+
|
|
41182
|
+
var GetIntrinsic = __webpack_require__(453);
|
|
41183
|
+
|
|
41184
|
+
var callBindBasic = __webpack_require__(3126);
|
|
41185
|
+
|
|
41186
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
41187
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
41188
|
+
|
|
41189
|
+
/** @type {import('.')} */
|
|
41190
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
41191
|
+
// eslint-disable-next-line no-extra-parens
|
|
41192
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
|
|
41193
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
41194
|
+
return callBindBasic([intrinsic]);
|
|
41195
|
+
}
|
|
41196
|
+
return intrinsic;
|
|
41197
|
+
};
|
|
41198
|
+
|
|
41199
|
+
|
|
41067
41200
|
/***/ }),
|
|
41068
41201
|
|
|
41069
41202
|
/***/ 41:
|
|
@@ -41130,16 +41263,45 @@ module.exports = function defineDataProperty(
|
|
|
41130
41263
|
|
|
41131
41264
|
/***/ }),
|
|
41132
41265
|
|
|
41133
|
-
/***/
|
|
41266
|
+
/***/ 7176:
|
|
41134
41267
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41135
41268
|
|
|
41136
41269
|
"use strict";
|
|
41137
41270
|
|
|
41138
41271
|
|
|
41139
|
-
var
|
|
41272
|
+
var callBind = __webpack_require__(3126);
|
|
41273
|
+
var gOPD = __webpack_require__(5795);
|
|
41274
|
+
|
|
41275
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
41276
|
+
var hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
41277
|
+
|
|
41278
|
+
// eslint-disable-next-line no-extra-parens
|
|
41279
|
+
var desc = hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
41280
|
+
|
|
41281
|
+
var $Object = Object;
|
|
41282
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
41283
|
+
|
|
41284
|
+
/** @type {import('./get')} */
|
|
41285
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
41286
|
+
? callBind([desc.get])
|
|
41287
|
+
: typeof $getPrototypeOf === 'function'
|
|
41288
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
41289
|
+
// eslint-disable-next-line eqeqeq
|
|
41290
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
41291
|
+
}
|
|
41292
|
+
: false;
|
|
41293
|
+
|
|
41294
|
+
|
|
41295
|
+
/***/ }),
|
|
41296
|
+
|
|
41297
|
+
/***/ 655:
|
|
41298
|
+
/***/ ((module) => {
|
|
41299
|
+
|
|
41300
|
+
"use strict";
|
|
41301
|
+
|
|
41140
41302
|
|
|
41141
41303
|
/** @type {import('.')} */
|
|
41142
|
-
var $defineProperty =
|
|
41304
|
+
var $defineProperty = Object.defineProperty || false;
|
|
41143
41305
|
if ($defineProperty) {
|
|
41144
41306
|
try {
|
|
41145
41307
|
$defineProperty({}, 'a', { value: 1 });
|
|
@@ -41236,6 +41398,18 @@ module.exports = TypeError;
|
|
|
41236
41398
|
module.exports = URIError;
|
|
41237
41399
|
|
|
41238
41400
|
|
|
41401
|
+
/***/ }),
|
|
41402
|
+
|
|
41403
|
+
/***/ 9612:
|
|
41404
|
+
/***/ ((module) => {
|
|
41405
|
+
|
|
41406
|
+
"use strict";
|
|
41407
|
+
|
|
41408
|
+
|
|
41409
|
+
/** @type {import('.')} */
|
|
41410
|
+
module.exports = Object;
|
|
41411
|
+
|
|
41412
|
+
|
|
41239
41413
|
/***/ }),
|
|
41240
41414
|
|
|
41241
41415
|
/***/ 7007:
|
|
@@ -42429,6 +42603,8 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
42429
42603
|
|
|
42430
42604
|
var undefined;
|
|
42431
42605
|
|
|
42606
|
+
var $Object = __webpack_require__(9612);
|
|
42607
|
+
|
|
42432
42608
|
var $Error = __webpack_require__(9383);
|
|
42433
42609
|
var $EvalError = __webpack_require__(1237);
|
|
42434
42610
|
var $RangeError = __webpack_require__(9290);
|
|
@@ -42437,6 +42613,12 @@ var $SyntaxError = __webpack_require__(8068);
|
|
|
42437
42613
|
var $TypeError = __webpack_require__(9675);
|
|
42438
42614
|
var $URIError = __webpack_require__(5345);
|
|
42439
42615
|
|
|
42616
|
+
var abs = __webpack_require__(1514);
|
|
42617
|
+
var floor = __webpack_require__(8968);
|
|
42618
|
+
var max = __webpack_require__(6188);
|
|
42619
|
+
var min = __webpack_require__(8002);
|
|
42620
|
+
var pow = __webpack_require__(5880);
|
|
42621
|
+
|
|
42440
42622
|
var $Function = Function;
|
|
42441
42623
|
|
|
42442
42624
|
// eslint-disable-next-line consistent-return
|
|
@@ -42446,14 +42628,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
42446
42628
|
} catch (e) {}
|
|
42447
42629
|
};
|
|
42448
42630
|
|
|
42449
|
-
var $gOPD =
|
|
42450
|
-
|
|
42451
|
-
try {
|
|
42452
|
-
$gOPD({}, '');
|
|
42453
|
-
} catch (e) {
|
|
42454
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
42455
|
-
}
|
|
42456
|
-
}
|
|
42631
|
+
var $gOPD = __webpack_require__(5795);
|
|
42632
|
+
var $defineProperty = __webpack_require__(655);
|
|
42457
42633
|
|
|
42458
42634
|
var throwTypeError = function () {
|
|
42459
42635
|
throw new $TypeError();
|
|
@@ -42476,13 +42652,14 @@ var ThrowTypeError = $gOPD
|
|
|
42476
42652
|
: throwTypeError;
|
|
42477
42653
|
|
|
42478
42654
|
var hasSymbols = __webpack_require__(4039)();
|
|
42479
|
-
var
|
|
42655
|
+
var getDunderProto = __webpack_require__(7176);
|
|
42480
42656
|
|
|
42481
|
-
var getProto =
|
|
42482
|
-
|
|
42483
|
-
|
|
42484
|
-
|
|
42485
|
-
);
|
|
42657
|
+
var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
|
|
42658
|
+
|| $Object.getPrototypeOf
|
|
42659
|
+
|| getDunderProto;
|
|
42660
|
+
|
|
42661
|
+
var $apply = __webpack_require__(1002);
|
|
42662
|
+
var $call = __webpack_require__(76);
|
|
42486
42663
|
|
|
42487
42664
|
var needsEval = {};
|
|
42488
42665
|
|
|
@@ -42529,7 +42706,8 @@ var INTRINSICS = {
|
|
|
42529
42706
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
42530
42707
|
'%Math%': Math,
|
|
42531
42708
|
'%Number%': Number,
|
|
42532
|
-
'%Object%': Object,
|
|
42709
|
+
'%Object%': $Object,
|
|
42710
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
42533
42711
|
'%parseFloat%': parseFloat,
|
|
42534
42712
|
'%parseInt%': parseInt,
|
|
42535
42713
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -42555,7 +42733,16 @@ var INTRINSICS = {
|
|
|
42555
42733
|
'%URIError%': $URIError,
|
|
42556
42734
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
42557
42735
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
42558
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
42736
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
42737
|
+
|
|
42738
|
+
'%Function.prototype.call%': $call,
|
|
42739
|
+
'%Function.prototype.apply%': $apply,
|
|
42740
|
+
'%Object.defineProperty%': $defineProperty,
|
|
42741
|
+
'%Math.abs%': abs,
|
|
42742
|
+
'%Math.floor%': floor,
|
|
42743
|
+
'%Math.max%': max,
|
|
42744
|
+
'%Math.min%': min,
|
|
42745
|
+
'%Math.pow%': pow
|
|
42559
42746
|
};
|
|
42560
42747
|
|
|
42561
42748
|
if (getProto) {
|
|
@@ -42650,11 +42837,11 @@ var LEGACY_ALIASES = {
|
|
|
42650
42837
|
|
|
42651
42838
|
var bind = __webpack_require__(6743);
|
|
42652
42839
|
var hasOwn = __webpack_require__(9957);
|
|
42653
|
-
var $concat = bind.call(
|
|
42654
|
-
var $spliceApply = bind.call(
|
|
42655
|
-
var $replace = bind.call(
|
|
42656
|
-
var $strSlice = bind.call(
|
|
42657
|
-
var $exec = bind.call(
|
|
42840
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
42841
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
42842
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
42843
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
42844
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
42658
42845
|
|
|
42659
42846
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
42660
42847
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -42786,6 +42973,18 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
42786
42973
|
};
|
|
42787
42974
|
|
|
42788
42975
|
|
|
42976
|
+
/***/ }),
|
|
42977
|
+
|
|
42978
|
+
/***/ 6549:
|
|
42979
|
+
/***/ ((module) => {
|
|
42980
|
+
|
|
42981
|
+
"use strict";
|
|
42982
|
+
|
|
42983
|
+
|
|
42984
|
+
/** @type {import('./gOPD')} */
|
|
42985
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
42986
|
+
|
|
42987
|
+
|
|
42789
42988
|
/***/ }),
|
|
42790
42989
|
|
|
42791
42990
|
/***/ 5795:
|
|
@@ -42794,9 +42993,8 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
42794
42993
|
"use strict";
|
|
42795
42994
|
|
|
42796
42995
|
|
|
42797
|
-
|
|
42798
|
-
|
|
42799
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
42996
|
+
/** @type {import('.')} */
|
|
42997
|
+
var $gOPD = __webpack_require__(6549);
|
|
42800
42998
|
|
|
42801
42999
|
if ($gOPD) {
|
|
42802
43000
|
try {
|
|
@@ -42840,29 +43038,6 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
42840
43038
|
module.exports = hasPropertyDescriptors;
|
|
42841
43039
|
|
|
42842
43040
|
|
|
42843
|
-
/***/ }),
|
|
42844
|
-
|
|
42845
|
-
/***/ 24:
|
|
42846
|
-
/***/ ((module) => {
|
|
42847
|
-
|
|
42848
|
-
"use strict";
|
|
42849
|
-
|
|
42850
|
-
|
|
42851
|
-
var test = {
|
|
42852
|
-
__proto__: null,
|
|
42853
|
-
foo: {}
|
|
42854
|
-
};
|
|
42855
|
-
|
|
42856
|
-
var $Object = Object;
|
|
42857
|
-
|
|
42858
|
-
/** @type {import('.')} */
|
|
42859
|
-
module.exports = function hasProto() {
|
|
42860
|
-
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
42861
|
-
return { __proto__: test }.foo === test.foo
|
|
42862
|
-
&& !(test instanceof $Object);
|
|
42863
|
-
};
|
|
42864
|
-
|
|
42865
|
-
|
|
42866
43041
|
/***/ }),
|
|
42867
43042
|
|
|
42868
43043
|
/***/ 4039:
|
|
@@ -42874,6 +43049,7 @@ module.exports = function hasProto() {
|
|
|
42874
43049
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
42875
43050
|
var hasSymbolSham = __webpack_require__(1333);
|
|
42876
43051
|
|
|
43052
|
+
/** @type {import('.')} */
|
|
42877
43053
|
module.exports = function hasNativeSymbols() {
|
|
42878
43054
|
if (typeof origSymbol !== 'function') { return false; }
|
|
42879
43055
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -42892,11 +43068,13 @@ module.exports = function hasNativeSymbols() {
|
|
|
42892
43068
|
"use strict";
|
|
42893
43069
|
|
|
42894
43070
|
|
|
43071
|
+
/** @type {import('./shams')} */
|
|
42895
43072
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
42896
43073
|
module.exports = function hasSymbols() {
|
|
42897
43074
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
42898
43075
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
42899
43076
|
|
|
43077
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
42900
43078
|
var obj = {};
|
|
42901
43079
|
var sym = Symbol('test');
|
|
42902
43080
|
var symObj = Object(sym);
|
|
@@ -42915,7 +43093,7 @@ module.exports = function hasSymbols() {
|
|
|
42915
43093
|
|
|
42916
43094
|
var symVal = 42;
|
|
42917
43095
|
obj[sym] = symVal;
|
|
42918
|
-
for (
|
|
43096
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
42919
43097
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
42920
43098
|
|
|
42921
43099
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -42926,7 +43104,8 @@ module.exports = function hasSymbols() {
|
|
|
42926
43104
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
42927
43105
|
|
|
42928
43106
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
42929
|
-
|
|
43107
|
+
// eslint-disable-next-line no-extra-parens
|
|
43108
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
42930
43109
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
42931
43110
|
}
|
|
42932
43111
|
|
|
@@ -43139,35 +43318,46 @@ if (typeof Object.create === 'function') {
|
|
|
43139
43318
|
|
|
43140
43319
|
|
|
43141
43320
|
var hasToStringTag = __webpack_require__(9092)();
|
|
43142
|
-
var callBound = __webpack_require__(
|
|
43321
|
+
var callBound = __webpack_require__(6556);
|
|
43143
43322
|
|
|
43144
43323
|
var $toString = callBound('Object.prototype.toString');
|
|
43145
43324
|
|
|
43325
|
+
/** @type {import('.')} */
|
|
43146
43326
|
var isStandardArguments = function isArguments(value) {
|
|
43147
|
-
if (
|
|
43327
|
+
if (
|
|
43328
|
+
hasToStringTag
|
|
43329
|
+
&& value
|
|
43330
|
+
&& typeof value === 'object'
|
|
43331
|
+
&& Symbol.toStringTag in value
|
|
43332
|
+
) {
|
|
43148
43333
|
return false;
|
|
43149
43334
|
}
|
|
43150
43335
|
return $toString(value) === '[object Arguments]';
|
|
43151
43336
|
};
|
|
43152
43337
|
|
|
43338
|
+
/** @type {import('.')} */
|
|
43153
43339
|
var isLegacyArguments = function isArguments(value) {
|
|
43154
43340
|
if (isStandardArguments(value)) {
|
|
43155
43341
|
return true;
|
|
43156
43342
|
}
|
|
43157
|
-
return value !== null
|
|
43158
|
-
typeof value === 'object'
|
|
43159
|
-
|
|
43160
|
-
value.length
|
|
43161
|
-
|
|
43162
|
-
$toString(value
|
|
43343
|
+
return value !== null
|
|
43344
|
+
&& typeof value === 'object'
|
|
43345
|
+
&& 'length' in value
|
|
43346
|
+
&& typeof value.length === 'number'
|
|
43347
|
+
&& value.length >= 0
|
|
43348
|
+
&& $toString(value) !== '[object Array]'
|
|
43349
|
+
&& 'callee' in value
|
|
43350
|
+
&& $toString(value.callee) === '[object Function]';
|
|
43163
43351
|
};
|
|
43164
43352
|
|
|
43165
43353
|
var supportsStandardArguments = (function () {
|
|
43166
43354
|
return isStandardArguments(arguments);
|
|
43167
43355
|
}());
|
|
43168
43356
|
|
|
43357
|
+
// @ts-expect-error TODO make this not error
|
|
43169
43358
|
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
43170
43359
|
|
|
43360
|
+
/** @type {import('.')} */
|
|
43171
43361
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
43172
43362
|
|
|
43173
43363
|
|
|
@@ -43342,6 +43532,66 @@ module.exports = function isTypedArray(value) {
|
|
|
43342
43532
|
};
|
|
43343
43533
|
|
|
43344
43534
|
|
|
43535
|
+
/***/ }),
|
|
43536
|
+
|
|
43537
|
+
/***/ 1514:
|
|
43538
|
+
/***/ ((module) => {
|
|
43539
|
+
|
|
43540
|
+
"use strict";
|
|
43541
|
+
|
|
43542
|
+
|
|
43543
|
+
/** @type {import('./abs')} */
|
|
43544
|
+
module.exports = Math.abs;
|
|
43545
|
+
|
|
43546
|
+
|
|
43547
|
+
/***/ }),
|
|
43548
|
+
|
|
43549
|
+
/***/ 8968:
|
|
43550
|
+
/***/ ((module) => {
|
|
43551
|
+
|
|
43552
|
+
"use strict";
|
|
43553
|
+
|
|
43554
|
+
|
|
43555
|
+
/** @type {import('./abs')} */
|
|
43556
|
+
module.exports = Math.floor;
|
|
43557
|
+
|
|
43558
|
+
|
|
43559
|
+
/***/ }),
|
|
43560
|
+
|
|
43561
|
+
/***/ 6188:
|
|
43562
|
+
/***/ ((module) => {
|
|
43563
|
+
|
|
43564
|
+
"use strict";
|
|
43565
|
+
|
|
43566
|
+
|
|
43567
|
+
/** @type {import('./max')} */
|
|
43568
|
+
module.exports = Math.max;
|
|
43569
|
+
|
|
43570
|
+
|
|
43571
|
+
/***/ }),
|
|
43572
|
+
|
|
43573
|
+
/***/ 8002:
|
|
43574
|
+
/***/ ((module) => {
|
|
43575
|
+
|
|
43576
|
+
"use strict";
|
|
43577
|
+
|
|
43578
|
+
|
|
43579
|
+
/** @type {import('./min')} */
|
|
43580
|
+
module.exports = Math.min;
|
|
43581
|
+
|
|
43582
|
+
|
|
43583
|
+
/***/ }),
|
|
43584
|
+
|
|
43585
|
+
/***/ 5880:
|
|
43586
|
+
/***/ ((module) => {
|
|
43587
|
+
|
|
43588
|
+
"use strict";
|
|
43589
|
+
|
|
43590
|
+
|
|
43591
|
+
/** @type {import('./pow')} */
|
|
43592
|
+
module.exports = Math.pow;
|
|
43593
|
+
|
|
43594
|
+
|
|
43345
43595
|
/***/ }),
|
|
43346
43596
|
|
|
43347
43597
|
/***/ 8859:
|
|
@@ -44058,7 +44308,8 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
44058
44308
|
var bracketEqualsPos = part.indexOf(']=');
|
|
44059
44309
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
44060
44310
|
|
|
44061
|
-
var key
|
|
44311
|
+
var key;
|
|
44312
|
+
var val;
|
|
44062
44313
|
if (pos === -1) {
|
|
44063
44314
|
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
44064
44315
|
val = options.strictNullHandling ? null : '';
|
|
@@ -44073,7 +44324,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
44073
44324
|
}
|
|
44074
44325
|
|
|
44075
44326
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
44076
|
-
val = interpretNumericEntities(val);
|
|
44327
|
+
val = interpretNumericEntities(String(val));
|
|
44077
44328
|
}
|
|
44078
44329
|
|
|
44079
44330
|
if (part.indexOf('[]=') > -1) {
|
|
@@ -44103,7 +44354,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
44103
44354
|
? []
|
|
44104
44355
|
: [].concat(leaf);
|
|
44105
44356
|
} else {
|
|
44106
|
-
obj = options.plainObjects ?
|
|
44357
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
44107
44358
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
44108
44359
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
44109
44360
|
var index = parseInt(decodedRoot, 10);
|
|
@@ -44245,11 +44496,11 @@ module.exports = function (str, opts) {
|
|
|
44245
44496
|
var options = normalizeParseOptions(opts);
|
|
44246
44497
|
|
|
44247
44498
|
if (str === '' || str === null || typeof str === 'undefined') {
|
|
44248
|
-
return options.plainObjects ?
|
|
44499
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
44249
44500
|
}
|
|
44250
44501
|
|
|
44251
44502
|
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
44252
|
-
var obj = options.plainObjects ?
|
|
44503
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
44253
44504
|
|
|
44254
44505
|
// Iterate over the keys and setup the new object
|
|
44255
44506
|
|
|
@@ -44310,11 +44561,13 @@ var defaults = {
|
|
|
44310
44561
|
arrayFormat: 'indices',
|
|
44311
44562
|
charset: 'utf-8',
|
|
44312
44563
|
charsetSentinel: false,
|
|
44564
|
+
commaRoundTrip: false,
|
|
44313
44565
|
delimiter: '&',
|
|
44314
44566
|
encode: true,
|
|
44315
44567
|
encodeDotInKeys: false,
|
|
44316
44568
|
encoder: utils.encode,
|
|
44317
44569
|
encodeValuesOnly: false,
|
|
44570
|
+
filter: void undefined,
|
|
44318
44571
|
format: defaultFormat,
|
|
44319
44572
|
formatter: formats.formatters[defaultFormat],
|
|
44320
44573
|
// deprecated
|
|
@@ -44426,7 +44679,7 @@ var stringify = function stringify(
|
|
|
44426
44679
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
44427
44680
|
}
|
|
44428
44681
|
|
|
44429
|
-
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
|
|
44682
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
|
|
44430
44683
|
|
|
44431
44684
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
44432
44685
|
|
|
@@ -44436,13 +44689,15 @@ var stringify = function stringify(
|
|
|
44436
44689
|
|
|
44437
44690
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
44438
44691
|
var key = objKeys[j];
|
|
44439
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined'
|
|
44692
|
+
var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
|
|
44693
|
+
? key.value
|
|
44694
|
+
: obj[key];
|
|
44440
44695
|
|
|
44441
44696
|
if (skipNulls && value === null) {
|
|
44442
44697
|
continue;
|
|
44443
44698
|
}
|
|
44444
44699
|
|
|
44445
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
44700
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
44446
44701
|
var keyPrefix = isArray(obj)
|
|
44447
44702
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
44448
44703
|
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
@@ -44533,7 +44788,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
44533
44788
|
arrayFormat: arrayFormat,
|
|
44534
44789
|
charset: charset,
|
|
44535
44790
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
44536
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
44791
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
44537
44792
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
44538
44793
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
44539
44794
|
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
@@ -44584,12 +44839,13 @@ module.exports = function (object, opts) {
|
|
|
44584
44839
|
var sideChannel = getSideChannel();
|
|
44585
44840
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
44586
44841
|
var key = objKeys[i];
|
|
44842
|
+
var value = obj[key];
|
|
44587
44843
|
|
|
44588
|
-
if (options.skipNulls &&
|
|
44844
|
+
if (options.skipNulls && value === null) {
|
|
44589
44845
|
continue;
|
|
44590
44846
|
}
|
|
44591
44847
|
pushToArray(keys, stringify(
|
|
44592
|
-
|
|
44848
|
+
value,
|
|
44593
44849
|
key,
|
|
44594
44850
|
generateArrayPrefix,
|
|
44595
44851
|
commaRoundTrip,
|
|
@@ -44669,7 +44925,7 @@ var compactQueue = function compactQueue(queue) {
|
|
|
44669
44925
|
};
|
|
44670
44926
|
|
|
44671
44927
|
var arrayToObject = function arrayToObject(source, options) {
|
|
44672
|
-
var obj = options && options.plainObjects ?
|
|
44928
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
44673
44929
|
for (var i = 0; i < source.length; ++i) {
|
|
44674
44930
|
if (typeof source[i] !== 'undefined') {
|
|
44675
44931
|
obj[i] = source[i];
|
|
@@ -44685,11 +44941,14 @@ var merge = function merge(target, source, options) {
|
|
|
44685
44941
|
return target;
|
|
44686
44942
|
}
|
|
44687
44943
|
|
|
44688
|
-
if (typeof source !== 'object') {
|
|
44944
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
44689
44945
|
if (isArray(target)) {
|
|
44690
44946
|
target.push(source);
|
|
44691
44947
|
} else if (target && typeof target === 'object') {
|
|
44692
|
-
if (
|
|
44948
|
+
if (
|
|
44949
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
44950
|
+
|| !has.call(Object.prototype, source)
|
|
44951
|
+
) {
|
|
44693
44952
|
target[source] = true;
|
|
44694
44953
|
}
|
|
44695
44954
|
} else {
|
|
@@ -44743,7 +45002,7 @@ var assign = function assignSingleSource(target, source) {
|
|
|
44743
45002
|
}, target);
|
|
44744
45003
|
};
|
|
44745
45004
|
|
|
44746
|
-
var decode = function (str,
|
|
45005
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
44747
45006
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
44748
45007
|
if (charset === 'iso-8859-1') {
|
|
44749
45008
|
// unescape never throws, no try...catch needed:
|
|
@@ -48852,137 +49111,340 @@ module.exports = Sha512
|
|
|
48852
49111
|
|
|
48853
49112
|
/***/ }),
|
|
48854
49113
|
|
|
48855
|
-
/***/
|
|
49114
|
+
/***/ 4803:
|
|
48856
49115
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
48857
49116
|
|
|
48858
49117
|
"use strict";
|
|
48859
49118
|
|
|
48860
49119
|
|
|
48861
|
-
var GetIntrinsic = __webpack_require__(453);
|
|
48862
|
-
var callBound = __webpack_require__(8075);
|
|
48863
49120
|
var inspect = __webpack_require__(8859);
|
|
48864
49121
|
|
|
48865
49122
|
var $TypeError = __webpack_require__(9675);
|
|
48866
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
48867
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
48868
|
-
|
|
48869
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
48870
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
48871
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
48872
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
48873
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
48874
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
48875
49123
|
|
|
48876
49124
|
/*
|
|
48877
49125
|
* This function traverses the list returning the node corresponding to the given key.
|
|
48878
49126
|
*
|
|
48879
|
-
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
49127
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
49128
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
48880
49129
|
*/
|
|
48881
|
-
/** @type {import('.').listGetNode} */
|
|
48882
|
-
|
|
49130
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
49131
|
+
// eslint-disable-next-line consistent-return
|
|
49132
|
+
var listGetNode = function (list, key, isDelete) {
|
|
48883
49133
|
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
48884
49134
|
var prev = list;
|
|
48885
49135
|
/** @type {(typeof list)['next']} */
|
|
48886
49136
|
var curr;
|
|
48887
|
-
|
|
49137
|
+
// eslint-disable-next-line eqeqeq
|
|
49138
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
48888
49139
|
if (curr.key === key) {
|
|
48889
49140
|
prev.next = curr.next;
|
|
48890
|
-
|
|
48891
|
-
|
|
48892
|
-
|
|
49141
|
+
if (!isDelete) {
|
|
49142
|
+
// eslint-disable-next-line no-extra-parens
|
|
49143
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
49144
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
49145
|
+
}
|
|
48893
49146
|
return curr;
|
|
48894
49147
|
}
|
|
48895
49148
|
}
|
|
48896
49149
|
};
|
|
48897
49150
|
|
|
48898
|
-
/** @type {import('.').listGet} */
|
|
49151
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
48899
49152
|
var listGet = function (objects, key) {
|
|
49153
|
+
if (!objects) {
|
|
49154
|
+
return void undefined;
|
|
49155
|
+
}
|
|
48900
49156
|
var node = listGetNode(objects, key);
|
|
48901
49157
|
return node && node.value;
|
|
48902
49158
|
};
|
|
48903
|
-
/** @type {import('.').listSet} */
|
|
49159
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
48904
49160
|
var listSet = function (objects, key, value) {
|
|
48905
49161
|
var node = listGetNode(objects, key);
|
|
48906
49162
|
if (node) {
|
|
48907
49163
|
node.value = value;
|
|
48908
49164
|
} else {
|
|
48909
49165
|
// Prepend the new node to the beginning of the list
|
|
48910
|
-
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
49166
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
48911
49167
|
key: key,
|
|
48912
49168
|
next: objects.next,
|
|
48913
49169
|
value: value
|
|
48914
49170
|
});
|
|
48915
49171
|
}
|
|
48916
49172
|
};
|
|
48917
|
-
/** @type {import('.').listHas} */
|
|
49173
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
48918
49174
|
var listHas = function (objects, key) {
|
|
49175
|
+
if (!objects) {
|
|
49176
|
+
return false;
|
|
49177
|
+
}
|
|
48919
49178
|
return !!listGetNode(objects, key);
|
|
48920
49179
|
};
|
|
49180
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
49181
|
+
// eslint-disable-next-line consistent-return
|
|
49182
|
+
var listDelete = function (objects, key) {
|
|
49183
|
+
if (objects) {
|
|
49184
|
+
return listGetNode(objects, key, true);
|
|
49185
|
+
}
|
|
49186
|
+
};
|
|
48921
49187
|
|
|
48922
49188
|
/** @type {import('.')} */
|
|
48923
|
-
module.exports = function
|
|
48924
|
-
/** @
|
|
48925
|
-
/** @
|
|
48926
|
-
/** @
|
|
49189
|
+
module.exports = function getSideChannelList() {
|
|
49190
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
49191
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
49192
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
48927
49193
|
|
|
48928
|
-
/** @type {import('.').
|
|
49194
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
49195
|
+
|
|
49196
|
+
/** @type {Channel} */
|
|
48929
49197
|
var channel = {
|
|
48930
49198
|
assert: function (key) {
|
|
48931
49199
|
if (!channel.has(key)) {
|
|
48932
49200
|
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
48933
49201
|
}
|
|
48934
49202
|
},
|
|
48935
|
-
|
|
48936
|
-
|
|
48937
|
-
|
|
48938
|
-
|
|
48939
|
-
|
|
48940
|
-
} else if ($Map) {
|
|
48941
|
-
if ($m) {
|
|
48942
|
-
return $mapGet($m, key);
|
|
48943
|
-
}
|
|
48944
|
-
} else {
|
|
48945
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
48946
|
-
return listGet($o, key);
|
|
48947
|
-
}
|
|
49203
|
+
'delete': function (key) {
|
|
49204
|
+
var root = $o && $o.next;
|
|
49205
|
+
var deletedNode = listDelete($o, key);
|
|
49206
|
+
if (deletedNode && root && root === deletedNode) {
|
|
49207
|
+
$o = void undefined;
|
|
48948
49208
|
}
|
|
49209
|
+
return !!deletedNode;
|
|
49210
|
+
},
|
|
49211
|
+
get: function (key) {
|
|
49212
|
+
return listGet($o, key);
|
|
48949
49213
|
},
|
|
48950
49214
|
has: function (key) {
|
|
48951
|
-
|
|
48952
|
-
|
|
48953
|
-
|
|
48954
|
-
|
|
48955
|
-
|
|
48956
|
-
|
|
48957
|
-
|
|
48958
|
-
}
|
|
48959
|
-
}
|
|
48960
|
-
|
|
48961
|
-
|
|
49215
|
+
return listHas($o, key);
|
|
49216
|
+
},
|
|
49217
|
+
set: function (key, value) {
|
|
49218
|
+
if (!$o) {
|
|
49219
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
49220
|
+
$o = {
|
|
49221
|
+
next: void undefined
|
|
49222
|
+
};
|
|
49223
|
+
}
|
|
49224
|
+
// eslint-disable-next-line no-extra-parens
|
|
49225
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
49226
|
+
}
|
|
49227
|
+
};
|
|
49228
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
49229
|
+
return channel;
|
|
49230
|
+
};
|
|
49231
|
+
|
|
49232
|
+
|
|
49233
|
+
/***/ }),
|
|
49234
|
+
|
|
49235
|
+
/***/ 507:
|
|
49236
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49237
|
+
|
|
49238
|
+
"use strict";
|
|
49239
|
+
|
|
49240
|
+
|
|
49241
|
+
var GetIntrinsic = __webpack_require__(453);
|
|
49242
|
+
var callBound = __webpack_require__(6556);
|
|
49243
|
+
var inspect = __webpack_require__(8859);
|
|
49244
|
+
|
|
49245
|
+
var $TypeError = __webpack_require__(9675);
|
|
49246
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
49247
|
+
|
|
49248
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
49249
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
49250
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
49251
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
49252
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
49253
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
49254
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
49255
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
49256
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
49257
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
49258
|
+
|
|
49259
|
+
/** @type {import('.')} */
|
|
49260
|
+
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
49261
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
49262
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
49263
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
49264
|
+
|
|
49265
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
49266
|
+
|
|
49267
|
+
/** @type {Channel} */
|
|
49268
|
+
var channel = {
|
|
49269
|
+
assert: function (key) {
|
|
49270
|
+
if (!channel.has(key)) {
|
|
49271
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
49272
|
+
}
|
|
49273
|
+
},
|
|
49274
|
+
'delete': function (key) {
|
|
49275
|
+
if ($m) {
|
|
49276
|
+
var result = $mapDelete($m, key);
|
|
49277
|
+
if ($mapSize($m) === 0) {
|
|
49278
|
+
$m = void undefined;
|
|
48962
49279
|
}
|
|
49280
|
+
return result;
|
|
49281
|
+
}
|
|
49282
|
+
return false;
|
|
49283
|
+
},
|
|
49284
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
49285
|
+
if ($m) {
|
|
49286
|
+
return $mapGet($m, key);
|
|
49287
|
+
}
|
|
49288
|
+
},
|
|
49289
|
+
has: function (key) {
|
|
49290
|
+
if ($m) {
|
|
49291
|
+
return $mapHas($m, key);
|
|
48963
49292
|
}
|
|
48964
49293
|
return false;
|
|
48965
49294
|
},
|
|
48966
49295
|
set: function (key, value) {
|
|
48967
|
-
if (
|
|
48968
|
-
|
|
48969
|
-
|
|
49296
|
+
if (!$m) {
|
|
49297
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
49298
|
+
$m = new $Map();
|
|
49299
|
+
}
|
|
49300
|
+
$mapSet($m, key, value);
|
|
49301
|
+
}
|
|
49302
|
+
};
|
|
49303
|
+
|
|
49304
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
49305
|
+
return channel;
|
|
49306
|
+
};
|
|
49307
|
+
|
|
49308
|
+
|
|
49309
|
+
/***/ }),
|
|
49310
|
+
|
|
49311
|
+
/***/ 2271:
|
|
49312
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49313
|
+
|
|
49314
|
+
"use strict";
|
|
49315
|
+
|
|
49316
|
+
|
|
49317
|
+
var GetIntrinsic = __webpack_require__(453);
|
|
49318
|
+
var callBound = __webpack_require__(6556);
|
|
49319
|
+
var inspect = __webpack_require__(8859);
|
|
49320
|
+
var getSideChannelMap = __webpack_require__(507);
|
|
49321
|
+
|
|
49322
|
+
var $TypeError = __webpack_require__(9675);
|
|
49323
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
49324
|
+
|
|
49325
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
49326
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
49327
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
49328
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
49329
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
49330
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
49331
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
49332
|
+
var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
|
|
49333
|
+
|
|
49334
|
+
/** @type {import('.')} */
|
|
49335
|
+
module.exports = $WeakMap
|
|
49336
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
49337
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
49338
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
49339
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
49340
|
+
|
|
49341
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
49342
|
+
/** @type {Channel | undefined} */ var $m;
|
|
49343
|
+
|
|
49344
|
+
/** @type {Channel} */
|
|
49345
|
+
var channel = {
|
|
49346
|
+
assert: function (key) {
|
|
49347
|
+
if (!channel.has(key)) {
|
|
49348
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
48970
49349
|
}
|
|
48971
|
-
|
|
48972
|
-
|
|
48973
|
-
if (
|
|
48974
|
-
|
|
49350
|
+
},
|
|
49351
|
+
'delete': function (key) {
|
|
49352
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
49353
|
+
if ($wm) {
|
|
49354
|
+
return $weakMapDelete($wm, key);
|
|
49355
|
+
}
|
|
49356
|
+
} else if (getSideChannelMap) {
|
|
49357
|
+
if ($m) {
|
|
49358
|
+
return $m['delete'](key);
|
|
49359
|
+
}
|
|
48975
49360
|
}
|
|
48976
|
-
|
|
48977
|
-
}
|
|
48978
|
-
|
|
48979
|
-
|
|
48980
|
-
$
|
|
49361
|
+
return false;
|
|
49362
|
+
},
|
|
49363
|
+
get: function (key) {
|
|
49364
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
49365
|
+
if ($wm) {
|
|
49366
|
+
return $weakMapGet($wm, key);
|
|
49367
|
+
}
|
|
49368
|
+
}
|
|
49369
|
+
return $m && $m.get(key);
|
|
49370
|
+
},
|
|
49371
|
+
has: function (key) {
|
|
49372
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
49373
|
+
if ($wm) {
|
|
49374
|
+
return $weakMapHas($wm, key);
|
|
49375
|
+
}
|
|
49376
|
+
}
|
|
49377
|
+
return !!$m && $m.has(key);
|
|
49378
|
+
},
|
|
49379
|
+
set: function (key, value) {
|
|
49380
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
49381
|
+
if (!$wm) {
|
|
49382
|
+
$wm = new $WeakMap();
|
|
49383
|
+
}
|
|
49384
|
+
$weakMapSet($wm, key, value);
|
|
49385
|
+
} else if (getSideChannelMap) {
|
|
49386
|
+
if (!$m) {
|
|
49387
|
+
$m = getSideChannelMap();
|
|
49388
|
+
}
|
|
49389
|
+
// eslint-disable-next-line no-extra-parens
|
|
49390
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
48981
49391
|
}
|
|
48982
|
-
listSet($o, key, value);
|
|
48983
49392
|
}
|
|
49393
|
+
};
|
|
49394
|
+
|
|
49395
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
49396
|
+
return channel;
|
|
49397
|
+
}
|
|
49398
|
+
: getSideChannelMap;
|
|
49399
|
+
|
|
49400
|
+
|
|
49401
|
+
/***/ }),
|
|
49402
|
+
|
|
49403
|
+
/***/ 920:
|
|
49404
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
49405
|
+
|
|
49406
|
+
"use strict";
|
|
49407
|
+
|
|
49408
|
+
|
|
49409
|
+
var $TypeError = __webpack_require__(9675);
|
|
49410
|
+
var inspect = __webpack_require__(8859);
|
|
49411
|
+
var getSideChannelList = __webpack_require__(4803);
|
|
49412
|
+
var getSideChannelMap = __webpack_require__(507);
|
|
49413
|
+
var getSideChannelWeakMap = __webpack_require__(2271);
|
|
49414
|
+
|
|
49415
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
49416
|
+
|
|
49417
|
+
/** @type {import('.')} */
|
|
49418
|
+
module.exports = function getSideChannel() {
|
|
49419
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
49420
|
+
|
|
49421
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
49422
|
+
|
|
49423
|
+
/** @type {Channel} */
|
|
49424
|
+
var channel = {
|
|
49425
|
+
assert: function (key) {
|
|
49426
|
+
if (!channel.has(key)) {
|
|
49427
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
49428
|
+
}
|
|
49429
|
+
},
|
|
49430
|
+
'delete': function (key) {
|
|
49431
|
+
return !!$channelData && $channelData['delete'](key);
|
|
49432
|
+
},
|
|
49433
|
+
get: function (key) {
|
|
49434
|
+
return $channelData && $channelData.get(key);
|
|
49435
|
+
},
|
|
49436
|
+
has: function (key) {
|
|
49437
|
+
return !!$channelData && $channelData.has(key);
|
|
49438
|
+
},
|
|
49439
|
+
set: function (key, value) {
|
|
49440
|
+
if (!$channelData) {
|
|
49441
|
+
$channelData = makeChannel();
|
|
49442
|
+
}
|
|
49443
|
+
|
|
49444
|
+
$channelData.set(key, value);
|
|
48984
49445
|
}
|
|
48985
49446
|
};
|
|
49447
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
48986
49448
|
return channel;
|
|
48987
49449
|
};
|
|
48988
49450
|
|