@bigbinary/neetoui 5.1.4 → 5.1.6
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/formik.cjs.js +18 -4
- package/formik.cjs.js.map +1 -1
- package/formik.js +18 -4
- package/formik.js.map +1 -1
- package/index.cjs.js +2941 -356
- package/index.cjs.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +2941 -357
- package/index.js.map +1 -1
- package/layouts.cjs.js.map +1 -1
- package/layouts.js.map +1 -1
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React$5 from 'react';
|
|
2
2
|
import React__default, { createContext, useContext, useRef, useEffect, useLayoutEffect, useCallback, useMemo, forwardRef as forwardRef$1, createElement, useState, cloneElement as cloneElement$1, Children, isValidElement, Fragment, Component } from 'react';
|
|
3
3
|
import { Right, Down, Close, Info, Focus, Left, Calendar, Check, MenuHorizontal, Clock, CheckCircle, Warning, CloseCircle } from '@bigbinary/neeto-icons';
|
|
4
|
-
import { Link, NavLink } from 'react-router-dom';
|
|
4
|
+
import { Link, NavLink, useHistory } from 'react-router-dom';
|
|
5
5
|
import ReactDOM, { createPortal } from 'react-dom';
|
|
6
6
|
import generatePicker from 'antd/lib/date-picker/generatePicker';
|
|
7
7
|
import _Table from 'antd/lib/table';
|
|
8
|
+
import require$$0 from 'util';
|
|
8
9
|
import { t as t$1 } from 'i18next';
|
|
9
10
|
import { Slide, toast } from 'react-toastify';
|
|
10
11
|
|
|
@@ -1227,6 +1228,165 @@ function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
|
|
1227
1228
|
};
|
|
1228
1229
|
}
|
|
1229
1230
|
|
|
1231
|
+
function _xArrayReduce(xf, acc, list) {
|
|
1232
|
+
var idx = 0;
|
|
1233
|
+
var len = list.length;
|
|
1234
|
+
|
|
1235
|
+
while (idx < len) {
|
|
1236
|
+
acc = xf['@@transducer/step'](acc, list[idx]);
|
|
1237
|
+
|
|
1238
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
1239
|
+
acc = acc['@@transducer/value'];
|
|
1240
|
+
break;
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
idx += 1;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
return xf['@@transducer/result'](acc);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Creates a function that is bound to a context.
|
|
1251
|
+
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
|
1252
|
+
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
|
1253
|
+
*
|
|
1254
|
+
* @func
|
|
1255
|
+
* @memberOf R
|
|
1256
|
+
* @since v0.6.0
|
|
1257
|
+
* @category Function
|
|
1258
|
+
* @category Object
|
|
1259
|
+
* @sig (* -> *) -> {*} -> (* -> *)
|
|
1260
|
+
* @param {Function} fn The function to bind to context
|
|
1261
|
+
* @param {Object} thisObj The context to bind `fn` to
|
|
1262
|
+
* @return {Function} A function that will execute in the context of `thisObj`.
|
|
1263
|
+
* @see R.partial
|
|
1264
|
+
* @example
|
|
1265
|
+
*
|
|
1266
|
+
* const log = R.bind(console.log, console);
|
|
1267
|
+
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
|
1268
|
+
* // logs {a: 2}
|
|
1269
|
+
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
|
1270
|
+
*/
|
|
1271
|
+
|
|
1272
|
+
var bind$2 =
|
|
1273
|
+
/*#__PURE__*/
|
|
1274
|
+
_curry2(function bind(fn, thisObj) {
|
|
1275
|
+
return _arity(fn.length, function () {
|
|
1276
|
+
return fn.apply(thisObj, arguments);
|
|
1277
|
+
});
|
|
1278
|
+
});
|
|
1279
|
+
|
|
1280
|
+
function _xIterableReduce(xf, acc, iter) {
|
|
1281
|
+
var step = iter.next();
|
|
1282
|
+
|
|
1283
|
+
while (!step.done) {
|
|
1284
|
+
acc = xf['@@transducer/step'](acc, step.value);
|
|
1285
|
+
|
|
1286
|
+
if (acc && acc['@@transducer/reduced']) {
|
|
1287
|
+
acc = acc['@@transducer/value'];
|
|
1288
|
+
break;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
step = iter.next();
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
return xf['@@transducer/result'](acc);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
function _xMethodReduce(xf, acc, obj, methodName) {
|
|
1298
|
+
return xf['@@transducer/result'](obj[methodName](bind$2(xf['@@transducer/step'], xf), acc));
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
var _xReduce =
|
|
1302
|
+
/*#__PURE__*/
|
|
1303
|
+
_createReduce(_xArrayReduce, _xMethodReduce, _xIterableReduce);
|
|
1304
|
+
|
|
1305
|
+
var XWrap =
|
|
1306
|
+
/*#__PURE__*/
|
|
1307
|
+
function () {
|
|
1308
|
+
function XWrap(fn) {
|
|
1309
|
+
this.f = fn;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
XWrap.prototype['@@transducer/init'] = function () {
|
|
1313
|
+
throw new Error('init not implemented on XWrap');
|
|
1314
|
+
};
|
|
1315
|
+
|
|
1316
|
+
XWrap.prototype['@@transducer/result'] = function (acc) {
|
|
1317
|
+
return acc;
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
|
1321
|
+
return this.f(acc, x);
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
return XWrap;
|
|
1325
|
+
}();
|
|
1326
|
+
|
|
1327
|
+
function _xwrap(fn) {
|
|
1328
|
+
return new XWrap(fn);
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* Returns a single item by iterating through the list, successively calling
|
|
1333
|
+
* the iterator function and passing it an accumulator value and the current
|
|
1334
|
+
* value from the array, and then passing the result to the next call.
|
|
1335
|
+
*
|
|
1336
|
+
* The iterator function receives two values: *(acc, value)*. It may use
|
|
1337
|
+
* [`R.reduced`](#reduced) to shortcut the iteration.
|
|
1338
|
+
*
|
|
1339
|
+
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
|
1340
|
+
* is *(value, acc)*.
|
|
1341
|
+
*
|
|
1342
|
+
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
|
1343
|
+
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
|
1344
|
+
* on this behavior, see:
|
|
1345
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
|
1346
|
+
*
|
|
1347
|
+
* Be cautious of mutating and returning the accumulator. If you reuse it across
|
|
1348
|
+
* invocations, it will continue to accumulate onto the same value. The general
|
|
1349
|
+
* recommendation is to always return a new value. If you can't do so for
|
|
1350
|
+
* performance reasons, then be sure to reinitialize the accumulator on each
|
|
1351
|
+
* invocation.
|
|
1352
|
+
*
|
|
1353
|
+
* Dispatches to the `reduce` method of the third argument, if present. When
|
|
1354
|
+
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
|
1355
|
+
* shortcuting, as this is not implemented by `reduce`.
|
|
1356
|
+
*
|
|
1357
|
+
* @func
|
|
1358
|
+
* @memberOf R
|
|
1359
|
+
* @since v0.1.0
|
|
1360
|
+
* @category List
|
|
1361
|
+
* @sig ((a, b) -> a) -> a -> [b] -> a
|
|
1362
|
+
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
|
1363
|
+
* current element from the array.
|
|
1364
|
+
* @param {*} acc The accumulator value.
|
|
1365
|
+
* @param {Array} list The list to iterate over.
|
|
1366
|
+
* @return {*} The final, accumulated value.
|
|
1367
|
+
* @see R.reduced, R.addIndex, R.reduceRight
|
|
1368
|
+
* @example
|
|
1369
|
+
*
|
|
1370
|
+
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
|
1371
|
+
* // - -10
|
|
1372
|
+
* // / \ / \
|
|
1373
|
+
* // - 4 -6 4
|
|
1374
|
+
* // / \ / \
|
|
1375
|
+
* // - 3 ==> -3 3
|
|
1376
|
+
* // / \ / \
|
|
1377
|
+
* // - 2 -1 2
|
|
1378
|
+
* // / \ / \
|
|
1379
|
+
* // 0 1 0 1
|
|
1380
|
+
*
|
|
1381
|
+
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
|
1382
|
+
*/
|
|
1383
|
+
|
|
1384
|
+
var reduce =
|
|
1385
|
+
/*#__PURE__*/
|
|
1386
|
+
_curry3(function (xf, acc, list) {
|
|
1387
|
+
return _xReduce(typeof xf === 'function' ? _xwrap(xf) : xf, acc, list);
|
|
1388
|
+
});
|
|
1389
|
+
|
|
1230
1390
|
function _iterableReduce(reducer, acc, iter) {
|
|
1231
1391
|
var step = iter.next();
|
|
1232
1392
|
|
|
@@ -1516,6 +1676,205 @@ var complement =
|
|
|
1516
1676
|
/*#__PURE__*/
|
|
1517
1677
|
lift(not);
|
|
1518
1678
|
|
|
1679
|
+
function _pipe(f, g) {
|
|
1680
|
+
return function () {
|
|
1681
|
+
return g.call(this, f.apply(this, arguments));
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* This checks whether a function has a [methodname] function. If it isn't an
|
|
1687
|
+
* array it will execute that function otherwise it will default to the ramda
|
|
1688
|
+
* implementation.
|
|
1689
|
+
*
|
|
1690
|
+
* @private
|
|
1691
|
+
* @param {Function} fn ramda implementation
|
|
1692
|
+
* @param {String} methodname property to check for a custom implementation
|
|
1693
|
+
* @return {Object} Whatever the return value of the method is.
|
|
1694
|
+
*/
|
|
1695
|
+
|
|
1696
|
+
function _checkForMethod(methodname, fn) {
|
|
1697
|
+
return function () {
|
|
1698
|
+
var length = arguments.length;
|
|
1699
|
+
|
|
1700
|
+
if (length === 0) {
|
|
1701
|
+
return fn();
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
var obj = arguments[length - 1];
|
|
1705
|
+
return _isArray$1(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
|
|
1706
|
+
};
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
/**
|
|
1710
|
+
* Returns the elements of the given list or string (or object with a `slice`
|
|
1711
|
+
* method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
|
|
1712
|
+
*
|
|
1713
|
+
* Dispatches to the `slice` method of the third argument, if present.
|
|
1714
|
+
*
|
|
1715
|
+
* @func
|
|
1716
|
+
* @memberOf R
|
|
1717
|
+
* @since v0.1.4
|
|
1718
|
+
* @category List
|
|
1719
|
+
* @sig Number -> Number -> [a] -> [a]
|
|
1720
|
+
* @sig Number -> Number -> String -> String
|
|
1721
|
+
* @param {Number} fromIndex The start index (inclusive).
|
|
1722
|
+
* @param {Number} toIndex The end index (exclusive).
|
|
1723
|
+
* @param {*} list
|
|
1724
|
+
* @return {*}
|
|
1725
|
+
* @example
|
|
1726
|
+
*
|
|
1727
|
+
* R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
1728
|
+
* R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
|
|
1729
|
+
* R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
|
|
1730
|
+
* R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
|
1731
|
+
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
|
1732
|
+
*/
|
|
1733
|
+
|
|
1734
|
+
var slice$2 =
|
|
1735
|
+
/*#__PURE__*/
|
|
1736
|
+
_curry3(
|
|
1737
|
+
/*#__PURE__*/
|
|
1738
|
+
_checkForMethod('slice', function slice(fromIndex, toIndex, list) {
|
|
1739
|
+
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
|
1740
|
+
}));
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Returns all but the first element of the given list or string (or object
|
|
1744
|
+
* with a `tail` method).
|
|
1745
|
+
*
|
|
1746
|
+
* Dispatches to the `slice` method of the first argument, if present.
|
|
1747
|
+
*
|
|
1748
|
+
* @func
|
|
1749
|
+
* @memberOf R
|
|
1750
|
+
* @since v0.1.0
|
|
1751
|
+
* @category List
|
|
1752
|
+
* @sig [a] -> [a]
|
|
1753
|
+
* @sig String -> String
|
|
1754
|
+
* @param {*} list
|
|
1755
|
+
* @return {*}
|
|
1756
|
+
* @see R.head, R.init, R.last
|
|
1757
|
+
* @example
|
|
1758
|
+
*
|
|
1759
|
+
* R.tail([1, 2, 3]); //=> [2, 3]
|
|
1760
|
+
* R.tail([1, 2]); //=> [2]
|
|
1761
|
+
* R.tail([1]); //=> []
|
|
1762
|
+
* R.tail([]); //=> []
|
|
1763
|
+
*
|
|
1764
|
+
* R.tail('abc'); //=> 'bc'
|
|
1765
|
+
* R.tail('ab'); //=> 'b'
|
|
1766
|
+
* R.tail('a'); //=> ''
|
|
1767
|
+
* R.tail(''); //=> ''
|
|
1768
|
+
*/
|
|
1769
|
+
|
|
1770
|
+
var tail =
|
|
1771
|
+
/*#__PURE__*/
|
|
1772
|
+
_curry1(
|
|
1773
|
+
/*#__PURE__*/
|
|
1774
|
+
_checkForMethod('tail',
|
|
1775
|
+
/*#__PURE__*/
|
|
1776
|
+
slice$2(1, Infinity)));
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Performs left-to-right function composition. The first argument may have
|
|
1780
|
+
* any arity; the remaining arguments must be unary.
|
|
1781
|
+
*
|
|
1782
|
+
* In some libraries this function is named `sequence`.
|
|
1783
|
+
*
|
|
1784
|
+
* **Note:** The result of pipe is not automatically curried.
|
|
1785
|
+
*
|
|
1786
|
+
* @func
|
|
1787
|
+
* @memberOf R
|
|
1788
|
+
* @since v0.1.0
|
|
1789
|
+
* @category Function
|
|
1790
|
+
* @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
|
|
1791
|
+
* @param {...Function} functions
|
|
1792
|
+
* @return {Function}
|
|
1793
|
+
* @see R.compose
|
|
1794
|
+
* @example
|
|
1795
|
+
*
|
|
1796
|
+
* const f = R.pipe(Math.pow, R.negate, R.inc);
|
|
1797
|
+
*
|
|
1798
|
+
* f(3, 4); // -(3^4) + 1
|
|
1799
|
+
* @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))
|
|
1800
|
+
* @symb R.pipe(f, g, h)(a)(b) = h(g(f(a)))(b)
|
|
1801
|
+
*/
|
|
1802
|
+
|
|
1803
|
+
function pipe$1() {
|
|
1804
|
+
if (arguments.length === 0) {
|
|
1805
|
+
throw new Error('pipe requires at least one argument');
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
return _arity(arguments[0].length, reduce(_pipe, arguments[0], tail(arguments)));
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Returns a curried equivalent of the provided function. The curried function
|
|
1813
|
+
* has two unusual capabilities. First, its arguments needn't be provided one
|
|
1814
|
+
* at a time. If `f` is a ternary function and `g` is `R.curry(f)`, the
|
|
1815
|
+
* following are equivalent:
|
|
1816
|
+
*
|
|
1817
|
+
* - `g(1)(2)(3)`
|
|
1818
|
+
* - `g(1)(2, 3)`
|
|
1819
|
+
* - `g(1, 2)(3)`
|
|
1820
|
+
* - `g(1, 2, 3)`
|
|
1821
|
+
*
|
|
1822
|
+
* Secondly, the special placeholder value [`R.__`](#__) may be used to specify
|
|
1823
|
+
* "gaps", allowing partial application of any combination of arguments,
|
|
1824
|
+
* regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
|
|
1825
|
+
* the following are equivalent:
|
|
1826
|
+
*
|
|
1827
|
+
* - `g(1, 2, 3)`
|
|
1828
|
+
* - `g(_, 2, 3)(1)`
|
|
1829
|
+
* - `g(_, _, 3)(1)(2)`
|
|
1830
|
+
* - `g(_, _, 3)(1, 2)`
|
|
1831
|
+
* - `g(_, 2)(1)(3)`
|
|
1832
|
+
* - `g(_, 2)(1, 3)`
|
|
1833
|
+
* - `g(_, 2)(_, 3)(1)`
|
|
1834
|
+
*
|
|
1835
|
+
* Please note that default parameters don't count towards a [function arity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length)
|
|
1836
|
+
* and therefore `curry` won't work well with those:
|
|
1837
|
+
*
|
|
1838
|
+
* ```
|
|
1839
|
+
* const h = R.curry((a, b, c = 2) => a + b + c);
|
|
1840
|
+
*
|
|
1841
|
+
* h(40);
|
|
1842
|
+
* //=> function (waits for `b`)
|
|
1843
|
+
*
|
|
1844
|
+
* h(39)(1);
|
|
1845
|
+
* //=> 42
|
|
1846
|
+
*
|
|
1847
|
+
* h(1)(2, 3);
|
|
1848
|
+
* //=> 6
|
|
1849
|
+
*
|
|
1850
|
+
* h(1)(2)(7);
|
|
1851
|
+
* //=> Error! (`3` is not a function!)
|
|
1852
|
+
* ```
|
|
1853
|
+
*
|
|
1854
|
+
* @func
|
|
1855
|
+
* @memberOf R
|
|
1856
|
+
* @since v0.1.0
|
|
1857
|
+
* @category Function
|
|
1858
|
+
* @sig (* -> a) -> (* -> a)
|
|
1859
|
+
* @param {Function} fn The function to curry.
|
|
1860
|
+
* @return {Function} A new, curried function.
|
|
1861
|
+
* @see R.curryN, R.partial
|
|
1862
|
+
* @example
|
|
1863
|
+
*
|
|
1864
|
+
* const addFourNumbers = (a, b, c, d) => a + b + c + d;
|
|
1865
|
+
*
|
|
1866
|
+
* const curriedAddFourNumbers = R.curry(addFourNumbers);
|
|
1867
|
+
* const f = curriedAddFourNumbers(1, 2);
|
|
1868
|
+
* const g = f(3);
|
|
1869
|
+
* g(4); //=> 10
|
|
1870
|
+
*/
|
|
1871
|
+
|
|
1872
|
+
var curry =
|
|
1873
|
+
/*#__PURE__*/
|
|
1874
|
+
_curry1(function curry(fn) {
|
|
1875
|
+
return curryN(fn.length, fn);
|
|
1876
|
+
});
|
|
1877
|
+
|
|
1519
1878
|
/**
|
|
1520
1879
|
* Tests whether or not an object is a typed array.
|
|
1521
1880
|
*
|
|
@@ -1687,6 +2046,78 @@ _curry3(function (from, to, list) {
|
|
|
1687
2046
|
return positiveFrom < 0 || positiveFrom >= list.length || positiveTo < 0 || positiveTo >= list.length ? list : [].concat(result.slice(0, positiveTo)).concat(item).concat(result.slice(positiveTo, list.length));
|
|
1688
2047
|
});
|
|
1689
2048
|
|
|
2049
|
+
/**
|
|
2050
|
+
* Returns a partial copy of an object omitting the keys specified.
|
|
2051
|
+
*
|
|
2052
|
+
* @func
|
|
2053
|
+
* @memberOf R
|
|
2054
|
+
* @since v0.1.0
|
|
2055
|
+
* @category Object
|
|
2056
|
+
* @sig [String] -> {String: *} -> {String: *}
|
|
2057
|
+
* @param {Array} names an array of String property names to omit from the new object
|
|
2058
|
+
* @param {Object} obj The object to copy from
|
|
2059
|
+
* @return {Object} A new object with properties from `names` not on it.
|
|
2060
|
+
* @see R.pick
|
|
2061
|
+
* @example
|
|
2062
|
+
*
|
|
2063
|
+
* R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
|
|
2064
|
+
*/
|
|
2065
|
+
|
|
2066
|
+
var omit =
|
|
2067
|
+
/*#__PURE__*/
|
|
2068
|
+
_curry2(function omit(names, obj) {
|
|
2069
|
+
var result = {};
|
|
2070
|
+
var index = {};
|
|
2071
|
+
var idx = 0;
|
|
2072
|
+
var len = names.length;
|
|
2073
|
+
|
|
2074
|
+
while (idx < len) {
|
|
2075
|
+
index[names[idx]] = 1;
|
|
2076
|
+
idx += 1;
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
for (var prop in obj) {
|
|
2080
|
+
if (!index.hasOwnProperty(prop)) {
|
|
2081
|
+
result[prop] = obj[prop];
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
return result;
|
|
2086
|
+
});
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Converts an object into an array of key, value arrays. Only the object's
|
|
2090
|
+
* own properties are used.
|
|
2091
|
+
* Note that the order of the output array is not guaranteed to be consistent
|
|
2092
|
+
* across different JS platforms.
|
|
2093
|
+
*
|
|
2094
|
+
* @func
|
|
2095
|
+
* @memberOf R
|
|
2096
|
+
* @since v0.4.0
|
|
2097
|
+
* @category Object
|
|
2098
|
+
* @sig {String: *} -> [[String,*]]
|
|
2099
|
+
* @param {Object} obj The object to extract from
|
|
2100
|
+
* @return {Array} An array of key, value arrays from the object's own properties.
|
|
2101
|
+
* @see R.fromPairs, R.keys, R.values
|
|
2102
|
+
* @example
|
|
2103
|
+
*
|
|
2104
|
+
* R.toPairs({a: 1, b: 2, c: 3}); //=> [['a', 1], ['b', 2], ['c', 3]]
|
|
2105
|
+
*/
|
|
2106
|
+
|
|
2107
|
+
var toPairs =
|
|
2108
|
+
/*#__PURE__*/
|
|
2109
|
+
_curry1(function toPairs(obj) {
|
|
2110
|
+
var pairs = [];
|
|
2111
|
+
|
|
2112
|
+
for (var prop in obj) {
|
|
2113
|
+
if (_has$1(prop, obj)) {
|
|
2114
|
+
pairs[pairs.length] = [prop, obj[prop]];
|
|
2115
|
+
}
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
return pairs;
|
|
2119
|
+
});
|
|
2120
|
+
|
|
1690
2121
|
function _extends$4() {
|
|
1691
2122
|
_extends$4 = Object.assign ? Object.assign.bind() : function (target) {
|
|
1692
2123
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -2416,7 +2847,7 @@ var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
|
|
|
2416
2847
|
var floatRegex = /(-)?([\d]*\.?[\d])+/g;
|
|
2417
2848
|
var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
|
|
2418
2849
|
var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
|
|
2419
|
-
function isString$
|
|
2850
|
+
function isString$3(v) {
|
|
2420
2851
|
return typeof v === 'string';
|
|
2421
2852
|
}
|
|
2422
2853
|
|
|
@@ -2430,7 +2861,7 @@ var scale = __assign(__assign({}, number), { default: 1 });
|
|
|
2430
2861
|
|
|
2431
2862
|
var createUnitType = function (unit) { return ({
|
|
2432
2863
|
test: function (v) {
|
|
2433
|
-
return isString$
|
|
2864
|
+
return isString$3(v) && v.endsWith(unit) && v.split(' ').length === 1;
|
|
2434
2865
|
},
|
|
2435
2866
|
parse: parseFloat,
|
|
2436
2867
|
transform: function (v) { return "" + v + unit; },
|
|
@@ -2443,12 +2874,12 @@ var vw = createUnitType('vw');
|
|
|
2443
2874
|
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
2444
2875
|
|
|
2445
2876
|
var isColorString = function (type, testProp) { return function (v) {
|
|
2446
|
-
return Boolean((isString$
|
|
2877
|
+
return Boolean((isString$3(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
|
|
2447
2878
|
(testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
|
|
2448
2879
|
}; };
|
|
2449
2880
|
var splitColor = function (aName, bName, cName) { return function (v) {
|
|
2450
2881
|
var _a;
|
|
2451
|
-
if (!isString$
|
|
2882
|
+
if (!isString$3(v))
|
|
2452
2883
|
return v;
|
|
2453
2884
|
var _b = v.match(floatRegex), a = _b[0], b = _b[1], c = _b[2], alpha = _b[3];
|
|
2454
2885
|
return _a = {},
|
|
@@ -2543,7 +2974,7 @@ var color = {
|
|
|
2543
2974
|
}
|
|
2544
2975
|
},
|
|
2545
2976
|
transform: function (v) {
|
|
2546
|
-
return isString$
|
|
2977
|
+
return isString$3(v)
|
|
2547
2978
|
? v
|
|
2548
2979
|
: v.hasOwnProperty('red')
|
|
2549
2980
|
? rgba.transform(v)
|
|
@@ -2556,7 +2987,7 @@ var numberToken = '${n}';
|
|
|
2556
2987
|
function test(v) {
|
|
2557
2988
|
var _a, _b, _c, _d;
|
|
2558
2989
|
return (isNaN(v) &&
|
|
2559
|
-
isString$
|
|
2990
|
+
isString$3(v) &&
|
|
2560
2991
|
((_b = (_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = v.match(colorRegex)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
|
|
2561
2992
|
}
|
|
2562
2993
|
function analyse$1(v) {
|
|
@@ -2575,7 +3006,7 @@ function analyse$1(v) {
|
|
|
2575
3006
|
}
|
|
2576
3007
|
return { values: values, numColors: numColors, tokenised: v };
|
|
2577
3008
|
}
|
|
2578
|
-
function parse$
|
|
3009
|
+
function parse$3(v) {
|
|
2579
3010
|
return analyse$1(v).values;
|
|
2580
3011
|
}
|
|
2581
3012
|
function createTransformer(v) {
|
|
@@ -2593,11 +3024,11 @@ var convertNumbersToZero = function (v) {
|
|
|
2593
3024
|
return typeof v === 'number' ? 0 : v;
|
|
2594
3025
|
};
|
|
2595
3026
|
function getAnimatableNone$1(v) {
|
|
2596
|
-
var parsed = parse$
|
|
3027
|
+
var parsed = parse$3(v);
|
|
2597
3028
|
var transformer = createTransformer(v);
|
|
2598
3029
|
return transformer(parsed.map(convertNumbersToZero));
|
|
2599
3030
|
}
|
|
2600
|
-
var complex = { test: test, parse: parse$
|
|
3031
|
+
var complex = { test: test, parse: parse$3, createTransformer: createTransformer, getAnimatableNone: getAnimatableNone$1 };
|
|
2601
3032
|
|
|
2602
3033
|
var maxDefaults = new Set(['brightness', 'contrast', 'saturate', 'opacity']);
|
|
2603
3034
|
function applyDefaultFilter(v) {
|
|
@@ -10208,7 +10639,7 @@ var UniqueArray = /*#__PURE__*/function () {
|
|
|
10208
10639
|
var renderFocusOnFocusableElements = function renderFocusOnFocusableElements(ref) {
|
|
10209
10640
|
var _ref$current, _ref$current2;
|
|
10210
10641
|
var shouldFocusFirstFocusableElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
10211
|
-
var focusableElements = '[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
10642
|
+
var focusableElements = 'button,[href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
10212
10643
|
var firstFocusableElement = ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelectorAll(focusableElements)[0];
|
|
10213
10644
|
var focusableContent = ref === null || ref === void 0 ? void 0 : (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelectorAll(focusableElements);
|
|
10214
10645
|
var lastFocusableElement = focusableContent[(focusableContent === null || focusableContent === void 0 ? void 0 : focusableContent.length) - 1];
|
|
@@ -10391,7 +10822,7 @@ function getWindow$1(node) {
|
|
|
10391
10822
|
return node;
|
|
10392
10823
|
}
|
|
10393
10824
|
|
|
10394
|
-
function isElement$
|
|
10825
|
+
function isElement$3(node) {
|
|
10395
10826
|
var OwnElement = getWindow$1(node).Element;
|
|
10396
10827
|
return node instanceof OwnElement || node instanceof Element;
|
|
10397
10828
|
}
|
|
@@ -10536,7 +10967,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
10536
10967
|
scaleY = element.offsetHeight > 0 ? round$1(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
10537
10968
|
}
|
|
10538
10969
|
|
|
10539
|
-
var _ref = isElement$
|
|
10970
|
+
var _ref = isElement$3(element) ? getWindow$1(element) : window,
|
|
10540
10971
|
visualViewport = _ref.visualViewport;
|
|
10541
10972
|
|
|
10542
10973
|
var addVisualOffsets = !isLayoutViewport$1() && isFixedStrategy;
|
|
@@ -10614,7 +11045,7 @@ function isTableElement(element) {
|
|
|
10614
11045
|
|
|
10615
11046
|
function getDocumentElement$1(element) {
|
|
10616
11047
|
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
10617
|
-
return ((isElement$
|
|
11048
|
+
return ((isElement$3(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
10618
11049
|
element.document) || window.document).documentElement;
|
|
10619
11050
|
}
|
|
10620
11051
|
|
|
@@ -11191,7 +11622,7 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
11191
11622
|
}
|
|
11192
11623
|
|
|
11193
11624
|
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
11194
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$
|
|
11625
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement$3(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement$1(element)));
|
|
11195
11626
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
11196
11627
|
// clipping (or hiding) overflowing elements with a position different from
|
|
11197
11628
|
// `initial`
|
|
@@ -11202,13 +11633,13 @@ function getClippingParents(element) {
|
|
|
11202
11633
|
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
11203
11634
|
var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent(element) : element;
|
|
11204
11635
|
|
|
11205
|
-
if (!isElement$
|
|
11636
|
+
if (!isElement$3(clipperElement)) {
|
|
11206
11637
|
return [];
|
|
11207
11638
|
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
11208
11639
|
|
|
11209
11640
|
|
|
11210
11641
|
return clippingParents.filter(function (clippingParent) {
|
|
11211
|
-
return isElement$
|
|
11642
|
+
return isElement$3(clippingParent) && contains(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
|
|
11212
11643
|
});
|
|
11213
11644
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
11214
11645
|
// clipping parents
|
|
@@ -11322,7 +11753,7 @@ function detectOverflow(state, options) {
|
|
|
11322
11753
|
var altContext = elementContext === popper ? reference : popper;
|
|
11323
11754
|
var popperRect = state.rects.popper;
|
|
11324
11755
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
11325
|
-
var clippingClientRect = getClippingRect(isElement$
|
|
11756
|
+
var clippingClientRect = getClippingRect(isElement$3(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary, strategy);
|
|
11326
11757
|
var referenceClientRect = getBoundingClientRect$1(state.elements.reference);
|
|
11327
11758
|
var popperOffsets = computeOffsets({
|
|
11328
11759
|
reference: referenceClientRect,
|
|
@@ -11995,7 +12426,7 @@ function popperGenerator(generatorOptions) {
|
|
|
11995
12426
|
cleanupModifierEffects();
|
|
11996
12427
|
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
11997
12428
|
state.scrollParents = {
|
|
11998
|
-
reference: isElement$
|
|
12429
|
+
reference: isElement$3(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
11999
12430
|
popper: listScrollParents(popper)
|
|
12000
12431
|
}; // Orders the modifiers based on their dependencies and `phase`
|
|
12001
12432
|
// properties
|
|
@@ -12221,7 +12652,7 @@ function removeUndefinedProps(obj) {
|
|
|
12221
12652
|
function div() {
|
|
12222
12653
|
return document.createElement('div');
|
|
12223
12654
|
}
|
|
12224
|
-
function isElement$
|
|
12655
|
+
function isElement$2(value) {
|
|
12225
12656
|
return ['Element', 'Fragment'].some(function (type) {
|
|
12226
12657
|
return isType(value, type);
|
|
12227
12658
|
});
|
|
@@ -12236,7 +12667,7 @@ function isReferenceElement(value) {
|
|
|
12236
12667
|
return !!(value && value._tippy && value._tippy.reference === value);
|
|
12237
12668
|
}
|
|
12238
12669
|
function getArrayOfElements(value) {
|
|
12239
|
-
if (isElement$
|
|
12670
|
+
if (isElement$2(value)) {
|
|
12240
12671
|
return [value];
|
|
12241
12672
|
}
|
|
12242
12673
|
|
|
@@ -12524,7 +12955,7 @@ function createArrowElement(value) {
|
|
|
12524
12955
|
} else {
|
|
12525
12956
|
arrow.className = SVG_ARROW_CLASS;
|
|
12526
12957
|
|
|
12527
|
-
if (isElement$
|
|
12958
|
+
if (isElement$2(value)) {
|
|
12528
12959
|
arrow.appendChild(value);
|
|
12529
12960
|
} else {
|
|
12530
12961
|
dangerouslySetInnerHTML(arrow, value);
|
|
@@ -12535,7 +12966,7 @@ function createArrowElement(value) {
|
|
|
12535
12966
|
}
|
|
12536
12967
|
|
|
12537
12968
|
function setContent(content, props) {
|
|
12538
|
-
if (isElement$
|
|
12969
|
+
if (isElement$2(props.content)) {
|
|
12539
12970
|
dangerouslySetInnerHTML(content, '');
|
|
12540
12971
|
content.appendChild(props.content);
|
|
12541
12972
|
} else if (typeof props.content !== 'function') {
|
|
@@ -13606,7 +14037,7 @@ function tippy(targets, optionalProps) {
|
|
|
13606
14037
|
|
|
13607
14038
|
return acc;
|
|
13608
14039
|
}, []);
|
|
13609
|
-
return isElement$
|
|
14040
|
+
return isElement$2(targets) ? instances[0] : instances;
|
|
13610
14041
|
}
|
|
13611
14042
|
|
|
13612
14043
|
tippy.defaultProps = defaultProps$2;
|
|
@@ -17326,6 +17757,10 @@ var SIZES$6 = {
|
|
|
17326
17757
|
medium: "medium",
|
|
17327
17758
|
large: "large"
|
|
17328
17759
|
};
|
|
17760
|
+
var FOCUSABLE_ELEMENTS = {
|
|
17761
|
+
submit: "submit",
|
|
17762
|
+
cancel: "cancel"
|
|
17763
|
+
};
|
|
17329
17764
|
var Alert = function Alert(_ref) {
|
|
17330
17765
|
var _ref$size = _ref.size,
|
|
17331
17766
|
size = _ref$size === void 0 ? SIZES$6.medium : _ref$size,
|
|
@@ -17354,8 +17789,14 @@ var Alert = function Alert(_ref) {
|
|
|
17354
17789
|
_ref$submitButtonLabe = _ref.submitButtonLabel,
|
|
17355
17790
|
submitButtonLabel = _ref$submitButtonLabe === void 0 ? "Continue" : _ref$submitButtonLabe,
|
|
17356
17791
|
_ref$cancelButtonLabe = _ref.cancelButtonLabel,
|
|
17357
|
-
cancelButtonLabel = _ref$cancelButtonLabe === void 0 ? "Cancel" : _ref$cancelButtonLabe
|
|
17358
|
-
|
|
17792
|
+
cancelButtonLabel = _ref$cancelButtonLabe === void 0 ? "Cancel" : _ref$cancelButtonLabe,
|
|
17793
|
+
initialFocusRef = _ref.initialFocusRef,
|
|
17794
|
+
initialFocusElement = _ref.initialFocusElement;
|
|
17795
|
+
var submitButtonRef = useRef(null);
|
|
17796
|
+
var cancelButtonRef = useRef(null);
|
|
17797
|
+
var hasCustomFocusableElement = !!initialFocusRef || initialFocusElement;
|
|
17798
|
+
var initialFocusElementRef = initialFocusElement === FOCUSABLE_ELEMENTS.submit ? submitButtonRef : cancelButtonRef;
|
|
17799
|
+
return /*#__PURE__*/React__default.createElement(Modal, _extends$4({
|
|
17359
17800
|
backdropClassName: backdropClassName,
|
|
17360
17801
|
className: className,
|
|
17361
17802
|
closeButton: closeButton,
|
|
@@ -17364,7 +17805,9 @@ var Alert = function Alert(_ref) {
|
|
|
17364
17805
|
isOpen: isOpen,
|
|
17365
17806
|
size: size,
|
|
17366
17807
|
onClose: onClose
|
|
17367
|
-
},
|
|
17808
|
+
}, hasCustomFocusableElement && {
|
|
17809
|
+
initialFocusRef: initialFocusRef || initialFocusElementRef
|
|
17810
|
+
}), /*#__PURE__*/React__default.createElement(Modal.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
17368
17811
|
"data-cy": "alert-title",
|
|
17369
17812
|
style: "h2"
|
|
17370
17813
|
}, title)), /*#__PURE__*/React__default.createElement(Modal.Body, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -17378,11 +17821,13 @@ var Alert = function Alert(_ref) {
|
|
|
17378
17821
|
disabled: !isOpen,
|
|
17379
17822
|
label: submitButtonLabel,
|
|
17380
17823
|
loading: isSubmitting,
|
|
17824
|
+
ref: submitButtonRef,
|
|
17381
17825
|
style: "danger",
|
|
17382
17826
|
onClick: onSubmit
|
|
17383
17827
|
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
17384
17828
|
"data-cy": "alert-cancel-button",
|
|
17385
17829
|
label: cancelButtonLabel,
|
|
17830
|
+
ref: cancelButtonRef,
|
|
17386
17831
|
style: "text",
|
|
17387
17832
|
onClick: onClose
|
|
17388
17833
|
})));
|
|
@@ -20016,7 +20461,7 @@ function _defineProperty$6(obj, key, value) {
|
|
|
20016
20461
|
return obj;
|
|
20017
20462
|
}
|
|
20018
20463
|
|
|
20019
|
-
function ownKeys$
|
|
20464
|
+
function ownKeys$c(object, enumerableOnly) {
|
|
20020
20465
|
var keys = Object.keys(object);
|
|
20021
20466
|
if (Object.getOwnPropertySymbols) {
|
|
20022
20467
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -20029,9 +20474,9 @@ function ownKeys$b(object, enumerableOnly) {
|
|
|
20029
20474
|
function _objectSpread2(target) {
|
|
20030
20475
|
for (var i = 1; i < arguments.length; i++) {
|
|
20031
20476
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
20032
|
-
i % 2 ? ownKeys$
|
|
20477
|
+
i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) {
|
|
20033
20478
|
_defineProperty$6(target, key, source[key]);
|
|
20034
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$
|
|
20479
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) {
|
|
20035
20480
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
20036
20481
|
});
|
|
20037
20482
|
}
|
|
@@ -20340,7 +20785,7 @@ var from = String.fromCharCode;
|
|
|
20340
20785
|
* @param {object}
|
|
20341
20786
|
* @return {object}
|
|
20342
20787
|
*/
|
|
20343
|
-
var assign$
|
|
20788
|
+
var assign$2 = Object.assign;
|
|
20344
20789
|
|
|
20345
20790
|
/**
|
|
20346
20791
|
* @param {string} value
|
|
@@ -20374,7 +20819,7 @@ function match (value, pattern) {
|
|
|
20374
20819
|
* @param {string} replacement
|
|
20375
20820
|
* @return {string}
|
|
20376
20821
|
*/
|
|
20377
|
-
function replace (value, pattern, replacement) {
|
|
20822
|
+
function replace$1 (value, pattern, replacement) {
|
|
20378
20823
|
return value.replace(pattern, replacement)
|
|
20379
20824
|
}
|
|
20380
20825
|
|
|
@@ -20436,7 +20881,7 @@ function append (value, array) {
|
|
|
20436
20881
|
* @param {function} callback
|
|
20437
20882
|
* @return {string}
|
|
20438
20883
|
*/
|
|
20439
|
-
function combine (array, callback) {
|
|
20884
|
+
function combine$1 (array, callback) {
|
|
20440
20885
|
return array.map(callback).join('')
|
|
20441
20886
|
}
|
|
20442
20887
|
|
|
@@ -20466,7 +20911,7 @@ function node (value, root, parent, type, props, children, length) {
|
|
|
20466
20911
|
* @return {object}
|
|
20467
20912
|
*/
|
|
20468
20913
|
function copy (root, props) {
|
|
20469
|
-
return assign$
|
|
20914
|
+
return assign$2(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
|
|
20470
20915
|
}
|
|
20471
20916
|
|
|
20472
20917
|
/**
|
|
@@ -20519,7 +20964,7 @@ function caret () {
|
|
|
20519
20964
|
* @param {number} end
|
|
20520
20965
|
* @return {string}
|
|
20521
20966
|
*/
|
|
20522
|
-
function slice (begin, end) {
|
|
20967
|
+
function slice$1 (begin, end) {
|
|
20523
20968
|
return substr(characters, begin, end)
|
|
20524
20969
|
}
|
|
20525
20970
|
|
|
@@ -20572,7 +21017,7 @@ function dealloc (value) {
|
|
|
20572
21017
|
* @return {string}
|
|
20573
21018
|
*/
|
|
20574
21019
|
function delimit (type) {
|
|
20575
|
-
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
21020
|
+
return trim(slice$1(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
20576
21021
|
}
|
|
20577
21022
|
|
|
20578
21023
|
/**
|
|
@@ -20600,7 +21045,7 @@ function escaping (index, count) {
|
|
|
20600
21045
|
if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
|
|
20601
21046
|
break
|
|
20602
21047
|
|
|
20603
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
|
|
21048
|
+
return slice$1(index, caret() + (count < 6 && peek() == 32 && next() == 32))
|
|
20604
21049
|
}
|
|
20605
21050
|
|
|
20606
21051
|
/**
|
|
@@ -20646,7 +21091,7 @@ function commenter (type, index) {
|
|
|
20646
21091
|
else if (type + character === 42 + 42 && peek() === 47)
|
|
20647
21092
|
break
|
|
20648
21093
|
|
|
20649
|
-
return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
|
|
21094
|
+
return '/*' + slice$1(index, position - 1) + '*' + from(type === 47 ? type : next())
|
|
20650
21095
|
}
|
|
20651
21096
|
|
|
20652
21097
|
/**
|
|
@@ -20657,7 +21102,7 @@ function identifier (index) {
|
|
|
20657
21102
|
while (!token(peek()))
|
|
20658
21103
|
next();
|
|
20659
21104
|
|
|
20660
|
-
return slice(index, position)
|
|
21105
|
+
return slice$1(index, position)
|
|
20661
21106
|
}
|
|
20662
21107
|
|
|
20663
21108
|
/**
|
|
@@ -20665,7 +21110,7 @@ function identifier (index) {
|
|
|
20665
21110
|
* @return {object[]}
|
|
20666
21111
|
*/
|
|
20667
21112
|
function compile$1 (value) {
|
|
20668
|
-
return dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))
|
|
21113
|
+
return dealloc(parse$2('', null, null, null, [''], value = alloc(value), 0, [0], value))
|
|
20669
21114
|
}
|
|
20670
21115
|
|
|
20671
21116
|
/**
|
|
@@ -20680,7 +21125,7 @@ function compile$1 (value) {
|
|
|
20680
21125
|
* @param {string[]} declarations
|
|
20681
21126
|
* @return {object}
|
|
20682
21127
|
*/
|
|
20683
|
-
function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
21128
|
+
function parse$2 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
20684
21129
|
var index = 0;
|
|
20685
21130
|
var offset = 0;
|
|
20686
21131
|
var length = pseudo;
|
|
@@ -20702,7 +21147,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
20702
21147
|
// (
|
|
20703
21148
|
case 40:
|
|
20704
21149
|
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
20705
|
-
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
|
|
21150
|
+
if (indexof(characters += replace$1(delimit(character), '&', '&\f'), '&\f') != -1)
|
|
20706
21151
|
ampersand = -1;
|
|
20707
21152
|
break
|
|
20708
21153
|
}
|
|
@@ -20739,7 +21184,7 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
20739
21184
|
// ;
|
|
20740
21185
|
case 59 + offset:
|
|
20741
21186
|
if (property > 0 && (strlen(characters) - length))
|
|
20742
|
-
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
|
21187
|
+
append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace$1(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
|
20743
21188
|
break
|
|
20744
21189
|
// @ ;
|
|
20745
21190
|
case 59: characters += ';';
|
|
@@ -20749,15 +21194,15 @@ function parse (value, root, parent, rule, rules, rulesets, pseudo, points, decl
|
|
|
20749
21194
|
|
|
20750
21195
|
if (character === 123)
|
|
20751
21196
|
if (offset === 0)
|
|
20752
|
-
parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
21197
|
+
parse$2(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
20753
21198
|
else
|
|
20754
21199
|
switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
20755
21200
|
// d m s
|
|
20756
21201
|
case 100: case 109: case 115:
|
|
20757
|
-
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
21202
|
+
parse$2(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
20758
21203
|
break
|
|
20759
21204
|
default:
|
|
20760
|
-
parse(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
21205
|
+
parse$2(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
20761
21206
|
}
|
|
20762
21207
|
}
|
|
20763
21208
|
|
|
@@ -20821,7 +21266,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
|
|
|
20821
21266
|
|
|
20822
21267
|
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
20823
21268
|
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
|
|
20824
|
-
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
|
|
21269
|
+
if (z = trim(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
|
|
20825
21270
|
props[k++] = z;
|
|
20826
21271
|
|
|
20827
21272
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
|
|
@@ -20870,7 +21315,7 @@ function serialize (children, callback) {
|
|
|
20870
21315
|
* @param {function} callback
|
|
20871
21316
|
* @return {string}
|
|
20872
21317
|
*/
|
|
20873
|
-
function stringify (element, index, children, callback) {
|
|
21318
|
+
function stringify$2 (element, index, children, callback) {
|
|
20874
21319
|
switch (element.type) {
|
|
20875
21320
|
case IMPORT: case DECLARATION: return element.return = element.return || element.value
|
|
20876
21321
|
case COMMENT: return ''
|
|
@@ -20952,7 +21397,7 @@ var identifierWithPointTracking = function identifierWithPointTracking(begin, po
|
|
|
20952
21397
|
next();
|
|
20953
21398
|
}
|
|
20954
21399
|
|
|
20955
|
-
return slice(begin, position);
|
|
21400
|
+
return slice$1(begin, position);
|
|
20956
21401
|
};
|
|
20957
21402
|
|
|
20958
21403
|
var toRules = function toRules(parsed, points) {
|
|
@@ -21116,51 +21561,51 @@ function prefix(value, length) {
|
|
|
21116
21561
|
// align-items
|
|
21117
21562
|
|
|
21118
21563
|
case 5187:
|
|
21119
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
21564
|
+
return WEBKIT + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
21120
21565
|
// align-self
|
|
21121
21566
|
|
|
21122
21567
|
case 5443:
|
|
21123
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
|
21568
|
+
return WEBKIT + value + MS + 'flex-item-' + replace$1(value, /flex-|-self/, '') + value;
|
|
21124
21569
|
// align-content
|
|
21125
21570
|
|
|
21126
21571
|
case 4675:
|
|
21127
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
|
21572
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/, '') + value;
|
|
21128
21573
|
// flex-shrink
|
|
21129
21574
|
|
|
21130
21575
|
case 5548:
|
|
21131
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
21576
|
+
return WEBKIT + value + MS + replace$1(value, 'shrink', 'negative') + value;
|
|
21132
21577
|
// flex-basis
|
|
21133
21578
|
|
|
21134
21579
|
case 5292:
|
|
21135
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
21580
|
+
return WEBKIT + value + MS + replace$1(value, 'basis', 'preferred-size') + value;
|
|
21136
21581
|
// flex-grow
|
|
21137
21582
|
|
|
21138
21583
|
case 6060:
|
|
21139
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
21584
|
+
return WEBKIT + 'box-' + replace$1(value, '-grow', '') + WEBKIT + value + MS + replace$1(value, 'grow', 'positive') + value;
|
|
21140
21585
|
// transition
|
|
21141
21586
|
|
|
21142
21587
|
case 4554:
|
|
21143
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
21588
|
+
return WEBKIT + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
21144
21589
|
// cursor
|
|
21145
21590
|
|
|
21146
21591
|
case 6187:
|
|
21147
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
21592
|
+
return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
21148
21593
|
// background, background-image
|
|
21149
21594
|
|
|
21150
21595
|
case 5495:
|
|
21151
21596
|
case 3959:
|
|
21152
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
21597
|
+
return replace$1(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
21153
21598
|
// justify-content
|
|
21154
21599
|
|
|
21155
21600
|
case 4968:
|
|
21156
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
21601
|
+
return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
21157
21602
|
// (margin|padding)-inline-(start|end)
|
|
21158
21603
|
|
|
21159
21604
|
case 4095:
|
|
21160
21605
|
case 3583:
|
|
21161
21606
|
case 4068:
|
|
21162
21607
|
case 2532:
|
|
21163
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
21608
|
+
return replace$1(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
21164
21609
|
// (min|max)?(width|height|inline-size|block-size)
|
|
21165
21610
|
|
|
21166
21611
|
case 8116:
|
|
@@ -21184,11 +21629,11 @@ function prefix(value, length) {
|
|
|
21184
21629
|
// (f)ill-available, (f)it-content
|
|
21185
21630
|
|
|
21186
21631
|
case 102:
|
|
21187
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
21632
|
+
return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
21188
21633
|
// (s)tretch
|
|
21189
21634
|
|
|
21190
21635
|
case 115:
|
|
21191
|
-
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
21636
|
+
return ~indexof(value, 'stretch') ? prefix(replace$1(value, 'stretch', 'fill-available'), length) + value : value;
|
|
21192
21637
|
}
|
|
21193
21638
|
break;
|
|
21194
21639
|
// position: sticky
|
|
@@ -21202,11 +21647,11 @@ function prefix(value, length) {
|
|
|
21202
21647
|
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
21203
21648
|
// stic(k)y
|
|
21204
21649
|
case 107:
|
|
21205
|
-
return replace(value, ':', ':' + WEBKIT) + value;
|
|
21650
|
+
return replace$1(value, ':', ':' + WEBKIT) + value;
|
|
21206
21651
|
// (inline-)?fl(e)x
|
|
21207
21652
|
|
|
21208
21653
|
case 101:
|
|
21209
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
21654
|
+
return replace$1(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
21210
21655
|
}
|
|
21211
21656
|
|
|
21212
21657
|
break;
|
|
@@ -21216,15 +21661,15 @@ function prefix(value, length) {
|
|
|
21216
21661
|
switch (charat(value, length + 11)) {
|
|
21217
21662
|
// vertical-l(r)
|
|
21218
21663
|
case 114:
|
|
21219
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
21664
|
+
return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
21220
21665
|
// vertical-r(l)
|
|
21221
21666
|
|
|
21222
21667
|
case 108:
|
|
21223
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
21668
|
+
return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
21224
21669
|
// horizontal(-)tb
|
|
21225
21670
|
|
|
21226
21671
|
case 45:
|
|
21227
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
21672
|
+
return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
21228
21673
|
}
|
|
21229
21674
|
|
|
21230
21675
|
return WEBKIT + value + MS + value + value;
|
|
@@ -21241,27 +21686,27 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
21241
21686
|
|
|
21242
21687
|
case KEYFRAMES:
|
|
21243
21688
|
return serialize([copy(element, {
|
|
21244
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
|
21689
|
+
value: replace$1(element.value, '@', '@' + WEBKIT)
|
|
21245
21690
|
})], callback);
|
|
21246
21691
|
|
|
21247
21692
|
case RULESET:
|
|
21248
|
-
if (element.length) return combine(element.props, function (value) {
|
|
21693
|
+
if (element.length) return combine$1(element.props, function (value) {
|
|
21249
21694
|
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
21250
21695
|
// :read-(only|write)
|
|
21251
21696
|
case ':read-only':
|
|
21252
21697
|
case ':read-write':
|
|
21253
21698
|
return serialize([copy(element, {
|
|
21254
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
21699
|
+
props: [replace$1(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
21255
21700
|
})], callback);
|
|
21256
21701
|
// :placeholder
|
|
21257
21702
|
|
|
21258
21703
|
case '::placeholder':
|
|
21259
21704
|
return serialize([copy(element, {
|
|
21260
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
21705
|
+
props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
21261
21706
|
}), copy(element, {
|
|
21262
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
21707
|
+
props: [replace$1(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
21263
21708
|
}), copy(element, {
|
|
21264
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
21709
|
+
props: [replace$1(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
21265
21710
|
})], callback);
|
|
21266
21711
|
}
|
|
21267
21712
|
|
|
@@ -21334,7 +21779,7 @@ var createCache = function createCache(options) {
|
|
|
21334
21779
|
|
|
21335
21780
|
if (isBrowser$3) {
|
|
21336
21781
|
var currentSheet;
|
|
21337
|
-
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
|
21782
|
+
var finalizingPlugins = [stringify$2, rulesheet(function (rule) {
|
|
21338
21783
|
currentSheet.insert(rule);
|
|
21339
21784
|
})];
|
|
21340
21785
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -21353,7 +21798,7 @@ var createCache = function createCache(options) {
|
|
|
21353
21798
|
}
|
|
21354
21799
|
};
|
|
21355
21800
|
} else {
|
|
21356
|
-
var _finalizingPlugins = [stringify];
|
|
21801
|
+
var _finalizingPlugins = [stringify$2];
|
|
21357
21802
|
|
|
21358
21803
|
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
21359
21804
|
|
|
@@ -22077,7 +22522,7 @@ var classnames = function classnames(args) {
|
|
|
22077
22522
|
return cls;
|
|
22078
22523
|
};
|
|
22079
22524
|
|
|
22080
|
-
function merge(registered, css, className) {
|
|
22525
|
+
function merge$1(registered, css, className) {
|
|
22081
22526
|
var registeredStyles = [];
|
|
22082
22527
|
var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
|
|
22083
22528
|
|
|
@@ -22149,7 +22594,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
|
22149
22594
|
args[_key2] = arguments[_key2];
|
|
22150
22595
|
}
|
|
22151
22596
|
|
|
22152
|
-
return merge(cache.registered, css, classnames(args));
|
|
22597
|
+
return merge$1(cache.registered, css, classnames(args));
|
|
22153
22598
|
};
|
|
22154
22599
|
|
|
22155
22600
|
var content = {
|
|
@@ -22279,7 +22724,7 @@ function getUAString() {
|
|
|
22279
22724
|
function isHTMLElement(value) {
|
|
22280
22725
|
return value instanceof getWindow(value).HTMLElement;
|
|
22281
22726
|
}
|
|
22282
|
-
function isElement(value) {
|
|
22727
|
+
function isElement$1(value) {
|
|
22283
22728
|
return value instanceof getWindow(value).Element;
|
|
22284
22729
|
}
|
|
22285
22730
|
function isNode(value) {
|
|
@@ -22337,7 +22782,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
|
22337
22782
|
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
22338
22783
|
}
|
|
22339
22784
|
|
|
22340
|
-
const win = isElement(element) ? getWindow(element) : window;
|
|
22785
|
+
const win = isElement$1(element) ? getWindow(element) : window;
|
|
22341
22786
|
const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
22342
22787
|
const x = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
|
|
22343
22788
|
const y = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
|
|
@@ -22419,7 +22864,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
22419
22864
|
animationFrame = false
|
|
22420
22865
|
} = options;
|
|
22421
22866
|
const ancestorScroll = _ancestorScroll && !animationFrame;
|
|
22422
|
-
const ancestors = ancestorScroll || ancestorResize ? [...(isElement(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
|
|
22867
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(isElement$1(reference) ? getOverflowAncestors(reference) : reference.contextElement ? getOverflowAncestors(reference.contextElement) : []), ...getOverflowAncestors(floating)] : [];
|
|
22423
22868
|
ancestors.forEach(ancestor => {
|
|
22424
22869
|
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
22425
22870
|
passive: true
|
|
@@ -22437,9 +22882,9 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
22437
22882
|
|
|
22438
22883
|
initialUpdate = false;
|
|
22439
22884
|
});
|
|
22440
|
-
isElement(reference) && !animationFrame && observer.observe(reference);
|
|
22885
|
+
isElement$1(reference) && !animationFrame && observer.observe(reference);
|
|
22441
22886
|
|
|
22442
|
-
if (!isElement(reference) && reference.contextElement && !animationFrame) {
|
|
22887
|
+
if (!isElement$1(reference) && reference.contextElement && !animationFrame) {
|
|
22443
22888
|
observer.observe(reference.contextElement);
|
|
22444
22889
|
}
|
|
22445
22890
|
|
|
@@ -22532,7 +22977,7 @@ function classNames(prefix, state, className) {
|
|
|
22532
22977
|
// ==============================
|
|
22533
22978
|
|
|
22534
22979
|
var cleanValue = function cleanValue(value) {
|
|
22535
|
-
if (isArray$
|
|
22980
|
+
if (isArray$5(value)) return value.filter(Boolean);
|
|
22536
22981
|
if (_typeof$4(value) === 'object' && value !== null) return [value];
|
|
22537
22982
|
return [];
|
|
22538
22983
|
};
|
|
@@ -22737,7 +23182,7 @@ var supportsPassiveEvents = passiveOptionAccessed;
|
|
|
22737
23182
|
function notNullish(item) {
|
|
22738
23183
|
return item != null;
|
|
22739
23184
|
}
|
|
22740
|
-
function isArray$
|
|
23185
|
+
function isArray$5(arg) {
|
|
22741
23186
|
return Array.isArray(arg);
|
|
22742
23187
|
}
|
|
22743
23188
|
function valueTernary(isMulti, multiValue, singleValue) {
|
|
@@ -26633,8 +27078,8 @@ var StateManagedSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
26633
27078
|
});
|
|
26634
27079
|
|
|
26635
27080
|
var _excluded$j = ["children"];
|
|
26636
|
-
function ownKeys$
|
|
26637
|
-
function _objectSpread$
|
|
27081
|
+
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27082
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$b(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26638
27083
|
var STYLES$1 = {
|
|
26639
27084
|
border: {
|
|
26640
27085
|
"default": "1px solid rgb(var(--neeto-ui-gray-400))",
|
|
@@ -26671,7 +27116,7 @@ var CUSTOM_STYLES = {
|
|
|
26671
27116
|
input: assoc("overflow", "hidden"),
|
|
26672
27117
|
multiValue: function multiValue(styles, _ref2) {
|
|
26673
27118
|
var valid = _ref2.data.valid;
|
|
26674
|
-
return _objectSpread$
|
|
27119
|
+
return _objectSpread$b(_objectSpread$b({}, styles), {}, {
|
|
26675
27120
|
border: valid ? STYLES$1.border["default"] : STYLES$1.border.error,
|
|
26676
27121
|
color: valid ? STYLES$1.color["default"] : STYLES$1.color.error
|
|
26677
27122
|
});
|
|
@@ -26711,8 +27156,8 @@ var renderDefaultText = function renderDefaultText(count) {
|
|
|
26711
27156
|
};
|
|
26712
27157
|
|
|
26713
27158
|
var _excluded$i = ["label", "placeholder", "helpText", "value", "onChange", "error", "onBlur", "filterInvalidEmails", "counter", "disabled", "maxHeight", "required", "labelProps"];
|
|
26714
|
-
function ownKeys$
|
|
26715
|
-
function _objectSpread$
|
|
27159
|
+
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27160
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$a(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26716
27161
|
var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
26717
27162
|
var _ref$label = _ref.label,
|
|
26718
27163
|
label = _ref$label === void 0 ? "Email(s)" : _ref$label,
|
|
@@ -26826,7 +27271,7 @@ var MultiEmailInput = /*#__PURE__*/forwardRef$1(function (_ref, ref) {
|
|
|
26826
27271
|
className: classnames$1("neeto-ui-react-select__container neeto-ui-email-input__select", {
|
|
26827
27272
|
"neeto-ui-react-select__container--error": !!error
|
|
26828
27273
|
}),
|
|
26829
|
-
styles: _objectSpread$
|
|
27274
|
+
styles: _objectSpread$a(_objectSpread$a({}, CUSTOM_STYLES), {}, {
|
|
26830
27275
|
control: mergeLeft({
|
|
26831
27276
|
maxHeight: "".concat(maxHeight, "px"),
|
|
26832
27277
|
overflowY: "auto"
|
|
@@ -27247,8 +27692,8 @@ var Item$1 = function Item(_ref) {
|
|
|
27247
27692
|
Item$1.displayName = "Radio.Item";
|
|
27248
27693
|
|
|
27249
27694
|
var _excluded$d = ["label", "children", "stacked", "className", "containerClassName", "error", "onChange", "labelProps"];
|
|
27250
|
-
function ownKeys$
|
|
27251
|
-
function _objectSpread$
|
|
27695
|
+
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27696
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27252
27697
|
var Radio = function Radio(_ref) {
|
|
27253
27698
|
var _ref$label = _ref.label,
|
|
27254
27699
|
label = _ref$label === void 0 ? "" : _ref$label,
|
|
@@ -27284,7 +27729,7 @@ var Radio = function Radio(_ref) {
|
|
|
27284
27729
|
}, containerClassName, containerClassName))
|
|
27285
27730
|
}, Children.map(children, function (child) {
|
|
27286
27731
|
var _child$props$checked, _ref2, _child$props$onChange;
|
|
27287
|
-
return /*#__PURE__*/cloneElement$1(child, _objectSpread$
|
|
27732
|
+
return /*#__PURE__*/cloneElement$1(child, _objectSpread$9(_objectSpread$9(_objectSpread$9({}, child.props), props), {}, {
|
|
27288
27733
|
value: child.props.value,
|
|
27289
27734
|
checked: (_child$props$checked = child.props.checked) !== null && _child$props$checked !== void 0 ? _child$props$checked : [internalValue, props.value].includes(child.props.value),
|
|
27290
27735
|
onChange: (_ref2 = (_child$props$onChange = child.props.onChange) !== null && _child$props$onChange !== void 0 ? _child$props$onChange : onChange) !== null && _ref2 !== void 0 ? _ref2 : internalOnChange
|
|
@@ -27446,8 +27891,8 @@ var AsyncCreatableSelect = /*#__PURE__*/forwardRef$1(function (props, ref) {
|
|
|
27446
27891
|
});
|
|
27447
27892
|
|
|
27448
27893
|
var _excluded$b = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
|
|
27449
|
-
function ownKeys$
|
|
27450
|
-
function _objectSpread$
|
|
27894
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27895
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27451
27896
|
var SIZES$3 = {
|
|
27452
27897
|
small: "small",
|
|
27453
27898
|
medium: "medium",
|
|
@@ -27568,7 +28013,7 @@ var Select = function Select(_ref) {
|
|
|
27568
28013
|
"neeto-ui-react-select__container--medium": size === SIZES$3.medium,
|
|
27569
28014
|
"neeto-ui-react-select__container--large": size === SIZES$3.large
|
|
27570
28015
|
}),
|
|
27571
|
-
components: _objectSpread$
|
|
28016
|
+
components: _objectSpread$8({
|
|
27572
28017
|
Input: CustomInput,
|
|
27573
28018
|
DropdownIndicator: DropdownIndicator,
|
|
27574
28019
|
ClearIndicator: ClearIndicator,
|
|
@@ -27892,7 +28337,7 @@ var global$5 = _global.exports;
|
|
|
27892
28337
|
var core$3 = _core.exports;
|
|
27893
28338
|
var ctx = _ctx;
|
|
27894
28339
|
var hide$2 = _hide;
|
|
27895
|
-
var has$
|
|
28340
|
+
var has$a = _has;
|
|
27896
28341
|
var PROTOTYPE$1 = 'prototype';
|
|
27897
28342
|
|
|
27898
28343
|
var $export$6 = function (type, name, source) {
|
|
@@ -27910,7 +28355,7 @@ var $export$6 = function (type, name, source) {
|
|
|
27910
28355
|
for (key in source) {
|
|
27911
28356
|
// contains in native
|
|
27912
28357
|
own = !IS_FORCED && target && target[key] !== undefined;
|
|
27913
|
-
if (own && has$
|
|
28358
|
+
if (own && has$a(exports, key)) continue;
|
|
27914
28359
|
// export native or passed
|
|
27915
28360
|
out = own ? target[key] : source[key];
|
|
27916
28361
|
// prevent global pollution for namespaces
|
|
@@ -28127,7 +28572,7 @@ var _sharedKey = function (key) {
|
|
|
28127
28572
|
return shared$1[key] || (shared$1[key] = uid$2(key));
|
|
28128
28573
|
};
|
|
28129
28574
|
|
|
28130
|
-
var has$
|
|
28575
|
+
var has$9 = _has;
|
|
28131
28576
|
var toIObject$5 = _toIobject;
|
|
28132
28577
|
var arrayIndexOf = _arrayIncludes(false);
|
|
28133
28578
|
var IE_PROTO$1 = _sharedKey('IE_PROTO');
|
|
@@ -28137,9 +28582,9 @@ var _objectKeysInternal = function (object, names) {
|
|
|
28137
28582
|
var i = 0;
|
|
28138
28583
|
var result = [];
|
|
28139
28584
|
var key;
|
|
28140
|
-
for (key in O) if (key != IE_PROTO$1) has$
|
|
28585
|
+
for (key in O) if (key != IE_PROTO$1) has$9(O, key) && result.push(key);
|
|
28141
28586
|
// Don't enum bug & hidden keys
|
|
28142
|
-
while (names.length > i) if (has$
|
|
28587
|
+
while (names.length > i) if (has$9(O, key = names[i++])) {
|
|
28143
28588
|
~arrayIndexOf(result, key) || result.push(key);
|
|
28144
28589
|
}
|
|
28145
28590
|
return result;
|
|
@@ -28264,11 +28709,11 @@ var $exports = _wks.exports = function (name) {
|
|
|
28264
28709
|
$exports.store = store;
|
|
28265
28710
|
|
|
28266
28711
|
var def = require_objectDp().f;
|
|
28267
|
-
var has$
|
|
28712
|
+
var has$8 = _has;
|
|
28268
28713
|
var TAG = _wks.exports('toStringTag');
|
|
28269
28714
|
|
|
28270
28715
|
var _setToStringTag = function (it, tag, stat) {
|
|
28271
|
-
if (it && !has$
|
|
28716
|
+
if (it && !has$8(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
|
|
28272
28717
|
};
|
|
28273
28718
|
|
|
28274
28719
|
var create$2 = require_objectCreate();
|
|
@@ -28291,14 +28736,14 @@ var _toObject = function (it) {
|
|
|
28291
28736
|
};
|
|
28292
28737
|
|
|
28293
28738
|
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
|
28294
|
-
var has$
|
|
28739
|
+
var has$7 = _has;
|
|
28295
28740
|
var toObject$2 = _toObject;
|
|
28296
28741
|
var IE_PROTO = _sharedKey('IE_PROTO');
|
|
28297
28742
|
var ObjectProto$1 = Object.prototype;
|
|
28298
28743
|
|
|
28299
28744
|
var _objectGpo = Object.getPrototypeOf || function (O) {
|
|
28300
28745
|
O = toObject$2(O);
|
|
28301
|
-
if (has$
|
|
28746
|
+
if (has$7(O, IE_PROTO)) return O[IE_PROTO];
|
|
28302
28747
|
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
|
28303
28748
|
return O.constructor.prototype;
|
|
28304
28749
|
} return O instanceof Object ? ObjectProto$1 : null;
|
|
@@ -28458,7 +28903,7 @@ var _meta = {exports: {}};
|
|
|
28458
28903
|
|
|
28459
28904
|
var META$1 = _uid('meta');
|
|
28460
28905
|
var isObject$2 = _isObject;
|
|
28461
|
-
var has$
|
|
28906
|
+
var has$6 = _has;
|
|
28462
28907
|
var setDesc = require_objectDp().f;
|
|
28463
28908
|
var id = 0;
|
|
28464
28909
|
var isExtensible = Object.isExtensible || function () {
|
|
@@ -28476,7 +28921,7 @@ var setMeta = function (it) {
|
|
|
28476
28921
|
var fastKey = function (it, create) {
|
|
28477
28922
|
// return primitive with prefix
|
|
28478
28923
|
if (!isObject$2(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
28479
|
-
if (!has$
|
|
28924
|
+
if (!has$6(it, META$1)) {
|
|
28480
28925
|
// can't set metadata to uncaught frozen object
|
|
28481
28926
|
if (!isExtensible(it)) return 'F';
|
|
28482
28927
|
// not necessary to add metadata
|
|
@@ -28487,7 +28932,7 @@ var fastKey = function (it, create) {
|
|
|
28487
28932
|
} return it[META$1].i;
|
|
28488
28933
|
};
|
|
28489
28934
|
var getWeak = function (it, create) {
|
|
28490
|
-
if (!has$
|
|
28935
|
+
if (!has$6(it, META$1)) {
|
|
28491
28936
|
// can't set metadata to uncaught frozen object
|
|
28492
28937
|
if (!isExtensible(it)) return true;
|
|
28493
28938
|
// not necessary to add metadata
|
|
@@ -28499,7 +28944,7 @@ var getWeak = function (it, create) {
|
|
|
28499
28944
|
};
|
|
28500
28945
|
// add metadata on freeze-family methods calling
|
|
28501
28946
|
var onFreeze = function (it) {
|
|
28502
|
-
if (FREEZE && meta.NEED && isExtensible(it) && !has$
|
|
28947
|
+
if (FREEZE && meta.NEED && isExtensible(it) && !has$6(it, META$1)) setMeta(it);
|
|
28503
28948
|
return it;
|
|
28504
28949
|
};
|
|
28505
28950
|
var meta = _meta.exports = {
|
|
@@ -28537,11 +28982,11 @@ function require_objectPie () {
|
|
|
28537
28982
|
|
|
28538
28983
|
// all enumerable object keys, includes symbols
|
|
28539
28984
|
var getKeys = _objectKeys;
|
|
28540
|
-
var gOPS = _objectGops;
|
|
28985
|
+
var gOPS$1 = _objectGops;
|
|
28541
28986
|
var pIE$1 = require_objectPie();
|
|
28542
28987
|
var _enumKeys = function (it) {
|
|
28543
28988
|
var result = getKeys(it);
|
|
28544
|
-
var getSymbols = gOPS.f;
|
|
28989
|
+
var getSymbols = gOPS$1.f;
|
|
28545
28990
|
if (getSymbols) {
|
|
28546
28991
|
var symbols = getSymbols(it);
|
|
28547
28992
|
var isEnum = pIE$1.f;
|
|
@@ -28602,7 +29047,7 @@ var pIE = require_objectPie();
|
|
|
28602
29047
|
var createDesc$1 = _propertyDesc;
|
|
28603
29048
|
var toIObject$2 = _toIobject;
|
|
28604
29049
|
var toPrimitive$1 = _toPrimitive;
|
|
28605
|
-
var has$
|
|
29050
|
+
var has$5 = _has;
|
|
28606
29051
|
var IE8_DOM_DEFINE = _ie8DomDefine;
|
|
28607
29052
|
var gOPD$1 = Object.getOwnPropertyDescriptor;
|
|
28608
29053
|
|
|
@@ -28612,12 +29057,12 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function getOwnPropertyDescript
|
|
|
28612
29057
|
if (IE8_DOM_DEFINE) try {
|
|
28613
29058
|
return gOPD$1(O, P);
|
|
28614
29059
|
} catch (e) { /* empty */ }
|
|
28615
|
-
if (has$
|
|
29060
|
+
if (has$5(O, P)) return createDesc$1(!pIE.f.call(O, P), O[P]);
|
|
28616
29061
|
};
|
|
28617
29062
|
|
|
28618
29063
|
// ECMAScript 6 symbols shim
|
|
28619
29064
|
var global$1 = _global.exports;
|
|
28620
|
-
var has = _has;
|
|
29065
|
+
var has$4 = _has;
|
|
28621
29066
|
var DESCRIPTORS = require_descriptors();
|
|
28622
29067
|
var $export$3 = _export;
|
|
28623
29068
|
var redefine = _redefine.exports;
|
|
@@ -28630,7 +29075,7 @@ var wks = _wks.exports;
|
|
|
28630
29075
|
var wksExt = _wksExt;
|
|
28631
29076
|
var wksDefine = _wksDefine;
|
|
28632
29077
|
var enumKeys = _enumKeys;
|
|
28633
|
-
var isArray = _isArray;
|
|
29078
|
+
var isArray$4 = _isArray;
|
|
28634
29079
|
var anObject = _anObject;
|
|
28635
29080
|
var isObject$1 = _isObject;
|
|
28636
29081
|
var toObject$1 = _toObject;
|
|
@@ -28680,7 +29125,7 @@ var wrap = function (tag) {
|
|
|
28680
29125
|
return sym;
|
|
28681
29126
|
};
|
|
28682
29127
|
|
|
28683
|
-
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
|
29128
|
+
var isSymbol$1 = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
|
28684
29129
|
return typeof it == 'symbol';
|
|
28685
29130
|
} : function (it) {
|
|
28686
29131
|
return it instanceof $Symbol;
|
|
@@ -28691,12 +29136,12 @@ var $defineProperty = function defineProperty(it, key, D) {
|
|
|
28691
29136
|
anObject(it);
|
|
28692
29137
|
key = toPrimitive(key, true);
|
|
28693
29138
|
anObject(D);
|
|
28694
|
-
if (has(AllSymbols, key)) {
|
|
29139
|
+
if (has$4(AllSymbols, key)) {
|
|
28695
29140
|
if (!D.enumerable) {
|
|
28696
|
-
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
|
|
29141
|
+
if (!has$4(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
|
|
28697
29142
|
it[HIDDEN][key] = true;
|
|
28698
29143
|
} else {
|
|
28699
|
-
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
|
|
29144
|
+
if (has$4(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
|
|
28700
29145
|
D = _create$1(D, { enumerable: createDesc(0, false) });
|
|
28701
29146
|
} return setSymbolDesc(it, key, D);
|
|
28702
29147
|
} return dP(it, key, D);
|
|
@@ -28715,15 +29160,15 @@ var $create = function create(it, P) {
|
|
|
28715
29160
|
};
|
|
28716
29161
|
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
|
|
28717
29162
|
var E = isEnum.call(this, key = toPrimitive(key, true));
|
|
28718
|
-
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
|
|
28719
|
-
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
|
|
29163
|
+
if (this === ObjectProto && has$4(AllSymbols, key) && !has$4(OPSymbols, key)) return false;
|
|
29164
|
+
return E || !has$4(this, key) || !has$4(AllSymbols, key) || has$4(this, HIDDEN) && this[HIDDEN][key] ? E : true;
|
|
28720
29165
|
};
|
|
28721
29166
|
var $getOwnPropertyDescriptor$1 = function getOwnPropertyDescriptor(it, key) {
|
|
28722
29167
|
it = toIObject$1(it);
|
|
28723
29168
|
key = toPrimitive(key, true);
|
|
28724
|
-
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
|
|
29169
|
+
if (it === ObjectProto && has$4(AllSymbols, key) && !has$4(OPSymbols, key)) return;
|
|
28725
29170
|
var D = gOPD(it, key);
|
|
28726
|
-
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
|
|
29171
|
+
if (D && has$4(AllSymbols, key) && !(has$4(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
|
|
28727
29172
|
return D;
|
|
28728
29173
|
};
|
|
28729
29174
|
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
|
|
@@ -28732,7 +29177,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(it) {
|
|
|
28732
29177
|
var i = 0;
|
|
28733
29178
|
var key;
|
|
28734
29179
|
while (names.length > i) {
|
|
28735
|
-
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
|
|
29180
|
+
if (!has$4(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
|
|
28736
29181
|
} return result;
|
|
28737
29182
|
};
|
|
28738
29183
|
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
|
|
@@ -28742,7 +29187,7 @@ var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
|
|
|
28742
29187
|
var i = 0;
|
|
28743
29188
|
var key;
|
|
28744
29189
|
while (names.length > i) {
|
|
28745
|
-
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
|
|
29190
|
+
if (has$4(AllSymbols, key = names[i++]) && (IS_OP ? has$4(ObjectProto, key) : true)) result.push(AllSymbols[key]);
|
|
28746
29191
|
} return result;
|
|
28747
29192
|
};
|
|
28748
29193
|
|
|
@@ -28753,7 +29198,7 @@ if (!USE_NATIVE) {
|
|
|
28753
29198
|
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
|
|
28754
29199
|
var $set = function (value) {
|
|
28755
29200
|
if (this === ObjectProto) $set.call(OPSymbols, value);
|
|
28756
|
-
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
29201
|
+
if (has$4(this, HIDDEN) && has$4(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
28757
29202
|
setSymbolDesc(this, tag, createDesc(1, value));
|
|
28758
29203
|
};
|
|
28759
29204
|
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
|
|
@@ -28790,13 +29235,13 @@ for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k
|
|
|
28790
29235
|
$export$3($export$3.S + $export$3.F * !USE_NATIVE, 'Symbol', {
|
|
28791
29236
|
// 19.4.2.1 Symbol.for(key)
|
|
28792
29237
|
'for': function (key) {
|
|
28793
|
-
return has(SymbolRegistry, key += '')
|
|
29238
|
+
return has$4(SymbolRegistry, key += '')
|
|
28794
29239
|
? SymbolRegistry[key]
|
|
28795
29240
|
: SymbolRegistry[key] = $Symbol(key);
|
|
28796
29241
|
},
|
|
28797
29242
|
// 19.4.2.5 Symbol.keyFor(sym)
|
|
28798
29243
|
keyFor: function keyFor(sym) {
|
|
28799
|
-
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
|
|
29244
|
+
if (!isSymbol$1(sym)) throw TypeError(sym + ' is not a symbol!');
|
|
28800
29245
|
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
|
|
28801
29246
|
},
|
|
28802
29247
|
useSetter: function () { setter = true; },
|
|
@@ -28842,10 +29287,10 @@ $JSON && $export$3($export$3.S + $export$3.F * (!USE_NATIVE || $fails(function (
|
|
|
28842
29287
|
var replacer, $replacer;
|
|
28843
29288
|
while (arguments.length > i) args.push(arguments[i++]);
|
|
28844
29289
|
$replacer = replacer = args[1];
|
|
28845
|
-
if (!isObject$1(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
|
28846
|
-
if (!isArray(replacer)) replacer = function (key, value) {
|
|
29290
|
+
if (!isObject$1(replacer) && it === undefined || isSymbol$1(it)) return; // IE8 returns string on undefined
|
|
29291
|
+
if (!isArray$4(replacer)) replacer = function (key, value) {
|
|
28847
29292
|
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
|
28848
|
-
if (!isSymbol(value)) return value;
|
|
29293
|
+
if (!isSymbol$1(value)) return value;
|
|
28849
29294
|
};
|
|
28850
29295
|
args[1] = replacer;
|
|
28851
29296
|
return _stringify.apply($JSON, args);
|
|
@@ -29513,6 +29958,15 @@ ReactDragListView.DragColumn = ReactDragColumnView;
|
|
|
29513
29958
|
|
|
29514
29959
|
// build node version: 11.15.0
|
|
29515
29960
|
|
|
29961
|
+
var URL_SORT_ORDERS = {
|
|
29962
|
+
ascend: "asc",
|
|
29963
|
+
descend: "desc"
|
|
29964
|
+
};
|
|
29965
|
+
var TABLE_SORT_ORDERS = {
|
|
29966
|
+
asc: "ascend",
|
|
29967
|
+
desc: "descend"
|
|
29968
|
+
};
|
|
29969
|
+
|
|
29516
29970
|
var reactResizable = {exports: {}};
|
|
29517
29971
|
|
|
29518
29972
|
var Resizable$2 = {};
|
|
@@ -29714,9 +30168,9 @@ function _getRequireWildcardCache$3(nodeInterop) { if (typeof WeakMap !== "funct
|
|
|
29714
30168
|
|
|
29715
30169
|
function _interopRequireWildcard$5(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof$1(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache$3(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29716
30170
|
|
|
29717
|
-
function ownKeys$
|
|
30171
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29718
30172
|
|
|
29719
|
-
function _objectSpread$
|
|
30173
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29720
30174
|
|
|
29721
30175
|
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29722
30176
|
|
|
@@ -29777,7 +30231,7 @@ function addEvent(el
|
|
|
29777
30231
|
{
|
|
29778
30232
|
if (!el) return;
|
|
29779
30233
|
|
|
29780
|
-
var options = _objectSpread$
|
|
30234
|
+
var options = _objectSpread$7({
|
|
29781
30235
|
capture: true
|
|
29782
30236
|
}, inputOptions); // $FlowIgnore[method-unbinding]
|
|
29783
30237
|
|
|
@@ -29805,7 +30259,7 @@ function removeEvent(el
|
|
|
29805
30259
|
{
|
|
29806
30260
|
if (!el) return;
|
|
29807
30261
|
|
|
29808
|
-
var options = _objectSpread$
|
|
30262
|
+
var options = _objectSpread$7({
|
|
29809
30263
|
capture: true
|
|
29810
30264
|
}, inputOptions); // $FlowIgnore[method-unbinding]
|
|
29811
30265
|
|
|
@@ -31296,25 +31750,25 @@ cjs.exports = Draggable;
|
|
|
31296
31750
|
cjs.exports.default = Draggable;
|
|
31297
31751
|
cjs.exports.DraggableCore = DraggableCore;
|
|
31298
31752
|
|
|
31299
|
-
var utils = {};
|
|
31753
|
+
var utils$3 = {};
|
|
31300
31754
|
|
|
31301
|
-
utils.__esModule = true;
|
|
31302
|
-
utils.cloneElement = cloneElement;
|
|
31755
|
+
utils$3.__esModule = true;
|
|
31756
|
+
utils$3.cloneElement = cloneElement;
|
|
31303
31757
|
|
|
31304
31758
|
var _react$2 = _interopRequireDefault$5(React__default);
|
|
31305
31759
|
|
|
31306
31760
|
function _interopRequireDefault$5(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31307
31761
|
|
|
31308
|
-
function ownKeys$
|
|
31762
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31309
31763
|
|
|
31310
|
-
function _objectSpread$
|
|
31764
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31311
31765
|
|
|
31312
31766
|
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31313
31767
|
|
|
31314
31768
|
// React.addons.cloneWithProps look-alike that merges style & className.
|
|
31315
31769
|
function cloneElement(element, props) {
|
|
31316
31770
|
if (props.style && element.props.style) {
|
|
31317
|
-
props.style = _objectSpread$
|
|
31771
|
+
props.style = _objectSpread$6(_objectSpread$6({}, element.props.style), props.style);
|
|
31318
31772
|
}
|
|
31319
31773
|
|
|
31320
31774
|
if (props.className && element.props.className) {
|
|
@@ -31442,7 +31896,7 @@ var React$3 = _interopRequireWildcard$3(React__default);
|
|
|
31442
31896
|
|
|
31443
31897
|
var _reactDraggable = cjs.exports;
|
|
31444
31898
|
|
|
31445
|
-
var _utils = utils;
|
|
31899
|
+
var _utils = utils$3;
|
|
31446
31900
|
|
|
31447
31901
|
var _propTypes$1 = propTypes;
|
|
31448
31902
|
|
|
@@ -31456,9 +31910,9 @@ function _extends$1() { _extends$1 = Object.assign || function (target) { for (v
|
|
|
31456
31910
|
|
|
31457
31911
|
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31458
31912
|
|
|
31459
|
-
function ownKeys$
|
|
31913
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31460
31914
|
|
|
31461
|
-
function _objectSpread$
|
|
31915
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31462
31916
|
|
|
31463
31917
|
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31464
31918
|
|
|
@@ -31648,7 +32102,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
31648
32102
|
|
|
31649
32103
|
var isDOMElement = typeof handle.type === 'string';
|
|
31650
32104
|
|
|
31651
|
-
var props = _objectSpread$
|
|
32105
|
+
var props = _objectSpread$5({
|
|
31652
32106
|
ref: ref
|
|
31653
32107
|
}, isDOMElement ? {} : {
|
|
31654
32108
|
handleAxis: handleAxis
|
|
@@ -31685,7 +32139,7 @@ var Resizable$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
31685
32139
|
// 2. One or more draggable handles.
|
|
31686
32140
|
|
|
31687
32141
|
|
|
31688
|
-
return (0, _utils.cloneElement)(children, _objectSpread$
|
|
32142
|
+
return (0, _utils.cloneElement)(children, _objectSpread$5(_objectSpread$5({}, p), {}, {
|
|
31689
32143
|
className: (className ? className + " " : '') + "react-resizable",
|
|
31690
32144
|
children: [].concat(children.props.children, resizeHandles.map(function (handleAxis) {
|
|
31691
32145
|
var _this3$handleRefs$han;
|
|
@@ -31741,9 +32195,9 @@ function _interopRequireWildcard$2(obj, nodeInterop) { if (!nodeInterop && obj &
|
|
|
31741
32195
|
|
|
31742
32196
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31743
32197
|
|
|
31744
|
-
function ownKeys$
|
|
32198
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
31745
32199
|
|
|
31746
|
-
function _objectSpread$
|
|
32200
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
31747
32201
|
|
|
31748
32202
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31749
32203
|
|
|
@@ -31842,7 +32296,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
|
|
|
31842
32296
|
transformScale: transformScale,
|
|
31843
32297
|
width: this.state.width
|
|
31844
32298
|
}, /*#__PURE__*/React$2.createElement("div", _extends({}, props, {
|
|
31845
|
-
style: _objectSpread$
|
|
32299
|
+
style: _objectSpread$4(_objectSpread$4({}, style), {}, {
|
|
31846
32300
|
width: this.state.width + 'px',
|
|
31847
32301
|
height: this.state.height + 'px'
|
|
31848
32302
|
})
|
|
@@ -31853,7 +32307,7 @@ var ResizableBox = /*#__PURE__*/function (_React$Component) {
|
|
|
31853
32307
|
}(React$2.Component);
|
|
31854
32308
|
|
|
31855
32309
|
ResizableBox$1.default = ResizableBox;
|
|
31856
|
-
ResizableBox.propTypes = _objectSpread$
|
|
32310
|
+
ResizableBox.propTypes = _objectSpread$4(_objectSpread$4({}, _propTypes2.resizableProps), {}, {
|
|
31857
32311
|
children: _propTypes.default.element
|
|
31858
32312
|
});
|
|
31859
32313
|
|
|
@@ -31961,30 +32415,34 @@ var useReorderColumns = function useReorderColumns(_ref) {
|
|
|
31961
32415
|
};
|
|
31962
32416
|
};
|
|
31963
32417
|
|
|
31964
|
-
function ownKeys$
|
|
31965
|
-
function _objectSpread$
|
|
32418
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
32419
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31966
32420
|
var useResizableColumns = function useResizableColumns(_ref) {
|
|
31967
32421
|
var columns = _ref.columns,
|
|
31968
32422
|
setColumns = _ref.setColumns,
|
|
31969
32423
|
isEnabled = _ref.isEnabled,
|
|
31970
32424
|
onColumnUpdate = _ref.onColumnUpdate;
|
|
31971
|
-
if (!isEnabled)
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
32425
|
+
if (!isEnabled) {
|
|
32426
|
+
return {
|
|
32427
|
+
components: {},
|
|
32428
|
+
columns: columns
|
|
32429
|
+
};
|
|
32430
|
+
}
|
|
31975
32431
|
var handleResize = function handleResize(index) {
|
|
31976
32432
|
return function (_, _ref2) {
|
|
31977
32433
|
var size = _ref2.size;
|
|
31978
32434
|
var nextColumns = _toConsumableArray$1(columns);
|
|
31979
|
-
nextColumns[index] = _objectSpread$
|
|
32435
|
+
nextColumns[index] = _objectSpread$3(_objectSpread$3({}, nextColumns[index]), {}, {
|
|
31980
32436
|
width: size.width
|
|
31981
32437
|
});
|
|
31982
32438
|
setColumns(nextColumns);
|
|
31983
32439
|
};
|
|
31984
32440
|
};
|
|
32441
|
+
|
|
32442
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
31985
32443
|
var computedColumnsData = useMemo(function () {
|
|
31986
32444
|
return columns.map(function (col, index) {
|
|
31987
|
-
var modifiedColumn = _objectSpread$
|
|
32445
|
+
var modifiedColumn = _objectSpread$3(_objectSpread$3({}, col), {}, {
|
|
31988
32446
|
onHeaderCell: function onHeaderCell(column) {
|
|
31989
32447
|
return {
|
|
31990
32448
|
width: column.width,
|
|
@@ -32006,208 +32464,2334 @@ var useResizableColumns = function useResizableColumns(_ref) {
|
|
|
32006
32464
|
};
|
|
32007
32465
|
};
|
|
32008
32466
|
|
|
32009
|
-
|
|
32010
|
-
|
|
32011
|
-
|
|
32012
|
-
|
|
32013
|
-
|
|
32014
|
-
var
|
|
32015
|
-
var
|
|
32016
|
-
|
|
32017
|
-
|
|
32018
|
-
|
|
32019
|
-
|
|
32020
|
-
|
|
32021
|
-
|
|
32022
|
-
|
|
32023
|
-
|
|
32024
|
-
|
|
32025
|
-
|
|
32026
|
-
|
|
32027
|
-
|
|
32028
|
-
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32034
|
-
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
|
|
32039
|
-
|
|
32040
|
-
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
|
|
32044
|
-
|
|
32045
|
-
|
|
32046
|
-
|
|
32047
|
-
|
|
32048
|
-
|
|
32049
|
-
|
|
32050
|
-
|
|
32051
|
-
|
|
32052
|
-
|
|
32053
|
-
|
|
32054
|
-
|
|
32055
|
-
|
|
32056
|
-
|
|
32057
|
-
|
|
32058
|
-
|
|
32059
|
-
|
|
32060
|
-
|
|
32061
|
-
|
|
32062
|
-
|
|
32063
|
-
|
|
32064
|
-
|
|
32065
|
-
|
|
32066
|
-
|
|
32067
|
-
|
|
32068
|
-
|
|
32069
|
-
|
|
32070
|
-
|
|
32071
|
-
|
|
32072
|
-
|
|
32073
|
-
return setContainerHeight(height);
|
|
32074
|
-
}));
|
|
32075
|
-
var tableRef = useCallback(function (table) {
|
|
32076
|
-
if (fixedHeight) {
|
|
32077
|
-
if (table !== null) {
|
|
32078
|
-
resizeObserver.current.observe(table === null || table === void 0 ? void 0 : table.parentNode);
|
|
32079
|
-
} else {
|
|
32080
|
-
if (resizeObserver.current) resizeObserver.current.disconnect();
|
|
32081
|
-
}
|
|
32082
|
-
}
|
|
32083
|
-
}, [resizeObserver.current, fixedHeight]);
|
|
32084
|
-
var handleHeaderClasses = function handleHeaderClasses() {
|
|
32085
|
-
var _headerRef$current;
|
|
32086
|
-
Object.values((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.children).forEach(function (child) {
|
|
32087
|
-
child.setAttribute("data-text-align", child.style["text-align"]);
|
|
32088
|
-
});
|
|
32089
|
-
};
|
|
32090
|
-
useTimeout(function () {
|
|
32091
|
-
var headerHeight = headerRef.current ? headerRef.current.offsetHeight : TABLE_DEFAULT_HEADER_HEIGHT;
|
|
32092
|
-
setHeaderHeight(headerHeight);
|
|
32093
|
-
handleHeaderClasses();
|
|
32094
|
-
}, 0);
|
|
32095
|
-
var _useReorderColumns = useReorderColumns({
|
|
32096
|
-
isEnabled: enableColumnReorder,
|
|
32097
|
-
columns: columns,
|
|
32098
|
-
setColumns: setColumns,
|
|
32099
|
-
onColumnUpdate: onColumnUpdate,
|
|
32100
|
-
rowSelection: rowSelection
|
|
32101
|
-
}),
|
|
32102
|
-
dragProps = _useReorderColumns.dragProps,
|
|
32103
|
-
columnsWithReorderProps = _useReorderColumns.columns;
|
|
32104
|
-
var _useResizableColumns = useResizableColumns({
|
|
32105
|
-
isEnabled: enableColumnResize,
|
|
32106
|
-
columns: columnsWithReorderProps,
|
|
32107
|
-
setColumns: setColumns,
|
|
32108
|
-
onColumnUpdate: onColumnUpdate
|
|
32109
|
-
}),
|
|
32110
|
-
curatedColumnsData = _useResizableColumns.columns;
|
|
32111
|
-
var locale = {
|
|
32112
|
-
emptyText: /*#__PURE__*/React__default.createElement(Typography, {
|
|
32113
|
-
style: "body2"
|
|
32114
|
-
}, "No Data")
|
|
32115
|
-
};
|
|
32116
|
-
var isPaginationVisible = rowData.length > defaultPageSize;
|
|
32117
|
-
var rowSelectionProps = false;
|
|
32118
|
-
if (rowSelection) {
|
|
32119
|
-
rowSelectionProps = _objectSpread$1(_objectSpread$1({
|
|
32120
|
-
type: "checkbox"
|
|
32121
|
-
}, rowSelection), {}, {
|
|
32122
|
-
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
32123
|
-
return onRowSelect && onRowSelect(selectedRowKeys, selectedRows);
|
|
32124
|
-
},
|
|
32125
|
-
selectedRowKeys: selectedRowKeys
|
|
32126
|
-
});
|
|
32127
|
-
}
|
|
32128
|
-
var reordableHeader = {
|
|
32129
|
-
header: {
|
|
32130
|
-
cell: enableColumnResize ? enableColumnReorder ? HeaderCell : ResizableHeaderCell : enableColumnReorder ? ReorderableHeaderCell : null
|
|
32131
|
-
}
|
|
32132
|
-
};
|
|
32133
|
-
var componentOverrides = _objectSpread$1(_objectSpread$1({}, components), reordableHeader);
|
|
32134
|
-
var calculateTableContainerHeight = function calculateTableContainerHeight() {
|
|
32135
|
-
return containerHeight - headerHeight - (isPaginationVisible ? TABLE_PAGINATION_HEIGHT : 0);
|
|
32136
|
-
};
|
|
32137
|
-
var itemRender = function itemRender(_, type, originalElement) {
|
|
32138
|
-
if (type === "prev") {
|
|
32139
|
-
return /*#__PURE__*/React__default.createElement(Button, {
|
|
32140
|
-
className: "",
|
|
32141
|
-
icon: Left,
|
|
32142
|
-
style: "text"
|
|
32143
|
-
});
|
|
32144
|
-
}
|
|
32145
|
-
if (type === "next") {
|
|
32146
|
-
return /*#__PURE__*/React__default.createElement(Button, {
|
|
32147
|
-
className: "",
|
|
32148
|
-
icon: Right,
|
|
32149
|
-
style: "text"
|
|
32150
|
-
});
|
|
32467
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
32468
|
+
var shams = function hasSymbols() {
|
|
32469
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
32470
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
32471
|
+
|
|
32472
|
+
var obj = {};
|
|
32473
|
+
var sym = Symbol('test');
|
|
32474
|
+
var symObj = Object(sym);
|
|
32475
|
+
if (typeof sym === 'string') { return false; }
|
|
32476
|
+
|
|
32477
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
32478
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
32479
|
+
|
|
32480
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
32481
|
+
// if (sym instanceof Symbol) { return false; }
|
|
32482
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
32483
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
32484
|
+
|
|
32485
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
32486
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
32487
|
+
|
|
32488
|
+
var symVal = 42;
|
|
32489
|
+
obj[sym] = symVal;
|
|
32490
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
32491
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
32492
|
+
|
|
32493
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
32494
|
+
|
|
32495
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
32496
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
32497
|
+
|
|
32498
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
32499
|
+
|
|
32500
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
32501
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
32502
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
32503
|
+
}
|
|
32504
|
+
|
|
32505
|
+
return true;
|
|
32506
|
+
};
|
|
32507
|
+
|
|
32508
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
32509
|
+
var hasSymbolSham = shams;
|
|
32510
|
+
|
|
32511
|
+
var hasSymbols$1 = function hasNativeSymbols() {
|
|
32512
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
32513
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
32514
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
32515
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
32516
|
+
|
|
32517
|
+
return hasSymbolSham();
|
|
32518
|
+
};
|
|
32519
|
+
|
|
32520
|
+
/* eslint no-invalid-this: 1 */
|
|
32521
|
+
|
|
32522
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
32523
|
+
var slice = Array.prototype.slice;
|
|
32524
|
+
var toStr$1 = Object.prototype.toString;
|
|
32525
|
+
var funcType = '[object Function]';
|
|
32526
|
+
|
|
32527
|
+
var implementation$1 = function bind(that) {
|
|
32528
|
+
var target = this;
|
|
32529
|
+
if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
|
|
32530
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
32151
32531
|
}
|
|
32152
|
-
|
|
32153
|
-
|
|
32154
|
-
|
|
32155
|
-
|
|
32156
|
-
|
|
32157
|
-
|
|
32532
|
+
var args = slice.call(arguments, 1);
|
|
32533
|
+
|
|
32534
|
+
var bound;
|
|
32535
|
+
var binder = function () {
|
|
32536
|
+
if (this instanceof bound) {
|
|
32537
|
+
var result = target.apply(
|
|
32538
|
+
this,
|
|
32539
|
+
args.concat(slice.call(arguments))
|
|
32540
|
+
);
|
|
32541
|
+
if (Object(result) === result) {
|
|
32542
|
+
return result;
|
|
32543
|
+
}
|
|
32544
|
+
return this;
|
|
32545
|
+
} else {
|
|
32546
|
+
return target.apply(
|
|
32547
|
+
that,
|
|
32548
|
+
args.concat(slice.call(arguments))
|
|
32549
|
+
);
|
|
32550
|
+
}
|
|
32551
|
+
};
|
|
32552
|
+
|
|
32553
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
32554
|
+
var boundArgs = [];
|
|
32555
|
+
for (var i = 0; i < boundLength; i++) {
|
|
32556
|
+
boundArgs.push('$' + i);
|
|
32158
32557
|
}
|
|
32159
|
-
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
|
|
32163
|
-
|
|
32164
|
-
|
|
32558
|
+
|
|
32559
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
32560
|
+
|
|
32561
|
+
if (target.prototype) {
|
|
32562
|
+
var Empty = function Empty() {};
|
|
32563
|
+
Empty.prototype = target.prototype;
|
|
32564
|
+
bound.prototype = new Empty();
|
|
32565
|
+
Empty.prototype = null;
|
|
32165
32566
|
}
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
|
|
32192
|
-
|
|
32193
|
-
|
|
32194
|
-
|
|
32195
|
-
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
|
|
32201
|
-
|
|
32202
|
-
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
|
|
32209
|
-
|
|
32210
|
-
|
|
32567
|
+
|
|
32568
|
+
return bound;
|
|
32569
|
+
};
|
|
32570
|
+
|
|
32571
|
+
var implementation = implementation$1;
|
|
32572
|
+
|
|
32573
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
32574
|
+
|
|
32575
|
+
var bind$1 = functionBind;
|
|
32576
|
+
|
|
32577
|
+
var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
|
|
32578
|
+
|
|
32579
|
+
var undefined$1;
|
|
32580
|
+
|
|
32581
|
+
var $SyntaxError = SyntaxError;
|
|
32582
|
+
var $Function = Function;
|
|
32583
|
+
var $TypeError$1 = TypeError;
|
|
32584
|
+
|
|
32585
|
+
// eslint-disable-next-line consistent-return
|
|
32586
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
32587
|
+
try {
|
|
32588
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
32589
|
+
} catch (e) {}
|
|
32590
|
+
};
|
|
32591
|
+
|
|
32592
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
32593
|
+
if ($gOPD) {
|
|
32594
|
+
try {
|
|
32595
|
+
$gOPD({}, '');
|
|
32596
|
+
} catch (e) {
|
|
32597
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
32598
|
+
}
|
|
32599
|
+
}
|
|
32600
|
+
|
|
32601
|
+
var throwTypeError = function () {
|
|
32602
|
+
throw new $TypeError$1();
|
|
32603
|
+
};
|
|
32604
|
+
var ThrowTypeError = $gOPD
|
|
32605
|
+
? (function () {
|
|
32606
|
+
try {
|
|
32607
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
32608
|
+
arguments.callee; // IE 8 does not throw here
|
|
32609
|
+
return throwTypeError;
|
|
32610
|
+
} catch (calleeThrows) {
|
|
32611
|
+
try {
|
|
32612
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
32613
|
+
return $gOPD(arguments, 'callee').get;
|
|
32614
|
+
} catch (gOPDthrows) {
|
|
32615
|
+
return throwTypeError;
|
|
32616
|
+
}
|
|
32617
|
+
}
|
|
32618
|
+
}())
|
|
32619
|
+
: throwTypeError;
|
|
32620
|
+
|
|
32621
|
+
var hasSymbols = hasSymbols$1();
|
|
32622
|
+
|
|
32623
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
32624
|
+
|
|
32625
|
+
var needsEval = {};
|
|
32626
|
+
|
|
32627
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
32628
|
+
|
|
32629
|
+
var INTRINSICS = {
|
|
32630
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
32631
|
+
'%Array%': Array,
|
|
32632
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
32633
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
32634
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
32635
|
+
'%AsyncFunction%': needsEval,
|
|
32636
|
+
'%AsyncGenerator%': needsEval,
|
|
32637
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
32638
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
32639
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
32640
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
32641
|
+
'%Boolean%': Boolean,
|
|
32642
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
32643
|
+
'%Date%': Date,
|
|
32644
|
+
'%decodeURI%': decodeURI,
|
|
32645
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
32646
|
+
'%encodeURI%': encodeURI,
|
|
32647
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
32648
|
+
'%Error%': Error,
|
|
32649
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
32650
|
+
'%EvalError%': EvalError,
|
|
32651
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
32652
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
32653
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
32654
|
+
'%Function%': $Function,
|
|
32655
|
+
'%GeneratorFunction%': needsEval,
|
|
32656
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
32657
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
32658
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
32659
|
+
'%isFinite%': isFinite,
|
|
32660
|
+
'%isNaN%': isNaN,
|
|
32661
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
32662
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
32663
|
+
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
32664
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
32665
|
+
'%Math%': Math,
|
|
32666
|
+
'%Number%': Number,
|
|
32667
|
+
'%Object%': Object,
|
|
32668
|
+
'%parseFloat%': parseFloat,
|
|
32669
|
+
'%parseInt%': parseInt,
|
|
32670
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
32671
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
32672
|
+
'%RangeError%': RangeError,
|
|
32673
|
+
'%ReferenceError%': ReferenceError,
|
|
32674
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
32675
|
+
'%RegExp%': RegExp,
|
|
32676
|
+
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
32677
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
32678
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
32679
|
+
'%String%': String,
|
|
32680
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
32681
|
+
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
32682
|
+
'%SyntaxError%': $SyntaxError,
|
|
32683
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
32684
|
+
'%TypedArray%': TypedArray,
|
|
32685
|
+
'%TypeError%': $TypeError$1,
|
|
32686
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
32687
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
32688
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
32689
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
32690
|
+
'%URIError%': URIError,
|
|
32691
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
32692
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
32693
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
32694
|
+
};
|
|
32695
|
+
|
|
32696
|
+
var doEval = function doEval(name) {
|
|
32697
|
+
var value;
|
|
32698
|
+
if (name === '%AsyncFunction%') {
|
|
32699
|
+
value = getEvalledConstructor('async function () {}');
|
|
32700
|
+
} else if (name === '%GeneratorFunction%') {
|
|
32701
|
+
value = getEvalledConstructor('function* () {}');
|
|
32702
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
32703
|
+
value = getEvalledConstructor('async function* () {}');
|
|
32704
|
+
} else if (name === '%AsyncGenerator%') {
|
|
32705
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
32706
|
+
if (fn) {
|
|
32707
|
+
value = fn.prototype;
|
|
32708
|
+
}
|
|
32709
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
32710
|
+
var gen = doEval('%AsyncGenerator%');
|
|
32711
|
+
if (gen) {
|
|
32712
|
+
value = getProto(gen.prototype);
|
|
32713
|
+
}
|
|
32714
|
+
}
|
|
32715
|
+
|
|
32716
|
+
INTRINSICS[name] = value;
|
|
32717
|
+
|
|
32718
|
+
return value;
|
|
32719
|
+
};
|
|
32720
|
+
|
|
32721
|
+
var LEGACY_ALIASES = {
|
|
32722
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
32723
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
32724
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
32725
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
32726
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
32727
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
32728
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
32729
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
32730
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
32731
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
32732
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
32733
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
32734
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
32735
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
32736
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
32737
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
32738
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
32739
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
32740
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
32741
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
32742
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
32743
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
32744
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
32745
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
32746
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
32747
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
32748
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
32749
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
32750
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
32751
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
32752
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
32753
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
32754
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
32755
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
32756
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
32757
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
32758
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
32759
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
32760
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
32761
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
32762
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
32763
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
32764
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
32765
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
32766
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
32767
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
32768
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
32769
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
32770
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
32771
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
32772
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
32773
|
+
};
|
|
32774
|
+
|
|
32775
|
+
var bind = functionBind;
|
|
32776
|
+
var hasOwn$1 = src;
|
|
32777
|
+
var $concat$1 = bind.call(Function.call, Array.prototype.concat);
|
|
32778
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
32779
|
+
var $replace$1 = bind.call(Function.call, String.prototype.replace);
|
|
32780
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
32781
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
32782
|
+
|
|
32783
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
32784
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
32785
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
32786
|
+
var stringToPath = function stringToPath(string) {
|
|
32787
|
+
var first = $strSlice(string, 0, 1);
|
|
32788
|
+
var last = $strSlice(string, -1);
|
|
32789
|
+
if (first === '%' && last !== '%') {
|
|
32790
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
32791
|
+
} else if (last === '%' && first !== '%') {
|
|
32792
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
32793
|
+
}
|
|
32794
|
+
var result = [];
|
|
32795
|
+
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
32796
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
|
|
32797
|
+
});
|
|
32798
|
+
return result;
|
|
32799
|
+
};
|
|
32800
|
+
/* end adaptation */
|
|
32801
|
+
|
|
32802
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
32803
|
+
var intrinsicName = name;
|
|
32804
|
+
var alias;
|
|
32805
|
+
if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
|
|
32806
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
32807
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
32808
|
+
}
|
|
32809
|
+
|
|
32810
|
+
if (hasOwn$1(INTRINSICS, intrinsicName)) {
|
|
32811
|
+
var value = INTRINSICS[intrinsicName];
|
|
32812
|
+
if (value === needsEval) {
|
|
32813
|
+
value = doEval(intrinsicName);
|
|
32814
|
+
}
|
|
32815
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
32816
|
+
throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
32817
|
+
}
|
|
32818
|
+
|
|
32819
|
+
return {
|
|
32820
|
+
alias: alias,
|
|
32821
|
+
name: intrinsicName,
|
|
32822
|
+
value: value
|
|
32823
|
+
};
|
|
32824
|
+
}
|
|
32825
|
+
|
|
32826
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
32827
|
+
};
|
|
32828
|
+
|
|
32829
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
32830
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
32831
|
+
throw new $TypeError$1('intrinsic name must be a non-empty string');
|
|
32832
|
+
}
|
|
32833
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
32834
|
+
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
32835
|
+
}
|
|
32836
|
+
|
|
32837
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
32838
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
32839
|
+
}
|
|
32840
|
+
var parts = stringToPath(name);
|
|
32841
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
32842
|
+
|
|
32843
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
32844
|
+
var intrinsicRealName = intrinsic.name;
|
|
32845
|
+
var value = intrinsic.value;
|
|
32846
|
+
var skipFurtherCaching = false;
|
|
32847
|
+
|
|
32848
|
+
var alias = intrinsic.alias;
|
|
32849
|
+
if (alias) {
|
|
32850
|
+
intrinsicBaseName = alias[0];
|
|
32851
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
32852
|
+
}
|
|
32853
|
+
|
|
32854
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
32855
|
+
var part = parts[i];
|
|
32856
|
+
var first = $strSlice(part, 0, 1);
|
|
32857
|
+
var last = $strSlice(part, -1);
|
|
32858
|
+
if (
|
|
32859
|
+
(
|
|
32860
|
+
(first === '"' || first === "'" || first === '`')
|
|
32861
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
32862
|
+
)
|
|
32863
|
+
&& first !== last
|
|
32864
|
+
) {
|
|
32865
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
32866
|
+
}
|
|
32867
|
+
if (part === 'constructor' || !isOwn) {
|
|
32868
|
+
skipFurtherCaching = true;
|
|
32869
|
+
}
|
|
32870
|
+
|
|
32871
|
+
intrinsicBaseName += '.' + part;
|
|
32872
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
32873
|
+
|
|
32874
|
+
if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
|
|
32875
|
+
value = INTRINSICS[intrinsicRealName];
|
|
32876
|
+
} else if (value != null) {
|
|
32877
|
+
if (!(part in value)) {
|
|
32878
|
+
if (!allowMissing) {
|
|
32879
|
+
throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
32880
|
+
}
|
|
32881
|
+
return void undefined$1;
|
|
32882
|
+
}
|
|
32883
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
32884
|
+
var desc = $gOPD(value, part);
|
|
32885
|
+
isOwn = !!desc;
|
|
32886
|
+
|
|
32887
|
+
// By convention, when a data property is converted to an accessor
|
|
32888
|
+
// property to emulate a data property that does not suffer from
|
|
32889
|
+
// the override mistake, that accessor's getter is marked with
|
|
32890
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
32891
|
+
// uphold the illusion by pretending to see that original data
|
|
32892
|
+
// property, i.e., returning the value rather than the getter
|
|
32893
|
+
// itself.
|
|
32894
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
32895
|
+
value = desc.get;
|
|
32896
|
+
} else {
|
|
32897
|
+
value = value[part];
|
|
32898
|
+
}
|
|
32899
|
+
} else {
|
|
32900
|
+
isOwn = hasOwn$1(value, part);
|
|
32901
|
+
value = value[part];
|
|
32902
|
+
}
|
|
32903
|
+
|
|
32904
|
+
if (isOwn && !skipFurtherCaching) {
|
|
32905
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
32906
|
+
}
|
|
32907
|
+
}
|
|
32908
|
+
}
|
|
32909
|
+
return value;
|
|
32910
|
+
};
|
|
32911
|
+
|
|
32912
|
+
var callBind$1 = {exports: {}};
|
|
32913
|
+
|
|
32914
|
+
(function (module) {
|
|
32915
|
+
|
|
32916
|
+
var bind = functionBind;
|
|
32917
|
+
var GetIntrinsic = getIntrinsic;
|
|
32918
|
+
|
|
32919
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
32920
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
32921
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
32922
|
+
|
|
32923
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
32924
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
32925
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
32926
|
+
|
|
32927
|
+
if ($defineProperty) {
|
|
32928
|
+
try {
|
|
32929
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
32930
|
+
} catch (e) {
|
|
32931
|
+
// IE 8 has a broken defineProperty
|
|
32932
|
+
$defineProperty = null;
|
|
32933
|
+
}
|
|
32934
|
+
}
|
|
32935
|
+
|
|
32936
|
+
module.exports = function callBind(originalFunction) {
|
|
32937
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
32938
|
+
if ($gOPD && $defineProperty) {
|
|
32939
|
+
var desc = $gOPD(func, 'length');
|
|
32940
|
+
if (desc.configurable) {
|
|
32941
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
32942
|
+
$defineProperty(
|
|
32943
|
+
func,
|
|
32944
|
+
'length',
|
|
32945
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
32946
|
+
);
|
|
32947
|
+
}
|
|
32948
|
+
}
|
|
32949
|
+
return func;
|
|
32950
|
+
};
|
|
32951
|
+
|
|
32952
|
+
var applyBind = function applyBind() {
|
|
32953
|
+
return $reflectApply(bind, $apply, arguments);
|
|
32954
|
+
};
|
|
32955
|
+
|
|
32956
|
+
if ($defineProperty) {
|
|
32957
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
32958
|
+
} else {
|
|
32959
|
+
module.exports.apply = applyBind;
|
|
32960
|
+
}
|
|
32961
|
+
} (callBind$1));
|
|
32962
|
+
|
|
32963
|
+
var GetIntrinsic$1 = getIntrinsic;
|
|
32964
|
+
|
|
32965
|
+
var callBind = callBind$1.exports;
|
|
32966
|
+
|
|
32967
|
+
var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
|
|
32968
|
+
|
|
32969
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
32970
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
32971
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
32972
|
+
return callBind(intrinsic);
|
|
32973
|
+
}
|
|
32974
|
+
return intrinsic;
|
|
32975
|
+
};
|
|
32976
|
+
|
|
32977
|
+
var util_inspect = require$$0.inspect;
|
|
32978
|
+
|
|
32979
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
32980
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
32981
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
32982
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
32983
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
32984
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
32985
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
32986
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
32987
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
32988
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
32989
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
32990
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
32991
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
32992
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
32993
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
32994
|
+
var objectToString = Object.prototype.toString;
|
|
32995
|
+
var functionToString = Function.prototype.toString;
|
|
32996
|
+
var $match = String.prototype.match;
|
|
32997
|
+
var $slice = String.prototype.slice;
|
|
32998
|
+
var $replace = String.prototype.replace;
|
|
32999
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
33000
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
33001
|
+
var $test = RegExp.prototype.test;
|
|
33002
|
+
var $concat = Array.prototype.concat;
|
|
33003
|
+
var $join = Array.prototype.join;
|
|
33004
|
+
var $arrSlice = Array.prototype.slice;
|
|
33005
|
+
var $floor = Math.floor;
|
|
33006
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
33007
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
33008
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
33009
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
33010
|
+
// ie, `has-tostringtag/shams
|
|
33011
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
33012
|
+
? Symbol.toStringTag
|
|
33013
|
+
: null;
|
|
33014
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
33015
|
+
|
|
33016
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
33017
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
33018
|
+
? function (O) {
|
|
33019
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
33020
|
+
}
|
|
33021
|
+
: null
|
|
33022
|
+
);
|
|
33023
|
+
|
|
33024
|
+
function addNumericSeparator(num, str) {
|
|
33025
|
+
if (
|
|
33026
|
+
num === Infinity
|
|
33027
|
+
|| num === -Infinity
|
|
33028
|
+
|| num !== num
|
|
33029
|
+
|| (num && num > -1000 && num < 1000)
|
|
33030
|
+
|| $test.call(/e/, str)
|
|
33031
|
+
) {
|
|
33032
|
+
return str;
|
|
33033
|
+
}
|
|
33034
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
33035
|
+
if (typeof num === 'number') {
|
|
33036
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
33037
|
+
if (int !== num) {
|
|
33038
|
+
var intStr = String(int);
|
|
33039
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
33040
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
33041
|
+
}
|
|
33042
|
+
}
|
|
33043
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
33044
|
+
}
|
|
33045
|
+
|
|
33046
|
+
var utilInspect = util_inspect;
|
|
33047
|
+
var inspectCustom = utilInspect.custom;
|
|
33048
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
33049
|
+
|
|
33050
|
+
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
33051
|
+
var opts = options || {};
|
|
33052
|
+
|
|
33053
|
+
if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
33054
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
33055
|
+
}
|
|
33056
|
+
if (
|
|
33057
|
+
has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
33058
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
33059
|
+
: opts.maxStringLength !== null
|
|
33060
|
+
)
|
|
33061
|
+
) {
|
|
33062
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
33063
|
+
}
|
|
33064
|
+
var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
|
|
33065
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
33066
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
33067
|
+
}
|
|
33068
|
+
|
|
33069
|
+
if (
|
|
33070
|
+
has$3(opts, 'indent')
|
|
33071
|
+
&& opts.indent !== null
|
|
33072
|
+
&& opts.indent !== '\t'
|
|
33073
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
33074
|
+
) {
|
|
33075
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
33076
|
+
}
|
|
33077
|
+
if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
33078
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
33079
|
+
}
|
|
33080
|
+
var numericSeparator = opts.numericSeparator;
|
|
33081
|
+
|
|
33082
|
+
if (typeof obj === 'undefined') {
|
|
33083
|
+
return 'undefined';
|
|
33084
|
+
}
|
|
33085
|
+
if (obj === null) {
|
|
33086
|
+
return 'null';
|
|
33087
|
+
}
|
|
33088
|
+
if (typeof obj === 'boolean') {
|
|
33089
|
+
return obj ? 'true' : 'false';
|
|
33090
|
+
}
|
|
33091
|
+
|
|
33092
|
+
if (typeof obj === 'string') {
|
|
33093
|
+
return inspectString(obj, opts);
|
|
33094
|
+
}
|
|
33095
|
+
if (typeof obj === 'number') {
|
|
33096
|
+
if (obj === 0) {
|
|
33097
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
33098
|
+
}
|
|
33099
|
+
var str = String(obj);
|
|
33100
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
33101
|
+
}
|
|
33102
|
+
if (typeof obj === 'bigint') {
|
|
33103
|
+
var bigIntStr = String(obj) + 'n';
|
|
33104
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
33105
|
+
}
|
|
33106
|
+
|
|
33107
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
33108
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
33109
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
33110
|
+
return isArray$3(obj) ? '[Array]' : '[Object]';
|
|
33111
|
+
}
|
|
33112
|
+
|
|
33113
|
+
var indent = getIndent(opts, depth);
|
|
33114
|
+
|
|
33115
|
+
if (typeof seen === 'undefined') {
|
|
33116
|
+
seen = [];
|
|
33117
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
33118
|
+
return '[Circular]';
|
|
33119
|
+
}
|
|
33120
|
+
|
|
33121
|
+
function inspect(value, from, noIndent) {
|
|
33122
|
+
if (from) {
|
|
33123
|
+
seen = $arrSlice.call(seen);
|
|
33124
|
+
seen.push(from);
|
|
33125
|
+
}
|
|
33126
|
+
if (noIndent) {
|
|
33127
|
+
var newOpts = {
|
|
33128
|
+
depth: opts.depth
|
|
33129
|
+
};
|
|
33130
|
+
if (has$3(opts, 'quoteStyle')) {
|
|
33131
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
33132
|
+
}
|
|
33133
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
33134
|
+
}
|
|
33135
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
33136
|
+
}
|
|
33137
|
+
|
|
33138
|
+
if (typeof obj === 'function' && !isRegExp$2(obj)) { // in older engines, regexes are callable
|
|
33139
|
+
var name = nameOf(obj);
|
|
33140
|
+
var keys = arrObjKeys(obj, inspect);
|
|
33141
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
33142
|
+
}
|
|
33143
|
+
if (isSymbol(obj)) {
|
|
33144
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
33145
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
33146
|
+
}
|
|
33147
|
+
if (isElement(obj)) {
|
|
33148
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
33149
|
+
var attrs = obj.attributes || [];
|
|
33150
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
33151
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
33152
|
+
}
|
|
33153
|
+
s += '>';
|
|
33154
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
33155
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
33156
|
+
return s;
|
|
33157
|
+
}
|
|
33158
|
+
if (isArray$3(obj)) {
|
|
33159
|
+
if (obj.length === 0) { return '[]'; }
|
|
33160
|
+
var xs = arrObjKeys(obj, inspect);
|
|
33161
|
+
if (indent && !singleLineValues(xs)) {
|
|
33162
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
33163
|
+
}
|
|
33164
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
33165
|
+
}
|
|
33166
|
+
if (isError$1(obj)) {
|
|
33167
|
+
var parts = arrObjKeys(obj, inspect);
|
|
33168
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
33169
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
33170
|
+
}
|
|
33171
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
33172
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
33173
|
+
}
|
|
33174
|
+
if (typeof obj === 'object' && customInspect) {
|
|
33175
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
33176
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
33177
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
33178
|
+
return obj.inspect();
|
|
33179
|
+
}
|
|
33180
|
+
}
|
|
33181
|
+
if (isMap(obj)) {
|
|
33182
|
+
var mapParts = [];
|
|
33183
|
+
mapForEach.call(obj, function (value, key) {
|
|
33184
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
33185
|
+
});
|
|
33186
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
33187
|
+
}
|
|
33188
|
+
if (isSet(obj)) {
|
|
33189
|
+
var setParts = [];
|
|
33190
|
+
setForEach.call(obj, function (value) {
|
|
33191
|
+
setParts.push(inspect(value, obj));
|
|
33192
|
+
});
|
|
33193
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
33194
|
+
}
|
|
33195
|
+
if (isWeakMap(obj)) {
|
|
33196
|
+
return weakCollectionOf('WeakMap');
|
|
33197
|
+
}
|
|
33198
|
+
if (isWeakSet(obj)) {
|
|
33199
|
+
return weakCollectionOf('WeakSet');
|
|
33200
|
+
}
|
|
33201
|
+
if (isWeakRef(obj)) {
|
|
33202
|
+
return weakCollectionOf('WeakRef');
|
|
33203
|
+
}
|
|
33204
|
+
if (isNumber(obj)) {
|
|
33205
|
+
return markBoxed(inspect(Number(obj)));
|
|
33206
|
+
}
|
|
33207
|
+
if (isBigInt(obj)) {
|
|
33208
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
33209
|
+
}
|
|
33210
|
+
if (isBoolean(obj)) {
|
|
33211
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
33212
|
+
}
|
|
33213
|
+
if (isString$2(obj)) {
|
|
33214
|
+
return markBoxed(inspect(String(obj)));
|
|
33215
|
+
}
|
|
33216
|
+
if (!isDate(obj) && !isRegExp$2(obj)) {
|
|
33217
|
+
var ys = arrObjKeys(obj, inspect);
|
|
33218
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
33219
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
33220
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
33221
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
33222
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
33223
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
33224
|
+
if (indent) {
|
|
33225
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
33226
|
+
}
|
|
33227
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
33228
|
+
}
|
|
33229
|
+
return String(obj);
|
|
33230
|
+
};
|
|
33231
|
+
|
|
33232
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
33233
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
33234
|
+
return quoteChar + s + quoteChar;
|
|
33235
|
+
}
|
|
33236
|
+
|
|
33237
|
+
function quote(s) {
|
|
33238
|
+
return $replace.call(String(s), /"/g, '"');
|
|
33239
|
+
}
|
|
33240
|
+
|
|
33241
|
+
function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33242
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33243
|
+
function isRegExp$2(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33244
|
+
function isError$1(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33245
|
+
function isString$2(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33246
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33247
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
33248
|
+
|
|
33249
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
33250
|
+
function isSymbol(obj) {
|
|
33251
|
+
if (hasShammedSymbols) {
|
|
33252
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
33253
|
+
}
|
|
33254
|
+
if (typeof obj === 'symbol') {
|
|
33255
|
+
return true;
|
|
33256
|
+
}
|
|
33257
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
33258
|
+
return false;
|
|
33259
|
+
}
|
|
33260
|
+
try {
|
|
33261
|
+
symToString.call(obj);
|
|
33262
|
+
return true;
|
|
33263
|
+
} catch (e) {}
|
|
33264
|
+
return false;
|
|
33265
|
+
}
|
|
33266
|
+
|
|
33267
|
+
function isBigInt(obj) {
|
|
33268
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
33269
|
+
return false;
|
|
33270
|
+
}
|
|
33271
|
+
try {
|
|
33272
|
+
bigIntValueOf.call(obj);
|
|
33273
|
+
return true;
|
|
33274
|
+
} catch (e) {}
|
|
33275
|
+
return false;
|
|
33276
|
+
}
|
|
33277
|
+
|
|
33278
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
33279
|
+
function has$3(obj, key) {
|
|
33280
|
+
return hasOwn.call(obj, key);
|
|
33281
|
+
}
|
|
33282
|
+
|
|
33283
|
+
function toStr(obj) {
|
|
33284
|
+
return objectToString.call(obj);
|
|
33285
|
+
}
|
|
33286
|
+
|
|
33287
|
+
function nameOf(f) {
|
|
33288
|
+
if (f.name) { return f.name; }
|
|
33289
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
33290
|
+
if (m) { return m[1]; }
|
|
33291
|
+
return null;
|
|
33292
|
+
}
|
|
33293
|
+
|
|
33294
|
+
function indexOf(xs, x) {
|
|
33295
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
33296
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
33297
|
+
if (xs[i] === x) { return i; }
|
|
33298
|
+
}
|
|
33299
|
+
return -1;
|
|
33300
|
+
}
|
|
33301
|
+
|
|
33302
|
+
function isMap(x) {
|
|
33303
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
33304
|
+
return false;
|
|
33305
|
+
}
|
|
33306
|
+
try {
|
|
33307
|
+
mapSize.call(x);
|
|
33308
|
+
try {
|
|
33309
|
+
setSize.call(x);
|
|
33310
|
+
} catch (s) {
|
|
33311
|
+
return true;
|
|
33312
|
+
}
|
|
33313
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
33314
|
+
} catch (e) {}
|
|
33315
|
+
return false;
|
|
33316
|
+
}
|
|
33317
|
+
|
|
33318
|
+
function isWeakMap(x) {
|
|
33319
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
33320
|
+
return false;
|
|
33321
|
+
}
|
|
33322
|
+
try {
|
|
33323
|
+
weakMapHas.call(x, weakMapHas);
|
|
33324
|
+
try {
|
|
33325
|
+
weakSetHas.call(x, weakSetHas);
|
|
33326
|
+
} catch (s) {
|
|
33327
|
+
return true;
|
|
33328
|
+
}
|
|
33329
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
33330
|
+
} catch (e) {}
|
|
33331
|
+
return false;
|
|
33332
|
+
}
|
|
33333
|
+
|
|
33334
|
+
function isWeakRef(x) {
|
|
33335
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
33336
|
+
return false;
|
|
33337
|
+
}
|
|
33338
|
+
try {
|
|
33339
|
+
weakRefDeref.call(x);
|
|
33340
|
+
return true;
|
|
33341
|
+
} catch (e) {}
|
|
33342
|
+
return false;
|
|
33343
|
+
}
|
|
33344
|
+
|
|
33345
|
+
function isSet(x) {
|
|
33346
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
33347
|
+
return false;
|
|
33348
|
+
}
|
|
33349
|
+
try {
|
|
33350
|
+
setSize.call(x);
|
|
33351
|
+
try {
|
|
33352
|
+
mapSize.call(x);
|
|
33353
|
+
} catch (m) {
|
|
33354
|
+
return true;
|
|
33355
|
+
}
|
|
33356
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
33357
|
+
} catch (e) {}
|
|
33358
|
+
return false;
|
|
33359
|
+
}
|
|
33360
|
+
|
|
33361
|
+
function isWeakSet(x) {
|
|
33362
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
33363
|
+
return false;
|
|
33364
|
+
}
|
|
33365
|
+
try {
|
|
33366
|
+
weakSetHas.call(x, weakSetHas);
|
|
33367
|
+
try {
|
|
33368
|
+
weakMapHas.call(x, weakMapHas);
|
|
33369
|
+
} catch (s) {
|
|
33370
|
+
return true;
|
|
33371
|
+
}
|
|
33372
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
33373
|
+
} catch (e) {}
|
|
33374
|
+
return false;
|
|
33375
|
+
}
|
|
33376
|
+
|
|
33377
|
+
function isElement(x) {
|
|
33378
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
33379
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
33380
|
+
return true;
|
|
33381
|
+
}
|
|
33382
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
33383
|
+
}
|
|
33384
|
+
|
|
33385
|
+
function inspectString(str, opts) {
|
|
33386
|
+
if (str.length > opts.maxStringLength) {
|
|
33387
|
+
var remaining = str.length - opts.maxStringLength;
|
|
33388
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
33389
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
33390
|
+
}
|
|
33391
|
+
// eslint-disable-next-line no-control-regex
|
|
33392
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
33393
|
+
return wrapQuotes(s, 'single', opts);
|
|
33394
|
+
}
|
|
33395
|
+
|
|
33396
|
+
function lowbyte(c) {
|
|
33397
|
+
var n = c.charCodeAt(0);
|
|
33398
|
+
var x = {
|
|
33399
|
+
8: 'b',
|
|
33400
|
+
9: 't',
|
|
33401
|
+
10: 'n',
|
|
33402
|
+
12: 'f',
|
|
33403
|
+
13: 'r'
|
|
33404
|
+
}[n];
|
|
33405
|
+
if (x) { return '\\' + x; }
|
|
33406
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
33407
|
+
}
|
|
33408
|
+
|
|
33409
|
+
function markBoxed(str) {
|
|
33410
|
+
return 'Object(' + str + ')';
|
|
33411
|
+
}
|
|
33412
|
+
|
|
33413
|
+
function weakCollectionOf(type) {
|
|
33414
|
+
return type + ' { ? }';
|
|
33415
|
+
}
|
|
33416
|
+
|
|
33417
|
+
function collectionOf(type, size, entries, indent) {
|
|
33418
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
33419
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
33420
|
+
}
|
|
33421
|
+
|
|
33422
|
+
function singleLineValues(xs) {
|
|
33423
|
+
for (var i = 0; i < xs.length; i++) {
|
|
33424
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
33425
|
+
return false;
|
|
33426
|
+
}
|
|
33427
|
+
}
|
|
33428
|
+
return true;
|
|
33429
|
+
}
|
|
33430
|
+
|
|
33431
|
+
function getIndent(opts, depth) {
|
|
33432
|
+
var baseIndent;
|
|
33433
|
+
if (opts.indent === '\t') {
|
|
33434
|
+
baseIndent = '\t';
|
|
33435
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
33436
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
33437
|
+
} else {
|
|
33438
|
+
return null;
|
|
33439
|
+
}
|
|
33440
|
+
return {
|
|
33441
|
+
base: baseIndent,
|
|
33442
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
33443
|
+
};
|
|
33444
|
+
}
|
|
33445
|
+
|
|
33446
|
+
function indentedJoin(xs, indent) {
|
|
33447
|
+
if (xs.length === 0) { return ''; }
|
|
33448
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
33449
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
33450
|
+
}
|
|
33451
|
+
|
|
33452
|
+
function arrObjKeys(obj, inspect) {
|
|
33453
|
+
var isArr = isArray$3(obj);
|
|
33454
|
+
var xs = [];
|
|
33455
|
+
if (isArr) {
|
|
33456
|
+
xs.length = obj.length;
|
|
33457
|
+
for (var i = 0; i < obj.length; i++) {
|
|
33458
|
+
xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
|
|
33459
|
+
}
|
|
33460
|
+
}
|
|
33461
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
33462
|
+
var symMap;
|
|
33463
|
+
if (hasShammedSymbols) {
|
|
33464
|
+
symMap = {};
|
|
33465
|
+
for (var k = 0; k < syms.length; k++) {
|
|
33466
|
+
symMap['$' + syms[k]] = syms[k];
|
|
33467
|
+
}
|
|
33468
|
+
}
|
|
33469
|
+
|
|
33470
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
33471
|
+
if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
33472
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
33473
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
33474
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
33475
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
33476
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
33477
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
33478
|
+
} else {
|
|
33479
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
33480
|
+
}
|
|
33481
|
+
}
|
|
33482
|
+
if (typeof gOPS === 'function') {
|
|
33483
|
+
for (var j = 0; j < syms.length; j++) {
|
|
33484
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
33485
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
33486
|
+
}
|
|
33487
|
+
}
|
|
33488
|
+
}
|
|
33489
|
+
return xs;
|
|
33490
|
+
}
|
|
33491
|
+
|
|
33492
|
+
var GetIntrinsic = getIntrinsic;
|
|
33493
|
+
var callBound = callBound$1;
|
|
33494
|
+
var inspect = objectInspect;
|
|
33495
|
+
|
|
33496
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
33497
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
33498
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
33499
|
+
|
|
33500
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
33501
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
33502
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
33503
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
33504
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
33505
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
33506
|
+
|
|
33507
|
+
/*
|
|
33508
|
+
* This function traverses the list returning the node corresponding to the
|
|
33509
|
+
* given key.
|
|
33510
|
+
*
|
|
33511
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
33512
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
33513
|
+
* used nodes can be accessed relatively quickly.
|
|
33514
|
+
*/
|
|
33515
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
33516
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
33517
|
+
if (curr.key === key) {
|
|
33518
|
+
prev.next = curr.next;
|
|
33519
|
+
curr.next = list.next;
|
|
33520
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
33521
|
+
return curr;
|
|
33522
|
+
}
|
|
33523
|
+
}
|
|
33524
|
+
};
|
|
33525
|
+
|
|
33526
|
+
var listGet = function (objects, key) {
|
|
33527
|
+
var node = listGetNode(objects, key);
|
|
33528
|
+
return node && node.value;
|
|
33529
|
+
};
|
|
33530
|
+
var listSet = function (objects, key, value) {
|
|
33531
|
+
var node = listGetNode(objects, key);
|
|
33532
|
+
if (node) {
|
|
33533
|
+
node.value = value;
|
|
33534
|
+
} else {
|
|
33535
|
+
// Prepend the new node to the beginning of the list
|
|
33536
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
33537
|
+
key: key,
|
|
33538
|
+
next: objects.next,
|
|
33539
|
+
value: value
|
|
33540
|
+
};
|
|
33541
|
+
}
|
|
33542
|
+
};
|
|
33543
|
+
var listHas = function (objects, key) {
|
|
33544
|
+
return !!listGetNode(objects, key);
|
|
33545
|
+
};
|
|
33546
|
+
|
|
33547
|
+
var sideChannel = function getSideChannel() {
|
|
33548
|
+
var $wm;
|
|
33549
|
+
var $m;
|
|
33550
|
+
var $o;
|
|
33551
|
+
var channel = {
|
|
33552
|
+
assert: function (key) {
|
|
33553
|
+
if (!channel.has(key)) {
|
|
33554
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
33555
|
+
}
|
|
33556
|
+
},
|
|
33557
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
33558
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
33559
|
+
if ($wm) {
|
|
33560
|
+
return $weakMapGet($wm, key);
|
|
33561
|
+
}
|
|
33562
|
+
} else if ($Map) {
|
|
33563
|
+
if ($m) {
|
|
33564
|
+
return $mapGet($m, key);
|
|
33565
|
+
}
|
|
33566
|
+
} else {
|
|
33567
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
33568
|
+
return listGet($o, key);
|
|
33569
|
+
}
|
|
33570
|
+
}
|
|
33571
|
+
},
|
|
33572
|
+
has: function (key) {
|
|
33573
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
33574
|
+
if ($wm) {
|
|
33575
|
+
return $weakMapHas($wm, key);
|
|
33576
|
+
}
|
|
33577
|
+
} else if ($Map) {
|
|
33578
|
+
if ($m) {
|
|
33579
|
+
return $mapHas($m, key);
|
|
33580
|
+
}
|
|
33581
|
+
} else {
|
|
33582
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
33583
|
+
return listHas($o, key);
|
|
33584
|
+
}
|
|
33585
|
+
}
|
|
33586
|
+
return false;
|
|
33587
|
+
},
|
|
33588
|
+
set: function (key, value) {
|
|
33589
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
33590
|
+
if (!$wm) {
|
|
33591
|
+
$wm = new $WeakMap();
|
|
33592
|
+
}
|
|
33593
|
+
$weakMapSet($wm, key, value);
|
|
33594
|
+
} else if ($Map) {
|
|
33595
|
+
if (!$m) {
|
|
33596
|
+
$m = new $Map();
|
|
33597
|
+
}
|
|
33598
|
+
$mapSet($m, key, value);
|
|
33599
|
+
} else {
|
|
33600
|
+
if (!$o) {
|
|
33601
|
+
/*
|
|
33602
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
33603
|
+
* to special-case handling of the first node: we can always refer to
|
|
33604
|
+
* it as (previous node).next, instead of something like (list).head
|
|
33605
|
+
*/
|
|
33606
|
+
$o = { key: {}, next: null };
|
|
33607
|
+
}
|
|
33608
|
+
listSet($o, key, value);
|
|
33609
|
+
}
|
|
33610
|
+
}
|
|
33611
|
+
};
|
|
33612
|
+
return channel;
|
|
33613
|
+
};
|
|
33614
|
+
|
|
33615
|
+
var replace = String.prototype.replace;
|
|
33616
|
+
var percentTwenties = /%20/g;
|
|
33617
|
+
|
|
33618
|
+
var Format = {
|
|
33619
|
+
RFC1738: 'RFC1738',
|
|
33620
|
+
RFC3986: 'RFC3986'
|
|
33621
|
+
};
|
|
33622
|
+
|
|
33623
|
+
var formats$3 = {
|
|
33624
|
+
'default': Format.RFC3986,
|
|
33625
|
+
formatters: {
|
|
33626
|
+
RFC1738: function (value) {
|
|
33627
|
+
return replace.call(value, percentTwenties, '+');
|
|
33628
|
+
},
|
|
33629
|
+
RFC3986: function (value) {
|
|
33630
|
+
return String(value);
|
|
33631
|
+
}
|
|
33632
|
+
},
|
|
33633
|
+
RFC1738: Format.RFC1738,
|
|
33634
|
+
RFC3986: Format.RFC3986
|
|
33635
|
+
};
|
|
33636
|
+
|
|
33637
|
+
var formats$2 = formats$3;
|
|
33638
|
+
|
|
33639
|
+
var has$2 = Object.prototype.hasOwnProperty;
|
|
33640
|
+
var isArray$2 = Array.isArray;
|
|
33641
|
+
|
|
33642
|
+
var hexTable = (function () {
|
|
33643
|
+
var array = [];
|
|
33644
|
+
for (var i = 0; i < 256; ++i) {
|
|
33645
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
33646
|
+
}
|
|
33647
|
+
|
|
33648
|
+
return array;
|
|
33649
|
+
}());
|
|
33650
|
+
|
|
33651
|
+
var compactQueue = function compactQueue(queue) {
|
|
33652
|
+
while (queue.length > 1) {
|
|
33653
|
+
var item = queue.pop();
|
|
33654
|
+
var obj = item.obj[item.prop];
|
|
33655
|
+
|
|
33656
|
+
if (isArray$2(obj)) {
|
|
33657
|
+
var compacted = [];
|
|
33658
|
+
|
|
33659
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
33660
|
+
if (typeof obj[j] !== 'undefined') {
|
|
33661
|
+
compacted.push(obj[j]);
|
|
33662
|
+
}
|
|
33663
|
+
}
|
|
33664
|
+
|
|
33665
|
+
item.obj[item.prop] = compacted;
|
|
33666
|
+
}
|
|
33667
|
+
}
|
|
33668
|
+
};
|
|
33669
|
+
|
|
33670
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
33671
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
33672
|
+
for (var i = 0; i < source.length; ++i) {
|
|
33673
|
+
if (typeof source[i] !== 'undefined') {
|
|
33674
|
+
obj[i] = source[i];
|
|
33675
|
+
}
|
|
33676
|
+
}
|
|
33677
|
+
|
|
33678
|
+
return obj;
|
|
33679
|
+
};
|
|
33680
|
+
|
|
33681
|
+
var merge = function merge(target, source, options) {
|
|
33682
|
+
/* eslint no-param-reassign: 0 */
|
|
33683
|
+
if (!source) {
|
|
33684
|
+
return target;
|
|
33685
|
+
}
|
|
33686
|
+
|
|
33687
|
+
if (typeof source !== 'object') {
|
|
33688
|
+
if (isArray$2(target)) {
|
|
33689
|
+
target.push(source);
|
|
33690
|
+
} else if (target && typeof target === 'object') {
|
|
33691
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
|
|
33692
|
+
target[source] = true;
|
|
33693
|
+
}
|
|
33694
|
+
} else {
|
|
33695
|
+
return [target, source];
|
|
33696
|
+
}
|
|
33697
|
+
|
|
33698
|
+
return target;
|
|
33699
|
+
}
|
|
33700
|
+
|
|
33701
|
+
if (!target || typeof target !== 'object') {
|
|
33702
|
+
return [target].concat(source);
|
|
33703
|
+
}
|
|
33704
|
+
|
|
33705
|
+
var mergeTarget = target;
|
|
33706
|
+
if (isArray$2(target) && !isArray$2(source)) {
|
|
33707
|
+
mergeTarget = arrayToObject(target, options);
|
|
33708
|
+
}
|
|
33709
|
+
|
|
33710
|
+
if (isArray$2(target) && isArray$2(source)) {
|
|
33711
|
+
source.forEach(function (item, i) {
|
|
33712
|
+
if (has$2.call(target, i)) {
|
|
33713
|
+
var targetItem = target[i];
|
|
33714
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
33715
|
+
target[i] = merge(targetItem, item, options);
|
|
33716
|
+
} else {
|
|
33717
|
+
target.push(item);
|
|
33718
|
+
}
|
|
33719
|
+
} else {
|
|
33720
|
+
target[i] = item;
|
|
33721
|
+
}
|
|
33722
|
+
});
|
|
33723
|
+
return target;
|
|
33724
|
+
}
|
|
33725
|
+
|
|
33726
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
33727
|
+
var value = source[key];
|
|
33728
|
+
|
|
33729
|
+
if (has$2.call(acc, key)) {
|
|
33730
|
+
acc[key] = merge(acc[key], value, options);
|
|
33731
|
+
} else {
|
|
33732
|
+
acc[key] = value;
|
|
33733
|
+
}
|
|
33734
|
+
return acc;
|
|
33735
|
+
}, mergeTarget);
|
|
33736
|
+
};
|
|
33737
|
+
|
|
33738
|
+
var assign$1 = function assignSingleSource(target, source) {
|
|
33739
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
33740
|
+
acc[key] = source[key];
|
|
33741
|
+
return acc;
|
|
33742
|
+
}, target);
|
|
33743
|
+
};
|
|
33744
|
+
|
|
33745
|
+
var decode = function (str, decoder, charset) {
|
|
33746
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
33747
|
+
if (charset === 'iso-8859-1') {
|
|
33748
|
+
// unescape never throws, no try...catch needed:
|
|
33749
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
33750
|
+
}
|
|
33751
|
+
// utf-8
|
|
33752
|
+
try {
|
|
33753
|
+
return decodeURIComponent(strWithoutPlus);
|
|
33754
|
+
} catch (e) {
|
|
33755
|
+
return strWithoutPlus;
|
|
33756
|
+
}
|
|
33757
|
+
};
|
|
33758
|
+
|
|
33759
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
33760
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
33761
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
33762
|
+
if (str.length === 0) {
|
|
33763
|
+
return str;
|
|
33764
|
+
}
|
|
33765
|
+
|
|
33766
|
+
var string = str;
|
|
33767
|
+
if (typeof str === 'symbol') {
|
|
33768
|
+
string = Symbol.prototype.toString.call(str);
|
|
33769
|
+
} else if (typeof str !== 'string') {
|
|
33770
|
+
string = String(str);
|
|
33771
|
+
}
|
|
33772
|
+
|
|
33773
|
+
if (charset === 'iso-8859-1') {
|
|
33774
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
33775
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
33776
|
+
});
|
|
33777
|
+
}
|
|
33778
|
+
|
|
33779
|
+
var out = '';
|
|
33780
|
+
for (var i = 0; i < string.length; ++i) {
|
|
33781
|
+
var c = string.charCodeAt(i);
|
|
33782
|
+
|
|
33783
|
+
if (
|
|
33784
|
+
c === 0x2D // -
|
|
33785
|
+
|| c === 0x2E // .
|
|
33786
|
+
|| c === 0x5F // _
|
|
33787
|
+
|| c === 0x7E // ~
|
|
33788
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
33789
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
33790
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
33791
|
+
|| (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
33792
|
+
) {
|
|
33793
|
+
out += string.charAt(i);
|
|
33794
|
+
continue;
|
|
33795
|
+
}
|
|
33796
|
+
|
|
33797
|
+
if (c < 0x80) {
|
|
33798
|
+
out = out + hexTable[c];
|
|
33799
|
+
continue;
|
|
33800
|
+
}
|
|
33801
|
+
|
|
33802
|
+
if (c < 0x800) {
|
|
33803
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
33804
|
+
continue;
|
|
33805
|
+
}
|
|
33806
|
+
|
|
33807
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
33808
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
33809
|
+
continue;
|
|
33810
|
+
}
|
|
33811
|
+
|
|
33812
|
+
i += 1;
|
|
33813
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
33814
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
33815
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
33816
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
33817
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
33818
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
33819
|
+
}
|
|
33820
|
+
|
|
33821
|
+
return out;
|
|
33822
|
+
};
|
|
33823
|
+
|
|
33824
|
+
var compact = function compact(value) {
|
|
33825
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
33826
|
+
var refs = [];
|
|
33827
|
+
|
|
33828
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
33829
|
+
var item = queue[i];
|
|
33830
|
+
var obj = item.obj[item.prop];
|
|
33831
|
+
|
|
33832
|
+
var keys = Object.keys(obj);
|
|
33833
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
33834
|
+
var key = keys[j];
|
|
33835
|
+
var val = obj[key];
|
|
33836
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
33837
|
+
queue.push({ obj: obj, prop: key });
|
|
33838
|
+
refs.push(val);
|
|
33839
|
+
}
|
|
33840
|
+
}
|
|
33841
|
+
}
|
|
33842
|
+
|
|
33843
|
+
compactQueue(queue);
|
|
33844
|
+
|
|
33845
|
+
return value;
|
|
33846
|
+
};
|
|
33847
|
+
|
|
33848
|
+
var isRegExp$1 = function isRegExp(obj) {
|
|
33849
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
33850
|
+
};
|
|
33851
|
+
|
|
33852
|
+
var isBuffer = function isBuffer(obj) {
|
|
33853
|
+
if (!obj || typeof obj !== 'object') {
|
|
33854
|
+
return false;
|
|
33855
|
+
}
|
|
33856
|
+
|
|
33857
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
33858
|
+
};
|
|
33859
|
+
|
|
33860
|
+
var combine = function combine(a, b) {
|
|
33861
|
+
return [].concat(a, b);
|
|
33862
|
+
};
|
|
33863
|
+
|
|
33864
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
33865
|
+
if (isArray$2(val)) {
|
|
33866
|
+
var mapped = [];
|
|
33867
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
33868
|
+
mapped.push(fn(val[i]));
|
|
33869
|
+
}
|
|
33870
|
+
return mapped;
|
|
33871
|
+
}
|
|
33872
|
+
return fn(val);
|
|
33873
|
+
};
|
|
33874
|
+
|
|
33875
|
+
var utils$2 = {
|
|
33876
|
+
arrayToObject: arrayToObject,
|
|
33877
|
+
assign: assign$1,
|
|
33878
|
+
combine: combine,
|
|
33879
|
+
compact: compact,
|
|
33880
|
+
decode: decode,
|
|
33881
|
+
encode: encode,
|
|
33882
|
+
isBuffer: isBuffer,
|
|
33883
|
+
isRegExp: isRegExp$1,
|
|
33884
|
+
maybeMap: maybeMap,
|
|
33885
|
+
merge: merge
|
|
33886
|
+
};
|
|
33887
|
+
|
|
33888
|
+
var getSideChannel = sideChannel;
|
|
33889
|
+
var utils$1 = utils$2;
|
|
33890
|
+
var formats$1 = formats$3;
|
|
33891
|
+
var has$1 = Object.prototype.hasOwnProperty;
|
|
33892
|
+
|
|
33893
|
+
var arrayPrefixGenerators = {
|
|
33894
|
+
brackets: function brackets(prefix) {
|
|
33895
|
+
return prefix + '[]';
|
|
33896
|
+
},
|
|
33897
|
+
comma: 'comma',
|
|
33898
|
+
indices: function indices(prefix, key) {
|
|
33899
|
+
return prefix + '[' + key + ']';
|
|
33900
|
+
},
|
|
33901
|
+
repeat: function repeat(prefix) {
|
|
33902
|
+
return prefix;
|
|
33903
|
+
}
|
|
33904
|
+
};
|
|
33905
|
+
|
|
33906
|
+
var isArray$1 = Array.isArray;
|
|
33907
|
+
var push = Array.prototype.push;
|
|
33908
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
33909
|
+
push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
33910
|
+
};
|
|
33911
|
+
|
|
33912
|
+
var toISO = Date.prototype.toISOString;
|
|
33913
|
+
|
|
33914
|
+
var defaultFormat = formats$1['default'];
|
|
33915
|
+
var defaults$1 = {
|
|
33916
|
+
addQueryPrefix: false,
|
|
33917
|
+
allowDots: false,
|
|
33918
|
+
charset: 'utf-8',
|
|
33919
|
+
charsetSentinel: false,
|
|
33920
|
+
delimiter: '&',
|
|
33921
|
+
encode: true,
|
|
33922
|
+
encoder: utils$1.encode,
|
|
33923
|
+
encodeValuesOnly: false,
|
|
33924
|
+
format: defaultFormat,
|
|
33925
|
+
formatter: formats$1.formatters[defaultFormat],
|
|
33926
|
+
// deprecated
|
|
33927
|
+
indices: false,
|
|
33928
|
+
serializeDate: function serializeDate(date) {
|
|
33929
|
+
return toISO.call(date);
|
|
33930
|
+
},
|
|
33931
|
+
skipNulls: false,
|
|
33932
|
+
strictNullHandling: false
|
|
33933
|
+
};
|
|
33934
|
+
|
|
33935
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
33936
|
+
return typeof v === 'string'
|
|
33937
|
+
|| typeof v === 'number'
|
|
33938
|
+
|| typeof v === 'boolean'
|
|
33939
|
+
|| typeof v === 'symbol'
|
|
33940
|
+
|| typeof v === 'bigint';
|
|
33941
|
+
};
|
|
33942
|
+
|
|
33943
|
+
var sentinel = {};
|
|
33944
|
+
|
|
33945
|
+
var stringify$1 = function stringify(
|
|
33946
|
+
object,
|
|
33947
|
+
prefix,
|
|
33948
|
+
generateArrayPrefix,
|
|
33949
|
+
commaRoundTrip,
|
|
33950
|
+
strictNullHandling,
|
|
33951
|
+
skipNulls,
|
|
33952
|
+
encoder,
|
|
33953
|
+
filter,
|
|
33954
|
+
sort,
|
|
33955
|
+
allowDots,
|
|
33956
|
+
serializeDate,
|
|
33957
|
+
format,
|
|
33958
|
+
formatter,
|
|
33959
|
+
encodeValuesOnly,
|
|
33960
|
+
charset,
|
|
33961
|
+
sideChannel
|
|
33962
|
+
) {
|
|
33963
|
+
var obj = object;
|
|
33964
|
+
|
|
33965
|
+
var tmpSc = sideChannel;
|
|
33966
|
+
var step = 0;
|
|
33967
|
+
var findFlag = false;
|
|
33968
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
33969
|
+
// Where object last appeared in the ref tree
|
|
33970
|
+
var pos = tmpSc.get(object);
|
|
33971
|
+
step += 1;
|
|
33972
|
+
if (typeof pos !== 'undefined') {
|
|
33973
|
+
if (pos === step) {
|
|
33974
|
+
throw new RangeError('Cyclic object value');
|
|
33975
|
+
} else {
|
|
33976
|
+
findFlag = true; // Break while
|
|
33977
|
+
}
|
|
33978
|
+
}
|
|
33979
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
33980
|
+
step = 0;
|
|
33981
|
+
}
|
|
33982
|
+
}
|
|
33983
|
+
|
|
33984
|
+
if (typeof filter === 'function') {
|
|
33985
|
+
obj = filter(prefix, obj);
|
|
33986
|
+
} else if (obj instanceof Date) {
|
|
33987
|
+
obj = serializeDate(obj);
|
|
33988
|
+
} else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
33989
|
+
obj = utils$1.maybeMap(obj, function (value) {
|
|
33990
|
+
if (value instanceof Date) {
|
|
33991
|
+
return serializeDate(value);
|
|
33992
|
+
}
|
|
33993
|
+
return value;
|
|
33994
|
+
});
|
|
33995
|
+
}
|
|
33996
|
+
|
|
33997
|
+
if (obj === null) {
|
|
33998
|
+
if (strictNullHandling) {
|
|
33999
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
|
|
34000
|
+
}
|
|
34001
|
+
|
|
34002
|
+
obj = '';
|
|
34003
|
+
}
|
|
34004
|
+
|
|
34005
|
+
if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
|
|
34006
|
+
if (encoder) {
|
|
34007
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
|
|
34008
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
|
|
34009
|
+
}
|
|
34010
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
34011
|
+
}
|
|
34012
|
+
|
|
34013
|
+
var values = [];
|
|
34014
|
+
|
|
34015
|
+
if (typeof obj === 'undefined') {
|
|
34016
|
+
return values;
|
|
34017
|
+
}
|
|
34018
|
+
|
|
34019
|
+
var objKeys;
|
|
34020
|
+
if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
34021
|
+
// we need to join elements in
|
|
34022
|
+
if (encodeValuesOnly && encoder) {
|
|
34023
|
+
obj = utils$1.maybeMap(obj, encoder);
|
|
34024
|
+
}
|
|
34025
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
34026
|
+
} else if (isArray$1(filter)) {
|
|
34027
|
+
objKeys = filter;
|
|
34028
|
+
} else {
|
|
34029
|
+
var keys = Object.keys(obj);
|
|
34030
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
34031
|
+
}
|
|
34032
|
+
|
|
34033
|
+
var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
34034
|
+
|
|
34035
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
34036
|
+
var key = objKeys[j];
|
|
34037
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
34038
|
+
|
|
34039
|
+
if (skipNulls && value === null) {
|
|
34040
|
+
continue;
|
|
34041
|
+
}
|
|
34042
|
+
|
|
34043
|
+
var keyPrefix = isArray$1(obj)
|
|
34044
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
34045
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
34046
|
+
|
|
34047
|
+
sideChannel.set(object, step);
|
|
34048
|
+
var valueSideChannel = getSideChannel();
|
|
34049
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
34050
|
+
pushToArray(values, stringify(
|
|
34051
|
+
value,
|
|
34052
|
+
keyPrefix,
|
|
34053
|
+
generateArrayPrefix,
|
|
34054
|
+
commaRoundTrip,
|
|
34055
|
+
strictNullHandling,
|
|
34056
|
+
skipNulls,
|
|
34057
|
+
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
|
|
34058
|
+
filter,
|
|
34059
|
+
sort,
|
|
34060
|
+
allowDots,
|
|
34061
|
+
serializeDate,
|
|
34062
|
+
format,
|
|
34063
|
+
formatter,
|
|
34064
|
+
encodeValuesOnly,
|
|
34065
|
+
charset,
|
|
34066
|
+
valueSideChannel
|
|
34067
|
+
));
|
|
34068
|
+
}
|
|
34069
|
+
|
|
34070
|
+
return values;
|
|
34071
|
+
};
|
|
34072
|
+
|
|
34073
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
34074
|
+
if (!opts) {
|
|
34075
|
+
return defaults$1;
|
|
34076
|
+
}
|
|
34077
|
+
|
|
34078
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
34079
|
+
throw new TypeError('Encoder has to be a function.');
|
|
34080
|
+
}
|
|
34081
|
+
|
|
34082
|
+
var charset = opts.charset || defaults$1.charset;
|
|
34083
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
34084
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
34085
|
+
}
|
|
34086
|
+
|
|
34087
|
+
var format = formats$1['default'];
|
|
34088
|
+
if (typeof opts.format !== 'undefined') {
|
|
34089
|
+
if (!has$1.call(formats$1.formatters, opts.format)) {
|
|
34090
|
+
throw new TypeError('Unknown format option provided.');
|
|
34091
|
+
}
|
|
34092
|
+
format = opts.format;
|
|
34093
|
+
}
|
|
34094
|
+
var formatter = formats$1.formatters[format];
|
|
34095
|
+
|
|
34096
|
+
var filter = defaults$1.filter;
|
|
34097
|
+
if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
|
|
34098
|
+
filter = opts.filter;
|
|
34099
|
+
}
|
|
34100
|
+
|
|
34101
|
+
return {
|
|
34102
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
|
|
34103
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
|
|
34104
|
+
charset: charset,
|
|
34105
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
|
|
34106
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
|
|
34107
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
|
|
34108
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
|
|
34109
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
|
|
34110
|
+
filter: filter,
|
|
34111
|
+
format: format,
|
|
34112
|
+
formatter: formatter,
|
|
34113
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
|
|
34114
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
|
|
34115
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
34116
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
|
|
34117
|
+
};
|
|
34118
|
+
};
|
|
34119
|
+
|
|
34120
|
+
var stringify_1 = function (object, opts) {
|
|
34121
|
+
var obj = object;
|
|
34122
|
+
var options = normalizeStringifyOptions(opts);
|
|
34123
|
+
|
|
34124
|
+
var objKeys;
|
|
34125
|
+
var filter;
|
|
34126
|
+
|
|
34127
|
+
if (typeof options.filter === 'function') {
|
|
34128
|
+
filter = options.filter;
|
|
34129
|
+
obj = filter('', obj);
|
|
34130
|
+
} else if (isArray$1(options.filter)) {
|
|
34131
|
+
filter = options.filter;
|
|
34132
|
+
objKeys = filter;
|
|
34133
|
+
}
|
|
34134
|
+
|
|
34135
|
+
var keys = [];
|
|
34136
|
+
|
|
34137
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
34138
|
+
return '';
|
|
34139
|
+
}
|
|
34140
|
+
|
|
34141
|
+
var arrayFormat;
|
|
34142
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
34143
|
+
arrayFormat = opts.arrayFormat;
|
|
34144
|
+
} else if (opts && 'indices' in opts) {
|
|
34145
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
34146
|
+
} else {
|
|
34147
|
+
arrayFormat = 'indices';
|
|
34148
|
+
}
|
|
34149
|
+
|
|
34150
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
34151
|
+
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
34152
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
34153
|
+
}
|
|
34154
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
34155
|
+
|
|
34156
|
+
if (!objKeys) {
|
|
34157
|
+
objKeys = Object.keys(obj);
|
|
34158
|
+
}
|
|
34159
|
+
|
|
34160
|
+
if (options.sort) {
|
|
34161
|
+
objKeys.sort(options.sort);
|
|
34162
|
+
}
|
|
34163
|
+
|
|
34164
|
+
var sideChannel = getSideChannel();
|
|
34165
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
34166
|
+
var key = objKeys[i];
|
|
34167
|
+
|
|
34168
|
+
if (options.skipNulls && obj[key] === null) {
|
|
34169
|
+
continue;
|
|
34170
|
+
}
|
|
34171
|
+
pushToArray(keys, stringify$1(
|
|
34172
|
+
obj[key],
|
|
34173
|
+
key,
|
|
34174
|
+
generateArrayPrefix,
|
|
34175
|
+
commaRoundTrip,
|
|
34176
|
+
options.strictNullHandling,
|
|
34177
|
+
options.skipNulls,
|
|
34178
|
+
options.encode ? options.encoder : null,
|
|
34179
|
+
options.filter,
|
|
34180
|
+
options.sort,
|
|
34181
|
+
options.allowDots,
|
|
34182
|
+
options.serializeDate,
|
|
34183
|
+
options.format,
|
|
34184
|
+
options.formatter,
|
|
34185
|
+
options.encodeValuesOnly,
|
|
34186
|
+
options.charset,
|
|
34187
|
+
sideChannel
|
|
34188
|
+
));
|
|
34189
|
+
}
|
|
34190
|
+
|
|
34191
|
+
var joined = keys.join(options.delimiter);
|
|
34192
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
34193
|
+
|
|
34194
|
+
if (options.charsetSentinel) {
|
|
34195
|
+
if (options.charset === 'iso-8859-1') {
|
|
34196
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
34197
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
34198
|
+
} else {
|
|
34199
|
+
// encodeURIComponent('✓')
|
|
34200
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
34201
|
+
}
|
|
34202
|
+
}
|
|
34203
|
+
|
|
34204
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
34205
|
+
};
|
|
34206
|
+
|
|
34207
|
+
var utils = utils$2;
|
|
34208
|
+
|
|
34209
|
+
var has = Object.prototype.hasOwnProperty;
|
|
34210
|
+
var isArray = Array.isArray;
|
|
34211
|
+
|
|
34212
|
+
var defaults = {
|
|
34213
|
+
allowDots: false,
|
|
34214
|
+
allowPrototypes: false,
|
|
34215
|
+
allowSparse: false,
|
|
34216
|
+
arrayLimit: 20,
|
|
34217
|
+
charset: 'utf-8',
|
|
34218
|
+
charsetSentinel: false,
|
|
34219
|
+
comma: false,
|
|
34220
|
+
decoder: utils.decode,
|
|
34221
|
+
delimiter: '&',
|
|
34222
|
+
depth: 5,
|
|
34223
|
+
ignoreQueryPrefix: false,
|
|
34224
|
+
interpretNumericEntities: false,
|
|
34225
|
+
parameterLimit: 1000,
|
|
34226
|
+
parseArrays: true,
|
|
34227
|
+
plainObjects: false,
|
|
34228
|
+
strictNullHandling: false
|
|
34229
|
+
};
|
|
34230
|
+
|
|
34231
|
+
var interpretNumericEntities = function (str) {
|
|
34232
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
34233
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
34234
|
+
});
|
|
34235
|
+
};
|
|
34236
|
+
|
|
34237
|
+
var parseArrayValue = function (val, options) {
|
|
34238
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
34239
|
+
return val.split(',');
|
|
34240
|
+
}
|
|
34241
|
+
|
|
34242
|
+
return val;
|
|
34243
|
+
};
|
|
34244
|
+
|
|
34245
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
34246
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
34247
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
34248
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
34249
|
+
// the ✓ character, such as us-ascii.
|
|
34250
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
34251
|
+
|
|
34252
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
34253
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
34254
|
+
|
|
34255
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
34256
|
+
var obj = { __proto__: null };
|
|
34257
|
+
|
|
34258
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
34259
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
34260
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
34261
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
34262
|
+
var i;
|
|
34263
|
+
|
|
34264
|
+
var charset = options.charset;
|
|
34265
|
+
if (options.charsetSentinel) {
|
|
34266
|
+
for (i = 0; i < parts.length; ++i) {
|
|
34267
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
34268
|
+
if (parts[i] === charsetSentinel) {
|
|
34269
|
+
charset = 'utf-8';
|
|
34270
|
+
} else if (parts[i] === isoSentinel) {
|
|
34271
|
+
charset = 'iso-8859-1';
|
|
34272
|
+
}
|
|
34273
|
+
skipIndex = i;
|
|
34274
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
34275
|
+
}
|
|
34276
|
+
}
|
|
34277
|
+
}
|
|
34278
|
+
|
|
34279
|
+
for (i = 0; i < parts.length; ++i) {
|
|
34280
|
+
if (i === skipIndex) {
|
|
34281
|
+
continue;
|
|
34282
|
+
}
|
|
34283
|
+
var part = parts[i];
|
|
34284
|
+
|
|
34285
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
34286
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
34287
|
+
|
|
34288
|
+
var key, val;
|
|
34289
|
+
if (pos === -1) {
|
|
34290
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
34291
|
+
val = options.strictNullHandling ? null : '';
|
|
34292
|
+
} else {
|
|
34293
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
34294
|
+
val = utils.maybeMap(
|
|
34295
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
34296
|
+
function (encodedVal) {
|
|
34297
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
34298
|
+
}
|
|
34299
|
+
);
|
|
34300
|
+
}
|
|
34301
|
+
|
|
34302
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
34303
|
+
val = interpretNumericEntities(val);
|
|
34304
|
+
}
|
|
34305
|
+
|
|
34306
|
+
if (part.indexOf('[]=') > -1) {
|
|
34307
|
+
val = isArray(val) ? [val] : val;
|
|
34308
|
+
}
|
|
34309
|
+
|
|
34310
|
+
if (has.call(obj, key)) {
|
|
34311
|
+
obj[key] = utils.combine(obj[key], val);
|
|
34312
|
+
} else {
|
|
34313
|
+
obj[key] = val;
|
|
34314
|
+
}
|
|
34315
|
+
}
|
|
34316
|
+
|
|
34317
|
+
return obj;
|
|
34318
|
+
};
|
|
34319
|
+
|
|
34320
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
34321
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
34322
|
+
|
|
34323
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
34324
|
+
var obj;
|
|
34325
|
+
var root = chain[i];
|
|
34326
|
+
|
|
34327
|
+
if (root === '[]' && options.parseArrays) {
|
|
34328
|
+
obj = [].concat(leaf);
|
|
34329
|
+
} else {
|
|
34330
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
34331
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
34332
|
+
var index = parseInt(cleanRoot, 10);
|
|
34333
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
34334
|
+
obj = { 0: leaf };
|
|
34335
|
+
} else if (
|
|
34336
|
+
!isNaN(index)
|
|
34337
|
+
&& root !== cleanRoot
|
|
34338
|
+
&& String(index) === cleanRoot
|
|
34339
|
+
&& index >= 0
|
|
34340
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
34341
|
+
) {
|
|
34342
|
+
obj = [];
|
|
34343
|
+
obj[index] = leaf;
|
|
34344
|
+
} else if (cleanRoot !== '__proto__') {
|
|
34345
|
+
obj[cleanRoot] = leaf;
|
|
34346
|
+
}
|
|
34347
|
+
}
|
|
34348
|
+
|
|
34349
|
+
leaf = obj;
|
|
34350
|
+
}
|
|
34351
|
+
|
|
34352
|
+
return leaf;
|
|
34353
|
+
};
|
|
34354
|
+
|
|
34355
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
34356
|
+
if (!givenKey) {
|
|
34357
|
+
return;
|
|
34358
|
+
}
|
|
34359
|
+
|
|
34360
|
+
// Transform dot notation to bracket notation
|
|
34361
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
34362
|
+
|
|
34363
|
+
// The regex chunks
|
|
34364
|
+
|
|
34365
|
+
var brackets = /(\[[^[\]]*])/;
|
|
34366
|
+
var child = /(\[[^[\]]*])/g;
|
|
34367
|
+
|
|
34368
|
+
// Get the parent
|
|
34369
|
+
|
|
34370
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
34371
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
34372
|
+
|
|
34373
|
+
// Stash the parent if it exists
|
|
34374
|
+
|
|
34375
|
+
var keys = [];
|
|
34376
|
+
if (parent) {
|
|
34377
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
34378
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
34379
|
+
if (!options.allowPrototypes) {
|
|
34380
|
+
return;
|
|
34381
|
+
}
|
|
34382
|
+
}
|
|
34383
|
+
|
|
34384
|
+
keys.push(parent);
|
|
34385
|
+
}
|
|
34386
|
+
|
|
34387
|
+
// Loop through children appending to the array until we hit depth
|
|
34388
|
+
|
|
34389
|
+
var i = 0;
|
|
34390
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
34391
|
+
i += 1;
|
|
34392
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
34393
|
+
if (!options.allowPrototypes) {
|
|
34394
|
+
return;
|
|
34395
|
+
}
|
|
34396
|
+
}
|
|
34397
|
+
keys.push(segment[1]);
|
|
34398
|
+
}
|
|
34399
|
+
|
|
34400
|
+
// If there's a remainder, just add whatever is left
|
|
34401
|
+
|
|
34402
|
+
if (segment) {
|
|
34403
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
34404
|
+
}
|
|
34405
|
+
|
|
34406
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
34407
|
+
};
|
|
34408
|
+
|
|
34409
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
34410
|
+
if (!opts) {
|
|
34411
|
+
return defaults;
|
|
34412
|
+
}
|
|
34413
|
+
|
|
34414
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
34415
|
+
throw new TypeError('Decoder has to be a function.');
|
|
34416
|
+
}
|
|
34417
|
+
|
|
34418
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
34419
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
34420
|
+
}
|
|
34421
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
34422
|
+
|
|
34423
|
+
return {
|
|
34424
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
34425
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
34426
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
34427
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
34428
|
+
charset: charset,
|
|
34429
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
34430
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
34431
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
34432
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
34433
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
34434
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
34435
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
34436
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
34437
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
34438
|
+
parseArrays: opts.parseArrays !== false,
|
|
34439
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
34440
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
34441
|
+
};
|
|
34442
|
+
};
|
|
34443
|
+
|
|
34444
|
+
var parse$1 = function (str, opts) {
|
|
34445
|
+
var options = normalizeParseOptions(opts);
|
|
34446
|
+
|
|
34447
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
34448
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
34449
|
+
}
|
|
34450
|
+
|
|
34451
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
34452
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
34453
|
+
|
|
34454
|
+
// Iterate over the keys and setup the new object
|
|
34455
|
+
|
|
34456
|
+
var keys = Object.keys(tempObj);
|
|
34457
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
34458
|
+
var key = keys[i];
|
|
34459
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
34460
|
+
obj = utils.merge(obj, newObj, options);
|
|
34461
|
+
}
|
|
34462
|
+
|
|
34463
|
+
if (options.allowSparse === true) {
|
|
34464
|
+
return obj;
|
|
34465
|
+
}
|
|
34466
|
+
|
|
34467
|
+
return utils.compact(obj);
|
|
34468
|
+
};
|
|
34469
|
+
|
|
34470
|
+
var stringify = stringify_1;
|
|
34471
|
+
var parse = parse$1;
|
|
34472
|
+
var formats = formats$3;
|
|
34473
|
+
|
|
34474
|
+
var lib = {
|
|
34475
|
+
formats: formats,
|
|
34476
|
+
parse: parse,
|
|
34477
|
+
stringify: stringify
|
|
34478
|
+
};
|
|
34479
|
+
|
|
34480
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34481
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34482
|
+
var matchesImpl = function matchesImpl(pattern, object) {
|
|
34483
|
+
var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
34484
|
+
if (object === pattern) return true;
|
|
34485
|
+
if (typeof pattern === "function" && pattern(object, __parent)) return true;
|
|
34486
|
+
if (isNil(pattern) || isNil(object)) return false;
|
|
34487
|
+
if (_typeof$6(pattern) !== "object") return false;
|
|
34488
|
+
return Object.entries(pattern).every(function (_ref) {
|
|
34489
|
+
var _ref2 = _slicedToArray$2(_ref, 2),
|
|
34490
|
+
key = _ref2[0],
|
|
34491
|
+
value = _ref2[1];
|
|
34492
|
+
return matchesImpl(value, object[key], __parent);
|
|
34493
|
+
});
|
|
34494
|
+
};
|
|
34495
|
+
var matches = /*#__PURE__*/curry(function (pattern, object) {
|
|
34496
|
+
return matchesImpl(pattern, object);
|
|
34497
|
+
});
|
|
34498
|
+
var transformObjectDeep = function transformObjectDeep(object, keyValueTransformer) {
|
|
34499
|
+
var objectPreProcessor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
34500
|
+
if (objectPreProcessor && typeof objectPreProcessor === "function") {
|
|
34501
|
+
object = objectPreProcessor(object);
|
|
34502
|
+
}
|
|
34503
|
+
if (Array.isArray(object)) {
|
|
34504
|
+
return object.map(function (obj) {
|
|
34505
|
+
return transformObjectDeep(obj, keyValueTransformer, objectPreProcessor);
|
|
34506
|
+
});
|
|
34507
|
+
} else if (object === null || _typeof$6(object) !== "object") {
|
|
34508
|
+
return object;
|
|
34509
|
+
}
|
|
34510
|
+
return Object.fromEntries(Object.entries(object).map(function (_ref3) {
|
|
34511
|
+
var _ref4 = _slicedToArray$2(_ref3, 2),
|
|
34512
|
+
key = _ref4[0],
|
|
34513
|
+
value = _ref4[1];
|
|
34514
|
+
return keyValueTransformer(key, transformObjectDeep(value, keyValueTransformer, objectPreProcessor));
|
|
34515
|
+
}));
|
|
34516
|
+
};
|
|
34517
|
+
var preprocessForSerialization = function preprocessForSerialization(object) {
|
|
34518
|
+
return transformObjectDeep(object, function (key, value) {
|
|
34519
|
+
return [key, value];
|
|
34520
|
+
}, function (object) {
|
|
34521
|
+
return typeof (object === null || object === void 0 ? void 0 : object.toJSON) === "function" ? object.toJSON() : object;
|
|
34522
|
+
});
|
|
34523
|
+
};
|
|
34524
|
+
var getQueryParams = function getQueryParams() {
|
|
34525
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34526
|
+
return lib.parse(location.search, _objectSpread$2({
|
|
34527
|
+
ignoreQueryPrefix: true
|
|
34528
|
+
}, options));
|
|
34529
|
+
};
|
|
34530
|
+
var modifyBy = /*#__PURE__*/curry(function (pattern, modifier, array) {
|
|
34531
|
+
return array.map(function (item) {
|
|
34532
|
+
return matches(pattern, item) ? modifier(item) : item;
|
|
34533
|
+
});
|
|
34534
|
+
});
|
|
34535
|
+
var snakeToCamelCase = function snakeToCamelCase(string) {
|
|
34536
|
+
return string.replace(/(_\w)/g, function (letter) {
|
|
34537
|
+
return letter[1].toUpperCase();
|
|
34538
|
+
});
|
|
34539
|
+
};
|
|
34540
|
+
var camelToSnakeCase = function camelToSnakeCase(string) {
|
|
34541
|
+
return string.replace(/[A-Z]/g, function (letter) {
|
|
34542
|
+
return "_".concat(letter.toLowerCase());
|
|
34543
|
+
});
|
|
34544
|
+
};
|
|
34545
|
+
var buildUrl = function buildUrl(route, params) {
|
|
34546
|
+
var placeHolders = [];
|
|
34547
|
+
toPairs(params).forEach(function (_ref5) {
|
|
34548
|
+
var _ref6 = _slicedToArray$2(_ref5, 2),
|
|
34549
|
+
key = _ref6[0],
|
|
34550
|
+
value = _ref6[1];
|
|
34551
|
+
if (route.includes(":".concat(key))) {
|
|
34552
|
+
placeHolders.push(key);
|
|
34553
|
+
route = route.replace(":".concat(key), encodeURIComponent(value));
|
|
34554
|
+
}
|
|
34555
|
+
});
|
|
34556
|
+
var queryParams = pipe$1(omit(placeHolders), preprocessForSerialization, lib.stringify)(params);
|
|
34557
|
+
return isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
|
|
34558
|
+
};
|
|
34559
|
+
|
|
34560
|
+
var useTableSort = function useTableSort() {
|
|
34561
|
+
var queryParams = getQueryParams();
|
|
34562
|
+
var history = useHistory();
|
|
34563
|
+
var handleTableChange = function handleTableChange(pagination, sorter) {
|
|
34564
|
+
var params = {
|
|
34565
|
+
sort_by: sorter.order && camelToSnakeCase(sorter.field),
|
|
34566
|
+
order_by: URL_SORT_ORDERS[sorter.order],
|
|
34567
|
+
page: pagination.current,
|
|
34568
|
+
page_size: pagination.pageSize
|
|
34569
|
+
};
|
|
34570
|
+
var pathname = window.location.pathname;
|
|
34571
|
+
history.push(buildUrl(pathname, mergeLeft(params, queryParams)));
|
|
34572
|
+
};
|
|
34573
|
+
return {
|
|
34574
|
+
handleTableChange: handleTableChange
|
|
34575
|
+
};
|
|
34576
|
+
};
|
|
34577
|
+
|
|
34578
|
+
var _excluded$4 = ["allowRowClick", "enableColumnResize", "enableColumnReorder", "className", "columnData", "currentPageNumber", "defaultPageSize", "handlePageChange", "loading", "onRowClick", "onRowSelect", "rowData", "totalCount", "selectedRowKeys", "fixedHeight", "paginationProps", "scroll", "rowSelection", "shouldDynamicallyRenderRowSize", "bordered", "onColumnUpdate", "components", "preserveTableStateInQuery"];
|
|
34579
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34580
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$7(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34581
|
+
var TABLE_PAGINATION_HEIGHT = 64;
|
|
34582
|
+
var TABLE_DEFAULT_HEADER_HEIGHT = 40;
|
|
34583
|
+
var TABLE_ROW_HEIGHT = 52;
|
|
34584
|
+
var Table = function Table(_ref) {
|
|
34585
|
+
var _ref$allowRowClick = _ref.allowRowClick,
|
|
34586
|
+
allowRowClick = _ref$allowRowClick === void 0 ? true : _ref$allowRowClick,
|
|
34587
|
+
_ref$enableColumnResi = _ref.enableColumnResize,
|
|
34588
|
+
enableColumnResize = _ref$enableColumnResi === void 0 ? false : _ref$enableColumnResi,
|
|
34589
|
+
_ref$enableColumnReor = _ref.enableColumnReorder,
|
|
34590
|
+
enableColumnReorder = _ref$enableColumnReor === void 0 ? false : _ref$enableColumnReor,
|
|
34591
|
+
_ref$className = _ref.className,
|
|
34592
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
34593
|
+
_ref$columnData = _ref.columnData,
|
|
34594
|
+
columnData = _ref$columnData === void 0 ? [] : _ref$columnData,
|
|
34595
|
+
_ref$currentPageNumbe = _ref.currentPageNumber,
|
|
34596
|
+
currentPageNumber = _ref$currentPageNumbe === void 0 ? 1 : _ref$currentPageNumbe,
|
|
34597
|
+
_ref$defaultPageSize = _ref.defaultPageSize,
|
|
34598
|
+
defaultPageSize = _ref$defaultPageSize === void 0 ? 30 : _ref$defaultPageSize,
|
|
34599
|
+
_ref$handlePageChange = _ref.handlePageChange,
|
|
34600
|
+
handlePageChange = _ref$handlePageChange === void 0 ? noop$2 : _ref$handlePageChange,
|
|
34601
|
+
_ref$loading = _ref.loading,
|
|
34602
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
34603
|
+
onRowClick = _ref.onRowClick,
|
|
34604
|
+
onRowSelect = _ref.onRowSelect,
|
|
34605
|
+
_ref$rowData = _ref.rowData,
|
|
34606
|
+
rowData = _ref$rowData === void 0 ? [] : _ref$rowData,
|
|
34607
|
+
_ref$totalCount = _ref.totalCount,
|
|
34608
|
+
totalCount = _ref$totalCount === void 0 ? 0 : _ref$totalCount,
|
|
34609
|
+
_ref$selectedRowKeys = _ref.selectedRowKeys,
|
|
34610
|
+
selectedRowKeys = _ref$selectedRowKeys === void 0 ? [] : _ref$selectedRowKeys,
|
|
34611
|
+
_ref$fixedHeight = _ref.fixedHeight,
|
|
34612
|
+
fixedHeight = _ref$fixedHeight === void 0 ? false : _ref$fixedHeight,
|
|
34613
|
+
_ref$paginationProps = _ref.paginationProps,
|
|
34614
|
+
paginationProps = _ref$paginationProps === void 0 ? {} : _ref$paginationProps,
|
|
34615
|
+
scroll = _ref.scroll,
|
|
34616
|
+
rowSelection = _ref.rowSelection,
|
|
34617
|
+
_ref$shouldDynamicall = _ref.shouldDynamicallyRenderRowSize,
|
|
34618
|
+
shouldDynamicallyRenderRowSize = _ref$shouldDynamicall === void 0 ? false : _ref$shouldDynamicall,
|
|
34619
|
+
_ref$bordered = _ref.bordered,
|
|
34620
|
+
bordered = _ref$bordered === void 0 ? true : _ref$bordered,
|
|
34621
|
+
_ref$onColumnUpdate = _ref.onColumnUpdate,
|
|
34622
|
+
onColumnUpdate = _ref$onColumnUpdate === void 0 ? noop$2 : _ref$onColumnUpdate,
|
|
34623
|
+
_ref$components = _ref.components,
|
|
34624
|
+
components = _ref$components === void 0 ? {} : _ref$components,
|
|
34625
|
+
_ref$preserveTableSta = _ref.preserveTableStateInQuery,
|
|
34626
|
+
preserveTableStateInQuery = _ref$preserveTableSta === void 0 ? false : _ref$preserveTableSta,
|
|
34627
|
+
otherProps = _objectWithoutProperties$1(_ref, _excluded$4);
|
|
34628
|
+
var _useState = useState(null),
|
|
34629
|
+
_useState2 = _slicedToArray$2(_useState, 2),
|
|
34630
|
+
containerHeight = _useState2[0],
|
|
34631
|
+
setContainerHeight = _useState2[1];
|
|
34632
|
+
var _useState3 = useState(TABLE_DEFAULT_HEADER_HEIGHT),
|
|
34633
|
+
_useState4 = _slicedToArray$2(_useState3, 2),
|
|
34634
|
+
headerHeight = _useState4[0],
|
|
34635
|
+
setHeaderHeight = _useState4[1];
|
|
34636
|
+
var _useState5 = useState(columnData),
|
|
34637
|
+
_useState6 = _slicedToArray$2(_useState5, 2),
|
|
34638
|
+
columns = _useState6[0],
|
|
34639
|
+
setColumns = _useState6[1];
|
|
34640
|
+
var headerRef = useRef();
|
|
34641
|
+
var resizeObserver = useRef(new ResizeObserver(function (_ref2) {
|
|
34642
|
+
var _ref3 = _slicedToArray$2(_ref2, 1),
|
|
34643
|
+
height = _ref3[0].contentRect.height;
|
|
34644
|
+
return setContainerHeight(height);
|
|
34645
|
+
}));
|
|
34646
|
+
var tableRef = useCallback(function (table) {
|
|
34647
|
+
if (fixedHeight) {
|
|
34648
|
+
if (table !== null) {
|
|
34649
|
+
resizeObserver.current.observe(table === null || table === void 0 ? void 0 : table.parentNode);
|
|
34650
|
+
} else {
|
|
34651
|
+
if (resizeObserver.current) resizeObserver.current.disconnect();
|
|
34652
|
+
}
|
|
34653
|
+
}
|
|
34654
|
+
}, [resizeObserver.current, fixedHeight]);
|
|
34655
|
+
var handleHeaderClasses = function handleHeaderClasses() {
|
|
34656
|
+
var _headerRef$current;
|
|
34657
|
+
Object.values((_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.children).forEach(function (child) {
|
|
34658
|
+
child.setAttribute("data-text-align", child.style["text-align"]);
|
|
34659
|
+
});
|
|
34660
|
+
};
|
|
34661
|
+
useTimeout(function () {
|
|
34662
|
+
var headerHeight = headerRef.current ? headerRef.current.offsetHeight : TABLE_DEFAULT_HEADER_HEIGHT;
|
|
34663
|
+
setHeaderHeight(headerHeight);
|
|
34664
|
+
handleHeaderClasses();
|
|
34665
|
+
}, 0);
|
|
34666
|
+
var _useReorderColumns = useReorderColumns({
|
|
34667
|
+
isEnabled: enableColumnReorder,
|
|
34668
|
+
columns: columns,
|
|
34669
|
+
setColumns: setColumns,
|
|
34670
|
+
onColumnUpdate: onColumnUpdate,
|
|
34671
|
+
rowSelection: rowSelection
|
|
34672
|
+
}),
|
|
34673
|
+
dragProps = _useReorderColumns.dragProps,
|
|
34674
|
+
columnsWithReorderProps = _useReorderColumns.columns;
|
|
34675
|
+
var _useResizableColumns = useResizableColumns({
|
|
34676
|
+
isEnabled: enableColumnResize,
|
|
34677
|
+
columns: columnsWithReorderProps,
|
|
34678
|
+
setColumns: setColumns,
|
|
34679
|
+
onColumnUpdate: onColumnUpdate
|
|
34680
|
+
}),
|
|
34681
|
+
curatedColumnsData = _useResizableColumns.columns;
|
|
34682
|
+
var _useTableSort = useTableSort(),
|
|
34683
|
+
handleTableChange = _useTableSort.handleTableChange;
|
|
34684
|
+
var queryParams = getQueryParams();
|
|
34685
|
+
var setSortFromURL = function setSortFromURL(columnData) {
|
|
34686
|
+
var _queryParams$sort_by;
|
|
34687
|
+
return modifyBy({
|
|
34688
|
+
dataIndex: snakeToCamelCase((_queryParams$sort_by = queryParams.sort_by) !== null && _queryParams$sort_by !== void 0 ? _queryParams$sort_by : "")
|
|
34689
|
+
}, assoc("sortOrder", TABLE_SORT_ORDERS[queryParams.order_by]), columnData);
|
|
34690
|
+
};
|
|
34691
|
+
var sortedColumns = preserveTableStateInQuery ? setSortFromURL(curatedColumnsData) : curatedColumnsData;
|
|
34692
|
+
var locale = {
|
|
34693
|
+
emptyText: /*#__PURE__*/React__default.createElement(Typography, {
|
|
34694
|
+
style: "body2"
|
|
34695
|
+
}, "No Data")
|
|
34696
|
+
};
|
|
34697
|
+
var isPaginationVisible = rowData.length > defaultPageSize;
|
|
34698
|
+
var rowSelectionProps = false;
|
|
34699
|
+
if (rowSelection) {
|
|
34700
|
+
rowSelectionProps = _objectSpread$1(_objectSpread$1({
|
|
34701
|
+
type: "checkbox"
|
|
34702
|
+
}, rowSelection), {}, {
|
|
34703
|
+
onChange: function onChange(selectedRowKeys, selectedRows) {
|
|
34704
|
+
return onRowSelect && onRowSelect(selectedRowKeys, selectedRows);
|
|
34705
|
+
},
|
|
34706
|
+
selectedRowKeys: selectedRowKeys
|
|
34707
|
+
});
|
|
34708
|
+
}
|
|
34709
|
+
var reordableHeader = {
|
|
34710
|
+
header: {
|
|
34711
|
+
cell: enableColumnResize ? enableColumnReorder ? HeaderCell : ResizableHeaderCell : enableColumnReorder ? ReorderableHeaderCell : null
|
|
34712
|
+
}
|
|
34713
|
+
};
|
|
34714
|
+
var componentOverrides = _objectSpread$1(_objectSpread$1({}, components), reordableHeader);
|
|
34715
|
+
var calculateTableContainerHeight = function calculateTableContainerHeight() {
|
|
34716
|
+
return containerHeight - headerHeight - (isPaginationVisible ? TABLE_PAGINATION_HEIGHT : 0);
|
|
34717
|
+
};
|
|
34718
|
+
var itemRender = function itemRender(_, type, originalElement) {
|
|
34719
|
+
if (type === "prev") {
|
|
34720
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
34721
|
+
className: "",
|
|
34722
|
+
icon: Left,
|
|
34723
|
+
style: "text"
|
|
34724
|
+
});
|
|
34725
|
+
}
|
|
34726
|
+
if (type === "next") {
|
|
34727
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
34728
|
+
className: "",
|
|
34729
|
+
icon: Right,
|
|
34730
|
+
style: "text"
|
|
34731
|
+
});
|
|
34732
|
+
}
|
|
34733
|
+
if (type === "jump-prev") {
|
|
34734
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
34735
|
+
className: "",
|
|
34736
|
+
icon: MenuHorizontal,
|
|
34737
|
+
style: "text"
|
|
34738
|
+
});
|
|
34739
|
+
}
|
|
34740
|
+
if (type === "jump-next") {
|
|
34741
|
+
return /*#__PURE__*/React__default.createElement(Button, {
|
|
34742
|
+
className: "",
|
|
34743
|
+
icon: MenuHorizontal,
|
|
34744
|
+
style: "text"
|
|
34745
|
+
});
|
|
34746
|
+
}
|
|
34747
|
+
return originalElement;
|
|
34748
|
+
};
|
|
34749
|
+
var calculateRowsPerPage = function calculateRowsPerPage() {
|
|
34750
|
+
var viewportHeight = window.innerHeight;
|
|
34751
|
+
var rowsPerPage = Math.floor((viewportHeight - TABLE_PAGINATION_HEIGHT) / TABLE_ROW_HEIGHT * 3);
|
|
34752
|
+
return Math.ceil(rowsPerPage / 10) * 10;
|
|
34753
|
+
};
|
|
34754
|
+
var calculatePageSizeOptions = function calculatePageSizeOptions() {
|
|
34755
|
+
var rowsPerPage = shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize;
|
|
34756
|
+
var pageSizeOptions = _toConsumableArray$1(Array(5).keys()).map(function (i) {
|
|
34757
|
+
return (i + 1) * rowsPerPage;
|
|
34758
|
+
});
|
|
34759
|
+
return pageSizeOptions;
|
|
34760
|
+
};
|
|
34761
|
+
var renderTable = function renderTable() {
|
|
34762
|
+
return /*#__PURE__*/React__default.createElement(_Table, _extends$4({
|
|
34763
|
+
bordered: bordered,
|
|
34764
|
+
columns: sortedColumns,
|
|
34765
|
+
components: componentOverrides,
|
|
34766
|
+
dataSource: rowData,
|
|
34767
|
+
loading: loading,
|
|
34768
|
+
locale: locale,
|
|
34769
|
+
ref: tableRef,
|
|
34770
|
+
rowKey: "id",
|
|
34771
|
+
rowSelection: rowSelectionProps,
|
|
34772
|
+
showSorterTooltip: false,
|
|
34773
|
+
pagination: _objectSpread$1(_objectSpread$1({
|
|
34774
|
+
hideOnSinglePage: true
|
|
34775
|
+
}, paginationProps), {}, {
|
|
34776
|
+
showSizeChanger: false,
|
|
34777
|
+
total: totalCount !== null && totalCount !== void 0 ? totalCount : 0,
|
|
34778
|
+
current: currentPageNumber,
|
|
34779
|
+
defaultPageSize: shouldDynamicallyRenderRowSize ? calculateRowsPerPage() : defaultPageSize,
|
|
34780
|
+
pageSizeOptions: calculatePageSizeOptions(),
|
|
34781
|
+
onChange: handlePageChange,
|
|
34782
|
+
itemRender: itemRender
|
|
34783
|
+
}),
|
|
34784
|
+
rowClassName: classnames$1("neeto-ui-table--row", {
|
|
34785
|
+
"neeto-ui-table--row_hover": allowRowClick
|
|
34786
|
+
}, [className]),
|
|
34787
|
+
scroll: _objectSpread$1({
|
|
34788
|
+
x: "max-content",
|
|
34789
|
+
y: calculateTableContainerHeight()
|
|
34790
|
+
}, scroll),
|
|
34791
|
+
onChange: function onChange(pagination, _, sorter) {
|
|
34792
|
+
handleHeaderClasses();
|
|
34793
|
+
preserveTableStateInQuery && handleTableChange(pagination, sorter);
|
|
34794
|
+
},
|
|
32211
34795
|
onHeaderRow: function onHeaderRow() {
|
|
32212
34796
|
return {
|
|
32213
34797
|
ref: headerRef,
|