lsp-grid 1.0.0

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