@mattisvensson/strapi-plugin-webatlas 0.4.2 → 0.5.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.
- package/dist/_chunks/EmptyBox-BM4IscSk.mjs +1 -0
- package/dist/_chunks/EmptyBox-BM4IscSk.mjs.map +1 -0
- package/dist/_chunks/EmptyBox-T8t29l25.js +1 -0
- package/dist/_chunks/EmptyBox-T8t29l25.js.map +1 -0
- package/dist/_chunks/FullLoader-Cmsf8xS6.js +1 -0
- package/dist/_chunks/FullLoader-Cmsf8xS6.js.map +1 -0
- package/dist/_chunks/FullLoader-CrPED_dY.mjs +1 -0
- package/dist/_chunks/FullLoader-CrPED_dY.mjs.map +1 -0
- package/dist/_chunks/{de-Dn24NwJf.mjs → de-BkirTac9.mjs} +4 -1
- package/dist/_chunks/de-BkirTac9.mjs.map +1 -0
- package/dist/_chunks/{de-RiCps8UH.js → de-D8LMOTFI.js} +4 -1
- package/dist/_chunks/de-D8LMOTFI.js.map +1 -0
- package/dist/_chunks/{en-JLW5S3ZC.js → en-BdfmJUs8.js} +4 -1
- package/dist/_chunks/en-BdfmJUs8.js.map +1 -0
- package/dist/_chunks/{en-D9Lxaugc.mjs → en-DYbDta3m.mjs} +4 -1
- package/dist/_chunks/en-DYbDta3m.mjs.map +1 -0
- package/dist/_chunks/index-BAN8PGGJ.js +282 -0
- package/dist/_chunks/index-BAN8PGGJ.js.map +1 -0
- package/dist/_chunks/{index-Clikpy91.js → index-BOvKFOKk.js} +1663 -649
- package/dist/_chunks/{index-CiY-8z8F.js → index-BfgRvDzx.js} +1 -1
- package/dist/_chunks/index-BxnHHgGC.js +12163 -0
- package/dist/_chunks/index-BxnHHgGC.js.map +1 -0
- package/dist/_chunks/index-C5ejmUpN.mjs +12163 -0
- package/dist/_chunks/index-C5ejmUpN.mjs.map +1 -0
- package/dist/_chunks/index-CEt9P4TS.mjs +127 -0
- package/dist/_chunks/index-CEt9P4TS.mjs.map +1 -0
- package/dist/_chunks/{index-IHvD3566.js → index-CJNR2c7_.js} +1 -1
- package/dist/_chunks/{index-CSYue_D0.js → index-CJtLrSxU.js} +6 -6
- package/dist/_chunks/{index-B4pe6Yuh.mjs → index-CNfpGKSw.mjs} +1664 -650
- package/dist/_chunks/index-Ciae_OgQ.js +4177 -0
- package/dist/_chunks/index-Ciae_OgQ.js.map +1 -0
- package/dist/_chunks/{index-CtJ_9-RB.mjs → index-Ctq2vsD5.mjs} +6 -6
- package/dist/_chunks/index-CuJP8Fy7.mjs +4161 -0
- package/dist/_chunks/index-CuJP8Fy7.mjs.map +1 -0
- package/dist/_chunks/index-D4tWVnt1.js +127 -0
- package/dist/_chunks/index-D4tWVnt1.js.map +1 -0
- package/dist/_chunks/{index-CVj7qbwh.mjs → index-DTz7wDR7.mjs} +1 -1
- package/dist/_chunks/index-DtFIVZxq.mjs +282 -0
- package/dist/_chunks/index-DtFIVZxq.mjs.map +1 -0
- package/dist/_chunks/{index-9db80XRS.mjs → index-LAGFB7iO.mjs} +1 -1
- package/dist/admin/index.js +2 -1
- package/dist/admin/index.js.map +1 -0
- package/dist/admin/index.mjs +2 -1
- package/dist/admin/index.mjs.map +1 -0
- package/dist/admin/src/hooks/useApi.d.ts +1 -1
- package/dist/admin/src/pages/Navigation/Page.d.ts +2 -0
- package/dist/admin/src/pages/Navigation/index.d.ts +2 -2
- package/dist/server/index.js +13 -1
- package/dist/server/index.js.map +1 -0
- package/dist/server/index.mjs +13 -1
- package/dist/server/index.mjs.map +1 -0
- package/dist/server/src/index.d.ts +1 -1
- package/dist/server/src/services/admin.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +1 -1
- 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-
|
|
8
|
-
import { useFetchClient, Page, Layouts
|
|
8
|
+
import { u as useApi, g as getTranslation, d as debounce, a as duplicateCheck, t as transformToUrl, U as URLInfo } from "./index-Ctq2vsD5.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
|
-
|
|
224
|
-
|
|
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
|
|
354
|
+
const { selectedNavigation } = useContext(SelectedNavigationContext);
|
|
339
355
|
const { formatMessage } = useIntl();
|
|
356
|
+
const navigate = useNavigate();
|
|
340
357
|
const handleSelect = (nav) => {
|
|
341
|
-
|
|
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
|
|
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 (
|
|
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,
|
|
4145
|
-
var aryMethodKeys =
|
|
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
|
|
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 (!
|
|
4186
|
+
if (!isFunction2(func2)) {
|
|
4167
4187
|
return mixin(func2, Object(source));
|
|
4168
4188
|
}
|
|
4169
4189
|
var pairs2 = [];
|
|
4170
|
-
each(
|
|
4171
|
-
if (
|
|
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 (
|
|
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 && !(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
4832
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
|
|
4813
4833
|
var MAX_MEMOIZE_SIZE = 500;
|
|
4814
4834
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
4815
|
-
var
|
|
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,
|
|
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
|
|
4835
|
-
var
|
|
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
|
|
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
|
|
4868
|
+
var reFlags2 = /\w*$/;
|
|
4849
4869
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
4850
4870
|
var reIsBinary = /^0b[01]+$/i;
|
|
4851
|
-
var
|
|
4871
|
+
var reIsHostCtor2 = /^\[object .+?Constructor\]$/;
|
|
4852
4872
|
var reIsOctal = /^0o[0-7]+$/i;
|
|
4853
|
-
var
|
|
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
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
var
|
|
4912
|
-
|
|
4913
|
-
|
|
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
|
|
5132
|
-
var
|
|
5133
|
-
var
|
|
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 &&
|
|
5138
|
-
var
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ?
|
|
5495
|
-
var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp,
|
|
5496
|
-
var
|
|
5497
|
-
var
|
|
5498
|
-
var
|
|
5499
|
-
var
|
|
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
|
|
5502
|
-
var uid = /[^.]+$/.exec(
|
|
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
|
|
5506
|
-
var objectCtorString =
|
|
5507
|
-
var oldDash =
|
|
5508
|
-
var
|
|
5509
|
-
"^" +
|
|
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,
|
|
5512
|
-
var
|
|
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 =
|
|
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 !==
|
|
5521
|
-
var nativeCeil = Math2.ceil, nativeFloor = Math2.floor,
|
|
5522
|
-
var
|
|
5523
|
-
var metaMap =
|
|
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
|
|
5526
|
-
var
|
|
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 (
|
|
5548
|
+
if (isObjectLike2(value) && !isArray2(value) && !(value instanceof LazyWrapper)) {
|
|
5529
5549
|
if (value instanceof LodashWrapper) {
|
|
5530
5550
|
return value;
|
|
5531
5551
|
}
|
|
5532
|
-
if (
|
|
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
|
|
5558
|
+
var baseCreate2 = /* @__PURE__ */ function() {
|
|
5539
5559
|
function object() {
|
|
5540
5560
|
}
|
|
5541
5561
|
return function(proto) {
|
|
5542
|
-
if (!
|
|
5562
|
+
if (!isObject2(proto)) {
|
|
5543
5563
|
return {};
|
|
5544
5564
|
}
|
|
5545
|
-
if (
|
|
5546
|
-
return
|
|
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 =
|
|
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__ =
|
|
5643
|
+
result2.__actions__ = copyArray2(this.__actions__);
|
|
5624
5644
|
result2.__dir__ = this.__dir__;
|
|
5625
5645
|
result2.__filtered__ = this.__filtered__;
|
|
5626
|
-
result2.__iteratees__ =
|
|
5646
|
+
result2.__iteratees__ = copyArray2(this.__iteratees__);
|
|
5627
5647
|
result2.__takeCount__ = this.__takeCount__;
|
|
5628
|
-
result2.__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 =
|
|
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 =
|
|
5688
|
+
LazyWrapper.prototype = baseCreate2(baseLodash.prototype);
|
|
5669
5689
|
LazyWrapper.prototype.constructor = LazyWrapper;
|
|
5670
|
-
function
|
|
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
|
|
5679
|
-
this.__data__ =
|
|
5698
|
+
function hashClear2() {
|
|
5699
|
+
this.__data__ = nativeCreate2 ? nativeCreate2(null) : {};
|
|
5680
5700
|
this.size = 0;
|
|
5681
5701
|
}
|
|
5682
|
-
function
|
|
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
|
|
5707
|
+
function hashGet2(key) {
|
|
5688
5708
|
var data = this.__data__;
|
|
5689
|
-
if (
|
|
5709
|
+
if (nativeCreate2) {
|
|
5690
5710
|
var result2 = data[key];
|
|
5691
|
-
return result2 ===
|
|
5711
|
+
return result2 === HASH_UNDEFINED2 ? undefined$1 : result2;
|
|
5692
5712
|
}
|
|
5693
|
-
return
|
|
5713
|
+
return hasOwnProperty2.call(data, key) ? data[key] : undefined$1;
|
|
5694
5714
|
}
|
|
5695
|
-
function
|
|
5715
|
+
function hashHas2(key) {
|
|
5696
5716
|
var data = this.__data__;
|
|
5697
|
-
return
|
|
5717
|
+
return nativeCreate2 ? data[key] !== undefined$1 : hasOwnProperty2.call(data, key);
|
|
5698
5718
|
}
|
|
5699
|
-
function
|
|
5719
|
+
function hashSet2(key, value) {
|
|
5700
5720
|
var data = this.__data__;
|
|
5701
5721
|
this.size += this.has(key) ? 0 : 1;
|
|
5702
|
-
data[key] =
|
|
5722
|
+
data[key] = nativeCreate2 && value === undefined$1 ? HASH_UNDEFINED2 : value;
|
|
5703
5723
|
return this;
|
|
5704
5724
|
}
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
function
|
|
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
|
|
5738
|
+
function listCacheClear2() {
|
|
5719
5739
|
this.__data__ = [];
|
|
5720
5740
|
this.size = 0;
|
|
5721
5741
|
}
|
|
5722
|
-
function
|
|
5723
|
-
var data = this.__data__, index =
|
|
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
|
-
|
|
5751
|
+
splice2.call(data, index, 1);
|
|
5732
5752
|
}
|
|
5733
5753
|
--this.size;
|
|
5734
5754
|
return true;
|
|
5735
5755
|
}
|
|
5736
|
-
function
|
|
5737
|
-
var data = this.__data__, index =
|
|
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
|
|
5741
|
-
return
|
|
5760
|
+
function listCacheHas2(key) {
|
|
5761
|
+
return assocIndexOf2(this.__data__, key) > -1;
|
|
5742
5762
|
}
|
|
5743
|
-
function
|
|
5744
|
-
var data = this.__data__, index =
|
|
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
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
function
|
|
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
|
|
5786
|
+
function mapCacheClear2() {
|
|
5767
5787
|
this.size = 0;
|
|
5768
5788
|
this.__data__ = {
|
|
5769
|
-
"hash": new
|
|
5770
|
-
"map": new (
|
|
5771
|
-
"string": new
|
|
5789
|
+
"hash": new Hash2(),
|
|
5790
|
+
"map": new (Map2 || ListCache2)(),
|
|
5791
|
+
"string": new Hash2()
|
|
5772
5792
|
};
|
|
5773
5793
|
}
|
|
5774
|
-
function
|
|
5775
|
-
var result2 =
|
|
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
|
|
5780
|
-
return
|
|
5799
|
+
function mapCacheGet2(key) {
|
|
5800
|
+
return getMapData2(this, key).get(key);
|
|
5781
5801
|
}
|
|
5782
|
-
function
|
|
5783
|
-
return
|
|
5802
|
+
function mapCacheHas2(key) {
|
|
5803
|
+
return getMapData2(this, key).has(key);
|
|
5784
5804
|
}
|
|
5785
|
-
function
|
|
5786
|
-
var data =
|
|
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
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
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
|
|
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,
|
|
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
|
|
5813
|
-
var data = this.__data__ = new
|
|
5832
|
+
function Stack2(entries) {
|
|
5833
|
+
var data = this.__data__ = new ListCache2(entries);
|
|
5814
5834
|
this.size = data.size;
|
|
5815
5835
|
}
|
|
5816
|
-
function
|
|
5817
|
-
this.__data__ = new
|
|
5836
|
+
function stackClear2() {
|
|
5837
|
+
this.__data__ = new ListCache2();
|
|
5818
5838
|
this.size = 0;
|
|
5819
5839
|
}
|
|
5820
|
-
function
|
|
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
|
|
5845
|
+
function stackGet2(key) {
|
|
5826
5846
|
return this.__data__.get(key);
|
|
5827
5847
|
}
|
|
5828
|
-
function
|
|
5848
|
+
function stackHas2(key) {
|
|
5829
5849
|
return this.__data__.has(key);
|
|
5830
5850
|
}
|
|
5831
|
-
function
|
|
5851
|
+
function stackSet2(key, value) {
|
|
5832
5852
|
var data = this.__data__;
|
|
5833
|
-
if (data instanceof
|
|
5853
|
+
if (data instanceof ListCache2) {
|
|
5834
5854
|
var pairs = data.__data__;
|
|
5835
|
-
if (!
|
|
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
|
|
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
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
function
|
|
5852
|
-
var isArr =
|
|
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 ||
|
|
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
|
-
|
|
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(
|
|
5889
|
+
return shuffleSelf(copyArray2(array), baseClamp(n, 0, array.length));
|
|
5870
5890
|
}
|
|
5871
5891
|
function arrayShuffle(array) {
|
|
5872
|
-
return shuffleSelf(
|
|
5892
|
+
return shuffleSelf(copyArray2(array));
|
|
5873
5893
|
}
|
|
5874
5894
|
function assignMergeValue(object, key, value) {
|
|
5875
|
-
if (value !== undefined$1 && !
|
|
5876
|
-
|
|
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
|
|
5899
|
+
function assignValue2(object, key, value) {
|
|
5880
5900
|
var objValue = object[key];
|
|
5881
|
-
if (!(
|
|
5882
|
-
|
|
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
|
|
5905
|
+
function assocIndexOf2(array, key) {
|
|
5886
5906
|
var length = array.length;
|
|
5887
5907
|
while (length--) {
|
|
5888
|
-
if (
|
|
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
|
|
5901
|
-
return object &&
|
|
5920
|
+
function baseAssign2(object, source) {
|
|
5921
|
+
return object && copyObject2(source, keys2(source), object);
|
|
5902
5922
|
}
|
|
5903
|
-
function
|
|
5904
|
-
return object &&
|
|
5923
|
+
function baseAssignIn2(object, source) {
|
|
5924
|
+
return object && copyObject2(source, keysIn2(source), object);
|
|
5905
5925
|
}
|
|
5906
|
-
function
|
|
5907
|
-
if (key == "__proto__" &&
|
|
5908
|
-
|
|
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
|
|
5937
|
-
var result2, isDeep = bitmask &
|
|
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 (!
|
|
5964
|
+
if (!isObject2(value)) {
|
|
5945
5965
|
return value;
|
|
5946
5966
|
}
|
|
5947
|
-
var isArr =
|
|
5967
|
+
var isArr = isArray2(value);
|
|
5948
5968
|
if (isArr) {
|
|
5949
|
-
result2 =
|
|
5969
|
+
result2 = initCloneArray2(value);
|
|
5950
5970
|
if (!isDeep) {
|
|
5951
|
-
return
|
|
5971
|
+
return copyArray2(value, result2);
|
|
5952
5972
|
}
|
|
5953
5973
|
} else {
|
|
5954
|
-
var tag =
|
|
5955
|
-
if (
|
|
5956
|
-
return
|
|
5974
|
+
var tag = getTag2(value), isFunc = tag == funcTag2 || tag == genTag2;
|
|
5975
|
+
if (isBuffer2(value)) {
|
|
5976
|
+
return cloneBuffer2(value, isDeep);
|
|
5957
5977
|
}
|
|
5958
|
-
if (tag ==
|
|
5959
|
-
result2 = isFlat || isFunc ? {} :
|
|
5978
|
+
if (tag == objectTag2 || tag == argsTag2 || isFunc && !object) {
|
|
5979
|
+
result2 = isFlat || isFunc ? {} : initCloneObject2(value);
|
|
5960
5980
|
if (!isDeep) {
|
|
5961
|
-
return isFlat ?
|
|
5981
|
+
return isFlat ? copySymbolsIn2(value, baseAssignIn2(result2, value)) : copySymbols2(value, baseAssign2(result2, value));
|
|
5962
5982
|
}
|
|
5963
5983
|
} else {
|
|
5964
|
-
if (!
|
|
5984
|
+
if (!cloneableTags2[tag]) {
|
|
5965
5985
|
return object ? value : {};
|
|
5966
5986
|
}
|
|
5967
|
-
result2 =
|
|
5987
|
+
result2 = initCloneByTag2(value, tag, isDeep);
|
|
5968
5988
|
}
|
|
5969
5989
|
}
|
|
5970
|
-
stack || (stack = new
|
|
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 (
|
|
5996
|
+
if (isSet2(value)) {
|
|
5977
5997
|
value.forEach(function(subValue) {
|
|
5978
|
-
result2.add(
|
|
5998
|
+
result2.add(baseClone2(subValue, bitmask, customizer, subValue, value, stack));
|
|
5979
5999
|
});
|
|
5980
|
-
} else if (
|
|
6000
|
+
} else if (isMap2(value)) {
|
|
5981
6001
|
value.forEach(function(subValue, key2) {
|
|
5982
|
-
result2.set(key2,
|
|
6002
|
+
result2.set(key2, baseClone2(subValue, bitmask, customizer, key2, value, stack));
|
|
5983
6003
|
});
|
|
5984
6004
|
}
|
|
5985
|
-
var keysFunc = isFull ? isFlat ?
|
|
6005
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn2 : getAllKeys2 : isFlat ? keysIn2 : keys2;
|
|
5986
6006
|
var props = isArr ? undefined$1 : keysFunc(value);
|
|
5987
|
-
|
|
6007
|
+
arrayEach2(props || value, function(subValue, key2) {
|
|
5988
6008
|
if (props) {
|
|
5989
6009
|
key2 = subValue;
|
|
5990
6010
|
subValue = value[key2];
|
|
5991
6011
|
}
|
|
5992
|
-
|
|
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 =
|
|
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,
|
|
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 >=
|
|
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
|
-
|
|
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,
|
|
6144
|
+
return object && baseFor(object, iteratee2, keys2);
|
|
6125
6145
|
}
|
|
6126
6146
|
function baseForOwnRight(object, iteratee2) {
|
|
6127
|
-
return object && baseForRight(object, iteratee2,
|
|
6147
|
+
return object && baseForRight(object, iteratee2, keys2);
|
|
6128
6148
|
}
|
|
6129
6149
|
function baseFunctions(object, props) {
|
|
6130
|
-
return
|
|
6131
|
-
return
|
|
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
|
|
6162
|
+
function baseGetAllKeys2(object, keysFunc, symbolsFunc) {
|
|
6143
6163
|
var result2 = keysFunc(object);
|
|
6144
|
-
return
|
|
6164
|
+
return isArray2(object) ? result2 : arrayPush2(result2, symbolsFunc(object));
|
|
6145
6165
|
}
|
|
6146
|
-
function
|
|
6166
|
+
function baseGetTag2(value) {
|
|
6147
6167
|
if (value == null) {
|
|
6148
|
-
return value === undefined$1 ?
|
|
6168
|
+
return value === undefined$1 ? undefinedTag2 : nullTag2;
|
|
6149
6169
|
}
|
|
6150
|
-
return
|
|
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 &&
|
|
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,
|
|
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
|
|
6209
|
-
return
|
|
6228
|
+
function baseIsArguments2(value) {
|
|
6229
|
+
return isObjectLike2(value) && baseGetTag2(value) == argsTag2;
|
|
6210
6230
|
}
|
|
6211
6231
|
function baseIsArrayBuffer(value) {
|
|
6212
|
-
return
|
|
6232
|
+
return isObjectLike2(value) && baseGetTag2(value) == arrayBufferTag2;
|
|
6213
6233
|
}
|
|
6214
6234
|
function baseIsDate(value) {
|
|
6215
|
-
return
|
|
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 || !
|
|
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 =
|
|
6228
|
-
objTag = objTag ==
|
|
6229
|
-
othTag = othTag ==
|
|
6230
|
-
var objIsObj = objTag ==
|
|
6231
|
-
if (isSameTag &&
|
|
6232
|
-
if (!
|
|
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
|
|
6240
|
-
return objIsArr ||
|
|
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 &&
|
|
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
|
|
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
|
|
6273
|
+
stack || (stack = new Stack2());
|
|
6254
6274
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
6255
6275
|
}
|
|
6256
|
-
function
|
|
6257
|
-
return
|
|
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
|
|
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
|
|
6291
|
-
if (!
|
|
6310
|
+
function baseIsNative2(value) {
|
|
6311
|
+
if (!isObject2(value) || isMasked2(value)) {
|
|
6292
6312
|
return false;
|
|
6293
6313
|
}
|
|
6294
|
-
var pattern =
|
|
6295
|
-
return pattern.test(
|
|
6314
|
+
var pattern = isFunction2(value) ? reIsNative2 : reIsHostCtor2;
|
|
6315
|
+
return pattern.test(toSource2(value));
|
|
6296
6316
|
}
|
|
6297
6317
|
function baseIsRegExp(value) {
|
|
6298
|
-
return
|
|
6318
|
+
return isObjectLike2(value) && baseGetTag2(value) == regexpTag2;
|
|
6299
6319
|
}
|
|
6300
|
-
function
|
|
6301
|
-
return
|
|
6320
|
+
function baseIsSet2(value) {
|
|
6321
|
+
return isObjectLike2(value) && getTag2(value) == setTag2;
|
|
6302
6322
|
}
|
|
6303
|
-
function
|
|
6304
|
-
return
|
|
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
|
|
6334
|
+
return isArray2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
6315
6335
|
}
|
|
6316
6336
|
return property(value);
|
|
6317
6337
|
}
|
|
6318
|
-
function
|
|
6319
|
-
if (!
|
|
6320
|
-
return
|
|
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 (
|
|
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
|
|
6331
|
-
if (!
|
|
6332
|
-
return
|
|
6350
|
+
function baseKeysIn2(object) {
|
|
6351
|
+
if (!isObject2(object)) {
|
|
6352
|
+
return nativeKeysIn2(object);
|
|
6333
6353
|
}
|
|
6334
|
-
var isProto =
|
|
6354
|
+
var isProto = isPrototype2(object), result2 = [];
|
|
6335
6355
|
for (var key in object) {
|
|
6336
|
-
if (!(key == "constructor" && (isProto || !
|
|
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 =
|
|
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
|
|
6376
|
-
if (
|
|
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
|
-
},
|
|
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 =
|
|
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 (
|
|
6419
|
+
if (isArray2(objValue)) {
|
|
6400
6420
|
newValue = objValue;
|
|
6401
6421
|
} else if (isArrayLikeObject(objValue)) {
|
|
6402
|
-
newValue =
|
|
6422
|
+
newValue = copyArray2(objValue);
|
|
6403
6423
|
} else if (isBuff) {
|
|
6404
6424
|
isCommon = false;
|
|
6405
|
-
newValue =
|
|
6425
|
+
newValue = cloneBuffer2(srcValue, true);
|
|
6406
6426
|
} else if (isTyped) {
|
|
6407
6427
|
isCommon = false;
|
|
6408
|
-
newValue =
|
|
6428
|
+
newValue = cloneTypedArray2(srcValue, true);
|
|
6409
6429
|
} else {
|
|
6410
6430
|
newValue = [];
|
|
6411
6431
|
}
|
|
6412
|
-
} else if (isPlainObject(srcValue) ||
|
|
6432
|
+
} else if (isPlainObject(srcValue) || isArguments2(srcValue)) {
|
|
6413
6433
|
newValue = objValue;
|
|
6414
|
-
if (
|
|
6434
|
+
if (isArguments2(objValue)) {
|
|
6415
6435
|
newValue = toPlainObject(objValue);
|
|
6416
|
-
} else if (!
|
|
6417
|
-
newValue =
|
|
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
|
|
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 (
|
|
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,
|
|
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 =
|
|
6506
|
+
values2 = copyArray2(values2);
|
|
6487
6507
|
}
|
|
6488
6508
|
if (iteratee2) {
|
|
6489
|
-
seen = arrayMap(array,
|
|
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
|
-
|
|
6515
|
+
splice2.call(seen, fromIndex, 1);
|
|
6496
6516
|
}
|
|
6497
|
-
|
|
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 (
|
|
6509
|
-
|
|
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 >
|
|
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 (!
|
|
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 =
|
|
6589
|
+
newValue = isObject2(objValue) ? objValue : isIndex2(path[index + 1]) ? [] : {};
|
|
6570
6590
|
}
|
|
6571
6591
|
}
|
|
6572
|
-
|
|
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 = !
|
|
6582
|
-
return
|
|
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 || !
|
|
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 (
|
|
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 >=
|
|
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,
|
|
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 (
|
|
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
|
|
6821
|
+
return root2.clearTimeout(id);
|
|
6802
6822
|
};
|
|
6803
|
-
function
|
|
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
|
|
6831
|
+
function cloneArrayBuffer2(arrayBuffer) {
|
|
6812
6832
|
var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
6813
|
-
new
|
|
6833
|
+
new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer));
|
|
6814
6834
|
return result2;
|
|
6815
6835
|
}
|
|
6816
|
-
function
|
|
6817
|
-
var buffer = isDeep ?
|
|
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
|
|
6821
|
-
var result2 = new regexp.constructor(regexp.source,
|
|
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
|
|
6826
|
-
return
|
|
6845
|
+
function cloneSymbol2(symbol) {
|
|
6846
|
+
return symbolValueOf2 ? Object2(symbolValueOf2.call(symbol)) : {};
|
|
6827
6847
|
}
|
|
6828
|
-
function
|
|
6829
|
-
var buffer = isDeep ?
|
|
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
|
|
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
|
|
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
|
-
|
|
6929
|
+
baseAssignValue2(object, key, newValue);
|
|
6910
6930
|
} else {
|
|
6911
|
-
|
|
6931
|
+
assignValue2(object, key, newValue);
|
|
6912
6932
|
}
|
|
6913
6933
|
}
|
|
6914
6934
|
return object;
|
|
6915
6935
|
}
|
|
6916
|
-
function
|
|
6917
|
-
return
|
|
6936
|
+
function copySymbols2(source, object) {
|
|
6937
|
+
return copyObject2(source, getSymbols2(source), object);
|
|
6918
6938
|
}
|
|
6919
|
-
function
|
|
6920
|
-
return
|
|
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 =
|
|
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 (!
|
|
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 !==
|
|
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 =
|
|
7019
|
-
return
|
|
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 !==
|
|
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 (!
|
|
7073
|
+
if (!isArrayLike2(collection)) {
|
|
7054
7074
|
var iteratee2 = getIteratee(predicate, 3);
|
|
7055
|
-
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 &&
|
|
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 !==
|
|
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,
|
|
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 !==
|
|
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 = !(
|
|
7280
|
-
return new
|
|
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 =
|
|
7285
|
-
if (tag ==
|
|
7304
|
+
var tag = getTag2(object);
|
|
7305
|
+
if (tag == mapTag2) {
|
|
7286
7306
|
return mapToArray(object);
|
|
7287
7307
|
}
|
|
7288
|
-
if (tag ==
|
|
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 ||
|
|
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 (
|
|
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
|
|
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
|
|
7417
|
-
if (object.byteLength != other.byteLength || !equalFunc(new
|
|
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
|
|
7422
|
-
case
|
|
7423
|
-
case
|
|
7424
|
-
return
|
|
7425
|
-
case
|
|
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
|
|
7428
|
-
case
|
|
7447
|
+
case regexpTag2:
|
|
7448
|
+
case stringTag2:
|
|
7429
7449
|
return object == other + "";
|
|
7430
|
-
case
|
|
7450
|
+
case mapTag2:
|
|
7431
7451
|
var convert = mapToArray;
|
|
7432
|
-
case
|
|
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
|
|
7448
|
-
if (
|
|
7449
|
-
return
|
|
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 =
|
|
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 :
|
|
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
|
|
7501
|
-
return
|
|
7520
|
+
function getAllKeys2(object) {
|
|
7521
|
+
return baseGetAllKeys2(object, keys2, getSymbols2);
|
|
7502
7522
|
}
|
|
7503
|
-
function
|
|
7504
|
-
return
|
|
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 =
|
|
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 =
|
|
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
|
|
7548
|
+
function getMapData2(map2, key) {
|
|
7529
7549
|
var data = map2.__data__;
|
|
7530
|
-
return
|
|
7550
|
+
return isKeyable2(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
7531
7551
|
}
|
|
7532
7552
|
function getMatchData(object) {
|
|
7533
|
-
var result2 =
|
|
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
|
|
7541
|
-
var value =
|
|
7542
|
-
return
|
|
7560
|
+
function getNative2(object, key) {
|
|
7561
|
+
var value = getValue2(object, key);
|
|
7562
|
+
return baseIsNative2(value) ? value : undefined$1;
|
|
7543
7563
|
}
|
|
7544
|
-
function
|
|
7545
|
-
var isOwn =
|
|
7564
|
+
function getRawTag2(value) {
|
|
7565
|
+
var isOwn = hasOwnProperty2.call(value, symToStringTag2), tag = value[symToStringTag2];
|
|
7546
7566
|
try {
|
|
7547
|
-
value[
|
|
7567
|
+
value[symToStringTag2] = undefined$1;
|
|
7548
7568
|
var unmasked = true;
|
|
7549
7569
|
} catch (e) {
|
|
7550
7570
|
}
|
|
7551
|
-
var result2 =
|
|
7571
|
+
var result2 = nativeObjectToString2.call(value);
|
|
7552
7572
|
if (unmasked) {
|
|
7553
7573
|
if (isOwn) {
|
|
7554
|
-
value[
|
|
7574
|
+
value[symToStringTag2] = tag;
|
|
7555
7575
|
} else {
|
|
7556
|
-
delete value[
|
|
7576
|
+
delete value[symToStringTag2];
|
|
7557
7577
|
}
|
|
7558
7578
|
}
|
|
7559
7579
|
return result2;
|
|
7560
7580
|
}
|
|
7561
|
-
var
|
|
7581
|
+
var getSymbols2 = !nativeGetSymbols2 ? stubArray2 : function(object) {
|
|
7562
7582
|
if (object == null) {
|
|
7563
7583
|
return [];
|
|
7564
7584
|
}
|
|
7565
7585
|
object = Object2(object);
|
|
7566
|
-
return
|
|
7567
|
-
return
|
|
7586
|
+
return arrayFilter2(nativeGetSymbols2(object), function(symbol) {
|
|
7587
|
+
return propertyIsEnumerable2.call(object, symbol);
|
|
7568
7588
|
});
|
|
7569
7589
|
};
|
|
7570
|
-
var
|
|
7590
|
+
var getSymbolsIn2 = !nativeGetSymbols2 ? stubArray2 : function(object) {
|
|
7571
7591
|
var result2 = [];
|
|
7572
7592
|
while (object) {
|
|
7573
|
-
|
|
7574
|
-
object =
|
|
7593
|
+
arrayPush2(result2, getSymbols2(object));
|
|
7594
|
+
object = getPrototype2(object);
|
|
7575
7595
|
}
|
|
7576
7596
|
return result2;
|
|
7577
7597
|
};
|
|
7578
|
-
var
|
|
7579
|
-
if (
|
|
7580
|
-
|
|
7581
|
-
var result2 =
|
|
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
|
|
7585
|
-
return
|
|
7586
|
-
case
|
|
7587
|
-
return
|
|
7588
|
-
case
|
|
7589
|
-
return
|
|
7590
|
-
case
|
|
7591
|
-
return
|
|
7592
|
-
case
|
|
7593
|
-
return
|
|
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 &&
|
|
7658
|
+
return !!length && isLength2(length) && isIndex2(key, length) && (isArray2(object) || isArguments2(object));
|
|
7639
7659
|
}
|
|
7640
|
-
function
|
|
7660
|
+
function initCloneArray2(array) {
|
|
7641
7661
|
var length = array.length, result2 = new array.constructor(length);
|
|
7642
|
-
if (length && typeof array[0] == "string" &&
|
|
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
|
|
7649
|
-
return typeof object.constructor == "function" && !
|
|
7668
|
+
function initCloneObject2(object) {
|
|
7669
|
+
return typeof object.constructor == "function" && !isPrototype2(object) ? baseCreate2(getPrototype2(object)) : {};
|
|
7650
7670
|
}
|
|
7651
|
-
function
|
|
7671
|
+
function initCloneByTag2(object, tag, isDeep) {
|
|
7652
7672
|
var Ctor = object.constructor;
|
|
7653
7673
|
switch (tag) {
|
|
7654
|
-
case
|
|
7655
|
-
return
|
|
7656
|
-
case
|
|
7657
|
-
case
|
|
7674
|
+
case arrayBufferTag2:
|
|
7675
|
+
return cloneArrayBuffer2(object);
|
|
7676
|
+
case boolTag2:
|
|
7677
|
+
case dateTag2:
|
|
7658
7678
|
return new Ctor(+object);
|
|
7659
|
-
case
|
|
7660
|
-
return
|
|
7661
|
-
case
|
|
7662
|
-
case
|
|
7663
|
-
case
|
|
7664
|
-
case
|
|
7665
|
-
case
|
|
7666
|
-
case
|
|
7667
|
-
case
|
|
7668
|
-
case
|
|
7669
|
-
case
|
|
7670
|
-
return
|
|
7671
|
-
case
|
|
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
|
|
7674
|
-
case
|
|
7693
|
+
case numberTag2:
|
|
7694
|
+
case stringTag2:
|
|
7675
7695
|
return new Ctor(object);
|
|
7676
|
-
case
|
|
7677
|
-
return
|
|
7678
|
-
case
|
|
7696
|
+
case regexpTag2:
|
|
7697
|
+
return cloneRegExp2(object);
|
|
7698
|
+
case setTag2:
|
|
7679
7699
|
return new Ctor();
|
|
7680
|
-
case
|
|
7681
|
-
return
|
|
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
|
|
7715
|
+
return isArray2(value) || isArguments2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
7696
7716
|
}
|
|
7697
|
-
function
|
|
7717
|
+
function isIndex2(value, length) {
|
|
7698
7718
|
var type = typeof value;
|
|
7699
|
-
length = length == null ?
|
|
7700
|
-
return !!length && (type == "number" || type != "symbol" &&
|
|
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 (!
|
|
7723
|
+
if (!isObject2(object)) {
|
|
7704
7724
|
return false;
|
|
7705
7725
|
}
|
|
7706
7726
|
var type = typeof index;
|
|
7707
|
-
if (type == "number" ?
|
|
7708
|
-
return
|
|
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 (
|
|
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
|
|
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
|
|
7738
|
-
return !!
|
|
7757
|
+
function isMasked2(func) {
|
|
7758
|
+
return !!maskSrcKey2 && maskSrcKey2 in func;
|
|
7739
7759
|
}
|
|
7740
|
-
var isMaskable =
|
|
7741
|
-
function
|
|
7742
|
-
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype ||
|
|
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 && !
|
|
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
|
|
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
|
|
7812
|
-
return
|
|
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 =
|
|
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] =
|
|
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
|
|
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
|
|
7922
|
+
function toSource2(func) {
|
|
7903
7923
|
if (func != null) {
|
|
7904
7924
|
try {
|
|
7905
|
-
return
|
|
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
|
-
|
|
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__ =
|
|
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
|
|
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
|
|
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 &&
|
|
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 (
|
|
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 =
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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 || [],
|
|
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) || !
|
|
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 (
|
|
8433
|
+
if (hasOwnProperty2.call(result2, key)) {
|
|
8414
8434
|
++result2[key];
|
|
8415
8435
|
} else {
|
|
8416
|
-
|
|
8436
|
+
baseAssignValue2(result2, key, 1);
|
|
8417
8437
|
}
|
|
8418
8438
|
});
|
|
8419
8439
|
function every(collection, predicate, guard) {
|
|
8420
|
-
var func =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 (
|
|
8471
|
+
if (hasOwnProperty2.call(result2, key)) {
|
|
8452
8472
|
result2[key].push(value);
|
|
8453
8473
|
} else {
|
|
8454
|
-
|
|
8474
|
+
baseAssignValue2(result2, key, [value]);
|
|
8455
8475
|
}
|
|
8456
8476
|
});
|
|
8457
8477
|
function includes(collection, value, fromIndex, guard) {
|
|
8458
|
-
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 =
|
|
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
|
-
|
|
8494
|
+
baseAssignValue2(result2, key, value);
|
|
8475
8495
|
});
|
|
8476
8496
|
function map(collection, iteratee2) {
|
|
8477
|
-
var func =
|
|
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 (!
|
|
8504
|
+
if (!isArray2(iteratees)) {
|
|
8485
8505
|
iteratees = iteratees == null ? [] : [iteratees];
|
|
8486
8506
|
}
|
|
8487
8507
|
orders = guard ? undefined$1 : orders;
|
|
8488
|
-
if (!
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
8540
|
+
var func = isArray2(collection) ? arraySampleSize : baseSampleSize;
|
|
8521
8541
|
return func(collection, n);
|
|
8522
8542
|
}
|
|
8523
8543
|
function shuffle(collection) {
|
|
8524
|
-
var func =
|
|
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 (
|
|
8551
|
+
if (isArrayLike2(collection)) {
|
|
8532
8552
|
return isString(collection) ? stringSize(collection) : collection.length;
|
|
8533
8553
|
}
|
|
8534
|
-
var tag =
|
|
8535
|
-
if (tag ==
|
|
8554
|
+
var tag = getTag2(collection);
|
|
8555
|
+
if (tag == mapTag2 || tag == setTag2) {
|
|
8536
8556
|
return collection.size;
|
|
8537
8557
|
}
|
|
8538
|
-
return
|
|
8558
|
+
return baseKeys2(collection).length;
|
|
8539
8559
|
}
|
|
8540
8560
|
function some(collection, predicate, guard) {
|
|
8541
|
-
var func =
|
|
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
|
|
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 (
|
|
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 ||
|
|
8745
|
+
memoized.cache = new (memoize.Cache || MapCache2)();
|
|
8726
8746
|
return memoized;
|
|
8727
8747
|
}
|
|
8728
|
-
memoize.Cache =
|
|
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 &&
|
|
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
|
-
|
|
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 (
|
|
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
|
|
8839
|
+
return isArray2(value) ? value : [value];
|
|
8820
8840
|
}
|
|
8821
8841
|
function clone(value) {
|
|
8822
|
-
return
|
|
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
|
|
8846
|
+
return baseClone2(value, CLONE_SYMBOLS_FLAG2, customizer);
|
|
8827
8847
|
}
|
|
8828
|
-
function
|
|
8829
|
-
return
|
|
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
|
|
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,
|
|
8856
|
+
return source == null || baseConformsTo(object, source, keys2(source));
|
|
8837
8857
|
}
|
|
8838
|
-
function
|
|
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
|
|
8865
|
+
var isArguments2 = baseIsArguments2(/* @__PURE__ */ function() {
|
|
8846
8866
|
return arguments;
|
|
8847
|
-
}()) ?
|
|
8848
|
-
return
|
|
8867
|
+
}()) ? baseIsArguments2 : function(value) {
|
|
8868
|
+
return isObjectLike2(value) && hasOwnProperty2.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
|
|
8849
8869
|
};
|
|
8850
|
-
var
|
|
8851
|
-
var isArrayBuffer = nodeIsArrayBuffer ?
|
|
8852
|
-
function
|
|
8853
|
-
return value != null &&
|
|
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
|
|
8876
|
+
return isObjectLike2(value) && isArrayLike2(value);
|
|
8857
8877
|
}
|
|
8858
8878
|
function isBoolean(value) {
|
|
8859
|
-
return value === true || value === false ||
|
|
8879
|
+
return value === true || value === false || isObjectLike2(value) && baseGetTag2(value) == boolTag2;
|
|
8860
8880
|
}
|
|
8861
|
-
var
|
|
8862
|
-
var isDate = nodeIsDate ?
|
|
8881
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
8882
|
+
var isDate = nodeIsDate ? baseUnary2(nodeIsDate) : baseIsDate;
|
|
8863
8883
|
function isElement(value) {
|
|
8864
|
-
return
|
|
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 (
|
|
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 =
|
|
8874
|
-
if (tag ==
|
|
8893
|
+
var tag = getTag2(value);
|
|
8894
|
+
if (tag == mapTag2 || tag == setTag2) {
|
|
8875
8895
|
return !value.size;
|
|
8876
8896
|
}
|
|
8877
|
-
if (
|
|
8878
|
-
return !
|
|
8897
|
+
if (isPrototype2(value)) {
|
|
8898
|
+
return !baseKeys2(value).length;
|
|
8879
8899
|
}
|
|
8880
8900
|
for (var key in value) {
|
|
8881
|
-
if (
|
|
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 (!
|
|
8916
|
+
if (!isObjectLike2(value)) {
|
|
8897
8917
|
return false;
|
|
8898
8918
|
}
|
|
8899
|
-
var tag =
|
|
8900
|
-
return tag ==
|
|
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
|
|
8906
|
-
if (!
|
|
8925
|
+
function isFunction2(value) {
|
|
8926
|
+
if (!isObject2(value)) {
|
|
8907
8927
|
return false;
|
|
8908
8928
|
}
|
|
8909
|
-
var tag =
|
|
8910
|
-
return tag ==
|
|
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
|
|
8916
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <=
|
|
8935
|
+
function isLength2(value) {
|
|
8936
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
8917
8937
|
}
|
|
8918
|
-
function
|
|
8938
|
+
function isObject2(value) {
|
|
8919
8939
|
var type = typeof value;
|
|
8920
8940
|
return value != null && (type == "object" || type == "function");
|
|
8921
8941
|
}
|
|
8922
|
-
function
|
|
8942
|
+
function isObjectLike2(value) {
|
|
8923
8943
|
return value != null && typeof value == "object";
|
|
8924
8944
|
}
|
|
8925
|
-
var
|
|
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
|
|
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" ||
|
|
8969
|
+
return typeof value == "number" || isObjectLike2(value) && baseGetTag2(value) == numberTag2;
|
|
8950
8970
|
}
|
|
8951
8971
|
function isPlainObject(value) {
|
|
8952
|
-
if (!
|
|
8972
|
+
if (!isObjectLike2(value) || baseGetTag2(value) != objectTag2) {
|
|
8953
8973
|
return false;
|
|
8954
8974
|
}
|
|
8955
|
-
var proto =
|
|
8975
|
+
var proto = getPrototype2(value);
|
|
8956
8976
|
if (proto === null) {
|
|
8957
8977
|
return true;
|
|
8958
8978
|
}
|
|
8959
|
-
var Ctor =
|
|
8960
|
-
return typeof Ctor == "function" && Ctor instanceof Ctor &&
|
|
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 ?
|
|
8982
|
+
var isRegExp = nodeIsRegExp ? baseUnary2(nodeIsRegExp) : baseIsRegExp;
|
|
8963
8983
|
function isSafeInteger(value) {
|
|
8964
|
-
return isInteger(value) && value >= -
|
|
8984
|
+
return isInteger(value) && value >= -MAX_SAFE_INTEGER2 && value <= MAX_SAFE_INTEGER2;
|
|
8965
8985
|
}
|
|
8966
|
-
var
|
|
8986
|
+
var isSet2 = nodeIsSet2 ? baseUnary2(nodeIsSet2) : baseIsSet2;
|
|
8967
8987
|
function isString(value) {
|
|
8968
|
-
return typeof value == "string" || !
|
|
8988
|
+
return typeof value == "string" || !isArray2(value) && isObjectLike2(value) && baseGetTag2(value) == stringTag2;
|
|
8969
8989
|
}
|
|
8970
8990
|
function isSymbol(value) {
|
|
8971
|
-
return typeof value == "symbol" ||
|
|
8991
|
+
return typeof value == "symbol" || isObjectLike2(value) && baseGetTag2(value) == symbolTag2;
|
|
8972
8992
|
}
|
|
8973
|
-
var
|
|
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
|
|
8998
|
+
return isObjectLike2(value) && getTag2(value) == weakMapTag2;
|
|
8979
8999
|
}
|
|
8980
9000
|
function isWeakSet(value) {
|
|
8981
|
-
return
|
|
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 (
|
|
8992
|
-
return isString(value) ? stringToArray(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 =
|
|
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 (
|
|
9045
|
+
if (isObject2(value)) {
|
|
9026
9046
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
9027
|
-
value =
|
|
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
|
|
9057
|
+
return copyObject2(value, keysIn2(value));
|
|
9038
9058
|
}
|
|
9039
9059
|
function toSafeInteger(value) {
|
|
9040
|
-
return value ? baseClamp(toInteger(value), -
|
|
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 (
|
|
9047
|
-
|
|
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 (
|
|
9052
|
-
|
|
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
|
-
|
|
9077
|
+
copyObject2(source, keysIn2(source), object);
|
|
9058
9078
|
});
|
|
9059
9079
|
var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
9060
|
-
|
|
9080
|
+
copyObject2(source, keysIn2(source), object, customizer);
|
|
9061
9081
|
});
|
|
9062
9082
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
|
|
9063
|
-
|
|
9083
|
+
copyObject2(source, keys2(source), object, customizer);
|
|
9064
9084
|
});
|
|
9065
9085
|
var at = flatRest(baseAt);
|
|
9066
9086
|
function create(prototype, properties) {
|
|
9067
|
-
var result2 =
|
|
9068
|
-
return properties == null ? result2 :
|
|
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 =
|
|
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 ||
|
|
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),
|
|
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),
|
|
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,
|
|
9136
|
+
return object == null ? [] : baseFunctions(object, keys2(object));
|
|
9117
9137
|
}
|
|
9118
9138
|
function functionsIn(object) {
|
|
9119
|
-
return object == null ? [] : baseFunctions(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 =
|
|
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 =
|
|
9159
|
+
value = nativeObjectToString2.call(value);
|
|
9140
9160
|
}
|
|
9141
|
-
if (
|
|
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
|
|
9149
|
-
return
|
|
9168
|
+
function keys2(object) {
|
|
9169
|
+
return isArrayLike2(object) ? arrayLikeKeys2(object) : baseKeys2(object);
|
|
9150
9170
|
}
|
|
9151
|
-
function
|
|
9152
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
9207
|
+
copyObject2(object, getAllKeysIn2(object), result2);
|
|
9188
9208
|
if (isDeep) {
|
|
9189
|
-
result2 =
|
|
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(
|
|
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 =
|
|
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(
|
|
9240
|
-
var toPairsIn = createToPairs(
|
|
9259
|
+
var toPairs = createToPairs(keys2);
|
|
9260
|
+
var toPairsIn = createToPairs(keysIn2);
|
|
9241
9261
|
function transform(object, iteratee2, accumulator) {
|
|
9242
|
-
var isArr =
|
|
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 (
|
|
9249
|
-
accumulator =
|
|
9268
|
+
} else if (isObject2(object)) {
|
|
9269
|
+
accumulator = isFunction2(Ctor) ? baseCreate2(getPrototype2(object)) : {};
|
|
9250
9270
|
} else {
|
|
9251
9271
|
accumulator = {};
|
|
9252
9272
|
}
|
|
9253
9273
|
}
|
|
9254
|
-
(isArrLike ?
|
|
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,
|
|
9290
|
+
return object == null ? [] : baseValues(object, keys2(object));
|
|
9271
9291
|
}
|
|
9272
9292
|
function valuesIn(object) {
|
|
9273
|
-
return object == null ? [] : baseValues(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(
|
|
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 =
|
|
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=" + (
|
|
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 =
|
|
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 (
|
|
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(
|
|
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
|
-
|
|
9622
|
+
arrayEach2(methodNames, function(key) {
|
|
9603
9623
|
key = toKey(key);
|
|
9604
|
-
|
|
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(
|
|
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 :
|
|
9663
|
+
return baseIteratee(typeof func == "function" ? func : baseClone2(func, CLONE_DEEP_FLAG2));
|
|
9644
9664
|
}
|
|
9645
9665
|
function matches(source) {
|
|
9646
|
-
return baseMatches(
|
|
9666
|
+
return baseMatches(baseClone2(source, CLONE_DEEP_FLAG2));
|
|
9647
9667
|
}
|
|
9648
9668
|
function matchesProperty(path, srcValue) {
|
|
9649
|
-
return baseMatchesProperty(path,
|
|
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 =
|
|
9663
|
-
if (options == null && !(
|
|
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,
|
|
9687
|
+
methodNames = baseFunctions(source, keys2(source));
|
|
9668
9688
|
}
|
|
9669
|
-
var chain2 = !(
|
|
9670
|
-
|
|
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__ =
|
|
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,
|
|
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 (
|
|
9690
|
-
|
|
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
|
|
9735
|
+
function stubArray2() {
|
|
9716
9736
|
return [];
|
|
9717
9737
|
}
|
|
9718
|
-
function
|
|
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 >
|
|
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 =
|
|
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 (
|
|
9765
|
+
if (isArray2(value)) {
|
|
9746
9766
|
return arrayMap(value, toKey);
|
|
9747
9767
|
}
|
|
9748
|
-
return isSymbol(value) ? [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 =
|
|
9853
|
-
lodash2.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 =
|
|
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 =
|
|
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 =
|
|
9991
|
-
lodash2.isArray =
|
|
10010
|
+
lodash2.isArguments = isArguments2;
|
|
10011
|
+
lodash2.isArray = isArray2;
|
|
9992
10012
|
lodash2.isArrayBuffer = isArrayBuffer;
|
|
9993
|
-
lodash2.isArrayLike =
|
|
10013
|
+
lodash2.isArrayLike = isArrayLike2;
|
|
9994
10014
|
lodash2.isArrayLikeObject = isArrayLikeObject;
|
|
9995
10015
|
lodash2.isBoolean = isBoolean;
|
|
9996
|
-
lodash2.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 =
|
|
10024
|
+
lodash2.isFunction = isFunction2;
|
|
10005
10025
|
lodash2.isInteger = isInteger;
|
|
10006
|
-
lodash2.isLength =
|
|
10007
|
-
lodash2.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 =
|
|
10016
|
-
lodash2.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 =
|
|
10040
|
+
lodash2.isSet = isSet2;
|
|
10021
10041
|
lodash2.isString = isString;
|
|
10022
10042
|
lodash2.isSymbol = isSymbol;
|
|
10023
|
-
lodash2.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 =
|
|
10042
|
-
lodash2.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 (!
|
|
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
|
-
|
|
10129
|
+
arrayEach2(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
|
|
10110
10130
|
lodash2[methodName].placeholder = lodash2;
|
|
10111
10131
|
});
|
|
10112
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 ||
|
|
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,
|
|
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
|
-
|
|
10226
|
-
var func =
|
|
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(
|
|
10251
|
+
return func.apply(isArray2(value) ? value : [], args);
|
|
10232
10252
|
}
|
|
10233
10253
|
return this[chainName](function(value2) {
|
|
10234
|
-
return func.apply(
|
|
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 (!
|
|
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
|
-
|
|
10293
|
+
root2._ = _2;
|
|
10274
10294
|
}
|
|
10275
10295
|
}).call(commonjsGlobal);
|
|
10276
10296
|
})(lodash, lodash.exports);
|
|
@@ -10751,8 +10771,9 @@ function SortableRouteItem({ item, depth, ...props }) {
|
|
|
10751
10771
|
}
|
|
10752
10772
|
function PageWrapper({ navigations, loading = false, children }) {
|
|
10753
10773
|
const { formatMessage } = useIntl();
|
|
10754
|
-
const { selectedNavigation
|
|
10774
|
+
const { selectedNavigation } = useContext(SelectedNavigationContext);
|
|
10755
10775
|
const { setModalType } = useContext(ModalContext);
|
|
10776
|
+
const navigate = useNavigate();
|
|
10756
10777
|
return /* @__PURE__ */ jsxs(Page.Main, { children: [
|
|
10757
10778
|
/* @__PURE__ */ jsx(
|
|
10758
10779
|
Layouts.Header,
|
|
@@ -10780,10 +10801,7 @@ function PageWrapper({ navigations, loading = false, children }) {
|
|
|
10780
10801
|
}),
|
|
10781
10802
|
onChange: (value) => {
|
|
10782
10803
|
const navItem = navigations.find((nav) => nav.slug === value);
|
|
10783
|
-
|
|
10784
|
-
if (navItem) {
|
|
10785
|
-
setSelectedNavigation(navItem);
|
|
10786
|
-
}
|
|
10804
|
+
navItem && navigate(`/plugins/webatlas/navigation/${navItem.documentId}`);
|
|
10787
10805
|
},
|
|
10788
10806
|
disabled: navigations.length === 0,
|
|
10789
10807
|
children: navigations.map((nav) => /* @__PURE__ */ jsx(SingleSelectOption, { value: nav.slug, children: nav.name }, nav.id))
|
|
@@ -10795,17 +10813,993 @@ function PageWrapper({ navigations, loading = false, children }) {
|
|
|
10795
10813
|
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(Box, { children }) })
|
|
10796
10814
|
] });
|
|
10797
10815
|
}
|
|
10816
|
+
function listCacheClear$1() {
|
|
10817
|
+
this.__data__ = [];
|
|
10818
|
+
this.size = 0;
|
|
10819
|
+
}
|
|
10820
|
+
var _listCacheClear = listCacheClear$1;
|
|
10821
|
+
function eq$2(value, other) {
|
|
10822
|
+
return value === other || value !== value && other !== other;
|
|
10823
|
+
}
|
|
10824
|
+
var eq_1 = eq$2;
|
|
10825
|
+
var eq$1 = eq_1;
|
|
10826
|
+
function assocIndexOf$4(array, key) {
|
|
10827
|
+
var length = array.length;
|
|
10828
|
+
while (length--) {
|
|
10829
|
+
if (eq$1(array[length][0], key)) {
|
|
10830
|
+
return length;
|
|
10831
|
+
}
|
|
10832
|
+
}
|
|
10833
|
+
return -1;
|
|
10834
|
+
}
|
|
10835
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
10836
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
10837
|
+
var arrayProto = Array.prototype;
|
|
10838
|
+
var splice = arrayProto.splice;
|
|
10839
|
+
function listCacheDelete$1(key) {
|
|
10840
|
+
var data = this.__data__, index = assocIndexOf$3(data, key);
|
|
10841
|
+
if (index < 0) {
|
|
10842
|
+
return false;
|
|
10843
|
+
}
|
|
10844
|
+
var lastIndex = data.length - 1;
|
|
10845
|
+
if (index == lastIndex) {
|
|
10846
|
+
data.pop();
|
|
10847
|
+
} else {
|
|
10848
|
+
splice.call(data, index, 1);
|
|
10849
|
+
}
|
|
10850
|
+
--this.size;
|
|
10851
|
+
return true;
|
|
10852
|
+
}
|
|
10853
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
10854
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
10855
|
+
function listCacheGet$1(key) {
|
|
10856
|
+
var data = this.__data__, index = assocIndexOf$2(data, key);
|
|
10857
|
+
return index < 0 ? void 0 : data[index][1];
|
|
10858
|
+
}
|
|
10859
|
+
var _listCacheGet = listCacheGet$1;
|
|
10860
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
10861
|
+
function listCacheHas$1(key) {
|
|
10862
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
10863
|
+
}
|
|
10864
|
+
var _listCacheHas = listCacheHas$1;
|
|
10865
|
+
var assocIndexOf = _assocIndexOf;
|
|
10866
|
+
function listCacheSet$1(key, value) {
|
|
10867
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
10868
|
+
if (index < 0) {
|
|
10869
|
+
++this.size;
|
|
10870
|
+
data.push([key, value]);
|
|
10871
|
+
} else {
|
|
10872
|
+
data[index][1] = value;
|
|
10873
|
+
}
|
|
10874
|
+
return this;
|
|
10875
|
+
}
|
|
10876
|
+
var _listCacheSet = listCacheSet$1;
|
|
10877
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
10878
|
+
function ListCache$4(entries) {
|
|
10879
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
10880
|
+
this.clear();
|
|
10881
|
+
while (++index < length) {
|
|
10882
|
+
var entry = entries[index];
|
|
10883
|
+
this.set(entry[0], entry[1]);
|
|
10884
|
+
}
|
|
10885
|
+
}
|
|
10886
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
10887
|
+
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
10888
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
10889
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
10890
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
10891
|
+
var _ListCache = ListCache$4;
|
|
10892
|
+
var ListCache$3 = _ListCache;
|
|
10893
|
+
function stackClear$1() {
|
|
10894
|
+
this.__data__ = new ListCache$3();
|
|
10895
|
+
this.size = 0;
|
|
10896
|
+
}
|
|
10897
|
+
var _stackClear = stackClear$1;
|
|
10898
|
+
function stackDelete$1(key) {
|
|
10899
|
+
var data = this.__data__, result = data["delete"](key);
|
|
10900
|
+
this.size = data.size;
|
|
10901
|
+
return result;
|
|
10902
|
+
}
|
|
10903
|
+
var _stackDelete = stackDelete$1;
|
|
10904
|
+
function stackGet$1(key) {
|
|
10905
|
+
return this.__data__.get(key);
|
|
10906
|
+
}
|
|
10907
|
+
var _stackGet = stackGet$1;
|
|
10908
|
+
function stackHas$1(key) {
|
|
10909
|
+
return this.__data__.has(key);
|
|
10910
|
+
}
|
|
10911
|
+
var _stackHas = stackHas$1;
|
|
10912
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
10913
|
+
var _freeGlobal = freeGlobal$1;
|
|
10914
|
+
var freeGlobal = _freeGlobal;
|
|
10915
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
10916
|
+
var root$8 = freeGlobal || freeSelf || Function("return this")();
|
|
10917
|
+
var _root = root$8;
|
|
10918
|
+
var root$7 = _root;
|
|
10919
|
+
var Symbol$4 = root$7.Symbol;
|
|
10920
|
+
var _Symbol = Symbol$4;
|
|
10921
|
+
var Symbol$3 = _Symbol;
|
|
10922
|
+
var objectProto$c = Object.prototype;
|
|
10923
|
+
var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
|
|
10924
|
+
var nativeObjectToString$1 = objectProto$c.toString;
|
|
10925
|
+
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
10926
|
+
function getRawTag$1(value) {
|
|
10927
|
+
var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
10928
|
+
try {
|
|
10929
|
+
value[symToStringTag$1] = void 0;
|
|
10930
|
+
var unmasked = true;
|
|
10931
|
+
} catch (e) {
|
|
10932
|
+
}
|
|
10933
|
+
var result = nativeObjectToString$1.call(value);
|
|
10934
|
+
if (unmasked) {
|
|
10935
|
+
if (isOwn) {
|
|
10936
|
+
value[symToStringTag$1] = tag;
|
|
10937
|
+
} else {
|
|
10938
|
+
delete value[symToStringTag$1];
|
|
10939
|
+
}
|
|
10940
|
+
}
|
|
10941
|
+
return result;
|
|
10942
|
+
}
|
|
10943
|
+
var _getRawTag = getRawTag$1;
|
|
10944
|
+
var objectProto$b = Object.prototype;
|
|
10945
|
+
var nativeObjectToString = objectProto$b.toString;
|
|
10946
|
+
function objectToString$1(value) {
|
|
10947
|
+
return nativeObjectToString.call(value);
|
|
10948
|
+
}
|
|
10949
|
+
var _objectToString = objectToString$1;
|
|
10950
|
+
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
10951
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
10952
|
+
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
10953
|
+
function baseGetTag$4(value) {
|
|
10954
|
+
if (value == null) {
|
|
10955
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
10956
|
+
}
|
|
10957
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
10958
|
+
}
|
|
10959
|
+
var _baseGetTag = baseGetTag$4;
|
|
10960
|
+
function isObject$5(value) {
|
|
10961
|
+
var type = typeof value;
|
|
10962
|
+
return value != null && (type == "object" || type == "function");
|
|
10963
|
+
}
|
|
10964
|
+
var isObject_1 = isObject$5;
|
|
10965
|
+
var baseGetTag$3 = _baseGetTag, isObject$4 = isObject_1;
|
|
10966
|
+
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
10967
|
+
function isFunction$2(value) {
|
|
10968
|
+
if (!isObject$4(value)) {
|
|
10969
|
+
return false;
|
|
10970
|
+
}
|
|
10971
|
+
var tag = baseGetTag$3(value);
|
|
10972
|
+
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
10973
|
+
}
|
|
10974
|
+
var isFunction_1 = isFunction$2;
|
|
10975
|
+
var root$6 = _root;
|
|
10976
|
+
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
10977
|
+
var _coreJsData = coreJsData$1;
|
|
10978
|
+
var coreJsData = _coreJsData;
|
|
10979
|
+
var maskSrcKey = function() {
|
|
10980
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
10981
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
10982
|
+
}();
|
|
10983
|
+
function isMasked$1(func) {
|
|
10984
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
10985
|
+
}
|
|
10986
|
+
var _isMasked = isMasked$1;
|
|
10987
|
+
var funcProto$1 = Function.prototype;
|
|
10988
|
+
var funcToString$1 = funcProto$1.toString;
|
|
10989
|
+
function toSource$2(func) {
|
|
10990
|
+
if (func != null) {
|
|
10991
|
+
try {
|
|
10992
|
+
return funcToString$1.call(func);
|
|
10993
|
+
} catch (e) {
|
|
10994
|
+
}
|
|
10995
|
+
try {
|
|
10996
|
+
return func + "";
|
|
10997
|
+
} catch (e) {
|
|
10998
|
+
}
|
|
10999
|
+
}
|
|
11000
|
+
return "";
|
|
11001
|
+
}
|
|
11002
|
+
var _toSource = toSource$2;
|
|
11003
|
+
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject$3 = isObject_1, toSource$1 = _toSource;
|
|
11004
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
11005
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
11006
|
+
var funcProto = Function.prototype, objectProto$a = Object.prototype;
|
|
11007
|
+
var funcToString = funcProto.toString;
|
|
11008
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
11009
|
+
var reIsNative = RegExp(
|
|
11010
|
+
"^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11011
|
+
);
|
|
11012
|
+
function baseIsNative$1(value) {
|
|
11013
|
+
if (!isObject$3(value) || isMasked(value)) {
|
|
11014
|
+
return false;
|
|
11015
|
+
}
|
|
11016
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
11017
|
+
return pattern.test(toSource$1(value));
|
|
11018
|
+
}
|
|
11019
|
+
var _baseIsNative = baseIsNative$1;
|
|
11020
|
+
function getValue$1(object, key) {
|
|
11021
|
+
return object == null ? void 0 : object[key];
|
|
11022
|
+
}
|
|
11023
|
+
var _getValue = getValue$1;
|
|
11024
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
11025
|
+
function getNative$7(object, key) {
|
|
11026
|
+
var value = getValue(object, key);
|
|
11027
|
+
return baseIsNative(value) ? value : void 0;
|
|
11028
|
+
}
|
|
11029
|
+
var _getNative = getNative$7;
|
|
11030
|
+
var getNative$6 = _getNative, root$5 = _root;
|
|
11031
|
+
var Map$3 = getNative$6(root$5, "Map");
|
|
11032
|
+
var _Map = Map$3;
|
|
11033
|
+
var getNative$5 = _getNative;
|
|
11034
|
+
var nativeCreate$4 = getNative$5(Object, "create");
|
|
11035
|
+
var _nativeCreate = nativeCreate$4;
|
|
11036
|
+
var nativeCreate$3 = _nativeCreate;
|
|
11037
|
+
function hashClear$1() {
|
|
11038
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
11039
|
+
this.size = 0;
|
|
11040
|
+
}
|
|
11041
|
+
var _hashClear = hashClear$1;
|
|
11042
|
+
function hashDelete$1(key) {
|
|
11043
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
11044
|
+
this.size -= result ? 1 : 0;
|
|
11045
|
+
return result;
|
|
11046
|
+
}
|
|
11047
|
+
var _hashDelete = hashDelete$1;
|
|
11048
|
+
var nativeCreate$2 = _nativeCreate;
|
|
11049
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
11050
|
+
var objectProto$9 = Object.prototype;
|
|
11051
|
+
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
11052
|
+
function hashGet$1(key) {
|
|
11053
|
+
var data = this.__data__;
|
|
11054
|
+
if (nativeCreate$2) {
|
|
11055
|
+
var result = data[key];
|
|
11056
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
11057
|
+
}
|
|
11058
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : void 0;
|
|
11059
|
+
}
|
|
11060
|
+
var _hashGet = hashGet$1;
|
|
11061
|
+
var nativeCreate$1 = _nativeCreate;
|
|
11062
|
+
var objectProto$8 = Object.prototype;
|
|
11063
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
11064
|
+
function hashHas$1(key) {
|
|
11065
|
+
var data = this.__data__;
|
|
11066
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$6.call(data, key);
|
|
11067
|
+
}
|
|
11068
|
+
var _hashHas = hashHas$1;
|
|
11069
|
+
var nativeCreate = _nativeCreate;
|
|
11070
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
11071
|
+
function hashSet$1(key, value) {
|
|
11072
|
+
var data = this.__data__;
|
|
11073
|
+
this.size += this.has(key) ? 0 : 1;
|
|
11074
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
11075
|
+
return this;
|
|
11076
|
+
}
|
|
11077
|
+
var _hashSet = hashSet$1;
|
|
11078
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
11079
|
+
function Hash$1(entries) {
|
|
11080
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
11081
|
+
this.clear();
|
|
11082
|
+
while (++index < length) {
|
|
11083
|
+
var entry = entries[index];
|
|
11084
|
+
this.set(entry[0], entry[1]);
|
|
11085
|
+
}
|
|
11086
|
+
}
|
|
11087
|
+
Hash$1.prototype.clear = hashClear;
|
|
11088
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
11089
|
+
Hash$1.prototype.get = hashGet;
|
|
11090
|
+
Hash$1.prototype.has = hashHas;
|
|
11091
|
+
Hash$1.prototype.set = hashSet;
|
|
11092
|
+
var _Hash = Hash$1;
|
|
11093
|
+
var Hash = _Hash, ListCache$2 = _ListCache, Map$2 = _Map;
|
|
11094
|
+
function mapCacheClear$1() {
|
|
11095
|
+
this.size = 0;
|
|
11096
|
+
this.__data__ = {
|
|
11097
|
+
"hash": new Hash(),
|
|
11098
|
+
"map": new (Map$2 || ListCache$2)(),
|
|
11099
|
+
"string": new Hash()
|
|
11100
|
+
};
|
|
11101
|
+
}
|
|
11102
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
11103
|
+
function isKeyable$1(value) {
|
|
11104
|
+
var type = typeof value;
|
|
11105
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
11106
|
+
}
|
|
11107
|
+
var _isKeyable = isKeyable$1;
|
|
11108
|
+
var isKeyable = _isKeyable;
|
|
11109
|
+
function getMapData$4(map, key) {
|
|
11110
|
+
var data = map.__data__;
|
|
11111
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
11112
|
+
}
|
|
11113
|
+
var _getMapData = getMapData$4;
|
|
11114
|
+
var getMapData$3 = _getMapData;
|
|
11115
|
+
function mapCacheDelete$1(key) {
|
|
11116
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
11117
|
+
this.size -= result ? 1 : 0;
|
|
11118
|
+
return result;
|
|
11119
|
+
}
|
|
11120
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
11121
|
+
var getMapData$2 = _getMapData;
|
|
11122
|
+
function mapCacheGet$1(key) {
|
|
11123
|
+
return getMapData$2(this, key).get(key);
|
|
11124
|
+
}
|
|
11125
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
11126
|
+
var getMapData$1 = _getMapData;
|
|
11127
|
+
function mapCacheHas$1(key) {
|
|
11128
|
+
return getMapData$1(this, key).has(key);
|
|
11129
|
+
}
|
|
11130
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
11131
|
+
var getMapData = _getMapData;
|
|
11132
|
+
function mapCacheSet$1(key, value) {
|
|
11133
|
+
var data = getMapData(this, key), size = data.size;
|
|
11134
|
+
data.set(key, value);
|
|
11135
|
+
this.size += data.size == size ? 0 : 1;
|
|
11136
|
+
return this;
|
|
11137
|
+
}
|
|
11138
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
11139
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
11140
|
+
function MapCache$1(entries) {
|
|
11141
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
11142
|
+
this.clear();
|
|
11143
|
+
while (++index < length) {
|
|
11144
|
+
var entry = entries[index];
|
|
11145
|
+
this.set(entry[0], entry[1]);
|
|
11146
|
+
}
|
|
11147
|
+
}
|
|
11148
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
11149
|
+
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
11150
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
11151
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
11152
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
11153
|
+
var _MapCache = MapCache$1;
|
|
11154
|
+
var ListCache$1 = _ListCache, Map$1 = _Map, MapCache = _MapCache;
|
|
11155
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
11156
|
+
function stackSet$1(key, value) {
|
|
11157
|
+
var data = this.__data__;
|
|
11158
|
+
if (data instanceof ListCache$1) {
|
|
11159
|
+
var pairs = data.__data__;
|
|
11160
|
+
if (!Map$1 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
11161
|
+
pairs.push([key, value]);
|
|
11162
|
+
this.size = ++data.size;
|
|
11163
|
+
return this;
|
|
11164
|
+
}
|
|
11165
|
+
data = this.__data__ = new MapCache(pairs);
|
|
11166
|
+
}
|
|
11167
|
+
data.set(key, value);
|
|
11168
|
+
this.size = data.size;
|
|
11169
|
+
return this;
|
|
11170
|
+
}
|
|
11171
|
+
var _stackSet = stackSet$1;
|
|
11172
|
+
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
11173
|
+
function Stack$1(entries) {
|
|
11174
|
+
var data = this.__data__ = new ListCache(entries);
|
|
11175
|
+
this.size = data.size;
|
|
11176
|
+
}
|
|
11177
|
+
Stack$1.prototype.clear = stackClear;
|
|
11178
|
+
Stack$1.prototype["delete"] = stackDelete;
|
|
11179
|
+
Stack$1.prototype.get = stackGet;
|
|
11180
|
+
Stack$1.prototype.has = stackHas;
|
|
11181
|
+
Stack$1.prototype.set = stackSet;
|
|
11182
|
+
var _Stack = Stack$1;
|
|
11183
|
+
function arrayEach$1(array, iteratee) {
|
|
11184
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
11185
|
+
while (++index < length) {
|
|
11186
|
+
if (iteratee(array[index], index, array) === false) {
|
|
11187
|
+
break;
|
|
11188
|
+
}
|
|
11189
|
+
}
|
|
11190
|
+
return array;
|
|
11191
|
+
}
|
|
11192
|
+
var _arrayEach = arrayEach$1;
|
|
11193
|
+
var getNative$4 = _getNative;
|
|
11194
|
+
var defineProperty$1 = function() {
|
|
11195
|
+
try {
|
|
11196
|
+
var func = getNative$4(Object, "defineProperty");
|
|
11197
|
+
func({}, "", {});
|
|
11198
|
+
return func;
|
|
11199
|
+
} catch (e) {
|
|
11200
|
+
}
|
|
11201
|
+
}();
|
|
11202
|
+
var _defineProperty = defineProperty$1;
|
|
11203
|
+
var defineProperty = _defineProperty;
|
|
11204
|
+
function baseAssignValue$2(object, key, value) {
|
|
11205
|
+
if (key == "__proto__" && defineProperty) {
|
|
11206
|
+
defineProperty(object, key, {
|
|
11207
|
+
"configurable": true,
|
|
11208
|
+
"enumerable": true,
|
|
11209
|
+
"value": value,
|
|
11210
|
+
"writable": true
|
|
11211
|
+
});
|
|
11212
|
+
} else {
|
|
11213
|
+
object[key] = value;
|
|
11214
|
+
}
|
|
11215
|
+
}
|
|
11216
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
11217
|
+
var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
|
11218
|
+
var objectProto$7 = Object.prototype;
|
|
11219
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
11220
|
+
function assignValue$2(object, key, value) {
|
|
11221
|
+
var objValue = object[key];
|
|
11222
|
+
if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
11223
|
+
baseAssignValue$1(object, key, value);
|
|
11224
|
+
}
|
|
11225
|
+
}
|
|
11226
|
+
var _assignValue = assignValue$2;
|
|
11227
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
11228
|
+
function copyObject$4(source, props, object, customizer) {
|
|
11229
|
+
var isNew = !object;
|
|
11230
|
+
object || (object = {});
|
|
11231
|
+
var index = -1, length = props.length;
|
|
11232
|
+
while (++index < length) {
|
|
11233
|
+
var key = props[index];
|
|
11234
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
11235
|
+
if (newValue === void 0) {
|
|
11236
|
+
newValue = source[key];
|
|
11237
|
+
}
|
|
11238
|
+
if (isNew) {
|
|
11239
|
+
baseAssignValue(object, key, newValue);
|
|
11240
|
+
} else {
|
|
11241
|
+
assignValue$1(object, key, newValue);
|
|
11242
|
+
}
|
|
11243
|
+
}
|
|
11244
|
+
return object;
|
|
11245
|
+
}
|
|
11246
|
+
var _copyObject = copyObject$4;
|
|
11247
|
+
function baseTimes$1(n, iteratee) {
|
|
11248
|
+
var index = -1, result = Array(n);
|
|
11249
|
+
while (++index < n) {
|
|
11250
|
+
result[index] = iteratee(index);
|
|
11251
|
+
}
|
|
11252
|
+
return result;
|
|
11253
|
+
}
|
|
11254
|
+
var _baseTimes = baseTimes$1;
|
|
11255
|
+
function isObjectLike$5(value) {
|
|
11256
|
+
return value != null && typeof value == "object";
|
|
11257
|
+
}
|
|
11258
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
11259
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
|
|
11260
|
+
var argsTag$2 = "[object Arguments]";
|
|
11261
|
+
function baseIsArguments$1(value) {
|
|
11262
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$2;
|
|
11263
|
+
}
|
|
11264
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
11265
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1;
|
|
11266
|
+
var objectProto$6 = Object.prototype;
|
|
11267
|
+
var hasOwnProperty$4 = objectProto$6.hasOwnProperty;
|
|
11268
|
+
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
11269
|
+
var isArguments$1 = baseIsArguments(/* @__PURE__ */ function() {
|
|
11270
|
+
return arguments;
|
|
11271
|
+
}()) ? baseIsArguments : function(value) {
|
|
11272
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
11273
|
+
};
|
|
11274
|
+
var isArguments_1 = isArguments$1;
|
|
11275
|
+
var isArray$3 = Array.isArray;
|
|
11276
|
+
var isArray_1 = isArray$3;
|
|
11277
|
+
var isBuffer$2 = { exports: {} };
|
|
11278
|
+
function stubFalse() {
|
|
11279
|
+
return false;
|
|
11280
|
+
}
|
|
11281
|
+
var stubFalse_1 = stubFalse;
|
|
11282
|
+
isBuffer$2.exports;
|
|
11283
|
+
(function(module, exports) {
|
|
11284
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
11285
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
11286
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
11287
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
11288
|
+
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
11289
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
11290
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
11291
|
+
module.exports = isBuffer2;
|
|
11292
|
+
})(isBuffer$2, isBuffer$2.exports);
|
|
11293
|
+
var isBufferExports = isBuffer$2.exports;
|
|
11294
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
11295
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
11296
|
+
function isIndex$1(value, length) {
|
|
11297
|
+
var type = typeof value;
|
|
11298
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
11299
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
11300
|
+
}
|
|
11301
|
+
var _isIndex = isIndex$1;
|
|
11302
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
11303
|
+
function isLength$2(value) {
|
|
11304
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
11305
|
+
}
|
|
11306
|
+
var isLength_1 = isLength$2;
|
|
11307
|
+
var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$2 = isObjectLike_1;
|
|
11308
|
+
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]";
|
|
11309
|
+
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]";
|
|
11310
|
+
var typedArrayTags = {};
|
|
11311
|
+
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;
|
|
11312
|
+
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;
|
|
11313
|
+
function baseIsTypedArray$1(value) {
|
|
11314
|
+
return isObjectLike$2(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
11315
|
+
}
|
|
11316
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
11317
|
+
function baseUnary$3(func) {
|
|
11318
|
+
return function(value) {
|
|
11319
|
+
return func(value);
|
|
11320
|
+
};
|
|
11321
|
+
}
|
|
11322
|
+
var _baseUnary = baseUnary$3;
|
|
11323
|
+
var _nodeUtil = { exports: {} };
|
|
11324
|
+
_nodeUtil.exports;
|
|
11325
|
+
(function(module, exports) {
|
|
11326
|
+
var freeGlobal2 = _freeGlobal;
|
|
11327
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
11328
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
11329
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
11330
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
11331
|
+
var nodeUtil2 = function() {
|
|
11332
|
+
try {
|
|
11333
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
11334
|
+
if (types) {
|
|
11335
|
+
return types;
|
|
11336
|
+
}
|
|
11337
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
11338
|
+
} catch (e) {
|
|
11339
|
+
}
|
|
11340
|
+
}();
|
|
11341
|
+
module.exports = nodeUtil2;
|
|
11342
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
11343
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
11344
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtilExports;
|
|
11345
|
+
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
11346
|
+
var isTypedArray$1 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
11347
|
+
var isTypedArray_1 = isTypedArray$1;
|
|
11348
|
+
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$2 = isArray_1, isBuffer$1 = isBufferExports, isIndex = _isIndex, isTypedArray = isTypedArray_1;
|
|
11349
|
+
var objectProto$5 = Object.prototype;
|
|
11350
|
+
var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
|
|
11351
|
+
function arrayLikeKeys$2(value, inherited) {
|
|
11352
|
+
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;
|
|
11353
|
+
for (var key in value) {
|
|
11354
|
+
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
11355
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
11356
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
11357
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
11358
|
+
isIndex(key, length)))) {
|
|
11359
|
+
result.push(key);
|
|
11360
|
+
}
|
|
11361
|
+
}
|
|
11362
|
+
return result;
|
|
11363
|
+
}
|
|
11364
|
+
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
11365
|
+
var objectProto$4 = Object.prototype;
|
|
11366
|
+
function isPrototype$3(value) {
|
|
11367
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$4;
|
|
11368
|
+
return value === proto;
|
|
11369
|
+
}
|
|
11370
|
+
var _isPrototype = isPrototype$3;
|
|
11371
|
+
function overArg$2(func, transform) {
|
|
11372
|
+
return function(arg) {
|
|
11373
|
+
return func(transform(arg));
|
|
11374
|
+
};
|
|
11375
|
+
}
|
|
11376
|
+
var _overArg = overArg$2;
|
|
11377
|
+
var overArg$1 = _overArg;
|
|
11378
|
+
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
11379
|
+
var _nativeKeys = nativeKeys$1;
|
|
11380
|
+
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
11381
|
+
var objectProto$3 = Object.prototype;
|
|
11382
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
11383
|
+
function baseKeys$1(object) {
|
|
11384
|
+
if (!isPrototype$2(object)) {
|
|
11385
|
+
return nativeKeys(object);
|
|
11386
|
+
}
|
|
11387
|
+
var result = [];
|
|
11388
|
+
for (var key in Object(object)) {
|
|
11389
|
+
if (hasOwnProperty$2.call(object, key) && key != "constructor") {
|
|
11390
|
+
result.push(key);
|
|
11391
|
+
}
|
|
11392
|
+
}
|
|
11393
|
+
return result;
|
|
11394
|
+
}
|
|
11395
|
+
var _baseKeys = baseKeys$1;
|
|
11396
|
+
var isFunction = isFunction_1, isLength = isLength_1;
|
|
11397
|
+
function isArrayLike$2(value) {
|
|
11398
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
11399
|
+
}
|
|
11400
|
+
var isArrayLike_1 = isArrayLike$2;
|
|
11401
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
|
|
11402
|
+
function keys$3(object) {
|
|
11403
|
+
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
11404
|
+
}
|
|
11405
|
+
var keys_1 = keys$3;
|
|
11406
|
+
var copyObject$3 = _copyObject, keys$2 = keys_1;
|
|
11407
|
+
function baseAssign$1(object, source) {
|
|
11408
|
+
return object && copyObject$3(source, keys$2(source), object);
|
|
11409
|
+
}
|
|
11410
|
+
var _baseAssign = baseAssign$1;
|
|
11411
|
+
function nativeKeysIn$1(object) {
|
|
11412
|
+
var result = [];
|
|
11413
|
+
if (object != null) {
|
|
11414
|
+
for (var key in Object(object)) {
|
|
11415
|
+
result.push(key);
|
|
11416
|
+
}
|
|
11417
|
+
}
|
|
11418
|
+
return result;
|
|
11419
|
+
}
|
|
11420
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
11421
|
+
var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
11422
|
+
var objectProto$2 = Object.prototype;
|
|
11423
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
11424
|
+
function baseKeysIn$1(object) {
|
|
11425
|
+
if (!isObject$2(object)) {
|
|
11426
|
+
return nativeKeysIn(object);
|
|
11427
|
+
}
|
|
11428
|
+
var isProto = isPrototype$1(object), result = [];
|
|
11429
|
+
for (var key in object) {
|
|
11430
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
|
|
11431
|
+
result.push(key);
|
|
11432
|
+
}
|
|
11433
|
+
}
|
|
11434
|
+
return result;
|
|
11435
|
+
}
|
|
11436
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
11437
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
11438
|
+
function keysIn$3(object) {
|
|
11439
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
11440
|
+
}
|
|
11441
|
+
var keysIn_1 = keysIn$3;
|
|
11442
|
+
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
11443
|
+
function baseAssignIn$1(object, source) {
|
|
11444
|
+
return object && copyObject$2(source, keysIn$2(source), object);
|
|
11445
|
+
}
|
|
11446
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
11447
|
+
var _cloneBuffer = { exports: {} };
|
|
11448
|
+
_cloneBuffer.exports;
|
|
11449
|
+
(function(module, exports) {
|
|
11450
|
+
var root2 = _root;
|
|
11451
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
11452
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
11453
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
11454
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
11455
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
11456
|
+
if (isDeep) {
|
|
11457
|
+
return buffer.slice();
|
|
11458
|
+
}
|
|
11459
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
11460
|
+
buffer.copy(result);
|
|
11461
|
+
return result;
|
|
11462
|
+
}
|
|
11463
|
+
module.exports = cloneBuffer2;
|
|
11464
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
11465
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
11466
|
+
function copyArray$1(source, array) {
|
|
11467
|
+
var index = -1, length = source.length;
|
|
11468
|
+
array || (array = Array(length));
|
|
11469
|
+
while (++index < length) {
|
|
11470
|
+
array[index] = source[index];
|
|
11471
|
+
}
|
|
11472
|
+
return array;
|
|
11473
|
+
}
|
|
11474
|
+
var _copyArray = copyArray$1;
|
|
11475
|
+
function arrayFilter$1(array, predicate) {
|
|
11476
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
11477
|
+
while (++index < length) {
|
|
11478
|
+
var value = array[index];
|
|
11479
|
+
if (predicate(value, index, array)) {
|
|
11480
|
+
result[resIndex++] = value;
|
|
11481
|
+
}
|
|
11482
|
+
}
|
|
11483
|
+
return result;
|
|
11484
|
+
}
|
|
11485
|
+
var _arrayFilter = arrayFilter$1;
|
|
11486
|
+
function stubArray$2() {
|
|
11487
|
+
return [];
|
|
11488
|
+
}
|
|
11489
|
+
var stubArray_1 = stubArray$2;
|
|
11490
|
+
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
11491
|
+
var objectProto$1 = Object.prototype;
|
|
11492
|
+
var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
|
|
11493
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
11494
|
+
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
11495
|
+
if (object == null) {
|
|
11496
|
+
return [];
|
|
11497
|
+
}
|
|
11498
|
+
object = Object(object);
|
|
11499
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
11500
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
11501
|
+
});
|
|
11502
|
+
};
|
|
11503
|
+
var _getSymbols = getSymbols$3;
|
|
11504
|
+
var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
|
|
11505
|
+
function copySymbols$1(source, object) {
|
|
11506
|
+
return copyObject$1(source, getSymbols$2(source), object);
|
|
11507
|
+
}
|
|
11508
|
+
var _copySymbols = copySymbols$1;
|
|
11509
|
+
function arrayPush$2(array, values) {
|
|
11510
|
+
var index = -1, length = values.length, offset = array.length;
|
|
11511
|
+
while (++index < length) {
|
|
11512
|
+
array[offset + index] = values[index];
|
|
11513
|
+
}
|
|
11514
|
+
return array;
|
|
11515
|
+
}
|
|
11516
|
+
var _arrayPush = arrayPush$2;
|
|
11517
|
+
var overArg = _overArg;
|
|
11518
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
11519
|
+
var _getPrototype = getPrototype$2;
|
|
11520
|
+
var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
11521
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
11522
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
11523
|
+
var result = [];
|
|
11524
|
+
while (object) {
|
|
11525
|
+
arrayPush$1(result, getSymbols$1(object));
|
|
11526
|
+
object = getPrototype$1(object);
|
|
11527
|
+
}
|
|
11528
|
+
return result;
|
|
11529
|
+
};
|
|
11530
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
11531
|
+
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
11532
|
+
function copySymbolsIn$1(source, object) {
|
|
11533
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
11534
|
+
}
|
|
11535
|
+
var _copySymbolsIn = copySymbolsIn$1;
|
|
11536
|
+
var arrayPush = _arrayPush, isArray$1 = isArray_1;
|
|
11537
|
+
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
11538
|
+
var result = keysFunc(object);
|
|
11539
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
11540
|
+
}
|
|
11541
|
+
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
11542
|
+
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$1 = keys_1;
|
|
11543
|
+
function getAllKeys$1(object) {
|
|
11544
|
+
return baseGetAllKeys$1(object, keys$1, getSymbols);
|
|
11545
|
+
}
|
|
11546
|
+
var _getAllKeys = getAllKeys$1;
|
|
11547
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
11548
|
+
function getAllKeysIn$1(object) {
|
|
11549
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
11550
|
+
}
|
|
11551
|
+
var _getAllKeysIn = getAllKeysIn$1;
|
|
11552
|
+
var getNative$3 = _getNative, root$4 = _root;
|
|
11553
|
+
var DataView$1 = getNative$3(root$4, "DataView");
|
|
11554
|
+
var _DataView = DataView$1;
|
|
11555
|
+
var getNative$2 = _getNative, root$3 = _root;
|
|
11556
|
+
var Promise$2 = getNative$2(root$3, "Promise");
|
|
11557
|
+
var _Promise = Promise$2;
|
|
11558
|
+
var getNative$1 = _getNative, root$2 = _root;
|
|
11559
|
+
var Set$1 = getNative$1(root$2, "Set");
|
|
11560
|
+
var _Set = Set$1;
|
|
11561
|
+
var getNative = _getNative, root$1 = _root;
|
|
11562
|
+
var WeakMap$1 = getNative(root$1, "WeakMap");
|
|
11563
|
+
var _WeakMap = WeakMap$1;
|
|
11564
|
+
var DataView = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
|
|
11565
|
+
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
11566
|
+
var dataViewTag$2 = "[object DataView]";
|
|
11567
|
+
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
11568
|
+
var getTag$3 = baseGetTag;
|
|
11569
|
+
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) {
|
|
11570
|
+
getTag$3 = function(value) {
|
|
11571
|
+
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
11572
|
+
if (ctorString) {
|
|
11573
|
+
switch (ctorString) {
|
|
11574
|
+
case dataViewCtorString:
|
|
11575
|
+
return dataViewTag$2;
|
|
11576
|
+
case mapCtorString:
|
|
11577
|
+
return mapTag$3;
|
|
11578
|
+
case promiseCtorString:
|
|
11579
|
+
return promiseTag;
|
|
11580
|
+
case setCtorString:
|
|
11581
|
+
return setTag$3;
|
|
11582
|
+
case weakMapCtorString:
|
|
11583
|
+
return weakMapTag$1;
|
|
11584
|
+
}
|
|
11585
|
+
}
|
|
11586
|
+
return result;
|
|
11587
|
+
};
|
|
11588
|
+
}
|
|
11589
|
+
var _getTag = getTag$3;
|
|
11590
|
+
var objectProto = Object.prototype;
|
|
11591
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
11592
|
+
function initCloneArray$1(array) {
|
|
11593
|
+
var length = array.length, result = new array.constructor(length);
|
|
11594
|
+
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
11595
|
+
result.index = array.index;
|
|
11596
|
+
result.input = array.input;
|
|
11597
|
+
}
|
|
11598
|
+
return result;
|
|
11599
|
+
}
|
|
11600
|
+
var _initCloneArray = initCloneArray$1;
|
|
11601
|
+
var root = _root;
|
|
11602
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
11603
|
+
var _Uint8Array = Uint8Array$1;
|
|
11604
|
+
var Uint8Array = _Uint8Array;
|
|
11605
|
+
function cloneArrayBuffer$3(arrayBuffer) {
|
|
11606
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
11607
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
11608
|
+
return result;
|
|
11609
|
+
}
|
|
11610
|
+
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
11611
|
+
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
11612
|
+
function cloneDataView$1(dataView, isDeep) {
|
|
11613
|
+
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
11614
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
11615
|
+
}
|
|
11616
|
+
var _cloneDataView = cloneDataView$1;
|
|
11617
|
+
var reFlags = /\w*$/;
|
|
11618
|
+
function cloneRegExp$1(regexp) {
|
|
11619
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
11620
|
+
result.lastIndex = regexp.lastIndex;
|
|
11621
|
+
return result;
|
|
11622
|
+
}
|
|
11623
|
+
var _cloneRegExp = cloneRegExp$1;
|
|
11624
|
+
var Symbol$1 = _Symbol;
|
|
11625
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
11626
|
+
function cloneSymbol$1(symbol) {
|
|
11627
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
11628
|
+
}
|
|
11629
|
+
var _cloneSymbol = cloneSymbol$1;
|
|
11630
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
11631
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
11632
|
+
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
11633
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
11634
|
+
}
|
|
11635
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
11636
|
+
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
11637
|
+
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]";
|
|
11638
|
+
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]";
|
|
11639
|
+
function initCloneByTag$1(object, tag, isDeep) {
|
|
11640
|
+
var Ctor = object.constructor;
|
|
11641
|
+
switch (tag) {
|
|
11642
|
+
case arrayBufferTag$1:
|
|
11643
|
+
return cloneArrayBuffer(object);
|
|
11644
|
+
case boolTag$1:
|
|
11645
|
+
case dateTag$1:
|
|
11646
|
+
return new Ctor(+object);
|
|
11647
|
+
case dataViewTag$1:
|
|
11648
|
+
return cloneDataView(object, isDeep);
|
|
11649
|
+
case float32Tag$1:
|
|
11650
|
+
case float64Tag$1:
|
|
11651
|
+
case int8Tag$1:
|
|
11652
|
+
case int16Tag$1:
|
|
11653
|
+
case int32Tag$1:
|
|
11654
|
+
case uint8Tag$1:
|
|
11655
|
+
case uint8ClampedTag$1:
|
|
11656
|
+
case uint16Tag$1:
|
|
11657
|
+
case uint32Tag$1:
|
|
11658
|
+
return cloneTypedArray(object, isDeep);
|
|
11659
|
+
case mapTag$2:
|
|
11660
|
+
return new Ctor();
|
|
11661
|
+
case numberTag$1:
|
|
11662
|
+
case stringTag$1:
|
|
11663
|
+
return new Ctor(object);
|
|
11664
|
+
case regexpTag$1:
|
|
11665
|
+
return cloneRegExp(object);
|
|
11666
|
+
case setTag$2:
|
|
11667
|
+
return new Ctor();
|
|
11668
|
+
case symbolTag$1:
|
|
11669
|
+
return cloneSymbol(object);
|
|
11670
|
+
}
|
|
11671
|
+
}
|
|
11672
|
+
var _initCloneByTag = initCloneByTag$1;
|
|
11673
|
+
var isObject$1 = isObject_1;
|
|
11674
|
+
var objectCreate = Object.create;
|
|
11675
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
11676
|
+
function object() {
|
|
11677
|
+
}
|
|
11678
|
+
return function(proto) {
|
|
11679
|
+
if (!isObject$1(proto)) {
|
|
11680
|
+
return {};
|
|
11681
|
+
}
|
|
11682
|
+
if (objectCreate) {
|
|
11683
|
+
return objectCreate(proto);
|
|
11684
|
+
}
|
|
11685
|
+
object.prototype = proto;
|
|
11686
|
+
var result = new object();
|
|
11687
|
+
object.prototype = void 0;
|
|
11688
|
+
return result;
|
|
11689
|
+
};
|
|
11690
|
+
}();
|
|
11691
|
+
var _baseCreate = baseCreate$1;
|
|
11692
|
+
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
11693
|
+
function initCloneObject$1(object) {
|
|
11694
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
11695
|
+
}
|
|
11696
|
+
var _initCloneObject = initCloneObject$1;
|
|
11697
|
+
var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
|
|
11698
|
+
var mapTag$1 = "[object Map]";
|
|
11699
|
+
function baseIsMap$1(value) {
|
|
11700
|
+
return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
|
|
11701
|
+
}
|
|
11702
|
+
var _baseIsMap = baseIsMap$1;
|
|
11703
|
+
var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtilExports;
|
|
11704
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
11705
|
+
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
11706
|
+
var isMap_1 = isMap$1;
|
|
11707
|
+
var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
|
|
11708
|
+
var setTag$1 = "[object Set]";
|
|
11709
|
+
function baseIsSet$1(value) {
|
|
11710
|
+
return isObjectLike(value) && getTag$1(value) == setTag$1;
|
|
11711
|
+
}
|
|
11712
|
+
var _baseIsSet = baseIsSet$1;
|
|
11713
|
+
var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
11714
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
11715
|
+
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
11716
|
+
var isSet_1 = isSet$1;
|
|
11717
|
+
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;
|
|
11718
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
11719
|
+
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]";
|
|
11720
|
+
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]";
|
|
11721
|
+
var cloneableTags = {};
|
|
11722
|
+
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;
|
|
11723
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
11724
|
+
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
11725
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
11726
|
+
if (customizer) {
|
|
11727
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
11728
|
+
}
|
|
11729
|
+
if (result !== void 0) {
|
|
11730
|
+
return result;
|
|
11731
|
+
}
|
|
11732
|
+
if (!isObject(value)) {
|
|
11733
|
+
return value;
|
|
11734
|
+
}
|
|
11735
|
+
var isArr = isArray(value);
|
|
11736
|
+
if (isArr) {
|
|
11737
|
+
result = initCloneArray(value);
|
|
11738
|
+
if (!isDeep) {
|
|
11739
|
+
return copyArray(value, result);
|
|
11740
|
+
}
|
|
11741
|
+
} else {
|
|
11742
|
+
var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
|
11743
|
+
if (isBuffer(value)) {
|
|
11744
|
+
return cloneBuffer(value, isDeep);
|
|
11745
|
+
}
|
|
11746
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
11747
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
11748
|
+
if (!isDeep) {
|
|
11749
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
11750
|
+
}
|
|
11751
|
+
} else {
|
|
11752
|
+
if (!cloneableTags[tag]) {
|
|
11753
|
+
return object ? value : {};
|
|
11754
|
+
}
|
|
11755
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
11756
|
+
}
|
|
11757
|
+
}
|
|
11758
|
+
stack || (stack = new Stack());
|
|
11759
|
+
var stacked = stack.get(value);
|
|
11760
|
+
if (stacked) {
|
|
11761
|
+
return stacked;
|
|
11762
|
+
}
|
|
11763
|
+
stack.set(value, result);
|
|
11764
|
+
if (isSet(value)) {
|
|
11765
|
+
value.forEach(function(subValue) {
|
|
11766
|
+
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
11767
|
+
});
|
|
11768
|
+
} else if (isMap(value)) {
|
|
11769
|
+
value.forEach(function(subValue, key2) {
|
|
11770
|
+
result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
11771
|
+
});
|
|
11772
|
+
}
|
|
11773
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
|
11774
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
11775
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
11776
|
+
if (props) {
|
|
11777
|
+
key2 = subValue;
|
|
11778
|
+
subValue = value[key2];
|
|
11779
|
+
}
|
|
11780
|
+
assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
11781
|
+
});
|
|
11782
|
+
return result;
|
|
11783
|
+
}
|
|
11784
|
+
var _baseClone = baseClone$1;
|
|
11785
|
+
var baseClone = _baseClone;
|
|
11786
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
11787
|
+
function cloneDeep(value) {
|
|
11788
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
11789
|
+
}
|
|
11790
|
+
var cloneDeep_1 = cloneDeep;
|
|
11791
|
+
const cloneDeep$1 = /* @__PURE__ */ getDefaultExportFromCjs(cloneDeep_1);
|
|
10798
11792
|
const Navigation = () => {
|
|
10799
11793
|
const [navigations, setNavigations] = useState([]);
|
|
10800
11794
|
const [modalType, setModalType] = useState("");
|
|
10801
11795
|
const [selectedNavigation, setSelectedNavigation] = useState();
|
|
10802
11796
|
const [navigationItems, setNavigationItems] = useState();
|
|
10803
|
-
const
|
|
11797
|
+
const initialNavigationItemsRef = useRef(null);
|
|
10804
11798
|
const [actionItem, setActionItem] = useState();
|
|
10805
11799
|
const [parentId, setParentId] = useState();
|
|
10806
11800
|
const { getNavigation, updateNavigationItemStructure } = useApi();
|
|
10807
11801
|
const [isSavingNavigation, setIsSavingNavigation] = useState(false);
|
|
10808
|
-
const [loading, setLoading] = useState(
|
|
11802
|
+
const [loading, setLoading] = useState(true);
|
|
10809
11803
|
const [projected, setProjected] = useState(null);
|
|
10810
11804
|
const [activeItem, setActiveItem] = useState();
|
|
10811
11805
|
const [activeId, setActiveId] = useState(null);
|
|
@@ -10814,6 +11808,8 @@ const Navigation = () => {
|
|
|
10814
11808
|
const { formatMessage } = useIntl();
|
|
10815
11809
|
const { toggleNotification } = useNotification();
|
|
10816
11810
|
const { get } = useFetchClient();
|
|
11811
|
+
const { navigationId } = useParams();
|
|
11812
|
+
const navigate = useNavigate();
|
|
10817
11813
|
async function loadNavigations() {
|
|
10818
11814
|
try {
|
|
10819
11815
|
const data = await getNavigation({ variant: "flat" });
|
|
@@ -10836,8 +11832,22 @@ const Navigation = () => {
|
|
|
10836
11832
|
return { ...nav, items: updatedItems };
|
|
10837
11833
|
})
|
|
10838
11834
|
);
|
|
11835
|
+
let selectedNav = updatedNavigations.find((nav) => nav.documentId === navigationId);
|
|
11836
|
+
if (!selectedNav && navigationId) {
|
|
11837
|
+
selectedNav = updatedNavigations[0];
|
|
11838
|
+
toggleNotification({
|
|
11839
|
+
type: "danger",
|
|
11840
|
+
message: formatMessage({
|
|
11841
|
+
id: getTranslation("notification.navigation.notFound"),
|
|
11842
|
+
defaultMessage: "Navigation not found. Redirected to navigation"
|
|
11843
|
+
}) + ": " + updatedNavigations[0]?.name
|
|
11844
|
+
});
|
|
11845
|
+
navigate(`/plugins/webatlas/navigation/${updatedNavigations[0]?.documentId}`);
|
|
11846
|
+
}
|
|
10839
11847
|
setNavigations(updatedNavigations);
|
|
10840
|
-
setSelectedNavigation(
|
|
11848
|
+
setSelectedNavigation(selectedNav);
|
|
11849
|
+
setNavigationItems(selectedNav?.items || []);
|
|
11850
|
+
initialNavigationItemsRef.current = cloneDeep$1(selectedNav?.items) || null;
|
|
10841
11851
|
} catch (error) {
|
|
10842
11852
|
console.error("Error fetching navigations: ", error);
|
|
10843
11853
|
toggleNotification({
|
|
@@ -10851,26 +11861,23 @@ const Navigation = () => {
|
|
|
10851
11861
|
}
|
|
10852
11862
|
useEffect(() => {
|
|
10853
11863
|
async function fetchNavigations() {
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
11864
|
+
if (!navigationId) {
|
|
11865
|
+
const navigations2 = await getNavigation({ documentId: navigationId, variant: "namesOnly" });
|
|
11866
|
+
navigations2 && navigate(`/plugins/webatlas/navigation/${navigations2[0]?.documentId}`);
|
|
11867
|
+
} else {
|
|
11868
|
+
setLoading(true);
|
|
11869
|
+
await loadNavigations();
|
|
11870
|
+
setLoading(false);
|
|
11871
|
+
}
|
|
10857
11872
|
}
|
|
10858
11873
|
fetchNavigations();
|
|
10859
|
-
}, []);
|
|
11874
|
+
}, [navigationId]);
|
|
10860
11875
|
useEffect(() => {
|
|
10861
11876
|
if (modalType === "NavOverview" || modalType === "") {
|
|
10862
11877
|
setActionItem(void 0);
|
|
10863
11878
|
setParentId(void 0);
|
|
10864
11879
|
}
|
|
10865
11880
|
}, [modalType]);
|
|
10866
|
-
useEffect(() => {
|
|
10867
|
-
setNavigationItems(selectedNavigation?.items || []);
|
|
10868
|
-
}, [selectedNavigation]);
|
|
10869
|
-
useEffect(() => {
|
|
10870
|
-
if (selectedNavigation?.items && !initialNavigationItems) {
|
|
10871
|
-
setInitialNavigationItems(navigationItems);
|
|
10872
|
-
}
|
|
10873
|
-
}, [navigationItems]);
|
|
10874
11881
|
useEffect(() => {
|
|
10875
11882
|
if (!activeId || !navigationItems) return;
|
|
10876
11883
|
const item = navigationItems.find(({ id }) => id === activeId);
|
|
@@ -10962,7 +11969,7 @@ const Navigation = () => {
|
|
|
10962
11969
|
) : null;
|
|
10963
11970
|
setProjected(projection);
|
|
10964
11971
|
}, [activeId, overId, offsetLeft, navigationItems]);
|
|
10965
|
-
if (loading) {
|
|
11972
|
+
if (loading || !navigationId) {
|
|
10966
11973
|
return /* @__PURE__ */ jsx(PageWrapper, { navigations, loading, children: /* @__PURE__ */ jsx(FullLoader, {}) });
|
|
10967
11974
|
}
|
|
10968
11975
|
return /* @__PURE__ */ jsx(ModalContext.Provider, { value: { modalType, setModalType }, children: /* @__PURE__ */ jsxs(SelectedNavigationContext.Provider, { value: { selectedNavigation, setSelectedNavigation }, children: [
|
|
@@ -10978,6 +11985,7 @@ const Navigation = () => {
|
|
|
10978
11985
|
onClick: () => saveNavigation(),
|
|
10979
11986
|
loading: isSavingNavigation,
|
|
10980
11987
|
variant: "primary",
|
|
11988
|
+
disabled: JSON.stringify(navigationItems) === JSON.stringify(initialNavigationItemsRef.current),
|
|
10981
11989
|
children: formatMessage({
|
|
10982
11990
|
id: getTranslation("save"),
|
|
10983
11991
|
defaultMessage: "Save"
|
|
@@ -11031,7 +12039,7 @@ const Navigation = () => {
|
|
|
11031
12039
|
defaultMessage: "Create new navigation"
|
|
11032
12040
|
}) })
|
|
11033
12041
|
] }),
|
|
11034
|
-
navigationItems?.length === 0 && /* @__PURE__ */ jsxs(Center, { height: 400, children: [
|
|
12042
|
+
navigations && navigationItems?.length === 0 && /* @__PURE__ */ jsxs(Center, { height: 400, children: [
|
|
11035
12043
|
/* @__PURE__ */ jsx(EmptyBox, { msg: "Your navigation is empty..." }),
|
|
11036
12044
|
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: () => setModalType("ItemCreate"), children: formatMessage({
|
|
11037
12045
|
id: getTranslation("navigation.page.createNewItem"),
|
|
@@ -11143,6 +12151,12 @@ const Navigation = () => {
|
|
|
11143
12151
|
)
|
|
11144
12152
|
] }) });
|
|
11145
12153
|
};
|
|
12154
|
+
const App = () => {
|
|
12155
|
+
return /* @__PURE__ */ jsxs(Routes, { children: [
|
|
12156
|
+
/* @__PURE__ */ jsx(Route, { path: "/", element: /* @__PURE__ */ jsx(Navigation, {}) }),
|
|
12157
|
+
/* @__PURE__ */ jsx(Route, { path: "/:navigationId", element: /* @__PURE__ */ jsx(Navigation, {}) })
|
|
12158
|
+
] });
|
|
12159
|
+
};
|
|
11146
12160
|
export {
|
|
11147
|
-
|
|
12161
|
+
App as default
|
|
11148
12162
|
};
|