tungsten 0.4.12 → 0.4.14

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 (275) hide show
  1. package/dist/.build-complete +1 -1
  2. package/dist/AnyComponent.d.ts.map +1 -1
  3. package/dist/Components.d.ts +40 -0
  4. package/dist/Components.d.ts.map +1 -1
  5. package/dist/Components.js +66 -77
  6. package/dist/DomPointer.js +1 -1
  7. package/dist/DomRegion.js +2 -2
  8. package/dist/Framework.js +1 -1
  9. package/dist/FrameworkConfig.d.ts.map +1 -1
  10. package/dist/Instance/Instance.js +1 -1
  11. package/dist/RenderedContentNode.d.ts.map +1 -1
  12. package/dist/RenderedContentNode.js +2 -1
  13. package/dist/Sass.d.ts.map +1 -1
  14. package/dist/Sass.js +1 -0
  15. package/dist/Servers/DevServer.d.ts.map +1 -1
  16. package/dist/Servers/DevServer.js +4 -3
  17. package/dist/Servers/ProdServer.js +1 -1
  18. package/dist/Servers/StaticSiteServer.js +1 -1
  19. package/dist/Servers/loadEnvsDev.d.ts +1 -1
  20. package/dist/Servers/loadEnvsDev.d.ts.map +1 -1
  21. package/dist/Servers/loadEnvsDev.js +4 -2
  22. package/dist/Servers/routing.d.ts.map +1 -1
  23. package/dist/Servers/routing.js +1 -1
  24. package/dist/Store/Store.js +1 -1
  25. package/dist/Store/TypeSafeStore.js +1 -1
  26. package/dist/Store/makeStore.js +1 -1
  27. package/dist/Store/registerStore.js +1 -1
  28. package/dist/TElement.js +1 -1
  29. package/dist/TungstenApp.js +6 -2
  30. package/dist/_client/cjsHelpers.d.ts.map +1 -1
  31. package/dist/_client/cjsHelpers.js +4 -2
  32. package/dist/_client/client.js +0 -14
  33. package/dist/_client/hmr.d.ts +2 -0
  34. package/dist/_client/hmr.d.ts.map +1 -0
  35. package/dist/_client/hmr.js +65 -0
  36. package/dist/_client/liveReload.d.ts +2 -0
  37. package/dist/_client/liveReload.d.ts.map +1 -0
  38. package/dist/_client/liveReload.js +6 -0
  39. package/dist/_client/liveReloadSource.d.ts +3 -0
  40. package/dist/_client/liveReloadSource.d.ts.map +1 -0
  41. package/dist/_client/liveReloadSource.js +25 -0
  42. package/dist/api/getExport.d.ts.map +1 -1
  43. package/dist/api/getExport.js +1 -0
  44. package/dist/babelPlugins/BabelTransformBindDirect.js +2 -0
  45. package/dist/babelPlugins/BabelTransformBindVar.d.ts.map +1 -1
  46. package/dist/babelPlugins/BabelTransformComponentState.d.ts.map +1 -1
  47. package/dist/babelPlugins/BabelTransformComponentStyles.d.ts.map +1 -1
  48. package/dist/babelPlugins/BabelTransformComponentStyles.js +5 -4
  49. package/dist/babelPlugins/BabelTransformCssImports.d.ts.map +1 -1
  50. package/dist/babelPlugins/BabelTransformCssImports.js +2 -2
  51. package/dist/babelPlugins/BabelTransformDependencyImportsOld.js +1 -1
  52. package/dist/babelPlugins/BabelTransformDeproxyState.d.ts.map +1 -1
  53. package/dist/babelPlugins/BabelTransformPackageImports.d.ts.map +1 -1
  54. package/dist/babelPlugins/BabelTransformPackageImports.js +10 -5
  55. package/dist/babelPlugins/BabelTransformRemoveBlocks.d.ts.map +1 -1
  56. package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.d.ts.map +1 -1
  57. package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsCjs.js +2 -1
  58. package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.d.ts.map +1 -1
  59. package/dist/babelPlugins/transformPackageImports/BabelTransformDependencyImportsEsm.js +2 -1
  60. package/dist/babelPlugins/transformPackageImports/getWebLocationOfPackageFile.js +1 -1
  61. package/dist/bin/args.js +1 -1
  62. package/dist/bin/commands/build.js +1 -1
  63. package/dist/bin/commands/compileSimplePackage.js +1 -0
  64. package/dist/bin/index.d.ts.map +1 -1
  65. package/dist/bin/index.js +11 -3
  66. package/dist/bin/vendorHook.d.ts +3 -0
  67. package/dist/bin/vendorHook.d.ts.map +1 -0
  68. package/dist/bin/vendorHook.js +34 -0
  69. package/dist/browserStorage.js +4 -2
  70. package/dist/build/babel.user.common.config.d.ts +2 -0
  71. package/dist/build/babel.user.common.config.d.ts.map +1 -1
  72. package/dist/build/babel.user.common.config.js +10 -4
  73. package/dist/build/bundle.d.ts.map +1 -1
  74. package/dist/build/bundle.js +10 -1
  75. package/dist/build/compileJavascript.d.ts.map +1 -1
  76. package/dist/build/compileJavascript.js +40 -27
  77. package/dist/build/compileStyles.js +4 -4
  78. package/dist/build/copyAssets.js +3 -3
  79. package/dist/build/copyPublicFiles.js +3 -3
  80. package/dist/build/createClientFiles.d.ts.map +1 -1
  81. package/dist/build/createClientFiles.js +4 -8
  82. package/dist/build/frameworkStylesheets.js +1 -1
  83. package/dist/build/getAllSxyClientModules.d.ts.map +1 -1
  84. package/dist/build/getAllSxyClientModules.js +4 -28
  85. package/dist/build/getSxyClientPackageAliases.d.ts.map +1 -1
  86. package/dist/build/getSxyClientPackageAliases.js +3 -1
  87. package/dist/build/makeBabelUserDevConfig.d.ts.map +1 -1
  88. package/dist/build/makeBabelUserProdConfig.d.ts.map +1 -1
  89. package/dist/build/rollupExtractComponentStylesheets.js +1 -1
  90. package/dist/build/sassImportParser.js +2 -2
  91. package/dist/build/tallyBabel.d.ts +3 -0
  92. package/dist/build/tallyBabel.d.ts.map +1 -0
  93. package/dist/build/tallyBabel.js +11 -0
  94. package/dist/clone.js +4 -4
  95. package/dist/compat/context.d.ts.map +1 -1
  96. package/dist/compat/types.d.ts.map +1 -1
  97. package/dist/componentProxyHandlers.d.ts +20 -13
  98. package/dist/componentProxyHandlers.d.ts.map +1 -1
  99. package/dist/componentProxyHandlers.js +134 -94
  100. package/dist/components/Stylesheet.d.ts +1 -2
  101. package/dist/components/Stylesheet.d.ts.map +1 -1
  102. package/dist/components/Stylesheet.js +1 -1
  103. package/dist/components/bindable/BindableCheckbox.d.ts.map +1 -1
  104. package/dist/components/bindable/BindableInput.d.ts.map +1 -1
  105. package/dist/components/bindable/BindableInputTypedLegacy.d.ts.map +1 -1
  106. package/dist/components/bindable/BindableRadio.d.ts.map +1 -1
  107. package/dist/components/bindable/BindableTextarea.d.ts.map +1 -1
  108. package/dist/components/library/RichTextEditor/RichTextEditor.js +2 -2
  109. package/dist/components/library/RichTextEditor/contentTree.js +1 -1
  110. package/dist/concat.d.ts.map +1 -1
  111. package/dist/concat.js +2 -2
  112. package/dist/copy.d.ts.map +1 -1
  113. package/dist/createRoutes.d.ts +1 -1
  114. package/dist/createRoutes.d.ts.map +1 -1
  115. package/dist/env/Env.js +2 -2
  116. package/dist/env/getEnvSchemas.d.ts +2 -2
  117. package/dist/env/getEnvSchemas.d.ts.map +1 -1
  118. package/dist/env/getEnvSchemas.js +7 -5
  119. package/dist/env/windowGlobalEnvStatement.d.ts.map +1 -1
  120. package/dist/findProjectDir.d.ts.map +1 -1
  121. package/dist/findProjectDir.js +18 -4
  122. package/dist/findUserConfig.js +2 -2
  123. package/dist/foreach.js +1 -0
  124. package/dist/frameworkConfigSchema.js +2 -2
  125. package/dist/getComponent.d.ts.map +1 -1
  126. package/dist/getComponentDev.d.ts.map +1 -1
  127. package/dist/getRoutes.d.ts.map +1 -1
  128. package/dist/getRoutes.js +13 -22
  129. package/dist/getRoutesDevs.d.ts.map +1 -1
  130. package/dist/getStackTrace.js +1 -1
  131. package/dist/glob.d.ts +5 -0
  132. package/dist/glob.d.ts.map +1 -0
  133. package/dist/glob.js +103 -0
  134. package/dist/helpers/getFetchCompatibleHeaders.js +2 -2
  135. package/dist/hmr/applyHmrModule.js +5 -5
  136. package/dist/hmr/componentIdentity.js +1 -1
  137. package/dist/hmr/instanceRegistry.js +2 -2
  138. package/dist/hooks/useReducer.d.ts.map +1 -1
  139. package/dist/hooks/useState.d.ts.map +1 -1
  140. package/dist/hooks/useState.js +2 -8
  141. package/dist/hydrate/hydrate.d.ts +1 -1
  142. package/dist/hydrate/hydrate.d.ts.map +1 -1
  143. package/dist/hydrate/hydrate.js +29 -25
  144. package/dist/hydrate/reconcileHydratedAttributes.js +2 -2
  145. package/dist/indexInner.d.ts +1 -1
  146. package/dist/indexInner.d.ts.map +1 -1
  147. package/dist/indexInner.js +1 -0
  148. package/dist/makeFinalConfig.d.ts.map +1 -1
  149. package/dist/makeFinalConfig.js +2 -2
  150. package/dist/markOptionSelected.js +1 -1
  151. package/dist/mergeConfigs.d.ts.map +1 -1
  152. package/dist/mergeConfigs.js +11 -2
  153. package/dist/mutatingFunctions.d.ts +2 -1
  154. package/dist/mutatingFunctions.d.ts.map +1 -1
  155. package/dist/mutatingFunctions.js +10 -4
  156. package/dist/postcssPlugins/TransformCssNames.js +2 -2
  157. package/dist/rawHtml/parseHtml.js +1 -1
  158. package/dist/render/componentNodeToRenderingTree.d.ts.map +1 -1
  159. package/dist/render/componentNodeToRenderingTree.js +6 -17
  160. package/dist/render/contentToHtml.d.ts.map +1 -1
  161. package/dist/render/contentToHtml.js +1 -1
  162. package/dist/render/getFunctionBodyAsString.d.ts.map +1 -1
  163. package/dist/render/getFunctionBodyAsString.js +2 -5
  164. package/dist/render/processHead.d.ts.map +1 -1
  165. package/dist/render/processHead.js +5 -34
  166. package/dist/render/processProps.js +2 -2
  167. package/dist/render/renderingTreeToHtml.d.ts.map +1 -1
  168. package/dist/render/rootToHtml.d.ts.map +1 -1
  169. package/dist/routing/Route.js +1 -1
  170. package/dist/routing/RouteDataFunction.type.d.ts.map +1 -1
  171. package/dist/routing/RoutesWithSafeParams.js +1 -1
  172. package/dist/routing/WebRedirect.d.ts.map +1 -1
  173. package/dist/routing/compareRequestToRegex.js +2 -2
  174. package/dist/routing/getPathPriority.js +1 -1
  175. package/dist/serverRpc.d.ts.map +1 -1
  176. package/dist/signals/tracking.d.ts +33 -0
  177. package/dist/signals/tracking.d.ts.map +1 -0
  178. package/dist/signals/tracking.js +87 -0
  179. package/dist/slash.d.ts +2 -0
  180. package/dist/slash.d.ts.map +1 -0
  181. package/dist/slash.js +5 -0
  182. package/dist/spawnShellCommand.js +1 -1
  183. package/dist/staticGen/staticGen.d.ts.map +1 -1
  184. package/dist/staticGen/staticGen.js +9 -7
  185. package/dist/staticGen/staticGenFunctions.js +1 -1
  186. package/dist/style/jssToCss.d.ts.map +1 -1
  187. package/dist/style/jssToCss.js +11 -9
  188. package/dist/style/unusedStyles.d.ts.map +1 -1
  189. package/dist/testing/host.js +11 -11
  190. package/dist/testing/hydrateTestApp.d.ts.map +1 -1
  191. package/dist/testing/hydrateTestApp.js +9 -9
  192. package/dist/testing/index.d.ts.map +1 -1
  193. package/dist/testing/installTestStyleProcessors.js +1 -1
  194. package/dist/testing/loadEnv.d.ts +4 -1
  195. package/dist/testing/loadEnv.d.ts.map +1 -1
  196. package/dist/testing/loadEnv.js +2 -2
  197. package/dist/testing/temp/componentPackageMock.js +3 -3
  198. package/dist/timeProfiler.d.ts +4 -0
  199. package/dist/timeProfiler.d.ts.map +1 -1
  200. package/dist/timeProfiler.js +16 -0
  201. package/dist/todo.js +2 -1
  202. package/dist/update/integrateUpdateVdom.d.ts.map +1 -1
  203. package/dist/update/integrateUpdateVdom.js +17 -14
  204. package/dist/update/integrateUpdateVdomPrebuild.js +5 -5
  205. package/dist/warnOnFrameworkChange.js +1 -1
  206. package/dist/watch.js +2 -2
  207. package/package.json +14 -33
  208. package/types/modules.d.ts +0 -1
  209. package/vendor/babel-core.js +26 -0
  210. package/vendor/babel-parser.js +9 -0
  211. package/vendor/babel-plugin-syntax-import-assertions.js +50 -0
  212. package/vendor/babel-preset-react.js +872 -0
  213. package/vendor/babel-preset-typescript.js +26 -0
  214. package/vendor/babel-types.js +9 -0
  215. package/vendor/chalk-extensions.js +1994 -0
  216. package/vendor/chalk.js +647 -0
  217. package/vendor/chokidar.js +6889 -0
  218. package/vendor/chunk-1TN2rK3j.js +1218 -0
  219. package/vendor/chunk-1UuLTU0U.js +34 -0
  220. package/vendor/chunk-B_NeooyV.js +86 -0
  221. package/vendor/chunk-C12hSZn7.js +88 -0
  222. package/vendor/chunk-C3YkUGz5.js +19 -0
  223. package/vendor/chunk-C3fcZDjl.js +41964 -0
  224. package/vendor/chunk-C9FSKeSx.js +14603 -0
  225. package/vendor/chunk-CPArXGxa.js +14623 -0
  226. package/vendor/cjs-module-lexer.js +6 -0
  227. package/vendor/dotenv.js +412 -0
  228. package/vendor/express.js +40577 -0
  229. package/vendor/import-meta-resolve.js +2201 -0
  230. package/vendor/manifest.json +29 -0
  231. package/vendor/postcss.js +8546 -0
  232. package/vendor/serialize-javascript.js +293 -0
  233. package/vendor/sxy-lib-arrays.js +113 -0
  234. package/vendor/sxy-lib-object-copy.js +1781 -0
  235. package/vendor/sxy-lib-objects.js +156 -0
  236. package/vendor/sxy-lib-promises.js +47 -0
  237. package/vendor/sxy-package-investigator.js +202 -0
  238. package/vendor/valibot.js +7664 -0
  239. package/dist/Servers/hono/DevServerHono.d.ts +0 -2
  240. package/dist/Servers/hono/DevServerHono.d.ts.map +0 -1
  241. package/dist/Servers/hono/DevServerHono.js +0 -423
  242. package/dist/Servers/hono/ProdServerHono.d.ts +0 -2
  243. package/dist/Servers/hono/ProdServerHono.d.ts.map +0 -1
  244. package/dist/Servers/hono/ProdServerHono.js +0 -220
  245. package/dist/Servers/hono/TungstenServerHono.d.ts +0 -6
  246. package/dist/Servers/hono/TungstenServerHono.d.ts.map +0 -1
  247. package/dist/Servers/hono/TungstenServerHono.js +0 -36
  248. package/dist/api/ApiEndpointHono.d.ts +0 -3
  249. package/dist/api/ApiEndpointHono.d.ts.map +0 -1
  250. package/dist/api/ApiEndpointHono.js +0 -1
  251. package/dist/api/ApiRouteHono.d.ts +0 -7
  252. package/dist/api/ApiRouteHono.d.ts.map +0 -1
  253. package/dist/api/ApiRouteHono.js +0 -1
  254. package/dist/api/ApiRoutesHono.d.ts +0 -5
  255. package/dist/api/ApiRoutesHono.d.ts.map +0 -1
  256. package/dist/api/ApiRoutesHono.js +0 -1
  257. package/dist/api/getApiRoutesHono.d.ts +0 -6
  258. package/dist/api/getApiRoutesHono.d.ts.map +0 -1
  259. package/dist/api/getApiRoutesHono.js +0 -14
  260. package/dist/build/compilePackages.d.ts +0 -2
  261. package/dist/build/compilePackages.d.ts.map +0 -1
  262. package/dist/build/compilePackages.js +0 -89
  263. package/dist/build/findRequiredUserModule.d.ts +0 -2
  264. package/dist/build/findRequiredUserModule.d.ts.map +0 -1
  265. package/dist/build/findRequiredUserModule.js +0 -36
  266. package/dist/build/processPackage.d.ts +0 -4
  267. package/dist/build/processPackage.d.ts.map +0 -1
  268. package/dist/build/processPackage.js +0 -91
  269. package/dist/build/tallyBabelPlugins.d.ts +0 -3
  270. package/dist/build/tallyBabelPlugins.d.ts.map +0 -1
  271. package/dist/build/tallyBabelPlugins.js +0 -63
  272. package/dist/testing/loadEnvSetup.d.ts +0 -2
  273. package/dist/testing/loadEnvSetup.d.ts.map +0 -1
  274. package/dist/testing/loadEnvSetup.js +0 -7
  275. package/sxy-loader.config.js +0 -7
