@swagger-api/apidom-error 0.82.0 → 0.82.1
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/CHANGELOG.md +4 -0
- package/cjs/ApiDOMAggregateError.cjs +4 -6
- package/cjs/ApiDOMError.cjs +3 -5
- package/cjs/ApiDOMStructuredError.cjs +6 -3
- package/dist/apidom-error.browser.js +24 -3567
- package/dist/apidom-error.browser.min.js +1 -1
- package/es/ApiDOMAggregateError.mjs +4 -6
- package/es/ApiDOMError.mjs +3 -5
- package/es/ApiDOMStructuredError.mjs +6 -3
- package/package.json +3 -6
@@ -12,17 +12,13 @@ return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
13
13
|
/******/ var __webpack_modules__ = ({
|
14
14
|
|
15
|
-
/***/
|
15
|
+
/***/ 314:
|
16
16
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
17
17
|
|
18
18
|
__webpack_require__.r(__webpack_exports__);
|
19
19
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
20
20
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
21
21
|
/* harmony export */ });
|
22
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9723);
|
23
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4506);
|
24
|
-
|
25
|
-
|
26
22
|
class ApiDOMAggregateError extends AggregateError {
|
27
23
|
constructor(errors, message, options) {
|
28
24
|
super(errors, message, options);
|
@@ -38,15 +34,15 @@ class ApiDOMAggregateError extends AggregateError {
|
|
38
34
|
|
39
35
|
/**
|
40
36
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
41
|
-
* Node.js
|
37
|
+
* Node.js >= 16.9.0 supports error causes natively.
|
42
38
|
*/
|
43
|
-
if (
|
39
|
+
if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
44
40
|
const {
|
45
41
|
cause
|
46
42
|
} = options;
|
47
43
|
this.cause = cause;
|
48
|
-
if (cause instanceof Error &&
|
49
|
-
this.stack = `${this.stack}\nCAUSE: ${cause
|
44
|
+
if (cause instanceof Error && 'stack' in cause) {
|
45
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
50
46
|
}
|
51
47
|
}
|
52
48
|
}
|
@@ -55,18 +51,14 @@ class ApiDOMAggregateError extends AggregateError {
|
|
55
51
|
|
56
52
|
/***/ }),
|
57
53
|
|
58
|
-
/***/
|
54
|
+
/***/ 784:
|
59
55
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
60
56
|
|
61
57
|
__webpack_require__.r(__webpack_exports__);
|
62
58
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
63
59
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
64
60
|
/* harmony export */ });
|
65
|
-
/* harmony import */ var
|
66
|
-
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9723);
|
67
|
-
/* harmony import */ var _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2314);
|
68
|
-
|
69
|
-
|
61
|
+
/* harmony import */ var _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(314);
|
70
62
|
|
71
63
|
class ApiDOMError extends Error {
|
72
64
|
static [Symbol.hasInstance](instance) {
|
@@ -89,13 +81,13 @@ class ApiDOMError extends Error {
|
|
89
81
|
* This needs to stay here until our minimum supported version of Node.js is >= 16.9.0.
|
90
82
|
* Node.js is >= 16.9.0 supports error causes natively.
|
91
83
|
*/
|
92
|
-
if (
|
84
|
+
if (options != null && typeof options === 'object' && Object.hasOwn(options, 'cause') && !('cause' in this)) {
|
93
85
|
const {
|
94
86
|
cause
|
95
87
|
} = options;
|
96
88
|
this.cause = cause;
|
97
|
-
if (cause instanceof Error &&
|
98
|
-
this.stack = `${this.stack}\nCAUSE: ${cause
|
89
|
+
if (cause instanceof Error && 'stack' in cause) {
|
90
|
+
this.stack = `${this.stack}\nCAUSE: ${cause.stack}`;
|
99
91
|
}
|
100
92
|
}
|
101
93
|
}
|
@@ -104,22 +96,24 @@ class ApiDOMError extends Error {
|
|
104
96
|
|
105
97
|
/***/ }),
|
106
98
|
|
107
|
-
/***/
|
99
|
+
/***/ 72:
|
108
100
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
109
101
|
|
110
102
|
__webpack_require__.r(__webpack_exports__);
|
111
103
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
112
104
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
113
105
|
/* harmony export */ });
|
114
|
-
/* harmony import */ var
|
115
|
-
/* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1784);
|
116
|
-
|
106
|
+
/* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(784);
|
117
107
|
|
118
108
|
class ApiDOMStructuredError extends _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
119
109
|
constructor(message, structuredOptions) {
|
120
110
|
super(message, structuredOptions);
|
121
|
-
if (typeof structuredOptions
|
122
|
-
|
111
|
+
if (structuredOptions != null && typeof structuredOptions === 'object') {
|
112
|
+
const {
|
113
|
+
cause,
|
114
|
+
...causelessOptions
|
115
|
+
} = structuredOptions;
|
116
|
+
Object.assign(this, causelessOptions);
|
123
117
|
}
|
124
118
|
}
|
125
119
|
}
|
@@ -127,7 +121,7 @@ class ApiDOMStructuredError extends _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__["d
|
|
127
121
|
|
128
122
|
/***/ }),
|
129
123
|
|
130
|
-
/***/
|
124
|
+
/***/ 4:
|
131
125
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
132
126
|
|
133
127
|
__webpack_require__.r(__webpack_exports__);
|
@@ -148,3548 +142,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
148
142
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
149
143
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
150
144
|
/* harmony export */ });
|
151
|
-
/* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
145
|
+
/* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(784);
|
152
146
|
|
153
147
|
class UnsupportedOperationError extends _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__["default"] {}
|
154
148
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UnsupportedOperationError);
|
155
149
|
|
156
|
-
/***/ }),
|
157
|
-
|
158
|
-
/***/ 3723:
|
159
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
160
|
-
|
161
|
-
__webpack_require__.r(__webpack_exports__);
|
162
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
163
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
164
|
-
/* harmony export */ });
|
165
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
166
|
-
var isOfTypeObject = function isOfTypeObject(val) {
|
167
|
-
return _typeof(val) === 'object';
|
168
|
-
};
|
169
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isOfTypeObject);
|
170
|
-
|
171
|
-
/***/ }),
|
172
|
-
|
173
|
-
/***/ 9772:
|
174
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
175
|
-
|
176
|
-
__webpack_require__.r(__webpack_exports__);
|
177
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
178
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
179
|
-
/* harmony export */ });
|
180
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7616);
|
181
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4205);
|
182
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2406);
|
183
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2776);
|
184
|
-
|
185
|
-
|
186
|
-
/**
|
187
|
-
* Checks if input value is `Async Function`.
|
188
|
-
*
|
189
|
-
* @func isAsyncFunction
|
190
|
-
* @memberOf RA
|
191
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
192
|
-
* @category Type
|
193
|
-
* @sig * -> Boolean
|
194
|
-
* @param {*} val The value to test
|
195
|
-
* @return {boolean}
|
196
|
-
* @see {@link RA.isFunction|isFunction}, {@link RA.isNotAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
197
|
-
* @example
|
198
|
-
*
|
199
|
-
* RA.isAsyncFunction(async function test() { }); //=> true
|
200
|
-
* RA.isAsyncFunction(null); //=> false
|
201
|
-
* RA.isAsyncFunction(function test() { }); //=> false
|
202
|
-
* RA.isAsyncFunction(() => {}); //=> false
|
203
|
-
*/
|
204
|
-
var isAsyncFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(ramda__WEBPACK_IMPORTED_MODULE_2__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])('AsyncFunction')));
|
205
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isAsyncFunction);
|
206
|
-
|
207
|
-
/***/ }),
|
208
|
-
|
209
|
-
/***/ 9028:
|
210
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
211
|
-
|
212
|
-
__webpack_require__.r(__webpack_exports__);
|
213
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
214
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
215
|
-
/* harmony export */ });
|
216
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1270);
|
217
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4205);
|
218
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2406);
|
219
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2776);
|
220
|
-
/* harmony import */ var _isGeneratorFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7295);
|
221
|
-
/* harmony import */ var _isAsyncFunction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9772);
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
/**
|
227
|
-
* Checks if input value is `Function`.
|
228
|
-
*
|
229
|
-
* @func isFunction
|
230
|
-
* @memberOf RA
|
231
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
232
|
-
* @category Type
|
233
|
-
* @sig * -> Boolean
|
234
|
-
* @param {*} val The value to test
|
235
|
-
* @return {boolean}
|
236
|
-
* @see {@link RA.isNotFunction|isNotFunction}, {@link RA.isAsyncFunction|isNotAsyncFunction}, {@link RA.isGeneratorFunction|isGeneratorFunction}
|
237
|
-
* @example
|
238
|
-
*
|
239
|
-
* RA.isFunction(function test() { }); //=> true
|
240
|
-
* RA.isFunction(function* test() { }); //=> true
|
241
|
-
* RA.isFunction(async function test() { }); //=> true
|
242
|
-
* RA.isFunction(() => {}); //=> true
|
243
|
-
* RA.isFunction(null); //=> false
|
244
|
-
* RA.isFunction('abc'); //=> false
|
245
|
-
*/
|
246
|
-
var isFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])([(0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(ramda__WEBPACK_IMPORTED_MODULE_2__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])('Function')), _isGeneratorFunction__WEBPACK_IMPORTED_MODULE_4__["default"], _isAsyncFunction__WEBPACK_IMPORTED_MODULE_5__["default"]]);
|
247
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isFunction);
|
248
|
-
|
249
|
-
/***/ }),
|
250
|
-
|
251
|
-
/***/ 7295:
|
252
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
253
|
-
|
254
|
-
__webpack_require__.r(__webpack_exports__);
|
255
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
256
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
257
|
-
/* harmony export */ });
|
258
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7616);
|
259
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4205);
|
260
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2406);
|
261
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2776);
|
262
|
-
|
263
|
-
|
264
|
-
/**
|
265
|
-
* Checks if input value is `Generator Function`.
|
266
|
-
*
|
267
|
-
* @func isGeneratorFunction
|
268
|
-
* @memberOf RA
|
269
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
270
|
-
* @category Type
|
271
|
-
* @sig * -> Boolean
|
272
|
-
* @param {*} val The value to test
|
273
|
-
* @return {boolean}
|
274
|
-
* @see {@link RA.isFunction|isFunction}, {@link RA.isAsyncFunction|isAsyncFunction}, {@link RA.isNotGeneratorFunction|isNotGeneratorFunction}
|
275
|
-
* @example
|
276
|
-
*
|
277
|
-
* RA.isGeneratorFunction(function* test() { }); //=> true
|
278
|
-
* RA.isGeneratorFunction(null); //=> false
|
279
|
-
* RA.isGeneratorFunction(function test() { }); //=> false
|
280
|
-
* RA.isGeneratorFunction(() => {}); //=> false
|
281
|
-
*/
|
282
|
-
var isGeneratorFunction = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(ramda__WEBPACK_IMPORTED_MODULE_2__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])('GeneratorFunction')));
|
283
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isGeneratorFunction);
|
284
|
-
|
285
|
-
/***/ }),
|
286
|
-
|
287
|
-
/***/ 875:
|
288
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
289
|
-
|
290
|
-
__webpack_require__.r(__webpack_exports__);
|
291
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
292
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
293
|
-
/* harmony export */ });
|
294
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8131);
|
295
|
-
/* harmony import */ var _isNull__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(858);
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
/**
|
300
|
-
* Checks if input value is complement of `null`.
|
301
|
-
*
|
302
|
-
* @func isNotNull
|
303
|
-
* @memberOf RA
|
304
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.1.0|v0.1.0}
|
305
|
-
* @category Type
|
306
|
-
* @sig * -> Boolean
|
307
|
-
* @param {*} val The value to test
|
308
|
-
* @return {boolean}
|
309
|
-
* @see {@link RA.isNull|isNull}
|
310
|
-
* @example
|
311
|
-
*
|
312
|
-
* RA.isNotNull(1); //=> true
|
313
|
-
* RA.isNotNull(undefined); //=> true
|
314
|
-
* RA.isNotNull(null); //=> false
|
315
|
-
*/
|
316
|
-
var isNotNull = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(_isNull__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
317
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isNotNull);
|
318
|
-
|
319
|
-
/***/ }),
|
320
|
-
|
321
|
-
/***/ 858:
|
322
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
323
|
-
|
324
|
-
__webpack_require__.r(__webpack_exports__);
|
325
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
326
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
327
|
-
/* harmony export */ });
|
328
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7087);
|
329
|
-
|
330
|
-
|
331
|
-
/**
|
332
|
-
* Checks if input value is `null`.
|
333
|
-
*
|
334
|
-
* @func isNull
|
335
|
-
* @memberOf RA
|
336
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.1.0|v0.1.0}
|
337
|
-
* @category Type
|
338
|
-
* @sig * -> Boolean
|
339
|
-
* @param {*} val The value to test
|
340
|
-
* @return {boolean}
|
341
|
-
* @see {@link RA.isNotNull|isNotNull}
|
342
|
-
* @example
|
343
|
-
*
|
344
|
-
* RA.isNull(1); //=> false
|
345
|
-
* RA.isNull(undefined); //=> false
|
346
|
-
* RA.isNull(null); //=> true
|
347
|
-
*/
|
348
|
-
var isNull = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(null);
|
349
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isNull);
|
350
|
-
|
351
|
-
/***/ }),
|
352
|
-
|
353
|
-
/***/ 9503:
|
354
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
355
|
-
|
356
|
-
__webpack_require__.r(__webpack_exports__);
|
357
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
358
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
359
|
-
/* harmony export */ });
|
360
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7616);
|
361
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8426);
|
362
|
-
/* harmony import */ var _isNotNull__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(875);
|
363
|
-
/* harmony import */ var _internal_isOfTypeObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3723);
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
/* eslint-disable max-len */
|
369
|
-
/**
|
370
|
-
* Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".
|
371
|
-
*
|
372
|
-
* @func isObjLike
|
373
|
-
* @aliases isObjectLike
|
374
|
-
* @memberOf RA
|
375
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
376
|
-
* @category Type
|
377
|
-
* @sig * -> Boolean
|
378
|
-
* @param {*} val The value to test
|
379
|
-
* @return {boolean}
|
380
|
-
* @see {@link RA.isNotObjLike|isNotObjLike}, {@link RA.isObj|isObj}, {@link RA.isPlainObj|isPlainObj}
|
381
|
-
* @example
|
382
|
-
*
|
383
|
-
* RA.isObjLike({}); //=> true
|
384
|
-
* RA.isObjLike([]); //=> true
|
385
|
-
* RA.isObjLike(() => {}); //=> false
|
386
|
-
* RA.isObjLike(null); //=> false
|
387
|
-
* RA.isObjLike(undefined); //=> false
|
388
|
-
*/
|
389
|
-
/* eslint-enable max-len */
|
390
|
-
var isObjLike = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(1, (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(_isNotNull__WEBPACK_IMPORTED_MODULE_2__["default"], _internal_isOfTypeObject__WEBPACK_IMPORTED_MODULE_3__["default"]));
|
391
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isObjLike);
|
392
|
-
|
393
|
-
/***/ }),
|
394
|
-
|
395
|
-
/***/ 9723:
|
396
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
397
|
-
|
398
|
-
__webpack_require__.r(__webpack_exports__);
|
399
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
400
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
401
|
-
/* harmony export */ });
|
402
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4205);
|
403
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2406);
|
404
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2776);
|
405
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9168);
|
406
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7087);
|
407
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4465);
|
408
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8426);
|
409
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(7616);
|
410
|
-
/* harmony import */ var _isNull__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(858);
|
411
|
-
/* harmony import */ var _isObjLike__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(9503);
|
412
|
-
/* harmony import */ var _isFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9028);
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
var isObject = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(ramda__WEBPACK_IMPORTED_MODULE_1__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])('Object'));
|
418
|
-
var isObjectConstructor = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(ramda__WEBPACK_IMPORTED_MODULE_3__["default"], (0,ramda__WEBPACK_IMPORTED_MODULE_4__["default"])((0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(Object)));
|
419
|
-
var hasObjectConstructor = (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])(_isFunction__WEBPACK_IMPORTED_MODULE_7__["default"], isObjectConstructor), ['constructor']);
|
420
|
-
|
421
|
-
/* eslint-disable max-len */
|
422
|
-
/**
|
423
|
-
* Check to see if an object is a plain object (created using `{}`, `new Object()` or `Object.create(null)`).
|
424
|
-
*
|
425
|
-
* @func isPlainObj
|
426
|
-
* @aliases isPlainObject
|
427
|
-
* @memberOf RA
|
428
|
-
* @since {@link https://char0n.github.io/ramda-adjunct/0.5.0|v0.5.0}
|
429
|
-
* @category Type
|
430
|
-
* @sig * -> Boolean
|
431
|
-
* @param {*} val The value to test
|
432
|
-
* @return {boolean}
|
433
|
-
* @see {@link RA.isNotPlainObj|isNotPlainObj}, {@link RA.isObjLike|isObjLike}, {@link RA.isObj|isObj}
|
434
|
-
* @example
|
435
|
-
*
|
436
|
-
* class Bar {
|
437
|
-
* constructor() {
|
438
|
-
* this.prop = 'value';
|
439
|
-
* }
|
440
|
-
* }
|
441
|
-
*
|
442
|
-
* RA.isPlainObj(new Bar()); //=> false
|
443
|
-
* RA.isPlainObj({ prop: 'value' }); //=> true
|
444
|
-
* RA.isPlainObj(['a', 'b', 'c']); //=> false
|
445
|
-
* RA.isPlainObj(Object.create(null); //=> true
|
446
|
-
* RA.isPlainObj(new Object()); //=> true
|
447
|
-
*/
|
448
|
-
/* eslint-enable max-len */
|
449
|
-
var isPlainObj = (0,ramda__WEBPACK_IMPORTED_MODULE_8__["default"])(1, function (val) {
|
450
|
-
if (!(0,_isObjLike__WEBPACK_IMPORTED_MODULE_9__["default"])(val) || !isObject(val)) {
|
451
|
-
return false;
|
452
|
-
}
|
453
|
-
var proto = Object.getPrototypeOf(val);
|
454
|
-
if ((0,_isNull__WEBPACK_IMPORTED_MODULE_10__["default"])(proto)) {
|
455
|
-
return true;
|
456
|
-
}
|
457
|
-
return hasObjectConstructor(proto);
|
458
|
-
});
|
459
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isPlainObj);
|
460
|
-
|
461
|
-
/***/ }),
|
462
|
-
|
463
|
-
/***/ 4577:
|
464
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
465
|
-
|
466
|
-
__webpack_require__.r(__webpack_exports__);
|
467
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
468
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
469
|
-
/* harmony export */ });
|
470
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
471
|
-
|
472
|
-
/**
|
473
|
-
* Returns the first argument if it is falsy, otherwise the second argument.
|
474
|
-
* Acts as the boolean `and` statement if both inputs are `Boolean`s.
|
475
|
-
*
|
476
|
-
* @func
|
477
|
-
* @memberOf R
|
478
|
-
* @since v0.1.0
|
479
|
-
* @category Logic
|
480
|
-
* @sig a -> b -> a | b
|
481
|
-
* @param {Any} a
|
482
|
-
* @param {Any} b
|
483
|
-
* @return {Any}
|
484
|
-
* @see R.both, R.or
|
485
|
-
* @example
|
486
|
-
*
|
487
|
-
* R.and(true, true); //=> true
|
488
|
-
* R.and(true, false); //=> false
|
489
|
-
* R.and(false, true); //=> false
|
490
|
-
* R.and(false, false); //=> false
|
491
|
-
*/
|
492
|
-
|
493
|
-
var and =
|
494
|
-
/*#__PURE__*/
|
495
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function and(a, b) {
|
496
|
-
return a && b;
|
497
|
-
});
|
498
|
-
|
499
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (and);
|
500
|
-
|
501
|
-
/***/ }),
|
502
|
-
|
503
|
-
/***/ 1270:
|
504
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
505
|
-
|
506
|
-
__webpack_require__.r(__webpack_exports__);
|
507
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
508
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
509
|
-
/* harmony export */ });
|
510
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
511
|
-
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7616);
|
512
|
-
/* harmony import */ var _max_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2723);
|
513
|
-
/* harmony import */ var _pluck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7151);
|
514
|
-
/* harmony import */ var _reduce_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5219);
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
/**
|
521
|
-
* Takes a list of predicates and returns a predicate that returns true for a
|
522
|
-
* given list of arguments if at least one of the provided predicates is
|
523
|
-
* satisfied by those arguments.
|
524
|
-
*
|
525
|
-
* The function returned is a curried function whose arity matches that of the
|
526
|
-
* highest-arity predicate.
|
527
|
-
*
|
528
|
-
* @func
|
529
|
-
* @memberOf R
|
530
|
-
* @since v0.9.0
|
531
|
-
* @category Logic
|
532
|
-
* @sig [(*... -> Boolean)] -> (*... -> Boolean)
|
533
|
-
* @param {Array} predicates An array of predicates to check
|
534
|
-
* @return {Function} The combined predicate
|
535
|
-
* @see R.allPass, R.either
|
536
|
-
* @example
|
537
|
-
*
|
538
|
-
* const isClub = R.propEq('♣', 'suit');
|
539
|
-
* const isSpade = R.propEq('♠', 'suit');
|
540
|
-
* const isBlackCard = R.anyPass([isClub, isSpade]);
|
541
|
-
*
|
542
|
-
* isBlackCard({rank: '10', suit: '♣'}); //=> true
|
543
|
-
* isBlackCard({rank: 'Q', suit: '♠'}); //=> true
|
544
|
-
* isBlackCard({rank: 'Q', suit: '♦'}); //=> false
|
545
|
-
*/
|
546
|
-
|
547
|
-
var anyPass =
|
548
|
-
/*#__PURE__*/
|
549
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function anyPass(preds) {
|
550
|
-
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_reduce_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_max_js__WEBPACK_IMPORTED_MODULE_3__["default"], 0, (0,_pluck_js__WEBPACK_IMPORTED_MODULE_4__["default"])('length', preds)), function () {
|
551
|
-
var idx = 0;
|
552
|
-
var len = preds.length;
|
553
|
-
|
554
|
-
while (idx < len) {
|
555
|
-
if (preds[idx].apply(this, arguments)) {
|
556
|
-
return true;
|
557
|
-
}
|
558
|
-
|
559
|
-
idx += 1;
|
560
|
-
}
|
561
|
-
|
562
|
-
return false;
|
563
|
-
});
|
564
|
-
});
|
565
|
-
|
566
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (anyPass);
|
567
|
-
|
568
|
-
/***/ }),
|
569
|
-
|
570
|
-
/***/ 1438:
|
571
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
572
|
-
|
573
|
-
__webpack_require__.r(__webpack_exports__);
|
574
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
575
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
576
|
-
/* harmony export */ });
|
577
|
-
/* harmony import */ var _internal_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4365);
|
578
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
579
|
-
/* harmony import */ var _internal_reduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5874);
|
580
|
-
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(419);
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
/**
|
586
|
-
* ap applies a list of functions to a list of values.
|
587
|
-
*
|
588
|
-
* Dispatches to the `ap` method of the first argument, if present. Also
|
589
|
-
* treats curried functions as applicatives.
|
590
|
-
*
|
591
|
-
* @func
|
592
|
-
* @memberOf R
|
593
|
-
* @since v0.3.0
|
594
|
-
* @category Function
|
595
|
-
* @sig [a -> b] -> [a] -> [b]
|
596
|
-
* @sig Apply f => f (a -> b) -> f a -> f b
|
597
|
-
* @sig (r -> a -> b) -> (r -> a) -> (r -> b)
|
598
|
-
* @param {*} applyF
|
599
|
-
* @param {*} applyX
|
600
|
-
* @return {*}
|
601
|
-
* @example
|
602
|
-
*
|
603
|
-
* R.ap([R.multiply(2), R.add(3)], [1,2,3]); //=> [2, 4, 6, 4, 5, 6]
|
604
|
-
* R.ap([R.concat('tasty '), R.toUpper], ['pizza', 'salad']); //=> ["tasty pizza", "tasty salad", "PIZZA", "SALAD"]
|
605
|
-
*
|
606
|
-
* // R.ap can also be used as S combinator
|
607
|
-
* // when only two functions are passed
|
608
|
-
* R.ap(R.concat, R.toUpper)('Ramda') //=> 'RamdaRAMDA'
|
609
|
-
* @symb R.ap([f, g], [a, b]) = [f(a), f(b), g(a), g(b)]
|
610
|
-
*/
|
611
|
-
|
612
|
-
var ap =
|
613
|
-
/*#__PURE__*/
|
614
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function ap(applyF, applyX) {
|
615
|
-
return typeof applyX['fantasy-land/ap'] === 'function' ? applyX['fantasy-land/ap'](applyF) : typeof applyF.ap === 'function' ? applyF.ap(applyX) : typeof applyF === 'function' ? function (x) {
|
616
|
-
return applyF(x)(applyX(x));
|
617
|
-
} : (0,_internal_reduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (acc, f) {
|
618
|
-
return (0,_internal_concat_js__WEBPACK_IMPORTED_MODULE_2__["default"])(acc, (0,_map_js__WEBPACK_IMPORTED_MODULE_3__["default"])(f, applyX));
|
619
|
-
}, [], applyF);
|
620
|
-
});
|
621
|
-
|
622
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ap);
|
623
|
-
|
624
|
-
/***/ }),
|
625
|
-
|
626
|
-
/***/ 4078:
|
627
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
628
|
-
|
629
|
-
__webpack_require__.r(__webpack_exports__);
|
630
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
631
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
632
|
-
/* harmony export */ });
|
633
|
-
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6391);
|
634
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
635
|
-
|
636
|
-
|
637
|
-
/**
|
638
|
-
* Creates a function that is bound to a context.
|
639
|
-
* Note: `R.bind` does not provide the additional argument-binding capabilities of
|
640
|
-
* [Function.prototype.bind](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind).
|
641
|
-
*
|
642
|
-
* @func
|
643
|
-
* @memberOf R
|
644
|
-
* @since v0.6.0
|
645
|
-
* @category Function
|
646
|
-
* @category Object
|
647
|
-
* @sig (* -> *) -> {*} -> (* -> *)
|
648
|
-
* @param {Function} fn The function to bind to context
|
649
|
-
* @param {Object} thisObj The context to bind `fn` to
|
650
|
-
* @return {Function} A function that will execute in the context of `thisObj`.
|
651
|
-
* @see R.partial
|
652
|
-
* @example
|
653
|
-
*
|
654
|
-
* const log = R.bind(console.log, console);
|
655
|
-
* R.pipe(R.assoc('a', 2), R.tap(log), R.assoc('a', 3))({a: 1}); //=> {a: 3}
|
656
|
-
* // logs {a: 2}
|
657
|
-
* @symb R.bind(f, o)(a, b) = f.call(o, a, b)
|
658
|
-
*/
|
659
|
-
|
660
|
-
var bind =
|
661
|
-
/*#__PURE__*/
|
662
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function bind(fn, thisObj) {
|
663
|
-
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fn.length, function () {
|
664
|
-
return fn.apply(thisObj, arguments);
|
665
|
-
});
|
666
|
-
});
|
667
|
-
|
668
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (bind);
|
669
|
-
|
670
|
-
/***/ }),
|
671
|
-
|
672
|
-
/***/ 8426:
|
673
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
674
|
-
|
675
|
-
__webpack_require__.r(__webpack_exports__);
|
676
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
677
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
678
|
-
/* harmony export */ });
|
679
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
680
|
-
/* harmony import */ var _internal_isFunction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3565);
|
681
|
-
/* harmony import */ var _and_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4577);
|
682
|
-
/* harmony import */ var _lift_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8410);
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
/**
|
688
|
-
* A function which calls the two provided functions and returns the `&&`
|
689
|
-
* of the results.
|
690
|
-
* It returns the result of the first function if it is false-y and the result
|
691
|
-
* of the second function otherwise. Note that this is short-circuited,
|
692
|
-
* meaning that the second function will not be invoked if the first returns a
|
693
|
-
* false-y value.
|
694
|
-
*
|
695
|
-
* In addition to functions, `R.both` also accepts any fantasy-land compatible
|
696
|
-
* applicative functor.
|
697
|
-
*
|
698
|
-
* @func
|
699
|
-
* @memberOf R
|
700
|
-
* @since v0.12.0
|
701
|
-
* @category Logic
|
702
|
-
* @sig (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
|
703
|
-
* @param {Function} f A predicate
|
704
|
-
* @param {Function} g Another predicate
|
705
|
-
* @return {Function} a function that applies its arguments to `f` and `g` and `&&`s their outputs together.
|
706
|
-
* @see R.either, R.allPass, R.and
|
707
|
-
* @example
|
708
|
-
*
|
709
|
-
* const gt10 = R.gt(R.__, 10)
|
710
|
-
* const lt20 = R.lt(R.__, 20)
|
711
|
-
* const f = R.both(gt10, lt20);
|
712
|
-
* f(15); //=> true
|
713
|
-
* f(30); //=> false
|
714
|
-
*
|
715
|
-
* R.both(Maybe.Just(false), Maybe.Just(55)); // => Maybe.Just(false)
|
716
|
-
* R.both([false, false, 'a'], [11]); //=> [false, false, 11]
|
717
|
-
*/
|
718
|
-
|
719
|
-
var both =
|
720
|
-
/*#__PURE__*/
|
721
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function both(f, g) {
|
722
|
-
return (0,_internal_isFunction_js__WEBPACK_IMPORTED_MODULE_1__["default"])(f) ? function _both() {
|
723
|
-
return f.apply(this, arguments) && g.apply(this, arguments);
|
724
|
-
} : (0,_lift_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_and_js__WEBPACK_IMPORTED_MODULE_3__["default"])(f, g);
|
725
|
-
});
|
726
|
-
|
727
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (both);
|
728
|
-
|
729
|
-
/***/ }),
|
730
|
-
|
731
|
-
/***/ 8131:
|
732
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
733
|
-
|
734
|
-
__webpack_require__.r(__webpack_exports__);
|
735
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
736
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
737
|
-
/* harmony export */ });
|
738
|
-
/* harmony import */ var _lift_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8410);
|
739
|
-
/* harmony import */ var _not_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5097);
|
740
|
-
|
741
|
-
|
742
|
-
/**
|
743
|
-
* Takes a function `f` and returns a function `g` such that if called with the same arguments
|
744
|
-
* when `f` returns a "truthy" value, `g` returns `false` and when `f` returns a "falsy" value `g` returns `true`.
|
745
|
-
*
|
746
|
-
* `R.complement` may be applied to any functor
|
747
|
-
*
|
748
|
-
* @func
|
749
|
-
* @memberOf R
|
750
|
-
* @since v0.12.0
|
751
|
-
* @category Logic
|
752
|
-
* @sig (*... -> *) -> (*... -> Boolean)
|
753
|
-
* @param {Function} f
|
754
|
-
* @return {Function}
|
755
|
-
* @see R.not
|
756
|
-
* @example
|
757
|
-
*
|
758
|
-
* const isNotNil = R.complement(R.isNil);
|
759
|
-
* R.isNil(null); //=> true
|
760
|
-
* isNotNil(null); //=> false
|
761
|
-
* R.isNil(7); //=> false
|
762
|
-
* isNotNil(7); //=> true
|
763
|
-
*/
|
764
|
-
|
765
|
-
var complement =
|
766
|
-
/*#__PURE__*/
|
767
|
-
(0,_lift_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_not_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
768
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (complement);
|
769
|
-
|
770
|
-
/***/ }),
|
771
|
-
|
772
|
-
/***/ 7616:
|
773
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
774
|
-
|
775
|
-
__webpack_require__.r(__webpack_exports__);
|
776
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
777
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
778
|
-
/* harmony export */ });
|
779
|
-
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6391);
|
780
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9757);
|
781
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
782
|
-
/* harmony import */ var _internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3680);
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
/**
|
788
|
-
* Returns a curried equivalent of the provided function, with the specified
|
789
|
-
* arity. The curried function has two unusual capabilities. First, its
|
790
|
-
* arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the
|
791
|
-
* following are equivalent:
|
792
|
-
*
|
793
|
-
* - `g(1)(2)(3)`
|
794
|
-
* - `g(1)(2, 3)`
|
795
|
-
* - `g(1, 2)(3)`
|
796
|
-
* - `g(1, 2, 3)`
|
797
|
-
*
|
798
|
-
* Secondly, the special placeholder value [`R.__`](#__) may be used to specify
|
799
|
-
* "gaps", allowing partial application of any combination of arguments,
|
800
|
-
* regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
|
801
|
-
* the following are equivalent:
|
802
|
-
*
|
803
|
-
* - `g(1, 2, 3)`
|
804
|
-
* - `g(_, 2, 3)(1)`
|
805
|
-
* - `g(_, _, 3)(1)(2)`
|
806
|
-
* - `g(_, _, 3)(1, 2)`
|
807
|
-
* - `g(_, 2)(1)(3)`
|
808
|
-
* - `g(_, 2)(1, 3)`
|
809
|
-
* - `g(_, 2)(_, 3)(1)`
|
810
|
-
*
|
811
|
-
* @func
|
812
|
-
* @memberOf R
|
813
|
-
* @since v0.5.0
|
814
|
-
* @category Function
|
815
|
-
* @sig Number -> (* -> a) -> (* -> a)
|
816
|
-
* @param {Number} length The arity for the returned function.
|
817
|
-
* @param {Function} fn The function to curry.
|
818
|
-
* @return {Function} A new, curried function.
|
819
|
-
* @see R.curry
|
820
|
-
* @example
|
821
|
-
*
|
822
|
-
* const sumArgs = (...args) => R.sum(args);
|
823
|
-
*
|
824
|
-
* const curriedAddFourNumbers = R.curryN(4, sumArgs);
|
825
|
-
* const f = curriedAddFourNumbers(1, 2);
|
826
|
-
* const g = f(3);
|
827
|
-
* g(4); //=> 10
|
828
|
-
*/
|
829
|
-
|
830
|
-
var curryN =
|
831
|
-
/*#__PURE__*/
|
832
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function curryN(length, fn) {
|
833
|
-
if (length === 1) {
|
834
|
-
return (0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fn);
|
835
|
-
}
|
836
|
-
|
837
|
-
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_2__["default"])(length, (0,_internal_curryN_js__WEBPACK_IMPORTED_MODULE_3__["default"])(length, [], fn));
|
838
|
-
});
|
839
|
-
|
840
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (curryN);
|
841
|
-
|
842
|
-
/***/ }),
|
843
|
-
|
844
|
-
/***/ 7087:
|
845
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
846
|
-
|
847
|
-
__webpack_require__.r(__webpack_exports__);
|
848
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
849
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
850
|
-
/* harmony export */ });
|
851
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
852
|
-
/* harmony import */ var _internal_equals_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4983);
|
853
|
-
|
854
|
-
|
855
|
-
/**
|
856
|
-
* Returns `true` if its arguments are equivalent, `false` otherwise. Handles
|
857
|
-
* cyclical data structures.
|
858
|
-
*
|
859
|
-
* Dispatches symmetrically to the `equals` methods of both arguments, if
|
860
|
-
* present.
|
861
|
-
*
|
862
|
-
* @func
|
863
|
-
* @memberOf R
|
864
|
-
* @since v0.15.0
|
865
|
-
* @category Relation
|
866
|
-
* @sig a -> b -> Boolean
|
867
|
-
* @param {*} a
|
868
|
-
* @param {*} b
|
869
|
-
* @return {Boolean}
|
870
|
-
* @example
|
871
|
-
*
|
872
|
-
* R.equals(1, 1); //=> true
|
873
|
-
* R.equals(1, '1'); //=> false
|
874
|
-
* R.equals([1, 2, 3], [1, 2, 3]); //=> true
|
875
|
-
*
|
876
|
-
* const a = {}; a.v = a;
|
877
|
-
* const b = {}; b.v = b;
|
878
|
-
* R.equals(a, b); //=> true
|
879
|
-
*/
|
880
|
-
|
881
|
-
var equals =
|
882
|
-
/*#__PURE__*/
|
883
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function equals(a, b) {
|
884
|
-
return (0,_internal_equals_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a, b, [], []);
|
885
|
-
});
|
886
|
-
|
887
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (equals);
|
888
|
-
|
889
|
-
/***/ }),
|
890
|
-
|
891
|
-
/***/ 5192:
|
892
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
893
|
-
|
894
|
-
__webpack_require__.r(__webpack_exports__);
|
895
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
896
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
897
|
-
/* harmony export */ });
|
898
|
-
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1992);
|
899
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
900
|
-
/* harmony import */ var _internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5448);
|
901
|
-
/* harmony import */ var _internal_filter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9638);
|
902
|
-
/* harmony import */ var _internal_isObject_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6336);
|
903
|
-
/* harmony import */ var _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1349);
|
904
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3118);
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
/**
|
913
|
-
* Takes a predicate and a `Filterable`, and returns a new filterable of the
|
914
|
-
* same type containing the members of the given filterable which satisfy the
|
915
|
-
* given predicate. Filterable objects include plain objects or any object
|
916
|
-
* that has a filter method such as `Array`.
|
917
|
-
*
|
918
|
-
* Dispatches to the `filter` method of the second argument, if present.
|
919
|
-
*
|
920
|
-
* Acts as a transducer if a transformer is given in list position.
|
921
|
-
*
|
922
|
-
* @func
|
923
|
-
* @memberOf R
|
924
|
-
* @since v0.1.0
|
925
|
-
* @category List
|
926
|
-
* @category Object
|
927
|
-
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
928
|
-
* @param {Function} pred
|
929
|
-
* @param {Array} filterable
|
930
|
-
* @return {Array} Filterable
|
931
|
-
* @see R.reject, R.transduce, R.addIndex
|
932
|
-
* @example
|
933
|
-
*
|
934
|
-
* const isEven = n => n % 2 === 0;
|
935
|
-
*
|
936
|
-
* R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]
|
937
|
-
*
|
938
|
-
* R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
939
|
-
*/
|
940
|
-
|
941
|
-
var filter =
|
942
|
-
/*#__PURE__*/
|
943
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
944
|
-
/*#__PURE__*/
|
945
|
-
(0,_internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_1__["default"])(['fantasy-land/filter', 'filter'], _internal_xfilter_js__WEBPACK_IMPORTED_MODULE_2__["default"], function (pred, filterable) {
|
946
|
-
return (0,_internal_isObject_js__WEBPACK_IMPORTED_MODULE_3__["default"])(filterable) ? (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_4__["default"])(function (acc, key) {
|
947
|
-
if (pred(filterable[key])) {
|
948
|
-
acc[key] = filterable[key];
|
949
|
-
}
|
950
|
-
|
951
|
-
return acc;
|
952
|
-
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(filterable)) : // else
|
953
|
-
(0,_internal_filter_js__WEBPACK_IMPORTED_MODULE_6__["default"])(pred, filterable);
|
954
|
-
}));
|
955
|
-
|
956
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (filter);
|
957
|
-
|
958
|
-
/***/ }),
|
959
|
-
|
960
|
-
/***/ 4506:
|
961
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
962
|
-
|
963
|
-
__webpack_require__.r(__webpack_exports__);
|
964
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
965
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
966
|
-
/* harmony export */ });
|
967
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
968
|
-
/* harmony import */ var _isNil_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7596);
|
969
|
-
|
970
|
-
|
971
|
-
/**
|
972
|
-
* Returns whether or not an object or its prototype chain has a property with
|
973
|
-
* the specified name
|
974
|
-
*
|
975
|
-
* @func
|
976
|
-
* @memberOf R
|
977
|
-
* @since v0.7.0
|
978
|
-
* @category Object
|
979
|
-
* @sig s -> {s: x} -> Boolean
|
980
|
-
* @param {String} prop The name of the property to check for.
|
981
|
-
* @param {Object} obj The object to query.
|
982
|
-
* @return {Boolean} Whether the property exists.
|
983
|
-
* @example
|
984
|
-
*
|
985
|
-
* function Rectangle(width, height) {
|
986
|
-
* this.width = width;
|
987
|
-
* this.height = height;
|
988
|
-
* }
|
989
|
-
* Rectangle.prototype.area = function() {
|
990
|
-
* return this.width * this.height;
|
991
|
-
* };
|
992
|
-
*
|
993
|
-
* const square = new Rectangle(2, 2);
|
994
|
-
* R.hasIn('width', square); //=> true
|
995
|
-
* R.hasIn('area', square); //=> true
|
996
|
-
*/
|
997
|
-
|
998
|
-
var hasIn =
|
999
|
-
/*#__PURE__*/
|
1000
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function hasIn(prop, obj) {
|
1001
|
-
if ((0,_isNil_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
1002
|
-
return false;
|
1003
|
-
}
|
1004
|
-
|
1005
|
-
return prop in obj;
|
1006
|
-
});
|
1007
|
-
|
1008
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hasIn);
|
1009
|
-
|
1010
|
-
/***/ }),
|
1011
|
-
|
1012
|
-
/***/ 2776:
|
1013
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1014
|
-
|
1015
|
-
__webpack_require__.r(__webpack_exports__);
|
1016
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1017
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
1018
|
-
/* harmony export */ });
|
1019
|
-
/* harmony import */ var _internal_objectIs_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1419);
|
1020
|
-
|
1021
|
-
/**
|
1022
|
-
* Returns true if its arguments are identical, false otherwise. Values are
|
1023
|
-
* identical if they reference the same memory. `NaN` is identical to `NaN`;
|
1024
|
-
* `0` and `-0` are not identical.
|
1025
|
-
*
|
1026
|
-
* Note this is merely a curried version of ES6 `Object.is`.
|
1027
|
-
*
|
1028
|
-
* `identical` does not support the `__` placeholder.
|
1029
|
-
*
|
1030
|
-
* @func
|
1031
|
-
* @memberOf R
|
1032
|
-
* @since v0.15.0
|
1033
|
-
* @category Relation
|
1034
|
-
* @sig a -> a -> Boolean
|
1035
|
-
* @param {*} a
|
1036
|
-
* @param {*} b
|
1037
|
-
* @return {Boolean}
|
1038
|
-
* @example
|
1039
|
-
*
|
1040
|
-
* const o = {};
|
1041
|
-
* R.identical(o, o); //=> true
|
1042
|
-
* R.identical(1, 1); //=> true
|
1043
|
-
* R.identical(1, '1'); //=> false
|
1044
|
-
* R.identical([], []); //=> false
|
1045
|
-
* R.identical(0, -0); //=> false
|
1046
|
-
* R.identical(NaN, NaN); //=> true
|
1047
|
-
*/
|
1048
|
-
|
1049
|
-
var identical = function (a, b) {
|
1050
|
-
switch (arguments.length) {
|
1051
|
-
case 0:
|
1052
|
-
return identical;
|
1053
|
-
|
1054
|
-
case 1:
|
1055
|
-
return function () {
|
1056
|
-
return function unaryIdentical(_b) {
|
1057
|
-
switch (arguments.length) {
|
1058
|
-
case 0:
|
1059
|
-
return unaryIdentical;
|
1060
|
-
|
1061
|
-
default:
|
1062
|
-
return (0,_internal_objectIs_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, _b);
|
1063
|
-
}
|
1064
|
-
};
|
1065
|
-
}();
|
1066
|
-
|
1067
|
-
default:
|
1068
|
-
return (0,_internal_objectIs_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a, b);
|
1069
|
-
}
|
1070
|
-
}; // In order to support Cross-origin Window objects as arguments to identical,
|
1071
|
-
// it cannot be implemented as _curry2(_objectIs).
|
1072
|
-
// The reason is that _curry2 checks if a function argument is the placeholder __
|
1073
|
-
// by accessing a paritcular property. However, across URL origins access
|
1074
|
-
// to most properties of Window is forbidden.
|
1075
|
-
|
1076
|
-
|
1077
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (identical);
|
1078
|
-
|
1079
|
-
/***/ }),
|
1080
|
-
|
1081
|
-
/***/ 6391:
|
1082
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1083
|
-
|
1084
|
-
__webpack_require__.r(__webpack_exports__);
|
1085
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1086
|
-
/* harmony export */ "default": () => (/* binding */ _arity)
|
1087
|
-
/* harmony export */ });
|
1088
|
-
function _arity(n, fn) {
|
1089
|
-
/* eslint-disable no-unused-vars */
|
1090
|
-
switch (n) {
|
1091
|
-
case 0:
|
1092
|
-
return function () {
|
1093
|
-
return fn.apply(this, arguments);
|
1094
|
-
};
|
1095
|
-
|
1096
|
-
case 1:
|
1097
|
-
return function (a0) {
|
1098
|
-
return fn.apply(this, arguments);
|
1099
|
-
};
|
1100
|
-
|
1101
|
-
case 2:
|
1102
|
-
return function (a0, a1) {
|
1103
|
-
return fn.apply(this, arguments);
|
1104
|
-
};
|
1105
|
-
|
1106
|
-
case 3:
|
1107
|
-
return function (a0, a1, a2) {
|
1108
|
-
return fn.apply(this, arguments);
|
1109
|
-
};
|
1110
|
-
|
1111
|
-
case 4:
|
1112
|
-
return function (a0, a1, a2, a3) {
|
1113
|
-
return fn.apply(this, arguments);
|
1114
|
-
};
|
1115
|
-
|
1116
|
-
case 5:
|
1117
|
-
return function (a0, a1, a2, a3, a4) {
|
1118
|
-
return fn.apply(this, arguments);
|
1119
|
-
};
|
1120
|
-
|
1121
|
-
case 6:
|
1122
|
-
return function (a0, a1, a2, a3, a4, a5) {
|
1123
|
-
return fn.apply(this, arguments);
|
1124
|
-
};
|
1125
|
-
|
1126
|
-
case 7:
|
1127
|
-
return function (a0, a1, a2, a3, a4, a5, a6) {
|
1128
|
-
return fn.apply(this, arguments);
|
1129
|
-
};
|
1130
|
-
|
1131
|
-
case 8:
|
1132
|
-
return function (a0, a1, a2, a3, a4, a5, a6, a7) {
|
1133
|
-
return fn.apply(this, arguments);
|
1134
|
-
};
|
1135
|
-
|
1136
|
-
case 9:
|
1137
|
-
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
|
1138
|
-
return fn.apply(this, arguments);
|
1139
|
-
};
|
1140
|
-
|
1141
|
-
case 10:
|
1142
|
-
return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
|
1143
|
-
return fn.apply(this, arguments);
|
1144
|
-
};
|
1145
|
-
|
1146
|
-
default:
|
1147
|
-
throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
|
1148
|
-
}
|
1149
|
-
}
|
1150
|
-
|
1151
|
-
/***/ }),
|
1152
|
-
|
1153
|
-
/***/ 9765:
|
1154
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1155
|
-
|
1156
|
-
__webpack_require__.r(__webpack_exports__);
|
1157
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1158
|
-
/* harmony export */ "default": () => (/* binding */ _arrayFromIterator)
|
1159
|
-
/* harmony export */ });
|
1160
|
-
function _arrayFromIterator(iter) {
|
1161
|
-
var list = [];
|
1162
|
-
var next;
|
1163
|
-
|
1164
|
-
while (!(next = iter.next()).done) {
|
1165
|
-
list.push(next.value);
|
1166
|
-
}
|
1167
|
-
|
1168
|
-
return list;
|
1169
|
-
}
|
1170
|
-
|
1171
|
-
/***/ }),
|
1172
|
-
|
1173
|
-
/***/ 1992:
|
1174
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1175
|
-
|
1176
|
-
__webpack_require__.r(__webpack_exports__);
|
1177
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1178
|
-
/* harmony export */ "default": () => (/* binding */ _arrayReduce)
|
1179
|
-
/* harmony export */ });
|
1180
|
-
function _arrayReduce(reducer, acc, list) {
|
1181
|
-
var index = 0;
|
1182
|
-
var length = list.length;
|
1183
|
-
|
1184
|
-
while (index < length) {
|
1185
|
-
acc = reducer(acc, list[index]);
|
1186
|
-
index += 1;
|
1187
|
-
}
|
1188
|
-
|
1189
|
-
return acc;
|
1190
|
-
}
|
1191
|
-
|
1192
|
-
/***/ }),
|
1193
|
-
|
1194
|
-
/***/ 5884:
|
1195
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1196
|
-
|
1197
|
-
__webpack_require__.r(__webpack_exports__);
|
1198
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1199
|
-
/* harmony export */ "default": () => (/* binding */ _checkForMethod)
|
1200
|
-
/* harmony export */ });
|
1201
|
-
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(704);
|
1202
|
-
|
1203
|
-
/**
|
1204
|
-
* This checks whether a function has a [methodname] function. If it isn't an
|
1205
|
-
* array it will execute that function otherwise it will default to the ramda
|
1206
|
-
* implementation.
|
1207
|
-
*
|
1208
|
-
* @private
|
1209
|
-
* @param {Function} fn ramda implementation
|
1210
|
-
* @param {String} methodname property to check for a custom implementation
|
1211
|
-
* @return {Object} Whatever the return value of the method is.
|
1212
|
-
*/
|
1213
|
-
|
1214
|
-
function _checkForMethod(methodname, fn) {
|
1215
|
-
return function () {
|
1216
|
-
var length = arguments.length;
|
1217
|
-
|
1218
|
-
if (length === 0) {
|
1219
|
-
return fn();
|
1220
|
-
}
|
1221
|
-
|
1222
|
-
var obj = arguments[length - 1];
|
1223
|
-
return (0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));
|
1224
|
-
};
|
1225
|
-
}
|
1226
|
-
|
1227
|
-
/***/ }),
|
1228
|
-
|
1229
|
-
/***/ 8756:
|
1230
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1231
|
-
|
1232
|
-
__webpack_require__.r(__webpack_exports__);
|
1233
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1234
|
-
/* harmony export */ "default": () => (/* binding */ _complement)
|
1235
|
-
/* harmony export */ });
|
1236
|
-
function _complement(f) {
|
1237
|
-
return function () {
|
1238
|
-
return !f.apply(this, arguments);
|
1239
|
-
};
|
1240
|
-
}
|
1241
|
-
|
1242
|
-
/***/ }),
|
1243
|
-
|
1244
|
-
/***/ 4365:
|
1245
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1246
|
-
|
1247
|
-
__webpack_require__.r(__webpack_exports__);
|
1248
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1249
|
-
/* harmony export */ "default": () => (/* binding */ _concat)
|
1250
|
-
/* harmony export */ });
|
1251
|
-
/**
|
1252
|
-
* Private `concat` function to merge two array-like objects.
|
1253
|
-
*
|
1254
|
-
* @private
|
1255
|
-
* @param {Array|Arguments} [set1=[]] An array-like object.
|
1256
|
-
* @param {Array|Arguments} [set2=[]] An array-like object.
|
1257
|
-
* @return {Array} A new, merged array.
|
1258
|
-
* @example
|
1259
|
-
*
|
1260
|
-
* _concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
|
1261
|
-
*/
|
1262
|
-
function _concat(set1, set2) {
|
1263
|
-
set1 = set1 || [];
|
1264
|
-
set2 = set2 || [];
|
1265
|
-
var idx;
|
1266
|
-
var len1 = set1.length;
|
1267
|
-
var len2 = set2.length;
|
1268
|
-
var result = [];
|
1269
|
-
idx = 0;
|
1270
|
-
|
1271
|
-
while (idx < len1) {
|
1272
|
-
result[result.length] = set1[idx];
|
1273
|
-
idx += 1;
|
1274
|
-
}
|
1275
|
-
|
1276
|
-
idx = 0;
|
1277
|
-
|
1278
|
-
while (idx < len2) {
|
1279
|
-
result[result.length] = set2[idx];
|
1280
|
-
idx += 1;
|
1281
|
-
}
|
1282
|
-
|
1283
|
-
return result;
|
1284
|
-
}
|
1285
|
-
|
1286
|
-
/***/ }),
|
1287
|
-
|
1288
|
-
/***/ 7645:
|
1289
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1290
|
-
|
1291
|
-
__webpack_require__.r(__webpack_exports__);
|
1292
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1293
|
-
/* harmony export */ "default": () => (/* binding */ _createReduce)
|
1294
|
-
/* harmony export */ });
|
1295
|
-
/* harmony import */ var _isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8322);
|
1296
|
-
|
1297
|
-
var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
|
1298
|
-
function _createReduce(arrayReduce, methodReduce, iterableReduce) {
|
1299
|
-
return function _reduce(xf, acc, list) {
|
1300
|
-
if ((0,_isArrayLike_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list)) {
|
1301
|
-
return arrayReduce(xf, acc, list);
|
1302
|
-
}
|
1303
|
-
|
1304
|
-
if (list == null) {
|
1305
|
-
return acc;
|
1306
|
-
}
|
1307
|
-
|
1308
|
-
if (typeof list['fantasy-land/reduce'] === 'function') {
|
1309
|
-
return methodReduce(xf, acc, list, 'fantasy-land/reduce');
|
1310
|
-
}
|
1311
|
-
|
1312
|
-
if (list[symIterator] != null) {
|
1313
|
-
return iterableReduce(xf, acc, list[symIterator]());
|
1314
|
-
}
|
1315
|
-
|
1316
|
-
if (typeof list.next === 'function') {
|
1317
|
-
return iterableReduce(xf, acc, list);
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
if (typeof list.reduce === 'function') {
|
1321
|
-
return methodReduce(xf, acc, list, 'reduce');
|
1322
|
-
}
|
1323
|
-
|
1324
|
-
throw new TypeError('reduce: list must be array or iterable');
|
1325
|
-
};
|
1326
|
-
}
|
1327
|
-
|
1328
|
-
/***/ }),
|
1329
|
-
|
1330
|
-
/***/ 9757:
|
1331
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1332
|
-
|
1333
|
-
__webpack_require__.r(__webpack_exports__);
|
1334
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1335
|
-
/* harmony export */ "default": () => (/* binding */ _curry1)
|
1336
|
-
/* harmony export */ });
|
1337
|
-
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8471);
|
1338
|
-
|
1339
|
-
/**
|
1340
|
-
* Optimized internal one-arity curry function.
|
1341
|
-
*
|
1342
|
-
* @private
|
1343
|
-
* @category Function
|
1344
|
-
* @param {Function} fn The function to curry.
|
1345
|
-
* @return {Function} The curried function.
|
1346
|
-
*/
|
1347
|
-
|
1348
|
-
function _curry1(fn) {
|
1349
|
-
return function f1(a) {
|
1350
|
-
if (arguments.length === 0 || (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a)) {
|
1351
|
-
return f1;
|
1352
|
-
} else {
|
1353
|
-
return fn.apply(this, arguments);
|
1354
|
-
}
|
1355
|
-
};
|
1356
|
-
}
|
1357
|
-
|
1358
|
-
/***/ }),
|
1359
|
-
|
1360
|
-
/***/ 5652:
|
1361
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1362
|
-
|
1363
|
-
__webpack_require__.r(__webpack_exports__);
|
1364
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1365
|
-
/* harmony export */ "default": () => (/* binding */ _curry2)
|
1366
|
-
/* harmony export */ });
|
1367
|
-
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9757);
|
1368
|
-
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8471);
|
1369
|
-
|
1370
|
-
|
1371
|
-
/**
|
1372
|
-
* Optimized internal two-arity curry function.
|
1373
|
-
*
|
1374
|
-
* @private
|
1375
|
-
* @category Function
|
1376
|
-
* @param {Function} fn The function to curry.
|
1377
|
-
* @return {Function} The curried function.
|
1378
|
-
*/
|
1379
|
-
|
1380
|
-
function _curry2(fn) {
|
1381
|
-
return function f2(a, b) {
|
1382
|
-
switch (arguments.length) {
|
1383
|
-
case 0:
|
1384
|
-
return f2;
|
1385
|
-
|
1386
|
-
case 1:
|
1387
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) ? f2 : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b) {
|
1388
|
-
return fn(a, _b);
|
1389
|
-
});
|
1390
|
-
|
1391
|
-
default:
|
1392
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) ? f2 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a) {
|
1393
|
-
return fn(_a, b);
|
1394
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b) {
|
1395
|
-
return fn(a, _b);
|
1396
|
-
}) : fn(a, b);
|
1397
|
-
}
|
1398
|
-
};
|
1399
|
-
}
|
1400
|
-
|
1401
|
-
/***/ }),
|
1402
|
-
|
1403
|
-
/***/ 1924:
|
1404
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1405
|
-
|
1406
|
-
__webpack_require__.r(__webpack_exports__);
|
1407
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1408
|
-
/* harmony export */ "default": () => (/* binding */ _curry3)
|
1409
|
-
/* harmony export */ });
|
1410
|
-
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9757);
|
1411
|
-
/* harmony import */ var _curry2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5652);
|
1412
|
-
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8471);
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
/**
|
1417
|
-
* Optimized internal three-arity curry function.
|
1418
|
-
*
|
1419
|
-
* @private
|
1420
|
-
* @category Function
|
1421
|
-
* @param {Function} fn The function to curry.
|
1422
|
-
* @return {Function} The curried function.
|
1423
|
-
*/
|
1424
|
-
|
1425
|
-
function _curry3(fn) {
|
1426
|
-
return function f3(a, b, c) {
|
1427
|
-
switch (arguments.length) {
|
1428
|
-
case 0:
|
1429
|
-
return f3;
|
1430
|
-
|
1431
|
-
case 1:
|
1432
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) ? f3 : (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
1433
|
-
return fn(a, _b, _c);
|
1434
|
-
});
|
1435
|
-
|
1436
|
-
case 2:
|
1437
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
1438
|
-
return fn(_a, b, _c);
|
1439
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
1440
|
-
return fn(a, _b, _c);
|
1441
|
-
}) : (0,_curry1_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function (_c) {
|
1442
|
-
return fn(a, b, _c);
|
1443
|
-
});
|
1444
|
-
|
1445
|
-
default:
|
1446
|
-
return (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(c) ? f3 : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _b) {
|
1447
|
-
return fn(_a, _b, c);
|
1448
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_a, _c) {
|
1449
|
-
return fn(_a, b, _c);
|
1450
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) && (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(c) ? (0,_curry2_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (_b, _c) {
|
1451
|
-
return fn(a, _b, _c);
|
1452
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(a) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function (_a) {
|
1453
|
-
return fn(_a, b, c);
|
1454
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(b) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function (_b) {
|
1455
|
-
return fn(a, _b, c);
|
1456
|
-
}) : (0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(c) ? (0,_curry1_js__WEBPACK_IMPORTED_MODULE_2__["default"])(function (_c) {
|
1457
|
-
return fn(a, b, _c);
|
1458
|
-
}) : fn(a, b, c);
|
1459
|
-
}
|
1460
|
-
};
|
1461
|
-
}
|
1462
|
-
|
1463
|
-
/***/ }),
|
1464
|
-
|
1465
|
-
/***/ 3680:
|
1466
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1467
|
-
|
1468
|
-
__webpack_require__.r(__webpack_exports__);
|
1469
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1470
|
-
/* harmony export */ "default": () => (/* binding */ _curryN)
|
1471
|
-
/* harmony export */ });
|
1472
|
-
/* harmony import */ var _arity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6391);
|
1473
|
-
/* harmony import */ var _isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8471);
|
1474
|
-
|
1475
|
-
|
1476
|
-
/**
|
1477
|
-
* Internal curryN function.
|
1478
|
-
*
|
1479
|
-
* @private
|
1480
|
-
* @category Function
|
1481
|
-
* @param {Number} length The arity of the curried function.
|
1482
|
-
* @param {Array} received An array of arguments received thus far.
|
1483
|
-
* @param {Function} fn The function to curry.
|
1484
|
-
* @return {Function} The curried function.
|
1485
|
-
*/
|
1486
|
-
|
1487
|
-
function _curryN(length, received, fn) {
|
1488
|
-
return function () {
|
1489
|
-
var combined = [];
|
1490
|
-
var argsIdx = 0;
|
1491
|
-
var left = length;
|
1492
|
-
var combinedIdx = 0;
|
1493
|
-
var hasPlaceholder = false;
|
1494
|
-
|
1495
|
-
while (combinedIdx < received.length || argsIdx < arguments.length) {
|
1496
|
-
var result;
|
1497
|
-
|
1498
|
-
if (combinedIdx < received.length && (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(received[combinedIdx]) || argsIdx >= arguments.length)) {
|
1499
|
-
result = received[combinedIdx];
|
1500
|
-
} else {
|
1501
|
-
result = arguments[argsIdx];
|
1502
|
-
argsIdx += 1;
|
1503
|
-
}
|
1504
|
-
|
1505
|
-
combined[combinedIdx] = result;
|
1506
|
-
|
1507
|
-
if (!(0,_isPlaceholder_js__WEBPACK_IMPORTED_MODULE_0__["default"])(result)) {
|
1508
|
-
left -= 1;
|
1509
|
-
} else {
|
1510
|
-
hasPlaceholder = true;
|
1511
|
-
}
|
1512
|
-
|
1513
|
-
combinedIdx += 1;
|
1514
|
-
}
|
1515
|
-
|
1516
|
-
return !hasPlaceholder && left <= 0 ? fn.apply(this, combined) : (0,_arity_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Math.max(0, left), _curryN(length, combined, fn));
|
1517
|
-
};
|
1518
|
-
}
|
1519
|
-
|
1520
|
-
/***/ }),
|
1521
|
-
|
1522
|
-
/***/ 5448:
|
1523
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1524
|
-
|
1525
|
-
__webpack_require__.r(__webpack_exports__);
|
1526
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1527
|
-
/* harmony export */ "default": () => (/* binding */ _dispatchable)
|
1528
|
-
/* harmony export */ });
|
1529
|
-
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(704);
|
1530
|
-
/* harmony import */ var _isTransformer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7544);
|
1531
|
-
|
1532
|
-
|
1533
|
-
/**
|
1534
|
-
* Returns a function that dispatches with different strategies based on the
|
1535
|
-
* object in list position (last argument). If it is an array, executes [fn].
|
1536
|
-
* Otherwise, if it has a function with one of the given method names, it will
|
1537
|
-
* execute that function (functor case). Otherwise, if it is a transformer,
|
1538
|
-
* uses transducer created by [transducerCreator] to return a new transformer
|
1539
|
-
* (transducer case).
|
1540
|
-
* Otherwise, it will default to executing [fn].
|
1541
|
-
*
|
1542
|
-
* @private
|
1543
|
-
* @param {Array} methodNames properties to check for a custom implementation
|
1544
|
-
* @param {Function} transducerCreator transducer factory if object is transformer
|
1545
|
-
* @param {Function} fn default ramda implementation
|
1546
|
-
* @return {Function} A function that dispatches on object in list position
|
1547
|
-
*/
|
1548
|
-
|
1549
|
-
function _dispatchable(methodNames, transducerCreator, fn) {
|
1550
|
-
return function () {
|
1551
|
-
if (arguments.length === 0) {
|
1552
|
-
return fn();
|
1553
|
-
}
|
1554
|
-
|
1555
|
-
var obj = arguments[arguments.length - 1];
|
1556
|
-
|
1557
|
-
if (!(0,_isArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(obj)) {
|
1558
|
-
var idx = 0;
|
1559
|
-
|
1560
|
-
while (idx < methodNames.length) {
|
1561
|
-
if (typeof obj[methodNames[idx]] === 'function') {
|
1562
|
-
return obj[methodNames[idx]].apply(obj, Array.prototype.slice.call(arguments, 0, -1));
|
1563
|
-
}
|
1564
|
-
|
1565
|
-
idx += 1;
|
1566
|
-
}
|
1567
|
-
|
1568
|
-
if ((0,_isTransformer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj)) {
|
1569
|
-
var transducer = transducerCreator.apply(null, Array.prototype.slice.call(arguments, 0, -1));
|
1570
|
-
return transducer(obj);
|
1571
|
-
}
|
1572
|
-
}
|
1573
|
-
|
1574
|
-
return fn.apply(this, arguments);
|
1575
|
-
};
|
1576
|
-
}
|
1577
|
-
|
1578
|
-
/***/ }),
|
1579
|
-
|
1580
|
-
/***/ 4983:
|
1581
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1582
|
-
|
1583
|
-
__webpack_require__.r(__webpack_exports__);
|
1584
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1585
|
-
/* harmony export */ "default": () => (/* binding */ _equals)
|
1586
|
-
/* harmony export */ });
|
1587
|
-
/* harmony import */ var _arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9765);
|
1588
|
-
/* harmony import */ var _includesWith_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2526);
|
1589
|
-
/* harmony import */ var _functionName_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84);
|
1590
|
-
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(766);
|
1591
|
-
/* harmony import */ var _objectIs_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1419);
|
1592
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3118);
|
1593
|
-
/* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2406);
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
/**
|
1602
|
-
* private _uniqContentEquals function.
|
1603
|
-
* That function is checking equality of 2 iterator contents with 2 assumptions
|
1604
|
-
* - iterators lengths are the same
|
1605
|
-
* - iterators values are unique
|
1606
|
-
*
|
1607
|
-
* false-positive result will be returned for comparison of, e.g.
|
1608
|
-
* - [1,2,3] and [1,2,3,4]
|
1609
|
-
* - [1,1,1] and [1,2,3]
|
1610
|
-
* */
|
1611
|
-
|
1612
|
-
function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
|
1613
|
-
var a = (0,_arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(aIterator);
|
1614
|
-
|
1615
|
-
var b = (0,_arrayFromIterator_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bIterator);
|
1616
|
-
|
1617
|
-
function eq(_a, _b) {
|
1618
|
-
return _equals(_a, _b, stackA.slice(), stackB.slice());
|
1619
|
-
} // if *a* array contains any element that is not included in *b*
|
1620
|
-
|
1621
|
-
|
1622
|
-
return !(0,_includesWith_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (b, aItem) {
|
1623
|
-
return !(0,_includesWith_js__WEBPACK_IMPORTED_MODULE_1__["default"])(eq, aItem, b);
|
1624
|
-
}, b, a);
|
1625
|
-
}
|
1626
|
-
|
1627
|
-
function _equals(a, b, stackA, stackB) {
|
1628
|
-
if ((0,_objectIs_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b)) {
|
1629
|
-
return true;
|
1630
|
-
}
|
1631
|
-
|
1632
|
-
var typeA = (0,_type_js__WEBPACK_IMPORTED_MODULE_3__["default"])(a);
|
1633
|
-
|
1634
|
-
if (typeA !== (0,_type_js__WEBPACK_IMPORTED_MODULE_3__["default"])(b)) {
|
1635
|
-
return false;
|
1636
|
-
}
|
1637
|
-
|
1638
|
-
if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
|
1639
|
-
return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
|
1640
|
-
}
|
1641
|
-
|
1642
|
-
if (typeof a.equals === 'function' || typeof b.equals === 'function') {
|
1643
|
-
return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
|
1644
|
-
}
|
1645
|
-
|
1646
|
-
switch (typeA) {
|
1647
|
-
case 'Arguments':
|
1648
|
-
case 'Array':
|
1649
|
-
case 'Object':
|
1650
|
-
if (typeof a.constructor === 'function' && (0,_functionName_js__WEBPACK_IMPORTED_MODULE_4__["default"])(a.constructor) === 'Promise') {
|
1651
|
-
return a === b;
|
1652
|
-
}
|
1653
|
-
|
1654
|
-
break;
|
1655
|
-
|
1656
|
-
case 'Boolean':
|
1657
|
-
case 'Number':
|
1658
|
-
case 'String':
|
1659
|
-
if (!(typeof a === typeof b && (0,_objectIs_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a.valueOf(), b.valueOf()))) {
|
1660
|
-
return false;
|
1661
|
-
}
|
1662
|
-
|
1663
|
-
break;
|
1664
|
-
|
1665
|
-
case 'Date':
|
1666
|
-
if (!(0,_objectIs_js__WEBPACK_IMPORTED_MODULE_2__["default"])(a.valueOf(), b.valueOf())) {
|
1667
|
-
return false;
|
1668
|
-
}
|
1669
|
-
|
1670
|
-
break;
|
1671
|
-
|
1672
|
-
case 'Error':
|
1673
|
-
return a.name === b.name && a.message === b.message;
|
1674
|
-
|
1675
|
-
case 'RegExp':
|
1676
|
-
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)) {
|
1677
|
-
return false;
|
1678
|
-
}
|
1679
|
-
|
1680
|
-
break;
|
1681
|
-
}
|
1682
|
-
|
1683
|
-
var idx = stackA.length - 1;
|
1684
|
-
|
1685
|
-
while (idx >= 0) {
|
1686
|
-
if (stackA[idx] === a) {
|
1687
|
-
return stackB[idx] === b;
|
1688
|
-
}
|
1689
|
-
|
1690
|
-
idx -= 1;
|
1691
|
-
}
|
1692
|
-
|
1693
|
-
switch (typeA) {
|
1694
|
-
case 'Map':
|
1695
|
-
if (a.size !== b.size) {
|
1696
|
-
return false;
|
1697
|
-
}
|
1698
|
-
|
1699
|
-
return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
|
1700
|
-
|
1701
|
-
case 'Set':
|
1702
|
-
if (a.size !== b.size) {
|
1703
|
-
return false;
|
1704
|
-
}
|
1705
|
-
|
1706
|
-
return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
|
1707
|
-
|
1708
|
-
case 'Arguments':
|
1709
|
-
case 'Array':
|
1710
|
-
case 'Object':
|
1711
|
-
case 'Boolean':
|
1712
|
-
case 'Number':
|
1713
|
-
case 'String':
|
1714
|
-
case 'Date':
|
1715
|
-
case 'Error':
|
1716
|
-
case 'RegExp':
|
1717
|
-
case 'Int8Array':
|
1718
|
-
case 'Uint8Array':
|
1719
|
-
case 'Uint8ClampedArray':
|
1720
|
-
case 'Int16Array':
|
1721
|
-
case 'Uint16Array':
|
1722
|
-
case 'Int32Array':
|
1723
|
-
case 'Uint32Array':
|
1724
|
-
case 'Float32Array':
|
1725
|
-
case 'Float64Array':
|
1726
|
-
case 'ArrayBuffer':
|
1727
|
-
break;
|
1728
|
-
|
1729
|
-
default:
|
1730
|
-
// Values of other types are only equal if identical.
|
1731
|
-
return false;
|
1732
|
-
}
|
1733
|
-
|
1734
|
-
var keysA = (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(a);
|
1735
|
-
|
1736
|
-
if (keysA.length !== (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(b).length) {
|
1737
|
-
return false;
|
1738
|
-
}
|
1739
|
-
|
1740
|
-
var extendedStackA = stackA.concat([a]);
|
1741
|
-
var extendedStackB = stackB.concat([b]);
|
1742
|
-
idx = keysA.length - 1;
|
1743
|
-
|
1744
|
-
while (idx >= 0) {
|
1745
|
-
var key = keysA[idx];
|
1746
|
-
|
1747
|
-
if (!((0,_has_js__WEBPACK_IMPORTED_MODULE_6__["default"])(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
|
1748
|
-
return false;
|
1749
|
-
}
|
1750
|
-
|
1751
|
-
idx -= 1;
|
1752
|
-
}
|
1753
|
-
|
1754
|
-
return true;
|
1755
|
-
}
|
1756
|
-
|
1757
|
-
/***/ }),
|
1758
|
-
|
1759
|
-
/***/ 9638:
|
1760
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1761
|
-
|
1762
|
-
__webpack_require__.r(__webpack_exports__);
|
1763
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1764
|
-
/* harmony export */ "default": () => (/* binding */ _filter)
|
1765
|
-
/* harmony export */ });
|
1766
|
-
function _filter(fn, list) {
|
1767
|
-
var idx = 0;
|
1768
|
-
var len = list.length;
|
1769
|
-
var result = [];
|
1770
|
-
|
1771
|
-
while (idx < len) {
|
1772
|
-
if (fn(list[idx])) {
|
1773
|
-
result[result.length] = list[idx];
|
1774
|
-
}
|
1775
|
-
|
1776
|
-
idx += 1;
|
1777
|
-
}
|
1778
|
-
|
1779
|
-
return result;
|
1780
|
-
}
|
1781
|
-
|
1782
|
-
/***/ }),
|
1783
|
-
|
1784
|
-
/***/ 84:
|
1785
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1786
|
-
|
1787
|
-
__webpack_require__.r(__webpack_exports__);
|
1788
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1789
|
-
/* harmony export */ "default": () => (/* binding */ _functionName)
|
1790
|
-
/* harmony export */ });
|
1791
|
-
function _functionName(f) {
|
1792
|
-
// String(x => x) evaluates to "x => x", so the pattern may not match.
|
1793
|
-
var match = String(f).match(/^function (\w*)/);
|
1794
|
-
return match == null ? '' : match[1];
|
1795
|
-
}
|
1796
|
-
|
1797
|
-
/***/ }),
|
1798
|
-
|
1799
|
-
/***/ 766:
|
1800
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1801
|
-
|
1802
|
-
__webpack_require__.r(__webpack_exports__);
|
1803
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1804
|
-
/* harmony export */ "default": () => (/* binding */ _has)
|
1805
|
-
/* harmony export */ });
|
1806
|
-
function _has(prop, obj) {
|
1807
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
1808
|
-
}
|
1809
|
-
|
1810
|
-
/***/ }),
|
1811
|
-
|
1812
|
-
/***/ 7066:
|
1813
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1814
|
-
|
1815
|
-
__webpack_require__.r(__webpack_exports__);
|
1816
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1817
|
-
/* harmony export */ "default": () => (/* binding */ _includes)
|
1818
|
-
/* harmony export */ });
|
1819
|
-
/* harmony import */ var _indexOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2392);
|
1820
|
-
|
1821
|
-
function _includes(a, list) {
|
1822
|
-
return (0,_indexOf_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list, a, 0) >= 0;
|
1823
|
-
}
|
1824
|
-
|
1825
|
-
/***/ }),
|
1826
|
-
|
1827
|
-
/***/ 2526:
|
1828
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1829
|
-
|
1830
|
-
__webpack_require__.r(__webpack_exports__);
|
1831
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1832
|
-
/* harmony export */ "default": () => (/* binding */ _includesWith)
|
1833
|
-
/* harmony export */ });
|
1834
|
-
function _includesWith(pred, x, list) {
|
1835
|
-
var idx = 0;
|
1836
|
-
var len = list.length;
|
1837
|
-
|
1838
|
-
while (idx < len) {
|
1839
|
-
if (pred(x, list[idx])) {
|
1840
|
-
return true;
|
1841
|
-
}
|
1842
|
-
|
1843
|
-
idx += 1;
|
1844
|
-
}
|
1845
|
-
|
1846
|
-
return false;
|
1847
|
-
}
|
1848
|
-
|
1849
|
-
/***/ }),
|
1850
|
-
|
1851
|
-
/***/ 2392:
|
1852
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1853
|
-
|
1854
|
-
__webpack_require__.r(__webpack_exports__);
|
1855
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1856
|
-
/* harmony export */ "default": () => (/* binding */ _indexOf)
|
1857
|
-
/* harmony export */ });
|
1858
|
-
/* harmony import */ var _equals_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7087);
|
1859
|
-
|
1860
|
-
function _indexOf(list, a, idx) {
|
1861
|
-
var inf, item; // Array.prototype.indexOf doesn't exist below IE9
|
1862
|
-
|
1863
|
-
if (typeof list.indexOf === 'function') {
|
1864
|
-
switch (typeof a) {
|
1865
|
-
case 'number':
|
1866
|
-
if (a === 0) {
|
1867
|
-
// manually crawl the list to distinguish between +0 and -0
|
1868
|
-
inf = 1 / a;
|
1869
|
-
|
1870
|
-
while (idx < list.length) {
|
1871
|
-
item = list[idx];
|
1872
|
-
|
1873
|
-
if (item === 0 && 1 / item === inf) {
|
1874
|
-
return idx;
|
1875
|
-
}
|
1876
|
-
|
1877
|
-
idx += 1;
|
1878
|
-
}
|
1879
|
-
|
1880
|
-
return -1;
|
1881
|
-
} else if (a !== a) {
|
1882
|
-
// NaN
|
1883
|
-
while (idx < list.length) {
|
1884
|
-
item = list[idx];
|
1885
|
-
|
1886
|
-
if (typeof item === 'number' && item !== item) {
|
1887
|
-
return idx;
|
1888
|
-
}
|
1889
|
-
|
1890
|
-
idx += 1;
|
1891
|
-
}
|
1892
|
-
|
1893
|
-
return -1;
|
1894
|
-
} // non-zero numbers can utilise Set
|
1895
|
-
|
1896
|
-
|
1897
|
-
return list.indexOf(a, idx);
|
1898
|
-
// all these types can utilise Set
|
1899
|
-
|
1900
|
-
case 'string':
|
1901
|
-
case 'boolean':
|
1902
|
-
case 'function':
|
1903
|
-
case 'undefined':
|
1904
|
-
return list.indexOf(a, idx);
|
1905
|
-
|
1906
|
-
case 'object':
|
1907
|
-
if (a === null) {
|
1908
|
-
// null can utilise Set
|
1909
|
-
return list.indexOf(a, idx);
|
1910
|
-
}
|
1911
|
-
|
1912
|
-
}
|
1913
|
-
} // anything else not covered above, defer to R.equals
|
1914
|
-
|
1915
|
-
|
1916
|
-
while (idx < list.length) {
|
1917
|
-
if ((0,_equals_js__WEBPACK_IMPORTED_MODULE_0__["default"])(list[idx], a)) {
|
1918
|
-
return idx;
|
1919
|
-
}
|
1920
|
-
|
1921
|
-
idx += 1;
|
1922
|
-
}
|
1923
|
-
|
1924
|
-
return -1;
|
1925
|
-
}
|
1926
|
-
|
1927
|
-
/***/ }),
|
1928
|
-
|
1929
|
-
/***/ 2648:
|
1930
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1931
|
-
|
1932
|
-
__webpack_require__.r(__webpack_exports__);
|
1933
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1934
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
1935
|
-
/* harmony export */ });
|
1936
|
-
/* harmony import */ var _has_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(766);
|
1937
|
-
|
1938
|
-
var toString = Object.prototype.toString;
|
1939
|
-
|
1940
|
-
var _isArguments =
|
1941
|
-
/*#__PURE__*/
|
1942
|
-
function () {
|
1943
|
-
return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
|
1944
|
-
return toString.call(x) === '[object Arguments]';
|
1945
|
-
} : function _isArguments(x) {
|
1946
|
-
return (0,_has_js__WEBPACK_IMPORTED_MODULE_0__["default"])('callee', x);
|
1947
|
-
};
|
1948
|
-
}();
|
1949
|
-
|
1950
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_isArguments);
|
1951
|
-
|
1952
|
-
/***/ }),
|
1953
|
-
|
1954
|
-
/***/ 704:
|
1955
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1956
|
-
|
1957
|
-
__webpack_require__.r(__webpack_exports__);
|
1958
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1959
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
1960
|
-
/* harmony export */ });
|
1961
|
-
/**
|
1962
|
-
* Tests whether or not an object is an array.
|
1963
|
-
*
|
1964
|
-
* @private
|
1965
|
-
* @param {*} val The object to test.
|
1966
|
-
* @return {Boolean} `true` if `val` is an array, `false` otherwise.
|
1967
|
-
* @example
|
1968
|
-
*
|
1969
|
-
* _isArray([]); //=> true
|
1970
|
-
* _isArray(null); //=> false
|
1971
|
-
* _isArray({}); //=> false
|
1972
|
-
*/
|
1973
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Array.isArray || function _isArray(val) {
|
1974
|
-
return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
|
1975
|
-
});
|
1976
|
-
|
1977
|
-
/***/ }),
|
1978
|
-
|
1979
|
-
/***/ 8322:
|
1980
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
1981
|
-
|
1982
|
-
__webpack_require__.r(__webpack_exports__);
|
1983
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
1984
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
1985
|
-
/* harmony export */ });
|
1986
|
-
/* harmony import */ var _curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
1987
|
-
/* harmony import */ var _isArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(704);
|
1988
|
-
/* harmony import */ var _isString_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7747);
|
1989
|
-
|
1990
|
-
|
1991
|
-
|
1992
|
-
/**
|
1993
|
-
* Tests whether or not an object is similar to an array.
|
1994
|
-
*
|
1995
|
-
* @private
|
1996
|
-
* @category Type
|
1997
|
-
* @category List
|
1998
|
-
* @sig * -> Boolean
|
1999
|
-
* @param {*} x The object to test.
|
2000
|
-
* @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
|
2001
|
-
* @example
|
2002
|
-
*
|
2003
|
-
* _isArrayLike([]); //=> true
|
2004
|
-
* _isArrayLike(true); //=> false
|
2005
|
-
* _isArrayLike({}); //=> false
|
2006
|
-
* _isArrayLike({length: 10}); //=> false
|
2007
|
-
* _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
|
2008
|
-
* _isArrayLike({nodeType: 1, length: 1}) // => false
|
2009
|
-
*/
|
2010
|
-
|
2011
|
-
var _isArrayLike =
|
2012
|
-
/*#__PURE__*/
|
2013
|
-
(0,_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function isArrayLike(x) {
|
2014
|
-
if ((0,_isArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(x)) {
|
2015
|
-
return true;
|
2016
|
-
}
|
2017
|
-
|
2018
|
-
if (!x) {
|
2019
|
-
return false;
|
2020
|
-
}
|
2021
|
-
|
2022
|
-
if (typeof x !== 'object') {
|
2023
|
-
return false;
|
2024
|
-
}
|
2025
|
-
|
2026
|
-
if ((0,_isString_js__WEBPACK_IMPORTED_MODULE_2__["default"])(x)) {
|
2027
|
-
return false;
|
2028
|
-
}
|
2029
|
-
|
2030
|
-
if (x.length === 0) {
|
2031
|
-
return true;
|
2032
|
-
}
|
2033
|
-
|
2034
|
-
if (x.length > 0) {
|
2035
|
-
return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
|
2036
|
-
}
|
2037
|
-
|
2038
|
-
return false;
|
2039
|
-
});
|
2040
|
-
|
2041
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_isArrayLike);
|
2042
|
-
|
2043
|
-
/***/ }),
|
2044
|
-
|
2045
|
-
/***/ 3565:
|
2046
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2047
|
-
|
2048
|
-
__webpack_require__.r(__webpack_exports__);
|
2049
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2050
|
-
/* harmony export */ "default": () => (/* binding */ _isFunction)
|
2051
|
-
/* harmony export */ });
|
2052
|
-
function _isFunction(x) {
|
2053
|
-
var type = Object.prototype.toString.call(x);
|
2054
|
-
return type === '[object Function]' || type === '[object AsyncFunction]' || type === '[object GeneratorFunction]' || type === '[object AsyncGeneratorFunction]';
|
2055
|
-
}
|
2056
|
-
|
2057
|
-
/***/ }),
|
2058
|
-
|
2059
|
-
/***/ 5386:
|
2060
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2061
|
-
|
2062
|
-
__webpack_require__.r(__webpack_exports__);
|
2063
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2064
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2065
|
-
/* harmony export */ });
|
2066
|
-
/**
|
2067
|
-
* Determine if the passed argument is an integer.
|
2068
|
-
*
|
2069
|
-
* @private
|
2070
|
-
* @param {*} n
|
2071
|
-
* @category Type
|
2072
|
-
* @return {Boolean}
|
2073
|
-
*/
|
2074
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Number.isInteger || function _isInteger(n) {
|
2075
|
-
return n << 0 === n;
|
2076
|
-
});
|
2077
|
-
|
2078
|
-
/***/ }),
|
2079
|
-
|
2080
|
-
/***/ 6336:
|
2081
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2082
|
-
|
2083
|
-
__webpack_require__.r(__webpack_exports__);
|
2084
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2085
|
-
/* harmony export */ "default": () => (/* binding */ _isObject)
|
2086
|
-
/* harmony export */ });
|
2087
|
-
function _isObject(x) {
|
2088
|
-
return Object.prototype.toString.call(x) === '[object Object]';
|
2089
|
-
}
|
2090
|
-
|
2091
|
-
/***/ }),
|
2092
|
-
|
2093
|
-
/***/ 8471:
|
2094
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2095
|
-
|
2096
|
-
__webpack_require__.r(__webpack_exports__);
|
2097
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2098
|
-
/* harmony export */ "default": () => (/* binding */ _isPlaceholder)
|
2099
|
-
/* harmony export */ });
|
2100
|
-
function _isPlaceholder(a) {
|
2101
|
-
return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
|
2102
|
-
}
|
2103
|
-
|
2104
|
-
/***/ }),
|
2105
|
-
|
2106
|
-
/***/ 7747:
|
2107
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2108
|
-
|
2109
|
-
__webpack_require__.r(__webpack_exports__);
|
2110
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2111
|
-
/* harmony export */ "default": () => (/* binding */ _isString)
|
2112
|
-
/* harmony export */ });
|
2113
|
-
function _isString(x) {
|
2114
|
-
return Object.prototype.toString.call(x) === '[object String]';
|
2115
|
-
}
|
2116
|
-
|
2117
|
-
/***/ }),
|
2118
|
-
|
2119
|
-
/***/ 7544:
|
2120
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2121
|
-
|
2122
|
-
__webpack_require__.r(__webpack_exports__);
|
2123
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2124
|
-
/* harmony export */ "default": () => (/* binding */ _isTransformer)
|
2125
|
-
/* harmony export */ });
|
2126
|
-
function _isTransformer(obj) {
|
2127
|
-
return obj != null && typeof obj['@@transducer/step'] === 'function';
|
2128
|
-
}
|
2129
|
-
|
2130
|
-
/***/ }),
|
2131
|
-
|
2132
|
-
/***/ 1942:
|
2133
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2134
|
-
|
2135
|
-
__webpack_require__.r(__webpack_exports__);
|
2136
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2137
|
-
/* harmony export */ "default": () => (/* binding */ _map)
|
2138
|
-
/* harmony export */ });
|
2139
|
-
function _map(fn, functor) {
|
2140
|
-
var idx = 0;
|
2141
|
-
var len = functor.length;
|
2142
|
-
var result = Array(len);
|
2143
|
-
|
2144
|
-
while (idx < len) {
|
2145
|
-
result[idx] = fn(functor[idx]);
|
2146
|
-
idx += 1;
|
2147
|
-
}
|
2148
|
-
|
2149
|
-
return result;
|
2150
|
-
}
|
2151
|
-
|
2152
|
-
/***/ }),
|
2153
|
-
|
2154
|
-
/***/ 1419:
|
2155
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2156
|
-
|
2157
|
-
__webpack_require__.r(__webpack_exports__);
|
2158
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2159
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2160
|
-
/* harmony export */ });
|
2161
|
-
// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
2162
|
-
function _objectIs(a, b) {
|
2163
|
-
// SameValue algorithm
|
2164
|
-
if (a === b) {
|
2165
|
-
// Steps 1-5, 7-10
|
2166
|
-
// Steps 6.b-6.e: +0 != -0
|
2167
|
-
return a !== 0 || 1 / a === 1 / b;
|
2168
|
-
} else {
|
2169
|
-
// Step 6.a: NaN == NaN
|
2170
|
-
return a !== a && b !== b;
|
2171
|
-
}
|
2172
|
-
}
|
2173
|
-
|
2174
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (typeof Object.is === 'function' ? Object.is : _objectIs);
|
2175
|
-
|
2176
|
-
/***/ }),
|
2177
|
-
|
2178
|
-
/***/ 6365:
|
2179
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2180
|
-
|
2181
|
-
__webpack_require__.r(__webpack_exports__);
|
2182
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2183
|
-
/* harmony export */ "default": () => (/* binding */ _pipe)
|
2184
|
-
/* harmony export */ });
|
2185
|
-
function _pipe(f, g) {
|
2186
|
-
return function () {
|
2187
|
-
return g.call(this, f.apply(this, arguments));
|
2188
|
-
};
|
2189
|
-
}
|
2190
|
-
|
2191
|
-
/***/ }),
|
2192
|
-
|
2193
|
-
/***/ 5590:
|
2194
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2195
|
-
|
2196
|
-
__webpack_require__.r(__webpack_exports__);
|
2197
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2198
|
-
/* harmony export */ "default": () => (/* binding */ _quote)
|
2199
|
-
/* harmony export */ });
|
2200
|
-
function _quote(s) {
|
2201
|
-
var escaped = s.replace(/\\/g, '\\\\').replace(/[\b]/g, '\\b') // \b matches word boundary; [\b] matches backspace
|
2202
|
-
.replace(/\f/g, '\\f').replace(/\n/g, '\\n').replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/\v/g, '\\v').replace(/\0/g, '\\0');
|
2203
|
-
return '"' + escaped.replace(/"/g, '\\"') + '"';
|
2204
|
-
}
|
2205
|
-
|
2206
|
-
/***/ }),
|
2207
|
-
|
2208
|
-
/***/ 5874:
|
2209
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2210
|
-
|
2211
|
-
__webpack_require__.r(__webpack_exports__);
|
2212
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2213
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2214
|
-
/* harmony export */ });
|
2215
|
-
/* harmony import */ var _arrayReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1992);
|
2216
|
-
/* harmony import */ var _createReduce_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7645);
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
function _iterableReduce(reducer, acc, iter) {
|
2221
|
-
var step = iter.next();
|
2222
|
-
|
2223
|
-
while (!step.done) {
|
2224
|
-
acc = reducer(acc, step.value);
|
2225
|
-
step = iter.next();
|
2226
|
-
}
|
2227
|
-
|
2228
|
-
return acc;
|
2229
|
-
}
|
2230
|
-
|
2231
|
-
function _methodReduce(reducer, acc, obj, methodName) {
|
2232
|
-
return obj[methodName](reducer, acc);
|
2233
|
-
}
|
2234
|
-
|
2235
|
-
var _reduce =
|
2236
|
-
/*#__PURE__*/
|
2237
|
-
(0,_createReduce_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_arrayReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"], _methodReduce, _iterableReduce);
|
2238
|
-
|
2239
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_reduce);
|
2240
|
-
|
2241
|
-
/***/ }),
|
2242
|
-
|
2243
|
-
/***/ 4533:
|
2244
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2245
|
-
|
2246
|
-
__webpack_require__.r(__webpack_exports__);
|
2247
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2248
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2249
|
-
/* harmony export */ });
|
2250
|
-
/**
|
2251
|
-
* Polyfill from <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString>.
|
2252
|
-
*/
|
2253
|
-
var pad = function pad(n) {
|
2254
|
-
return (n < 10 ? '0' : '') + n;
|
2255
|
-
};
|
2256
|
-
|
2257
|
-
var _toISOString = typeof Date.prototype.toISOString === 'function' ? function _toISOString(d) {
|
2258
|
-
return d.toISOString();
|
2259
|
-
} : function _toISOString(d) {
|
2260
|
-
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';
|
2261
|
-
};
|
2262
|
-
|
2263
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_toISOString);
|
2264
|
-
|
2265
|
-
/***/ }),
|
2266
|
-
|
2267
|
-
/***/ 7611:
|
2268
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2269
|
-
|
2270
|
-
__webpack_require__.r(__webpack_exports__);
|
2271
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2272
|
-
/* harmony export */ "default": () => (/* binding */ _toString)
|
2273
|
-
/* harmony export */ });
|
2274
|
-
/* harmony import */ var _includes_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7066);
|
2275
|
-
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1942);
|
2276
|
-
/* harmony import */ var _quote_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5590);
|
2277
|
-
/* harmony import */ var _toISOString_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4533);
|
2278
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3118);
|
2279
|
-
/* harmony import */ var _reject_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(815);
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
function _toString(x, seen) {
|
2287
|
-
var recur = function recur(y) {
|
2288
|
-
var xs = seen.concat([x]);
|
2289
|
-
return (0,_includes_js__WEBPACK_IMPORTED_MODULE_0__["default"])(y, xs) ? '<Circular>' : _toString(y, xs);
|
2290
|
-
}; // mapPairs :: (Object, [String]) -> [String]
|
2291
|
-
|
2292
|
-
|
2293
|
-
var mapPairs = function (obj, keys) {
|
2294
|
-
return (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function (k) {
|
2295
|
-
return (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])(k) + ': ' + recur(obj[k]);
|
2296
|
-
}, keys.slice().sort());
|
2297
|
-
};
|
2298
|
-
|
2299
|
-
switch (Object.prototype.toString.call(x)) {
|
2300
|
-
case '[object Arguments]':
|
2301
|
-
return '(function() { return arguments; }(' + (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(recur, x).join(', ') + '))';
|
2302
|
-
|
2303
|
-
case '[object Array]':
|
2304
|
-
return '[' + (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])(recur, x).concat(mapPairs(x, (0,_reject_js__WEBPACK_IMPORTED_MODULE_3__["default"])(function (k) {
|
2305
|
-
return /^\d+$/.test(k);
|
2306
|
-
}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x)))).join(', ') + ']';
|
2307
|
-
|
2308
|
-
case '[object Boolean]':
|
2309
|
-
return typeof x === 'object' ? 'new Boolean(' + recur(x.valueOf()) + ')' : x.toString();
|
2310
|
-
|
2311
|
-
case '[object Date]':
|
2312
|
-
return 'new Date(' + (isNaN(x.valueOf()) ? recur(NaN) : (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_toISOString_js__WEBPACK_IMPORTED_MODULE_5__["default"])(x))) + ')';
|
2313
|
-
|
2314
|
-
case '[object Map]':
|
2315
|
-
return 'new Map(' + recur(Array.from(x)) + ')';
|
2316
|
-
|
2317
|
-
case '[object Null]':
|
2318
|
-
return 'null';
|
2319
|
-
|
2320
|
-
case '[object Number]':
|
2321
|
-
return typeof x === 'object' ? 'new Number(' + recur(x.valueOf()) + ')' : 1 / x === -Infinity ? '-0' : x.toString(10);
|
2322
|
-
|
2323
|
-
case '[object Set]':
|
2324
|
-
return 'new Set(' + recur(Array.from(x).sort()) + ')';
|
2325
|
-
|
2326
|
-
case '[object String]':
|
2327
|
-
return typeof x === 'object' ? 'new String(' + recur(x.valueOf()) + ')' : (0,_quote_js__WEBPACK_IMPORTED_MODULE_2__["default"])(x);
|
2328
|
-
|
2329
|
-
case '[object Undefined]':
|
2330
|
-
return 'undefined';
|
2331
|
-
|
2332
|
-
default:
|
2333
|
-
if (typeof x.toString === 'function') {
|
2334
|
-
var repr = x.toString();
|
2335
|
-
|
2336
|
-
if (repr !== '[object Object]') {
|
2337
|
-
return repr;
|
2338
|
-
}
|
2339
|
-
}
|
2340
|
-
|
2341
|
-
return '{' + mapPairs(x, (0,_keys_js__WEBPACK_IMPORTED_MODULE_4__["default"])(x)).join(', ') + '}';
|
2342
|
-
}
|
2343
|
-
}
|
2344
|
-
|
2345
|
-
/***/ }),
|
2346
|
-
|
2347
|
-
/***/ 8539:
|
2348
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2349
|
-
|
2350
|
-
__webpack_require__.r(__webpack_exports__);
|
2351
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2352
|
-
/* harmony export */ "default": () => (/* binding */ _xArrayReduce)
|
2353
|
-
/* harmony export */ });
|
2354
|
-
function _xArrayReduce(xf, acc, list) {
|
2355
|
-
var idx = 0;
|
2356
|
-
var len = list.length;
|
2357
|
-
|
2358
|
-
while (idx < len) {
|
2359
|
-
acc = xf['@@transducer/step'](acc, list[idx]);
|
2360
|
-
|
2361
|
-
if (acc && acc['@@transducer/reduced']) {
|
2362
|
-
acc = acc['@@transducer/value'];
|
2363
|
-
break;
|
2364
|
-
}
|
2365
|
-
|
2366
|
-
idx += 1;
|
2367
|
-
}
|
2368
|
-
|
2369
|
-
return xf['@@transducer/result'](acc);
|
2370
|
-
}
|
2371
|
-
|
2372
|
-
/***/ }),
|
2373
|
-
|
2374
|
-
/***/ 3769:
|
2375
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2376
|
-
|
2377
|
-
__webpack_require__.r(__webpack_exports__);
|
2378
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2379
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2380
|
-
/* harmony export */ });
|
2381
|
-
/* harmony import */ var _createReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7645);
|
2382
|
-
/* harmony import */ var _xArrayReduce_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8539);
|
2383
|
-
/* harmony import */ var _bind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4078);
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2387
|
-
|
2388
|
-
function _xIterableReduce(xf, acc, iter) {
|
2389
|
-
var step = iter.next();
|
2390
|
-
|
2391
|
-
while (!step.done) {
|
2392
|
-
acc = xf['@@transducer/step'](acc, step.value);
|
2393
|
-
|
2394
|
-
if (acc && acc['@@transducer/reduced']) {
|
2395
|
-
acc = acc['@@transducer/value'];
|
2396
|
-
break;
|
2397
|
-
}
|
2398
|
-
|
2399
|
-
step = iter.next();
|
2400
|
-
}
|
2401
|
-
|
2402
|
-
return xf['@@transducer/result'](acc);
|
2403
|
-
}
|
2404
|
-
|
2405
|
-
function _xMethodReduce(xf, acc, obj, methodName) {
|
2406
|
-
return xf['@@transducer/result'](obj[methodName]((0,_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(xf['@@transducer/step'], xf), acc));
|
2407
|
-
}
|
2408
|
-
|
2409
|
-
var _xReduce =
|
2410
|
-
/*#__PURE__*/
|
2411
|
-
(0,_createReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_xArrayReduce_js__WEBPACK_IMPORTED_MODULE_2__["default"], _xMethodReduce, _xIterableReduce);
|
2412
|
-
|
2413
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_xReduce);
|
2414
|
-
|
2415
|
-
/***/ }),
|
2416
|
-
|
2417
|
-
/***/ 9371:
|
2418
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2419
|
-
|
2420
|
-
__webpack_require__.r(__webpack_exports__);
|
2421
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2422
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2423
|
-
/* harmony export */ });
|
2424
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
2425
|
-
init: function () {
|
2426
|
-
return this.xf['@@transducer/init']();
|
2427
|
-
},
|
2428
|
-
result: function (result) {
|
2429
|
-
return this.xf['@@transducer/result'](result);
|
2430
|
-
}
|
2431
|
-
});
|
2432
|
-
|
2433
|
-
/***/ }),
|
2434
|
-
|
2435
|
-
/***/ 1349:
|
2436
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2437
|
-
|
2438
|
-
__webpack_require__.r(__webpack_exports__);
|
2439
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2440
|
-
/* harmony export */ "default": () => (/* binding */ _xfilter)
|
2441
|
-
/* harmony export */ });
|
2442
|
-
/* harmony import */ var _xfBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9371);
|
2443
|
-
|
2444
|
-
|
2445
|
-
var XFilter =
|
2446
|
-
/*#__PURE__*/
|
2447
|
-
function () {
|
2448
|
-
function XFilter(f, xf) {
|
2449
|
-
this.xf = xf;
|
2450
|
-
this.f = f;
|
2451
|
-
}
|
2452
|
-
|
2453
|
-
XFilter.prototype['@@transducer/init'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].init;
|
2454
|
-
XFilter.prototype['@@transducer/result'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].result;
|
2455
|
-
|
2456
|
-
XFilter.prototype['@@transducer/step'] = function (result, input) {
|
2457
|
-
return this.f(input) ? this.xf['@@transducer/step'](result, input) : result;
|
2458
|
-
};
|
2459
|
-
|
2460
|
-
return XFilter;
|
2461
|
-
}();
|
2462
|
-
|
2463
|
-
function _xfilter(f) {
|
2464
|
-
return function (xf) {
|
2465
|
-
return new XFilter(f, xf);
|
2466
|
-
};
|
2467
|
-
}
|
2468
|
-
|
2469
|
-
/***/ }),
|
2470
|
-
|
2471
|
-
/***/ 2859:
|
2472
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2473
|
-
|
2474
|
-
__webpack_require__.r(__webpack_exports__);
|
2475
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2476
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2477
|
-
/* harmony export */ });
|
2478
|
-
/* harmony import */ var _xfBase_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9371);
|
2479
|
-
|
2480
|
-
|
2481
|
-
var XMap =
|
2482
|
-
/*#__PURE__*/
|
2483
|
-
function () {
|
2484
|
-
function XMap(f, xf) {
|
2485
|
-
this.xf = xf;
|
2486
|
-
this.f = f;
|
2487
|
-
}
|
2488
|
-
|
2489
|
-
XMap.prototype['@@transducer/init'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].init;
|
2490
|
-
XMap.prototype['@@transducer/result'] = _xfBase_js__WEBPACK_IMPORTED_MODULE_0__["default"].result;
|
2491
|
-
|
2492
|
-
XMap.prototype['@@transducer/step'] = function (result, input) {
|
2493
|
-
return this.xf['@@transducer/step'](result, this.f(input));
|
2494
|
-
};
|
2495
|
-
|
2496
|
-
return XMap;
|
2497
|
-
}();
|
2498
|
-
|
2499
|
-
var _xmap = function _xmap(f) {
|
2500
|
-
return function (xf) {
|
2501
|
-
return new XMap(f, xf);
|
2502
|
-
};
|
2503
|
-
};
|
2504
|
-
|
2505
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_xmap);
|
2506
|
-
|
2507
|
-
/***/ }),
|
2508
|
-
|
2509
|
-
/***/ 9582:
|
2510
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2511
|
-
|
2512
|
-
__webpack_require__.r(__webpack_exports__);
|
2513
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2514
|
-
/* harmony export */ "default": () => (/* binding */ _xwrap)
|
2515
|
-
/* harmony export */ });
|
2516
|
-
var XWrap =
|
2517
|
-
/*#__PURE__*/
|
2518
|
-
function () {
|
2519
|
-
function XWrap(fn) {
|
2520
|
-
this.f = fn;
|
2521
|
-
}
|
2522
|
-
|
2523
|
-
XWrap.prototype['@@transducer/init'] = function () {
|
2524
|
-
throw new Error('init not implemented on XWrap');
|
2525
|
-
};
|
2526
|
-
|
2527
|
-
XWrap.prototype['@@transducer/result'] = function (acc) {
|
2528
|
-
return acc;
|
2529
|
-
};
|
2530
|
-
|
2531
|
-
XWrap.prototype['@@transducer/step'] = function (acc, x) {
|
2532
|
-
return this.f(acc, x);
|
2533
|
-
};
|
2534
|
-
|
2535
|
-
return XWrap;
|
2536
|
-
}();
|
2537
|
-
|
2538
|
-
function _xwrap(fn) {
|
2539
|
-
return new XWrap(fn);
|
2540
|
-
}
|
2541
|
-
|
2542
|
-
/***/ }),
|
2543
|
-
|
2544
|
-
/***/ 7596:
|
2545
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2546
|
-
|
2547
|
-
__webpack_require__.r(__webpack_exports__);
|
2548
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2549
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2550
|
-
/* harmony export */ });
|
2551
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
2552
|
-
|
2553
|
-
/**
|
2554
|
-
* Checks if the input value is `null` or `undefined`.
|
2555
|
-
*
|
2556
|
-
* @func
|
2557
|
-
* @memberOf R
|
2558
|
-
* @since v0.9.0
|
2559
|
-
* @category Type
|
2560
|
-
* @sig * -> Boolean
|
2561
|
-
* @param {*} x The value to test.
|
2562
|
-
* @return {Boolean} `true` if `x` is `undefined` or `null`, otherwise `false`.
|
2563
|
-
* @example
|
2564
|
-
*
|
2565
|
-
* R.isNil(null); //=> true
|
2566
|
-
* R.isNil(undefined); //=> true
|
2567
|
-
* R.isNil(0); //=> false
|
2568
|
-
* R.isNil([]); //=> false
|
2569
|
-
*/
|
2570
|
-
|
2571
|
-
var isNil =
|
2572
|
-
/*#__PURE__*/
|
2573
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function isNil(x) {
|
2574
|
-
return x == null;
|
2575
|
-
});
|
2576
|
-
|
2577
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isNil);
|
2578
|
-
|
2579
|
-
/***/ }),
|
2580
|
-
|
2581
|
-
/***/ 3118:
|
2582
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2583
|
-
|
2584
|
-
__webpack_require__.r(__webpack_exports__);
|
2585
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2586
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2587
|
-
/* harmony export */ });
|
2588
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
2589
|
-
/* harmony import */ var _internal_has_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(766);
|
2590
|
-
/* harmony import */ var _internal_isArguments_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2648);
|
2591
|
-
|
2592
|
-
|
2593
|
-
// cover IE < 9 keys issues
|
2594
|
-
|
2595
|
-
var hasEnumBug = !
|
2596
|
-
/*#__PURE__*/
|
2597
|
-
{
|
2598
|
-
toString: null
|
2599
|
-
}.propertyIsEnumerable('toString');
|
2600
|
-
var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
|
2601
|
-
|
2602
|
-
var hasArgsEnumBug =
|
2603
|
-
/*#__PURE__*/
|
2604
|
-
function () {
|
2605
|
-
'use strict';
|
2606
|
-
|
2607
|
-
return arguments.propertyIsEnumerable('length');
|
2608
|
-
}();
|
2609
|
-
|
2610
|
-
var contains = function contains(list, item) {
|
2611
|
-
var idx = 0;
|
2612
|
-
|
2613
|
-
while (idx < list.length) {
|
2614
|
-
if (list[idx] === item) {
|
2615
|
-
return true;
|
2616
|
-
}
|
2617
|
-
|
2618
|
-
idx += 1;
|
2619
|
-
}
|
2620
|
-
|
2621
|
-
return false;
|
2622
|
-
};
|
2623
|
-
/**
|
2624
|
-
* Returns a list containing the names of all the enumerable own properties of
|
2625
|
-
* the supplied object.
|
2626
|
-
* Note that the order of the output array is not guaranteed to be consistent
|
2627
|
-
* across different JS platforms.
|
2628
|
-
*
|
2629
|
-
* @func
|
2630
|
-
* @memberOf R
|
2631
|
-
* @since v0.1.0
|
2632
|
-
* @category Object
|
2633
|
-
* @sig {k: v} -> [k]
|
2634
|
-
* @param {Object} obj The object to extract properties from
|
2635
|
-
* @return {Array} An array of the object's own properties.
|
2636
|
-
* @see R.keysIn, R.values, R.toPairs
|
2637
|
-
* @example
|
2638
|
-
*
|
2639
|
-
* R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
|
2640
|
-
*/
|
2641
|
-
|
2642
|
-
|
2643
|
-
var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
|
2644
|
-
/*#__PURE__*/
|
2645
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function keys(obj) {
|
2646
|
-
return Object(obj) !== obj ? [] : Object.keys(obj);
|
2647
|
-
}) :
|
2648
|
-
/*#__PURE__*/
|
2649
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function keys(obj) {
|
2650
|
-
if (Object(obj) !== obj) {
|
2651
|
-
return [];
|
2652
|
-
}
|
2653
|
-
|
2654
|
-
var prop, nIdx;
|
2655
|
-
var ks = [];
|
2656
|
-
|
2657
|
-
var checkArgsLength = hasArgsEnumBug && (0,_internal_isArguments_js__WEBPACK_IMPORTED_MODULE_1__["default"])(obj);
|
2658
|
-
|
2659
|
-
for (prop in obj) {
|
2660
|
-
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_2__["default"])(prop, obj) && (!checkArgsLength || prop !== 'length')) {
|
2661
|
-
ks[ks.length] = prop;
|
2662
|
-
}
|
2663
|
-
}
|
2664
|
-
|
2665
|
-
if (hasEnumBug) {
|
2666
|
-
nIdx = nonEnumerableProps.length - 1;
|
2667
|
-
|
2668
|
-
while (nIdx >= 0) {
|
2669
|
-
prop = nonEnumerableProps[nIdx];
|
2670
|
-
|
2671
|
-
if ((0,_internal_has_js__WEBPACK_IMPORTED_MODULE_2__["default"])(prop, obj) && !contains(ks, prop)) {
|
2672
|
-
ks[ks.length] = prop;
|
2673
|
-
}
|
2674
|
-
|
2675
|
-
nIdx -= 1;
|
2676
|
-
}
|
2677
|
-
}
|
2678
|
-
|
2679
|
-
return ks;
|
2680
|
-
});
|
2681
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (keys);
|
2682
|
-
|
2683
|
-
/***/ }),
|
2684
|
-
|
2685
|
-
/***/ 8410:
|
2686
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2687
|
-
|
2688
|
-
__webpack_require__.r(__webpack_exports__);
|
2689
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2690
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2691
|
-
/* harmony export */ });
|
2692
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
2693
|
-
/* harmony import */ var _liftN_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7253);
|
2694
|
-
|
2695
|
-
|
2696
|
-
/**
|
2697
|
-
* "lifts" a function of arity >= 1 so that it may "map over" a list, Function or other
|
2698
|
-
* object that satisfies the [FantasyLand Apply spec](https://github.com/fantasyland/fantasy-land#apply).
|
2699
|
-
*
|
2700
|
-
* @func
|
2701
|
-
* @memberOf R
|
2702
|
-
* @since v0.7.0
|
2703
|
-
* @category Function
|
2704
|
-
* @sig (*... -> *) -> ([*]... -> [*])
|
2705
|
-
* @param {Function} fn The function to lift into higher context
|
2706
|
-
* @return {Function} The lifted function.
|
2707
|
-
* @see R.liftN
|
2708
|
-
* @example
|
2709
|
-
*
|
2710
|
-
* const madd3 = R.lift((a, b, c) => a + b + c);
|
2711
|
-
*
|
2712
|
-
* madd3([100, 200], [30, 40], [5, 6, 7]); //=> [135, 136, 137, 145, 146, 147, 235, 236, 237, 245, 246, 247]
|
2713
|
-
*
|
2714
|
-
* const madd5 = R.lift((a, b, c, d, e) => a + b + c + d + e);
|
2715
|
-
*
|
2716
|
-
* madd5([10, 20], [1], [2, 3], [4], [100, 200]); //=> [117, 217, 118, 218, 127, 227, 128, 228]
|
2717
|
-
*/
|
2718
|
-
|
2719
|
-
var lift =
|
2720
|
-
/*#__PURE__*/
|
2721
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function lift(fn) {
|
2722
|
-
return (0,_liftN_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fn.length, fn);
|
2723
|
-
});
|
2724
|
-
|
2725
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (lift);
|
2726
|
-
|
2727
|
-
/***/ }),
|
2728
|
-
|
2729
|
-
/***/ 7253:
|
2730
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2731
|
-
|
2732
|
-
__webpack_require__.r(__webpack_exports__);
|
2733
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2734
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2735
|
-
/* harmony export */ });
|
2736
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
2737
|
-
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1992);
|
2738
|
-
/* harmony import */ var _ap_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1438);
|
2739
|
-
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7616);
|
2740
|
-
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(419);
|
2741
|
-
|
2742
|
-
|
2743
|
-
|
2744
|
-
|
2745
|
-
|
2746
|
-
/**
|
2747
|
-
* "lifts" a function to be the specified arity, so that it may "map over" that
|
2748
|
-
* many lists, Functions or other objects that satisfy the [FantasyLand Apply spec](https://github.com/fantasyland/fantasy-land#apply).
|
2749
|
-
*
|
2750
|
-
* @func
|
2751
|
-
* @memberOf R
|
2752
|
-
* @since v0.7.0
|
2753
|
-
* @category Function
|
2754
|
-
* @sig Number -> (*... -> *) -> ([*]... -> [*])
|
2755
|
-
* @param {Function} fn The function to lift into higher context
|
2756
|
-
* @return {Function} The lifted function.
|
2757
|
-
* @see R.lift, R.ap
|
2758
|
-
* @example
|
2759
|
-
*
|
2760
|
-
* const madd3 = R.liftN(3, (...args) => R.sum(args));
|
2761
|
-
* madd3([1,2,3], [1,2,3], [1]); //=> [3, 4, 5, 4, 5, 6, 5, 6, 7]
|
2762
|
-
*/
|
2763
|
-
|
2764
|
-
var liftN =
|
2765
|
-
/*#__PURE__*/
|
2766
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function liftN(arity, fn) {
|
2767
|
-
var lifted = (0,_curryN_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arity, fn);
|
2768
|
-
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arity, function () {
|
2769
|
-
return (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_ap_js__WEBPACK_IMPORTED_MODULE_3__["default"], (0,_map_js__WEBPACK_IMPORTED_MODULE_4__["default"])(lifted, arguments[0]), Array.prototype.slice.call(arguments, 1));
|
2770
|
-
});
|
2771
|
-
});
|
2772
|
-
|
2773
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (liftN);
|
2774
|
-
|
2775
|
-
/***/ }),
|
2776
|
-
|
2777
|
-
/***/ 419:
|
2778
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2779
|
-
|
2780
|
-
__webpack_require__.r(__webpack_exports__);
|
2781
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2782
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2783
|
-
/* harmony export */ });
|
2784
|
-
/* harmony import */ var _internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1992);
|
2785
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
2786
|
-
/* harmony import */ var _internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5448);
|
2787
|
-
/* harmony import */ var _internal_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1942);
|
2788
|
-
/* harmony import */ var _internal_xmap_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2859);
|
2789
|
-
/* harmony import */ var _curryN_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7616);
|
2790
|
-
/* harmony import */ var _keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3118);
|
2791
|
-
|
2792
|
-
|
2793
|
-
|
2794
|
-
|
2795
|
-
|
2796
|
-
|
2797
|
-
|
2798
|
-
/**
|
2799
|
-
* Takes a function and
|
2800
|
-
* a [functor](https://github.com/fantasyland/fantasy-land#functor),
|
2801
|
-
* applies the function to each of the functor's values, and returns
|
2802
|
-
* a functor of the same shape.
|
2803
|
-
*
|
2804
|
-
* Ramda provides suitable `map` implementations for `Array` and `Object`,
|
2805
|
-
* so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
|
2806
|
-
*
|
2807
|
-
* Dispatches to the `map` method of the second argument, if present.
|
2808
|
-
*
|
2809
|
-
* Acts as a transducer if a transformer is given in list position.
|
2810
|
-
*
|
2811
|
-
* Also treats functions as functors and will compose them together.
|
2812
|
-
*
|
2813
|
-
* @func
|
2814
|
-
* @memberOf R
|
2815
|
-
* @since v0.1.0
|
2816
|
-
* @category List
|
2817
|
-
* @sig Functor f => (a -> b) -> f a -> f b
|
2818
|
-
* @param {Function} fn The function to be called on every element of the input `list`.
|
2819
|
-
* @param {Array} list The list to be iterated over.
|
2820
|
-
* @return {Array} The new list.
|
2821
|
-
* @see R.transduce, R.addIndex, R.pluck, R.project
|
2822
|
-
* @example
|
2823
|
-
*
|
2824
|
-
* const double = x => x * 2;
|
2825
|
-
*
|
2826
|
-
* R.map(double, [1, 2, 3]); //=> [2, 4, 6]
|
2827
|
-
*
|
2828
|
-
* R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
|
2829
|
-
* @symb R.map(f, [a, b]) = [f(a), f(b)]
|
2830
|
-
* @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
|
2831
|
-
* @symb R.map(f, functor_o) = functor_o.map(f)
|
2832
|
-
*/
|
2833
|
-
|
2834
|
-
var map =
|
2835
|
-
/*#__PURE__*/
|
2836
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
2837
|
-
/*#__PURE__*/
|
2838
|
-
(0,_internal_dispatchable_js__WEBPACK_IMPORTED_MODULE_1__["default"])(['fantasy-land/map', 'map'], _internal_xmap_js__WEBPACK_IMPORTED_MODULE_2__["default"], function map(fn, functor) {
|
2839
|
-
switch (Object.prototype.toString.call(functor)) {
|
2840
|
-
case '[object Function]':
|
2841
|
-
return (0,_curryN_js__WEBPACK_IMPORTED_MODULE_3__["default"])(functor.length, function () {
|
2842
|
-
return fn.call(this, functor.apply(this, arguments));
|
2843
|
-
});
|
2844
|
-
|
2845
|
-
case '[object Object]':
|
2846
|
-
return (0,_internal_arrayReduce_js__WEBPACK_IMPORTED_MODULE_4__["default"])(function (acc, key) {
|
2847
|
-
acc[key] = fn(functor[key]);
|
2848
|
-
return acc;
|
2849
|
-
}, {}, (0,_keys_js__WEBPACK_IMPORTED_MODULE_5__["default"])(functor));
|
2850
|
-
|
2851
|
-
default:
|
2852
|
-
return (0,_internal_map_js__WEBPACK_IMPORTED_MODULE_6__["default"])(fn, functor);
|
2853
|
-
}
|
2854
|
-
}));
|
2855
|
-
|
2856
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (map);
|
2857
|
-
|
2858
|
-
/***/ }),
|
2859
|
-
|
2860
|
-
/***/ 2723:
|
2861
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2862
|
-
|
2863
|
-
__webpack_require__.r(__webpack_exports__);
|
2864
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2865
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2866
|
-
/* harmony export */ });
|
2867
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
2868
|
-
/* harmony import */ var _toString_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9168);
|
2869
|
-
|
2870
|
-
|
2871
|
-
/**
|
2872
|
-
* Returns the larger of its two arguments.
|
2873
|
-
*
|
2874
|
-
* @func
|
2875
|
-
* @memberOf R
|
2876
|
-
* @since v0.1.0
|
2877
|
-
* @category Relation
|
2878
|
-
* @sig Ord a => a -> a -> a
|
2879
|
-
* @param {*} a
|
2880
|
-
* @param {*} b
|
2881
|
-
* @return {*}
|
2882
|
-
* @see R.maxBy, R.min
|
2883
|
-
* @example
|
2884
|
-
*
|
2885
|
-
* R.max(789, 123); //=> 789
|
2886
|
-
* R.max('a', 'b'); //=> 'b'
|
2887
|
-
*/
|
2888
|
-
|
2889
|
-
var max =
|
2890
|
-
/*#__PURE__*/
|
2891
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function max(a, b) {
|
2892
|
-
if (a === b) {
|
2893
|
-
return b;
|
2894
|
-
}
|
2895
|
-
|
2896
|
-
function safeMax(x, y) {
|
2897
|
-
if (x > y !== y > x) {
|
2898
|
-
return y > x ? y : x;
|
2899
|
-
}
|
2900
|
-
|
2901
|
-
return undefined;
|
2902
|
-
}
|
2903
|
-
|
2904
|
-
var maxByValue = safeMax(a, b);
|
2905
|
-
|
2906
|
-
if (maxByValue !== undefined) {
|
2907
|
-
return maxByValue;
|
2908
|
-
}
|
2909
|
-
|
2910
|
-
var maxByType = safeMax(typeof a, typeof b);
|
2911
|
-
|
2912
|
-
if (maxByType !== undefined) {
|
2913
|
-
return maxByType === typeof a ? a : b;
|
2914
|
-
}
|
2915
|
-
|
2916
|
-
var stringA = (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(a);
|
2917
|
-
var maxByStringValue = safeMax(stringA, (0,_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b));
|
2918
|
-
|
2919
|
-
if (maxByStringValue !== undefined) {
|
2920
|
-
return maxByStringValue === stringA ? a : b;
|
2921
|
-
}
|
2922
|
-
|
2923
|
-
return b;
|
2924
|
-
});
|
2925
|
-
|
2926
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (max);
|
2927
|
-
|
2928
|
-
/***/ }),
|
2929
|
-
|
2930
|
-
/***/ 5097:
|
2931
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2932
|
-
|
2933
|
-
__webpack_require__.r(__webpack_exports__);
|
2934
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2935
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2936
|
-
/* harmony export */ });
|
2937
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
2938
|
-
|
2939
|
-
/**
|
2940
|
-
* A function that returns the `!` of its argument. It will return `true` when
|
2941
|
-
* passed false-y value, and `false` when passed a truth-y one.
|
2942
|
-
*
|
2943
|
-
* @func
|
2944
|
-
* @memberOf R
|
2945
|
-
* @since v0.1.0
|
2946
|
-
* @category Logic
|
2947
|
-
* @sig * -> Boolean
|
2948
|
-
* @param {*} a any value
|
2949
|
-
* @return {Boolean} the logical inverse of passed argument.
|
2950
|
-
* @see R.complement
|
2951
|
-
* @example
|
2952
|
-
*
|
2953
|
-
* R.not(true); //=> false
|
2954
|
-
* R.not(false); //=> true
|
2955
|
-
* R.not(0); //=> true
|
2956
|
-
* R.not(1); //=> false
|
2957
|
-
*/
|
2958
|
-
|
2959
|
-
var not =
|
2960
|
-
/*#__PURE__*/
|
2961
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function not(a) {
|
2962
|
-
return !a;
|
2963
|
-
});
|
2964
|
-
|
2965
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (not);
|
2966
|
-
|
2967
|
-
/***/ }),
|
2968
|
-
|
2969
|
-
/***/ 9605:
|
2970
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
2971
|
-
|
2972
|
-
__webpack_require__.r(__webpack_exports__);
|
2973
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
2974
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
2975
|
-
/* harmony export */ });
|
2976
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
2977
|
-
/* harmony import */ var _internal_isString_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7747);
|
2978
|
-
|
2979
|
-
|
2980
|
-
/**
|
2981
|
-
* Returns the nth element of the given list or string. If n is negative the
|
2982
|
-
* element at index length + n is returned.
|
2983
|
-
*
|
2984
|
-
* @func
|
2985
|
-
* @memberOf R
|
2986
|
-
* @since v0.1.0
|
2987
|
-
* @category List
|
2988
|
-
* @sig Number -> [a] -> a | Undefined
|
2989
|
-
* @sig Number -> String -> String
|
2990
|
-
* @param {Number} offset
|
2991
|
-
* @param {*} list
|
2992
|
-
* @return {*}
|
2993
|
-
* @example
|
2994
|
-
*
|
2995
|
-
* const list = ['foo', 'bar', 'baz', 'quux'];
|
2996
|
-
* R.nth(1, list); //=> 'bar'
|
2997
|
-
* R.nth(-1, list); //=> 'quux'
|
2998
|
-
* R.nth(-99, list); //=> undefined
|
2999
|
-
*
|
3000
|
-
* R.nth(2, 'abc'); //=> 'c'
|
3001
|
-
* R.nth(3, 'abc'); //=> ''
|
3002
|
-
* @symb R.nth(-1, [a, b, c]) = c
|
3003
|
-
* @symb R.nth(0, [a, b, c]) = a
|
3004
|
-
* @symb R.nth(1, [a, b, c]) = b
|
3005
|
-
*/
|
3006
|
-
|
3007
|
-
var nth =
|
3008
|
-
/*#__PURE__*/
|
3009
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function nth(offset, list) {
|
3010
|
-
var idx = offset < 0 ? list.length + offset : offset;
|
3011
|
-
return (0,_internal_isString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(list) ? list.charAt(idx) : list[idx];
|
3012
|
-
});
|
3013
|
-
|
3014
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (nth);
|
3015
|
-
|
3016
|
-
/***/ }),
|
3017
|
-
|
3018
|
-
/***/ 4783:
|
3019
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3020
|
-
|
3021
|
-
__webpack_require__.r(__webpack_exports__);
|
3022
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3023
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3024
|
-
/* harmony export */ });
|
3025
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
3026
|
-
|
3027
|
-
/**
|
3028
|
-
* Returns a partial copy of an object omitting the keys specified.
|
3029
|
-
*
|
3030
|
-
* @func
|
3031
|
-
* @memberOf R
|
3032
|
-
* @since v0.1.0
|
3033
|
-
* @category Object
|
3034
|
-
* @sig [String] -> {String: *} -> {String: *}
|
3035
|
-
* @param {Array} names an array of String property names to omit from the new object
|
3036
|
-
* @param {Object} obj The object to copy from
|
3037
|
-
* @return {Object} A new object with properties from `names` not on it.
|
3038
|
-
* @see R.pick
|
3039
|
-
* @example
|
3040
|
-
*
|
3041
|
-
* R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
|
3042
|
-
*/
|
3043
|
-
|
3044
|
-
var omit =
|
3045
|
-
/*#__PURE__*/
|
3046
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function omit(names, obj) {
|
3047
|
-
var result = {};
|
3048
|
-
var index = {};
|
3049
|
-
var idx = 0;
|
3050
|
-
var len = names.length;
|
3051
|
-
|
3052
|
-
while (idx < len) {
|
3053
|
-
index[names[idx]] = 1;
|
3054
|
-
idx += 1;
|
3055
|
-
}
|
3056
|
-
|
3057
|
-
for (var prop in obj) {
|
3058
|
-
if (!index.hasOwnProperty(prop)) {
|
3059
|
-
result[prop] = obj[prop];
|
3060
|
-
}
|
3061
|
-
}
|
3062
|
-
|
3063
|
-
return result;
|
3064
|
-
});
|
3065
|
-
|
3066
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (omit);
|
3067
|
-
|
3068
|
-
/***/ }),
|
3069
|
-
|
3070
|
-
/***/ 9154:
|
3071
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3072
|
-
|
3073
|
-
__webpack_require__.r(__webpack_exports__);
|
3074
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3075
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3076
|
-
/* harmony export */ });
|
3077
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
3078
|
-
/* harmony import */ var _paths_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(393);
|
3079
|
-
|
3080
|
-
|
3081
|
-
/**
|
3082
|
-
* Retrieves the value at a given path. The nodes of the path can be arbitrary strings or non-negative integers.
|
3083
|
-
* For anything else, the value is unspecified. Integer paths are meant to index arrays, strings are meant for objects.
|
3084
|
-
*
|
3085
|
-
* @func
|
3086
|
-
* @memberOf R
|
3087
|
-
* @since v0.2.0
|
3088
|
-
* @category Object
|
3089
|
-
* @typedefn Idx = String | Int | Symbol
|
3090
|
-
* @sig [Idx] -> {a} -> a | Undefined
|
3091
|
-
* @sig Idx = String | NonNegativeInt
|
3092
|
-
* @param {Array} path The path to use.
|
3093
|
-
* @param {Object} obj The object or array to retrieve the nested property from.
|
3094
|
-
* @return {*} The data at `path`.
|
3095
|
-
* @see R.prop, R.nth, R.assocPath, R.dissocPath
|
3096
|
-
* @example
|
3097
|
-
*
|
3098
|
-
* R.path(['a', 'b'], {a: {b: 2}}); //=> 2
|
3099
|
-
* R.path(['a', 'b'], {c: {b: 2}}); //=> undefined
|
3100
|
-
* R.path(['a', 'b', 0], {a: {b: [1, 2, 3]}}); //=> 1
|
3101
|
-
* R.path(['a', 'b', -2], {a: {b: [1, 2, 3]}}); //=> 2
|
3102
|
-
* R.path([2], {'2': 2}); //=> 2
|
3103
|
-
* R.path([-2], {'-2': 'a'}); //=> undefined
|
3104
|
-
*/
|
3105
|
-
|
3106
|
-
var path =
|
3107
|
-
/*#__PURE__*/
|
3108
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function path(pathAr, obj) {
|
3109
|
-
return (0,_paths_js__WEBPACK_IMPORTED_MODULE_1__["default"])([pathAr], obj)[0];
|
3110
|
-
});
|
3111
|
-
|
3112
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (path);
|
3113
|
-
|
3114
|
-
/***/ }),
|
3115
|
-
|
3116
|
-
/***/ 4465:
|
3117
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3118
|
-
|
3119
|
-
__webpack_require__.r(__webpack_exports__);
|
3120
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3121
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3122
|
-
/* harmony export */ });
|
3123
|
-
/* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1924);
|
3124
|
-
/* harmony import */ var _path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9154);
|
3125
|
-
|
3126
|
-
|
3127
|
-
/**
|
3128
|
-
* Returns `true` if the specified object property at given path satisfies the
|
3129
|
-
* given predicate; `false` otherwise.
|
3130
|
-
*
|
3131
|
-
* @func
|
3132
|
-
* @memberOf R
|
3133
|
-
* @since v0.19.0
|
3134
|
-
* @category Logic
|
3135
|
-
* @typedefn Idx = String | Int | Symbol
|
3136
|
-
* @sig (a -> Boolean) -> [Idx] -> {a} -> Boolean
|
3137
|
-
* @param {Function} pred
|
3138
|
-
* @param {Array} propPath
|
3139
|
-
* @param {*} obj
|
3140
|
-
* @return {Boolean}
|
3141
|
-
* @see R.propSatisfies, R.path
|
3142
|
-
* @example
|
3143
|
-
*
|
3144
|
-
* R.pathSatisfies(y => y > 0, ['x', 'y'], {x: {y: 2}}); //=> true
|
3145
|
-
* R.pathSatisfies(R.is(Object), [], {x: {y: 2}}); //=> true
|
3146
|
-
*/
|
3147
|
-
|
3148
|
-
var pathSatisfies =
|
3149
|
-
/*#__PURE__*/
|
3150
|
-
(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function pathSatisfies(pred, propPath, obj) {
|
3151
|
-
return pred((0,_path_js__WEBPACK_IMPORTED_MODULE_1__["default"])(propPath, obj));
|
3152
|
-
});
|
3153
|
-
|
3154
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pathSatisfies);
|
3155
|
-
|
3156
|
-
/***/ }),
|
3157
|
-
|
3158
|
-
/***/ 393:
|
3159
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3160
|
-
|
3161
|
-
__webpack_require__.r(__webpack_exports__);
|
3162
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3163
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3164
|
-
/* harmony export */ });
|
3165
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
3166
|
-
/* harmony import */ var _internal_isInteger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5386);
|
3167
|
-
/* harmony import */ var _nth_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9605);
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
/**
|
3172
|
-
* Retrieves the values at given paths of an object.
|
3173
|
-
*
|
3174
|
-
* @func
|
3175
|
-
* @memberOf R
|
3176
|
-
* @since v0.27.1
|
3177
|
-
* @category Object
|
3178
|
-
* @typedefn Idx = [String | Int | Symbol]
|
3179
|
-
* @sig [Idx] -> {a} -> [a | Undefined]
|
3180
|
-
* @param {Array} pathsArray The array of paths to be fetched.
|
3181
|
-
* @param {Object} obj The object to retrieve the nested properties from.
|
3182
|
-
* @return {Array} A list consisting of values at paths specified by "pathsArray".
|
3183
|
-
* @see R.path
|
3184
|
-
* @example
|
3185
|
-
*
|
3186
|
-
* R.paths([['a', 'b'], ['p', 0, 'q']], {a: {b: 2}, p: [{q: 3}]}); //=> [2, 3]
|
3187
|
-
* R.paths([['a', 'b'], ['p', 'r']], {a: {b: 2}, p: [{q: 3}]}); //=> [2, undefined]
|
3188
|
-
*/
|
3189
|
-
|
3190
|
-
var paths =
|
3191
|
-
/*#__PURE__*/
|
3192
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function paths(pathsArray, obj) {
|
3193
|
-
return pathsArray.map(function (paths) {
|
3194
|
-
var val = obj;
|
3195
|
-
var idx = 0;
|
3196
|
-
var p;
|
3197
|
-
|
3198
|
-
while (idx < paths.length) {
|
3199
|
-
if (val == null) {
|
3200
|
-
return;
|
3201
|
-
}
|
3202
|
-
|
3203
|
-
p = paths[idx];
|
3204
|
-
val = (0,_internal_isInteger_js__WEBPACK_IMPORTED_MODULE_1__["default"])(p) ? (0,_nth_js__WEBPACK_IMPORTED_MODULE_2__["default"])(p, val) : val[p];
|
3205
|
-
idx += 1;
|
3206
|
-
}
|
3207
|
-
|
3208
|
-
return val;
|
3209
|
-
});
|
3210
|
-
});
|
3211
|
-
|
3212
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (paths);
|
3213
|
-
|
3214
|
-
/***/ }),
|
3215
|
-
|
3216
|
-
/***/ 4205:
|
3217
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3218
|
-
|
3219
|
-
__webpack_require__.r(__webpack_exports__);
|
3220
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3221
|
-
/* harmony export */ "default": () => (/* binding */ pipe)
|
3222
|
-
/* harmony export */ });
|
3223
|
-
/* harmony import */ var _internal_arity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6391);
|
3224
|
-
/* harmony import */ var _internal_pipe_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6365);
|
3225
|
-
/* harmony import */ var _reduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5219);
|
3226
|
-
/* harmony import */ var _tail_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9461);
|
3227
|
-
|
3228
|
-
|
3229
|
-
|
3230
|
-
|
3231
|
-
/**
|
3232
|
-
* Performs left-to-right function composition. The first argument may have
|
3233
|
-
* any arity; the remaining arguments must be unary.
|
3234
|
-
*
|
3235
|
-
* In some libraries this function is named `sequence`.
|
3236
|
-
*
|
3237
|
-
* **Note:** The result of pipe is not automatically curried.
|
3238
|
-
*
|
3239
|
-
* @func
|
3240
|
-
* @memberOf R
|
3241
|
-
* @since v0.1.0
|
3242
|
-
* @category Function
|
3243
|
-
* @sig (((a, b, ..., n) -> o), (o -> p), ..., (x -> y), (y -> z)) -> ((a, b, ..., n) -> z)
|
3244
|
-
* @param {...Function} functions
|
3245
|
-
* @return {Function}
|
3246
|
-
* @see R.compose
|
3247
|
-
* @example
|
3248
|
-
*
|
3249
|
-
* const f = R.pipe(Math.pow, R.negate, R.inc);
|
3250
|
-
*
|
3251
|
-
* f(3, 4); // -(3^4) + 1
|
3252
|
-
* @symb R.pipe(f, g, h)(a, b) = h(g(f(a, b)))
|
3253
|
-
* @symb R.pipe(f, g, h)(a)(b) = h(g(f(a)))(b)
|
3254
|
-
*/
|
3255
|
-
|
3256
|
-
function pipe() {
|
3257
|
-
if (arguments.length === 0) {
|
3258
|
-
throw new Error('pipe requires at least one argument');
|
3259
|
-
}
|
3260
|
-
|
3261
|
-
return (0,_internal_arity_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arguments[0].length, (0,_reduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_internal_pipe_js__WEBPACK_IMPORTED_MODULE_2__["default"], arguments[0], (0,_tail_js__WEBPACK_IMPORTED_MODULE_3__["default"])(arguments)));
|
3262
|
-
}
|
3263
|
-
|
3264
|
-
/***/ }),
|
3265
|
-
|
3266
|
-
/***/ 7151:
|
3267
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3268
|
-
|
3269
|
-
__webpack_require__.r(__webpack_exports__);
|
3270
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3271
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3272
|
-
/* harmony export */ });
|
3273
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
3274
|
-
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(419);
|
3275
|
-
/* harmony import */ var _prop_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1818);
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
/**
|
3280
|
-
* Returns a new list by plucking the same named property off all objects in
|
3281
|
-
* the list supplied.
|
3282
|
-
*
|
3283
|
-
* `pluck` will work on
|
3284
|
-
* any [functor](https://github.com/fantasyland/fantasy-land#functor) in
|
3285
|
-
* addition to arrays, as it is equivalent to `R.map(R.prop(k), f)`.
|
3286
|
-
*
|
3287
|
-
* @func
|
3288
|
-
* @memberOf R
|
3289
|
-
* @since v0.1.0
|
3290
|
-
* @category List
|
3291
|
-
* @sig Functor f => k -> f {k: v} -> f v
|
3292
|
-
* @param {Number|String} key The key name to pluck off of each object.
|
3293
|
-
* @param {Array} f The array or functor to consider.
|
3294
|
-
* @return {Array} The list of values for the given key.
|
3295
|
-
* @see R.project, R.prop, R.props
|
3296
|
-
* @example
|
3297
|
-
*
|
3298
|
-
* var getAges = R.pluck('age');
|
3299
|
-
* getAges([{name: 'fred', age: 29}, {name: 'wilma', age: 27}]); //=> [29, 27]
|
3300
|
-
*
|
3301
|
-
* R.pluck(0, [[1, 2], [3, 4]]); //=> [1, 3]
|
3302
|
-
* R.pluck('val', {a: {val: 3}, b: {val: 5}}); //=> {a: 3, b: 5}
|
3303
|
-
* @symb R.pluck('x', [{x: 1, y: 2}, {x: 3, y: 4}, {x: 5, y: 6}]) = [1, 3, 5]
|
3304
|
-
* @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
|
3305
|
-
*/
|
3306
|
-
|
3307
|
-
var pluck =
|
3308
|
-
/*#__PURE__*/
|
3309
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function pluck(p, list) {
|
3310
|
-
return (0,_map_js__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_prop_js__WEBPACK_IMPORTED_MODULE_2__["default"])(p), list);
|
3311
|
-
});
|
3312
|
-
|
3313
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (pluck);
|
3314
|
-
|
3315
|
-
/***/ }),
|
3316
|
-
|
3317
|
-
/***/ 1818:
|
3318
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3319
|
-
|
3320
|
-
__webpack_require__.r(__webpack_exports__);
|
3321
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3322
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3323
|
-
/* harmony export */ });
|
3324
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
3325
|
-
/* harmony import */ var _internal_isInteger_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5386);
|
3326
|
-
/* harmony import */ var _nth_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9605);
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
/**
|
3331
|
-
* Returns a function that when supplied an object returns the indicated
|
3332
|
-
* property of that object, if it exists.
|
3333
|
-
*
|
3334
|
-
* @func
|
3335
|
-
* @memberOf R
|
3336
|
-
* @since v0.1.0
|
3337
|
-
* @category Object
|
3338
|
-
* @typedefn Idx = String | Int | Symbol
|
3339
|
-
* @sig Idx -> {s: a} -> a | Undefined
|
3340
|
-
* @param {String|Number} p The property name or array index
|
3341
|
-
* @param {Object} obj The object to query
|
3342
|
-
* @return {*} The value at `obj.p`.
|
3343
|
-
* @see R.path, R.props, R.pluck, R.project, R.nth
|
3344
|
-
* @example
|
3345
|
-
*
|
3346
|
-
* R.prop('x', {x: 100}); //=> 100
|
3347
|
-
* R.prop('x', {}); //=> undefined
|
3348
|
-
* R.prop(0, [100]); //=> 100
|
3349
|
-
* R.compose(R.inc, R.prop('x'))({ x: 3 }) //=> 4
|
3350
|
-
*/
|
3351
|
-
|
3352
|
-
var prop =
|
3353
|
-
/*#__PURE__*/
|
3354
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function prop(p, obj) {
|
3355
|
-
if (obj == null) {
|
3356
|
-
return;
|
3357
|
-
}
|
3358
|
-
|
3359
|
-
return (0,_internal_isInteger_js__WEBPACK_IMPORTED_MODULE_1__["default"])(p) ? (0,_nth_js__WEBPACK_IMPORTED_MODULE_2__["default"])(p, obj) : obj[p];
|
3360
|
-
});
|
3361
|
-
|
3362
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (prop);
|
3363
|
-
|
3364
|
-
/***/ }),
|
3365
|
-
|
3366
|
-
/***/ 5219:
|
3367
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3368
|
-
|
3369
|
-
__webpack_require__.r(__webpack_exports__);
|
3370
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3371
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3372
|
-
/* harmony export */ });
|
3373
|
-
/* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1924);
|
3374
|
-
/* harmony import */ var _internal_xReduce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3769);
|
3375
|
-
/* harmony import */ var _internal_xwrap_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9582);
|
3376
|
-
|
3377
|
-
|
3378
|
-
|
3379
|
-
/**
|
3380
|
-
* Returns a single item by iterating through the list, successively calling
|
3381
|
-
* the iterator function and passing it an accumulator value and the current
|
3382
|
-
* value from the array, and then passing the result to the next call.
|
3383
|
-
*
|
3384
|
-
* The iterator function receives two values: *(acc, value)*. It may use
|
3385
|
-
* [`R.reduced`](#reduced) to shortcut the iteration.
|
3386
|
-
*
|
3387
|
-
* The arguments' order of [`reduceRight`](#reduceRight)'s iterator function
|
3388
|
-
* is *(value, acc)*.
|
3389
|
-
*
|
3390
|
-
* Note: `R.reduce` does not skip deleted or unassigned indices (sparse
|
3391
|
-
* arrays), unlike the native `Array.prototype.reduce` method. For more details
|
3392
|
-
* on this behavior, see:
|
3393
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce#Description
|
3394
|
-
*
|
3395
|
-
* Be cautious of mutating and returning the accumulator. If you reuse it across
|
3396
|
-
* invocations, it will continue to accumulate onto the same value. The general
|
3397
|
-
* recommendation is to always return a new value. If you can't do so for
|
3398
|
-
* performance reasons, then be sure to reinitialize the accumulator on each
|
3399
|
-
* invocation.
|
3400
|
-
*
|
3401
|
-
* Dispatches to the `reduce` method of the third argument, if present. When
|
3402
|
-
* doing so, it is up to the user to handle the [`R.reduced`](#reduced)
|
3403
|
-
* shortcuting, as this is not implemented by `reduce`.
|
3404
|
-
*
|
3405
|
-
* @func
|
3406
|
-
* @memberOf R
|
3407
|
-
* @since v0.1.0
|
3408
|
-
* @category List
|
3409
|
-
* @sig ((a, b) -> a) -> a -> [b] -> a
|
3410
|
-
* @param {Function} fn The iterator function. Receives two values, the accumulator and the
|
3411
|
-
* current element from the array.
|
3412
|
-
* @param {*} acc The accumulator value.
|
3413
|
-
* @param {Array} list The list to iterate over.
|
3414
|
-
* @return {*} The final, accumulated value.
|
3415
|
-
* @see R.reduced, R.addIndex, R.reduceRight
|
3416
|
-
* @example
|
3417
|
-
*
|
3418
|
-
* R.reduce(R.subtract, 0, [1, 2, 3, 4]) // => ((((0 - 1) - 2) - 3) - 4) = -10
|
3419
|
-
* // - -10
|
3420
|
-
* // / \ / \
|
3421
|
-
* // - 4 -6 4
|
3422
|
-
* // / \ / \
|
3423
|
-
* // - 3 ==> -3 3
|
3424
|
-
* // / \ / \
|
3425
|
-
* // - 2 -1 2
|
3426
|
-
* // / \ / \
|
3427
|
-
* // 0 1 0 1
|
3428
|
-
*
|
3429
|
-
* @symb R.reduce(f, a, [b, c, d]) = f(f(f(a, b), c), d)
|
3430
|
-
*/
|
3431
|
-
|
3432
|
-
var reduce =
|
3433
|
-
/*#__PURE__*/
|
3434
|
-
(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (xf, acc, list) {
|
3435
|
-
return (0,_internal_xReduce_js__WEBPACK_IMPORTED_MODULE_1__["default"])(typeof xf === 'function' ? (0,_internal_xwrap_js__WEBPACK_IMPORTED_MODULE_2__["default"])(xf) : xf, acc, list);
|
3436
|
-
});
|
3437
|
-
|
3438
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reduce);
|
3439
|
-
|
3440
|
-
/***/ }),
|
3441
|
-
|
3442
|
-
/***/ 815:
|
3443
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3444
|
-
|
3445
|
-
__webpack_require__.r(__webpack_exports__);
|
3446
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3447
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3448
|
-
/* harmony export */ });
|
3449
|
-
/* harmony import */ var _internal_complement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8756);
|
3450
|
-
/* harmony import */ var _internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5652);
|
3451
|
-
/* harmony import */ var _filter_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5192);
|
3452
|
-
|
3453
|
-
|
3454
|
-
|
3455
|
-
/**
|
3456
|
-
* The complement of [`filter`](#filter).
|
3457
|
-
*
|
3458
|
-
* Acts as a transducer if a transformer is given in list position. Filterable
|
3459
|
-
* objects include plain objects or any object that has a filter method such
|
3460
|
-
* as `Array`.
|
3461
|
-
*
|
3462
|
-
* @func
|
3463
|
-
* @memberOf R
|
3464
|
-
* @since v0.1.0
|
3465
|
-
* @category List
|
3466
|
-
* @sig Filterable f => (a -> Boolean) -> f a -> f a
|
3467
|
-
* @param {Function} pred
|
3468
|
-
* @param {Array} filterable
|
3469
|
-
* @return {Array}
|
3470
|
-
* @see R.filter, R.transduce, R.addIndex
|
3471
|
-
* @example
|
3472
|
-
*
|
3473
|
-
* const isOdd = (n) => n % 2 !== 0;
|
3474
|
-
*
|
3475
|
-
* R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]
|
3476
|
-
*
|
3477
|
-
* R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
|
3478
|
-
*/
|
3479
|
-
|
3480
|
-
var reject =
|
3481
|
-
/*#__PURE__*/
|
3482
|
-
(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function reject(pred, filterable) {
|
3483
|
-
return (0,_filter_js__WEBPACK_IMPORTED_MODULE_1__["default"])((0,_internal_complement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(pred), filterable);
|
3484
|
-
});
|
3485
|
-
|
3486
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reject);
|
3487
|
-
|
3488
|
-
/***/ }),
|
3489
|
-
|
3490
|
-
/***/ 1814:
|
3491
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3492
|
-
|
3493
|
-
__webpack_require__.r(__webpack_exports__);
|
3494
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3495
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3496
|
-
/* harmony export */ });
|
3497
|
-
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5884);
|
3498
|
-
/* harmony import */ var _internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1924);
|
3499
|
-
|
3500
|
-
|
3501
|
-
/**
|
3502
|
-
* Returns the elements of the given list or string (or object with a `slice`
|
3503
|
-
* method) from `fromIndex` (inclusive) to `toIndex` (exclusive).
|
3504
|
-
*
|
3505
|
-
* Dispatches to the `slice` method of the third argument, if present.
|
3506
|
-
*
|
3507
|
-
* @func
|
3508
|
-
* @memberOf R
|
3509
|
-
* @since v0.1.4
|
3510
|
-
* @category List
|
3511
|
-
* @sig Number -> Number -> [a] -> [a]
|
3512
|
-
* @sig Number -> Number -> String -> String
|
3513
|
-
* @param {Number} fromIndex The start index (inclusive).
|
3514
|
-
* @param {Number} toIndex The end index (exclusive).
|
3515
|
-
* @param {*} list
|
3516
|
-
* @return {*}
|
3517
|
-
* @example
|
3518
|
-
*
|
3519
|
-
* R.slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
3520
|
-
* R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']
|
3521
|
-
* R.slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c']
|
3522
|
-
* R.slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c']
|
3523
|
-
* R.slice(0, 3, 'ramda'); //=> 'ram'
|
3524
|
-
*/
|
3525
|
-
|
3526
|
-
var slice =
|
3527
|
-
/*#__PURE__*/
|
3528
|
-
(0,_internal_curry3_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
3529
|
-
/*#__PURE__*/
|
3530
|
-
(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_1__["default"])('slice', function slice(fromIndex, toIndex, list) {
|
3531
|
-
return Array.prototype.slice.call(list, fromIndex, toIndex);
|
3532
|
-
}));
|
3533
|
-
|
3534
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (slice);
|
3535
|
-
|
3536
|
-
/***/ }),
|
3537
|
-
|
3538
|
-
/***/ 9461:
|
3539
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3540
|
-
|
3541
|
-
__webpack_require__.r(__webpack_exports__);
|
3542
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3543
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3544
|
-
/* harmony export */ });
|
3545
|
-
/* harmony import */ var _internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5884);
|
3546
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
3547
|
-
/* harmony import */ var _slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1814);
|
3548
|
-
|
3549
|
-
|
3550
|
-
|
3551
|
-
/**
|
3552
|
-
* Returns all but the first element of the given list or string (or object
|
3553
|
-
* with a `tail` method).
|
3554
|
-
*
|
3555
|
-
* Dispatches to the `slice` method of the first argument, if present.
|
3556
|
-
*
|
3557
|
-
* @func
|
3558
|
-
* @memberOf R
|
3559
|
-
* @since v0.1.0
|
3560
|
-
* @category List
|
3561
|
-
* @sig [a] -> [a]
|
3562
|
-
* @sig String -> String
|
3563
|
-
* @param {*} list
|
3564
|
-
* @return {*}
|
3565
|
-
* @see R.head, R.init, R.last
|
3566
|
-
* @example
|
3567
|
-
*
|
3568
|
-
* R.tail([1, 2, 3]); //=> [2, 3]
|
3569
|
-
* R.tail([1, 2]); //=> [2]
|
3570
|
-
* R.tail([1]); //=> []
|
3571
|
-
* R.tail([]); //=> []
|
3572
|
-
*
|
3573
|
-
* R.tail('abc'); //=> 'bc'
|
3574
|
-
* R.tail('ab'); //=> 'b'
|
3575
|
-
* R.tail('a'); //=> ''
|
3576
|
-
* R.tail(''); //=> ''
|
3577
|
-
*/
|
3578
|
-
|
3579
|
-
var tail =
|
3580
|
-
/*#__PURE__*/
|
3581
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
3582
|
-
/*#__PURE__*/
|
3583
|
-
(0,_internal_checkForMethod_js__WEBPACK_IMPORTED_MODULE_1__["default"])('tail',
|
3584
|
-
/*#__PURE__*/
|
3585
|
-
(0,_slice_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, Infinity)));
|
3586
|
-
|
3587
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (tail);
|
3588
|
-
|
3589
|
-
/***/ }),
|
3590
|
-
|
3591
|
-
/***/ 9168:
|
3592
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3593
|
-
|
3594
|
-
__webpack_require__.r(__webpack_exports__);
|
3595
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3596
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3597
|
-
/* harmony export */ });
|
3598
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
3599
|
-
/* harmony import */ var _internal_toString_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7611);
|
3600
|
-
|
3601
|
-
|
3602
|
-
/**
|
3603
|
-
* Returns the string representation of the given value. `eval`'ing the output
|
3604
|
-
* should result in a value equivalent to the input value. Many of the built-in
|
3605
|
-
* `toString` methods do not satisfy this requirement.
|
3606
|
-
*
|
3607
|
-
* If the given value is an `[object Object]` with a `toString` method other
|
3608
|
-
* than `Object.prototype.toString`, this method is invoked with no arguments
|
3609
|
-
* to produce the return value. This means user-defined constructor functions
|
3610
|
-
* can provide a suitable `toString` method. For example:
|
3611
|
-
*
|
3612
|
-
* function Point(x, y) {
|
3613
|
-
* this.x = x;
|
3614
|
-
* this.y = y;
|
3615
|
-
* }
|
3616
|
-
*
|
3617
|
-
* Point.prototype.toString = function() {
|
3618
|
-
* return 'new Point(' + this.x + ', ' + this.y + ')';
|
3619
|
-
* };
|
3620
|
-
*
|
3621
|
-
* R.toString(new Point(1, 2)); //=> 'new Point(1, 2)'
|
3622
|
-
*
|
3623
|
-
* @func
|
3624
|
-
* @memberOf R
|
3625
|
-
* @since v0.14.0
|
3626
|
-
* @category String
|
3627
|
-
* @sig * -> String
|
3628
|
-
* @param {*} val
|
3629
|
-
* @return {String}
|
3630
|
-
* @example
|
3631
|
-
*
|
3632
|
-
* R.toString(42); //=> '42'
|
3633
|
-
* R.toString('abc'); //=> '"abc"'
|
3634
|
-
* R.toString([1, 2, 3]); //=> '[1, 2, 3]'
|
3635
|
-
* R.toString({foo: 1, bar: 2, baz: 3}); //=> '{"bar": 2, "baz": 3, "foo": 1}'
|
3636
|
-
* R.toString(new Date('2001-02-03T04:05:06Z')); //=> 'new Date("2001-02-03T04:05:06.000Z")'
|
3637
|
-
*/
|
3638
|
-
|
3639
|
-
var toString =
|
3640
|
-
/*#__PURE__*/
|
3641
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function toString(val) {
|
3642
|
-
return (0,_internal_toString_js__WEBPACK_IMPORTED_MODULE_1__["default"])(val, []);
|
3643
|
-
});
|
3644
|
-
|
3645
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (toString);
|
3646
|
-
|
3647
|
-
/***/ }),
|
3648
|
-
|
3649
|
-
/***/ 2406:
|
3650
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
3651
|
-
|
3652
|
-
__webpack_require__.r(__webpack_exports__);
|
3653
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
3654
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
3655
|
-
/* harmony export */ });
|
3656
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9757);
|
3657
|
-
|
3658
|
-
/**
|
3659
|
-
* Gives a single-word string description of the (native) type of a value,
|
3660
|
-
* returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
|
3661
|
-
* attempt to distinguish user Object types any further, reporting them all as
|
3662
|
-
* 'Object'.
|
3663
|
-
*
|
3664
|
-
* @func
|
3665
|
-
* @memberOf R
|
3666
|
-
* @since v0.8.0
|
3667
|
-
* @category Type
|
3668
|
-
* @sig * -> String
|
3669
|
-
* @param {*} val The value to test
|
3670
|
-
* @return {String}
|
3671
|
-
* @example
|
3672
|
-
*
|
3673
|
-
* R.type({}); //=> "Object"
|
3674
|
-
* R.type(1); //=> "Number"
|
3675
|
-
* R.type(false); //=> "Boolean"
|
3676
|
-
* R.type('s'); //=> "String"
|
3677
|
-
* R.type(null); //=> "Null"
|
3678
|
-
* R.type([]); //=> "Array"
|
3679
|
-
* R.type(/[A-z]/); //=> "RegExp"
|
3680
|
-
* R.type(() => {}); //=> "Function"
|
3681
|
-
* R.type(async () => {}); //=> "AsyncFunction"
|
3682
|
-
* R.type(undefined); //=> "Undefined"
|
3683
|
-
*/
|
3684
|
-
|
3685
|
-
var type =
|
3686
|
-
/*#__PURE__*/
|
3687
|
-
(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function type(val) {
|
3688
|
-
return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
|
3689
|
-
});
|
3690
|
-
|
3691
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (type);
|
3692
|
-
|
3693
150
|
/***/ })
|
3694
151
|
|
3695
152
|
/******/ });
|
@@ -3759,11 +216,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
3759
216
|
/* harmony export */ NotImplementedError: () => (/* reexport safe */ _NotImplementedError__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
3760
217
|
/* harmony export */ UnsupportedOperationError: () => (/* reexport safe */ _UnsupportedOperationError__WEBPACK_IMPORTED_MODULE_3__["default"])
|
3761
218
|
/* harmony export */ });
|
3762
|
-
/* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
3763
|
-
/* harmony import */ var _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
3764
|
-
/* harmony import */ var _ApiDOMStructuredError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
219
|
+
/* harmony import */ var _ApiDOMError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(784);
|
220
|
+
/* harmony import */ var _ApiDOMAggregateError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(314);
|
221
|
+
/* harmony import */ var _ApiDOMStructuredError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72);
|
3765
222
|
/* harmony import */ var _UnsupportedOperationError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(244);
|
3766
|
-
/* harmony import */ var _NotImplementedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
223
|
+
/* harmony import */ var _NotImplementedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4);
|
3767
224
|
// base error classes
|
3768
225
|
|
3769
226
|
|