@blockchyp/blockchyp-ts 2.21.0 → 2.21.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/_bundles/blockchyp.js
CHANGED
|
@@ -3486,16 +3486,16 @@ function fromByteArray (uint8) {
|
|
|
3486
3486
|
var w = this.words[i];
|
|
3487
3487
|
var word = (((w << off) | carry) & 0xffffff).toString(16);
|
|
3488
3488
|
carry = (w >>> (24 - off)) & 0xffffff;
|
|
3489
|
-
if (carry !== 0 || i !== this.length - 1) {
|
|
3490
|
-
out = zeros[6 - word.length] + word + out;
|
|
3491
|
-
} else {
|
|
3492
|
-
out = word + out;
|
|
3493
|
-
}
|
|
3494
3489
|
off += 2;
|
|
3495
3490
|
if (off >= 26) {
|
|
3496
3491
|
off -= 26;
|
|
3497
3492
|
i--;
|
|
3498
3493
|
}
|
|
3494
|
+
if (carry !== 0 || i !== this.length - 1) {
|
|
3495
|
+
out = zeros[6 - word.length] + word + out;
|
|
3496
|
+
} else {
|
|
3497
|
+
out = word + out;
|
|
3498
|
+
}
|
|
3499
3499
|
}
|
|
3500
3500
|
if (carry !== 0) {
|
|
3501
3501
|
out = carry.toString(16) + out;
|
|
@@ -4955,6 +4955,7 @@ function fromByteArray (uint8) {
|
|
|
4955
4955
|
this.words[i] = carry;
|
|
4956
4956
|
this.length++;
|
|
4957
4957
|
}
|
|
4958
|
+
this.length = num === 0 ? 1 : this.length;
|
|
4958
4959
|
|
|
4959
4960
|
return this;
|
|
4960
4961
|
};
|
|
@@ -17954,101 +17955,107 @@ module.exports = Hmac
|
|
|
17954
17955
|
"use strict";
|
|
17955
17956
|
|
|
17956
17957
|
|
|
17957
|
-
|
|
17958
|
-
exports.
|
|
17959
|
-
|
|
17958
|
+
// eslint-disable-next-line no-multi-assign
|
|
17959
|
+
exports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = __webpack_require__(3209);
|
|
17960
|
+
|
|
17961
|
+
// eslint-disable-next-line no-multi-assign
|
|
17962
|
+
exports.createHash = exports.Hash = __webpack_require__(7108);
|
|
17963
|
+
|
|
17964
|
+
// eslint-disable-next-line no-multi-assign
|
|
17965
|
+
exports.createHmac = exports.Hmac = __webpack_require__(3507);
|
|
17966
|
+
|
|
17967
|
+
var algos = __webpack_require__(5715);
|
|
17968
|
+
var algoKeys = Object.keys(algos);
|
|
17969
|
+
var hashes = [
|
|
17970
|
+
'sha1',
|
|
17971
|
+
'sha224',
|
|
17972
|
+
'sha256',
|
|
17973
|
+
'sha384',
|
|
17974
|
+
'sha512',
|
|
17975
|
+
'md5',
|
|
17976
|
+
'rmd160'
|
|
17977
|
+
].concat(algoKeys);
|
|
17960
17978
|
|
|
17961
|
-
var algos = __webpack_require__(5715)
|
|
17962
|
-
var algoKeys = Object.keys(algos)
|
|
17963
|
-
var hashes = ['sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'md5', 'rmd160'].concat(algoKeys)
|
|
17964
17979
|
exports.getHashes = function () {
|
|
17965
|
-
|
|
17966
|
-
}
|
|
17980
|
+
return hashes;
|
|
17981
|
+
};
|
|
17967
17982
|
|
|
17968
|
-
var p = __webpack_require__(8396)
|
|
17969
|
-
exports.pbkdf2 = p.pbkdf2
|
|
17970
|
-
exports.pbkdf2Sync = p.pbkdf2Sync
|
|
17983
|
+
var p = __webpack_require__(8396);
|
|
17984
|
+
exports.pbkdf2 = p.pbkdf2;
|
|
17985
|
+
exports.pbkdf2Sync = p.pbkdf2Sync;
|
|
17971
17986
|
|
|
17972
|
-
var aes = __webpack_require__(125)
|
|
17987
|
+
var aes = __webpack_require__(125);
|
|
17973
17988
|
|
|
17974
|
-
exports.Cipher = aes.Cipher
|
|
17975
|
-
exports.createCipher = aes.createCipher
|
|
17976
|
-
exports.Cipheriv = aes.Cipheriv
|
|
17977
|
-
exports.createCipheriv = aes.createCipheriv
|
|
17978
|
-
exports.Decipher = aes.Decipher
|
|
17979
|
-
exports.createDecipher = aes.createDecipher
|
|
17980
|
-
exports.Decipheriv = aes.Decipheriv
|
|
17981
|
-
exports.createDecipheriv = aes.createDecipheriv
|
|
17982
|
-
exports.getCiphers = aes.getCiphers
|
|
17983
|
-
exports.listCiphers = aes.listCiphers
|
|
17989
|
+
exports.Cipher = aes.Cipher;
|
|
17990
|
+
exports.createCipher = aes.createCipher;
|
|
17991
|
+
exports.Cipheriv = aes.Cipheriv;
|
|
17992
|
+
exports.createCipheriv = aes.createCipheriv;
|
|
17993
|
+
exports.Decipher = aes.Decipher;
|
|
17994
|
+
exports.createDecipher = aes.createDecipher;
|
|
17995
|
+
exports.Decipheriv = aes.Decipheriv;
|
|
17996
|
+
exports.createDecipheriv = aes.createDecipheriv;
|
|
17997
|
+
exports.getCiphers = aes.getCiphers;
|
|
17998
|
+
exports.listCiphers = aes.listCiphers;
|
|
17984
17999
|
|
|
17985
|
-
var dh = __webpack_require__(5380)
|
|
18000
|
+
var dh = __webpack_require__(5380);
|
|
17986
18001
|
|
|
17987
|
-
exports.DiffieHellmanGroup = dh.DiffieHellmanGroup
|
|
17988
|
-
exports.createDiffieHellmanGroup = dh.createDiffieHellmanGroup
|
|
17989
|
-
exports.getDiffieHellman = dh.getDiffieHellman
|
|
17990
|
-
exports.createDiffieHellman = dh.createDiffieHellman
|
|
17991
|
-
exports.DiffieHellman = dh.DiffieHellman
|
|
18002
|
+
exports.DiffieHellmanGroup = dh.DiffieHellmanGroup;
|
|
18003
|
+
exports.createDiffieHellmanGroup = dh.createDiffieHellmanGroup;
|
|
18004
|
+
exports.getDiffieHellman = dh.getDiffieHellman;
|
|
18005
|
+
exports.createDiffieHellman = dh.createDiffieHellman;
|
|
18006
|
+
exports.DiffieHellman = dh.DiffieHellman;
|
|
17992
18007
|
|
|
17993
|
-
var sign = __webpack_require__(20)
|
|
18008
|
+
var sign = __webpack_require__(20);
|
|
17994
18009
|
|
|
17995
|
-
exports.createSign = sign.createSign
|
|
17996
|
-
exports.Sign = sign.Sign
|
|
17997
|
-
exports.createVerify = sign.createVerify
|
|
17998
|
-
exports.Verify = sign.Verify
|
|
18010
|
+
exports.createSign = sign.createSign;
|
|
18011
|
+
exports.Sign = sign.Sign;
|
|
18012
|
+
exports.createVerify = sign.createVerify;
|
|
18013
|
+
exports.Verify = sign.Verify;
|
|
17999
18014
|
|
|
18000
|
-
exports.createECDH = __webpack_require__(1324)
|
|
18015
|
+
exports.createECDH = __webpack_require__(1324);
|
|
18001
18016
|
|
|
18002
|
-
var publicEncrypt = __webpack_require__(7168)
|
|
18017
|
+
var publicEncrypt = __webpack_require__(7168);
|
|
18003
18018
|
|
|
18004
|
-
exports.publicEncrypt = publicEncrypt.publicEncrypt
|
|
18005
|
-
exports.privateEncrypt = publicEncrypt.privateEncrypt
|
|
18006
|
-
exports.publicDecrypt = publicEncrypt.publicDecrypt
|
|
18007
|
-
exports.privateDecrypt = publicEncrypt.privateDecrypt
|
|
18019
|
+
exports.publicEncrypt = publicEncrypt.publicEncrypt;
|
|
18020
|
+
exports.privateEncrypt = publicEncrypt.privateEncrypt;
|
|
18021
|
+
exports.publicDecrypt = publicEncrypt.publicDecrypt;
|
|
18022
|
+
exports.privateDecrypt = publicEncrypt.privateDecrypt;
|
|
18008
18023
|
|
|
18009
18024
|
// the least I can do is make error messages for the rest of the node.js/crypto api.
|
|
18010
|
-
//
|
|
18025
|
+
// [
|
|
18011
18026
|
// 'createCredentials'
|
|
18012
18027
|
// ].forEach(function (name) {
|
|
18013
18028
|
// exports[name] = function () {
|
|
18014
|
-
// throw new Error(
|
|
18015
|
-
//
|
|
18016
|
-
//
|
|
18017
|
-
// 'https://github.com/crypto-browserify/crypto-browserify'
|
|
18018
|
-
// ].join('\n'))
|
|
18019
|
-
// }
|
|
18020
|
-
// })
|
|
18029
|
+
// throw new Error('sorry, ' + name + ' is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify');
|
|
18030
|
+
// };
|
|
18031
|
+
// });
|
|
18021
18032
|
|
|
18022
|
-
var rf = __webpack_require__(6983)
|
|
18033
|
+
var rf = __webpack_require__(6983);
|
|
18023
18034
|
|
|
18024
|
-
exports.randomFill = rf.randomFill
|
|
18025
|
-
exports.randomFillSync = rf.randomFillSync
|
|
18035
|
+
exports.randomFill = rf.randomFill;
|
|
18036
|
+
exports.randomFillSync = rf.randomFillSync;
|
|
18026
18037
|
|
|
18027
18038
|
exports.createCredentials = function () {
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
'we accept pull requests',
|
|
18031
|
-
'https://github.com/crypto-browserify/crypto-browserify'
|
|
18032
|
-
].join('\n'))
|
|
18033
|
-
}
|
|
18039
|
+
throw new Error('sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/browserify/crypto-browserify');
|
|
18040
|
+
};
|
|
18034
18041
|
|
|
18035
18042
|
exports.constants = {
|
|
18036
|
-
|
|
18037
|
-
|
|
18038
|
-
|
|
18039
|
-
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
}
|
|
18043
|
+
DH_CHECK_P_NOT_SAFE_PRIME: 2,
|
|
18044
|
+
DH_CHECK_P_NOT_PRIME: 1,
|
|
18045
|
+
DH_UNABLE_TO_CHECK_GENERATOR: 4,
|
|
18046
|
+
DH_NOT_SUITABLE_GENERATOR: 8,
|
|
18047
|
+
NPN_ENABLED: 1,
|
|
18048
|
+
ALPN_ENABLED: 1,
|
|
18049
|
+
RSA_PKCS1_PADDING: 1,
|
|
18050
|
+
RSA_SSLV23_PADDING: 2,
|
|
18051
|
+
RSA_NO_PADDING: 3,
|
|
18052
|
+
RSA_PKCS1_OAEP_PADDING: 4,
|
|
18053
|
+
RSA_X931_PADDING: 5,
|
|
18054
|
+
RSA_PKCS1_PSS_PADDING: 6,
|
|
18055
|
+
POINT_CONVERSION_COMPRESSED: 2,
|
|
18056
|
+
POINT_CONVERSION_UNCOMPRESSED: 4,
|
|
18057
|
+
POINT_CONVERSION_HYBRID: 6
|
|
18058
|
+
};
|
|
18052
18059
|
|
|
18053
18060
|
|
|
18054
18061
|
/***/ }),
|
|
@@ -21406,8 +21413,27 @@ EC.prototype.genKeyPair = function genKeyPair(options) {
|
|
|
21406
21413
|
}
|
|
21407
21414
|
};
|
|
21408
21415
|
|
|
21409
|
-
EC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {
|
|
21410
|
-
var
|
|
21416
|
+
EC.prototype._truncateToN = function _truncateToN(msg, truncOnly, bitLength) {
|
|
21417
|
+
var byteLength;
|
|
21418
|
+
if (BN.isBN(msg) || typeof msg === 'number') {
|
|
21419
|
+
msg = new BN(msg, 16);
|
|
21420
|
+
byteLength = msg.byteLength();
|
|
21421
|
+
} else if (typeof msg === 'object') {
|
|
21422
|
+
// BN assumes an array-like input and asserts length
|
|
21423
|
+
byteLength = msg.length;
|
|
21424
|
+
msg = new BN(msg, 16);
|
|
21425
|
+
} else {
|
|
21426
|
+
// BN converts the value to string
|
|
21427
|
+
var str = msg.toString();
|
|
21428
|
+
// HEX encoding
|
|
21429
|
+
byteLength = (str.length + 1) >>> 1;
|
|
21430
|
+
msg = new BN(str, 16);
|
|
21431
|
+
}
|
|
21432
|
+
// Allow overriding
|
|
21433
|
+
if (typeof bitLength !== 'number') {
|
|
21434
|
+
bitLength = byteLength * 8;
|
|
21435
|
+
}
|
|
21436
|
+
var delta = bitLength - this.n.bitLength();
|
|
21411
21437
|
if (delta > 0)
|
|
21412
21438
|
msg = msg.ushrn(delta);
|
|
21413
21439
|
if (!truncOnly && msg.cmp(this.n) >= 0)
|
|
@@ -21424,8 +21450,18 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
|
|
|
21424
21450
|
if (!options)
|
|
21425
21451
|
options = {};
|
|
21426
21452
|
|
|
21453
|
+
if (typeof msg !== 'string' && typeof msg !== 'number' && !BN.isBN(msg)) {
|
|
21454
|
+
assert(typeof msg === 'object' && msg && typeof msg.length === 'number',
|
|
21455
|
+
'Expected message to be an array-like, a hex string, or a BN instance');
|
|
21456
|
+
assert((msg.length >>> 0) === msg.length); // non-negative 32-bit integer
|
|
21457
|
+
for (var i = 0; i < msg.length; i++) assert((msg[i] & 255) === msg[i]);
|
|
21458
|
+
}
|
|
21459
|
+
|
|
21427
21460
|
key = this.keyFromPrivate(key, enc);
|
|
21428
|
-
msg = this._truncateToN(
|
|
21461
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
21462
|
+
|
|
21463
|
+
// Would fail further checks, but let's make the error message clear
|
|
21464
|
+
assert(!msg.isNeg(), 'Can not sign a negative message');
|
|
21429
21465
|
|
|
21430
21466
|
// Zero-extend key to provide enough entropy
|
|
21431
21467
|
var bytes = this.n.byteLength();
|
|
@@ -21434,6 +21470,9 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
|
|
|
21434
21470
|
// Zero-extend nonce to have the same byte size as N
|
|
21435
21471
|
var nonce = msg.toArray('be', bytes);
|
|
21436
21472
|
|
|
21473
|
+
// Recheck nonce to be bijective to msg
|
|
21474
|
+
assert((new BN(nonce)).eq(msg), 'Can not sign message');
|
|
21475
|
+
|
|
21437
21476
|
// Instantiate Hmac_DRBG
|
|
21438
21477
|
var drbg = new HmacDRBG({
|
|
21439
21478
|
hash: this.hash,
|
|
@@ -21481,8 +21520,11 @@ EC.prototype.sign = function sign(msg, key, enc, options) {
|
|
|
21481
21520
|
}
|
|
21482
21521
|
};
|
|
21483
21522
|
|
|
21484
|
-
EC.prototype.verify = function verify(msg, signature, key, enc) {
|
|
21485
|
-
|
|
21523
|
+
EC.prototype.verify = function verify(msg, signature, key, enc, options) {
|
|
21524
|
+
if (!options)
|
|
21525
|
+
options = {};
|
|
21526
|
+
|
|
21527
|
+
msg = this._truncateToN(msg, false, options.msgBitLength);
|
|
21486
21528
|
key = this.keyFromPublic(key, enc);
|
|
21487
21529
|
signature = new Signature(signature, 'hex');
|
|
21488
21530
|
|
|
@@ -21690,8 +21732,8 @@ KeyPair.prototype.sign = function sign(msg, enc, options) {
|
|
|
21690
21732
|
return this.ec.sign(msg, this, enc, options);
|
|
21691
21733
|
};
|
|
21692
21734
|
|
|
21693
|
-
KeyPair.prototype.verify = function verify(msg, signature) {
|
|
21694
|
-
return this.ec.verify(msg, signature, this);
|
|
21735
|
+
KeyPair.prototype.verify = function verify(msg, signature, options) {
|
|
21736
|
+
return this.ec.verify(msg, signature, this, undefined, options);
|
|
21695
21737
|
};
|
|
21696
21738
|
|
|
21697
21739
|
KeyPair.prototype.inspect = function inspect() {
|
|
@@ -70294,7 +70336,7 @@ exports.createContext = Script.createContext = function (context) {
|
|
|
70294
70336
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
70295
70337
|
|
|
70296
70338
|
"use strict";
|
|
70297
|
-
|
|
70339
|
+
/*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
70298
70340
|
|
|
70299
70341
|
|
|
70300
70342
|
function bind(fn, thisArg) {
|
|
@@ -70307,6 +70349,7 @@ function bind(fn, thisArg) {
|
|
|
70307
70349
|
|
|
70308
70350
|
const {toString} = Object.prototype;
|
|
70309
70351
|
const {getPrototypeOf} = Object;
|
|
70352
|
+
const {iterator, toStringTag} = Symbol;
|
|
70310
70353
|
|
|
70311
70354
|
const kindOf = (cache => thing => {
|
|
70312
70355
|
const str = toString.call(thing);
|
|
@@ -70433,7 +70476,7 @@ const isPlainObject = (val) => {
|
|
|
70433
70476
|
}
|
|
70434
70477
|
|
|
70435
70478
|
const prototype = getPrototypeOf(val);
|
|
70436
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(
|
|
70479
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
70437
70480
|
};
|
|
70438
70481
|
|
|
70439
70482
|
/**
|
|
@@ -70784,13 +70827,13 @@ const isTypedArray = (TypedArray => {
|
|
|
70784
70827
|
* @returns {void}
|
|
70785
70828
|
*/
|
|
70786
70829
|
const forEachEntry = (obj, fn) => {
|
|
70787
|
-
const generator = obj && obj[
|
|
70830
|
+
const generator = obj && obj[iterator];
|
|
70788
70831
|
|
|
70789
|
-
const
|
|
70832
|
+
const _iterator = generator.call(obj);
|
|
70790
70833
|
|
|
70791
70834
|
let result;
|
|
70792
70835
|
|
|
70793
|
-
while ((result =
|
|
70836
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
70794
70837
|
const pair = result.value;
|
|
70795
70838
|
fn.call(obj, pair[0], pair[1]);
|
|
70796
70839
|
}
|
|
@@ -70903,26 +70946,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
70903
70946
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
70904
70947
|
};
|
|
70905
70948
|
|
|
70906
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
70907
|
-
|
|
70908
|
-
const DIGIT = '0123456789';
|
|
70909
|
-
|
|
70910
|
-
const ALPHABET = {
|
|
70911
|
-
DIGIT,
|
|
70912
|
-
ALPHA,
|
|
70913
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
70914
|
-
};
|
|
70915
|
-
|
|
70916
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
70917
|
-
let str = '';
|
|
70918
|
-
const {length} = alphabet;
|
|
70919
|
-
while (size--) {
|
|
70920
|
-
str += alphabet[Math.random() * length|0];
|
|
70921
|
-
}
|
|
70922
|
-
|
|
70923
|
-
return str;
|
|
70924
|
-
};
|
|
70925
|
-
|
|
70926
70949
|
/**
|
|
70927
70950
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
70928
70951
|
*
|
|
@@ -70931,7 +70954,7 @@ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
|
70931
70954
|
* @returns {boolean}
|
|
70932
70955
|
*/
|
|
70933
70956
|
function isSpecCompliantForm(thing) {
|
|
70934
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
70957
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
70935
70958
|
}
|
|
70936
70959
|
|
|
70937
70960
|
const toJSONObject = (obj) => {
|
|
@@ -71000,6 +71023,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
71000
71023
|
|
|
71001
71024
|
// *********************
|
|
71002
71025
|
|
|
71026
|
+
|
|
71027
|
+
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
71028
|
+
|
|
71029
|
+
|
|
71003
71030
|
var utils$1 = {
|
|
71004
71031
|
isArray,
|
|
71005
71032
|
isArrayBuffer,
|
|
@@ -71050,14 +71077,13 @@ var utils$1 = {
|
|
|
71050
71077
|
findKey,
|
|
71051
71078
|
global: _global,
|
|
71052
71079
|
isContextDefined,
|
|
71053
|
-
ALPHABET,
|
|
71054
|
-
generateString,
|
|
71055
71080
|
isSpecCompliantForm,
|
|
71056
71081
|
toJSONObject,
|
|
71057
71082
|
isAsyncFn,
|
|
71058
71083
|
isThenable,
|
|
71059
71084
|
setImmediate: _setImmediate,
|
|
71060
|
-
asap
|
|
71085
|
+
asap,
|
|
71086
|
+
isIterable
|
|
71061
71087
|
};
|
|
71062
71088
|
|
|
71063
71089
|
/**
|
|
@@ -71448,7 +71474,7 @@ function encode(val) {
|
|
|
71448
71474
|
*
|
|
71449
71475
|
* @param {string} url The base of the url (e.g., http://www.google.com)
|
|
71450
71476
|
* @param {object} [params] The params to be appended
|
|
71451
|
-
* @param {?object} options
|
|
71477
|
+
* @param {?(object|Function)} options
|
|
71452
71478
|
*
|
|
71453
71479
|
* @returns {string} The formatted url
|
|
71454
71480
|
*/
|
|
@@ -71460,6 +71486,12 @@ function buildURL(url, params, options) {
|
|
|
71460
71486
|
|
|
71461
71487
|
const _encode = options && options.encode || encode;
|
|
71462
71488
|
|
|
71489
|
+
if (utils$1.isFunction(options)) {
|
|
71490
|
+
options = {
|
|
71491
|
+
serialize: options
|
|
71492
|
+
};
|
|
71493
|
+
}
|
|
71494
|
+
|
|
71463
71495
|
const serializeFn = options && options.serialize;
|
|
71464
71496
|
|
|
71465
71497
|
let serializedParams;
|
|
@@ -72036,10 +72068,18 @@ class AxiosHeaders {
|
|
|
72036
72068
|
setHeaders(header, valueOrRewrite);
|
|
72037
72069
|
} else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
72038
72070
|
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
72039
|
-
} else if (utils$1.
|
|
72040
|
-
|
|
72041
|
-
|
|
72071
|
+
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
72072
|
+
let obj = {}, dest, key;
|
|
72073
|
+
for (const entry of header) {
|
|
72074
|
+
if (!utils$1.isArray(entry)) {
|
|
72075
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
72076
|
+
}
|
|
72077
|
+
|
|
72078
|
+
obj[key = entry[0]] = (dest = obj[key]) ?
|
|
72079
|
+
(utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
|
|
72042
72080
|
}
|
|
72081
|
+
|
|
72082
|
+
setHeaders(obj, valueOrRewrite);
|
|
72043
72083
|
} else {
|
|
72044
72084
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
72045
72085
|
}
|
|
@@ -72181,6 +72221,10 @@ class AxiosHeaders {
|
|
|
72181
72221
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
|
|
72182
72222
|
}
|
|
72183
72223
|
|
|
72224
|
+
getSetCookie() {
|
|
72225
|
+
return this.get("set-cookie") || [];
|
|
72226
|
+
}
|
|
72227
|
+
|
|
72184
72228
|
get [Symbol.toStringTag]() {
|
|
72185
72229
|
return 'AxiosHeaders';
|
|
72186
72230
|
}
|
|
@@ -72448,68 +72492,18 @@ const progressEventDecorator = (total, throttled) => {
|
|
|
72448
72492
|
|
|
72449
72493
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
|
72450
72494
|
|
|
72451
|
-
var isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
|
72452
|
-
|
|
72453
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
72454
|
-
// whether the request URL is of the same origin as current location.
|
|
72455
|
-
(function standardBrowserEnv() {
|
|
72456
|
-
const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
|
|
72457
|
-
const urlParsingNode = document.createElement('a');
|
|
72458
|
-
let originURL;
|
|
72459
|
-
|
|
72460
|
-
/**
|
|
72461
|
-
* Parse a URL to discover its components
|
|
72462
|
-
*
|
|
72463
|
-
* @param {String} url The URL to be parsed
|
|
72464
|
-
* @returns {Object}
|
|
72465
|
-
*/
|
|
72466
|
-
function resolveURL(url) {
|
|
72467
|
-
let href = url;
|
|
72468
|
-
|
|
72469
|
-
if (msie) {
|
|
72470
|
-
// IE needs attribute set twice to normalize properties
|
|
72471
|
-
urlParsingNode.setAttribute('href', href);
|
|
72472
|
-
href = urlParsingNode.href;
|
|
72473
|
-
}
|
|
72474
|
-
|
|
72475
|
-
urlParsingNode.setAttribute('href', href);
|
|
72476
|
-
|
|
72477
|
-
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
|
72478
|
-
return {
|
|
72479
|
-
href: urlParsingNode.href,
|
|
72480
|
-
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
|
72481
|
-
host: urlParsingNode.host,
|
|
72482
|
-
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
|
72483
|
-
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
|
72484
|
-
hostname: urlParsingNode.hostname,
|
|
72485
|
-
port: urlParsingNode.port,
|
|
72486
|
-
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
|
72487
|
-
urlParsingNode.pathname :
|
|
72488
|
-
'/' + urlParsingNode.pathname
|
|
72489
|
-
};
|
|
72490
|
-
}
|
|
72491
|
-
|
|
72492
|
-
originURL = resolveURL(window.location.href);
|
|
72493
|
-
|
|
72494
|
-
/**
|
|
72495
|
-
* Determine if a URL shares the same origin as the current location
|
|
72496
|
-
*
|
|
72497
|
-
* @param {String} requestURL The URL to test
|
|
72498
|
-
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
72499
|
-
*/
|
|
72500
|
-
return function isURLSameOrigin(requestURL) {
|
|
72501
|
-
const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
|
72502
|
-
return (parsed.protocol === originURL.protocol &&
|
|
72503
|
-
parsed.host === originURL.host);
|
|
72504
|
-
};
|
|
72505
|
-
})() :
|
|
72495
|
+
var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
|
|
72496
|
+
url = new URL(url, platform.origin);
|
|
72506
72497
|
|
|
72507
|
-
|
|
72508
|
-
|
|
72509
|
-
|
|
72510
|
-
|
|
72511
|
-
|
|
72512
|
-
|
|
72498
|
+
return (
|
|
72499
|
+
origin.protocol === url.protocol &&
|
|
72500
|
+
origin.host === url.host &&
|
|
72501
|
+
(isMSIE || origin.port === url.port)
|
|
72502
|
+
);
|
|
72503
|
+
})(
|
|
72504
|
+
new URL(platform.origin),
|
|
72505
|
+
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
72506
|
+
) : () => true;
|
|
72513
72507
|
|
|
72514
72508
|
var cookies = platform.hasStandardBrowserEnv ?
|
|
72515
72509
|
|
|
@@ -72588,8 +72582,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
72588
72582
|
*
|
|
72589
72583
|
* @returns {string} The combined full path
|
|
72590
72584
|
*/
|
|
72591
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
72592
|
-
|
|
72585
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
72586
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
72587
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
72593
72588
|
return combineURLs(baseURL, requestedURL);
|
|
72594
72589
|
}
|
|
72595
72590
|
return requestedURL;
|
|
@@ -72611,7 +72606,7 @@ function mergeConfig(config1, config2) {
|
|
|
72611
72606
|
config2 = config2 || {};
|
|
72612
72607
|
const config = {};
|
|
72613
72608
|
|
|
72614
|
-
function getMergedValue(target, source, caseless) {
|
|
72609
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
72615
72610
|
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
|
72616
72611
|
return utils$1.merge.call({caseless}, target, source);
|
|
72617
72612
|
} else if (utils$1.isPlainObject(source)) {
|
|
@@ -72623,11 +72618,11 @@ function mergeConfig(config1, config2) {
|
|
|
72623
72618
|
}
|
|
72624
72619
|
|
|
72625
72620
|
// eslint-disable-next-line consistent-return
|
|
72626
|
-
function mergeDeepProperties(a, b, caseless) {
|
|
72621
|
+
function mergeDeepProperties(a, b, prop , caseless) {
|
|
72627
72622
|
if (!utils$1.isUndefined(b)) {
|
|
72628
|
-
return getMergedValue(a, b, caseless);
|
|
72623
|
+
return getMergedValue(a, b, prop , caseless);
|
|
72629
72624
|
} else if (!utils$1.isUndefined(a)) {
|
|
72630
|
-
return getMergedValue(undefined, a, caseless);
|
|
72625
|
+
return getMergedValue(undefined, a, prop , caseless);
|
|
72631
72626
|
}
|
|
72632
72627
|
}
|
|
72633
72628
|
|
|
@@ -72685,7 +72680,7 @@ function mergeConfig(config1, config2) {
|
|
|
72685
72680
|
socketPath: defaultToConfig2,
|
|
72686
72681
|
responseEncoding: defaultToConfig2,
|
|
72687
72682
|
validateStatus: mergeDirectKeys,
|
|
72688
|
-
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
72683
|
+
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
72689
72684
|
};
|
|
72690
72685
|
|
|
72691
72686
|
utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
@@ -72704,7 +72699,7 @@ var resolveConfig = (config) => {
|
|
|
72704
72699
|
|
|
72705
72700
|
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
72706
72701
|
|
|
72707
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
72702
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
72708
72703
|
|
|
72709
72704
|
// HTTP basic authentication
|
|
72710
72705
|
if (auth) {
|
|
@@ -73269,7 +73264,7 @@ var fetchAdapter = isFetchSupported && (async (config) => {
|
|
|
73269
73264
|
} catch (err) {
|
|
73270
73265
|
unsubscribe && unsubscribe();
|
|
73271
73266
|
|
|
73272
|
-
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
|
|
73267
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
73273
73268
|
throw Object.assign(
|
|
73274
73269
|
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
|
73275
73270
|
{
|
|
@@ -73429,7 +73424,7 @@ function dispatchRequest(config) {
|
|
|
73429
73424
|
});
|
|
73430
73425
|
}
|
|
73431
73426
|
|
|
73432
|
-
const VERSION = "1.
|
|
73427
|
+
const VERSION = "1.9.0";
|
|
73433
73428
|
|
|
73434
73429
|
const validators$1 = {};
|
|
73435
73430
|
|
|
@@ -73480,6 +73475,14 @@ validators$1.transitional = function transitional(validator, version, message) {
|
|
|
73480
73475
|
};
|
|
73481
73476
|
};
|
|
73482
73477
|
|
|
73478
|
+
validators$1.spelling = function spelling(correctSpelling) {
|
|
73479
|
+
return (value, opt) => {
|
|
73480
|
+
// eslint-disable-next-line no-console
|
|
73481
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
73482
|
+
return true;
|
|
73483
|
+
}
|
|
73484
|
+
};
|
|
73485
|
+
|
|
73483
73486
|
/**
|
|
73484
73487
|
* Assert object's properties type
|
|
73485
73488
|
*
|
|
@@ -73529,7 +73532,7 @@ const validators = validator.validators;
|
|
|
73529
73532
|
*/
|
|
73530
73533
|
class Axios {
|
|
73531
73534
|
constructor(instanceConfig) {
|
|
73532
|
-
this.defaults = instanceConfig;
|
|
73535
|
+
this.defaults = instanceConfig || {};
|
|
73533
73536
|
this.interceptors = {
|
|
73534
73537
|
request: new InterceptorManager$1(),
|
|
73535
73538
|
response: new InterceptorManager$1()
|
|
@@ -73549,9 +73552,9 @@ class Axios {
|
|
|
73549
73552
|
return await this._request(configOrUrl, config);
|
|
73550
73553
|
} catch (err) {
|
|
73551
73554
|
if (err instanceof Error) {
|
|
73552
|
-
let dummy;
|
|
73555
|
+
let dummy = {};
|
|
73553
73556
|
|
|
73554
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy
|
|
73557
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
|
|
73555
73558
|
|
|
73556
73559
|
// slice off the Error: ... line
|
|
73557
73560
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
@@ -73606,6 +73609,18 @@ class Axios {
|
|
|
73606
73609
|
}
|
|
73607
73610
|
}
|
|
73608
73611
|
|
|
73612
|
+
// Set config.allowAbsoluteUrls
|
|
73613
|
+
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
73614
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
73615
|
+
} else {
|
|
73616
|
+
config.allowAbsoluteUrls = true;
|
|
73617
|
+
}
|
|
73618
|
+
|
|
73619
|
+
validator.assertOptions(config, {
|
|
73620
|
+
baseUrl: validators.spelling('baseURL'),
|
|
73621
|
+
withXsrfToken: validators.spelling('withXSRFToken')
|
|
73622
|
+
}, true);
|
|
73623
|
+
|
|
73609
73624
|
// Set config.method
|
|
73610
73625
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
73611
73626
|
|
|
@@ -73696,7 +73711,7 @@ class Axios {
|
|
|
73696
73711
|
|
|
73697
73712
|
getUri(config) {
|
|
73698
73713
|
config = mergeConfig(this.defaults, config);
|
|
73699
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
73714
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
73700
73715
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
73701
73716
|
}
|
|
73702
73717
|
}
|
|
@@ -74087,7 +74102,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"modp1":{"gen":"02","prime":"ffffffff
|
|
|
74087
74102
|
/***/ ((module) => {
|
|
74088
74103
|
|
|
74089
74104
|
"use strict";
|
|
74090
|
-
module.exports = {"rE":"6.
|
|
74105
|
+
module.exports = {"rE":"6.6.1"};
|
|
74091
74106
|
|
|
74092
74107
|
/***/ }),
|
|
74093
74108
|
|