@@ -0,0 +1,1781 @@
1
+ import { createRequire as __tungstenCreateRequire } from 'node:module';
2
+ const require = __tungstenCreateRequire(import.meta.url);
3
+ import { c as commonjsGlobal } from './chunk-1UuLTU0U.js';
4
+
5
+ var dist = {};
6
+
7
+ var lodash_clonedeep = {exports: {}};
8
+
9
+ /**
10
+ * lodash (Custom Build) <https://lodash.com/>
11
+ * Build: `lodash modularize exports="npm" -o ./`
12
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
13
+ * Released under MIT license <https://lodash.com/license>
14
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
15
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
16
+ */
17
+ lodash_clonedeep.exports;
18
+
19
+ var hasRequiredLodash_clonedeep;
20
+
21
+ function requireLodash_clonedeep () {
22
+ if (hasRequiredLodash_clonedeep) return lodash_clonedeep.exports;
23
+ hasRequiredLodash_clonedeep = 1;
24
+ (function (module, exports) {
25
+ /** Used as the size to enable large array optimizations. */
26
+ var LARGE_ARRAY_SIZE = 200;
27
+
28
+ /** Used to stand-in for `undefined` hash values. */
29
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
30
+
31
+ /** Used as references for various `Number` constants. */
32
+ var MAX_SAFE_INTEGER = 9007199254740991;
33
+
34
+ /** `Object#toString` result references. */
35
+ var argsTag = '[object Arguments]',
36
+ arrayTag = '[object Array]',
37
+ boolTag = '[object Boolean]',
38
+ dateTag = '[object Date]',
39
+ errorTag = '[object Error]',
40
+ funcTag = '[object Function]',
41
+ genTag = '[object GeneratorFunction]',
42
+ mapTag = '[object Map]',
43
+ numberTag = '[object Number]',
44
+ objectTag = '[object Object]',
45
+ promiseTag = '[object Promise]',
46
+ regexpTag = '[object RegExp]',
47
+ setTag = '[object Set]',
48
+ stringTag = '[object String]',
49
+ symbolTag = '[object Symbol]',
50
+ weakMapTag = '[object WeakMap]';
51
+
52
+ var arrayBufferTag = '[object ArrayBuffer]',
53
+ dataViewTag = '[object DataView]',
54
+ float32Tag = '[object Float32Array]',
55
+ float64Tag = '[object Float64Array]',
56
+ int8Tag = '[object Int8Array]',
57
+ int16Tag = '[object Int16Array]',
58
+ int32Tag = '[object Int32Array]',
59
+ uint8Tag = '[object Uint8Array]',
60
+ uint8ClampedTag = '[object Uint8ClampedArray]',
61
+ uint16Tag = '[object Uint16Array]',
62
+ uint32Tag = '[object Uint32Array]';
63
+
64
+ /**
65
+ * Used to match `RegExp`
66
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
67
+ */
68
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
69
+
70
+ /** Used to match `RegExp` flags from their coerced string values. */
71
+ var reFlags = /\w*$/;
72
+
73
+ /** Used to detect host constructors (Safari). */
74
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
75
+
76
+ /** Used to detect unsigned integer values. */
77
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
78
+
79
+ /** Used to identify `toStringTag` values supported by `_.clone`. */
80
+ var cloneableTags = {};
81
+ cloneableTags[argsTag] = cloneableTags[arrayTag] =
82
+ cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
83
+ cloneableTags[boolTag] = cloneableTags[dateTag] =
84
+ cloneableTags[float32Tag] = cloneableTags[float64Tag] =
85
+ cloneableTags[int8Tag] = cloneableTags[int16Tag] =
86
+ cloneableTags[int32Tag] = cloneableTags[mapTag] =
87
+ cloneableTags[numberTag] = cloneableTags[objectTag] =
88
+ cloneableTags[regexpTag] = cloneableTags[setTag] =
89
+ cloneableTags[stringTag] = cloneableTags[symbolTag] =
90
+ cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
91
+ cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
92
+ cloneableTags[errorTag] = cloneableTags[funcTag] =
93
+ cloneableTags[weakMapTag] = false;
94
+
95
+ /** Detect free variable `global` from Node.js. */
96
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
97
+
98
+ /** Detect free variable `self`. */
99
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
100
+
101
+ /** Used as a reference to the global object. */
102
+ var root = freeGlobal || freeSelf || Function('return this')();
103
+
104
+ /** Detect free variable `exports`. */
105
+ var freeExports = exports && !exports.nodeType && exports;
106
+
107
+ /** Detect free variable `module`. */
108
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
109
+
110
+ /** Detect the popular CommonJS extension `module.exports`. */
111
+ var moduleExports = freeModule && freeModule.exports === freeExports;
112
+
113
+ /**
114
+ * Adds the key-value `pair` to `map`.
115
+ *
116
+ * @private
117
+ * @param {Object} map The map to modify.
118
+ * @param {Array} pair The key-value pair to add.
119
+ * @returns {Object} Returns `map`.
120
+ */
121
+ function addMapEntry(map, pair) {
122
+ // Don't return `map.set` because it's not chainable in IE 11.
123
+ map.set(pair[0], pair[1]);
124
+ return map;
125
+ }
126
+
127
+ /**
128
+ * Adds `value` to `set`.
129
+ *
130
+ * @private
131
+ * @param {Object} set The set to modify.
132
+ * @param {*} value The value to add.
133
+ * @returns {Object} Returns `set`.
134
+ */
135
+ function addSetEntry(set, value) {
136
+ // Don't return `set.add` because it's not chainable in IE 11.
137
+ set.add(value);
138
+ return set;
139
+ }
140
+
141
+ /**
142
+ * A specialized version of `_.forEach` for arrays without support for
143
+ * iteratee shorthands.
144
+ *
145
+ * @private
146
+ * @param {Array} [array] The array to iterate over.
147
+ * @param {Function} iteratee The function invoked per iteration.
148
+ * @returns {Array} Returns `array`.
149
+ */
150
+ function arrayEach(array, iteratee) {
151
+ var index = -1,
152
+ length = array ? array.length : 0;
153
+
154
+ while (++index < length) {
155
+ if (iteratee(array[index], index, array) === false) {
156
+ break;
157
+ }
158
+ }
159
+ return array;
160
+ }
161
+
162
+ /**
163
+ * Appends the elements of `values` to `array`.
164
+ *
165
+ * @private
166
+ * @param {Array} array The array to modify.
167
+ * @param {Array} values The values to append.
168
+ * @returns {Array} Returns `array`.
169
+ */
170
+ function arrayPush(array, values) {
171
+ var index = -1,
172
+ length = values.length,
173
+ offset = array.length;
174
+
175
+ while (++index < length) {
176
+ array[offset + index] = values[index];
177
+ }
178
+ return array;
179
+ }
180
+
181
+ /**
182
+ * A specialized version of `_.reduce` for arrays without support for
183
+ * iteratee shorthands.
184
+ *
185
+ * @private
186
+ * @param {Array} [array] The array to iterate over.
187
+ * @param {Function} iteratee The function invoked per iteration.
188
+ * @param {*} [accumulator] The initial value.
189
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
190
+ * the initial value.
191
+ * @returns {*} Returns the accumulated value.
192
+ */
193
+ function arrayReduce(array, iteratee, accumulator, initAccum) {
194
+ var index = -1,
195
+ length = array ? array.length : 0;
196
+ while (++index < length) {
197
+ accumulator = iteratee(accumulator, array[index], index, array);
198
+ }
199
+ return accumulator;
200
+ }
201
+
202
+ /**
203
+ * The base implementation of `_.times` without support for iteratee shorthands
204
+ * or max array length checks.
205
+ *
206
+ * @private
207
+ * @param {number} n The number of times to invoke `iteratee`.
208
+ * @param {Function} iteratee The function invoked per iteration.
209
+ * @returns {Array} Returns the array of results.
210
+ */
211
+ function baseTimes(n, iteratee) {
212
+ var index = -1,
213
+ result = Array(n);
214
+
215
+ while (++index < n) {
216
+ result[index] = iteratee(index);
217
+ }
218
+ return result;
219
+ }
220
+
221
+ /**
222
+ * Gets the value at `key` of `object`.
223
+ *
224
+ * @private
225
+ * @param {Object} [object] The object to query.
226
+ * @param {string} key The key of the property to get.
227
+ * @returns {*} Returns the property value.
228
+ */
229
+ function getValue(object, key) {
230
+ return object == null ? undefined : object[key];
231
+ }
232
+
233
+ /**
234
+ * Checks if `value` is a host object in IE < 9.
235
+ *
236
+ * @private
237
+ * @param {*} value The value to check.
238
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
239
+ */
240
+ function isHostObject(value) {
241
+ // Many host objects are `Object` objects that can coerce to strings
242
+ // despite having improperly defined `toString` methods.
243
+ var result = false;
244
+ if (value != null && typeof value.toString != 'function') {
245
+ try {
246
+ result = !!(value + '');
247
+ } catch (e) {}
248
+ }
249
+ return result;
250
+ }
251
+
252
+ /**
253
+ * Converts `map` to its key-value pairs.
254
+ *
255
+ * @private
256
+ * @param {Object} map The map to convert.
257
+ * @returns {Array} Returns the key-value pairs.
258
+ */
259
+ function mapToArray(map) {
260
+ var index = -1,
261
+ result = Array(map.size);
262
+
263
+ map.forEach(function(value, key) {
264
+ result[++index] = [key, value];
265
+ });
266
+ return result;
267
+ }
268
+
269
+ /**
270
+ * Creates a unary function that invokes `func` with its argument transformed.
271
+ *
272
+ * @private
273
+ * @param {Function} func The function to wrap.
274
+ * @param {Function} transform The argument transform.
275
+ * @returns {Function} Returns the new function.
276
+ */
277
+ function overArg(func, transform) {
278
+ return function(arg) {
279
+ return func(transform(arg));
280
+ };
281
+ }
282
+
283
+ /**
284
+ * Converts `set` to an array of its values.
285
+ *
286
+ * @private
287
+ * @param {Object} set The set to convert.
288
+ * @returns {Array} Returns the values.
289
+ */
290
+ function setToArray(set) {
291
+ var index = -1,
292
+ result = Array(set.size);
293
+
294
+ set.forEach(function(value) {
295
+ result[++index] = value;
296
+ });
297
+ return result;
298
+ }
299
+
300
+ /** Used for built-in method references. */
301
+ var arrayProto = Array.prototype,
302
+ funcProto = Function.prototype,
303
+ objectProto = Object.prototype;
304
+
305
+ /** Used to detect overreaching core-js shims. */
306
+ var coreJsData = root['__core-js_shared__'];
307
+
308
+ /** Used to detect methods masquerading as native. */
309
+ var maskSrcKey = (function() {
310
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
311
+ return uid ? ('Symbol(src)_1.' + uid) : '';
312
+ }());
313
+
314
+ /** Used to resolve the decompiled source of functions. */
315
+ var funcToString = funcProto.toString;
316
+
317
+ /** Used to check objects for own properties. */
318
+ var hasOwnProperty = objectProto.hasOwnProperty;
319
+
320
+ /**
321
+ * Used to resolve the
322
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
323
+ * of values.
324
+ */
325
+ var objectToString = objectProto.toString;
326
+
327
+ /** Used to detect if a method is native. */
328
+ var reIsNative = RegExp('^' +
329
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
330
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
331
+ );
332
+
333
+ /** Built-in value references. */
334
+ var Buffer = moduleExports ? root.Buffer : undefined,
335
+ Symbol = root.Symbol,
336
+ Uint8Array = root.Uint8Array,
337
+ getPrototype = overArg(Object.getPrototypeOf, Object),
338
+ objectCreate = Object.create,
339
+ propertyIsEnumerable = objectProto.propertyIsEnumerable,
340
+ splice = arrayProto.splice;
341
+
342
+ /* Built-in method references for those with the same name as other `lodash` methods. */
343
+ var nativeGetSymbols = Object.getOwnPropertySymbols,
344
+ nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
345
+ nativeKeys = overArg(Object.keys, Object);
346
+
347
+ /* Built-in method references that are verified to be native. */
348
+ var DataView = getNative(root, 'DataView'),
349
+ Map = getNative(root, 'Map'),
350
+ Promise = getNative(root, 'Promise'),
351
+ Set = getNative(root, 'Set'),
352
+ WeakMap = getNative(root, 'WeakMap'),
353
+ nativeCreate = getNative(Object, 'create');
354
+
355
+ /** Used to detect maps, sets, and weakmaps. */
356
+ var dataViewCtorString = toSource(DataView),
357
+ mapCtorString = toSource(Map),
358
+ promiseCtorString = toSource(Promise),
359
+ setCtorString = toSource(Set),
360
+ weakMapCtorString = toSource(WeakMap);
361
+
362
+ /** Used to convert symbols to primitives and strings. */
363
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
364
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
365
+
366
+ /**
367
+ * Creates a hash object.
368
+ *
369
+ * @private
370
+ * @constructor
371
+ * @param {Array} [entries] The key-value pairs to cache.
372
+ */
373
+ function Hash(entries) {
374
+ var index = -1,
375
+ length = entries ? entries.length : 0;
376
+
377
+ this.clear();
378
+ while (++index < length) {
379
+ var entry = entries[index];
380
+ this.set(entry[0], entry[1]);
381
+ }
382
+ }
383
+
384
+ /**
385
+ * Removes all key-value entries from the hash.
386
+ *
387
+ * @private
388
+ * @name clear
389
+ * @memberOf Hash
390
+ */
391
+ function hashClear() {
392
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
393
+ }
394
+
395
+ /**
396
+ * Removes `key` and its value from the hash.
397
+ *
398
+ * @private
399
+ * @name delete
400
+ * @memberOf Hash
401
+ * @param {Object} hash The hash to modify.
402
+ * @param {string} key The key of the value to remove.
403
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
404
+ */
405
+ function hashDelete(key) {
406
+ return this.has(key) && delete this.__data__[key];
407
+ }
408
+
409
+ /**
410
+ * Gets the hash value for `key`.
411
+ *
412
+ * @private
413
+ * @name get
414
+ * @memberOf Hash
415
+ * @param {string} key The key of the value to get.
416
+ * @returns {*} Returns the entry value.
417
+ */
418
+ function hashGet(key) {
419
+ var data = this.__data__;
420
+ if (nativeCreate) {
421
+ var result = data[key];
422
+ return result === HASH_UNDEFINED ? undefined : result;
423
+ }
424
+ return hasOwnProperty.call(data, key) ? data[key] : undefined;
425
+ }
426
+
427
+ /**
428
+ * Checks if a hash value for `key` exists.
429
+ *
430
+ * @private
431
+ * @name has
432
+ * @memberOf Hash
433
+ * @param {string} key The key of the entry to check.
434
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
435
+ */
436
+ function hashHas(key) {
437
+ var data = this.__data__;
438
+ return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
439
+ }
440
+
441
+ /**
442
+ * Sets the hash `key` to `value`.
443
+ *
444
+ * @private
445
+ * @name set
446
+ * @memberOf Hash
447
+ * @param {string} key The key of the value to set.
448
+ * @param {*} value The value to set.
449
+ * @returns {Object} Returns the hash instance.
450
+ */
451
+ function hashSet(key, value) {
452
+ var data = this.__data__;
453
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
454
+ return this;
455
+ }
456
+
457
+ // Add methods to `Hash`.
458
+ Hash.prototype.clear = hashClear;
459
+ Hash.prototype['delete'] = hashDelete;
460
+ Hash.prototype.get = hashGet;
461
+ Hash.prototype.has = hashHas;
462
+ Hash.prototype.set = hashSet;
463
+
464
+ /**
465
+ * Creates an list cache object.
466
+ *
467
+ * @private
468
+ * @constructor
469
+ * @param {Array} [entries] The key-value pairs to cache.
470
+ */
471
+ function ListCache(entries) {
472
+ var index = -1,
473
+ length = entries ? entries.length : 0;
474
+
475
+ this.clear();
476
+ while (++index < length) {
477
+ var entry = entries[index];
478
+ this.set(entry[0], entry[1]);
479
+ }
480
+ }
481
+
482
+ /**
483
+ * Removes all key-value entries from the list cache.
484
+ *
485
+ * @private
486
+ * @name clear
487
+ * @memberOf ListCache
488
+ */
489
+ function listCacheClear() {
490
+ this.__data__ = [];
491
+ }
492
+
493
+ /**
494
+ * Removes `key` and its value from the list cache.
495
+ *
496
+ * @private
497
+ * @name delete
498
+ * @memberOf ListCache
499
+ * @param {string} key The key of the value to remove.
500
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
501
+ */
502
+ function listCacheDelete(key) {
503
+ var data = this.__data__,
504
+ index = assocIndexOf(data, key);
505
+
506
+ if (index < 0) {
507
+ return false;
508
+ }
509
+ var lastIndex = data.length - 1;
510
+ if (index == lastIndex) {
511
+ data.pop();
512
+ } else {
513
+ splice.call(data, index, 1);
514
+ }
515
+ return true;
516
+ }
517
+
518
+ /**
519
+ * Gets the list cache value for `key`.
520
+ *
521
+ * @private
522
+ * @name get
523
+ * @memberOf ListCache
524
+ * @param {string} key The key of the value to get.
525
+ * @returns {*} Returns the entry value.
526
+ */
527
+ function listCacheGet(key) {
528
+ var data = this.__data__,
529
+ index = assocIndexOf(data, key);
530
+
531
+ return index < 0 ? undefined : data[index][1];
532
+ }
533
+
534
+ /**
535
+ * Checks if a list cache value for `key` exists.
536
+ *
537
+ * @private
538
+ * @name has
539
+ * @memberOf ListCache
540
+ * @param {string} key The key of the entry to check.
541
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
542
+ */
543
+ function listCacheHas(key) {
544
+ return assocIndexOf(this.__data__, key) > -1;
545
+ }
546
+
547
+ /**
548
+ * Sets the list cache `key` to `value`.
549
+ *
550
+ * @private
551
+ * @name set
552
+ * @memberOf ListCache
553
+ * @param {string} key The key of the value to set.
554
+ * @param {*} value The value to set.
555
+ * @returns {Object} Returns the list cache instance.
556
+ */
557
+ function listCacheSet(key, value) {
558
+ var data = this.__data__,
559
+ index = assocIndexOf(data, key);
560
+
561
+ if (index < 0) {
562
+ data.push([key, value]);
563
+ } else {
564
+ data[index][1] = value;
565
+ }
566
+ return this;
567
+ }
568
+
569
+ // Add methods to `ListCache`.
570
+ ListCache.prototype.clear = listCacheClear;
571
+ ListCache.prototype['delete'] = listCacheDelete;
572
+ ListCache.prototype.get = listCacheGet;
573
+ ListCache.prototype.has = listCacheHas;
574
+ ListCache.prototype.set = listCacheSet;
575
+
576
+ /**
577
+ * Creates a map cache object to store key-value pairs.
578
+ *
579
+ * @private
580
+ * @constructor
581
+ * @param {Array} [entries] The key-value pairs to cache.
582
+ */
583
+ function MapCache(entries) {
584
+ var index = -1,
585
+ length = entries ? entries.length : 0;
586
+
587
+ this.clear();
588
+ while (++index < length) {
589
+ var entry = entries[index];
590
+ this.set(entry[0], entry[1]);
591
+ }
592
+ }
593
+
594
+ /**
595
+ * Removes all key-value entries from the map.
596
+ *
597
+ * @private
598
+ * @name clear
599
+ * @memberOf MapCache
600
+ */
601
+ function mapCacheClear() {
602
+ this.__data__ = {
603
+ 'hash': new Hash,
604
+ 'map': new (Map || ListCache),
605
+ 'string': new Hash
606
+ };
607
+ }
608
+
609
+ /**
610
+ * Removes `key` and its value from the map.
611
+ *
612
+ * @private
613
+ * @name delete
614
+ * @memberOf MapCache
615
+ * @param {string} key The key of the value to remove.
616
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
617
+ */
618
+ function mapCacheDelete(key) {
619
+ return getMapData(this, key)['delete'](key);
620
+ }
621
+
622
+ /**
623
+ * Gets the map value for `key`.
624
+ *
625
+ * @private
626
+ * @name get
627
+ * @memberOf MapCache
628
+ * @param {string} key The key of the value to get.
629
+ * @returns {*} Returns the entry value.
630
+ */
631
+ function mapCacheGet(key) {
632
+ return getMapData(this, key).get(key);
633
+ }
634
+
635
+ /**
636
+ * Checks if a map value for `key` exists.
637
+ *
638
+ * @private
639
+ * @name has
640
+ * @memberOf MapCache
641
+ * @param {string} key The key of the entry to check.
642
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
643
+ */
644
+ function mapCacheHas(key) {
645
+ return getMapData(this, key).has(key);
646
+ }
647
+
648
+ /**
649
+ * Sets the map `key` to `value`.
650
+ *
651
+ * @private
652
+ * @name set
653
+ * @memberOf MapCache
654
+ * @param {string} key The key of the value to set.
655
+ * @param {*} value The value to set.
656
+ * @returns {Object} Returns the map cache instance.
657
+ */
658
+ function mapCacheSet(key, value) {
659
+ getMapData(this, key).set(key, value);
660
+ return this;
661
+ }
662
+
663
+ // Add methods to `MapCache`.
664
+ MapCache.prototype.clear = mapCacheClear;
665
+ MapCache.prototype['delete'] = mapCacheDelete;
666
+ MapCache.prototype.get = mapCacheGet;
667
+ MapCache.prototype.has = mapCacheHas;
668
+ MapCache.prototype.set = mapCacheSet;
669
+
670
+ /**
671
+ * Creates a stack cache object to store key-value pairs.
672
+ *
673
+ * @private
674
+ * @constructor
675
+ * @param {Array} [entries] The key-value pairs to cache.
676
+ */
677
+ function Stack(entries) {
678
+ this.__data__ = new ListCache(entries);
679
+ }
680
+
681
+ /**
682
+ * Removes all key-value entries from the stack.
683
+ *
684
+ * @private
685
+ * @name clear
686
+ * @memberOf Stack
687
+ */
688
+ function stackClear() {
689
+ this.__data__ = new ListCache;
690
+ }
691
+
692
+ /**
693
+ * Removes `key` and its value from the stack.
694
+ *
695
+ * @private
696
+ * @name delete
697
+ * @memberOf Stack
698
+ * @param {string} key The key of the value to remove.
699
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
700
+ */
701
+ function stackDelete(key) {
702
+ return this.__data__['delete'](key);
703
+ }
704
+
705
+ /**
706
+ * Gets the stack value for `key`.
707
+ *
708
+ * @private
709
+ * @name get
710
+ * @memberOf Stack
711
+ * @param {string} key The key of the value to get.
712
+ * @returns {*} Returns the entry value.
713
+ */
714
+ function stackGet(key) {
715
+ return this.__data__.get(key);
716
+ }
717
+
718
+ /**
719
+ * Checks if a stack value for `key` exists.
720
+ *
721
+ * @private
722
+ * @name has
723
+ * @memberOf Stack
724
+ * @param {string} key The key of the entry to check.
725
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
726
+ */
727
+ function stackHas(key) {
728
+ return this.__data__.has(key);
729
+ }
730
+
731
+ /**
732
+ * Sets the stack `key` to `value`.
733
+ *
734
+ * @private
735
+ * @name set
736
+ * @memberOf Stack
737
+ * @param {string} key The key of the value to set.
738
+ * @param {*} value The value to set.
739
+ * @returns {Object} Returns the stack cache instance.
740
+ */
741
+ function stackSet(key, value) {
742
+ var cache = this.__data__;
743
+ if (cache instanceof ListCache) {
744
+ var pairs = cache.__data__;
745
+ if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
746
+ pairs.push([key, value]);
747
+ return this;
748
+ }
749
+ cache = this.__data__ = new MapCache(pairs);
750
+ }
751
+ cache.set(key, value);
752
+ return this;
753
+ }
754
+
755
+ // Add methods to `Stack`.
756
+ Stack.prototype.clear = stackClear;
757
+ Stack.prototype['delete'] = stackDelete;
758
+ Stack.prototype.get = stackGet;
759
+ Stack.prototype.has = stackHas;
760
+ Stack.prototype.set = stackSet;
761
+
762
+ /**
763
+ * Creates an array of the enumerable property names of the array-like `value`.
764
+ *
765
+ * @private
766
+ * @param {*} value The value to query.
767
+ * @param {boolean} inherited Specify returning inherited property names.
768
+ * @returns {Array} Returns the array of property names.
769
+ */
770
+ function arrayLikeKeys(value, inherited) {
771
+ // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
772
+ // Safari 9 makes `arguments.length` enumerable in strict mode.
773
+ var result = (isArray(value) || isArguments(value))
774
+ ? baseTimes(value.length, String)
775
+ : [];
776
+
777
+ var length = result.length,
778
+ skipIndexes = !!length;
779
+
780
+ for (var key in value) {
781
+ if ((hasOwnProperty.call(value, key)) &&
782
+ !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
783
+ result.push(key);
784
+ }
785
+ }
786
+ return result;
787
+ }
788
+
789
+ /**
790
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
791
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
792
+ * for equality comparisons.
793
+ *
794
+ * @private
795
+ * @param {Object} object The object to modify.
796
+ * @param {string} key The key of the property to assign.
797
+ * @param {*} value The value to assign.
798
+ */
799
+ function assignValue(object, key, value) {
800
+ var objValue = object[key];
801
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
802
+ (value === undefined && !(key in object))) {
803
+ object[key] = value;
804
+ }
805
+ }
806
+
807
+ /**
808
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
809
+ *
810
+ * @private
811
+ * @param {Array} array The array to inspect.
812
+ * @param {*} key The key to search for.
813
+ * @returns {number} Returns the index of the matched value, else `-1`.
814
+ */
815
+ function assocIndexOf(array, key) {
816
+ var length = array.length;
817
+ while (length--) {
818
+ if (eq(array[length][0], key)) {
819
+ return length;
820
+ }
821
+ }
822
+ return -1;
823
+ }
824
+
825
+ /**
826
+ * The base implementation of `_.assign` without support for multiple sources
827
+ * or `customizer` functions.
828
+ *
829
+ * @private
830
+ * @param {Object} object The destination object.
831
+ * @param {Object} source The source object.
832
+ * @returns {Object} Returns `object`.
833
+ */
834
+ function baseAssign(object, source) {
835
+ return object && copyObject(source, keys(source), object);
836
+ }
837
+
838
+ /**
839
+ * The base implementation of `_.clone` and `_.cloneDeep` which tracks
840
+ * traversed objects.
841
+ *
842
+ * @private
843
+ * @param {*} value The value to clone.
844
+ * @param {boolean} [isDeep] Specify a deep clone.
845
+ * @param {boolean} [isFull] Specify a clone including symbols.
846
+ * @param {Function} [customizer] The function to customize cloning.
847
+ * @param {string} [key] The key of `value`.
848
+ * @param {Object} [object] The parent object of `value`.
849
+ * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
850
+ * @returns {*} Returns the cloned value.
851
+ */
852
+ function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
853
+ var result;
854
+ if (customizer) {
855
+ result = object ? customizer(value, key, object, stack) : customizer(value);
856
+ }
857
+ if (result !== undefined) {
858
+ return result;
859
+ }
860
+ if (!isObject(value)) {
861
+ return value;
862
+ }
863
+ var isArr = isArray(value);
864
+ if (isArr) {
865
+ result = initCloneArray(value);
866
+ if (!isDeep) {
867
+ return copyArray(value, result);
868
+ }
869
+ } else {
870
+ var tag = getTag(value),
871
+ isFunc = tag == funcTag || tag == genTag;
872
+
873
+ if (isBuffer(value)) {
874
+ return cloneBuffer(value, isDeep);
875
+ }
876
+ if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
877
+ if (isHostObject(value)) {
878
+ return object ? value : {};
879
+ }
880
+ result = initCloneObject(isFunc ? {} : value);
881
+ if (!isDeep) {
882
+ return copySymbols(value, baseAssign(result, value));
883
+ }
884
+ } else {
885
+ if (!cloneableTags[tag]) {
886
+ return object ? value : {};
887
+ }
888
+ result = initCloneByTag(value, tag, baseClone, isDeep);
889
+ }
890
+ }
891
+ // Check for circular references and return its corresponding clone.
892
+ stack || (stack = new Stack);
893
+ var stacked = stack.get(value);
894
+ if (stacked) {
895
+ return stacked;
896
+ }
897
+ stack.set(value, result);
898
+
899
+ if (!isArr) {
900
+ var props = isFull ? getAllKeys(value) : keys(value);
901
+ }
902
+ arrayEach(props || value, function(subValue, key) {
903
+ if (props) {
904
+ key = subValue;
905
+ subValue = value[key];
906
+ }
907
+ // Recursively populate clone (susceptible to call stack limits).
908
+ assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
909
+ });
910
+ return result;
911
+ }
912
+
913
+ /**
914
+ * The base implementation of `_.create` without support for assigning
915
+ * properties to the created object.
916
+ *
917
+ * @private
918
+ * @param {Object} prototype The object to inherit from.
919
+ * @returns {Object} Returns the new object.
920
+ */
921
+ function baseCreate(proto) {
922
+ return isObject(proto) ? objectCreate(proto) : {};
923
+ }
924
+
925
+ /**
926
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
927
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
928
+ * symbols of `object`.
929
+ *
930
+ * @private
931
+ * @param {Object} object The object to query.
932
+ * @param {Function} keysFunc The function to get the keys of `object`.
933
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
934
+ * @returns {Array} Returns the array of property names and symbols.
935
+ */
936
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
937
+ var result = keysFunc(object);
938
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
939
+ }
940
+
941
+ /**
942
+ * The base implementation of `getTag`.
943
+ *
944
+ * @private
945
+ * @param {*} value The value to query.
946
+ * @returns {string} Returns the `toStringTag`.
947
+ */
948
+ function baseGetTag(value) {
949
+ return objectToString.call(value);
950
+ }
951
+
952
+ /**
953
+ * The base implementation of `_.isNative` without bad shim checks.
954
+ *
955
+ * @private
956
+ * @param {*} value The value to check.
957
+ * @returns {boolean} Returns `true` if `value` is a native function,
958
+ * else `false`.
959
+ */
960
+ function baseIsNative(value) {
961
+ if (!isObject(value) || isMasked(value)) {
962
+ return false;
963
+ }
964
+ var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
965
+ return pattern.test(toSource(value));
966
+ }
967
+
968
+ /**
969
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
970
+ *
971
+ * @private
972
+ * @param {Object} object The object to query.
973
+ * @returns {Array} Returns the array of property names.
974
+ */
975
+ function baseKeys(object) {
976
+ if (!isPrototype(object)) {
977
+ return nativeKeys(object);
978
+ }
979
+ var result = [];
980
+ for (var key in Object(object)) {
981
+ if (hasOwnProperty.call(object, key) && key != 'constructor') {
982
+ result.push(key);
983
+ }
984
+ }
985
+ return result;
986
+ }
987
+
988
+ /**
989
+ * Creates a clone of `buffer`.
990
+ *
991
+ * @private
992
+ * @param {Buffer} buffer The buffer to clone.
993
+ * @param {boolean} [isDeep] Specify a deep clone.
994
+ * @returns {Buffer} Returns the cloned buffer.
995
+ */
996
+ function cloneBuffer(buffer, isDeep) {
997
+ if (isDeep) {
998
+ return buffer.slice();
999
+ }
1000
+ var result = new buffer.constructor(buffer.length);
1001
+ buffer.copy(result);
1002
+ return result;
1003
+ }
1004
+
1005
+ /**
1006
+ * Creates a clone of `arrayBuffer`.
1007
+ *
1008
+ * @private
1009
+ * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1010
+ * @returns {ArrayBuffer} Returns the cloned array buffer.
1011
+ */
1012
+ function cloneArrayBuffer(arrayBuffer) {
1013
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1014
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1015
+ return result;
1016
+ }
1017
+
1018
+ /**
1019
+ * Creates a clone of `dataView`.
1020
+ *
1021
+ * @private
1022
+ * @param {Object} dataView The data view to clone.
1023
+ * @param {boolean} [isDeep] Specify a deep clone.
1024
+ * @returns {Object} Returns the cloned data view.
1025
+ */
1026
+ function cloneDataView(dataView, isDeep) {
1027
+ var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
1028
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1029
+ }
1030
+
1031
+ /**
1032
+ * Creates a clone of `map`.
1033
+ *
1034
+ * @private
1035
+ * @param {Object} map The map to clone.
1036
+ * @param {Function} cloneFunc The function to clone values.
1037
+ * @param {boolean} [isDeep] Specify a deep clone.
1038
+ * @returns {Object} Returns the cloned map.
1039
+ */
1040
+ function cloneMap(map, isDeep, cloneFunc) {
1041
+ var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
1042
+ return arrayReduce(array, addMapEntry, new map.constructor);
1043
+ }
1044
+
1045
+ /**
1046
+ * Creates a clone of `regexp`.
1047
+ *
1048
+ * @private
1049
+ * @param {Object} regexp The regexp to clone.
1050
+ * @returns {Object} Returns the cloned regexp.
1051
+ */
1052
+ function cloneRegExp(regexp) {
1053
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
1054
+ result.lastIndex = regexp.lastIndex;
1055
+ return result;
1056
+ }
1057
+
1058
+ /**
1059
+ * Creates a clone of `set`.
1060
+ *
1061
+ * @private
1062
+ * @param {Object} set The set to clone.
1063
+ * @param {Function} cloneFunc The function to clone values.
1064
+ * @param {boolean} [isDeep] Specify a deep clone.
1065
+ * @returns {Object} Returns the cloned set.
1066
+ */
1067
+ function cloneSet(set, isDeep, cloneFunc) {
1068
+ var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
1069
+ return arrayReduce(array, addSetEntry, new set.constructor);
1070
+ }
1071
+
1072
+ /**
1073
+ * Creates a clone of the `symbol` object.
1074
+ *
1075
+ * @private
1076
+ * @param {Object} symbol The symbol object to clone.
1077
+ * @returns {Object} Returns the cloned symbol object.
1078
+ */
1079
+ function cloneSymbol(symbol) {
1080
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1081
+ }
1082
+
1083
+ /**
1084
+ * Creates a clone of `typedArray`.
1085
+ *
1086
+ * @private
1087
+ * @param {Object} typedArray The typed array to clone.
1088
+ * @param {boolean} [isDeep] Specify a deep clone.
1089
+ * @returns {Object} Returns the cloned typed array.
1090
+ */
1091
+ function cloneTypedArray(typedArray, isDeep) {
1092
+ var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1093
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1094
+ }
1095
+
1096
+ /**
1097
+ * Copies the values of `source` to `array`.
1098
+ *
1099
+ * @private
1100
+ * @param {Array} source The array to copy values from.
1101
+ * @param {Array} [array=[]] The array to copy values to.
1102
+ * @returns {Array} Returns `array`.
1103
+ */
1104
+ function copyArray(source, array) {
1105
+ var index = -1,
1106
+ length = source.length;
1107
+
1108
+ array || (array = Array(length));
1109
+ while (++index < length) {
1110
+ array[index] = source[index];
1111
+ }
1112
+ return array;
1113
+ }
1114
+
1115
+ /**
1116
+ * Copies properties of `source` to `object`.
1117
+ *
1118
+ * @private
1119
+ * @param {Object} source The object to copy properties from.
1120
+ * @param {Array} props The property identifiers to copy.
1121
+ * @param {Object} [object={}] The object to copy properties to.
1122
+ * @param {Function} [customizer] The function to customize copied values.
1123
+ * @returns {Object} Returns `object`.
1124
+ */
1125
+ function copyObject(source, props, object, customizer) {
1126
+ object || (object = {});
1127
+
1128
+ var index = -1,
1129
+ length = props.length;
1130
+
1131
+ while (++index < length) {
1132
+ var key = props[index];
1133
+
1134
+ var newValue = undefined;
1135
+
1136
+ assignValue(object, key, newValue === undefined ? source[key] : newValue);
1137
+ }
1138
+ return object;
1139
+ }
1140
+
1141
+ /**
1142
+ * Copies own symbol properties of `source` to `object`.
1143
+ *
1144
+ * @private
1145
+ * @param {Object} source The object to copy symbols from.
1146
+ * @param {Object} [object={}] The object to copy symbols to.
1147
+ * @returns {Object} Returns `object`.
1148
+ */
1149
+ function copySymbols(source, object) {
1150
+ return copyObject(source, getSymbols(source), object);
1151
+ }
1152
+
1153
+ /**
1154
+ * Creates an array of own enumerable property names and symbols of `object`.
1155
+ *
1156
+ * @private
1157
+ * @param {Object} object The object to query.
1158
+ * @returns {Array} Returns the array of property names and symbols.
1159
+ */
1160
+ function getAllKeys(object) {
1161
+ return baseGetAllKeys(object, keys, getSymbols);
1162
+ }
1163
+
1164
+ /**
1165
+ * Gets the data for `map`.
1166
+ *
1167
+ * @private
1168
+ * @param {Object} map The map to query.
1169
+ * @param {string} key The reference key.
1170
+ * @returns {*} Returns the map data.
1171
+ */
1172
+ function getMapData(map, key) {
1173
+ var data = map.__data__;
1174
+ return isKeyable(key)
1175
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1176
+ : data.map;
1177
+ }
1178
+
1179
+ /**
1180
+ * Gets the native function at `key` of `object`.
1181
+ *
1182
+ * @private
1183
+ * @param {Object} object The object to query.
1184
+ * @param {string} key The key of the method to get.
1185
+ * @returns {*} Returns the function if it's native, else `undefined`.
1186
+ */
1187
+ function getNative(object, key) {
1188
+ var value = getValue(object, key);
1189
+ return baseIsNative(value) ? value : undefined;
1190
+ }
1191
+
1192
+ /**
1193
+ * Creates an array of the own enumerable symbol properties of `object`.
1194
+ *
1195
+ * @private
1196
+ * @param {Object} object The object to query.
1197
+ * @returns {Array} Returns the array of symbols.
1198
+ */
1199
+ var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
1200
+
1201
+ /**
1202
+ * Gets the `toStringTag` of `value`.
1203
+ *
1204
+ * @private
1205
+ * @param {*} value The value to query.
1206
+ * @returns {string} Returns the `toStringTag`.
1207
+ */
1208
+ var getTag = baseGetTag;
1209
+
1210
+ // Fallback for data views, maps, sets, and weak maps in IE 11,
1211
+ // for data views in Edge < 14, and promises in Node.js.
1212
+ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
1213
+ (Map && getTag(new Map) != mapTag) ||
1214
+ (Promise && getTag(Promise.resolve()) != promiseTag) ||
1215
+ (Set && getTag(new Set) != setTag) ||
1216
+ (WeakMap && getTag(new WeakMap) != weakMapTag)) {
1217
+ getTag = function(value) {
1218
+ var result = objectToString.call(value),
1219
+ Ctor = result == objectTag ? value.constructor : undefined,
1220
+ ctorString = Ctor ? toSource(Ctor) : undefined;
1221
+
1222
+ if (ctorString) {
1223
+ switch (ctorString) {
1224
+ case dataViewCtorString: return dataViewTag;
1225
+ case mapCtorString: return mapTag;
1226
+ case promiseCtorString: return promiseTag;
1227
+ case setCtorString: return setTag;
1228
+ case weakMapCtorString: return weakMapTag;
1229
+ }
1230
+ }
1231
+ return result;
1232
+ };
1233
+ }
1234
+
1235
+ /**
1236
+ * Initializes an array clone.
1237
+ *
1238
+ * @private
1239
+ * @param {Array} array The array to clone.
1240
+ * @returns {Array} Returns the initialized clone.
1241
+ */
1242
+ function initCloneArray(array) {
1243
+ var length = array.length,
1244
+ result = array.constructor(length);
1245
+
1246
+ // Add properties assigned by `RegExp#exec`.
1247
+ if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
1248
+ result.index = array.index;
1249
+ result.input = array.input;
1250
+ }
1251
+ return result;
1252
+ }
1253
+
1254
+ /**
1255
+ * Initializes an object clone.
1256
+ *
1257
+ * @private
1258
+ * @param {Object} object The object to clone.
1259
+ * @returns {Object} Returns the initialized clone.
1260
+ */
1261
+ function initCloneObject(object) {
1262
+ return (typeof object.constructor == 'function' && !isPrototype(object))
1263
+ ? baseCreate(getPrototype(object))
1264
+ : {};
1265
+ }
1266
+
1267
+ /**
1268
+ * Initializes an object clone based on its `toStringTag`.
1269
+ *
1270
+ * **Note:** This function only supports cloning values with tags of
1271
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1272
+ *
1273
+ * @private
1274
+ * @param {Object} object The object to clone.
1275
+ * @param {string} tag The `toStringTag` of the object to clone.
1276
+ * @param {Function} cloneFunc The function to clone values.
1277
+ * @param {boolean} [isDeep] Specify a deep clone.
1278
+ * @returns {Object} Returns the initialized clone.
1279
+ */
1280
+ function initCloneByTag(object, tag, cloneFunc, isDeep) {
1281
+ var Ctor = object.constructor;
1282
+ switch (tag) {
1283
+ case arrayBufferTag:
1284
+ return cloneArrayBuffer(object);
1285
+
1286
+ case boolTag:
1287
+ case dateTag:
1288
+ return new Ctor(+object);
1289
+
1290
+ case dataViewTag:
1291
+ return cloneDataView(object, isDeep);
1292
+
1293
+ case float32Tag: case float64Tag:
1294
+ case int8Tag: case int16Tag: case int32Tag:
1295
+ case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
1296
+ return cloneTypedArray(object, isDeep);
1297
+
1298
+ case mapTag:
1299
+ return cloneMap(object, isDeep, cloneFunc);
1300
+
1301
+ case numberTag:
1302
+ case stringTag:
1303
+ return new Ctor(object);
1304
+
1305
+ case regexpTag:
1306
+ return cloneRegExp(object);
1307
+
1308
+ case setTag:
1309
+ return cloneSet(object, isDeep, cloneFunc);
1310
+
1311
+ case symbolTag:
1312
+ return cloneSymbol(object);
1313
+ }
1314
+ }
1315
+
1316
+ /**
1317
+ * Checks if `value` is a valid array-like index.
1318
+ *
1319
+ * @private
1320
+ * @param {*} value The value to check.
1321
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1322
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1323
+ */
1324
+ function isIndex(value, length) {
1325
+ length = length == null ? MAX_SAFE_INTEGER : length;
1326
+ return !!length &&
1327
+ (typeof value == 'number' || reIsUint.test(value)) &&
1328
+ (value > -1 && value % 1 == 0 && value < length);
1329
+ }
1330
+
1331
+ /**
1332
+ * Checks if `value` is suitable for use as unique object key.
1333
+ *
1334
+ * @private
1335
+ * @param {*} value The value to check.
1336
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1337
+ */
1338
+ function isKeyable(value) {
1339
+ var type = typeof value;
1340
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1341
+ ? (value !== '__proto__')
1342
+ : (value === null);
1343
+ }
1344
+
1345
+ /**
1346
+ * Checks if `func` has its source masked.
1347
+ *
1348
+ * @private
1349
+ * @param {Function} func The function to check.
1350
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1351
+ */
1352
+ function isMasked(func) {
1353
+ return !!maskSrcKey && (maskSrcKey in func);
1354
+ }
1355
+
1356
+ /**
1357
+ * Checks if `value` is likely a prototype object.
1358
+ *
1359
+ * @private
1360
+ * @param {*} value The value to check.
1361
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1362
+ */
1363
+ function isPrototype(value) {
1364
+ var Ctor = value && value.constructor,
1365
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
1366
+
1367
+ return value === proto;
1368
+ }
1369
+
1370
+ /**
1371
+ * Converts `func` to its source code.
1372
+ *
1373
+ * @private
1374
+ * @param {Function} func The function to process.
1375
+ * @returns {string} Returns the source code.
1376
+ */
1377
+ function toSource(func) {
1378
+ if (func != null) {
1379
+ try {
1380
+ return funcToString.call(func);
1381
+ } catch (e) {}
1382
+ try {
1383
+ return (func + '');
1384
+ } catch (e) {}
1385
+ }
1386
+ return '';
1387
+ }
1388
+
1389
+ /**
1390
+ * This method is like `_.clone` except that it recursively clones `value`.
1391
+ *
1392
+ * @static
1393
+ * @memberOf _
1394
+ * @since 1.0.0
1395
+ * @category Lang
1396
+ * @param {*} value The value to recursively clone.
1397
+ * @returns {*} Returns the deep cloned value.
1398
+ * @see _.clone
1399
+ * @example
1400
+ *
1401
+ * var objects = [{ 'a': 1 }, { 'b': 2 }];
1402
+ *
1403
+ * var deep = _.cloneDeep(objects);
1404
+ * console.log(deep[0] === objects[0]);
1405
+ * // => false
1406
+ */
1407
+ function cloneDeep(value) {
1408
+ return baseClone(value, true, true);
1409
+ }
1410
+
1411
+ /**
1412
+ * Performs a
1413
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1414
+ * comparison between two values to determine if they are equivalent.
1415
+ *
1416
+ * @static
1417
+ * @memberOf _
1418
+ * @since 4.0.0
1419
+ * @category Lang
1420
+ * @param {*} value The value to compare.
1421
+ * @param {*} other The other value to compare.
1422
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1423
+ * @example
1424
+ *
1425
+ * var object = { 'a': 1 };
1426
+ * var other = { 'a': 1 };
1427
+ *
1428
+ * _.eq(object, object);
1429
+ * // => true
1430
+ *
1431
+ * _.eq(object, other);
1432
+ * // => false
1433
+ *
1434
+ * _.eq('a', 'a');
1435
+ * // => true
1436
+ *
1437
+ * _.eq('a', Object('a'));
1438
+ * // => false
1439
+ *
1440
+ * _.eq(NaN, NaN);
1441
+ * // => true
1442
+ */
1443
+ function eq(value, other) {
1444
+ return value === other || (value !== value && other !== other);
1445
+ }
1446
+
1447
+ /**
1448
+ * Checks if `value` is likely an `arguments` object.
1449
+ *
1450
+ * @static
1451
+ * @memberOf _
1452
+ * @since 0.1.0
1453
+ * @category Lang
1454
+ * @param {*} value The value to check.
1455
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1456
+ * else `false`.
1457
+ * @example
1458
+ *
1459
+ * _.isArguments(function() { return arguments; }());
1460
+ * // => true
1461
+ *
1462
+ * _.isArguments([1, 2, 3]);
1463
+ * // => false
1464
+ */
1465
+ function isArguments(value) {
1466
+ // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
1467
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
1468
+ (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
1469
+ }
1470
+
1471
+ /**
1472
+ * Checks if `value` is classified as an `Array` object.
1473
+ *
1474
+ * @static
1475
+ * @memberOf _
1476
+ * @since 0.1.0
1477
+ * @category Lang
1478
+ * @param {*} value The value to check.
1479
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1480
+ * @example
1481
+ *
1482
+ * _.isArray([1, 2, 3]);
1483
+ * // => true
1484
+ *
1485
+ * _.isArray(document.body.children);
1486
+ * // => false
1487
+ *
1488
+ * _.isArray('abc');
1489
+ * // => false
1490
+ *
1491
+ * _.isArray(_.noop);
1492
+ * // => false
1493
+ */
1494
+ var isArray = Array.isArray;
1495
+
1496
+ /**
1497
+ * Checks if `value` is array-like. A value is considered array-like if it's
1498
+ * not a function and has a `value.length` that's an integer greater than or
1499
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1500
+ *
1501
+ * @static
1502
+ * @memberOf _
1503
+ * @since 4.0.0
1504
+ * @category Lang
1505
+ * @param {*} value The value to check.
1506
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1507
+ * @example
1508
+ *
1509
+ * _.isArrayLike([1, 2, 3]);
1510
+ * // => true
1511
+ *
1512
+ * _.isArrayLike(document.body.children);
1513
+ * // => true
1514
+ *
1515
+ * _.isArrayLike('abc');
1516
+ * // => true
1517
+ *
1518
+ * _.isArrayLike(_.noop);
1519
+ * // => false
1520
+ */
1521
+ function isArrayLike(value) {
1522
+ return value != null && isLength(value.length) && !isFunction(value);
1523
+ }
1524
+
1525
+ /**
1526
+ * This method is like `_.isArrayLike` except that it also checks if `value`
1527
+ * is an object.
1528
+ *
1529
+ * @static
1530
+ * @memberOf _
1531
+ * @since 4.0.0
1532
+ * @category Lang
1533
+ * @param {*} value The value to check.
1534
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
1535
+ * else `false`.
1536
+ * @example
1537
+ *
1538
+ * _.isArrayLikeObject([1, 2, 3]);
1539
+ * // => true
1540
+ *
1541
+ * _.isArrayLikeObject(document.body.children);
1542
+ * // => true
1543
+ *
1544
+ * _.isArrayLikeObject('abc');
1545
+ * // => false
1546
+ *
1547
+ * _.isArrayLikeObject(_.noop);
1548
+ * // => false
1549
+ */
1550
+ function isArrayLikeObject(value) {
1551
+ return isObjectLike(value) && isArrayLike(value);
1552
+ }
1553
+
1554
+ /**
1555
+ * Checks if `value` is a buffer.
1556
+ *
1557
+ * @static
1558
+ * @memberOf _
1559
+ * @since 4.3.0
1560
+ * @category Lang
1561
+ * @param {*} value The value to check.
1562
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1563
+ * @example
1564
+ *
1565
+ * _.isBuffer(new Buffer(2));
1566
+ * // => true
1567
+ *
1568
+ * _.isBuffer(new Uint8Array(2));
1569
+ * // => false
1570
+ */
1571
+ var isBuffer = nativeIsBuffer || stubFalse;
1572
+
1573
+ /**
1574
+ * Checks if `value` is classified as a `Function` object.
1575
+ *
1576
+ * @static
1577
+ * @memberOf _
1578
+ * @since 0.1.0
1579
+ * @category Lang
1580
+ * @param {*} value The value to check.
1581
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1582
+ * @example
1583
+ *
1584
+ * _.isFunction(_);
1585
+ * // => true
1586
+ *
1587
+ * _.isFunction(/abc/);
1588
+ * // => false
1589
+ */
1590
+ function isFunction(value) {
1591
+ // The use of `Object#toString` avoids issues with the `typeof` operator
1592
+ // in Safari 8-9 which returns 'object' for typed array and other constructors.
1593
+ var tag = isObject(value) ? objectToString.call(value) : '';
1594
+ return tag == funcTag || tag == genTag;
1595
+ }
1596
+
1597
+ /**
1598
+ * Checks if `value` is a valid array-like length.
1599
+ *
1600
+ * **Note:** This method is loosely based on
1601
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1602
+ *
1603
+ * @static
1604
+ * @memberOf _
1605
+ * @since 4.0.0
1606
+ * @category Lang
1607
+ * @param {*} value The value to check.
1608
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1609
+ * @example
1610
+ *
1611
+ * _.isLength(3);
1612
+ * // => true
1613
+ *
1614
+ * _.isLength(Number.MIN_VALUE);
1615
+ * // => false
1616
+ *
1617
+ * _.isLength(Infinity);
1618
+ * // => false
1619
+ *
1620
+ * _.isLength('3');
1621
+ * // => false
1622
+ */
1623
+ function isLength(value) {
1624
+ return typeof value == 'number' &&
1625
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1626
+ }
1627
+
1628
+ /**
1629
+ * Checks if `value` is the
1630
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1631
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1632
+ *
1633
+ * @static
1634
+ * @memberOf _
1635
+ * @since 0.1.0
1636
+ * @category Lang
1637
+ * @param {*} value The value to check.
1638
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1639
+ * @example
1640
+ *
1641
+ * _.isObject({});
1642
+ * // => true
1643
+ *
1644
+ * _.isObject([1, 2, 3]);
1645
+ * // => true
1646
+ *
1647
+ * _.isObject(_.noop);
1648
+ * // => true
1649
+ *
1650
+ * _.isObject(null);
1651
+ * // => false
1652
+ */
1653
+ function isObject(value) {
1654
+ var type = typeof value;
1655
+ return !!value && (type == 'object' || type == 'function');
1656
+ }
1657
+
1658
+ /**
1659
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1660
+ * and has a `typeof` result of "object".
1661
+ *
1662
+ * @static
1663
+ * @memberOf _
1664
+ * @since 4.0.0
1665
+ * @category Lang
1666
+ * @param {*} value The value to check.
1667
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1668
+ * @example
1669
+ *
1670
+ * _.isObjectLike({});
1671
+ * // => true
1672
+ *
1673
+ * _.isObjectLike([1, 2, 3]);
1674
+ * // => true
1675
+ *
1676
+ * _.isObjectLike(_.noop);
1677
+ * // => false
1678
+ *
1679
+ * _.isObjectLike(null);
1680
+ * // => false
1681
+ */
1682
+ function isObjectLike(value) {
1683
+ return !!value && typeof value == 'object';
1684
+ }
1685
+
1686
+ /**
1687
+ * Creates an array of the own enumerable property names of `object`.
1688
+ *
1689
+ * **Note:** Non-object values are coerced to objects. See the
1690
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1691
+ * for more details.
1692
+ *
1693
+ * @static
1694
+ * @since 0.1.0
1695
+ * @memberOf _
1696
+ * @category Object
1697
+ * @param {Object} object The object to query.
1698
+ * @returns {Array} Returns the array of property names.
1699
+ * @example
1700
+ *
1701
+ * function Foo() {
1702
+ * this.a = 1;
1703
+ * this.b = 2;
1704
+ * }
1705
+ *
1706
+ * Foo.prototype.c = 3;
1707
+ *
1708
+ * _.keys(new Foo);
1709
+ * // => ['a', 'b'] (iteration order is not guaranteed)
1710
+ *
1711
+ * _.keys('hi');
1712
+ * // => ['0', '1']
1713
+ */
1714
+ function keys(object) {
1715
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1716
+ }
1717
+
1718
+ /**
1719
+ * This method returns a new empty array.
1720
+ *
1721
+ * @static
1722
+ * @memberOf _
1723
+ * @since 4.13.0
1724
+ * @category Util
1725
+ * @returns {Array} Returns the new empty array.
1726
+ * @example
1727
+ *
1728
+ * var arrays = _.times(2, _.stubArray);
1729
+ *
1730
+ * console.log(arrays);
1731
+ * // => [[], []]
1732
+ *
1733
+ * console.log(arrays[0] === arrays[1]);
1734
+ * // => false
1735
+ */
1736
+ function stubArray() {
1737
+ return [];
1738
+ }
1739
+
1740
+ /**
1741
+ * This method returns `false`.
1742
+ *
1743
+ * @static
1744
+ * @memberOf _
1745
+ * @since 4.13.0
1746
+ * @category Util
1747
+ * @returns {boolean} Returns `false`.
1748
+ * @example
1749
+ *
1750
+ * _.times(2, _.stubFalse);
1751
+ * // => [false, false]
1752
+ */
1753
+ function stubFalse() {
1754
+ return false;
1755
+ }
1756
+
1757
+ module.exports = cloneDeep;
1758
+ } (lodash_clonedeep, lodash_clonedeep.exports));
1759
+ return lodash_clonedeep.exports;
1760
+ }
1761
+
1762
+ var hasRequiredDist;
1763
+
1764
+ function requireDist () {
1765
+ if (hasRequiredDist) return dist;
1766
+ hasRequiredDist = 1;
1767
+ var __importDefault = (dist && dist.__importDefault) || function (mod) {
1768
+ return (mod && mod.__esModule) ? mod : { "default": mod };
1769
+ };
1770
+ Object.defineProperty(dist, "__esModule", { value: true });
1771
+ dist.objectCopy = void 0;
1772
+ const lodash_clonedeep_1 = __importDefault(requireLodash_clonedeep());
1773
+ dist.objectCopy = lodash_clonedeep_1.default;
1774
+ return dist;
1775
+ }
1776
+
1777
+ var distExports = requireDist();
1778
+
1779
+ const __v0 = distExports["__esModule"];const __v1 = distExports["objectCopy"];
1780
+
1781
+ export { __v0 as __esModule, distExports as default, __v1 as objectCopy };