@dbmx/toasts 0.0.73 → 0.0.75

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.
Files changed (45) hide show
  1. package/cjs/components/SdmxDatagrid/utils/index.cjs +9 -7
  2. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/concat.cjs +69 -0
  3. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/equals.cjs +42 -0
  4. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/filter.cjs +63 -0
  5. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_arrayFromIterator.cjs +13 -0
  6. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_complement.cjs +10 -0
  7. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_equals.cjs +143 -0
  8. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_filter.cjs +17 -0
  9. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_functionName.cjs +10 -0
  10. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_includes.cjs +11 -0
  11. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_includesWith.cjs +16 -0
  12. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_indexOf.cjs +61 -0
  13. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isFunction.cjs +9 -0
  14. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_isObject.cjs +8 -0
  15. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_objectIs.cjs +18 -0
  16. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_quote.cjs +10 -0
  17. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_toISOString.cjs +17 -0
  18. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_toString.cjs +62 -0
  19. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/internal/_xfilter.cjs +26 -0
  20. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/reject.cjs +43 -0
  21. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/times.cjs +49 -0
  22. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/toString.cjs +53 -0
  23. package/cjs/node_modules/@dbmx/sdmx/cjs/node_modules/ramda/es/type.cjs +41 -0
  24. package/esm/index-FCPRKLj2.js +720 -0
  25. package/esm/index-FCPRKLj2.js.map +1 -0
  26. package/esm/index-Mh78z9aW.js +562 -0
  27. package/esm/index-Mh78z9aW.js.map +1 -0
  28. package/esm/index-T2bcfyHI.js +8510 -0
  29. package/esm/index-T2bcfyHI.js.map +1 -0
  30. package/esm/index-W7MLRHBf.js +87 -0
  31. package/esm/index-W7MLRHBf.js.map +1 -0
  32. package/esm/index-gBe37Ynf.js +8438 -0
  33. package/esm/index-gBe37Ynf.js.map +1 -0
  34. package/esm/index-ndYjFD6I.js +8438 -0
  35. package/esm/index-ndYjFD6I.js.map +1 -0
  36. package/esm/index.js +1 -1
  37. package/package.json +3 -3
  38. package/cjs/fake-ZW05emqw.js +0 -35
  39. package/cjs/fake-ZW05emqw.js.map +0 -1
  40. package/cjs/index.cjs.map +0 -1
  41. package/esm/fake-JHdVf8lQ.js +0 -14
  42. package/esm/fake-JHdVf8lQ.js.map +0 -1
  43. package/esm/index-lo-MKsEb.js +0 -556
  44. package/esm/index-lo-MKsEb.js.map +0 -1
  45. package/yarn-error.log +0 -7136
@@ -1,8 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.cjs');
4
- var sdmx = require('@dbmx/sdmx');
5
4
  var urljoin = require('url-join');
5
+ var core = require('../../../node_modules/@dbmx/sdmx/esm/core.cjs');
6
+ var datastructures = require('../../../node_modules/@dbmx/sdmx/esm/datastructures.cjs');
7
+ var query = require('../../../node_modules/@dbmx/sdmx/esm/query.cjs');
6
8
 
