@mattisvensson/strapi-plugin-webatlas 0.2.0 → 0.2.1

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.
@@ -4,13 +4,13 @@ import React__default, { useContext, useRef, useCallback, useDebugValue, useMemo
4
4
  import { ArrowLeft, Eye, EyeStriked, WarningCircle, Filter, CaretDown, Check } from "@strapi/icons";
5
5
  import { Link, Alert, Typography, Box, Flex, useCallbackRef, useComposedRefs, Field, Toggle, Checkbox, DatePicker, DateTimePicker, TextInput, SingleSelect, SingleSelectOption, JSONInput, NumberInput, Textarea, TimePicker, Popover, Button, MultiSelect, MultiSelectOption, Accordion } from "@strapi/design-system";
6
6
  import "react-dom/client";
7
- import { c as commonjsGlobal, g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./_commonjsHelpers-BxmBWJD2.mjs";
7
+ import { c as commonjsGlobal, g as getAugmentedNamespace, a as getDefaultExportFromCjs, _ as _baseConvert, r as requirePlaceholder } from "./_baseConvert-C2SW1VHq.mjs";
8
8
  import { useLocation, useNavigate, NavLink } from "react-router-dom";
9
9
  import { useIntl } from "react-intl";
10
10
  import "@strapi/icons/symbols";
11
11
  import ReactDOM__default, { unstable_batchedUpdates as unstable_batchedUpdates$1 } from "react-dom";
12
12
  import { createGlobalStyle, styled } from "styled-components";
13
- import { _ as _extends$4, b as usePluginConfig, c as useAllContentTypes, t as transformToUrl, T as Tooltip } from "./index-C4lB5G1F.mjs";
13
+ import { _ as _extends$4, b as usePluginConfig, c as useAllContentTypes, t as transformToUrl, T as Tooltip } from "./index-c7q9J79y.mjs";
14
14
  var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
15
15
  var _freeGlobal = freeGlobal$1;
16
16
  var freeGlobal = _freeGlobal;
@@ -2796,9 +2796,9 @@ var arrayPrefixGenerators = {
2796
2796
  }
2797
2797
  };
2798
2798
  var isArray$6 = Array.isArray;
2799
- var push$1 = Array.prototype.push;
2799
+ var push = Array.prototype.push;
2800
2800
  var pushToArray = function(arr, valueOrArray) {
2801
- push$1.apply(arr, isArray$6(valueOrArray) ? valueOrArray : [valueOrArray]);
2801
+ push.apply(arr, isArray$6(valueOrArray) ? valueOrArray : [valueOrArray]);
2802
2802
  };
2803
2803
  var toISO = Date.prototype.toISOString;
2804
2804
  var defaultFormat = formats$1["default"];
@@ -8518,836 +8518,6 @@ var reactHooksModule = function(_c) {
8518
8518
  };
8519
8519
  };
8520
8520
  var createApi = /* @__PURE__ */ buildCreateApi(coreModule(), reactHooksModule());
