xrpl 2.9.0 → 2.10.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 +1974 -462
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.d.ts +3 -1
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.js +1 -0
- package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/models/methods/accountInfo.d.ts +1 -0
- package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountSet.d.ts +2 -1
- package/dist/npm/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountSet.js +1 -0
- package/dist/npm/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/models/transactions/clawback.d.ts +9 -0
- package/dist/npm/models/transactions/clawback.d.ts.map +1 -0
- package/dist/npm/models/transactions/clawback.js +19 -0
- package/dist/npm/models/transactions/clawback.js.map +1 -0
- package/dist/npm/models/transactions/index.d.ts +1 -0
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +2 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +4 -0
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +3 -2
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/models/utils/index.js +1 -1
- package/dist/npm/models/utils/index.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +3 -1
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js +1 -0
- package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/src/models/methods/accountInfo.d.ts +1 -0
- package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/accountSet.d.ts +2 -1
- package/dist/npm/src/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/accountSet.js +1 -0
- package/dist/npm/src/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/src/models/transactions/clawback.d.ts +9 -0
- package/dist/npm/src/models/transactions/clawback.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/clawback.js +19 -0
- package/dist/npm/src/models/transactions/clawback.js.map +1 -0
- package/dist/npm/src/models/transactions/index.d.ts +1 -0
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +2 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +4 -0
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +3 -2
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/models/utils/index.js +1 -1
- package/dist/npm/src/models/utils/index.js.map +1 -1
- package/package.json +3 -3
package/build/xrpl-latest.js
CHANGED
@@ -32920,18 +32920,23 @@ var ThrowTypeError = $gOPD
|
|
32920
32920
|
: throwTypeError;
|
32921
32921
|
|
32922
32922
|
var hasSymbols = __webpack_require__(/*! has-symbols */ "../../node_modules/has-symbols/index.js")();
|
32923
|
+
var hasProto = __webpack_require__(/*! has-proto */ "../../node_modules/has-proto/index.js")();
|
32923
32924
|
|
32924
|
-
var getProto = Object.getPrototypeOf ||
|
32925
|
+
var getProto = Object.getPrototypeOf || (
|
32926
|
+
hasProto
|
32927
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
32928
|
+
: null
|
32929
|
+
);
|
32925
32930
|
|
32926
32931
|
var needsEval = {};
|
32927
32932
|
|
32928
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
32933
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
32929
32934
|
|
32930
32935
|
var INTRINSICS = {
|
32931
32936
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
32932
32937
|
'%Array%': Array,
|
32933
32938
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
32934
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
32939
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
32935
32940
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
32936
32941
|
'%AsyncFunction%': needsEval,
|
32937
32942
|
'%AsyncGenerator%': needsEval,
|
@@ -32961,10 +32966,10 @@ var INTRINSICS = {
|
|
32961
32966
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
32962
32967
|
'%isFinite%': isFinite,
|
32963
32968
|
'%isNaN%': isNaN,
|
32964
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
32969
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
32965
32970
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
32966
32971
|
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
32967
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
32972
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
32968
32973
|
'%Math%': Math,
|
32969
32974
|
'%Number%': Number,
|
32970
32975
|
'%Object%': Object,
|
@@ -32977,10 +32982,10 @@ var INTRINSICS = {
|
|
32977
32982
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
32978
32983
|
'%RegExp%': RegExp,
|
32979
32984
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
32980
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
32985
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
32981
32986
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
32982
32987
|
'%String%': String,
|
32983
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
32988
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
32984
32989
|
'%Symbol%': hasSymbols ? Symbol : undefined,
|
32985
32990
|
'%SyntaxError%': $SyntaxError,
|
32986
32991
|
'%ThrowTypeError%': ThrowTypeError,
|
@@ -32996,12 +33001,14 @@ var INTRINSICS = {
|
|
32996
33001
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
32997
33002
|
};
|
32998
33003
|
|
32999
|
-
|
33000
|
-
|
33001
|
-
|
33002
|
-
|
33003
|
-
|
33004
|
-
|
33004
|
+
if (getProto) {
|
33005
|
+
try {
|
33006
|
+
null.error; // eslint-disable-line no-unused-expressions
|
33007
|
+
} catch (e) {
|
33008
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
33009
|
+
var errorProto = getProto(getProto(e));
|
33010
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
33011
|
+
}
|
33005
33012
|
}
|
33006
33013
|
|
33007
33014
|
var doEval = function doEval(name) {
|
@@ -33019,7 +33026,7 @@ var doEval = function doEval(name) {
|
|
33019
33026
|
}
|
33020
33027
|
} else if (name === '%AsyncIteratorPrototype%') {
|
33021
33028
|
var gen = doEval('%AsyncGenerator%');
|
33022
|
-
if (gen) {
|
33029
|
+
if (gen && getProto) {
|
33023
33030
|
value = getProto(gen.prototype);
|
33024
33031
|
}
|
33025
33032
|
}
|
@@ -33292,6 +33299,28 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
33292
33299
|
module.exports = hasPropertyDescriptors;
|
33293
33300
|
|
33294
33301
|
|
33302
|
+
/***/ }),
|
33303
|
+
|
33304
|
+
/***/ "../../node_modules/has-proto/index.js":
|
33305
|
+
/*!*********************************************!*\
|
33306
|
+
!*** ../../node_modules/has-proto/index.js ***!
|
33307
|
+
\*********************************************/
|
33308
|
+
/***/ ((module) => {
|
33309
|
+
|
33310
|
+
"use strict";
|
33311
|
+
|
33312
|
+
|
33313
|
+
var test = {
|
33314
|
+
foo: {}
|
33315
|
+
};
|
33316
|
+
|
33317
|
+
var $Object = Object;
|
33318
|
+
|
33319
|
+
module.exports = function hasProto() {
|
33320
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
33321
|
+
};
|
33322
|
+
|
33323
|
+
|
33295
33324
|
/***/ }),
|
33296
33325
|
|
33297
33326
|
/***/ "../../node_modules/has-symbols/index.js":
|
@@ -58320,6 +58349,532 @@ utils.encode = function encode(arr, enc) {
|
|
58320
58349
|
};
|
58321
58350
|
|
58322
58351
|
|
58352
|
+
/***/ }),
|
58353
|
+
|
58354
|
+
/***/ "../../node_modules/object-inspect/index.js":
|
58355
|
+
/*!**************************************************!*\
|
58356
|
+
!*** ../../node_modules/object-inspect/index.js ***!
|
58357
|
+
\**************************************************/
|
58358
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
58359
|
+
|
58360
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
58361
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
58362
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
58363
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
58364
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
58365
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
58366
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
58367
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
58368
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
58369
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
58370
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
58371
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
58372
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
58373
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
58374
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
58375
|
+
var objectToString = Object.prototype.toString;
|
58376
|
+
var functionToString = Function.prototype.toString;
|
58377
|
+
var $match = String.prototype.match;
|
58378
|
+
var $slice = String.prototype.slice;
|
58379
|
+
var $replace = String.prototype.replace;
|
58380
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
58381
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
58382
|
+
var $test = RegExp.prototype.test;
|
58383
|
+
var $concat = Array.prototype.concat;
|
58384
|
+
var $join = Array.prototype.join;
|
58385
|
+
var $arrSlice = Array.prototype.slice;
|
58386
|
+
var $floor = Math.floor;
|
58387
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
58388
|
+
var gOPS = Object.getOwnPropertySymbols;
|
58389
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
58390
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
58391
|
+
// ie, `has-tostringtag/shams
|
58392
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
58393
|
+
? Symbol.toStringTag
|
58394
|
+
: null;
|
58395
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
58396
|
+
|
58397
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
58398
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
58399
|
+
? function (O) {
|
58400
|
+
return O.__proto__; // eslint-disable-line no-proto
|
58401
|
+
}
|
58402
|
+
: null
|
58403
|
+
);
|
58404
|
+
|
58405
|
+
function addNumericSeparator(num, str) {
|
58406
|
+
if (
|
58407
|
+
num === Infinity
|
58408
|
+
|| num === -Infinity
|
58409
|
+
|| num !== num
|
58410
|
+
|| (num && num > -1000 && num < 1000)
|
58411
|
+
|| $test.call(/e/, str)
|
58412
|
+
) {
|
58413
|
+
return str;
|
58414
|
+
}
|
58415
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
58416
|
+
if (typeof num === 'number') {
|
58417
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
58418
|
+
if (int !== num) {
|
58419
|
+
var intStr = String(int);
|
58420
|
+
var dec = $slice.call(str, intStr.length + 1);
|
58421
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
58422
|
+
}
|
58423
|
+
}
|
58424
|
+
return $replace.call(str, sepRegex, '$&_');
|
58425
|
+
}
|
58426
|
+
|
58427
|
+
var utilInspect = __webpack_require__(/*! ./util.inspect */ "?c95a");
|
58428
|
+
var inspectCustom = utilInspect.custom;
|
58429
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
58430
|
+
|
58431
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
58432
|
+
var opts = options || {};
|
58433
|
+
|
58434
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
58435
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
58436
|
+
}
|
58437
|
+
if (
|
58438
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
58439
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
58440
|
+
: opts.maxStringLength !== null
|
58441
|
+
)
|
58442
|
+
) {
|
58443
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
58444
|
+
}
|
58445
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
58446
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
58447
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
58448
|
+
}
|
58449
|
+
|
58450
|
+
if (
|
58451
|
+
has(opts, 'indent')
|
58452
|
+
&& opts.indent !== null
|
58453
|
+
&& opts.indent !== '\t'
|
58454
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
58455
|
+
) {
|
58456
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
58457
|
+
}
|
58458
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
58459
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
58460
|
+
}
|
58461
|
+
var numericSeparator = opts.numericSeparator;
|
58462
|
+
|
58463
|
+
if (typeof obj === 'undefined') {
|
58464
|
+
return 'undefined';
|
58465
|
+
}
|
58466
|
+
if (obj === null) {
|
58467
|
+
return 'null';
|
58468
|
+
}
|
58469
|
+
if (typeof obj === 'boolean') {
|
58470
|
+
return obj ? 'true' : 'false';
|
58471
|
+
}
|
58472
|
+
|
58473
|
+
if (typeof obj === 'string') {
|
58474
|
+
return inspectString(obj, opts);
|
58475
|
+
}
|
58476
|
+
if (typeof obj === 'number') {
|
58477
|
+
if (obj === 0) {
|
58478
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
58479
|
+
}
|
58480
|
+
var str = String(obj);
|
58481
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
58482
|
+
}
|
58483
|
+
if (typeof obj === 'bigint') {
|
58484
|
+
var bigIntStr = String(obj) + 'n';
|
58485
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
58486
|
+
}
|
58487
|
+
|
58488
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
58489
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
58490
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
58491
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
58492
|
+
}
|
58493
|
+
|
58494
|
+
var indent = getIndent(opts, depth);
|
58495
|
+
|
58496
|
+
if (typeof seen === 'undefined') {
|
58497
|
+
seen = [];
|
58498
|
+
} else if (indexOf(seen, obj) >= 0) {
|
58499
|
+
return '[Circular]';
|
58500
|
+
}
|
58501
|
+
|
58502
|
+
function inspect(value, from, noIndent) {
|
58503
|
+
if (from) {
|
58504
|
+
seen = $arrSlice.call(seen);
|
58505
|
+
seen.push(from);
|
58506
|
+
}
|
58507
|
+
if (noIndent) {
|
58508
|
+
var newOpts = {
|
58509
|
+
depth: opts.depth
|
58510
|
+
};
|
58511
|
+
if (has(opts, 'quoteStyle')) {
|
58512
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
58513
|
+
}
|
58514
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
58515
|
+
}
|
58516
|
+
return inspect_(value, opts, depth + 1, seen);
|
58517
|
+
}
|
58518
|
+
|
58519
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
58520
|
+
var name = nameOf(obj);
|
58521
|
+
var keys = arrObjKeys(obj, inspect);
|
58522
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
58523
|
+
}
|
58524
|
+
if (isSymbol(obj)) {
|
58525
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
58526
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
58527
|
+
}
|
58528
|
+
if (isElement(obj)) {
|
58529
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
58530
|
+
var attrs = obj.attributes || [];
|
58531
|
+
for (var i = 0; i < attrs.length; i++) {
|
58532
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
58533
|
+
}
|
58534
|
+
s += '>';
|
58535
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
58536
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
58537
|
+
return s;
|
58538
|
+
}
|
58539
|
+
if (isArray(obj)) {
|
58540
|
+
if (obj.length === 0) { return '[]'; }
|
58541
|
+
var xs = arrObjKeys(obj, inspect);
|
58542
|
+
if (indent && !singleLineValues(xs)) {
|
58543
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
58544
|
+
}
|
58545
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
58546
|
+
}
|
58547
|
+
if (isError(obj)) {
|
58548
|
+
var parts = arrObjKeys(obj, inspect);
|
58549
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
58550
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
58551
|
+
}
|
58552
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
58553
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
58554
|
+
}
|
58555
|
+
if (typeof obj === 'object' && customInspect) {
|
58556
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
58557
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
58558
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
58559
|
+
return obj.inspect();
|
58560
|
+
}
|
58561
|
+
}
|
58562
|
+
if (isMap(obj)) {
|
58563
|
+
var mapParts = [];
|
58564
|
+
if (mapForEach) {
|
58565
|
+
mapForEach.call(obj, function (value, key) {
|
58566
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
58567
|
+
});
|
58568
|
+
}
|
58569
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
58570
|
+
}
|
58571
|
+
if (isSet(obj)) {
|
58572
|
+
var setParts = [];
|
58573
|
+
if (setForEach) {
|
58574
|
+
setForEach.call(obj, function (value) {
|
58575
|
+
setParts.push(inspect(value, obj));
|
58576
|
+
});
|
58577
|
+
}
|
58578
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
58579
|
+
}
|
58580
|
+
if (isWeakMap(obj)) {
|
58581
|
+
return weakCollectionOf('WeakMap');
|
58582
|
+
}
|
58583
|
+
if (isWeakSet(obj)) {
|
58584
|
+
return weakCollectionOf('WeakSet');
|
58585
|
+
}
|
58586
|
+
if (isWeakRef(obj)) {
|
58587
|
+
return weakCollectionOf('WeakRef');
|
58588
|
+
}
|
58589
|
+
if (isNumber(obj)) {
|
58590
|
+
return markBoxed(inspect(Number(obj)));
|
58591
|
+
}
|
58592
|
+
if (isBigInt(obj)) {
|
58593
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
58594
|
+
}
|
58595
|
+
if (isBoolean(obj)) {
|
58596
|
+
return markBoxed(booleanValueOf.call(obj));
|
58597
|
+
}
|
58598
|
+
if (isString(obj)) {
|
58599
|
+
return markBoxed(inspect(String(obj)));
|
58600
|
+
}
|
58601
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
58602
|
+
var ys = arrObjKeys(obj, inspect);
|
58603
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
58604
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
58605
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
58606
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
58607
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
58608
|
+
if (ys.length === 0) { return tag + '{}'; }
|
58609
|
+
if (indent) {
|
58610
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
58611
|
+
}
|
58612
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
58613
|
+
}
|
58614
|
+
return String(obj);
|
58615
|
+
};
|
58616
|
+
|
58617
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
58618
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
58619
|
+
return quoteChar + s + quoteChar;
|
58620
|
+
}
|
58621
|
+
|
58622
|
+
function quote(s) {
|
58623
|
+
return $replace.call(String(s), /"/g, '"');
|
58624
|
+
}
|
58625
|
+
|
58626
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58627
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58628
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58629
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58630
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58631
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58632
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
58633
|
+
|
58634
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
58635
|
+
function isSymbol(obj) {
|
58636
|
+
if (hasShammedSymbols) {
|
58637
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
58638
|
+
}
|
58639
|
+
if (typeof obj === 'symbol') {
|
58640
|
+
return true;
|
58641
|
+
}
|
58642
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
58643
|
+
return false;
|
58644
|
+
}
|
58645
|
+
try {
|
58646
|
+
symToString.call(obj);
|
58647
|
+
return true;
|
58648
|
+
} catch (e) {}
|
58649
|
+
return false;
|
58650
|
+
}
|
58651
|
+
|
58652
|
+
function isBigInt(obj) {
|
58653
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
58654
|
+
return false;
|
58655
|
+
}
|
58656
|
+
try {
|
58657
|
+
bigIntValueOf.call(obj);
|
58658
|
+
return true;
|
58659
|
+
} catch (e) {}
|
58660
|
+
return false;
|
58661
|
+
}
|
58662
|
+
|
58663
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
58664
|
+
function has(obj, key) {
|
58665
|
+
return hasOwn.call(obj, key);
|
58666
|
+
}
|
58667
|
+
|
58668
|
+
function toStr(obj) {
|
58669
|
+
return objectToString.call(obj);
|
58670
|
+
}
|
58671
|
+
|
58672
|
+
function nameOf(f) {
|
58673
|
+
if (f.name) { return f.name; }
|
58674
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
58675
|
+
if (m) { return m[1]; }
|
58676
|
+
return null;
|
58677
|
+
}
|
58678
|
+
|
58679
|
+
function indexOf(xs, x) {
|
58680
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
58681
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
58682
|
+
if (xs[i] === x) { return i; }
|
58683
|
+
}
|
58684
|
+
return -1;
|
58685
|
+
}
|
58686
|
+
|
58687
|
+
function isMap(x) {
|
58688
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
58689
|
+
return false;
|
58690
|
+
}
|
58691
|
+
try {
|
58692
|
+
mapSize.call(x);
|
58693
|
+
try {
|
58694
|
+
setSize.call(x);
|
58695
|
+
} catch (s) {
|
58696
|
+
return true;
|
58697
|
+
}
|
58698
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
58699
|
+
} catch (e) {}
|
58700
|
+
return false;
|
58701
|
+
}
|
58702
|
+
|
58703
|
+
function isWeakMap(x) {
|
58704
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
58705
|
+
return false;
|
58706
|
+
}
|
58707
|
+
try {
|
58708
|
+
weakMapHas.call(x, weakMapHas);
|
58709
|
+
try {
|
58710
|
+
weakSetHas.call(x, weakSetHas);
|
58711
|
+
} catch (s) {
|
58712
|
+
return true;
|
58713
|
+
}
|
58714
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
58715
|
+
} catch (e) {}
|
58716
|
+
return false;
|
58717
|
+
}
|
58718
|
+
|
58719
|
+
function isWeakRef(x) {
|
58720
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
58721
|
+
return false;
|
58722
|
+
}
|
58723
|
+
try {
|
58724
|
+
weakRefDeref.call(x);
|
58725
|
+
return true;
|
58726
|
+
} catch (e) {}
|
58727
|
+
return false;
|
58728
|
+
}
|
58729
|
+
|
58730
|
+
function isSet(x) {
|
58731
|
+
if (!setSize || !x || typeof x !== 'object') {
|
58732
|
+
return false;
|
58733
|
+
}
|
58734
|
+
try {
|
58735
|
+
setSize.call(x);
|
58736
|
+
try {
|
58737
|
+
mapSize.call(x);
|
58738
|
+
} catch (m) {
|
58739
|
+
return true;
|
58740
|
+
}
|
58741
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
58742
|
+
} catch (e) {}
|
58743
|
+
return false;
|
58744
|
+
}
|
58745
|
+
|
58746
|
+
function isWeakSet(x) {
|
58747
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
58748
|
+
return false;
|
58749
|
+
}
|
58750
|
+
try {
|
58751
|
+
weakSetHas.call(x, weakSetHas);
|
58752
|
+
try {
|
58753
|
+
weakMapHas.call(x, weakMapHas);
|
58754
|
+
} catch (s) {
|
58755
|
+
return true;
|
58756
|
+
}
|
58757
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
58758
|
+
} catch (e) {}
|
58759
|
+
return false;
|
58760
|
+
}
|
58761
|
+
|
58762
|
+
function isElement(x) {
|
58763
|
+
if (!x || typeof x !== 'object') { return false; }
|
58764
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
58765
|
+
return true;
|
58766
|
+
}
|
58767
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
58768
|
+
}
|
58769
|
+
|
58770
|
+
function inspectString(str, opts) {
|
58771
|
+
if (str.length > opts.maxStringLength) {
|
58772
|
+
var remaining = str.length - opts.maxStringLength;
|
58773
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
58774
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
58775
|
+
}
|
58776
|
+
// eslint-disable-next-line no-control-regex
|
58777
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
58778
|
+
return wrapQuotes(s, 'single', opts);
|
58779
|
+
}
|
58780
|
+
|
58781
|
+
function lowbyte(c) {
|
58782
|
+
var n = c.charCodeAt(0);
|
58783
|
+
var x = {
|
58784
|
+
8: 'b',
|
58785
|
+
9: 't',
|
58786
|
+
10: 'n',
|
58787
|
+
12: 'f',
|
58788
|
+
13: 'r'
|
58789
|
+
}[n];
|
58790
|
+
if (x) { return '\\' + x; }
|
58791
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
58792
|
+
}
|
58793
|
+
|
58794
|
+
function markBoxed(str) {
|
58795
|
+
return 'Object(' + str + ')';
|
58796
|
+
}
|
58797
|
+
|
58798
|
+
function weakCollectionOf(type) {
|
58799
|
+
return type + ' { ? }';
|
58800
|
+
}
|
58801
|
+
|
58802
|
+
function collectionOf(type, size, entries, indent) {
|
58803
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
58804
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
58805
|
+
}
|
58806
|
+
|
58807
|
+
function singleLineValues(xs) {
|
58808
|
+
for (var i = 0; i < xs.length; i++) {
|
58809
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
58810
|
+
return false;
|
58811
|
+
}
|
58812
|
+
}
|
58813
|
+
return true;
|
58814
|
+
}
|
58815
|
+
|
58816
|
+
function getIndent(opts, depth) {
|
58817
|
+
var baseIndent;
|
58818
|
+
if (opts.indent === '\t') {
|
58819
|
+
baseIndent = '\t';
|
58820
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
58821
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
58822
|
+
} else {
|
58823
|
+
return null;
|
58824
|
+
}
|
58825
|
+
return {
|
58826
|
+
base: baseIndent,
|
58827
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
58828
|
+
};
|
58829
|
+
}
|
58830
|
+
|
58831
|
+
function indentedJoin(xs, indent) {
|
58832
|
+
if (xs.length === 0) { return ''; }
|
58833
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
58834
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
58835
|
+
}
|
58836
|
+
|
58837
|
+
function arrObjKeys(obj, inspect) {
|
58838
|
+
var isArr = isArray(obj);
|
58839
|
+
var xs = [];
|
58840
|
+
if (isArr) {
|
58841
|
+
xs.length = obj.length;
|
58842
|
+
for (var i = 0; i < obj.length; i++) {
|
58843
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
58844
|
+
}
|
58845
|
+
}
|
58846
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
58847
|
+
var symMap;
|
58848
|
+
if (hasShammedSymbols) {
|
58849
|
+
symMap = {};
|
58850
|
+
for (var k = 0; k < syms.length; k++) {
|
58851
|
+
symMap['$' + syms[k]] = syms[k];
|
58852
|
+
}
|
58853
|
+
}
|
58854
|
+
|
58855
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
58856
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
58857
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
58858
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
58859
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
58860
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
58861
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
58862
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
58863
|
+
} else {
|
58864
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
58865
|
+
}
|
58866
|
+
}
|
58867
|
+
if (typeof gOPS === 'function') {
|
58868
|
+
for (var j = 0; j < syms.length; j++) {
|
58869
|
+
if (isEnumerable.call(obj, syms[j])) {
|
58870
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
58871
|
+
}
|
58872
|
+
}
|
58873
|
+
}
|
58874
|
+
return xs;
|
58875
|
+
}
|
58876
|
+
|
58877
|
+
|
58323
58878
|
/***/ }),
|
58324
58879
|
|
58325
58880
|
/***/ "../../node_modules/object-is/implementation.js":
|
@@ -59845,183 +60400,932 @@ module.exports = function xor (a, b) {
|
|
59845
60400
|
|
59846
60401
|
/***/ }),
|
59847
60402
|
|
59848
|
-
/***/ "../../node_modules/
|
59849
|
-
|
59850
|
-
!*** ../../node_modules/
|
59851
|
-
|
60403
|
+
/***/ "../../node_modules/qs/lib/formats.js":
|
60404
|
+
/*!********************************************!*\
|
60405
|
+
!*** ../../node_modules/qs/lib/formats.js ***!
|
60406
|
+
\********************************************/
|
59852
60407
|
/***/ ((module) => {
|
59853
60408
|
|
59854
60409
|
"use strict";
|
59855
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
59856
|
-
//
|
59857
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
59858
|
-
// copy of this software and associated documentation files (the
|
59859
|
-
// "Software"), to deal in the Software without restriction, including
|
59860
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
59861
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
59862
|
-
// persons to whom the Software is furnished to do so, subject to the
|
59863
|
-
// following conditions:
|
59864
|
-
//
|
59865
|
-
// The above copyright notice and this permission notice shall be included
|
59866
|
-
// in all copies or substantial portions of the Software.
|
59867
|
-
//
|
59868
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
59869
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
59870
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
59871
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
59872
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
59873
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
59874
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
59875
60410
|
|
59876
60411
|
|
60412
|
+
var replace = String.prototype.replace;
|
60413
|
+
var percentTwenties = /%20/g;
|
59877
60414
|
|
59878
|
-
|
59879
|
-
|
59880
|
-
|
59881
|
-
|
59882
|
-
|
59883
|
-
|
60415
|
+
var Format = {
|
60416
|
+
RFC1738: 'RFC1738',
|
60417
|
+
RFC3986: 'RFC3986'
|
60418
|
+
};
|
60419
|
+
|
60420
|
+
module.exports = {
|
60421
|
+
'default': Format.RFC3986,
|
60422
|
+
formatters: {
|
60423
|
+
RFC1738: function (value) {
|
60424
|
+
return replace.call(value, percentTwenties, '+');
|
60425
|
+
},
|
60426
|
+
RFC3986: function (value) {
|
60427
|
+
return String(value);
|
60428
|
+
}
|
60429
|
+
},
|
60430
|
+
RFC1738: Format.RFC1738,
|
60431
|
+
RFC3986: Format.RFC3986
|
60432
|
+
};
|
60433
|
+
|
60434
|
+
|
60435
|
+
/***/ }),
|
60436
|
+
|
60437
|
+
/***/ "../../node_modules/qs/lib/index.js":
|
60438
|
+
/*!******************************************!*\
|
60439
|
+
!*** ../../node_modules/qs/lib/index.js ***!
|
60440
|
+
\******************************************/
|
60441
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
60442
|
+
|
60443
|
+
"use strict";
|
60444
|
+
|
60445
|
+
|
60446
|
+
var stringify = __webpack_require__(/*! ./stringify */ "../../node_modules/qs/lib/stringify.js");
|
60447
|
+
var parse = __webpack_require__(/*! ./parse */ "../../node_modules/qs/lib/parse.js");
|
60448
|
+
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
60449
|
+
|
60450
|
+
module.exports = {
|
60451
|
+
formats: formats,
|
60452
|
+
parse: parse,
|
60453
|
+
stringify: stringify
|
60454
|
+
};
|
60455
|
+
|
60456
|
+
|
60457
|
+
/***/ }),
|
60458
|
+
|
60459
|
+
/***/ "../../node_modules/qs/lib/parse.js":
|
60460
|
+
/*!******************************************!*\
|
60461
|
+
!*** ../../node_modules/qs/lib/parse.js ***!
|
60462
|
+
\******************************************/
|
60463
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
60464
|
+
|
60465
|
+
"use strict";
|
60466
|
+
|
60467
|
+
|
60468
|
+
var utils = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
|
60469
|
+
|
60470
|
+
var has = Object.prototype.hasOwnProperty;
|
60471
|
+
var isArray = Array.isArray;
|
60472
|
+
|
60473
|
+
var defaults = {
|
60474
|
+
allowDots: false,
|
60475
|
+
allowPrototypes: false,
|
60476
|
+
allowSparse: false,
|
60477
|
+
arrayLimit: 20,
|
60478
|
+
charset: 'utf-8',
|
60479
|
+
charsetSentinel: false,
|
60480
|
+
comma: false,
|
60481
|
+
decoder: utils.decode,
|
60482
|
+
delimiter: '&',
|
60483
|
+
depth: 5,
|
60484
|
+
ignoreQueryPrefix: false,
|
60485
|
+
interpretNumericEntities: false,
|
60486
|
+
parameterLimit: 1000,
|
60487
|
+
parseArrays: true,
|
60488
|
+
plainObjects: false,
|
60489
|
+
strictNullHandling: false
|
60490
|
+
};
|
60491
|
+
|
60492
|
+
var interpretNumericEntities = function (str) {
|
60493
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
60494
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
60495
|
+
});
|
60496
|
+
};
|
60497
|
+
|
60498
|
+
var parseArrayValue = function (val, options) {
|
60499
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
60500
|
+
return val.split(',');
|
60501
|
+
}
|
60502
|
+
|
60503
|
+
return val;
|
60504
|
+
};
|
60505
|
+
|
60506
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
60507
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
60508
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
60509
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
60510
|
+
// the ✓ character, such as us-ascii.
|
60511
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
60512
|
+
|
60513
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
60514
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
60515
|
+
|
60516
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
60517
|
+
var obj = {};
|
60518
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
60519
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
60520
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
60521
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
60522
|
+
var i;
|
60523
|
+
|
60524
|
+
var charset = options.charset;
|
60525
|
+
if (options.charsetSentinel) {
|
60526
|
+
for (i = 0; i < parts.length; ++i) {
|
60527
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
60528
|
+
if (parts[i] === charsetSentinel) {
|
60529
|
+
charset = 'utf-8';
|
60530
|
+
} else if (parts[i] === isoSentinel) {
|
60531
|
+
charset = 'iso-8859-1';
|
60532
|
+
}
|
60533
|
+
skipIndex = i;
|
60534
|
+
i = parts.length; // The eslint settings do not allow break;
|
60535
|
+
}
|
60536
|
+
}
|
60537
|
+
}
|
60538
|
+
|
60539
|
+
for (i = 0; i < parts.length; ++i) {
|
60540
|
+
if (i === skipIndex) {
|
60541
|
+
continue;
|
60542
|
+
}
|
60543
|
+
var part = parts[i];
|
59884
60544
|
|
59885
|
-
|
59886
|
-
|
59887
|
-
|
59888
|
-
|
60545
|
+
var bracketEqualsPos = part.indexOf(']=');
|
60546
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
60547
|
+
|
60548
|
+
var key, val;
|
60549
|
+
if (pos === -1) {
|
60550
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
60551
|
+
val = options.strictNullHandling ? null : '';
|
60552
|
+
} else {
|
60553
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
60554
|
+
val = utils.maybeMap(
|
60555
|
+
parseArrayValue(part.slice(pos + 1), options),
|
60556
|
+
function (encodedVal) {
|
60557
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
60558
|
+
}
|
60559
|
+
);
|
60560
|
+
}
|
60561
|
+
|
60562
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
60563
|
+
val = interpretNumericEntities(val);
|
60564
|
+
}
|
60565
|
+
|
60566
|
+
if (part.indexOf('[]=') > -1) {
|
60567
|
+
val = isArray(val) ? [val] : val;
|
60568
|
+
}
|
60569
|
+
|
60570
|
+
if (has.call(obj, key)) {
|
60571
|
+
obj[key] = utils.combine(obj[key], val);
|
60572
|
+
} else {
|
60573
|
+
obj[key] = val;
|
60574
|
+
}
|
60575
|
+
}
|
59889
60576
|
|
59890
|
-
if (typeof qs !== 'string' || qs.length === 0) {
|
59891
60577
|
return obj;
|
59892
|
-
|
60578
|
+
};
|
59893
60579
|
|
59894
|
-
|
59895
|
-
|
60580
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
60581
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
59896
60582
|
|
59897
|
-
|
59898
|
-
|
59899
|
-
|
59900
|
-
}
|
60583
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
60584
|
+
var obj;
|
60585
|
+
var root = chain[i];
|
59901
60586
|
|
59902
|
-
|
59903
|
-
|
59904
|
-
|
59905
|
-
|
59906
|
-
|
60587
|
+
if (root === '[]' && options.parseArrays) {
|
60588
|
+
obj = [].concat(leaf);
|
60589
|
+
} else {
|
60590
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
60591
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
60592
|
+
var index = parseInt(cleanRoot, 10);
|
60593
|
+
if (!options.parseArrays && cleanRoot === '') {
|
60594
|
+
obj = { 0: leaf };
|
60595
|
+
} else if (
|
60596
|
+
!isNaN(index)
|
60597
|
+
&& root !== cleanRoot
|
60598
|
+
&& String(index) === cleanRoot
|
60599
|
+
&& index >= 0
|
60600
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
60601
|
+
) {
|
60602
|
+
obj = [];
|
60603
|
+
obj[index] = leaf;
|
60604
|
+
} else if (cleanRoot !== '__proto__') {
|
60605
|
+
obj[cleanRoot] = leaf;
|
60606
|
+
}
|
60607
|
+
}
|
59907
60608
|
|
59908
|
-
|
59909
|
-
|
59910
|
-
idx = x.indexOf(eq),
|
59911
|
-
kstr, vstr, k, v;
|
60609
|
+
leaf = obj;
|
60610
|
+
}
|
59912
60611
|
|
59913
|
-
|
59914
|
-
|
59915
|
-
|
59916
|
-
|
59917
|
-
|
59918
|
-
|
60612
|
+
return leaf;
|
60613
|
+
};
|
60614
|
+
|
60615
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
60616
|
+
if (!givenKey) {
|
60617
|
+
return;
|
59919
60618
|
}
|
59920
60619
|
|
59921
|
-
|
59922
|
-
|
60620
|
+
// Transform dot notation to bracket notation
|
60621
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
59923
60622
|
|
59924
|
-
|
59925
|
-
|
59926
|
-
|
59927
|
-
|
59928
|
-
|
59929
|
-
|
60623
|
+
// The regex chunks
|
60624
|
+
|
60625
|
+
var brackets = /(\[[^[\]]*])/;
|
60626
|
+
var child = /(\[[^[\]]*])/g;
|
60627
|
+
|
60628
|
+
// Get the parent
|
60629
|
+
|
60630
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
60631
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
60632
|
+
|
60633
|
+
// Stash the parent if it exists
|
60634
|
+
|
60635
|
+
var keys = [];
|
60636
|
+
if (parent) {
|
60637
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
60638
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
60639
|
+
if (!options.allowPrototypes) {
|
60640
|
+
return;
|
60641
|
+
}
|
60642
|
+
}
|
60643
|
+
|
60644
|
+
keys.push(parent);
|
59930
60645
|
}
|
59931
|
-
}
|
59932
60646
|
|
59933
|
-
|
60647
|
+
// Loop through children appending to the array until we hit depth
|
60648
|
+
|
60649
|
+
var i = 0;
|
60650
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
60651
|
+
i += 1;
|
60652
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
60653
|
+
if (!options.allowPrototypes) {
|
60654
|
+
return;
|
60655
|
+
}
|
60656
|
+
}
|
60657
|
+
keys.push(segment[1]);
|
60658
|
+
}
|
60659
|
+
|
60660
|
+
// If there's a remainder, just add whatever is left
|
60661
|
+
|
60662
|
+
if (segment) {
|
60663
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
60664
|
+
}
|
60665
|
+
|
60666
|
+
return parseObject(keys, val, options, valuesParsed);
|
60667
|
+
};
|
60668
|
+
|
60669
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
60670
|
+
if (!opts) {
|
60671
|
+
return defaults;
|
60672
|
+
}
|
60673
|
+
|
60674
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
60675
|
+
throw new TypeError('Decoder has to be a function.');
|
60676
|
+
}
|
60677
|
+
|
60678
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
60679
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
60680
|
+
}
|
60681
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
60682
|
+
|
60683
|
+
return {
|
60684
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
60685
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
60686
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
60687
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
60688
|
+
charset: charset,
|
60689
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
60690
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
60691
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
60692
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
60693
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
60694
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
60695
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
60696
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
60697
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
60698
|
+
parseArrays: opts.parseArrays !== false,
|
60699
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
60700
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
60701
|
+
};
|
60702
|
+
};
|
60703
|
+
|
60704
|
+
module.exports = function (str, opts) {
|
60705
|
+
var options = normalizeParseOptions(opts);
|
60706
|
+
|
60707
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
60708
|
+
return options.plainObjects ? Object.create(null) : {};
|
60709
|
+
}
|
60710
|
+
|
60711
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
60712
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
60713
|
+
|
60714
|
+
// Iterate over the keys and setup the new object
|
60715
|
+
|
60716
|
+
var keys = Object.keys(tempObj);
|
60717
|
+
for (var i = 0; i < keys.length; ++i) {
|
60718
|
+
var key = keys[i];
|
60719
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
60720
|
+
obj = utils.merge(obj, newObj, options);
|
60721
|
+
}
|
60722
|
+
|
60723
|
+
if (options.allowSparse === true) {
|
60724
|
+
return obj;
|
60725
|
+
}
|
60726
|
+
|
60727
|
+
return utils.compact(obj);
|
59934
60728
|
};
|
59935
60729
|
|
59936
60730
|
|
59937
60731
|
/***/ }),
|
59938
60732
|
|
59939
|
-
/***/ "../../node_modules/
|
59940
|
-
|
59941
|
-
!*** ../../node_modules/
|
59942
|
-
|
59943
|
-
/***/ ((module) => {
|
60733
|
+
/***/ "../../node_modules/qs/lib/stringify.js":
|
60734
|
+
/*!**********************************************!*\
|
60735
|
+
!*** ../../node_modules/qs/lib/stringify.js ***!
|
60736
|
+
\**********************************************/
|
60737
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
59944
60738
|
|
59945
60739
|
"use strict";
|
59946
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
59947
|
-
//
|
59948
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
59949
|
-
// copy of this software and associated documentation files (the
|
59950
|
-
// "Software"), to deal in the Software without restriction, including
|
59951
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
59952
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
59953
|
-
// persons to whom the Software is furnished to do so, subject to the
|
59954
|
-
// following conditions:
|
59955
|
-
//
|
59956
|
-
// The above copyright notice and this permission notice shall be included
|
59957
|
-
// in all copies or substantial portions of the Software.
|
59958
|
-
//
|
59959
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
59960
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
59961
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
59962
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
59963
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
59964
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
59965
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
59966
60740
|
|
59967
60741
|
|
60742
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../../node_modules/side-channel/index.js");
|
60743
|
+
var utils = __webpack_require__(/*! ./utils */ "../../node_modules/qs/lib/utils.js");
|
60744
|
+
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
60745
|
+
var has = Object.prototype.hasOwnProperty;
|
59968
60746
|
|
59969
|
-
var
|
59970
|
-
|
59971
|
-
|
59972
|
-
|
60747
|
+
var arrayPrefixGenerators = {
|
60748
|
+
brackets: function brackets(prefix) {
|
60749
|
+
return prefix + '[]';
|
60750
|
+
},
|
60751
|
+
comma: 'comma',
|
60752
|
+
indices: function indices(prefix, key) {
|
60753
|
+
return prefix + '[' + key + ']';
|
60754
|
+
},
|
60755
|
+
repeat: function repeat(prefix) {
|
60756
|
+
return prefix;
|
60757
|
+
}
|
60758
|
+
};
|
60759
|
+
|
60760
|
+
var isArray = Array.isArray;
|
60761
|
+
var split = String.prototype.split;
|
60762
|
+
var push = Array.prototype.push;
|
60763
|
+
var pushToArray = function (arr, valueOrArray) {
|
60764
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
60765
|
+
};
|
59973
60766
|
|
59974
|
-
|
59975
|
-
|
60767
|
+
var toISO = Date.prototype.toISOString;
|
60768
|
+
|
60769
|
+
var defaultFormat = formats['default'];
|
60770
|
+
var defaults = {
|
60771
|
+
addQueryPrefix: false,
|
60772
|
+
allowDots: false,
|
60773
|
+
charset: 'utf-8',
|
60774
|
+
charsetSentinel: false,
|
60775
|
+
delimiter: '&',
|
60776
|
+
encode: true,
|
60777
|
+
encoder: utils.encode,
|
60778
|
+
encodeValuesOnly: false,
|
60779
|
+
format: defaultFormat,
|
60780
|
+
formatter: formats.formatters[defaultFormat],
|
60781
|
+
// deprecated
|
60782
|
+
indices: false,
|
60783
|
+
serializeDate: function serializeDate(date) {
|
60784
|
+
return toISO.call(date);
|
60785
|
+
},
|
60786
|
+
skipNulls: false,
|
60787
|
+
strictNullHandling: false
|
60788
|
+
};
|
59976
60789
|
|
59977
|
-
|
59978
|
-
|
60790
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
60791
|
+
return typeof v === 'string'
|
60792
|
+
|| typeof v === 'number'
|
60793
|
+
|| typeof v === 'boolean'
|
60794
|
+
|| typeof v === 'symbol'
|
60795
|
+
|| typeof v === 'bigint';
|
60796
|
+
};
|
59979
60797
|
|
59980
|
-
|
59981
|
-
|
59982
|
-
|
60798
|
+
var sentinel = {};
|
60799
|
+
|
60800
|
+
var stringify = function stringify(
|
60801
|
+
object,
|
60802
|
+
prefix,
|
60803
|
+
generateArrayPrefix,
|
60804
|
+
commaRoundTrip,
|
60805
|
+
strictNullHandling,
|
60806
|
+
skipNulls,
|
60807
|
+
encoder,
|
60808
|
+
filter,
|
60809
|
+
sort,
|
60810
|
+
allowDots,
|
60811
|
+
serializeDate,
|
60812
|
+
format,
|
60813
|
+
formatter,
|
60814
|
+
encodeValuesOnly,
|
60815
|
+
charset,
|
60816
|
+
sideChannel
|
60817
|
+
) {
|
60818
|
+
var obj = object;
|
60819
|
+
|
60820
|
+
var tmpSc = sideChannel;
|
60821
|
+
var step = 0;
|
60822
|
+
var findFlag = false;
|
60823
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
60824
|
+
// Where object last appeared in the ref tree
|
60825
|
+
var pos = tmpSc.get(object);
|
60826
|
+
step += 1;
|
60827
|
+
if (typeof pos !== 'undefined') {
|
60828
|
+
if (pos === step) {
|
60829
|
+
throw new RangeError('Cyclic object value');
|
60830
|
+
} else {
|
60831
|
+
findFlag = true; // Break while
|
60832
|
+
}
|
60833
|
+
}
|
60834
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
60835
|
+
step = 0;
|
60836
|
+
}
|
60837
|
+
}
|
60838
|
+
|
60839
|
+
if (typeof filter === 'function') {
|
60840
|
+
obj = filter(prefix, obj);
|
60841
|
+
} else if (obj instanceof Date) {
|
60842
|
+
obj = serializeDate(obj);
|
60843
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
60844
|
+
obj = utils.maybeMap(obj, function (value) {
|
60845
|
+
if (value instanceof Date) {
|
60846
|
+
return serializeDate(value);
|
60847
|
+
}
|
60848
|
+
return value;
|
60849
|
+
});
|
60850
|
+
}
|
60851
|
+
|
60852
|
+
if (obj === null) {
|
60853
|
+
if (strictNullHandling) {
|
60854
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
60855
|
+
}
|
60856
|
+
|
60857
|
+
obj = '';
|
60858
|
+
}
|
60859
|
+
|
60860
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
60861
|
+
if (encoder) {
|
60862
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
60863
|
+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
60864
|
+
var valuesArray = split.call(String(obj), ',');
|
60865
|
+
var valuesJoined = '';
|
60866
|
+
for (var i = 0; i < valuesArray.length; ++i) {
|
60867
|
+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
|
60868
|
+
}
|
60869
|
+
return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
60870
|
+
}
|
60871
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
60872
|
+
}
|
60873
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
60874
|
+
}
|
60875
|
+
|
60876
|
+
var values = [];
|
60877
|
+
|
60878
|
+
if (typeof obj === 'undefined') {
|
60879
|
+
return values;
|
60880
|
+
}
|
60881
|
+
|
60882
|
+
var objKeys;
|
60883
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
60884
|
+
// we need to join elements in
|
60885
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
60886
|
+
} else if (isArray(filter)) {
|
60887
|
+
objKeys = filter;
|
60888
|
+
} else {
|
60889
|
+
var keys = Object.keys(obj);
|
60890
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
60891
|
+
}
|
60892
|
+
|
60893
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
60894
|
+
|
60895
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
60896
|
+
var key = objKeys[j];
|
60897
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
60898
|
+
|
60899
|
+
if (skipNulls && value === null) {
|
60900
|
+
continue;
|
60901
|
+
}
|
60902
|
+
|
60903
|
+
var keyPrefix = isArray(obj)
|
60904
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
60905
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
60906
|
+
|
60907
|
+
sideChannel.set(object, step);
|
60908
|
+
var valueSideChannel = getSideChannel();
|
60909
|
+
valueSideChannel.set(sentinel, sideChannel);
|
60910
|
+
pushToArray(values, stringify(
|
60911
|
+
value,
|
60912
|
+
keyPrefix,
|
60913
|
+
generateArrayPrefix,
|
60914
|
+
commaRoundTrip,
|
60915
|
+
strictNullHandling,
|
60916
|
+
skipNulls,
|
60917
|
+
encoder,
|
60918
|
+
filter,
|
60919
|
+
sort,
|
60920
|
+
allowDots,
|
60921
|
+
serializeDate,
|
60922
|
+
format,
|
60923
|
+
formatter,
|
60924
|
+
encodeValuesOnly,
|
60925
|
+
charset,
|
60926
|
+
valueSideChannel
|
60927
|
+
));
|
60928
|
+
}
|
60929
|
+
|
60930
|
+
return values;
|
59983
60931
|
};
|
59984
60932
|
|
59985
|
-
|
59986
|
-
|
59987
|
-
|
59988
|
-
|
59989
|
-
obj = undefined;
|
59990
|
-
}
|
60933
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
60934
|
+
if (!opts) {
|
60935
|
+
return defaults;
|
60936
|
+
}
|
59991
60937
|
|
59992
|
-
|
59993
|
-
|
59994
|
-
|
59995
|
-
if (Array.isArray(obj[k])) {
|
59996
|
-
return obj[k].map(function(v) {
|
59997
|
-
return ks + encodeURIComponent(stringifyPrimitive(v));
|
59998
|
-
}).join(sep);
|
59999
|
-
} else {
|
60000
|
-
return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
|
60001
|
-
}
|
60002
|
-
}).join(sep);
|
60938
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
60939
|
+
throw new TypeError('Encoder has to be a function.');
|
60940
|
+
}
|
60003
60941
|
|
60004
|
-
|
60942
|
+
var charset = opts.charset || defaults.charset;
|
60943
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
60944
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
60945
|
+
}
|
60946
|
+
|
60947
|
+
var format = formats['default'];
|
60948
|
+
if (typeof opts.format !== 'undefined') {
|
60949
|
+
if (!has.call(formats.formatters, opts.format)) {
|
60950
|
+
throw new TypeError('Unknown format option provided.');
|
60951
|
+
}
|
60952
|
+
format = opts.format;
|
60953
|
+
}
|
60954
|
+
var formatter = formats.formatters[format];
|
60005
60955
|
|
60006
|
-
|
60007
|
-
|
60008
|
-
|
60956
|
+
var filter = defaults.filter;
|
60957
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
60958
|
+
filter = opts.filter;
|
60959
|
+
}
|
60960
|
+
|
60961
|
+
return {
|
60962
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
60963
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
60964
|
+
charset: charset,
|
60965
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
60966
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
60967
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
60968
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
60969
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
60970
|
+
filter: filter,
|
60971
|
+
format: format,
|
60972
|
+
formatter: formatter,
|
60973
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
60974
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
60975
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
60976
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
60977
|
+
};
|
60978
|
+
};
|
60979
|
+
|
60980
|
+
module.exports = function (object, opts) {
|
60981
|
+
var obj = object;
|
60982
|
+
var options = normalizeStringifyOptions(opts);
|
60983
|
+
|
60984
|
+
var objKeys;
|
60985
|
+
var filter;
|
60986
|
+
|
60987
|
+
if (typeof options.filter === 'function') {
|
60988
|
+
filter = options.filter;
|
60989
|
+
obj = filter('', obj);
|
60990
|
+
} else if (isArray(options.filter)) {
|
60991
|
+
filter = options.filter;
|
60992
|
+
objKeys = filter;
|
60993
|
+
}
|
60994
|
+
|
60995
|
+
var keys = [];
|
60996
|
+
|
60997
|
+
if (typeof obj !== 'object' || obj === null) {
|
60998
|
+
return '';
|
60999
|
+
}
|
61000
|
+
|
61001
|
+
var arrayFormat;
|
61002
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
61003
|
+
arrayFormat = opts.arrayFormat;
|
61004
|
+
} else if (opts && 'indices' in opts) {
|
61005
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
61006
|
+
} else {
|
61007
|
+
arrayFormat = 'indices';
|
61008
|
+
}
|
61009
|
+
|
61010
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
61011
|
+
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
61012
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
61013
|
+
}
|
61014
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
61015
|
+
|
61016
|
+
if (!objKeys) {
|
61017
|
+
objKeys = Object.keys(obj);
|
61018
|
+
}
|
61019
|
+
|
61020
|
+
if (options.sort) {
|
61021
|
+
objKeys.sort(options.sort);
|
61022
|
+
}
|
61023
|
+
|
61024
|
+
var sideChannel = getSideChannel();
|
61025
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
61026
|
+
var key = objKeys[i];
|
61027
|
+
|
61028
|
+
if (options.skipNulls && obj[key] === null) {
|
61029
|
+
continue;
|
61030
|
+
}
|
61031
|
+
pushToArray(keys, stringify(
|
61032
|
+
obj[key],
|
61033
|
+
key,
|
61034
|
+
generateArrayPrefix,
|
61035
|
+
commaRoundTrip,
|
61036
|
+
options.strictNullHandling,
|
61037
|
+
options.skipNulls,
|
61038
|
+
options.encode ? options.encoder : null,
|
61039
|
+
options.filter,
|
61040
|
+
options.sort,
|
61041
|
+
options.allowDots,
|
61042
|
+
options.serializeDate,
|
61043
|
+
options.format,
|
61044
|
+
options.formatter,
|
61045
|
+
options.encodeValuesOnly,
|
61046
|
+
options.charset,
|
61047
|
+
sideChannel
|
61048
|
+
));
|
61049
|
+
}
|
61050
|
+
|
61051
|
+
var joined = keys.join(options.delimiter);
|
61052
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
61053
|
+
|
61054
|
+
if (options.charsetSentinel) {
|
61055
|
+
if (options.charset === 'iso-8859-1') {
|
61056
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
61057
|
+
prefix += 'utf8=%26%2310003%3B&';
|
61058
|
+
} else {
|
61059
|
+
// encodeURIComponent('✓')
|
61060
|
+
prefix += 'utf8=%E2%9C%93&';
|
61061
|
+
}
|
61062
|
+
}
|
61063
|
+
|
61064
|
+
return joined.length > 0 ? prefix + joined : '';
|
60009
61065
|
};
|
60010
61066
|
|
60011
61067
|
|
60012
61068
|
/***/ }),
|
60013
61069
|
|
60014
|
-
/***/ "../../node_modules/
|
60015
|
-
|
60016
|
-
!*** ../../node_modules/
|
60017
|
-
|
60018
|
-
/***/ ((
|
61070
|
+
/***/ "../../node_modules/qs/lib/utils.js":
|
61071
|
+
/*!******************************************!*\
|
61072
|
+
!*** ../../node_modules/qs/lib/utils.js ***!
|
61073
|
+
\******************************************/
|
61074
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
60019
61075
|
|
60020
61076
|
"use strict";
|
60021
61077
|
|
60022
61078
|
|
60023
|
-
|
60024
|
-
|
61079
|
+
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
61080
|
+
|
61081
|
+
var has = Object.prototype.hasOwnProperty;
|
61082
|
+
var isArray = Array.isArray;
|
61083
|
+
|
61084
|
+
var hexTable = (function () {
|
61085
|
+
var array = [];
|
61086
|
+
for (var i = 0; i < 256; ++i) {
|
61087
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
61088
|
+
}
|
61089
|
+
|
61090
|
+
return array;
|
61091
|
+
}());
|
61092
|
+
|
61093
|
+
var compactQueue = function compactQueue(queue) {
|
61094
|
+
while (queue.length > 1) {
|
61095
|
+
var item = queue.pop();
|
61096
|
+
var obj = item.obj[item.prop];
|
61097
|
+
|
61098
|
+
if (isArray(obj)) {
|
61099
|
+
var compacted = [];
|
61100
|
+
|
61101
|
+
for (var j = 0; j < obj.length; ++j) {
|
61102
|
+
if (typeof obj[j] !== 'undefined') {
|
61103
|
+
compacted.push(obj[j]);
|
61104
|
+
}
|
61105
|
+
}
|
61106
|
+
|
61107
|
+
item.obj[item.prop] = compacted;
|
61108
|
+
}
|
61109
|
+
}
|
61110
|
+
};
|
61111
|
+
|
61112
|
+
var arrayToObject = function arrayToObject(source, options) {
|
61113
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
61114
|
+
for (var i = 0; i < source.length; ++i) {
|
61115
|
+
if (typeof source[i] !== 'undefined') {
|
61116
|
+
obj[i] = source[i];
|
61117
|
+
}
|
61118
|
+
}
|
61119
|
+
|
61120
|
+
return obj;
|
61121
|
+
};
|
61122
|
+
|
61123
|
+
var merge = function merge(target, source, options) {
|
61124
|
+
/* eslint no-param-reassign: 0 */
|
61125
|
+
if (!source) {
|
61126
|
+
return target;
|
61127
|
+
}
|
61128
|
+
|
61129
|
+
if (typeof source !== 'object') {
|
61130
|
+
if (isArray(target)) {
|
61131
|
+
target.push(source);
|
61132
|
+
} else if (target && typeof target === 'object') {
|
61133
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
61134
|
+
target[source] = true;
|
61135
|
+
}
|
61136
|
+
} else {
|
61137
|
+
return [target, source];
|
61138
|
+
}
|
61139
|
+
|
61140
|
+
return target;
|
61141
|
+
}
|
61142
|
+
|
61143
|
+
if (!target || typeof target !== 'object') {
|
61144
|
+
return [target].concat(source);
|
61145
|
+
}
|
61146
|
+
|
61147
|
+
var mergeTarget = target;
|
61148
|
+
if (isArray(target) && !isArray(source)) {
|
61149
|
+
mergeTarget = arrayToObject(target, options);
|
61150
|
+
}
|
61151
|
+
|
61152
|
+
if (isArray(target) && isArray(source)) {
|
61153
|
+
source.forEach(function (item, i) {
|
61154
|
+
if (has.call(target, i)) {
|
61155
|
+
var targetItem = target[i];
|
61156
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
61157
|
+
target[i] = merge(targetItem, item, options);
|
61158
|
+
} else {
|
61159
|
+
target.push(item);
|
61160
|
+
}
|
61161
|
+
} else {
|
61162
|
+
target[i] = item;
|
61163
|
+
}
|
61164
|
+
});
|
61165
|
+
return target;
|
61166
|
+
}
|
61167
|
+
|
61168
|
+
return Object.keys(source).reduce(function (acc, key) {
|
61169
|
+
var value = source[key];
|
61170
|
+
|
61171
|
+
if (has.call(acc, key)) {
|
61172
|
+
acc[key] = merge(acc[key], value, options);
|
61173
|
+
} else {
|
61174
|
+
acc[key] = value;
|
61175
|
+
}
|
61176
|
+
return acc;
|
61177
|
+
}, mergeTarget);
|
61178
|
+
};
|
61179
|
+
|
61180
|
+
var assign = function assignSingleSource(target, source) {
|
61181
|
+
return Object.keys(source).reduce(function (acc, key) {
|
61182
|
+
acc[key] = source[key];
|
61183
|
+
return acc;
|
61184
|
+
}, target);
|
61185
|
+
};
|
61186
|
+
|
61187
|
+
var decode = function (str, decoder, charset) {
|
61188
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
61189
|
+
if (charset === 'iso-8859-1') {
|
61190
|
+
// unescape never throws, no try...catch needed:
|
61191
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
61192
|
+
}
|
61193
|
+
// utf-8
|
61194
|
+
try {
|
61195
|
+
return decodeURIComponent(strWithoutPlus);
|
61196
|
+
} catch (e) {
|
61197
|
+
return strWithoutPlus;
|
61198
|
+
}
|
61199
|
+
};
|
61200
|
+
|
61201
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
61202
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
61203
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
61204
|
+
if (str.length === 0) {
|
61205
|
+
return str;
|
61206
|
+
}
|
61207
|
+
|
61208
|
+
var string = str;
|
61209
|
+
if (typeof str === 'symbol') {
|
61210
|
+
string = Symbol.prototype.toString.call(str);
|
61211
|
+
} else if (typeof str !== 'string') {
|
61212
|
+
string = String(str);
|
61213
|
+
}
|
61214
|
+
|
61215
|
+
if (charset === 'iso-8859-1') {
|
61216
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
61217
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
61218
|
+
});
|
61219
|
+
}
|
61220
|
+
|
61221
|
+
var out = '';
|
61222
|
+
for (var i = 0; i < string.length; ++i) {
|
61223
|
+
var c = string.charCodeAt(i);
|
61224
|
+
|
61225
|
+
if (
|
61226
|
+
c === 0x2D // -
|
61227
|
+
|| c === 0x2E // .
|
61228
|
+
|| c === 0x5F // _
|
61229
|
+
|| c === 0x7E // ~
|
61230
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
61231
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
61232
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
61233
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
61234
|
+
) {
|
61235
|
+
out += string.charAt(i);
|
61236
|
+
continue;
|
61237
|
+
}
|
61238
|
+
|
61239
|
+
if (c < 0x80) {
|
61240
|
+
out = out + hexTable[c];
|
61241
|
+
continue;
|
61242
|
+
}
|
61243
|
+
|
61244
|
+
if (c < 0x800) {
|
61245
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
61246
|
+
continue;
|
61247
|
+
}
|
61248
|
+
|
61249
|
+
if (c < 0xD800 || c >= 0xE000) {
|
61250
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
61251
|
+
continue;
|
61252
|
+
}
|
61253
|
+
|
61254
|
+
i += 1;
|
61255
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
61256
|
+
/* eslint operator-linebreak: [2, "before"] */
|
61257
|
+
out += hexTable[0xF0 | (c >> 18)]
|
61258
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
61259
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
61260
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
61261
|
+
}
|
61262
|
+
|
61263
|
+
return out;
|
61264
|
+
};
|
61265
|
+
|
61266
|
+
var compact = function compact(value) {
|
61267
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
61268
|
+
var refs = [];
|
61269
|
+
|
61270
|
+
for (var i = 0; i < queue.length; ++i) {
|
61271
|
+
var item = queue[i];
|
61272
|
+
var obj = item.obj[item.prop];
|
61273
|
+
|
61274
|
+
var keys = Object.keys(obj);
|
61275
|
+
for (var j = 0; j < keys.length; ++j) {
|
61276
|
+
var key = keys[j];
|
61277
|
+
var val = obj[key];
|
61278
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
61279
|
+
queue.push({ obj: obj, prop: key });
|
61280
|
+
refs.push(val);
|
61281
|
+
}
|
61282
|
+
}
|
61283
|
+
}
|
61284
|
+
|
61285
|
+
compactQueue(queue);
|
61286
|
+
|
61287
|
+
return value;
|
61288
|
+
};
|
61289
|
+
|
61290
|
+
var isRegExp = function isRegExp(obj) {
|
61291
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
61292
|
+
};
|
61293
|
+
|
61294
|
+
var isBuffer = function isBuffer(obj) {
|
61295
|
+
if (!obj || typeof obj !== 'object') {
|
61296
|
+
return false;
|
61297
|
+
}
|
61298
|
+
|
61299
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
61300
|
+
};
|
61301
|
+
|
61302
|
+
var combine = function combine(a, b) {
|
61303
|
+
return [].concat(a, b);
|
61304
|
+
};
|
61305
|
+
|
61306
|
+
var maybeMap = function maybeMap(val, fn) {
|
61307
|
+
if (isArray(val)) {
|
61308
|
+
var mapped = [];
|
61309
|
+
for (var i = 0; i < val.length; i += 1) {
|
61310
|
+
mapped.push(fn(val[i]));
|
61311
|
+
}
|
61312
|
+
return mapped;
|
61313
|
+
}
|
61314
|
+
return fn(val);
|
61315
|
+
};
|
61316
|
+
|
61317
|
+
module.exports = {
|
61318
|
+
arrayToObject: arrayToObject,
|
61319
|
+
assign: assign,
|
61320
|
+
combine: combine,
|
61321
|
+
compact: compact,
|
61322
|
+
decode: decode,
|
61323
|
+
encode: encode,
|
61324
|
+
isBuffer: isBuffer,
|
61325
|
+
isRegExp: isRegExp,
|
61326
|
+
maybeMap: maybeMap,
|
61327
|
+
merge: merge
|
61328
|
+
};
|
60025
61329
|
|
60026
61330
|
|
60027
61331
|
/***/ }),
|
@@ -66713,9 +68017,12 @@ class SerializedType {
|
|
66713
68017
|
/**
|
66714
68018
|
* Return the JSON representation of a SerializedType
|
66715
68019
|
*
|
68020
|
+
* @param _definitions rippled definitions used to parse the values of transaction types and such.
|
68021
|
+
* Unused in default, but used in STObject, STArray
|
68022
|
+
* Can be customized for sidechains and amendments.
|
66716
68023
|
* @returns any type, if not overloaded returns hexString representation of bytes
|
66717
68024
|
*/
|
66718
|
-
toJSON() {
|
68025
|
+
toJSON(_definitions) {
|
66719
68026
|
return this.toHex();
|
66720
68027
|
}
|
66721
68028
|
/**
|
@@ -66770,6 +68077,7 @@ exports.Comparable = Comparable;
|
|
66770
68077
|
|
66771
68078
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
66772
68079
|
exports.STArray = void 0;
|
68080
|
+
const enums_1 = __webpack_require__(/*! ../enums */ "../../node_modules/ripple-binary-codec/dist/enums/index.js");
|
66773
68081
|
const serialized_type_1 = __webpack_require__(/*! ./serialized-type */ "../../node_modules/ripple-binary-codec/dist/types/serialized-type.js");
|
66774
68082
|
const st_object_1 = __webpack_require__(/*! ./st-object */ "../../node_modules/ripple-binary-codec/dist/types/st-object.js");
|
66775
68083
|
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
@@ -66809,16 +68117,17 @@ class STArray extends serialized_type_1.SerializedType {
|
|
66809
68117
|
* Construct an STArray from an Array of JSON Objects
|
66810
68118
|
*
|
66811
68119
|
* @param value STArray or Array of Objects to parse into an STArray
|
68120
|
+
* @param definitions optional, types and values to use to encode/decode a transaction
|
66812
68121
|
* @returns An STArray object
|
66813
68122
|
*/
|
66814
|
-
static from(value) {
|
68123
|
+
static from(value, definitions = enums_1.DEFAULT_DEFINITIONS) {
|
66815
68124
|
if (value instanceof STArray) {
|
66816
68125
|
return value;
|
66817
68126
|
}
|
66818
68127
|
if (isObjects(value)) {
|
66819
68128
|
const bytes = [];
|
66820
68129
|
value.forEach((obj) => {
|
66821
|
-
bytes.push(st_object_1.STObject.from(obj).toBytes());
|
68130
|
+
bytes.push(st_object_1.STObject.from(obj, undefined, definitions).toBytes());
|
66822
68131
|
});
|
66823
68132
|
bytes.push(ARRAY_END_MARKER);
|
66824
68133
|
return new STArray(buffer_1.Buffer.concat(bytes));
|
@@ -66828,18 +68137,19 @@ class STArray extends serialized_type_1.SerializedType {
|
|
66828
68137
|
/**
|
66829
68138
|
* Return the JSON representation of this.bytes
|
66830
68139
|
*
|
68140
|
+
* @param definitions optional, types and values to use to encode/decode a transaction
|
66831
68141
|
* @returns An Array of JSON objects
|
66832
68142
|
*/
|
66833
|
-
toJSON() {
|
68143
|
+
toJSON(definitions = enums_1.DEFAULT_DEFINITIONS) {
|
66834
68144
|
const result = [];
|
66835
|
-
const arrayParser = new binary_parser_1.BinaryParser(this.toString());
|
68145
|
+
const arrayParser = new binary_parser_1.BinaryParser(this.toString(), definitions);
|
66836
68146
|
while (!arrayParser.end()) {
|
66837
68147
|
const field = arrayParser.readField();
|
66838
68148
|
if (field.name === ARRAY_END_MARKER_NAME) {
|
66839
68149
|
break;
|
66840
68150
|
}
|
66841
68151
|
const outer = {};
|
66842
|
-
outer[field.name] = st_object_1.STObject.fromParser(arrayParser).toJSON();
|
68152
|
+
outer[field.name] = st_object_1.STObject.fromParser(arrayParser).toJSON(definitions);
|
66843
68153
|
result.push(outer);
|
66844
68154
|
}
|
66845
68155
|
return result;
|
@@ -66866,6 +68176,7 @@ const ripple_address_codec_1 = __webpack_require__(/*! ripple-address-codec */ "
|
|
66866
68176
|
const binary_parser_1 = __webpack_require__(/*! ../serdes/binary-parser */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-parser.js");
|
66867
68177
|
const binary_serializer_1 = __webpack_require__(/*! ../serdes/binary-serializer */ "../../node_modules/ripple-binary-codec/dist/serdes/binary-serializer.js");
|
66868
68178
|
const buffer_1 = __webpack_require__(/*! buffer/ */ "../../node_modules/buffer/index.js");
|
68179
|
+
const st_array_1 = __webpack_require__(/*! ./st-array */ "../../node_modules/ripple-binary-codec/dist/types/st-array.js");
|
66869
68180
|
const OBJECT_END_MARKER_BYTE = buffer_1.Buffer.from([0xe1]);
|
66870
68181
|
const OBJECT_END_MARKER = 'ObjectEndMarker';
|
66871
68182
|
const ST_OBJECT = 'STObject';
|
@@ -66966,7 +68277,11 @@ class STObject extends serialized_type_1.SerializedType {
|
|
66966
68277
|
sorted = sorted.filter(filter);
|
66967
68278
|
}
|
66968
68279
|
sorted.forEach((field) => {
|
66969
|
-
const associatedValue = field.
|
68280
|
+
const associatedValue = field.type.name === ST_OBJECT
|
68281
|
+
? this.from(xAddressDecoded[field.name], undefined, definitions)
|
68282
|
+
: field.type.name === 'STArray'
|
68283
|
+
? st_array_1.STArray.from(xAddressDecoded[field.name], definitions)
|
68284
|
+
: field.associatedType.from(xAddressDecoded[field.name]);
|
66970
68285
|
if (associatedValue == undefined) {
|
66971
68286
|
throw new TypeError(`Unable to interpret "${field.name}: ${xAddressDecoded[field.name]}".`);
|
66972
68287
|
}
|
@@ -66999,7 +68314,9 @@ class STObject extends serialized_type_1.SerializedType {
|
|
66999
68314
|
if (field.name === OBJECT_END_MARKER) {
|
67000
68315
|
break;
|
67001
68316
|
}
|
67002
|
-
accumulator[field.name] = objectParser
|
68317
|
+
accumulator[field.name] = objectParser
|
68318
|
+
.readFieldValue(field)
|
68319
|
+
.toJSON(definitions);
|
67003
68320
|
}
|
67004
68321
|
return accumulator;
|
67005
68322
|
}
|
@@ -68826,6 +70143,141 @@ Sha512.prototype._hash = function () {
|
|
68826
70143
|
module.exports = Sha512
|
68827
70144
|
|
68828
70145
|
|
70146
|
+
/***/ }),
|
70147
|
+
|
70148
|
+
/***/ "../../node_modules/side-channel/index.js":
|
70149
|
+
/*!************************************************!*\
|
70150
|
+
!*** ../../node_modules/side-channel/index.js ***!
|
70151
|
+
\************************************************/
|
70152
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
70153
|
+
|
70154
|
+
"use strict";
|
70155
|
+
|
70156
|
+
|
70157
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
70158
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
70159
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
70160
|
+
|
70161
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
70162
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
70163
|
+
var $Map = GetIntrinsic('%Map%', true);
|
70164
|
+
|
70165
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
70166
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
70167
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
70168
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
70169
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
70170
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
70171
|
+
|
70172
|
+
/*
|
70173
|
+
* This function traverses the list returning the node corresponding to the
|
70174
|
+
* given key.
|
70175
|
+
*
|
70176
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
70177
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
70178
|
+
* used nodes can be accessed relatively quickly.
|
70179
|
+
*/
|
70180
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
70181
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
70182
|
+
if (curr.key === key) {
|
70183
|
+
prev.next = curr.next;
|
70184
|
+
curr.next = list.next;
|
70185
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
70186
|
+
return curr;
|
70187
|
+
}
|
70188
|
+
}
|
70189
|
+
};
|
70190
|
+
|
70191
|
+
var listGet = function (objects, key) {
|
70192
|
+
var node = listGetNode(objects, key);
|
70193
|
+
return node && node.value;
|
70194
|
+
};
|
70195
|
+
var listSet = function (objects, key, value) {
|
70196
|
+
var node = listGetNode(objects, key);
|
70197
|
+
if (node) {
|
70198
|
+
node.value = value;
|
70199
|
+
} else {
|
70200
|
+
// Prepend the new node to the beginning of the list
|
70201
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
70202
|
+
key: key,
|
70203
|
+
next: objects.next,
|
70204
|
+
value: value
|
70205
|
+
};
|
70206
|
+
}
|
70207
|
+
};
|
70208
|
+
var listHas = function (objects, key) {
|
70209
|
+
return !!listGetNode(objects, key);
|
70210
|
+
};
|
70211
|
+
|
70212
|
+
module.exports = function getSideChannel() {
|
70213
|
+
var $wm;
|
70214
|
+
var $m;
|
70215
|
+
var $o;
|
70216
|
+
var channel = {
|
70217
|
+
assert: function (key) {
|
70218
|
+
if (!channel.has(key)) {
|
70219
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
70220
|
+
}
|
70221
|
+
},
|
70222
|
+
get: function (key) { // eslint-disable-line consistent-return
|
70223
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
70224
|
+
if ($wm) {
|
70225
|
+
return $weakMapGet($wm, key);
|
70226
|
+
}
|
70227
|
+
} else if ($Map) {
|
70228
|
+
if ($m) {
|
70229
|
+
return $mapGet($m, key);
|
70230
|
+
}
|
70231
|
+
} else {
|
70232
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
70233
|
+
return listGet($o, key);
|
70234
|
+
}
|
70235
|
+
}
|
70236
|
+
},
|
70237
|
+
has: function (key) {
|
70238
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
70239
|
+
if ($wm) {
|
70240
|
+
return $weakMapHas($wm, key);
|
70241
|
+
}
|
70242
|
+
} else if ($Map) {
|
70243
|
+
if ($m) {
|
70244
|
+
return $mapHas($m, key);
|
70245
|
+
}
|
70246
|
+
} else {
|
70247
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
70248
|
+
return listHas($o, key);
|
70249
|
+
}
|
70250
|
+
}
|
70251
|
+
return false;
|
70252
|
+
},
|
70253
|
+
set: function (key, value) {
|
70254
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
70255
|
+
if (!$wm) {
|
70256
|
+
$wm = new $WeakMap();
|
70257
|
+
}
|
70258
|
+
$weakMapSet($wm, key, value);
|
70259
|
+
} else if ($Map) {
|
70260
|
+
if (!$m) {
|
70261
|
+
$m = new $Map();
|
70262
|
+
}
|
70263
|
+
$mapSet($m, key, value);
|
70264
|
+
} else {
|
70265
|
+
if (!$o) {
|
70266
|
+
/*
|
70267
|
+
* Initialize the linked list as an empty node, so that we don't have
|
70268
|
+
* to special-case handling of the first node: we can always refer to
|
70269
|
+
* it as (previous node).next, instead of something like (list).head
|
70270
|
+
*/
|
70271
|
+
$o = { key: {}, next: null };
|
70272
|
+
}
|
70273
|
+
listSet($o, key, value);
|
70274
|
+
}
|
70275
|
+
}
|
70276
|
+
};
|
70277
|
+
return channel;
|
70278
|
+
};
|
70279
|
+
|
70280
|
+
|
68829
70281
|
/***/ }),
|
68830
70282
|
|
68831
70283
|
/***/ "../../node_modules/stream-browserify/index.js":
|
@@ -70919,7 +72371,7 @@ module.exports = types
|
|
70919
72371
|
/***/ (function(module, exports, __webpack_require__) {
|
70920
72372
|
|
70921
72373
|
/* module decorator */ module = __webpack_require__.nmd(module);
|
70922
|
-
var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.
|
72374
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */
|
70923
72375
|
;(function(root) {
|
70924
72376
|
|
70925
72377
|
/** Detect free variables */
|
@@ -70985,7 +72437,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
70985
72437
|
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
70986
72438
|
*/
|
70987
72439
|
function error(type) {
|
70988
|
-
throw RangeError(errors[type]);
|
72440
|
+
throw new RangeError(errors[type]);
|
70989
72441
|
}
|
70990
72442
|
|
70991
72443
|
/**
|
@@ -71132,7 +72584,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
71132
72584
|
|
71133
72585
|
/**
|
71134
72586
|
* Bias adaptation function as per section 3.4 of RFC 3492.
|
71135
|
-
*
|
72587
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
71136
72588
|
* @private
|
71137
72589
|
*/
|
71138
72590
|
function adapt(delta, numPoints, firstTime) {
|
@@ -71407,7 +72859,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
71407
72859
|
* @memberOf punycode
|
71408
72860
|
* @type String
|
71409
72861
|
*/
|
71410
|
-
'version': '1.
|
72862
|
+
'version': '1.4.1',
|
71411
72863
|
/**
|
71412
72864
|
* An object of methods to convert from JavaScript's internal character
|
71413
72865
|
* representation (UCS-2) to Unicode code points, and back.
|
@@ -71449,38 +72901,32 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
71449
72901
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
71450
72902
|
|
71451
72903
|
"use strict";
|
71452
|
-
|
71453
|
-
|
71454
|
-
|
71455
|
-
|
71456
|
-
|
71457
|
-
|
71458
|
-
|
71459
|
-
|
71460
|
-
|
71461
|
-
|
71462
|
-
|
71463
|
-
|
71464
|
-
|
71465
|
-
|
71466
|
-
|
71467
|
-
|
71468
|
-
|
71469
|
-
|
71470
|
-
|
71471
|
-
|
72904
|
+
/*
|
72905
|
+
* Copyright Joyent, Inc. and other Node contributors.
|
72906
|
+
*
|
72907
|
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
72908
|
+
* copy of this software and associated documentation files (the
|
72909
|
+
* "Software"), to deal in the Software without restriction, including
|
72910
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
72911
|
+
* distribute, sublicense, and/or sell copies of the Software, and to permit
|
72912
|
+
* persons to whom the Software is furnished to do so, subject to the
|
72913
|
+
* following conditions:
|
72914
|
+
*
|
72915
|
+
* The above copyright notice and this permission notice shall be included
|
72916
|
+
* in all copies or substantial portions of the Software.
|
72917
|
+
*
|
72918
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
72919
|
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
72920
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
72921
|
+
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
72922
|
+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
72923
|
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
72924
|
+
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
72925
|
+
*/
|
71472
72926
|
|
71473
72927
|
|
71474
72928
|
|
71475
72929
|
var punycode = __webpack_require__(/*! punycode */ "../../node_modules/url/node_modules/punycode/punycode.js");
|
71476
|
-
var util = __webpack_require__(/*! ./util */ "../../node_modules/url/util.js");
|
71477
|
-
|
71478
|
-
exports.parse = urlParse;
|
71479
|
-
exports.resolve = urlResolve;
|
71480
|
-
exports.resolveObject = urlResolveObject;
|
71481
|
-
exports.format = urlFormat;
|
71482
|
-
|
71483
|
-
exports.Url = Url;
|
71484
72930
|
|
71485
72931
|
function Url() {
|
71486
72932
|
this.protocol = null;
|
@@ -71499,85 +72945,102 @@ function Url() {
|
|
71499
72945
|
|
71500
72946
|
// Reference: RFC 3986, RFC 1808, RFC 2396
|
71501
72947
|
|
71502
|
-
|
71503
|
-
|
72948
|
+
/*
|
72949
|
+
* define these here so at least they only have to be
|
72950
|
+
* compiled once on the first module load.
|
72951
|
+
*/
|
71504
72952
|
var protocolPattern = /^([a-z0-9.+-]+:)/i,
|
71505
|
-
|
71506
|
-
|
71507
|
-
|
71508
|
-
|
71509
|
-
|
71510
|
-
|
71511
|
-
|
71512
|
-
|
71513
|
-
|
71514
|
-
|
71515
|
-
|
71516
|
-
|
71517
|
-
|
71518
|
-
|
71519
|
-
|
71520
|
-
|
71521
|
-
|
71522
|
-
|
71523
|
-
|
71524
|
-
|
71525
|
-
|
71526
|
-
|
71527
|
-
|
71528
|
-
|
71529
|
-
|
71530
|
-
|
71531
|
-
|
71532
|
-
|
71533
|
-
|
71534
|
-
|
71535
|
-
|
71536
|
-
|
71537
|
-
|
71538
|
-
|
71539
|
-
|
71540
|
-
|
71541
|
-
|
71542
|
-
|
71543
|
-
|
71544
|
-
|
71545
|
-
|
71546
|
-
|
71547
|
-
|
71548
|
-
|
71549
|
-
|
71550
|
-
|
71551
|
-
|
72953
|
+
portPattern = /:[0-9]*$/,
|
72954
|
+
|
72955
|
+
// Special case for a simple path URL
|
72956
|
+
simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,
|
72957
|
+
|
72958
|
+
/*
|
72959
|
+
* RFC 2396: characters reserved for delimiting URLs.
|
72960
|
+
* We actually just auto-escape these.
|
72961
|
+
*/
|
72962
|
+
delims = [
|
72963
|
+
'<', '>', '"', '`', ' ', '\r', '\n', '\t'
|
72964
|
+
],
|
72965
|
+
|
72966
|
+
// RFC 2396: characters not allowed for various reasons.
|
72967
|
+
unwise = [
|
72968
|
+
'{', '}', '|', '\\', '^', '`'
|
72969
|
+
].concat(delims),
|
72970
|
+
|
72971
|
+
// Allowed by RFCs, but cause of XSS attacks. Always escape these.
|
72972
|
+
autoEscape = ['\''].concat(unwise),
|
72973
|
+
/*
|
72974
|
+
* Characters that are never ever allowed in a hostname.
|
72975
|
+
* Note that any invalid chars are also handled, but these
|
72976
|
+
* are the ones that are *expected* to be seen, so we fast-path
|
72977
|
+
* them.
|
72978
|
+
*/
|
72979
|
+
nonHostChars = [
|
72980
|
+
'%', '/', '?', ';', '#'
|
72981
|
+
].concat(autoEscape),
|
72982
|
+
hostEndingChars = [
|
72983
|
+
'/', '?', '#'
|
72984
|
+
],
|
72985
|
+
hostnameMaxLen = 255,
|
72986
|
+
hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
|
72987
|
+
hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
|
72988
|
+
// protocols that can allow "unsafe" and "unwise" chars.
|
72989
|
+
unsafeProtocol = {
|
72990
|
+
javascript: true,
|
72991
|
+
'javascript:': true
|
72992
|
+
},
|
72993
|
+
// protocols that never have a hostname.
|
72994
|
+
hostlessProtocol = {
|
72995
|
+
javascript: true,
|
72996
|
+
'javascript:': true
|
72997
|
+
},
|
72998
|
+
// protocols that always contain a // bit.
|
72999
|
+
slashedProtocol = {
|
73000
|
+
http: true,
|
73001
|
+
https: true,
|
73002
|
+
ftp: true,
|
73003
|
+
gopher: true,
|
73004
|
+
file: true,
|
73005
|
+
'http:': true,
|
73006
|
+
'https:': true,
|
73007
|
+
'ftp:': true,
|
73008
|
+
'gopher:': true,
|
73009
|
+
'file:': true
|
73010
|
+
},
|
73011
|
+
querystring = __webpack_require__(/*! qs */ "../../node_modules/qs/lib/index.js");
|
71552
73012
|
|
71553
73013
|
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
71554
|
-
if (url &&
|
73014
|
+
if (url && typeof url === 'object' && url instanceof Url) { return url; }
|
71555
73015
|
|
71556
|
-
var u = new Url;
|
73016
|
+
var u = new Url();
|
71557
73017
|
u.parse(url, parseQueryString, slashesDenoteHost);
|
71558
73018
|
return u;
|
71559
73019
|
}
|
71560
73020
|
|
71561
|
-
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
71562
|
-
if (
|
73021
|
+
Url.prototype.parse = function (url, parseQueryString, slashesDenoteHost) {
|
73022
|
+
if (typeof url !== 'string') {
|
71563
73023
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
|
71564
73024
|
}
|
71565
73025
|
|
71566
|
-
|
71567
|
-
|
71568
|
-
|
73026
|
+
/*
|
73027
|
+
* Copy chrome, IE, opera backslash-handling behavior.
|
73028
|
+
* Back slashes before the query string get converted to forward slashes
|
73029
|
+
* See: https://code.google.com/p/chromium/issues/detail?id=25916
|
73030
|
+
*/
|
71569
73031
|
var queryIndex = url.indexOf('?'),
|
71570
|
-
|
71571
|
-
|
71572
|
-
|
71573
|
-
slashRegex = /\\/g;
|
73032
|
+
splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#',
|
73033
|
+
uSplit = url.split(splitter),
|
73034
|
+
slashRegex = /\\/g;
|
71574
73035
|
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
71575
73036
|
url = uSplit.join(splitter);
|
71576
73037
|
|
71577
73038
|
var rest = url;
|
71578
73039
|
|
71579
|
-
|
71580
|
-
|
73040
|
+
/*
|
73041
|
+
* trim before proceeding.
|
73042
|
+
* This is to support parse stuff like " http://foo.com \n"
|
73043
|
+
*/
|
71581
73044
|
rest = rest.trim();
|
71582
73045
|
|
71583
73046
|
if (!slashesDenoteHost && url.split('#').length === 1) {
|
@@ -71610,11 +73073,13 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71610
73073
|
rest = rest.substr(proto.length);
|
71611
73074
|
}
|
71612
73075
|
|
71613
|
-
|
71614
|
-
|
71615
|
-
|
71616
|
-
|
71617
|
-
|
73076
|
+
/*
|
73077
|
+
* figure out if it's got a host
|
73078
|
+
* user@server is *always* interpreted as a hostname, and url
|
73079
|
+
* resolution will treat //foo/bar as host=foo,path=bar because that's
|
73080
|
+
* how the browser resolves relative URLs.
|
73081
|
+
*/
|
73082
|
+
if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) {
|
71618
73083
|
var slashes = rest.substr(0, 2) === '//';
|
71619
73084
|
if (slashes && !(proto && hostlessProtocol[proto])) {
|
71620
73085
|
rest = rest.substr(2);
|
@@ -71622,46 +73087,54 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71622
73087
|
}
|
71623
73088
|
}
|
71624
73089
|
|
71625
|
-
if (!hostlessProtocol[proto] &&
|
71626
|
-
(slashes || (proto && !slashedProtocol[proto]))) {
|
73090
|
+
if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) {
|
71627
73091
|
|
71628
|
-
|
71629
|
-
|
71630
|
-
|
71631
|
-
|
71632
|
-
|
71633
|
-
|
71634
|
-
|
71635
|
-
|
71636
|
-
|
71637
|
-
|
71638
|
-
|
73092
|
+
/*
|
73093
|
+
* there's a hostname.
|
73094
|
+
* the first instance of /, ?, ;, or # ends the host.
|
73095
|
+
*
|
73096
|
+
* If there is an @ in the hostname, then non-host chars *are* allowed
|
73097
|
+
* to the left of the last @ sign, unless some host-ending character
|
73098
|
+
* comes *before* the @-sign.
|
73099
|
+
* URLs are obnoxious.
|
73100
|
+
*
|
73101
|
+
* ex:
|
73102
|
+
* http://a@b@c/ => user:a@b host:c
|
73103
|
+
* http://a@b?@c => user:a host:c path:/?@c
|
73104
|
+
*/
|
71639
73105
|
|
71640
|
-
|
71641
|
-
|
73106
|
+
/*
|
73107
|
+
* v0.12 TODO(isaacs): This is not quite how Chrome does things.
|
73108
|
+
* Review our test case against browsers more comprehensively.
|
73109
|
+
*/
|
71642
73110
|
|
71643
73111
|
// find the first instance of any hostEndingChars
|
71644
73112
|
var hostEnd = -1;
|
71645
73113
|
for (var i = 0; i < hostEndingChars.length; i++) {
|
71646
73114
|
var hec = rest.indexOf(hostEndingChars[i]);
|
71647
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
71648
|
-
hostEnd = hec;
|
73115
|
+
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
|
71649
73116
|
}
|
71650
73117
|
|
71651
|
-
|
71652
|
-
|
73118
|
+
/*
|
73119
|
+
* at this point, either we have an explicit point where the
|
73120
|
+
* auth portion cannot go past, or the last @ char is the decider.
|
73121
|
+
*/
|
71653
73122
|
var auth, atSign;
|
71654
73123
|
if (hostEnd === -1) {
|
71655
73124
|
// atSign can be anywhere.
|
71656
73125
|
atSign = rest.lastIndexOf('@');
|
71657
73126
|
} else {
|
71658
|
-
|
71659
|
-
|
73127
|
+
/*
|
73128
|
+
* atSign must be in auth portion.
|
73129
|
+
* http://a@b/c@d => host:b auth:a path:/c@d
|
73130
|
+
*/
|
71660
73131
|
atSign = rest.lastIndexOf('@', hostEnd);
|
71661
73132
|
}
|
71662
73133
|
|
71663
|
-
|
71664
|
-
|
73134
|
+
/*
|
73135
|
+
* Now we have a portion which is definitely the auth.
|
73136
|
+
* Pull that off.
|
73137
|
+
*/
|
71665
73138
|
if (atSign !== -1) {
|
71666
73139
|
auth = rest.slice(0, atSign);
|
71667
73140
|
rest = rest.slice(atSign + 1);
|
@@ -71672,12 +73145,10 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71672
73145
|
hostEnd = -1;
|
71673
73146
|
for (var i = 0; i < nonHostChars.length; i++) {
|
71674
73147
|
var hec = rest.indexOf(nonHostChars[i]);
|
71675
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
71676
|
-
hostEnd = hec;
|
73148
|
+
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
|
71677
73149
|
}
|
71678
73150
|
// if we still have not hit it, then the entire thing is a host.
|
71679
|
-
if (hostEnd === -1)
|
71680
|
-
hostEnd = rest.length;
|
73151
|
+
if (hostEnd === -1) { hostEnd = rest.length; }
|
71681
73152
|
|
71682
73153
|
this.host = rest.slice(0, hostEnd);
|
71683
73154
|
rest = rest.slice(hostEnd);
|
@@ -71685,28 +73156,33 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71685
73156
|
// pull out port.
|
71686
73157
|
this.parseHost();
|
71687
73158
|
|
71688
|
-
|
71689
|
-
|
73159
|
+
/*
|
73160
|
+
* we've indicated that there is a hostname,
|
73161
|
+
* so even if it's empty, it has to be present.
|
73162
|
+
*/
|
71690
73163
|
this.hostname = this.hostname || '';
|
71691
73164
|
|
71692
|
-
|
71693
|
-
|
71694
|
-
|
71695
|
-
|
73165
|
+
/*
|
73166
|
+
* if hostname begins with [ and ends with ]
|
73167
|
+
* assume that it's an IPv6 address.
|
73168
|
+
*/
|
73169
|
+
var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']';
|
71696
73170
|
|
71697
73171
|
// validate a little.
|
71698
73172
|
if (!ipv6Hostname) {
|
71699
73173
|
var hostparts = this.hostname.split(/\./);
|
71700
73174
|
for (var i = 0, l = hostparts.length; i < l; i++) {
|
71701
73175
|
var part = hostparts[i];
|
71702
|
-
if (!part) continue;
|
73176
|
+
if (!part) { continue; }
|
71703
73177
|
if (!part.match(hostnamePartPattern)) {
|
71704
73178
|
var newpart = '';
|
71705
73179
|
for (var j = 0, k = part.length; j < k; j++) {
|
71706
73180
|
if (part.charCodeAt(j) > 127) {
|
71707
|
-
|
71708
|
-
|
71709
|
-
|
73181
|
+
/*
|
73182
|
+
* we replace non-ASCII char with a temporary placeholder
|
73183
|
+
* we need this to make sure size of hostname is not
|
73184
|
+
* broken by replacing non-ASCII by nothing
|
73185
|
+
*/
|
71710
73186
|
newpart += 'x';
|
71711
73187
|
} else {
|
71712
73188
|
newpart += part[j];
|
@@ -71739,10 +73215,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71739
73215
|
}
|
71740
73216
|
|
71741
73217
|
if (!ipv6Hostname) {
|
71742
|
-
|
71743
|
-
|
71744
|
-
|
71745
|
-
|
73218
|
+
/*
|
73219
|
+
* IDNA Support: Returns a punycoded representation of "domain".
|
73220
|
+
* It only converts parts of the domain name that
|
73221
|
+
* have non-ASCII characters, i.e. it doesn't matter if
|
73222
|
+
* you call it with a domain that already is ASCII-only.
|
73223
|
+
*/
|
71746
73224
|
this.hostname = punycode.toASCII(this.hostname);
|
71747
73225
|
}
|
71748
73226
|
|
@@ -71751,8 +73229,10 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71751
73229
|
this.host = h + p;
|
71752
73230
|
this.href += this.host;
|
71753
73231
|
|
71754
|
-
|
71755
|
-
|
73232
|
+
/*
|
73233
|
+
* strip [ and ] from the hostname
|
73234
|
+
* the host field still retains them, though
|
73235
|
+
*/
|
71756
73236
|
if (ipv6Hostname) {
|
71757
73237
|
this.hostname = this.hostname.substr(1, this.hostname.length - 2);
|
71758
73238
|
if (rest[0] !== '/') {
|
@@ -71761,17 +73241,20 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71761
73241
|
}
|
71762
73242
|
}
|
71763
73243
|
|
71764
|
-
|
71765
|
-
|
73244
|
+
/*
|
73245
|
+
* now rest is set to the post-host stuff.
|
73246
|
+
* chop off any delim chars.
|
73247
|
+
*/
|
71766
73248
|
if (!unsafeProtocol[lowerProto]) {
|
71767
73249
|
|
71768
|
-
|
71769
|
-
|
71770
|
-
|
73250
|
+
/*
|
73251
|
+
* First, make 100% sure that any "autoEscape" chars get
|
73252
|
+
* escaped, even if encodeURIComponent doesn't think they
|
73253
|
+
* need to be.
|
73254
|
+
*/
|
71771
73255
|
for (var i = 0, l = autoEscape.length; i < l; i++) {
|
71772
73256
|
var ae = autoEscape[i];
|
71773
|
-
if (rest.indexOf(ae) === -1)
|
71774
|
-
continue;
|
73257
|
+
if (rest.indexOf(ae) === -1) { continue; }
|
71775
73258
|
var esc = encodeURIComponent(ae);
|
71776
73259
|
if (esc === ae) {
|
71777
73260
|
esc = escape(ae);
|
@@ -71780,7 +73263,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71780
73263
|
}
|
71781
73264
|
}
|
71782
73265
|
|
71783
|
-
|
71784
73266
|
// chop off from the tail first.
|
71785
73267
|
var hash = rest.indexOf('#');
|
71786
73268
|
if (hash !== -1) {
|
@@ -71801,13 +73283,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71801
73283
|
this.search = '';
|
71802
73284
|
this.query = {};
|
71803
73285
|
}
|
71804
|
-
if (rest) this.pathname = rest;
|
71805
|
-
if (slashedProtocol[lowerProto] &&
|
71806
|
-
this.hostname && !this.pathname) {
|
73286
|
+
if (rest) { this.pathname = rest; }
|
73287
|
+
if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {
|
71807
73288
|
this.pathname = '/';
|
71808
73289
|
}
|
71809
73290
|
|
71810
|
-
//to support http.request
|
73291
|
+
// to support http.request
|
71811
73292
|
if (this.pathname || this.search) {
|
71812
73293
|
var p = this.pathname || '';
|
71813
73294
|
var s = this.search || '';
|
@@ -71821,16 +73302,18 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
71821
73302
|
|
71822
73303
|
// format a parsed object into a url string
|
71823
73304
|
function urlFormat(obj) {
|
71824
|
-
|
71825
|
-
|
71826
|
-
|
71827
|
-
|
71828
|
-
|
71829
|
-
|
73305
|
+
/*
|
73306
|
+
* ensure it's an object, and not a string url.
|
73307
|
+
* If it's an obj, this is a no-op.
|
73308
|
+
* this way, you can call url_format() on strings
|
73309
|
+
* to clean up potentially wonky urls.
|
73310
|
+
*/
|
73311
|
+
if (typeof obj === 'string') { obj = urlParse(obj); }
|
73312
|
+
if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); }
|
71830
73313
|
return obj.format();
|
71831
73314
|
}
|
71832
73315
|
|
71833
|
-
Url.prototype.format = function() {
|
73316
|
+
Url.prototype.format = function () {
|
71834
73317
|
var auth = this.auth || '';
|
71835
73318
|
if (auth) {
|
71836
73319
|
auth = encodeURIComponent(auth);
|
@@ -71839,46 +73322,43 @@ Url.prototype.format = function() {
|
|
71839
73322
|
}
|
71840
73323
|
|
71841
73324
|
var protocol = this.protocol || '',
|
71842
|
-
|
71843
|
-
|
71844
|
-
|
71845
|
-
|
73325
|
+
pathname = this.pathname || '',
|
73326
|
+
hash = this.hash || '',
|
73327
|
+
host = false,
|
73328
|
+
query = '';
|
71846
73329
|
|
71847
73330
|
if (this.host) {
|
71848
73331
|
host = auth + this.host;
|
71849
73332
|
} else if (this.hostname) {
|
71850
|
-
host = auth + (this.hostname.indexOf(':') === -1 ?
|
71851
|
-
this.hostname :
|
71852
|
-
'[' + this.hostname + ']');
|
73333
|
+
host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']');
|
71853
73334
|
if (this.port) {
|
71854
73335
|
host += ':' + this.port;
|
71855
73336
|
}
|
71856
73337
|
}
|
71857
73338
|
|
71858
|
-
if (this.query &&
|
71859
|
-
util.isObject(this.query) &&
|
71860
|
-
Object.keys(this.query).length) {
|
73339
|
+
if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) {
|
71861
73340
|
query = querystring.stringify(this.query);
|
71862
73341
|
}
|
71863
73342
|
|
71864
73343
|
var search = this.search || (query && ('?' + query)) || '';
|
71865
73344
|
|
71866
|
-
if (protocol && protocol.substr(-1) !== ':') protocol += ':';
|
73345
|
+
if (protocol && protocol.substr(-1) !== ':') { protocol += ':'; }
|
71867
73346
|
|
71868
|
-
|
71869
|
-
|
71870
|
-
|
71871
|
-
|
73347
|
+
/*
|
73348
|
+
* only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
|
73349
|
+
* unless they had them to begin with.
|
73350
|
+
*/
|
73351
|
+
if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {
|
71872
73352
|
host = '//' + (host || '');
|
71873
|
-
if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
|
73353
|
+
if (pathname && pathname.charAt(0) !== '/') { pathname = '/' + pathname; }
|
71874
73354
|
} else if (!host) {
|
71875
73355
|
host = '';
|
71876
73356
|
}
|
71877
73357
|
|
71878
|
-
if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
|
71879
|
-
if (search && search.charAt(0) !== '?') search = '?' + search;
|
73358
|
+
if (hash && hash.charAt(0) !== '#') { hash = '#' + hash; }
|
73359
|
+
if (search && search.charAt(0) !== '?') { search = '?' + search; }
|
71880
73360
|
|
71881
|
-
pathname = pathname.replace(/[?#]/g, function(match) {
|
73361
|
+
pathname = pathname.replace(/[?#]/g, function (match) {
|
71882
73362
|
return encodeURIComponent(match);
|
71883
73363
|
});
|
71884
73364
|
search = search.replace('#', '%23');
|
@@ -71890,17 +73370,17 @@ function urlResolve(source, relative) {
|
|
71890
73370
|
return urlParse(source, false, true).resolve(relative);
|
71891
73371
|
}
|
71892
73372
|
|
71893
|
-
Url.prototype.resolve = function(relative) {
|
73373
|
+
Url.prototype.resolve = function (relative) {
|
71894
73374
|
return this.resolveObject(urlParse(relative, false, true)).format();
|
71895
73375
|
};
|
71896
73376
|
|
71897
73377
|
function urlResolveObject(source, relative) {
|
71898
|
-
if (!source) return relative;
|
73378
|
+
if (!source) { return relative; }
|
71899
73379
|
return urlParse(source, false, true).resolveObject(relative);
|
71900
73380
|
}
|
71901
73381
|
|
71902
|
-
Url.prototype.resolveObject = function(relative) {
|
71903
|
-
if (
|
73382
|
+
Url.prototype.resolveObject = function (relative) {
|
73383
|
+
if (typeof relative === 'string') {
|
71904
73384
|
var rel = new Url();
|
71905
73385
|
rel.parse(relative, false, true);
|
71906
73386
|
relative = rel;
|
@@ -71913,8 +73393,10 @@ Url.prototype.resolveObject = function(relative) {
|
|
71913
73393
|
result[tkey] = this[tkey];
|
71914
73394
|
}
|
71915
73395
|
|
71916
|
-
|
71917
|
-
|
73396
|
+
/*
|
73397
|
+
* hash is always overridden, no matter what.
|
73398
|
+
* even href="" will remove it.
|
73399
|
+
*/
|
71918
73400
|
result.hash = relative.hash;
|
71919
73401
|
|
71920
73402
|
// if the relative url is empty, then there's nothing left to do here.
|
@@ -71929,14 +73411,13 @@ Url.prototype.resolveObject = function(relative) {
|
|
71929
73411
|
var rkeys = Object.keys(relative);
|
71930
73412
|
for (var rk = 0; rk < rkeys.length; rk++) {
|
71931
73413
|
var rkey = rkeys[rk];
|
71932
|
-
if (rkey !== 'protocol')
|
71933
|
-
result[rkey] = relative[rkey];
|
73414
|
+
if (rkey !== 'protocol') { result[rkey] = relative[rkey]; }
|
71934
73415
|
}
|
71935
73416
|
|
71936
|
-
//urlParse appends trailing / to urls like http://www.example.com
|
71937
|
-
if (slashedProtocol[result.protocol] &&
|
71938
|
-
|
71939
|
-
result.path = result.pathname
|
73417
|
+
// urlParse appends trailing / to urls like http://www.example.com
|
73418
|
+
if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {
|
73419
|
+
result.pathname = '/';
|
73420
|
+
result.path = result.pathname;
|
71940
73421
|
}
|
71941
73422
|
|
71942
73423
|
result.href = result.format();
|
@@ -71944,14 +73425,16 @@ Url.prototype.resolveObject = function(relative) {
|
|
71944
73425
|
}
|
71945
73426
|
|
71946
73427
|
if (relative.protocol && relative.protocol !== result.protocol) {
|
71947
|
-
|
71948
|
-
|
71949
|
-
|
71950
|
-
|
71951
|
-
|
71952
|
-
|
71953
|
-
|
71954
|
-
|
73428
|
+
/*
|
73429
|
+
* if it's a known url protocol, then changing
|
73430
|
+
* the protocol does weird things
|
73431
|
+
* first, if it's not file:, then we MUST have a host,
|
73432
|
+
* and if there was a path
|
73433
|
+
* to begin with, then we MUST have a path.
|
73434
|
+
* if it is file:, then the host is dropped,
|
73435
|
+
* because that's known to be hostless.
|
73436
|
+
* anything else is assumed to be absolute.
|
73437
|
+
*/
|
71955
73438
|
if (!slashedProtocol[relative.protocol]) {
|
71956
73439
|
var keys = Object.keys(relative);
|
71957
73440
|
for (var v = 0; v < keys.length; v++) {
|
@@ -71965,11 +73448,11 @@ Url.prototype.resolveObject = function(relative) {
|
|
71965
73448
|
result.protocol = relative.protocol;
|
71966
73449
|
if (!relative.host && !hostlessProtocol[relative.protocol]) {
|
71967
73450
|
var relPath = (relative.pathname || '').split('/');
|
71968
|
-
while (relPath.length && !(relative.host = relPath.shift()))
|
71969
|
-
if (!relative.host) relative.host = '';
|
71970
|
-
if (!relative.hostname) relative.hostname = '';
|
71971
|
-
if (relPath[0] !== '') relPath.unshift('');
|
71972
|
-
if (relPath.length < 2) relPath.unshift('');
|
73451
|
+
while (relPath.length && !(relative.host = relPath.shift())) { }
|
73452
|
+
if (!relative.host) { relative.host = ''; }
|
73453
|
+
if (!relative.hostname) { relative.hostname = ''; }
|
73454
|
+
if (relPath[0] !== '') { relPath.unshift(''); }
|
73455
|
+
if (relPath.length < 2) { relPath.unshift(''); }
|
71973
73456
|
result.pathname = relPath.join('/');
|
71974
73457
|
} else {
|
71975
73458
|
result.pathname = relative.pathname;
|
@@ -71991,37 +73474,33 @@ Url.prototype.resolveObject = function(relative) {
|
|
71991
73474
|
return result;
|
71992
73475
|
}
|
71993
73476
|
|
71994
|
-
var isSourceAbs =
|
71995
|
-
|
71996
|
-
|
71997
|
-
|
71998
|
-
|
71999
|
-
|
72000
|
-
|
72001
|
-
|
72002
|
-
|
72003
|
-
|
72004
|
-
|
72005
|
-
|
72006
|
-
|
72007
|
-
|
72008
|
-
|
72009
|
-
// result.protocol has already been set by now.
|
72010
|
-
// Later on, put the first path part into the host field.
|
73477
|
+
var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/',
|
73478
|
+
isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',
|
73479
|
+
mustEndAbs = isRelAbs || isSourceAbs || (result.host && relative.pathname),
|
73480
|
+
removeAllDots = mustEndAbs,
|
73481
|
+
srcPath = result.pathname && result.pathname.split('/') || [],
|
73482
|
+
relPath = relative.pathname && relative.pathname.split('/') || [],
|
73483
|
+
psychotic = result.protocol && !slashedProtocol[result.protocol];
|
73484
|
+
|
73485
|
+
/*
|
73486
|
+
* if the url is a non-slashed url, then relative
|
73487
|
+
* links like ../.. should be able
|
73488
|
+
* to crawl up to the hostname, as well. This is strange.
|
73489
|
+
* result.protocol has already been set by now.
|
73490
|
+
* Later on, put the first path part into the host field.
|
73491
|
+
*/
|
72011
73492
|
if (psychotic) {
|
72012
73493
|
result.hostname = '';
|
72013
73494
|
result.port = null;
|
72014
73495
|
if (result.host) {
|
72015
|
-
if (srcPath[0] === '') srcPath[0] = result.host;
|
72016
|
-
else srcPath.unshift(result.host);
|
73496
|
+
if (srcPath[0] === '') { srcPath[0] = result.host; } else { srcPath.unshift(result.host); }
|
72017
73497
|
}
|
72018
73498
|
result.host = '';
|
72019
73499
|
if (relative.protocol) {
|
72020
73500
|
relative.hostname = null;
|
72021
73501
|
relative.port = null;
|
72022
73502
|
if (relative.host) {
|
72023
|
-
if (relPath[0] === '') relPath[0] = relative.host;
|
72024
|
-
else relPath.unshift(relative.host);
|
73503
|
+
if (relPath[0] === '') { relPath[0] = relative.host; } else { relPath.unshift(relative.host); }
|
72025
73504
|
}
|
72026
73505
|
relative.host = null;
|
72027
73506
|
}
|
@@ -72030,54 +73509,60 @@ Url.prototype.resolveObject = function(relative) {
|
|
72030
73509
|
|
72031
73510
|
if (isRelAbs) {
|
72032
73511
|
// it's absolute.
|
72033
|
-
result.host =
|
72034
|
-
|
72035
|
-
result.hostname = (relative.hostname || relative.hostname === '') ?
|
72036
|
-
relative.hostname : result.hostname;
|
73512
|
+
result.host = relative.host || relative.host === '' ? relative.host : result.host;
|
73513
|
+
result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;
|
72037
73514
|
result.search = relative.search;
|
72038
73515
|
result.query = relative.query;
|
72039
73516
|
srcPath = relPath;
|
72040
73517
|
// fall through to the dot-handling below.
|
72041
73518
|
} else if (relPath.length) {
|
72042
|
-
|
72043
|
-
|
72044
|
-
|
73519
|
+
/*
|
73520
|
+
* it's relative
|
73521
|
+
* throw away the existing file, and take the new path instead.
|
73522
|
+
*/
|
73523
|
+
if (!srcPath) { srcPath = []; }
|
72045
73524
|
srcPath.pop();
|
72046
73525
|
srcPath = srcPath.concat(relPath);
|
72047
73526
|
result.search = relative.search;
|
72048
73527
|
result.query = relative.query;
|
72049
|
-
} else if (
|
72050
|
-
|
72051
|
-
|
72052
|
-
|
73528
|
+
} else if (relative.search != null) {
|
73529
|
+
/*
|
73530
|
+
* just pull out the search.
|
73531
|
+
* like href='?foo'.
|
73532
|
+
* Put this after the other two cases because it simplifies the booleans
|
73533
|
+
*/
|
72053
73534
|
if (psychotic) {
|
72054
|
-
result.
|
72055
|
-
|
72056
|
-
|
72057
|
-
|
72058
|
-
|
72059
|
-
|
73535
|
+
result.host = srcPath.shift();
|
73536
|
+
result.hostname = result.host;
|
73537
|
+
/*
|
73538
|
+
* occationaly the auth can get stuck only in host
|
73539
|
+
* this especially happens in cases like
|
73540
|
+
* url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
73541
|
+
*/
|
73542
|
+
var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
|
72060
73543
|
if (authInHost) {
|
72061
73544
|
result.auth = authInHost.shift();
|
72062
|
-
result.
|
73545
|
+
result.hostname = authInHost.shift();
|
73546
|
+
result.host = result.hostname;
|
72063
73547
|
}
|
72064
73548
|
}
|
72065
73549
|
result.search = relative.search;
|
72066
73550
|
result.query = relative.query;
|
72067
|
-
//to support http.request
|
72068
|
-
if (
|
72069
|
-
result.path = (result.pathname ? result.pathname : '') +
|
72070
|
-
(result.search ? result.search : '');
|
73551
|
+
// to support http.request
|
73552
|
+
if (result.pathname !== null || result.search !== null) {
|
73553
|
+
result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
|
72071
73554
|
}
|
72072
73555
|
result.href = result.format();
|
72073
73556
|
return result;
|
72074
73557
|
}
|
72075
73558
|
|
72076
73559
|
if (!srcPath.length) {
|
72077
|
-
|
72078
|
-
|
73560
|
+
/*
|
73561
|
+
* no path at all. easy.
|
73562
|
+
* we've already handled the other stuff above.
|
73563
|
+
*/
|
72079
73564
|
result.pathname = null;
|
72080
|
-
//to support http.request
|
73565
|
+
// to support http.request
|
72081
73566
|
if (result.search) {
|
72082
73567
|
result.path = '/' + result.search;
|
72083
73568
|
} else {
|
@@ -72087,16 +73572,18 @@ Url.prototype.resolveObject = function(relative) {
|
|
72087
73572
|
return result;
|
72088
73573
|
}
|
72089
73574
|
|
72090
|
-
|
72091
|
-
|
72092
|
-
|
73575
|
+
/*
|
73576
|
+
* if a url ENDs in . or .., then it must get a trailing slash.
|
73577
|
+
* however, if it ends in anything else non-slashy,
|
73578
|
+
* then it must NOT get a trailing slash.
|
73579
|
+
*/
|
72093
73580
|
var last = srcPath.slice(-1)[0];
|
72094
|
-
var hasTrailingSlash = (
|
72095
|
-
(result.host || relative.host || srcPath.length > 1) &&
|
72096
|
-
(last === '.' || last === '..') || last === '');
|
73581
|
+
var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === '';
|
72097
73582
|
|
72098
|
-
|
72099
|
-
|
73583
|
+
/*
|
73584
|
+
* strip single dots, resolve double dots to parent dir
|
73585
|
+
* if the path tries to go above the root, `up` ends up > 0
|
73586
|
+
*/
|
72100
73587
|
var up = 0;
|
72101
73588
|
for (var i = srcPath.length; i >= 0; i--) {
|
72102
73589
|
last = srcPath[i];
|
@@ -72118,8 +73605,7 @@ Url.prototype.resolveObject = function(relative) {
|
|
72118
73605
|
}
|
72119
73606
|
}
|
72120
73607
|
|
72121
|
-
if (mustEndAbs && srcPath[0] !== '' &&
|
72122
|
-
(!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
73608
|
+
if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
72123
73609
|
srcPath.unshift('');
|
72124
73610
|
}
|
72125
73611
|
|
@@ -72127,21 +73613,22 @@ Url.prototype.resolveObject = function(relative) {
|
|
72127
73613
|
srcPath.push('');
|
72128
73614
|
}
|
72129
73615
|
|
72130
|
-
var isAbsolute = srcPath[0] === '' ||
|
72131
|
-
(srcPath[0] && srcPath[0].charAt(0) === '/');
|
73616
|
+
var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/');
|
72132
73617
|
|
72133
73618
|
// put the host back
|
72134
73619
|
if (psychotic) {
|
72135
|
-
result.hostname =
|
72136
|
-
|
72137
|
-
|
72138
|
-
|
72139
|
-
|
72140
|
-
|
72141
|
-
|
73620
|
+
result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : '';
|
73621
|
+
result.host = result.hostname;
|
73622
|
+
/*
|
73623
|
+
* occationaly the auth can get stuck only in host
|
73624
|
+
* this especially happens in cases like
|
73625
|
+
* url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
73626
|
+
*/
|
73627
|
+
var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
|
72142
73628
|
if (authInHost) {
|
72143
73629
|
result.auth = authInHost.shift();
|
72144
|
-
result.
|
73630
|
+
result.hostname = authInHost.shift();
|
73631
|
+
result.host = result.hostname;
|
72145
73632
|
}
|
72146
73633
|
}
|
72147
73634
|
|
@@ -72151,17 +73638,16 @@ Url.prototype.resolveObject = function(relative) {
|
|
72151
73638
|
srcPath.unshift('');
|
72152
73639
|
}
|
72153
73640
|
|
72154
|
-
if (
|
73641
|
+
if (srcPath.length > 0) {
|
73642
|
+
result.pathname = srcPath.join('/');
|
73643
|
+
} else {
|
72155
73644
|
result.pathname = null;
|
72156
73645
|
result.path = null;
|
72157
|
-
} else {
|
72158
|
-
result.pathname = srcPath.join('/');
|
72159
73646
|
}
|
72160
73647
|
|
72161
|
-
//to support request.http
|
72162
|
-
if (
|
72163
|
-
result.path = (result.pathname ? result.pathname : '') +
|
72164
|
-
(result.search ? result.search : '');
|
73648
|
+
// to support request.http
|
73649
|
+
if (result.pathname !== null || result.search !== null) {
|
73650
|
+
result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
|
72165
73651
|
}
|
72166
73652
|
result.auth = relative.auth || result.auth;
|
72167
73653
|
result.slashes = result.slashes || relative.slashes;
|
@@ -72169,7 +73655,7 @@ Url.prototype.resolveObject = function(relative) {
|
|
72169
73655
|
return result;
|
72170
73656
|
};
|
72171
73657
|
|
72172
|
-
Url.prototype.parseHost = function() {
|
73658
|
+
Url.prototype.parseHost = function () {
|
72173
73659
|
var host = this.host;
|
72174
73660
|
var port = portPattern.exec(host);
|
72175
73661
|
if (port) {
|
@@ -72179,35 +73665,15 @@ Url.prototype.parseHost = function() {
|
|
72179
73665
|
}
|
72180
73666
|
host = host.substr(0, host.length - port.length);
|
72181
73667
|
}
|
72182
|
-
if (host) this.hostname = host;
|
73668
|
+
if (host) { this.hostname = host; }
|
72183
73669
|
};
|
72184
73670
|
|
73671
|
+
exports.parse = urlParse;
|
73672
|
+
exports.resolve = urlResolve;
|
73673
|
+
exports.resolveObject = urlResolveObject;
|
73674
|
+
exports.format = urlFormat;
|
72185
73675
|
|
72186
|
-
|
72187
|
-
|
72188
|
-
/***/ "../../node_modules/url/util.js":
|
72189
|
-
/*!**************************************!*\
|
72190
|
-
!*** ../../node_modules/url/util.js ***!
|
72191
|
-
\**************************************/
|
72192
|
-
/***/ ((module) => {
|
72193
|
-
|
72194
|
-
"use strict";
|
72195
|
-
|
72196
|
-
|
72197
|
-
module.exports = {
|
72198
|
-
isString: function(arg) {
|
72199
|
-
return typeof(arg) === 'string';
|
72200
|
-
},
|
72201
|
-
isObject: function(arg) {
|
72202
|
-
return typeof(arg) === 'object' && arg !== null;
|
72203
|
-
},
|
72204
|
-
isNull: function(arg) {
|
72205
|
-
return arg === null;
|
72206
|
-
},
|
72207
|
-
isNullOrUndefined: function(arg) {
|
72208
|
-
return arg == null;
|
72209
|
-
}
|
72210
|
-
};
|
73676
|
+
exports.Url = Url;
|
72211
73677
|
|
72212
73678
|
|
72213
73679
|
/***/ }),
|
@@ -75381,6 +76847,7 @@ var AccountRootFlags;
|
|
75381
76847
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingCheck"] = 134217728] = "lsfDisallowIncomingCheck";
|
75382
76848
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingPayChan"] = 268435456] = "lsfDisallowIncomingPayChan";
|
75383
76849
|
AccountRootFlags[AccountRootFlags["lsfDisallowIncomingTrustline"] = 536870912] = "lsfDisallowIncomingTrustline";
|
76850
|
+
AccountRootFlags[AccountRootFlags["lsfAllowTrustLineClawback"] = 2147483648] = "lsfAllowTrustLineClawback";
|
75384
76851
|
})(AccountRootFlags = exports.AccountRootFlags || (exports.AccountRootFlags = {}));
|
75385
76852
|
|
75386
76853
|
|
@@ -75777,6 +77244,7 @@ var AccountSetAsfFlags;
|
|
75777
77244
|
AccountSetAsfFlags[AccountSetAsfFlags["asfDisallowIncomingCheck"] = 13] = "asfDisallowIncomingCheck";
|
75778
77245
|
AccountSetAsfFlags[AccountSetAsfFlags["asfDisallowIncomingPayChan"] = 14] = "asfDisallowIncomingPayChan";
|
75779
77246
|
AccountSetAsfFlags[AccountSetAsfFlags["asfDisallowIncomingTrustline"] = 15] = "asfDisallowIncomingTrustline";
|
77247
|
+
AccountSetAsfFlags[AccountSetAsfFlags["asfAllowTrustLineClawback"] = 16] = "asfAllowTrustLineClawback";
|
75780
77248
|
})(AccountSetAsfFlags = exports.AccountSetAsfFlags || (exports.AccountSetAsfFlags = {}));
|
75781
77249
|
var AccountSetTfFlags;
|
75782
77250
|
(function (AccountSetTfFlags) {
|
@@ -75939,6 +77407,35 @@ function validateCheckCreate(tx) {
|
|
75939
77407
|
exports.validateCheckCreate = validateCheckCreate;
|
75940
77408
|
|
75941
77409
|
|
77410
|
+
/***/ }),
|
77411
|
+
|
77412
|
+
/***/ "./dist/npm/models/transactions/clawback.js":
|
77413
|
+
/*!**************************************************!*\
|
77414
|
+
!*** ./dist/npm/models/transactions/clawback.js ***!
|
77415
|
+
\**************************************************/
|
77416
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
77417
|
+
|
77418
|
+
"use strict";
|
77419
|
+
|
77420
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
77421
|
+
exports.validateClawback = void 0;
|
77422
|
+
const errors_1 = __webpack_require__(/*! ../../errors */ "./dist/npm/errors.js");
|
77423
|
+
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
77424
|
+
function validateClawback(tx) {
|
77425
|
+
(0, common_1.validateBaseTransaction)(tx);
|
77426
|
+
if (tx.Amount == null) {
|
77427
|
+
throw new errors_1.ValidationError('Clawback: missing field Amount');
|
77428
|
+
}
|
77429
|
+
if (!(0, common_1.isIssuedCurrency)(tx.Amount)) {
|
77430
|
+
throw new errors_1.ValidationError('Clawback: invalid Amount');
|
77431
|
+
}
|
77432
|
+
if ((0, common_1.isIssuedCurrency)(tx.Amount) && tx.Account === tx.Amount.issuer) {
|
77433
|
+
throw new errors_1.ValidationError('Clawback: invalid holder Account');
|
77434
|
+
}
|
77435
|
+
}
|
77436
|
+
exports.validateClawback = validateClawback;
|
77437
|
+
|
77438
|
+
|
75942
77439
|
/***/ }),
|
75943
77440
|
|
75944
77441
|
/***/ "./dist/npm/models/transactions/common.js":
|
@@ -76767,6 +78264,7 @@ const accountSet_1 = __webpack_require__(/*! ./accountSet */ "./dist/npm/models/
|
|
76767
78264
|
const checkCancel_1 = __webpack_require__(/*! ./checkCancel */ "./dist/npm/models/transactions/checkCancel.js");
|
76768
78265
|
const checkCash_1 = __webpack_require__(/*! ./checkCash */ "./dist/npm/models/transactions/checkCash.js");
|
76769
78266
|
const checkCreate_1 = __webpack_require__(/*! ./checkCreate */ "./dist/npm/models/transactions/checkCreate.js");
|
78267
|
+
const clawback_1 = __webpack_require__(/*! ./clawback */ "./dist/npm/models/transactions/clawback.js");
|
76770
78268
|
const common_1 = __webpack_require__(/*! ./common */ "./dist/npm/models/transactions/common.js");
|
76771
78269
|
const depositPreauth_1 = __webpack_require__(/*! ./depositPreauth */ "./dist/npm/models/transactions/depositPreauth.js");
|
76772
78270
|
const escrowCancel_1 = __webpack_require__(/*! ./escrowCancel */ "./dist/npm/models/transactions/escrowCancel.js");
|
@@ -76848,6 +78346,9 @@ function validate(transaction) {
|
|
76848
78346
|
case 'CheckCreate':
|
76849
78347
|
(0, checkCreate_1.validateCheckCreate)(tx);
|
76850
78348
|
break;
|
78349
|
+
case 'Clawback':
|
78350
|
+
(0, clawback_1.validateClawback)(tx);
|
78351
|
+
break;
|
76851
78352
|
case 'DepositPreauth':
|
76852
78353
|
(0, depositPreauth_1.validateDepositPreauth)(tx);
|
76853
78354
|
break;
|
@@ -76975,8 +78476,9 @@ const trustSet_1 = __webpack_require__(/*! ../transactions/trustSet */ "./dist/n
|
|
76975
78476
|
const _1 = __webpack_require__(/*! . */ "./dist/npm/models/utils/index.js");
|
76976
78477
|
function parseAccountRootFlags(flags) {
|
76977
78478
|
const flagsInterface = {};
|
76978
|
-
Object.
|
76979
|
-
if (
|
78479
|
+
Object.values(AccountRoot_1.AccountRootFlags).forEach((flag) => {
|
78480
|
+
if (typeof flag === 'string' &&
|
78481
|
+
(0, _1.isFlagEnabled)(flags, AccountRoot_1.AccountRootFlags[flag])) {
|
76980
78482
|
flagsInterface[flag] = true;
|
76981
78483
|
}
|
76982
78484
|
});
|
@@ -77055,7 +78557,7 @@ function onlyHasFields(obj, fields) {
|
|
77055
78557
|
}
|
77056
78558
|
exports.onlyHasFields = onlyHasFields;
|
77057
78559
|
function isFlagEnabled(Flags, checkFlag) {
|
77058
|
-
return (checkFlag & Flags) === checkFlag;
|
78560
|
+
return (BigInt(checkFlag) & BigInt(Flags)) === BigInt(checkFlag);
|
77059
78561
|
}
|
77060
78562
|
exports.isFlagEnabled = isFlagEnabled;
|
77061
78563
|
function isHex(str) {
|
@@ -79021,6 +80523,16 @@ exports.xrpToDrops = xrpToDrops;
|
|
79021
80523
|
|
79022
80524
|
/***/ }),
|
79023
80525
|
|
80526
|
+
/***/ "?c95a":
|
80527
|
+
/*!********************************!*\
|
80528
|
+
!*** ./util.inspect (ignored) ***!
|
80529
|
+
\********************************/
|
80530
|
+
/***/ (() => {
|
80531
|
+
|
80532
|
+
/* (ignored) */
|
80533
|
+
|
80534
|
+
/***/ }),
|
80535
|
+
|
79024
80536
|
/***/ "?1dff":
|
79025
80537
|
/*!**********************!*\
|
79026
80538
|
!*** util (ignored) ***!
|
@@ -79173,7 +80685,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
|
|
79173
80685
|
/***/ ((module) => {
|
79174
80686
|
|
79175
80687
|
"use strict";
|
79176
|
-
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,"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,"LedgerHashes":104,"Amendments":102,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}]],"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,"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,"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,"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},"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,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
80688
|
+
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,"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,"LedgerHashes":104,"Amendments":102,"FeeSettings":115,"Escrow":117,"PayChannel":120,"Check":67,"DepositPreauth":112,"NegativeUNL":78,"NFTokenPage":80,"NFTokenOffer":55,"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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}],["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"}]],"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,"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,"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,"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},"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,"EnableAmendment":100,"SetFee":101,"UNLModify":102}}');
|
79177
80689
|
|
79178
80690
|
/***/ }),
|
79179
80691
|
|