@mattisvensson/strapi-plugin-webatlas 0.4.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/_chunks/EmptyBox-BM4IscSk.mjs +1 -0
  2. package/dist/_chunks/EmptyBox-BM4IscSk.mjs.map +1 -0
  3. package/dist/_chunks/EmptyBox-T8t29l25.js +1 -0
  4. package/dist/_chunks/EmptyBox-T8t29l25.js.map +1 -0
  5. package/dist/_chunks/FullLoader-Cmsf8xS6.js +1 -0
  6. package/dist/_chunks/FullLoader-Cmsf8xS6.js.map +1 -0
  7. package/dist/_chunks/FullLoader-CrPED_dY.mjs +1 -0
  8. package/dist/_chunks/FullLoader-CrPED_dY.mjs.map +1 -0
  9. package/dist/_chunks/{de-RiCps8UH.js → de-CL1TIZPg.js} +5 -1
  10. package/dist/_chunks/de-CL1TIZPg.js.map +1 -0
  11. package/dist/_chunks/{de-Dn24NwJf.mjs → de-CzVD4dbZ.mjs} +5 -1
  12. package/dist/_chunks/de-CzVD4dbZ.mjs.map +1 -0
  13. package/dist/_chunks/{en-JLW5S3ZC.js → en-Du-Ap60j.js} +5 -1
  14. package/dist/_chunks/en-Du-Ap60j.js.map +1 -0
  15. package/dist/_chunks/{en-D9Lxaugc.mjs → en-Nk6QcTdr.mjs} +5 -1
  16. package/dist/_chunks/en-Nk6QcTdr.mjs.map +1 -0
  17. package/dist/_chunks/{index-CtJ_9-RB.mjs → index-B5u3q4DO.mjs} +6 -6
  18. package/dist/_chunks/index-Bxhu-TNT.js +4177 -0
  19. package/dist/_chunks/index-Bxhu-TNT.js.map +1 -0
  20. package/dist/_chunks/{index-CSYue_D0.js → index-C1HfYOU_.js} +6 -6
  21. package/dist/_chunks/index-CDqKPoLF.mjs +12200 -0
  22. package/dist/_chunks/index-CDqKPoLF.mjs.map +1 -0
  23. package/dist/_chunks/{index-Clikpy91.js → index-CcwGhk4b.js} +1724 -673
  24. package/dist/_chunks/index-Cw8m9qME.js +282 -0
  25. package/dist/_chunks/index-Cw8m9qME.js.map +1 -0
  26. package/dist/_chunks/index-DKWn1eh9.mjs +282 -0
  27. package/dist/_chunks/index-DKWn1eh9.mjs.map +1 -0
  28. package/dist/_chunks/{index-9db80XRS.mjs → index-DLfJwkbe.mjs} +1 -1
  29. package/dist/_chunks/index-DShP5BtK.mjs +127 -0
  30. package/dist/_chunks/index-DShP5BtK.mjs.map +1 -0
  31. package/dist/_chunks/index-DWcVnOi0.js +12200 -0
  32. package/dist/_chunks/index-DWcVnOi0.js.map +1 -0
  33. package/dist/_chunks/{index-CVj7qbwh.mjs → index-Dl3NwmwH.mjs} +1 -1
  34. package/dist/_chunks/index-DohcUdej.mjs +4161 -0
  35. package/dist/_chunks/index-DohcUdej.mjs.map +1 -0
  36. package/dist/_chunks/index-Dryo1JuH.js +127 -0
  37. package/dist/_chunks/index-Dryo1JuH.js.map +1 -0
  38. package/dist/_chunks/{index-CiY-8z8F.js → index-Dy2LLMda.js} +1 -1
  39. package/dist/_chunks/{index-B4pe6Yuh.mjs → index-Upva9LaE.mjs} +1725 -674
  40. package/dist/_chunks/{index-IHvD3566.js → index-xhAxCOze.js} +1 -1
  41. package/dist/admin/index.js +2 -1
  42. package/dist/admin/index.js.map +1 -0
  43. package/dist/admin/index.mjs +2 -1
  44. package/dist/admin/index.mjs.map +1 -0
  45. package/dist/admin/src/hooks/useApi.d.ts +1 -1
  46. package/dist/admin/src/pages/Navigation/Page.d.ts +2 -0
  47. package/dist/admin/src/pages/Navigation/RouteItem.d.ts +1 -0
  48. package/dist/admin/src/pages/Navigation/SortableRouteItem.d.ts +1 -1
  49. package/dist/admin/src/pages/Navigation/index.d.ts +2 -2
  50. package/dist/server/index.js +13 -1
  51. package/dist/server/index.js.map +1 -0
  52. package/dist/server/index.mjs +13 -1
  53. package/dist/server/index.mjs.map +1 -0
  54. package/dist/server/src/index.d.ts +1 -1
  55. package/dist/server/src/services/admin.d.ts +1 -1
  56. package/dist/server/src/services/index.d.ts +1 -1
  57. package/package.json +1 -1
@@ -1,11 +1,12 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useNavigate, useParams, Routes, Route } from "react-router-dom";
2
3
  import { Trash, Pencil, Check, Drag, More, Link, OneToMany, ExternalLink, Plus } from "@strapi/icons";
3
4
  import { Dialog, Typography, Button, Modal, Flex, SingleSelect, SingleSelectOption, Grid, Box, Field, Toggle, Divider, Status, SimpleMenu, IconButton, MenuItem } from "@strapi/design-system";
4
5
  import { useState, useEffect, createContext, useRef, useContext, useReducer, useCallback, useMemo, forwardRef } from "react";
5
6
  import { createPortal } from "react-dom";
6
7
  import { useIntl } from "react-intl";
7
- import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-CtJ_9-RB.mjs";
8
- import { useFetchClient, Page, Layouts, useNotification } from "@strapi/strapi/admin";
8
+ import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-B5u3q4DO.mjs";
9
+ import { useFetchClient, useNotification, Page, Layouts } from "@strapi/strapi/admin";
9
10
  import { C as Center, F as FullLoader } from "./FullLoader-CrPED_dY.mjs";
10
11
  import { E as EmptyBox } from "./EmptyBox-BM4IscSk.mjs";
11
12
  import { MeasuringStrategy, DndContext, closestCenter, DragOverlay } from "@dnd-kit/core";
