xrpl 2.13.0 → 2.14.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/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +984 -1033
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts +1 -3
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +0 -7
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/client/index.d.ts +2 -1
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/models/ledger/Bridge.d.ts +1 -1
- package/dist/npm/models/ledger/Bridge.d.ts.map +1 -1
- package/dist/npm/models/ledger/DID.d.ts +11 -0
- package/dist/npm/models/ledger/DID.d.ts.map +1 -0
- package/dist/npm/models/ledger/DID.js +3 -0
- package/dist/npm/models/ledger/DID.js.map +1 -0
- package/dist/npm/models/ledger/LedgerEntry.d.ts +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +2 -1
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/index.d.ts +4 -3
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +1 -0
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/serverDefinitions.d.ts +32 -0
- package/dist/npm/models/methods/serverDefinitions.d.ts.map +1 -0
- package/dist/npm/models/methods/serverDefinitions.js +3 -0
- package/dist/npm/models/methods/serverDefinitions.js.map +1 -0
- package/dist/npm/models/methods/tx.d.ts +3 -1
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/DIDDelete.d.ts +6 -0
- package/dist/npm/models/transactions/DIDDelete.d.ts.map +1 -0
- package/dist/npm/models/transactions/DIDDelete.js +9 -0
- package/dist/npm/models/transactions/DIDDelete.js.map +1 -0
- package/dist/npm/models/transactions/DIDSet.d.ts +9 -0
- package/dist/npm/models/transactions/DIDSet.d.ts.map +1 -0
- package/dist/npm/models/transactions/DIDSet.js +18 -0
- package/dist/npm/models/transactions/DIDSet.js.map +1 -0
- package/dist/npm/models/transactions/index.d.ts +2 -0
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +3 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +20 -12
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/snippets/src/bridgeTransfer.js +2 -3
- package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.d.ts +1 -3
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +0 -7
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +2 -1
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts +1 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/DID.d.ts +11 -0
- package/dist/npm/src/models/ledger/DID.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/DID.js +3 -0
- package/dist/npm/src/models/ledger/DID.js.map +1 -0
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +2 -1
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/index.d.ts +4 -3
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +1 -0
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/serverDefinitions.d.ts +32 -0
- package/dist/npm/src/models/methods/serverDefinitions.d.ts.map +1 -0
- package/dist/npm/src/models/methods/serverDefinitions.js +3 -0
- package/dist/npm/src/models/methods/serverDefinitions.js.map +1 -0
- package/dist/npm/src/models/methods/tx.d.ts +3 -1
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/DIDDelete.d.ts +6 -0
- package/dist/npm/src/models/transactions/DIDDelete.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/DIDDelete.js +9 -0
- package/dist/npm/src/models/transactions/DIDDelete.js.map +1 -0
- package/dist/npm/src/models/transactions/DIDSet.d.ts +9 -0
- package/dist/npm/src/models/transactions/DIDSet.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/DIDSet.js +18 -0
- package/dist/npm/src/models/transactions/DIDSet.js.map +1 -0
- package/dist/npm/src/models/transactions/index.d.ts +2 -0
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +3 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +20 -12
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/utils/parseNFTokenID.d.ts.map +1 -1
- package/dist/npm/src/utils/parseNFTokenID.js +10 -1
- package/dist/npm/src/utils/parseNFTokenID.js.map +1 -1
- package/dist/npm/utils/parseNFTokenID.d.ts.map +1 -1
- package/dist/npm/utils/parseNFTokenID.js +10 -1
- package/dist/npm/utils/parseNFTokenID.js.map +1 -1
- package/package.json +3 -3
- package/src/Wallet/defaultFaucets.ts +0 -8
- package/src/Wallet/fundWallet.ts +1 -1
- package/src/client/index.ts +5 -0
- package/src/models/ledger/Bridge.ts +7 -7
- package/src/models/ledger/DID.ts +22 -0
- package/src/models/ledger/LedgerEntry.ts +1 -0
- package/src/models/ledger/index.ts +2 -0
- package/src/models/methods/index.ts +8 -0
- package/src/models/methods/ledgerEntry.ts +6 -0
- package/src/models/methods/nftInfo.ts +1 -1
- package/src/models/methods/serverDefinitions.ts +61 -0
- package/src/models/methods/subscribe.ts +1 -1
- package/src/models/methods/tx.ts +12 -1
- package/src/models/transactions/DIDDelete.ts +20 -0
- package/src/models/transactions/DIDSet.ts +49 -0
- package/src/models/transactions/XChainAccountCreateCommit.ts +1 -1
- package/src/models/transactions/index.ts +2 -0
- package/src/models/transactions/transaction.ts +32 -20
- package/src/utils/parseNFTokenID.ts +11 -1
package/build/xrpl-latest.js
CHANGED
@@ -6411,7 +6411,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;var bigInt = (function (undefined) {
|
|
6411
6411
|
|
6412
6412
|
BigInteger.prototype.toString = function (radix, alphabet) {
|
6413
6413
|
if (radix === undefined) radix = 10;
|
6414
|
-
if (radix !== 10) return toBaseString(this, radix, alphabet);
|
6414
|
+
if (radix !== 10 || alphabet) return toBaseString(this, radix, alphabet);
|
6415
6415
|
var v = this.value, l = v.length, str = String(v[--l]), zeros = "0000000", digit;
|
6416
6416
|
while (--l >= 0) {
|
6417
6417
|
digit = String(v[l]);
|
@@ -6423,7 +6423,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;var bigInt = (function (undefined) {
|
|
6423
6423
|
|
6424
6424
|
SmallInteger.prototype.toString = function (radix, alphabet) {
|
6425
6425
|
if (radix === undefined) radix = 10;
|
6426
|
-
if (radix != 10) return toBaseString(this, radix, alphabet);
|
6426
|
+
if (radix != 10 || alphabet) return toBaseString(this, radix, alphabet);
|
6427
6427
|
return String(this.value);
|
6428
6428
|
};
|
6429
6429
|
|
@@ -15023,7 +15023,10 @@ module.exports = crt
|
|
15023
15023
|
\***************************************************/
|
15024
15024
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
15025
15025
|
|
15026
|
-
|
15026
|
+
"use strict";
|
15027
|
+
|
15028
|
+
|
15029
|
+
module.exports = __webpack_require__(/*! ./browser/algorithms.json */ "../../node_modules/browserify-sign/browser/algorithms.json");
|
15027
15030
|
|
15028
15031
|
|
15029
15032
|
/***/ }),
|
@@ -15034,90 +15037,91 @@ module.exports = __webpack_require__(/*! ./browser/algorithms.json */ "../../nod
|
|
15034
15037
|
\***********************************************************/
|
15035
15038
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
15036
15039
|
|
15037
|
-
|
15038
|
-
|
15039
|
-
|
15040
|
-
var
|
15041
|
-
var
|
15042
|
-
var
|
15040
|
+
"use strict";
|
15041
|
+
|
15042
|
+
|
15043
|
+
var Buffer = (__webpack_require__(/*! safe-buffer */ "../../node_modules/safe-buffer/index.js").Buffer);
|
15044
|
+
var createHash = __webpack_require__(/*! create-hash */ "../../node_modules/create-hash/browser.js");
|
15045
|
+
var stream = __webpack_require__(/*! readable-stream */ "../../node_modules/readable-stream/readable-browser.js");
|
15046
|
+
var inherits = __webpack_require__(/*! inherits */ "../../node_modules/inherits/inherits_browser.js");
|
15047
|
+
var sign = __webpack_require__(/*! ./sign */ "../../node_modules/browserify-sign/browser/sign.js");
|
15048
|
+
var verify = __webpack_require__(/*! ./verify */ "../../node_modules/browserify-sign/browser/verify.js");
|
15043
15049
|
|
15044
|
-
var algorithms = __webpack_require__(/*! ./algorithms.json */ "../../node_modules/browserify-sign/browser/algorithms.json")
|
15050
|
+
var algorithms = __webpack_require__(/*! ./algorithms.json */ "../../node_modules/browserify-sign/browser/algorithms.json");
|
15045
15051
|
Object.keys(algorithms).forEach(function (key) {
|
15046
|
-
algorithms[key].id = Buffer.from(algorithms[key].id, 'hex')
|
15047
|
-
algorithms[key.toLowerCase()] = algorithms[key]
|
15048
|
-
})
|
15052
|
+
algorithms[key].id = Buffer.from(algorithms[key].id, 'hex');
|
15053
|
+
algorithms[key.toLowerCase()] = algorithms[key];
|
15054
|
+
});
|
15049
15055
|
|
15050
|
-
function Sign
|
15051
|
-
stream.Writable.call(this)
|
15056
|
+
function Sign(algorithm) {
|
15057
|
+
stream.Writable.call(this);
|
15052
15058
|
|
15053
|
-
var data = algorithms[algorithm]
|
15054
|
-
if (!data) throw new Error('Unknown message digest')
|
15059
|
+
var data = algorithms[algorithm];
|
15060
|
+
if (!data) { throw new Error('Unknown message digest'); }
|
15055
15061
|
|
15056
|
-
this._hashType = data.hash
|
15057
|
-
this._hash = createHash(data.hash)
|
15058
|
-
this._tag = data.id
|
15059
|
-
this._signType = data.sign
|
15062
|
+
this._hashType = data.hash;
|
15063
|
+
this._hash = createHash(data.hash);
|
15064
|
+
this._tag = data.id;
|
15065
|
+
this._signType = data.sign;
|
15060
15066
|
}
|
15061
|
-
inherits(Sign, stream.Writable)
|
15067
|
+
inherits(Sign, stream.Writable);
|
15062
15068
|
|
15063
|
-
Sign.prototype._write = function _write
|
15064
|
-
this._hash.update(data)
|
15065
|
-
done()
|
15066
|
-
}
|
15069
|
+
Sign.prototype._write = function _write(data, _, done) {
|
15070
|
+
this._hash.update(data);
|
15071
|
+
done();
|
15072
|
+
};
|
15067
15073
|
|
15068
|
-
Sign.prototype.update = function update
|
15069
|
-
|
15074
|
+
Sign.prototype.update = function update(data, enc) {
|
15075
|
+
this._hash.update(typeof data === 'string' ? Buffer.from(data, enc) : data);
|
15070
15076
|
|
15071
|
-
this
|
15072
|
-
|
15073
|
-
}
|
15077
|
+
return this;
|
15078
|
+
};
|
15074
15079
|
|
15075
|
-
Sign.prototype.sign = function signMethod
|
15076
|
-
this.end()
|
15077
|
-
var hash = this._hash.digest()
|
15078
|
-
var sig = sign(hash, key, this._hashType, this._signType, this._tag)
|
15080
|
+
Sign.prototype.sign = function signMethod(key, enc) {
|
15081
|
+
this.end();
|
15082
|
+
var hash = this._hash.digest();
|
15083
|
+
var sig = sign(hash, key, this._hashType, this._signType, this._tag);
|
15079
15084
|
|
15080
|
-
return enc ? sig.toString(enc) : sig
|
15081
|
-
}
|
15085
|
+
return enc ? sig.toString(enc) : sig;
|
15086
|
+
};
|
15082
15087
|
|
15083
|
-
function Verify
|
15084
|
-
stream.Writable.call(this)
|
15088
|
+
function Verify(algorithm) {
|
15089
|
+
stream.Writable.call(this);
|
15085
15090
|
|
15086
|
-
var data = algorithms[algorithm]
|
15087
|
-
if (!data) throw new Error('Unknown message digest')
|
15091
|
+
var data = algorithms[algorithm];
|
15092
|
+
if (!data) { throw new Error('Unknown message digest'); }
|
15088
15093
|
|
15089
|
-
this._hash = createHash(data.hash)
|
15090
|
-
this._tag = data.id
|
15091
|
-
this._signType = data.sign
|
15094
|
+
this._hash = createHash(data.hash);
|
15095
|
+
this._tag = data.id;
|
15096
|
+
this._signType = data.sign;
|
15092
15097
|
}
|
15093
|
-
inherits(Verify, stream.Writable)
|
15098
|
+
inherits(Verify, stream.Writable);
|
15094
15099
|
|
15095
|
-
Verify.prototype._write = function _write
|
15096
|
-
this._hash.update(data)
|
15097
|
-
done()
|
15098
|
-
}
|
15100
|
+
Verify.prototype._write = function _write(data, _, done) {
|
15101
|
+
this._hash.update(data);
|
15102
|
+
done();
|
15103
|
+
};
|
15099
15104
|
|
15100
|
-
Verify.prototype.update = function update
|
15101
|
-
|
15105
|
+
Verify.prototype.update = function update(data, enc) {
|
15106
|
+
this._hash.update(typeof data === 'string' ? Buffer.from(data, enc) : data);
|
15102
15107
|
|
15103
|
-
this
|
15104
|
-
|
15105
|
-
}
|
15108
|
+
return this;
|
15109
|
+
};
|
15106
15110
|
|
15107
|
-
Verify.prototype.verify = function verifyMethod
|
15108
|
-
|
15111
|
+
Verify.prototype.verify = function verifyMethod(key, sig, enc) {
|
15112
|
+
var sigBuffer = typeof sig === 'string' ? Buffer.from(sig, enc) : sig;
|
15109
15113
|
|
15110
|
-
this.end()
|
15111
|
-
var hash = this._hash.digest()
|
15112
|
-
return verify(
|
15113
|
-
}
|
15114
|
+
this.end();
|
15115
|
+
var hash = this._hash.digest();
|
15116
|
+
return verify(sigBuffer, hash, key, this._signType, this._tag);
|
15117
|
+
};
|
15114
15118
|
|
15115
|
-
function createSign
|
15116
|
-
return new Sign(algorithm)
|
15119
|
+
function createSign(algorithm) {
|
15120
|
+
return new Sign(algorithm);
|
15117
15121
|
}
|
15118
15122
|
|
15119
|
-
function createVerify
|
15120
|
-
return new Verify(algorithm)
|
15123
|
+
function createVerify(algorithm) {
|
15124
|
+
return new Verify(algorithm);
|
15121
15125
|
}
|
15122
15126
|
|
15123
15127
|
module.exports = {
|
@@ -15125,7 +15129,7 @@ module.exports = {
|
|
15125
15129
|
Verify: createVerify,
|
15126
15130
|
createSign: createSign,
|
15127
15131
|
createVerify: createVerify
|
15128
|
-
}
|
15132
|
+
};
|
15129
15133
|
|
15130
15134
|
|
15131
15135
|
/***/ }),
|
@@ -15136,149 +15140,157 @@ module.exports = {
|
|
15136
15140
|
\**********************************************************/
|
15137
15141
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
15138
15142
|
|
15143
|
+
"use strict";
|
15144
|
+
|
15145
|
+
|
15139
15146
|
// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
|
15140
|
-
var Buffer = (__webpack_require__(/*! safe-buffer */ "../../node_modules/safe-buffer/index.js").Buffer)
|
15141
|
-
var createHmac = __webpack_require__(/*! create-hmac */ "../../node_modules/create-hmac/browser.js")
|
15142
|
-
var crt = __webpack_require__(/*! browserify-rsa */ "../../node_modules/browserify-rsa/index.js")
|
15143
|
-
var EC = (__webpack_require__(/*! elliptic */ "../../node_modules/elliptic/lib/elliptic.js").ec)
|
15144
|
-
var BN = __webpack_require__(/*! bn.js */ "../../node_modules/bn.js/lib/bn.js")
|
15145
|
-
var parseKeys = __webpack_require__(/*! parse-asn1 */ "../../node_modules/parse-asn1/index.js")
|
15146
|
-
var curves = __webpack_require__(/*! ./curves.json */ "../../node_modules/browserify-sign/browser/curves.json")
|
15147
|
+
var Buffer = (__webpack_require__(/*! safe-buffer */ "../../node_modules/safe-buffer/index.js").Buffer);
|
15148
|
+
var createHmac = __webpack_require__(/*! create-hmac */ "../../node_modules/create-hmac/browser.js");
|
15149
|
+
var crt = __webpack_require__(/*! browserify-rsa */ "../../node_modules/browserify-rsa/index.js");
|
15150
|
+
var EC = (__webpack_require__(/*! elliptic */ "../../node_modules/elliptic/lib/elliptic.js").ec);
|
15151
|
+
var BN = __webpack_require__(/*! bn.js */ "../../node_modules/bn.js/lib/bn.js");
|
15152
|
+
var parseKeys = __webpack_require__(/*! parse-asn1 */ "../../node_modules/parse-asn1/index.js");
|
15153
|
+
var curves = __webpack_require__(/*! ./curves.json */ "../../node_modules/browserify-sign/browser/curves.json");
|
15154
|
+
|
15155
|
+
var RSA_PKCS1_PADDING = 1;
|
15147
15156
|
|
15148
|
-
function sign
|
15149
|
-
var priv = parseKeys(key)
|
15157
|
+
function sign(hash, key, hashType, signType, tag) {
|
15158
|
+
var priv = parseKeys(key);
|
15150
15159
|
if (priv.curve) {
|
15151
15160
|
// rsa keys can be interpreted as ecdsa ones in openssl
|
15152
|
-
if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type')
|
15153
|
-
return ecSign(hash, priv)
|
15161
|
+
if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') { throw new Error('wrong private key type'); }
|
15162
|
+
return ecSign(hash, priv);
|
15154
15163
|
} else if (priv.type === 'dsa') {
|
15155
|
-
if (signType !== 'dsa') throw new Error('wrong private key type')
|
15156
|
-
return dsaSign(hash, priv, hashType)
|
15157
|
-
} else {
|
15158
|
-
if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong private key type')
|
15164
|
+
if (signType !== 'dsa') { throw new Error('wrong private key type'); }
|
15165
|
+
return dsaSign(hash, priv, hashType);
|
15159
15166
|
}
|
15160
|
-
|
15161
|
-
|
15162
|
-
var pad = [0, 1]
|
15163
|
-
while (hash.length + pad.length + 1 < len) pad.push(0xff)
|
15164
|
-
pad.push(0x00)
|
15165
|
-
var i = -1
|
15166
|
-
while (++i < hash.length) pad.push(hash[i])
|
15167
|
+
if (signType !== 'rsa' && signType !== 'ecdsa/rsa') { throw new Error('wrong private key type'); }
|
15168
|
+
if (key.padding !== undefined && key.padding !== RSA_PKCS1_PADDING) { throw new Error('illegal or unsupported padding mode'); }
|
15167
15169
|
|
15168
|
-
|
15169
|
-
|
15170
|
+
hash = Buffer.concat([tag, hash]);
|
15171
|
+
var len = priv.modulus.byteLength();
|
15172
|
+
var pad = [0, 1];
|
15173
|
+
while (hash.length + pad.length + 1 < len) { pad.push(0xff); }
|
15174
|
+
pad.push(0x00);
|
15175
|
+
var i = -1;
|
15176
|
+
while (++i < hash.length) { pad.push(hash[i]); }
|
15177
|
+
|
15178
|
+
var out = crt(pad, priv);
|
15179
|
+
return out;
|
15170
15180
|
}
|
15171
15181
|
|
15172
|
-
function ecSign
|
15173
|
-
var curveId = curves[priv.curve.join('.')]
|
15174
|
-
if (!curveId) throw new Error('unknown curve ' + priv.curve.join('.'))
|
15182
|
+
function ecSign(hash, priv) {
|
15183
|
+
var curveId = curves[priv.curve.join('.')];
|
15184
|
+
if (!curveId) { throw new Error('unknown curve ' + priv.curve.join('.')); }
|
15175
15185
|
|
15176
|
-
var curve = new EC(curveId)
|
15177
|
-
var key = curve.keyFromPrivate(priv.privateKey)
|
15178
|
-
var out = key.sign(hash)
|
15186
|
+
var curve = new EC(curveId);
|
15187
|
+
var key = curve.keyFromPrivate(priv.privateKey);
|
15188
|
+
var out = key.sign(hash);
|
15179
15189
|
|
15180
|
-
return Buffer.from(out.toDER())
|
15190
|
+
return Buffer.from(out.toDER());
|
15181
15191
|
}
|
15182
15192
|
|
15183
|
-
function dsaSign
|
15184
|
-
var x = priv.params.priv_key
|
15185
|
-
var p = priv.params.p
|
15186
|
-
var q = priv.params.q
|
15187
|
-
var g = priv.params.g
|
15188
|
-
var r = new BN(0)
|
15189
|
-
var k
|
15190
|
-
var H = bits2int(hash, q).mod(q)
|
15191
|
-
var s = false
|
15192
|
-
var kv = getKey(x, q, hash, algo)
|
15193
|
+
function dsaSign(hash, priv, algo) {
|
15194
|
+
var x = priv.params.priv_key;
|
15195
|
+
var p = priv.params.p;
|
15196
|
+
var q = priv.params.q;
|
15197
|
+
var g = priv.params.g;
|
15198
|
+
var r = new BN(0);
|
15199
|
+
var k;
|
15200
|
+
var H = bits2int(hash, q).mod(q);
|
15201
|
+
var s = false;
|
15202
|
+
var kv = getKey(x, q, hash, algo);
|
15193
15203
|
while (s === false) {
|
15194
|
-
k = makeKey(q, kv, algo)
|
15195
|
-
r = makeR(g, k, p, q)
|
15196
|
-
s = k.invm(q).imul(H.add(x.mul(r))).mod(q)
|
15204
|
+
k = makeKey(q, kv, algo);
|
15205
|
+
r = makeR(g, k, p, q);
|
15206
|
+
s = k.invm(q).imul(H.add(x.mul(r))).mod(q);
|
15197
15207
|
if (s.cmpn(0) === 0) {
|
15198
|
-
s = false
|
15199
|
-
r = new BN(0)
|
15208
|
+
s = false;
|
15209
|
+
r = new BN(0);
|
15200
15210
|
}
|
15201
15211
|
}
|
15202
|
-
return toDER(r, s)
|
15212
|
+
return toDER(r, s);
|
15203
15213
|
}
|
15204
15214
|
|
15205
|
-
function toDER
|
15206
|
-
r = r.toArray()
|
15207
|
-
s = s.toArray()
|
15215
|
+
function toDER(r, s) {
|
15216
|
+
r = r.toArray();
|
15217
|
+
s = s.toArray();
|
15208
15218
|
|
15209
15219
|
// Pad values
|
15210
|
-
if (r[0] & 0x80) r = [0].concat(r)
|
15211
|
-
if (s[0] & 0x80) s = [0].concat(s)
|
15220
|
+
if (r[0] & 0x80) { r = [0].concat(r); }
|
15221
|
+
if (s[0] & 0x80) { s = [0].concat(s); }
|
15212
15222
|
|
15213
|
-
var total = r.length + s.length + 4
|
15214
|
-
var res = [
|
15215
|
-
|
15216
|
-
|
15223
|
+
var total = r.length + s.length + 4;
|
15224
|
+
var res = [
|
15225
|
+
0x30, total, 0x02, r.length
|
15226
|
+
];
|
15227
|
+
res = res.concat(r, [0x02, s.length], s);
|
15228
|
+
return Buffer.from(res);
|
15217
15229
|
}
|
15218
15230
|
|
15219
|
-
function getKey
|
15220
|
-
x = Buffer.from(x.toArray())
|
15231
|
+
function getKey(x, q, hash, algo) {
|
15232
|
+
x = Buffer.from(x.toArray());
|
15221
15233
|
if (x.length < q.byteLength()) {
|
15222
|
-
var zeros = Buffer.alloc(q.byteLength() - x.length)
|
15223
|
-
x = Buffer.concat([zeros, x])
|
15224
|
-
}
|
15225
|
-
var hlen = hash.length
|
15226
|
-
var hbits = bits2octets(hash, q)
|
15227
|
-
var v = Buffer.alloc(hlen)
|
15228
|
-
v.fill(1)
|
15229
|
-
var k = Buffer.alloc(hlen)
|
15230
|
-
k = createHmac(algo, k).update(v).update(Buffer.from([0])).update(x).update(hbits).digest()
|
15231
|
-
v = createHmac(algo, k).update(v).digest()
|
15232
|
-
k = createHmac(algo, k).update(v).update(Buffer.from([1])).update(x).update(hbits).digest()
|
15233
|
-
v = createHmac(algo, k).update(v).digest()
|
15234
|
-
return { k: k, v: v }
|
15235
|
-
}
|
15236
|
-
|
15237
|
-
function bits2int
|
15238
|
-
var bits = new BN(obits)
|
15239
|
-
var shift = (obits.length << 3) - q.bitLength()
|
15240
|
-
if (shift > 0) bits.ishrn(shift)
|
15241
|
-
return bits
|
15242
|
-
}
|
15243
|
-
|
15244
|
-
function bits2octets
|
15245
|
-
bits = bits2int(bits, q)
|
15246
|
-
bits = bits.mod(q)
|
15247
|
-
var out = Buffer.from(bits.toArray())
|
15234
|
+
var zeros = Buffer.alloc(q.byteLength() - x.length);
|
15235
|
+
x = Buffer.concat([zeros, x]);
|
15236
|
+
}
|
15237
|
+
var hlen = hash.length;
|
15238
|
+
var hbits = bits2octets(hash, q);
|
15239
|
+
var v = Buffer.alloc(hlen);
|
15240
|
+
v.fill(1);
|
15241
|
+
var k = Buffer.alloc(hlen);
|
15242
|
+
k = createHmac(algo, k).update(v).update(Buffer.from([0])).update(x).update(hbits).digest();
|
15243
|
+
v = createHmac(algo, k).update(v).digest();
|
15244
|
+
k = createHmac(algo, k).update(v).update(Buffer.from([1])).update(x).update(hbits).digest();
|
15245
|
+
v = createHmac(algo, k).update(v).digest();
|
15246
|
+
return { k: k, v: v };
|
15247
|
+
}
|
15248
|
+
|
15249
|
+
function bits2int(obits, q) {
|
15250
|
+
var bits = new BN(obits);
|
15251
|
+
var shift = (obits.length << 3) - q.bitLength();
|
15252
|
+
if (shift > 0) { bits.ishrn(shift); }
|
15253
|
+
return bits;
|
15254
|
+
}
|
15255
|
+
|
15256
|
+
function bits2octets(bits, q) {
|
15257
|
+
bits = bits2int(bits, q);
|
15258
|
+
bits = bits.mod(q);
|
15259
|
+
var out = Buffer.from(bits.toArray());
|
15248
15260
|
if (out.length < q.byteLength()) {
|
15249
|
-
var zeros = Buffer.alloc(q.byteLength() - out.length)
|
15250
|
-
out = Buffer.concat([zeros, out])
|
15261
|
+
var zeros = Buffer.alloc(q.byteLength() - out.length);
|
15262
|
+
out = Buffer.concat([zeros, out]);
|
15251
15263
|
}
|
15252
|
-
return out
|
15264
|
+
return out;
|
15253
15265
|
}
|
15254
15266
|
|
15255
|
-
function makeKey
|
15256
|
-
var t
|
15257
|
-
var k
|
15267
|
+
function makeKey(q, kv, algo) {
|
15268
|
+
var t;
|
15269
|
+
var k;
|
15258
15270
|
|
15259
15271
|
do {
|
15260
|
-
t = Buffer.alloc(0)
|
15272
|
+
t = Buffer.alloc(0);
|
15261
15273
|
|
15262
15274
|
while (t.length * 8 < q.bitLength()) {
|
15263
|
-
kv.v = createHmac(algo, kv.k).update(kv.v).digest()
|
15264
|
-
t = Buffer.concat([t, kv.v])
|
15275
|
+
kv.v = createHmac(algo, kv.k).update(kv.v).digest();
|
15276
|
+
t = Buffer.concat([t, kv.v]);
|
15265
15277
|
}
|
15266
15278
|
|
15267
|
-
k = bits2int(t, q)
|
15268
|
-
kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer.from([0])).digest()
|
15269
|
-
kv.v = createHmac(algo, kv.k).update(kv.v).digest()
|
15270
|
-
} while (k.cmp(q) !== -1)
|
15279
|
+
k = bits2int(t, q);
|
15280
|
+
kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer.from([0])).digest();
|
15281
|
+
kv.v = createHmac(algo, kv.k).update(kv.v).digest();
|
15282
|
+
} while (k.cmp(q) !== -1);
|
15271
15283
|
|
15272
|
-
return k
|
15284
|
+
return k;
|
15273
15285
|
}
|
15274
15286
|
|
15275
|
-
function makeR
|
15276
|
-
return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q)
|
15287
|
+
function makeR(g, k, p, q) {
|
15288
|
+
return g.toRed(BN.mont(p)).redPow(k).fromRed().mod(q);
|
15277
15289
|
}
|
15278
15290
|
|
15279
|
-
module.exports = sign
|
15280
|
-
module.exports.getKey = getKey
|
15281
|
-
module.exports.makeKey = makeKey
|
15291
|
+
module.exports = sign;
|
15292
|
+
module.exports.getKey = getKey;
|
15293
|
+
module.exports.makeKey = makeKey;
|
15282
15294
|
|
15283
15295
|
|
15284
15296
|
/***/ }),
|
@@ -15289,90 +15301,93 @@ module.exports.makeKey = makeKey
|
|
15289
15301
|
\************************************************************/
|
15290
15302
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
15291
15303
|
|
15304
|
+
"use strict";
|
15305
|
+
|
15306
|
+
|
15292
15307
|
// much of this based on https://github.com/indutny/self-signed/blob/gh-pages/lib/rsa.js
|
15293
|
-
var Buffer = (__webpack_require__(/*! safe-buffer */ "../../node_modules/safe-buffer/index.js").Buffer)
|
15294
|
-
var BN = __webpack_require__(/*! bn.js */ "../../node_modules/bn.js/lib/bn.js")
|
15295
|
-
var EC = (__webpack_require__(/*! elliptic */ "../../node_modules/elliptic/lib/elliptic.js").ec)
|
15296
|
-
var parseKeys = __webpack_require__(/*! parse-asn1 */ "../../node_modules/parse-asn1/index.js")
|
15297
|
-
var curves = __webpack_require__(/*! ./curves.json */ "../../node_modules/browserify-sign/browser/curves.json")
|
15308
|
+
var Buffer = (__webpack_require__(/*! safe-buffer */ "../../node_modules/safe-buffer/index.js").Buffer);
|
15309
|
+
var BN = __webpack_require__(/*! bn.js */ "../../node_modules/bn.js/lib/bn.js");
|
15310
|
+
var EC = (__webpack_require__(/*! elliptic */ "../../node_modules/elliptic/lib/elliptic.js").ec);
|
15311
|
+
var parseKeys = __webpack_require__(/*! parse-asn1 */ "../../node_modules/parse-asn1/index.js");
|
15312
|
+
var curves = __webpack_require__(/*! ./curves.json */ "../../node_modules/browserify-sign/browser/curves.json");
|
15298
15313
|
|
15299
|
-
function verify
|
15300
|
-
var pub = parseKeys(key)
|
15314
|
+
function verify(sig, hash, key, signType, tag) {
|
15315
|
+
var pub = parseKeys(key);
|
15301
15316
|
if (pub.type === 'ec') {
|
15302
15317
|
// rsa keys can be interpreted as ecdsa ones in openssl
|
15303
|
-
if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type')
|
15304
|
-
return ecVerify(sig, hash, pub)
|
15318
|
+
if (signType !== 'ecdsa' && signType !== 'ecdsa/rsa') { throw new Error('wrong public key type'); }
|
15319
|
+
return ecVerify(sig, hash, pub);
|
15305
15320
|
} else if (pub.type === 'dsa') {
|
15306
|
-
if (signType !== 'dsa') throw new Error('wrong public key type')
|
15307
|
-
return dsaVerify(sig, hash, pub)
|
15308
|
-
} else {
|
15309
|
-
if (signType !== 'rsa' && signType !== 'ecdsa/rsa') throw new Error('wrong public key type')
|
15321
|
+
if (signType !== 'dsa') { throw new Error('wrong public key type'); }
|
15322
|
+
return dsaVerify(sig, hash, pub);
|
15310
15323
|
}
|
15311
|
-
|
15312
|
-
|
15313
|
-
|
15314
|
-
var
|
15324
|
+
if (signType !== 'rsa' && signType !== 'ecdsa/rsa') { throw new Error('wrong public key type'); }
|
15325
|
+
|
15326
|
+
hash = Buffer.concat([tag, hash]);
|
15327
|
+
var len = pub.modulus.byteLength();
|
15328
|
+
var pad = [1];
|
15329
|
+
var padNum = 0;
|
15315
15330
|
while (hash.length + pad.length + 2 < len) {
|
15316
|
-
pad.push(0xff)
|
15317
|
-
padNum
|
15331
|
+
pad.push(0xff);
|
15332
|
+
padNum += 1;
|
15318
15333
|
}
|
15319
|
-
pad.push(0x00)
|
15320
|
-
var i = -1
|
15334
|
+
pad.push(0x00);
|
15335
|
+
var i = -1;
|
15321
15336
|
while (++i < hash.length) {
|
15322
|
-
pad.push(hash[i])
|
15337
|
+
pad.push(hash[i]);
|
15323
15338
|
}
|
15324
|
-
pad = Buffer.from(pad)
|
15325
|
-
var red = BN.mont(pub.modulus)
|
15326
|
-
sig = new BN(sig).toRed(red)
|
15339
|
+
pad = Buffer.from(pad);
|
15340
|
+
var red = BN.mont(pub.modulus);
|
15341
|
+
sig = new BN(sig).toRed(red);
|
15327
15342
|
|
15328
|
-
sig = sig.redPow(new BN(pub.publicExponent))
|
15329
|
-
sig = Buffer.from(sig.fromRed().toArray())
|
15330
|
-
var out = padNum < 8 ? 1 : 0
|
15331
|
-
len = Math.min(sig.length, pad.length)
|
15332
|
-
if (sig.length !== pad.length) out = 1
|
15343
|
+
sig = sig.redPow(new BN(pub.publicExponent));
|
15344
|
+
sig = Buffer.from(sig.fromRed().toArray());
|
15345
|
+
var out = padNum < 8 ? 1 : 0;
|
15346
|
+
len = Math.min(sig.length, pad.length);
|
15347
|
+
if (sig.length !== pad.length) { out = 1; }
|
15333
15348
|
|
15334
|
-
i = -1
|
15335
|
-
while (++i < len) out |= sig[i] ^ pad[i]
|
15336
|
-
return out === 0
|
15349
|
+
i = -1;
|
15350
|
+
while (++i < len) { out |= sig[i] ^ pad[i]; }
|
15351
|
+
return out === 0;
|
15337
15352
|
}
|
15338
15353
|
|
15339
|
-
function ecVerify
|
15340
|
-
var curveId = curves[pub.data.algorithm.curve.join('.')]
|
15341
|
-
if (!curveId) throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.'))
|
15354
|
+
function ecVerify(sig, hash, pub) {
|
15355
|
+
var curveId = curves[pub.data.algorithm.curve.join('.')];
|
15356
|
+
if (!curveId) { throw new Error('unknown curve ' + pub.data.algorithm.curve.join('.')); }
|
15342
15357
|
|
15343
|
-
var curve = new EC(curveId)
|
15344
|
-
var pubkey = pub.data.subjectPrivateKey.data
|
15358
|
+
var curve = new EC(curveId);
|
15359
|
+
var pubkey = pub.data.subjectPrivateKey.data;
|
15345
15360
|
|
15346
|
-
return curve.verify(hash, sig, pubkey)
|
15361
|
+
return curve.verify(hash, sig, pubkey);
|
15347
15362
|
}
|
15348
15363
|
|
15349
|
-
function dsaVerify
|
15350
|
-
var p = pub.data.p
|
15351
|
-
var q = pub.data.q
|
15352
|
-
var g = pub.data.g
|
15353
|
-
var y = pub.data.pub_key
|
15354
|
-
var unpacked = parseKeys.signature.decode(sig, 'der')
|
15355
|
-
var s = unpacked.s
|
15356
|
-
var r = unpacked.r
|
15357
|
-
checkValue(s, q)
|
15358
|
-
checkValue(r, q)
|
15359
|
-
var montp = BN.mont(p)
|
15360
|
-
var w = s.invm(q)
|
15364
|
+
function dsaVerify(sig, hash, pub) {
|
15365
|
+
var p = pub.data.p;
|
15366
|
+
var q = pub.data.q;
|
15367
|
+
var g = pub.data.g;
|
15368
|
+
var y = pub.data.pub_key;
|
15369
|
+
var unpacked = parseKeys.signature.decode(sig, 'der');
|
15370
|
+
var s = unpacked.s;
|
15371
|
+
var r = unpacked.r;
|
15372
|
+
checkValue(s, q);
|
15373
|
+
checkValue(r, q);
|
15374
|
+
var montp = BN.mont(p);
|
15375
|
+
var w = s.invm(q);
|
15361
15376
|
var v = g.toRed(montp)
|
15362
15377
|
.redPow(new BN(hash).mul(w).mod(q))
|
15363
15378
|
.fromRed()
|
15364
15379
|
.mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed())
|
15365
15380
|
.mod(p)
|
15366
|
-
.mod(q)
|
15367
|
-
return v.cmp(r) === 0
|
15381
|
+
.mod(q);
|
15382
|
+
return v.cmp(r) === 0;
|
15368
15383
|
}
|
15369
15384
|
|
15370
|
-
function checkValue
|
15371
|
-
if (b.cmpn(0) <= 0) throw new Error('invalid sig')
|
15372
|
-
if (b.cmp(q) >=
|
15385
|
+
function checkValue(b, q) {
|
15386
|
+
if (b.cmpn(0) <= 0) { throw new Error('invalid sig'); }
|
15387
|
+
if (b.cmp(q) >= 0) { throw new Error('invalid sig'); }
|
15373
15388
|
}
|
15374
15389
|
|
15375
|
-
module.exports = verify
|
15390
|
+
module.exports = verify;
|
15376
15391
|
|
15377
15392
|
|
15378
15393
|
/***/ }),
|
@@ -17724,12 +17739,13 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
17724
17739
|
|
17725
17740
|
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
17726
17741
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
17742
|
+
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../../node_modules/set-function-length/index.js");
|
17727
17743
|
|
17744
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
17728
17745
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
17729
17746
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
17730
17747
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
17731
17748
|
|
17732
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
17733
17749
|
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
17734
17750
|
var $max = GetIntrinsic('%Math.max%');
|
17735
17751
|
|
@@ -17743,19 +17759,15 @@ if ($defineProperty) {
|
|
17743
17759
|
}
|
17744
17760
|
|
17745
17761
|
module.exports = function callBind(originalFunction) {
|
17746
|
-
|
17747
|
-
|
17748
|
-
var desc = $gOPD(func, 'length');
|
17749
|
-
if (desc.configurable) {
|
17750
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
17751
|
-
$defineProperty(
|
17752
|
-
func,
|
17753
|
-
'length',
|
17754
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
17755
|
-
);
|
17756
|
-
}
|
17762
|
+
if (typeof originalFunction !== 'function') {
|
17763
|
+
throw new $TypeError('a function is required');
|
17757
17764
|
}
|
17758
|
-
|
17765
|
+
var func = $reflectApply(bind, $call, arguments);
|
17766
|
+
return setFunctionLength(
|
17767
|
+
func,
|
17768
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
17769
|
+
true
|
17770
|
+
);
|
17759
17771
|
};
|
17760
17772
|
|
17761
17773
|
var applyBind = function applyBind() {
|
@@ -23231,6 +23243,85 @@ var __WEBPACK_AMD_DEFINE_RESULT__;;(function (globalScope) {
|
|
23231
23243
|
})(this);
|
23232
23244
|
|
23233
23245
|
|
23246
|
+
/***/ }),
|
23247
|
+
|
23248
|
+
/***/ "../../node_modules/define-data-property/index.js":
|
23249
|
+
/*!********************************************************!*\
|
23250
|
+
!*** ../../node_modules/define-data-property/index.js ***!
|
23251
|
+
\********************************************************/
|
23252
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
23253
|
+
|
23254
|
+
"use strict";
|
23255
|
+
|
23256
|
+
|
23257
|
+
var hasPropertyDescriptors = __webpack_require__(/*! has-property-descriptors */ "../../node_modules/has-property-descriptors/index.js")();
|
23258
|
+
|
23259
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
23260
|
+
|
23261
|
+
var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
|
23262
|
+
if ($defineProperty) {
|
23263
|
+
try {
|
23264
|
+
$defineProperty({}, 'a', { value: 1 });
|
23265
|
+
} catch (e) {
|
23266
|
+
// IE 8 has a broken defineProperty
|
23267
|
+
$defineProperty = false;
|
23268
|
+
}
|
23269
|
+
}
|
23270
|
+
|
23271
|
+
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
23272
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
23273
|
+
|
23274
|
+
var gopd = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
23275
|
+
|
23276
|
+
/** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
|
23277
|
+
module.exports = function defineDataProperty(
|
23278
|
+
obj,
|
23279
|
+
property,
|
23280
|
+
value
|
23281
|
+
) {
|
23282
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
23283
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
23284
|
+
}
|
23285
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
23286
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
23287
|
+
}
|
23288
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
23289
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
23290
|
+
}
|
23291
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
23292
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
23293
|
+
}
|
23294
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
23295
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
23296
|
+
}
|
23297
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
23298
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
23299
|
+
}
|
23300
|
+
|
23301
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
23302
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
23303
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
23304
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
23305
|
+
|
23306
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
23307
|
+
var desc = !!gopd && gopd(obj, property);
|
23308
|
+
|
23309
|
+
if ($defineProperty) {
|
23310
|
+
$defineProperty(obj, property, {
|
23311
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
23312
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
23313
|
+
value: value,
|
23314
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
23315
|
+
});
|
23316
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
23317
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
23318
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
23319
|
+
} else {
|
23320
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
23321
|
+
}
|
23322
|
+
};
|
23323
|
+
|
23324
|
+
|
23234
23325
|
/***/ }),
|
23235
23326
|
|
23236
23327
|
/***/ "../../node_modules/define-properties/index.js":
|
@@ -32506,43 +32597,75 @@ module.exports = forEach;
|
|
32506
32597
|
/* eslint no-invalid-this: 1 */
|
32507
32598
|
|
32508
32599
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
32509
|
-
var slice = Array.prototype.slice;
|
32510
32600
|
var toStr = Object.prototype.toString;
|
32601
|
+
var max = Math.max;
|
32511
32602
|
var funcType = '[object Function]';
|
32512
32603
|
|
32604
|
+
var concatty = function concatty(a, b) {
|
32605
|
+
var arr = [];
|
32606
|
+
|
32607
|
+
for (var i = 0; i < a.length; i += 1) {
|
32608
|
+
arr[i] = a[i];
|
32609
|
+
}
|
32610
|
+
for (var j = 0; j < b.length; j += 1) {
|
32611
|
+
arr[j + a.length] = b[j];
|
32612
|
+
}
|
32613
|
+
|
32614
|
+
return arr;
|
32615
|
+
};
|
32616
|
+
|
32617
|
+
var slicy = function slicy(arrLike, offset) {
|
32618
|
+
var arr = [];
|
32619
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
32620
|
+
arr[j] = arrLike[i];
|
32621
|
+
}
|
32622
|
+
return arr;
|
32623
|
+
};
|
32624
|
+
|
32625
|
+
var joiny = function (arr, joiner) {
|
32626
|
+
var str = '';
|
32627
|
+
for (var i = 0; i < arr.length; i += 1) {
|
32628
|
+
str += arr[i];
|
32629
|
+
if (i + 1 < arr.length) {
|
32630
|
+
str += joiner;
|
32631
|
+
}
|
32632
|
+
}
|
32633
|
+
return str;
|
32634
|
+
};
|
32635
|
+
|
32513
32636
|
module.exports = function bind(that) {
|
32514
32637
|
var target = this;
|
32515
|
-
if (typeof target !== 'function' || toStr.
|
32638
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
32516
32639
|
throw new TypeError(ERROR_MESSAGE + target);
|
32517
32640
|
}
|
32518
|
-
var args =
|
32641
|
+
var args = slicy(arguments, 1);
|
32519
32642
|
|
32520
32643
|
var bound;
|
32521
32644
|
var binder = function () {
|
32522
32645
|
if (this instanceof bound) {
|
32523
32646
|
var result = target.apply(
|
32524
32647
|
this,
|
32525
|
-
args
|
32648
|
+
concatty(args, arguments)
|
32526
32649
|
);
|
32527
32650
|
if (Object(result) === result) {
|
32528
32651
|
return result;
|
32529
32652
|
}
|
32530
32653
|
return this;
|
32531
|
-
} else {
|
32532
|
-
return target.apply(
|
32533
|
-
that,
|
32534
|
-
args.concat(slice.call(arguments))
|
32535
|
-
);
|
32536
32654
|
}
|
32655
|
+
return target.apply(
|
32656
|
+
that,
|
32657
|
+
concatty(args, arguments)
|
32658
|
+
);
|
32659
|
+
|
32537
32660
|
};
|
32538
32661
|
|
32539
|
-
var boundLength =
|
32662
|
+
var boundLength = max(0, target.length - args.length);
|
32540
32663
|
var boundArgs = [];
|
32541
32664
|
for (var i = 0; i < boundLength; i++) {
|
32542
|
-
boundArgs
|
32665
|
+
boundArgs[i] = '$' + i;
|
32543
32666
|
}
|
32544
32667
|
|
32545
|
-
bound = Function('binder', 'return function (' + boundArgs
|
32668
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
32546
32669
|
|
32547
32670
|
if (target.prototype) {
|
32548
32671
|
var Empty = function Empty() {};
|
@@ -32796,7 +32919,7 @@ var LEGACY_ALIASES = {
|
|
32796
32919
|
};
|
32797
32920
|
|
32798
32921
|
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
32799
|
-
var hasOwn = __webpack_require__(/*!
|
32922
|
+
var hasOwn = __webpack_require__(/*! hasown */ "../../node_modules/hasown/index.js");
|
32800
32923
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
32801
32924
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
32802
32925
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
@@ -33121,22 +33244,6 @@ module.exports = function hasToStringTagShams() {
|
|
33121
33244
|
};
|
33122
33245
|
|
33123
33246
|
|
33124
|
-
/***/ }),
|
33125
|
-
|
33126
|
-
/***/ "../../node_modules/has/src/index.js":
|
33127
|
-
/*!*******************************************!*\
|
33128
|
-
!*** ../../node_modules/has/src/index.js ***!
|
33129
|
-
\*******************************************/
|
33130
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
33131
|
-
|
33132
|
-
"use strict";
|
33133
|
-
|
33134
|
-
|
33135
|
-
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
33136
|
-
|
33137
|
-
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
33138
|
-
|
33139
|
-
|
33140
33247
|
/***/ }),
|
33141
33248
|
|
33142
33249
|
/***/ "../../node_modules/hash-base/index.js":
|
@@ -34582,6 +34689,25 @@ function shr64_lo(ah, al, num) {
|
|
34582
34689
|
exports.shr64_lo = shr64_lo;
|
34583
34690
|
|
34584
34691
|
|
34692
|
+
/***/ }),
|
34693
|
+
|
34694
|
+
/***/ "../../node_modules/hasown/index.js":
|
34695
|
+
/*!******************************************!*\
|
34696
|
+
!*** ../../node_modules/hasown/index.js ***!
|
34697
|
+
\******************************************/
|
34698
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
34699
|
+
|
34700
|
+
"use strict";
|
34701
|
+
|
34702
|
+
|
34703
|
+
var call = Function.prototype.call;
|
34704
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
34705
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
34706
|
+
|
34707
|
+
/** @type {(o: {}, p: PropertyKey) => p is keyof o} */
|
34708
|
+
module.exports = bind.call(call, $hasOwn);
|
34709
|
+
|
34710
|
+
|
34585
34711
|
/***/ }),
|
34586
34712
|
|
34587
34713
|
/***/ "../../node_modules/hmac-drbg/lib/hmac-drbg.js":
|
@@ -35192,63 +35318,10 @@ module.exports = function shimNumberIsNaN() {
|
|
35192
35318
|
"use strict";
|
35193
35319
|
|
35194
35320
|
|
35195
|
-
var
|
35196
|
-
var availableTypedArrays = __webpack_require__(/*! available-typed-arrays */ "../../node_modules/available-typed-arrays/index.js");
|
35197
|
-
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
35198
|
-
|
35199
|
-
var $toString = callBound('Object.prototype.toString');
|
35200
|
-
var hasToStringTag = __webpack_require__(/*! has-tostringtag/shams */ "../../node_modules/has-tostringtag/shams.js")();
|
35201
|
-
var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
35202
|
-
|
35203
|
-
var g = typeof globalThis === 'undefined' ? __webpack_require__.g : globalThis;
|
35204
|
-
var typedArrays = availableTypedArrays();
|
35205
|
-
|
35206
|
-
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
35207
|
-
for (var i = 0; i < array.length; i += 1) {
|
35208
|
-
if (array[i] === value) {
|
35209
|
-
return i;
|
35210
|
-
}
|
35211
|
-
}
|
35212
|
-
return -1;
|
35213
|
-
};
|
35214
|
-
var $slice = callBound('String.prototype.slice');
|
35215
|
-
var toStrTags = {};
|
35216
|
-
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
35217
|
-
if (hasToStringTag && gOPD && getPrototypeOf) {
|
35218
|
-
forEach(typedArrays, function (typedArray) {
|
35219
|
-
var arr = new g[typedArray]();
|
35220
|
-
if (Symbol.toStringTag in arr) {
|
35221
|
-
var proto = getPrototypeOf(arr);
|
35222
|
-
var descriptor = gOPD(proto, Symbol.toStringTag);
|
35223
|
-
if (!descriptor) {
|
35224
|
-
var superProto = getPrototypeOf(proto);
|
35225
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
35226
|
-
}
|
35227
|
-
toStrTags[typedArray] = descriptor.get;
|
35228
|
-
}
|
35229
|
-
});
|
35230
|
-
}
|
35231
|
-
|
35232
|
-
var tryTypedArrays = function tryAllTypedArrays(value) {
|
35233
|
-
var anyTrue = false;
|
35234
|
-
forEach(toStrTags, function (getter, typedArray) {
|
35235
|
-
if (!anyTrue) {
|
35236
|
-
try {
|
35237
|
-
anyTrue = getter.call(value) === typedArray;
|
35238
|
-
} catch (e) { /**/ }
|
35239
|
-
}
|
35240
|
-
});
|
35241
|
-
return anyTrue;
|
35242
|
-
};
|
35321
|
+
var whichTypedArray = __webpack_require__(/*! which-typed-array */ "../../node_modules/which-typed-array/index.js");
|
35243
35322
|
|
35244
35323
|
module.exports = function isTypedArray(value) {
|
35245
|
-
|
35246
|
-
if (!hasToStringTag || !(Symbol.toStringTag in value)) {
|
35247
|
-
var tag = $slice($toString(value), 8, -1);
|
35248
|
-
return $indexOf(typedArrays, tag) > -1;
|
35249
|
-
}
|
35250
|
-
if (!gOPD) { return false; }
|
35251
|
-
return tryTypedArrays(value);
|
35324
|
+
return !!whichTypedArray(value);
|
35252
35325
|
};
|
35253
35326
|
|
35254
35327
|
|
@@ -58303,6 +58376,14 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
58303
58376
|
if (isString(obj)) {
|
58304
58377
|
return markBoxed(inspect(String(obj)));
|
58305
58378
|
}
|
58379
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
58380
|
+
/* eslint-env browser */
|
58381
|
+
if (typeof window !== 'undefined' && obj === window) {
|
58382
|
+
return '{ [object Window] }';
|
58383
|
+
}
|
58384
|
+
if (obj === __webpack_require__.g) {
|
58385
|
+
return '{ [object globalThis] }';
|
58386
|
+
}
|
58306
58387
|
if (!isDate(obj) && !isRegExp(obj)) {
|
58307
58388
|
var ys = arrObjKeys(obj, inspect);
|
58308
58389
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
@@ -60576,60 +60657,48 @@ module.exports.codes = codes;
|
|
60576
60657
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
60577
60658
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
60578
60659
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
60660
|
+
|
60579
60661
|
// a duplex stream is just a stream that is both readable and writable.
|
60580
60662
|
// Since JS doesn't have multiple prototypal inheritance, this class
|
60581
60663
|
// prototypally inherits from Readable, and then parasitically from
|
60582
60664
|
// Writable.
|
60583
60665
|
|
60584
|
-
/*<replacement>*/
|
60585
60666
|
|
60667
|
+
|
60668
|
+
/*<replacement>*/
|
60586
60669
|
var objectKeys = Object.keys || function (obj) {
|
60587
60670
|
var keys = [];
|
60588
|
-
|
60589
|
-
for (var key in obj) {
|
60590
|
-
keys.push(key);
|
60591
|
-
}
|
60592
|
-
|
60671
|
+
for (var key in obj) keys.push(key);
|
60593
60672
|
return keys;
|
60594
60673
|
};
|
60595
60674
|
/*</replacement>*/
|
60596
60675
|
|
60597
|
-
|
60598
60676
|
module.exports = Duplex;
|
60599
|
-
|
60600
60677
|
var Readable = __webpack_require__(/*! ./_stream_readable */ "../../node_modules/readable-stream/lib/_stream_readable.js");
|
60601
|
-
|
60602
60678
|
var Writable = __webpack_require__(/*! ./_stream_writable */ "../../node_modules/readable-stream/lib/_stream_writable.js");
|
60603
|
-
|
60604
60679
|
__webpack_require__(/*! inherits */ "../../node_modules/inherits/inherits_browser.js")(Duplex, Readable);
|
60605
|
-
|
60606
60680
|
{
|
60607
60681
|
// Allow the keys array to be GC'ed.
|
60608
60682
|
var keys = objectKeys(Writable.prototype);
|
60609
|
-
|
60610
60683
|
for (var v = 0; v < keys.length; v++) {
|
60611
60684
|
var method = keys[v];
|
60612
60685
|
if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
|
60613
60686
|
}
|
60614
60687
|
}
|
60615
|
-
|
60616
60688
|
function Duplex(options) {
|
60617
60689
|
if (!(this instanceof Duplex)) return new Duplex(options);
|
60618
60690
|
Readable.call(this, options);
|
60619
60691
|
Writable.call(this, options);
|
60620
60692
|
this.allowHalfOpen = true;
|
60621
|
-
|
60622
60693
|
if (options) {
|
60623
60694
|
if (options.readable === false) this.readable = false;
|
60624
60695
|
if (options.writable === false) this.writable = false;
|
60625
|
-
|
60626
60696
|
if (options.allowHalfOpen === false) {
|
60627
60697
|
this.allowHalfOpen = false;
|
60628
60698
|
this.once('end', onend);
|
60629
60699
|
}
|
60630
60700
|
}
|
60631
60701
|
}
|
60632
|
-
|
60633
60702
|
Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
|
60634
60703
|
// making it explicit this property is not enumerable
|
60635
60704
|
// because otherwise some prototype manipulation in
|
@@ -60656,20 +60725,20 @@ Object.defineProperty(Duplex.prototype, 'writableLength', {
|
|
60656
60725
|
get: function get() {
|
60657
60726
|
return this._writableState.length;
|
60658
60727
|
}
|
60659
|
-
});
|
60728
|
+
});
|
60660
60729
|
|
60730
|
+
// the no-half-open enforcer
|
60661
60731
|
function onend() {
|
60662
60732
|
// If the writable side ended, then we're ok.
|
60663
|
-
if (this._writableState.ended) return;
|
60664
|
-
// But allow more writes to happen in this tick.
|
60733
|
+
if (this._writableState.ended) return;
|
60665
60734
|
|
60735
|
+
// no more data can be written.
|
60736
|
+
// But allow more writes to happen in this tick.
|
60666
60737
|
process.nextTick(onEndNT, this);
|
60667
60738
|
}
|
60668
|
-
|
60669
60739
|
function onEndNT(self) {
|
60670
60740
|
self.end();
|
60671
60741
|
}
|
60672
|
-
|
60673
60742
|
Object.defineProperty(Duplex.prototype, 'destroyed', {
|
60674
60743
|
// making it explicit this property is not enumerable
|
60675
60744
|
// because otherwise some prototype manipulation in
|
@@ -60679,7 +60748,6 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
60679
60748
|
if (this._readableState === undefined || this._writableState === undefined) {
|
60680
60749
|
return false;
|
60681
60750
|
}
|
60682
|
-
|
60683
60751
|
return this._readableState.destroyed && this._writableState.destroyed;
|
60684
60752
|
},
|
60685
60753
|
set: function set(value) {
|
@@ -60687,10 +60755,10 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
60687
60755
|
// has not been initialized yet
|
60688
60756
|
if (this._readableState === undefined || this._writableState === undefined) {
|
60689
60757
|
return;
|
60690
|
-
}
|
60691
|
-
// managing destroyed
|
60692
|
-
|
60758
|
+
}
|
60693
60759
|
|
60760
|
+
// backward compatibility, the user is explicitly
|
60761
|
+
// managing destroyed
|
60694
60762
|
this._readableState.destroyed = value;
|
60695
60763
|
this._writableState.destroyed = value;
|
60696
60764
|
}
|
@@ -60725,22 +60793,20 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
|
|
60725
60793
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
60726
60794
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
60727
60795
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
60796
|
+
|
60728
60797
|
// a passthrough stream.
|
60729
60798
|
// basically just the most minimal sort of Transform stream.
|
60730
60799
|
// Every written chunk gets output as-is.
|
60731
60800
|
|
60732
60801
|
|
60733
|
-
module.exports = PassThrough;
|
60734
60802
|
|
60803
|
+
module.exports = PassThrough;
|
60735
60804
|
var Transform = __webpack_require__(/*! ./_stream_transform */ "../../node_modules/readable-stream/lib/_stream_transform.js");
|
60736
|
-
|
60737
60805
|
__webpack_require__(/*! inherits */ "../../node_modules/inherits/inherits_browser.js")(PassThrough, Transform);
|
60738
|
-
|
60739
60806
|
function PassThrough(options) {
|
60740
60807
|
if (!(this instanceof PassThrough)) return new PassThrough(options);
|
60741
60808
|
Transform.call(this, options);
|
60742
60809
|
}
|
60743
|
-
|
60744
60810
|
PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
60745
60811
|
cb(null, chunk);
|
60746
60812
|
};
|
@@ -60777,47 +60843,38 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
|
60777
60843
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
60778
60844
|
|
60779
60845
|
|
60846
|
+
|
60780
60847
|
module.exports = Readable;
|
60781
|
-
/*<replacement>*/
|
60782
60848
|
|
60849
|
+
/*<replacement>*/
|
60783
60850
|
var Duplex;
|
60784
60851
|
/*</replacement>*/
|
60785
60852
|
|
60786
60853
|
Readable.ReadableState = ReadableState;
|
60787
|
-
/*<replacement>*/
|
60788
60854
|
|
60855
|
+
/*<replacement>*/
|
60789
60856
|
var EE = (__webpack_require__(/*! events */ "../../node_modules/events/events.js").EventEmitter);
|
60790
|
-
|
60791
60857
|
var EElistenerCount = function EElistenerCount(emitter, type) {
|
60792
60858
|
return emitter.listeners(type).length;
|
60793
60859
|
};
|
60794
60860
|
/*</replacement>*/
|
60795
60861
|
|
60796
60862
|
/*<replacement>*/
|
60797
|
-
|
60798
|
-
|
60799
60863
|
var Stream = __webpack_require__(/*! ./internal/streams/stream */ "../../node_modules/readable-stream/lib/internal/streams/stream-browser.js");
|
60800
60864
|
/*</replacement>*/
|
60801
60865
|
|
60802
|
-
|
60803
60866
|
var Buffer = (__webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js").Buffer);
|
60804
|
-
|
60805
|
-
var OurUint8Array = __webpack_require__.g.Uint8Array || function () {};
|
60806
|
-
|
60867
|
+
var OurUint8Array = (typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};
|
60807
60868
|
function _uint8ArrayToBuffer(chunk) {
|
60808
60869
|
return Buffer.from(chunk);
|
60809
60870
|
}
|
60810
|
-
|
60811
60871
|
function _isUint8Array(obj) {
|
60812
60872
|
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
60813
60873
|
}
|
60814
|
-
/*<replacement>*/
|
60815
|
-
|
60816
60874
|
|
60875
|
+
/*<replacement>*/
|
60817
60876
|
var debugUtil = __webpack_require__(/*! util */ "?983a");
|
60818
|
-
|
60819
60877
|
var debug;
|
60820
|
-
|
60821
60878
|
if (debugUtil && debugUtil.debuglog) {
|
60822
60879
|
debug = debugUtil.debuglog('stream');
|
60823
60880
|
} else {
|
@@ -60825,60 +60882,57 @@ if (debugUtil && debugUtil.debuglog) {
|
|
60825
60882
|
}
|
60826
60883
|
/*</replacement>*/
|
60827
60884
|
|
60828
|
-
|
60829
60885
|
var BufferList = __webpack_require__(/*! ./internal/streams/buffer_list */ "../../node_modules/readable-stream/lib/internal/streams/buffer_list.js");
|
60830
|
-
|
60831
60886
|
var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "../../node_modules/readable-stream/lib/internal/streams/destroy.js");
|
60832
|
-
|
60833
60887
|
var _require = __webpack_require__(/*! ./internal/streams/state */ "../../node_modules/readable-stream/lib/internal/streams/state.js"),
|
60834
|
-
|
60835
|
-
|
60888
|
+
getHighWaterMark = _require.getHighWaterMark;
|
60836
60889
|
var _require$codes = (__webpack_require__(/*! ../errors */ "../../node_modules/readable-stream/errors-browser.js").codes),
|
60837
|
-
|
60838
|
-
|
60839
|
-
|
60840
|
-
|
60841
|
-
|
60890
|
+
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
60891
|
+
ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,
|
60892
|
+
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
60893
|
+
ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
60842
60894
|
|
60895
|
+
// Lazy loaded to improve the startup performance.
|
60843
60896
|
var StringDecoder;
|
60844
60897
|
var createReadableStreamAsyncIterator;
|
60845
60898
|
var from;
|
60846
|
-
|
60847
60899
|
__webpack_require__(/*! inherits */ "../../node_modules/inherits/inherits_browser.js")(Readable, Stream);
|
60848
|
-
|
60849
60900
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
60850
60901
|
var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
|
60851
|
-
|
60852
60902
|
function prependListener(emitter, event, fn) {
|
60853
60903
|
// Sadly this is not cacheable as some libraries bundle their own
|
60854
60904
|
// event emitter implementation with them.
|
60855
|
-
if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);
|
60905
|
+
if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);
|
60906
|
+
|
60907
|
+
// This is a hack to make sure that our error handler is attached before any
|
60856
60908
|
// userland ones. NEVER DO THIS. This is here only because this code needs
|
60857
60909
|
// to continue to work with older versions of Node.js that do not include
|
60858
60910
|
// the prependListener() method. The goal is to eventually remove this hack.
|
60859
|
-
|
60860
60911
|
if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
|
60861
60912
|
}
|
60862
|
-
|
60863
60913
|
function ReadableState(options, stream, isDuplex) {
|
60864
60914
|
Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "../../node_modules/readable-stream/lib/_stream_duplex.js");
|
60865
|
-
options = options || {};
|
60915
|
+
options = options || {};
|
60916
|
+
|
60917
|
+
// Duplex streams are both readable and writable, but share
|
60866
60918
|
// the same options object.
|
60867
60919
|
// However, some cases require setting options to different
|
60868
60920
|
// values for the readable and the writable sides of the duplex stream.
|
60869
60921
|
// These options can be provided separately as readableXXX and writableXXX.
|
60922
|
+
if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex;
|
60870
60923
|
|
60871
|
-
|
60924
|
+
// object stream flag. Used to make read(n) ignore n and to
|
60872
60925
|
// make all the buffer merging and length checks go away
|
60873
|
-
|
60874
60926
|
this.objectMode = !!options.objectMode;
|
60875
|
-
if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
|
60927
|
+
if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;
|
60928
|
+
|
60929
|
+
// the point at which it stops calling _read() to fill the buffer
|
60876
60930
|
// Note: 0 is a valid value, means "don't call _read preemptively ever"
|
60931
|
+
this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex);
|
60877
60932
|
|
60878
|
-
|
60933
|
+
// A linked list is used to store data chunks instead of an array because the
|
60879
60934
|
// linked list can remove elements from the beginning faster than
|
60880
60935
|
// array.shift()
|
60881
|
-
|
60882
60936
|
this.buffer = new BufferList();
|
60883
60937
|
this.length = 0;
|
60884
60938
|
this.pipes = null;
|
@@ -60886,61 +60940,66 @@ function ReadableState(options, stream, isDuplex) {
|
|
60886
60940
|
this.flowing = null;
|
60887
60941
|
this.ended = false;
|
60888
60942
|
this.endEmitted = false;
|
60889
|
-
this.reading = false;
|
60943
|
+
this.reading = false;
|
60944
|
+
|
60945
|
+
// a flag to be able to tell if the event 'readable'/'data' is emitted
|
60890
60946
|
// immediately, or on a later tick. We set this to true at first, because
|
60891
60947
|
// any actions that shouldn't happen until "later" should generally also
|
60892
60948
|
// not happen before the first read call.
|
60949
|
+
this.sync = true;
|
60893
60950
|
|
60894
|
-
|
60951
|
+
// whenever we return null, then we set a flag to say
|
60895
60952
|
// that we're awaiting a 'readable' event emission.
|
60896
|
-
|
60897
60953
|
this.needReadable = false;
|
60898
60954
|
this.emittedReadable = false;
|
60899
60955
|
this.readableListening = false;
|
60900
60956
|
this.resumeScheduled = false;
|
60901
|
-
this.paused = true;
|
60957
|
+
this.paused = true;
|
60958
|
+
|
60959
|
+
// Should close be emitted on destroy. Defaults to true.
|
60960
|
+
this.emitClose = options.emitClose !== false;
|
60902
60961
|
|
60903
|
-
|
60962
|
+
// Should .destroy() be called after 'end' (and potentially 'finish')
|
60963
|
+
this.autoDestroy = !!options.autoDestroy;
|
60904
60964
|
|
60905
|
-
|
60965
|
+
// has it been destroyed
|
60966
|
+
this.destroyed = false;
|
60906
60967
|
|
60907
|
-
|
60968
|
+
// Crypto is kind of old and crusty. Historically, its default string
|
60908
60969
|
// encoding is 'binary' so we have to make this configurable.
|
60909
60970
|
// Everything else in the universe uses 'utf8', though.
|
60971
|
+
this.defaultEncoding = options.defaultEncoding || 'utf8';
|
60910
60972
|
|
60911
|
-
|
60912
|
-
|
60913
|
-
this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled
|
60973
|
+
// the number of writers that are awaiting a drain event in .pipe()s
|
60974
|
+
this.awaitDrain = 0;
|
60914
60975
|
|
60976
|
+
// if true, a maybeReadMore has been scheduled
|
60915
60977
|
this.readingMore = false;
|
60916
60978
|
this.decoder = null;
|
60917
60979
|
this.encoding = null;
|
60918
|
-
|
60919
60980
|
if (options.encoding) {
|
60920
60981
|
if (!StringDecoder) StringDecoder = (__webpack_require__(/*! string_decoder/ */ "../../node_modules/string_decoder/lib/string_decoder.js").StringDecoder);
|
60921
60982
|
this.decoder = new StringDecoder(options.encoding);
|
60922
60983
|
this.encoding = options.encoding;
|
60923
60984
|
}
|
60924
60985
|
}
|
60925
|
-
|
60926
60986
|
function Readable(options) {
|
60927
60987
|
Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "../../node_modules/readable-stream/lib/_stream_duplex.js");
|
60928
|
-
if (!(this instanceof Readable)) return new Readable(options);
|
60929
|
-
// the ReadableState constructor, at least with V8 6.5
|
60988
|
+
if (!(this instanceof Readable)) return new Readable(options);
|
60930
60989
|
|
60990
|
+
// Checking for a Stream.Duplex instance is faster here instead of inside
|
60991
|
+
// the ReadableState constructor, at least with V8 6.5
|
60931
60992
|
var isDuplex = this instanceof Duplex;
|
60932
|
-
this._readableState = new ReadableState(options, this, isDuplex);
|
60993
|
+
this._readableState = new ReadableState(options, this, isDuplex);
|
60933
60994
|
|
60995
|
+
// legacy
|
60934
60996
|
this.readable = true;
|
60935
|
-
|
60936
60997
|
if (options) {
|
60937
60998
|
if (typeof options.read === 'function') this._read = options.read;
|
60938
60999
|
if (typeof options.destroy === 'function') this._destroy = options.destroy;
|
60939
61000
|
}
|
60940
|
-
|
60941
61001
|
Stream.call(this);
|
60942
61002
|
}
|
60943
|
-
|
60944
61003
|
Object.defineProperty(Readable.prototype, 'destroyed', {
|
60945
61004
|
// making it explicit this property is not enumerable
|
60946
61005
|
// because otherwise some prototype manipulation in
|
@@ -60950,7 +61009,6 @@ Object.defineProperty(Readable.prototype, 'destroyed', {
|
|
60950
61009
|
if (this._readableState === undefined) {
|
60951
61010
|
return false;
|
60952
61011
|
}
|
60953
|
-
|
60954
61012
|
return this._readableState.destroyed;
|
60955
61013
|
},
|
60956
61014
|
set: function set(value) {
|
@@ -60958,69 +61016,60 @@ Object.defineProperty(Readable.prototype, 'destroyed', {
|
|
60958
61016
|
// has not been initialized yet
|
60959
61017
|
if (!this._readableState) {
|
60960
61018
|
return;
|
60961
|
-
}
|
60962
|
-
// managing destroyed
|
60963
|
-
|
61019
|
+
}
|
60964
61020
|
|
61021
|
+
// backward compatibility, the user is explicitly
|
61022
|
+
// managing destroyed
|
60965
61023
|
this._readableState.destroyed = value;
|
60966
61024
|
}
|
60967
61025
|
});
|
60968
61026
|
Readable.prototype.destroy = destroyImpl.destroy;
|
60969
61027
|
Readable.prototype._undestroy = destroyImpl.undestroy;
|
60970
|
-
|
60971
61028
|
Readable.prototype._destroy = function (err, cb) {
|
60972
61029
|
cb(err);
|
60973
|
-
};
|
61030
|
+
};
|
61031
|
+
|
61032
|
+
// Manually shove something into the read() buffer.
|
60974
61033
|
// This returns true if the highWaterMark has not been hit yet,
|
60975
61034
|
// similar to how Writable.write() returns true if you should
|
60976
61035
|
// write() some more.
|
60977
|
-
|
60978
|
-
|
60979
61036
|
Readable.prototype.push = function (chunk, encoding) {
|
60980
61037
|
var state = this._readableState;
|
60981
61038
|
var skipChunkCheck;
|
60982
|
-
|
60983
61039
|
if (!state.objectMode) {
|
60984
61040
|
if (typeof chunk === 'string') {
|
60985
61041
|
encoding = encoding || state.defaultEncoding;
|
60986
|
-
|
60987
61042
|
if (encoding !== state.encoding) {
|
60988
61043
|
chunk = Buffer.from(chunk, encoding);
|
60989
61044
|
encoding = '';
|
60990
61045
|
}
|
60991
|
-
|
60992
61046
|
skipChunkCheck = true;
|
60993
61047
|
}
|
60994
61048
|
} else {
|
60995
61049
|
skipChunkCheck = true;
|
60996
61050
|
}
|
60997
|
-
|
60998
61051
|
return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
|
60999
|
-
};
|
61000
|
-
|
61052
|
+
};
|
61001
61053
|
|
61054
|
+
// Unshift should *always* be something directly out of read()
|
61002
61055
|
Readable.prototype.unshift = function (chunk) {
|
61003
61056
|
return readableAddChunk(this, chunk, null, true, false);
|
61004
61057
|
};
|
61005
|
-
|
61006
61058
|
function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
61007
61059
|
debug('readableAddChunk', chunk);
|
61008
61060
|
var state = stream._readableState;
|
61009
|
-
|
61010
61061
|
if (chunk === null) {
|
61011
61062
|
state.reading = false;
|
61012
61063
|
onEofChunk(stream, state);
|
61013
61064
|
} else {
|
61014
61065
|
var er;
|
61015
61066
|
if (!skipChunkCheck) er = chunkInvalid(state, chunk);
|
61016
|
-
|
61017
61067
|
if (er) {
|
61018
61068
|
errorOrDestroy(stream, er);
|
61019
61069
|
} else if (state.objectMode || chunk && chunk.length > 0) {
|
61020
61070
|
if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
|
61021
61071
|
chunk = _uint8ArrayToBuffer(chunk);
|
61022
61072
|
}
|
61023
|
-
|
61024
61073
|
if (addToFront) {
|
61025
61074
|
if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);
|
61026
61075
|
} else if (state.ended) {
|
@@ -61029,7 +61078,6 @@ function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
|
61029
61078
|
return false;
|
61030
61079
|
} else {
|
61031
61080
|
state.reading = false;
|
61032
|
-
|
61033
61081
|
if (state.decoder && !encoding) {
|
61034
61082
|
chunk = state.decoder.write(chunk);
|
61035
61083
|
if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
|
@@ -61041,14 +61089,13 @@ function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
|
|
61041
61089
|
state.reading = false;
|
61042
61090
|
maybeReadMore(stream, state);
|
61043
61091
|
}
|
61044
|
-
}
|
61092
|
+
}
|
61093
|
+
|
61094
|
+
// We can push more data if we are below the highWaterMark.
|
61045
61095
|
// Also, if we have no data yet, we can stand some more bytes.
|
61046
61096
|
// This is to work around cases where hwm=0, such as the repl.
|
61047
|
-
|
61048
|
-
|
61049
61097
|
return !state.ended && (state.length < state.highWaterMark || state.length === 0);
|
61050
61098
|
}
|
61051
|
-
|
61052
61099
|
function addChunk(stream, state, chunk, addToFront) {
|
61053
61100
|
if (state.flowing && state.length === 0 && !state.sync) {
|
61054
61101
|
state.awaitDrain = 0;
|
@@ -61059,50 +61106,42 @@ function addChunk(stream, state, chunk, addToFront) {
|
|
61059
61106
|
if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
|
61060
61107
|
if (state.needReadable) emitReadable(stream);
|
61061
61108
|
}
|
61062
|
-
|
61063
61109
|
maybeReadMore(stream, state);
|
61064
61110
|
}
|
61065
|
-
|
61066
61111
|
function chunkInvalid(state, chunk) {
|
61067
61112
|
var er;
|
61068
|
-
|
61069
61113
|
if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
|
61070
61114
|
er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);
|
61071
61115
|
}
|
61072
|
-
|
61073
61116
|
return er;
|
61074
61117
|
}
|
61075
|
-
|
61076
61118
|
Readable.prototype.isPaused = function () {
|
61077
61119
|
return this._readableState.flowing === false;
|
61078
|
-
};
|
61079
|
-
|
61120
|
+
};
|
61080
61121
|
|
61122
|
+
// backwards compatibility.
|
61081
61123
|
Readable.prototype.setEncoding = function (enc) {
|
61082
61124
|
if (!StringDecoder) StringDecoder = (__webpack_require__(/*! string_decoder/ */ "../../node_modules/string_decoder/lib/string_decoder.js").StringDecoder);
|
61083
61125
|
var decoder = new StringDecoder(enc);
|
61084
|
-
this._readableState.decoder = decoder;
|
61085
|
-
|
61086
|
-
this._readableState.encoding = this._readableState.decoder.encoding;
|
61126
|
+
this._readableState.decoder = decoder;
|
61127
|
+
// If setEncoding(null), decoder.encoding equals utf8
|
61128
|
+
this._readableState.encoding = this._readableState.decoder.encoding;
|
61087
61129
|
|
61130
|
+
// Iterate over current buffer to convert already stored Buffers:
|
61088
61131
|
var p = this._readableState.buffer.head;
|
61089
61132
|
var content = '';
|
61090
|
-
|
61091
61133
|
while (p !== null) {
|
61092
61134
|
content += decoder.write(p.data);
|
61093
61135
|
p = p.next;
|
61094
61136
|
}
|
61095
|
-
|
61096
61137
|
this._readableState.buffer.clear();
|
61097
|
-
|
61098
61138
|
if (content !== '') this._readableState.buffer.push(content);
|
61099
61139
|
this._readableState.length = content.length;
|
61100
61140
|
return this;
|
61101
|
-
};
|
61102
|
-
|
61141
|
+
};
|
61103
61142
|
|
61143
|
+
// Don't raise the hwm > 1GB
|
61104
61144
|
var MAX_HWM = 0x40000000;
|
61105
|
-
|
61106
61145
|
function computeNewHighWaterMark(n) {
|
61107
61146
|
if (n >= MAX_HWM) {
|
61108
61147
|
// TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.
|
@@ -61118,55 +61157,54 @@ function computeNewHighWaterMark(n) {
|
|
61118
61157
|
n |= n >>> 16;
|
61119
61158
|
n++;
|
61120
61159
|
}
|
61121
|
-
|
61122
61160
|
return n;
|
61123
|
-
}
|
61124
|
-
// changes to the function body.
|
61125
|
-
|
61161
|
+
}
|
61126
61162
|
|
61163
|
+
// This function is designed to be inlinable, so please take care when making
|
61164
|
+
// changes to the function body.
|
61127
61165
|
function howMuchToRead(n, state) {
|
61128
61166
|
if (n <= 0 || state.length === 0 && state.ended) return 0;
|
61129
61167
|
if (state.objectMode) return 1;
|
61130
|
-
|
61131
61168
|
if (n !== n) {
|
61132
61169
|
// Only flow one buffer at a time
|
61133
61170
|
if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
|
61134
|
-
}
|
61135
|
-
|
61136
|
-
|
61171
|
+
}
|
61172
|
+
// If we're asking for more than the current hwm, then raise the hwm.
|
61137
61173
|
if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
|
61138
|
-
if (n <= state.length) return n;
|
61139
|
-
|
61174
|
+
if (n <= state.length) return n;
|
61175
|
+
// Don't have enough
|
61140
61176
|
if (!state.ended) {
|
61141
61177
|
state.needReadable = true;
|
61142
61178
|
return 0;
|
61143
61179
|
}
|
61144
|
-
|
61145
61180
|
return state.length;
|
61146
|
-
}
|
61147
|
-
|
61181
|
+
}
|
61148
61182
|
|
61183
|
+
// you can override either this method, or the async _read(n) below.
|
61149
61184
|
Readable.prototype.read = function (n) {
|
61150
61185
|
debug('read', n);
|
61151
61186
|
n = parseInt(n, 10);
|
61152
61187
|
var state = this._readableState;
|
61153
61188
|
var nOrig = n;
|
61154
|
-
if (n !== 0) state.emittedReadable = false;
|
61189
|
+
if (n !== 0) state.emittedReadable = false;
|
61190
|
+
|
61191
|
+
// if we're doing read(0) to trigger a readable event, but we
|
61155
61192
|
// already have a bunch of data in the buffer, then just trigger
|
61156
61193
|
// the 'readable' event and move on.
|
61157
|
-
|
61158
61194
|
if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
|
61159
61195
|
debug('read: emitReadable', state.length, state.ended);
|
61160
61196
|
if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
|
61161
61197
|
return null;
|
61162
61198
|
}
|
61199
|
+
n = howMuchToRead(n, state);
|
61163
61200
|
|
61164
|
-
|
61165
|
-
|
61201
|
+
// if we've ended, and we're now clear, then finish it up.
|
61166
61202
|
if (n === 0 && state.ended) {
|
61167
61203
|
if (state.length === 0) endReadable(this);
|
61168
61204
|
return null;
|
61169
|
-
}
|
61205
|
+
}
|
61206
|
+
|
61207
|
+
// All the actual chunk generation logic needs to be
|
61170
61208
|
// *below* the call to _read. The reason is that in certain
|
61171
61209
|
// synthetic stream cases, such as passthrough streams, _read
|
61172
61210
|
// may be a completely synchronous operation which may change
|
@@ -61187,40 +61225,37 @@ Readable.prototype.read = function (n) {
|
|
61187
61225
|
// 'readable' etc.
|
61188
61226
|
//
|
61189
61227
|
// 3. Actually pull the requested chunks out of the buffer and return.
|
61190
|
-
// if we need a readable event, then we need to do some reading.
|
61191
|
-
|
61192
61228
|
|
61229
|
+
// if we need a readable event, then we need to do some reading.
|
61193
61230
|
var doRead = state.needReadable;
|
61194
|
-
debug('need readable', doRead);
|
61231
|
+
debug('need readable', doRead);
|
61195
61232
|
|
61233
|
+
// if we currently have less than the highWaterMark, then also read some
|
61196
61234
|
if (state.length === 0 || state.length - n < state.highWaterMark) {
|
61197
61235
|
doRead = true;
|
61198
61236
|
debug('length less than watermark', doRead);
|
61199
|
-
}
|
61200
|
-
// reading, then it's unnecessary.
|
61201
|
-
|
61237
|
+
}
|
61202
61238
|
|
61239
|
+
// however, if we've ended, then there's no point, and if we're already
|
61240
|
+
// reading, then it's unnecessary.
|
61203
61241
|
if (state.ended || state.reading) {
|
61204
61242
|
doRead = false;
|
61205
61243
|
debug('reading or ended', doRead);
|
61206
61244
|
} else if (doRead) {
|
61207
61245
|
debug('do read');
|
61208
61246
|
state.reading = true;
|
61209
|
-
state.sync = true;
|
61210
|
-
|
61211
|
-
if (state.length === 0) state.needReadable = true;
|
61212
|
-
|
61247
|
+
state.sync = true;
|
61248
|
+
// if the length is currently zero, then we *need* a readable event.
|
61249
|
+
if (state.length === 0) state.needReadable = true;
|
61250
|
+
// call internal read method
|
61213
61251
|
this._read(state.highWaterMark);
|
61214
|
-
|
61215
|
-
|
61252
|
+
state.sync = false;
|
61253
|
+
// If _read pushed data synchronously, then `reading` will be false,
|
61216
61254
|
// and we need to re-evaluate how much data we can return to the user.
|
61217
|
-
|
61218
61255
|
if (!state.reading) n = howMuchToRead(nOrig, state);
|
61219
61256
|
}
|
61220
|
-
|
61221
61257
|
var ret;
|
61222
61258
|
if (n > 0) ret = fromList(n, state);else ret = null;
|
61223
|
-
|
61224
61259
|
if (ret === null) {
|
61225
61260
|
state.needReadable = state.length <= state.highWaterMark;
|
61226
61261
|
n = 0;
|
@@ -61228,34 +61263,28 @@ Readable.prototype.read = function (n) {
|
|
61228
61263
|
state.length -= n;
|
61229
61264
|
state.awaitDrain = 0;
|
61230
61265
|
}
|
61231
|
-
|
61232
61266
|
if (state.length === 0) {
|
61233
61267
|
// If we have nothing in the buffer, then we want to know
|
61234
61268
|
// as soon as we *do* get something into the buffer.
|
61235
|
-
if (!state.ended) state.needReadable = true;
|
61269
|
+
if (!state.ended) state.needReadable = true;
|
61236
61270
|
|
61271
|
+
// If we tried to read() past the EOF, then emit end on the next tick.
|
61237
61272
|
if (nOrig !== n && state.ended) endReadable(this);
|
61238
61273
|
}
|
61239
|
-
|
61240
61274
|
if (ret !== null) this.emit('data', ret);
|
61241
61275
|
return ret;
|
61242
61276
|
};
|
61243
|
-
|
61244
61277
|
function onEofChunk(stream, state) {
|
61245
61278
|
debug('onEofChunk');
|
61246
61279
|
if (state.ended) return;
|
61247
|
-
|
61248
61280
|
if (state.decoder) {
|
61249
61281
|
var chunk = state.decoder.end();
|
61250
|
-
|
61251
61282
|
if (chunk && chunk.length) {
|
61252
61283
|
state.buffer.push(chunk);
|
61253
61284
|
state.length += state.objectMode ? 1 : chunk.length;
|
61254
61285
|
}
|
61255
61286
|
}
|
61256
|
-
|
61257
61287
|
state.ended = true;
|
61258
|
-
|
61259
61288
|
if (state.sync) {
|
61260
61289
|
// if we are sync, wait until next tick to emit the data.
|
61261
61290
|
// Otherwise we risk emitting data in the flow()
|
@@ -61264,61 +61293,56 @@ function onEofChunk(stream, state) {
|
|
61264
61293
|
} else {
|
61265
61294
|
// emit 'readable' now to make sure it gets picked up.
|
61266
61295
|
state.needReadable = false;
|
61267
|
-
|
61268
61296
|
if (!state.emittedReadable) {
|
61269
61297
|
state.emittedReadable = true;
|
61270
61298
|
emitReadable_(stream);
|
61271
61299
|
}
|
61272
61300
|
}
|
61273
|
-
}
|
61301
|
+
}
|
61302
|
+
|
61303
|
+
// Don't emit readable right away in sync mode, because this can trigger
|
61274
61304
|
// another read() call => stack overflow. This way, it might trigger
|
61275
61305
|
// a nextTick recursion warning, but that's not so bad.
|
61276
|
-
|
61277
|
-
|
61278
61306
|
function emitReadable(stream) {
|
61279
61307
|
var state = stream._readableState;
|
61280
61308
|
debug('emitReadable', state.needReadable, state.emittedReadable);
|
61281
61309
|
state.needReadable = false;
|
61282
|
-
|
61283
61310
|
if (!state.emittedReadable) {
|
61284
61311
|
debug('emitReadable', state.flowing);
|
61285
61312
|
state.emittedReadable = true;
|
61286
61313
|
process.nextTick(emitReadable_, stream);
|
61287
61314
|
}
|
61288
61315
|
}
|
61289
|
-
|
61290
61316
|
function emitReadable_(stream) {
|
61291
61317
|
var state = stream._readableState;
|
61292
61318
|
debug('emitReadable_', state.destroyed, state.length, state.ended);
|
61293
|
-
|
61294
61319
|
if (!state.destroyed && (state.length || state.ended)) {
|
61295
61320
|
stream.emit('readable');
|
61296
61321
|
state.emittedReadable = false;
|
61297
|
-
}
|
61322
|
+
}
|
61323
|
+
|
61324
|
+
// The stream needs another readable event if
|
61298
61325
|
// 1. It is not flowing, as the flow mechanism will take
|
61299
61326
|
// care of it.
|
61300
61327
|
// 2. It is not ended.
|
61301
61328
|
// 3. It is below the highWaterMark, so we can schedule
|
61302
61329
|
// another readable later.
|
61303
|
-
|
61304
|
-
|
61305
61330
|
state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;
|
61306
61331
|
flow(stream);
|
61307
|
-
}
|
61332
|
+
}
|
61333
|
+
|
61334
|
+
// at this point, the user has presumably seen the 'readable' event,
|
61308
61335
|
// and called read() to consume some data. that may have triggered
|
61309
61336
|
// in turn another _read(n) call, in which case reading = true if
|
61310
61337
|
// it's in progress.
|
61311
61338
|
// However, if we're not ended, or reading, and the length < hwm,
|
61312
61339
|
// then go ahead and try to read some more preemptively.
|
61313
|
-
|
61314
|
-
|
61315
61340
|
function maybeReadMore(stream, state) {
|
61316
61341
|
if (!state.readingMore) {
|
61317
61342
|
state.readingMore = true;
|
61318
61343
|
process.nextTick(maybeReadMore_, stream, state);
|
61319
61344
|
}
|
61320
61345
|
}
|
61321
|
-
|
61322
61346
|
function maybeReadMore_(stream, state) {
|
61323
61347
|
// Attempt to read more data if we should.
|
61324
61348
|
//
|
@@ -61347,49 +61371,42 @@ function maybeReadMore_(stream, state) {
|
|
61347
61371
|
var len = state.length;
|
61348
61372
|
debug('maybeReadMore read 0');
|
61349
61373
|
stream.read(0);
|
61350
|
-
if (len === state.length)
|
61374
|
+
if (len === state.length)
|
61375
|
+
// didn't get any data, stop spinning.
|
61351
61376
|
break;
|
61352
61377
|
}
|
61353
|
-
|
61354
61378
|
state.readingMore = false;
|
61355
|
-
}
|
61379
|
+
}
|
61380
|
+
|
61381
|
+
// abstract method. to be overridden in specific implementation classes.
|
61356
61382
|
// call cb(er, data) where data is <= n in length.
|
61357
61383
|
// for virtual (non-string, non-buffer) streams, "length" is somewhat
|
61358
61384
|
// arbitrary, and perhaps not very meaningful.
|
61359
|
-
|
61360
|
-
|
61361
61385
|
Readable.prototype._read = function (n) {
|
61362
61386
|
errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));
|
61363
61387
|
};
|
61364
|
-
|
61365
61388
|
Readable.prototype.pipe = function (dest, pipeOpts) {
|
61366
61389
|
var src = this;
|
61367
61390
|
var state = this._readableState;
|
61368
|
-
|
61369
61391
|
switch (state.pipesCount) {
|
61370
61392
|
case 0:
|
61371
61393
|
state.pipes = dest;
|
61372
61394
|
break;
|
61373
|
-
|
61374
61395
|
case 1:
|
61375
61396
|
state.pipes = [state.pipes, dest];
|
61376
61397
|
break;
|
61377
|
-
|
61378
61398
|
default:
|
61379
61399
|
state.pipes.push(dest);
|
61380
61400
|
break;
|
61381
61401
|
}
|
61382
|
-
|
61383
61402
|
state.pipesCount += 1;
|
61384
61403
|
debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
|
61385
61404
|
var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
|
61386
61405
|
var endFn = doEnd ? onend : unpipe;
|
61387
61406
|
if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);
|
61388
61407
|
dest.on('unpipe', onunpipe);
|
61389
|
-
|
61390
61408
|
function onunpipe(readable, unpipeInfo) {
|
61391
61409
|
debug('onunpipe');
|
61392
|
-
|
61393
61410
|
if (readable === src) {
|
61394
61411
|
if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
|
61395
61412
|
unpipeInfo.hasUnpiped = true;
|
@@ -61397,23 +61414,21 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
|
|
61397
61414
|
}
|
61398
61415
|
}
|
61399
61416
|
}
|
61400
|
-
|
61401
61417
|
function onend() {
|
61402
61418
|
debug('onend');
|
61403
61419
|
dest.end();
|
61404
|
-
}
|
61420
|
+
}
|
61421
|
+
|
61422
|
+
// when the dest drains, it reduces the awaitDrain counter
|
61405
61423
|
// on the source. This would be more elegant with a .once()
|
61406
61424
|
// handler in flow(), but adding and removing repeatedly is
|
61407
61425
|
// too slow.
|
61408
|
-
|
61409
|
-
|
61410
61426
|
var ondrain = pipeOnDrain(src);
|
61411
61427
|
dest.on('drain', ondrain);
|
61412
61428
|
var cleanedUp = false;
|
61413
|
-
|
61414
61429
|
function cleanup() {
|
61415
|
-
debug('cleanup');
|
61416
|
-
|
61430
|
+
debug('cleanup');
|
61431
|
+
// cleanup event handlers once the pipe is broken
|
61417
61432
|
dest.removeListener('close', onclose);
|
61418
61433
|
dest.removeListener('finish', onfinish);
|
61419
61434
|
dest.removeListener('drain', ondrain);
|
@@ -61422,22 +61437,20 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
|
|
61422
61437
|
src.removeListener('end', onend);
|
61423
61438
|
src.removeListener('end', unpipe);
|
61424
61439
|
src.removeListener('data', ondata);
|
61425
|
-
cleanedUp = true;
|
61440
|
+
cleanedUp = true;
|
61441
|
+
|
61442
|
+
// if the reader is waiting for a drain event from this
|
61426
61443
|
// specific writer, then it would cause it to never start
|
61427
61444
|
// flowing again.
|
61428
61445
|
// So, if this is awaiting a drain, then we just call it now.
|
61429
61446
|
// If we don't know, then assume that we are waiting for one.
|
61430
|
-
|
61431
61447
|
if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
|
61432
61448
|
}
|
61433
|
-
|
61434
61449
|
src.on('data', ondata);
|
61435
|
-
|
61436
61450
|
function ondata(chunk) {
|
61437
61451
|
debug('ondata');
|
61438
61452
|
var ret = dest.write(chunk);
|
61439
61453
|
debug('dest.write', ret);
|
61440
|
-
|
61441
61454
|
if (ret === false) {
|
61442
61455
|
// If the user unpiped during `dest.write()`, it is possible
|
61443
61456
|
// to get stuck in a permanently paused state if that write
|
@@ -61447,87 +61460,84 @@ Readable.prototype.pipe = function (dest, pipeOpts) {
|
|
61447
61460
|
debug('false write response, pause', state.awaitDrain);
|
61448
61461
|
state.awaitDrain++;
|
61449
61462
|
}
|
61450
|
-
|
61451
61463
|
src.pause();
|
61452
61464
|
}
|
61453
|
-
}
|
61454
|
-
// however, don't suppress the throwing behavior for this.
|
61455
|
-
|
61465
|
+
}
|
61456
61466
|
|
61467
|
+
// if the dest has an error, then stop piping into it.
|
61468
|
+
// however, don't suppress the throwing behavior for this.
|
61457
61469
|
function onerror(er) {
|
61458
61470
|
debug('onerror', er);
|
61459
61471
|
unpipe();
|
61460
61472
|
dest.removeListener('error', onerror);
|
61461
61473
|
if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);
|
61462
|
-
}
|
61463
|
-
|
61474
|
+
}
|
61464
61475
|
|
61465
|
-
|
61476
|
+
// Make sure our error handler is attached before userland ones.
|
61477
|
+
prependListener(dest, 'error', onerror);
|
61466
61478
|
|
61479
|
+
// Both close and finish should trigger unpipe, but only once.
|
61467
61480
|
function onclose() {
|
61468
61481
|
dest.removeListener('finish', onfinish);
|
61469
61482
|
unpipe();
|
61470
61483
|
}
|
61471
|
-
|
61472
61484
|
dest.once('close', onclose);
|
61473
|
-
|
61474
61485
|
function onfinish() {
|
61475
61486
|
debug('onfinish');
|
61476
61487
|
dest.removeListener('close', onclose);
|
61477
61488
|
unpipe();
|
61478
61489
|
}
|
61479
|
-
|
61480
61490
|
dest.once('finish', onfinish);
|
61481
|
-
|
61482
61491
|
function unpipe() {
|
61483
61492
|
debug('unpipe');
|
61484
61493
|
src.unpipe(dest);
|
61485
|
-
}
|
61486
|
-
|
61494
|
+
}
|
61487
61495
|
|
61488
|
-
|
61496
|
+
// tell the dest that it's being piped to
|
61497
|
+
dest.emit('pipe', src);
|
61489
61498
|
|
61499
|
+
// start the flow if it hasn't been started already.
|
61490
61500
|
if (!state.flowing) {
|
61491
61501
|
debug('pipe resume');
|
61492
61502
|
src.resume();
|
61493
61503
|
}
|
61494
|
-
|
61495
61504
|
return dest;
|
61496
61505
|
};
|
61497
|
-
|
61498
61506
|
function pipeOnDrain(src) {
|
61499
61507
|
return function pipeOnDrainFunctionResult() {
|
61500
61508
|
var state = src._readableState;
|
61501
61509
|
debug('pipeOnDrain', state.awaitDrain);
|
61502
61510
|
if (state.awaitDrain) state.awaitDrain--;
|
61503
|
-
|
61504
61511
|
if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
|
61505
61512
|
state.flowing = true;
|
61506
61513
|
flow(src);
|
61507
61514
|
}
|
61508
61515
|
};
|
61509
61516
|
}
|
61510
|
-
|
61511
61517
|
Readable.prototype.unpipe = function (dest) {
|
61512
61518
|
var state = this._readableState;
|
61513
61519
|
var unpipeInfo = {
|
61514
61520
|
hasUnpiped: false
|
61515
|
-
};
|
61521
|
+
};
|
61516
61522
|
|
61517
|
-
if
|
61523
|
+
// if we're not piping anywhere, then do nothing.
|
61524
|
+
if (state.pipesCount === 0) return this;
|
61518
61525
|
|
61526
|
+
// just one destination. most common case.
|
61519
61527
|
if (state.pipesCount === 1) {
|
61520
61528
|
// passed in one, but it's not the right one.
|
61521
61529
|
if (dest && dest !== state.pipes) return this;
|
61522
|
-
if (!dest) dest = state.pipes;
|
61530
|
+
if (!dest) dest = state.pipes;
|
61523
61531
|
|
61532
|
+
// got a match.
|
61524
61533
|
state.pipes = null;
|
61525
61534
|
state.pipesCount = 0;
|
61526
61535
|
state.flowing = false;
|
61527
61536
|
if (dest) dest.emit('unpipe', this, unpipeInfo);
|
61528
61537
|
return this;
|
61529
|
-
}
|
61538
|
+
}
|
61530
61539
|
|
61540
|
+
// slow case. multiple pipe destinations.
|
61531
61541
|
|
61532
61542
|
if (!dest) {
|
61533
61543
|
// remove all.
|
@@ -61536,17 +61546,13 @@ Readable.prototype.unpipe = function (dest) {
|
|
61536
61546
|
state.pipes = null;
|
61537
61547
|
state.pipesCount = 0;
|
61538
61548
|
state.flowing = false;
|
61539
|
-
|
61540
|
-
|
61541
|
-
|
61542
|
-
hasUnpiped: false
|
61543
|
-
});
|
61544
|
-
}
|
61545
|
-
|
61549
|
+
for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, {
|
61550
|
+
hasUnpiped: false
|
61551
|
+
});
|
61546
61552
|
return this;
|
61547
|
-
}
|
61548
|
-
|
61553
|
+
}
|
61549
61554
|
|
61555
|
+
// try to find the right one.
|
61550
61556
|
var index = indexOf(state.pipes, dest);
|
61551
61557
|
if (index === -1) return this;
|
61552
61558
|
state.pipes.splice(index, 1);
|
@@ -61554,19 +61560,19 @@ Readable.prototype.unpipe = function (dest) {
|
|
61554
61560
|
if (state.pipesCount === 1) state.pipes = state.pipes[0];
|
61555
61561
|
dest.emit('unpipe', this, unpipeInfo);
|
61556
61562
|
return this;
|
61557
|
-
};
|
61558
|
-
// Ensure readable listeners eventually get something
|
61559
|
-
|
61563
|
+
};
|
61560
61564
|
|
61565
|
+
// set up data events if they are asked for
|
61566
|
+
// Ensure readable listeners eventually get something
|
61561
61567
|
Readable.prototype.on = function (ev, fn) {
|
61562
61568
|
var res = Stream.prototype.on.call(this, ev, fn);
|
61563
61569
|
var state = this._readableState;
|
61564
|
-
|
61565
61570
|
if (ev === 'data') {
|
61566
61571
|
// update readableListening so that resume() may be a no-op
|
61567
61572
|
// a few lines down. This is needed to support once('readable').
|
61568
|
-
state.readableListening = this.listenerCount('readable') > 0;
|
61573
|
+
state.readableListening = this.listenerCount('readable') > 0;
|
61569
61574
|
|
61575
|
+
// Try start flowing on next tick if stream isn't explicitly paused
|
61570
61576
|
if (state.flowing !== false) this.resume();
|
61571
61577
|
} else if (ev === 'readable') {
|
61572
61578
|
if (!state.endEmitted && !state.readableListening) {
|
@@ -61574,7 +61580,6 @@ Readable.prototype.on = function (ev, fn) {
|
|
61574
61580
|
state.flowing = false;
|
61575
61581
|
state.emittedReadable = false;
|
61576
61582
|
debug('on readable', state.length, state.reading);
|
61577
|
-
|
61578
61583
|
if (state.length) {
|
61579
61584
|
emitReadable(this);
|
61580
61585
|
} else if (!state.reading) {
|
@@ -61582,15 +61587,11 @@ Readable.prototype.on = function (ev, fn) {
|
|
61582
61587
|
}
|
61583
61588
|
}
|
61584
61589
|
}
|
61585
|
-
|
61586
61590
|
return res;
|
61587
61591
|
};
|
61588
|
-
|
61589
61592
|
Readable.prototype.addListener = Readable.prototype.on;
|
61590
|
-
|
61591
61593
|
Readable.prototype.removeListener = function (ev, fn) {
|
61592
61594
|
var res = Stream.prototype.removeListener.call(this, ev, fn);
|
61593
|
-
|
61594
61595
|
if (ev === 'readable') {
|
61595
61596
|
// We need to check if there is someone still listening to
|
61596
61597
|
// readable and reset the state. However this needs to happen
|
@@ -61600,13 +61601,10 @@ Readable.prototype.removeListener = function (ev, fn) {
|
|
61600
61601
|
// effect.
|
61601
61602
|
process.nextTick(updateReadableListening, this);
|
61602
61603
|
}
|
61603
|
-
|
61604
61604
|
return res;
|
61605
61605
|
};
|
61606
|
-
|
61607
61606
|
Readable.prototype.removeAllListeners = function (ev) {
|
61608
61607
|
var res = Stream.prototype.removeAllListeners.apply(this, arguments);
|
61609
|
-
|
61610
61608
|
if (ev === 'readable' || ev === undefined) {
|
61611
61609
|
// We need to check if there is someone still listening to
|
61612
61610
|
// readable and reset the state. However this needs to happen
|
@@ -61616,121 +61614,103 @@ Readable.prototype.removeAllListeners = function (ev) {
|
|
61616
61614
|
// effect.
|
61617
61615
|
process.nextTick(updateReadableListening, this);
|
61618
61616
|
}
|
61619
|
-
|
61620
61617
|
return res;
|
61621
61618
|
};
|
61622
|
-
|
61623
61619
|
function updateReadableListening(self) {
|
61624
61620
|
var state = self._readableState;
|
61625
61621
|
state.readableListening = self.listenerCount('readable') > 0;
|
61626
|
-
|
61627
61622
|
if (state.resumeScheduled && !state.paused) {
|
61628
61623
|
// flowing needs to be set to true now, otherwise
|
61629
61624
|
// the upcoming resume will not flow.
|
61630
|
-
state.flowing = true;
|
61625
|
+
state.flowing = true;
|
61626
|
+
|
61627
|
+
// crude way to check if we should resume
|
61631
61628
|
} else if (self.listenerCount('data') > 0) {
|
61632
61629
|
self.resume();
|
61633
61630
|
}
|
61634
61631
|
}
|
61635
|
-
|
61636
61632
|
function nReadingNextTick(self) {
|
61637
61633
|
debug('readable nexttick read 0');
|
61638
61634
|
self.read(0);
|
61639
|
-
}
|
61640
|
-
// If the user uses them, then switch into old mode.
|
61641
|
-
|
61635
|
+
}
|
61642
61636
|
|
61637
|
+
// pause() and resume() are remnants of the legacy readable stream API
|
61638
|
+
// If the user uses them, then switch into old mode.
|
61643
61639
|
Readable.prototype.resume = function () {
|
61644
61640
|
var state = this._readableState;
|
61645
|
-
|
61646
61641
|
if (!state.flowing) {
|
61647
|
-
debug('resume');
|
61642
|
+
debug('resume');
|
61643
|
+
// we flow only if there is no one listening
|
61648
61644
|
// for readable, but we still have to call
|
61649
61645
|
// resume()
|
61650
|
-
|
61651
61646
|
state.flowing = !state.readableListening;
|
61652
61647
|
resume(this, state);
|
61653
61648
|
}
|
61654
|
-
|
61655
61649
|
state.paused = false;
|
61656
61650
|
return this;
|
61657
61651
|
};
|
61658
|
-
|
61659
61652
|
function resume(stream, state) {
|
61660
61653
|
if (!state.resumeScheduled) {
|
61661
61654
|
state.resumeScheduled = true;
|
61662
61655
|
process.nextTick(resume_, stream, state);
|
61663
61656
|
}
|
61664
61657
|
}
|
61665
|
-
|
61666
61658
|
function resume_(stream, state) {
|
61667
61659
|
debug('resume', state.reading);
|
61668
|
-
|
61669
61660
|
if (!state.reading) {
|
61670
61661
|
stream.read(0);
|
61671
61662
|
}
|
61672
|
-
|
61673
61663
|
state.resumeScheduled = false;
|
61674
61664
|
stream.emit('resume');
|
61675
61665
|
flow(stream);
|
61676
61666
|
if (state.flowing && !state.reading) stream.read(0);
|
61677
61667
|
}
|
61678
|
-
|
61679
61668
|
Readable.prototype.pause = function () {
|
61680
61669
|
debug('call pause flowing=%j', this._readableState.flowing);
|
61681
|
-
|
61682
61670
|
if (this._readableState.flowing !== false) {
|
61683
61671
|
debug('pause');
|
61684
61672
|
this._readableState.flowing = false;
|
61685
61673
|
this.emit('pause');
|
61686
61674
|
}
|
61687
|
-
|
61688
61675
|
this._readableState.paused = true;
|
61689
61676
|
return this;
|
61690
61677
|
};
|
61691
|
-
|
61692
61678
|
function flow(stream) {
|
61693
61679
|
var state = stream._readableState;
|
61694
61680
|
debug('flow', state.flowing);
|
61681
|
+
while (state.flowing && stream.read() !== null);
|
61682
|
+
}
|
61695
61683
|
|
61696
|
-
|
61697
|
-
;
|
61698
|
-
}
|
61699
|
-
} // wrap an old-style stream as the async data source.
|
61684
|
+
// wrap an old-style stream as the async data source.
|
61700
61685
|
// This is *not* part of the readable stream interface.
|
61701
61686
|
// It is an ugly unfortunate mess of history.
|
61702
|
-
|
61703
|
-
|
61704
61687
|
Readable.prototype.wrap = function (stream) {
|
61705
61688
|
var _this = this;
|
61706
|
-
|
61707
61689
|
var state = this._readableState;
|
61708
61690
|
var paused = false;
|
61709
61691
|
stream.on('end', function () {
|
61710
61692
|
debug('wrapped end');
|
61711
|
-
|
61712
61693
|
if (state.decoder && !state.ended) {
|
61713
61694
|
var chunk = state.decoder.end();
|
61714
61695
|
if (chunk && chunk.length) _this.push(chunk);
|
61715
61696
|
}
|
61716
|
-
|
61717
61697
|
_this.push(null);
|
61718
61698
|
});
|
61719
61699
|
stream.on('data', function (chunk) {
|
61720
61700
|
debug('wrapped data');
|
61721
|
-
if (state.decoder) chunk = state.decoder.write(chunk);
|
61701
|
+
if (state.decoder) chunk = state.decoder.write(chunk);
|
61722
61702
|
|
61703
|
+
// don't skip over falsy values in objectMode
|
61723
61704
|
if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
|
61724
|
-
|
61725
61705
|
var ret = _this.push(chunk);
|
61726
|
-
|
61727
61706
|
if (!ret) {
|
61728
61707
|
paused = true;
|
61729
61708
|
stream.pause();
|
61730
61709
|
}
|
61731
|
-
});
|
61732
|
-
// important when wrapping filters and duplexes.
|
61710
|
+
});
|
61733
61711
|
|
61712
|
+
// proxy all the other methods.
|
61713
|
+
// important when wrapping filters and duplexes.
|
61734
61714
|
for (var i in stream) {
|
61735
61715
|
if (this[i] === undefined && typeof stream[i] === 'function') {
|
61736
61716
|
this[i] = function methodWrap(method) {
|
@@ -61739,37 +61719,32 @@ Readable.prototype.wrap = function (stream) {
|
|
61739
61719
|
};
|
61740
61720
|
}(i);
|
61741
61721
|
}
|
61742
|
-
}
|
61743
|
-
|
61722
|
+
}
|
61744
61723
|
|
61724
|
+
// proxy certain important events.
|
61745
61725
|
for (var n = 0; n < kProxyEvents.length; n++) {
|
61746
61726
|
stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
|
61747
|
-
}
|
61748
|
-
// underlying stream.
|
61749
|
-
|
61727
|
+
}
|
61750
61728
|
|
61729
|
+
// when we try to consume some more bytes, simply unpause the
|
61730
|
+
// underlying stream.
|
61751
61731
|
this._read = function (n) {
|
61752
61732
|
debug('wrapped _read', n);
|
61753
|
-
|
61754
61733
|
if (paused) {
|
61755
61734
|
paused = false;
|
61756
61735
|
stream.resume();
|
61757
61736
|
}
|
61758
61737
|
};
|
61759
|
-
|
61760
61738
|
return this;
|
61761
61739
|
};
|
61762
|
-
|
61763
61740
|
if (typeof Symbol === 'function') {
|
61764
61741
|
Readable.prototype[Symbol.asyncIterator] = function () {
|
61765
61742
|
if (createReadableStreamAsyncIterator === undefined) {
|
61766
61743
|
createReadableStreamAsyncIterator = __webpack_require__(/*! ./internal/streams/async_iterator */ "../../node_modules/readable-stream/lib/internal/streams/async_iterator.js");
|
61767
61744
|
}
|
61768
|
-
|
61769
61745
|
return createReadableStreamAsyncIterator(this);
|
61770
61746
|
};
|
61771
61747
|
}
|
61772
|
-
|
61773
61748
|
Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
|
61774
61749
|
// making it explicit this property is not enumerable
|
61775
61750
|
// because otherwise some prototype manipulation in
|
@@ -61801,8 +61776,9 @@ Object.defineProperty(Readable.prototype, 'readableFlowing', {
|
|
61801
61776
|
this._readableState.flowing = state;
|
61802
61777
|
}
|
61803
61778
|
}
|
61804
|
-
});
|
61779
|
+
});
|
61805
61780
|
|
61781
|
+
// exposed for testing purposes only.
|
61806
61782
|
Readable._fromList = fromList;
|
61807
61783
|
Object.defineProperty(Readable.prototype, 'readableLength', {
|
61808
61784
|
// making it explicit this property is not enumerable
|
@@ -61812,11 +61788,12 @@ Object.defineProperty(Readable.prototype, 'readableLength', {
|
|
61812
61788
|
get: function get() {
|
61813
61789
|
return this._readableState.length;
|
61814
61790
|
}
|
61815
|
-
});
|
61791
|
+
});
|
61792
|
+
|
61793
|
+
// Pluck off n bytes from an array of buffers.
|
61816
61794
|
// Length is the combined lengths of all the buffers in the list.
|
61817
61795
|
// This function is designed to be inlinable, so please take care when making
|
61818
61796
|
// changes to the function body.
|
61819
|
-
|
61820
61797
|
function fromList(n, state) {
|
61821
61798
|
// nothing buffered
|
61822
61799
|
if (state.length === 0) return null;
|
@@ -61831,52 +61808,44 @@ function fromList(n, state) {
|
|
61831
61808
|
}
|
61832
61809
|
return ret;
|
61833
61810
|
}
|
61834
|
-
|
61835
61811
|
function endReadable(stream) {
|
61836
61812
|
var state = stream._readableState;
|
61837
61813
|
debug('endReadable', state.endEmitted);
|
61838
|
-
|
61839
61814
|
if (!state.endEmitted) {
|
61840
61815
|
state.ended = true;
|
61841
61816
|
process.nextTick(endReadableNT, state, stream);
|
61842
61817
|
}
|
61843
61818
|
}
|
61844
|
-
|
61845
61819
|
function endReadableNT(state, stream) {
|
61846
|
-
debug('endReadableNT', state.endEmitted, state.length);
|
61820
|
+
debug('endReadableNT', state.endEmitted, state.length);
|
61847
61821
|
|
61822
|
+
// Check that we didn't get one last unshift.
|
61848
61823
|
if (!state.endEmitted && state.length === 0) {
|
61849
61824
|
state.endEmitted = true;
|
61850
61825
|
stream.readable = false;
|
61851
61826
|
stream.emit('end');
|
61852
|
-
|
61853
61827
|
if (state.autoDestroy) {
|
61854
61828
|
// In case of duplex streams we need a way to detect
|
61855
61829
|
// if the writable side is ready for autoDestroy as well
|
61856
61830
|
var wState = stream._writableState;
|
61857
|
-
|
61858
61831
|
if (!wState || wState.autoDestroy && wState.finished) {
|
61859
61832
|
stream.destroy();
|
61860
61833
|
}
|
61861
61834
|
}
|
61862
61835
|
}
|
61863
61836
|
}
|
61864
|
-
|
61865
61837
|
if (typeof Symbol === 'function') {
|
61866
61838
|
Readable.from = function (iterable, opts) {
|
61867
61839
|
if (from === undefined) {
|
61868
61840
|
from = __webpack_require__(/*! ./internal/streams/from */ "../../node_modules/readable-stream/lib/internal/streams/from-browser.js");
|
61869
61841
|
}
|
61870
|
-
|
61871
61842
|
return from(Readable, iterable, opts);
|
61872
61843
|
};
|
61873
61844
|
}
|
61874
|
-
|
61875
61845
|
function indexOf(xs, x) {
|
61876
61846
|
for (var i = 0, l = xs.length; i < l; i++) {
|
61877
61847
|
if (xs[i] === x) return i;
|
61878
61848
|
}
|
61879
|
-
|
61880
61849
|
return -1;
|
61881
61850
|
}
|
61882
61851
|
|
@@ -61909,6 +61878,7 @@ function indexOf(xs, x) {
|
|
61909
61878
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
61910
61879
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
61911
61880
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
61881
|
+
|
61912
61882
|
// a transform stream is a readable/writable stream where you do
|
61913
61883
|
// something with the data. Sometimes it's called a "filter",
|
61914
61884
|
// but that's not a great name for it, since that implies a thing where
|
@@ -61952,40 +61922,34 @@ function indexOf(xs, x) {
|
|
61952
61922
|
// the results of the previous transformed chunk were consumed.
|
61953
61923
|
|
61954
61924
|
|
61955
|
-
module.exports = Transform;
|
61956
61925
|
|
61926
|
+
module.exports = Transform;
|
61957
61927
|
var _require$codes = (__webpack_require__(/*! ../errors */ "../../node_modules/readable-stream/errors-browser.js").codes),
|
61958
|
-
|
61959
|
-
|
61960
|
-
|
61961
|
-
|
61962
|
-
|
61928
|
+
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
61929
|
+
ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
|
61930
|
+
ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
|
61931
|
+
ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
|
61963
61932
|
var Duplex = __webpack_require__(/*! ./_stream_duplex */ "../../node_modules/readable-stream/lib/_stream_duplex.js");
|
61964
|
-
|
61965
61933
|
__webpack_require__(/*! inherits */ "../../node_modules/inherits/inherits_browser.js")(Transform, Duplex);
|
61966
|
-
|
61967
61934
|
function afterTransform(er, data) {
|
61968
61935
|
var ts = this._transformState;
|
61969
61936
|
ts.transforming = false;
|
61970
61937
|
var cb = ts.writecb;
|
61971
|
-
|
61972
61938
|
if (cb === null) {
|
61973
61939
|
return this.emit('error', new ERR_MULTIPLE_CALLBACK());
|
61974
61940
|
}
|
61975
|
-
|
61976
61941
|
ts.writechunk = null;
|
61977
61942
|
ts.writecb = null;
|
61978
|
-
if (data != null)
|
61943
|
+
if (data != null)
|
61944
|
+
// single equals check for both `null` and `undefined`
|
61979
61945
|
this.push(data);
|
61980
61946
|
cb(er);
|
61981
61947
|
var rs = this._readableState;
|
61982
61948
|
rs.reading = false;
|
61983
|
-
|
61984
61949
|
if (rs.needReadable || rs.length < rs.highWaterMark) {
|
61985
61950
|
this._read(rs.highWaterMark);
|
61986
61951
|
}
|
61987
61952
|
}
|
61988
|
-
|
61989
61953
|
function Transform(options) {
|
61990
61954
|
if (!(this instanceof Transform)) return new Transform(options);
|
61991
61955
|
Duplex.call(this, options);
|
@@ -61996,26 +61960,25 @@ function Transform(options) {
|
|
61996
61960
|
writecb: null,
|
61997
61961
|
writechunk: null,
|
61998
61962
|
writeencoding: null
|
61999
|
-
};
|
61963
|
+
};
|
61964
|
+
|
61965
|
+
// start out asking for a readable event once data is transformed.
|
61966
|
+
this._readableState.needReadable = true;
|
62000
61967
|
|
62001
|
-
|
61968
|
+
// we have implemented the _read method, and done the other things
|
62002
61969
|
// that Readable wants before the first _read call, so unset the
|
62003
61970
|
// sync guard flag.
|
62004
|
-
|
62005
61971
|
this._readableState.sync = false;
|
62006
|
-
|
62007
61972
|
if (options) {
|
62008
61973
|
if (typeof options.transform === 'function') this._transform = options.transform;
|
62009
61974
|
if (typeof options.flush === 'function') this._flush = options.flush;
|
62010
|
-
}
|
62011
|
-
|
61975
|
+
}
|
62012
61976
|
|
61977
|
+
// When the writable side finishes, then flush out anything remaining.
|
62013
61978
|
this.on('prefinish', prefinish);
|
62014
61979
|
}
|
62015
|
-
|
62016
61980
|
function prefinish() {
|
62017
61981
|
var _this = this;
|
62018
|
-
|
62019
61982
|
if (typeof this._flush === 'function' && !this._readableState.destroyed) {
|
62020
61983
|
this._flush(function (er, data) {
|
62021
61984
|
done(_this, er, data);
|
@@ -62024,11 +61987,12 @@ function prefinish() {
|
|
62024
61987
|
done(this, null, null);
|
62025
61988
|
}
|
62026
61989
|
}
|
62027
|
-
|
62028
61990
|
Transform.prototype.push = function (chunk, encoding) {
|
62029
61991
|
this._transformState.needTransform = false;
|
62030
61992
|
return Duplex.prototype.push.call(this, chunk, encoding);
|
62031
|
-
};
|
61993
|
+
};
|
61994
|
+
|
61995
|
+
// This is the part where you do stuff!
|
62032
61996
|
// override this function in implementation classes.
|
62033
61997
|
// 'chunk' is an input chunk.
|
62034
61998
|
//
|
@@ -62038,33 +62002,27 @@ Transform.prototype.push = function (chunk, encoding) {
|
|
62038
62002
|
// Call `cb(err)` when you are done with this chunk. If you pass
|
62039
62003
|
// an error, then that'll put the hurt on the whole operation. If you
|
62040
62004
|
// never call cb(), then you'll never get another chunk.
|
62041
|
-
|
62042
|
-
|
62043
62005
|
Transform.prototype._transform = function (chunk, encoding, cb) {
|
62044
62006
|
cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));
|
62045
62007
|
};
|
62046
|
-
|
62047
62008
|
Transform.prototype._write = function (chunk, encoding, cb) {
|
62048
62009
|
var ts = this._transformState;
|
62049
62010
|
ts.writecb = cb;
|
62050
62011
|
ts.writechunk = chunk;
|
62051
62012
|
ts.writeencoding = encoding;
|
62052
|
-
|
62053
62013
|
if (!ts.transforming) {
|
62054
62014
|
var rs = this._readableState;
|
62055
62015
|
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
62056
62016
|
}
|
62057
|
-
};
|
62017
|
+
};
|
62018
|
+
|
62019
|
+
// Doesn't matter what the args are here.
|
62058
62020
|
// _transform does all the work.
|
62059
62021
|
// That we got here means that the readable side wants more data.
|
62060
|
-
|
62061
|
-
|
62062
62022
|
Transform.prototype._read = function (n) {
|
62063
62023
|
var ts = this._transformState;
|
62064
|
-
|
62065
62024
|
if (ts.writechunk !== null && !ts.transforming) {
|
62066
62025
|
ts.transforming = true;
|
62067
|
-
|
62068
62026
|
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
62069
62027
|
} else {
|
62070
62028
|
// mark that we need a transform, so that any data that comes in
|
@@ -62072,20 +62030,20 @@ Transform.prototype._read = function (n) {
|
|
62072
62030
|
ts.needTransform = true;
|
62073
62031
|
}
|
62074
62032
|
};
|
62075
|
-
|
62076
62033
|
Transform.prototype._destroy = function (err, cb) {
|
62077
62034
|
Duplex.prototype._destroy.call(this, err, function (err2) {
|
62078
62035
|
cb(err2);
|
62079
62036
|
});
|
62080
62037
|
};
|
62081
|
-
|
62082
62038
|
function done(stream, er, data) {
|
62083
62039
|
if (er) return stream.emit('error', er);
|
62084
|
-
if (data != null)
|
62085
|
-
|
62040
|
+
if (data != null)
|
62041
|
+
// single equals check for both `null` and `undefined`
|
62042
|
+
stream.push(data);
|
62043
|
+
|
62044
|
+
// TODO(BridgeAR): Write a test for these two error cases
|
62086
62045
|
// if there's nothing in the write buffer, then that means
|
62087
62046
|
// that nothing more will ever be provided
|
62088
|
-
|
62089
62047
|
if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
|
62090
62048
|
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
62091
62049
|
return stream.push(null);
|
@@ -62121,29 +62079,29 @@ function done(stream, er, data) {
|
|
62121
62079
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
62122
62080
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
62123
62081
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
62082
|
+
|
62124
62083
|
// A bit simpler than readable streams.
|
62125
62084
|
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
|
62126
62085
|
// the drain event emission and buffering.
|
62127
62086
|
|
62128
62087
|
|
62088
|
+
|
62129
62089
|
module.exports = Writable;
|
62130
|
-
/* <replacement> */
|
62131
62090
|
|
62091
|
+
/* <replacement> */
|
62132
62092
|
function WriteReq(chunk, encoding, cb) {
|
62133
62093
|
this.chunk = chunk;
|
62134
62094
|
this.encoding = encoding;
|
62135
62095
|
this.callback = cb;
|
62136
62096
|
this.next = null;
|
62137
|
-
}
|
62138
|
-
// there will be only 2 of these for each stream
|
62139
|
-
|
62097
|
+
}
|
62140
62098
|
|
62099
|
+
// It seems a linked list but it is not
|
62100
|
+
// there will be only 2 of these for each stream
|
62141
62101
|
function CorkedRequest(state) {
|
62142
62102
|
var _this = this;
|
62143
|
-
|
62144
62103
|
this.next = null;
|
62145
62104
|
this.entry = null;
|
62146
|
-
|
62147
62105
|
this.finish = function () {
|
62148
62106
|
onCorkedFinish(_this, state);
|
62149
62107
|
};
|
@@ -62151,155 +62109,159 @@ function CorkedRequest(state) {
|
|
62151
62109
|
/* </replacement> */
|
62152
62110
|
|
62153
62111
|
/*<replacement>*/
|
62154
|
-
|
62155
|
-
|
62156
62112
|
var Duplex;
|
62157
62113
|
/*</replacement>*/
|
62158
62114
|
|
62159
62115
|
Writable.WritableState = WritableState;
|
62160
|
-
/*<replacement>*/
|
62161
62116
|
|
62117
|
+
/*<replacement>*/
|
62162
62118
|
var internalUtil = {
|
62163
62119
|
deprecate: __webpack_require__(/*! util-deprecate */ "../../node_modules/util-deprecate/browser.js")
|
62164
62120
|
};
|
62165
62121
|
/*</replacement>*/
|
62166
62122
|
|
62167
62123
|
/*<replacement>*/
|
62168
|
-
|
62169
62124
|
var Stream = __webpack_require__(/*! ./internal/streams/stream */ "../../node_modules/readable-stream/lib/internal/streams/stream-browser.js");
|
62170
62125
|
/*</replacement>*/
|
62171
62126
|
|
62172
|
-
|
62173
62127
|
var Buffer = (__webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js").Buffer);
|
62174
|
-
|
62175
|
-
var OurUint8Array = __webpack_require__.g.Uint8Array || function () {};
|
62176
|
-
|
62128
|
+
var OurUint8Array = (typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};
|
62177
62129
|
function _uint8ArrayToBuffer(chunk) {
|
62178
62130
|
return Buffer.from(chunk);
|
62179
62131
|
}
|
62180
|
-
|
62181
62132
|
function _isUint8Array(obj) {
|
62182
62133
|
return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
|
62183
62134
|
}
|
62184
|
-
|
62185
62135
|
var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ "../../node_modules/readable-stream/lib/internal/streams/destroy.js");
|
62186
|
-
|
62187
62136
|
var _require = __webpack_require__(/*! ./internal/streams/state */ "../../node_modules/readable-stream/lib/internal/streams/state.js"),
|
62188
|
-
|
62189
|
-
|
62137
|
+
getHighWaterMark = _require.getHighWaterMark;
|
62190
62138
|
var _require$codes = (__webpack_require__(/*! ../errors */ "../../node_modules/readable-stream/errors-browser.js").codes),
|
62191
|
-
|
62192
|
-
|
62193
|
-
|
62194
|
-
|
62195
|
-
|
62196
|
-
|
62197
|
-
|
62198
|
-
|
62199
|
-
|
62139
|
+
ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
|
62140
|
+
ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
|
62141
|
+
ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
|
62142
|
+
ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,
|
62143
|
+
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,
|
62144
|
+
ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,
|
62145
|
+
ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,
|
62146
|
+
ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
|
62200
62147
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
62201
|
-
|
62202
62148
|
__webpack_require__(/*! inherits */ "../../node_modules/inherits/inherits_browser.js")(Writable, Stream);
|
62203
|
-
|
62204
62149
|
function nop() {}
|
62205
|
-
|
62206
62150
|
function WritableState(options, stream, isDuplex) {
|
62207
62151
|
Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "../../node_modules/readable-stream/lib/_stream_duplex.js");
|
62208
|
-
options = options || {};
|
62152
|
+
options = options || {};
|
62153
|
+
|
62154
|
+
// Duplex streams are both readable and writable, but share
|
62209
62155
|
// the same options object.
|
62210
62156
|
// However, some cases require setting options to different
|
62211
62157
|
// values for the readable and the writable sides of the duplex stream,
|
62212
62158
|
// e.g. options.readableObjectMode vs. options.writableObjectMode, etc.
|
62159
|
+
if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex;
|
62213
62160
|
|
62214
|
-
|
62161
|
+
// object stream flag to indicate whether or not this stream
|
62215
62162
|
// contains buffers or objects.
|
62216
|
-
|
62217
62163
|
this.objectMode = !!options.objectMode;
|
62218
|
-
if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
|
62164
|
+
if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;
|
62165
|
+
|
62166
|
+
// the point at which write() starts returning false
|
62219
62167
|
// Note: 0 is a valid value, means that we always return false if
|
62220
62168
|
// the entire buffer is not flushed immediately on write()
|
62169
|
+
this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex);
|
62221
62170
|
|
62222
|
-
|
62223
|
-
|
62224
|
-
this.finalCalled = false; // drain event flag.
|
62225
|
-
|
62226
|
-
this.needDrain = false; // at the start of calling end()
|
62171
|
+
// if _final has been called
|
62172
|
+
this.finalCalled = false;
|
62227
62173
|
|
62228
|
-
|
62229
|
-
|
62230
|
-
|
62174
|
+
// drain event flag.
|
62175
|
+
this.needDrain = false;
|
62176
|
+
// at the start of calling end()
|
62177
|
+
this.ending = false;
|
62178
|
+
// when end() has been called, and returned
|
62179
|
+
this.ended = false;
|
62180
|
+
// when 'finish' is emitted
|
62181
|
+
this.finished = false;
|
62231
62182
|
|
62232
|
-
|
62183
|
+
// has it been destroyed
|
62184
|
+
this.destroyed = false;
|
62233
62185
|
|
62234
|
-
|
62186
|
+
// should we decode strings into buffers before passing to _write?
|
62235
62187
|
// this is here so that some node-core streams can optimize string
|
62236
62188
|
// handling at a lower level.
|
62237
|
-
|
62238
62189
|
var noDecode = options.decodeStrings === false;
|
62239
|
-
this.decodeStrings = !noDecode;
|
62190
|
+
this.decodeStrings = !noDecode;
|
62191
|
+
|
62192
|
+
// Crypto is kind of old and crusty. Historically, its default string
|
62240
62193
|
// encoding is 'binary' so we have to make this configurable.
|
62241
62194
|
// Everything else in the universe uses 'utf8', though.
|
62195
|
+
this.defaultEncoding = options.defaultEncoding || 'utf8';
|
62242
62196
|
|
62243
|
-
|
62197
|
+
// not an actual buffer we keep track of, but a measurement
|
62244
62198
|
// of how much we're waiting to get pushed to some underlying
|
62245
62199
|
// socket or file.
|
62200
|
+
this.length = 0;
|
62246
62201
|
|
62247
|
-
|
62202
|
+
// a flag to see when we're in the middle of a write.
|
62203
|
+
this.writing = false;
|
62248
62204
|
|
62249
|
-
|
62205
|
+
// when true all writes will be buffered until .uncork() call
|
62206
|
+
this.corked = 0;
|
62250
62207
|
|
62251
|
-
|
62208
|
+
// a flag to be able to tell if the onwrite cb is called immediately,
|
62252
62209
|
// or on a later tick. We set this to true at first, because any
|
62253
62210
|
// actions that shouldn't happen until "later" should generally also
|
62254
62211
|
// not happen before the first write call.
|
62212
|
+
this.sync = true;
|
62255
62213
|
|
62256
|
-
|
62214
|
+
// a flag to know if we're processing previously buffered items, which
|
62257
62215
|
// may call the _write() callback in the same tick, so that we don't
|
62258
62216
|
// end up in an overlapped onwrite situation.
|
62217
|
+
this.bufferProcessing = false;
|
62259
62218
|
|
62260
|
-
|
62261
|
-
|
62219
|
+
// the callback that's passed to _write(chunk,cb)
|
62262
62220
|
this.onwrite = function (er) {
|
62263
62221
|
onwrite(stream, er);
|
62264
|
-
};
|
62265
|
-
|
62222
|
+
};
|
62266
62223
|
|
62267
|
-
|
62224
|
+
// the callback that the user supplies to write(chunk,encoding,cb)
|
62225
|
+
this.writecb = null;
|
62268
62226
|
|
62227
|
+
// the amount that is being written when _write is called.
|
62269
62228
|
this.writelen = 0;
|
62270
62229
|
this.bufferedRequest = null;
|
62271
|
-
this.lastBufferedRequest = null;
|
62230
|
+
this.lastBufferedRequest = null;
|
62231
|
+
|
62232
|
+
// number of pending user-supplied write callbacks
|
62272
62233
|
// this must be 0 before 'finish' can be emitted
|
62234
|
+
this.pendingcb = 0;
|
62273
62235
|
|
62274
|
-
|
62236
|
+
// emit prefinish if the only thing we're waiting for is _write cbs
|
62275
62237
|
// This is relevant for synchronous Transform streams
|
62238
|
+
this.prefinished = false;
|
62276
62239
|
|
62277
|
-
|
62240
|
+
// True if the error was already emitted and should not be thrown again
|
62241
|
+
this.errorEmitted = false;
|
62278
62242
|
|
62279
|
-
|
62243
|
+
// Should close be emitted on destroy. Defaults to true.
|
62244
|
+
this.emitClose = options.emitClose !== false;
|
62280
62245
|
|
62281
|
-
|
62246
|
+
// Should .destroy() be called after 'finish' (and potentially 'end')
|
62247
|
+
this.autoDestroy = !!options.autoDestroy;
|
62282
62248
|
|
62283
|
-
|
62249
|
+
// count buffered requests
|
62250
|
+
this.bufferedRequestCount = 0;
|
62284
62251
|
|
62285
|
-
|
62252
|
+
// allocate the first CorkedRequest, there is always
|
62286
62253
|
// one allocated and free to use, and we maintain at most two
|
62287
|
-
|
62288
62254
|
this.corkedRequestsFree = new CorkedRequest(this);
|
62289
62255
|
}
|
62290
|
-
|
62291
62256
|
WritableState.prototype.getBuffer = function getBuffer() {
|
62292
62257
|
var current = this.bufferedRequest;
|
62293
62258
|
var out = [];
|
62294
|
-
|
62295
62259
|
while (current) {
|
62296
62260
|
out.push(current);
|
62297
62261
|
current = current.next;
|
62298
62262
|
}
|
62299
|
-
|
62300
62263
|
return out;
|
62301
62264
|
};
|
62302
|
-
|
62303
62265
|
(function () {
|
62304
62266
|
try {
|
62305
62267
|
Object.defineProperty(WritableState.prototype, 'buffer', {
|
@@ -62308,12 +62270,11 @@ WritableState.prototype.getBuffer = function getBuffer() {
|
|
62308
62270
|
}, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
|
62309
62271
|
});
|
62310
62272
|
} catch (_) {}
|
62311
|
-
})();
|
62312
|
-
// whose prototype chain only points to Readable.
|
62313
|
-
|
62273
|
+
})();
|
62314
62274
|
|
62275
|
+
// Test _writableState for inheritance to account for Duplex streams,
|
62276
|
+
// whose prototype chain only points to Readable.
|
62315
62277
|
var realHasInstance;
|
62316
|
-
|
62317
62278
|
if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
|
62318
62279
|
realHasInstance = Function.prototype[Symbol.hasInstance];
|
62319
62280
|
Object.defineProperty(Writable, Symbol.hasInstance, {
|
@@ -62328,81 +62289,73 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot
|
|
62328
62289
|
return object instanceof this;
|
62329
62290
|
};
|
62330
62291
|
}
|
62331
|
-
|
62332
62292
|
function Writable(options) {
|
62333
|
-
Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "../../node_modules/readable-stream/lib/_stream_duplex.js");
|
62293
|
+
Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ "../../node_modules/readable-stream/lib/_stream_duplex.js");
|
62294
|
+
|
62295
|
+
// Writable ctor is applied to Duplexes, too.
|
62334
62296
|
// `realHasInstance` is necessary because using plain `instanceof`
|
62335
62297
|
// would return false, as no `_writableState` property is attached.
|
62298
|
+
|
62336
62299
|
// Trying to use the custom `instanceof` for Writable here will also break the
|
62337
62300
|
// Node.js LazyTransform implementation, which has a non-trivial getter for
|
62338
62301
|
// `_writableState` that would lead to infinite recursion.
|
62302
|
+
|
62339
62303
|
// Checking for a Stream.Duplex instance is faster here instead of inside
|
62340
62304
|
// the WritableState constructor, at least with V8 6.5
|
62341
|
-
|
62342
62305
|
var isDuplex = this instanceof Duplex;
|
62343
62306
|
if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);
|
62344
|
-
this._writableState = new WritableState(options, this, isDuplex);
|
62307
|
+
this._writableState = new WritableState(options, this, isDuplex);
|
62345
62308
|
|
62309
|
+
// legacy.
|
62346
62310
|
this.writable = true;
|
62347
|
-
|
62348
62311
|
if (options) {
|
62349
62312
|
if (typeof options.write === 'function') this._write = options.write;
|
62350
62313
|
if (typeof options.writev === 'function') this._writev = options.writev;
|
62351
62314
|
if (typeof options.destroy === 'function') this._destroy = options.destroy;
|
62352
62315
|
if (typeof options.final === 'function') this._final = options.final;
|
62353
62316
|
}
|
62354
|
-
|
62355
62317
|
Stream.call(this);
|
62356
|
-
}
|
62357
|
-
|
62318
|
+
}
|
62358
62319
|
|
62320
|
+
// Otherwise people can pipe Writable streams, which is just wrong.
|
62359
62321
|
Writable.prototype.pipe = function () {
|
62360
62322
|
errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
|
62361
62323
|
};
|
62362
|
-
|
62363
62324
|
function writeAfterEnd(stream, cb) {
|
62364
|
-
var er = new ERR_STREAM_WRITE_AFTER_END();
|
62365
|
-
|
62325
|
+
var er = new ERR_STREAM_WRITE_AFTER_END();
|
62326
|
+
// TODO: defer error events consistently everywhere, not just the cb
|
62366
62327
|
errorOrDestroy(stream, er);
|
62367
62328
|
process.nextTick(cb, er);
|
62368
|
-
}
|
62329
|
+
}
|
62330
|
+
|
62331
|
+
// Checks that a user-supplied chunk is valid, especially for the particular
|
62369
62332
|
// mode the stream is in. Currently this means that `null` is never accepted
|
62370
62333
|
// and undefined/non-string values are only allowed in object mode.
|
62371
|
-
|
62372
|
-
|
62373
62334
|
function validChunk(stream, state, chunk, cb) {
|
62374
62335
|
var er;
|
62375
|
-
|
62376
62336
|
if (chunk === null) {
|
62377
62337
|
er = new ERR_STREAM_NULL_VALUES();
|
62378
62338
|
} else if (typeof chunk !== 'string' && !state.objectMode) {
|
62379
62339
|
er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);
|
62380
62340
|
}
|
62381
|
-
|
62382
62341
|
if (er) {
|
62383
62342
|
errorOrDestroy(stream, er);
|
62384
62343
|
process.nextTick(cb, er);
|
62385
62344
|
return false;
|
62386
62345
|
}
|
62387
|
-
|
62388
62346
|
return true;
|
62389
62347
|
}
|
62390
|
-
|
62391
62348
|
Writable.prototype.write = function (chunk, encoding, cb) {
|
62392
62349
|
var state = this._writableState;
|
62393
62350
|
var ret = false;
|
62394
|
-
|
62395
62351
|
var isBuf = !state.objectMode && _isUint8Array(chunk);
|
62396
|
-
|
62397
62352
|
if (isBuf && !Buffer.isBuffer(chunk)) {
|
62398
62353
|
chunk = _uint8ArrayToBuffer(chunk);
|
62399
62354
|
}
|
62400
|
-
|
62401
62355
|
if (typeof encoding === 'function') {
|
62402
62356
|
cb = encoding;
|
62403
62357
|
encoding = null;
|
62404
62358
|
}
|
62405
|
-
|
62406
62359
|
if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
|
62407
62360
|
if (typeof cb !== 'function') cb = nop;
|
62408
62361
|
if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
|
@@ -62411,20 +62364,16 @@ Writable.prototype.write = function (chunk, encoding, cb) {
|
|
62411
62364
|
}
|
62412
62365
|
return ret;
|
62413
62366
|
};
|
62414
|
-
|
62415
62367
|
Writable.prototype.cork = function () {
|
62416
62368
|
this._writableState.corked++;
|
62417
62369
|
};
|
62418
|
-
|
62419
62370
|
Writable.prototype.uncork = function () {
|
62420
62371
|
var state = this._writableState;
|
62421
|
-
|
62422
62372
|
if (state.corked) {
|
62423
62373
|
state.corked--;
|
62424
62374
|
if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
|
62425
62375
|
}
|
62426
62376
|
};
|
62427
|
-
|
62428
62377
|
Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
|
62429
62378
|
// node::ParseEncoding() requires lower case.
|
62430
62379
|
if (typeof encoding === 'string') encoding = encoding.toLowerCase();
|
@@ -62432,7 +62381,6 @@ Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
|
|
62432
62381
|
this._writableState.defaultEncoding = encoding;
|
62433
62382
|
return this;
|
62434
62383
|
};
|
62435
|
-
|
62436
62384
|
Object.defineProperty(Writable.prototype, 'writableBuffer', {
|
62437
62385
|
// making it explicit this property is not enumerable
|
62438
62386
|
// because otherwise some prototype manipulation in
|
@@ -62442,15 +62390,12 @@ Object.defineProperty(Writable.prototype, 'writableBuffer', {
|
|
62442
62390
|
return this._writableState && this._writableState.getBuffer();
|
62443
62391
|
}
|
62444
62392
|
});
|
62445
|
-
|
62446
62393
|
function decodeChunk(state, chunk, encoding) {
|
62447
62394
|
if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
|
62448
62395
|
chunk = Buffer.from(chunk, encoding);
|
62449
62396
|
}
|
62450
|
-
|
62451
62397
|
return chunk;
|
62452
62398
|
}
|
62453
|
-
|
62454
62399
|
Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
|
62455
62400
|
// making it explicit this property is not enumerable
|
62456
62401
|
// because otherwise some prototype manipulation in
|
@@ -62459,27 +62404,25 @@ Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
|
|
62459
62404
|
get: function get() {
|
62460
62405
|
return this._writableState.highWaterMark;
|
62461
62406
|
}
|
62462
|
-
});
|
62407
|
+
});
|
62408
|
+
|
62409
|
+
// if we're already writing something, then just put this
|
62463
62410
|
// in the queue, and wait our turn. Otherwise, call _write
|
62464
62411
|
// If we return false, then we need a drain event, so set that flag.
|
62465
|
-
|
62466
62412
|
function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
|
62467
62413
|
if (!isBuf) {
|
62468
62414
|
var newChunk = decodeChunk(state, chunk, encoding);
|
62469
|
-
|
62470
62415
|
if (chunk !== newChunk) {
|
62471
62416
|
isBuf = true;
|
62472
62417
|
encoding = 'buffer';
|
62473
62418
|
chunk = newChunk;
|
62474
62419
|
}
|
62475
62420
|
}
|
62476
|
-
|
62477
62421
|
var len = state.objectMode ? 1 : chunk.length;
|
62478
62422
|
state.length += len;
|
62479
|
-
var ret = state.length < state.highWaterMark;
|
62480
|
-
|
62423
|
+
var ret = state.length < state.highWaterMark;
|
62424
|
+
// we must ensure that previous needDrain will not be reset to false.
|
62481
62425
|
if (!ret) state.needDrain = true;
|
62482
|
-
|
62483
62426
|
if (state.writing || state.corked) {
|
62484
62427
|
var last = state.lastBufferedRequest;
|
62485
62428
|
state.lastBufferedRequest = {
|
@@ -62489,21 +62432,17 @@ function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
|
|
62489
62432
|
callback: cb,
|
62490
62433
|
next: null
|
62491
62434
|
};
|
62492
|
-
|
62493
62435
|
if (last) {
|
62494
62436
|
last.next = state.lastBufferedRequest;
|
62495
62437
|
} else {
|
62496
62438
|
state.bufferedRequest = state.lastBufferedRequest;
|
62497
62439
|
}
|
62498
|
-
|
62499
62440
|
state.bufferedRequestCount += 1;
|
62500
62441
|
} else {
|
62501
62442
|
doWrite(stream, state, false, len, chunk, encoding, cb);
|
62502
62443
|
}
|
62503
|
-
|
62504
62444
|
return ret;
|
62505
62445
|
}
|
62506
|
-
|
62507
62446
|
function doWrite(stream, state, writev, len, chunk, encoding, cb) {
|
62508
62447
|
state.writelen = len;
|
62509
62448
|
state.writecb = cb;
|
@@ -62512,16 +62451,14 @@ function doWrite(stream, state, writev, len, chunk, encoding, cb) {
|
|
62512
62451
|
if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
|
62513
62452
|
state.sync = false;
|
62514
62453
|
}
|
62515
|
-
|
62516
62454
|
function onwriteError(stream, state, sync, er, cb) {
|
62517
62455
|
--state.pendingcb;
|
62518
|
-
|
62519
62456
|
if (sync) {
|
62520
62457
|
// defer the callback if we are being called synchronously
|
62521
62458
|
// to avoid piling up things on the stack
|
62522
|
-
process.nextTick(cb, er);
|
62459
|
+
process.nextTick(cb, er);
|
62460
|
+
// this can emit finish, and it will always happen
|
62523
62461
|
// after error
|
62524
|
-
|
62525
62462
|
process.nextTick(finishMaybe, stream, state);
|
62526
62463
|
stream._writableState.errorEmitted = true;
|
62527
62464
|
errorOrDestroy(stream, er);
|
@@ -62530,20 +62467,18 @@ function onwriteError(stream, state, sync, er, cb) {
|
|
62530
62467
|
// it is async
|
62531
62468
|
cb(er);
|
62532
62469
|
stream._writableState.errorEmitted = true;
|
62533
|
-
errorOrDestroy(stream, er);
|
62470
|
+
errorOrDestroy(stream, er);
|
62471
|
+
// this can emit finish, but finish must
|
62534
62472
|
// always follow error
|
62535
|
-
|
62536
62473
|
finishMaybe(stream, state);
|
62537
62474
|
}
|
62538
62475
|
}
|
62539
|
-
|
62540
62476
|
function onwriteStateUpdate(state) {
|
62541
62477
|
state.writing = false;
|
62542
62478
|
state.writecb = null;
|
62543
62479
|
state.length -= state.writelen;
|
62544
62480
|
state.writelen = 0;
|
62545
62481
|
}
|
62546
|
-
|
62547
62482
|
function onwrite(stream, er) {
|
62548
62483
|
var state = stream._writableState;
|
62549
62484
|
var sync = state.sync;
|
@@ -62553,11 +62488,9 @@ function onwrite(stream, er) {
|
|
62553
62488
|
if (er) onwriteError(stream, state, sync, er, cb);else {
|
62554
62489
|
// Check if we're actually ready to finish, but don't emit yet
|
62555
62490
|
var finished = needFinish(state) || stream.destroyed;
|
62556
|
-
|
62557
62491
|
if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
|
62558
62492
|
clearBuffer(stream, state);
|
62559
62493
|
}
|
62560
|
-
|
62561
62494
|
if (sync) {
|
62562
62495
|
process.nextTick(afterWrite, stream, state, finished, cb);
|
62563
62496
|
} else {
|
@@ -62565,29 +62498,27 @@ function onwrite(stream, er) {
|
|
62565
62498
|
}
|
62566
62499
|
}
|
62567
62500
|
}
|
62568
|
-
|
62569
62501
|
function afterWrite(stream, state, finished, cb) {
|
62570
62502
|
if (!finished) onwriteDrain(stream, state);
|
62571
62503
|
state.pendingcb--;
|
62572
62504
|
cb();
|
62573
62505
|
finishMaybe(stream, state);
|
62574
|
-
}
|
62506
|
+
}
|
62507
|
+
|
62508
|
+
// Must force callback to be called on nextTick, so that we don't
|
62575
62509
|
// emit 'drain' before the write() consumer gets the 'false' return
|
62576
62510
|
// value, and has a chance to attach a 'drain' listener.
|
62577
|
-
|
62578
|
-
|
62579
62511
|
function onwriteDrain(stream, state) {
|
62580
62512
|
if (state.length === 0 && state.needDrain) {
|
62581
62513
|
state.needDrain = false;
|
62582
62514
|
stream.emit('drain');
|
62583
62515
|
}
|
62584
|
-
}
|
62585
|
-
|
62516
|
+
}
|
62586
62517
|
|
62518
|
+
// if there's something in the buffer waiting, then process it
|
62587
62519
|
function clearBuffer(stream, state) {
|
62588
62520
|
state.bufferProcessing = true;
|
62589
62521
|
var entry = state.bufferedRequest;
|
62590
|
-
|
62591
62522
|
if (stream._writev && entry && entry.next) {
|
62592
62523
|
// Fast case, write everything using _writev()
|
62593
62524
|
var l = state.bufferedRequestCount;
|
@@ -62596,28 +62527,25 @@ function clearBuffer(stream, state) {
|
|
62596
62527
|
holder.entry = entry;
|
62597
62528
|
var count = 0;
|
62598
62529
|
var allBuffers = true;
|
62599
|
-
|
62600
62530
|
while (entry) {
|
62601
62531
|
buffer[count] = entry;
|
62602
62532
|
if (!entry.isBuf) allBuffers = false;
|
62603
62533
|
entry = entry.next;
|
62604
62534
|
count += 1;
|
62605
62535
|
}
|
62606
|
-
|
62607
62536
|
buffer.allBuffers = allBuffers;
|
62608
|
-
doWrite(stream, state, true, state.length, buffer, '', holder.finish);
|
62609
|
-
// as the hot path ends with doWrite
|
62537
|
+
doWrite(stream, state, true, state.length, buffer, '', holder.finish);
|
62610
62538
|
|
62539
|
+
// doWrite is almost always async, defer these to save a bit of time
|
62540
|
+
// as the hot path ends with doWrite
|
62611
62541
|
state.pendingcb++;
|
62612
62542
|
state.lastBufferedRequest = null;
|
62613
|
-
|
62614
62543
|
if (holder.next) {
|
62615
62544
|
state.corkedRequestsFree = holder.next;
|
62616
62545
|
holder.next = null;
|
62617
62546
|
} else {
|
62618
62547
|
state.corkedRequestsFree = new CorkedRequest(state);
|
62619
62548
|
}
|
62620
|
-
|
62621
62549
|
state.bufferedRequestCount = 0;
|
62622
62550
|
} else {
|
62623
62551
|
// Slow case, write chunks one-by-one
|
@@ -62628,32 +62556,26 @@ function clearBuffer(stream, state) {
|
|
62628
62556
|
var len = state.objectMode ? 1 : chunk.length;
|
62629
62557
|
doWrite(stream, state, false, len, chunk, encoding, cb);
|
62630
62558
|
entry = entry.next;
|
62631
|
-
state.bufferedRequestCount--;
|
62559
|
+
state.bufferedRequestCount--;
|
62560
|
+
// if we didn't call the onwrite immediately, then
|
62632
62561
|
// it means that we need to wait until it does.
|
62633
62562
|
// also, that means that the chunk and cb are currently
|
62634
62563
|
// being processed, so move the buffer counter past them.
|
62635
|
-
|
62636
62564
|
if (state.writing) {
|
62637
62565
|
break;
|
62638
62566
|
}
|
62639
62567
|
}
|
62640
|
-
|
62641
62568
|
if (entry === null) state.lastBufferedRequest = null;
|
62642
62569
|
}
|
62643
|
-
|
62644
62570
|
state.bufferedRequest = entry;
|
62645
62571
|
state.bufferProcessing = false;
|
62646
62572
|
}
|
62647
|
-
|
62648
62573
|
Writable.prototype._write = function (chunk, encoding, cb) {
|
62649
62574
|
cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));
|
62650
62575
|
};
|
62651
|
-
|
62652
62576
|
Writable.prototype._writev = null;
|
62653
|
-
|
62654
62577
|
Writable.prototype.end = function (chunk, encoding, cb) {
|
62655
62578
|
var state = this._writableState;
|
62656
|
-
|
62657
62579
|
if (typeof chunk === 'function') {
|
62658
62580
|
cb = chunk;
|
62659
62581
|
chunk = null;
|
@@ -62662,19 +62584,18 @@ Writable.prototype.end = function (chunk, encoding, cb) {
|
|
62662
62584
|
cb = encoding;
|
62663
62585
|
encoding = null;
|
62664
62586
|
}
|
62587
|
+
if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);
|
62665
62588
|
|
62666
|
-
|
62667
|
-
|
62589
|
+
// .end() fully uncorks
|
62668
62590
|
if (state.corked) {
|
62669
62591
|
state.corked = 1;
|
62670
62592
|
this.uncork();
|
62671
|
-
}
|
62672
|
-
|
62593
|
+
}
|
62673
62594
|
|
62595
|
+
// ignore unnecessary end() calls.
|
62674
62596
|
if (!state.ending) endWritable(this, state, cb);
|
62675
62597
|
return this;
|
62676
62598
|
};
|
62677
|
-
|
62678
62599
|
Object.defineProperty(Writable.prototype, 'writableLength', {
|
62679
62600
|
// making it explicit this property is not enumerable
|
62680
62601
|
// because otherwise some prototype manipulation in
|
@@ -62684,25 +62605,20 @@ Object.defineProperty(Writable.prototype, 'writableLength', {
|
|
62684
62605
|
return this._writableState.length;
|
62685
62606
|
}
|
62686
62607
|
});
|
62687
|
-
|
62688
62608
|
function needFinish(state) {
|
62689
62609
|
return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
|
62690
62610
|
}
|
62691
|
-
|
62692
62611
|
function callFinal(stream, state) {
|
62693
62612
|
stream._final(function (err) {
|
62694
62613
|
state.pendingcb--;
|
62695
|
-
|
62696
62614
|
if (err) {
|
62697
62615
|
errorOrDestroy(stream, err);
|
62698
62616
|
}
|
62699
|
-
|
62700
62617
|
state.prefinished = true;
|
62701
62618
|
stream.emit('prefinish');
|
62702
62619
|
finishMaybe(stream, state);
|
62703
62620
|
});
|
62704
62621
|
}
|
62705
|
-
|
62706
62622
|
function prefinish(stream, state) {
|
62707
62623
|
if (!state.prefinished && !state.finalCalled) {
|
62708
62624
|
if (typeof stream._final === 'function' && !state.destroyed) {
|
@@ -62715,59 +62631,47 @@ function prefinish(stream, state) {
|
|
62715
62631
|
}
|
62716
62632
|
}
|
62717
62633
|
}
|
62718
|
-
|
62719
62634
|
function finishMaybe(stream, state) {
|
62720
62635
|
var need = needFinish(state);
|
62721
|
-
|
62722
62636
|
if (need) {
|
62723
62637
|
prefinish(stream, state);
|
62724
|
-
|
62725
62638
|
if (state.pendingcb === 0) {
|
62726
62639
|
state.finished = true;
|
62727
62640
|
stream.emit('finish');
|
62728
|
-
|
62729
62641
|
if (state.autoDestroy) {
|
62730
62642
|
// In case of duplex streams we need a way to detect
|
62731
62643
|
// if the readable side is ready for autoDestroy as well
|
62732
62644
|
var rState = stream._readableState;
|
62733
|
-
|
62734
62645
|
if (!rState || rState.autoDestroy && rState.endEmitted) {
|
62735
62646
|
stream.destroy();
|
62736
62647
|
}
|
62737
62648
|
}
|
62738
62649
|
}
|
62739
62650
|
}
|
62740
|
-
|
62741
62651
|
return need;
|
62742
62652
|
}
|
62743
|
-
|
62744
62653
|
function endWritable(stream, state, cb) {
|
62745
62654
|
state.ending = true;
|
62746
62655
|
finishMaybe(stream, state);
|
62747
|
-
|
62748
62656
|
if (cb) {
|
62749
62657
|
if (state.finished) process.nextTick(cb);else stream.once('finish', cb);
|
62750
62658
|
}
|
62751
|
-
|
62752
62659
|
state.ended = true;
|
62753
62660
|
stream.writable = false;
|
62754
62661
|
}
|
62755
|
-
|
62756
62662
|
function onCorkedFinish(corkReq, state, err) {
|
62757
62663
|
var entry = corkReq.entry;
|
62758
62664
|
corkReq.entry = null;
|
62759
|
-
|
62760
62665
|
while (entry) {
|
62761
62666
|
var cb = entry.callback;
|
62762
62667
|
state.pendingcb--;
|
62763
62668
|
cb(err);
|
62764
62669
|
entry = entry.next;
|
62765
|
-
}
|
62766
|
-
|
62670
|
+
}
|
62767
62671
|
|
62672
|
+
// reuse the free corkReq.
|
62768
62673
|
state.corkedRequestsFree.next = corkReq;
|
62769
62674
|
}
|
62770
|
-
|
62771
62675
|
Object.defineProperty(Writable.prototype, 'destroyed', {
|
62772
62676
|
// making it explicit this property is not enumerable
|
62773
62677
|
// because otherwise some prototype manipulation in
|
@@ -62777,7 +62681,6 @@ Object.defineProperty(Writable.prototype, 'destroyed', {
|
|
62777
62681
|
if (this._writableState === undefined) {
|
62778
62682
|
return false;
|
62779
62683
|
}
|
62780
|
-
|
62781
62684
|
return this._writableState.destroyed;
|
62782
62685
|
},
|
62783
62686
|
set: function set(value) {
|
@@ -62785,16 +62688,15 @@ Object.defineProperty(Writable.prototype, 'destroyed', {
|
|
62785
62688
|
// has not been initialized yet
|
62786
62689
|
if (!this._writableState) {
|
62787
62690
|
return;
|
62788
|
-
}
|
62789
|
-
// managing destroyed
|
62790
|
-
|
62691
|
+
}
|
62791
62692
|
|
62693
|
+
// backward compatibility, the user is explicitly
|
62694
|
+
// managing destroyed
|
62792
62695
|
this._writableState.destroyed = value;
|
62793
62696
|
}
|
62794
62697
|
});
|
62795
62698
|
Writable.prototype.destroy = destroyImpl.destroy;
|
62796
62699
|
Writable.prototype._undestroy = destroyImpl.undestroy;
|
62797
|
-
|
62798
62700
|
Writable.prototype._destroy = function (err, cb) {
|
62799
62701
|
cb(err);
|
62800
62702
|
};
|
@@ -62812,11 +62714,10 @@ Writable.prototype._destroy = function (err, cb) {
|
|
62812
62714
|
|
62813
62715
|
|
62814
62716
|
var _Object$setPrototypeO;
|
62815
|
-
|
62816
|
-
function
|
62817
|
-
|
62717
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
62718
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
62719
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
62818
62720
|
var finished = __webpack_require__(/*! ./end-of-stream */ "../../node_modules/readable-stream/lib/internal/streams/end-of-stream.js");
|
62819
|
-
|
62820
62721
|
var kLastResolve = Symbol('lastResolve');
|
62821
62722
|
var kLastReject = Symbol('lastReject');
|
62822
62723
|
var kError = Symbol('error');
|
@@ -62824,22 +62725,19 @@ var kEnded = Symbol('ended');
|
|
62824
62725
|
var kLastPromise = Symbol('lastPromise');
|
62825
62726
|
var kHandlePromise = Symbol('handlePromise');
|
62826
62727
|
var kStream = Symbol('stream');
|
62827
|
-
|
62828
62728
|
function createIterResult(value, done) {
|
62829
62729
|
return {
|
62830
62730
|
value: value,
|
62831
62731
|
done: done
|
62832
62732
|
};
|
62833
62733
|
}
|
62834
|
-
|
62835
62734
|
function readAndResolve(iter) {
|
62836
62735
|
var resolve = iter[kLastResolve];
|
62837
|
-
|
62838
62736
|
if (resolve !== null) {
|
62839
|
-
var data = iter[kStream].read();
|
62737
|
+
var data = iter[kStream].read();
|
62738
|
+
// we defer if data is null
|
62840
62739
|
// we can be expecting either 'end' or
|
62841
62740
|
// 'error'
|
62842
|
-
|
62843
62741
|
if (data !== null) {
|
62844
62742
|
iter[kLastPromise] = null;
|
62845
62743
|
iter[kLastResolve] = null;
|
@@ -62848,13 +62746,11 @@ function readAndResolve(iter) {
|
|
62848
62746
|
}
|
62849
62747
|
}
|
62850
62748
|
}
|
62851
|
-
|
62852
62749
|
function onReadable(iter) {
|
62853
62750
|
// we wait for the next tick, because it might
|
62854
62751
|
// emit an error with process.nextTick
|
62855
62752
|
process.nextTick(readAndResolve, iter);
|
62856
62753
|
}
|
62857
|
-
|
62858
62754
|
function wrapForNext(lastPromise, iter) {
|
62859
62755
|
return function (resolve, reject) {
|
62860
62756
|
lastPromise.then(function () {
|
@@ -62862,33 +62758,26 @@ function wrapForNext(lastPromise, iter) {
|
|
62862
62758
|
resolve(createIterResult(undefined, true));
|
62863
62759
|
return;
|
62864
62760
|
}
|
62865
|
-
|
62866
62761
|
iter[kHandlePromise](resolve, reject);
|
62867
62762
|
}, reject);
|
62868
62763
|
};
|
62869
62764
|
}
|
62870
|
-
|
62871
62765
|
var AsyncIteratorPrototype = Object.getPrototypeOf(function () {});
|
62872
62766
|
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
|
62873
62767
|
get stream() {
|
62874
62768
|
return this[kStream];
|
62875
62769
|
},
|
62876
|
-
|
62877
62770
|
next: function next() {
|
62878
62771
|
var _this = this;
|
62879
|
-
|
62880
62772
|
// if we have detected an error in the meanwhile
|
62881
62773
|
// reject straight away
|
62882
62774
|
var error = this[kError];
|
62883
|
-
|
62884
62775
|
if (error !== null) {
|
62885
62776
|
return Promise.reject(error);
|
62886
62777
|
}
|
62887
|
-
|
62888
62778
|
if (this[kEnded]) {
|
62889
62779
|
return Promise.resolve(createIterResult(undefined, true));
|
62890
62780
|
}
|
62891
|
-
|
62892
62781
|
if (this[kStream].destroyed) {
|
62893
62782
|
// We need to defer via nextTick because if .destroy(err) is
|
62894
62783
|
// called, the error will be emitted via nextTick, and
|
@@ -62903,29 +62792,25 @@ var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPro
|
|
62903
62792
|
}
|
62904
62793
|
});
|
62905
62794
|
});
|
62906
|
-
}
|
62795
|
+
}
|
62796
|
+
|
62797
|
+
// if we have multiple next() calls
|
62907
62798
|
// we will wait for the previous Promise to finish
|
62908
62799
|
// this logic is optimized to support for await loops,
|
62909
62800
|
// where next() is only called once at a time
|
62910
|
-
|
62911
|
-
|
62912
62801
|
var lastPromise = this[kLastPromise];
|
62913
62802
|
var promise;
|
62914
|
-
|
62915
62803
|
if (lastPromise) {
|
62916
62804
|
promise = new Promise(wrapForNext(lastPromise, this));
|
62917
62805
|
} else {
|
62918
62806
|
// fast path needed to support multiple this.push()
|
62919
62807
|
// without triggering the next() queue
|
62920
62808
|
var data = this[kStream].read();
|
62921
|
-
|
62922
62809
|
if (data !== null) {
|
62923
62810
|
return Promise.resolve(createIterResult(data, false));
|
62924
62811
|
}
|
62925
|
-
|
62926
62812
|
promise = new Promise(this[kHandlePromise]);
|
62927
62813
|
}
|
62928
|
-
|
62929
62814
|
this[kLastPromise] = promise;
|
62930
62815
|
return promise;
|
62931
62816
|
}
|
@@ -62933,7 +62818,6 @@ var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPro
|
|
62933
62818
|
return this;
|
62934
62819
|
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
62935
62820
|
var _this2 = this;
|
62936
|
-
|
62937
62821
|
// destroy(err, cb) is a private API
|
62938
62822
|
// we can guarantee we have that here, because we control the
|
62939
62823
|
// Readable class this is attached to
|
@@ -62943,15 +62827,12 @@ var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPro
|
|
62943
62827
|
reject(err);
|
62944
62828
|
return;
|
62945
62829
|
}
|
62946
|
-
|
62947
62830
|
resolve(createIterResult(undefined, true));
|
62948
62831
|
});
|
62949
62832
|
});
|
62950
62833
|
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
62951
|
-
|
62952
62834
|
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
|
62953
62835
|
var _Object$create;
|
62954
|
-
|
62955
62836
|
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
62956
62837
|
value: stream,
|
62957
62838
|
writable: true
|
@@ -62970,7 +62851,6 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat
|
|
62970
62851
|
}), _defineProperty(_Object$create, kHandlePromise, {
|
62971
62852
|
value: function value(resolve, reject) {
|
62972
62853
|
var data = iterator[kStream].read();
|
62973
|
-
|
62974
62854
|
if (data) {
|
62975
62855
|
iterator[kLastPromise] = null;
|
62976
62856
|
iterator[kLastResolve] = null;
|
@@ -62986,35 +62866,30 @@ var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterat
|
|
62986
62866
|
iterator[kLastPromise] = null;
|
62987
62867
|
finished(stream, function (err) {
|
62988
62868
|
if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {
|
62989
|
-
var reject = iterator[kLastReject];
|
62869
|
+
var reject = iterator[kLastReject];
|
62870
|
+
// reject if we are waiting for data in the Promise
|
62990
62871
|
// returned by next() and store the error
|
62991
|
-
|
62992
62872
|
if (reject !== null) {
|
62993
62873
|
iterator[kLastPromise] = null;
|
62994
62874
|
iterator[kLastResolve] = null;
|
62995
62875
|
iterator[kLastReject] = null;
|
62996
62876
|
reject(err);
|
62997
62877
|
}
|
62998
|
-
|
62999
62878
|
iterator[kError] = err;
|
63000
62879
|
return;
|
63001
62880
|
}
|
63002
|
-
|
63003
62881
|
var resolve = iterator[kLastResolve];
|
63004
|
-
|
63005
62882
|
if (resolve !== null) {
|
63006
62883
|
iterator[kLastPromise] = null;
|
63007
62884
|
iterator[kLastResolve] = null;
|
63008
62885
|
iterator[kLastReject] = null;
|
63009
62886
|
resolve(createIterResult(undefined, true));
|
63010
62887
|
}
|
63011
|
-
|
63012
62888
|
iterator[kEnded] = true;
|
63013
62889
|
});
|
63014
62890
|
stream.on('readable', onReadable.bind(null, iterator));
|
63015
62891
|
return iterator;
|
63016
62892
|
};
|
63017
|
-
|
63018
62893
|
module.exports = createReadableStreamAsyncIterator;
|
63019
62894
|
|
63020
62895
|
/***/ }),
|
@@ -63028,41 +62903,29 @@ module.exports = createReadableStreamAsyncIterator;
|
|
63028
62903
|
"use strict";
|
63029
62904
|
|
63030
62905
|
|
63031
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
63032
|
-
|
63033
|
-
function
|
63034
|
-
|
63035
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
63036
|
-
|
62906
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
62907
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
62908
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
63037
62909
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
63038
|
-
|
63039
|
-
function
|
63040
|
-
|
63041
|
-
function
|
63042
|
-
|
62910
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
62911
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
62912
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
62913
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
63043
62914
|
var _require = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js"),
|
63044
|
-
|
63045
|
-
|
62915
|
+
Buffer = _require.Buffer;
|
63046
62916
|
var _require2 = __webpack_require__(/*! util */ "?1dff"),
|
63047
|
-
|
63048
|
-
|
62917
|
+
inspect = _require2.inspect;
|
63049
62918
|
var custom = inspect && inspect.custom || 'inspect';
|
63050
|
-
|
63051
62919
|
function copyBuffer(src, target, offset) {
|
63052
62920
|
Buffer.prototype.copy.call(src, target, offset);
|
63053
62921
|
}
|
63054
|
-
|
63055
|
-
module.exports =
|
63056
|
-
/*#__PURE__*/
|
63057
|
-
function () {
|
62922
|
+
module.exports = /*#__PURE__*/function () {
|
63058
62923
|
function BufferList() {
|
63059
62924
|
_classCallCheck(this, BufferList);
|
63060
|
-
|
63061
62925
|
this.head = null;
|
63062
62926
|
this.tail = null;
|
63063
62927
|
this.length = 0;
|
63064
62928
|
}
|
63065
|
-
|
63066
62929
|
_createClass(BufferList, [{
|
63067
62930
|
key: "push",
|
63068
62931
|
value: function push(v) {
|
@@ -63106,11 +62969,7 @@ function () {
|
|
63106
62969
|
if (this.length === 0) return '';
|
63107
62970
|
var p = this.head;
|
63108
62971
|
var ret = '' + p.data;
|
63109
|
-
|
63110
|
-
while (p = p.next) {
|
63111
|
-
ret += s + p.data;
|
63112
|
-
}
|
63113
|
-
|
62972
|
+
while (p = p.next) ret += s + p.data;
|
63114
62973
|
return ret;
|
63115
62974
|
}
|
63116
62975
|
}, {
|
@@ -63120,21 +62979,19 @@ function () {
|
|
63120
62979
|
var ret = Buffer.allocUnsafe(n >>> 0);
|
63121
62980
|
var p = this.head;
|
63122
62981
|
var i = 0;
|
63123
|
-
|
63124
62982
|
while (p) {
|
63125
62983
|
copyBuffer(p.data, ret, i);
|
63126
62984
|
i += p.data.length;
|
63127
62985
|
p = p.next;
|
63128
62986
|
}
|
63129
|
-
|
63130
62987
|
return ret;
|
63131
|
-
}
|
62988
|
+
}
|
63132
62989
|
|
62990
|
+
// Consumes a specified amount of bytes or characters from the buffered data.
|
63133
62991
|
}, {
|
63134
62992
|
key: "consume",
|
63135
62993
|
value: function consume(n, hasStrings) {
|
63136
62994
|
var ret;
|
63137
|
-
|
63138
62995
|
if (n < this.head.data.length) {
|
63139
62996
|
// `slice` is the same for buffers and strings.
|
63140
62997
|
ret = this.head.data.slice(0, n);
|
@@ -63146,15 +63003,15 @@ function () {
|
|
63146
63003
|
// Result spans more than one buffer.
|
63147
63004
|
ret = hasStrings ? this._getString(n) : this._getBuffer(n);
|
63148
63005
|
}
|
63149
|
-
|
63150
63006
|
return ret;
|
63151
63007
|
}
|
63152
63008
|
}, {
|
63153
63009
|
key: "first",
|
63154
63010
|
value: function first() {
|
63155
63011
|
return this.head.data;
|
63156
|
-
}
|
63012
|
+
}
|
63157
63013
|
|
63014
|
+
// Consumes a specified amount of characters from the buffered data.
|
63158
63015
|
}, {
|
63159
63016
|
key: "_getString",
|
63160
63017
|
value: function _getString(n) {
|
@@ -63162,13 +63019,11 @@ function () {
|
|
63162
63019
|
var c = 1;
|
63163
63020
|
var ret = p.data;
|
63164
63021
|
n -= ret.length;
|
63165
|
-
|
63166
63022
|
while (p = p.next) {
|
63167
63023
|
var str = p.data;
|
63168
63024
|
var nb = n > str.length ? str.length : n;
|
63169
63025
|
if (nb === str.length) ret += str;else ret += str.slice(0, n);
|
63170
63026
|
n -= nb;
|
63171
|
-
|
63172
63027
|
if (n === 0) {
|
63173
63028
|
if (nb === str.length) {
|
63174
63029
|
++c;
|
@@ -63177,17 +63032,15 @@ function () {
|
|
63177
63032
|
this.head = p;
|
63178
63033
|
p.data = str.slice(nb);
|
63179
63034
|
}
|
63180
|
-
|
63181
63035
|
break;
|
63182
63036
|
}
|
63183
|
-
|
63184
63037
|
++c;
|
63185
63038
|
}
|
63186
|
-
|
63187
63039
|
this.length -= c;
|
63188
63040
|
return ret;
|
63189
|
-
}
|
63041
|
+
}
|
63190
63042
|
|
63043
|
+
// Consumes a specified amount of bytes from the buffered data.
|
63191
63044
|
}, {
|
63192
63045
|
key: "_getBuffer",
|
63193
63046
|
value: function _getBuffer(n) {
|
@@ -63196,13 +63049,11 @@ function () {
|
|
63196
63049
|
var c = 1;
|
63197
63050
|
p.data.copy(ret);
|
63198
63051
|
n -= p.data.length;
|
63199
|
-
|
63200
63052
|
while (p = p.next) {
|
63201
63053
|
var buf = p.data;
|
63202
63054
|
var nb = n > buf.length ? buf.length : n;
|
63203
63055
|
buf.copy(ret, ret.length - n, 0, nb);
|
63204
63056
|
n -= nb;
|
63205
|
-
|
63206
63057
|
if (n === 0) {
|
63207
63058
|
if (nb === buf.length) {
|
63208
63059
|
++c;
|
@@ -63211,21 +63062,19 @@ function () {
|
|
63211
63062
|
this.head = p;
|
63212
63063
|
p.data = buf.slice(nb);
|
63213
63064
|
}
|
63214
|
-
|
63215
63065
|
break;
|
63216
63066
|
}
|
63217
|
-
|
63218
63067
|
++c;
|
63219
63068
|
}
|
63220
|
-
|
63221
63069
|
this.length -= c;
|
63222
63070
|
return ret;
|
63223
|
-
}
|
63071
|
+
}
|
63224
63072
|
|
63073
|
+
// Make sure the linked list only shows the minimal necessary information.
|
63225
63074
|
}, {
|
63226
63075
|
key: custom,
|
63227
63076
|
value: function value(_, options) {
|
63228
|
-
return inspect(this, _objectSpread({}, options, {
|
63077
|
+
return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
|
63229
63078
|
// Only inspect one level.
|
63230
63079
|
depth: 0,
|
63231
63080
|
// It should not recurse.
|
@@ -63233,7 +63082,6 @@ function () {
|
|
63233
63082
|
}));
|
63234
63083
|
}
|
63235
63084
|
}]);
|
63236
|
-
|
63237
63085
|
return BufferList;
|
63238
63086
|
}();
|
63239
63087
|
|
@@ -63247,14 +63095,13 @@ function () {
|
|
63247
63095
|
|
63248
63096
|
"use strict";
|
63249
63097
|
/* provided dependency */ var process = __webpack_require__(/*! process/browser */ "../../node_modules/process/browser.js");
|
63250
|
-
// undocumented cb() API, needed for core, not for public API
|
63251
63098
|
|
63099
|
+
|
63100
|
+
// undocumented cb() API, needed for core, not for public API
|
63252
63101
|
function destroy(err, cb) {
|
63253
63102
|
var _this = this;
|
63254
|
-
|
63255
63103
|
var readableDestroyed = this._readableState && this._readableState.destroyed;
|
63256
63104
|
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
63257
|
-
|
63258
63105
|
if (readableDestroyed || writableDestroyed) {
|
63259
63106
|
if (cb) {
|
63260
63107
|
cb(err);
|
@@ -63266,21 +63113,20 @@ function destroy(err, cb) {
|
|
63266
63113
|
process.nextTick(emitErrorNT, this, err);
|
63267
63114
|
}
|
63268
63115
|
}
|
63269
|
-
|
63270
63116
|
return this;
|
63271
|
-
}
|
63272
|
-
// to make it re-entrance safe in case destroy() is called within callbacks
|
63117
|
+
}
|
63273
63118
|
|
63119
|
+
// we set destroyed to true before firing error callbacks in order
|
63120
|
+
// to make it re-entrance safe in case destroy() is called within callbacks
|
63274
63121
|
|
63275
63122
|
if (this._readableState) {
|
63276
63123
|
this._readableState.destroyed = true;
|
63277
|
-
}
|
63278
|
-
|
63124
|
+
}
|
63279
63125
|
|
63126
|
+
// if this is a duplex stream mark the writable part as destroyed as well
|
63280
63127
|
if (this._writableState) {
|
63281
63128
|
this._writableState.destroyed = true;
|
63282
63129
|
}
|
63283
|
-
|
63284
63130
|
this._destroy(err || null, function (err) {
|
63285
63131
|
if (!cb && err) {
|
63286
63132
|
if (!_this._writableState) {
|
@@ -63298,21 +63144,17 @@ function destroy(err, cb) {
|
|
63298
63144
|
process.nextTick(emitCloseNT, _this);
|
63299
63145
|
}
|
63300
63146
|
});
|
63301
|
-
|
63302
63147
|
return this;
|
63303
63148
|
}
|
63304
|
-
|
63305
63149
|
function emitErrorAndCloseNT(self, err) {
|
63306
63150
|
emitErrorNT(self, err);
|
63307
63151
|
emitCloseNT(self);
|
63308
63152
|
}
|
63309
|
-
|
63310
63153
|
function emitCloseNT(self) {
|
63311
63154
|
if (self._writableState && !self._writableState.emitClose) return;
|
63312
63155
|
if (self._readableState && !self._readableState.emitClose) return;
|
63313
63156
|
self.emit('close');
|
63314
63157
|
}
|
63315
|
-
|
63316
63158
|
function undestroy() {
|
63317
63159
|
if (this._readableState) {
|
63318
63160
|
this._readableState.destroyed = false;
|
@@ -63320,7 +63162,6 @@ function undestroy() {
|
|
63320
63162
|
this._readableState.ended = false;
|
63321
63163
|
this._readableState.endEmitted = false;
|
63322
63164
|
}
|
63323
|
-
|
63324
63165
|
if (this._writableState) {
|
63325
63166
|
this._writableState.destroyed = false;
|
63326
63167
|
this._writableState.ended = false;
|
@@ -63331,22 +63172,20 @@ function undestroy() {
|
|
63331
63172
|
this._writableState.errorEmitted = false;
|
63332
63173
|
}
|
63333
63174
|
}
|
63334
|
-
|
63335
63175
|
function emitErrorNT(self, err) {
|
63336
63176
|
self.emit('error', err);
|
63337
63177
|
}
|
63338
|
-
|
63339
63178
|
function errorOrDestroy(stream, err) {
|
63340
63179
|
// We have tests that rely on errors being emitted
|
63341
63180
|
// in the same tick, so changing this is semver major.
|
63342
63181
|
// For now when you opt-in to autoDestroy we allow
|
63343
63182
|
// the error to be emitted nextTick. In a future
|
63344
63183
|
// semver major update we should change the default to this.
|
63184
|
+
|
63345
63185
|
var rState = stream._readableState;
|
63346
63186
|
var wState = stream._writableState;
|
63347
63187
|
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);
|
63348
63188
|
}
|
63349
|
-
|
63350
63189
|
module.exports = {
|
63351
63190
|
destroy: destroy,
|
63352
63191
|
undestroy: undestroy,
|
@@ -63366,77 +63205,61 @@ module.exports = {
|
|
63366
63205
|
// permission from the author, Mathias Buus (@mafintosh).
|
63367
63206
|
|
63368
63207
|
|
63369
|
-
var ERR_STREAM_PREMATURE_CLOSE = (__webpack_require__(/*! ../../../errors */ "../../node_modules/readable-stream/errors-browser.js").codes).ERR_STREAM_PREMATURE_CLOSE;
|
63370
63208
|
|
63209
|
+
var ERR_STREAM_PREMATURE_CLOSE = (__webpack_require__(/*! ../../../errors */ "../../node_modules/readable-stream/errors-browser.js").codes).ERR_STREAM_PREMATURE_CLOSE;
|
63371
63210
|
function once(callback) {
|
63372
63211
|
var called = false;
|
63373
63212
|
return function () {
|
63374
63213
|
if (called) return;
|
63375
63214
|
called = true;
|
63376
|
-
|
63377
63215
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
63378
63216
|
args[_key] = arguments[_key];
|
63379
63217
|
}
|
63380
|
-
|
63381
63218
|
callback.apply(this, args);
|
63382
63219
|
};
|
63383
63220
|
}
|
63384
|
-
|
63385
63221
|
function noop() {}
|
63386
|
-
|
63387
63222
|
function isRequest(stream) {
|
63388
63223
|
return stream.setHeader && typeof stream.abort === 'function';
|
63389
63224
|
}
|
63390
|
-
|
63391
63225
|
function eos(stream, opts, callback) {
|
63392
63226
|
if (typeof opts === 'function') return eos(stream, null, opts);
|
63393
63227
|
if (!opts) opts = {};
|
63394
63228
|
callback = once(callback || noop);
|
63395
63229
|
var readable = opts.readable || opts.readable !== false && stream.readable;
|
63396
63230
|
var writable = opts.writable || opts.writable !== false && stream.writable;
|
63397
|
-
|
63398
63231
|
var onlegacyfinish = function onlegacyfinish() {
|
63399
63232
|
if (!stream.writable) onfinish();
|
63400
63233
|
};
|
63401
|
-
|
63402
63234
|
var writableEnded = stream._writableState && stream._writableState.finished;
|
63403
|
-
|
63404
63235
|
var onfinish = function onfinish() {
|
63405
63236
|
writable = false;
|
63406
63237
|
writableEnded = true;
|
63407
63238
|
if (!readable) callback.call(stream);
|
63408
63239
|
};
|
63409
|
-
|
63410
63240
|
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
63411
|
-
|
63412
63241
|
var onend = function onend() {
|
63413
63242
|
readable = false;
|
63414
63243
|
readableEnded = true;
|
63415
63244
|
if (!writable) callback.call(stream);
|
63416
63245
|
};
|
63417
|
-
|
63418
63246
|
var onerror = function onerror(err) {
|
63419
63247
|
callback.call(stream, err);
|
63420
63248
|
};
|
63421
|
-
|
63422
63249
|
var onclose = function onclose() {
|
63423
63250
|
var err;
|
63424
|
-
|
63425
63251
|
if (readable && !readableEnded) {
|
63426
63252
|
if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
63427
63253
|
return callback.call(stream, err);
|
63428
63254
|
}
|
63429
|
-
|
63430
63255
|
if (writable && !writableEnded) {
|
63431
63256
|
if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
63432
63257
|
return callback.call(stream, err);
|
63433
63258
|
}
|
63434
63259
|
};
|
63435
|
-
|
63436
63260
|
var onrequest = function onrequest() {
|
63437
63261
|
stream.req.on('finish', onfinish);
|
63438
63262
|
};
|
63439
|
-
|
63440
63263
|
if (isRequest(stream)) {
|
63441
63264
|
stream.on('complete', onfinish);
|
63442
63265
|
stream.on('abort', onclose);
|
@@ -63446,7 +63269,6 @@ function eos(stream, opts, callback) {
|
|
63446
63269
|
stream.on('end', onlegacyfinish);
|
63447
63270
|
stream.on('close', onlegacyfinish);
|
63448
63271
|
}
|
63449
|
-
|
63450
63272
|
stream.on('end', onend);
|
63451
63273
|
stream.on('finish', onfinish);
|
63452
63274
|
if (opts.error !== false) stream.on('error', onerror);
|
@@ -63464,7 +63286,6 @@ function eos(stream, opts, callback) {
|
|
63464
63286
|
stream.removeListener('close', onclose);
|
63465
63287
|
};
|
63466
63288
|
}
|
63467
|
-
|
63468
63289
|
module.exports = eos;
|
63469
63290
|
|
63470
63291
|
/***/ }),
|
@@ -63493,8 +63314,8 @@ module.exports = function () {
|
|
63493
63314
|
// permission from the author, Mathias Buus (@mafintosh).
|
63494
63315
|
|
63495
63316
|
|
63496
|
-
var eos;
|
63497
63317
|
|
63318
|
+
var eos;
|
63498
63319
|
function once(callback) {
|
63499
63320
|
var called = false;
|
63500
63321
|
return function () {
|
@@ -63503,20 +63324,16 @@ function once(callback) {
|
|
63503
63324
|
callback.apply(void 0, arguments);
|
63504
63325
|
};
|
63505
63326
|
}
|
63506
|
-
|
63507
63327
|
var _require$codes = (__webpack_require__(/*! ../../../errors */ "../../node_modules/readable-stream/errors-browser.js").codes),
|
63508
|
-
|
63509
|
-
|
63510
|
-
|
63328
|
+
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
|
63329
|
+
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
63511
63330
|
function noop(err) {
|
63512
63331
|
// Rethrow the error if it exists to avoid swallowing it
|
63513
63332
|
if (err) throw err;
|
63514
63333
|
}
|
63515
|
-
|
63516
63334
|
function isRequest(stream) {
|
63517
63335
|
return stream.setHeader && typeof stream.abort === 'function';
|
63518
63336
|
}
|
63519
|
-
|
63520
63337
|
function destroyer(stream, reading, writing, callback) {
|
63521
63338
|
callback = once(callback);
|
63522
63339
|
var closed = false;
|
@@ -63536,40 +63353,34 @@ function destroyer(stream, reading, writing, callback) {
|
|
63536
63353
|
return function (err) {
|
63537
63354
|
if (closed) return;
|
63538
63355
|
if (destroyed) return;
|
63539
|
-
destroyed = true;
|
63356
|
+
destroyed = true;
|
63540
63357
|
|
63358
|
+
// request.destroy just do .end - .abort is what we want
|
63541
63359
|
if (isRequest(stream)) return stream.abort();
|
63542
63360
|
if (typeof stream.destroy === 'function') return stream.destroy();
|
63543
63361
|
callback(err || new ERR_STREAM_DESTROYED('pipe'));
|
63544
63362
|
};
|
63545
63363
|
}
|
63546
|
-
|
63547
63364
|
function call(fn) {
|
63548
63365
|
fn();
|
63549
63366
|
}
|
63550
|
-
|
63551
63367
|
function pipe(from, to) {
|
63552
63368
|
return from.pipe(to);
|
63553
63369
|
}
|
63554
|
-
|
63555
63370
|
function popCallback(streams) {
|
63556
63371
|
if (!streams.length) return noop;
|
63557
63372
|
if (typeof streams[streams.length - 1] !== 'function') return noop;
|
63558
63373
|
return streams.pop();
|
63559
63374
|
}
|
63560
|
-
|
63561
63375
|
function pipeline() {
|
63562
63376
|
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
63563
63377
|
streams[_key] = arguments[_key];
|
63564
63378
|
}
|
63565
|
-
|
63566
63379
|
var callback = popCallback(streams);
|
63567
63380
|
if (Array.isArray(streams[0])) streams = streams[0];
|
63568
|
-
|
63569
63381
|
if (streams.length < 2) {
|
63570
63382
|
throw new ERR_MISSING_ARGS('streams');
|
63571
63383
|
}
|
63572
|
-
|
63573
63384
|
var error;
|
63574
63385
|
var destroys = streams.map(function (stream, i) {
|
63575
63386
|
var reading = i < streams.length - 1;
|
@@ -63584,7 +63395,6 @@ function pipeline() {
|
|
63584
63395
|
});
|
63585
63396
|
return streams.reduce(pipe);
|
63586
63397
|
}
|
63587
|
-
|
63588
63398
|
module.exports = pipeline;
|
63589
63399
|
|
63590
63400
|
/***/ }),
|
@@ -63599,27 +63409,22 @@ module.exports = pipeline;
|
|
63599
63409
|
|
63600
63410
|
|
63601
63411
|
var ERR_INVALID_OPT_VALUE = (__webpack_require__(/*! ../../../errors */ "../../node_modules/readable-stream/errors-browser.js").codes).ERR_INVALID_OPT_VALUE;
|
63602
|
-
|
63603
63412
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
63604
63413
|
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
63605
63414
|
}
|
63606
|
-
|
63607
63415
|
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
63608
63416
|
var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
63609
|
-
|
63610
63417
|
if (hwm != null) {
|
63611
63418
|
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
63612
63419
|
var name = isDuplex ? duplexKey : 'highWaterMark';
|
63613
63420
|
throw new ERR_INVALID_OPT_VALUE(name, hwm);
|
63614
63421
|
}
|
63615
|
-
|
63616
63422
|
return Math.floor(hwm);
|
63617
|
-
}
|
63618
|
-
|
63423
|
+
}
|
63619
63424
|
|
63425
|
+
// Default value
|
63620
63426
|
return state.objectMode ? 16 : 16 * 1024;
|
63621
63427
|
}
|
63622
|
-
|
63623
63428
|
module.exports = {
|
63624
63429
|
getHighWaterMark: getHighWaterMark
|
63625
63430
|
};
|
@@ -67763,19 +67568,19 @@ class XChainBridge extends serialized_type_1.SerializedType {
|
|
67763
67568
|
if (value instanceof XChainBridge) {
|
67764
67569
|
return value;
|
67765
67570
|
}
|
67766
|
-
if (isXChainBridgeObject(value)) {
|
67767
|
-
|
67768
|
-
this.TYPE_ORDER.forEach((item) => {
|
67769
|
-
const { name, type } = item;
|
67770
|
-
if (type === account_id_1.AccountID) {
|
67771
|
-
bytes.push(buffer_1.Buffer.from([0x14]));
|
67772
|
-
}
|
67773
|
-
const object = type.from(value[name]);
|
67774
|
-
bytes.push(object.toBytes());
|
67775
|
-
});
|
67776
|
-
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
67571
|
+
if (!isXChainBridgeObject(value)) {
|
67572
|
+
throw new Error('Invalid type to construct an XChainBridge');
|
67777
67573
|
}
|
67778
|
-
|
67574
|
+
const bytes = [];
|
67575
|
+
this.TYPE_ORDER.forEach((item) => {
|
67576
|
+
const { name, type } = item;
|
67577
|
+
if (type === account_id_1.AccountID) {
|
67578
|
+
bytes.push(buffer_1.Buffer.from([0x14]));
|
67579
|
+
}
|
67580
|
+
const object = type.from(value[name]);
|
67581
|
+
bytes.push(object.toBytes());
|
67582
|
+
});
|
67583
|
+
return new XChainBridge(buffer_1.Buffer.concat(bytes));
|
67779
67584
|
}
|
67780
67585
|
/**
|
67781
67586
|
* Read an XChainBridge from a BinaryParser
|
@@ -68374,6 +68179,58 @@ if (!safer.constants) {
|
|
68374
68179
|
module.exports = safer
|
68375
68180
|
|
68376
68181
|
|
68182
|
+
/***/ }),
|
68183
|
+
|
68184
|
+
/***/ "../../node_modules/set-function-length/index.js":
|
68185
|
+
/*!*******************************************************!*\
|
68186
|
+
!*** ../../node_modules/set-function-length/index.js ***!
|
68187
|
+
\*******************************************************/
|
68188
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
68189
|
+
|
68190
|
+
"use strict";
|
68191
|
+
|
68192
|
+
|
68193
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
68194
|
+
var define = __webpack_require__(/*! define-data-property */ "../../node_modules/define-data-property/index.js");
|
68195
|
+
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../../node_modules/has-property-descriptors/index.js")();
|
68196
|
+
var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
68197
|
+
|
68198
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
68199
|
+
var $floor = GetIntrinsic('%Math.floor%');
|
68200
|
+
|
68201
|
+
module.exports = function setFunctionLength(fn, length) {
|
68202
|
+
if (typeof fn !== 'function') {
|
68203
|
+
throw new $TypeError('`fn` is not a function');
|
68204
|
+
}
|
68205
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
68206
|
+
throw new $TypeError('`length` must be a positive 32-bit integer');
|
68207
|
+
}
|
68208
|
+
|
68209
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
68210
|
+
|
68211
|
+
var functionLengthIsConfigurable = true;
|
68212
|
+
var functionLengthIsWritable = true;
|
68213
|
+
if ('length' in fn && gOPD) {
|
68214
|
+
var desc = gOPD(fn, 'length');
|
68215
|
+
if (desc && !desc.configurable) {
|
68216
|
+
functionLengthIsConfigurable = false;
|
68217
|
+
}
|
68218
|
+
if (desc && !desc.writable) {
|
68219
|
+
functionLengthIsWritable = false;
|
68220
|
+
}
|
68221
|
+
}
|
68222
|
+
|
68223
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
68224
|
+
if (hasDescriptors) {
|
68225
|
+
define(fn, 'length', length, true, true);
|
68226
|
+
} else {
|
68227
|
+
define(fn, 'length', length);
|
68228
|
+
}
|
68229
|
+
}
|
68230
|
+
return fn;
|
68231
|
+
};
|
68232
|
+
|
68233
|
+
|
68377
68234
|
/***/ }),
|
68378
68235
|
|
68379
68236
|
/***/ "../../node_modules/sha.js/hash.js":
|
@@ -74885,6 +74742,7 @@ exports.callbackify = callbackify;
|
|
74885
74742
|
|
74886
74743
|
var forEach = __webpack_require__(/*! for-each */ "../../node_modules/for-each/index.js");
|
74887
74744
|
var availableTypedArrays = __webpack_require__(/*! available-typed-arrays */ "../../node_modules/available-typed-arrays/index.js");
|
74745
|
+
var callBind = __webpack_require__(/*! call-bind */ "../../node_modules/call-bind/index.js");
|
74888
74746
|
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
74889
74747
|
var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
74890
74748
|
|
@@ -74895,45 +74753,81 @@ var g = typeof globalThis === 'undefined' ? __webpack_require__.g : globalThis;
|
|
74895
74753
|
var typedArrays = availableTypedArrays();
|
74896
74754
|
|
74897
74755
|
var $slice = callBound('String.prototype.slice');
|
74898
|
-
var toStrTags = {};
|
74899
74756
|
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
74757
|
+
|
74758
|
+
var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
74759
|
+
for (var i = 0; i < array.length; i += 1) {
|
74760
|
+
if (array[i] === value) {
|
74761
|
+
return i;
|
74762
|
+
}
|
74763
|
+
}
|
74764
|
+
return -1;
|
74765
|
+
};
|
74766
|
+
var cache = { __proto__: null };
|
74900
74767
|
if (hasToStringTag && gOPD && getPrototypeOf) {
|
74901
74768
|
forEach(typedArrays, function (typedArray) {
|
74902
|
-
|
74903
|
-
|
74904
|
-
|
74905
|
-
|
74906
|
-
|
74907
|
-
|
74908
|
-
|
74909
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
74910
|
-
}
|
74911
|
-
toStrTags[typedArray] = descriptor.get;
|
74769
|
+
var arr = new g[typedArray]();
|
74770
|
+
if (Symbol.toStringTag in arr) {
|
74771
|
+
var proto = getPrototypeOf(arr);
|
74772
|
+
var descriptor = gOPD(proto, Symbol.toStringTag);
|
74773
|
+
if (!descriptor) {
|
74774
|
+
var superProto = getPrototypeOf(proto);
|
74775
|
+
descriptor = gOPD(superProto, Symbol.toStringTag);
|
74912
74776
|
}
|
74777
|
+
cache['$' + typedArray] = callBind(descriptor.get);
|
74778
|
+
}
|
74779
|
+
});
|
74780
|
+
} else {
|
74781
|
+
forEach(typedArrays, function (typedArray) {
|
74782
|
+
var arr = new g[typedArray]();
|
74783
|
+
var fn = arr.slice || arr.set;
|
74784
|
+
if (fn) {
|
74785
|
+
cache['$' + typedArray] = callBind(fn);
|
74913
74786
|
}
|
74914
74787
|
});
|
74915
74788
|
}
|
74916
74789
|
|
74917
74790
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
74918
|
-
var
|
74919
|
-
forEach(
|
74920
|
-
if (!
|
74791
|
+
var found = false;
|
74792
|
+
forEach(cache, function (getter, typedArray) {
|
74793
|
+
if (!found) {
|
74921
74794
|
try {
|
74922
|
-
|
74923
|
-
|
74924
|
-
foundName = name;
|
74795
|
+
if ('$' + getter(value) === typedArray) {
|
74796
|
+
found = $slice(typedArray, 1);
|
74925
74797
|
}
|
74926
|
-
} catch (e) {}
|
74798
|
+
} catch (e) { /**/ }
|
74927
74799
|
}
|
74928
74800
|
});
|
74929
|
-
return
|
74801
|
+
return found;
|
74930
74802
|
};
|
74931
74803
|
|
74932
|
-
var
|
74804
|
+
var trySlices = function tryAllSlices(value) {
|
74805
|
+
var found = false;
|
74806
|
+
forEach(cache, function (getter, name) {
|
74807
|
+
if (!found) {
|
74808
|
+
try {
|
74809
|
+
getter(value);
|
74810
|
+
found = $slice(name, 1);
|
74811
|
+
} catch (e) { /**/ }
|
74812
|
+
}
|
74813
|
+
});
|
74814
|
+
return found;
|
74815
|
+
};
|
74933
74816
|
|
74934
74817
|
module.exports = function whichTypedArray(value) {
|
74935
|
-
if (!
|
74936
|
-
if (!hasToStringTag
|
74818
|
+
if (!value || typeof value !== 'object') { return false; }
|
74819
|
+
if (!hasToStringTag) {
|
74820
|
+
var tag = $slice($toString(value), 8, -1);
|
74821
|
+
if ($indexOf(typedArrays, tag) > -1) {
|
74822
|
+
return tag;
|
74823
|
+
}
|
74824
|
+
if (tag !== 'Object') {
|
74825
|
+
return false;
|
74826
|
+
}
|
74827
|
+
// node < 0.6 hits here on real Typed Arrays
|
74828
|
+
return trySlices(value);
|
74829
|
+
}
|
74830
|
+
if (!gOPD) { return null; } // unknown engine
|
74937
74831
|
return tryTypedArrays(value);
|
74938
74832
|
};
|
74939
74833
|
|
@@ -75308,16 +75202,12 @@ var FaucetNetwork;
|
|
75308
75202
|
(function (FaucetNetwork) {
|
75309
75203
|
FaucetNetwork["Testnet"] = "faucet.altnet.rippletest.net";
|
75310
75204
|
FaucetNetwork["Devnet"] = "faucet.devnet.rippletest.net";
|
75311
|
-
FaucetNetwork["AMMDevnet"] = "ammfaucet.devnet.rippletest.net";
|
75312
75205
|
FaucetNetwork["HooksV3Testnet"] = "hooks-testnet-v3.xrpl-labs.com";
|
75313
|
-
FaucetNetwork["SidechainDevnet"] = "sidechain-faucet.devnet.rippletest.net";
|
75314
75206
|
})(FaucetNetwork = exports.FaucetNetwork || (exports.FaucetNetwork = {}));
|
75315
75207
|
exports.FaucetNetworkPaths = {
|
75316
75208
|
[FaucetNetwork.Testnet]: '/accounts',
|
75317
75209
|
[FaucetNetwork.Devnet]: '/accounts',
|
75318
|
-
[FaucetNetwork.AMMDevnet]: '/accounts',
|
75319
75210
|
[FaucetNetwork.HooksV3Testnet]: '/accounts',
|
75320
|
-
[FaucetNetwork.SidechainDevnet]: '/accounts',
|
75321
75211
|
};
|
75322
75212
|
function getFaucetHost(client) {
|
75323
75213
|
const connectionUrl = client.url;
|
@@ -75327,9 +75217,6 @@ function getFaucetHost(client) {
|
|
75327
75217
|
if (connectionUrl.includes('altnet') || connectionUrl.includes('testnet')) {
|
75328
75218
|
return FaucetNetwork.Testnet;
|
75329
75219
|
}
|
75330
|
-
if (connectionUrl.includes('amm')) {
|
75331
|
-
return FaucetNetwork.AMMDevnet;
|
75332
|
-
}
|
75333
75220
|
if (connectionUrl.includes('sidechain-net2')) {
|
75334
75221
|
throw new errors_1.XRPLFaucetError('Cannot fund an account on an issuing chain. Accounts must be created via the bridge.');
|
75335
75222
|
}
|
@@ -77603,6 +77490,53 @@ function validateAMMWithdraw(tx) {
|
|
77603
77490
|
exports.validateAMMWithdraw = validateAMMWithdraw;
|
77604
77491
|
|
77605
77492
|
|
77493
|
+
/***/ }),
|
77494
|
+
|
77495
|
+
/***/ "./dist/npm/models/transactions/DIDDelete.js":
|
77496
|
+
/*!***************************************************!*\
|
77497
|
+
!*** ./dist/npm/models/transactions/DIDDelete.js ***!
|
77498
|
+
\***************************************************/
|
77499
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77500
|
+
|
77501
|
+
"use strict";
|
77502
|
+
|
77503
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77504
|
+
exports.validateDIDDelete = void 0;
|
77505
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77506
|
+
function validateDIDDelete(tx) {
|
77507
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77508
|
+
}
|
77509
|
+
exports.validateDIDDelete = validateDIDDelete;
|
77510
|
+
|
77511
|
+
|
77512
|
+
/***/ }),
|
77513
|
+
|
77514
|
+
/***/ "./dist/npm/models/transactions/DIDSet.js":
|
77515
|
+
/*!************************************************!*\
|
77516
|
+
!*** ./dist/npm/models/transactions/DIDSet.js ***!
|
77517
|
+
\************************************************/
|
77518
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77519
|
+
|
77520
|
+
"use strict";
|
77521
|
+
|
77522
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77523
|
+
exports.validateDIDSet = void 0;
|
77524
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77525
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77526
|
+
function validateDIDSet(tx) {
|
77527
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77528
|
+
(0, common_1.validateOptionalField)(tx, 'Data', common_1.isString);
|
77529
|
+
(0, common_1.validateOptionalField)(tx, 'DIDDocument', common_1.isString);
|
77530
|
+
(0, common_1.validateOptionalField)(tx, 'URI', common_1.isString);
|
77531
|
+
if (tx.Data === undefined &&
|
77532
|
+
tx.DIDDocument === undefined &&
|
77533
|
+
tx.URI === undefined) {
|
77534
|
+
throw new errors_1.ValidationError('DIDSet: Must have at least one of `Data`, `DIDDocument`, and `URI`');
|
77535
|
+
}
|
77536
|
+
}
|
77537
|
+
exports.validateDIDSet = validateDIDSet;
|
77538
|
+
|
77539
|
+
|
77606
77540
|
/***/ }),
|
77607
77541
|
|
77608
77542
|
/***/ "./dist/npm/models/transactions/NFTokenAcceptOffer.js":
|
@@ -79055,6 +78989,8 @@ const checkCreate_1 = __webpack_require__(/*! ./checkCreate */ "./dist/npm/model
|
|
79055
78989
|
const clawback_1 = __webpack_require__(/*! ./clawback */ "./dist/npm/models/transactions/clawback.js");
|
79056
78990
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
79057
78991
|
const depositPreauth_1 = __webpack_require__(/*! ./depositPreauth */ "./dist/npm/models/transactions/depositPreauth.js");
|
78992
|
+
const DIDDelete_1 = __webpack_require__(/*! ./DIDDelete */ "./dist/npm/models/transactions/DIDDelete.js");
|
78993
|
+
const DIDSet_1 = __webpack_require__(/*! ./DIDSet */ "./dist/npm/models/transactions/DIDSet.js");
|
79058
78994
|
const escrowCancel_1 = __webpack_require__(/*! ./escrowCancel */ "./dist/npm/models/transactions/escrowCancel.js");
|
79059
78995
|
const escrowCreate_1 = __webpack_require__(/*! ./escrowCreate */ "./dist/npm/models/transactions/escrowCreate.js");
|
79060
78996
|
const escrowFinish_1 = __webpack_require__(/*! ./escrowFinish */ "./dist/npm/models/transactions/escrowFinish.js");
|
@@ -79127,30 +79063,30 @@ function validate(transaction) {
|
|
79127
79063
|
});
|
79128
79064
|
(0, flags_1.setTransactionFlagsToNumber)(tx);
|
79129
79065
|
switch (tx.TransactionType) {
|
79130
|
-
case 'AccountDelete':
|
79131
|
-
(0, accountDelete_1.validateAccountDelete)(tx);
|
79132
|
-
break;
|
79133
|
-
case 'AccountSet':
|
79134
|
-
(0, accountSet_1.validateAccountSet)(tx);
|
79135
|
-
break;
|
79136
79066
|
case 'AMMBid':
|
79137
79067
|
(0, AMMBid_1.validateAMMBid)(tx);
|
79138
79068
|
break;
|
79069
|
+
case 'AMMCreate':
|
79070
|
+
(0, AMMCreate_1.validateAMMCreate)(tx);
|
79071
|
+
break;
|
79139
79072
|
case 'AMMDelete':
|
79140
79073
|
(0, AMMDelete_1.validateAMMDelete)(tx);
|
79141
79074
|
break;
|
79142
79075
|
case 'AMMDeposit':
|
79143
79076
|
(0, AMMDeposit_1.validateAMMDeposit)(tx);
|
79144
79077
|
break;
|
79145
|
-
case 'AMMCreate':
|
79146
|
-
(0, AMMCreate_1.validateAMMCreate)(tx);
|
79147
|
-
break;
|
79148
79078
|
case 'AMMVote':
|
79149
79079
|
(0, AMMVote_1.validateAMMVote)(tx);
|
79150
79080
|
break;
|
79151
79081
|
case 'AMMWithdraw':
|
79152
79082
|
(0, AMMWithdraw_1.validateAMMWithdraw)(tx);
|
79153
79083
|
break;
|
79084
|
+
case 'AccountDelete':
|
79085
|
+
(0, accountDelete_1.validateAccountDelete)(tx);
|
79086
|
+
break;
|
79087
|
+
case 'AccountSet':
|
79088
|
+
(0, accountSet_1.validateAccountSet)(tx);
|
79089
|
+
break;
|
79154
79090
|
case 'CheckCancel':
|
79155
79091
|
(0, checkCancel_1.validateCheckCancel)(tx);
|
79156
79092
|
break;
|
@@ -79163,6 +79099,12 @@ function validate(transaction) {
|
|
79163
79099
|
case 'Clawback':
|
79164
79100
|
(0, clawback_1.validateClawback)(tx);
|
79165
79101
|
break;
|
79102
|
+
case 'DIDDelete':
|
79103
|
+
(0, DIDDelete_1.validateDIDDelete)(tx);
|
79104
|
+
break;
|
79105
|
+
case 'DIDSet':
|
79106
|
+
(0, DIDSet_1.validateDIDSet)(tx);
|
79107
|
+
break;
|
79166
79108
|
case 'DepositPreauth':
|
79167
79109
|
(0, depositPreauth_1.validateDepositPreauth)(tx);
|
79168
79110
|
break;
|
@@ -79220,6 +79162,9 @@ function validate(transaction) {
|
|
79220
79162
|
case 'TrustSet':
|
79221
79163
|
(0, trustSet_1.validateTrustSet)(tx);
|
79222
79164
|
break;
|
79165
|
+
case 'XChainAccountCreateCommit':
|
79166
|
+
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
|
79167
|
+
break;
|
79223
79168
|
case 'XChainAddAccountCreateAttestation':
|
79224
79169
|
(0, XChainAddAccountCreateAttestation_1.validateXChainAddAccountCreateAttestation)(tx);
|
79225
79170
|
break;
|
@@ -79238,9 +79183,6 @@ function validate(transaction) {
|
|
79238
79183
|
case 'XChainCreateClaimID':
|
79239
79184
|
(0, XChainCreateClaimID_1.validateXChainCreateClaimID)(tx);
|
79240
79185
|
break;
|
79241
|
-
case 'XChainAccountCreateCommit':
|
79242
|
-
(0, XChainAccountCreateCommit_1.validateXChainAccountCreateCommit)(tx);
|
79243
|
-
break;
|
79244
79186
|
case 'XChainModifyBridge':
|
79245
79187
|
(0, XChainModifyBridge_1.validateXChainModifyBridge)(tx);
|
79246
79188
|
break;
|
@@ -81066,7 +81008,16 @@ const bignumber_js_1 = __importDefault(__webpack_require__(/*! bignumber.js */ "
|
|
81066
81008
|
const ripple_address_codec_1 = __webpack_require__(/*! ripple-address-codec */ "../../node_modules/ripple-address-codec/dist/index.js");
|
81067
81009
|
const errors_1 = __webpack_require__(/*! ../errors */ "./dist/npm/errors.js");
|
81068
81010
|
function unscrambleTaxon(taxon, tokenSeq) {
|
81069
|
-
|
81011
|
+
const seed = 384160001;
|
81012
|
+
const increment = 2459;
|
81013
|
+
const max = 4294967296;
|
81014
|
+
const scramble = new bignumber_js_1.default(seed)
|
81015
|
+
.multipliedBy(tokenSeq)
|
81016
|
+
.modulo(max)
|
81017
|
+
.plus(increment)
|
81018
|
+
.modulo(max)
|
81019
|
+
.toNumber();
|
81020
|
+
return (taxon ^ scramble) >>> 0;
|
81070
81021
|
}
|
81071
81022
|
function parseNFTokenID(nftokenID) {
|
81072
81023
|
const expectedLength = 64;
|
@@ -81551,7 +81502,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
|
|
81551
81502
|
/***/ ((module) => {
|
81552
81503
|
|
81553
81504
|
"use strict";
|
81554
|
-
module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Issue":24,"XChainBridge":25,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"Bridge":105,"LedgerHashes":104,"Amendments":102,"XChainOwnedClaimID":113,"XChainOwnedCreateAccountClaimID":116,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"AMM":121,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"LedgerEntry"}],["Transaction",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Transaction"}],["Validation",{"nth":1,"isVLEncoded":false,"isSerialized":false,"isSigningField":true,"type":"Validation"}],["Metadata",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["WasLockingChainSend",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TradingFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["DiscountedFee",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["VoteWeight",{"nth":48,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstNFTokenSequence",{"nth":50,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainClaimID",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountCreateCount",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountClaimCount",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AMMID",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Amount2",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMin",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMax",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BaseFeeDrops",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveBaseDrops",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveIncrementDrops",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenOut",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenIn",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["EPrice",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Price",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SignatureReward",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinAccountCreateAmount",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenBalance",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainSource",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainDestination",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationSignerAccount",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationRewardAccount",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["LockingChainDoor",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["IssuingChainDoor",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["LockingChainIssue",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["IssuingChainIssue",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset2",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["XChainBridge",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"XChainBridge"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["VoteEntry",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuctionSlot",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuthAccount",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimProofSig",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountProofSig",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimAttestationCollectionElement",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountAttestationCollectionElement",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["VoteSlots",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestations",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestations",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AuthAccounts",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_AMM_TOKENS":-261,"temXCHAIN_EQUAL_DOOR_ACCOUNTS":-260,"temXCHAIN_BAD_PROOF":-259,"temXCHAIN_BRIDGE_BAD_ISSUES":-258,"temXCHAIN_BRIDGE_NONDOOR_OWNER":-257,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-256,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-255,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"terNO_AMM":-87,"terSUBMITTED":-86,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecHOOK_ERROR":153,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161,"tecUNFUNDED_AMM":162,"tecAMM_BALANCE":163,"tecAMM_FAILED":164,"tecAMM_INVALID_TOKENS":165,"tecAMM_EMPTY":166,"tecAMM_NOT_EMPTY":167,"tecAMM_ACCOUNT":168,"tecINCOMPLETE":169,"tecXCHAIN_BAD_TRANSFER_ISSUE":170,"tecXCHAIN_NO_CLAIM_ID":171,"tecXCHAIN_BAD_CLAIM_ID":172,"tecXCHAIN_CLAIM_NO_QUORUM":173,"tecXCHAIN_PROOF_UNKNOWN_KEY":174,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":175,"tecXCHAIN_WRONG_CHAIN":176,"tecXCHAIN_REWARD_MISMATCH":177,"tecXCHAIN_NO_SIGNERS_LIST":178,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":179,"tecXCHAIN_INSUFF_CREATE_AMOUNT":180,"tecXCHAIN_ACCOUNT_CREATE_PAST":181,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":182,"tecXCHAIN_PAYMENT_FAILED":183,"tecXCHAIN_SELF_COMMIT":184,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":185,"tecXCHAIN_CREATE_ACCOUNT_DISABLED":186},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"Clawback":30,"AMMCreate":35,"AMMDeposit":36,"AMMWithdraw":37,"AMMVote":38,"AMMBid":39,"AMMDelete":40,"XChainCreateClaimID":41,"XChainCommit":42,"XChainClaim":43,"XChainAccountCreateCommit":44,"XChainAddClaimAttestation":45,"XChainAddAccountCreateAttestation":46,"XChainModifyBridge":47,"XChainCreateBridge":48,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
81505
|
+
module.exports = JSON.parse('{"TYPES":{"Done":-1,"Unknown":-2,"NotPresent":0,"UInt16":1,"UInt32":2,"UInt64":3,"Hash128":4,"Hash256":5,"Amount":6,"Blob":7,"AccountID":8,"STObject":14,"STArray":15,"UInt8":16,"Hash160":17,"PathSet":18,"Vector256":19,"UInt96":20,"UInt192":21,"UInt384":22,"UInt512":23,"Issue":24,"XChainBridge":25,"Transaction":10001,"LedgerEntry":10002,"Validation":10003,"Metadata":10004},"LEDGER_ENTRY_TYPES":{"Invalid":-1,"AccountRoot":97,"DirectoryNode":100,"RippleState":114,"Ticket":84,"SignerList":83,"Offer":111,"Bridge":105,"LedgerHashes":104,"Amendments":102,"XChainOwnedClaimID":113,"XChainOwnedCreateAccountClaimID":116,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"AMM":121,"DID":73,"Any":-3,"Child":-2,"Nickname":110,"Contract":99,"GeneratorMap":103},"FIELDS":[["Generic",{"nth":0,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["Invalid",{"nth":-1,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Unknown"}],["ObjectEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ArrayEndMarker",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["hash",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["index",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Hash256"}],["taker_gets_funded",{"nth":258,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["taker_pays_funded",{"nth":259,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Amount"}],["LedgerEntry",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"LedgerEntry"}],["Transaction",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Transaction"}],["Validation",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Validation"}],["Metadata",{"nth":257,"isVLEncoded":false,"isSerialized":false,"isSigningField":false,"type":"Metadata"}],["CloseResolution",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["Method",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TransactionResult",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["TickSize",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["UNLModifyDisabling",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["HookResult",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["WasLockingChainSend",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt8"}],["LedgerEntryType",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransactionType",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["SignerWeight",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TransferFee",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["TradingFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["DiscountedFee",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["Version",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookStateChangeCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookEmitCount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookExecutionIndex",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["HookApiVersion",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt16"}],["NetworkID",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Flags",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SourceTag",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Sequence",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["PreviousTxnLgrSeq",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LedgerSequence",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CloseTime",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ParentCloseTime",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SigningTime",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["Expiration",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransferRate",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["WalletSize",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OwnerCount",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["DestinationTag",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityIn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HighQualityOut",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityIn",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LowQualityOut",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityIn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["QualityOut",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["StampEscrow",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BondAmount",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LoadFee",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OfferSequence",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstLedgerSequence",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["LastLedgerSequence",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TransactionIndex",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["OperationLimit",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReferenceFeeUnits",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveBase",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ReserveIncrement",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SetFlag",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["ClearFlag",{"nth":34,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerQuorum",{"nth":35,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["CancelAfter",{"nth":36,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FinishAfter",{"nth":37,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SignerListID",{"nth":38,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["SettleDelay",{"nth":39,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketCount",{"nth":40,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["TicketSequence",{"nth":41,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["NFTokenTaxon",{"nth":42,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["MintedNFTokens",{"nth":43,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["BurnedNFTokens",{"nth":44,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["HookStateCount",{"nth":45,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["EmitGeneration",{"nth":46,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["VoteWeight",{"nth":48,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["FirstNFTokenSequence",{"nth":50,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt32"}],["IndexNext",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["IndexPrevious",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BookNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["OwnerNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["BaseFee",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ExchangeRate",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["LowNode",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HighNode",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["DestinationNode",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["Cookie",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ServerVersion",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["NFTokenOfferNode",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmitBurden",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookOn",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookInstructionCount",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["HookReturnCode",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["ReferenceCount",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainClaimID",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountCreateCount",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["XChainAccountClaimCount",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"UInt64"}],["EmailHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash128"}],["TakerPaysCurrency",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerPaysIssuer",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsCurrency",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["TakerGetsIssuer",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash160"}],["LedgerHash",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ParentHash",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["TransactionHash",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountHash",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousTxnID",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["LedgerIndex",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["WalletLocator",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["RootIndex",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AccountTxnID",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenID",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitParentTxnID",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitNonce",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["EmitHookHash",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["AMMID",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["BookDirectory",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["InvoiceID",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Nickname",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amendment",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Digest",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Channel",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ConsensusHash",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["CheckID",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["ValidatedHash",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["PreviousPageMin",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NextPageMin",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenBuyOffer",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["NFTokenSellOffer",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookStateKey",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookHash",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookNamespace",{"nth":32,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["HookSetTxnID",{"nth":33,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Hash256"}],["Amount",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Balance",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LimitAmount",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerPays",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["TakerGets",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LowLimit",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["HighLimit",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Fee",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SendMax",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliverMin",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Amount2",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMin",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BidMax",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinimumOffer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["RippleEscrow",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["DeliveredAmount",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["NFTokenBrokerFee",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["BaseFeeDrops",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveBaseDrops",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["ReserveIncrementDrops",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenOut",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenIn",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["EPrice",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["Price",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["SignatureReward",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["MinAccountCreateAmount",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["LPTokenBalance",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Amount"}],["PublicKey",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MessageKey",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["SigningPubKey",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["TxnSignature",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["URI",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Signature",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["Domain",{"nth":7,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["FundCode",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["RemoveCode",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ExpireCode",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["CreateCode",{"nth":11,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoType",{"nth":12,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoData",{"nth":13,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MemoFormat",{"nth":14,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Fulfillment",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Condition",{"nth":17,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["MasterSignature",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":false,"type":"Blob"}],["UNLModifyValidator",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToDisable",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["ValidatorToReEnable",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookStateData",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookReturnString",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterName",{"nth":24,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["HookParameterValue",{"nth":25,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["DIDDocument",{"nth":26,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Data",{"nth":27,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Blob"}],["Account",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Owner",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Destination",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Issuer",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Authorize",{"nth":5,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Unauthorize",{"nth":6,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["RegularKey",{"nth":8,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["NFTokenMinter",{"nth":9,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["EmitCallback",{"nth":10,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["HookAccount",{"nth":16,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainSource",{"nth":18,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["OtherChainDestination",{"nth":19,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationSignerAccount",{"nth":20,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["AttestationRewardAccount",{"nth":21,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["LockingChainDoor",{"nth":22,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["IssuingChainDoor",{"nth":23,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"AccountID"}],["Indexes",{"nth":1,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Hashes",{"nth":2,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Amendments",{"nth":3,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["NFTokenOffers",{"nth":4,"isVLEncoded":true,"isSerialized":true,"isSigningField":true,"type":"Vector256"}],["Paths",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"PathSet"}],["LockingChainIssue",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["IssuingChainIssue",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["Asset2",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"Issue"}],["XChainBridge",{"nth":1,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"XChainBridge"}],["TransactionMetaData",{"nth":2,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["CreatedNode",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DeletedNode",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["ModifiedNode",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["PreviousFields",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["FinalFields",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NewFields",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["TemplateEntry",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Memo",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["SignerEntry",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["NFToken",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmitDetails",{"nth":13,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Hook",{"nth":14,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signer",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Majority",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["DisabledValidator",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["EmittedTxn",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookExecution",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookDefinition",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookParameter",{"nth":23,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["HookGrant",{"nth":24,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["VoteEntry",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuctionSlot",{"nth":26,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["AuthAccount",{"nth":27,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimProofSig",{"nth":28,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountProofSig",{"nth":29,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainClaimAttestationCollectionElement",{"nth":30,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["XChainCreateAccountAttestationCollectionElement",{"nth":31,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STObject"}],["Signers",{"nth":3,"isVLEncoded":false,"isSerialized":true,"isSigningField":false,"type":"STArray"}],["SignerEntries",{"nth":4,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Template",{"nth":5,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Necessary",{"nth":6,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Sufficient",{"nth":7,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AffectedNodes",{"nth":8,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Memos",{"nth":9,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["NFTokens",{"nth":10,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Hooks",{"nth":11,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["VoteSlots",{"nth":12,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["Majorities",{"nth":16,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["DisabledValidators",{"nth":17,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookExecutions",{"nth":18,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookParameters",{"nth":19,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["HookGrants",{"nth":20,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainClaimAttestations",{"nth":21,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["XChainCreateAccountAttestations",{"nth":22,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}],["AuthAccounts",{"nth":25,"isVLEncoded":false,"isSerialized":true,"isSigningField":true,"type":"STArray"}]],"TRANSACTION_RESULTS":{"telLOCAL_ERROR":-399,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telFAILED_PROCESSING":-395,"telINSUF_FEE_P":-394,"telNO_DST_PARTIAL":-393,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telWRONG_NETWORK":-386,"telREQUIRES_NETWORK_ID":-385,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"temMALFORMED":-299,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SRC_ACCOUNT":-281,"temBAD_TRANSFER_RATE":-280,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temINVALID":-277,"temINVALID_FLAG":-276,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temDISABLED":-273,"temBAD_SIGNER":-272,"temBAD_QUORUM":-271,"temBAD_WEIGHT":-270,"temBAD_TICK_SIZE":-269,"temINVALID_ACCOUNT_ID":-268,"temCANNOT_PREAUTH_SELF":-267,"temINVALID_COUNT":-266,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temSEQ_AND_TICKET":-263,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_AMM_TOKENS":-261,"temXCHAIN_EQUAL_DOOR_ACCOUNTS":-260,"temXCHAIN_BAD_PROOF":-259,"temXCHAIN_BRIDGE_BAD_ISSUES":-258,"temXCHAIN_BRIDGE_NONDOOR_OWNER":-257,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-256,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-255,"temEMPTY_DID":-254,"tefFAILURE":-199,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_LEDGER":-195,"tefCREATED":-194,"tefEXCEPTION":-193,"tefINTERNAL":-192,"tefNO_AUTH_REQUIRED":-191,"tefPAST_SEQ":-190,"tefWRONG_PRIOR":-189,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefBAD_SIGNATURE":-186,"tefBAD_QUORUM":-185,"tefNOT_MULTI_SIGNING":-184,"tefBAD_AUTH_MASTER":-183,"tefINVARIANT_FAILED":-182,"tefTOO_BIG":-181,"tefNO_TICKET":-180,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"terRETRY":-99,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terNO_ACCOUNT":-96,"terNO_AUTH":-95,"terNO_LINE":-94,"terOWNERS":-93,"terPRE_SEQ":-92,"terLAST":-91,"terNO_RIPPLE":-90,"terQUEUED":-89,"terPRE_TICKET":-88,"terNO_AMM":-87,"terSUBMITTED":-86,"tesSUCCESS":0,"tecCLAIM":100,"tecPATH_PARTIAL":101,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecFAILED_PROCESSING":105,"tecDIR_FULL":121,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecPATH_DRY":128,"tecUNFUNDED":129,"tecNO_ALTERNATIVE_KEY":130,"tecNO_REGULAR_KEY":131,"tecOWNERS":132,"tecNO_ISSUER":133,"tecNO_AUTH":134,"tecNO_LINE":135,"tecINSUFF_FEE":136,"tecFROZEN":137,"tecNO_TARGET":138,"tecNO_PERMISSION":139,"tecNO_ENTRY":140,"tecINSUFFICIENT_RESERVE":141,"tecNEED_MASTER_KEY":142,"tecDST_TAG_NEEDED":143,"tecINTERNAL":144,"tecOVERSIZE":145,"tecCRYPTOCONDITION_ERROR":146,"tecINVARIANT_FAILED":147,"tecEXPIRED":148,"tecDUPLICATE":149,"tecKILLED":150,"tecHAS_OBLIGATIONS":151,"tecTOO_SOON":152,"tecHOOK_REJECTED":153,"tecMAX_SEQUENCE_REACHED":154,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecINSUFFICIENT_FUNDS":159,"tecOBJECT_NOT_FOUND":160,"tecINSUFFICIENT_PAYMENT":161,"tecUNFUNDED_AMM":162,"tecAMM_BALANCE":163,"tecAMM_FAILED":164,"tecAMM_INVALID_TOKENS":165,"tecAMM_EMPTY":166,"tecAMM_NOT_EMPTY":167,"tecAMM_ACCOUNT":168,"tecINCOMPLETE":169,"tecXCHAIN_BAD_TRANSFER_ISSUE":170,"tecXCHAIN_NO_CLAIM_ID":171,"tecXCHAIN_BAD_CLAIM_ID":172,"tecXCHAIN_CLAIM_NO_QUORUM":173,"tecXCHAIN_PROOF_UNKNOWN_KEY":174,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":175,"tecXCHAIN_WRONG_CHAIN":176,"tecXCHAIN_REWARD_MISMATCH":177,"tecXCHAIN_NO_SIGNERS_LIST":178,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":179,"tecXCHAIN_INSUFF_CREATE_AMOUNT":180,"tecXCHAIN_ACCOUNT_CREATE_PAST":181,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":182,"tecXCHAIN_PAYMENT_FAILED":183,"tecXCHAIN_SELF_COMMIT":184,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":185,"tecXCHAIN_CREATE_ACCOUNT_DISABLED":186,"tecEMPTY_DID":187},"TRANSACTION_TYPES":{"Invalid":-1,"Payment":0,"EscrowCreate":1,"EscrowFinish":2,"AccountSet":3,"EscrowCancel":4,"SetRegularKey":5,"NickNameSet":6,"OfferCreate":7,"OfferCancel":8,"Contract":9,"TicketCreate":10,"TicketCancel":11,"SignerListSet":12,"PaymentChannelCreate":13,"PaymentChannelFund":14,"PaymentChannelClaim":15,"CheckCreate":16,"CheckCash":17,"CheckCancel":18,"DepositPreauth":19,"TrustSet":20,"AccountDelete":21,"SetHook":22,"NFTokenMint":25,"NFTokenBurn":26,"NFTokenCreateOffer":27,"NFTokenCancelOffer":28,"NFTokenAcceptOffer":29,"Clawback":30,"AMMCreate":35,"AMMDeposit":36,"AMMWithdraw":37,"AMMVote":38,"AMMBid":39,"AMMDelete":40,"XChainCreateClaimID":41,"XChainCommit":42,"XChainClaim":43,"XChainAccountCreateCommit":44,"XChainAddClaimAttestation":45,"XChainAddAccountCreateAttestation":46,"XChainModifyBridge":47,"XChainCreateBridge":48,"DIDSet":49,"DIDDelete":50,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
81555
81506
|
|
81556
81507
|
/***/ }),
|
81557
81508
|
|