7
9
  function sortByKey(array, key) {
8
10
  return array.sort(function (a, b) {
@@ -65,9 +67,9 @@ var getStructure = /*#__PURE__*/function () {
65
67
  };
66
68
  }();
67
69
  var getDataStructure = function getDataStructure(dataflow, structure) {
68
- if (!(dataflow !== null && dataflow !== void 0 && dataflow.structure)) throw new Error("Cannot get dataStructure from dataflow ".concat(sdmx.ID(dataflow)));
69
- var dsRef = sdmx.urn2FullRef(dataflow.structure);
70
- return sdmx.resolveResourceFromStructure(structure, dataflow, dsRef, {
70
+ if (!(dataflow !== null && dataflow !== void 0 && dataflow.structure)) throw new Error("Cannot get dataStructure from dataflow ".concat(core.ID(dataflow)));
71
+ var dsRef = core.urn2FullRef(dataflow.structure);
72
+ return core.resolveResourceFromStructure(structure, dataflow, dsRef, {
71
73
  noError: true
72
74
  });
73
75
  };
@@ -92,7 +94,7 @@ var getColumns = function getColumns() {
92
94
  };
93
95
  };
94
96
  var getSelectedComponents = function getSelectedComponents(resource) {
95
- var components = sdmx.getComponents(resource);
97
+ var components = datastructures.getComponents(resource);
96
98
  return components.reduce(function (acc, component) {
97
99
  return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, acc), {}, _rollupPluginBabelHelpers.defineProperty({}, component.id, component));
98
100
  }, {});
@@ -111,9 +113,9 @@ var getData = /*#__PURE__*/function () {
111
113
  min: 1,
112
114
  max: 100
113
115
  };
114
- dataUrl = sdmx.dataQueryUrl(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
116
+ dataUrl = query.dataQueryUrl(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
115
117
  context: 'dataflow'
116
- }, sdmx.getRef(dataflow)), {}, {
118
+ }, core.getRef(dataflow)), {}, {
117
119
  endpoint: endpoint
118
120
  }));
