@revolist/revogrid 4.1.0-next.71 → 4.1.0-next.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/dist/revo-grid/_baseIteratee-71e30b32.js +2904 -0
  2. package/dist/{collection/global/global.js → revo-grid/app-globals-0f8c2f53.js} +8 -2
  3. package/dist/revo-grid/app-globals-b0e1cbef.js +19 -0
  4. package/dist/{collection/components/data/columnService.js → revo-grid/columnService-0ac47aab.js} +10 -8
  5. package/dist/revo-grid/columnService-c8dcbf40.js +291 -0
  6. package/dist/revo-grid/consts-554f4ff1.js +22 -0
  7. package/dist/revo-grid/css-shim-bbdf0cc6.js +4 -0
  8. package/dist/revo-grid/data.store-16f691b2.js +552 -0
  9. package/dist/revo-grid/data.store-84e32999.js +552 -0
  10. package/dist/revo-grid/debounce-c6704ea4.js +214 -0
  11. package/dist/revo-grid/dimension.helpers-83b63758.js +497 -0
  12. package/dist/revo-grid/dom-1f98a75f.js +59 -5
  13. package/dist/{esm/filter.button-28c9b177.js → revo-grid/filter.button-c0e1fade.js} +1 -1
  14. package/dist/{collection/plugins/filter/filter.button.js → revo-grid/filter.button-f27a3e7f.js} +9 -6
  15. package/dist/{cjs/index-64e10687.js → revo-grid/index-2f09d3bb.js} +1377 -207
  16. package/dist/{esm/index-78313a5f.js → revo-grid/index-8b05ed1a.js} +1377 -172
  17. package/dist/{collection/utils/index.js → revo-grid/index-ddba9eb9.js} +12 -9
  18. package/dist/revo-grid/index.esm.js +1 -0
  19. package/dist/revo-grid/isString-94b454ad.js +30 -0
  20. package/dist/revo-grid/keyCodes.utils-d78c3499.js +295 -0
  21. package/dist/{collection/services/localScrollService.js → revo-grid/localScrollService-49f74e0a.js} +5 -2
  22. package/dist/{esm/revo-grid_11.entry.js → revo-grid/lodash-6909f3c3.js} +13451 -25210
  23. package/dist/revo-grid/resize-observer-56b7b34f.js +489 -1
  24. package/dist/revo-grid/revo-grid.entry.js +3452 -0
  25. package/dist/revo-grid/revo-grid.esm.js +126 -1
  26. package/dist/revo-grid/revogr-clipboard.entry.js +53 -1
  27. package/dist/revo-grid/revogr-data.entry.js +175 -0
  28. package/dist/revo-grid/revogr-edit.entry.js +143 -0
  29. package/dist/revo-grid/revogr-filter-panel.entry.js +146 -1
  30. package/dist/revo-grid/revogr-focus.entry.js +43 -0
  31. package/dist/revo-grid/revogr-header.entry.js +561 -0
  32. package/dist/revo-grid/revogr-order-editor.entry.js +167 -0
  33. package/dist/revo-grid/revogr-overlay-selection.entry.js +739 -0
  34. package/dist/revo-grid/revogr-row-headers.entry.js +64 -0
  35. package/dist/revo-grid/revogr-scroll-virtual.entry.js +113 -0
  36. package/dist/revo-grid/revogr-temp-range.entry.js +65 -0
  37. package/dist/revo-grid/revogr-viewport-scroll.entry.js +341 -0
  38. package/dist/{collection/store/viewPort/viewport.helpers.js → revo-grid/row-header-utils-354caa34.js} +168 -9
  39. package/dist/revo-grid/row-header-utils-4c858713.js +339 -0
  40. package/dist/revo-grid/selection.store.connector-592c3d70.js +533 -0
  41. package/dist/revo-grid/selection.store.connector-6275c806.js +533 -0
  42. package/dist/{collection/components/overlay/selection.utils.js → revo-grid/selection.utils-93031f64.js} +12 -9
  43. package/dist/revo-grid/shadow-css-67b66845.js +389 -0
  44. package/dist/{collection/themeManager/themeService.js → revo-grid/themeService-6983e3c8.js} +23 -6
  45. package/dist/revo-grid/toInteger-fa10dc5c.js +104 -0
  46. package/dist/revo-grid/toNumber-bf0906cb.js +102 -0
  47. package/dist/revo-grid/viewport.helpers-73fb1b64.js +13 -0
  48. package/dist/types/components/data/revogr-data.d.ts +1 -1
  49. package/dist/types/components/overlay/revogr-edit.d.ts +2 -2
  50. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +7 -2
  51. package/dist/types/components/revoGrid/grid.helpers.d.ts +4 -4
  52. package/dist/types/components.d.ts +6 -2
  53. package/package.json +1 -1
  54. package/custom-element/index.js +0 -29248
  55. package/custom-element/resize-observer.js +0 -489
  56. package/dist/cjs/css-shim-9670f2f3.js +0 -6
  57. package/dist/cjs/dom-3e7d9c3b.js +0 -75
  58. package/dist/cjs/filter.button-768ed27a.js +0 -27
  59. package/dist/cjs/index.cjs.js +0 -2
  60. package/dist/cjs/loader.cjs.js +0 -35
  61. package/dist/cjs/resize-observer-8dc80084.js +0 -492
  62. package/dist/cjs/revo-grid.cjs.js +0 -76
  63. package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28988
  64. package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -57
  65. package/dist/cjs/revogr-filter-panel.cjs.entry.js +0 -150
  66. package/dist/collection/collection-manifest.json +0 -25
  67. package/dist/collection/components/button/button.d.ts +0 -5
  68. package/dist/collection/components/button/button.js +0 -4
  69. package/dist/collection/components/clipboard/revogr-clipboard.d.ts +0 -13
  70. package/dist/collection/components/clipboard/revogr-clipboard.js +0 -125
  71. package/dist/collection/components/data/cellRenderer.d.ts +0 -8
  72. package/dist/collection/components/data/cellRenderer.js +0 -19
  73. package/dist/collection/components/data/columnService.d.ts +0 -52
  74. package/dist/collection/components/data/revogr-data-style.css +0 -135
  75. package/dist/collection/components/data/revogr-data.d.ts +0 -28
  76. package/dist/collection/components/data/revogr-data.js +0 -394
  77. package/dist/collection/components/data/rowRenderer.d.ts +0 -11
  78. package/dist/collection/components/data/rowRenderer.js +0 -6
  79. package/dist/collection/components/header/headerCellRenderer.d.ts +0 -8
  80. package/dist/collection/components/header/headerCellRenderer.js +0 -19
  81. package/dist/collection/components/header/headerRenderer.d.ts +0 -15
  82. package/dist/collection/components/header/headerRenderer.js +0 -45
  83. package/dist/collection/components/header/revogr-header-style.css +0 -198
  84. package/dist/collection/components/header/revogr-header.d.ts +0 -25
  85. package/dist/collection/components/header/revogr-header.js +0 -348
  86. package/dist/collection/components/order/orderRenderer.d.ts +0 -28
  87. package/dist/collection/components/order/orderRenderer.js +0 -50
  88. package/dist/collection/components/order/revogr-order-editor.d.ts +0 -44
  89. package/dist/collection/components/order/revogr-order-editor.js +0 -358
  90. package/dist/collection/components/order/rowOrderService.d.ts +0 -27
  91. package/dist/collection/components/order/rowOrderService.js +0 -68
  92. package/dist/collection/components/overlay/autofill.service.d.ts +0 -66
  93. package/dist/collection/components/overlay/autofill.service.js +0 -192
  94. package/dist/collection/components/overlay/clipboard.service.d.ts +0 -22
  95. package/dist/collection/components/overlay/clipboard.service.js +0 -37
  96. package/dist/collection/components/overlay/editors/edit.utils.d.ts +0 -1
  97. package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
  98. package/dist/collection/components/overlay/editors/text.d.ts +0 -14
  99. package/dist/collection/components/overlay/editors/text.js +0 -39
  100. package/dist/collection/components/overlay/keyboard.service.d.ts +0 -29
  101. package/dist/collection/components/overlay/keyboard.service.js +0 -131
  102. package/dist/collection/components/overlay/revogr-edit-style.css +0 -86
  103. package/dist/collection/components/overlay/revogr-edit.d.ts +0 -24
  104. package/dist/collection/components/overlay/revogr-edit.js +0 -235
  105. package/dist/collection/components/overlay/revogr-overlay-selection.d.ts +0 -97
  106. package/dist/collection/components/overlay/revogr-overlay-selection.js +0 -969
  107. package/dist/collection/components/overlay/revogr-overlay-style.css +0 -98
  108. package/dist/collection/components/overlay/selection.utils.d.ts +0 -36
  109. package/dist/collection/components/revoGrid/grid.helpers.d.ts +0 -17
  110. package/dist/collection/components/revoGrid/grid.helpers.js +0 -26
  111. package/dist/collection/components/revoGrid/revo-grid-style.css +0 -528
  112. package/dist/collection/components/revoGrid/revo-grid.d.ts +0 -451
  113. package/dist/collection/components/revoGrid/revo-grid.js +0 -2420
  114. package/dist/collection/components/revoGrid/viewport.d.ts +0 -19
  115. package/dist/collection/components/revoGrid/viewport.helpers.d.ts +0 -9
  116. package/dist/collection/components/revoGrid/viewport.helpers.js +0 -11
  117. package/dist/collection/components/revoGrid/viewport.interfaces.d.ts +0 -67
  118. package/dist/collection/components/revoGrid/viewport.interfaces.js +0 -1
  119. package/dist/collection/components/revoGrid/viewport.js +0 -20
  120. package/dist/collection/components/revoGrid/viewport.resize.service.d.ts +0 -12
  121. package/dist/collection/components/revoGrid/viewport.resize.service.js +0 -21
  122. package/dist/collection/components/revoGrid/viewport.scrolling.service.d.ts +0 -23
  123. package/dist/collection/components/revoGrid/viewport.scrolling.service.js +0 -60
  124. package/dist/collection/components/revoGrid/viewport.section.d.ts +0 -25
  125. package/dist/collection/components/revoGrid/viewport.section.js +0 -27
  126. package/dist/collection/components/revoGrid/viewport.service.d.ts +0 -66
  127. package/dist/collection/components/revoGrid/viewport.service.js +0 -209
  128. package/dist/collection/components/rowHeaders/revogr-row-headers.d.ts +0 -20
  129. package/dist/collection/components/rowHeaders/revogr-row-headers.js +0 -231
  130. package/dist/collection/components/rowHeaders/row-header-render.d.ts +0 -9
  131. package/dist/collection/components/rowHeaders/row-header-render.js +0 -1
  132. package/dist/collection/components/rowHeaders/row-header-utils.d.ts +0 -2
  133. package/dist/collection/components/rowHeaders/row-header-utils.js +0 -4
  134. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +0 -137
  135. package/dist/collection/components/scroll/revogr-viewport-scroll.d.ts +0 -92
  136. package/dist/collection/components/scroll/revogr-viewport-scroll.js +0 -424
  137. package/dist/collection/components/scrollable/revogr-scroll-style.css +0 -104
  138. package/dist/collection/components/scrollable/revogr-scroll-virtual.d.ts +0 -25
  139. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +0 -253
  140. package/dist/collection/components/selectionFocus/revogr-focus-style.css +0 -77
  141. package/dist/collection/components/selectionFocus/revogr-focus.d.ts +0 -15
  142. package/dist/collection/components/selectionFocus/revogr-focus.js +0 -177
  143. package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +0 -98
  144. package/dist/collection/components/selectionTempRange/revogr-temp-range.d.ts +0 -13
  145. package/dist/collection/components/selectionTempRange/revogr-temp-range.js +0 -138
  146. package/dist/collection/components.d.ts +0 -954
  147. package/dist/collection/global/global.d.ts +0 -1
  148. package/dist/collection/index.d.ts +0 -1
  149. package/dist/collection/index.js +0 -1
  150. package/dist/collection/interfaces.d.ts +0 -373
  151. package/dist/collection/plugins/autoSizeColumn.d.ts +0 -54
  152. package/dist/collection/plugins/autoSizeColumn.js +0 -230
  153. package/dist/collection/plugins/basePlugin.d.ts +0 -46
  154. package/dist/collection/plugins/basePlugin.js +0 -66
  155. package/dist/collection/plugins/export/csv.d.ts +0 -9
  156. package/dist/collection/plugins/export/csv.js +0 -68
  157. package/dist/collection/plugins/export/export.plugin.d.ts +0 -24
  158. package/dist/collection/plugins/export/export.plugin.js +0 -165
  159. package/dist/collection/plugins/export/types.d.ts +0 -23
  160. package/dist/collection/plugins/export/types.js +0 -1
  161. package/dist/collection/plugins/filter/conditions/equal.d.ts +0 -4
  162. package/dist/collection/plugins/filter/conditions/equal.js +0 -13
  163. package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
  164. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +0 -10
  165. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
  166. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +0 -7
  167. package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +0 -3
  168. package/dist/collection/plugins/filter/conditions/number/lessThan.js +0 -12
  169. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
  170. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +0 -7
  171. package/dist/collection/plugins/filter/conditions/set.d.ts +0 -4
  172. package/dist/collection/plugins/filter/conditions/set.js +0 -3
  173. package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +0 -3
  174. package/dist/collection/plugins/filter/conditions/string/beginswith.js +0 -17
  175. package/dist/collection/plugins/filter/conditions/string/contains.d.ts +0 -4
  176. package/dist/collection/plugins/filter/conditions/string/contains.js +0 -21
  177. package/dist/collection/plugins/filter/filter.button.d.ts +0 -10
  178. package/dist/collection/plugins/filter/filter.plugin.d.ts +0 -73
  179. package/dist/collection/plugins/filter/filter.plugin.js +0 -231
  180. package/dist/collection/plugins/filter/filter.pop.d.ts +0 -47
  181. package/dist/collection/plugins/filter/filter.pop.js +0 -307
  182. package/dist/collection/plugins/filter/filter.service.d.ts +0 -20
  183. package/dist/collection/plugins/filter/filter.service.js +0 -44
  184. package/dist/collection/plugins/filter/filter.style.css +0 -192
  185. package/dist/collection/plugins/filter/filter.types.d.ts +0 -8
  186. package/dist/collection/plugins/filter/filter.types.js +0 -1
  187. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
  188. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +0 -30
  189. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
  190. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +0 -35
  191. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
  192. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +0 -21
  193. package/dist/collection/plugins/groupingRow/grouping.const.d.ts +0 -9
  194. package/dist/collection/plugins/groupingRow/grouping.const.js +0 -10
  195. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
  196. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +0 -76
  197. package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +0 -43
  198. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +0 -258
  199. package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
  200. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +0 -29
  201. package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +0 -19
  202. package/dist/collection/plugins/groupingRow/grouping.row.types.js +0 -1
  203. package/dist/collection/plugins/groupingRow/grouping.service.d.ts +0 -25
  204. package/dist/collection/plugins/groupingRow/grouping.service.js +0 -155
  205. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
  206. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +0 -57
  207. package/dist/collection/plugins/plugin.types.d.ts +0 -12
  208. package/dist/collection/plugins/plugin.types.js +0 -1
  209. package/dist/collection/plugins/sorting/sorting.plugin.d.ts +0 -32
  210. package/dist/collection/plugins/sorting/sorting.plugin.js +0 -180
  211. package/dist/collection/plugins/sorting/sorting.sign.d.ts +0 -8
  212. package/dist/collection/plugins/sorting/sorting.sign.js +0 -6
  213. package/dist/collection/plugins/stretchPlugin.d.ts +0 -29
  214. package/dist/collection/plugins/stretchPlugin.js +0 -90
  215. package/dist/collection/services/cell.helpers.d.ts +0 -2
  216. package/dist/collection/services/cell.helpers.js +0 -7
  217. package/dist/collection/services/column.data.provider.d.ts +0 -37
  218. package/dist/collection/services/column.data.provider.js +0 -189
  219. package/dist/collection/services/data.provider.d.ts +0 -26
  220. package/dist/collection/services/data.provider.js +0 -48
  221. package/dist/collection/services/dimension.provider.d.ts +0 -40
  222. package/dist/collection/services/dimension.provider.js +0 -105
  223. package/dist/collection/services/localScrollService.d.ts +0 -28
  224. package/dist/collection/services/resizable.directive.d.ts +0 -55
  225. package/dist/collection/services/resizable.directive.js +0 -250
  226. package/dist/collection/services/selection.store.connector.d.ts +0 -57
  227. package/dist/collection/services/selection.store.connector.js +0 -241
  228. package/dist/collection/services/viewport.provider.d.ts +0 -10
  229. package/dist/collection/services/viewport.provider.js +0 -14
  230. package/dist/collection/stencil-public-runtime.d.ts +0 -1563
  231. package/dist/collection/store/dataSource/data.proxy.d.ts +0 -10
  232. package/dist/collection/store/dataSource/data.proxy.js +0 -34
  233. package/dist/collection/store/dataSource/data.store.d.ts +0 -58
  234. package/dist/collection/store/dataSource/data.store.js +0 -127
  235. package/dist/collection/store/dataSource/trimmed.plugin.d.ts +0 -10
  236. package/dist/collection/store/dataSource/trimmed.plugin.js +0 -32
  237. package/dist/collection/store/dimension/dimension.helpers.d.ts +0 -26
  238. package/dist/collection/store/dimension/dimension.helpers.js +0 -98
  239. package/dist/collection/store/dimension/dimension.store.d.ts +0 -26
  240. package/dist/collection/store/dimension/dimension.store.js +0 -103
  241. package/dist/collection/store/selection/selection.helpers.d.ts +0 -8
  242. package/dist/collection/store/selection/selection.helpers.js +0 -53
  243. package/dist/collection/store/selection/selection.store.d.ts +0 -19
  244. package/dist/collection/store/selection/selection.store.js +0 -73
  245. package/dist/collection/store/selection/selection.store.service.d.ts +0 -18
  246. package/dist/collection/store/selection/selection.store.service.js +0 -35
  247. package/dist/collection/store/storeTypes.d.ts +0 -4
  248. package/dist/collection/store/storeTypes.js +0 -5
  249. package/dist/collection/store/viewPort/viewport.helpers.d.ts +0 -30
  250. package/dist/collection/store/viewPort/viewport.store.d.ts +0 -21
  251. package/dist/collection/store/viewPort/viewport.store.js +0 -152
  252. package/dist/collection/themeManager/theme.compact.d.ts +0 -4
  253. package/dist/collection/themeManager/theme.compact.js +0 -5
  254. package/dist/collection/themeManager/theme.default.d.ts +0 -4
  255. package/dist/collection/themeManager/theme.default.js +0 -5
  256. package/dist/collection/themeManager/theme.material.d.ts +0 -4
  257. package/dist/collection/themeManager/theme.material.js +0 -5
  258. package/dist/collection/themeManager/themeService.d.ts +0 -13
  259. package/dist/collection/utils/closestPolifill.d.ts +0 -0
  260. package/dist/collection/utils/closestPolifill.js +0 -18
  261. package/dist/collection/utils/consts.d.ts +0 -20
  262. package/dist/collection/utils/consts.js +0 -20
  263. package/dist/collection/utils/generateAlphabetHeader.d.ts +0 -2
  264. package/dist/collection/utils/generateAlphabetHeader.js +0 -20
  265. package/dist/collection/utils/index.d.ts +0 -21
  266. package/dist/collection/utils/keyCodes.d.ts +0 -68
  267. package/dist/collection/utils/keyCodes.js +0 -70
  268. package/dist/collection/utils/keyCodes.utils.d.ts +0 -8
  269. package/dist/collection/utils/keyCodes.utils.js +0 -64
  270. package/dist/collection/utils/platform.d.ts +0 -4
  271. package/dist/collection/utils/platform.js +0 -5
  272. package/dist/collection/utils/resizeObserver.d.ts +0 -1
  273. package/dist/collection/utils/resizeObserver.js +0 -6
  274. package/dist/collection/utils/store.utils.d.ts +0 -6
  275. package/dist/collection/utils/store.utils.js +0 -7
  276. package/dist/collection/utilsExternal/generate-data.js +0 -136
  277. package/dist/esm/css-shim-a7f418e3.js +0 -4
  278. package/dist/esm/dom-1f98a75f.js +0 -73
  279. package/dist/esm/index.js +0 -1
  280. package/dist/esm/loader.js +0 -31
  281. package/dist/esm/polyfills/core-js.js +0 -11
  282. package/dist/esm/polyfills/css-shim.js +0 -1
  283. package/dist/esm/polyfills/dom.js +0 -79
  284. package/dist/esm/polyfills/es5-html-element.js +0 -1
  285. package/dist/esm/polyfills/index.js +0 -34
  286. package/dist/esm/polyfills/system.js +0 -6
  287. package/dist/esm/resize-observer-56b7b34f.js +0 -489
  288. package/dist/esm/revo-grid.js +0 -74
  289. package/dist/esm/revogr-clipboard.entry.js +0 -53
  290. package/dist/esm/revogr-filter-panel.entry.js +0 -146
  291. package/dist/index.cjs.js +0 -1
  292. package/dist/index.js +0 -1
  293. package/dist/revo-grid/css-shim-a7f418e3.js +0 -1
  294. package/dist/revo-grid/filter.button-7fddcd53.js +0 -1
  295. package/dist/revo-grid/index-5ffe750d.js +0 -1
  296. package/dist/revo-grid/revo-grid_11.entry.js +0 -1