@@ -89,9 +90,13 @@ function Delete({ variant, item, onDelete }) {
89
90
  const closeModalState = useRef(variant === "NavDelete" ? "NavOverview" : "");
90
91
  const { setModalType } = useContext(ModalContext);
91
92
  const { formatMessage } = useIntl();
93
+ const { deleteNavigation } = useApi();
94
+ const navigate = useNavigate();
92
95
  const handleDelete = async () => {
93
96
  try {
94
97
  if (variant === "NavDelete") {
98
+ await deleteNavigation(item.documentId);
99
+ navigate("/plugins/webatlas/navigation");
95
100
  } else if (variant === "ItemDelete") {
96
101
  const editedItem = { ...item, deleted: true };
97
102
  onDelete(editedItem);
@@ -211,17 +216,28 @@ function NavModal({
211
216
  function NavCreate() {
212
217
  const { post } = useFetchClient();
213
218
  const { setModalType } = useContext(ModalContext);
214
- const { setSelectedNavigation } = useContext(SelectedNavigationContext);
215
219
  const [name, setName] = useState("");
216
220
  const [isActive, setIsActive] = useState(true);
217
221
  const [loading, setLoading] = useState(false);
218
222
  const { formatMessage } = useIntl();
223
+ const { toggleNotification } = useNotification();
224
+ const navigate = useNavigate();
219
225
  const createNavigation = async () => {
220
226
  setLoading(true);
221
227
  try {
222
228
  const { data } = await post("/webatlas/navigation", { name, isActive });
223
- setSelectedNavigation(data);
224
- setModalType("");
229
+ if (data.documentId) {
230
+ navigate(`/plugins/webatlas/navigation/${data.documentId}`);
231
+ setModalType("");
232
+ } else {
233
+ toggleNotification({
234
+ type: "danger",
235
+ message: formatMessage({
236
+ id: getTranslation("notification.navigation.creationFailed"),
237
+ defaultMessage: "Creation of navigation failed"
238
+ })
239
+ });
240
+ }
225
241
  } catch (err) {
226
242
  console.log(err);
227
243
  } finally {
@@ -335,10 +351,11 @@ function NavEdit({ item, onEdit }) {
335
351
  }
336
352
  function NavOverview({ navigations, setActionItem }) {
337
353
  const { setModalType } = useContext(ModalContext);
338
- const { selectedNavigation, setSelectedNavigation } = useContext(SelectedNavigationContext);
354
+ const { selectedNavigation } = useContext(SelectedNavigationContext);
339
355
  const { formatMessage } = useIntl();
356
+ const navigate = useNavigate();
340
357
  const handleSelect = (nav) => {
341
- setSelectedNavigation(nav);
358
+ navigate(`/plugins/webatlas/navigation/${nav.documentId}`);
342
359
  setModalType("");
343
360
  };
344
361
  const handleEdit = (nav) => {
@@ -412,6 +429,9 @@ function NavOverview({ navigations, setActionItem }) {
412
429
  );
413
430
  }
414
431
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
432
+ function getDefaultExportFromCjs(x) {
433
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
434
+ }
415
435
  var lodash_min = { exports: {} };
416
436
  /**
417
437
  * @license
@@ -3961,10 +3981,10 @@ var _mapping = {};
3961
3981
  }
3962
3982
  };
3963
3983
  exports.realToAlias = function() {
3964
- var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports.aliasToReal, result = {};
3984
+ var hasOwnProperty2 = Object.prototype.hasOwnProperty, object = exports.aliasToReal, result = {};
3965
3985
  for (var key in object) {
3966
3986
  var value = object[key];
3967
- if (hasOwnProperty.call(result, value)) {
3987
+ if (hasOwnProperty2.call(result, value)) {
3968
3988
  result[value].push(key);
3969
3989
  } else {
3970
3990
  result[value] = [key];
@@ -4141,13 +4161,13 @@ function baseConvert(util, name, func, options) {
4141
4161
  "toInteger": util.toInteger,
4142
4162
  "toPath": util.toPath
4143
4163
  };
4144
- var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray = helpers.isArray, isError = helpers.isError, isFunction = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath;
4145
- var aryMethodKeys = keys(mapping.aryMethod);
4164
+ var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray2 = helpers.isArray, isError = helpers.isError, isFunction2 = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys2 = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath;
4165
+ var aryMethodKeys = keys2(mapping.aryMethod);
4146
4166
  var wrappers = {
4147
4167
  "castArray": function(castArray) {
4148
4168
  return function() {
4149
4169
  var value = arguments[0];
4150
- return isArray(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments);
4170
+ return isArray2(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments);
4151
4171
  };
4152
4172
  },
4153
4173
  "iteratee": function(iteratee) {
@@ -4163,19 +4183,19 @@ function baseConvert(util, name, func, options) {
4163
4183
  "mixin": function(mixin) {
4164
4184
  return function(source) {
4165
4185
  var func2 = this;
4166
- if (!isFunction(func2)) {
4186
+ if (!isFunction2(func2)) {
4167
4187
  return mixin(func2, Object(source));
4168
4188
  }
4169
4189
  var pairs2 = [];
4170
- each(keys(source), function(key) {
4171
- if (isFunction(source[key])) {
4190
+ each(keys2(source), function(key) {
4191
+ if (isFunction2(source[key])) {
4172
4192
  pairs2.push([key, func2.prototype[key]]);
4173
4193
  }
4174
4194
  });
4175
4195
  mixin(func2, Object(source));
4176
4196
  each(pairs2, function(pair) {
4177
4197
  var value = pair[1];
4178
- if (isFunction(value)) {
4198
+ if (isFunction2(value)) {
4179
4199
  func2.prototype[pair[0]] = value;
4180
4200
  } else {
4181
4201
  delete func2.prototype[pair[0]];
@@ -4233,7 +4253,7 @@ function baseConvert(util, name, func, options) {
4233
4253
  var index = -1, length = path.length, lastIndex = length - 1, result = clone(Object(object)), nested = result;
4234
4254
  while (nested != null && ++index < length) {
4235
4255
  var key = path[index], value = nested[key];
4236
- if (value != null && !(isFunction(value) || isError(value) || isWeakMap(value))) {
4256
+ if (value != null && !(isFunction2(value) || isError(value) || isWeakMap(value))) {
4237
4257
  nested[key] = clone(index == lastIndex ? value : Object(value));
4238
4258
  }
4239
4259
  nested = nested[key];
@@ -4251,17 +4271,17 @@ function baseConvert(util, name, func, options) {
4251
4271
  };
4252
4272
  }
4253
4273
  function iterateeAry(func2, n) {
4254
- return overArg(func2, function(func3) {
4274
+ return overArg2(func2, function(func3) {
4255
4275
  return typeof func3 == "function" ? baseAry(func3, n) : func3;
4256
4276
  });
4257
4277
  }
4258
4278
  function iterateeRearg(func2, indexes) {
4259
- return overArg(func2, function(func3) {
4279
+ return overArg2(func2, function(func3) {
4260
4280
  var n = indexes.length;
4261
4281
  return baseArity(rearg(baseAry(func3, n), indexes), n);
4262
4282
  });
4263
4283
  }
4264
- function overArg(func2, transform) {
4284
+ function overArg2(func2, transform) {
4265
4285
  return function() {
4266
4286
  var length = arguments.length;
4267
4287
  if (!length) {
@@ -4324,7 +4344,7 @@ function baseConvert(util, name, func, options) {
4324
4344
  }
4325
4345
  });
4326
4346
  });
4327
- each(keys(_2), function(key) {
4347
+ each(keys2(_2), function(key) {
4328
4348
  var func2 = _2[key];
4329
4349
  if (typeof func2 == "function") {
4330
4350
  var length = pairs.length;
@@ -4342,7 +4362,7 @@ function baseConvert(util, name, func, options) {
4342
4362
  });
4343
4363
  _2.convert = convertLib;
4344
4364
  _2.placeholder = _2;
4345
- each(keys(_2), function(key) {
4365
+ each(keys2(_2), function(key) {
4346
4366
  each(mapping.realToAlias[key] || [], function(alias) {
4347
4367
  _2[alias] = _2[key];
4348
4368
  });
@@ -4807,18 +4827,18 @@ lodash.exports;
4807
4827
  (function() {
4808
4828
  var undefined$1;
4809
4829
  var VERSION = "4.17.21";
4810
- var LARGE_ARRAY_SIZE = 200;
4830
+ var LARGE_ARRAY_SIZE2 = 200;
4811
4831
  var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
4812
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
4832
+ var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
4813
4833
  var MAX_MEMOIZE_SIZE = 500;
4814
4834
  var PLACEHOLDER = "__lodash_placeholder__";
4815
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
4835
+ var CLONE_DEEP_FLAG2 = 1, CLONE_FLAT_FLAG2 = 2, CLONE_SYMBOLS_FLAG2 = 4;
4816
4836
  var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
4817
4837
  var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512;
4818
4838
  var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "...";
4819
4839
  var HOT_COUNT = 800, HOT_SPAN = 16;
4820
4840
  var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3;
4821
- var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0;
4841
+ var INFINITY = 1 / 0, MAX_SAFE_INTEGER2 = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0;
4822
4842
  var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
4823
4843
  var wrapFlags = [
4824
4844
  ["ary", WRAP_ARY_FLAG],
@@ -4831,13 +4851,13 @@ lodash.exports;
4831
4851
  ["partialRight", WRAP_PARTIAL_RIGHT_FLAG],
4832
4852
  ["rearg", WRAP_REARG_FLAG]
4833
4853
  ];
4834
- var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]";
4835
- var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
4854
+ var argsTag2 = "[object Arguments]", arrayTag2 = "[object Array]", asyncTag2 = "[object AsyncFunction]", boolTag2 = "[object Boolean]", dateTag2 = "[object Date]", domExcTag = "[object DOMException]", errorTag2 = "[object Error]", funcTag2 = "[object Function]", genTag2 = "[object GeneratorFunction]", mapTag2 = "[object Map]", numberTag2 = "[object Number]", nullTag2 = "[object Null]", objectTag2 = "[object Object]", promiseTag2 = "[object Promise]", proxyTag2 = "[object Proxy]", regexpTag2 = "[object RegExp]", setTag2 = "[object Set]", stringTag2 = "[object String]", symbolTag2 = "[object Symbol]", undefinedTag2 = "[object Undefined]", weakMapTag2 = "[object WeakMap]", weakSetTag = "[object WeakSet]";
4855
+ var arrayBufferTag2 = "[object ArrayBuffer]", dataViewTag2 = "[object DataView]", float32Tag2 = "[object Float32Array]", float64Tag2 = "[object Float64Array]", int8Tag2 = "[object Int8Array]", int16Tag2 = "[object Int16Array]", int32Tag2 = "[object Int32Array]", uint8Tag2 = "[object Uint8Array]", uint8ClampedTag2 = "[object Uint8ClampedArray]", uint16Tag2 = "[object Uint16Array]", uint32Tag2 = "[object Uint32Array]";
4836
4856
  var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
4837
4857
  var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
4838
4858
  var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g;
4839
4859
  var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
4840
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source);
4860
+ var reRegExpChar2 = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar2.source);
4841
4861
  var reTrimStart = /^\s+/;
4842
4862
  var reWhitespace = /\s/;
4843
4863
  var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /;
@@ -4845,12 +4865,12 @@ lodash.exports;
4845
4865
  var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/;
4846
4866
  var reEscapeChar = /\\(\\)?/g;
4847
4867
  var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
4848
- var reFlags = /\w*$/;
4868
+ var reFlags2 = /\w*$/;
4849
4869
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
4850
4870
  var reIsBinary = /^0b[01]+$/i;
4851
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
4871
+ var reIsHostCtor2 = /^\[object .+?Constructor\]$/;
4852
4872
  var reIsOctal = /^0o[0-7]+$/i;
4853
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4873
+ var reIsUint2 = /^(?:0|[1-9]\d*)$/;
4854
4874
  var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
4855
4875
  var reNoMatch = /($^)/;
4856
4876
  var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
@@ -4905,12 +4925,12 @@ lodash.exports;
4905
4925
  "setTimeout"
4906
4926
  ];
4907
4927
  var templateCounter = -1;
4908
- var typedArrayTags = {};
4909
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
4910
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
4911
- var cloneableTags = {};
4912
- cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
4913
- cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
4928
+ var typedArrayTags2 = {};
4929
+ typedArrayTags2[float32Tag2] = typedArrayTags2[float64Tag2] = typedArrayTags2[int8Tag2] = typedArrayTags2[int16Tag2] = typedArrayTags2[int32Tag2] = typedArrayTags2[uint8Tag2] = typedArrayTags2[uint8ClampedTag2] = typedArrayTags2[uint16Tag2] = typedArrayTags2[uint32Tag2] = true;
4930
+ typedArrayTags2[argsTag2] = typedArrayTags2[arrayTag2] = typedArrayTags2[arrayBufferTag2] = typedArrayTags2[boolTag2] = typedArrayTags2[dataViewTag2] = typedArrayTags2[dateTag2] = typedArrayTags2[errorTag2] = typedArrayTags2[funcTag2] = typedArrayTags2[mapTag2] = typedArrayTags2[numberTag2] = typedArrayTags2[objectTag2] = typedArrayTags2[regexpTag2] = typedArrayTags2[setTag2] = typedArrayTags2[stringTag2] = typedArrayTags2[weakMapTag2] = false;
4931
+ var cloneableTags2 = {};
4932
+ cloneableTags2[argsTag2] = cloneableTags2[arrayTag2] = cloneableTags2[arrayBufferTag2] = cloneableTags2[dataViewTag2] = cloneableTags2[boolTag2] = cloneableTags2[dateTag2] = cloneableTags2[float32Tag2] = cloneableTags2[float64Tag2] = cloneableTags2[int8Tag2] = cloneableTags2[int16Tag2] = cloneableTags2[int32Tag2] = cloneableTags2[mapTag2] = cloneableTags2[numberTag2] = cloneableTags2[objectTag2] = cloneableTags2[regexpTag2] = cloneableTags2[setTag2] = cloneableTags2[stringTag2] = cloneableTags2[symbolTag2] = cloneableTags2[uint8Tag2] = cloneableTags2[uint8ClampedTag2] = cloneableTags2[uint16Tag2] = cloneableTags2[uint32Tag2] = true;
4933
+ cloneableTags2[errorTag2] = cloneableTags2[funcTag2] = cloneableTags2[weakMapTag2] = false;
4914
4934
  var deburredLetters = {
4915
4935
  // Latin-1 Supplement block.
4916
4936
  "À": "A",
@@ -5128,14 +5148,14 @@ lodash.exports;
5128
5148
  "\u2029": "u2029"
5129
5149
  };
5130
5150
  var freeParseFloat = parseFloat, freeParseInt = parseInt;
5131
- var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
5132
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
5133
- var root = freeGlobal || freeSelf || Function("return this")();
5151
+ var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
5152
+ var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
5153
+ var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
5134
5154
  var freeExports = exports && !exports.nodeType && exports;
5135
5155
  var freeModule = freeExports && true && module && !module.nodeType && module;
5136
5156
  var moduleExports = freeModule && freeModule.exports === freeExports;
5137
- var freeProcess = moduleExports && freeGlobal.process;
5138
- var nodeUtil = function() {
5157
+ var freeProcess = moduleExports && freeGlobal2.process;
5158
+ var nodeUtil2 = function() {
5139
5159
  try {
5140
5160
  var types = freeModule && freeModule.require && freeModule.require("util").types;
5141
5161
  if (types) {
@@ -5145,7 +5165,7 @@ lodash.exports;
5145
5165
  } catch (e) {
5146
5166
  }
5147
5167
  }();
5148
- var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
5168
+ var nodeIsArrayBuffer = nodeUtil2 && nodeUtil2.isArrayBuffer, nodeIsDate = nodeUtil2 && nodeUtil2.isDate, nodeIsMap2 = nodeUtil2 && nodeUtil2.isMap, nodeIsRegExp = nodeUtil2 && nodeUtil2.isRegExp, nodeIsSet2 = nodeUtil2 && nodeUtil2.isSet, nodeIsTypedArray2 = nodeUtil2 && nodeUtil2.isTypedArray;
5149
5169
  function apply(func, thisArg, args) {
5150
5170
  switch (args.length) {
5151
5171
  case 0:
@@ -5167,7 +5187,7 @@ lodash.exports;
5167
5187
  }
5168
5188
  return accumulator;
5169
5189
  }
5170
- function arrayEach(array, iteratee) {
5190
+ function arrayEach2(array, iteratee) {
5171
5191
  var index = -1, length = array == null ? 0 : array.length;
5172
5192
  while (++index < length) {
5173
5193
  if (iteratee(array[index], index, array) === false) {
@@ -5194,7 +5214,7 @@ lodash.exports;
5194
5214
  }
5195
5215
  return true;
5196
5216
  }
5197
- function arrayFilter(array, predicate) {
5217
+ function arrayFilter2(array, predicate) {
5198
5218
  var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
5199
5219
  while (++index < length) {
5200
5220
  var value = array[index];
@@ -5224,7 +5244,7 @@ lodash.exports;
5224
5244
  }
5225
5245
  return result;
5226
5246
  }
5227
- function arrayPush(array, values) {
5247
+ function arrayPush2(array, values) {
5228
5248
  var index = -1, length = values.length, offset = array.length;
5229
5249
  while (++index < length) {
5230
5250
  array[offset + index] = values[index];
@@ -5339,7 +5359,7 @@ lodash.exports;
5339
5359
  }
5340
5360
  return result;
5341
5361
  }
5342
- function baseTimes(n, iteratee) {
5362
+ function baseTimes2(n, iteratee) {
5343
5363
  var index = -1, result = Array(n);
5344
5364
  while (++index < n) {
5345
5365
  result[index] = iteratee(index);
@@ -5354,7 +5374,7 @@ lodash.exports;
5354
5374
  function baseTrim(string) {
5355
5375
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
5356
5376
  }
5357
- function baseUnary(func) {
5377
+ function baseUnary2(func) {
5358
5378
  return function(value) {
5359
5379
  return func(value);
5360
5380
  };
@@ -5393,7 +5413,7 @@ lodash.exports;
5393
5413
  function escapeStringChar(chr) {
5394
5414
  return "\\" + stringEscapes[chr];
5395
5415
  }
5396
- function getValue(object, key) {
5416
+ function getValue2(object, key) {
5397
5417
  return object == null ? undefined$1 : object[key];
5398
5418
  }
5399
5419
  function hasUnicode(string) {
@@ -5416,7 +5436,7 @@ lodash.exports;
5416
5436
  });
5417
5437
  return result;
5418
5438
  }
5419
- function overArg(func, transform) {
5439
+ function overArg2(func, transform) {
5420
5440
  return function(arg) {
5421
5441
  return func(transform(arg));
5422
5442
  };
@@ -5491,59 +5511,59 @@ lodash.exports;
5491
5511
  return string.match(reUnicodeWord) || [];
5492
5512
  }
5493
5513
  var runInContext = function runInContext2(context) {
5494
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
5495
- var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError2 = context.TypeError;
5496
- var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
5497
- var coreJsData = context["__core-js_shared__"];
5498
- var funcToString = funcProto.toString;
5499
- var hasOwnProperty = objectProto.hasOwnProperty;
5514
+ context = context == null ? root2 : _2.defaults(root2.Object(), context, _2.pick(root2, contextProps));
5515
+ var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
5516
+ var arrayProto2 = Array2.prototype, funcProto2 = Function2.prototype, objectProto2 = Object2.prototype;
5517
+ var coreJsData2 = context["__core-js_shared__"];
5518
+ var funcToString2 = funcProto2.toString;
5519
+ var hasOwnProperty2 = objectProto2.hasOwnProperty;
5500
5520
  var idCounter = 0;
5501
- var maskSrcKey = function() {
5502
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
5521
+ var maskSrcKey2 = function() {
5522
+ var uid = /[^.]+$/.exec(coreJsData2 && coreJsData2.keys && coreJsData2.keys.IE_PROTO || "");
5503
5523
  return uid ? "Symbol(src)_1." + uid : "";
5504
5524
  }();
5505
- var nativeObjectToString = objectProto.toString;
5506
- var objectCtorString = funcToString.call(Object2);
5507
- var oldDash = root._;
5508
- var reIsNative = RegExp2(
5509
- "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5525
+ var nativeObjectToString2 = objectProto2.toString;
5526
+ var objectCtorString = funcToString2.call(Object2);
5527
+ var oldDash = root2._;
5528
+ var reIsNative2 = RegExp2(
5529
+ "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5510
5530
  );
5511
- var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag = Symbol ? Symbol.toStringTag : undefined$1;
5512
- var defineProperty = function() {
5531
+ var Buffer = moduleExports ? context.Buffer : undefined$1, Symbol = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined$1, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable2 = objectProto2.propertyIsEnumerable, splice2 = arrayProto2.splice, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined$1, symIterator = Symbol ? Symbol.iterator : undefined$1, symToStringTag2 = Symbol ? Symbol.toStringTag : undefined$1;
5532
+ var defineProperty2 = function() {
5513
5533
  try {
5514
- var func = getNative(Object2, "defineProperty");
5534
+ var func = getNative2(Object2, "defineProperty");
5515
5535
  func({}, "", {});
5516
5536
  return func;
5517
5537
  } catch (e) {
5518
5538
  }
5519
5539
  }();
5520
- var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
5521
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
5522
- var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
5523
- var metaMap = WeakMap && new WeakMap();
5540
+ var ctxClearTimeout = context.clearTimeout !== root2.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root2.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root2.setTimeout && context.setTimeout;
5541
+ var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols2 = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto2.join, nativeKeys2 = overArg2(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto2.reverse;
5542
+ var DataView2 = getNative2(context, "DataView"), Map2 = getNative2(context, "Map"), Promise2 = getNative2(context, "Promise"), Set2 = getNative2(context, "Set"), WeakMap2 = getNative2(context, "WeakMap"), nativeCreate2 = getNative2(Object2, "create");
5543
+ var metaMap = WeakMap2 && new WeakMap2();
5524
5544
  var realNames = {};
5525
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
5526
- var symbolProto = Symbol ? Symbol.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
5545
+ var dataViewCtorString2 = toSource2(DataView2), mapCtorString2 = toSource2(Map2), promiseCtorString2 = toSource2(Promise2), setCtorString2 = toSource2(Set2), weakMapCtorString2 = toSource2(WeakMap2);
5546
+ var symbolProto2 = Symbol ? Symbol.prototype : undefined$1, symbolValueOf2 = symbolProto2 ? symbolProto2.valueOf : undefined$1, symbolToString = symbolProto2 ? symbolProto2.toString : undefined$1;
5527
5547
  function lodash2(value) {
5528
- if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
5548
+ if (isObjectLike2(value) && !isArray2(value) && !(value instanceof LazyWrapper)) {
5529
5549
  if (value instanceof LodashWrapper) {
5530
5550
  return value;
5531
5551
  }
5532
- if (hasOwnProperty.call(value, "__wrapped__")) {
5552
+ if (hasOwnProperty2.call(value, "__wrapped__")) {
5533
5553
  return wrapperClone(value);
5534
5554
  }
5535
5555
  }
5536
5556
  return new LodashWrapper(value);
5537
5557
  }
5538
- var baseCreate = /* @__PURE__ */ function() {
5558
+ var baseCreate2 = /* @__PURE__ */ function() {
5539
5559
  function object() {
5540
5560
  }
5541
5561
  return function(proto) {
5542
- if (!isObject(proto)) {
5562
+ if (!isObject2(proto)) {
5543
5563
  return {};
5544
5564
  }
5545
- if (objectCreate) {
5546
- return objectCreate(proto);
5565
+ if (objectCreate2) {
5566
+ return objectCreate2(proto);
5547
5567
  }
5548
5568
  object.prototype = proto;
5549
5569
  var result2 = new object();
@@ -5607,7 +5627,7 @@ lodash.exports;
5607
5627
  };
5608
5628
  lodash2.prototype = baseLodash.prototype;
5609
5629
  lodash2.prototype.constructor = lodash2;
5610
- LodashWrapper.prototype = baseCreate(baseLodash.prototype);
5630
+ LodashWrapper.prototype = baseCreate2(baseLodash.prototype);
5611
5631
  LodashWrapper.prototype.constructor = LodashWrapper;
5612
5632
  function LazyWrapper(value) {
5613
5633
  this.__wrapped__ = value;
@@ -5620,12 +5640,12 @@ lodash.exports;
5620
5640
  }
5621
5641
  function lazyClone() {
5622
5642
  var result2 = new LazyWrapper(this.__wrapped__);
5623
- result2.__actions__ = copyArray(this.__actions__);
5643
+ result2.__actions__ = copyArray2(this.__actions__);
5624
5644
  result2.__dir__ = this.__dir__;
5625
5645
  result2.__filtered__ = this.__filtered__;
5626
- result2.__iteratees__ = copyArray(this.__iteratees__);
5646
+ result2.__iteratees__ = copyArray2(this.__iteratees__);
5627
5647
  result2.__takeCount__ = this.__takeCount__;
5628
- result2.__views__ = copyArray(this.__views__);
5648
+ result2.__views__ = copyArray2(this.__views__);
5629
5649
  return result2;
5630
5650
  }
5631
5651
  function lazyReverse() {
@@ -5640,7 +5660,7 @@ lodash.exports;
5640
5660
  return result2;
5641
5661
  }
5642
5662
  function lazyValue() {
5643
- var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
5663
+ var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray2(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__);
5644
5664
  if (!isArr || !isRight && arrLength == length && takeCount == length) {
5645
5665
  return baseWrapperValue(array, this.__actions__);
5646
5666
  }
@@ -5665,9 +5685,9 @@ lodash.exports;
5665
5685
  }
5666
5686
  return result2;
5667
5687
  }
5668
- LazyWrapper.prototype = baseCreate(baseLodash.prototype);
5688
+ LazyWrapper.prototype = baseCreate2(baseLodash.prototype);
5669
5689
  LazyWrapper.prototype.constructor = LazyWrapper;
5670
- function Hash(entries) {
5690
+ function Hash2(entries) {
5671
5691
  var index = -1, length = entries == null ? 0 : entries.length;
5672
5692
  this.clear();
5673
5693
  while (++index < length) {
@@ -5675,39 +5695,39 @@ lodash.exports;
5675
5695
  this.set(entry[0], entry[1]);
5676
5696
  }
5677
5697
  }
5678
- function hashClear() {
5679
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
5698
+ function hashClear2() {
5699
+ this.__data__ = nativeCreate2 ? nativeCreate2(null) : {};
5680
5700
  this.size = 0;
5681
5701
  }
5682
- function hashDelete(key) {
5702
+ function hashDelete2(key) {
5683
5703
  var result2 = this.has(key) && delete this.__data__[key];
5684
5704
  this.size -= result2 ? 1 : 0;
5685
5705
  return result2;
5686
5706
  }
5687
- function hashGet(key) {
5707
+ function hashGet2(key) {
5688
5708
  var data = this.__data__;
5689
- if (nativeCreate) {
5709
+ if (nativeCreate2) {
5690
5710
  var result2 = data[key];
5691
- return result2 === HASH_UNDEFINED ? undefined$1 : result2;
5711
+ return result2 === HASH_UNDEFINED2 ? undefined$1 : result2;
5692
5712
  }
5693
- return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
5713
+ return hasOwnProperty2.call(data, key) ? data[key] : undefined$1;
5694
5714
  }
5695
- function hashHas(key) {
5715
+ function hashHas2(key) {
5696
5716
  var data = this.__data__;
5697
- return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
5717
+ return nativeCreate2 ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key);
5698
5718
  }
5699
- function hashSet(key, value) {
5719
+ function hashSet2(key, value) {
5700
5720
  var data = this.__data__;
5701
5721
  this.size += this.has(key) ? 0 : 1;
5702
- data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
5722
+ data[key] = nativeCreate2 && value === undefined$1 ? HASH_UNDEFINED2 : value;
5703
5723
  return this;
5704
5724
  }
5705
- Hash.prototype.clear = hashClear;
5706
- Hash.prototype["delete"] = hashDelete;
5707
- Hash.prototype.get = hashGet;
5708
- Hash.prototype.has = hashHas;
5709
- Hash.prototype.set = hashSet;
5710
- function ListCache(entries) {
5725
+ Hash2.prototype.clear = hashClear2;
5726
+ Hash2.prototype["delete"] = hashDelete2;
5727
+ Hash2.prototype.get = hashGet2;
5728
+ Hash2.prototype.has = hashHas2;
5729
+ Hash2.prototype.set = hashSet2;
5730
+ function ListCache2(entries) {
5711
5731
  var index = -1, length = entries == null ? 0 : entries.length;
5712
5732
  this.clear();
5713
5733
  while (++index < length) {
@@ -5715,12 +5735,12 @@ lodash.exports;
5715
5735
  this.set(entry[0], entry[1]);
5716
5736
  }
5717
5737
  }
5718
- function listCacheClear() {
5738
+ function listCacheClear2() {
5719
5739
  this.__data__ = [];
5720
5740
  this.size = 0;
5721
5741
  }
5722
- function listCacheDelete(key) {
5723
- var data = this.__data__, index = assocIndexOf(data, key);
5742
+ function listCacheDelete2(key) {
5743
+ var data = this.__data__, index = assocIndexOf2(data, key);
5724
5744
  if (index < 0) {
5725
5745
  return false;
5726
5746
  }
@@ -5728,20 +5748,20 @@ lodash.exports;
5728
5748
  if (index == lastIndex) {
5729
5749
  data.pop();
5730
5750
  } else {
5731
- splice.call(data, index, 1);
5751
+ splice2.call(data, index, 1);
5732
5752
  }
5733
5753
  --this.size;
5734
5754
  return true;
5735
5755
  }
5736
- function listCacheGet(key) {
5737
- var data = this.__data__, index = assocIndexOf(data, key);
5756
+ function listCacheGet2(key) {
5757
+ var data = this.__data__, index = assocIndexOf2(data, key);
5738
5758
  return index < 0 ? undefined$1 : data[index][1];
5739
5759
  }
5740
- function listCacheHas(key) {
5741
- return assocIndexOf(this.__data__, key) > -1;
5760
+ function listCacheHas2(key) {
5761
+ return assocIndexOf2(this.__data__, key) > -1;
5742
5762
  }
5743
- function listCacheSet(key, value) {
5744
- var data = this.__data__, index = assocIndexOf(data, key);
5763
+ function listCacheSet2(key, value) {
5764
+ var data = this.__data__, index = assocIndexOf2(data, key);
5745
5765
  if (index < 0) {
5746
5766
  ++this.size;
5747
5767
  data.push([key, value]);
@@ -5750,12 +5770,12 @@ lodash.exports;
5750
5770
  }
5751
5771
  return this;
5752
5772
  }
5753
- ListCache.prototype.clear = listCacheClear;
5754
- ListCache.prototype["delete"] = listCacheDelete;
5755
- ListCache.prototype.get = listCacheGet;
5756
- ListCache.prototype.has = listCacheHas;
5757
- ListCache.prototype.set = listCacheSet;
5758
- function MapCache(entries) {
5773
+ ListCache2.prototype.clear = listCacheClear2;
5774
+ ListCache2.prototype["delete"] = listCacheDelete2;
5775
+ ListCache2.prototype.get = listCacheGet2;
5776
+ ListCache2.prototype.has = listCacheHas2;
5777
+ ListCache2.prototype.set = listCacheSet2;
5778
+ function MapCache2(entries) {
5759
5779
  var index = -1, length = entries == null ? 0 : entries.length;
5760
5780
  this.clear();
5761
5781
  while (++index < length) {
@@ -5763,45 +5783,45 @@ lodash.exports;
5763
5783
  this.set(entry[0], entry[1]);
5764
5784
  }
5765
5785
  }
5766
- function mapCacheClear() {
5786
+ function mapCacheClear2() {
5767
5787
  this.size = 0;
5768
5788
  this.__data__ = {
5769
- "hash": new Hash(),
5770
- "map": new (Map || ListCache)(),
5771
- "string": new Hash()
5789
+ "hash": new Hash2(),
5790
+ "map": new (Map2 || ListCache2)(),
5791
+ "string": new Hash2()
5772
5792
  };
5773
5793
  }
5774
- function mapCacheDelete(key) {
5775
- var result2 = getMapData(this, key)["delete"](key);
5794
+ function mapCacheDelete2(key) {
5795
+ var result2 = getMapData2(this, key)["delete"](key);
5776
5796
  this.size -= result2 ? 1 : 0;
5777
5797
  return result2;
5778
5798
  }
5779
- function mapCacheGet(key) {
5780
- return getMapData(this, key).get(key);
5799
+ function mapCacheGet2(key) {
5800
+ return getMapData2(this, key).get(key);
5781
5801
  }
5782
- function mapCacheHas(key) {
5783
- return getMapData(this, key).has(key);
5802
+ function mapCacheHas2(key) {
5803
+ return getMapData2(this, key).has(key);
5784
5804
  }
5785
- function mapCacheSet(key, value) {
5786
- var data = getMapData(this, key), size2 = data.size;
5805
+ function mapCacheSet2(key, value) {
5806
+ var data = getMapData2(this, key), size2 = data.size;
5787
5807
  data.set(key, value);
5788
5808
  this.size += data.size == size2 ? 0 : 1;
5789
5809
  return this;
5790
5810
  }
5791
- MapCache.prototype.clear = mapCacheClear;
5792
- MapCache.prototype["delete"] = mapCacheDelete;
5793
- MapCache.prototype.get = mapCacheGet;
5794
- MapCache.prototype.has = mapCacheHas;
5795
- MapCache.prototype.set = mapCacheSet;
5811
+ MapCache2.prototype.clear = mapCacheClear2;
5812
+ MapCache2.prototype["delete"] = mapCacheDelete2;
5813
+ MapCache2.prototype.get = mapCacheGet2;
5814
+ MapCache2.prototype.has = mapCacheHas2;
5815
+ MapCache2.prototype.set = mapCacheSet2;
5796
5816
  function SetCache(values2) {
5797
5817
  var index = -1, length = values2 == null ? 0 : values2.length;
5798
- this.__data__ = new MapCache();
5818
+ this.__data__ = new MapCache2();
5799
5819
  while (++index < length) {
5800
5820
  this.add(values2[index]);
5801
5821
  }
5802
5822
  }
5803
5823
  function setCacheAdd(value) {
5804
- this.__data__.set(value, HASH_UNDEFINED);
5824
+ this.__data__.set(value, HASH_UNDEFINED2);
5805
5825
  return this;
5806
5826
  }
5807
5827
  function setCacheHas(value) {
@@ -5809,53 +5829,53 @@ lodash.exports;
5809
5829
  }
5810
5830
  SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
5811
5831
  SetCache.prototype.has = setCacheHas;
5812
- function Stack(entries) {
5813
- var data = this.__data__ = new ListCache(entries);
5832
+ function Stack2(entries) {
5833
+ var data = this.__data__ = new ListCache2(entries);
5814
5834
  this.size = data.size;
5815
5835
  }
5816
- function stackClear() {
5817
- this.__data__ = new ListCache();
5836
+ function stackClear2() {
5837
+ this.__data__ = new ListCache2();
5818
5838
  this.size = 0;
5819
5839
  }
5820
- function stackDelete(key) {
5840
+ function stackDelete2(key) {
5821
5841
  var data = this.__data__, result2 = data["delete"](key);
5822
5842
  this.size = data.size;
5823
5843
  return result2;
5824
5844
  }
5825
- function stackGet(key) {
5845
+ function stackGet2(key) {
5826
5846
  return this.__data__.get(key);
5827
5847
  }
5828
- function stackHas(key) {
5848
+ function stackHas2(key) {
5829
5849
  return this.__data__.has(key);
5830
5850
  }
5831
- function stackSet(key, value) {
5851
+ function stackSet2(key, value) {
5832
5852
  var data = this.__data__;
5833
- if (data instanceof ListCache) {
5853
+ if (data instanceof ListCache2) {
5834
5854
  var pairs = data.__data__;
5835
- if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
5855
+ if (!Map2 || pairs.length < LARGE_ARRAY_SIZE2 - 1) {
5836
5856
  pairs.push([key, value]);
5837
5857
  this.size = ++data.size;
5838
5858
  return this;
5839
5859
  }
5840
- data = this.__data__ = new MapCache(pairs);
5860
+ data = this.__data__ = new MapCache2(pairs);
5841
5861
  }
5842
5862
  data.set(key, value);
5843
5863
  this.size = data.size;
5844
5864
  return this;
5845
5865
  }
5846
- Stack.prototype.clear = stackClear;
5847
- Stack.prototype["delete"] = stackDelete;
5848
- Stack.prototype.get = stackGet;
5849
- Stack.prototype.has = stackHas;
5850
- Stack.prototype.set = stackSet;
5851
- function arrayLikeKeys(value, inherited) {
5852
- var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String) : [], length = result2.length;
5866
+ Stack2.prototype.clear = stackClear2;
5867
+ Stack2.prototype["delete"] = stackDelete2;
5868
+ Stack2.prototype.get = stackGet2;
5869
+ Stack2.prototype.has = stackHas2;
5870
+ Stack2.prototype.set = stackSet2;
5871
+ function arrayLikeKeys2(value, inherited) {
5872
+ var isArr = isArray2(value), isArg = !isArr && isArguments2(value), isBuff = !isArr && !isArg && isBuffer2(value), isType = !isArr && !isArg && !isBuff && isTypedArray2(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes2(value.length, String2) : [], length = result2.length;
5853
5873
  for (var key in value) {
5854
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
5874
+ if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
5855
5875
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5856
5876
  isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5857
5877
  isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
5858
- isIndex(key, length)))) {
5878
+ isIndex2(key, length)))) {
5859
5879
  result2.push(key);
5860
5880
  }
5861
5881
  }
@@ -5866,26 +5886,26 @@ lodash.exports;
5866
5886
  return length ? array[baseRandom(0, length - 1)] : undefined$1;
5867
5887
  }
5868
5888
  function arraySampleSize(array, n) {
5869
- return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
5889
+ return shuffleSelf(copyArray2(array), baseClamp(n, 0, array.length));
5870
5890
  }
5871
5891
  function arrayShuffle(array) {
5872
- return shuffleSelf(copyArray(array));
5892
+ return shuffleSelf(copyArray2(array));
5873
5893
  }
5874
5894
  function assignMergeValue(object, key, value) {
5875
- if (value !== undefined$1 && !eq(object[key], value) || value === undefined$1 && !(key in object)) {
5876
- baseAssignValue(object, key, value);
5895
+ if (value !== undefined$1 && !eq2(object[key], value) || value === undefined$1 && !(key in object)) {
5896
+ baseAssignValue2(object, key, value);
5877
5897
  }
5878
5898
  }
5879
- function assignValue(object, key, value) {
5899
+ function assignValue2(object, key, value) {
5880
5900
  var objValue = object[key];
5881
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined$1 && !(key in object)) {
5882
- baseAssignValue(object, key, value);
5901
+ if (!(hasOwnProperty2.call(object, key) && eq2(objValue, value)) || value === undefined$1 && !(key in object)) {
5902
+ baseAssignValue2(object, key, value);
5883
5903
  }
5884
5904
  }
5885
- function assocIndexOf(array, key) {
5905
+ function assocIndexOf2(array, key) {
5886
5906
  var length = array.length;
5887
5907
  while (length--) {
5888
- if (eq(array[length][0], key)) {
5908
+ if (eq2(array[length][0], key)) {
5889
5909
  return length;
5890
5910
  }
5891
5911
  }
@@ -5897,15 +5917,15 @@ lodash.exports;
5897
5917
  });
5898
5918
  return accumulator;
5899
5919
  }
5900
- function baseAssign(object, source) {
5901
- return object && copyObject(source, keys(source), object);
5920
+ function baseAssign2(object, source) {
5921
+ return object && copyObject2(source, keys2(source), object);
5902
5922
  }
5903
- function baseAssignIn(object, source) {
5904
- return object && copyObject(source, keysIn(source), object);
5923
+ function baseAssignIn2(object, source) {
5924
+ return object && copyObject2(source, keysIn2(source), object);
5905
5925
  }
5906
- function baseAssignValue(object, key, value) {
5907
- if (key == "__proto__" && defineProperty) {
5908
- defineProperty(object, key, {
5926
+ function baseAssignValue2(object, key, value) {
5927
+ if (key == "__proto__" && defineProperty2) {
5928
+ defineProperty2(object, key, {
5909
5929
  "configurable": true,
5910
5930
  "enumerable": true,
5911
5931
  "value": value,
@@ -5933,68 +5953,68 @@ lodash.exports;
5933
5953
  }
5934
5954
  return number;
5935
5955
  }
5936
- function baseClone(value, bitmask, customizer, key, object, stack) {
5937
- var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
5956
+ function baseClone2(value, bitmask, customizer, key, object, stack) {
5957
+ var result2, isDeep = bitmask & CLONE_DEEP_FLAG2, isFlat = bitmask & CLONE_FLAT_FLAG2, isFull = bitmask & CLONE_SYMBOLS_FLAG2;
5938
5958
  if (customizer) {
5939
5959
  result2 = object ? customizer(value, key, object, stack) : customizer(value);
5940
5960
  }
5941
5961
  if (result2 !== undefined$1) {
5942
5962
  return result2;
5943
5963
  }
5944
- if (!isObject(value)) {
5964
+ if (!isObject2(value)) {
5945
5965
  return value;
5946
5966
  }
5947
- var isArr = isArray(value);
5967
+ var isArr = isArray2(value);
5948
5968
  if (isArr) {
5949
- result2 = initCloneArray(value);
5969
+ result2 = initCloneArray2(value);
5950
5970
  if (!isDeep) {
5951
- return copyArray(value, result2);
5971
+ return copyArray2(value, result2);
5952
5972
  }
5953
5973
  } else {
5954
- var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
5955
- if (isBuffer(value)) {
5956
- return cloneBuffer(value, isDeep);
5974
+ var tag = getTag2(value), isFunc = tag == funcTag2 || tag == genTag2;
5975
+ if (isBuffer2(value)) {
5976
+ return cloneBuffer2(value, isDeep);
5957
5977
  }
5958
- if (tag == objectTag || tag == argsTag || isFunc && !object) {
5959
- result2 = isFlat || isFunc ? {} : initCloneObject(value);
5978
+ if (tag == objectTag2 || tag == argsTag2 || isFunc && !object) {
5979
+ result2 = isFlat || isFunc ? {} : initCloneObject2(value);
5960
5980
  if (!isDeep) {
5961
- return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value));
5981
+ return isFlat ? copySymbolsIn2(value, baseAssignIn2(result2, value)) : copySymbols2(value, baseAssign2(result2, value));
5962
5982
  }
5963
5983
  } else {
5964
- if (!cloneableTags[tag]) {
5984
+ if (!cloneableTags2[tag]) {
5965
5985
  return object ? value : {};
5966
5986
  }
5967
- result2 = initCloneByTag(value, tag, isDeep);
5987
+ result2 = initCloneByTag2(value, tag, isDeep);
5968
5988
  }
5969
5989
  }
5970
- stack || (stack = new Stack());
5990
+ stack || (stack = new Stack2());
5971
5991
  var stacked = stack.get(value);
5972
5992
  if (stacked) {
5973
5993
  return stacked;
5974
5994
  }
5975
5995
  stack.set(value, result2);
5976
- if (isSet(value)) {
5996
+ if (isSet2(value)) {
5977
5997
  value.forEach(function(subValue) {
5978
- result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
5998
+ result2.add(baseClone2(subValue, bitmask, customizer, subValue, value, stack));
5979
5999
  });
5980
- } else if (isMap(value)) {
6000
+ } else if (isMap2(value)) {
5981
6001
  value.forEach(function(subValue, key2) {
5982
- result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
6002
+ result2.set(key2, baseClone2(subValue, bitmask, customizer, key2, value, stack));
5983
6003
  });
5984
6004
  }
5985
- var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
6005
+ var keysFunc = isFull ? isFlat ? getAllKeysIn2 : getAllKeys2 : isFlat ? keysIn2 : keys2;
5986
6006
  var props = isArr ? undefined$1 : keysFunc(value);
5987
- arrayEach(props || value, function(subValue, key2) {
6007
+ arrayEach2(props || value, function(subValue, key2) {
5988
6008
  if (props) {
5989
6009
  key2 = subValue;
5990
6010
  subValue = value[key2];
5991
6011
  }
5992
- assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
6012
+ assignValue2(result2, key2, baseClone2(subValue, bitmask, customizer, key2, value, stack));
5993
6013
  });
5994
6014
  return result2;
5995
6015
  }
5996
6016
  function baseConforms(source) {
5997
- var props = keys(source);
6017
+ var props = keys2(source);
5998
6018
  return function(object) {
5999
6019
  return baseConformsTo(object, source, props);
6000
6020
  };
@@ -6027,12 +6047,12 @@ lodash.exports;
6027
6047
  return result2;
6028
6048
  }
6029
6049
  if (iteratee2) {
6030
- values2 = arrayMap(values2, baseUnary(iteratee2));
6050
+ values2 = arrayMap(values2, baseUnary2(iteratee2));
6031
6051
  }
6032
6052
  if (comparator) {
6033
6053
  includes2 = arrayIncludesWith;
6034
6054
  isCommon = false;
6035
- } else if (values2.length >= LARGE_ARRAY_SIZE) {
6055
+ } else if (values2.length >= LARGE_ARRAY_SIZE2) {
6036
6056
  includes2 = cacheHas;
6037
6057
  isCommon = false;
6038
6058
  values2 = new SetCache(values2);
@@ -6110,7 +6130,7 @@ lodash.exports;
6110
6130
  if (depth > 1) {
6111
6131
  baseFlatten(value, depth - 1, predicate, isStrict, result2);
6112
6132
  } else {
6113
- arrayPush(result2, value);
6133
+ arrayPush2(result2, value);
6114
6134
  }
6115
6135
  } else if (!isStrict) {
6116
6136
  result2[result2.length] = value;
@@ -6121,14 +6141,14 @@ lodash.exports;
6121
6141
  var baseFor = createBaseFor();
6122
6142
  var baseForRight = createBaseFor(true);
6123
6143
  function baseForOwn(object, iteratee2) {
6124
- return object && baseFor(object, iteratee2, keys);
6144
+ return object && baseFor(object, iteratee2, keys2);
6125
6145
  }
6126
6146
  function baseForOwnRight(object, iteratee2) {
6127
- return object && baseForRight(object, iteratee2, keys);
6147
+ return object && baseForRight(object, iteratee2, keys2);
6128
6148
  }
6129
6149
  function baseFunctions(object, props) {
6130
- return arrayFilter(props, function(key) {
6131
- return isFunction(object[key]);
6150
+ return arrayFilter2(props, function(key) {
6151
+ return isFunction2(object[key]);
6132
6152
  });
6133
6153
  }
6134
6154
  function baseGet(object, path) {
@@ -6139,21 +6159,21 @@ lodash.exports;
6139
6159
  }
6140
6160
  return index && index == length ? object : undefined$1;
6141
6161
  }
6142
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
6162
+ function baseGetAllKeys2(object, keysFunc, symbolsFunc) {
6143
6163
  var result2 = keysFunc(object);
6144
- return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object));
6164
+ return isArray2(object) ? result2 : arrayPush2(result2, symbolsFunc(object));
6145
6165
  }
6146
- function baseGetTag(value) {
6166
+ function baseGetTag2(value) {
6147
6167
  if (value == null) {
6148
- return value === undefined$1 ? undefinedTag : nullTag;
6168
+ return value === undefined$1 ? undefinedTag2 : nullTag2;
6149
6169
  }
6150
- return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value);
6170
+ return symToStringTag2 && symToStringTag2 in Object2(value) ? getRawTag2(value) : objectToString2(value);
6151
6171
  }
6152
6172
  function baseGt(value, other) {
6153
6173
  return value > other;
6154
6174
  }
6155
6175
  function baseHas(object, key) {
6156
- return object != null && hasOwnProperty.call(object, key);
6176
+ return object != null && hasOwnProperty2.call(object, key);
6157
6177
  }
6158
6178
  function baseHasIn(object, key) {
6159
6179
  return object != null && key in Object2(object);
@@ -6166,7 +6186,7 @@ lodash.exports;
6166
6186
  while (othIndex--) {
6167
6187
  var array = arrays[othIndex];
6168
6188
  if (othIndex && iteratee2) {
6169
- array = arrayMap(array, baseUnary(iteratee2));
6189
+ array = arrayMap(array, baseUnary2(iteratee2));
6170
6190
  }
6171
6191
  maxLength = nativeMin(array.length, maxLength);
6172
6192
  caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
@@ -6205,56 +6225,56 @@ lodash.exports;
6205
6225
  var func = object == null ? object : object[toKey(last(path))];
6206
6226
  return func == null ? undefined$1 : apply(func, object, args);
6207
6227
  }
6208
- function baseIsArguments(value) {
6209
- return isObjectLike(value) && baseGetTag(value) == argsTag;
6228
+ function baseIsArguments2(value) {
6229
+ return isObjectLike2(value) && baseGetTag2(value) == argsTag2;
6210
6230
  }
6211
6231
  function baseIsArrayBuffer(value) {
6212
- return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
6232
+ return isObjectLike2(value) && baseGetTag2(value) == arrayBufferTag2;
6213
6233
  }
6214
6234
  function baseIsDate(value) {
6215
- return isObjectLike(value) && baseGetTag(value) == dateTag;
6235
+ return isObjectLike2(value) && baseGetTag2(value) == dateTag2;
6216
6236
  }
6217
6237
  function baseIsEqual(value, other, bitmask, customizer, stack) {
6218
6238
  if (value === other) {
6219
6239
  return true;
6220
6240
  }
6221
- if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
6241
+ if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
6222
6242
  return value !== value && other !== other;
6223
6243
  }
6224
6244
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
6225
6245
  }
6226
6246
  function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
6227
- var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
6228
- objTag = objTag == argsTag ? objectTag : objTag;
6229
- othTag = othTag == argsTag ? objectTag : othTag;
6230
- var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
6231
- if (isSameTag && isBuffer(object)) {
6232
- if (!isBuffer(other)) {
6247
+ var objIsArr = isArray2(object), othIsArr = isArray2(other), objTag = objIsArr ? arrayTag2 : getTag2(object), othTag = othIsArr ? arrayTag2 : getTag2(other);
6248
+ objTag = objTag == argsTag2 ? objectTag2 : objTag;
6249
+ othTag = othTag == argsTag2 ? objectTag2 : othTag;
6250
+ var objIsObj = objTag == objectTag2, othIsObj = othTag == objectTag2, isSameTag = objTag == othTag;
6251
+ if (isSameTag && isBuffer2(object)) {
6252
+ if (!isBuffer2(other)) {
6233
6253
  return false;
6234
6254
  }
6235
6255
  objIsArr = true;
6236
6256
  objIsObj = false;
6237
6257
  }
6238
6258
  if (isSameTag && !objIsObj) {
6239
- stack || (stack = new Stack());
6240
- return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
6259
+ stack || (stack = new Stack2());
6260
+ return objIsArr || isTypedArray2(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
6241
6261
  }
6242
6262
  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
6243
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
6263
+ var objIsWrapped = objIsObj && hasOwnProperty2.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty2.call(other, "__wrapped__");
6244
6264
  if (objIsWrapped || othIsWrapped) {
6245
6265
  var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
6246
- stack || (stack = new Stack());
6266
+ stack || (stack = new Stack2());
6247
6267
  return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
6248
6268
  }
6249
6269
  }
6250
6270
  if (!isSameTag) {
6251
6271
  return false;
6252
6272
  }
6253
- stack || (stack = new Stack());
6273
+ stack || (stack = new Stack2());
6254
6274
  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
6255
6275
  }
6256
- function baseIsMap(value) {
6257
- return isObjectLike(value) && getTag(value) == mapTag;
6276
+ function baseIsMap2(value) {
6277
+ return isObjectLike2(value) && getTag2(value) == mapTag2;
6258
6278
  }
6259
6279
  function baseIsMatch(object, source, matchData, customizer) {
6260
6280
  var index = matchData.length, length = index, noCustomizer = !customizer;
@@ -6276,7 +6296,7 @@ lodash.exports;
6276
6296
  return false;
6277
6297
  }
6278
6298
  } else {
6279
- var stack = new Stack();
6299
+ var stack = new Stack2();
6280
6300
  if (customizer) {
6281
6301
  var result2 = customizer(objValue, srcValue, key, object, source, stack);
6282
6302
  }
@@ -6287,21 +6307,21 @@ lodash.exports;
6287
6307
  }
6288
6308
  return true;
6289
6309
  }
6290
- function baseIsNative(value) {
6291
- if (!isObject(value) || isMasked(value)) {
6310
+ function baseIsNative2(value) {
6311
+ if (!isObject2(value) || isMasked2(value)) {
6292
6312
  return false;
6293
6313
  }
6294
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
6295
- return pattern.test(toSource(value));
6314
+ var pattern = isFunction2(value) ? reIsNative2 : reIsHostCtor2;
6315
+ return pattern.test(toSource2(value));
6296
6316
  }
6297
6317
  function baseIsRegExp(value) {
6298
- return isObjectLike(value) && baseGetTag(value) == regexpTag;
6318
+ return isObjectLike2(value) && baseGetTag2(value) == regexpTag2;
6299
6319
  }
6300
- function baseIsSet(value) {
6301
- return isObjectLike(value) && getTag(value) == setTag;
6320
+ function baseIsSet2(value) {
6321
+ return isObjectLike2(value) && getTag2(value) == setTag2;
6302
6322
  }
6303
- function baseIsTypedArray(value) {
6304
- return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6323
+ function baseIsTypedArray2(value) {
6324
+ return isObjectLike2(value) && isLength2(value.length) && !!typedArrayTags2[baseGetTag2(value)];
6305
6325
  }
6306
6326
  function baseIteratee(value) {
6307
6327
  if (typeof value == "function") {
@@ -6311,29 +6331,29 @@ lodash.exports;
6311
6331
  return identity;
6312
6332
  }
6313
6333
  if (typeof value == "object") {
6314
- return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
6334
+ return isArray2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
6315
6335
  }
6316
6336
  return property(value);
6317
6337
  }
6318
- function baseKeys(object) {
6319
- if (!isPrototype(object)) {
6320
- return nativeKeys(object);
6338
+ function baseKeys2(object) {
6339
+ if (!isPrototype2(object)) {
6340
+ return nativeKeys2(object);
6321
6341
  }
6322
6342
  var result2 = [];
6323
6343
  for (var key in Object2(object)) {
6324
- if (hasOwnProperty.call(object, key) && key != "constructor") {
6344
+ if (hasOwnProperty2.call(object, key) && key != "constructor") {
6325
6345
  result2.push(key);
6326
6346
  }
6327
6347
  }
6328
6348
  return result2;
6329
6349
  }
6330
- function baseKeysIn(object) {
6331
- if (!isObject(object)) {
6332
- return nativeKeysIn(object);
6350
+ function baseKeysIn2(object) {
6351
+ if (!isObject2(object)) {
6352
+ return nativeKeysIn2(object);
6333
6353
  }
6334
- var isProto = isPrototype(object), result2 = [];
6354
+ var isProto = isPrototype2(object), result2 = [];
6335
6355
  for (var key in object) {
6336
- if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
6356
+ if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) {
6337
6357
  result2.push(key);
6338
6358
  }
6339
6359
  }
@@ -6343,7 +6363,7 @@ lodash.exports;
6343
6363
  return value < other;
6344
6364
  }
6345
6365
  function baseMap(collection, iteratee2) {
6346
- var index = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : [];
6366
+ var index = -1, result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
6347
6367
  baseEach(collection, function(value, key, collection2) {
6348
6368
  result2[++index] = iteratee2(value, key, collection2);
6349
6369
  });
@@ -6372,8 +6392,8 @@ lodash.exports;
6372
6392
  return;
6373
6393
  }
6374
6394
  baseFor(source, function(srcValue, key) {
6375
- stack || (stack = new Stack());
6376
- if (isObject(srcValue)) {
6395
+ stack || (stack = new Stack2());
6396
+ if (isObject2(srcValue)) {
6377
6397
  baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
6378
6398
  } else {
6379
6399
  var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1;
@@ -6382,7 +6402,7 @@ lodash.exports;
6382
6402
  }
6383
6403
  assignMergeValue(object, key, newValue);
6384
6404
  }
6385
- }, keysIn);
6405
+ }, keysIn2);
6386
6406
  }
6387
6407
  function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
6388
6408
  var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
@@ -6393,28 +6413,28 @@ lodash.exports;
6393
6413
  var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1;
6394
6414
  var isCommon = newValue === undefined$1;
6395
6415
  if (isCommon) {
6396
- var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
6416
+ var isArr = isArray2(srcValue), isBuff = !isArr && isBuffer2(srcValue), isTyped = !isArr && !isBuff && isTypedArray2(srcValue);
6397
6417
  newValue = srcValue;
6398
6418
  if (isArr || isBuff || isTyped) {
6399
- if (isArray(objValue)) {
6419
+ if (isArray2(objValue)) {
6400
6420
  newValue = objValue;
6401
6421
  } else if (isArrayLikeObject(objValue)) {
6402
- newValue = copyArray(objValue);
6422
+ newValue = copyArray2(objValue);
6403
6423
  } else if (isBuff) {
6404
6424
  isCommon = false;
6405
- newValue = cloneBuffer(srcValue, true);
6425
+ newValue = cloneBuffer2(srcValue, true);
6406
6426
  } else if (isTyped) {
6407
6427
  isCommon = false;
6408
- newValue = cloneTypedArray(srcValue, true);
6428
+ newValue = cloneTypedArray2(srcValue, true);
6409
6429
  } else {
6410
6430
  newValue = [];
6411
6431
  }
6412
- } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
6432
+ } else if (isPlainObject(srcValue) || isArguments2(srcValue)) {
6413
6433
  newValue = objValue;
6414
- if (isArguments(objValue)) {
6434
+ if (isArguments2(objValue)) {
6415
6435
  newValue = toPlainObject(objValue);
6416
- } else if (!isObject(objValue) || isFunction(objValue)) {
6417
- newValue = initCloneObject(srcValue);
6436
+ } else if (!isObject2(objValue) || isFunction2(objValue)) {
6437
+ newValue = initCloneObject2(srcValue);
6418
6438
  }
6419
6439
  } else {
6420
6440
  isCommon = false;
@@ -6433,12 +6453,12 @@ lodash.exports;
6433
6453
  return;
6434
6454
  }
6435
6455
  n += n < 0 ? length : 0;
6436
- return isIndex(n, length) ? array[n] : undefined$1;
6456
+ return isIndex2(n, length) ? array[n] : undefined$1;
6437
6457
  }
6438
6458
  function baseOrderBy(collection, iteratees, orders) {
6439
6459
  if (iteratees.length) {
6440
6460
  iteratees = arrayMap(iteratees, function(iteratee2) {
6441
- if (isArray(iteratee2)) {
6461
+ if (isArray2(iteratee2)) {
6442
6462
  return function(value) {
6443
6463
  return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2);
6444
6464
  };
@@ -6449,7 +6469,7 @@ lodash.exports;
6449
6469
  iteratees = [identity];
6450
6470
  }
6451
6471
  var index = -1;
6452
- iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
6472
+ iteratees = arrayMap(iteratees, baseUnary2(getIteratee()));
6453
6473
  var result2 = baseMap(collection, function(value, key, collection2) {
6454
6474
  var criteria = arrayMap(iteratees, function(iteratee2) {
6455
6475
  return iteratee2(value);
@@ -6483,18 +6503,18 @@ lodash.exports;
6483
6503
  function basePullAll(array, values2, iteratee2, comparator) {
6484
6504
  var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index = -1, length = values2.length, seen = array;
6485
6505
  if (array === values2) {
6486
- values2 = copyArray(values2);
6506
+ values2 = copyArray2(values2);
6487
6507
  }
6488
6508
  if (iteratee2) {
6489
- seen = arrayMap(array, baseUnary(iteratee2));
6509
+ seen = arrayMap(array, baseUnary2(iteratee2));
6490
6510
  }
6491
6511
  while (++index < length) {
6492
6512
  var fromIndex = 0, value = values2[index], computed = iteratee2 ? iteratee2(value) : value;
6493
6513
  while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) {
6494
6514
  if (seen !== array) {
6495
- splice.call(seen, fromIndex, 1);
6515
+ splice2.call(seen, fromIndex, 1);
6496
6516
  }
6497
- splice.call(array, fromIndex, 1);
6517
+ splice2.call(array, fromIndex, 1);
6498
6518
  }
6499
6519
  }
6500
6520
  return array;
@@ -6505,8 +6525,8 @@ lodash.exports;
6505
6525
  var index = indexes[length];
6506
6526
  if (length == lastIndex || index !== previous) {
6507
6527
  var previous = index;
6508
- if (isIndex(index)) {
6509
- splice.call(array, index, 1);
6528
+ if (isIndex2(index)) {
6529
+ splice2.call(array, index, 1);
6510
6530
  } else {
6511
6531
  baseUnset(array, index);
6512
6532
  }
@@ -6527,7 +6547,7 @@ lodash.exports;
6527
6547
  }
6528
6548
  function baseRepeat(string, n) {
6529
6549
  var result2 = "";
6530
- if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
6550
+ if (!string || n < 1 || n > MAX_SAFE_INTEGER2) {
6531
6551
  return result2;
6532
6552
  }
6533
6553
  do {
@@ -6552,7 +6572,7 @@ lodash.exports;
6552
6572
  return shuffleSelf(array, baseClamp(n, 0, array.length));
6553
6573
  }
6554
6574
  function baseSet(object, path, value, customizer) {
6555
- if (!isObject(object)) {
6575
+ if (!isObject2(object)) {
6556
6576
  return object;
6557
6577
  }
6558
6578
  path = castPath(path, object);
@@ -6566,10 +6586,10 @@ lodash.exports;
6566
6586
  var objValue = nested[key];
6567
6587
  newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
6568
6588
  if (newValue === undefined$1) {
6569
- newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
6589
+ newValue = isObject2(objValue) ? objValue : isIndex2(path[index + 1]) ? [] : {};
6570
6590
  }
6571
6591
  }
6572
- assignValue(nested, key, newValue);
6592
+ assignValue2(nested, key, newValue);
6573
6593
  nested = nested[key];
6574
6594
  }
6575
6595
  return object;
@@ -6578,8 +6598,8 @@ lodash.exports;
6578
6598
  metaMap.set(func, data);
6579
6599
  return func;
6580
6600
  };
6581
- var baseSetToString = !defineProperty ? identity : function(func, string) {
6582
- return defineProperty(func, "toString", {
6601
+ var baseSetToString = !defineProperty2 ? identity : function(func, string) {
6602
+ return defineProperty2(func, "toString", {
6583
6603
  "configurable": true,
6584
6604
  "enumerable": false,
6585
6605
  "value": constant(string),
@@ -6663,7 +6683,7 @@ lodash.exports;
6663
6683
  var index = -1, length = array.length, resIndex = 0, result2 = [];
6664
6684
  while (++index < length) {
6665
6685
  var value = array[index], computed = iteratee2 ? iteratee2(value) : value;
6666
- if (!index || !eq(computed, seen)) {
6686
+ if (!index || !eq2(computed, seen)) {
6667
6687
  var seen = computed;
6668
6688
  result2[resIndex++] = value === 0 ? 0 : value;
6669
6689
  }
@@ -6683,7 +6703,7 @@ lodash.exports;
6683
6703
  if (typeof value == "string") {
6684
6704
  return value;
6685
6705
  }
6686
- if (isArray(value)) {
6706
+ if (isArray2(value)) {
6687
6707
  return arrayMap(value, baseToString) + "";
6688
6708
  }
6689
6709
  if (isSymbol(value)) {
@@ -6697,7 +6717,7 @@ lodash.exports;
6697
6717
  if (comparator) {
6698
6718
  isCommon = false;
6699
6719
  includes2 = arrayIncludesWith;
6700
- } else if (length >= LARGE_ARRAY_SIZE) {
6720
+ } else if (length >= LARGE_ARRAY_SIZE2) {
6701
6721
  var set2 = iteratee2 ? null : createSet(array);
6702
6722
  if (set2) {
6703
6723
  return setToArray(set2);
@@ -6752,7 +6772,7 @@ lodash.exports;
6752
6772
  result2 = result2.value();
6753
6773
  }
6754
6774
  return arrayReduce(actions, function(result3, action) {
6755
- return action.func.apply(action.thisArg, arrayPush([result3], action.args));
6775
+ return action.func.apply(action.thisArg, arrayPush2([result3], action.args));
6756
6776
  }, result2);
6757
6777
  }
6758
6778
  function baseXor(arrays, iteratee2, comparator) {
@@ -6786,7 +6806,7 @@ lodash.exports;
6786
6806
  return typeof value == "function" ? value : identity;
6787
6807
  }
6788
6808
  function castPath(value, object) {
6789
- if (isArray(value)) {
6809
+ if (isArray2(value)) {
6790
6810
  return value;
6791
6811
  }
6792
6812
  return isKey(value, object) ? [value] : stringToPath(toString(value));
@@ -6798,9 +6818,9 @@ lodash.exports;
6798
6818
  return !start && end >= length ? array : baseSlice(array, start, end);
6799
6819
  }
6800
6820
  var clearTimeout = ctxClearTimeout || function(id) {
6801
- return root.clearTimeout(id);
6821
+ return root2.clearTimeout(id);
6802
6822
  };
6803
- function cloneBuffer(buffer, isDeep) {
6823
+ function cloneBuffer2(buffer, isDeep) {
6804
6824
  if (isDeep) {
6805
6825
  return buffer.slice();
6806
6826
  }
@@ -6808,25 +6828,25 @@ lodash.exports;
6808
6828
  buffer.copy(result2);
6809
6829
  return result2;
6810
6830
  }
6811
- function cloneArrayBuffer(arrayBuffer) {
6831
+ function cloneArrayBuffer2(arrayBuffer) {
6812
6832
  var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
6813
- new Uint8Array(result2).set(new Uint8Array(arrayBuffer));
6833
+ new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
6814
6834
  return result2;
6815
6835
  }
6816
- function cloneDataView(dataView, isDeep) {
6817
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
6836
+ function cloneDataView2(dataView, isDeep) {
6837
+ var buffer = isDeep ? cloneArrayBuffer2(dataView.buffer) : dataView.buffer;
6818
6838
  return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
6819
6839
  }
6820
- function cloneRegExp(regexp) {
6821
- var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp));
6840
+ function cloneRegExp2(regexp) {
6841
+ var result2 = new regexp.constructor(regexp.source, reFlags2.exec(regexp));
6822
6842
  result2.lastIndex = regexp.lastIndex;
6823
6843
  return result2;
6824
6844
  }
6825
- function cloneSymbol(symbol) {
6826
- return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {};
6845
+ function cloneSymbol2(symbol) {
6846
+ return symbolValueOf2 ? Object2(symbolValueOf2.call(symbol)) : {};
6827
6847
  }
6828
- function cloneTypedArray(typedArray, isDeep) {
6829
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
6848
+ function cloneTypedArray2(typedArray, isDeep) {
6849
+ var buffer = isDeep ? cloneArrayBuffer2(typedArray.buffer) : typedArray.buffer;
6830
6850
  return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
6831
6851
  }
6832
6852
  function compareAscending(value, other) {
@@ -6887,7 +6907,7 @@ lodash.exports;
6887
6907
  }
6888
6908
  return result2;
6889
6909
  }
6890
- function copyArray(source, array) {
6910
+ function copyArray2(source, array) {
6891
6911
  var index = -1, length = source.length;
6892
6912
  array || (array = Array2(length));
6893
6913
  while (++index < length) {
@@ -6895,7 +6915,7 @@ lodash.exports;
6895
6915
  }
6896
6916
  return array;
6897
6917
  }
6898
- function copyObject(source, props, object, customizer) {
6918
+ function copyObject2(source, props, object, customizer) {
6899
6919
  var isNew = !object;
6900
6920
  object || (object = {});
6901
6921
  var index = -1, length = props.length;
@@ -6906,22 +6926,22 @@ lodash.exports;
6906
6926
  newValue = source[key];
6907
6927
  }
6908
6928
  if (isNew) {
6909
- baseAssignValue(object, key, newValue);
6929
+ baseAssignValue2(object, key, newValue);
6910
6930
  } else {
6911
- assignValue(object, key, newValue);
6931
+ assignValue2(object, key, newValue);
6912
6932
  }
6913
6933
  }
6914
6934
  return object;
6915
6935
  }
6916
- function copySymbols(source, object) {
6917
- return copyObject(source, getSymbols(source), object);
6936
+ function copySymbols2(source, object) {
6937
+ return copyObject2(source, getSymbols2(source), object);
6918
6938
  }
6919
- function copySymbolsIn(source, object) {
6920
- return copyObject(source, getSymbolsIn(source), object);
6939
+ function copySymbolsIn2(source, object) {
6940
+ return copyObject2(source, getSymbolsIn2(source), object);
6921
6941
  }
6922
6942
  function createAggregator(setter, initializer) {
6923
6943
  return function(collection, iteratee2) {
6924
- var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
6944
+ var func = isArray2(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
6925
6945
  return func(collection, setter, getIteratee(iteratee2, 2), accumulator);
6926
6946
  };
6927
6947
  }
@@ -6948,7 +6968,7 @@ lodash.exports;
6948
6968
  if (collection == null) {
6949
6969
  return collection;
6950
6970
  }
6951
- if (!isArrayLike(collection)) {
6971
+ if (!isArrayLike2(collection)) {
6952
6972
  return eachFunc(collection, iteratee2);
6953
6973
  }
6954
6974
  var length = collection.length, index = fromRight ? length : -1, iterable = Object2(collection);
@@ -6975,7 +6995,7 @@ lodash.exports;
6975
6995
  function createBind(func, bitmask, thisArg) {
6976
6996
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
6977
6997
  function wrapper() {
6978
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
6998
+ var fn = this && this !== root2 && this instanceof wrapper ? Ctor : func;
6979
6999
  return fn.apply(isBind ? thisArg : this, arguments);
6980
7000
  }
6981
7001
  return wrapper;
@@ -7015,8 +7035,8 @@ lodash.exports;
7015
7035
  case 7:
7016
7036
  return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
7017
7037
  }
7018
- var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
7019
- return isObject(result2) ? result2 : thisBinding;
7038
+ var thisBinding = baseCreate2(Ctor.prototype), result2 = Ctor.apply(thisBinding, args);
7039
+ return isObject2(result2) ? result2 : thisBinding;
7020
7040
  };
7021
7041
  }
7022
7042
  function createCurry(func, bitmask, arity) {
@@ -7042,7 +7062,7 @@ lodash.exports;
7042
7062
  arity - length
7043
7063
  );
7044
7064
  }
7045
- var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
7065
+ var fn = this && this !== root2 && this instanceof wrapper ? Ctor : func;
7046
7066
  return apply(fn, this, args);
7047
7067
  }
7048
7068
  return wrapper;
@@ -7050,9 +7070,9 @@ lodash.exports;
7050
7070
  function createFind(findIndexFunc) {
7051
7071
  return function(collection, predicate, fromIndex) {
7052
7072
  var iterable = Object2(collection);
7053
- if (!isArrayLike(collection)) {
7073
+ if (!isArrayLike2(collection)) {
7054
7074
  var iteratee2 = getIteratee(predicate, 3);
7055
- collection = keys(collection);
7075
+ collection = keys2(collection);
7056
7076
  predicate = function(key) {
7057
7077
  return iteratee2(iterable[key], key, iterable);
7058
7078
  };
@@ -7088,7 +7108,7 @@ lodash.exports;
7088
7108
  }
7089
7109
  return function() {
7090
7110
  var args = arguments, value = args[0];
7091
- if (wrapper && args.length == 1 && isArray(value)) {
7111
+ if (wrapper && args.length == 1 && isArray2(value)) {
7092
7112
  return wrapper.plant(value).value();
7093
7113
  }
7094
7114
  var index2 = 0, result2 = length ? funcs[index2].apply(this, args) : value;
@@ -7141,7 +7161,7 @@ lodash.exports;
7141
7161
  if (isAry && ary2 < length) {
7142
7162
  args.length = ary2;
7143
7163
  }
7144
- if (this && this !== root && this instanceof wrapper) {
7164
+ if (this && this !== root2 && this instanceof wrapper) {
7145
7165
  fn = Ctor || createCtor(fn);
7146
7166
  }
7147
7167
  return fn.apply(thisBinding, args);
@@ -7180,7 +7200,7 @@ lodash.exports;
7180
7200
  }
7181
7201
  function createOver(arrayFunc) {
7182
7202
  return flatRest(function(iteratees) {
7183
- iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
7203
+ iteratees = arrayMap(iteratees, baseUnary2(getIteratee()));
7184
7204
  return baseRest(function(args) {
7185
7205
  var thisArg = this;
7186
7206
  return arrayFunc(iteratees, function(iteratee2) {
@@ -7201,7 +7221,7 @@ lodash.exports;
7201
7221
  function createPartial(func, bitmask, thisArg, partials) {
7202
7222
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
7203
7223
  function wrapper() {
7204
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
7224
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root2 && this instanceof wrapper ? Ctor : func;
7205
7225
  while (++leftIndex < leftLength) {
7206
7226
  args[leftIndex] = partials[leftIndex];
7207
7227
  }
@@ -7276,16 +7296,16 @@ lodash.exports;
7276
7296
  return func(number);
7277
7297
  };
7278
7298
  }
7279
- var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values2) {
7280
- return new Set(values2);
7299
+ var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) {
7300
+ return new Set2(values2);
7281
7301
  };
7282
7302
  function createToPairs(keysFunc) {
7283
7303
  return function(object) {
7284
- var tag = getTag(object);
7285
- if (tag == mapTag) {
7304
+ var tag = getTag2(object);
7305
+ if (tag == mapTag2) {
7286
7306
  return mapToArray(object);
7287
7307
  }
7288
- if (tag == setTag) {
7308
+ if (tag == setTag2) {
7289
7309
  return setToPairs(object);
7290
7310
  }
7291
7311
  return baseToPairs(object, keysFunc(object));
@@ -7346,13 +7366,13 @@ lodash.exports;
7346
7366
  return setWrapToString(setter(result2, newData), func, bitmask);
7347
7367
  }
7348
7368
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
7349
- if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
7369
+ if (objValue === undefined$1 || eq2(objValue, objectProto2[key]) && !hasOwnProperty2.call(object, key)) {
7350
7370
  return srcValue;
7351
7371
  }
7352
7372
  return objValue;
7353
7373
  }
7354
7374
  function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
7355
- if (isObject(objValue) && isObject(srcValue)) {
7375
+ if (isObject2(objValue) && isObject2(srcValue)) {
7356
7376
  stack.set(srcValue, objValue);
7357
7377
  baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
7358
7378
  stack["delete"](srcValue);
@@ -7407,29 +7427,29 @@ lodash.exports;
7407
7427
  }
7408
7428
  function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
7409
7429
  switch (tag) {
7410
- case dataViewTag:
7430
+ case dataViewTag2:
7411
7431
  if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
7412
7432
  return false;
7413
7433
  }
7414
7434
  object = object.buffer;
7415
7435
  other = other.buffer;
7416
- case arrayBufferTag:
7417
- if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
7436
+ case arrayBufferTag2:
7437
+ if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
7418
7438
  return false;
7419
7439
  }
7420
7440
  return true;
7421
- case boolTag:
7422
- case dateTag:
7423
- case numberTag:
7424
- return eq(+object, +other);
7425
- case errorTag:
7441
+ case boolTag2:
7442
+ case dateTag2:
7443
+ case numberTag2:
7444
+ return eq2(+object, +other);
7445
+ case errorTag2:
7426
7446
  return object.name == other.name && object.message == other.message;
7427
- case regexpTag:
7428
- case stringTag:
7447
+ case regexpTag2:
7448
+ case stringTag2:
7429
7449
  return object == other + "";
7430
- case mapTag:
7450
+ case mapTag2:
7431
7451
  var convert = mapToArray;
7432
- case setTag:
7452
+ case setTag2:
7433
7453
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
7434
7454
  convert || (convert = setToArray);
7435
7455
  if (object.size != other.size && !isPartial) {
@@ -7444,22 +7464,22 @@ lodash.exports;
7444
7464
  var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
7445
7465
  stack["delete"](object);
7446
7466
  return result2;
7447
- case symbolTag:
7448
- if (symbolValueOf) {
7449
- return symbolValueOf.call(object) == symbolValueOf.call(other);
7467
+ case symbolTag2:
7468
+ if (symbolValueOf2) {
7469
+ return symbolValueOf2.call(object) == symbolValueOf2.call(other);
7450
7470
  }
7451
7471
  }
7452
7472
  return false;
7453
7473
  }
7454
7474
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
7455
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
7475
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys2(object), objLength = objProps.length, othProps = getAllKeys2(other), othLength = othProps.length;
7456
7476
  if (objLength != othLength && !isPartial) {
7457
7477
  return false;
7458
7478
  }
7459
7479
  var index = objLength;
7460
7480
  while (index--) {
7461
7481
  var key = objProps[index];
7462
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
7482
+ if (!(isPartial ? key in other : hasOwnProperty2.call(other, key))) {
7463
7483
  return false;
7464
7484
  }
7465
7485
  }
@@ -7497,17 +7517,17 @@ lodash.exports;
7497
7517
  function flatRest(func) {
7498
7518
  return setToString(overRest(func, undefined$1, flatten), func + "");
7499
7519
  }
7500
- function getAllKeys(object) {
7501
- return baseGetAllKeys(object, keys, getSymbols);
7520
+ function getAllKeys2(object) {
7521
+ return baseGetAllKeys2(object, keys2, getSymbols2);
7502
7522
  }
7503
- function getAllKeysIn(object) {
7504
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
7523
+ function getAllKeysIn2(object) {
7524
+ return baseGetAllKeys2(object, keysIn2, getSymbolsIn2);
7505
7525
  }
7506
7526
  var getData = !metaMap ? noop : function(func) {
7507
7527
  return metaMap.get(func);
7508
7528
  };
7509
7529
  function getFuncName(func) {
7510
- var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
7530
+ var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0;
7511
7531
  while (length--) {
7512
7532
  var data = array[length], otherFunc = data.func;
7513
7533
  if (otherFunc == null || otherFunc == func) {
@@ -7517,7 +7537,7 @@ lodash.exports;
7517
7537
  return result2;
7518
7538
  }
7519
7539
  function getHolder(func) {
7520
- var object = hasOwnProperty.call(lodash2, "placeholder") ? lodash2 : func;
7540
+ var object = hasOwnProperty2.call(lodash2, "placeholder") ? lodash2 : func;
7521
7541
  return object.placeholder;
7522
7542
  }
7523
7543
  function getIteratee() {
@@ -7525,72 +7545,72 @@ lodash.exports;
7525
7545
  result2 = result2 === iteratee ? baseIteratee : result2;
7526
7546
  return arguments.length ? result2(arguments[0], arguments[1]) : result2;
7527
7547
  }
7528
- function getMapData(map2, key) {
7548
+ function getMapData2(map2, key) {
7529
7549
  var data = map2.__data__;
7530
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
7550
+ return isKeyable2(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
7531
7551
  }
7532
7552
  function getMatchData(object) {
7533
- var result2 = keys(object), length = result2.length;
7553
+ var result2 = keys2(object), length = result2.length;
7534
7554
  while (length--) {
7535
7555
  var key = result2[length], value = object[key];
7536
7556
  result2[length] = [key, value, isStrictComparable(value)];
7537
7557
  }
7538
7558
  return result2;
7539
7559
  }
7540
- function getNative(object, key) {
7541
- var value = getValue(object, key);
7542
- return baseIsNative(value) ? value : undefined$1;
7560
+ function getNative2(object, key) {
7561
+ var value = getValue2(object, key);
7562
+ return baseIsNative2(value) ? value : undefined$1;
7543
7563
  }
7544
- function getRawTag(value) {
7545
- var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
7564
+ function getRawTag2(value) {
7565
+ var isOwn = hasOwnProperty2.call(value, symToStringTag2), tag = value[symToStringTag2];
7546
7566
  try {
7547
- value[symToStringTag] = undefined$1;
7567
+ value[symToStringTag2] = undefined$1;
7548
7568
  var unmasked = true;
7549
7569
  } catch (e) {
7550
7570
  }
7551
- var result2 = nativeObjectToString.call(value);
7571
+ var result2 = nativeObjectToString2.call(value);
7552
7572
  if (unmasked) {
7553
7573
  if (isOwn) {
7554
- value[symToStringTag] = tag;
7574
+ value[symToStringTag2] = tag;
7555
7575
  } else {
7556
- delete value[symToStringTag];
7576
+ delete value[symToStringTag2];
7557
7577
  }
7558
7578
  }
7559
7579
  return result2;
7560
7580
  }
7561
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
7581
+ var getSymbols2 = !nativeGetSymbols2 ? stubArray2 : function(object) {
7562
7582
  if (object == null) {
7563
7583
  return [];
7564
7584
  }
7565
7585
  object = Object2(object);
7566
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
7567
- return propertyIsEnumerable.call(object, symbol);
7586
+ return arrayFilter2(nativeGetSymbols2(object), function(symbol) {
7587
+ return propertyIsEnumerable2.call(object, symbol);
7568
7588
  });
7569
7589
  };
7570
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
7590
+ var getSymbolsIn2 = !nativeGetSymbols2 ? stubArray2 : function(object) {
7571
7591
  var result2 = [];
7572
7592
  while (object) {
7573
- arrayPush(result2, getSymbols(object));
7574
- object = getPrototype(object);
7593
+ arrayPush2(result2, getSymbols2(object));
7594
+ object = getPrototype2(object);
7575
7595
  }
7576
7596
  return result2;
7577
7597
  };
7578
- var getTag = baseGetTag;
7579
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
7580
- getTag = function(value) {
7581
- var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
7598
+ var getTag2 = baseGetTag2;
7599
+ if (DataView2 && getTag2(new DataView2(new ArrayBuffer(1))) != dataViewTag2 || Map2 && getTag2(new Map2()) != mapTag2 || Promise2 && getTag2(Promise2.resolve()) != promiseTag2 || Set2 && getTag2(new Set2()) != setTag2 || WeakMap2 && getTag2(new WeakMap2()) != weakMapTag2) {
7600
+ getTag2 = function(value) {
7601
+ var result2 = baseGetTag2(value), Ctor = result2 == objectTag2 ? value.constructor : undefined$1, ctorString = Ctor ? toSource2(Ctor) : "";
7582
7602
  if (ctorString) {
7583
7603
  switch (ctorString) {
7584
- case dataViewCtorString:
7585
- return dataViewTag;
7586
- case mapCtorString:
7587
- return mapTag;
7588
- case promiseCtorString:
7589
- return promiseTag;
7590
- case setCtorString:
7591
- return setTag;
7592
- case weakMapCtorString:
7593
- return weakMapTag;
7604
+ case dataViewCtorString2:
7605
+ return dataViewTag2;
7606
+ case mapCtorString2:
7607
+ return mapTag2;
7608
+ case promiseCtorString2:
7609
+ return promiseTag2;
7610
+ case setCtorString2:
7611
+ return setTag2;
7612
+ case weakMapCtorString2:
7613
+ return weakMapTag2;
7594
7614
  }
7595
7615
  }
7596
7616
  return result2;
@@ -7635,50 +7655,50 @@ lodash.exports;
7635
7655
  return result2;
7636
7656
  }
7637
7657
  length = object == null ? 0 : object.length;
7638
- return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
7658
+ return !!length && isLength2(length) && isIndex2(key, length) && (isArray2(object) || isArguments2(object));
7639
7659
  }
7640
- function initCloneArray(array) {
7660
+ function initCloneArray2(array) {
7641
7661
  var length = array.length, result2 = new array.constructor(length);
7642
- if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
7662
+ if (length && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) {
7643
7663
  result2.index = array.index;
7644
7664
  result2.input = array.input;
7645
7665
  }
7646
7666
  return result2;
7647
7667
  }
7648
- function initCloneObject(object) {
7649
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
7668
+ function initCloneObject2(object) {
7669
+ return typeof object.constructor == "function" && !isPrototype2(object) ? baseCreate2(getPrototype2(object)) : {};
7650
7670
  }
7651
- function initCloneByTag(object, tag, isDeep) {
7671
+ function initCloneByTag2(object, tag, isDeep) {
7652
7672
  var Ctor = object.constructor;
7653
7673
  switch (tag) {
7654
- case arrayBufferTag:
7655
- return cloneArrayBuffer(object);
7656
- case boolTag:
7657
- case dateTag:
7674
+ case arrayBufferTag2:
7675
+ return cloneArrayBuffer2(object);
7676
+ case boolTag2:
7677
+ case dateTag2:
7658
7678
  return new Ctor(+object);
7659
- case dataViewTag:
7660
- return cloneDataView(object, isDeep);
7661
- case float32Tag:
7662
- case float64Tag:
7663
- case int8Tag:
7664
- case int16Tag:
7665
- case int32Tag:
7666
- case uint8Tag:
7667
- case uint8ClampedTag:
7668
- case uint16Tag:
7669
- case uint32Tag:
7670
- return cloneTypedArray(object, isDeep);
7671
- case mapTag:
7679
+ case dataViewTag2:
7680
+ return cloneDataView2(object, isDeep);
7681
+ case float32Tag2:
7682
+ case float64Tag2:
7683
+ case int8Tag2:
7684
+ case int16Tag2:
7685
+ case int32Tag2:
7686
+ case uint8Tag2:
7687
+ case uint8ClampedTag2:
7688
+ case uint16Tag2:
7689
+ case uint32Tag2:
7690
+ return cloneTypedArray2(object, isDeep);
7691
+ case mapTag2:
7672
7692
  return new Ctor();
7673
- case numberTag:
7674
- case stringTag:
7693
+ case numberTag2:
7694
+ case stringTag2:
7675
7695
  return new Ctor(object);
7676
- case regexpTag:
7677
- return cloneRegExp(object);
7678
- case setTag:
7696
+ case regexpTag2:
7697
+ return cloneRegExp2(object);
7698
+ case setTag2:
7679
7699
  return new Ctor();
7680
- case symbolTag:
7681
- return cloneSymbol(object);
7700
+ case symbolTag2:
7701
+ return cloneSymbol2(object);
7682
7702
  }
7683
7703
  }
7684
7704
  function insertWrapDetails(source, details) {
@@ -7692,25 +7712,25 @@ lodash.exports;
7692
7712
  return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
7693
7713
  }
7694
7714
  function isFlattenable(value) {
7695
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
7715
+ return isArray2(value) || isArguments2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
7696
7716
  }
7697
- function isIndex(value, length) {
7717
+ function isIndex2(value, length) {
7698
7718
  var type = typeof value;
7699
- length = length == null ? MAX_SAFE_INTEGER : length;
7700
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
7719
+ length = length == null ? MAX_SAFE_INTEGER2 : length;
7720
+ return !!length && (type == "number" || type != "symbol" && reIsUint2.test(value)) && (value > -1 && value % 1 == 0 && value < length);
7701
7721
  }
7702
7722
  function isIterateeCall(value, index, object) {
7703
- if (!isObject(object)) {
7723
+ if (!isObject2(object)) {
7704
7724
  return false;
7705
7725
  }
7706
7726
  var type = typeof index;
7707
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
7708
- return eq(object[index], value);
7727
+ if (type == "number" ? isArrayLike2(object) && isIndex2(index, object.length) : type == "string" && index in object) {
7728
+ return eq2(object[index], value);
7709
7729
  }
7710
7730
  return false;
7711
7731
  }
7712
7732
  function isKey(value, object) {
7713
- if (isArray(value)) {
7733
+ if (isArray2(value)) {
7714
7734
  return false;
7715
7735
  }
7716
7736
  var type = typeof value;
@@ -7719,7 +7739,7 @@ lodash.exports;
7719
7739
  }
7720
7740
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object);
7721
7741
  }
7722
- function isKeyable(value) {
7742
+ function isKeyable2(value) {
7723
7743
  var type = typeof value;
7724
7744
  return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
7725
7745
  }
@@ -7734,16 +7754,16 @@ lodash.exports;
7734
7754
  var data = getData(other);
7735
7755
  return !!data && func === data[0];
7736
7756
  }
7737
- function isMasked(func) {
7738
- return !!maskSrcKey && maskSrcKey in func;
7757
+ function isMasked2(func) {
7758
+ return !!maskSrcKey2 && maskSrcKey2 in func;
7739
7759
  }
7740
- var isMaskable = coreJsData ? isFunction : stubFalse;
7741
- function isPrototype(value) {
7742
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
7760
+ var isMaskable = coreJsData2 ? isFunction2 : stubFalse2;
7761
+ function isPrototype2(value) {
7762
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto2;
7743
7763
  return value === proto;
7744
7764
  }
7745
7765
  function isStrictComparable(value) {
7746
- return value === value && !isObject(value);
7766
+ return value === value && !isObject2(value);
7747
7767
  }
7748
7768
  function matchesStrictComparable(key, srcValue) {
7749
7769
  return function(object) {
@@ -7799,7 +7819,7 @@ lodash.exports;
7799
7819
  data[1] = newBitmask;
7800
7820
  return data;
7801
7821
  }
7802
- function nativeKeysIn(object) {
7822
+ function nativeKeysIn2(object) {
7803
7823
  var result2 = [];
7804
7824
  if (object != null) {
7805
7825
  for (var key in Object2(object)) {
@@ -7808,8 +7828,8 @@ lodash.exports;
7808
7828
  }
7809
7829
  return result2;
7810
7830
  }
7811
- function objectToString(value) {
7812
- return nativeObjectToString.call(value);
7831
+ function objectToString2(value) {
7832
+ return nativeObjectToString2.call(value);
7813
7833
  }
7814
7834
  function overRest(func, start, transform2) {
7815
7835
  start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
@@ -7831,10 +7851,10 @@ lodash.exports;
7831
7851
  return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
7832
7852
  }
7833
7853
  function reorder(array, indexes) {
7834
- var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
7854
+ var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray2(array);
7835
7855
  while (length--) {
7836
7856
  var index = indexes[length];
7837
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
7857
+ array[length] = isIndex2(index, arrLength) ? oldArray[index] : undefined$1;
7838
7858
  }
7839
7859
  return array;
7840
7860
  }
@@ -7849,7 +7869,7 @@ lodash.exports;
7849
7869
  }
7850
7870
  var setData = shortOut(baseSetData);
7851
7871
  var setTimeout = ctxSetTimeout || function(func, wait) {
7852
- return root.setTimeout(func, wait);
7872
+ return root2.setTimeout(func, wait);
7853
7873
  };
7854
7874
  var setToString = shortOut(baseSetToString);
7855
7875
  function setWrapToString(wrapper, reference, bitmask) {
@@ -7899,10 +7919,10 @@ lodash.exports;
7899
7919
  var result2 = value + "";
7900
7920
  return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2;
7901
7921
  }
7902
- function toSource(func) {
7922
+ function toSource2(func) {
7903
7923
  if (func != null) {
7904
7924
  try {
7905
- return funcToString.call(func);
7925
+ return funcToString2.call(func);
7906
7926
  } catch (e) {
7907
7927
  }
7908
7928
  try {
@@ -7913,7 +7933,7 @@ lodash.exports;
7913
7933
  return "";
7914
7934
  }
7915
7935
  function updateWrapDetails(details, bitmask) {
7916
- arrayEach(wrapFlags, function(pair) {
7936
+ arrayEach2(wrapFlags, function(pair) {
7917
7937
  var value = "_." + pair[0];
7918
7938
  if (bitmask & pair[1] && !arrayIncludes(details, value)) {
7919
7939
  details.push(value);
@@ -7926,7 +7946,7 @@ lodash.exports;
7926
7946
  return wrapper.clone();
7927
7947
  }
7928
7948
  var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
7929
- result2.__actions__ = copyArray(wrapper.__actions__);
7949
+ result2.__actions__ = copyArray2(wrapper.__actions__);
7930
7950
  result2.__index__ = wrapper.__index__;
7931
7951
  result2.__values__ = wrapper.__values__;
7932
7952
  return result2;
@@ -7966,7 +7986,7 @@ lodash.exports;
7966
7986
  while (index--) {
7967
7987
  args[index - 1] = arguments[index];
7968
7988
  }
7969
- return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
7989
+ return arrayPush2(isArray2(array) ? copyArray2(array) : [array], baseFlatten(args, 1));
7970
7990
  }
7971
7991
  var difference = baseRest(function(array, values2) {
7972
7992
  return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : [];
@@ -8140,7 +8160,7 @@ lodash.exports;
8140
8160
  var pullAt = flatRest(function(array, indexes) {
8141
8161
  var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
8142
8162
  basePullAt(array, arrayMap(indexes, function(index) {
8143
- return isIndex(index, length) ? +index : index;
8163
+ return isIndex2(index, length) ? +index : index;
8144
8164
  }).sort(compareAscending));
8145
8165
  return result2;
8146
8166
  });
@@ -8188,7 +8208,7 @@ lodash.exports;
8188
8208
  var length = array == null ? 0 : array.length;
8189
8209
  if (length) {
8190
8210
  var index = baseSortedIndex(array, value);
8191
- if (index < length && eq(array[index], value)) {
8211
+ if (index < length && eq2(array[index], value)) {
8192
8212
  return index;
8193
8213
  }
8194
8214
  }
@@ -8204,7 +8224,7 @@ lodash.exports;
8204
8224
  var length = array == null ? 0 : array.length;
8205
8225
  if (length) {
8206
8226
  var index = baseSortedIndex(array, value, true) - 1;
8207
- if (eq(array[index], value)) {
8227
+ if (eq2(array[index], value)) {
8208
8228
  return index;
8209
8229
  }
8210
8230
  }
@@ -8272,13 +8292,13 @@ lodash.exports;
8272
8292
  return [];
8273
8293
  }
8274
8294
  var length = 0;
8275
- array = arrayFilter(array, function(group) {
8295
+ array = arrayFilter2(array, function(group) {
8276
8296
  if (isArrayLikeObject(group)) {
8277
8297
  length = nativeMax(group.length, length);
8278
8298
  return true;
8279
8299
  }
8280
8300
  });
8281
- return baseTimes(length, function(index) {
8301
+ return baseTimes2(length, function(index) {
8282
8302
  return arrayMap(array, baseProperty(index));
8283
8303
  });
8284
8304
  }
@@ -8298,23 +8318,23 @@ lodash.exports;
8298
8318
  return isArrayLikeObject(array) ? baseDifference(array, values2) : [];
8299
8319
  });
8300
8320
  var xor = baseRest(function(arrays) {
8301
- return baseXor(arrayFilter(arrays, isArrayLikeObject));
8321
+ return baseXor(arrayFilter2(arrays, isArrayLikeObject));
8302
8322
  });
8303
8323
  var xorBy = baseRest(function(arrays) {
8304
8324
  var iteratee2 = last(arrays);
8305
8325
  if (isArrayLikeObject(iteratee2)) {
8306
8326
  iteratee2 = undefined$1;
8307
8327
  }
8308
- return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
8328
+ return baseXor(arrayFilter2(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
8309
8329
  });
8310
8330
  var xorWith = baseRest(function(arrays) {
8311
8331
  var comparator = last(arrays);
8312
8332
  comparator = typeof comparator == "function" ? comparator : undefined$1;
8313
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator);
8333
+ return baseXor(arrayFilter2(arrays, isArrayLikeObject), undefined$1, comparator);
8314
8334
  });
8315
8335
  var zip = baseRest(unzip);
8316
8336
  function zipObject(props, values2) {
8317
- return baseZipObject(props || [], values2 || [], assignValue);
8337
+ return baseZipObject(props || [], values2 || [], assignValue2);
8318
8338
  }
8319
8339
  function zipObjectDeep(props, values2) {
8320
8340
  return baseZipObject(props || [], values2 || [], baseSet);
@@ -8340,7 +8360,7 @@ lodash.exports;
8340
8360
  var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) {
8341
8361
  return baseAt(object, paths);
8342
8362
  };
8343
- if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) {
8363
+ if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex2(start)) {
8344
8364
  return this.thru(interceptor);
8345
8365
  }
8346
8366
  value = value.slice(start, +start + (length ? 1 : 0));
@@ -8410,21 +8430,21 @@ lodash.exports;
8410
8430
  return baseWrapperValue(this.__wrapped__, this.__actions__);
8411
8431
  }
8412
8432
  var countBy = createAggregator(function(result2, value, key) {
8413
- if (hasOwnProperty.call(result2, key)) {
8433
+ if (hasOwnProperty2.call(result2, key)) {
8414
8434
  ++result2[key];
8415
8435
  } else {
8416
- baseAssignValue(result2, key, 1);
8436
+ baseAssignValue2(result2, key, 1);
8417
8437
  }
8418
8438
  });
8419
8439
  function every(collection, predicate, guard) {
8420
- var func = isArray(collection) ? arrayEvery : baseEvery;
8440
+ var func = isArray2(collection) ? arrayEvery : baseEvery;
8421
8441
  if (guard && isIterateeCall(collection, predicate, guard)) {
8422
8442
  predicate = undefined$1;
8423
8443
  }
8424
8444
  return func(collection, getIteratee(predicate, 3));
8425
8445
  }
8426
8446
  function filter(collection, predicate) {
8427
- var func = isArray(collection) ? arrayFilter : baseFilter;
8447
+ var func = isArray2(collection) ? arrayFilter2 : baseFilter;
8428
8448
  return func(collection, getIteratee(predicate, 3));
8429
8449
  }
8430
8450
  var find = createFind(findIndex);
@@ -8440,22 +8460,22 @@ lodash.exports;
8440
8460
  return baseFlatten(map(collection, iteratee2), depth);
8441
8461
  }
8442
8462
  function forEach(collection, iteratee2) {
8443
- var func = isArray(collection) ? arrayEach : baseEach;
8463
+ var func = isArray2(collection) ? arrayEach2 : baseEach;
8444
8464
  return func(collection, getIteratee(iteratee2, 3));
8445
8465
  }
8446
8466
  function forEachRight(collection, iteratee2) {
8447
- var func = isArray(collection) ? arrayEachRight : baseEachRight;
8467
+ var func = isArray2(collection) ? arrayEachRight : baseEachRight;
8448
8468
  return func(collection, getIteratee(iteratee2, 3));
8449
8469
  }
8450
8470
  var groupBy = createAggregator(function(result2, value, key) {
8451
- if (hasOwnProperty.call(result2, key)) {
8471
+ if (hasOwnProperty2.call(result2, key)) {
8452
8472
  result2[key].push(value);
8453
8473
  } else {
8454
- baseAssignValue(result2, key, [value]);
8474
+ baseAssignValue2(result2, key, [value]);
8455
8475
  }
8456
8476
  });
8457
8477
  function includes(collection, value, fromIndex, guard) {
8458
- collection = isArrayLike(collection) ? collection : values(collection);
8478
+ collection = isArrayLike2(collection) ? collection : values(collection);
8459
8479
  fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0;
8460
8480
  var length = collection.length;
8461
8481
  if (fromIndex < 0) {
@@ -8464,28 +8484,28 @@ lodash.exports;
8464
8484
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
8465
8485
  }
8466
8486
  var invokeMap = baseRest(function(collection, path, args) {
8467
- var index = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
8487
+ var index = -1, isFunc = typeof path == "function", result2 = isArrayLike2(collection) ? Array2(collection.length) : [];
8468
8488
  baseEach(collection, function(value) {
8469
8489
  result2[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
8470
8490
  });
8471
8491
  return result2;
8472
8492
  });
8473
8493
  var keyBy = createAggregator(function(result2, value, key) {
8474
- baseAssignValue(result2, key, value);
8494
+ baseAssignValue2(result2, key, value);
8475
8495
  });
8476
8496
  function map(collection, iteratee2) {
8477
- var func = isArray(collection) ? arrayMap : baseMap;
8497
+ var func = isArray2(collection) ? arrayMap : baseMap;
8478
8498
  return func(collection, getIteratee(iteratee2, 3));
8479
8499
  }
8480
8500
  function orderBy(collection, iteratees, orders, guard) {
8481
8501
  if (collection == null) {
8482
8502
  return [];
8483
8503
  }
8484
- if (!isArray(iteratees)) {
8504
+ if (!isArray2(iteratees)) {
8485
8505
  iteratees = iteratees == null ? [] : [iteratees];
8486
8506
  }
8487
8507
  orders = guard ? undefined$1 : orders;
8488
- if (!isArray(orders)) {
8508
+ if (!isArray2(orders)) {
8489
8509
  orders = orders == null ? [] : [orders];
8490
8510
  }
8491
8511
  return baseOrderBy(collection, iteratees, orders);
@@ -8496,19 +8516,19 @@ lodash.exports;
8496
8516
  return [[], []];
8497
8517
  });
8498
8518
  function reduce(collection, iteratee2, accumulator) {
8499
- var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
8519
+ var func = isArray2(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
8500
8520
  return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach);
8501
8521
  }
8502
8522
  function reduceRight(collection, iteratee2, accumulator) {
8503
- var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3;
8523
+ var func = isArray2(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3;
8504
8524
  return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight);
8505
8525
  }
8506
8526
  function reject(collection, predicate) {
8507
- var func = isArray(collection) ? arrayFilter : baseFilter;
8527
+ var func = isArray2(collection) ? arrayFilter2 : baseFilter;
8508
8528
  return func(collection, negate(getIteratee(predicate, 3)));
8509
8529
  }
8510
8530
  function sample(collection) {
8511
- var func = isArray(collection) ? arraySample : baseSample;
8531
+ var func = isArray2(collection) ? arraySample : baseSample;
8512
8532
  return func(collection);
8513
8533
  }
8514
8534
  function sampleSize(collection, n, guard) {
@@ -8517,28 +8537,28 @@ lodash.exports;
8517
8537
  } else {
8518
8538
  n = toInteger(n);
8519
8539
  }
8520
- var func = isArray(collection) ? arraySampleSize : baseSampleSize;
8540
+ var func = isArray2(collection) ? arraySampleSize : baseSampleSize;
8521
8541
  return func(collection, n);
8522
8542
  }
8523
8543
  function shuffle(collection) {
8524
- var func = isArray(collection) ? arrayShuffle : baseShuffle;
8544
+ var func = isArray2(collection) ? arrayShuffle : baseShuffle;
8525
8545
  return func(collection);
8526
8546
  }
8527
8547
  function size(collection) {
8528
8548
  if (collection == null) {
8529
8549
  return 0;
8530
8550
  }
8531
- if (isArrayLike(collection)) {
8551
+ if (isArrayLike2(collection)) {
8532
8552
  return isString(collection) ? stringSize(collection) : collection.length;
8533
8553
  }
8534
- var tag = getTag(collection);
8535
- if (tag == mapTag || tag == setTag) {
8554
+ var tag = getTag2(collection);
8555
+ if (tag == mapTag2 || tag == setTag2) {
8536
8556
  return collection.size;
8537
8557
  }
8538
- return baseKeys(collection).length;
8558
+ return baseKeys2(collection).length;
8539
8559
  }
8540
8560
  function some(collection, predicate, guard) {
8541
- var func = isArray(collection) ? arraySome : baseSome;
8561
+ var func = isArray2(collection) ? arraySome : baseSome;
8542
8562
  if (guard && isIterateeCall(collection, predicate, guard)) {
8543
8563
  predicate = undefined$1;
8544
8564
  }
@@ -8557,7 +8577,7 @@ lodash.exports;
8557
8577
  return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
8558
8578
  });
8559
8579
  var now = ctxNow || function() {
8560
- return root.Date.now();
8580
+ return root2.Date.now();
8561
8581
  };
8562
8582
  function after(n, func) {
8563
8583
  if (typeof func != "function") {
@@ -8625,7 +8645,7 @@ lodash.exports;
8625
8645
  throw new TypeError2(FUNC_ERROR_TEXT);
8626
8646
  }
8627
8647
  wait = toNumber(wait) || 0;
8628
- if (isObject(options)) {
8648
+ if (isObject2(options)) {
8629
8649
  leading = !!options.leading;
8630
8650
  maxing = "maxWait" in options;
8631
8651
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -8722,10 +8742,10 @@ lodash.exports;
8722
8742
  memoized.cache = cache.set(key, result2) || cache;
8723
8743
  return result2;
8724
8744
  };
8725
- memoized.cache = new (memoize.Cache || MapCache)();
8745
+ memoized.cache = new (memoize.Cache || MapCache2)();
8726
8746
  return memoized;
8727
8747
  }
8728
- memoize.Cache = MapCache;
8748
+ memoize.Cache = MapCache2;
8729
8749
  function negate(predicate) {
8730
8750
  if (typeof predicate != "function") {
8731
8751
  throw new TypeError2(FUNC_ERROR_TEXT);
@@ -8749,7 +8769,7 @@ lodash.exports;
8749
8769
  return before(2, func);
8750
8770
  }
8751
8771
  var overArgs = castRest(function(func, transforms) {
8752
- transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
8772
+ transforms = transforms.length == 1 && isArray2(transforms[0]) ? arrayMap(transforms[0], baseUnary2(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary2(getIteratee()));
8753
8773
  var funcsLength = transforms.length;
8754
8774
  return baseRest(function(args) {
8755
8775
  var index = -1, length = nativeMin(args.length, funcsLength);
@@ -8785,7 +8805,7 @@ lodash.exports;
8785
8805
  return baseRest(function(args) {
8786
8806
  var array = args[start], otherArgs = castSlice(args, 0, start);
8787
8807
  if (array) {
8788
- arrayPush(otherArgs, array);
8808
+ arrayPush2(otherArgs, array);
8789
8809
  }
8790
8810
  return apply(func, this, otherArgs);
8791
8811
  });
@@ -8795,7 +8815,7 @@ lodash.exports;
8795
8815
  if (typeof func != "function") {
8796
8816
  throw new TypeError2(FUNC_ERROR_TEXT);
8797
8817
  }
8798
- if (isObject(options)) {
8818
+ if (isObject2(options)) {
8799
8819
  leading = "leading" in options ? !!options.leading : leading;
8800
8820
  trailing = "trailing" in options ? !!options.trailing : trailing;
8801
8821
  }
@@ -8816,69 +8836,69 @@ lodash.exports;
8816
8836
  return [];
8817
8837
  }
8818
8838
  var value = arguments[0];
8819
- return isArray(value) ? value : [value];
8839
+ return isArray2(value) ? value : [value];
8820
8840
  }
8821
8841
  function clone(value) {
8822
- return baseClone(value, CLONE_SYMBOLS_FLAG);
8842
+ return baseClone2(value, CLONE_SYMBOLS_FLAG2);
8823
8843
  }
8824
8844
  function cloneWith(value, customizer) {
8825
8845
  customizer = typeof customizer == "function" ? customizer : undefined$1;
8826
- return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
8846
+ return baseClone2(value, CLONE_SYMBOLS_FLAG2, customizer);
8827
8847
  }
8828
- function cloneDeep(value) {
8829
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
8848
+ function cloneDeep2(value) {
8849
+ return baseClone2(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
8830
8850
  }
8831
8851
  function cloneDeepWith(value, customizer) {
8832
8852
  customizer = typeof customizer == "function" ? customizer : undefined$1;
8833
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
8853
+ return baseClone2(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2, customizer);
8834
8854
  }
8835
8855
  function conformsTo(object, source) {
8836
- return source == null || baseConformsTo(object, source, keys(source));
8856
+ return source == null || baseConformsTo(object, source, keys2(source));
8837
8857
  }
8838
- function eq(value, other) {
8858
+ function eq2(value, other) {
8839
8859
  return value === other || value !== value && other !== other;
8840
8860
  }
8841
8861
  var gt = createRelationalOperation(baseGt);
8842
8862
  var gte = createRelationalOperation(function(value, other) {
8843
8863
  return value >= other;
8844
8864
  });
8845
- var isArguments = baseIsArguments(/* @__PURE__ */ function() {
8865
+ var isArguments2 = baseIsArguments2(/* @__PURE__ */ function() {
8846
8866
  return arguments;
8847
- }()) ? baseIsArguments : function(value) {
8848
- return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
8867
+ }()) ? baseIsArguments2 : function(value) {
8868
+ return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
8849
8869
  };
8850
- var isArray = Array2.isArray;
8851
- var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
8852
- function isArrayLike(value) {
8853
- return value != null && isLength(value.length) && !isFunction(value);
8870
+ var isArray2 = Array2.isArray;
8871
+ var isArrayBuffer = nodeIsArrayBuffer ? baseUnary2(nodeIsArrayBuffer) : baseIsArrayBuffer;
8872
+ function isArrayLike2(value) {
8873
+ return value != null && isLength2(value.length) && !isFunction2(value);
8854
8874
  }
8855
8875
  function isArrayLikeObject(value) {
8856
- return isObjectLike(value) && isArrayLike(value);
8876
+ return isObjectLike2(value) && isArrayLike2(value);
8857
8877
  }
8858
8878
  function isBoolean(value) {
8859
- return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
8879
+ return value === true || value === false || isObjectLike2(value) && baseGetTag2(value) == boolTag2;
8860
8880
  }
8861
- var isBuffer = nativeIsBuffer || stubFalse;
8862
- var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
8881
+ var isBuffer2 = nativeIsBuffer || stubFalse2;
8882
+ var isDate = nodeIsDate ? baseUnary2(nodeIsDate) : baseIsDate;
8863
8883
  function isElement(value) {
8864
- return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
8884
+ return isObjectLike2(value) && value.nodeType === 1 && !isPlainObject(value);
8865
8885
  }
8866
8886
  function isEmpty(value) {
8867
8887
  if (value == null) {
8868
8888
  return true;
8869
8889
  }
8870
- if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
8890
+ if (isArrayLike2(value) && (isArray2(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer2(value) || isTypedArray2(value) || isArguments2(value))) {
8871
8891
  return !value.length;
8872
8892
  }
8873
- var tag = getTag(value);
8874
- if (tag == mapTag || tag == setTag) {
8893
+ var tag = getTag2(value);
8894
+ if (tag == mapTag2 || tag == setTag2) {
8875
8895
  return !value.size;
8876
8896
  }
8877
- if (isPrototype(value)) {
8878
- return !baseKeys(value).length;
8897
+ if (isPrototype2(value)) {
8898
+ return !baseKeys2(value).length;
8879
8899
  }
8880
8900
  for (var key in value) {
8881
- if (hasOwnProperty.call(value, key)) {
8901
+ if (hasOwnProperty2.call(value, key)) {
8882
8902
  return false;
8883
8903
  }
8884
8904
  }
@@ -8893,36 +8913,36 @@ lodash.exports;
8893
8913
  return result2 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result2;
8894
8914
  }
8895
8915
  function isError(value) {
8896
- if (!isObjectLike(value)) {
8916
+ if (!isObjectLike2(value)) {
8897
8917
  return false;
8898
8918
  }
8899
- var tag = baseGetTag(value);
8900
- return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject(value);
8919
+ var tag = baseGetTag2(value);
8920
+ return tag == errorTag2 || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject(value);
8901
8921
  }
8902
8922
  function isFinite(value) {
8903
8923
  return typeof value == "number" && nativeIsFinite(value);
8904
8924
  }
8905
- function isFunction(value) {
8906
- if (!isObject(value)) {
8925
+ function isFunction2(value) {
8926
+ if (!isObject2(value)) {
8907
8927
  return false;
8908
8928
  }
8909
- var tag = baseGetTag(value);
8910
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
8929
+ var tag = baseGetTag2(value);
8930
+ return tag == funcTag2 || tag == genTag2 || tag == asyncTag2 || tag == proxyTag2;
8911
8931
  }
8912
8932
  function isInteger(value) {
8913
8933
  return typeof value == "number" && value == toInteger(value);
8914
8934
  }
8915
- function isLength(value) {
8916
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
8935
+ function isLength2(value) {
8936
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
8917
8937
  }
8918
- function isObject(value) {
8938
+ function isObject2(value) {
8919
8939
  var type = typeof value;
8920
8940
  return value != null && (type == "object" || type == "function");
8921
8941
  }
8922
- function isObjectLike(value) {
8942
+ function isObjectLike2(value) {
8923
8943
  return value != null && typeof value == "object";
8924
8944
  }
8925
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
8945
+ var isMap2 = nodeIsMap2 ? baseUnary2(nodeIsMap2) : baseIsMap2;
8926
8946
  function isMatch(object, source) {
8927
8947
  return object === source || baseIsMatch(object, source, getMatchData(source));
8928
8948
  }
@@ -8937,7 +8957,7 @@ lodash.exports;
8937
8957
  if (isMaskable(value)) {
8938
8958
  throw new Error2(CORE_ERROR_TEXT);
8939
8959
  }
8940
- return baseIsNative(value);
8960
+ return baseIsNative2(value);
8941
8961
  }
8942
8962
  function isNull(value) {
8943
8963
  return value === null;
@@ -8946,39 +8966,39 @@ lodash.exports;
8946
8966
  return value == null;
8947
8967
  }
8948
8968
  function isNumber(value) {
8949
- return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
8969
+ return typeof value == "number" || isObjectLike2(value) && baseGetTag2(value) == numberTag2;
8950
8970
  }
8951
8971
  function isPlainObject(value) {
8952
- if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
8972
+ if (!isObjectLike2(value) || baseGetTag2(value) != objectTag2) {
8953
8973
  return false;
8954
8974
  }
8955
- var proto = getPrototype(value);
8975
+ var proto = getPrototype2(value);
8956
8976
  if (proto === null) {
8957
8977
  return true;
8958
8978
  }
8959
- var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
8960
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
8979
+ var Ctor = hasOwnProperty2.call(proto, "constructor") && proto.constructor;
8980
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString2.call(Ctor) == objectCtorString;
8961
8981
  }
8962
- var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
8982
+ var isRegExp = nodeIsRegExp ? baseUnary2(nodeIsRegExp) : baseIsRegExp;
8963
8983
  function isSafeInteger(value) {
8964
- return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
8984
+ return isInteger(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2;
8965
8985
  }
8966
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
8986
+ var isSet2 = nodeIsSet2 ? baseUnary2(nodeIsSet2) : baseIsSet2;
8967
8987
  function isString(value) {
8968
- return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
8988
+ return typeof value == "string" || !isArray2(value) && isObjectLike2(value) && baseGetTag2(value) == stringTag2;
8969
8989
  }
8970
8990
  function isSymbol(value) {
8971
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
8991
+ return typeof value == "symbol" || isObjectLike2(value) && baseGetTag2(value) == symbolTag2;
8972
8992
  }
8973
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
8993
+ var isTypedArray2 = nodeIsTypedArray2 ? baseUnary2(nodeIsTypedArray2) : baseIsTypedArray2;
8974
8994
  function isUndefined(value) {
8975
8995
  return value === undefined$1;
8976
8996
  }
8977
8997
  function isWeakMap(value) {
8978
- return isObjectLike(value) && getTag(value) == weakMapTag;
8998
+ return isObjectLike2(value) && getTag2(value) == weakMapTag2;
8979
8999
  }
8980
9000
  function isWeakSet(value) {
8981
- return isObjectLike(value) && baseGetTag(value) == weakSetTag;
9001
+ return isObjectLike2(value) && baseGetTag2(value) == weakSetTag;
8982
9002
  }
8983
9003
  var lt = createRelationalOperation(baseLt);
8984
9004
  var lte = createRelationalOperation(function(value, other) {
@@ -8988,13 +9008,13 @@ lodash.exports;
8988
9008
  if (!value) {
8989
9009
  return [];
8990
9010
  }
8991
- if (isArrayLike(value)) {
8992
- return isString(value) ? stringToArray(value) : copyArray(value);
9011
+ if (isArrayLike2(value)) {
9012
+ return isString(value) ? stringToArray(value) : copyArray2(value);
8993
9013
  }
8994
9014
  if (symIterator && value[symIterator]) {
8995
9015
  return iteratorToArray(value[symIterator]());
8996
9016
  }
8997
- var tag = getTag(value), func = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values;
9017
+ var tag = getTag2(value), func = tag == mapTag2 ? mapToArray : tag == setTag2 ? setToArray : values;
8998
9018
  return func(value);
8999
9019
  }
9000
9020
  function toFinite(value) {
@@ -9022,9 +9042,9 @@ lodash.exports;
9022
9042
  if (isSymbol(value)) {
9023
9043
  return NAN;
9024
9044
  }
9025
- if (isObject(value)) {
9045
+ if (isObject2(value)) {
9026
9046
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
9027
- value = isObject(other) ? other + "" : other;
9047
+ value = isObject2(other) ? other + "" : other;
9028
9048
  }
9029
9049
  if (typeof value != "string") {
9030
9050
  return value === 0 ? value : +value;
@@ -9034,38 +9054,38 @@ lodash.exports;
9034
9054
  return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
9035
9055
  }
9036
9056
  function toPlainObject(value) {
9037
- return copyObject(value, keysIn(value));
9057
+ return copyObject2(value, keysIn2(value));
9038
9058
  }
9039
9059
  function toSafeInteger(value) {
9040
- return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
9060
+ return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER2, MAX_SAFE_INTEGER2) : value === 0 ? value : 0;
9041
9061
  }
9042
9062
  function toString(value) {
9043
9063
  return value == null ? "" : baseToString(value);
9044
9064
  }
9045
9065
  var assign = createAssigner(function(object, source) {
9046
- if (isPrototype(source) || isArrayLike(source)) {
9047
- copyObject(source, keys(source), object);
9066
+ if (isPrototype2(source) || isArrayLike2(source)) {
9067
+ copyObject2(source, keys2(source), object);
9048
9068
  return;
9049
9069
  }
9050
9070
  for (var key in source) {
9051
- if (hasOwnProperty.call(source, key)) {
9052
- assignValue(object, key, source[key]);
9071
+ if (hasOwnProperty2.call(source, key)) {
9072
+ assignValue2(object, key, source[key]);
9053
9073
  }
9054
9074
  }
9055
9075
  });
9056
9076
  var assignIn = createAssigner(function(object, source) {
9057
- copyObject(source, keysIn(source), object);
9077
+ copyObject2(source, keysIn2(source), object);
9058
9078
  });
9059
9079
  var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
9060
- copyObject(source, keysIn(source), object, customizer);
9080
+ copyObject2(source, keysIn2(source), object, customizer);
9061
9081
  });
9062
9082
  var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
9063
- copyObject(source, keys(source), object, customizer);
9083
+ copyObject2(source, keys2(source), object, customizer);
9064
9084
  });
9065
9085
  var at = flatRest(baseAt);
9066
9086
  function create(prototype, properties) {
9067
- var result2 = baseCreate(prototype);
9068
- return properties == null ? result2 : baseAssign(result2, properties);
9087
+ var result2 = baseCreate2(prototype);
9088
+ return properties == null ? result2 : baseAssign2(result2, properties);
9069
9089
  }
9070
9090
  var defaults = baseRest(function(object, sources) {
9071
9091
  object = Object2(object);
@@ -9077,13 +9097,13 @@ lodash.exports;
9077
9097
  }
9078
9098
  while (++index < length) {
9079
9099
  var source = sources[index];
9080
- var props = keysIn(source);
9100
+ var props = keysIn2(source);
9081
9101
  var propsIndex = -1;
9082
9102
  var propsLength = props.length;
9083
9103
  while (++propsIndex < propsLength) {
9084
9104
  var key = props[propsIndex];
9085
9105
  var value = object[key];
9086
- if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
9106
+ if (value === undefined$1 || eq2(value, objectProto2[key]) && !hasOwnProperty2.call(object, key)) {
9087
9107
  object[key] = source[key];
9088
9108
  }
9089
9109
  }
@@ -9101,10 +9121,10 @@ lodash.exports;
9101
9121
  return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
9102
9122
  }
9103
9123
  function forIn(object, iteratee2) {
9104
- return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn);
9124
+ return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn2);
9105
9125
  }
9106
9126
  function forInRight(object, iteratee2) {
9107
- return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn);
9127
+ return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn2);
9108
9128
  }
9109
9129
  function forOwn(object, iteratee2) {
9110
9130
  return object && baseForOwn(object, getIteratee(iteratee2, 3));
@@ -9113,10 +9133,10 @@ lodash.exports;
9113
9133
  return object && baseForOwnRight(object, getIteratee(iteratee2, 3));
9114
9134
  }
9115
9135
  function functions(object) {
9116
- return object == null ? [] : baseFunctions(object, keys(object));
9136
+ return object == null ? [] : baseFunctions(object, keys2(object));
9117
9137
  }
9118
9138
  function functionsIn(object) {
9119
- return object == null ? [] : baseFunctions(object, keysIn(object));
9139
+ return object == null ? [] : baseFunctions(object, keysIn2(object));
9120
9140
  }
9121
9141
  function get(object, path, defaultValue) {
9122
9142
  var result2 = object == null ? undefined$1 : baseGet(object, path);
@@ -9130,32 +9150,32 @@ lodash.exports;
9130
9150
  }
9131
9151
  var invert = createInverter(function(result2, value, key) {
9132
9152
  if (value != null && typeof value.toString != "function") {
9133
- value = nativeObjectToString.call(value);
9153
+ value = nativeObjectToString2.call(value);
9134
9154
  }
9135
9155
  result2[value] = key;
9136
9156
  }, constant(identity));
9137
9157
  var invertBy = createInverter(function(result2, value, key) {
9138
9158
  if (value != null && typeof value.toString != "function") {
9139
- value = nativeObjectToString.call(value);
9159
+ value = nativeObjectToString2.call(value);
9140
9160
  }
9141
- if (hasOwnProperty.call(result2, value)) {
9161
+ if (hasOwnProperty2.call(result2, value)) {
9142
9162
  result2[value].push(key);
9143
9163
  } else {
9144
9164
  result2[value] = [key];
9145
9165
  }
9146
9166
  }, getIteratee);
9147
9167
  var invoke = baseRest(baseInvoke);
9148
- function keys(object) {
9149
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
9168
+ function keys2(object) {
9169
+ return isArrayLike2(object) ? arrayLikeKeys2(object) : baseKeys2(object);
9150
9170
  }
9151
- function keysIn(object) {
9152
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
9171
+ function keysIn2(object) {
9172
+ return isArrayLike2(object) ? arrayLikeKeys2(object, true) : baseKeysIn2(object);
9153
9173
  }
9154
9174
  function mapKeys(object, iteratee2) {
9155
9175
  var result2 = {};
9156
9176
  iteratee2 = getIteratee(iteratee2, 3);
9157
9177
  baseForOwn(object, function(value, key, object2) {
9158
- baseAssignValue(result2, iteratee2(value, key, object2), value);
9178
+ baseAssignValue2(result2, iteratee2(value, key, object2), value);
9159
9179
  });
9160
9180
  return result2;
9161
9181
  }
@@ -9163,7 +9183,7 @@ lodash.exports;
9163
9183
  var result2 = {};
9164
9184
  iteratee2 = getIteratee(iteratee2, 3);
9165
9185
  baseForOwn(object, function(value, key, object2) {
9166
- baseAssignValue(result2, key, iteratee2(value, key, object2));
9186
+ baseAssignValue2(result2, key, iteratee2(value, key, object2));
9167
9187
  });
9168
9188
  return result2;
9169
9189
  }
@@ -9184,9 +9204,9 @@ lodash.exports;
9184
9204
  isDeep || (isDeep = path.length > 1);
9185
9205
  return path;
9186
9206
  });
9187
- copyObject(object, getAllKeysIn(object), result2);
9207
+ copyObject2(object, getAllKeysIn2(object), result2);
9188
9208
  if (isDeep) {
9189
- result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
9209
+ result2 = baseClone2(result2, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, customOmitClone);
9190
9210
  }
9191
9211
  var length = paths.length;
9192
9212
  while (length--) {
@@ -9204,7 +9224,7 @@ lodash.exports;
9204
9224
  if (object == null) {
9205
9225
  return {};
9206
9226
  }
9207
- var props = arrayMap(getAllKeysIn(object), function(prop) {
9227
+ var props = arrayMap(getAllKeysIn2(object), function(prop) {
9208
9228
  return [prop];
9209
9229
  });
9210
9230
  predicate = getIteratee(predicate);
@@ -9225,7 +9245,7 @@ lodash.exports;
9225
9245
  index = length;
9226
9246
  value = defaultValue;
9227
9247
  }
9228
- object = isFunction(value) ? value.call(object) : value;
9248
+ object = isFunction2(value) ? value.call(object) : value;
9229
9249
  }
9230
9250
  return object;
9231
9251
  }
@@ -9236,22 +9256,22 @@ lodash.exports;
9236
9256
  customizer = typeof customizer == "function" ? customizer : undefined$1;
9237
9257
  return object == null ? object : baseSet(object, path, value, customizer);
9238
9258
  }
9239
- var toPairs = createToPairs(keys);
9240
- var toPairsIn = createToPairs(keysIn);
9259
+ var toPairs = createToPairs(keys2);
9260
+ var toPairsIn = createToPairs(keysIn2);
9241
9261
  function transform(object, iteratee2, accumulator) {
9242
- var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object);
9262
+ var isArr = isArray2(object), isArrLike = isArr || isBuffer2(object) || isTypedArray2(object);
9243
9263
  iteratee2 = getIteratee(iteratee2, 4);
9244
9264
  if (accumulator == null) {
9245
9265
  var Ctor = object && object.constructor;
9246
9266
  if (isArrLike) {
9247
9267
  accumulator = isArr ? new Ctor() : [];
9248
- } else if (isObject(object)) {
9249
- accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
9268
+ } else if (isObject2(object)) {
9269
+ accumulator = isFunction2(Ctor) ? baseCreate2(getPrototype2(object)) : {};
9250
9270
  } else {
9251
9271
  accumulator = {};
9252
9272
  }
9253
9273
  }
9254
- (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object2) {
9274
+ (isArrLike ? arrayEach2 : baseForOwn)(object, function(value, index, object2) {
9255
9275
  return iteratee2(accumulator, value, index, object2);
9256
9276
  });
9257
9277
  return accumulator;
@@ -9267,10 +9287,10 @@ lodash.exports;
9267
9287
  return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
9268
9288
  }
9269
9289
  function values(object) {
9270
- return object == null ? [] : baseValues(object, keys(object));
9290
+ return object == null ? [] : baseValues(object, keys2(object));
9271
9291
  }
9272
9292
  function valuesIn(object) {
9273
- return object == null ? [] : baseValues(object, keysIn(object));
9293
+ return object == null ? [] : baseValues(object, keysIn2(object));
9274
9294
  }
9275
9295
  function clamp(number, lower, upper) {
9276
9296
  if (upper === undefined$1) {
@@ -9360,7 +9380,7 @@ lodash.exports;
9360
9380
  }
9361
9381
  function escapeRegExp(string) {
9362
9382
  string = toString(string);
9363
- return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string;
9383
+ return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar2, "\\$&") : string;
9364
9384
  }
9365
9385
  var kebabCase = createCompounder(function(result2, word, index) {
9366
9386
  return result2 + (index ? "-" : "") + word.toLowerCase();
@@ -9447,13 +9467,13 @@ lodash.exports;
9447
9467
  }
9448
9468
  string = toString(string);
9449
9469
  options = assignInWith({}, options, settings, customDefaultsAssignIn);
9450
- var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
9470
+ var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys2(imports), importsValues = baseValues(imports, importsKeys);
9451
9471
  var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
9452
9472
  var reDelimiters = RegExp2(
9453
9473
  (options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
9454
9474
  "g"
9455
9475
  );
9456
- var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
9476
+ var sourceURL = "//# sourceURL=" + (hasOwnProperty2.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n";
9457
9477
  string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
9458
9478
  interpolateValue || (interpolateValue = esTemplateValue);
9459
9479
  source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
@@ -9472,7 +9492,7 @@ lodash.exports;
9472
9492
  return match;
9473
9493
  });
9474
9494
  source += "';\n";
9475
- var variable = hasOwnProperty.call(options, "variable") && options.variable;
9495
+ var variable = hasOwnProperty2.call(options, "variable") && options.variable;
9476
9496
  if (!variable) {
9477
9497
  source = "with (obj) {\n" + source + "\n}\n";
9478
9498
  } else if (reForbiddenIdentifierChars.test(variable)) {
@@ -9530,7 +9550,7 @@ lodash.exports;
9530
9550
  }
9531
9551
  function truncate(string, options) {
9532
9552
  var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION;
9533
- if (isObject(options)) {
9553
+ if (isObject2(options)) {
9534
9554
  var separator = "separator" in options ? options.separator : separator;
9535
9555
  length = "length" in options ? toInteger(options.length) : length;
9536
9556
  omission = "omission" in options ? baseToString(options.omission) : omission;
@@ -9559,7 +9579,7 @@ lodash.exports;
9559
9579
  if (string.slice(end).search(separator)) {
9560
9580
  var match, substring = result2;
9561
9581
  if (!separator.global) {
9562
- separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g");
9582
+ separator = RegExp2(separator.source, toString(reFlags2.exec(separator)) + "g");
9563
9583
  }
9564
9584
  separator.lastIndex = 0;
9565
9585
  while (match = separator.exec(substring)) {
@@ -9599,9 +9619,9 @@ lodash.exports;
9599
9619
  }
9600
9620
  });
9601
9621
  var bindAll = flatRest(function(object, methodNames) {
9602
- arrayEach(methodNames, function(key) {
9622
+ arrayEach2(methodNames, function(key) {
9603
9623
  key = toKey(key);
9604
- baseAssignValue(object, key, bind(object[key], object));
9624
+ baseAssignValue2(object, key, bind(object[key], object));
9605
9625
  });
9606
9626
  return object;
9607
9627
  });
@@ -9624,7 +9644,7 @@ lodash.exports;
9624
9644
  });
9625
9645
  }
9626
9646
  function conforms(source) {
9627
- return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
9647
+ return baseConforms(baseClone2(source, CLONE_DEEP_FLAG2));
9628
9648
  }
9629
9649
  function constant(value) {
9630
9650
  return function() {
@@ -9640,13 +9660,13 @@ lodash.exports;
9640
9660
  return value;
9641
9661
  }
9642
9662
  function iteratee(func) {
9643
- return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG));
9663
+ return baseIteratee(typeof func == "function" ? func : baseClone2(func, CLONE_DEEP_FLAG2));
9644
9664
  }
9645
9665
  function matches(source) {
9646
- return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
9666
+ return baseMatches(baseClone2(source, CLONE_DEEP_FLAG2));
9647
9667
  }
9648
9668
  function matchesProperty(path, srcValue) {
9649
- return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
9669
+ return baseMatchesProperty(path, baseClone2(srcValue, CLONE_DEEP_FLAG2));
9650
9670
  }
9651
9671
  var method = baseRest(function(path, args) {
9652
9672
  return function(object) {
@@ -9659,35 +9679,35 @@ lodash.exports;
9659
9679
  };
9660
9680
  });
9661
9681
  function mixin(object, source, options) {
9662
- var props = keys(source), methodNames = baseFunctions(source, props);
9663
- if (options == null && !(isObject(source) && (methodNames.length || !props.length))) {
9682
+ var props = keys2(source), methodNames = baseFunctions(source, props);
9683
+ if (options == null && !(isObject2(source) && (methodNames.length || !props.length))) {
9664
9684
  options = source;
9665
9685
  source = object;
9666
9686
  object = this;
9667
- methodNames = baseFunctions(source, keys(source));
9687
+ methodNames = baseFunctions(source, keys2(source));
9668
9688
  }
9669
- var chain2 = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object);
9670
- arrayEach(methodNames, function(methodName) {
9689
+ var chain2 = !(isObject2(options) && "chain" in options) || !!options.chain, isFunc = isFunction2(object);
9690
+ arrayEach2(methodNames, function(methodName) {
9671
9691
  var func = source[methodName];
9672
9692
  object[methodName] = func;
9673
9693
  if (isFunc) {
9674
9694
  object.prototype[methodName] = function() {
9675
9695
  var chainAll = this.__chain__;
9676
9696
  if (chain2 || chainAll) {
9677
- var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__);
9697
+ var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray2(this.__actions__);
9678
9698
  actions.push({ "func": func, "args": arguments, "thisArg": object });
9679
9699
  result2.__chain__ = chainAll;
9680
9700
  return result2;
9681
9701
  }
9682
- return func.apply(object, arrayPush([this.value()], arguments));
9702
+ return func.apply(object, arrayPush2([this.value()], arguments));
9683
9703
  };
9684
9704
  }
9685
9705
  });
9686
9706
  return object;
9687
9707
  }
9688
9708
  function noConflict() {
9689
- if (root._ === this) {
9690
- root._ = oldDash;
9709
+ if (root2._ === this) {
9710
+ root2._ = oldDash;
9691
9711
  }
9692
9712
  return this;
9693
9713
  }
@@ -9712,10 +9732,10 @@ lodash.exports;
9712
9732
  }
9713
9733
  var range = createRange();
9714
9734
  var rangeRight = createRange(true);
9715
- function stubArray() {
9735
+ function stubArray2() {
9716
9736
  return [];
9717
9737
  }
9718
- function stubFalse() {
9738
+ function stubFalse2() {
9719
9739
  return false;
9720
9740
  }
9721
9741
  function stubObject() {
@@ -9729,23 +9749,23 @@ lodash.exports;
9729
9749
  }
9730
9750
  function times(n, iteratee2) {
9731
9751
  n = toInteger(n);
9732
- if (n < 1 || n > MAX_SAFE_INTEGER) {
9752
+ if (n < 1 || n > MAX_SAFE_INTEGER2) {
9733
9753
  return [];
9734
9754
  }
9735
9755
  var index = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH);
9736
9756
  iteratee2 = getIteratee(iteratee2);
9737
9757
  n -= MAX_ARRAY_LENGTH;
9738
- var result2 = baseTimes(length, iteratee2);
9758
+ var result2 = baseTimes2(length, iteratee2);
9739
9759
  while (++index < n) {
9740
9760
  iteratee2(index);
9741
9761
  }
9742
9762
  return result2;
9743
9763
  }
9744
9764
  function toPath(value) {
9745
- if (isArray(value)) {
9765
+ if (isArray2(value)) {
9746
9766
  return arrayMap(value, toKey);
9747
9767
  }
9748
- return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
9768
+ return isSymbol(value) ? [value] : copyArray2(stringToPath(toString(value)));
9749
9769
  }
9750
9770
  function uniqueId(prefix) {
9751
9771
  var id = ++idCounter;
@@ -9849,8 +9869,8 @@ lodash.exports;
9849
9869
  lodash2.invokeMap = invokeMap;
9850
9870
  lodash2.iteratee = iteratee;
9851
9871
  lodash2.keyBy = keyBy;
9852
- lodash2.keys = keys;
9853
- lodash2.keysIn = keysIn;
9872
+ lodash2.keys = keys2;
9873
+ lodash2.keysIn = keysIn2;
9854
9874
  lodash2.map = map;
9855
9875
  lodash2.mapKeys = mapKeys;
9856
9876
  lodash2.mapValues = mapValues;
@@ -9951,7 +9971,7 @@ lodash.exports;
9951
9971
  lodash2.ceil = ceil;
9952
9972
  lodash2.clamp = clamp;
9953
9973
  lodash2.clone = clone;
9954
- lodash2.cloneDeep = cloneDeep;
9974
+ lodash2.cloneDeep = cloneDeep2;
9955
9975
  lodash2.cloneDeepWith = cloneDeepWith;
9956
9976
  lodash2.cloneWith = cloneWith;
9957
9977
  lodash2.conformsTo = conformsTo;
@@ -9959,7 +9979,7 @@ lodash.exports;
9959
9979
  lodash2.defaultTo = defaultTo;
9960
9980
  lodash2.divide = divide;
9961
9981
  lodash2.endsWith = endsWith;
9962
- lodash2.eq = eq;
9982
+ lodash2.eq = eq2;
9963
9983
  lodash2.escape = escape;
9964
9984
  lodash2.escapeRegExp = escapeRegExp;
9965
9985
  lodash2.every = every;
@@ -9987,13 +10007,13 @@ lodash.exports;
9987
10007
  lodash2.indexOf = indexOf;
9988
10008
  lodash2.inRange = inRange;
9989
10009
  lodash2.invoke = invoke;
9990
- lodash2.isArguments = isArguments;
9991
- lodash2.isArray = isArray;
10010
+ lodash2.isArguments = isArguments2;
10011
+ lodash2.isArray = isArray2;
9992
10012
  lodash2.isArrayBuffer = isArrayBuffer;
9993
- lodash2.isArrayLike = isArrayLike;
10013
+ lodash2.isArrayLike = isArrayLike2;
9994
10014
  lodash2.isArrayLikeObject = isArrayLikeObject;
9995
10015
  lodash2.isBoolean = isBoolean;
9996
- lodash2.isBuffer = isBuffer;
10016
+ lodash2.isBuffer = isBuffer2;
9997
10017
  lodash2.isDate = isDate;
9998
10018
  lodash2.isElement = isElement;
9999
10019
  lodash2.isEmpty = isEmpty;
@@ -10001,10 +10021,10 @@ lodash.exports;
10001
10021
  lodash2.isEqualWith = isEqualWith;
10002
10022
  lodash2.isError = isError;
10003
10023
  lodash2.isFinite = isFinite;
10004
- lodash2.isFunction = isFunction;
10024
+ lodash2.isFunction = isFunction2;
10005
10025
  lodash2.isInteger = isInteger;
10006
- lodash2.isLength = isLength;
10007
- lodash2.isMap = isMap;
10026
+ lodash2.isLength = isLength2;
10027
+ lodash2.isMap = isMap2;
10008
10028
  lodash2.isMatch = isMatch;
10009
10029
  lodash2.isMatchWith = isMatchWith;
10010
10030
  lodash2.isNaN = isNaN;
@@ -10012,15 +10032,15 @@ lodash.exports;
10012
10032
  lodash2.isNil = isNil;
10013
10033
  lodash2.isNull = isNull;
10014
10034
  lodash2.isNumber = isNumber;
10015
- lodash2.isObject = isObject;
10016
- lodash2.isObjectLike = isObjectLike;
10035
+ lodash2.isObject = isObject2;
10036
+ lodash2.isObjectLike = isObjectLike2;
10017
10037
  lodash2.isPlainObject = isPlainObject;
10018
10038
  lodash2.isRegExp = isRegExp;
10019
10039
  lodash2.isSafeInteger = isSafeInteger;
10020
- lodash2.isSet = isSet;
10040
+ lodash2.isSet = isSet2;
10021
10041
  lodash2.isString = isString;
10022
10042
  lodash2.isSymbol = isSymbol;
10023
- lodash2.isTypedArray = isTypedArray;
10043
+ lodash2.isTypedArray = isTypedArray2;
10024
10044
  lodash2.isUndefined = isUndefined;
10025
10045
  lodash2.isWeakMap = isWeakMap;
10026
10046
  lodash2.isWeakSet = isWeakSet;
@@ -10038,8 +10058,8 @@ lodash.exports;
10038
10058
  lodash2.meanBy = meanBy;
10039
10059
  lodash2.min = min;
10040
10060
  lodash2.minBy = minBy;
10041
- lodash2.stubArray = stubArray;
10042
- lodash2.stubFalse = stubFalse;
10061
+ lodash2.stubArray = stubArray2;
10062
+ lodash2.stubFalse = stubFalse2;
10043
10063
  lodash2.stubObject = stubObject;
10044
10064
  lodash2.stubString = stubString;
10045
10065
  lodash2.stubTrue = stubTrue;
@@ -10099,17 +10119,17 @@ lodash.exports;
10099
10119
  mixin(lodash2, function() {
10100
10120
  var source = {};
10101
10121
  baseForOwn(lodash2, function(func, methodName) {
10102
- if (!hasOwnProperty.call(lodash2.prototype, methodName)) {
10122
+ if (!hasOwnProperty2.call(lodash2.prototype, methodName)) {
10103
10123
  source[methodName] = func;
10104
10124
  }
10105
10125
  });
10106
10126
  return source;
10107
10127
  }(), { "chain": false });
10108
10128
  lodash2.VERSION = VERSION;
10109
- arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
10129
+ arrayEach2(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
10110
10130
  lodash2[methodName].placeholder = lodash2;
10111
10131
  });
10112
- arrayEach(["drop", "take"], function(methodName, index) {
10132
+ arrayEach2(["drop", "take"], function(methodName, index) {
10113
10133
  LazyWrapper.prototype[methodName] = function(n) {
10114
10134
  n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
10115
10135
  var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
@@ -10127,7 +10147,7 @@ lodash.exports;
10127
10147
  return this.reverse()[methodName](n).reverse();
10128
10148
  };
10129
10149
  });
10130
- arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
10150
+ arrayEach2(["filter", "map", "takeWhile"], function(methodName, index) {
10131
10151
  var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
10132
10152
  LazyWrapper.prototype[methodName] = function(iteratee2) {
10133
10153
  var result2 = this.clone();
@@ -10139,13 +10159,13 @@ lodash.exports;
10139
10159
  return result2;
10140
10160
  };
10141
10161
  });
10142
- arrayEach(["head", "last"], function(methodName, index) {
10162
+ arrayEach2(["head", "last"], function(methodName, index) {
10143
10163
  var takeName = "take" + (index ? "Right" : "");
10144
10164
  LazyWrapper.prototype[methodName] = function() {
10145
10165
  return this[takeName](1).value()[0];
10146
10166
  };
10147
10167
  });
10148
- arrayEach(["initial", "tail"], function(methodName, index) {
10168
+ arrayEach2(["initial", "tail"], function(methodName, index) {
10149
10169
  var dropName = "drop" + (index ? "" : "Right");
10150
10170
  LazyWrapper.prototype[methodName] = function() {
10151
10171
  return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
@@ -10200,9 +10220,9 @@ lodash.exports;
10200
10220
  return;
10201
10221
  }
10202
10222
  lodash2.prototype[methodName] = function() {
10203
- var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray(value);
10223
+ var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray2(value);
10204
10224
  var interceptor = function(value2) {
10205
- var result3 = lodashFunc.apply(lodash2, arrayPush([value2], args));
10225
+ var result3 = lodashFunc.apply(lodash2, arrayPush2([value2], args));
10206
10226
  return isTaker && chainAll ? result3[0] : result3;
10207
10227
  };
10208
10228
  if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) {
@@ -10222,16 +10242,16 @@ lodash.exports;
10222
10242
  return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2;
10223
10243
  };
10224
10244
  });
10225
- arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) {
10226
- var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName);
10245
+ arrayEach2(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) {
10246
+ var func = arrayProto2[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName);
10227
10247
  lodash2.prototype[methodName] = function() {
10228
10248
  var args = arguments;
10229
10249
  if (retUnwrapped && !this.__chain__) {
10230
10250
  var value = this.value();
10231
- return func.apply(isArray(value) ? value : [], args);
10251
+ return func.apply(isArray2(value) ? value : [], args);
10232
10252
  }
10233
10253
  return this[chainName](function(value2) {
10234
- return func.apply(isArray(value2) ? value2 : [], args);
10254
+ return func.apply(isArray2(value2) ? value2 : [], args);
10235
10255
  });
10236
10256
  };
10237
10257
  });
@@ -10239,7 +10259,7 @@ lodash.exports;
10239
10259
  var lodashFunc = lodash2[methodName];
10240
10260
  if (lodashFunc) {
10241
10261
  var key = lodashFunc.name + "";
10242
- if (!hasOwnProperty.call(realNames, key)) {
10262
+ if (!hasOwnProperty2.call(realNames, key)) {
10243
10263
  realNames[key] = [];
10244
10264
  }
10245
10265
  realNames[key].push({ "name": methodName, "func": lodashFunc });
@@ -10270,7 +10290,7 @@ lodash.exports;
10270
10290
  (freeModule.exports = _2)._ = _2;
10271
10291
  freeExports._ = _2;
10272
10292
  } else {
10273
- root._ = _2;
10293
+ root2._ = _2;
10274
10294
  }
10275
10295
  }).call(commonjsGlobal);
10276
10296
  })(lodash, lodash.exports);
@@ -10548,11 +10568,10 @@ function getProjection(items, activeId, overId, dragOffset) {
10548
10568
  const activeItem = items[activeItemIndex];
10549
10569
  const newItems = arrayMove(items, activeItemIndex, overItemIndex);
10550
10570
  const previousItem = newItems[overItemIndex - 1];
10551
- const nextItem = newItems[overItemIndex + 1];
10552
10571
  const dragDepth = getDragDepth(dragOffset, indentationWidth);
10553
10572
  const projectedDepth = activeItem && typeof activeItem.depth === "number" ? activeItem.depth + dragDepth : 0;
10554
- const maxDepth = getMaxDepth({ previousItem });
10555
- const minDepth = getMinDepth({ nextItem });
10573
+ let maxDepth = getMaxDepth({ previousItem });
10574
+ let minDepth = 0;
10556
10575
  let depth = projectedDepth;
10557
10576
  if (projectedDepth >= maxDepth) {
10558
10577
  depth = maxDepth;
@@ -10567,12 +10586,6 @@ function getMaxDepth({ previousItem }) {
10567
10586
  }
10568
10587
  return 0;
10569
10588
  }
10570
- function getMinDepth({ nextItem }) {
10571
- if (nextItem && typeof nextItem.depth === "number") {
10572
- return nextItem.depth;
10573
- }
10574
- return 0;
10575
- }
10576
10589
  function getDragDepth(offset, indentationWidth2) {
10577
10590
  return Math.round(offset / indentationWidth2);
10578
10591
  }
@@ -10588,7 +10601,7 @@ function RouteIcon({ type, color = "neutral800" }) {
10588
10601
  return /* @__PURE__ */ jsx(Box, { width: "16px", height: "16px" });
10589
10602
  }
10590
10603
  }
10591
- const RouteItem = forwardRef(({ item, setParentId, setActionItem, ghost, depth, style, wrapperRef, handleProps }, ref) => {
10604
+ const RouteItem = forwardRef(({ item, setParentId, setActionItem, setNavigationItems, ghost, depth, style, wrapperRef, handleProps }, ref) => {
10592
10605
  if (!item || !item.route) return null;
10593
10606
  const { setModalType } = useContext(ModalContext);
10594
10607
  const { formatMessage } = useIntl();
@@ -10640,6 +10653,17 @@ const RouteItem = forwardRef(({ item, setParentId, setActionItem, ghost, depth,
10640
10653
  setActionItem(item);
10641
10654
  setModalType("ItemDelete");
10642
10655
  };
10656
+ const handleRestore = () => {
10657
+ setNavigationItems(
10658
+ (navItems) => navItems?.map((navItem) => {
10659
+ if (navItem.documentId === item.documentId) {
10660
+ delete navItem.update;
10661
+ delete navItem.deleted;
10662
+ }
10663
+ return navItem;
10664
+ })
10665
+ );
10666
+ };
10643
10667
  const elStyle = {
10644
10668
  marginLeft: depth !== void 0 ? depth * 48 : 0,
10645
10669
  opacity: ghost || item.deleted ? 0.5 : 1,
@@ -10696,18 +10720,24 @@ const RouteItem = forwardRef(({ item, setParentId, setActionItem, ghost, depth,
10696
10720
  ] }),
10697
10721
  /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: 4, children: [
10698
10722
  type === "internal" && item.status && /* @__PURE__ */ jsx(Status, { variant: itemStatusOptions[item.status].variant, size: "S", children: /* @__PURE__ */ jsx(Typography, { fontWeight: "bold", children: itemStatusOptions[item.status].status }) }),
10699
- /* @__PURE__ */ jsxs(SimpleMenu, { label: "Notifications", tag: IconButton, icon: /* @__PURE__ */ jsx(More, {}), children: [
10700
- /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleEdit(), children: formatMessage({
10701
- id: getTranslation("edit"),
10702
- defaultMessage: "Edit"
10703
- }) }),
10704
- /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleAddChildren(), children: formatMessage({
10705
- id: getTranslation("navigation.page.navItem.addChildren"),
10706
- defaultMessage: "Add children"
10707
- }) }),
10708
- /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleDelete(), children: /* @__PURE__ */ jsx(Typography, { textColor: "danger600", children: formatMessage({
10709
- id: getTranslation("delete"),
10710
- defaultMessage: "Delete"
10723
+ /* @__PURE__ */ jsxs(SimpleMenu, { label: "Item actions", tag: IconButton, icon: /* @__PURE__ */ jsx(More, {}), children: [
10724
+ !item.deleted && /* @__PURE__ */ jsxs(Fragment, { children: [
10725
+ /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleEdit(), children: formatMessage({
10726
+ id: getTranslation("edit"),
10727
+ defaultMessage: "Edit"
10728
+ }) }),
10729
+ /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleAddChildren(), children: formatMessage({
10730
+ id: getTranslation("navigation.page.navItem.addChildren"),
10731
+ defaultMessage: "Add children"
10732
+ }) }),
10733
+ /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleDelete(), children: /* @__PURE__ */ jsx(Typography, { textColor: "danger600", children: formatMessage({
10734
+ id: getTranslation("delete"),
10735
+ defaultMessage: "Delete"
10736
+ }) }) })
10737
+ ] }),
10738
+ (item.deleted || item.update) && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(MenuItem, { onClick: () => handleRestore(), children: formatMessage({
10739
+ id: getTranslation("restore"),
10740
+ defaultMessage: "Restore"
10711
10741
  }) }) })
10712
10742
  ] })
10713
10743
  ] })
@@ -10717,7 +10747,7 @@ const RouteItem = forwardRef(({ item, setParentId, setActionItem, ghost, depth,
10717
10747
  }
10718
10748
  );
10719
10749
  });
10720
- function SortableRouteItem({ item, depth, ...props }) {
10750
+ function SortableRouteItem({ item, depth, setNavigationItems, ...props }) {
10721
10751
  if (!item) return null;
10722
10752
  const {
10723
10753
  isDragging,
@@ -10736,6 +10766,7 @@ function SortableRouteItem({ item, depth, ...props }) {
10736
10766
  {
10737
10767
  ref: setDraggableNodeRef,
10738
10768
  wrapperRef: setDroppableNodeRef,
10769
+ setNavigationItems,
10739
10770
  style,
10740
10771
  item,
10741
10772
  disableInteraction: isSorting,
@@ -10751,8 +10782,9 @@ function SortableRouteItem({ item, depth, ...props }) {
10751
10782
  }
10752
10783
  function PageWrapper({ navigations, loading = false, children }) {
10753
10784
  const { formatMessage } = useIntl();
10754
- const { selectedNavigation, setSelectedNavigation } = useContext(SelectedNavigationContext);
10785
+ const { selectedNavigation } = useContext(SelectedNavigationContext);
10755
10786
  const { setModalType } = useContext(ModalContext);
10787
+ const navigate = useNavigate();
10756
10788
  return /* @__PURE__ */ jsxs(Page.Main, { children: [
10757
10789
  /* @__PURE__ */ jsx(
10758
10790
  Layouts.Header,
@@ -10778,12 +10810,10 @@ function PageWrapper({ navigations, loading = false, children }) {
10778
10810
  id: getTranslation("navigation.page.selectNavigation"),
10779
10811
  defaultMessage: "Select Navigation"
10780
10812
  }),
10813
+ selected: true,
10781
10814
  onChange: (value) => {
10782
10815
  const navItem = navigations.find((nav) => nav.slug === value);
10783
- console.log("switched navigation to: ", navItem);
10784
- if (navItem) {
10785
- setSelectedNavigation(navItem);
10786
- }
10816
+ navItem && navigate(`/plugins/webatlas/navigation/${navItem.documentId}`);
10787
10817
  },
10788
10818
  disabled: navigations.length === 0,
10789
10819
  children: navigations.map((nav) => /* @__PURE__ */ jsx(SingleSelectOption, { value: nav.slug, children: nav.name }, nav.id))
@@ -10795,17 +10825,994 @@ function PageWrapper({ navigations, loading = false, children }) {
10795
10825
  /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(Box, { children }) })
10796
10826
  ] });
10797
10827
  }
10828
+ function listCacheClear$1() {
10829
+ this.__data__ = [];
10830
+ this.size = 0;
10831
+ }
10832
+ var _listCacheClear = listCacheClear$1;
10833
+ function eq$2(value, other) {
10834
+ return value === other || value !== value && other !== other;
10835
+ }
10836
+ var eq_1 = eq$2;
10837
+ var eq$1 = eq_1;
10838
+ function assocIndexOf$4(array, key) {
10839
+ var length = array.length;
10840
+ while (length--) {
10841
+ if (eq$1(array[length][0], key)) {
10842
+ return length;
10843
+ }
10844
+ }
10845
+ return -1;
10846
+ }
10847
+ var _assocIndexOf = assocIndexOf$4;
10848
+ var assocIndexOf$3 = _assocIndexOf;
10849
+ var arrayProto = Array.prototype;
10850
+ var splice = arrayProto.splice;
10851
+ function listCacheDelete$1(key) {
10852
+ var data = this.__data__, index = assocIndexOf$3(data, key);
10853
+ if (index < 0) {
10854
+ return false;
10855
+ }
10856
+ var lastIndex = data.length - 1;
10857
+ if (index == lastIndex) {
10858
+ data.pop();
10859
+ } else {
10860
+ splice.call(data, index, 1);
10861
+ }
10862
+ --this.size;
10863
+ return true;
10864
+ }
10865
+ var _listCacheDelete = listCacheDelete$1;
10866
+ var assocIndexOf$2 = _assocIndexOf;
10867
+ function listCacheGet$1(key) {
10868
+ var data = this.__data__, index = assocIndexOf$2(data, key);
10869
+ return index < 0 ? void 0 : data[index][1];
10870
+ }
10871
+ var _listCacheGet = listCacheGet$1;
10872
+ var assocIndexOf$1 = _assocIndexOf;
10873
+ function listCacheHas$1(key) {
10874
+ return assocIndexOf$1(this.__data__, key) > -1;
10875
+ }
10876
+ var _listCacheHas = listCacheHas$1;
10877
+ var assocIndexOf = _assocIndexOf;
10878
+ function listCacheSet$1(key, value) {
10879
+ var data = this.__data__, index = assocIndexOf(data, key);
10880
+ if (index < 0) {
10881
+ ++this.size;
10882
+ data.push([key, value]);
10883
+ } else {
10884
+ data[index][1] = value;
10885
+ }
10886
+ return this;
10887
+ }
10888
+ var _listCacheSet = listCacheSet$1;
10889
+ var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
10890
+ function ListCache$4(entries) {
10891
+ var index = -1, length = entries == null ? 0 : entries.length;
10892
+ this.clear();
10893
+ while (++index < length) {
10894
+ var entry = entries[index];
10895
+ this.set(entry[0], entry[1]);
10896
+ }
10897
+ }
10898
+ ListCache$4.prototype.clear = listCacheClear;
10899
+ ListCache$4.prototype["delete"] = listCacheDelete;
10900
+ ListCache$4.prototype.get = listCacheGet;
10901
+ ListCache$4.prototype.has = listCacheHas;
10902
+ ListCache$4.prototype.set = listCacheSet;
10903
+ var _ListCache = ListCache$4;
10904
+ var ListCache$3 = _ListCache;
10905
+ function stackClear$1() {
10906
+ this.__data__ = new ListCache$3();
10907
+ this.size = 0;
10908
+ }
10909
+ var _stackClear = stackClear$1;
10910
+ function stackDelete$1(key) {
10911
+ var data = this.__data__, result = data["delete"](key);
10912
+ this.size = data.size;
10913
+ return result;
10914
+ }
10915
+ var _stackDelete = stackDelete$1;
10916
+ function stackGet$1(key) {
10917
+ return this.__data__.get(key);
10918
+ }
10919
+ var _stackGet = stackGet$1;
10920
+ function stackHas$1(key) {
10921
+ return this.__data__.has(key);
10922
+ }
10923
+ var _stackHas = stackHas$1;
10924
+ var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
10925
+ var _freeGlobal = freeGlobal$1;
10926
+ var freeGlobal = _freeGlobal;
10927
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
10928
+ var root$8 = freeGlobal || freeSelf || Function("return this")();
10929
+ var _root = root$8;
10930
+ var root$7 = _root;
10931
+ var Symbol$4 = root$7.Symbol;
10932
+ var _Symbol = Symbol$4;
10933
+ var Symbol$3 = _Symbol;
10934
+ var objectProto$c = Object.prototype;
10935
+ var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
10936
+ var nativeObjectToString$1 = objectProto$c.toString;
10937
+ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
10938
+ function getRawTag$1(value) {
10939
+ var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
10940
+ try {
10941
+ value[symToStringTag$1] = void 0;
10942
+ var unmasked = true;
10943
+ } catch (e) {
10944
+ }
10945
+ var result = nativeObjectToString$1.call(value);
10946
+ if (unmasked) {
10947
+ if (isOwn) {
10948
+ value[symToStringTag$1] = tag;
10949
+ } else {
10950
+ delete value[symToStringTag$1];
10951
+ }
10952
+ }
10953
+ return result;
10954
+ }
10955
+ var _getRawTag = getRawTag$1;
10956
+ var objectProto$b = Object.prototype;
10957
+ var nativeObjectToString = objectProto$b.toString;
10958
+ function objectToString$1(value) {
10959
+ return nativeObjectToString.call(value);
10960
+ }
10961
+ var _objectToString = objectToString$1;
10962
+ var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
10963
+ var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
10964
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
10965
+ function baseGetTag$4(value) {
10966
+ if (value == null) {
10967
+ return value === void 0 ? undefinedTag : nullTag;
10968
+ }
10969
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
10970
+ }
10971
+ var _baseGetTag = baseGetTag$4;
10972
+ function isObject$5(value) {
10973
+ var type = typeof value;
10974
+ return value != null && (type == "object" || type == "function");
10975
+ }
10976
+ var isObject_1 = isObject$5;
10977
+ var baseGetTag$3 = _baseGetTag, isObject$4 = isObject_1;
10978
+ var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
10979
+ function isFunction$2(value) {
10980
+ if (!isObject$4(value)) {
10981
+ return false;
10982
+ }
10983
+ var tag = baseGetTag$3(value);
10984
+ return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
10985
+ }
10986
+ var isFunction_1 = isFunction$2;
10987
+ var root$6 = _root;
10988
+ var coreJsData$1 = root$6["__core-js_shared__"];
10989
+ var _coreJsData = coreJsData$1;
10990
+ var coreJsData = _coreJsData;
10991
+ var maskSrcKey = function() {
10992
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
10993
+ return uid ? "Symbol(src)_1." + uid : "";
10994
+ }();
10995
+ function isMasked$1(func) {
10996
+ return !!maskSrcKey && maskSrcKey in func;
10997
+ }
10998
+ var _isMasked = isMasked$1;
10999
+ var funcProto$1 = Function.prototype;
11000
+ var funcToString$1 = funcProto$1.toString;
11001
+ function toSource$2(func) {
11002
+ if (func != null) {
11003
+ try {
11004
+ return funcToString$1.call(func);
11005
+ } catch (e) {
11006
+ }
11007
+ try {
11008
+ return func + "";
11009
+ } catch (e) {
11010
+ }
11011
+ }
11012
+ return "";
11013
+ }
11014
+ var _toSource = toSource$2;
11015
+ var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource;
11016
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
11017
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
11018
+ var funcProto = Function.prototype, objectProto$a = Object.prototype;
11019
+ var funcToString = funcProto.toString;
11020
+ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
11021
+ var reIsNative = RegExp(
11022
+ "^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
11023
+ );
11024
+ function baseIsNative$1(value) {
11025
+ if (!isObject$3(value) || isMasked(value)) {
11026
+ return false;
11027
+ }
11028
+ var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
11029
+ return pattern.test(toSource$1(value));
11030
+ }
11031
+ var _baseIsNative = baseIsNative$1;
11032
+ function getValue$1(object, key) {
11033
+ return object == null ? void 0 : object[key];
11034
+ }
11035
+ var _getValue = getValue$1;
11036
+ var baseIsNative = _baseIsNative, getValue = _getValue;
11037
+ function getNative$7(object, key) {
11038
+ var value = getValue(object, key);
11039
+ return baseIsNative(value) ? value : void 0;
11040
+ }
11041
+ var _getNative = getNative$7;
11042
+ var getNative$6 = _getNative, root$5 = _root;
11043
+ var Map$3 = getNative$6(root$5, "Map");
11044
+ var _Map = Map$3;
11045
+ var getNative$5 = _getNative;
11046
+ var nativeCreate$4 = getNative$5(Object, "create");
11047
+ var _nativeCreate = nativeCreate$4;
11048
+ var nativeCreate$3 = _nativeCreate;
11049
+ function hashClear$1() {
11050
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
11051
+ this.size = 0;
11052
+ }
11053
+ var _hashClear = hashClear$1;
11054
+ function hashDelete$1(key) {
11055
+ var result = this.has(key) && delete this.__data__[key];
11056
+ this.size -= result ? 1 : 0;
11057
+ return result;
11058
+ }
11059
+ var _hashDelete = hashDelete$1;
11060
+ var nativeCreate$2 = _nativeCreate;
11061
+ var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
11062
+ var objectProto$9 = Object.prototype;
11063
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
11064
+ function hashGet$1(key) {
11065
+ var data = this.__data__;
11066
+ if (nativeCreate$2) {
11067
+ var result = data[key];
11068
+ return result === HASH_UNDEFINED$1 ? void 0 : result;
11069
+ }
11070
+ return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
11071
+ }
11072
+ var _hashGet = hashGet$1;
11073
+ var nativeCreate$1 = _nativeCreate;
11074
+ var objectProto$8 = Object.prototype;
11075
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
11076
+ function hashHas$1(key) {
11077
+ var data = this.__data__;
11078
+ return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
11079
+ }
11080
+ var _hashHas = hashHas$1;
11081
+ var nativeCreate = _nativeCreate;
11082
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
11083
+ function hashSet$1(key, value) {
11084
+ var data = this.__data__;
11085
+ this.size += this.has(key) ? 0 : 1;
11086
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
11087
+ return this;
11088
+ }
11089
+ var _hashSet = hashSet$1;
11090
+ var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
11091
+ function Hash$1(entries) {
11092
+ var index = -1, length = entries == null ? 0 : entries.length;
11093
+ this.clear();
11094
+ while (++index < length) {
11095
+ var entry = entries[index];
11096
+ this.set(entry[0], entry[1]);
11097
+ }
11098
+ }
11099
+ Hash$1.prototype.clear = hashClear;
11100
+ Hash$1.prototype["delete"] = hashDelete;
11101
+ Hash$1.prototype.get = hashGet;
11102
+ Hash$1.prototype.has = hashHas;
11103
+ Hash$1.prototype.set = hashSet;
11104
+ var _Hash = Hash$1;
11105
+ var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
11106
+ function mapCacheClear$1() {
11107
+ this.size = 0;
11108
+ this.__data__ = {
11109
+ "hash": new Hash(),
11110
+ "map": new (Map$2 || ListCache$2)(),
11111
+ "string": new Hash()
11112
+ };
11113
+ }
11114
+ var _mapCacheClear = mapCacheClear$1;
11115
+ function isKeyable$1(value) {
11116
+ var type = typeof value;
11117
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
11118
+ }
11119
+ var _isKeyable = isKeyable$1;
11120
+ var isKeyable = _isKeyable;
11121
+ function getMapData$4(map, key) {
11122
+ var data = map.__data__;
11123
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
11124
+ }
11125
+ var _getMapData = getMapData$4;
11126
+ var getMapData$3 = _getMapData;
11127
+ function mapCacheDelete$1(key) {
11128
+ var result = getMapData$3(this, key)["delete"](key);
11129
+ this.size -= result ? 1 : 0;
11130
+ return result;
11131
+ }
11132
+ var _mapCacheDelete = mapCacheDelete$1;
11133
+ var getMapData$2 = _getMapData;
11134
+ function mapCacheGet$1(key) {
11135
+ return getMapData$2(this, key).get(key);
11136
+ }
11137
+ var _mapCacheGet = mapCacheGet$1;
11138
+ var getMapData$1 = _getMapData;
11139
+ function mapCacheHas$1(key) {
11140
+ return getMapData$1(this, key).has(key);
11141
+ }
11142
+ var _mapCacheHas = mapCacheHas$1;
11143
+ var getMapData = _getMapData;
11144
+ function mapCacheSet$1(key, value) {
11145
+ var data = getMapData(this, key), size = data.size;
11146
+ data.set(key, value);
11147
+ this.size += data.size == size ? 0 : 1;
11148
+ return this;
11149
+ }
11150
+ var _mapCacheSet = mapCacheSet$1;
11151
+ var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
11152
+ function MapCache$1(entries) {
11153
+ var index = -1, length = entries == null ? 0 : entries.length;
11154
+ this.clear();
11155
+ while (++index < length) {
11156
+ var entry = entries[index];
11157
+ this.set(entry[0], entry[1]);
11158
+ }
11159
+ }
11160
+ MapCache$1.prototype.clear = mapCacheClear;
11161
+ MapCache$1.prototype["delete"] = mapCacheDelete;
11162
+ MapCache$1.prototype.get = mapCacheGet;
11163
+ MapCache$1.prototype.has = mapCacheHas;
11164
+ MapCache$1.prototype.set = mapCacheSet;
11165
+ var _MapCache = MapCache$1;
11166
+ var ListCache$1 = _ListCache, Map$1 = _Map, MapCache = _MapCache;
11167
+ var LARGE_ARRAY_SIZE = 200;
11168
+ function stackSet$1(key, value) {
11169
+ var data = this.__data__;
11170
+ if (data instanceof ListCache$1) {
11171
+ var pairs = data.__data__;
11172
+ if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
11173
+ pairs.push([key, value]);
11174
+ this.size = ++data.size;
11175
+ return this;
11176
+ }
11177
+ data = this.__data__ = new MapCache(pairs);
11178
+ }
11179
+ data.set(key, value);
11180
+ this.size = data.size;
11181
+ return this;
11182
+ }
11183
+ var _stackSet = stackSet$1;
11184
+ var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
11185
+ function Stack$1(entries) {
11186
+ var data = this.__data__ = new ListCache(entries);
11187
+ this.size = data.size;
11188
+ }
11189
+ Stack$1.prototype.clear = stackClear;
11190
+ Stack$1.prototype["delete"] = stackDelete;
11191
+ Stack$1.prototype.get = stackGet;
11192
+ Stack$1.prototype.has = stackHas;
11193
+ Stack$1.prototype.set = stackSet;
11194
+ var _Stack = Stack$1;
11195
+ function arrayEach$1(array, iteratee) {
11196
+ var index = -1, length = array == null ? 0 : array.length;
11197
+ while (++index < length) {
11198
+ if (iteratee(array[index], index, array) === false) {
11199
+ break;
11200
+ }
11201
+ }
11202
+ return array;
11203
+ }
11204
+ var _arrayEach = arrayEach$1;
11205
+ var getNative$4 = _getNative;
11206
+ var defineProperty$1 = function() {
11207
+ try {
11208
+ var func = getNative$4(Object, "defineProperty");
11209
+ func({}, "", {});
11210
+ return func;
11211
+ } catch (e) {
11212
+ }
11213
+ }();
11214
+ var _defineProperty = defineProperty$1;
11215
+ var defineProperty = _defineProperty;
11216
+ function baseAssignValue$2(object, key, value) {
11217
+ if (key == "__proto__" && defineProperty) {
11218
+ defineProperty(object, key, {
11219
+ "configurable": true,
11220
+ "enumerable": true,
11221
+ "value": value,
11222
+ "writable": true
11223
+ });
11224
+ } else {
11225
+ object[key] = value;
11226
+ }
11227
+ }
11228
+ var _baseAssignValue = baseAssignValue$2;
11229
+ var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
11230
+ var objectProto$7 = Object.prototype;
11231
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
11232
+ function assignValue$2(object, key, value) {
11233
+ var objValue = object[key];
11234
+ if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
11235
+ baseAssignValue$1(object, key, value);
11236
+ }
11237
+ }
11238
+ var _assignValue = assignValue$2;
11239
+ var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
11240
+ function copyObject$4(source, props, object, customizer) {
11241
+ var isNew = !object;
11242
+ object || (object = {});
11243
+ var index = -1, length = props.length;
11244
+ while (++index < length) {
11245
+ var key = props[index];
11246
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
11247
+ if (newValue === void 0) {
11248
+ newValue = source[key];
11249
+ }
11250
+ if (isNew) {
11251
+ baseAssignValue(object, key, newValue);
11252
+ } else {
11253
+ assignValue$1(object, key, newValue);
11254
+ }
11255
+ }
11256
+ return object;
11257
+ }
11258
+ var _copyObject = copyObject$4;
11259
+ function baseTimes$1(n, iteratee) {
11260
+ var index = -1, result = Array(n);
11261
+ while (++index < n) {
11262
+ result[index] = iteratee(index);
11263
+ }
11264
+ return result;
11265
+ }
11266
+ var _baseTimes = baseTimes$1;
11267
+ function isObjectLike$5(value) {
11268
+ return value != null && typeof value == "object";
11269
+ }
11270
+ var isObjectLike_1 = isObjectLike$5;
11271
+ var baseGetTag$2 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
11272
+ var argsTag$2 = "[object Arguments]";
11273
+ function baseIsArguments$1(value) {
11274
+ return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$2;
11275
+ }
11276
+ var _baseIsArguments = baseIsArguments$1;
11277
+ var baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1;
11278
+ var objectProto$6 = Object.prototype;
11279
+ var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
11280
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
11281
+ var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
11282
+ return arguments;
11283
+ }()) ? baseIsArguments : function(value) {
11284
+ return isObjectLike$3(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
11285
+ };
11286
+ var isArguments_1 = isArguments$1;
11287
+ var isArray$3 = Array.isArray;
11288
+ var isArray_1 = isArray$3;
11289
+ var isBuffer$2 = { exports: {} };
11290
+ function stubFalse() {
11291
+ return false;
11292
+ }
11293
+ var stubFalse_1 = stubFalse;
11294
+ isBuffer$2.exports;
11295
+ (function(module, exports) {
11296
+ var root2 = _root, stubFalse2 = stubFalse_1;
11297
+ var freeExports = exports && !exports.nodeType && exports;
11298
+ var freeModule = freeExports && true && module && !module.nodeType && module;
11299
+ var moduleExports = freeModule && freeModule.exports === freeExports;
11300
+ var Buffer = moduleExports ? root2.Buffer : void 0;
11301
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
11302
+ var isBuffer2 = nativeIsBuffer || stubFalse2;
11303
+ module.exports = isBuffer2;
11304
+ })(isBuffer$2, isBuffer$2.exports);
11305
+ var isBufferExports = isBuffer$2.exports;
11306
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
11307
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
11308
+ function isIndex$1(value, length) {
11309
+ var type = typeof value;
11310
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
11311
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
11312
+ }
11313
+ var _isIndex = isIndex$1;
11314
+ var MAX_SAFE_INTEGER = 9007199254740991;
11315
+ function isLength$2(value) {
11316
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
11317
+ }
11318
+ var isLength_1 = isLength$2;
11319
+ var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$2 = isObjectLike_1;
11320
+ var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
11321
+ var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
11322
+ var typedArrayTags = {};
11323
+ typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
11324
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
11325
+ function baseIsTypedArray$1(value) {
11326
+ return isObjectLike$2(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
11327
+ }
11328
+ var _baseIsTypedArray = baseIsTypedArray$1;
11329
+ function baseUnary$3(func) {
11330
+ return function(value) {
11331
+ return func(value);
11332
+ };
11333
+ }
11334
+ var _baseUnary = baseUnary$3;
11335
+ var _nodeUtil = { exports: {} };
11336
+ _nodeUtil.exports;
11337
+ (function(module, exports) {
11338
+ var freeGlobal2 = _freeGlobal;
11339
+ var freeExports = exports && !exports.nodeType && exports;
11340
+ var freeModule = freeExports && true && module && !module.nodeType && module;
11341
+ var moduleExports = freeModule && freeModule.exports === freeExports;
11342
+ var freeProcess = moduleExports && freeGlobal2.process;
11343
+ var nodeUtil2 = function() {
11344
+ try {
11345
+ var types = freeModule && freeModule.require && freeModule.require("util").types;
11346
+ if (types) {
11347
+ return types;
11348
+ }
11349
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
11350
+ } catch (e) {
11351
+ }
11352
+ }();
11353
+ module.exports = nodeUtil2;
11354
+ })(_nodeUtil, _nodeUtil.exports);
11355
+ var _nodeUtilExports = _nodeUtil.exports;
11356
+ var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
11357
+ var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
11358
+ var isTypedArray$1 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
11359
+ var isTypedArray_1 = isTypedArray$1;
11360
+ var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$2 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
11361
+ var objectProto$5 = Object.prototype;
11362
+ var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
11363
+ function arrayLikeKeys$2(value, inherited) {
11364
+ var isArr = isArray$2(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
11365
+ for (var key in value) {
11366
+ if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
11367
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
11368
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
11369
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
11370
+ isIndex(key, length)))) {
11371
+ result.push(key);
11372
+ }
11373
+ }
11374
+ return result;
11375
+ }
11376
+ var _arrayLikeKeys = arrayLikeKeys$2;
11377
+ var objectProto$4 = Object.prototype;
11378
+ function isPrototype$3(value) {
11379
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$4;
11380
+ return value === proto;
11381
+ }
11382
+ var _isPrototype = isPrototype$3;
11383
+ function overArg$2(func, transform) {
11384
+ return function(arg) {
11385
+ return func(transform(arg));
11386
+ };
11387
+ }
11388
+ var _overArg = overArg$2;
11389
+ var overArg$1 = _overArg;
11390
+ var nativeKeys$1 = overArg$1(Object.keys, Object);
11391
+ var _nativeKeys = nativeKeys$1;
11392
+ var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
11393
+ var objectProto$3 = Object.prototype;
11394
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
11395
+ function baseKeys$1(object) {
11396
+ if (!isPrototype$2(object)) {
11397
+ return nativeKeys(object);
11398
+ }
11399
+ var result = [];
11400
+ for (var key in Object(object)) {
11401
+ if (hasOwnProperty$2.call(object, key) && key != "constructor") {
11402
+ result.push(key);
11403
+ }
11404
+ }
11405
+ return result;
11406
+ }
11407
+ var _baseKeys = baseKeys$1;
11408
+ var isFunction = isFunction_1, isLength = isLength_1;
11409
+ function isArrayLike$2(value) {
11410
+ return value != null && isLength(value.length) && !isFunction(value);
11411
+ }
11412
+ var isArrayLike_1 = isArrayLike$2;
11413
+ var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
11414
+ function keys$3(object) {
11415
+ return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
11416
+ }
11417
+ var keys_1 = keys$3;
11418
+ var copyObject$3 = _copyObject, keys$2 = keys_1;
11419
+ function baseAssign$1(object, source) {
11420
+ return object && copyObject$3(source, keys$2(source), object);
11421
+ }
11422
+ var _baseAssign = baseAssign$1;
11423
+ function nativeKeysIn$1(object) {
11424
+ var result = [];
11425
+ if (object != null) {
11426
+ for (var key in Object(object)) {
11427
+ result.push(key);
11428
+ }
11429
+ }
11430
+ return result;
11431
+ }
11432
+ var _nativeKeysIn = nativeKeysIn$1;
11433
+ var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
11434
+ var objectProto$2 = Object.prototype;
11435
+ var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
11436
+ function baseKeysIn$1(object) {
11437
+ if (!isObject$2(object)) {
11438
+ return nativeKeysIn(object);
11439
+ }
11440
+ var isProto = isPrototype$1(object), result = [];
11441
+ for (var key in object) {
11442
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
11443
+ result.push(key);
11444
+ }
11445
+ }
11446
+ return result;
11447
+ }
11448
+ var _baseKeysIn = baseKeysIn$1;
11449
+ var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
11450
+ function keysIn$3(object) {
11451
+ return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
11452
+ }
11453
+ var keysIn_1 = keysIn$3;
11454
+ var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
11455
+ function baseAssignIn$1(object, source) {
11456
+ return object && copyObject$2(source, keysIn$2(source), object);
11457
+ }
11458
+ var _baseAssignIn = baseAssignIn$1;
11459
+ var _cloneBuffer = { exports: {} };
11460
+ _cloneBuffer.exports;
11461
+ (function(module, exports) {
11462
+ var root2 = _root;
11463
+ var freeExports = exports && !exports.nodeType && exports;
11464
+ var freeModule = freeExports && true && module && !module.nodeType && module;
11465
+ var moduleExports = freeModule && freeModule.exports === freeExports;
11466
+ var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
11467
+ function cloneBuffer2(buffer, isDeep) {
11468
+ if (isDeep) {
11469
+ return buffer.slice();
11470
+ }
11471
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
11472
+ buffer.copy(result);
11473
+ return result;
11474
+ }
11475
+ module.exports = cloneBuffer2;
11476
+ })(_cloneBuffer, _cloneBuffer.exports);
11477
+ var _cloneBufferExports = _cloneBuffer.exports;
11478
+ function copyArray$1(source, array) {
11479
+ var index = -1, length = source.length;
11480
+ array || (array = Array(length));
11481
+ while (++index < length) {
11482
+ array[index] = source[index];
11483
+ }
11484
+ return array;
11485
+ }
11486
+ var _copyArray = copyArray$1;
11487
+ function arrayFilter$1(array, predicate) {
11488
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
11489
+ while (++index < length) {
11490
+ var value = array[index];
11491
+ if (predicate(value, index, array)) {
11492
+ result[resIndex++] = value;
11493
+ }
11494
+ }
11495
+ return result;
11496
+ }
11497
+ var _arrayFilter = arrayFilter$1;
11498
+ function stubArray$2() {
11499
+ return [];
11500
+ }
11501
+ var stubArray_1 = stubArray$2;
11502
+ var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
11503
+ var objectProto$1 = Object.prototype;
11504
+ var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
11505
+ var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
11506
+ var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
11507
+ if (object == null) {
11508
+ return [];
11509
+ }
11510
+ object = Object(object);
11511
+ return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
11512
+ return propertyIsEnumerable.call(object, symbol);
11513
+ });
11514
+ };
11515
+ var _getSymbols = getSymbols$3;
11516
+ var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
11517
+ function copySymbols$1(source, object) {
11518
+ return copyObject$1(source, getSymbols$2(source), object);
11519
+ }
11520
+ var _copySymbols = copySymbols$1;
11521
+ function arrayPush$2(array, values) {
11522
+ var index = -1, length = values.length, offset = array.length;
11523
+ while (++index < length) {
11524
+ array[offset + index] = values[index];
11525
+ }
11526
+ return array;
11527
+ }
11528
+ var _arrayPush = arrayPush$2;
11529
+ var overArg = _overArg;
11530
+ var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
11531
+ var _getPrototype = getPrototype$2;
11532
+ var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
11533
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
11534
+ var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
11535
+ var result = [];
11536
+ while (object) {
11537
+ arrayPush$1(result, getSymbols$1(object));
11538
+ object = getPrototype$1(object);
11539
+ }
11540
+ return result;
11541
+ };
11542
+ var _getSymbolsIn = getSymbolsIn$2;
11543
+ var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
11544
+ function copySymbolsIn$1(source, object) {
11545
+ return copyObject(source, getSymbolsIn$1(source), object);
11546
+ }
11547
+ var _copySymbolsIn = copySymbolsIn$1;
11548
+ var arrayPush = _arrayPush, isArray$1 = isArray_1;
11549
+ function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
11550
+ var result = keysFunc(object);
11551
+ return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
11552
+ }
11553
+ var _baseGetAllKeys = baseGetAllKeys$2;
11554
+ var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
11555
+ function getAllKeys$1(object) {
11556
+ return baseGetAllKeys$1(object, keys$1, getSymbols);
11557
+ }
11558
+ var _getAllKeys = getAllKeys$1;
11559
+ var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
11560
+ function getAllKeysIn$1(object) {
11561
+ return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
11562
+ }
11563
+ var _getAllKeysIn = getAllKeysIn$1;
11564
+ var getNative$3 = _getNative, root$4 = _root;
11565
+ var DataView$1 = getNative$3(root$4, "DataView");
11566
+ var _DataView = DataView$1;
11567
+ var getNative$2 = _getNative, root$3 = _root;
11568
+ var Promise$2 = getNative$2(root$3, "Promise");
11569
+ var _Promise = Promise$2;
11570
+ var getNative$1 = _getNative, root$2 = _root;
11571
+ var Set$1 = getNative$1(root$2, "Set");
11572
+ var _Set = Set$1;
11573
+ var getNative = _getNative, root$1 = _root;
11574
+ var WeakMap$1 = getNative(root$1, "WeakMap");
11575
+ var _WeakMap = WeakMap$1;
11576
+ var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
11577
+ var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
11578
+ var dataViewTag$2 = "[object DataView]";
11579
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
11580
+ var getTag$3 = baseGetTag;
11581
+ if (DataView && getTag$3(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag$3(new Map()) != mapTag$3 || Promise$1 && getTag$3(Promise$1.resolve()) != promiseTag || Set && getTag$3(new Set()) != setTag$3 || WeakMap && getTag$3(new WeakMap()) != weakMapTag$1) {
11582
+ getTag$3 = function(value) {
11583
+ var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
11584
+ if (ctorString) {
11585
+ switch (ctorString) {
11586
+ case dataViewCtorString:
11587
+ return dataViewTag$2;
11588
+ case mapCtorString:
11589
+ return mapTag$3;
11590
+ case promiseCtorString:
11591
+ return promiseTag;
11592
+ case setCtorString:
11593
+ return setTag$3;
11594
+ case weakMapCtorString:
11595
+ return weakMapTag$1;
11596
+ }
11597
+ }
11598
+ return result;
11599
+ };
11600
+ }
11601
+ var _getTag = getTag$3;
11602
+ var objectProto = Object.prototype;
11603
+ var hasOwnProperty = objectProto.hasOwnProperty;
11604
+ function initCloneArray$1(array) {
11605
+ var length = array.length, result = new array.constructor(length);
11606
+ if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
11607
+ result.index = array.index;
11608
+ result.input = array.input;
11609
+ }
11610
+ return result;
11611
+ }
11612
+ var _initCloneArray = initCloneArray$1;
11613
+ var root = _root;
11614
+ var Uint8Array$1 = root.Uint8Array;
11615
+ var _Uint8Array = Uint8Array$1;
11616
+ var Uint8Array = _Uint8Array;
11617
+ function cloneArrayBuffer$3(arrayBuffer) {
11618
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
11619
+ new Uint8Array(result).set(new Uint8Array(arrayBuffer));
11620
+ return result;
11621
+ }
11622
+ var _cloneArrayBuffer = cloneArrayBuffer$3;
11623
+ var cloneArrayBuffer$2 = _cloneArrayBuffer;
11624
+ function cloneDataView$1(dataView, isDeep) {
11625
+ var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
11626
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
11627
+ }
11628
+ var _cloneDataView = cloneDataView$1;
11629
+ var reFlags = /\w*$/;
11630
+ function cloneRegExp$1(regexp) {
11631
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
11632
+ result.lastIndex = regexp.lastIndex;
11633
+ return result;
11634
+ }
11635
+ var _cloneRegExp = cloneRegExp$1;
11636
+ var Symbol$1 = _Symbol;
11637
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
11638
+ function cloneSymbol$1(symbol) {
11639
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
11640
+ }
11641
+ var _cloneSymbol = cloneSymbol$1;
11642
+ var cloneArrayBuffer$1 = _cloneArrayBuffer;
11643
+ function cloneTypedArray$1(typedArray, isDeep) {
11644
+ var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
11645
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
11646
+ }
11647
+ var _cloneTypedArray = cloneTypedArray$1;
11648
+ var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
11649
+ var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
11650
+ var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
11651
+ function initCloneByTag$1(object, tag, isDeep) {
11652
+ var Ctor = object.constructor;
11653
+ switch (tag) {
11654
+ case arrayBufferTag$1:
11655
+ return cloneArrayBuffer(object);
11656
+ case boolTag$1:
11657
+ case dateTag$1:
11658
+ return new Ctor(+object);
11659
+ case dataViewTag$1:
11660
+ return cloneDataView(object, isDeep);
11661
+ case float32Tag$1:
11662
+ case float64Tag$1:
11663
+ case int8Tag$1:
11664
+ case int16Tag$1:
11665
+ case int32Tag$1:
11666
+ case uint8Tag$1:
11667
+ case uint8ClampedTag$1:
11668
+ case uint16Tag$1:
11669
+ case uint32Tag$1:
11670
+ return cloneTypedArray(object, isDeep);
11671
+ case mapTag$2:
11672
+ return new Ctor();
11673
+ case numberTag$1:
11674
+ case stringTag$1:
11675
+ return new Ctor(object);
11676
+ case regexpTag$1:
11677
+ return cloneRegExp(object);
11678
+ case setTag$2:
11679
+ return new Ctor();
11680
+ case symbolTag$1:
11681
+ return cloneSymbol(object);
11682
+ }
11683
+ }
11684
+ var _initCloneByTag = initCloneByTag$1;
11685
+ var isObject$1 = isObject_1;
11686
+ var objectCreate = Object.create;
11687
+ var baseCreate$1 = /* @__PURE__ */ function() {
11688
+ function object() {
11689
+ }
11690
+ return function(proto) {
11691
+ if (!isObject$1(proto)) {
11692
+ return {};
11693
+ }
11694
+ if (objectCreate) {
11695
+ return objectCreate(proto);
11696
+ }
11697
+ object.prototype = proto;
11698
+ var result = new object();
11699
+ object.prototype = void 0;
11700
+ return result;
11701
+ };
11702
+ }();
11703
+ var _baseCreate = baseCreate$1;
11704
+ var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
11705
+ function initCloneObject$1(object) {
11706
+ return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
11707
+ }
11708
+ var _initCloneObject = initCloneObject$1;
11709
+ var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
11710
+ var mapTag$1 = "[object Map]";
11711
+ function baseIsMap$1(value) {
11712
+ return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
11713
+ }
11714
+ var _baseIsMap = baseIsMap$1;
11715
+ var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
11716
+ var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
11717
+ var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
11718
+ var isMap_1 = isMap$1;
11719
+ var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
11720
+ var setTag$1 = "[object Set]";
11721
+ function baseIsSet$1(value) {
11722
+ return isObjectLike(value) && getTag$1(value) == setTag$1;
11723
+ }
11724
+ var _baseIsSet = baseIsSet$1;
11725
+ var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
11726
+ var nodeIsSet = nodeUtil && nodeUtil.isSet;
11727
+ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
11728
+ var isSet_1 = isSet$1;
11729
+ var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBufferExports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBufferExports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
11730
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
11731
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
11732
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
11733
+ var cloneableTags = {};
11734
+ cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
11735
+ cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
11736
+ function baseClone$1(value, bitmask, customizer, key, object, stack) {
11737
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
11738
+ if (customizer) {
11739
+ result = object ? customizer(value, key, object, stack) : customizer(value);
11740
+ }
11741
+ if (result !== void 0) {
11742
+ return result;
11743
+ }
11744
+ if (!isObject(value)) {
11745
+ return value;
11746
+ }
11747
+ var isArr = isArray(value);
11748
+ if (isArr) {
11749
+ result = initCloneArray(value);
11750
+ if (!isDeep) {
11751
+ return copyArray(value, result);
11752
+ }
11753
+ } else {
11754
+ var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
11755
+ if (isBuffer(value)) {
11756
+ return cloneBuffer(value, isDeep);
11757
+ }
11758
+ if (tag == objectTag || tag == argsTag || isFunc && !object) {
11759
+ result = isFlat || isFunc ? {} : initCloneObject(value);
11760
+ if (!isDeep) {
11761
+ return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
11762
+ }
11763
+ } else {
11764
+ if (!cloneableTags[tag]) {
11765
+ return object ? value : {};
11766
+ }
11767
+ result = initCloneByTag(value, tag, isDeep);
11768
+ }
11769
+ }
11770
+ stack || (stack = new Stack());
11771
+ var stacked = stack.get(value);
11772
+ if (stacked) {
11773
+ return stacked;
11774
+ }
11775
+ stack.set(value, result);
11776
+ if (isSet(value)) {
11777
+ value.forEach(function(subValue) {
11778
+ result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
11779
+ });
11780
+ } else if (isMap(value)) {
11781
+ value.forEach(function(subValue, key2) {
11782
+ result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
11783
+ });
11784
+ }
11785
+ var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
11786
+ var props = isArr ? void 0 : keysFunc(value);
11787
+ arrayEach(props || value, function(subValue, key2) {
11788
+ if (props) {
11789
+ key2 = subValue;
11790
+ subValue = value[key2];
11791
+ }
11792
+ assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
11793
+ });
11794
+ return result;
11795
+ }
11796
+ var _baseClone = baseClone$1;
11797
+ var baseClone = _baseClone;
11798
+ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
11799
+ function cloneDeep(value) {
11800
+ return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
11801
+ }
11802
+ var cloneDeep_1 = cloneDeep;
11803
+ const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
10798
11804
  const Navigation = () => {
10799
11805
  const [navigations, setNavigations] = useState([]);
10800
11806
  const [modalType, setModalType] = useState("");
10801
11807
  const [selectedNavigation, setSelectedNavigation] = useState();
10802
11808
  const [navigationItems, setNavigationItems] = useState();
10803
- const [initialNavigationItems, setInitialNavigationItems] = useState();
11809
+ const initialNavigationItemsRef = useRef(null);
10804
11810
  const [actionItem, setActionItem] = useState();
10805
11811
  const [parentId, setParentId] = useState();
10806
11812
  const { getNavigation, updateNavigationItemStructure } = useApi();
10807
11813
  const [isSavingNavigation, setIsSavingNavigation] = useState(false);
10808
- const [loading, setLoading] = useState(false);
11814
+ const [loading, setLoading] = useState(true);
11815
+ const cachedNavigations = useRef(null);
10809
11816
  const [projected, setProjected] = useState(null);
10810
11817
  const [activeItem, setActiveItem] = useState();
10811
11818
  const [activeId, setActiveId] = useState(null);
@@ -10814,6 +11821,8 @@ const Navigation = () => {
10814
11821
  const { formatMessage } = useIntl();
10815
11822
  const { toggleNotification } = useNotification();
10816
11823
  const { get } = useFetchClient();
11824
+ const { navigationId } = useParams();
11825
+ const navigate = useNavigate();
10817
11826
  async function loadNavigations() {
10818
11827
  try {
10819
11828
  const data = await getNavigation({ variant: "flat" });
@@ -10836,8 +11845,21 @@ const Navigation = () => {
10836
11845
  return { ...nav, items: updatedItems };
10837
11846
  })
10838
11847
  );
10839
- setNavigations(updatedNavigations);
10840
- setSelectedNavigation(updatedNavigations[0]);
11848
+ let selectedNav = updatedNavigations.find((nav) => nav.documentId === navigationId);
11849
+ if (!selectedNav && navigationId) {
11850
+ selectedNav = updatedNavigations[0];
11851
+ toggleNotification({
11852
+ type: "danger",
11853
+ message: formatMessage({
11854
+ id: getTranslation("notification.navigation.notFound"),
11855
+ defaultMessage: "Navigation not found. Redirected to navigation"
11856
+ }) + ": " + updatedNavigations[0]?.name
11857
+ });
11858
+ navigate(`/plugins/webatlas/navigation/${updatedNavigations[0]?.documentId}`);
11859
+ return;
11860
+ }
11861
+ cachedNavigations.current = updatedNavigations;
11862
+ switchNavigation(selectedNav, updatedNavigations);
10841
11863
  } catch (error) {
10842
11864
  console.error("Error fetching navigations: ", error);
10843
11865
  toggleNotification({
@@ -10849,28 +11871,39 @@ const Navigation = () => {
10849
11871
  });
10850
11872
  }
10851
11873
  }
11874
+ function switchNavigation(selectedNav, updatedNavigations) {
11875
+ setNavigations(updatedNavigations);
11876
+ setSelectedNavigation(selectedNav);
11877
+ setNavigationItems(selectedNav.items || []);
11878
+ initialNavigationItemsRef.current = cloneDeep$1(selectedNav.items) || null;
11879
+ }
10852
11880
  useEffect(() => {
10853
11881
  async function fetchNavigations() {
11882
+ if (!navigationId) {
11883
+ const navs = await getNavigation({ variant: "namesOnly" });
11884
+ if (navs && navs.length > 0) {
11885
+ navigate(`/plugins/webatlas/navigation/${navs[0].documentId}`);
11886
+ }
11887
+ return;
11888
+ }
11889
+ if (cachedNavigations.current) {
11890
+ const selectedNav = cachedNavigations.current.find((nav) => nav.documentId === navigationId);
11891
+ selectedNav && switchNavigation(selectedNav, cachedNavigations.current);
11892
+ setLoading(false);
11893
+ return;
11894
+ }
10854
11895
  setLoading(true);
10855
11896
  await loadNavigations();
10856
11897
  setLoading(false);
10857
11898
  }
10858
11899
  fetchNavigations();
10859
- }, []);
11900
+ }, [navigationId]);
10860
11901
  useEffect(() => {
10861
11902
  if (modalType === "NavOverview" || modalType === "") {
10862
11903
  setActionItem(void 0);
10863
11904
  setParentId(void 0);
10864
11905
  }
10865
11906
  }, [modalType]);
10866
- useEffect(() => {
10867
- setNavigationItems(selectedNavigation?.items || []);
10868
- }, [selectedNavigation]);
10869
- useEffect(() => {
10870
- if (selectedNavigation?.items && !initialNavigationItems) {
10871
- setInitialNavigationItems(navigationItems);
10872
- }
10873
- }, [navigationItems]);
10874
11907
  useEffect(() => {
10875
11908
  if (!activeId || !navigationItems) return;
10876
11909
  const item = navigationItems.find(({ id }) => id === activeId);
@@ -10915,7 +11948,7 @@ const Navigation = () => {
10915
11948
  })
10916
11949
  });
10917
11950
  } finally {
10918
- loadNavigations();
11951
+ await loadNavigations();
10919
11952
  setIsSavingNavigation(false);
10920
11953
  }
10921
11954
  }
@@ -10944,7 +11977,16 @@ const Navigation = () => {
10944
11977
  const activeTreeItem = navigationItems[activeIndex];
10945
11978
  navigationItems[activeIndex] = { ...activeTreeItem, depth };
10946
11979
  const sortedItems = arrayMove(navigationItems, activeIndex, overIndex);
10947
- setNavigationItems(sortedItems);
11980
+ const fixedItems = [...sortedItems];
11981
+ fixedItems[0].depth = 0;
11982
+ for (let i = 1; i < fixedItems.length; i++) {
11983
+ const prev = fixedItems[i - 1].depth ?? 0;
11984
+ let curr = fixedItems[i].depth ?? 0;
11985
+ if (curr < 0) curr = 0;
11986
+ if (curr > prev + 1) curr = prev + 1;
11987
+ fixedItems[i].depth = curr;
11988
+ }
11989
+ setNavigationItems(fixedItems);
10948
11990
  }
10949
11991
  }
10950
11992
  function resetState() {
@@ -10962,7 +12004,7 @@ const Navigation = () => {
10962
12004
  ) : null;
10963
12005
  setProjected(projection);
10964
12006
  }, [activeId, overId, offsetLeft, navigationItems]);
10965
- if (loading) {
12007
+ if (loading || !navigationId) {
10966
12008
  return /* @__PURE__ */ jsx(PageWrapper, { navigations, loading, children: /* @__PURE__ */ jsx(FullLoader, {}) });
10967
12009
  }
10968
12010
  return /* @__PURE__ */ jsx(ModalContext.Provider, { value: { modalType, setModalType }, children: /* @__PURE__ */ jsxs(SelectedNavigationContext.Provider, { value: { selectedNavigation, setSelectedNavigation }, children: [
@@ -10978,6 +12020,7 @@ const Navigation = () => {
10978
12020
  onClick: () => saveNavigation(),
10979
12021
  loading: isSavingNavigation,
10980
12022
  variant: "primary",
12023
+ disabled: JSON.stringify(navigationItems) === JSON.stringify(initialNavigationItemsRef.current),
10981
12024
  children: formatMessage({
10982
12025
  id: getTranslation("save"),
10983
12026
  defaultMessage: "Save"
@@ -11002,6 +12045,7 @@ const Navigation = () => {
11002
12045
  item,
11003
12046
  setParentId,
11004
12047
  setActionItem,
12048
+ setNavigationItems,
11005
12049
  indentationWidth,
11006
12050
  depth: item.id === activeId && projected ? projected.depth : item.depth
11007
12051
  },
@@ -11013,7 +12057,8 @@ const Navigation = () => {
11013
12057
  {
11014
12058
  item: activeItem,
11015
12059
  setParentId,
11016
- setActionItem
12060
+ setActionItem,
12061
+ setNavigationItems
11017
12062
  }
11018
12063
  ) : null }),
11019
12064
  document.body
@@ -11031,7 +12076,7 @@ const Navigation = () => {
11031
12076
  defaultMessage: "Create new navigation"
11032
12077
  }) })
11033
12078
  ] }),
11034
- navigationItems?.length === 0 && /* @__PURE__ */ jsxs(Center, { height: 400, children: [
12079
+ navigations && navigationItems?.length === 0 && /* @__PURE__ */ jsxs(Center, { height: 400, children: [
11035
12080
  /* @__PURE__ */ jsx(EmptyBox, { msg: "Your navigation is empty..." }),
11036
12081
  /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: () => setModalType("ItemCreate"), children: formatMessage({
11037
12082
  id: getTranslation("navigation.page.createNewItem"),
@@ -11143,6 +12188,12 @@ const Navigation = () => {
11143
12188
  )
11144
12189
  ] }) });
11145
12190
  };
12191
+ const App = () => {
12192
+ return /* @__PURE__ */ jsxs(Routes, { children: [
12193
+ /* @__PURE__ */ jsx(Route, { path: "/", element: /* @__PURE__ */ jsx(Navigation, {}) }),
12194
+ /* @__PURE__ */ jsx(Route, { path: "/:navigationId", element: /* @__PURE__ */ jsx(Navigation, {}) })
12195
+ ] });
12196
+ };
11146
12197
  export {
11147
- Navigation as default
12198
+ App as default
11148
12199
  };