8521
- var _mapping = {};
8522
- (function(exports) {
8523
- exports.aliasToReal = {
8524
- // Lodash aliases.
8525
- "each": "forEach",
8526
- "eachRight": "forEachRight",
8527
- "entries": "toPairs",
8528
- "entriesIn": "toPairsIn",
8529
- "extend": "assignIn",
8530
- "extendAll": "assignInAll",
8531
- "extendAllWith": "assignInAllWith",
8532
- "extendWith": "assignInWith",
8533
- "first": "head",
8534
- // Methods that are curried variants of others.
8535
- "conforms": "conformsTo",
8536
- "matches": "isMatch",
8537
- "property": "get",
8538
- // Ramda aliases.
8539
- "__": "placeholder",
8540
- "F": "stubFalse",
8541
- "T": "stubTrue",
8542
- "all": "every",
8543
- "allPass": "overEvery",
8544
- "always": "constant",
8545
- "any": "some",
8546
- "anyPass": "overSome",
8547
- "apply": "spread",
8548
- "assoc": "set",
8549
- "assocPath": "set",
8550
- "complement": "negate",
8551
- "compose": "flowRight",
8552
- "contains": "includes",
8553
- "dissoc": "unset",
8554
- "dissocPath": "unset",
8555
- "dropLast": "dropRight",
8556
- "dropLastWhile": "dropRightWhile",
8557
- "equals": "isEqual",
8558
- "identical": "eq",
8559
- "indexBy": "keyBy",
8560
- "init": "initial",
8561
- "invertObj": "invert",
8562
- "juxt": "over",
8563
- "omitAll": "omit",
8564
- "nAry": "ary",
8565
- "path": "get",
8566
- "pathEq": "matchesProperty",
8567
- "pathOr": "getOr",
8568
- "paths": "at",
8569
- "pickAll": "pick",
8570
- "pipe": "flow",
8571
- "pluck": "map",
8572
- "prop": "get",
8573
- "propEq": "matchesProperty",
8574
- "propOr": "getOr",
8575
- "props": "at",
8576
- "symmetricDifference": "xor",
8577
- "symmetricDifferenceBy": "xorBy",
8578
- "symmetricDifferenceWith": "xorWith",
8579
- "takeLast": "takeRight",
8580
- "takeLastWhile": "takeRightWhile",
8581
- "unapply": "rest",
8582
- "unnest": "flatten",
8583
- "useWith": "overArgs",
8584
- "where": "conformsTo",
8585
- "whereEq": "isMatch",
8586
- "zipObj": "zipObject"
8587
- };
8588
- exports.aryMethod = {
8589
- "1": [
8590
- "assignAll",
8591
- "assignInAll",
8592
- "attempt",
8593
- "castArray",
8594
- "ceil",
8595
- "create",
8596
- "curry",
8597
- "curryRight",
8598
- "defaultsAll",
8599
- "defaultsDeepAll",
8600
- "floor",
8601
- "flow",
8602
- "flowRight",
8603
- "fromPairs",
8604
- "invert",
8605
- "iteratee",
8606
- "memoize",
8607
- "method",
8608
- "mergeAll",
8609
- "methodOf",
8610
- "mixin",
8611
- "nthArg",
8612
- "over",
8613
- "overEvery",
8614
- "overSome",
8615
- "rest",
8616
- "reverse",
8617
- "round",
8618
- "runInContext",
8619
- "spread",
8620
- "template",
8621
- "trim",
8622
- "trimEnd",
8623
- "trimStart",
8624
- "uniqueId",
8625
- "words",
8626
- "zipAll"
8627
- ],
8628
- "2": [
8629
- "add",
8630
- "after",
8631
- "ary",
8632
- "assign",
8633
- "assignAllWith",
8634
- "assignIn",
8635
- "assignInAllWith",
8636
- "at",
8637
- "before",
8638
- "bind",
8639
- "bindAll",
8640
- "bindKey",
8641
- "chunk",
8642
- "cloneDeepWith",
8643
- "cloneWith",
8644
- "concat",
8645
- "conformsTo",
8646
- "countBy",
8647
- "curryN",
8648
- "curryRightN",
8649
- "debounce",
8650
- "defaults",
8651
- "defaultsDeep",
8652
- "defaultTo",
8653
- "delay",
8654
- "difference",
8655
- "divide",
8656
- "drop",
8657
- "dropRight",
8658
- "dropRightWhile",
8659
- "dropWhile",
8660
- "endsWith",
8661
- "eq",
8662
- "every",
8663
- "filter",
8664
- "find",
8665
- "findIndex",
8666
- "findKey",
8667
- "findLast",
8668
- "findLastIndex",
8669
- "findLastKey",
8670
- "flatMap",
8671
- "flatMapDeep",
8672
- "flattenDepth",
8673
- "forEach",
8674
- "forEachRight",
8675
- "forIn",
8676
- "forInRight",
8677
- "forOwn",
8678
- "forOwnRight",
8679
- "get",
8680
- "groupBy",
8681
- "gt",
8682
- "gte",
8683
- "has",
8684
- "hasIn",
8685
- "includes",
8686
- "indexOf",
8687
- "intersection",
8688
- "invertBy",
8689
- "invoke",
8690
- "invokeMap",
8691
- "isEqual",
8692
- "isMatch",
8693
- "join",
8694
- "keyBy",
8695
- "lastIndexOf",
8696
- "lt",
8697
- "lte",
8698
- "map",
8699
- "mapKeys",
8700
- "mapValues",
8701
- "matchesProperty",
8702
- "maxBy",
8703
- "meanBy",
8704
- "merge",
8705
- "mergeAllWith",
8706
- "minBy",
8707
- "multiply",
8708
- "nth",
8709
- "omit",
8710
- "omitBy",
8711
- "overArgs",
8712
- "pad",
8713
- "padEnd",
8714
- "padStart",
8715
- "parseInt",
8716
- "partial",
8717
- "partialRight",
8718
- "partition",
8719
- "pick",
8720
- "pickBy",
8721
- "propertyOf",
8722
- "pull",
8723
- "pullAll",
8724
- "pullAt",
8725
- "random",
8726
- "range",
8727
- "rangeRight",
8728
- "rearg",
8729
- "reject",
8730
- "remove",
8731
- "repeat",
8732
- "restFrom",
8733
- "result",
8734
- "sampleSize",
8735
- "some",
8736
- "sortBy",
8737
- "sortedIndex",
8738
- "sortedIndexOf",
8739
- "sortedLastIndex",
8740
- "sortedLastIndexOf",
8741
- "sortedUniqBy",
8742
- "split",
8743
- "spreadFrom",
8744
- "startsWith",
8745
- "subtract",
8746
- "sumBy",
8747
- "take",
8748
- "takeRight",
8749
- "takeRightWhile",
8750
- "takeWhile",
8751
- "tap",
8752
- "throttle",
8753
- "thru",
8754
- "times",
8755
- "trimChars",
8756
- "trimCharsEnd",
8757
- "trimCharsStart",
8758
- "truncate",
8759
- "union",
8760
- "uniqBy",
8761
- "uniqWith",
8762
- "unset",
8763
- "unzipWith",
8764
- "without",
8765
- "wrap",
8766
- "xor",
8767
- "zip",
8768
- "zipObject",
8769
- "zipObjectDeep"
8770
- ],
8771
- "3": [
8772
- "assignInWith",
8773
- "assignWith",
8774
- "clamp",
8775
- "differenceBy",
8776
- "differenceWith",
8777
- "findFrom",
8778
- "findIndexFrom",
8779
- "findLastFrom",
8780
- "findLastIndexFrom",
8781
- "getOr",
8782
- "includesFrom",
8783
- "indexOfFrom",
8784
- "inRange",
8785
- "intersectionBy",
8786
- "intersectionWith",
8787
- "invokeArgs",
8788
- "invokeArgsMap",
8789
- "isEqualWith",
8790
- "isMatchWith",
8791
- "flatMapDepth",
8792
- "lastIndexOfFrom",
8793
- "mergeWith",
8794
- "orderBy",
8795
- "padChars",
8796
- "padCharsEnd",
8797
- "padCharsStart",
8798
- "pullAllBy",
8799
- "pullAllWith",
8800
- "rangeStep",
8801
- "rangeStepRight",
8802
- "reduce",
8803
- "reduceRight",
8804
- "replace",
8805
- "set",
8806
- "slice",
8807
- "sortedIndexBy",
8808
- "sortedLastIndexBy",
8809
- "transform",
8810
- "unionBy",
8811
- "unionWith",
8812
- "update",
8813
- "xorBy",
8814
- "xorWith",
8815
- "zipWith"
8816
- ],
8817
- "4": [
8818
- "fill",
8819
- "setWith",
8820
- "updateWith"
8821
- ]
8822
- };
8823
- exports.aryRearg = {
8824
- "2": [1, 0],
8825
- "3": [2, 0, 1],
8826
- "4": [3, 2, 0, 1]
8827
- };
8828
- exports.iterateeAry = {
8829
- "dropRightWhile": 1,
8830
- "dropWhile": 1,
8831
- "every": 1,
8832
- "filter": 1,
8833
- "find": 1,
8834
- "findFrom": 1,
8835
- "findIndex": 1,
8836
- "findIndexFrom": 1,
8837
- "findKey": 1,
8838
- "findLast": 1,
8839
- "findLastFrom": 1,
8840
- "findLastIndex": 1,
8841
- "findLastIndexFrom": 1,
8842
- "findLastKey": 1,
8843
- "flatMap": 1,
8844
- "flatMapDeep": 1,
8845
- "flatMapDepth": 1,
8846
- "forEach": 1,
8847
- "forEachRight": 1,
8848
- "forIn": 1,
8849
- "forInRight": 1,
8850
- "forOwn": 1,
8851
- "forOwnRight": 1,
8852
- "map": 1,
8853
- "mapKeys": 1,
8854
- "mapValues": 1,
8855
- "partition": 1,
8856
- "reduce": 2,
8857
- "reduceRight": 2,
8858
- "reject": 1,
8859
- "remove": 1,
8860
- "some": 1,
8861
- "takeRightWhile": 1,
8862
- "takeWhile": 1,
8863
- "times": 1,
8864
- "transform": 2
8865
- };
8866
- exports.iterateeRearg = {
8867
- "mapKeys": [1],
8868
- "reduceRight": [1, 0]
8869
- };
8870
- exports.methodRearg = {
8871
- "assignInAllWith": [1, 0],
8872
- "assignInWith": [1, 2, 0],
8873
- "assignAllWith": [1, 0],
8874
- "assignWith": [1, 2, 0],
8875
- "differenceBy": [1, 2, 0],
8876
- "differenceWith": [1, 2, 0],
8877
- "getOr": [2, 1, 0],
8878
- "intersectionBy": [1, 2, 0],
8879
- "intersectionWith": [1, 2, 0],
8880
- "isEqualWith": [1, 2, 0],
8881
- "isMatchWith": [2, 1, 0],
8882
- "mergeAllWith": [1, 0],
8883
- "mergeWith": [1, 2, 0],
8884
- "padChars": [2, 1, 0],
8885
- "padCharsEnd": [2, 1, 0],
8886
- "padCharsStart": [2, 1, 0],
8887
- "pullAllBy": [2, 1, 0],
8888
- "pullAllWith": [2, 1, 0],
8889
- "rangeStep": [1, 2, 0],
8890
- "rangeStepRight": [1, 2, 0],
8891
- "setWith": [3, 1, 2, 0],
8892
- "sortedIndexBy": [2, 1, 0],
8893
- "sortedLastIndexBy": [2, 1, 0],
8894
- "unionBy": [1, 2, 0],
8895
- "unionWith": [1, 2, 0],
8896
- "updateWith": [3, 1, 2, 0],
8897
- "xorBy": [1, 2, 0],
8898
- "xorWith": [1, 2, 0],
8899
- "zipWith": [1, 2, 0]
8900
- };
8901
- exports.methodSpread = {
8902
- "assignAll": { "start": 0 },
8903
- "assignAllWith": { "start": 0 },
8904
- "assignInAll": { "start": 0 },
8905
- "assignInAllWith": { "start": 0 },
8906
- "defaultsAll": { "start": 0 },
8907
- "defaultsDeepAll": { "start": 0 },
8908
- "invokeArgs": { "start": 2 },
8909
- "invokeArgsMap": { "start": 2 },
8910
- "mergeAll": { "start": 0 },
8911
- "mergeAllWith": { "start": 0 },
8912
- "partial": { "start": 1 },
8913
- "partialRight": { "start": 1 },
8914
- "without": { "start": 1 },
8915
- "zipAll": { "start": 0 }
8916
- };
8917
- exports.mutate = {
8918
- "array": {
8919
- "fill": true,
8920
- "pull": true,
8921
- "pullAll": true,
8922
- "pullAllBy": true,
8923
- "pullAllWith": true,
8924
- "pullAt": true,
8925
- "remove": true,
8926
- "reverse": true
8927
- },
8928
- "object": {
8929
- "assign": true,
8930
- "assignAll": true,
8931
- "assignAllWith": true,
8932
- "assignIn": true,
8933
- "assignInAll": true,
8934
- "assignInAllWith": true,
8935
- "assignInWith": true,
8936
- "assignWith": true,
8937
- "defaults": true,
8938
- "defaultsAll": true,
8939
- "defaultsDeep": true,
8940
- "defaultsDeepAll": true,
8941
- "merge": true,
8942
- "mergeAll": true,
8943
- "mergeAllWith": true,
8944
- "mergeWith": true
8945
- },
8946
- "set": {
8947
- "set": true,
8948
- "setWith": true,
8949
- "unset": true,
8950
- "update": true,
8951
- "updateWith": true
8952
- }
8953
- };
8954
- exports.realToAlias = function() {
8955
- var hasOwnProperty2 = Object.prototype.hasOwnProperty, object2 = exports.aliasToReal, result = {};
8956
- for (var key in object2) {
8957
- var value = object2[key];
8958
- if (hasOwnProperty2.call(result, value)) {
8959
- result[value].push(key);
8960
- } else {
8961
- result[value] = [key];
8962
- }
8963
- }
8964
- return result;
8965
- }();
8966
- exports.remap = {
8967
- "assignAll": "assign",
8968
- "assignAllWith": "assignWith",
8969
- "assignInAll": "assignIn",
8970
- "assignInAllWith": "assignInWith",
8971
- "curryN": "curry",
8972
- "curryRightN": "curryRight",
8973
- "defaultsAll": "defaults",
8974
- "defaultsDeepAll": "defaultsDeep",
8975
- "findFrom": "find",
8976
- "findIndexFrom": "findIndex",
8977
- "findLastFrom": "findLast",
8978
- "findLastIndexFrom": "findLastIndex",
8979
- "getOr": "get",
8980
- "includesFrom": "includes",
8981
- "indexOfFrom": "indexOf",
8982
- "invokeArgs": "invoke",
8983
- "invokeArgsMap": "invokeMap",
8984
- "lastIndexOfFrom": "lastIndexOf",
8985
- "mergeAll": "merge",
8986
- "mergeAllWith": "mergeWith",
8987
- "padChars": "pad",
8988
- "padCharsEnd": "padEnd",
8989
- "padCharsStart": "padStart",
8990
- "propertyOf": "get",
8991
- "rangeStep": "range",
8992
- "rangeStepRight": "rangeRight",
8993
- "restFrom": "rest",
8994
- "spreadFrom": "spread",
8995
- "trimChars": "trim",
8996
- "trimCharsEnd": "trimEnd",
8997
- "trimCharsStart": "trimStart",
8998
- "zipAll": "zip"
8999
- };
9000
- exports.skipFixed = {
9001
- "castArray": true,
9002
- "flow": true,
9003
- "flowRight": true,
9004
- "iteratee": true,
9005
- "mixin": true,
9006
- "rearg": true,
9007
- "runInContext": true
9008
- };
9009
- exports.skipRearg = {
9010
- "add": true,
9011
- "assign": true,
9012
- "assignIn": true,
9013
- "bind": true,
9014
- "bindKey": true,
9015
- "concat": true,
9016
- "difference": true,
9017
- "divide": true,
9018
- "eq": true,
9019
- "gt": true,
9020
- "gte": true,
9021
- "isEqual": true,
9022
- "lt": true,
9023
- "lte": true,
9024
- "matchesProperty": true,
9025
- "merge": true,
9026
- "multiply": true,
9027
- "overArgs": true,
9028
- "partial": true,
9029
- "partialRight": true,
9030
- "propertyOf": true,
9031
- "random": true,
9032
- "range": true,
9033
- "rangeRight": true,
9034
- "subtract": true,
9035
- "zip": true,
9036
- "zipObject": true,
9037
- "zipObjectDeep": true
9038
- };
9039
- })(_mapping);
9040
- var placeholder;
9041
- var hasRequiredPlaceholder;
9042
- function requirePlaceholder() {
9043
- if (hasRequiredPlaceholder) return placeholder;
9044
- hasRequiredPlaceholder = 1;
9045
- placeholder = {};
9046
- return placeholder;
9047
- }
9048
- var mapping = _mapping, fallbackHolder = requirePlaceholder();
9049
- var push = Array.prototype.push;
9050
- function baseArity(func2, n2) {
9051
- return n2 == 2 ? function(a2, b2) {
9052
- return func2.apply(void 0, arguments);
9053
- } : function(a2) {
9054
- return func2.apply(void 0, arguments);
9055
- };
9056
- }
9057
- function baseAry(func2, n2) {
9058
- return n2 == 2 ? function(a2, b2) {
9059
- return func2(a2, b2);
9060
- } : function(a2) {
9061
- return func2(a2);
9062
- };
9063
- }
9064
- function cloneArray(array2) {
9065
- var length = array2 ? array2.length : 0, result = Array(length);
9066
- while (length--) {
9067
- result[length] = array2[length];
9068
- }
9069
- return result;
9070
- }
9071
- function createCloner(func2) {
9072
- return function(object2) {
9073
- return func2({}, object2);
9074
- };
9075
- }
9076
- function flatSpread(func2, start) {
9077
- return function() {
9078
- var length = arguments.length, lastIndex = length - 1, args = Array(length);
9079
- while (length--) {
9080
- args[length] = arguments[length];
9081
- }
9082
- var array2 = args[start], otherArgs = args.slice(0, start);
9083
- if (array2) {
9084
- push.apply(otherArgs, array2);
9085
- }
9086
- if (start != lastIndex) {
9087
- push.apply(otherArgs, args.slice(start + 1));
9088
- }
9089
- return func2.apply(this, otherArgs);
9090
- };
9091
- }
9092
- function wrapImmutable(func2, cloner) {
9093
- return function() {
9094
- var length = arguments.length;
9095
- if (!length) {
9096
- return;
9097
- }
9098
- var args = Array(length);
9099
- while (length--) {
9100
- args[length] = arguments[length];
9101
- }
9102
- var result = args[0] = cloner.apply(void 0, args);
9103
- func2.apply(void 0, args);
9104
- return result;
9105
- };
9106
- }
9107
- function baseConvert$1(util2, name, func2, options) {
9108
- var isLib = typeof name == "function", isObj = name === Object(name);
9109
- if (isObj) {
9110
- options = func2;
9111
- func2 = name;
9112
- name = void 0;
9113
- }
9114
- if (func2 == null) {
9115
- throw new TypeError();
9116
- }
9117
- options || (options = {});
9118
- var config = {
9119
- "cap": "cap" in options ? options.cap : true,
9120
- "curry": "curry" in options ? options.curry : true,
9121
- "fixed": "fixed" in options ? options.fixed : true,
9122
- "immutable": "immutable" in options ? options.immutable : true,
9123
- "rearg": "rearg" in options ? options.rearg : true
9124
- };
9125
- var defaultHolder = isLib ? func2 : fallbackHolder, forceCurry = "curry" in options && options.curry, forceFixed = "fixed" in options && options.fixed, forceRearg = "rearg" in options && options.rearg, pristine = isLib ? func2.runInContext() : void 0;
9126
- var helpers = isLib ? func2 : {
9127
- "ary": util2.ary,
9128
- "assign": util2.assign,
9129
- "clone": util2.clone,
9130
- "curry": util2.curry,
9131
- "forEach": util2.forEach,
9132
- "isArray": util2.isArray,
9133
- "isError": util2.isError,
9134
- "isFunction": util2.isFunction,
9135
- "isWeakMap": util2.isWeakMap,
9136
- "iteratee": util2.iteratee,
9137
- "keys": util2.keys,
9138
- "rearg": util2.rearg,
9139
- "toInteger": util2.toInteger,
9140
- "toPath": util2.toPath
9141
- };
9142
- var ary2 = helpers.ary, assign2 = helpers.assign, clone2 = helpers.clone, curry2 = helpers.curry, each = helpers.forEach, isArray2 = helpers.isArray, isError2 = helpers.isError, isFunction2 = helpers.isFunction, isWeakMap2 = helpers.isWeakMap, keys2 = helpers.keys, rearg2 = helpers.rearg, toInteger2 = helpers.toInteger, toPath2 = helpers.toPath;
9143
- var aryMethodKeys = keys2(mapping.aryMethod);
9144
- var wrappers = {
9145
- "castArray": function(castArray) {
9146
- return function() {
9147
- var value = arguments[0];
9148
- return isArray2(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments);
9149
- };
9150
- },
9151
- "iteratee": function(iteratee2) {
9152
- return function() {
9153
- var func3 = arguments[0], arity = arguments[1], result = iteratee2(func3, arity), length = result.length;
9154
- if (config.cap && typeof arity == "number") {
9155
- arity = arity > 2 ? arity - 2 : 1;
9156
- return length && length <= arity ? result : baseAry(result, arity);
9157
- }
9158
- return result;
9159
- };
9160
- },
9161
- "mixin": function(mixin) {
9162
- return function(source) {
9163
- var func3 = this;
9164
- if (!isFunction2(func3)) {
9165
- return mixin(func3, Object(source));
9166
- }
9167
- var pairs2 = [];
9168
- each(keys2(source), function(key) {
9169
- if (isFunction2(source[key])) {
9170
- pairs2.push([key, func3.prototype[key]]);
9171
- }
9172
- });
9173
- mixin(func3, Object(source));
9174
- each(pairs2, function(pair) {
9175
- var value = pair[1];
9176
- if (isFunction2(value)) {
9177
- func3.prototype[pair[0]] = value;
9178
- } else {
9179
- delete func3.prototype[pair[0]];
9180
- }
9181
- });
9182
- return func3;
9183
- };
9184
- },
9185
- "nthArg": function(nthArg) {
9186
- return function(n2) {
9187
- var arity = n2 < 0 ? 1 : toInteger2(n2) + 1;
9188
- return curry2(nthArg(n2), arity);
9189
- };
9190
- },
9191
- "rearg": function(rearg3) {
9192
- return function(func3, indexes) {
9193
- var arity = indexes ? indexes.length : 0;
9194
- return curry2(rearg3(func3, indexes), arity);
9195
- };
9196
- },
9197
- "runInContext": function(runInContext) {
9198
- return function(context) {
9199
- return baseConvert$1(util2, runInContext(context), options);
9200
- };
9201
- }
9202
- };
9203
- function castCap(name2, func3) {
9204
- if (config.cap) {
9205
- var indexes = mapping.iterateeRearg[name2];
9206
- if (indexes) {
9207
- return iterateeRearg(func3, indexes);
9208
- }
9209
- var n2 = !isLib && mapping.iterateeAry[name2];
9210
- if (n2) {
9211
- return iterateeAry(func3, n2);
9212
- }
9213
- }
9214
- return func3;
9215
- }
9216
- function castCurry(name2, func3, n2) {
9217
- return forceCurry || config.curry && n2 > 1 ? curry2(func3, n2) : func3;
9218
- }
9219
- function castFixed(name2, func3, n2) {
9220
- if (config.fixed && (forceFixed || !mapping.skipFixed[name2])) {
9221
- var data = mapping.methodSpread[name2], start = data && data.start;
9222
- return start === void 0 ? ary2(func3, n2) : flatSpread(func3, start);
9223
- }
9224
- return func3;
9225
- }
9226
- function castRearg(name2, func3, n2) {
9227
- return config.rearg && n2 > 1 && (forceRearg || !mapping.skipRearg[name2]) ? rearg2(func3, mapping.methodRearg[name2] || mapping.aryRearg[n2]) : func3;
9228
- }
9229
- function cloneByPath(object2, path) {
9230
- path = toPath2(path);
9231
- var index = -1, length = path.length, lastIndex = length - 1, result = clone2(Object(object2)), nested = result;
9232
- while (nested != null && ++index < length) {
9233
- var key = path[index], value = nested[key];
9234
- if (value != null && !(isFunction2(value) || isError2(value) || isWeakMap2(value))) {
9235
- nested[key] = clone2(index == lastIndex ? value : Object(value));
9236
- }
9237
- nested = nested[key];
9238
- }
9239
- return result;
9240
- }
9241
- function convertLib(options2) {
9242
- return _2.runInContext.convert(options2)(void 0);
9243
- }
9244
- function createConverter(name2, func3) {
9245
- var realName = mapping.aliasToReal[name2] || name2, methodName = mapping.remap[realName] || realName, oldOptions = options;
9246
- return function(options2) {
9247
- var newUtil = isLib ? pristine : helpers, newFunc = isLib ? pristine[methodName] : func3, newOptions = assign2(assign2({}, oldOptions), options2);
9248
- return baseConvert$1(newUtil, realName, newFunc, newOptions);
9249
- };
9250
- }
9251
- function iterateeAry(func3, n2) {
9252
- return overArg2(func3, function(func4) {
9253
- return typeof func4 == "function" ? baseAry(func4, n2) : func4;
9254
- });
9255
- }
9256
- function iterateeRearg(func3, indexes) {
9257
- return overArg2(func3, function(func4) {
9258
- var n2 = indexes.length;
9259
- return baseArity(rearg2(baseAry(func4, n2), indexes), n2);
9260
- });
9261
- }
9262
- function overArg2(func3, transform) {
9263
- return function() {
9264
- var length = arguments.length;
9265
- if (!length) {
9266
- return func3();
9267
- }
9268
- var args = Array(length);
9269
- while (length--) {
9270
- args[length] = arguments[length];
9271
- }
9272
- var index = config.rearg ? 0 : length - 1;
9273
- args[index] = transform(args[index]);
9274
- return func3.apply(void 0, args);
9275
- };
9276
- }
9277
- function wrap(name2, func3, placeholder2) {
9278
- var result, realName = mapping.aliasToReal[name2] || name2, wrapped = func3, wrapper = wrappers[realName];
9279
- if (wrapper) {
9280
- wrapped = wrapper(func3);
9281
- } else if (config.immutable) {
9282
- if (mapping.mutate.array[realName]) {
9283
- wrapped = wrapImmutable(func3, cloneArray);
9284
- } else if (mapping.mutate.object[realName]) {
9285
- wrapped = wrapImmutable(func3, createCloner(func3));
9286
- } else if (mapping.mutate.set[realName]) {
9287
- wrapped = wrapImmutable(func3, cloneByPath);
9288
- }
9289
- }
9290
- each(aryMethodKeys, function(aryKey) {
9291
- each(mapping.aryMethod[aryKey], function(otherName) {
9292
- if (realName == otherName) {
9293
- var data = mapping.methodSpread[realName], afterRearg = data && data.afterRearg;
9294
- result = afterRearg ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey) : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);
9295
- result = castCap(realName, result);
9296
- result = castCurry(realName, result, aryKey);
9297
- return false;
9298
- }
9299
- });
9300
- return !result;
9301
- });
9302
- result || (result = wrapped);
9303
- if (result == func3) {
9304
- result = forceCurry ? curry2(result, 1) : function() {
9305
- return func3.apply(this, arguments);
9306
- };
9307
- }
9308
- result.convert = createConverter(realName, func3);
9309
- result.placeholder = func3.placeholder = placeholder2;
9310
- return result;
9311
- }
9312
- if (!isObj) {
9313
- return wrap(name, func2, defaultHolder);
9314
- }
9315
- var _2 = func2;
9316
- var pairs = [];
9317
- each(aryMethodKeys, function(aryKey) {
9318
- each(mapping.aryMethod[aryKey], function(key) {
9319
- var func3 = _2[mapping.remap[key] || key];
9320
- if (func3) {
9321
- pairs.push([key, wrap(key, func3, _2)]);
9322
- }
9323
- });
9324
- });
9325
- each(keys2(_2), function(key) {
9326
- var func3 = _2[key];
9327
- if (typeof func3 == "function") {
9328
- var length = pairs.length;
9329
- while (length--) {
9330
- if (pairs[length][0] == key) {
9331
- return;
9332
- }
9333
- }
9334
- func3.convert = createConverter(key, func3);
9335
- pairs.push([key, func3]);
9336
- }
9337
- });
9338
- each(pairs, function(pair) {
9339
- _2[pair[0]] = pair[1];
9340
- });
9341
- _2.convert = convertLib;
9342
- _2.placeholder = _2;
9343
- each(keys2(_2), function(key) {
9344
- each(mapping.realToAlias[key] || [], function(alias) {
9345
- _2[alias] = _2[key];
9346
- });
9347
- });
9348
- return _2;
9349
- }
9350
- var _baseConvert = baseConvert$1;
9351
8521
  var getNative$3 = _getNative, root$7 = _root;
