-
-
Notifications
You must be signed in to change notification settings - Fork 319
/
collect.js
1649 lines (1258 loc) 路 151 KB
/
collect.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
var collect =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ }
/******/ };
/******/
/******/ // define __esModule on exports
/******/ __webpack_require__.r = function(exports) {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/
/******/ // create a fake namespace object
/******/ // mode & 1: value is a module id, require it
/******/ // mode & 2: merge all properties of value into the ns
/******/ // mode & 4: return value when already ns object
/******/ // mode & 8|1: behave like require
/******/ __webpack_require__.t = function(value, mode) {
/******/ if(mode & 1) value = __webpack_require__(value);
/******/ if(mode & 8) return value;
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ var ns = Object.create(null);
/******/ __webpack_require__.r(ns);
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ return ns;
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = "./dist/index.js");
/******/ })
/************************************************************************/
/******/ ({
/***/ "./dist/helpers/clone.js":
/*!*******************************!*\
!*** ./dist/helpers/clone.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n/**\n * Clone helper\n *\n * Clone an array or object\n *\n * @param items\n * @returns {*}\n */\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function clone(items) {\n var cloned;\n\n if (Array.isArray(items)) {\n var _cloned;\n\n cloned = [];\n\n (_cloned = cloned).push.apply(_cloned, _toConsumableArray(items));\n } else {\n cloned = {};\n Object.keys(items).forEach(function (prop) {\n cloned[prop] = items[prop];\n });\n }\n\n return cloned;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/clone.js?");
/***/ }),
/***/ "./dist/helpers/deleteKeys.js":
/*!************************************!*\
!*** ./dist/helpers/deleteKeys.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar variadic = __webpack_require__(/*! ./variadic */ \"./dist/helpers/variadic.js\");\n/**\n * Delete keys helper\n *\n * Delete one or multiple keys from an object\n *\n * @param obj\n * @param keys\n * @returns {void}\n */\n\n\nmodule.exports = function deleteKeys(obj) {\n for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n keys[_key - 1] = arguments[_key];\n }\n\n variadic(keys).forEach(function (key) {\n // eslint-disable-next-line\n delete obj[key];\n });\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/deleteKeys.js?");
/***/ }),
/***/ "./dist/helpers/is.js":
/*!****************************!*\
!*** ./dist/helpers/is.js ***!
\****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nmodule.exports = {\n /**\n * @returns {boolean}\n */\n isArray: function isArray(item) {\n return Array.isArray(item);\n },\n\n /**\n * @returns {boolean}\n */\n isObject: function isObject(item) {\n return _typeof(item) === 'object' && Array.isArray(item) === false && item !== null;\n },\n\n /**\n * @returns {boolean}\n */\n isFunction: function isFunction(item) {\n return typeof item === 'function';\n }\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/is.js?");
/***/ }),
/***/ "./dist/helpers/nestedValue.js":
/*!*************************************!*\
!*** ./dist/helpers/nestedValue.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n/**\n * Get value of a nested property\n *\n * @param mainObject\n * @param key\n * @returns {*}\n */\n\nmodule.exports = function nestedValue(mainObject, key) {\n try {\n return key.split('.').reduce(function (obj, property) {\n return obj[property];\n }, mainObject);\n } catch (err) {\n // If we end up here, we're not working with an object, and @var mainObject is the value itself\n return mainObject;\n }\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/nestedValue.js?");
/***/ }),
/***/ "./dist/helpers/values.js":
/*!********************************!*\
!*** ./dist/helpers/values.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n/**\n * Values helper\n *\n * Retrieve values from [this.items] when it is an array, object or Collection\n *\n * @param items\n * @returns {*}\n */\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function values(items) {\n var valuesArray = [];\n\n if (Array.isArray(items)) {\n valuesArray.push.apply(valuesArray, _toConsumableArray(items));\n } else if (items.constructor.name === 'Collection') {\n valuesArray.push.apply(valuesArray, _toConsumableArray(items.all()));\n } else {\n Object.keys(items).forEach(function (prop) {\n return valuesArray.push(items[prop]);\n });\n }\n\n return valuesArray;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/values.js?");
/***/ }),
/***/ "./dist/helpers/variadic.js":
/*!**********************************!*\
!*** ./dist/helpers/variadic.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n/**\n * Variadic helper function\n *\n * @param args\n * @returns {Array}\n */\n\nmodule.exports = function variadic(args) {\n if (Array.isArray(args[0])) {\n return args[0];\n }\n\n return args;\n};\n\n//# sourceURL=webpack://collect/./dist/helpers/variadic.js?");
/***/ }),
/***/ "./dist/index.js":
/*!***********************!*\
!*** ./dist/index.js ***!
\***********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nfunction Collection(collection) {\n if (collection !== undefined && !Array.isArray(collection) && _typeof(collection) !== 'object') {\n this.items = [collection];\n } else if (collection instanceof this.constructor) {\n this.items = collection.all();\n } else {\n this.items = collection || [];\n }\n}\n/**\n * Symbol.iterator\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/iterator\n */\n\n\nvar SymbolIterator = __webpack_require__(/*! ./methods/symbol.iterator */ \"./dist/methods/symbol.iterator.js\");\n\nif (typeof Symbol !== 'undefined') {\n Collection.prototype[Symbol.iterator] = SymbolIterator;\n}\n/**\n * Support JSON.stringify\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify\n */\n\n\nCollection.prototype.toJSON = function toJSON() {\n return this.items;\n};\n\nCollection.prototype.all = __webpack_require__(/*! ./methods/all */ \"./dist/methods/all.js\");\nCollection.prototype.average = __webpack_require__(/*! ./methods/average */ \"./dist/methods/average.js\");\nCollection.prototype.avg = __webpack_require__(/*! ./methods/avg */ \"./dist/methods/avg.js\");\nCollection.prototype.chunk = __webpack_require__(/*! ./methods/chunk */ \"./dist/methods/chunk.js\");\nCollection.prototype.collapse = __webpack_require__(/*! ./methods/collapse */ \"./dist/methods/collapse.js\");\nCollection.prototype.combine = __webpack_require__(/*! ./methods/combine */ \"./dist/methods/combine.js\");\nCollection.prototype.concat = __webpack_require__(/*! ./methods/concat */ \"./dist/methods/concat.js\");\nCollection.prototype.contains = __webpack_require__(/*! ./methods/contains */ \"./dist/methods/contains.js\");\nCollection.prototype.containsOneItem = __webpack_require__(/*! ./methods/containsOneItem */ \"./dist/methods/containsOneItem.js\");\nCollection.prototype.count = __webpack_require__(/*! ./methods/count */ \"./dist/methods/count.js\");\nCollection.prototype.countBy = __webpack_require__(/*! ./methods/countBy */ \"./dist/methods/countBy.js\");\nCollection.prototype.crossJoin = __webpack_require__(/*! ./methods/crossJoin */ \"./dist/methods/crossJoin.js\");\nCollection.prototype.dd = __webpack_require__(/*! ./methods/dd */ \"./dist/methods/dd.js\");\nCollection.prototype.diff = __webpack_require__(/*! ./methods/diff */ \"./dist/methods/diff.js\");\nCollection.prototype.diffAssoc = __webpack_require__(/*! ./methods/diffAssoc */ \"./dist/methods/diffAssoc.js\");\nCollection.prototype.diffKeys = __webpack_require__(/*! ./methods/diffKeys */ \"./dist/methods/diffKeys.js\");\nCollection.prototype.diffUsing = __webpack_require__(/*! ./methods/diffUsing */ \"./dist/methods/diffUsing.js\");\nCollection.prototype.doesntContain = __webpack_require__(/*! ./methods/doesntContain */ \"./dist/methods/doesntContain.js\");\nCollection.prototype.dump = __webpack_require__(/*! ./methods/dump */ \"./dist/methods/dump.js\");\nCollection.prototype.duplicates = __webpack_require__(/*! ./methods/duplicates */ \"./dist/methods/duplicates.js\");\nCollection.prototype.each = __webpack_require__(/*! ./methods/each */ \"./dist/methods/each.js\");\nCollection.prototype.eachSpread = __webpack_require__(/*! ./methods/eachSpread */ \"./dist/methods/eachSpread.js\");\nCollection.prototype.every = __webpack_require__(/*! ./methods/every */ \"./dist/methods/every.js\");\nCollection.prototype.except = __webpack_require__(/*! ./methods/except */ \"./dist/methods/except.js\");\nCollection.prototype.filter = __webpack_require__(/*! ./methods/filter */ \"./dist/methods/filter.js\");\nCollection.prototype.first = __webpack_require__(/*! ./methods/first */ \"./dist/methods/first.js\");\nCollection.prototype.firstOrFail = __webpack_require__(/*! ./methods/firstOrFail */ \"./dist/methods/firstOrFail.js\");\nCollection.prototype.firstWhere = __webpack_require__(/*! ./methods/firstWhere */ \"./dist/methods/firstWhere.js\");\nCollection.prototype.flatMap = __webpack_require__(/*! ./methods/flatMap */ \"./dist/methods/flatMap.js\");\nCollection.prototype.flatten = __webpack_require__(/*! ./methods/flatten */ \"./dist/methods/flatten.js\");\nCollection.prototype.flip = __webpack_require__(/*! ./methods/flip */ \"./dist/methods/flip.js\");\nCollection.prototype.forPage = __webpack_require__(/*! ./methods/forPage */ \"./dist/methods/forPage.js\");\nCollection.prototype.forget = __webpack_require__(/*! ./methods/forget */ \"./dist/methods/forget.js\");\nCollection.prototype.get = __webpack_require__(/*! ./methods/get */ \"./dist/methods/get.js\");\nCollection.prototype.groupBy = __webpack_require__(/*! ./methods/groupBy */ \"./dist/methods/groupBy.js\");\nCollection.prototype.has = __webpack_require__(/*! ./methods/has */ \"./dist/methods/has.js\");\nCollection.prototype.implode = __webpack_require__(/*! ./methods/implode */ \"./dist/methods/implode.js\");\nCollection.prototype.intersect = __webpack_require__(/*! ./methods/intersect */ \"./dist/methods/intersect.js\");\nCollection.prototype.intersectByKeys = __webpack_require__(/*! ./methods/intersectByKeys */ \"./dist/methods/intersectByKeys.js\");\nCollection.prototype.isEmpty = __webpack_require__(/*! ./methods/isEmpty */ \"./dist/methods/isEmpty.js\");\nCollection.prototype.isNotEmpty = __webpack_require__(/*! ./methods/isNotEmpty */ \"./dist/methods/isNotEmpty.js\");\nCollection.prototype.join = __webpack_require__(/*! ./methods/join */ \"./dist/methods/join.js\");\nCollection.prototype.keyBy = __webpack_require__(/*! ./methods/keyBy */ \"./dist/methods/keyBy.js\");\nCollection.prototype.keys = __webpack_require__(/*! ./methods/keys */ \"./dist/methods/keys.js\");\nCollection.prototype.last = __webpack_require__(/*! ./methods/last */ \"./dist/methods/last.js\");\nCollection.prototype.macro = __webpack_require__(/*! ./methods/macro */ \"./dist/methods/macro.js\");\nCollection.prototype.make = __webpack_require__(/*! ./methods/make */ \"./dist/methods/make.js\");\nCollection.prototype.map = __webpack_require__(/*! ./methods/map */ \"./dist/methods/map.js\");\nCollection.prototype.mapSpread = __webpack_require__(/*! ./methods/mapSpread */ \"./dist/methods/mapSpread.js\");\nCollection.prototype.mapToDictionary = __webpack_require__(/*! ./methods/mapToDictionary */ \"./dist/methods/mapToDictionary.js\");\nCollection.prototype.mapInto = __webpack_require__(/*! ./methods/mapInto */ \"./dist/methods/mapInto.js\");\nCollection.prototype.mapToGroups = __webpack_require__(/*! ./methods/mapToGroups */ \"./dist/methods/mapToGroups.js\");\nCollection.prototype.mapWithKeys = __webpack_require__(/*! ./methods/mapWithKeys */ \"./dist/methods/mapWithKeys.js\");\nCollection.prototype.max = __webpack_require__(/*! ./methods/max */ \"./dist/methods/max.js\");\nCollection.prototype.median = __webpack_require__(/*! ./methods/median */ \"./dist/methods/median.js\");\nCollection.prototype.merge = __webpack_require__(/*! ./methods/merge */ \"./dist/methods/merge.js\");\nCollection.prototype.mergeRecursive = __webpack_require__(/*! ./methods/mergeRecursive */ \"./dist/methods/mergeRecursive.js\");\nCollection.prototype.min = __webpack_require__(/*! ./methods/min */ \"./dist/methods/min.js\");\nCollection.prototype.mode = __webpack_require__(/*! ./methods/mode */ \"./dist/methods/mode.js\");\nCollection.prototype.nth = __webpack_require__(/*! ./methods/nth */ \"./dist/methods/nth.js\");\nCollection.prototype.only = __webpack_require__(/*! ./methods/only */ \"./dist/methods/only.js\");\nCollection.prototype.pad = __webpack_require__(/*! ./methods/pad */ \"./dist/methods/pad.js\");\nCollection.prototype.partition = __webpack_require__(/*! ./methods/partition */ \"./dist/methods/partition.js\");\nCollection.prototype.pipe = __webpack_require__(/*! ./methods/pipe */ \"./dist/methods/pipe.js\");\nCollection.prototype.pluck = __webpack_require__(/*! ./methods/pluck */ \"./dist/methods/pluck.js\");\nCollection.prototype.pop = __webpack_require__(/*! ./methods/pop */ \"./dist/methods/pop.js\");\nCollection.prototype.prepend = __webpack_require__(/*! ./methods/prepend */ \"./dist/methods/prepend.js\");\nCollection.prototype.pull = __webpack_require__(/*! ./methods/pull */ \"./dist/methods/pull.js\");\nCollection.prototype.push = __webpack_require__(/*! ./methods/push */ \"./dist/methods/push.js\");\nCollection.prototype.put = __webpack_require__(/*! ./methods/put */ \"./dist/methods/put.js\");\nCollection.prototype.random = __webpack_require__(/*! ./methods/random */ \"./dist/methods/random.js\");\nCollection.prototype.reduce = __webpack_require__(/*! ./methods/reduce */ \"./dist/methods/reduce.js\");\nCollection.prototype.reject = __webpack_require__(/*! ./methods/reject */ \"./dist/methods/reject.js\");\nCollection.prototype.replace = __webpack_require__(/*! ./methods/replace */ \"./dist/methods/replace.js\");\nCollection.prototype.replaceRecursive = __webpack_require__(/*! ./methods/replaceRecursive */ \"./dist/methods/replaceRecursive.js\");\nCollection.prototype.reverse = __webpack_require__(/*! ./methods/reverse */ \"./dist/methods/reverse.js\");\nCollection.prototype.search = __webpack_require__(/*! ./methods/search */ \"./dist/methods/search.js\");\nCollection.prototype.shift = __webpack_require__(/*! ./methods/shift */ \"./dist/methods/shift.js\");\nCollection.prototype.shuffle = __webpack_require__(/*! ./methods/shuffle */ \"./dist/methods/shuffle.js\");\nCollection.prototype.skip = __webpack_require__(/*! ./methods/skip */ \"./dist/methods/skip.js\");\nCollection.prototype.skipUntil = __webpack_require__(/*! ./methods/skipUntil */ \"./dist/methods/skipUntil.js\");\nCollection.prototype.skipWhile = __webpack_require__(/*! ./methods/skipWhile */ \"./dist/methods/skipWhile.js\");\nCollection.prototype.slice = __webpack_require__(/*! ./methods/slice */ \"./dist/methods/slice.js\");\nCollection.prototype.sole = __webpack_require__(/*! ./methods/sole */ \"./dist/methods/sole.js\");\nCollection.prototype.some = __webpack_require__(/*! ./methods/some */ \"./dist/methods/some.js\");\nCollection.prototype.sort = __webpack_require__(/*! ./methods/sort */ \"./dist/methods/sort.js\");\nCollection.prototype.sortDesc = __webpack_require__(/*! ./methods/sortDesc */ \"./dist/methods/sortDesc.js\");\nCollection.prototype.sortBy = __webpack_require__(/*! ./methods/sortBy */ \"./dist/methods/sortBy.js\");\nCollection.prototype.sortByDesc = __webpack_require__(/*! ./methods/sortByDesc */ \"./dist/methods/sortByDesc.js\");\nCollection.prototype.sortKeys = __webpack_require__(/*! ./methods/sortKeys */ \"./dist/methods/sortKeys.js\");\nCollection.prototype.sortKeysDesc = __webpack_require__(/*! ./methods/sortKeysDesc */ \"./dist/methods/sortKeysDesc.js\");\nCollection.prototype.splice = __webpack_require__(/*! ./methods/splice */ \"./dist/methods/splice.js\");\nCollection.prototype.split = __webpack_require__(/*! ./methods/split */ \"./dist/methods/split.js\");\nCollection.prototype.sum = __webpack_require__(/*! ./methods/sum */ \"./dist/methods/sum.js\");\nCollection.prototype.take = __webpack_require__(/*! ./methods/take */ \"./dist/methods/take.js\");\nCollection.prototype.takeUntil = __webpack_require__(/*! ./methods/takeUntil */ \"./dist/methods/takeUntil.js\");\nCollection.prototype.takeWhile = __webpack_require__(/*! ./methods/takeWhile */ \"./dist/methods/takeWhile.js\");\nCollection.prototype.tap = __webpack_require__(/*! ./methods/tap */ \"./dist/methods/tap.js\");\nCollection.prototype.times = __webpack_require__(/*! ./methods/times */ \"./dist/methods/times.js\");\nCollection.prototype.toArray = __webpack_require__(/*! ./methods/toArray */ \"./dist/methods/toArray.js\");\nCollection.prototype.toJson = __webpack_require__(/*! ./methods/toJson */ \"./dist/methods/toJson.js\");\nCollection.prototype.transform = __webpack_require__(/*! ./methods/transform */ \"./dist/methods/transform.js\");\nCollection.prototype.undot = __webpack_require__(/*! ./methods/undot */ \"./dist/methods/undot.js\");\nCollection.prototype.unless = __webpack_require__(/*! ./methods/unless */ \"./dist/methods/unless.js\");\nCollection.prototype.unlessEmpty = __webpack_require__(/*! ./methods/whenNotEmpty */ \"./dist/methods/whenNotEmpty.js\");\nCollection.prototype.unlessNotEmpty = __webpack_require__(/*! ./methods/whenEmpty */ \"./dist/methods/whenEmpty.js\");\nCollection.prototype.union = __webpack_require__(/*! ./methods/union */ \"./dist/methods/union.js\");\nCollection.prototype.unique = __webpack_require__(/*! ./methods/unique */ \"./dist/methods/unique.js\");\nCollection.prototype.unwrap = __webpack_require__(/*! ./methods/unwrap */ \"./dist/methods/unwrap.js\");\nCollection.prototype.values = __webpack_require__(/*! ./methods/values */ \"./dist/methods/values.js\");\nCollection.prototype.when = __webpack_require__(/*! ./methods/when */ \"./dist/methods/when.js\");\nCollection.prototype.whenEmpty = __webpack_require__(/*! ./methods/whenEmpty */ \"./dist/methods/whenEmpty.js\");\nCollection.prototype.whenNotEmpty = __webpack_require__(/*! ./methods/whenNotEmpty */ \"./dist/methods/whenNotEmpty.js\");\nCollection.prototype.where = __webpack_require__(/*! ./methods/where */ \"./dist/methods/where.js\");\nCollection.prototype.whereBetween = __webpack_require__(/*! ./methods/whereBetween */ \"./dist/methods/whereBetween.js\");\nCollection.prototype.whereIn = __webpack_require__(/*! ./methods/whereIn */ \"./dist/methods/whereIn.js\");\nCollection.prototype.whereInstanceOf = __webpack_require__(/*! ./methods/whereInstanceOf */ \"./dist/methods/whereInstanceOf.js\");\nCollection.prototype.whereNotBetween = __webpack_require__(/*! ./methods/whereNotBetween */ \"./dist/methods/whereNotBetween.js\");\nCollection.prototype.whereNotIn = __webpack_require__(/*! ./methods/whereNotIn */ \"./dist/methods/whereNotIn.js\");\nCollection.prototype.whereNull = __webpack_require__(/*! ./methods/whereNull */ \"./dist/methods/whereNull.js\");\nCollection.prototype.whereNotNull = __webpack_require__(/*! ./methods/whereNotNull */ \"./dist/methods/whereNotNull.js\");\nCollection.prototype.wrap = __webpack_require__(/*! ./methods/wrap */ \"./dist/methods/wrap.js\");\nCollection.prototype.zip = __webpack_require__(/*! ./methods/zip */ \"./dist/methods/zip.js\");\n\nvar collect = function collect(collection) {\n return new Collection(collection);\n};\n\nmodule.exports = collect;\nmodule.exports.collect = collect;\nmodule.exports[\"default\"] = collect;\nmodule.exports.Collection = Collection;\n\n//# sourceURL=webpack://collect/./dist/index.js?");
/***/ }),
/***/ "./dist/methods/all.js":
/*!*****************************!*\
!*** ./dist/methods/all.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function all() {\n return this.items;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/all.js?");
/***/ }),
/***/ "./dist/methods/average.js":
/*!*********************************!*\
!*** ./dist/methods/average.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function average(key) {\n if (key === undefined) {\n return this.sum() / this.items.length;\n }\n\n if (isFunction(key)) {\n return new this.constructor(this.items).sum(key) / this.items.length;\n }\n\n return new this.constructor(this.items).pluck(key).sum() / this.items.length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/average.js?");
/***/ }),
/***/ "./dist/methods/avg.js":
/*!*****************************!*\
!*** ./dist/methods/avg.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar average = __webpack_require__(/*! ./average */ \"./dist/methods/average.js\");\n\nmodule.exports = average;\n\n//# sourceURL=webpack://collect/./dist/methods/avg.js?");
/***/ }),
/***/ "./dist/methods/chunk.js":
/*!*******************************!*\
!*** ./dist/methods/chunk.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nmodule.exports = function chunk(size) {\n var _this = this;\n\n var chunks = [];\n var index = 0;\n\n if (Array.isArray(this.items)) {\n do {\n var items = this.items.slice(index, index + size);\n var collection = new this.constructor(items);\n chunks.push(collection);\n index += size;\n } while (index < this.items.length);\n } else if (_typeof(this.items) === 'object') {\n var keys = Object.keys(this.items);\n\n var _loop = function _loop() {\n var keysOfChunk = keys.slice(index, index + size);\n var collection = new _this.constructor({});\n keysOfChunk.forEach(function (key) {\n return collection.put(key, _this.items[key]);\n });\n chunks.push(collection);\n index += size;\n };\n\n do {\n _loop();\n } while (index < keys.length);\n } else {\n chunks.push(new this.constructor([this.items]));\n }\n\n return new this.constructor(chunks);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/chunk.js?");
/***/ }),
/***/ "./dist/methods/collapse.js":
/*!**********************************!*\
!*** ./dist/methods/collapse.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function collapse() {\n var _ref;\n\n return new this.constructor((_ref = []).concat.apply(_ref, _toConsumableArray(this.items)));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/collapse.js?");
/***/ }),
/***/ "./dist/methods/combine.js":
/*!*********************************!*\
!*** ./dist/methods/combine.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _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); }\n\nmodule.exports = function combine(array) {\n var _this = this;\n\n var values = array;\n\n if (values instanceof this.constructor) {\n values = array.all();\n }\n\n var collection = {};\n\n if (Array.isArray(this.items) && Array.isArray(values)) {\n this.items.forEach(function (key, iterator) {\n collection[key] = values[iterator];\n });\n } else if (_typeof(this.items) === 'object' && _typeof(values) === 'object') {\n Object.keys(this.items).forEach(function (key, index) {\n collection[_this.items[key]] = values[Object.keys(values)[index]];\n });\n } else if (Array.isArray(this.items)) {\n collection[this.items[0]] = values;\n } else if (typeof this.items === 'string' && Array.isArray(values)) {\n var _values = values;\n\n var _values2 = _slicedToArray(_values, 1);\n\n collection[this.items] = _values2[0];\n } else if (typeof this.items === 'string') {\n collection[this.items] = values;\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/combine.js?");
/***/ }),
/***/ "./dist/methods/concat.js":
/*!********************************!*\
!*** ./dist/methods/concat.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nvar clone = __webpack_require__(/*! ../helpers/clone */ \"./dist/helpers/clone.js\");\n\nmodule.exports = function concat(collectionOrArrayOrObject) {\n var list = collectionOrArrayOrObject;\n\n if (collectionOrArrayOrObject instanceof this.constructor) {\n list = collectionOrArrayOrObject.all();\n } else if (_typeof(collectionOrArrayOrObject) === 'object') {\n list = [];\n Object.keys(collectionOrArrayOrObject).forEach(function (property) {\n list.push(collectionOrArrayOrObject[property]);\n });\n }\n\n var collection = clone(this.items);\n list.forEach(function (item) {\n if (_typeof(item) === 'object') {\n Object.keys(item).forEach(function (key) {\n return collection.push(item[key]);\n });\n } else {\n collection.push(item);\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/concat.js?");
/***/ }),
/***/ "./dist/methods/contains.js":
/*!**********************************!*\
!*** ./dist/methods/contains.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function contains(key, value) {\n if (value !== undefined) {\n if (Array.isArray(this.items)) {\n return this.items.filter(function (items) {\n return items[key] !== undefined && items[key] === value;\n }).length > 0;\n }\n\n return this.items[key] !== undefined && this.items[key] === value;\n }\n\n if (isFunction(key)) {\n return this.items.filter(function (item, index) {\n return key(item, index);\n }).length > 0;\n }\n\n if (Array.isArray(this.items)) {\n return this.items.indexOf(key) !== -1;\n }\n\n var keysAndValues = values(this.items);\n keysAndValues.push.apply(keysAndValues, _toConsumableArray(Object.keys(this.items)));\n return keysAndValues.indexOf(key) !== -1;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/contains.js?");
/***/ }),
/***/ "./dist/methods/containsOneItem.js":
/*!*****************************************!*\
!*** ./dist/methods/containsOneItem.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function containsOneItem() {\n return this.count() === 1;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/containsOneItem.js?");
/***/ }),
/***/ "./dist/methods/count.js":
/*!*******************************!*\
!*** ./dist/methods/count.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function count() {\n var arrayLength = 0;\n\n if (Array.isArray(this.items)) {\n arrayLength = this.items.length;\n }\n\n return Math.max(Object.keys(this.items).length, arrayLength);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/count.js?");
/***/ }),
/***/ "./dist/methods/countBy.js":
/*!*********************************!*\
!*** ./dist/methods/countBy.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function countBy() {\n var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function (value) {\n return value;\n };\n return new this.constructor(this.items).groupBy(fn).map(function (value) {\n return value.count();\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/countBy.js?");
/***/ }),
/***/ "./dist/methods/crossJoin.js":
/*!***********************************!*\
!*** ./dist/methods/crossJoin.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function crossJoin() {\n function join(collection, constructor, args) {\n var current = args[0];\n\n if (current instanceof constructor) {\n current = current.all();\n }\n\n var rest = args.slice(1);\n var last = !rest.length;\n var result = [];\n\n for (var i = 0; i < current.length; i += 1) {\n var collectionCopy = collection.slice();\n collectionCopy.push(current[i]);\n\n if (last) {\n result.push(collectionCopy);\n } else {\n result = result.concat(join(collectionCopy, constructor, rest));\n }\n }\n\n return result;\n }\n\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return new this.constructor(join([], this.constructor, [].concat([this.items], values)));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/crossJoin.js?");
/***/ }),
/***/ "./dist/methods/dd.js":
/*!****************************!*\
!*** ./dist/methods/dd.js ***!
\****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("/* WEBPACK VAR INJECTION */(function(process) {\n\nmodule.exports = function dd() {\n this.dump();\n\n if (typeof process !== 'undefined') {\n process.exit(1);\n }\n};\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/process/browser.js */ \"./node_modules/process/browser.js\")))\n\n//# sourceURL=webpack://collect/./dist/methods/dd.js?");
/***/ }),
/***/ "./dist/methods/diff.js":
/*!******************************!*\
!*** ./dist/methods/diff.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function diff(values) {\n var valuesToDiff;\n\n if (values instanceof this.constructor) {\n valuesToDiff = values.all();\n } else {\n valuesToDiff = values;\n }\n\n var collection = this.items.filter(function (item) {\n return valuesToDiff.indexOf(item) === -1;\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diff.js?");
/***/ }),
/***/ "./dist/methods/diffAssoc.js":
/*!***********************************!*\
!*** ./dist/methods/diffAssoc.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function diffAssoc(values) {\n var _this = this;\n\n var diffValues = values;\n\n if (values instanceof this.constructor) {\n diffValues = values.all();\n }\n\n var collection = {};\n Object.keys(this.items).forEach(function (key) {\n if (diffValues[key] === undefined || diffValues[key] !== _this.items[key]) {\n collection[key] = _this.items[key];\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diffAssoc.js?");
/***/ }),
/***/ "./dist/methods/diffKeys.js":
/*!**********************************!*\
!*** ./dist/methods/diffKeys.js ***!
\**********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function diffKeys(object) {\n var objectToDiff;\n\n if (object instanceof this.constructor) {\n objectToDiff = object.all();\n } else {\n objectToDiff = object;\n }\n\n var objectKeys = Object.keys(objectToDiff);\n var remainingKeys = Object.keys(this.items).filter(function (item) {\n return objectKeys.indexOf(item) === -1;\n });\n return new this.constructor(this.items).only(remainingKeys);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diffKeys.js?");
/***/ }),
/***/ "./dist/methods/diffUsing.js":
/*!***********************************!*\
!*** ./dist/methods/diffUsing.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function diffUsing(values, callback) {\n var collection = this.items.filter(function (item) {\n return !(values && values.some(function (otherItem) {\n return callback(item, otherItem) === 0;\n }));\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/diffUsing.js?");
/***/ }),
/***/ "./dist/methods/doesntContain.js":
/*!***************************************!*\
!*** ./dist/methods/doesntContain.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function contains(key, value) {\n return !this.contains(key, value);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/doesntContain.js?");
/***/ }),
/***/ "./dist/methods/dump.js":
/*!******************************!*\
!*** ./dist/methods/dump.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function dump() {\n // eslint-disable-next-line\n console.log(this);\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/dump.js?");
/***/ }),
/***/ "./dist/methods/duplicates.js":
/*!************************************!*\
!*** ./dist/methods/duplicates.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nmodule.exports = function duplicates() {\n var _this = this;\n\n var occuredValues = [];\n var duplicateValues = {};\n\n var stringifiedValue = function stringifiedValue(value) {\n if (Array.isArray(value) || _typeof(value) === 'object') {\n return JSON.stringify(value);\n }\n\n return value;\n };\n\n if (Array.isArray(this.items)) {\n this.items.forEach(function (value, index) {\n var valueAsString = stringifiedValue(value);\n\n if (occuredValues.indexOf(valueAsString) === -1) {\n occuredValues.push(valueAsString);\n } else {\n duplicateValues[index] = value;\n }\n });\n } else if (_typeof(this.items) === 'object') {\n Object.keys(this.items).forEach(function (key) {\n var valueAsString = stringifiedValue(_this.items[key]);\n\n if (occuredValues.indexOf(valueAsString) === -1) {\n occuredValues.push(valueAsString);\n } else {\n duplicateValues[key] = _this.items[key];\n }\n });\n }\n\n return new this.constructor(duplicateValues);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/duplicates.js?");
/***/ }),
/***/ "./dist/methods/each.js":
/*!******************************!*\
!*** ./dist/methods/each.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function each(fn) {\n var stop = false;\n\n if (Array.isArray(this.items)) {\n var length = this.items.length;\n\n for (var index = 0; index < length && !stop; index += 1) {\n stop = fn(this.items[index], index, this.items) === false;\n }\n } else {\n var keys = Object.keys(this.items);\n var _length = keys.length;\n\n for (var _index = 0; _index < _length && !stop; _index += 1) {\n var key = keys[_index];\n stop = fn(this.items[key], key, this.items) === false;\n }\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/each.js?");
/***/ }),
/***/ "./dist/methods/eachSpread.js":
/*!************************************!*\
!*** ./dist/methods/eachSpread.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function eachSpread(fn) {\n this.each(function (values, key) {\n fn.apply(void 0, _toConsumableArray(values).concat([key]));\n });\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/eachSpread.js?");
/***/ }),
/***/ "./dist/methods/every.js":
/*!*******************************!*\
!*** ./dist/methods/every.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function every(fn) {\n var items = values(this.items);\n return items.every(fn);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/every.js?");
/***/ }),
/***/ "./dist/methods/except.js":
/*!********************************!*\
!*** ./dist/methods/except.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar variadic = __webpack_require__(/*! ../helpers/variadic */ \"./dist/helpers/variadic.js\");\n\nmodule.exports = function except() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var properties = variadic(args);\n\n if (Array.isArray(this.items)) {\n var _collection = this.items.filter(function (item) {\n return properties.indexOf(item) === -1;\n });\n\n return new this.constructor(_collection);\n }\n\n var collection = {};\n Object.keys(this.items).forEach(function (property) {\n if (properties.indexOf(property) === -1) {\n collection[property] = _this.items[property];\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/except.js?");
/***/ }),
/***/ "./dist/methods/filter.js":
/*!********************************!*\
!*** ./dist/methods/filter.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nfunction falsyValue(item) {\n if (Array.isArray(item)) {\n if (item.length) {\n return false;\n }\n } else if (item !== undefined && item !== null && _typeof(item) === 'object') {\n if (Object.keys(item).length) {\n return false;\n }\n } else if (item) {\n return false;\n }\n\n return true;\n}\n\nfunction filterObject(func, items) {\n var result = {};\n Object.keys(items).forEach(function (key) {\n if (func) {\n if (func(items[key], key)) {\n result[key] = items[key];\n }\n } else if (!falsyValue(items[key])) {\n result[key] = items[key];\n }\n });\n return result;\n}\n\nfunction filterArray(func, items) {\n if (func) {\n return items.filter(func);\n }\n\n var result = [];\n\n for (var i = 0; i < items.length; i += 1) {\n var item = items[i];\n\n if (!falsyValue(item)) {\n result.push(item);\n }\n }\n\n return result;\n}\n\nmodule.exports = function filter(fn) {\n var func = fn || false;\n var filteredItems = null;\n\n if (Array.isArray(this.items)) {\n filteredItems = filterArray(func, this.items);\n } else {\n filteredItems = filterObject(func, this.items);\n }\n\n return new this.constructor(filteredItems);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/filter.js?");
/***/ }),
/***/ "./dist/methods/first.js":
/*!*******************************!*\
!*** ./dist/methods/first.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function first(fn, defaultValue) {\n if (isFunction(fn)) {\n var keys = Object.keys(this.items);\n\n for (var i = 0; i < keys.length; i += 1) {\n var key = keys[i];\n var item = this.items[key];\n\n if (fn(item, key)) {\n return item;\n }\n }\n\n if (isFunction(defaultValue)) {\n return defaultValue();\n }\n\n return defaultValue;\n }\n\n if (Array.isArray(this.items) && this.items.length || Object.keys(this.items).length) {\n if (Array.isArray(this.items)) {\n return this.items[0];\n }\n\n var firstKey = Object.keys(this.items)[0];\n return this.items[firstKey];\n }\n\n if (isFunction(defaultValue)) {\n return defaultValue();\n }\n\n return defaultValue;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/first.js?");
/***/ }),
/***/ "./dist/methods/firstOrFail.js":
/*!*************************************!*\
!*** ./dist/methods/firstOrFail.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function firstOrFail(key, operator, value) {\n if (isFunction(key)) {\n return this.first(key, function () {\n throw new Error('Item not found.');\n });\n }\n\n var collection = this.where(key, operator, value);\n\n if (collection.isEmpty()) {\n throw new Error('Item not found.');\n }\n\n return collection.first();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/firstOrFail.js?");
/***/ }),
/***/ "./dist/methods/firstWhere.js":
/*!************************************!*\
!*** ./dist/methods/firstWhere.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function firstWhere(key, operator, value) {\n return this.where(key, operator, value).first() || null;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/firstWhere.js?");
/***/ }),
/***/ "./dist/methods/flatMap.js":
/*!*********************************!*\
!*** ./dist/methods/flatMap.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function flatMap(fn) {\n return this.map(fn).collapse();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/flatMap.js?");
/***/ }),
/***/ "./dist/methods/flatten.js":
/*!*********************************!*\
!*** ./dist/methods/flatten.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isArray = _require.isArray,\n isObject = _require.isObject;\n\nmodule.exports = function flatten(depth) {\n var flattenDepth = depth || Infinity;\n var fullyFlattened = false;\n var collection = [];\n\n var flat = function flat(items) {\n collection = [];\n\n if (isArray(items)) {\n items.forEach(function (item) {\n if (isArray(item)) {\n collection = collection.concat(item);\n } else if (isObject(item)) {\n Object.keys(item).forEach(function (property) {\n collection = collection.concat(item[property]);\n });\n } else {\n collection.push(item);\n }\n });\n } else {\n Object.keys(items).forEach(function (property) {\n if (isArray(items[property])) {\n collection = collection.concat(items[property]);\n } else if (isObject(items[property])) {\n Object.keys(items[property]).forEach(function (prop) {\n collection = collection.concat(items[property][prop]);\n });\n } else {\n collection.push(items[property]);\n }\n });\n }\n\n fullyFlattened = collection.filter(function (item) {\n return isObject(item);\n });\n fullyFlattened = fullyFlattened.length === 0;\n flattenDepth -= 1;\n };\n\n flat(this.items);\n\n while (!fullyFlattened && flattenDepth > 0) {\n flat(collection);\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/flatten.js?");
/***/ }),
/***/ "./dist/methods/flip.js":
/*!******************************!*\
!*** ./dist/methods/flip.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function flip() {\n var _this = this;\n\n var collection = {};\n\n if (Array.isArray(this.items)) {\n Object.keys(this.items).forEach(function (key) {\n collection[_this.items[key]] = Number(key);\n });\n } else {\n Object.keys(this.items).forEach(function (key) {\n collection[_this.items[key]] = key;\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/flip.js?");
/***/ }),
/***/ "./dist/methods/forPage.js":
/*!*********************************!*\
!*** ./dist/methods/forPage.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function forPage(page, chunk) {\n var _this = this;\n\n var collection = {};\n\n if (Array.isArray(this.items)) {\n collection = this.items.slice(page * chunk - chunk, page * chunk);\n } else {\n Object.keys(this.items).slice(page * chunk - chunk, page * chunk).forEach(function (key) {\n collection[key] = _this.items[key];\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/forPage.js?");
/***/ }),
/***/ "./dist/methods/forget.js":
/*!********************************!*\
!*** ./dist/methods/forget.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function forget(key) {\n if (Array.isArray(this.items)) {\n this.items.splice(key, 1);\n } else {\n delete this.items[key];\n }\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/forget.js?");
/***/ }),
/***/ "./dist/methods/get.js":
/*!*****************************!*\
!*** ./dist/methods/get.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function get(key) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (this.items[key] !== undefined) {\n return this.items[key];\n }\n\n if (isFunction(defaultValue)) {\n return defaultValue();\n }\n\n if (defaultValue !== null) {\n return defaultValue;\n }\n\n return null;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/get.js?");
/***/ }),
/***/ "./dist/methods/groupBy.js":
/*!*********************************!*\
!*** ./dist/methods/groupBy.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function groupBy(key) {\n var _this = this;\n\n var collection = {};\n this.items.forEach(function (item, index) {\n var resolvedKey;\n\n if (isFunction(key)) {\n resolvedKey = key(item, index);\n } else if (nestedValue(item, key) || nestedValue(item, key) === 0) {\n resolvedKey = nestedValue(item, key);\n } else {\n resolvedKey = '';\n }\n\n if (collection[resolvedKey] === undefined) {\n collection[resolvedKey] = new _this.constructor([]);\n }\n\n collection[resolvedKey].push(item);\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/groupBy.js?");
/***/ }),
/***/ "./dist/methods/has.js":
/*!*****************************!*\
!*** ./dist/methods/has.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar variadic = __webpack_require__(/*! ../helpers/variadic */ \"./dist/helpers/variadic.js\");\n\nmodule.exports = function has() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var properties = variadic(args);\n return properties.filter(function (key) {\n return Object.hasOwnProperty.call(_this.items, key);\n }).length === properties.length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/has.js?");
/***/ }),
/***/ "./dist/methods/implode.js":
/*!*********************************!*\
!*** ./dist/methods/implode.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function implode(key, glue) {\n if (glue === undefined) {\n return this.items.join(key);\n }\n\n return new this.constructor(this.items).pluck(key).all().join(glue);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/implode.js?");
/***/ }),
/***/ "./dist/methods/intersect.js":
/*!***********************************!*\
!*** ./dist/methods/intersect.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function intersect(values) {\n var intersectValues = values;\n\n if (values instanceof this.constructor) {\n intersectValues = values.all();\n }\n\n var collection = this.items.filter(function (item) {\n return intersectValues.indexOf(item) !== -1;\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/intersect.js?");
/***/ }),
/***/ "./dist/methods/intersectByKeys.js":
/*!*****************************************!*\
!*** ./dist/methods/intersectByKeys.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function intersectByKeys(values) {\n var _this = this;\n\n var intersectKeys = Object.keys(values);\n\n if (values instanceof this.constructor) {\n intersectKeys = Object.keys(values.all());\n }\n\n var collection = {};\n Object.keys(this.items).forEach(function (key) {\n if (intersectKeys.indexOf(key) !== -1) {\n collection[key] = _this.items[key];\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/intersectByKeys.js?");
/***/ }),
/***/ "./dist/methods/isEmpty.js":
/*!*********************************!*\
!*** ./dist/methods/isEmpty.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function isEmpty() {\n if (Array.isArray(this.items)) {\n return !this.items.length;\n }\n\n return !Object.keys(this.items).length;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/isEmpty.js?");
/***/ }),
/***/ "./dist/methods/isNotEmpty.js":
/*!************************************!*\
!*** ./dist/methods/isNotEmpty.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function isNotEmpty() {\n return !this.isEmpty();\n};\n\n//# sourceURL=webpack://collect/./dist/methods/isNotEmpty.js?");
/***/ }),
/***/ "./dist/methods/join.js":
/*!******************************!*\
!*** ./dist/methods/join.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function join(glue, finalGlue) {\n var collection = this.values();\n\n if (finalGlue === undefined) {\n return collection.implode(glue);\n }\n\n var count = collection.count();\n\n if (count === 0) {\n return '';\n }\n\n if (count === 1) {\n return collection.last();\n }\n\n var finalItem = collection.pop();\n return collection.implode(glue) + finalGlue + finalItem;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/join.js?");
/***/ }),
/***/ "./dist/methods/keyBy.js":
/*!*******************************!*\
!*** ./dist/methods/keyBy.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function keyBy(key) {\n var collection = {};\n\n if (isFunction(key)) {\n this.items.forEach(function (item) {\n collection[key(item)] = item;\n });\n } else {\n this.items.forEach(function (item) {\n var keyValue = nestedValue(item, key);\n collection[keyValue || ''] = item;\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/keyBy.js?");
/***/ }),
/***/ "./dist/methods/keys.js":
/*!******************************!*\
!*** ./dist/methods/keys.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function keys() {\n var collection = Object.keys(this.items);\n\n if (Array.isArray(this.items)) {\n collection = collection.map(Number);\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/keys.js?");
/***/ }),
/***/ "./dist/methods/last.js":
/*!******************************!*\
!*** ./dist/methods/last.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function last(fn, defaultValue) {\n var items = this.items;\n\n if (isFunction(fn)) {\n items = this.filter(fn).all();\n }\n\n if (Array.isArray(items) && !items.length || !Object.keys(items).length) {\n if (isFunction(defaultValue)) {\n return defaultValue();\n }\n\n return defaultValue;\n }\n\n if (Array.isArray(items)) {\n return items[items.length - 1];\n }\n\n var keys = Object.keys(items);\n return items[keys[keys.length - 1]];\n};\n\n//# sourceURL=webpack://collect/./dist/methods/last.js?");
/***/ }),
/***/ "./dist/methods/macro.js":
/*!*******************************!*\
!*** ./dist/methods/macro.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function macro(name, fn) {\n this.constructor.prototype[name] = fn;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/macro.js?");
/***/ }),
/***/ "./dist/methods/make.js":
/*!******************************!*\
!*** ./dist/methods/make.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function make() {\n var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n return new this.constructor(items);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/make.js?");
/***/ }),
/***/ "./dist/methods/map.js":
/*!*****************************!*\
!*** ./dist/methods/map.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function map(fn) {\n var _this = this;\n\n if (Array.isArray(this.items)) {\n return new this.constructor(this.items.map(fn));\n }\n\n var collection = {};\n Object.keys(this.items).forEach(function (key) {\n collection[key] = fn(_this.items[key], key);\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/map.js?");
/***/ }),
/***/ "./dist/methods/mapInto.js":
/*!*********************************!*\
!*** ./dist/methods/mapInto.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function mapInto(ClassName) {\n return this.map(function (value, key) {\n return new ClassName(value, key);\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapInto.js?");
/***/ }),
/***/ "./dist/methods/mapSpread.js":
/*!***********************************!*\
!*** ./dist/methods/mapSpread.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function mapSpread(fn) {\n return this.map(function (values, key) {\n return fn.apply(void 0, _toConsumableArray(values).concat([key]));\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapSpread.js?");
/***/ }),
/***/ "./dist/methods/mapToDictionary.js":
/*!*****************************************!*\
!*** ./dist/methods/mapToDictionary.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function mapToDictionary(fn) {\n var collection = {};\n this.items.forEach(function (item, k) {\n var _fn = fn(item, k),\n _fn2 = _slicedToArray(_fn, 2),\n key = _fn2[0],\n value = _fn2[1];\n\n if (collection[key] === undefined) {\n collection[key] = [value];\n } else {\n collection[key].push(value);\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapToDictionary.js?");
/***/ }),
/***/ "./dist/methods/mapToGroups.js":
/*!*************************************!*\
!*** ./dist/methods/mapToGroups.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function mapToGroups(fn) {\n var collection = {};\n this.items.forEach(function (item, key) {\n var _fn = fn(item, key),\n _fn2 = _slicedToArray(_fn, 2),\n keyed = _fn2[0],\n value = _fn2[1];\n\n if (collection[keyed] === undefined) {\n collection[keyed] = [value];\n } else {\n collection[keyed].push(value);\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapToGroups.js?");
/***/ }),
/***/ "./dist/methods/mapWithKeys.js":
/*!*************************************!*\
!*** ./dist/methods/mapWithKeys.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nmodule.exports = function mapWithKeys(fn) {\n var _this = this;\n\n var collection = {};\n\n if (Array.isArray(this.items)) {\n this.items.forEach(function (item, index) {\n var _fn = fn(item, index),\n _fn2 = _slicedToArray(_fn, 2),\n keyed = _fn2[0],\n value = _fn2[1];\n\n collection[keyed] = value;\n });\n } else {\n Object.keys(this.items).forEach(function (key) {\n var _fn3 = fn(_this.items[key], key),\n _fn4 = _slicedToArray(_fn3, 2),\n keyed = _fn4[0],\n value = _fn4[1];\n\n collection[keyed] = value;\n });\n }\n\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mapWithKeys.js?");
/***/ }),
/***/ "./dist/methods/max.js":
/*!*****************************!*\
!*** ./dist/methods/max.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function max(key) {\n if (typeof key === 'string') {\n var filtered = this.items.filter(function (item) {\n return item[key] !== undefined;\n });\n return Math.max.apply(Math, _toConsumableArray(filtered.map(function (item) {\n return item[key];\n })));\n }\n\n return Math.max.apply(Math, _toConsumableArray(this.items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/max.js?");
/***/ }),
/***/ "./dist/methods/median.js":
/*!********************************!*\
!*** ./dist/methods/median.js ***!
\********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function median(key) {\n var length = this.items.length;\n\n if (key === undefined) {\n if (length % 2 === 0) {\n return (this.items[length / 2 - 1] + this.items[length / 2]) / 2;\n }\n\n return this.items[Math.floor(length / 2)];\n }\n\n if (length % 2 === 0) {\n return (this.items[length / 2 - 1][key] + this.items[length / 2][key]) / 2;\n }\n\n return this.items[Math.floor(length / 2)][key];\n};\n\n//# sourceURL=webpack://collect/./dist/methods/median.js?");
/***/ }),
/***/ "./dist/methods/merge.js":
/*!*******************************!*\
!*** ./dist/methods/merge.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function merge(value) {\n var arrayOrObject = value;\n\n if (typeof arrayOrObject === 'string') {\n arrayOrObject = [arrayOrObject];\n }\n\n if (Array.isArray(this.items) && Array.isArray(arrayOrObject)) {\n return new this.constructor(this.items.concat(arrayOrObject));\n }\n\n var collection = JSON.parse(JSON.stringify(this.items));\n Object.keys(arrayOrObject).forEach(function (key) {\n collection[key] = arrayOrObject[key];\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/merge.js?");
/***/ }),
/***/ "./dist/methods/mergeRecursive.js":
/*!****************************************!*\
!*** ./dist/methods/mergeRecursive.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _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); }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nmodule.exports = function mergeRecursive(items) {\n var merge = function merge(target, source) {\n var merged = {};\n var mergedKeys = Object.keys(_objectSpread(_objectSpread({}, target), source));\n mergedKeys.forEach(function (key) {\n if (target[key] === undefined && source[key] !== undefined) {\n merged[key] = source[key];\n } else if (target[key] !== undefined && source[key] === undefined) {\n merged[key] = target[key];\n } else if (target[key] !== undefined && source[key] !== undefined) {\n if (target[key] === source[key]) {\n merged[key] = target[key];\n } else if (!Array.isArray(target[key]) && _typeof(target[key]) === 'object' && !Array.isArray(source[key]) && _typeof(source[key]) === 'object') {\n merged[key] = merge(target[key], source[key]);\n } else {\n merged[key] = [].concat(target[key], source[key]);\n }\n }\n });\n return merged;\n };\n\n if (!items) {\n return this;\n }\n\n if (items.constructor.name === 'Collection') {\n return new this.constructor(merge(this.items, items.all()));\n }\n\n return new this.constructor(merge(this.items, items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mergeRecursive.js?");
/***/ }),
/***/ "./dist/methods/min.js":
/*!*****************************!*\
!*** ./dist/methods/min.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nmodule.exports = function min(key) {\n if (key !== undefined) {\n var filtered = this.items.filter(function (item) {\n return item[key] !== undefined;\n });\n return Math.min.apply(Math, _toConsumableArray(filtered.map(function (item) {\n return item[key];\n })));\n }\n\n return Math.min.apply(Math, _toConsumableArray(this.items));\n};\n\n//# sourceURL=webpack://collect/./dist/methods/min.js?");
/***/ }),
/***/ "./dist/methods/mode.js":
/*!******************************!*\
!*** ./dist/methods/mode.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function mode(key) {\n var values = [];\n var highestCount = 1;\n\n if (!this.items.length) {\n return null;\n }\n\n this.items.forEach(function (item) {\n var tempValues = values.filter(function (value) {\n if (key !== undefined) {\n return value.key === item[key];\n }\n\n return value.key === item;\n });\n\n if (!tempValues.length) {\n if (key !== undefined) {\n values.push({\n key: item[key],\n count: 1\n });\n } else {\n values.push({\n key: item,\n count: 1\n });\n }\n } else {\n tempValues[0].count += 1;\n var count = tempValues[0].count;\n\n if (count > highestCount) {\n highestCount = count;\n }\n }\n });\n return values.filter(function (value) {\n return value.count === highestCount;\n }).map(function (value) {\n return value.key;\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/mode.js?");
/***/ }),
/***/ "./dist/methods/nth.js":
/*!*****************************!*\
!*** ./dist/methods/nth.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar values = __webpack_require__(/*! ../helpers/values */ \"./dist/helpers/values.js\");\n\nmodule.exports = function nth(n) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var items = values(this.items);\n var collection = items.slice(offset).filter(function (item, index) {\n return index % n === 0;\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/nth.js?");
/***/ }),
/***/ "./dist/methods/only.js":
/*!******************************!*\
!*** ./dist/methods/only.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar variadic = __webpack_require__(/*! ../helpers/variadic */ \"./dist/helpers/variadic.js\");\n\nmodule.exports = function only() {\n var _this = this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var properties = variadic(args);\n\n if (Array.isArray(this.items)) {\n var _collection = this.items.filter(function (item) {\n return properties.indexOf(item) !== -1;\n });\n\n return new this.constructor(_collection);\n }\n\n var collection = {};\n Object.keys(this.items).forEach(function (prop) {\n if (properties.indexOf(prop) !== -1) {\n collection[prop] = _this.items[prop];\n }\n });\n return new this.constructor(collection);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/only.js?");
/***/ }),
/***/ "./dist/methods/pad.js":
/*!*****************************!*\
!*** ./dist/methods/pad.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar clone = __webpack_require__(/*! ../helpers/clone */ \"./dist/helpers/clone.js\");\n\nmodule.exports = function pad(size, value) {\n var abs = Math.abs(size);\n var count = this.count();\n\n if (abs <= count) {\n return this;\n }\n\n var diff = abs - count;\n var items = clone(this.items);\n var isArray = Array.isArray(this.items);\n var prepend = size < 0;\n\n for (var iterator = 0; iterator < diff;) {\n if (!isArray) {\n if (items[iterator] !== undefined) {\n diff += 1;\n } else {\n items[iterator] = value;\n }\n } else if (prepend) {\n items.unshift(value);\n } else {\n items.push(value);\n }\n\n iterator += 1;\n }\n\n return new this.constructor(items);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pad.js?");
/***/ }),
/***/ "./dist/methods/partition.js":
/*!***********************************!*\
!*** ./dist/methods/partition.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function partition(fn) {\n var _this = this;\n\n var arrays;\n\n if (Array.isArray(this.items)) {\n arrays = [new this.constructor([]), new this.constructor([])];\n this.items.forEach(function (item) {\n if (fn(item) === true) {\n arrays[0].push(item);\n } else {\n arrays[1].push(item);\n }\n });\n } else {\n arrays = [new this.constructor({}), new this.constructor({})];\n Object.keys(this.items).forEach(function (prop) {\n var value = _this.items[prop];\n\n if (fn(value) === true) {\n arrays[0].put(prop, value);\n } else {\n arrays[1].put(prop, value);\n }\n });\n }\n\n return new this.constructor(arrays);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/partition.js?");
/***/ }),
/***/ "./dist/methods/pipe.js":
/*!******************************!*\
!*** ./dist/methods/pipe.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function pipe(fn) {\n return fn(this);\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pipe.js?");
/***/ }),
/***/ "./dist/methods/pluck.js":
/*!*******************************!*\
!*** ./dist/methods/pluck.js ***!
\*******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isArray = _require.isArray,\n isObject = _require.isObject;\n\nvar nestedValue = __webpack_require__(/*! ../helpers/nestedValue */ \"./dist/helpers/nestedValue.js\");\n\nvar buildKeyPathMap = function buildKeyPathMap(items) {\n var keyPaths = {};\n items.forEach(function (item, index) {\n function buildKeyPath(val, keyPath) {\n if (isObject(val)) {\n Object.keys(val).forEach(function (prop) {\n buildKeyPath(val[prop], \"\".concat(keyPath, \".\").concat(prop));\n });\n } else if (isArray(val)) {\n val.forEach(function (v, i) {\n buildKeyPath(v, \"\".concat(keyPath, \".\").concat(i));\n });\n }\n\n keyPaths[keyPath] = val;\n }\n\n buildKeyPath(item, index);\n });\n return keyPaths;\n};\n\nmodule.exports = function pluck(value, key) {\n if (value.indexOf('*') !== -1) {\n var keyPathMap = buildKeyPathMap(this.items);\n var keyMatches = [];\n\n if (key !== undefined) {\n var keyRegex = new RegExp(\"0.\".concat(key), 'g');\n var keyNumberOfLevels = \"0.\".concat(key).split('.').length;\n Object.keys(keyPathMap).forEach(function (k) {\n var matchingKey = k.match(keyRegex);\n\n if (matchingKey) {\n var match = matchingKey[0];\n\n if (match.split('.').length === keyNumberOfLevels) {\n keyMatches.push(keyPathMap[match]);\n }\n }\n });\n }\n\n var valueMatches = [];\n var valueRegex = new RegExp(\"0.\".concat(value), 'g');\n var valueNumberOfLevels = \"0.\".concat(value).split('.').length;\n Object.keys(keyPathMap).forEach(function (k) {\n var matchingValue = k.match(valueRegex);\n\n if (matchingValue) {\n var match = matchingValue[0];\n\n if (match.split('.').length === valueNumberOfLevels) {\n valueMatches.push(keyPathMap[match]);\n }\n }\n });\n\n if (key !== undefined) {\n var collection = {};\n this.items.forEach(function (item, index) {\n collection[keyMatches[index] || ''] = valueMatches;\n });\n return new this.constructor(collection);\n }\n\n return new this.constructor([valueMatches]);\n }\n\n if (key !== undefined) {\n var _collection = {};\n this.items.forEach(function (item) {\n if (nestedValue(item, value) !== undefined) {\n _collection[item[key] || ''] = nestedValue(item, value);\n } else {\n _collection[item[key] || ''] = null;\n }\n });\n return new this.constructor(_collection);\n }\n\n return this.map(function (item) {\n if (nestedValue(item, value) !== undefined) {\n return nestedValue(item, value);\n }\n\n return null;\n });\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pluck.js?");
/***/ }),
/***/ "./dist/methods/pop.js":
/*!*****************************!*\
!*** ./dist/methods/pop.js ***!
\*****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isArray = _require.isArray,\n isObject = _require.isObject;\n\nvar deleteKeys = __webpack_require__(/*! ../helpers/deleteKeys */ \"./dist/helpers/deleteKeys.js\");\n\nmodule.exports = function pop() {\n var _this = this;\n\n var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;\n\n if (this.isEmpty()) {\n return null;\n }\n\n if (isArray(this.items)) {\n if (count === 1) {\n return this.items.pop();\n }\n\n return new this.constructor(this.items.splice(-count));\n }\n\n if (isObject(this.items)) {\n var keys = Object.keys(this.items);\n\n if (count === 1) {\n var key = keys[keys.length - 1];\n var last = this.items[key];\n deleteKeys(this.items, key);\n return last;\n }\n\n var poppedKeys = keys.slice(-count);\n var newObject = poppedKeys.reduce(function (acc, current) {\n acc[current] = _this.items[current];\n return acc;\n }, {});\n deleteKeys(this.items, poppedKeys);\n return new this.constructor(newObject);\n }\n\n return null;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pop.js?");
/***/ }),
/***/ "./dist/methods/prepend.js":
/*!*********************************!*\
!*** ./dist/methods/prepend.js ***!
\*********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function prepend(value, key) {\n if (key !== undefined) {\n return this.put(key, value);\n }\n\n this.items.unshift(value);\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/prepend.js?");
/***/ }),
/***/ "./dist/methods/pull.js":
/*!******************************!*\
!*** ./dist/methods/pull.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _require = __webpack_require__(/*! ../helpers/is */ \"./dist/helpers/is.js\"),\n isFunction = _require.isFunction;\n\nmodule.exports = function pull(key, defaultValue) {\n var returnValue = this.items[key] || null;\n\n if (!returnValue && defaultValue !== undefined) {\n if (isFunction(defaultValue)) {\n returnValue = defaultValue();\n } else {\n returnValue = defaultValue;\n }\n }\n\n delete this.items[key];\n return returnValue;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/pull.js?");
/***/ }),
/***/ "./dist/methods/push.js":
/*!******************************!*\
!*** ./dist/methods/push.js ***!
\******************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nmodule.exports = function push() {\n var _this$items;\n\n (_this$items = this.items).push.apply(_this$items, arguments);\n\n return this;\n};\n\n//# sourceURL=webpack://collect/./dist/methods/push.js?");
/***/ }),