@krainovsd/js-helpers 0.3.2 → 0.3.3

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 (233) hide show
  1. package/lib/cjs/index.js +7 -2040
  2. package/lib/cjs/index.js.map +1 -1
  3. package/lib/esm/lib/api/core.js +3 -3
  4. package/lib/esm/lib/api/middlewares/auth-middleware.js +3 -3
  5. package/lib/esm/lib/api/token-request.js +2 -2
  6. package/lib/esm/lib/browser/download-file.js +3 -3
  7. package/lib/esm/lib/date/date-difference.js +1 -1
  8. package/lib/esm/lib/date/date-format.js +1 -1
  9. package/lib/esm/lib/date/is-today.js +2 -2
  10. package/lib/esm/lib/date/is-tomorrow.js +2 -2
  11. package/lib/esm/lib/date/is-yesterday.js +2 -2
  12. package/lib/esm/lib/utils/field-view-format.js +1 -1
  13. package/lib/esm/lib/utils/get-by-path.js +1 -1
  14. package/lib/esm/lib/utils/set-by-path.js +1 -1
  15. package/lib/index.d.ts +215 -0
  16. package/package.json +13 -9
  17. package/lib/esm/_virtual/_commonjsHelpers.js +0 -8
  18. package/lib/esm/_virtual/_commonjsHelpers.js.map +0 -1
  19. package/lib/esm/_virtual/dayjs.min.js +0 -8
  20. package/lib/esm/_virtual/dayjs.min.js.map +0 -1
  21. package/lib/esm/_virtual/dayjs.min2.js +0 -4
  22. package/lib/esm/_virtual/dayjs.min2.js.map +0 -1
  23. package/lib/esm/_virtual/get.js +0 -8
  24. package/lib/esm/_virtual/get.js.map +0 -1
  25. package/lib/esm/_virtual/isToday.js +0 -8
  26. package/lib/esm/_virtual/isToday.js.map +0 -1
  27. package/lib/esm/_virtual/isToday2.js +0 -4
  28. package/lib/esm/_virtual/isToday2.js.map +0 -1
  29. package/lib/esm/_virtual/isTomorrow.js +0 -8
  30. package/lib/esm/_virtual/isTomorrow.js.map +0 -1
  31. package/lib/esm/_virtual/isTomorrow2.js +0 -4
  32. package/lib/esm/_virtual/isTomorrow2.js.map +0 -1
  33. package/lib/esm/_virtual/isYesterday.js +0 -8
  34. package/lib/esm/_virtual/isYesterday.js.map +0 -1
  35. package/lib/esm/_virtual/isYesterday2.js +0 -4
  36. package/lib/esm/_virtual/isYesterday2.js.map +0 -1
  37. package/lib/esm/_virtual/set.js +0 -8
  38. package/lib/esm/_virtual/set.js.map +0 -1
  39. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -17
  40. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js.map +0 -1
  41. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js +0 -17
  42. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isToday.js.map +0 -1
  43. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isTomorrow.js +0 -17
  44. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isTomorrow.js.map +0 -1
  45. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isYesterday.js +0 -17
  46. package/lib/esm/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isYesterday.js.map +0 -1
  47. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js +0 -49
  48. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js.map +0 -1
  49. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js +0 -49
  50. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js.map +0 -1
  51. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js +0 -21
  52. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js.map +0 -1
  53. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js +0 -49
  54. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js.map +0 -1
  55. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +0 -19
  56. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js.map +0 -1
  57. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js +0 -33
  58. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js.map +0 -1
  59. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js +0 -42
  60. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js.map +0 -1
  61. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js +0 -34
  62. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js.map +0 -1
  63. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js +0 -38
  64. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js.map +0 -1
  65. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js +0 -38
  66. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js.map +0 -1
  67. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +0 -43
  68. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js.map +0 -1
  69. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js +0 -63
  70. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js.map +0 -1
  71. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js +0 -68
  72. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSet.js.map +0 -1
  73. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js +0 -53
  74. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js.map +0 -1
  75. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js +0 -37
  76. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_castPath.js.map +0 -1
  77. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js +0 -19
  78. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js.map +0 -1
  79. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js +0 -24
  80. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js.map +0 -1
  81. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +0 -18
  82. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js.map +0 -1
  83. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js +0 -31
  84. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js.map +0 -1
  85. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js +0 -31
  86. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js.map +0 -1
  87. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +0 -59
  88. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js.map +0 -1
  89. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js +0 -25
  90. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js.map +0 -1
  91. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js +0 -28
  92. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js.map +0 -1
  93. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js +0 -29
  94. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js.map +0 -1
  95. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js +0 -43
  96. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js.map +0 -1
  97. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js +0 -36
  98. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js.map +0 -1
  99. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js +0 -36
  100. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js.map +0 -1
  101. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js +0 -37
  102. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js.map +0 -1
  103. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js +0 -43
  104. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKey.js.map +0 -1
  105. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js +0 -27
  106. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js.map +0 -1
  107. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js +0 -33
  108. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js.map +0 -1
  109. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js +0 -25
  110. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js.map +0 -1
  111. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js +0 -48
  112. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js.map +0 -1
  113. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js +0 -32
  114. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js.map +0 -1
  115. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js +0 -29
  116. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js.map +0 -1
  117. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js +0 -39
  118. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js.map +0 -1
  119. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js +0 -36
  120. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js.map +0 -1
  121. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js +0 -31
  122. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js.map +0 -1
  123. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js +0 -29
  124. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js.map +0 -1
  125. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js +0 -29
  126. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js.map +0 -1
  127. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js +0 -35
  128. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js.map +0 -1
  129. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js +0 -39
  130. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_memoizeCapped.js.map +0 -1
  131. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js +0 -19
  132. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js.map +0 -1
  133. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +0 -34
  134. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js.map +0 -1
  135. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +0 -22
  136. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js.map +0 -1
  137. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js +0 -40
  138. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stringToPath.js.map +0 -1
  139. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js +0 -34
  140. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toKey.js.map +0 -1
  141. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js +0 -38
  142. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js.map +0 -1
  143. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js +0 -49
  144. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js.map +0 -1
  145. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js +0 -46
  146. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js.map +0 -1
  147. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js +0 -38
  148. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js.map +0 -1
  149. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js +0 -51
  150. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js.map +0 -1
  151. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +0 -43
  152. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js.map +0 -1
  153. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +0 -41
  154. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js.map +0 -1
  155. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +0 -43
  156. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js.map +0 -1
  157. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js +0 -86
  158. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js.map +0 -1
  159. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js +0 -48
  160. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js.map +0 -1
  161. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js +0 -41
  162. package/lib/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js.map +0 -1
  163. package/tmp/constants/api.d.ts +0 -4
  164. package/tmp/constants/colors.d.ts +0 -6
  165. package/tmp/constants/date.d.ts +0 -8
  166. package/tmp/constants/environment.d.ts +0 -6
  167. package/tmp/constants/fields.d.ts +0 -8
  168. package/tmp/constants/index.d.ts +0 -5
  169. package/tmp/index.d.ts +0 -3
  170. package/tmp/lib/api/core.d.ts +0 -19
  171. package/tmp/lib/api/index.d.ts +0 -1
  172. package/tmp/lib/api/middlewares/auth-middleware.d.ts +0 -2
  173. package/tmp/lib/api/middlewares/console-middleware.d.ts +0 -2
  174. package/tmp/lib/api/middlewares/index.d.ts +0 -2
  175. package/tmp/lib/api/token-request.d.ts +0 -2
  176. package/tmp/lib/browser/download-file.d.ts +0 -7
  177. package/tmp/lib/browser/download-json.d.ts +0 -1
  178. package/tmp/lib/browser/index.d.ts +0 -3
  179. package/tmp/lib/browser/read-file.d.ts +0 -1
  180. package/tmp/lib/colors/get-color-format.d.ts +0 -1
  181. package/tmp/lib/colors/index.d.ts +0 -6
  182. package/tmp/lib/colors/take-opacity-colors.d.ts +0 -1
  183. package/tmp/lib/colors/transform-hex-to-rgb.d.ts +0 -1
  184. package/tmp/lib/colors/transform-rgb-to-rgba.d.ts +0 -1
  185. package/tmp/lib/colors/transform-rgba-to-rgb.d.ts +0 -1
  186. package/tmp/lib/colors/transform-to-color.d.ts +0 -2
  187. package/tmp/lib/date/date-difference.d.ts +0 -2
  188. package/tmp/lib/date/date-format.d.ts +0 -1
  189. package/tmp/lib/date/get-date-by-rules.d.ts +0 -2
  190. package/tmp/lib/date/get-today.d.ts +0 -4
  191. package/tmp/lib/date/get-tomorrow.d.ts +0 -1
  192. package/tmp/lib/date/get-yesterday.d.ts +0 -1
  193. package/tmp/lib/date/index.d.ts +0 -9
  194. package/tmp/lib/date/is-today.d.ts +0 -2
  195. package/tmp/lib/date/is-tomorrow.d.ts +0 -2
  196. package/tmp/lib/date/is-yesterday.d.ts +0 -2
  197. package/tmp/lib/index.d.ts +0 -6
  198. package/tmp/lib/typings/check-type.d.ts +0 -1
  199. package/tmp/lib/typings/index.d.ts +0 -11
  200. package/tmp/lib/typings/is-array.d.ts +0 -1
  201. package/tmp/lib/typings/is-boolean.d.ts +0 -1
  202. package/tmp/lib/typings/is-date.d.ts +0 -1
  203. package/tmp/lib/typings/is-id.d.ts +0 -1
  204. package/tmp/lib/typings/is-null.d.ts +0 -1
  205. package/tmp/lib/typings/is-nullable.d.ts +0 -1
  206. package/tmp/lib/typings/is-number.d.ts +0 -1
  207. package/tmp/lib/typings/is-object.d.ts +0 -1
  208. package/tmp/lib/typings/is-string.d.ts +0 -1
  209. package/tmp/lib/typings/is-undefined.d.ts +0 -1
  210. package/tmp/lib/utils/array-to-map-by-key.d.ts +0 -1
  211. package/tmp/lib/utils/build-query-string.d.ts +0 -2
  212. package/tmp/lib/utils/create-url-with-params.d.ts +0 -7
  213. package/tmp/lib/utils/field-view-format.d.ts +0 -2
  214. package/tmp/lib/utils/get-by-path.d.ts +0 -1
  215. package/tmp/lib/utils/get-file-name-from-header.d.ts +0 -1
  216. package/tmp/lib/utils/index.d.ts +0 -16
  217. package/tmp/lib/utils/json-parse.d.ts +0 -1
  218. package/tmp/lib/utils/limit-stream-of-requests.d.ts +0 -14
  219. package/tmp/lib/utils/random-number.d.ts +0 -1
  220. package/tmp/lib/utils/random-string.d.ts +0 -1
  221. package/tmp/lib/utils/set-by-path.d.ts +0 -1
  222. package/tmp/lib/utils/sync-object-values.d.ts +0 -1
  223. package/tmp/lib/utils/transform-to-number.d.ts +0 -1
  224. package/tmp/lib/utils/trim-url.d.ts +0 -1
  225. package/tmp/lib/utils/wait-until.d.ts +0 -1
  226. package/tmp/lib/utils/wait.d.ts +0 -1
  227. package/tmp/libs.d.ts +0 -2
  228. package/tmp/types/api.d.ts +0 -33
  229. package/tmp/types/colors.d.ts +0 -3
  230. package/tmp/types/common.d.ts +0 -2
  231. package/tmp/types/date.d.ts +0 -7
  232. package/tmp/types/fields.d.ts +0 -3
  233. package/tmp/types/index.d.ts +0 -5