9352
8522
  var WeakMap$2 = getNative$3(root$7, "WeakMap");
9353
8523
  var _WeakMap = WeakMap$2;
@@ -9440,10 +8610,10 @@ function composeArgsRight$2(args, partials, holders, isCurried) {
9440
8610
  return result;
9441
8611
  }
9442
8612
  var _composeArgsRight = composeArgsRight$2;
9443
- function countHolders$1(array2, placeholder2) {
8613
+ function countHolders$1(array2, placeholder) {
9444
8614
  var length = array2.length, result = 0;
9445
8615
  while (length--) {
9446
- if (array2[length] === placeholder2) {
8616
+ if (array2[length] === placeholder) {
9447
8617
  ++result;
9448
8618
  }
9449
8619
  }
@@ -9682,7 +8852,7 @@ function setWrapToString$2(wrapper, reference, bitmask) {
9682
8852
  var _setWrapToString = setWrapToString$2;
9683
8853
  var isLaziable = require_isLaziable(), setData$1 = _setData, setWrapToString$1 = _setWrapToString;
9684
8854
  var WRAP_BIND_FLAG$4 = 1, WRAP_BIND_KEY_FLAG$3 = 2, WRAP_CURRY_BOUND_FLAG$1 = 4, WRAP_CURRY_FLAG$4 = 8, WRAP_PARTIAL_FLAG$1 = 32, WRAP_PARTIAL_RIGHT_FLAG$1 = 64;
9685
- function createRecurry$2(func2, bitmask, wrapFunc, placeholder2, thisArg, partials, holders, argPos, ary2, arity) {
8855
+ function createRecurry$2(func2, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
9686
8856
  var isCurry = bitmask & WRAP_CURRY_FLAG$4, newHolders = isCurry ? holders : void 0, newHoldersRight = isCurry ? void 0 : holders, newPartials = isCurry ? partials : void 0, newPartialsRight = isCurry ? void 0 : partials;
9687
8857
  bitmask |= isCurry ? WRAP_PARTIAL_FLAG$1 : WRAP_PARTIAL_RIGHT_FLAG$1;
9688
8858
  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG$1 : WRAP_PARTIAL_FLAG$1);
@@ -9705,7 +8875,7 @@ function createRecurry$2(func2, bitmask, wrapFunc, placeholder2, thisArg, partia
9705
8875
  if (isLaziable(func2)) {
9706
8876
  setData$1(result, newData);
9707
8877
  }
9708
- result.placeholder = placeholder2;
8878
+ result.placeholder = placeholder;
9709
8879
  return setWrapToString$1(result, func2, bitmask);
9710
8880
  }
9711
8881
  var _createRecurry = createRecurry$2;
@@ -9726,11 +8896,11 @@ function reorder$1(array2, indexes) {
9726
8896
  }
9727
8897
  var _reorder = reorder$1;
9728
8898
  var PLACEHOLDER$1 = "__lodash_placeholder__";
9729
- function replaceHolders$3(array2, placeholder2) {
8899
+ function replaceHolders$3(array2, placeholder) {
9730
8900
  var index = -1, length = array2.length, resIndex = 0, result = [];
9731
8901
  while (++index < length) {
9732
8902
  var value = array2[index];
9733
- if (value === placeholder2 || value === PLACEHOLDER$1) {
8903
+ if (value === placeholder || value === PLACEHOLDER$1) {
9734
8904
  array2[index] = PLACEHOLDER$1;
9735
8905
  result[resIndex++] = index;
9736
8906
  }
@@ -9748,7 +8918,7 @@ function createHybrid$2(func2, bitmask, thisArg, partials, holders, partialsRigh
9748
8918
  args[index] = arguments[index];
9749
8919
  }
9750
8920
  if (isCurried) {
9751
- var placeholder2 = getHolder$1(wrapper), holdersCount = countHolders(args, placeholder2);
8921
+ var placeholder = getHolder$1(wrapper), holdersCount = countHolders(args, placeholder);
9752
8922
  }
9753
8923
  if (partials) {
9754
8924
  args = composeArgs$1(args, partials, holders, isCurried);
@@ -9758,7 +8928,7 @@ function createHybrid$2(func2, bitmask, thisArg, partials, holders, partialsRigh
9758
8928
  }
9759
8929
  length -= holdersCount;
9760
8930
  if (isCurried && length < arity) {
9761
- var newHolders = replaceHolders$2(args, placeholder2);
8931
+ var newHolders = replaceHolders$2(args, placeholder);
9762
8932
  return createRecurry$1(
9763
8933
  func2,
9764
8934
  bitmask,
@@ -9794,11 +8964,11 @@ var apply$2 = _apply, createCtor$1 = _createCtor, createHybrid$1 = _createHybrid
9794
8964
  function createCurry$1(func2, bitmask, arity) {
9795
8965
  var Ctor = createCtor$1(func2);
9796
8966
  function wrapper() {
9797
- var length = arguments.length, args = Array(length), index = length, placeholder2 = getHolder(wrapper);
8967
+ var length = arguments.length, args = Array(length), index = length, placeholder = getHolder(wrapper);
9798
8968
  while (index--) {
9799
8969
  args[index] = arguments[index];
9800
8970
  }
9801
- var holders = length < 3 && args[0] !== placeholder2 && args[length - 1] !== placeholder2 ? [] : replaceHolders$1(args, placeholder2);
8971
+ var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders$1(args, placeholder);
9802
8972
  length -= holders.length;
9803
8973
  if (length < arity) {
9804
8974
  return createRecurry(