@@ -0,0 +1,2904 @@
1
+ /**
2
+ * The base implementation of `_.times` without support for iteratee shorthands
3
+ * or max array length checks.
4
+ *
5
+ * @private
6
+ * @param {number} n The number of times to invoke `iteratee`.
7
+ * @param {Function} iteratee The function invoked per iteration.
8
+ * @returns {Array} Returns the array of results.
9
+ */
10
+ function baseTimes(n, iteratee) {
11
+ var index = -1,
12
+ result = Array(n);
13
+
14
+ while (++index < n) {
15
+ result[index] = iteratee(index);
16
+ }
17
+ return result;
18
+ }
19
+
20
+ var _baseTimes = baseTimes;
21
+
22
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
23
+
24
+ function getDefaultExportFromCjs (x) {
25
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
26
+ }
27
+
28
+ function createCommonjsModule(fn, basedir, module) {
29
+ return module = {
30
+ path: basedir,
31
+ exports: {},
32
+ require: function (path, base) {
33
+ return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
34
+ }
35
+ }, fn(module, module.exports), module.exports;
36
+ }
37
+
38
+ function getDefaultExportFromNamespaceIfPresent (n) {
39
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
40
+ }
41
+
42
+ function getDefaultExportFromNamespaceIfNotNamed (n) {
43
+ return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
44
+ }
45
+
46
+ function getAugmentedNamespace(n) {
47
+ if (n.__esModule) return n;
48
+ var a = Object.defineProperty({}, '__esModule', {value: true});
49
+ Object.keys(n).forEach(function (k) {
50
+ var d = Object.getOwnPropertyDescriptor(n, k);
51
+ Object.defineProperty(a, k, d.get ? d : {
52
+ enumerable: true,
53
+ get: function () {
54
+ return n[k];
55
+ }
56
+ });
57
+ });
58
+ return a;
59
+ }
60
+
61
+ function commonjsRequire () {
62
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
63
+ }
64
+
65
+ /** Detect free variable `global` from Node.js. */
66
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
67
+
68
+ var _freeGlobal = freeGlobal;
69
+
70
+ /** Detect free variable `self`. */
71
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
72
+
73
+ /** Used as a reference to the global object. */
74
+ var root = _freeGlobal || freeSelf || Function('return this')();
75
+
76
+ var _root = root;
77
+
78
+ /** Built-in value references. */
79
+ var Symbol = _root.Symbol;
80
+
81
+ var _Symbol = Symbol;
82
+
83
+ /** Used for built-in method references. */
84
+ var objectProto$b = Object.prototype;
85
+
86
+ /** Used to check objects for own properties. */
87
+ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
88
+
89
+ /**
90
+ * Used to resolve the
91
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
92
+ * of values.
93
+ */
94
+ var nativeObjectToString$1 = objectProto$b.toString;
95
+
96
+ /** Built-in value references. */
97
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
98
+
99
+ /**
100
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
101
+ *
102
+ * @private
103
+ * @param {*} value The value to query.
104
+ * @returns {string} Returns the raw `toStringTag`.
105
+ */
106
+ function getRawTag(value) {
107
+ var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
108
+ tag = value[symToStringTag$1];
109
+
110
+ try {
111
+ value[symToStringTag$1] = undefined;
112
+ var unmasked = true;
113
+ } catch (e) {}
114
+
115
+ var result = nativeObjectToString$1.call(value);
116
+ if (unmasked) {
117
+ if (isOwn) {
118
+ value[symToStringTag$1] = tag;
119
+ } else {
120
+ delete value[symToStringTag$1];
121
+ }
122
+ }
123
+ return result;
124
+ }
125
+
126
+ var _getRawTag = getRawTag;
127
+
128
+ /** Used for built-in method references. */
129
+ var objectProto$a = Object.prototype;
130
+
131
+ /**
132
+ * Used to resolve the
133
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
134
+ * of values.
135
+ */
136
+ var nativeObjectToString = objectProto$a.toString;
137
+
138
+ /**
139
+ * Converts `value` to a string using `Object.prototype.toString`.
140
+ *
141
+ * @private
142
+ * @param {*} value The value to convert.
143
+ * @returns {string} Returns the converted string.
144
+ */
145
+ function objectToString(value) {
146
+ return nativeObjectToString.call(value);
147
+ }
148
+
149
+ var _objectToString = objectToString;
150
+
151
+ /** `Object#toString` result references. */
152
+ var nullTag = '[object Null]',
153
+ undefinedTag = '[object Undefined]';
154
+
155
+ /** Built-in value references. */
156
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
157
+
158
+ /**
159
+ * The base implementation of `getTag` without fallbacks for buggy environments.
160
+ *
161
+ * @private
162
+ * @param {*} value The value to query.
163
+ * @returns {string} Returns the `toStringTag`.
164
+ */
165
+ function baseGetTag(value) {
166
+ if (value == null) {
167
+ return value === undefined ? undefinedTag : nullTag;
168
+ }
169
+ return (symToStringTag && symToStringTag in Object(value))
170
+ ? _getRawTag(value)
171
+ : _objectToString(value);
172
+ }
173
+
174
+ var _baseGetTag = baseGetTag;
175
+
176
+ /**
177
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
178
+ * and has a `typeof` result of "object".
179
+ *
180
+ * @static
181
+ * @memberOf _
182
+ * @since 4.0.0
183
+ * @category Lang
184
+ * @param {*} value The value to check.
185
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
186
+ * @example
187
+ *
188
+ * _.isObjectLike({});
189
+ * // => true
190
+ *
191
+ * _.isObjectLike([1, 2, 3]);
192
+ * // => true
193
+ *
194
+ * _.isObjectLike(_.noop);
195
+ * // => false
196
+ *
197
+ * _.isObjectLike(null);
198
+ * // => false
199
+ */
200
+ function isObjectLike(value) {
201
+ return value != null && typeof value == 'object';
202
+ }
203
+
204
+ var isObjectLike_1 = isObjectLike;
205
+
206
+ /** `Object#toString` result references. */
207
+ var argsTag$2 = '[object Arguments]';
208
+
209
+ /**
210
+ * The base implementation of `_.isArguments`.
211
+ *
212
+ * @private
213
+ * @param {*} value The value to check.
214
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
215
+ */
216
+ function baseIsArguments(value) {
217
+ return isObjectLike_1(value) && _baseGetTag(value) == argsTag$2;
218
+ }
219
+
220
+ var _baseIsArguments = baseIsArguments;
221
+
222
+ /** Used for built-in method references. */
223
+ var objectProto$9 = Object.prototype;
224
+
225
+ /** Used to check objects for own properties. */
226
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
227
+
228
+ /** Built-in value references. */
229
+ var propertyIsEnumerable$1 = objectProto$9.propertyIsEnumerable;
230
+
231
+ /**
232
+ * Checks if `value` is likely an `arguments` object.
233
+ *
234
+ * @static
235
+ * @memberOf _
236
+ * @since 0.1.0
237
+ * @category Lang
238
+ * @param {*} value The value to check.
239
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
240
+ * else `false`.
241
+ * @example
242
+ *
243
+ * _.isArguments(function() { return arguments; }());
244
+ * // => true
245
+ *
246
+ * _.isArguments([1, 2, 3]);
247
+ * // => false
248
+ */
249
+ var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
250
+ return isObjectLike_1(value) && hasOwnProperty$7.call(value, 'callee') &&
251
+ !propertyIsEnumerable$1.call(value, 'callee');
252
+ };
253
+
254
+ var isArguments_1 = isArguments;
255
+
256
+ /**
257
+ * Checks if `value` is classified as an `Array` object.
258
+ *
259
+ * @static
260
+ * @memberOf _
261
+ * @since 0.1.0
262
+ * @category Lang
263
+ * @param {*} value The value to check.
264
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
265
+ * @example
266
+ *
267
+ * _.isArray([1, 2, 3]);
268
+ * // => true
269
+ *
270
+ * _.isArray(document.body.children);
271
+ * // => false
272
+ *
273
+ * _.isArray('abc');
274
+ * // => false
275
+ *
276
+ * _.isArray(_.noop);
277
+ * // => false
278
+ */
279
+ var isArray = Array.isArray;
280
+
281
+ var isArray_1 = isArray;
282
+
283
+ /**
284
+ * This method returns `false`.
285
+ *
286
+ * @static
287
+ * @memberOf _
288
+ * @since 4.13.0
289
+ * @category Util
290
+ * @returns {boolean} Returns `false`.
291
+ * @example
292
+ *
293
+ * _.times(2, _.stubFalse);
294
+ * // => [false, false]
295
+ */
296
+ function stubFalse() {
297
+ return false;
298
+ }
299
+
300
+ var stubFalse_1 = stubFalse;
301
+
302
+ var isBuffer_1 = createCommonjsModule(function (module, exports) {
303
+ /** Detect free variable `exports`. */
304
+ var freeExports = 'object' == 'object' && exports && !exports.nodeType && exports;
305
+
306
+ /** Detect free variable `module`. */
307
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
308
+
309
+ /** Detect the popular CommonJS extension `module.exports`. */
310
+ var moduleExports = freeModule && freeModule.exports === freeExports;
311
+
312
+ /** Built-in value references. */
313
+ var Buffer = moduleExports ? _root.Buffer : undefined;
314
+
315
+ /* Built-in method references for those with the same name as other `lodash` methods. */
316
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
317
+
318
+ /**
319
+ * Checks if `value` is a buffer.
320
+ *
321
+ * @static
322
+ * @memberOf _
323
+ * @since 4.3.0
324
+ * @category Lang
325
+ * @param {*} value The value to check.
326
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
327
+ * @example
328
+ *
329
+ * _.isBuffer(new Buffer(2));
330
+ * // => true
331
+ *
332
+ * _.isBuffer(new Uint8Array(2));
333
+ * // => false
334
+ */
335
+ var isBuffer = nativeIsBuffer || stubFalse_1;
336
+
337
+ module.exports = isBuffer;
338
+ });
339
+
340
+ /** Used as references for various `Number` constants. */
341
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
342
+
343
+ /** Used to detect unsigned integer values. */
344
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
345
+
346
+ /**
347
+ * Checks if `value` is a valid array-like index.
348
+ *
349
+ * @private
350
+ * @param {*} value The value to check.
351
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
352
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
353
+ */
354
+ function isIndex(value, length) {
355
+ var type = typeof value;
356
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
357
+
358
+ return !!length &&
359
+ (type == 'number' ||
360
+ (type != 'symbol' && reIsUint.test(value))) &&
361
+ (value > -1 && value % 1 == 0 && value < length);
362
+ }
363
+
364
+ var _isIndex = isIndex;
365
+
366
+ /** Used as references for various `Number` constants. */
367
+ var MAX_SAFE_INTEGER = 9007199254740991;
368
+
369
+ /**
370
+ * Checks if `value` is a valid array-like length.
371
+ *
372
+ * **Note:** This method is loosely based on
373
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
374
+ *
375
+ * @static
376
+ * @memberOf _
377
+ * @since 4.0.0
378
+ * @category Lang
379
+ * @param {*} value The value to check.
380
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
381
+ * @example
382
+ *
383
+ * _.isLength(3);
384
+ * // => true
385
+ *
386
+ * _.isLength(Number.MIN_VALUE);
387
+ * // => false
388
+ *
389
+ * _.isLength(Infinity);
390
+ * // => false
391
+ *
392
+ * _.isLength('3');
393
+ * // => false
394
+ */
395
+ function isLength(value) {
396
+ return typeof value == 'number' &&
397
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
398
+ }
399
+
400
+ var isLength_1 = isLength;
401
+
402
+ /** `Object#toString` result references. */
403
+ var argsTag$1 = '[object Arguments]',
404
+ arrayTag$1 = '[object Array]',
405
+ boolTag$1 = '[object Boolean]',
406
+ dateTag$1 = '[object Date]',
407
+ errorTag$1 = '[object Error]',
408
+ funcTag$1 = '[object Function]',
409
+ mapTag$2 = '[object Map]',
410
+ numberTag$1 = '[object Number]',
411
+ objectTag$2 = '[object Object]',
412
+ regexpTag$1 = '[object RegExp]',
413
+ setTag$2 = '[object Set]',
414
+ stringTag$1 = '[object String]',
415
+ weakMapTag$1 = '[object WeakMap]';
416
+
417
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
418
+ dataViewTag$2 = '[object DataView]',
419
+ float32Tag = '[object Float32Array]',
420
+ float64Tag = '[object Float64Array]',
421
+ int8Tag = '[object Int8Array]',
422
+ int16Tag = '[object Int16Array]',
423
+ int32Tag = '[object Int32Array]',
424
+ uint8Tag = '[object Uint8Array]',
425
+ uint8ClampedTag = '[object Uint8ClampedArray]',
426
+ uint16Tag = '[object Uint16Array]',
427
+ uint32Tag = '[object Uint32Array]';
428
+
429
+ /** Used to identify `toStringTag` values of typed arrays. */
430
+ var typedArrayTags = {};
431
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
432
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
433
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
434
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
435
+ typedArrayTags[uint32Tag] = true;
436
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
437
+ typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
438
+ typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] =
439
+ typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
440
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
441
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
442
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] =
443
+ typedArrayTags[weakMapTag$1] = false;
444
+
445
+ /**
446
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
447
+ *
448
+ * @private
449
+ * @param {*} value The value to check.
450
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
451
+ */
452
+ function baseIsTypedArray(value) {
453
+ return isObjectLike_1(value) &&
454
+ isLength_1(value.length) && !!typedArrayTags[_baseGetTag(value)];
455
+ }
456
+
457
+ var _baseIsTypedArray = baseIsTypedArray;
458
+
459
+ /**
460
+ * The base implementation of `_.unary` without support for storing metadata.
461
+ *
462
+ * @private
463
+ * @param {Function} func The function to cap arguments for.
464
+ * @returns {Function} Returns the new capped function.
465
+ */
466
+ function baseUnary(func) {
467
+ return function(value) {
468
+ return func(value);
469
+ };
470
+ }
471
+
472
+ var _baseUnary = baseUnary;
473
+
474
+ var _nodeUtil = createCommonjsModule(function (module, exports) {
475
+ /** Detect free variable `exports`. */
476
+ var freeExports = 'object' == 'object' && exports && !exports.nodeType && exports;
477
+
478
+ /** Detect free variable `module`. */
479
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
480
+
481
+ /** Detect the popular CommonJS extension `module.exports`. */
482
+ var moduleExports = freeModule && freeModule.exports === freeExports;
483
+
484
+ /** Detect free variable `process` from Node.js. */
485
+ var freeProcess = moduleExports && _freeGlobal.process;
486
+
487
+ /** Used to access faster Node.js helpers. */
488
+ var nodeUtil = (function() {
489
+ try {
490
+ // Use `util.types` for Node.js 10+.
491
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
492
+
493
+ if (types) {
494
+ return types;
495
+ }
496
+
497
+ // Legacy `process.binding('util')` for Node.js < 10.
498
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
499
+ } catch (e) {}
500
+ }());
501
+
502
+ module.exports = nodeUtil;
503
+ });
504
+
505
+ /* Node.js helper references. */
506
+ var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
507
+
508
+ /**
509
+ * Checks if `value` is classified as a typed array.
510
+ *
511
+ * @static
512
+ * @memberOf _
513
+ * @since 3.0.0
514
+ * @category Lang
515
+ * @param {*} value The value to check.
516
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
517
+ * @example
518
+ *
519
+ * _.isTypedArray(new Uint8Array);
520
+ * // => true
521
+ *
522
+ * _.isTypedArray([]);
523
+ * // => false
524
+ */
525
+ var isTypedArray = nodeIsTypedArray ? _baseUnary(nodeIsTypedArray) : _baseIsTypedArray;
526
+
527
+ var isTypedArray_1 = isTypedArray;
528
+
529
+ /** Used for built-in method references. */
530
+ var objectProto$8 = Object.prototype;
531
+
532
+ /** Used to check objects for own properties. */
533
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
534
+
535
+ /**
536
+ * Creates an array of the enumerable property names of the array-like `value`.
537
+ *
538
+ * @private
539
+ * @param {*} value The value to query.
540
+ * @param {boolean} inherited Specify returning inherited property names.
541
+ * @returns {Array} Returns the array of property names.
542
+ */
543
+ function arrayLikeKeys(value, inherited) {
544
+ var isArr = isArray_1(value),
545
+ isArg = !isArr && isArguments_1(value),
546
+ isBuff = !isArr && !isArg && isBuffer_1(value),
547
+ isType = !isArr && !isArg && !isBuff && isTypedArray_1(value),
548
+ skipIndexes = isArr || isArg || isBuff || isType,
549
+ result = skipIndexes ? _baseTimes(value.length, String) : [],
550
+ length = result.length;
551
+
552
+ for (var key in value) {
553
+ if ((inherited || hasOwnProperty$6.call(value, key)) &&
554
+ !(skipIndexes && (
555
+ // Safari 9 has enumerable `arguments.length` in strict mode.
556
+ key == 'length' ||
557
+ // Node.js 0.10 has enumerable non-index properties on buffers.
558
+ (isBuff && (key == 'offset' || key == 'parent')) ||
559
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
560
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
561
+ // Skip index properties.
562
+ _isIndex(key, length)
563
+ ))) {
564
+ result.push(key);
565
+ }
566
+ }
567
+ return result;
568
+ }
569
+
570
+ var _arrayLikeKeys = arrayLikeKeys;
571
+
572
+ /** Used for built-in method references. */
573
+ var objectProto$7 = Object.prototype;
574
+
575
+ /**
576
+ * Checks if `value` is likely a prototype object.
577
+ *
578
+ * @private
579
+ * @param {*} value The value to check.
580
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
581
+ */
582
+ function isPrototype(value) {
583
+ var Ctor = value && value.constructor,
584
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$7;
585
+
586
+ return value === proto;
587
+ }
588
+
589
+ var _isPrototype = isPrototype;
590
+
591
+ /**
592
+ * Creates a unary function that invokes `func` with its argument transformed.
593
+ *
594
+ * @private
595
+ * @param {Function} func The function to wrap.
596
+ * @param {Function} transform The argument transform.
597
+ * @returns {Function} Returns the new function.
598
+ */
599
+ function overArg(func, transform) {
600
+ return function(arg) {
601
+ return func(transform(arg));
602
+ };
603
+ }
604
+
605
+ var _overArg = overArg;
606
+
607
+ /* Built-in method references for those with the same name as other `lodash` methods. */
608
+ var nativeKeys = _overArg(Object.keys, Object);
609
+
610
+ var _nativeKeys = nativeKeys;
611
+
612
+ /** Used for built-in method references. */
613
+ var objectProto$6 = Object.prototype;
614
+
615
+ /** Used to check objects for own properties. */
616
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
617
+
618
+ /**
619
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
620
+ *
621
+ * @private
622
+ * @param {Object} object The object to query.
623
+ * @returns {Array} Returns the array of property names.
624
+ */
625
+ function baseKeys(object) {
626
+ if (!_isPrototype(object)) {
627
+ return _nativeKeys(object);
628
+ }
629
+ var result = [];
630
+ for (var key in Object(object)) {
631
+ if (hasOwnProperty$5.call(object, key) && key != 'constructor') {
632
+ result.push(key);
633
+ }
634
+ }
635
+ return result;
636
+ }
637
+
638
+ var _baseKeys = baseKeys;
639
+
640
+ /**
641
+ * Checks if `value` is the
642
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
643
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
644
+ *
645
+ * @static
646
+ * @memberOf _
647
+ * @since 0.1.0
648
+ * @category Lang
649
+ * @param {*} value The value to check.
650
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
651
+ * @example
652
+ *
653
+ * _.isObject({});
654
+ * // => true
655
+ *
656
+ * _.isObject([1, 2, 3]);
657
+ * // => true
658
+ *
659
+ * _.isObject(_.noop);
660
+ * // => true
661
+ *
662
+ * _.isObject(null);
663
+ * // => false
664
+ */
665
+ function isObject(value) {
666
+ var type = typeof value;
667
+ return value != null && (type == 'object' || type == 'function');
668
+ }
669
+
670
+ var isObject_1 = isObject;
671
+
672
+ /** `Object#toString` result references. */
673
+ var asyncTag = '[object AsyncFunction]',
674
+ funcTag = '[object Function]',
675
+ genTag = '[object GeneratorFunction]',
676
+ proxyTag = '[object Proxy]';
677
+
678
+ /**
679
+ * Checks if `value` is classified as a `Function` object.
680
+ *
681
+ * @static
682
+ * @memberOf _
683
+ * @since 0.1.0
684
+ * @category Lang
685
+ * @param {*} value The value to check.
686
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
687
+ * @example
688
+ *
689
+ * _.isFunction(_);
690
+ * // => true
691
+ *
692
+ * _.isFunction(/abc/);
693
+ * // => false
694
+ */
695
+ function isFunction(value) {
696
+ if (!isObject_1(value)) {
697
+ return false;
698
+ }
699
+ // The use of `Object#toString` avoids issues with the `typeof` operator
700
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
701
+ var tag = _baseGetTag(value);
702
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
703
+ }
704
+
705
+ var isFunction_1 = isFunction;
706
+
707
+ /**
708
+ * Checks if `value` is array-like. A value is considered array-like if it's
709
+ * not a function and has a `value.length` that's an integer greater than or
710
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
711
+ *
712
+ * @static
713
+ * @memberOf _
714
+ * @since 4.0.0
715
+ * @category Lang
716
+ * @param {*} value The value to check.
717
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
718
+ * @example
719
+ *
720
+ * _.isArrayLike([1, 2, 3]);
721
+ * // => true
722
+ *
723
+ * _.isArrayLike(document.body.children);
724
+ * // => true
725
+ *
726
+ * _.isArrayLike('abc');
727
+ * // => true
728
+ *
729
+ * _.isArrayLike(_.noop);
730
+ * // => false
731
+ */
732
+ function isArrayLike(value) {
733
+ return value != null && isLength_1(value.length) && !isFunction_1(value);
734
+ }
735
+
736
+ var isArrayLike_1 = isArrayLike;
737
+
738
+ /**
739
+ * Creates an array of the own enumerable property names of `object`.
740
+ *
741
+ * **Note:** Non-object values are coerced to objects. See the
742
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
743
+ * for more details.
744
+ *
745
+ * @static
746
+ * @since 0.1.0
747
+ * @memberOf _
748
+ * @category Object
749
+ * @param {Object} object The object to query.
750
+ * @returns {Array} Returns the array of property names.
751
+ * @example
752
+ *
753
+ * function Foo() {
754
+ * this.a = 1;
755
+ * this.b = 2;
756
+ * }
757
+ *
758
+ * Foo.prototype.c = 3;
759
+ *
760
+ * _.keys(new Foo);
761
+ * // => ['a', 'b'] (iteration order is not guaranteed)
762
+ *
763
+ * _.keys('hi');
764
+ * // => ['0', '1']
765
+ */
766
+ function keys(object) {
767
+ return isArrayLike_1(object) ? _arrayLikeKeys(object) : _baseKeys(object);
768
+ }
769
+
770
+ var keys_1 = keys;
771
+
772
+ /**
773
+ * This method returns the first argument it receives.
774
+ *
775
+ * @static
776
+ * @since 0.1.0
777
+ * @memberOf _
778
+ * @category Util
779
+ * @param {*} value Any value.
780
+ * @returns {*} Returns `value`.
781
+ * @example
782
+ *
783
+ * var object = { 'a': 1 };
784
+ *
785
+ * console.log(_.identity(object) === object);
786
+ * // => true
787
+ */
788
+ function identity(value) {
789
+ return value;
790
+ }
791
+
792
+ var identity_1 = identity;
793
+
794
+ /**
795
+ * Removes all key-value entries from the list cache.
796
+ *
797
+ * @private
798
+ * @name clear
799
+ * @memberOf ListCache
800
+ */
801
+ function listCacheClear() {
802
+ this.__data__ = [];
803
+ this.size = 0;
804
+ }
805
+
806
+ var _listCacheClear = listCacheClear;
807
+
808
+ /**
809
+ * Performs a
810
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
811
+ * comparison between two values to determine if they are equivalent.
812
+ *
813
+ * @static
814
+ * @memberOf _
815
+ * @since 4.0.0
816
+ * @category Lang
817
+ * @param {*} value The value to compare.
818
+ * @param {*} other The other value to compare.
819
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
820
+ * @example
821
+ *
822
+ * var object = { 'a': 1 };
823
+ * var other = { 'a': 1 };
824
+ *
825
+ * _.eq(object, object);
826
+ * // => true
827
+ *
828
+ * _.eq(object, other);
829
+ * // => false
830
+ *
831
+ * _.eq('a', 'a');
832
+ * // => true
833
+ *
834
+ * _.eq('a', Object('a'));
835
+ * // => false
836
+ *
837
+ * _.eq(NaN, NaN);
838
+ * // => true
839
+ */
840
+ function eq(value, other) {
841
+ return value === other || (value !== value && other !== other);
842
+ }
843
+
844
+ var eq_1 = eq;
845
+
846
+ /**
847
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
848
+ *
849
+ * @private
850
+ * @param {Array} array The array to inspect.
851
+ * @param {*} key The key to search for.
852
+ * @returns {number} Returns the index of the matched value, else `-1`.
853
+ */
854
+ function assocIndexOf(array, key) {
855
+ var length = array.length;
856
+ while (length--) {
857
+ if (eq_1(array[length][0], key)) {
858
+ return length;
859
+ }
860
+ }
861
+ return -1;
862
+ }
863
+
864
+ var _assocIndexOf = assocIndexOf;
865
+
866
+ /** Used for built-in method references. */
867
+ var arrayProto = Array.prototype;
868
+
869
+ /** Built-in value references. */
870
+ var splice = arrayProto.splice;
871
+
872
+ /**
873
+ * Removes `key` and its value from the list cache.
874
+ *
875
+ * @private
876
+ * @name delete
877
+ * @memberOf ListCache
878
+ * @param {string} key The key of the value to remove.
879
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
880
+ */
881
+ function listCacheDelete(key) {
882
+ var data = this.__data__,
883
+ index = _assocIndexOf(data, key);
884
+
885
+ if (index < 0) {
886
+ return false;
887
+ }
888
+ var lastIndex = data.length - 1;
889
+ if (index == lastIndex) {
890
+ data.pop();
891
+ } else {
892
+ splice.call(data, index, 1);
893
+ }
894
+ --this.size;
895
+ return true;
896
+ }
897
+
898
+ var _listCacheDelete = listCacheDelete;
899
+
900
+ /**
901
+ * Gets the list cache value for `key`.
902
+ *
903
+ * @private
904
+ * @name get
905
+ * @memberOf ListCache
906
+ * @param {string} key The key of the value to get.
907
+ * @returns {*} Returns the entry value.
908
+ */
909
+ function listCacheGet(key) {
910
+ var data = this.__data__,
911
+ index = _assocIndexOf(data, key);
912
+
913
+ return index < 0 ? undefined : data[index][1];
914
+ }
915
+
916
+ var _listCacheGet = listCacheGet;
917
+
918
+ /**
919
+ * Checks if a list cache value for `key` exists.
920
+ *
921
+ * @private
922
+ * @name has
923
+ * @memberOf ListCache
924
+ * @param {string} key The key of the entry to check.
925
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
926
+ */
927
+ function listCacheHas(key) {
928
+ return _assocIndexOf(this.__data__, key) > -1;
929
+ }
930
+
931
+ var _listCacheHas = listCacheHas;
932
+
933
+ /**
934
+ * Sets the list cache `key` to `value`.
935
+ *
936
+ * @private
937
+ * @name set
938
+ * @memberOf ListCache
939
+ * @param {string} key The key of the value to set.
940
+ * @param {*} value The value to set.
941
+ * @returns {Object} Returns the list cache instance.
942
+ */
943
+ function listCacheSet(key, value) {
944
+ var data = this.__data__,
945
+ index = _assocIndexOf(data, key);
946
+
947
+ if (index < 0) {
948
+ ++this.size;
949
+ data.push([key, value]);
950
+ } else {
951
+ data[index][1] = value;
952
+ }
953
+ return this;
954
+ }
955
+
956
+ var _listCacheSet = listCacheSet;
957
+
958
+ /**
959
+ * Creates an list cache object.
960
+ *
961
+ * @private
962
+ * @constructor
963
+ * @param {Array} [entries] The key-value pairs to cache.
964
+ */
965
+ function ListCache(entries) {
966
+ var index = -1,
967
+ length = entries == null ? 0 : entries.length;
968
+
969
+ this.clear();
970
+ while (++index < length) {
971
+ var entry = entries[index];
972
+ this.set(entry[0], entry[1]);
973
+ }
974
+ }
975
+
976
+ // Add methods to `ListCache`.
977
+ ListCache.prototype.clear = _listCacheClear;
978
+ ListCache.prototype['delete'] = _listCacheDelete;
979
+ ListCache.prototype.get = _listCacheGet;
980
+ ListCache.prototype.has = _listCacheHas;
981
+ ListCache.prototype.set = _listCacheSet;
982
+
983
+ var _ListCache = ListCache;
984
+
985
+ /**
986
+ * Removes all key-value entries from the stack.
987
+ *
988
+ * @private
989
+ * @name clear
990
+ * @memberOf Stack
991
+ */
992
+ function stackClear() {
993
+ this.__data__ = new _ListCache;
994
+ this.size = 0;
995
+ }
996
+
997
+ var _stackClear = stackClear;
998
+
999
+ /**
1000
+ * Removes `key` and its value from the stack.
1001
+ *
1002
+ * @private
1003
+ * @name delete
1004
+ * @memberOf Stack
1005
+ * @param {string} key The key of the value to remove.
1006
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1007
+ */
1008
+ function stackDelete(key) {
1009
+ var data = this.__data__,
1010
+ result = data['delete'](key);
1011
+
1012
+ this.size = data.size;
1013
+ return result;
1014
+ }
1015
+
1016
+ var _stackDelete = stackDelete;
1017
+
1018
+ /**
1019
+ * Gets the stack value for `key`.
1020
+ *
1021
+ * @private
1022
+ * @name get
1023
+ * @memberOf Stack
1024
+ * @param {string} key The key of the value to get.
1025
+ * @returns {*} Returns the entry value.
1026
+ */
1027
+ function stackGet(key) {
1028
+ return this.__data__.get(key);
1029
+ }
1030
+
1031
+ var _stackGet = stackGet;
1032
+
1033
+ /**
1034
+ * Checks if a stack value for `key` exists.
1035
+ *
1036
+ * @private
1037
+ * @name has
1038
+ * @memberOf Stack
1039
+ * @param {string} key The key of the entry to check.
1040
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1041
+ */
1042
+ function stackHas(key) {
1043
+ return this.__data__.has(key);
1044
+ }
1045
+
1046
+ var _stackHas = stackHas;
1047
+
1048
+ /** Used to detect overreaching core-js shims. */
1049
+ var coreJsData = _root['__core-js_shared__'];
1050
+
1051
+ var _coreJsData = coreJsData;
1052
+
1053
+ /** Used to detect methods masquerading as native. */
1054
+ var maskSrcKey = (function() {
1055
+ var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1056
+ return uid ? ('Symbol(src)_1.' + uid) : '';
1057
+ }());
1058
+
1059
+ /**
1060
+ * Checks if `func` has its source masked.
1061
+ *
1062
+ * @private
1063
+ * @param {Function} func The function to check.
1064
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1065
+ */
1066
+ function isMasked(func) {
1067
+ return !!maskSrcKey && (maskSrcKey in func);
1068
+ }
1069
+
1070
+ var _isMasked = isMasked;
1071
+
1072
+ /** Used for built-in method references. */
1073
+ var funcProto$1 = Function.prototype;
1074
+
1075
+ /** Used to resolve the decompiled source of functions. */
1076
+ var funcToString$1 = funcProto$1.toString;
1077
+
1078
+ /**
1079
+ * Converts `func` to its source code.
1080
+ *
1081
+ * @private
1082
+ * @param {Function} func The function to convert.
1083
+ * @returns {string} Returns the source code.
1084
+ */
1085
+ function toSource(func) {
1086
+ if (func != null) {
1087
+ try {
1088
+ return funcToString$1.call(func);
1089
+ } catch (e) {}
1090
+ try {
1091
+ return (func + '');
1092
+ } catch (e) {}
1093
+ }
1094
+ return '';
1095
+ }
1096
+
1097
+ var _toSource = toSource;
1098
+
1099
+ /**
1100
+ * Used to match `RegExp`
1101
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1102
+ */
1103
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1104
+
1105
+ /** Used to detect host constructors (Safari). */
1106
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
1107
+
1108
+ /** Used for built-in method references. */
1109
+ var funcProto = Function.prototype,
1110
+ objectProto$5 = Object.prototype;
1111
+
1112
+ /** Used to resolve the decompiled source of functions. */
1113
+ var funcToString = funcProto.toString;
1114
+
1115
+ /** Used to check objects for own properties. */
1116
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
1117
+
1118
+ /** Used to detect if a method is native. */
1119
+ var reIsNative = RegExp('^' +
1120
+ funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
1121
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1122
+ );
1123
+
1124
+ /**
1125
+ * The base implementation of `_.isNative` without bad shim checks.
1126
+ *
1127
+ * @private
1128
+ * @param {*} value The value to check.
1129
+ * @returns {boolean} Returns `true` if `value` is a native function,
1130
+ * else `false`.
1131
+ */
1132
+ function baseIsNative(value) {
1133
+ if (!isObject_1(value) || _isMasked(value)) {
1134
+ return false;
1135
+ }
1136
+ var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1137
+ return pattern.test(_toSource(value));
1138
+ }
1139
+
1140
+ var _baseIsNative = baseIsNative;
1141
+
1142
+ /**
1143
+ * Gets the value at `key` of `object`.
1144
+ *
1145
+ * @private
1146
+ * @param {Object} [object] The object to query.
1147
+ * @param {string} key The key of the property to get.
1148
+ * @returns {*} Returns the property value.
1149
+ */
1150
+ function getValue(object, key) {
1151
+ return object == null ? undefined : object[key];
1152
+ }
1153
+
1154
+ var _getValue = getValue;
1155
+
1156
+ /**
1157
+ * Gets the native function at `key` of `object`.
1158
+ *
1159
+ * @private
1160
+ * @param {Object} object The object to query.
1161
+ * @param {string} key The key of the method to get.
1162
+ * @returns {*} Returns the function if it's native, else `undefined`.
1163
+ */
1164
+ function getNative(object, key) {
1165
+ var value = _getValue(object, key);
1166
+ return _baseIsNative(value) ? value : undefined;
1167
+ }
1168
+
1169
+ var _getNative = getNative;
1170
+
1171
+ /* Built-in method references that are verified to be native. */
1172
+ var Map = _getNative(_root, 'Map');
1173
+
1174
+ var _Map = Map;
1175
+
1176
+ /* Built-in method references that are verified to be native. */
1177
+ var nativeCreate = _getNative(Object, 'create');
1178
+
1179
+ var _nativeCreate = nativeCreate;
1180
+
1181
+ /**
1182
+ * Removes all key-value entries from the hash.
1183
+ *
1184
+ * @private
1185
+ * @name clear
1186
+ * @memberOf Hash
1187
+ */
1188
+ function hashClear() {
1189
+ this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1190
+ this.size = 0;
1191
+ }
1192
+
1193
+ var _hashClear = hashClear;
1194
+
1195
+ /**
1196
+ * Removes `key` and its value from the hash.
1197
+ *
1198
+ * @private
1199
+ * @name delete
1200
+ * @memberOf Hash
1201
+ * @param {Object} hash The hash to modify.
1202
+ * @param {string} key The key of the value to remove.
1203
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1204
+ */
1205
+ function hashDelete(key) {
1206
+ var result = this.has(key) && delete this.__data__[key];
1207
+ this.size -= result ? 1 : 0;
1208
+ return result;
1209
+ }
1210
+
1211
+ var _hashDelete = hashDelete;
1212
+
1213
+ /** Used to stand-in for `undefined` hash values. */
1214
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
1215
+
1216
+ /** Used for built-in method references. */
1217
+ var objectProto$4 = Object.prototype;
1218
+
1219
+ /** Used to check objects for own properties. */
1220
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1221
+
1222
+ /**
1223
+ * Gets the hash value for `key`.
1224
+ *
1225
+ * @private
1226
+ * @name get
1227
+ * @memberOf Hash
1228
+ * @param {string} key The key of the value to get.
1229
+ * @returns {*} Returns the entry value.
1230
+ */
1231
+ function hashGet(key) {
1232
+ var data = this.__data__;
1233
+ if (_nativeCreate) {
1234
+ var result = data[key];
1235
+ return result === HASH_UNDEFINED$2 ? undefined : result;
1236
+ }
1237
+ return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
1238
+ }
1239
+
1240
+ var _hashGet = hashGet;
1241
+
1242
+ /** Used for built-in method references. */
1243
+ var objectProto$3 = Object.prototype;
1244
+
1245
+ /** Used to check objects for own properties. */
1246
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
1247
+
1248
+ /**
1249
+ * Checks if a hash value for `key` exists.
1250
+ *
1251
+ * @private
1252
+ * @name has
1253
+ * @memberOf Hash
1254
+ * @param {string} key The key of the entry to check.
1255
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1256
+ */
1257
+ function hashHas(key) {
1258
+ var data = this.__data__;
1259
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
1260
+ }
1261
+
1262
+ var _hashHas = hashHas;
1263
+
1264
+ /** Used to stand-in for `undefined` hash values. */
1265
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1266
+
1267
+ /**
1268
+ * Sets the hash `key` to `value`.
1269
+ *
1270
+ * @private
1271
+ * @name set
1272
+ * @memberOf Hash
1273
+ * @param {string} key The key of the value to set.
1274
+ * @param {*} value The value to set.
1275
+ * @returns {Object} Returns the hash instance.
1276
+ */
1277
+ function hashSet(key, value) {
1278
+ var data = this.__data__;
1279
+ this.size += this.has(key) ? 0 : 1;
1280
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
1281
+ return this;
1282
+ }
1283
+
1284
+ var _hashSet = hashSet;
1285
+
1286
+ /**
1287
+ * Creates a hash object.
1288
+ *
1289
+ * @private
1290
+ * @constructor
1291
+ * @param {Array} [entries] The key-value pairs to cache.
1292
+ */
1293
+ function Hash(entries) {
1294
+ var index = -1,
1295
+ length = entries == null ? 0 : entries.length;
1296
+
1297
+ this.clear();
1298
+ while (++index < length) {
1299
+ var entry = entries[index];
1300
+ this.set(entry[0], entry[1]);
1301
+ }
1302
+ }
1303
+
1304
+ // Add methods to `Hash`.
1305
+ Hash.prototype.clear = _hashClear;
1306
+ Hash.prototype['delete'] = _hashDelete;
1307
+ Hash.prototype.get = _hashGet;
1308
+ Hash.prototype.has = _hashHas;
1309
+ Hash.prototype.set = _hashSet;
1310
+
1311
+ var _Hash = Hash;
1312
+
1313
+ /**
1314
+ * Removes all key-value entries from the map.
1315
+ *
1316
+ * @private
1317
+ * @name clear
1318
+ * @memberOf MapCache
1319
+ */
1320
+ function mapCacheClear() {
1321
+ this.size = 0;
1322
+ this.__data__ = {
1323
+ 'hash': new _Hash,
1324
+ 'map': new (_Map || _ListCache),
1325
+ 'string': new _Hash
1326
+ };
1327
+ }
1328
+
1329
+ var _mapCacheClear = mapCacheClear;
1330
+
1331
+ /**
1332
+ * Checks if `value` is suitable for use as unique object key.
1333
+ *
1334
+ * @private
1335
+ * @param {*} value The value to check.
1336
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1337
+ */
1338
+ function isKeyable(value) {
1339
+ var type = typeof value;
1340
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1341
+ ? (value !== '__proto__')
1342
+ : (value === null);
1343
+ }
1344
+
1345
+ var _isKeyable = isKeyable;
1346
+
1347
+ /**
1348
+ * Gets the data for `map`.
1349
+ *
1350
+ * @private
1351
+ * @param {Object} map The map to query.
1352
+ * @param {string} key The reference key.
1353
+ * @returns {*} Returns the map data.
1354
+ */
1355
+ function getMapData(map, key) {
1356
+ var data = map.__data__;
1357
+ return _isKeyable(key)
1358
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1359
+ : data.map;
1360
+ }
1361
+
1362
+ var _getMapData = getMapData;
1363
+
1364
+ /**
1365
+ * Removes `key` and its value from the map.
1366
+ *
1367
+ * @private
1368
+ * @name delete
1369
+ * @memberOf MapCache
1370
+ * @param {string} key The key of the value to remove.
1371
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1372
+ */
1373
+ function mapCacheDelete(key) {
1374
+ var result = _getMapData(this, key)['delete'](key);
1375
+ this.size -= result ? 1 : 0;
1376
+ return result;
1377
+ }
1378
+
1379
+ var _mapCacheDelete = mapCacheDelete;
1380
+
1381
+ /**
1382
+ * Gets the map value for `key`.
1383
+ *
1384
+ * @private
1385
+ * @name get
1386
+ * @memberOf MapCache
1387
+ * @param {string} key The key of the value to get.
1388
+ * @returns {*} Returns the entry value.
1389
+ */
1390
+ function mapCacheGet(key) {
1391
+ return _getMapData(this, key).get(key);
1392
+ }
1393
+
1394
+ var _mapCacheGet = mapCacheGet;
1395
+
1396
+ /**
1397
+ * Checks if a map value for `key` exists.
1398
+ *
1399
+ * @private
1400
+ * @name has
1401
+ * @memberOf MapCache
1402
+ * @param {string} key The key of the entry to check.
1403
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1404
+ */
1405
+ function mapCacheHas(key) {
1406
+ return _getMapData(this, key).has(key);
1407
+ }
1408
+
1409
+ var _mapCacheHas = mapCacheHas;
1410
+
1411
+ /**
1412
+ * Sets the map `key` to `value`.
1413
+ *
1414
+ * @private
1415
+ * @name set
1416
+ * @memberOf MapCache
1417
+ * @param {string} key The key of the value to set.
1418
+ * @param {*} value The value to set.
1419
+ * @returns {Object} Returns the map cache instance.
1420
+ */
1421
+ function mapCacheSet(key, value) {
1422
+ var data = _getMapData(this, key),
1423
+ size = data.size;
1424
+
1425
+ data.set(key, value);
1426
+ this.size += data.size == size ? 0 : 1;
1427
+ return this;
1428
+ }
1429
+
1430
+ var _mapCacheSet = mapCacheSet;
1431
+
1432
+ /**
1433
+ * Creates a map cache object to store key-value pairs.
1434
+ *
1435
+ * @private
1436
+ * @constructor
1437
+ * @param {Array} [entries] The key-value pairs to cache.
1438
+ */
1439
+ function MapCache(entries) {
1440
+ var index = -1,
1441
+ length = entries == null ? 0 : entries.length;
1442
+
1443
+ this.clear();
1444
+ while (++index < length) {
1445
+ var entry = entries[index];
1446
+ this.set(entry[0], entry[1]);
1447
+ }
1448
+ }
1449
+
1450
+ // Add methods to `MapCache`.
1451
+ MapCache.prototype.clear = _mapCacheClear;
1452
+ MapCache.prototype['delete'] = _mapCacheDelete;
1453
+ MapCache.prototype.get = _mapCacheGet;
1454
+ MapCache.prototype.has = _mapCacheHas;
1455
+ MapCache.prototype.set = _mapCacheSet;
1456
+
1457
+ var _MapCache = MapCache;
1458
+
1459
+ /** Used as the size to enable large array optimizations. */
1460
+ var LARGE_ARRAY_SIZE = 200;
1461
+
1462
+ /**
1463
+ * Sets the stack `key` to `value`.
1464
+ *
1465
+ * @private
1466
+ * @name set
1467
+ * @memberOf Stack
1468
+ * @param {string} key The key of the value to set.
1469
+ * @param {*} value The value to set.
1470
+ * @returns {Object} Returns the stack cache instance.
1471
+ */
1472
+ function stackSet(key, value) {
1473
+ var data = this.__data__;
1474
+ if (data instanceof _ListCache) {
1475
+ var pairs = data.__data__;
1476
+ if (!_Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1477
+ pairs.push([key, value]);
1478
+ this.size = ++data.size;
1479
+ return this;
1480
+ }
1481
+ data = this.__data__ = new _MapCache(pairs);
1482
+ }
1483
+ data.set(key, value);
1484
+ this.size = data.size;
1485
+ return this;
1486
+ }
1487
+
1488
+ var _stackSet = stackSet;
1489
+
1490
+ /**
1491
+ * Creates a stack cache object to store key-value pairs.
1492
+ *
1493
+ * @private
1494
+ * @constructor
1495
+ * @param {Array} [entries] The key-value pairs to cache.
1496
+ */
1497
+ function Stack(entries) {
1498
+ var data = this.__data__ = new _ListCache(entries);
1499
+ this.size = data.size;
1500
+ }
1501
+
1502
+ // Add methods to `Stack`.
1503
+ Stack.prototype.clear = _stackClear;
1504
+ Stack.prototype['delete'] = _stackDelete;
1505
+ Stack.prototype.get = _stackGet;
1506
+ Stack.prototype.has = _stackHas;
1507
+ Stack.prototype.set = _stackSet;
1508
+
1509
+ var _Stack = Stack;
1510
+
1511
+ /** Used to stand-in for `undefined` hash values. */
1512
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1513
+
1514
+ /**
1515
+ * Adds `value` to the array cache.
1516
+ *
1517
+ * @private
1518
+ * @name add
1519
+ * @memberOf SetCache
1520
+ * @alias push
1521
+ * @param {*} value The value to cache.
1522
+ * @returns {Object} Returns the cache instance.
1523
+ */
1524
+ function setCacheAdd(value) {
1525
+ this.__data__.set(value, HASH_UNDEFINED);
1526
+ return this;
1527
+ }
1528
+
1529
+ var _setCacheAdd = setCacheAdd;
1530
+
1531
+ /**
1532
+ * Checks if `value` is in the array cache.
1533
+ *
1534
+ * @private
1535
+ * @name has
1536
+ * @memberOf SetCache
1537
+ * @param {*} value The value to search for.
1538
+ * @returns {number} Returns `true` if `value` is found, else `false`.
1539
+ */
1540
+ function setCacheHas(value) {
1541
+ return this.__data__.has(value);
1542
+ }
1543
+
1544
+ var _setCacheHas = setCacheHas;
1545
+
1546
+ /**
1547
+ *
1548
+ * Creates an array cache object to store unique values.
1549
+ *
1550
+ * @private
1551
+ * @constructor
1552
+ * @param {Array} [values] The values to cache.
1553
+ */
1554
+ function SetCache(values) {
1555
+ var index = -1,
1556
+ length = values == null ? 0 : values.length;
1557
+
1558
+ this.__data__ = new _MapCache;
1559
+ while (++index < length) {
1560
+ this.add(values[index]);
1561
+ }
1562
+ }
1563
+
1564
+ // Add methods to `SetCache`.
1565
+ SetCache.prototype.add = SetCache.prototype.push = _setCacheAdd;
1566
+ SetCache.prototype.has = _setCacheHas;
1567
+
1568
+ var _SetCache = SetCache;
1569
+
1570
+ /**
1571
+ * A specialized version of `_.some` for arrays without support for iteratee
1572
+ * shorthands.
1573
+ *
1574
+ * @private
1575
+ * @param {Array} [array] The array to iterate over.
1576
+ * @param {Function} predicate The function invoked per iteration.
1577
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
1578
+ * else `false`.
1579
+ */
1580
+ function arraySome(array, predicate) {
1581
+ var index = -1,
1582
+ length = array == null ? 0 : array.length;
1583
+
1584
+ while (++index < length) {
1585
+ if (predicate(array[index], index, array)) {
1586
+ return true;
1587
+ }
1588
+ }
1589
+ return false;
1590
+ }
1591
+
1592
+ var _arraySome = arraySome;
1593
+
1594
+ /**
1595
+ * Checks if a `cache` value for `key` exists.
1596
+ *
1597
+ * @private
1598
+ * @param {Object} cache The cache to query.
1599
+ * @param {string} key The key of the entry to check.
1600
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1601
+ */
1602
+ function cacheHas(cache, key) {
1603
+ return cache.has(key);
1604
+ }
1605
+
1606
+ var _cacheHas = cacheHas;
1607
+
1608
+ /** Used to compose bitmasks for value comparisons. */
1609
+ var COMPARE_PARTIAL_FLAG$5 = 1,
1610
+ COMPARE_UNORDERED_FLAG$3 = 2;
1611
+
1612
+ /**
1613
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
1614
+ * partial deep comparisons.
1615
+ *
1616
+ * @private
1617
+ * @param {Array} array The array to compare.
1618
+ * @param {Array} other The other array to compare.
1619
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1620
+ * @param {Function} customizer The function to customize comparisons.
1621
+ * @param {Function} equalFunc The function to determine equivalents of values.
1622
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
1623
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1624
+ */
1625
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1626
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
1627
+ arrLength = array.length,
1628
+ othLength = other.length;
1629
+
1630
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1631
+ return false;
1632
+ }
1633
+ // Check that cyclic values are equal.
1634
+ var arrStacked = stack.get(array);
1635
+ var othStacked = stack.get(other);
1636
+ if (arrStacked && othStacked) {
1637
+ return arrStacked == other && othStacked == array;
1638
+ }
1639
+ var index = -1,
1640
+ result = true,
1641
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new _SetCache : undefined;
1642
+
1643
+ stack.set(array, other);
1644
+ stack.set(other, array);
1645
+
1646
+ // Ignore non-index properties.
1647
+ while (++index < arrLength) {
1648
+ var arrValue = array[index],
1649
+ othValue = other[index];
1650
+
1651
+ if (customizer) {
1652
+ var compared = isPartial
1653
+ ? customizer(othValue, arrValue, index, other, array, stack)
1654
+ : customizer(arrValue, othValue, index, array, other, stack);
1655
+ }
1656
+ if (compared !== undefined) {
1657
+ if (compared) {
1658
+ continue;
1659
+ }
1660
+ result = false;
1661
+ break;
1662
+ }
1663
+ // Recursively compare arrays (susceptible to call stack limits).
1664
+ if (seen) {
1665
+ if (!_arraySome(other, function(othValue, othIndex) {
1666
+ if (!_cacheHas(seen, othIndex) &&
1667
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1668
+ return seen.push(othIndex);
1669
+ }
1670
+ })) {
1671
+ result = false;
1672
+ break;
1673
+ }
1674
+ } else if (!(
1675
+ arrValue === othValue ||
1676
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
1677
+ )) {
1678
+ result = false;
1679
+ break;
1680
+ }
1681
+ }
1682
+ stack['delete'](array);
1683
+ stack['delete'](other);
1684
+ return result;
1685
+ }
1686
+
1687
+ var _equalArrays = equalArrays;
1688
+
1689
+ /** Built-in value references. */
1690
+ var Uint8Array = _root.Uint8Array;
1691
+
1692
+ var _Uint8Array = Uint8Array;
1693
+
1694
+ /**
1695
+ * Converts `map` to its key-value pairs.
1696
+ *
1697
+ * @private
1698
+ * @param {Object} map The map to convert.
1699
+ * @returns {Array} Returns the key-value pairs.
1700
+ */
1701
+ function mapToArray(map) {
1702
+ var index = -1,
1703
+ result = Array(map.size);
1704
+
1705
+ map.forEach(function(value, key) {
1706
+ result[++index] = [key, value];
1707
+ });
1708
+ return result;
1709
+ }
1710
+
1711
+ var _mapToArray = mapToArray;
1712
+
1713
+ /**
1714
+ * Converts `set` to an array of its values.
1715
+ *
1716
+ * @private
1717
+ * @param {Object} set The set to convert.
1718
+ * @returns {Array} Returns the values.
1719
+ */
1720
+ function setToArray(set) {
1721
+ var index = -1,
1722
+ result = Array(set.size);
1723
+
1724
+ set.forEach(function(value) {
1725
+ result[++index] = value;
1726
+ });
1727
+ return result;
1728
+ }
1729
+
1730
+ var _setToArray = setToArray;
1731
+
1732
+ /** Used to compose bitmasks for value comparisons. */
1733
+ var COMPARE_PARTIAL_FLAG$4 = 1,
1734
+ COMPARE_UNORDERED_FLAG$2 = 2;
1735
+
1736
+ /** `Object#toString` result references. */
1737
+ var boolTag = '[object Boolean]',
1738
+ dateTag = '[object Date]',
1739
+ errorTag = '[object Error]',
1740
+ mapTag$1 = '[object Map]',
1741
+ numberTag = '[object Number]',
1742
+ regexpTag = '[object RegExp]',
1743
+ setTag$1 = '[object Set]',
1744
+ stringTag = '[object String]',
1745
+ symbolTag$1 = '[object Symbol]';
1746
+
1747
+ var arrayBufferTag = '[object ArrayBuffer]',
1748
+ dataViewTag$1 = '[object DataView]';
1749
+
1750
+ /** Used to convert symbols to primitives and strings. */
1751
+ var symbolProto$1 = _Symbol ? _Symbol.prototype : undefined,
1752
+ symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
1753
+
1754
+ /**
1755
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
1756
+ * the same `toStringTag`.
1757
+ *
1758
+ * **Note:** This function only supports comparing values with tags of
1759
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1760
+ *
1761
+ * @private
1762
+ * @param {Object} object The object to compare.
1763
+ * @param {Object} other The other object to compare.
1764
+ * @param {string} tag The `toStringTag` of the objects to compare.
1765
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1766
+ * @param {Function} customizer The function to customize comparisons.
1767
+ * @param {Function} equalFunc The function to determine equivalents of values.
1768
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1769
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1770
+ */
1771
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
1772
+ switch (tag) {
1773
+ case dataViewTag$1:
1774
+ if ((object.byteLength != other.byteLength) ||
1775
+ (object.byteOffset != other.byteOffset)) {
1776
+ return false;
1777
+ }
1778
+ object = object.buffer;
1779
+ other = other.buffer;
1780
+
1781
+ case arrayBufferTag:
1782
+ if ((object.byteLength != other.byteLength) ||
1783
+ !equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
1784
+ return false;
1785
+ }
1786
+ return true;
1787
+
1788
+ case boolTag:
1789
+ case dateTag:
1790
+ case numberTag:
1791
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
1792
+ // Invalid dates are coerced to `NaN`.
1793
+ return eq_1(+object, +other);
1794
+
1795
+ case errorTag:
1796
+ return object.name == other.name && object.message == other.message;
1797
+
1798
+ case regexpTag:
1799
+ case stringTag:
1800
+ // Coerce regexes to strings and treat strings, primitives and objects,
1801
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1802
+ // for more details.
1803
+ return object == (other + '');
1804
+
1805
+ case mapTag$1:
1806
+ var convert = _mapToArray;
1807
+
1808
+ case setTag$1:
1809
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1810
+ convert || (convert = _setToArray);
1811
+
1812
+ if (object.size != other.size && !isPartial) {
1813
+ return false;
1814
+ }
1815
+ // Assume cyclic values are equal.
1816
+ var stacked = stack.get(object);
1817
+ if (stacked) {
1818
+ return stacked == other;
1819
+ }
1820
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1821
+
1822
+ // Recursively compare objects (susceptible to call stack limits).
1823
+ stack.set(object, other);
1824
+ var result = _equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1825
+ stack['delete'](object);
1826
+ return result;
1827
+
1828
+ case symbolTag$1:
1829
+ if (symbolValueOf) {
1830
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
1831
+ }
1832
+ }
1833
+ return false;
1834
+ }
1835
+
1836
+ var _equalByTag = equalByTag;
1837
+
1838
+ /**
1839
+ * Appends the elements of `values` to `array`.
1840
+ *
1841
+ * @private
1842
+ * @param {Array} array The array to modify.
1843
+ * @param {Array} values The values to append.
1844
+ * @returns {Array} Returns `array`.
1845
+ */
1846
+ function arrayPush(array, values) {
1847
+ var index = -1,
1848
+ length = values.length,
1849
+ offset = array.length;
1850
+
1851
+ while (++index < length) {
1852
+ array[offset + index] = values[index];
1853
+ }
1854
+ return array;
1855
+ }
1856
+
1857
+ var _arrayPush = arrayPush;
1858
+
1859
+ /**
1860
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1861
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1862
+ * symbols of `object`.
1863
+ *
1864
+ * @private
1865
+ * @param {Object} object The object to query.
1866
+ * @param {Function} keysFunc The function to get the keys of `object`.
1867
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1868
+ * @returns {Array} Returns the array of property names and symbols.
1869
+ */
1870
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1871
+ var result = keysFunc(object);
1872
+ return isArray_1(object) ? result : _arrayPush(result, symbolsFunc(object));
1873
+ }
1874
+
1875
+ var _baseGetAllKeys = baseGetAllKeys;
1876
+
1877
+ /**
1878
+ * A specialized version of `_.filter` for arrays without support for
1879
+ * iteratee shorthands.
1880
+ *
1881
+ * @private
1882
+ * @param {Array} [array] The array to iterate over.
1883
+ * @param {Function} predicate The function invoked per iteration.
1884
+ * @returns {Array} Returns the new filtered array.
1885
+ */
1886
+ function arrayFilter(array, predicate) {
1887
+ var index = -1,
1888
+ length = array == null ? 0 : array.length,
1889
+ resIndex = 0,
1890
+ result = [];
1891
+
1892
+ while (++index < length) {
1893
+ var value = array[index];
1894
+ if (predicate(value, index, array)) {
1895
+ result[resIndex++] = value;
1896
+ }
1897
+ }
1898
+ return result;
1899
+ }
1900
+
1901
+ var _arrayFilter = arrayFilter;
1902
+
1903
+ /**
1904
+ * This method returns a new empty array.
1905
+ *
1906
+ * @static
1907
+ * @memberOf _
1908
+ * @since 4.13.0
1909
+ * @category Util
1910
+ * @returns {Array} Returns the new empty array.
1911
+ * @example
1912
+ *
1913
+ * var arrays = _.times(2, _.stubArray);
1914
+ *
1915
+ * console.log(arrays);
1916
+ * // => [[], []]
1917
+ *
1918
+ * console.log(arrays[0] === arrays[1]);
1919
+ * // => false
1920
+ */
1921
+ function stubArray() {
1922
+ return [];
1923
+ }
1924
+
1925
+ var stubArray_1 = stubArray;
1926
+
1927
+ /** Used for built-in method references. */
1928
+ var objectProto$2 = Object.prototype;
1929
+
1930
+ /** Built-in value references. */
1931
+ var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
1932
+
1933
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1934
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1935
+
1936
+ /**
1937
+ * Creates an array of the own enumerable symbols of `object`.
1938
+ *
1939
+ * @private
1940
+ * @param {Object} object The object to query.
1941
+ * @returns {Array} Returns the array of symbols.
1942
+ */
1943
+ var getSymbols = !nativeGetSymbols ? stubArray_1 : function(object) {
1944
+ if (object == null) {
1945
+ return [];
1946
+ }
1947
+ object = Object(object);
1948
+ return _arrayFilter(nativeGetSymbols(object), function(symbol) {
1949
+ return propertyIsEnumerable.call(object, symbol);
1950
+ });
1951
+ };
1952
+
1953
+ var _getSymbols = getSymbols;
1954
+
1955
+ /**
1956
+ * Creates an array of own enumerable property names and symbols of `object`.
1957
+ *
1958
+ * @private
1959
+ * @param {Object} object The object to query.
1960
+ * @returns {Array} Returns the array of property names and symbols.
1961
+ */
1962
+ function getAllKeys(object) {
1963
+ return _baseGetAllKeys(object, keys_1, _getSymbols);
1964
+ }
1965
+
1966
+ var _getAllKeys = getAllKeys;
1967
+
1968
+ /** Used to compose bitmasks for value comparisons. */
1969
+ var COMPARE_PARTIAL_FLAG$3 = 1;
1970
+
1971
+ /** Used for built-in method references. */
1972
+ var objectProto$1 = Object.prototype;
1973
+
1974
+ /** Used to check objects for own properties. */
1975
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1976
+
1977
+ /**
1978
+ * A specialized version of `baseIsEqualDeep` for objects with support for
1979
+ * partial deep comparisons.
1980
+ *
1981
+ * @private
1982
+ * @param {Object} object The object to compare.
1983
+ * @param {Object} other The other object to compare.
1984
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1985
+ * @param {Function} customizer The function to customize comparisons.
1986
+ * @param {Function} equalFunc The function to determine equivalents of values.
1987
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1988
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1989
+ */
1990
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1991
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
1992
+ objProps = _getAllKeys(object),
1993
+ objLength = objProps.length,
1994
+ othProps = _getAllKeys(other),
1995
+ othLength = othProps.length;
1996
+
1997
+ if (objLength != othLength && !isPartial) {
1998
+ return false;
1999
+ }
2000
+ var index = objLength;
2001
+ while (index--) {
2002
+ var key = objProps[index];
2003
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
2004
+ return false;
2005
+ }
2006
+ }
2007
+ // Check that cyclic values are equal.
2008
+ var objStacked = stack.get(object);
2009
+ var othStacked = stack.get(other);
2010
+ if (objStacked && othStacked) {
2011
+ return objStacked == other && othStacked == object;
2012
+ }
2013
+ var result = true;
2014
+ stack.set(object, other);
2015
+ stack.set(other, object);
2016
+
2017
+ var skipCtor = isPartial;
2018
+ while (++index < objLength) {
2019
+ key = objProps[index];
2020
+ var objValue = object[key],
2021
+ othValue = other[key];
2022
+
2023
+ if (customizer) {
2024
+ var compared = isPartial
2025
+ ? customizer(othValue, objValue, key, other, object, stack)
2026
+ : customizer(objValue, othValue, key, object, other, stack);
2027
+ }
2028
+ // Recursively compare objects (susceptible to call stack limits).
2029
+ if (!(compared === undefined
2030
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
2031
+ : compared
2032
+ )) {
2033
+ result = false;
2034
+ break;
2035
+ }
2036
+ skipCtor || (skipCtor = key == 'constructor');
2037
+ }
2038
+ if (result && !skipCtor) {
2039
+ var objCtor = object.constructor,
2040
+ othCtor = other.constructor;
2041
+
2042
+ // Non `Object` object instances with different constructors are not equal.
2043
+ if (objCtor != othCtor &&
2044
+ ('constructor' in object && 'constructor' in other) &&
2045
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
2046
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
2047
+ result = false;
2048
+ }
2049
+ }
2050
+ stack['delete'](object);
2051
+ stack['delete'](other);
2052
+ return result;
2053
+ }
2054
+
2055
+ var _equalObjects = equalObjects;
2056
+
2057
+ /* Built-in method references that are verified to be native. */
2058
+ var DataView = _getNative(_root, 'DataView');
2059
+
2060
+ var _DataView = DataView;
2061
+
2062
+ /* Built-in method references that are verified to be native. */
2063
+ var Promise$1 = _getNative(_root, 'Promise');
2064
+
2065
+ var _Promise = Promise$1;
2066
+
2067
+ /* Built-in method references that are verified to be native. */
2068
+ var Set = _getNative(_root, 'Set');
2069
+
2070
+ var _Set = Set;
2071
+
2072
+ /* Built-in method references that are verified to be native. */
2073
+ var WeakMap = _getNative(_root, 'WeakMap');
2074
+
2075
+ var _WeakMap = WeakMap;
2076
+
2077
+ /** `Object#toString` result references. */
2078
+ var mapTag = '[object Map]',
2079
+ objectTag$1 = '[object Object]',
2080
+ promiseTag = '[object Promise]',
2081
+ setTag = '[object Set]',
2082
+ weakMapTag = '[object WeakMap]';
2083
+
2084
+ var dataViewTag = '[object DataView]';
2085
+
2086
+ /** Used to detect maps, sets, and weakmaps. */
2087
+ var dataViewCtorString = _toSource(_DataView),
2088
+ mapCtorString = _toSource(_Map),
2089
+ promiseCtorString = _toSource(_Promise),
2090
+ setCtorString = _toSource(_Set),
2091
+ weakMapCtorString = _toSource(_WeakMap);
2092
+
2093
+ /**
2094
+ * Gets the `toStringTag` of `value`.
2095
+ *
2096
+ * @private
2097
+ * @param {*} value The value to query.
2098
+ * @returns {string} Returns the `toStringTag`.
2099
+ */
2100
+ var getTag = _baseGetTag;
2101
+
2102
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2103
+ if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
2104
+ (_Map && getTag(new _Map) != mapTag) ||
2105
+ (_Promise && getTag(_Promise.resolve()) != promiseTag) ||
2106
+ (_Set && getTag(new _Set) != setTag) ||
2107
+ (_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
2108
+ getTag = function(value) {
2109
+ var result = _baseGetTag(value),
2110
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
2111
+ ctorString = Ctor ? _toSource(Ctor) : '';
2112
+
2113
+ if (ctorString) {
2114
+ switch (ctorString) {
2115
+ case dataViewCtorString: return dataViewTag;
2116
+ case mapCtorString: return mapTag;
2117
+ case promiseCtorString: return promiseTag;
2118
+ case setCtorString: return setTag;
2119
+ case weakMapCtorString: return weakMapTag;
2120
+ }
2121
+ }
2122
+ return result;
2123
+ };
2124
+ }
2125
+
2126
+ var _getTag = getTag;
2127
+
2128
+ /** Used to compose bitmasks for value comparisons. */
2129
+ var COMPARE_PARTIAL_FLAG$2 = 1;
2130
+
2131
+ /** `Object#toString` result references. */
2132
+ var argsTag = '[object Arguments]',
2133
+ arrayTag = '[object Array]',
2134
+ objectTag = '[object Object]';
2135
+
2136
+ /** Used for built-in method references. */
2137
+ var objectProto = Object.prototype;
2138
+
2139
+ /** Used to check objects for own properties. */
2140
+ var hasOwnProperty = objectProto.hasOwnProperty;
2141
+
2142
+ /**
2143
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
2144
+ * deep comparisons and tracks traversed objects enabling objects with circular
2145
+ * references to be compared.
2146
+ *
2147
+ * @private
2148
+ * @param {Object} object The object to compare.
2149
+ * @param {Object} other The other object to compare.
2150
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2151
+ * @param {Function} customizer The function to customize comparisons.
2152
+ * @param {Function} equalFunc The function to determine equivalents of values.
2153
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2154
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2155
+ */
2156
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2157
+ var objIsArr = isArray_1(object),
2158
+ othIsArr = isArray_1(other),
2159
+ objTag = objIsArr ? arrayTag : _getTag(object),
2160
+ othTag = othIsArr ? arrayTag : _getTag(other);
2161
+
2162
+ objTag = objTag == argsTag ? objectTag : objTag;
2163
+ othTag = othTag == argsTag ? objectTag : othTag;
2164
+
2165
+ var objIsObj = objTag == objectTag,
2166
+ othIsObj = othTag == objectTag,
2167
+ isSameTag = objTag == othTag;
2168
+
2169
+ if (isSameTag && isBuffer_1(object)) {
2170
+ if (!isBuffer_1(other)) {
2171
+ return false;
2172
+ }
2173
+ objIsArr = true;
2174
+ objIsObj = false;
2175
+ }
2176
+ if (isSameTag && !objIsObj) {
2177
+ stack || (stack = new _Stack);
2178
+ return (objIsArr || isTypedArray_1(object))
2179
+ ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2180
+ : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2181
+ }
2182
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2183
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2184
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2185
+
2186
+ if (objIsWrapped || othIsWrapped) {
2187
+ var objUnwrapped = objIsWrapped ? object.value() : object,
2188
+ othUnwrapped = othIsWrapped ? other.value() : other;
2189
+
2190
+ stack || (stack = new _Stack);
2191
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2192
+ }
2193
+ }
2194
+ if (!isSameTag) {
2195
+ return false;
2196
+ }
2197
+ stack || (stack = new _Stack);
2198
+ return _equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2199
+ }
2200
+
2201
+ var _baseIsEqualDeep = baseIsEqualDeep;
2202
+
2203
+ /**
2204
+ * The base implementation of `_.isEqual` which supports partial comparisons
2205
+ * and tracks traversed objects.
2206
+ *
2207
+ * @private
2208
+ * @param {*} value The value to compare.
2209
+ * @param {*} other The other value to compare.
2210
+ * @param {boolean} bitmask The bitmask flags.
2211
+ * 1 - Unordered comparison
2212
+ * 2 - Partial comparison
2213
+ * @param {Function} [customizer] The function to customize comparisons.
2214
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2215
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2216
+ */
2217
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
2218
+ if (value === other) {
2219
+ return true;
2220
+ }
2221
+ if (value == null || other == null || (!isObjectLike_1(value) && !isObjectLike_1(other))) {
2222
+ return value !== value && other !== other;
2223
+ }
2224
+ return _baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2225
+ }
2226
+
2227
+ var _baseIsEqual = baseIsEqual;
2228
+
2229
+ /** Used to compose bitmasks for value comparisons. */
2230
+ var COMPARE_PARTIAL_FLAG$1 = 1,
2231
+ COMPARE_UNORDERED_FLAG$1 = 2;
2232
+
2233
+ /**
2234
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
2235
+ *
2236
+ * @private
2237
+ * @param {Object} object The object to inspect.
2238
+ * @param {Object} source The object of property values to match.
2239
+ * @param {Array} matchData The property names, values, and compare flags to match.
2240
+ * @param {Function} [customizer] The function to customize comparisons.
2241
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2242
+ */
2243
+ function baseIsMatch(object, source, matchData, customizer) {
2244
+ var index = matchData.length,
2245
+ length = index,
2246
+ noCustomizer = !customizer;
2247
+
2248
+ if (object == null) {
2249
+ return !length;
2250
+ }
2251
+ object = Object(object);
2252
+ while (index--) {
2253
+ var data = matchData[index];
2254
+ if ((noCustomizer && data[2])
2255
+ ? data[1] !== object[data[0]]
2256
+ : !(data[0] in object)
2257
+ ) {
2258
+ return false;
2259
+ }
2260
+ }
2261
+ while (++index < length) {
2262
+ data = matchData[index];
2263
+ var key = data[0],
2264
+ objValue = object[key],
2265
+ srcValue = data[1];
2266
+
2267
+ if (noCustomizer && data[2]) {
2268
+ if (objValue === undefined && !(key in object)) {
2269
+ return false;
2270
+ }
2271
+ } else {
2272
+ var stack = new _Stack;
2273
+ if (customizer) {
2274
+ var result = customizer(objValue, srcValue, key, object, source, stack);
2275
+ }
2276
+ if (!(result === undefined
2277
+ ? _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
2278
+ : result
2279
+ )) {
2280
+ return false;
2281
+ }
2282
+ }
2283
+ }
2284
+ return true;
2285
+ }
2286
+
2287
+ var _baseIsMatch = baseIsMatch;
2288
+
2289
+ /**
2290
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2291
+ *
2292
+ * @private
2293
+ * @param {*} value The value to check.
2294
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
2295
+ * equality comparisons, else `false`.
2296
+ */
2297
+ function isStrictComparable(value) {
2298
+ return value === value && !isObject_1(value);
2299
+ }
2300
+
2301
+ var _isStrictComparable = isStrictComparable;
2302
+
2303
+ /**
2304
+ * Gets the property names, values, and compare flags of `object`.
2305
+ *
2306
+ * @private
2307
+ * @param {Object} object The object to query.
2308
+ * @returns {Array} Returns the match data of `object`.
2309
+ */
2310
+ function getMatchData(object) {
2311
+ var result = keys_1(object),
2312
+ length = result.length;
2313
+
2314
+ while (length--) {
2315
+ var key = result[length],
2316
+ value = object[key];
2317
+
2318
+ result[length] = [key, value, _isStrictComparable(value)];
2319
+ }
2320
+ return result;
2321
+ }
2322
+
2323
+ var _getMatchData = getMatchData;
2324
+
2325
+ /**
2326
+ * A specialized version of `matchesProperty` for source values suitable
2327
+ * for strict equality comparisons, i.e. `===`.
2328
+ *
2329
+ * @private
2330
+ * @param {string} key The key of the property to get.
2331
+ * @param {*} srcValue The value to match.
2332
+ * @returns {Function} Returns the new spec function.
2333
+ */
2334
+ function matchesStrictComparable(key, srcValue) {
2335
+ return function(object) {
2336
+ if (object == null) {
2337
+ return false;
2338
+ }
2339
+ return object[key] === srcValue &&
2340
+ (srcValue !== undefined || (key in Object(object)));
2341
+ };
2342
+ }
2343
+
2344
+ var _matchesStrictComparable = matchesStrictComparable;
2345
+
2346
+ /**
2347
+ * The base implementation of `_.matches` which doesn't clone `source`.
2348
+ *
2349
+ * @private
2350
+ * @param {Object} source The object of property values to match.
2351
+ * @returns {Function} Returns the new spec function.
2352
+ */
2353
+ function baseMatches(source) {
2354
+ var matchData = _getMatchData(source);
2355
+ if (matchData.length == 1 && matchData[0][2]) {
2356
+ return _matchesStrictComparable(matchData[0][0], matchData[0][1]);
2357
+ }
2358
+ return function(object) {
2359
+ return object === source || _baseIsMatch(object, source, matchData);
2360
+ };
2361
+ }
2362
+
2363
+ var _baseMatches = baseMatches;
2364
+
2365
+ /** `Object#toString` result references. */
2366
+ var symbolTag = '[object Symbol]';
2367
+
2368
+ /**
2369
+ * Checks if `value` is classified as a `Symbol` primitive or object.
2370
+ *
2371
+ * @static
2372
+ * @memberOf _
2373
+ * @since 4.0.0
2374
+ * @category Lang
2375
+ * @param {*} value The value to check.
2376
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
2377
+ * @example
2378
+ *
2379
+ * _.isSymbol(Symbol.iterator);
2380
+ * // => true
2381
+ *
2382
+ * _.isSymbol('abc');
2383
+ * // => false
2384
+ */
2385
+ function isSymbol(value) {
2386
+ return typeof value == 'symbol' ||
2387
+ (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
2388
+ }
2389
+
2390
+ var isSymbol_1 = isSymbol;
2391
+
2392
+ /** Used to match property names within property paths. */
2393
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
2394
+ reIsPlainProp = /^\w*$/;
2395
+
2396
+ /**
2397
+ * Checks if `value` is a property name and not a property path.
2398
+ *
2399
+ * @private
2400
+ * @param {*} value The value to check.
2401
+ * @param {Object} [object] The object to query keys on.
2402
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
2403
+ */
2404
+ function isKey(value, object) {
2405
+ if (isArray_1(value)) {
2406
+ return false;
2407
+ }
2408
+ var type = typeof value;
2409
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
2410
+ value == null || isSymbol_1(value)) {
2411
+ return true;
2412
+ }
2413
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
2414
+ (object != null && value in Object(object));
2415
+ }
2416
+
2417
+ var _isKey = isKey;
2418
+
2419
+ /** Error message constants. */
2420
+ var FUNC_ERROR_TEXT = 'Expected a function';
2421
+
2422
+ /**
2423
+ * Creates a function that memoizes the result of `func`. If `resolver` is
2424
+ * provided, it determines the cache key for storing the result based on the
2425
+ * arguments provided to the memoized function. By default, the first argument
2426
+ * provided to the memoized function is used as the map cache key. The `func`
2427
+ * is invoked with the `this` binding of the memoized function.
2428
+ *
2429
+ * **Note:** The cache is exposed as the `cache` property on the memoized
2430
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
2431
+ * constructor with one whose instances implement the
2432
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2433
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2434
+ *
2435
+ * @static
2436
+ * @memberOf _
2437
+ * @since 0.1.0
2438
+ * @category Function
2439
+ * @param {Function} func The function to have its output memoized.
2440
+ * @param {Function} [resolver] The function to resolve the cache key.
2441
+ * @returns {Function} Returns the new memoized function.
2442
+ * @example
2443
+ *
2444
+ * var object = { 'a': 1, 'b': 2 };
2445
+ * var other = { 'c': 3, 'd': 4 };
2446
+ *
2447
+ * var values = _.memoize(_.values);
2448
+ * values(object);
2449
+ * // => [1, 2]
2450
+ *
2451
+ * values(other);
2452
+ * // => [3, 4]
2453
+ *
2454
+ * object.a = 2;
2455
+ * values(object);
2456
+ * // => [1, 2]
2457
+ *
2458
+ * // Modify the result cache.
2459
+ * values.cache.set(object, ['a', 'b']);
2460
+ * values(object);
2461
+ * // => ['a', 'b']
2462
+ *
2463
+ * // Replace `_.memoize.Cache`.
2464
+ * _.memoize.Cache = WeakMap;
2465
+ */
2466
+ function memoize(func, resolver) {
2467
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2468
+ throw new TypeError(FUNC_ERROR_TEXT);
2469
+ }
2470
+ var memoized = function() {
2471
+ var args = arguments,
2472
+ key = resolver ? resolver.apply(this, args) : args[0],
2473
+ cache = memoized.cache;
2474
+
2475
+ if (cache.has(key)) {
2476
+ return cache.get(key);
2477
+ }
2478
+ var result = func.apply(this, args);
2479
+ memoized.cache = cache.set(key, result) || cache;
2480
+ return result;
2481
+ };
2482
+ memoized.cache = new (memoize.Cache || _MapCache);
2483
+ return memoized;
2484
+ }
2485
+
2486
+ // Expose `MapCache`.
2487
+ memoize.Cache = _MapCache;
2488
+
2489
+ var memoize_1 = memoize;
2490
+
2491
+ /** Used as the maximum memoize cache size. */
2492
+ var MAX_MEMOIZE_SIZE = 500;
2493
+
2494
+ /**
2495
+ * A specialized version of `_.memoize` which clears the memoized function's
2496
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2497
+ *
2498
+ * @private
2499
+ * @param {Function} func The function to have its output memoized.
2500
+ * @returns {Function} Returns the new memoized function.
2501
+ */
2502
+ function memoizeCapped(func) {
2503
+ var result = memoize_1(func, function(key) {
2504
+ if (cache.size === MAX_MEMOIZE_SIZE) {
2505
+ cache.clear();
2506
+ }
2507
+ return key;
2508
+ });
2509
+
2510
+ var cache = result.cache;
2511
+ return result;
2512
+ }
2513
+
2514
+ var _memoizeCapped = memoizeCapped;
2515
+
2516
+ /** Used to match property names within property paths. */
2517
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2518
+
2519
+ /** Used to match backslashes in property paths. */
2520
+ var reEscapeChar = /\\(\\)?/g;
2521
+
2522
+ /**
2523
+ * Converts `string` to a property path array.
2524
+ *
2525
+ * @private
2526
+ * @param {string} string The string to convert.
2527
+ * @returns {Array} Returns the property path array.
2528
+ */
2529
+ var stringToPath = _memoizeCapped(function(string) {
2530
+ var result = [];
2531
+ if (string.charCodeAt(0) === 46 /* . */) {
2532
+ result.push('');
2533
+ }
2534
+ string.replace(rePropName, function(match, number, quote, subString) {
2535
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2536
+ });
2537
+ return result;
2538
+ });
2539
+
2540
+ var _stringToPath = stringToPath;
2541
+
2542
+ /**
2543
+ * A specialized version of `_.map` for arrays without support for iteratee
2544
+ * shorthands.
2545
+ *
2546
+ * @private
2547
+ * @param {Array} [array] The array to iterate over.
2548
+ * @param {Function} iteratee The function invoked per iteration.
2549
+ * @returns {Array} Returns the new mapped array.
2550
+ */
2551
+ function arrayMap(array, iteratee) {
2552
+ var index = -1,
2553
+ length = array == null ? 0 : array.length,
2554
+ result = Array(length);
2555
+
2556
+ while (++index < length) {
2557
+ result[index] = iteratee(array[index], index, array);
2558
+ }
2559
+ return result;
2560
+ }
2561
+
2562
+ var _arrayMap = arrayMap;
2563
+
2564
+ /** Used as references for various `Number` constants. */
2565
+ var INFINITY$1 = 1 / 0;
2566
+
2567
+ /** Used to convert symbols to primitives and strings. */
2568
+ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
2569
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
2570
+
2571
+ /**
2572
+ * The base implementation of `_.toString` which doesn't convert nullish
2573
+ * values to empty strings.
2574
+ *
2575
+ * @private
2576
+ * @param {*} value The value to process.
2577
+ * @returns {string} Returns the string.
2578
+ */
2579
+ function baseToString(value) {
2580
+ // Exit early for strings to avoid a performance hit in some environments.
2581
+ if (typeof value == 'string') {
2582
+ return value;
2583
+ }
2584
+ if (isArray_1(value)) {
2585
+ // Recursively convert values (susceptible to call stack limits).
2586
+ return _arrayMap(value, baseToString) + '';
2587
+ }
2588
+ if (isSymbol_1(value)) {
2589
+ return symbolToString ? symbolToString.call(value) : '';
2590
+ }
2591
+ var result = (value + '');
2592
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2593
+ }
2594
+
2595
+ var _baseToString = baseToString;
2596
+
2597
+ /**
2598
+ * Converts `value` to a string. An empty string is returned for `null`
2599
+ * and `undefined` values. The sign of `-0` is preserved.
2600
+ *
2601
+ * @static
2602
+ * @memberOf _
2603
+ * @since 4.0.0
2604
+ * @category Lang
2605
+ * @param {*} value The value to convert.
2606
+ * @returns {string} Returns the converted string.
2607
+ * @example
2608
+ *
2609
+ * _.toString(null);
2610
+ * // => ''
2611
+ *
2612
+ * _.toString(-0);
2613
+ * // => '-0'
2614
+ *
2615
+ * _.toString([1, 2, 3]);
2616
+ * // => '1,2,3'
2617
+ */
2618
+ function toString(value) {
2619
+ return value == null ? '' : _baseToString(value);
2620
+ }
2621
+
2622
+ var toString_1 = toString;
2623
+
2624
+ /**
2625
+ * Casts `value` to a path array if it's not one.
2626
+ *
2627
+ * @private
2628
+ * @param {*} value The value to inspect.
2629
+ * @param {Object} [object] The object to query keys on.
2630
+ * @returns {Array} Returns the cast property path array.
2631
+ */
2632
+ function castPath(value, object) {
2633
+ if (isArray_1(value)) {
2634
+ return value;
2635
+ }
2636
+ return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2637
+ }
2638
+
2639
+ var _castPath = castPath;
2640
+
2641
+ /** Used as references for various `Number` constants. */
2642
+ var INFINITY = 1 / 0;
2643
+
2644
+ /**
2645
+ * Converts `value` to a string key if it's not a string or symbol.
2646
+ *
2647
+ * @private
2648
+ * @param {*} value The value to inspect.
2649
+ * @returns {string|symbol} Returns the key.
2650
+ */
2651
+ function toKey(value) {
2652
+ if (typeof value == 'string' || isSymbol_1(value)) {
2653
+ return value;
2654
+ }
2655
+ var result = (value + '');
2656
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2657
+ }
2658
+
2659
+ var _toKey = toKey;
2660
+
2661
+ /**
2662
+ * The base implementation of `_.get` without support for default values.
2663
+ *
2664
+ * @private
2665
+ * @param {Object} object The object to query.
2666
+ * @param {Array|string} path The path of the property to get.
2667
+ * @returns {*} Returns the resolved value.
2668
+ */
2669
+ function baseGet(object, path) {
2670
+ path = _castPath(path, object);
2671
+
2672
+ var index = 0,
2673
+ length = path.length;
2674
+
2675
+ while (object != null && index < length) {
2676
+ object = object[_toKey(path[index++])];
2677
+ }
2678
+ return (index && index == length) ? object : undefined;
2679
+ }
2680
+
2681
+ var _baseGet = baseGet;
2682
+
2683
+ /**
2684
+ * Gets the value at `path` of `object`. If the resolved value is
2685
+ * `undefined`, the `defaultValue` is returned in its place.
2686
+ *
2687
+ * @static
2688
+ * @memberOf _
2689
+ * @since 3.7.0
2690
+ * @category Object
2691
+ * @param {Object} object The object to query.
2692
+ * @param {Array|string} path The path of the property to get.
2693
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2694
+ * @returns {*} Returns the resolved value.
2695
+ * @example
2696
+ *
2697
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2698
+ *
2699
+ * _.get(object, 'a[0].b.c');
2700
+ * // => 3
2701
+ *
2702
+ * _.get(object, ['a', '0', 'b', 'c']);
2703
+ * // => 3
2704
+ *
2705
+ * _.get(object, 'a.b.c', 'default');
2706
+ * // => 'default'
2707
+ */
2708
+ function get(object, path, defaultValue) {
2709
+ var result = object == null ? undefined : _baseGet(object, path);
2710
+ return result === undefined ? defaultValue : result;
2711
+ }
2712
+
2713
+ var get_1 = get;
2714
+
2715
+ /**
2716
+ * The base implementation of `_.hasIn` without support for deep paths.
2717
+ *
2718
+ * @private
2719
+ * @param {Object} [object] The object to query.
2720
+ * @param {Array|string} key The key to check.
2721
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
2722
+ */
2723
+ function baseHasIn(object, key) {
2724
+ return object != null && key in Object(object);
2725
+ }
2726
+
2727
+ var _baseHasIn = baseHasIn;
2728
+
2729
+ /**
2730
+ * Checks if `path` exists on `object`.
2731
+ *
2732
+ * @private
2733
+ * @param {Object} object The object to query.
2734
+ * @param {Array|string} path The path to check.
2735
+ * @param {Function} hasFunc The function to check properties.
2736
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2737
+ */
2738
+ function hasPath(object, path, hasFunc) {
2739
+ path = _castPath(path, object);
2740
+
2741
+ var index = -1,
2742
+ length = path.length,
2743
+ result = false;
2744
+
2745
+ while (++index < length) {
2746
+ var key = _toKey(path[index]);
2747
+ if (!(result = object != null && hasFunc(object, key))) {
2748
+ break;
2749
+ }
2750
+ object = object[key];
2751
+ }
2752
+ if (result || ++index != length) {
2753
+ return result;
2754
+ }
2755
+ length = object == null ? 0 : object.length;
2756
+ return !!length && isLength_1(length) && _isIndex(key, length) &&
2757
+ (isArray_1(object) || isArguments_1(object));
2758
+ }
2759
+
2760
+ var _hasPath = hasPath;
2761
+
2762
+ /**
2763
+ * Checks if `path` is a direct or inherited property of `object`.
2764
+ *
2765
+ * @static
2766
+ * @memberOf _
2767
+ * @since 4.0.0
2768
+ * @category Object
2769
+ * @param {Object} object The object to query.
2770
+ * @param {Array|string} path The path to check.
2771
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2772
+ * @example
2773
+ *
2774
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2775
+ *
2776
+ * _.hasIn(object, 'a');
2777
+ * // => true
2778
+ *
2779
+ * _.hasIn(object, 'a.b');
2780
+ * // => true
2781
+ *
2782
+ * _.hasIn(object, ['a', 'b']);
2783
+ * // => true
2784
+ *
2785
+ * _.hasIn(object, 'b');
2786
+ * // => false
2787
+ */
2788
+ function hasIn(object, path) {
2789
+ return object != null && _hasPath(object, path, _baseHasIn);
2790
+ }
2791
+
2792
+ var hasIn_1 = hasIn;
2793
+
2794
+ /** Used to compose bitmasks for value comparisons. */
2795
+ var COMPARE_PARTIAL_FLAG = 1,
2796
+ COMPARE_UNORDERED_FLAG = 2;
2797
+
2798
+ /**
2799
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2800
+ *
2801
+ * @private
2802
+ * @param {string} path The path of the property to get.
2803
+ * @param {*} srcValue The value to match.
2804
+ * @returns {Function} Returns the new spec function.
2805
+ */
2806
+ function baseMatchesProperty(path, srcValue) {
2807
+ if (_isKey(path) && _isStrictComparable(srcValue)) {
2808
+ return _matchesStrictComparable(_toKey(path), srcValue);
2809
+ }
2810
+ return function(object) {
2811
+ var objValue = get_1(object, path);
2812
+ return (objValue === undefined && objValue === srcValue)
2813
+ ? hasIn_1(object, path)
2814
+ : _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2815
+ };
2816
+ }
2817
+
2818
+ var _baseMatchesProperty = baseMatchesProperty;
2819
+
2820
+ /**
2821
+ * The base implementation of `_.property` without support for deep paths.
2822
+ *
2823
+ * @private
2824
+ * @param {string} key The key of the property to get.
2825
+ * @returns {Function} Returns the new accessor function.
2826
+ */
2827
+ function baseProperty(key) {
2828
+ return function(object) {
2829
+ return object == null ? undefined : object[key];
2830
+ };
2831
+ }
2832
+
2833
+ var _baseProperty = baseProperty;
2834
+
2835
+ /**
2836
+ * A specialized version of `baseProperty` which supports deep paths.
2837
+ *
2838
+ * @private
2839
+ * @param {Array|string} path The path of the property to get.
2840
+ * @returns {Function} Returns the new accessor function.
2841
+ */
2842
+ function basePropertyDeep(path) {
2843
+ return function(object) {
2844
+ return _baseGet(object, path);
2845
+ };
2846
+ }
2847
+
2848
+ var _basePropertyDeep = basePropertyDeep;
2849
+
2850
+ /**
2851
+ * Creates a function that returns the value at `path` of a given object.
2852
+ *
2853
+ * @static
2854
+ * @memberOf _
2855
+ * @since 2.4.0
2856
+ * @category Util
2857
+ * @param {Array|string} path The path of the property to get.
2858
+ * @returns {Function} Returns the new accessor function.
2859
+ * @example
2860
+ *
2861
+ * var objects = [
2862
+ * { 'a': { 'b': 2 } },
2863
+ * { 'a': { 'b': 1 } }
2864
+ * ];
2865
+ *
2866
+ * _.map(objects, _.property('a.b'));
2867
+ * // => [2, 1]
2868
+ *
2869
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2870
+ * // => [1, 2]
2871
+ */
2872
+ function property(path) {
2873
+ return _isKey(path) ? _baseProperty(_toKey(path)) : _basePropertyDeep(path);
2874
+ }
2875
+
2876
+ var property_1 = property;
2877
+
2878
+ /**
2879
+ * The base implementation of `_.iteratee`.
2880
+ *
2881
+ * @private
2882
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
2883
+ * @returns {Function} Returns the iteratee.
2884
+ */
2885
+ function baseIteratee(value) {
2886
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
2887
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
2888
+ if (typeof value == 'function') {
2889
+ return value;
2890
+ }
2891
+ if (value == null) {
2892
+ return identity_1;
2893
+ }
2894
+ if (typeof value == 'object') {
2895
+ return isArray_1(value)
2896
+ ? _baseMatchesProperty(value[0], value[1])
2897
+ : _baseMatches(value);
2898
+ }
2899
+ return property_1(value);
2900
+ }
2901
+
2902
+ var _baseIteratee = baseIteratee;
2903
+
2904
+ export { _baseIteratee as _, isArray_1 as a, _arrayMap as b, _baseProperty as c, _getTag as d, _baseKeys as e, identity_1 as f, isSymbol_1 as g, isObject_1 as h, isArrayLike_1 as i, _isIndex as j, keys_1 as k, eq_1 as l, createCommonjsModule as m, commonjsGlobal as n, isObjectLike_1 as o, _baseGetTag as p, _root as q, _getNative as r };