package/lib/cjs/index.js CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
+ const get = require('lodash/get');
6
+ const dayjs = require('dayjs');
7
+ const todayPlugin = require('dayjs/plugin/isToday');
8
+ const tomorrowPlugin = require('dayjs/plugin/isTomorrow');
9
+ const yesterdayPlugin = require('dayjs/plugin/isYesterday');
10
+ const set = require('lodash/set');
11
+
5
12
  const DATE_TYPES = {
6
13
  Days: "days",
7
14
  Months: "months",
@@ -60,1741 +67,6 @@ const waitUntil = (condition, checkInterval = 100) => {
60
67
  });
61
68
  };
62
69
 
63
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
64
-
65
- function getDefaultExportFromCjs (x) {
66
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
67
- }
68
-
69
- /**
70
- * Checks if `value` is classified as an `Array` object.
71
- *
72
- * @static
73
- * @memberOf _
74
- * @since 0.1.0
75
- * @category Lang
76
- * @param {*} value The value to check.
77
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
78
- * @example
79
- *
80
- * _.isArray([1, 2, 3]);
81
- * // => true
82
- *
83
- * _.isArray(document.body.children);
84
- * // => false
85
- *
86
- * _.isArray('abc');
87
- * // => false
88
- *
89
- * _.isArray(_.noop);
90
- * // => false
91
- */
92
-
93
- var isArray_1;
94
- var hasRequiredIsArray;
95
-
96
- function requireIsArray () {
97
- if (hasRequiredIsArray) return isArray_1;
98
- hasRequiredIsArray = 1;
99
- var isArray = Array.isArray;
100
-
101
- isArray_1 = isArray;
102
- return isArray_1;
103
- }
104
-
105
- /** Detect free variable `global` from Node.js. */
106
-
107
- var _freeGlobal;
108
- var hasRequired_freeGlobal;
109
-
110
- function require_freeGlobal () {
111
- if (hasRequired_freeGlobal) return _freeGlobal;
112
- hasRequired_freeGlobal = 1;
113
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
114
-
115
- _freeGlobal = freeGlobal;
116
- return _freeGlobal;
117
- }
118
-
119
- var _root;
120
- var hasRequired_root;
121
-
122
- function require_root () {
123
- if (hasRequired_root) return _root;
124
- hasRequired_root = 1;
125
- var freeGlobal = require_freeGlobal();
126
-
127
- /** Detect free variable `self`. */
128
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
129
-
130
- /** Used as a reference to the global object. */
131
- var root = freeGlobal || freeSelf || Function('return this')();
132
-
133
- _root = root;
134
- return _root;
135
- }
136
-
137
- var _Symbol;
138
- var hasRequired_Symbol;
139
-
140
- function require_Symbol () {
141
- if (hasRequired_Symbol) return _Symbol;
142
- hasRequired_Symbol = 1;
143
- var root = require_root();
144
-
145
- /** Built-in value references. */
146
- var Symbol = root.Symbol;
147
-
148
- _Symbol = Symbol;
149
- return _Symbol;
150
- }
151
-
152
- var _getRawTag;
153
- var hasRequired_getRawTag;
154
-
155
- function require_getRawTag () {
156
- if (hasRequired_getRawTag) return _getRawTag;
157
- hasRequired_getRawTag = 1;
158
- var Symbol = require_Symbol();
159
-
160
- /** Used for built-in method references. */
161
- var objectProto = Object.prototype;
162
-
163
- /** Used to check objects for own properties. */
164
- var hasOwnProperty = objectProto.hasOwnProperty;
165
-
166
- /**
167
- * Used to resolve the
168
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
169
- * of values.
170
- */
171
- var nativeObjectToString = objectProto.toString;
172
-
173
- /** Built-in value references. */
174
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
175
-
176
- /**
177
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
178
- *
179
- * @private
180
- * @param {*} value The value to query.
181
- * @returns {string} Returns the raw `toStringTag`.
182
- */
183
- function getRawTag(value) {
184
- var isOwn = hasOwnProperty.call(value, symToStringTag),
185
- tag = value[symToStringTag];
186
-
187
- try {
188
- value[symToStringTag] = undefined;
189
- var unmasked = true;
190
- } catch (e) {}
191
-
192
- var result = nativeObjectToString.call(value);
193
- if (unmasked) {
194
- if (isOwn) {
195
- value[symToStringTag] = tag;
196
- } else {
197
- delete value[symToStringTag];
198
- }
199
- }
200
- return result;
201
- }
202
-
203
- _getRawTag = getRawTag;
204
- return _getRawTag;
205
- }
206
-
207
- /** Used for built-in method references. */
208
-
209
- var _objectToString;
210
- var hasRequired_objectToString;
211
-
212
- function require_objectToString () {
213
- if (hasRequired_objectToString) return _objectToString;
214
- hasRequired_objectToString = 1;
215
- var objectProto = Object.prototype;
216
-
217
- /**
218
- * Used to resolve the
219
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
220
- * of values.
221
- */
222
- var nativeObjectToString = objectProto.toString;
223
-
224
- /**
225
- * Converts `value` to a string using `Object.prototype.toString`.
226
- *
227
- * @private
228
- * @param {*} value The value to convert.
229
- * @returns {string} Returns the converted string.
230
- */
231
- function objectToString(value) {
232
- return nativeObjectToString.call(value);
233
- }
234
-
235
- _objectToString = objectToString;
236
- return _objectToString;
237
- }
238
-
239
- var _baseGetTag;
240
- var hasRequired_baseGetTag;
241
-
242
- function require_baseGetTag () {
243
- if (hasRequired_baseGetTag) return _baseGetTag;
244
- hasRequired_baseGetTag = 1;
245
- var Symbol = require_Symbol(),
246
- getRawTag = require_getRawTag(),
247
- objectToString = require_objectToString();
248
-
249
- /** `Object#toString` result references. */
250
- var nullTag = '[object Null]',
251
- undefinedTag = '[object Undefined]';
252
-
253
- /** Built-in value references. */
254
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
255
-
256
- /**
257
- * The base implementation of `getTag` without fallbacks for buggy environments.
258
- *
259
- * @private
260
- * @param {*} value The value to query.
261
- * @returns {string} Returns the `toStringTag`.
262
- */
263
- function baseGetTag(value) {
264
- if (value == null) {
265
- return value === undefined ? undefinedTag : nullTag;
266
- }
267
- return (symToStringTag && symToStringTag in Object(value))
268
- ? getRawTag(value)
269
- : objectToString(value);
270
- }
271
-
272
- _baseGetTag = baseGetTag;
273
- return _baseGetTag;
274
- }
275
-
276
- /**
277
- * Checks if `value` is object-like. A value is object-like if it's not `null`
278
- * and has a `typeof` result of "object".
279
- *
280
- * @static
281
- * @memberOf _
282
- * @since 4.0.0
283
- * @category Lang
284
- * @param {*} value The value to check.
285
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
286
- * @example
287
- *
288
- * _.isObjectLike({});
289
- * // => true
290
- *
291
- * _.isObjectLike([1, 2, 3]);
292
- * // => true
293
- *
294
- * _.isObjectLike(_.noop);
295
- * // => false
296
- *
297
- * _.isObjectLike(null);
298
- * // => false
299
- */
300
-
301
- var isObjectLike_1;
302
- var hasRequiredIsObjectLike;
303
-
304
- function requireIsObjectLike () {
305
- if (hasRequiredIsObjectLike) return isObjectLike_1;
306
- hasRequiredIsObjectLike = 1;
307
- function isObjectLike(value) {
308
- return value != null && typeof value == 'object';
309
- }
310
-
311
- isObjectLike_1 = isObjectLike;
312
- return isObjectLike_1;
313
- }
314
-
315
- var isSymbol_1;
316
- var hasRequiredIsSymbol;
317
-
318
- function requireIsSymbol () {
319
- if (hasRequiredIsSymbol) return isSymbol_1;
320
- hasRequiredIsSymbol = 1;
321
- var baseGetTag = require_baseGetTag(),
322
- isObjectLike = requireIsObjectLike();
323
-
324
- /** `Object#toString` result references. */
325
- var symbolTag = '[object Symbol]';
326
-
327
- /**
328
- * Checks if `value` is classified as a `Symbol` primitive or object.
329
- *
330
- * @static
331
- * @memberOf _
332
- * @since 4.0.0
333
- * @category Lang
334
- * @param {*} value The value to check.
335
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
336
- * @example
337
- *
338
- * _.isSymbol(Symbol.iterator);
339
- * // => true
340
- *
341
- * _.isSymbol('abc');
342
- * // => false
343
- */
344
- function isSymbol(value) {
345
- return typeof value == 'symbol' ||
346
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
347
- }
348
-
349
- isSymbol_1 = isSymbol;
350
- return isSymbol_1;
351
- }
352
-
353
- var _isKey;
354
- var hasRequired_isKey;
355
-
356
- function require_isKey () {
357
- if (hasRequired_isKey) return _isKey;
358
- hasRequired_isKey = 1;
359
- var isArray = requireIsArray(),
360
- isSymbol = requireIsSymbol();
361
-
362
- /** Used to match property names within property paths. */
363
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
364
- reIsPlainProp = /^\w*$/;
365
-
366
- /**
367
- * Checks if `value` is a property name and not a property path.
368
- *
369
- * @private
370
- * @param {*} value The value to check.
371
- * @param {Object} [object] The object to query keys on.
372
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
373
- */
374
- function isKey(value, object) {
375
- if (isArray(value)) {
376
- return false;
377
- }
378
- var type = typeof value;
379
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
380
- value == null || isSymbol(value)) {
381
- return true;
382
- }
383
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
384
- (object != null && value in Object(object));
385
- }
386
-
387
- _isKey = isKey;
388
- return _isKey;
389
- }
390
-
391
- /**
392
- * Checks if `value` is the
393
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
394
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
395
- *
396
- * @static
397
- * @memberOf _
398
- * @since 0.1.0
399
- * @category Lang
400
- * @param {*} value The value to check.
401
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
402
- * @example
403
- *
404
- * _.isObject({});
405
- * // => true
406
- *
407
- * _.isObject([1, 2, 3]);
408
- * // => true
409
- *
410
- * _.isObject(_.noop);
411
- * // => true
412
- *
413
- * _.isObject(null);
414
- * // => false
415
- */
416
-
417
- var isObject_1;
418
- var hasRequiredIsObject;
419
-
420
- function requireIsObject () {
421
- if (hasRequiredIsObject) return isObject_1;
422
- hasRequiredIsObject = 1;
423
- function isObject(value) {
424
- var type = typeof value;
425
- return value != null && (type == 'object' || type == 'function');
426
- }
427
-
428
- isObject_1 = isObject;
429
- return isObject_1;
430
- }
431
-
432
- var isFunction_1;
433
- var hasRequiredIsFunction;
434
-
435
- function requireIsFunction () {
436
- if (hasRequiredIsFunction) return isFunction_1;
437
- hasRequiredIsFunction = 1;
438
- var baseGetTag = require_baseGetTag(),
439
- isObject = requireIsObject();
440
-
441
- /** `Object#toString` result references. */
442
- var asyncTag = '[object AsyncFunction]',
443
- funcTag = '[object Function]',
444
- genTag = '[object GeneratorFunction]',
445
- proxyTag = '[object Proxy]';
446
-
447
- /**
448
- * Checks if `value` is classified as a `Function` object.
449
- *
450
- * @static
451
- * @memberOf _
452
- * @since 0.1.0
453
- * @category Lang
454
- * @param {*} value The value to check.
455
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
456
- * @example
457
- *
458
- * _.isFunction(_);
459
- * // => true
460
- *
461
- * _.isFunction(/abc/);
462
- * // => false
463
- */
464
- function isFunction(value) {
465
- if (!isObject(value)) {
466
- return false;
467
- }
468
- // The use of `Object#toString` avoids issues with the `typeof` operator
469
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
470
- var tag = baseGetTag(value);
471
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
472
- }
473
-
474
- isFunction_1 = isFunction;
475
- return isFunction_1;
476
- }
477
-
478
- var _coreJsData;
479
- var hasRequired_coreJsData;
480
-
481
- function require_coreJsData () {
482
- if (hasRequired_coreJsData) return _coreJsData;
483
- hasRequired_coreJsData = 1;
484
- var root = require_root();
485
-
486
- /** Used to detect overreaching core-js shims. */
487
- var coreJsData = root['__core-js_shared__'];
488
-
489
- _coreJsData = coreJsData;
490
- return _coreJsData;
491
- }
492
-
493
- var _isMasked;
494
- var hasRequired_isMasked;
495
-
496
- function require_isMasked () {
497
- if (hasRequired_isMasked) return _isMasked;
498
- hasRequired_isMasked = 1;
499
- var coreJsData = require_coreJsData();
500
-
501
- /** Used to detect methods masquerading as native. */
502
- var maskSrcKey = (function() {
503
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
504
- return uid ? ('Symbol(src)_1.' + uid) : '';
505
- }());
506
-
507
- /**
508
- * Checks if `func` has its source masked.
509
- *
510
- * @private
511
- * @param {Function} func The function to check.
512
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
513
- */
514
- function isMasked(func) {
515
- return !!maskSrcKey && (maskSrcKey in func);
516
- }
517
-
518
- _isMasked = isMasked;
519
- return _isMasked;
520
- }
521
-
522
- /** Used for built-in method references. */
523
-
524
- var _toSource;
525
- var hasRequired_toSource;
526
-
527
- function require_toSource () {
528
- if (hasRequired_toSource) return _toSource;
529
- hasRequired_toSource = 1;
530
- var funcProto = Function.prototype;
531
-
532
- /** Used to resolve the decompiled source of functions. */
533
- var funcToString = funcProto.toString;
534
-
535
- /**
536
- * Converts `func` to its source code.
537
- *
538
- * @private
539
- * @param {Function} func The function to convert.
540
- * @returns {string} Returns the source code.
541
- */
542
- function toSource(func) {
543
- if (func != null) {
544
- try {
545
- return funcToString.call(func);
546
- } catch (e) {}
547
- try {
548
- return (func + '');
549
- } catch (e) {}
550
- }
551
- return '';
552
- }
553
-
554
- _toSource = toSource;
555
- return _toSource;
556
- }
557
-
558
- var _baseIsNative;
559
- var hasRequired_baseIsNative;
560
-
561
- function require_baseIsNative () {
562
- if (hasRequired_baseIsNative) return _baseIsNative;
563
- hasRequired_baseIsNative = 1;
564
- var isFunction = requireIsFunction(),
565
- isMasked = require_isMasked(),
566
- isObject = requireIsObject(),
567
- toSource = require_toSource();
568
-
569
- /**
570
- * Used to match `RegExp`
571
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
572
- */
573
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
574
-
575
- /** Used to detect host constructors (Safari). */
576
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
577
-
578
- /** Used for built-in method references. */
579
- var funcProto = Function.prototype,
580
- objectProto = Object.prototype;
581
-
582
- /** Used to resolve the decompiled source of functions. */
583
- var funcToString = funcProto.toString;
584
-
585
- /** Used to check objects for own properties. */
586
- var hasOwnProperty = objectProto.hasOwnProperty;
587
-
588
- /** Used to detect if a method is native. */
589
- var reIsNative = RegExp('^' +
590
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
591
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
592
- );
593
-
594
- /**
595
- * The base implementation of `_.isNative` without bad shim checks.
596
- *
597
- * @private
598
- * @param {*} value The value to check.
599
- * @returns {boolean} Returns `true` if `value` is a native function,
600
- * else `false`.
601
- */
602
- function baseIsNative(value) {
603
- if (!isObject(value) || isMasked(value)) {
604
- return false;
605
- }
606
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
607
- return pattern.test(toSource(value));
608
- }
609
-
610
- _baseIsNative = baseIsNative;
611
- return _baseIsNative;
612
- }
613
-
614
- /**
615
- * Gets the value at `key` of `object`.
616
- *
617
- * @private
618
- * @param {Object} [object] The object to query.
619
- * @param {string} key The key of the property to get.
620
- * @returns {*} Returns the property value.
621
- */
622
-
623
- var _getValue;
624
- var hasRequired_getValue;
625
-
626
- function require_getValue () {
627
- if (hasRequired_getValue) return _getValue;
628
- hasRequired_getValue = 1;
629
- function getValue(object, key) {
630
- return object == null ? undefined : object[key];
631
- }
632
-
633
- _getValue = getValue;
634
- return _getValue;
635
- }
636
-
637
- var _getNative;
638
- var hasRequired_getNative;
639
-
640
- function require_getNative () {
641
- if (hasRequired_getNative) return _getNative;
642
- hasRequired_getNative = 1;
643
- var baseIsNative = require_baseIsNative(),
644
- getValue = require_getValue();
645
-
646
- /**
647
- * Gets the native function at `key` of `object`.
648
- *
649
- * @private
650
- * @param {Object} object The object to query.
651
- * @param {string} key The key of the method to get.
652
- * @returns {*} Returns the function if it's native, else `undefined`.
653
- */
654
- function getNative(object, key) {
655
- var value = getValue(object, key);
656
- return baseIsNative(value) ? value : undefined;
657
- }
658
-
659
- _getNative = getNative;
660
- return _getNative;
661
- }
662
-
663
- var _nativeCreate;
664
- var hasRequired_nativeCreate;
665
-
666
- function require_nativeCreate () {
667
- if (hasRequired_nativeCreate) return _nativeCreate;
668
- hasRequired_nativeCreate = 1;
669
- var getNative = require_getNative();
670
-
671
- /* Built-in method references that are verified to be native. */
672
- var nativeCreate = getNative(Object, 'create');
673
-
674
- _nativeCreate = nativeCreate;
675
- return _nativeCreate;
676
- }
677
-
678
- var _hashClear;
679
- var hasRequired_hashClear;
680
-
681
- function require_hashClear () {
682
- if (hasRequired_hashClear) return _hashClear;
683
- hasRequired_hashClear = 1;
684
- var nativeCreate = require_nativeCreate();
685
-
686
- /**
687
- * Removes all key-value entries from the hash.
688
- *
689
- * @private
690
- * @name clear
691
- * @memberOf Hash
692
- */
693
- function hashClear() {
694
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
695
- this.size = 0;
696
- }
697
-
698
- _hashClear = hashClear;
699
- return _hashClear;
700
- }
701
-
702
- /**
703
- * Removes `key` and its value from the hash.
704
- *
705
- * @private
706
- * @name delete
707
- * @memberOf Hash
708
- * @param {Object} hash The hash to modify.
709
- * @param {string} key The key of the value to remove.
710
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
711
- */
712
-
713
- var _hashDelete;
714
- var hasRequired_hashDelete;
715
-
716
- function require_hashDelete () {
717
- if (hasRequired_hashDelete) return _hashDelete;
718
- hasRequired_hashDelete = 1;
719
- function hashDelete(key) {
720
- var result = this.has(key) && delete this.__data__[key];
721
- this.size -= result ? 1 : 0;
722
- return result;
723
- }
724
-
725
- _hashDelete = hashDelete;
726
- return _hashDelete;
727
- }
728
-
729
- var _hashGet;
730
- var hasRequired_hashGet;
731
-
732
- function require_hashGet () {
733
- if (hasRequired_hashGet) return _hashGet;
734
- hasRequired_hashGet = 1;
735
- var nativeCreate = require_nativeCreate();
736
-
737
- /** Used to stand-in for `undefined` hash values. */
738
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
739
-
740
- /** Used for built-in method references. */
741
- var objectProto = Object.prototype;
742
-
743
- /** Used to check objects for own properties. */
744
- var hasOwnProperty = objectProto.hasOwnProperty;
745
-
746
- /**
747
- * Gets the hash value for `key`.
748
- *
749
- * @private
750
- * @name get
751
- * @memberOf Hash
752
- * @param {string} key The key of the value to get.
753
- * @returns {*} Returns the entry value.
754
- */
755
- function hashGet(key) {
756
- var data = this.__data__;
757
- if (nativeCreate) {
758
- var result = data[key];
759
- return result === HASH_UNDEFINED ? undefined : result;
760
- }
761
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
762
- }
763
-
764
- _hashGet = hashGet;
765
- return _hashGet;
766
- }
767
-
768
- var _hashHas;
769
- var hasRequired_hashHas;
770
-
771
- function require_hashHas () {
772
- if (hasRequired_hashHas) return _hashHas;
773
- hasRequired_hashHas = 1;
774
- var nativeCreate = require_nativeCreate();
775
-
776
- /** Used for built-in method references. */
777
- var objectProto = Object.prototype;
778
-
779
- /** Used to check objects for own properties. */
780
- var hasOwnProperty = objectProto.hasOwnProperty;
781
-
782
- /**
783
- * Checks if a hash value for `key` exists.
784
- *
785
- * @private
786
- * @name has
787
- * @memberOf Hash
788
- * @param {string} key The key of the entry to check.
789
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
790
- */
791
- function hashHas(key) {
792
- var data = this.__data__;
793
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
794
- }
795
-
796
- _hashHas = hashHas;
797
- return _hashHas;
798
- }
799
-
800
- var _hashSet;
801
- var hasRequired_hashSet;
802
-
803
- function require_hashSet () {
804
- if (hasRequired_hashSet) return _hashSet;
805
- hasRequired_hashSet = 1;
806
- var nativeCreate = require_nativeCreate();
807
-
808
- /** Used to stand-in for `undefined` hash values. */
809
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
810
-
811
- /**
812
- * Sets the hash `key` to `value`.
813
- *
814
- * @private
815
- * @name set
816
- * @memberOf Hash
817
- * @param {string} key The key of the value to set.
818
- * @param {*} value The value to set.
819
- * @returns {Object} Returns the hash instance.
820
- */
821
- function hashSet(key, value) {
822
- var data = this.__data__;
823
- this.size += this.has(key) ? 0 : 1;
824
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
825
- return this;
826
- }
827
-
828
- _hashSet = hashSet;
829
- return _hashSet;
830
- }
831
-
832
- var _Hash;
833
- var hasRequired_Hash;
834
-
835
- function require_Hash () {
836
- if (hasRequired_Hash) return _Hash;
837
- hasRequired_Hash = 1;
838
- var hashClear = require_hashClear(),
839
- hashDelete = require_hashDelete(),
840
- hashGet = require_hashGet(),
841
- hashHas = require_hashHas(),
842
- hashSet = require_hashSet();
843
-
844
- /**
845
- * Creates a hash object.
846
- *
847
- * @private
848
- * @constructor
849
- * @param {Array} [entries] The key-value pairs to cache.
850
- */
851
- function Hash(entries) {
852
- var index = -1,
853
- length = entries == null ? 0 : entries.length;
854
-
855
- this.clear();
856
- while (++index < length) {
857
- var entry = entries[index];
858
- this.set(entry[0], entry[1]);
859
- }
860
- }
861
-
862
- // Add methods to `Hash`.
863
- Hash.prototype.clear = hashClear;
864
- Hash.prototype['delete'] = hashDelete;
865
- Hash.prototype.get = hashGet;
866
- Hash.prototype.has = hashHas;
867
- Hash.prototype.set = hashSet;
868
-
869
- _Hash = Hash;
870
- return _Hash;
871
- }
872
-
873
- /**
874
- * Removes all key-value entries from the list cache.
875
- *
876
- * @private
877
- * @name clear
878
- * @memberOf ListCache
879
- */
880
-
881
- var _listCacheClear;
882
- var hasRequired_listCacheClear;
883
-
884
- function require_listCacheClear () {
885
- if (hasRequired_listCacheClear) return _listCacheClear;
886
- hasRequired_listCacheClear = 1;
887
- function listCacheClear() {
888
- this.__data__ = [];
889
- this.size = 0;
890
- }
891
-
892
- _listCacheClear = listCacheClear;
893
- return _listCacheClear;
894
- }
895
-
896
- /**
897
- * Performs a
898
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
899
- * comparison between two values to determine if they are equivalent.
900
- *
901
- * @static
902
- * @memberOf _
903
- * @since 4.0.0
904
- * @category Lang
905
- * @param {*} value The value to compare.
906
- * @param {*} other The other value to compare.
907
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
908
- * @example
909
- *
910
- * var object = { 'a': 1 };
911
- * var other = { 'a': 1 };
912
- *
913
- * _.eq(object, object);
914
- * // => true
915
- *
916
- * _.eq(object, other);
917
- * // => false
918
- *
919
- * _.eq('a', 'a');
920
- * // => true
921
- *
922
- * _.eq('a', Object('a'));
923
- * // => false
924
- *
925
- * _.eq(NaN, NaN);
926
- * // => true
927
- */
928
-
929
- var eq_1;
930
- var hasRequiredEq;
931
-
932
- function requireEq () {
933
- if (hasRequiredEq) return eq_1;
934
- hasRequiredEq = 1;
935
- function eq(value, other) {
936
- return value === other || (value !== value && other !== other);
937
- }
938
-
939
- eq_1 = eq;
940
- return eq_1;
941
- }
942
-
943
- var _assocIndexOf;
944
- var hasRequired_assocIndexOf;
945
-
946
- function require_assocIndexOf () {
947
- if (hasRequired_assocIndexOf) return _assocIndexOf;
948
- hasRequired_assocIndexOf = 1;
949
- var eq = requireEq();
950
-
951
- /**
952
- * Gets the index at which the `key` is found in `array` of key-value pairs.
953
- *
954
- * @private
955
- * @param {Array} array The array to inspect.
956
- * @param {*} key The key to search for.
957
- * @returns {number} Returns the index of the matched value, else `-1`.
958
- */
959
- function assocIndexOf(array, key) {
960
- var length = array.length;
961
- while (length--) {
962
- if (eq(array[length][0], key)) {
963
- return length;
964
- }
965
- }
966
- return -1;
967
- }
968
-
969
- _assocIndexOf = assocIndexOf;
970
- return _assocIndexOf;
971
- }
972
-
973
- var _listCacheDelete;
974
- var hasRequired_listCacheDelete;
975
-
976
- function require_listCacheDelete () {
977
- if (hasRequired_listCacheDelete) return _listCacheDelete;
978
- hasRequired_listCacheDelete = 1;
979
- var assocIndexOf = require_assocIndexOf();
980
-
981
- /** Used for built-in method references. */
982
- var arrayProto = Array.prototype;
983
-
984
- /** Built-in value references. */
985
- var splice = arrayProto.splice;
986
-
987
- /**
988
- * Removes `key` and its value from the list cache.
989
- *
990
- * @private
991
- * @name delete
992
- * @memberOf ListCache
993
- * @param {string} key The key of the value to remove.
994
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
995
- */
996
- function listCacheDelete(key) {
997
- var data = this.__data__,
998
- index = assocIndexOf(data, key);
999
-
1000
- if (index < 0) {
1001
- return false;
1002
- }
1003
- var lastIndex = data.length - 1;
1004
- if (index == lastIndex) {
1005
- data.pop();
1006
- } else {
1007
- splice.call(data, index, 1);
1008
- }
1009
- --this.size;
1010
- return true;
1011
- }
1012
-
1013
- _listCacheDelete = listCacheDelete;
1014
- return _listCacheDelete;
1015
- }
1016
-
1017
- var _listCacheGet;
1018
- var hasRequired_listCacheGet;
1019
-
1020
- function require_listCacheGet () {
1021
- if (hasRequired_listCacheGet) return _listCacheGet;
1022
- hasRequired_listCacheGet = 1;
1023
- var assocIndexOf = require_assocIndexOf();
1024
-
1025
- /**
1026
- * Gets the list cache value for `key`.
1027
- *
1028
- * @private
1029
- * @name get
1030
- * @memberOf ListCache
1031
- * @param {string} key The key of the value to get.
1032
- * @returns {*} Returns the entry value.
1033
- */
1034
- function listCacheGet(key) {
1035
- var data = this.__data__,
1036
- index = assocIndexOf(data, key);
1037
-
1038
- return index < 0 ? undefined : data[index][1];
1039
- }
1040
-
1041
- _listCacheGet = listCacheGet;
1042
- return _listCacheGet;
1043
- }
1044
-
1045
- var _listCacheHas;
1046
- var hasRequired_listCacheHas;
1047
-
1048
- function require_listCacheHas () {
1049
- if (hasRequired_listCacheHas) return _listCacheHas;
1050
- hasRequired_listCacheHas = 1;
1051
- var assocIndexOf = require_assocIndexOf();
1052
-
1053
- /**
1054
- * Checks if a list cache value for `key` exists.
1055
- *
1056
- * @private
1057
- * @name has
1058
- * @memberOf ListCache
1059
- * @param {string} key The key of the entry to check.
1060
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1061
- */
1062
- function listCacheHas(key) {
1063
- return assocIndexOf(this.__data__, key) > -1;
1064
- }
1065
-
1066
- _listCacheHas = listCacheHas;
1067
- return _listCacheHas;
1068
- }
1069
-
1070
- var _listCacheSet;
1071
- var hasRequired_listCacheSet;
1072
-
1073
- function require_listCacheSet () {
1074
- if (hasRequired_listCacheSet) return _listCacheSet;
1075
- hasRequired_listCacheSet = 1;
1076
- var assocIndexOf = require_assocIndexOf();
1077
-
1078
- /**
1079
- * Sets the list cache `key` to `value`.
1080
- *
1081
- * @private
1082
- * @name set
1083
- * @memberOf ListCache
1084
- * @param {string} key The key of the value to set.
1085
- * @param {*} value The value to set.
1086
- * @returns {Object} Returns the list cache instance.
1087
- */
1088
- function listCacheSet(key, value) {
1089
- var data = this.__data__,
1090
- index = assocIndexOf(data, key);
1091
-
1092
- if (index < 0) {
1093
- ++this.size;
1094
- data.push([key, value]);
1095
- } else {
1096
- data[index][1] = value;
1097
- }
1098
- return this;
1099
- }
1100
-
1101
- _listCacheSet = listCacheSet;
1102
- return _listCacheSet;
1103
- }
1104
-
1105
- var _ListCache;
1106
- var hasRequired_ListCache;
1107
-
1108
- function require_ListCache () {
1109
- if (hasRequired_ListCache) return _ListCache;
1110
- hasRequired_ListCache = 1;
1111
- var listCacheClear = require_listCacheClear(),
1112
- listCacheDelete = require_listCacheDelete(),
1113
- listCacheGet = require_listCacheGet(),
1114
- listCacheHas = require_listCacheHas(),
1115
- listCacheSet = require_listCacheSet();
1116
-
1117
- /**
1118
- * Creates an list cache object.
1119
- *
1120
- * @private
1121
- * @constructor
1122
- * @param {Array} [entries] The key-value pairs to cache.
1123
- */
1124
- function ListCache(entries) {
1125
- var index = -1,
1126
- length = entries == null ? 0 : entries.length;
1127
-
1128
- this.clear();
1129
- while (++index < length) {
1130
- var entry = entries[index];
1131
- this.set(entry[0], entry[1]);
1132
- }
1133
- }
1134
-
1135
- // Add methods to `ListCache`.
1136
- ListCache.prototype.clear = listCacheClear;
1137
- ListCache.prototype['delete'] = listCacheDelete;
1138
- ListCache.prototype.get = listCacheGet;
1139
- ListCache.prototype.has = listCacheHas;
1140
- ListCache.prototype.set = listCacheSet;
1141
-
1142
- _ListCache = ListCache;
1143
- return _ListCache;
1144
- }
1145
-
1146
- var _Map;
1147
- var hasRequired_Map;
1148
-
1149
- function require_Map () {
1150
- if (hasRequired_Map) return _Map;
1151
- hasRequired_Map = 1;
1152
- var getNative = require_getNative(),
1153
- root = require_root();
1154
-
1155
- /* Built-in method references that are verified to be native. */
1156
- var Map = getNative(root, 'Map');
1157
-
1158
- _Map = Map;
1159
- return _Map;
1160
- }
1161
-
1162
- var _mapCacheClear;
1163
- var hasRequired_mapCacheClear;
1164
-
1165
- function require_mapCacheClear () {
1166
- if (hasRequired_mapCacheClear) return _mapCacheClear;
1167
- hasRequired_mapCacheClear = 1;
1168
- var Hash = require_Hash(),
1169
- ListCache = require_ListCache(),
1170
- Map = require_Map();
1171
-
1172
- /**
1173
- * Removes all key-value entries from the map.
1174
- *
1175
- * @private
1176
- * @name clear
1177
- * @memberOf MapCache
1178
- */
1179
- function mapCacheClear() {
1180
- this.size = 0;
1181
- this.__data__ = {
1182
- 'hash': new Hash,
1183
- 'map': new (Map || ListCache),
1184
- 'string': new Hash
1185
- };
1186
- }
1187
-
1188
- _mapCacheClear = mapCacheClear;
1189
- return _mapCacheClear;
1190
- }
1191
-
1192
- /**
1193
- * Checks if `value` is suitable for use as unique object key.
1194
- *
1195
- * @private
1196
- * @param {*} value The value to check.
1197
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1198
- */
1199
-
1200
- var _isKeyable;
1201
- var hasRequired_isKeyable;
1202
-
1203
- function require_isKeyable () {
1204
- if (hasRequired_isKeyable) return _isKeyable;
1205
- hasRequired_isKeyable = 1;
1206
- function isKeyable(value) {
1207
- var type = typeof value;
1208
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1209
- ? (value !== '__proto__')
1210
- : (value === null);
1211
- }
1212
-
1213
- _isKeyable = isKeyable;
1214
- return _isKeyable;
1215
- }
1216
-
1217
- var _getMapData;
1218
- var hasRequired_getMapData;
1219
-
1220
- function require_getMapData () {
1221
- if (hasRequired_getMapData) return _getMapData;
1222
- hasRequired_getMapData = 1;
1223
- var isKeyable = require_isKeyable();
1224
-
1225
- /**
1226
- * Gets the data for `map`.
1227
- *
1228
- * @private
1229
- * @param {Object} map The map to query.
1230
- * @param {string} key The reference key.
1231
- * @returns {*} Returns the map data.
1232
- */
1233
- function getMapData(map, key) {
1234
- var data = map.__data__;
1235
- return isKeyable(key)
1236
- ? data[typeof key == 'string' ? 'string' : 'hash']
1237
- : data.map;
1238
- }
1239
-
1240
- _getMapData = getMapData;
1241
- return _getMapData;
1242
- }
1243
-
1244
- var _mapCacheDelete;
1245
- var hasRequired_mapCacheDelete;
1246
-
1247
- function require_mapCacheDelete () {
1248
- if (hasRequired_mapCacheDelete) return _mapCacheDelete;
1249
- hasRequired_mapCacheDelete = 1;
1250
- var getMapData = require_getMapData();
1251
-
1252
- /**
1253
- * Removes `key` and its value from the map.
1254
- *
1255
- * @private
1256
- * @name delete
1257
- * @memberOf MapCache
1258
- * @param {string} key The key of the value to remove.
1259
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1260
- */
1261
- function mapCacheDelete(key) {
1262
- var result = getMapData(this, key)['delete'](key);
1263
- this.size -= result ? 1 : 0;
1264
- return result;
1265
- }
1266
-
1267
- _mapCacheDelete = mapCacheDelete;
1268
- return _mapCacheDelete;
1269
- }
1270
-
1271
- var _mapCacheGet;
1272
- var hasRequired_mapCacheGet;
1273
-
1274
- function require_mapCacheGet () {
1275
- if (hasRequired_mapCacheGet) return _mapCacheGet;
1276
- hasRequired_mapCacheGet = 1;
1277
- var getMapData = require_getMapData();
1278
-
1279
- /**
1280
- * Gets the map value for `key`.
1281
- *
1282
- * @private
1283
- * @name get
1284
- * @memberOf MapCache
1285
- * @param {string} key The key of the value to get.
1286
- * @returns {*} Returns the entry value.
1287
- */
1288
- function mapCacheGet(key) {
1289
- return getMapData(this, key).get(key);
1290
- }
1291
-
1292
- _mapCacheGet = mapCacheGet;
1293
- return _mapCacheGet;
1294
- }
1295
-
1296
- var _mapCacheHas;
1297
- var hasRequired_mapCacheHas;
1298
-
1299
- function require_mapCacheHas () {
1300
- if (hasRequired_mapCacheHas) return _mapCacheHas;
1301
- hasRequired_mapCacheHas = 1;
1302
- var getMapData = require_getMapData();
1303
-
1304
- /**
1305
- * Checks if a map value for `key` exists.
1306
- *
1307
- * @private
1308
- * @name has
1309
- * @memberOf MapCache
1310
- * @param {string} key The key of the entry to check.
1311
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1312
- */
1313
- function mapCacheHas(key) {
1314
- return getMapData(this, key).has(key);
1315
- }
1316
-
1317
- _mapCacheHas = mapCacheHas;
1318
- return _mapCacheHas;
1319
- }
1320
-
1321
- var _mapCacheSet;
1322
- var hasRequired_mapCacheSet;
1323
-
1324
- function require_mapCacheSet () {
1325
- if (hasRequired_mapCacheSet) return _mapCacheSet;
1326
- hasRequired_mapCacheSet = 1;
1327
- var getMapData = require_getMapData();
1328
-
1329
- /**
1330
- * Sets the map `key` to `value`.
1331
- *
1332
- * @private
1333
- * @name set
1334
- * @memberOf MapCache
1335
- * @param {string} key The key of the value to set.
1336
- * @param {*} value The value to set.
1337
- * @returns {Object} Returns the map cache instance.
1338
- */
1339
- function mapCacheSet(key, value) {
1340
- var data = getMapData(this, key),
1341
- size = data.size;
1342
-
1343
- data.set(key, value);
1344
- this.size += data.size == size ? 0 : 1;
1345
- return this;
1346
- }
1347
-
1348
- _mapCacheSet = mapCacheSet;
1349
- return _mapCacheSet;
1350
- }
1351
-
1352
- var _MapCache;
1353
- var hasRequired_MapCache;
1354
-
1355
- function require_MapCache () {
1356
- if (hasRequired_MapCache) return _MapCache;
1357
- hasRequired_MapCache = 1;
1358
- var mapCacheClear = require_mapCacheClear(),
1359
- mapCacheDelete = require_mapCacheDelete(),
1360
- mapCacheGet = require_mapCacheGet(),
1361
- mapCacheHas = require_mapCacheHas(),
1362
- mapCacheSet = require_mapCacheSet();
1363
-
1364
- /**
1365
- * Creates a map cache object to store key-value pairs.
1366
- *
1367
- * @private
1368
- * @constructor
1369
- * @param {Array} [entries] The key-value pairs to cache.
1370
- */
1371
- function MapCache(entries) {
1372
- var index = -1,
1373
- length = entries == null ? 0 : entries.length;
1374
-
1375
- this.clear();
1376
- while (++index < length) {
1377
- var entry = entries[index];
1378
- this.set(entry[0], entry[1]);
1379
- }
1380
- }
1381
-
1382
- // Add methods to `MapCache`.
1383
- MapCache.prototype.clear = mapCacheClear;
1384
- MapCache.prototype['delete'] = mapCacheDelete;
1385
- MapCache.prototype.get = mapCacheGet;
1386
- MapCache.prototype.has = mapCacheHas;
1387
- MapCache.prototype.set = mapCacheSet;
1388
-
1389
- _MapCache = MapCache;
1390
- return _MapCache;
1391
- }
1392
-
1393
- var memoize_1;
1394
- var hasRequiredMemoize;
1395
-
1396
- function requireMemoize () {
1397
- if (hasRequiredMemoize) return memoize_1;
1398
- hasRequiredMemoize = 1;
1399
- var MapCache = require_MapCache();
1400
-
1401
- /** Error message constants. */
1402
- var FUNC_ERROR_TEXT = 'Expected a function';
1403
-
1404
- /**
1405
- * Creates a function that memoizes the result of `func`. If `resolver` is
1406
- * provided, it determines the cache key for storing the result based on the
1407
- * arguments provided to the memoized function. By default, the first argument
1408
- * provided to the memoized function is used as the map cache key. The `func`
1409
- * is invoked with the `this` binding of the memoized function.
1410
- *
1411
- * **Note:** The cache is exposed as the `cache` property on the memoized
1412
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1413
- * constructor with one whose instances implement the
1414
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1415
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1416
- *
1417
- * @static
1418
- * @memberOf _
1419
- * @since 0.1.0
1420
- * @category Function
1421
- * @param {Function} func The function to have its output memoized.
1422
- * @param {Function} [resolver] The function to resolve the cache key.
1423
- * @returns {Function} Returns the new memoized function.
1424
- * @example
1425
- *
1426
- * var object = { 'a': 1, 'b': 2 };
1427
- * var other = { 'c': 3, 'd': 4 };
1428
- *
1429
- * var values = _.memoize(_.values);
1430
- * values(object);
1431
- * // => [1, 2]
1432
- *
1433
- * values(other);
1434
- * // => [3, 4]
1435
- *
1436
- * object.a = 2;
1437
- * values(object);
1438
- * // => [1, 2]
1439
- *
1440
- * // Modify the result cache.
1441
- * values.cache.set(object, ['a', 'b']);
1442
- * values(object);
1443
- * // => ['a', 'b']
1444
- *
1445
- * // Replace `_.memoize.Cache`.
1446
- * _.memoize.Cache = WeakMap;
1447
- */
1448
- function memoize(func, resolver) {
1449
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1450
- throw new TypeError(FUNC_ERROR_TEXT);
1451
- }
1452
- var memoized = function() {
1453
- var args = arguments,
1454
- key = resolver ? resolver.apply(this, args) : args[0],
1455
- cache = memoized.cache;
1456
-
1457
- if (cache.has(key)) {
1458
- return cache.get(key);
1459
- }
1460
- var result = func.apply(this, args);
1461
- memoized.cache = cache.set(key, result) || cache;
1462
- return result;
1463
- };
1464
- memoized.cache = new (memoize.Cache || MapCache);
1465
- return memoized;
1466
- }
1467
-
1468
- // Expose `MapCache`.
1469
- memoize.Cache = MapCache;
1470
-
1471
- memoize_1 = memoize;
1472
- return memoize_1;
1473
- }
1474
-
1475
- var _memoizeCapped;
1476
- var hasRequired_memoizeCapped;
1477
-
1478
- function require_memoizeCapped () {
1479
- if (hasRequired_memoizeCapped) return _memoizeCapped;
1480
- hasRequired_memoizeCapped = 1;
1481
- var memoize = requireMemoize();
1482
-
1483
- /** Used as the maximum memoize cache size. */
1484
- var MAX_MEMOIZE_SIZE = 500;
1485
-
1486
- /**
1487
- * A specialized version of `_.memoize` which clears the memoized function's
1488
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1489
- *
1490
- * @private
1491
- * @param {Function} func The function to have its output memoized.
1492
- * @returns {Function} Returns the new memoized function.
1493
- */
1494
- function memoizeCapped(func) {
1495
- var result = memoize(func, function(key) {
1496
- if (cache.size === MAX_MEMOIZE_SIZE) {
1497
- cache.clear();
1498
- }
1499
- return key;
1500
- });
1501
-
1502
- var cache = result.cache;
1503
- return result;
1504
- }
1505
-
1506
- _memoizeCapped = memoizeCapped;
1507
- return _memoizeCapped;
1508
- }
1509
-
1510
- var _stringToPath;
1511
- var hasRequired_stringToPath;
1512
-
1513
- function require_stringToPath () {
1514
- if (hasRequired_stringToPath) return _stringToPath;
1515
- hasRequired_stringToPath = 1;
1516
- var memoizeCapped = require_memoizeCapped();
1517
-
1518
- /** Used to match property names within property paths. */
1519
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1520
-
1521
- /** Used to match backslashes in property paths. */
1522
- var reEscapeChar = /\\(\\)?/g;
1523
-
1524
- /**
1525
- * Converts `string` to a property path array.
1526
- *
1527
- * @private
1528
- * @param {string} string The string to convert.
1529
- * @returns {Array} Returns the property path array.
1530
- */
1531
- var stringToPath = memoizeCapped(function(string) {
1532
- var result = [];
1533
- if (string.charCodeAt(0) === 46 /* . */) {
1534
- result.push('');
1535
- }
1536
- string.replace(rePropName, function(match, number, quote, subString) {
1537
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1538
- });
1539
- return result;
1540
- });
1541
-
1542
- _stringToPath = stringToPath;
1543
- return _stringToPath;
1544
- }
1545
-
1546
- /**
1547
- * A specialized version of `_.map` for arrays without support for iteratee
1548
- * shorthands.
1549
- *
1550
- * @private
1551
- * @param {Array} [array] The array to iterate over.
1552
- * @param {Function} iteratee The function invoked per iteration.
1553
- * @returns {Array} Returns the new mapped array.
1554
- */
1555
-
1556
- var _arrayMap;
1557
- var hasRequired_arrayMap;
1558
-
1559
- function require_arrayMap () {
1560
- if (hasRequired_arrayMap) return _arrayMap;
1561
- hasRequired_arrayMap = 1;
1562
- function arrayMap(array, iteratee) {
1563
- var index = -1,
1564
- length = array == null ? 0 : array.length,
1565
- result = Array(length);
1566
-
1567
- while (++index < length) {
1568
- result[index] = iteratee(array[index], index, array);
1569
- }
1570
- return result;
1571
- }
1572
-
1573
- _arrayMap = arrayMap;
1574
- return _arrayMap;
1575
- }
1576
-
1577
- var _baseToString;
1578
- var hasRequired_baseToString;
1579
-
1580
- function require_baseToString () {
1581
- if (hasRequired_baseToString) return _baseToString;
1582
- hasRequired_baseToString = 1;
1583
- var Symbol = require_Symbol(),
1584
- arrayMap = require_arrayMap(),
1585
- isArray = requireIsArray(),
1586
- isSymbol = requireIsSymbol();
1587
-
1588
- /** Used as references for various `Number` constants. */
1589
- var INFINITY = 1 / 0;
1590
-
1591
- /** Used to convert symbols to primitives and strings. */
1592
- var symbolProto = Symbol ? Symbol.prototype : undefined,
1593
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1594
-
1595
- /**
1596
- * The base implementation of `_.toString` which doesn't convert nullish
1597
- * values to empty strings.
1598
- *
1599
- * @private
1600
- * @param {*} value The value to process.
1601
- * @returns {string} Returns the string.
1602
- */
1603
- function baseToString(value) {
1604
- // Exit early for strings to avoid a performance hit in some environments.
1605
- if (typeof value == 'string') {
1606
- return value;
1607
- }
1608
- if (isArray(value)) {
1609
- // Recursively convert values (susceptible to call stack limits).
1610
- return arrayMap(value, baseToString) + '';
1611
- }
1612
- if (isSymbol(value)) {
1613
- return symbolToString ? symbolToString.call(value) : '';
1614
- }
1615
- var result = (value + '');
1616
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1617
- }
1618
-
1619
- _baseToString = baseToString;
1620
- return _baseToString;
1621
- }
1622
-
1623
- var toString_1;
1624
- var hasRequiredToString;
1625
-
1626
- function requireToString () {
1627
- if (hasRequiredToString) return toString_1;
1628
- hasRequiredToString = 1;
1629
- var baseToString = require_baseToString();
1630
-
1631
- /**
1632
- * Converts `value` to a string. An empty string is returned for `null`
1633
- * and `undefined` values. The sign of `-0` is preserved.
1634
- *
1635
- * @static
1636
- * @memberOf _
1637
- * @since 4.0.0
1638
- * @category Lang
1639
- * @param {*} value The value to convert.
1640
- * @returns {string} Returns the converted string.
1641
- * @example
1642
- *
1643
- * _.toString(null);
1644
- * // => ''
1645
- *
1646
- * _.toString(-0);
1647
- * // => '-0'
1648
- *
1649
- * _.toString([1, 2, 3]);
1650
- * // => '1,2,3'
1651
- */
1652
- function toString(value) {
1653
- return value == null ? '' : baseToString(value);
1654
- }
1655
-
1656
- toString_1 = toString;
1657
- return toString_1;
1658
- }
1659
-
1660
- var _castPath;
1661
- var hasRequired_castPath;
1662
-
1663
- function require_castPath () {
1664
- if (hasRequired_castPath) return _castPath;
1665
- hasRequired_castPath = 1;
1666
- var isArray = requireIsArray(),
1667
- isKey = require_isKey(),
1668
- stringToPath = require_stringToPath(),
1669
- toString = requireToString();
1670
-
1671
- /**
1672
- * Casts `value` to a path array if it's not one.
1673
- *
1674
- * @private
1675
- * @param {*} value The value to inspect.
1676
- * @param {Object} [object] The object to query keys on.
1677
- * @returns {Array} Returns the cast property path array.
1678
- */
1679
- function castPath(value, object) {
1680
- if (isArray(value)) {
1681
- return value;
1682
- }
1683
- return isKey(value, object) ? [value] : stringToPath(toString(value));
1684
- }
1685
-
1686
- _castPath = castPath;
1687
- return _castPath;
1688
- }
1689
-
1690
- var _toKey;
1691
- var hasRequired_toKey;
1692
-
1693
- function require_toKey () {
1694
- if (hasRequired_toKey) return _toKey;
1695
- hasRequired_toKey = 1;
1696
- var isSymbol = requireIsSymbol();
1697
-
1698
- /** Used as references for various `Number` constants. */
1699
- var INFINITY = 1 / 0;
1700
-
1701
- /**
1702
- * Converts `value` to a string key if it's not a string or symbol.
1703
- *
1704
- * @private
1705
- * @param {*} value The value to inspect.
1706
- * @returns {string|symbol} Returns the key.
1707
- */
1708
- function toKey(value) {
1709
- if (typeof value == 'string' || isSymbol(value)) {
1710
- return value;
1711
- }
1712
- var result = (value + '');
1713
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1714
- }
1715
-
1716
- _toKey = toKey;
1717
- return _toKey;
1718
- }
1719
-
1720
- var _baseGet;
1721
- var hasRequired_baseGet;
1722
-
1723
- function require_baseGet () {
1724
- if (hasRequired_baseGet) return _baseGet;
1725
- hasRequired_baseGet = 1;
1726
- var castPath = require_castPath(),
1727
- toKey = require_toKey();
1728
-
1729
- /**
1730
- * The base implementation of `_.get` without support for default values.
1731
- *
1732
- * @private
1733
- * @param {Object} object The object to query.
1734
- * @param {Array|string} path The path of the property to get.
1735
- * @returns {*} Returns the resolved value.
1736
- */
1737
- function baseGet(object, path) {
1738
- path = castPath(path, object);
1739
-
1740
- var index = 0,
1741
- length = path.length;
1742
-
1743
- while (object != null && index < length) {
1744
- object = object[toKey(path[index++])];
1745
- }
1746
- return (index && index == length) ? object : undefined;
1747
- }
1748
-
1749
- _baseGet = baseGet;
1750
- return _baseGet;
1751
- }
1752
-
1753
- var get_1;
1754
- var hasRequiredGet;
1755
-
1756
- function requireGet () {
1757
- if (hasRequiredGet) return get_1;
1758
- hasRequiredGet = 1;
1759
- var baseGet = require_baseGet();
1760
-
1761
- /**
1762
- * Gets the value at `path` of `object`. If the resolved value is
1763
- * `undefined`, the `defaultValue` is returned in its place.
1764
- *
1765
- * @static
1766
- * @memberOf _
1767
- * @since 3.7.0
1768
- * @category Object
1769
- * @param {Object} object The object to query.
1770
- * @param {Array|string} path The path of the property to get.
1771
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1772
- * @returns {*} Returns the resolved value.
1773
- * @example
1774
- *
1775
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1776
- *
1777
- * _.get(object, 'a[0].b.c');
1778
- * // => 3
1779
- *
1780
- * _.get(object, ['a', '0', 'b', 'c']);
1781
- * // => 3
1782
- *
1783
- * _.get(object, 'a.b.c', 'default');
1784
- * // => 'default'
1785
- */
1786
- function get(object, path, defaultValue) {
1787
- var result = object == null ? undefined : baseGet(object, path);
1788
- return result === undefined ? defaultValue : result;
1789
- }
1790
-
1791
- get_1 = get;
1792
- return get_1;
1793
- }
1794
-
1795
- var getExports = requireGet();
1796
- const get = /*@__PURE__*/getDefaultExportFromCjs(getExports);
1797
-
1798
70
  function checkType(value, condition) {
1799
71
  if (condition) {
1800
72
  return true;
@@ -1850,24 +122,6 @@ function getByPath(data, path, defaultValue = undefined) {
1850
122
  return get(data, path, defaultValue);
1851
123
  }
1852
124
 
1853
- var dayjs_min$1 = {exports: {}};
1854
-
1855
- var dayjs_min = dayjs_min$1.exports;
1856
-
1857
- var hasRequiredDayjs_min;
1858
-
1859
- function requireDayjs_min () {
1860
- if (hasRequiredDayjs_min) return dayjs_min$1.exports;
1861
- hasRequiredDayjs_min = 1;
1862
- (function (module, exports) {
1863
- !function(t,e){module.exports=e();}(dayjs_min,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
1864
- } (dayjs_min$1));
1865
- return dayjs_min$1.exports;
1866
- }
1867
-
1868
- var dayjs_minExports = requireDayjs_min();
1869
- const dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
1870
-
1871
125
  function dateDifference(type, firstDate, secondDate = new Date(), float = false) {
1872
126
  const first = dayjs(firstDate);
1873
127
  return first.diff(secondDate, type, float);
@@ -1934,24 +188,6 @@ function getYesterday() {
1934
188
  return yesterday;
1935
189
  }
1936
190
 
1937
- var isToday$2 = {exports: {}};
1938
-
1939
- var isToday$1 = isToday$2.exports;
1940
-
1941
- var hasRequiredIsToday;
1942
-
1943
- function requireIsToday () {
1944
- if (hasRequiredIsToday) return isToday$2.exports;
1945
- hasRequiredIsToday = 1;
1946
- (function (module, exports) {
1947
- !function(e,o){module.exports=o();}(isToday$1,(function(){return function(e,o,t){o.prototype.isToday=function(){var e="YYYY-MM-DD",o=t();return this.format(e)===o.format(e)};}}));
1948
- } (isToday$2));
1949
- return isToday$2.exports;
1950
- }
1951
-
1952
- var isTodayExports = requireIsToday();
1953
- const todayPlugin = /*@__PURE__*/getDefaultExportFromCjs(isTodayExports);
1954
-
1955
191
  dayjs.extend(todayPlugin);
1956
192
  function isToday(date) {
1957
193
  try {
@@ -1962,24 +198,6 @@ function isToday(date) {
1962
198
  }
1963
199
  }
1964
200
 
1965
- var isTomorrow$2 = {exports: {}};
1966
-
1967
- var isTomorrow$1 = isTomorrow$2.exports;
1968
-
1969
- var hasRequiredIsTomorrow;
1970
-
1971
- function requireIsTomorrow () {
1972
- if (hasRequiredIsTomorrow) return isTomorrow$2.exports;
1973
- hasRequiredIsTomorrow = 1;
1974
- (function (module, exports) {
1975
- !function(o,e){module.exports=e();}(isTomorrow$1,(function(){return function(o,e,t){e.prototype.isTomorrow=function(){var o="YYYY-MM-DD",e=t().add(1,"day");return this.format(o)===e.format(o)};}}));
1976
- } (isTomorrow$2));
1977
- return isTomorrow$2.exports;
1978
- }
1979
-
1980
- var isTomorrowExports = requireIsTomorrow();
1981
- const tomorrowPlugin = /*@__PURE__*/getDefaultExportFromCjs(isTomorrowExports);
1982
-
1983
201
  dayjs.extend(tomorrowPlugin);
1984
202
  function isTomorrow(date) {
1985
203
  try {
@@ -1990,24 +208,6 @@ function isTomorrow(date) {
1990
208
  }
1991
209
  }
1992
210
 
1993
- var isYesterday$2 = {exports: {}};
1994
-
1995
- var isYesterday$1 = isYesterday$2.exports;
1996
-
1997
- var hasRequiredIsYesterday;
1998
-
1999
- function requireIsYesterday () {
2000
- if (hasRequiredIsYesterday) return isYesterday$2.exports;
2001
- hasRequiredIsYesterday = 1;
2002
- (function (module, exports) {
2003
- !function(e,t){module.exports=t();}(isYesterday$1,(function(){return function(e,t,n){t.prototype.isYesterday=function(){var e="YYYY-MM-DD",t=n().subtract(1,"day");return this.format(e)===t.format(e)};}}));
2004
- } (isYesterday$2));
2005
- return isYesterday$2.exports;
2006
- }
2007
-
2008
- var isYesterdayExports = requireIsYesterday();
2009
- const yesterdayPlugin = /*@__PURE__*/getDefaultExportFromCjs(isYesterdayExports);
2010
-
2011
211
  dayjs.extend(yesterdayPlugin);
2012
212
  function isYesterday(date) {
2013
213
  try {
@@ -2066,239 +266,6 @@ function fieldViewFormat(field, type = "string") {
2066
266
  }
2067
267
  }
2068
268
 
2069
- var _defineProperty;
2070
- var hasRequired_defineProperty;
2071
-
2072
- function require_defineProperty () {
2073
- if (hasRequired_defineProperty) return _defineProperty;
2074
- hasRequired_defineProperty = 1;
2075
- var getNative = require_getNative();
2076
-
2077
- var defineProperty = (function() {
2078
- try {
2079
- var func = getNative(Object, 'defineProperty');
2080
- func({}, '', {});
2081
- return func;
2082
- } catch (e) {}
2083
- }());
2084
-
2085
- _defineProperty = defineProperty;
2086
- return _defineProperty;
2087
- }
2088
-
2089
- var _baseAssignValue;
2090
- var hasRequired_baseAssignValue;
2091
-
2092
- function require_baseAssignValue () {
2093
- if (hasRequired_baseAssignValue) return _baseAssignValue;
2094
- hasRequired_baseAssignValue = 1;
2095
- var defineProperty = require_defineProperty();
2096
-
2097
- /**
2098
- * The base implementation of `assignValue` and `assignMergeValue` without
2099
- * value checks.
2100
- *
2101
- * @private
2102
- * @param {Object} object The object to modify.
2103
- * @param {string} key The key of the property to assign.
2104
- * @param {*} value The value to assign.
2105
- */
2106
- function baseAssignValue(object, key, value) {
2107
- if (key == '__proto__' && defineProperty) {
2108
- defineProperty(object, key, {
2109
- 'configurable': true,
2110
- 'enumerable': true,
2111
- 'value': value,
2112
- 'writable': true
2113
- });
2114
- } else {
2115
- object[key] = value;
2116
- }
2117
- }
2118
-
2119
- _baseAssignValue = baseAssignValue;
2120
- return _baseAssignValue;
2121
- }
2122
-
2123
- var _assignValue;
2124
- var hasRequired_assignValue;
2125
-
2126
- function require_assignValue () {
2127
- if (hasRequired_assignValue) return _assignValue;
2128
- hasRequired_assignValue = 1;
2129
- var baseAssignValue = require_baseAssignValue(),
2130
- eq = requireEq();
2131
-
2132
- /** Used for built-in method references. */
2133
- var objectProto = Object.prototype;
2134
-
2135
- /** Used to check objects for own properties. */
2136
- var hasOwnProperty = objectProto.hasOwnProperty;
2137
-
2138
- /**
2139
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
2140
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
2141
- * for equality comparisons.
2142
- *
2143
- * @private
2144
- * @param {Object} object The object to modify.
2145
- * @param {string} key The key of the property to assign.
2146
- * @param {*} value The value to assign.
2147
- */
2148
- function assignValue(object, key, value) {
2149
- var objValue = object[key];
2150
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
2151
- (value === undefined && !(key in object))) {
2152
- baseAssignValue(object, key, value);
2153
- }
2154
- }
2155
-
2156
- _assignValue = assignValue;
2157
- return _assignValue;
2158
- }
2159
-
2160
- /** Used as references for various `Number` constants. */
2161
-
2162
- var _isIndex;
2163
- var hasRequired_isIndex;
2164
-
2165
- function require_isIndex () {
2166
- if (hasRequired_isIndex) return _isIndex;
2167
- hasRequired_isIndex = 1;
2168
- var MAX_SAFE_INTEGER = 9007199254740991;
2169
-
2170
- /** Used to detect unsigned integer values. */
2171
- var reIsUint = /^(?:0|[1-9]\d*)$/;
2172
-
2173
- /**
2174
- * Checks if `value` is a valid array-like index.
2175
- *
2176
- * @private
2177
- * @param {*} value The value to check.
2178
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
2179
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
2180
- */
2181
- function isIndex(value, length) {
2182
- var type = typeof value;
2183
- length = length == null ? MAX_SAFE_INTEGER : length;
2184
-
2185
- return !!length &&
2186
- (type == 'number' ||
2187
- (type != 'symbol' && reIsUint.test(value))) &&
2188
- (value > -1 && value % 1 == 0 && value < length);
2189
- }
2190
-
2191
- _isIndex = isIndex;
2192
- return _isIndex;
2193
- }
2194
-
2195
- var _baseSet;
2196
- var hasRequired_baseSet;
2197
-
2198
- function require_baseSet () {
2199
- if (hasRequired_baseSet) return _baseSet;
2200
- hasRequired_baseSet = 1;
2201
- var assignValue = require_assignValue(),
2202
- castPath = require_castPath(),
2203
- isIndex = require_isIndex(),
2204
- isObject = requireIsObject(),
2205
- toKey = require_toKey();
2206
-
2207
- /**
2208
- * The base implementation of `_.set`.
2209
- *
2210
- * @private
2211
- * @param {Object} object The object to modify.
2212
- * @param {Array|string} path The path of the property to set.
2213
- * @param {*} value The value to set.
2214
- * @param {Function} [customizer] The function to customize path creation.
2215
- * @returns {Object} Returns `object`.
2216
- */
2217
- function baseSet(object, path, value, customizer) {
2218
- if (!isObject(object)) {
2219
- return object;
2220
- }
2221
- path = castPath(path, object);
2222
-
2223
- var index = -1,
2224
- length = path.length,
2225
- lastIndex = length - 1,
2226
- nested = object;
2227
-
2228
- while (nested != null && ++index < length) {
2229
- var key = toKey(path[index]),
2230
- newValue = value;
2231
-
2232
- if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
2233
- return object;
2234
- }
2235
-
2236
- if (index != lastIndex) {
2237
- var objValue = nested[key];
2238
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
2239
- if (newValue === undefined) {
2240
- newValue = isObject(objValue)
2241
- ? objValue
2242
- : (isIndex(path[index + 1]) ? [] : {});
2243
- }
2244
- }
2245
- assignValue(nested, key, newValue);
2246
- nested = nested[key];
2247
- }
2248
- return object;
2249
- }
2250
-
2251
- _baseSet = baseSet;
2252
- return _baseSet;
2253
- }
2254
-
2255
- var set_1;
2256
- var hasRequiredSet;
2257
-
2258
- function requireSet () {
2259
- if (hasRequiredSet) return set_1;
2260
- hasRequiredSet = 1;
2261
- var baseSet = require_baseSet();
2262
-
2263
- /**
2264
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
2265
- * it's created. Arrays are created for missing index properties while objects
2266
- * are created for all other missing properties. Use `_.setWith` to customize
2267
- * `path` creation.
2268
- *
2269
- * **Note:** This method mutates `object`.
2270
- *
2271
- * @static
2272
- * @memberOf _
2273
- * @since 3.7.0
2274
- * @category Object
2275
- * @param {Object} object The object to modify.
2276
- * @param {Array|string} path The path of the property to set.
2277
- * @param {*} value The value to set.
2278
- * @returns {Object} Returns `object`.
2279
- * @example
2280
- *
2281
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2282
- *
2283
- * _.set(object, 'a[0].b.c', 4);
2284
- * console.log(object.a[0].b.c);
2285
- * // => 4
2286
- *
2287
- * _.set(object, ['x', '0', 'y', 'z'], 5);
2288
- * console.log(object.x[0].y.z);
2289
- * // => 5
2290
- */
2291
- function set(object, path, value) {
2292
- return object == null ? object : baseSet(object, path, value);
2293
- }
2294
-
2295
- set_1 = set;
2296
- return set_1;
2297
- }
2298
-
2299
- var setExports = requireSet();
2300
- const set = /*@__PURE__*/getDefaultExportFromCjs(setExports);
2301
-
2302
269
  function setByPath(data, path, value) {
2303
270
  try {
2304
271
  if (!isObject(data) && !isArray(data))