119
121
  min = range.min, max = range.max;
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+
3
+ var _curry2$1 = require('./internal/_curry2.cjs');
4
+ var _isArray$1 = require('./internal/_isArray.cjs');
5
+ var _isFunction$1 = require('./internal/_isFunction.cjs');
6
+ var _isString$1 = require('./internal/_isString.cjs');
7
+ var toString$1 = require('./toString.cjs');
8
+
9
+ var _curry2 = _curry2$1._curry2_1;
10
+ var _isArray = _isArray$1._isArray_1;
11
+ var _isFunction = _isFunction$1._isFunction_1;
12
+ var _isString = _isString$1._isString_1;
13
+ var toString = toString$1.toString_1;
14
+
15
+ /**
16
+ * Returns the result of concatenating the given lists or strings.
17
+ *
18
+ * Note: `R.concat` expects both arguments to be of the same type,
19
+ * unlike the native `Array.prototype.concat` method. It will throw
20
+ * an error if you `concat` an Array with a non-Array value.
21
+ *
22
+ * Dispatches to the `concat` method of the first argument, if present.
23
+ * Can also concatenate two members of a [fantasy-land
24
+ * compatible semigroup](https://github.com/fantasyland/fantasy-land#semigroup).
25
+ *
26
+ * @func
27
+ * @memberOf R
28
+ * @since v0.1.0
29
+ * @category List
30
+ * @sig [a] -> [a] -> [a]
31
+ * @sig String -> String -> String
32
+ * @param {Array|String} firstList The first list
33
+ * @param {Array|String} secondList The second list
34
+ * @return {Array|String} A list consisting of the elements of `firstList` followed by the elements of
35
+ * `secondList`.
36
+ *
37
+ * @example
38
+ *
39
+ * R.concat('ABC', 'DEF'); // 'ABCDEF'
40
+ * R.concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
41
+ * R.concat([], []); //=> []
42
+ */
43
+
44
+ var concat = /*#__PURE__*/
45
+ _curry2(function concat(a, b) {
46
+ if (_isArray(a)) {
47
+ if (_isArray(b)) {
48
+ return a.concat(b);
49
+ }
50
+ throw new TypeError(toString(b) + ' is not an array');
51
+ }
52
+ if (_isString(a)) {
53
+ if (_isString(b)) {
54
+ return a + b;
55
+ }
56
+ throw new TypeError(toString(b) + ' is not a string');
57
+ }
58
+ if (a != null && _isFunction(a['fantasy-land/concat'])) {
59
+ return a['fantasy-land/concat'](b);
60
+ }
61
+ if (a != null && _isFunction(a.concat)) {
62
+ return a.concat(b);
63
+ }
64
+ throw new TypeError(toString(a) + ' does not have a method named "concat" or "fantasy-land/concat"');
65
+ });
66
+ var concat$1 = concat;
67
+ var concat_1 = concat$1;
68
+
69
+ exports.concat_1 = concat_1;
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var _curry2$1 = require('./internal/_curry2.cjs');
4
+ var _equals$1 = require('./internal/_equals.cjs');
5
+
6
+ var _curry2 = _curry2$1._curry2_1;
7
+ var _equals = _equals$1._equals_1;
8
+
9
+ /**
10
+ * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
11
+ * cyclical data structures.
12
+ *
13
+ * Dispatches symmetrically to the `equals` methods of both arguments, if
14
+ * present.
15
+ *
16
+ * @func
17
+ * @memberOf R
18
+ * @since v0.15.0
19
+ * @category Relation
20
+ * @sig a -> b -> Boolean
21
+ * @param {*} a
22
+ * @param {*} b
23
+ * @return {Boolean}
24
+ * @example
25
+ *
26
+ * R.equals(1, 1); //=> true
27
+ * R.equals(1, '1'); //=> false
28
+ * R.equals([1, 2, 3], [1, 2, 3]); //=> true
29
+ *
30
+ * const a = {}; a.v = a;
31
+ * const b = {}; b.v = b;
32
+ * R.equals(a, b); //=> true
33
+ */
34
+
35
+ var equals = /*#__PURE__*/
36
+ _curry2(function equals(a, b) {
37
+ return _equals(a, b, [], []);
38
+ });
39
+ var equals$1 = equals;
40
+ var equals_1 = equals$1;
41
+
42
+ exports.equals_1 = equals_1;
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ var _arrayReduce$1 = require('./internal/_arrayReduce.cjs');
4
+ var _curry2$1 = require('./internal/_curry2.cjs');
5
+ var _dispatchable$1 = require('./internal/_dispatchable.cjs');
6
+ var _filter$1 = require('./internal/_filter.cjs');
7
+ var _isObject$1 = require('./internal/_isObject.cjs');
8
+ var _xfilter$1 = require('./internal/_xfilter.cjs');
9
+ var keys$1 = require('./keys.cjs');
10
+
11
+ var _arrayReduce = _arrayReduce$1._arrayReduce_1;
12
+ var _curry2 = _curry2$1._curry2_1;
13
+ var _dispatchable = _dispatchable$1._dispatchable_1;
14
+ var _filter = _filter$1._filter_1;
15
+ var _isObject = _isObject$1._isObject_1;
16
+ var _xfilter = _xfilter$1._xfilter_1;
17
+ var keys = keys$1.keys_1;
18
+
19
+ /**
20
+ * Takes a predicate and a `Filterable`, and returns a new filterable of the
21
+ * same type containing the members of the given filterable which satisfy the
22
+ * given predicate. Filterable objects include plain objects or any object
23
+ * that has a filter method such as `Array`.
24
+ *
25
+ * Dispatches to the `filter` method of the second argument, if present.
26
+ *
27
+ * Acts as a transducer if a transformer is given in list position.
28
+ *
29
+ * @func
30
+ * @memberOf R
31
+ * @since v0.1.0
32
+ * @category List
33
+ * @category Object
34
+ * @sig Filterable f => (a -> Boolean) -> f a -> f a
35
+ * @param {Function} pred
36
+ * @param {Array} filterable
37
+ * @return {Array} Filterable
38
+ * @see R.reject, R.transduce, R.addIndex
39
+ * @example
40
+ *
41
+ * const isEven = n => n % 2 === 0;
42
+ *
43
+ * R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
44
+ *
45
+ * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
46
+ */
47
+
48
+ var filter = /*#__PURE__*/
49
+ _curry2( /*#__PURE__*/
50
+ _dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
51
+ return _isObject(filterable) ? _arrayReduce(function (acc, key) {
52
+ if (pred(filterable[key])) {
53
+ acc[key] = filterable[key];
54
+ }
55
+ return acc;
56
+ }, {}, keys(filterable)) :
57
+ // else
58
+ _filter(pred, filterable);
59
+ }));
60
+ var filter$1 = filter;
61
+ var filter_1 = filter$1;
62
+
63
+ exports.filter_1 = filter_1;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ function _arrayFromIterator(iter) {
4
+ var list = [];
5
+ var next;
6
+ while (!(next = iter.next()).done) {
7
+ list.push(next.value);
8
+ }
9
+ return list;
10
+ }
11
+ var _arrayFromIterator_1 = _arrayFromIterator;
12
+
13
+ exports._arrayFromIterator_1 = _arrayFromIterator_1;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ function _complement(f) {
4
+ return function () {
5
+ return !f.apply(this, arguments);
6
+ };
7
+ }
8
+ var _complement_1 = _complement;
9
+
10
+ exports._complement_1 = _complement_1;
@@ -0,0 +1,143 @@
1
+ 'use strict';
2
+
3
+ var _arrayFromIterator$1 = require('./_arrayFromIterator.cjs');
4
+ var _includesWith$1 = require('./_includesWith.cjs');
5
+ var _functionName$1 = require('./_functionName.cjs');
6
+ var _has$1 = require('./_has.cjs');
7
+ var _objectIs$1 = require('./_objectIs.cjs');
8
+ var keys$1 = require('../keys.cjs');
9
+ var type$1 = require('../type.cjs');
10
+
11
+ var _arrayFromIterator = _arrayFromIterator$1._arrayFromIterator_1;
12
+ var _includesWith = _includesWith$1._includesWith_1;
13
+ var _functionName = _functionName$1._functionName_1;
14
+ var _has = _has$1._has_1;
15
+ var _objectIs = _objectIs$1._objectIs_1;
16
+ var keys = keys$1.keys_1;
17
+ var type = type$1.type_1;
18
+
19
+ /**
20
+ * private _uniqContentEquals function.
21
+ * That function is checking equality of 2 iterator contents with 2 assumptions
22
+ * - iterators lengths are the same
23
+ * - iterators values are unique
24
+ *
25
+ * false-positive result will be returned for comparison of, e.g.
26
+ * - [1,2,3] and [1,2,3,4]
27
+ * - [1,1,1] and [1,2,3]
28
+ * */
29
+
30
+ function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
31
+ var a = _arrayFromIterator(aIterator);
32
+ var b = _arrayFromIterator(bIterator);
33
+ function eq(_a, _b) {
34
+ return _equals(_a, _b, stackA.slice(), stackB.slice());
35
+ } // if *a* array contains any element that is not included in *b*
36
+
37
+ return !_includesWith(function (b, aItem) {
38
+ return !_includesWith(eq, aItem, b);
39
+ }, b, a);
40
+ }
41
+ function _equals(a, b, stackA, stackB) {
42
+ if (_objectIs(a, b)) {
43
+ return true;
44
+ }
45
+ var typeA = type(a);
46
+ if (typeA !== type(b)) {
47
+ return false;
48
+ }
49
+ if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
50
+ return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
51
+ }
52
+ if (typeof a.equals === 'function' || typeof b.equals === 'function') {
53
+ return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
54
+ }
55
+ switch (typeA) {
56
+ case 'Arguments':
57
+ case 'Array':
58
+ case 'Object':
59
+ if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
60
+ return a === b;
61
+ }
62
+ break;
63
+ case 'Boolean':
64
+ case 'Number':
65
+ case 'String':
66
+ if (!(typeof a === typeof b && _objectIs(a.valueOf(), b.valueOf()))) {
67
+ return false;
68
+ }
69
+ break;
70
+ case 'Date':
71
+ if (!_objectIs(a.valueOf(), b.valueOf())) {
72
+ return false;
73
+ }
74
+ break;
75
+ case 'Error':
76
+ return a.name === b.name && a.message === b.message;
77
+ case 'RegExp':
78
+ if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
79
+ return false;
80
+ }
81
+ break;
82
+ }
83
+ var idx = stackA.length - 1;
84
+ while (idx >= 0) {
85
+ if (stackA[idx] === a) {
86
+ return stackB[idx] === b;
87
+ }
88
+ idx -= 1;
89
+ }
90
+ switch (typeA) {
91
+ case 'Map':
92
+ if (a.size !== b.size) {
93
+ return false;
94
+ }
95
+ return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
96
+ case 'Set':
97
+ if (a.size !== b.size) {
98
+ return false;
99
+ }
100
+ return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
101
+ case 'Arguments':
102
+ case 'Array':
103
+ case 'Object':
104
+ case 'Boolean':
105
+ case 'Number':
106
+ case 'String':
107
+ case 'Date':
108
+ case 'Error':
109
+ case 'RegExp':
110
+ case 'Int8Array':
111
+ case 'Uint8Array':
112
+ case 'Uint8ClampedArray':
113
+ case 'Int16Array':
114
+ case 'Uint16Array':
115
+ case 'Int32Array':
116
+ case 'Uint32Array':
117
+ case 'Float32Array':
118
+ case 'Float64Array':
119
+ case 'ArrayBuffer':
120
+ break;
121
+ default:
122
+ // Values of other types are only equal if identical.
123
+ return false;
124
+ }
125
+ var keysA = keys(a);
126
+ if (keysA.length !== keys(b).length) {
127
+ return false;
128
+ }
129
+ var extendedStackA = stackA.concat([a]);
130
+ var extendedStackB = stackB.concat([b]);
131
+ idx = keysA.length - 1;
132
+ while (idx >= 0) {
133
+ var key = keysA[idx];
134
+ if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
135
+ return false;
136
+ }
137
+ idx -= 1;
138
+ }
139
+ return true;
140
+ }
141
+ var _equals_1 = _equals;
142
+
143
+ exports._equals_1 = _equals_1;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ function _filter(fn, list) {
4
+ var idx = 0;
5
+ var len = list.length;
6
+ var result = [];
7
+ while (idx < len) {
8
+ if (fn(list[idx])) {
9
+ result[result.length] = list[idx];
10
+ }
11
+ idx += 1;
12
+ }
13
+ return result;
14
+ }
15
+ var _filter_1 = _filter;
16
+
17
+ exports._filter_1 = _filter_1;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ function _functionName(f) {
4
+ // String(x => x) evaluates to "x => x", so the pattern may not match.
5
+ var match = String(f).match(/^function (\w*)/);
6
+ return match == null ? '' : match[1];
7
+ }
8
+ var _functionName_1 = _functionName;
9
+
10
+ exports._functionName_1 = _functionName_1;
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var _indexOf$1 = require('./_indexOf.cjs');
4
+
5
+ var _indexOf = _indexOf$1._indexOf_1;
6
+ function _includes(a, list) {
7
+ return _indexOf(list, a, 0) >= 0;
8
+ }
9
+ var _includes_1 = _includes;
10
+
11
+ exports._includes_1 = _includes_1;
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ function _includesWith(pred, x, list) {
4
+ var idx = 0;
5
+ var len = list.length;
6
+ while (idx < len) {
7
+ if (pred(x, list[idx])) {
8
+ return true;
9
+ }
10
+ idx += 1;
11
+ }
12
+ return false;
13
+ }
14
+ var _includesWith_1 = _includesWith;
15
+
16
+ exports._includesWith_1 = _includesWith_1;
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ var equals$1 = require('../equals.cjs');
4
+
5
+ var equals = equals$1.equals_1;
6
+ function _indexOf(list, a, idx) {
7
+ var inf, item; // Array.prototype.indexOf doesn't exist below IE9
8
+
9
+ if (typeof list.indexOf === 'function') {
10
+ switch (typeof a) {
11
+ case 'number':
12
+ if (a === 0) {
13
+ // manually crawl the list to distinguish between +0 and -0
14
+ inf = 1 / a;
15
+ while (idx < list.length) {
16
+ item = list[idx];
17
+ if (item === 0 && 1 / item === inf) {
18
+ return idx;
19
+ }
20
+ idx += 1;
21
+ }
22
+ return -1;
23
+ } else if (a !== a) {
24
+ // NaN
25
+ while (idx < list.length) {
26
+ item = list[idx];
27
+ if (typeof item === 'number' && item !== item) {
28
+ return idx;
29
+ }
30
+ idx += 1;
31
+ }
32
+ return -1;
33
+ } // non-zero numbers can utilise Set
34
+
35
+ return list.indexOf(a, idx);
36
+ // all these types can utilise Set
37
+
38
+ case 'string':
39
+ case 'boolean':
40
+ case 'function':
41
+ case 'undefined':
42
+ return list.indexOf(a, idx);
43
+ case 'object':
44
+ if (a === null) {
45
+ // null can utilise Set
46
+ return list.indexOf(a, idx);
47
+ }
48
+ }
49
+ } // anything else not covered above, defer to R.equals
50
+
51
+ while (idx < list.length) {
52
+ if (equals(list[idx], a)) {
53
+ return idx;
54
+ }
55
+ idx += 1;
56
+ }
57
+ return -1;
58
+ }
59
+ var _indexOf_1 = _indexOf;
60
+
61
+ exports._indexOf_1 = _indexOf_1;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ function _isFunction(x) {
4
+ var type = Object.prototype.toString.call(x);
5
+ return type === '[object Function]' || type === '[object AsyncFunction]' || type === '[object GeneratorFunction]' || type === '[object AsyncGeneratorFunction]';
6
+ }
7
+ var _isFunction_1 = _isFunction;
8
+
9
+ exports._isFunction_1 = _isFunction_1;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ function _isObject(x) {
4
+ return Object.prototype.toString.call(x) === '[object Object]';
5
+ }
6
+ var _isObject_1 = _isObject;
7
+
8
+ exports._isObject_1 = _isObject_1;
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
4
+ function _objectIs(a, b) {
5
+ // SameValue algorithm
6
+ if (a === b) {
7
+ // Steps 1-5, 7-10
8
+ // Steps 6.b-6.e: +0 != -0
9
+ return a !== 0 || 1 / a === 1 / b;
10
+ } else {
11
+ // Step 6.a: NaN == NaN
12
+ return a !== a && b !== b;
13
+ }
14
+ }
15
+ var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
16
+ var _objectIs_1 = _objectIs$1;
17
+
18
+ exports._objectIs_1 = _objectIs_1;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ function _quote(s) {
4
+ var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
5
+ .replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
6
+ return '"' + escaped.replace(/"/g, '\\"') + '"';
7
+ }
8
+ var _quote_1 = _quote;
9
+
10
+ exports._quote_1 = _quote_1;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
5
+ */
6
+ var pad = function pad(n) {
7
+ return (n < 10 ? '0' : '') + n;
8
+ };
9
+ var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
10
+ return d.toISOString();
11
+ } : function _toISOString(d) {
12
+ return d.getUTCFullYear() + '-' + pad(d.getUTCMonth() + 1) + '-' + pad(d.getUTCDate()) + 'T' + pad(d.getUTCHours()) + ':' + pad(d.getUTCMinutes()) + ':' + pad(d.getUTCSeconds()) + '.' + (d.getUTCMilliseconds() / 1000).toFixed(3).slice(2, 5) + 'Z';
13
+ };
14
+ var _toISOString$1 = _toISOString;
15
+ var _toISOString_1 = _toISOString$1;
16
+
17
+ exports._toISOString_1 = _toISOString_1;
@@ -0,0 +1,62 @@
1
+ 'use strict';
2
+
3
+ var _includes$1 = require('./_includes.cjs');
4
+ var _map$1 = require('./_map.cjs');
5
+ var _quote$1 = require('./_quote.cjs');
6
+ var _toISOString$1 = require('./_toISOString.cjs');
7
+ var keys$1 = require('../keys.cjs');
8
+ var reject$1 = require('../reject.cjs');
9
+
10
+ var _includes = _includes$1._includes_1;
11
+ var _map = _map$1._map_1;
12
+ var _quote = _quote$1._quote_1;
13
+ var _toISOString = _toISOString$1._toISOString_1;
14
+ var keys = keys$1.keys_1;
15
+ var reject = reject$1.reject_1;
16
+ function _toString(x, seen) {
17
+ var recur = function recur(y) {
18
+ var xs = seen.concat([x]);
19
+ return _includes(y, xs) ? '<Circular>' : _toString(y, xs);
20
+ }; // mapPairs :: (Object, [String]) -> [String]
21
+
22
+ var mapPairs = function (obj, keys) {
23
+ return _map(function (k) {
24
+ return _quote(k) + ': ' + recur(obj[k]);
25
+ }, keys.slice().sort());
26
+ };
27
+ switch (Object.prototype.toString.call(x)) {
28
+ case '[object Arguments]':
29
+ return '(function() { return arguments; }(' + _map(recur, x).join(', ') + '))';
30
+ case '[object Array]':
31
+ return '[' + _map(recur, x).concat(mapPairs(x, reject(function (k) {
32
+ return /^\d+$/.test(k);
33
+ }, keys(x)))).join(', ') + ']';
34
+ case '[object Boolean]':
35
+ return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
36
+ case '[object Date]':
37
+ return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : _quote(_toISOString(x))) + ')';
38
+ case '[object Map]':
39
+ return 'new Map(' + recur(Array.from(x)) + ')';
40
+ case '[object Null]':
41
+ return 'null';
42
+ case '[object Number]':
43
+ return typeof x === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
44
+ case '[object Set]':
45
+ return 'new Set(' + recur(Array.from(x).sort()) + ')';
46
+ case '[object String]':
47
+ return typeof x === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : _quote(x);
48
+ case '[object Undefined]':
49
+ return 'undefined';
50
+ default:
51
+ if (typeof x.toString === 'function') {
52
+ var repr = x.toString();
53
+ if (repr !== '[object Object]') {
54
+ return repr;
55
+ }
56
+ }
57
+ return '{' + mapPairs(x, keys(x)).join(', ') + '}';
58
+ }
59
+ }
60
+ var _toString_1 = _toString;
61
+
62
+ exports._toString_1 = _toString_1;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var _xfBase$1 = require('./_xfBase.cjs');
4
+
5
+ var _xfBase = _xfBase$1._xfBase_1;
6
+ var XFilter = /*#__PURE__*/
7
+ function () {
8
+ function XFilter(f, xf) {
9
+ this.xf = xf;
10
+ this.f = f;
11
+ }
12
+ XFilter.prototype['@@transducer/init'] = _xfBase.init;
13
+ XFilter.prototype['@@transducer/result'] = _xfBase.result;
14
+ XFilter.prototype['@@transducer/step'] = function (result, input) {
15
+ return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
16
+ };
17
+ return XFilter;
18
+ }();
19
+ function _xfilter(f) {
20
+ return function (xf) {
21
+ return new XFilter(f, xf);
22
+ };
23
+ }
24
+ var _xfilter_1 = _xfilter;
25
+
26
+ exports._xfilter_1 = _xfilter_1;