@blockchyp/blockchyp-ts 2.20.1 → 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.
@@ -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
- exports.randomBytes = exports.rng = exports.pseudoRandomBytes = exports.prng = __webpack_require__(3209)
17958
- exports.createHash = exports.Hash = __webpack_require__(7108)
17959
- exports.createHmac = exports.Hmac = __webpack_require__(3507)
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
- return hashes
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
- // 'sorry, ' + name + ' is not implemented yet',
18016
- // 'we accept pull requests',
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
- throw new Error([
18029
- 'sorry, createCredentials is not implemented yet',
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
- 'DH_CHECK_P_NOT_SAFE_PRIME': 2,
18037
- 'DH_CHECK_P_NOT_PRIME': 1,
18038
- 'DH_UNABLE_TO_CHECK_GENERATOR': 4,
18039
- 'DH_NOT_SUITABLE_GENERATOR': 8,
18040
- 'NPN_ENABLED': 1,
18041
- 'ALPN_ENABLED': 1,
18042
- 'RSA_PKCS1_PADDING': 1,
18043
- 'RSA_SSLV23_PADDING': 2,
18044
- 'RSA_NO_PADDING': 3,
18045
- 'RSA_PKCS1_OAEP_PADDING': 4,
18046
- 'RSA_X931_PADDING': 5,
18047
- 'RSA_PKCS1_PSS_PADDING': 6,
18048
- 'POINT_CONVERSION_COMPRESSED': 2,
18049
- 'POINT_CONVERSION_UNCOMPRESSED': 4,
18050
- 'POINT_CONVERSION_HYBRID': 6
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 delta = msg.byteLength() * 8 - this.n.bitLength();
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(new BN(msg, 16));
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
- msg = this._truncateToN(new BN(msg, 16));
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() {
@@ -58611,7 +58653,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
58611
58653
  Object.defineProperty(exports, "__esModule", ({ value: true }));
58612
58654
  exports.newClient = exports.BlockChypCredentials = exports.BlockChypClient = exports.HealthcareType = exports.CVMType = exports.AVSResponse = exports.PromptType = exports.RoundingMode = exports.SignatureFormat = exports.CardType = void 0;
58613
58655
  /**
58614
- * Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is governed
58656
+ * Copyright 2019-2025 BlockChyp, Inc. All rights reserved. Use of this code is governed
58615
58657
  * by a license that can be found in the LICENSE file.
58616
58658
  *
58617
58659
  * This file was generated automatically by the BlockChyp SDK Generator. Changes to this
@@ -59645,7 +59687,7 @@ exports["default"] = CryptoUtils;
59645
59687
  "use strict";
59646
59688
 
59647
59689
  /**
59648
- * Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code is governed
59690
+ * Copyright 2019-2025 BlockChyp, Inc. All rights reserved. Use of this code is governed
59649
59691
  * by a license that can be found in the LICENSE file.
59650
59692
  *
59651
59693
  * This file was generated automatically by the BlockChyp SDK Generator. Changes to this
@@ -64239,7 +64281,7 @@ exports.Address = Address;
64239
64281
  */
64240
64282
  class MerchantProfile {
64241
64283
  // Constructor with default values for optional fields
64242
- constructor(timeout = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null) {
64284
+ constructor(timeout = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null, passthroughSurchargeEnabled = null) {
64243
64285
  /**
64244
64286
  * The request timeout in seconds.
64245
64287
  */
@@ -64456,6 +64498,10 @@ class MerchantProfile {
64456
64498
  * Bank accounts for split bank account merchants.
64457
64499
  */
64458
64500
  this.bankAccounts = null;
64501
+ /**
64502
+ * That a merchant is allowed to send a surcharge amount directly to the gateway.
64503
+ */
64504
+ this.passthroughSurchargeEnabled = null;
64459
64505
  this.timeout = timeout;
64460
64506
  this.test = test;
64461
64507
  this.merchantId = merchantId;
@@ -64509,6 +64555,7 @@ class MerchantProfile {
64509
64555
  this.manualEntryPromptStreetNumber = manualEntryPromptStreetNumber;
64510
64556
  this.gatewayOnly = gatewayOnly;
64511
64557
  this.bankAccounts = bankAccounts;
64558
+ this.passthroughSurchargeEnabled = passthroughSurchargeEnabled;
64512
64559
  }
64513
64560
  }
64514
64561
  exports.MerchantProfile = MerchantProfile;
@@ -64517,7 +64564,7 @@ exports.MerchantProfile = MerchantProfile;
64517
64564
  */
64518
64565
  class MerchantProfileResponse {
64519
64566
  // Constructor with default values for optional fields
64520
- constructor(success = null, error = null, responseDescription = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null) {
64567
+ constructor(success = null, error = null, responseDescription = null, test = null, merchantId = null, bankMid = null, companyName = null, dbaName = null, invoiceName = null, contactName = null, contactNumber = null, locationName = null, storeNumber = null, partnerRef = null, timeZone = null, batchCloseTime = null, terminalUpdateTime = null, autoBatchClose = null, disableBatchEmails = null, pinEnabled = null, cashBackEnabled = null, storeAndForwardEnabled = null, partialAuthEnabled = null, splitBankAccountsEnabled = null, storeAndForwardFloorLimit = null, publicKey = null, status = null, cashDiscountEnabled = null, surveyTimeout = null, cooldownTimeout = null, tipEnabled = null, promptForTip = null, tipDefaults = null, cashbackPresets = null, ebtEnabled = null, freeRangeRefundsEnabled = null, pinBypassEnabled = null, giftCardsDisabled = null, tcDisabled = null, digitalSignaturesEnabled = null, digitalSignatureReversal = null, billingAddress = null, shippingAddress = null, visa = null, masterCard = null, amex = null, discover = null, jcb = null, unionPay = null, contactlessEmv = null, manualEntryEnabled = null, manualEntryPromptZip = null, manualEntryPromptStreetNumber = null, gatewayOnly = null, bankAccounts = null, passthroughSurchargeEnabled = null) {
64521
64568
  /**
64522
64569
  * Whether or not the request succeeded.
64523
64570
  */
@@ -64742,6 +64789,10 @@ class MerchantProfileResponse {
64742
64789
  * Bank accounts for split bank account merchants.
64743
64790
  */
64744
64791
  this.bankAccounts = null;
64792
+ /**
64793
+ * That a merchant is allowed to send a surcharge amount directly to the gateway.
64794
+ */
64795
+ this.passthroughSurchargeEnabled = null;
64745
64796
  this.success = success;
64746
64797
  this.error = error;
64747
64798
  this.responseDescription = responseDescription;
@@ -64797,6 +64848,7 @@ class MerchantProfileResponse {
64797
64848
  this.manualEntryPromptStreetNumber = manualEntryPromptStreetNumber;
64798
64849
  this.gatewayOnly = gatewayOnly;
64799
64850
  this.bankAccounts = bankAccounts;
64851
+ this.passthroughSurchargeEnabled = passthroughSurchargeEnabled;
64800
64852
  }
64801
64853
  }
64802
64854
  exports.MerchantProfileResponse = MerchantProfileResponse;
@@ -70284,7 +70336,7 @@ exports.createContext = Script.createContext = function (context) {
70284
70336
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
70285
70337
 
70286
70338
  "use strict";
70287
- // Axios v1.7.7 Copyright (c) 2024 Matt Zabriskie and contributors
70339
+ /*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */
70288
70340
 
70289
70341
 
70290
70342
  function bind(fn, thisArg) {
@@ -70297,6 +70349,7 @@ function bind(fn, thisArg) {
70297
70349
 
70298
70350
  const {toString} = Object.prototype;
70299
70351
  const {getPrototypeOf} = Object;
70352
+ const {iterator, toStringTag} = Symbol;
70300
70353
 
70301
70354
  const kindOf = (cache => thing => {
70302
70355
  const str = toString.call(thing);
@@ -70423,7 +70476,7 @@ const isPlainObject = (val) => {
70423
70476
  }
70424
70477
 
70425
70478
  const prototype = getPrototypeOf(val);
70426
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
70479
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
70427
70480
  };
70428
70481
 
70429
70482
  /**
@@ -70774,13 +70827,13 @@ const isTypedArray = (TypedArray => {
70774
70827
  * @returns {void}
70775
70828
  */
70776
70829
  const forEachEntry = (obj, fn) => {
70777
- const generator = obj && obj[Symbol.iterator];
70830
+ const generator = obj && obj[iterator];
70778
70831
 
70779
- const iterator = generator.call(obj);
70832
+ const _iterator = generator.call(obj);
70780
70833
 
70781
70834
  let result;
70782
70835
 
70783
- while ((result = iterator.next()) && !result.done) {
70836
+ while ((result = _iterator.next()) && !result.done) {
70784
70837
  const pair = result.value;
70785
70838
  fn.call(obj, pair[0], pair[1]);
70786
70839
  }
@@ -70893,26 +70946,6 @@ const toFiniteNumber = (value, defaultValue) => {
70893
70946
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
70894
70947
  };
70895
70948
 
70896
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
70897
-
70898
- const DIGIT = '0123456789';
70899
-
70900
- const ALPHABET = {
70901
- DIGIT,
70902
- ALPHA,
70903
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
70904
- };
70905
-
70906
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
70907
- let str = '';
70908
- const {length} = alphabet;
70909
- while (size--) {
70910
- str += alphabet[Math.random() * length|0];
70911
- }
70912
-
70913
- return str;
70914
- };
70915
-
70916
70949
  /**
70917
70950
  * If the thing is a FormData object, return true, otherwise return false.
70918
70951
  *
@@ -70921,7 +70954,7 @@ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
70921
70954
  * @returns {boolean}
70922
70955
  */
70923
70956
  function isSpecCompliantForm(thing) {
70924
- return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
70957
+ return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
70925
70958
  }
70926
70959
 
70927
70960
  const toJSONObject = (obj) => {
@@ -70990,6 +71023,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
70990
71023
 
70991
71024
  // *********************
70992
71025
 
71026
+
71027
+ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
71028
+
71029
+
70993
71030
  var utils$1 = {
70994
71031
  isArray,
70995
71032
  isArrayBuffer,
@@ -71040,14 +71077,13 @@ var utils$1 = {
71040
71077
  findKey,
71041
71078
  global: _global,
71042
71079
  isContextDefined,
71043
- ALPHABET,
71044
- generateString,
71045
71080
  isSpecCompliantForm,
71046
71081
  toJSONObject,
71047
71082
  isAsyncFn,
71048
71083
  isThenable,
71049
71084
  setImmediate: _setImmediate,
71050
- asap
71085
+ asap,
71086
+ isIterable
71051
71087
  };
71052
71088
 
71053
71089
  /**
@@ -71438,7 +71474,7 @@ function encode(val) {
71438
71474
  *
71439
71475
  * @param {string} url The base of the url (e.g., http://www.google.com)
71440
71476
  * @param {object} [params] The params to be appended
71441
- * @param {?object} options
71477
+ * @param {?(object|Function)} options
71442
71478
  *
71443
71479
  * @returns {string} The formatted url
71444
71480
  */
@@ -71450,6 +71486,12 @@ function buildURL(url, params, options) {
71450
71486
 
71451
71487
  const _encode = options && options.encode || encode;
71452
71488
 
71489
+ if (utils$1.isFunction(options)) {
71490
+ options = {
71491
+ serialize: options
71492
+ };
71493
+ }
71494
+
71453
71495
  const serializeFn = options && options.serialize;
71454
71496
 
71455
71497
  let serializedParams;
@@ -72026,10 +72068,18 @@ class AxiosHeaders {
72026
72068
  setHeaders(header, valueOrRewrite);
72027
72069
  } else if(utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
72028
72070
  setHeaders(parseHeaders(header), valueOrRewrite);
72029
- } else if (utils$1.isHeaders(header)) {
72030
- for (const [key, value] of header.entries()) {
72031
- setHeader(value, key, rewrite);
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];
72032
72080
  }
72081
+
72082
+ setHeaders(obj, valueOrRewrite);
72033
72083
  } else {
72034
72084
  header != null && setHeader(valueOrRewrite, header, rewrite);
72035
72085
  }
@@ -72171,6 +72221,10 @@ class AxiosHeaders {
72171
72221
  return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
72172
72222
  }
72173
72223
 
72224
+ getSetCookie() {
72225
+ return this.get("set-cookie") || [];
72226
+ }
72227
+
72174
72228
  get [Symbol.toStringTag]() {
72175
72229
  return 'AxiosHeaders';
72176
72230
  }
@@ -72438,68 +72492,18 @@ const progressEventDecorator = (total, throttled) => {
72438
72492
 
72439
72493
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
72440
72494
 
72441
- var isURLSameOrigin = platform.hasStandardBrowserEnv ?
72442
-
72443
- // Standard browser envs have full support of the APIs needed to test
72444
- // whether the request URL is of the same origin as current location.
72445
- (function standardBrowserEnv() {
72446
- const msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
72447
- const urlParsingNode = document.createElement('a');
72448
- let originURL;
72449
-
72450
- /**
72451
- * Parse a URL to discover its components
72452
- *
72453
- * @param {String} url The URL to be parsed
72454
- * @returns {Object}
72455
- */
72456
- function resolveURL(url) {
72457
- let href = url;
72458
-
72459
- if (msie) {
72460
- // IE needs attribute set twice to normalize properties
72461
- urlParsingNode.setAttribute('href', href);
72462
- href = urlParsingNode.href;
72463
- }
72464
-
72465
- urlParsingNode.setAttribute('href', href);
72466
-
72467
- // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
72468
- return {
72469
- href: urlParsingNode.href,
72470
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
72471
- host: urlParsingNode.host,
72472
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
72473
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
72474
- hostname: urlParsingNode.hostname,
72475
- port: urlParsingNode.port,
72476
- pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
72477
- urlParsingNode.pathname :
72478
- '/' + urlParsingNode.pathname
72479
- };
72480
- }
72481
-
72482
- originURL = resolveURL(window.location.href);
72483
-
72484
- /**
72485
- * Determine if a URL shares the same origin as the current location
72486
- *
72487
- * @param {String} requestURL The URL to test
72488
- * @returns {boolean} True if URL shares the same origin, otherwise false
72489
- */
72490
- return function isURLSameOrigin(requestURL) {
72491
- const parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
72492
- return (parsed.protocol === originURL.protocol &&
72493
- parsed.host === originURL.host);
72494
- };
72495
- })() :
72495
+ var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {
72496
+ url = new URL(url, platform.origin);
72496
72497
 
72497
- // Non standard browser envs (web workers, react-native) lack needed support.
72498
- (function nonStandardBrowserEnv() {
72499
- return function isURLSameOrigin() {
72500
- return true;
72501
- };
72502
- })();
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;
72503
72507
 
72504
72508
  var cookies = platform.hasStandardBrowserEnv ?
72505
72509
 
@@ -72578,8 +72582,9 @@ function combineURLs(baseURL, relativeURL) {
72578
72582
  *
72579
72583
  * @returns {string} The combined full path
72580
72584
  */
72581
- function buildFullPath(baseURL, requestedURL) {
72582
- if (baseURL && !isAbsoluteURL(requestedURL)) {
72585
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
72586
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
72587
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
72583
72588
  return combineURLs(baseURL, requestedURL);
72584
72589
  }
72585
72590
  return requestedURL;
@@ -72601,7 +72606,7 @@ function mergeConfig(config1, config2) {
72601
72606
  config2 = config2 || {};
72602
72607
  const config = {};
72603
72608
 
72604
- function getMergedValue(target, source, caseless) {
72609
+ function getMergedValue(target, source, prop, caseless) {
72605
72610
  if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
72606
72611
  return utils$1.merge.call({caseless}, target, source);
72607
72612
  } else if (utils$1.isPlainObject(source)) {
@@ -72613,11 +72618,11 @@ function mergeConfig(config1, config2) {
72613
72618
  }
72614
72619
 
72615
72620
  // eslint-disable-next-line consistent-return
72616
- function mergeDeepProperties(a, b, caseless) {
72621
+ function mergeDeepProperties(a, b, prop , caseless) {
72617
72622
  if (!utils$1.isUndefined(b)) {
72618
- return getMergedValue(a, b, caseless);
72623
+ return getMergedValue(a, b, prop , caseless);
72619
72624
  } else if (!utils$1.isUndefined(a)) {
72620
- return getMergedValue(undefined, a, caseless);
72625
+ return getMergedValue(undefined, a, prop , caseless);
72621
72626
  }
72622
72627
  }
72623
72628
 
@@ -72675,7 +72680,7 @@ function mergeConfig(config1, config2) {
72675
72680
  socketPath: defaultToConfig2,
72676
72681
  responseEncoding: defaultToConfig2,
72677
72682
  validateStatus: mergeDirectKeys,
72678
- headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
72683
+ headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
72679
72684
  };
72680
72685
 
72681
72686
  utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
@@ -72694,7 +72699,7 @@ var resolveConfig = (config) => {
72694
72699
 
72695
72700
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
72696
72701
 
72697
- 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);
72698
72703
 
72699
72704
  // HTTP basic authentication
72700
72705
  if (auth) {
@@ -73259,7 +73264,7 @@ var fetchAdapter = isFetchSupported && (async (config) => {
73259
73264
  } catch (err) {
73260
73265
  unsubscribe && unsubscribe();
73261
73266
 
73262
- if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
73267
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
73263
73268
  throw Object.assign(
73264
73269
  new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
73265
73270
  {
@@ -73419,7 +73424,7 @@ function dispatchRequest(config) {
73419
73424
  });
73420
73425
  }
73421
73426
 
73422
- const VERSION = "1.7.7";
73427
+ const VERSION = "1.9.0";
73423
73428
 
73424
73429
  const validators$1 = {};
73425
73430
 
@@ -73470,6 +73475,14 @@ validators$1.transitional = function transitional(validator, version, message) {
73470
73475
  };
73471
73476
  };
73472
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
+
73473
73486
  /**
73474
73487
  * Assert object's properties type
73475
73488
  *
@@ -73519,7 +73532,7 @@ const validators = validator.validators;
73519
73532
  */
73520
73533
  class Axios {
73521
73534
  constructor(instanceConfig) {
73522
- this.defaults = instanceConfig;
73535
+ this.defaults = instanceConfig || {};
73523
73536
  this.interceptors = {
73524
73537
  request: new InterceptorManager$1(),
73525
73538
  response: new InterceptorManager$1()
@@ -73539,9 +73552,9 @@ class Axios {
73539
73552
  return await this._request(configOrUrl, config);
73540
73553
  } catch (err) {
73541
73554
  if (err instanceof Error) {
73542
- let dummy;
73555
+ let dummy = {};
73543
73556
 
73544
- Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
73557
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
73545
73558
 
73546
73559
  // slice off the Error: ... line
73547
73560
  const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
@@ -73596,6 +73609,18 @@ class Axios {
73596
73609
  }
73597
73610
  }
73598
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
+
73599
73624
  // Set config.method
73600
73625
  config.method = (config.method || this.defaults.method || 'get').toLowerCase();
73601
73626
 
@@ -73686,7 +73711,7 @@ class Axios {
73686
73711
 
73687
73712
  getUri(config) {
73688
73713
  config = mergeConfig(this.defaults, config);
73689
- const fullPath = buildFullPath(config.baseURL, config.url);
73714
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
73690
73715
  return buildURL(fullPath, config.params, config.paramsSerializer);
73691
73716
  }
73692
73717
  }
@@ -74077,7 +74102,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"modp1":{"gen":"02","prime":"ffffffff
74077
74102
  /***/ ((module) => {
74078
74103
 
74079
74104
  "use strict";
74080
- module.exports = {"rE":"6.5.7"};
74105
+ module.exports = {"rE":"6.6.1"};
74081
74106
 
74082
74107
  /***/ }),
74083
74108