@mattisvensson/strapi-plugin-webatlas 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/_chunks/EmptyBox-7D4LrvdH.mjs.map +1 -0
  2. package/dist/_chunks/EmptyBox-DT6D5gcf.js.map +1 -0
  3. package/dist/_chunks/_baseConvert-CDjccxdO.mjs +859 -0
  4. package/dist/_chunks/_baseConvert-CDjccxdO.mjs.map +1 -0
  5. package/dist/_chunks/_baseConvert-DVIhGQH6.js +858 -0
  6. package/dist/_chunks/_baseConvert-DVIhGQH6.js.map +1 -0
  7. package/dist/_chunks/en-B4KWt_jN.js.map +1 -0
  8. package/dist/_chunks/en-Byx4XI2L.mjs.map +1 -0
  9. package/dist/_chunks/index-1VNPebOd.mjs +45 -0
  10. package/dist/_chunks/index-1VNPebOd.mjs.map +1 -0
  11. package/dist/_chunks/{index-BLQ7k9G6.js → index-B-ABW-o6.js} +1 -1
  12. package/dist/_chunks/{index-rvOUYDZ4.mjs → index-B5ilx6DT.mjs} +1 -1
  13. package/dist/_chunks/{index-C9tlbXg0.js → index-B7vKSyAn.js} +15 -51
  14. package/dist/_chunks/index-B7vKSyAn.js.map +1 -0
  15. package/dist/_chunks/{index-C4EZHacG.mjs → index-BjbgWZrg.mjs} +4 -4
  16. package/dist/_chunks/{index-C3a42qmP.mjs → index-BxuR805w.mjs} +2 -32
  17. package/dist/_chunks/{index-CnY7liYv.js → index-CAjBRbaH.js} +4 -4
  18. package/dist/_chunks/index-CPE1Ne_e.js +4102 -0
  19. package/dist/_chunks/index-CPE1Ne_e.js.map +1 -0
  20. package/dist/_chunks/index-ChOgKZGK.mjs +9924 -0
  21. package/dist/_chunks/index-ChOgKZGK.mjs.map +1 -0
  22. package/dist/_chunks/index-Cs_oxZfX.js +17134 -0
  23. package/dist/_chunks/index-CuMn96qA.js +9924 -0
  24. package/dist/_chunks/index-CuMn96qA.js.map +1 -0
  25. package/dist/_chunks/{index-BDCJSjey.mjs → index-D_OdzeaU.mjs} +1 -1
  26. package/dist/_chunks/index-Djk_-mU6.js +45 -0
  27. package/dist/_chunks/index-Djk_-mU6.js.map +1 -0
  28. package/dist/_chunks/index-HHBjOGX5.mjs +17130 -0
  29. package/dist/_chunks/index-HHBjOGX5.mjs.map +1 -0
  30. package/dist/_chunks/{index-B_a-qtdq.js → index-kz3NL7uv.js} +1 -1
  31. package/dist/_chunks/index-yLrZAFVv.mjs +4086 -0
  32. package/dist/_chunks/index-yLrZAFVv.mjs.map +1 -0
  33. package/dist/admin/index.js +1 -1
  34. package/dist/admin/index.js.map +1 -0
  35. package/dist/admin/index.mjs +1 -1
  36. package/dist/admin/index.mjs.map +1 -0
  37. package/dist/server/index.js +14 -6
  38. package/dist/server/index.js.map +1 -0
  39. package/dist/server/index.mjs +14 -6
  40. package/dist/server/index.mjs.map +1 -0
  41. package/package.json +1 -1
@@ -0,0 +1,859 @@
1
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
+ function getDefaultExportFromCjs(x) {
3
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4
+ }
5
+ function getAugmentedNamespace(n) {
6
+ if (n.__esModule) return n;
7
+ var f = n.default;
8
+ if (typeof f == "function") {
9
+ var a = function a2() {
10
+ if (this instanceof a2) {
11
+ return Reflect.construct(f, arguments, this.constructor);
12
+ }
13
+ return f.apply(this, arguments);
14
+ };
15
+ a.prototype = f.prototype;
16
+ } else a = {};
17
+ Object.defineProperty(a, "__esModule", { value: true });
18
+ Object.keys(n).forEach(function(k) {
19
+ var d = Object.getOwnPropertyDescriptor(n, k);
20
+ Object.defineProperty(a, k, d.get ? d : {
21
+ enumerable: true,
22
+ get: function() {
23
+ return n[k];
24
+ }
25
+ });
26
+ });
27
+ return a;
28
+ }
29
+ var _mapping = {};
30
+ (function(exports) {
31
+ exports.aliasToReal = {
32
+ // Lodash aliases.
33
+ "each": "forEach",
34
+ "eachRight": "forEachRight",
35
+ "entries": "toPairs",
36
+ "entriesIn": "toPairsIn",
37
+ "extend": "assignIn",
38
+ "extendAll": "assignInAll",
39
+ "extendAllWith": "assignInAllWith",
40
+ "extendWith": "assignInWith",
41
+ "first": "head",
42
+ // Methods that are curried variants of others.
43
+ "conforms": "conformsTo",
44
+ "matches": "isMatch",
45
+ "property": "get",
46
+ // Ramda aliases.
47
+ "__": "placeholder",
48
+ "F": "stubFalse",
49
+ "T": "stubTrue",
50
+ "all": "every",
51
+ "allPass": "overEvery",
52
+ "always": "constant",
53
+ "any": "some",
54
+ "anyPass": "overSome",
55
+ "apply": "spread",
56
+ "assoc": "set",
57
+ "assocPath": "set",
58
+ "complement": "negate",
59
+ "compose": "flowRight",
60
+ "contains": "includes",
61
+ "dissoc": "unset",
62
+ "dissocPath": "unset",
63
+ "dropLast": "dropRight",
64
+ "dropLastWhile": "dropRightWhile",
65
+ "equals": "isEqual",
66
+ "identical": "eq",
67
+ "indexBy": "keyBy",
68
+ "init": "initial",
69
+ "invertObj": "invert",
70
+ "juxt": "over",
71
+ "omitAll": "omit",
72
+ "nAry": "ary",
73
+ "path": "get",
74
+ "pathEq": "matchesProperty",
75
+ "pathOr": "getOr",
76
+ "paths": "at",
77
+ "pickAll": "pick",
78
+ "pipe": "flow",
79
+ "pluck": "map",
80
+ "prop": "get",
81
+ "propEq": "matchesProperty",
82
+ "propOr": "getOr",
83
+ "props": "at",
84
+ "symmetricDifference": "xor",
85
+ "symmetricDifferenceBy": "xorBy",
86
+ "symmetricDifferenceWith": "xorWith",
87
+ "takeLast": "takeRight",
88
+ "takeLastWhile": "takeRightWhile",
89
+ "unapply": "rest",
90
+ "unnest": "flatten",
91
+ "useWith": "overArgs",
92
+ "where": "conformsTo",
93
+ "whereEq": "isMatch",
94
+ "zipObj": "zipObject"
95
+ };
96
+ exports.aryMethod = {
97
+ "1": [
98
+ "assignAll",
99
+ "assignInAll",
100
+ "attempt",
101
+ "castArray",
102
+ "ceil",
103
+ "create",
104
+ "curry",
105
+ "curryRight",
106
+ "defaultsAll",
107
+ "defaultsDeepAll",
108
+ "floor",
109
+ "flow",
110
+ "flowRight",
111
+ "fromPairs",
112
+ "invert",
113
+ "iteratee",
114
+ "memoize",
115
+ "method",
116
+ "mergeAll",
117
+ "methodOf",
118
+ "mixin",
119
+ "nthArg",
120
+ "over",
121
+ "overEvery",
122
+ "overSome",
123
+ "rest",
124
+ "reverse",
125
+ "round",
126
+ "runInContext",
127
+ "spread",
128
+ "template",
129
+ "trim",
130
+ "trimEnd",
131
+ "trimStart",
132
+ "uniqueId",
133
+ "words",
134
+ "zipAll"
135
+ ],
136
+ "2": [
137
+ "add",
138
+ "after",
139
+ "ary",
140
+ "assign",
141
+ "assignAllWith",
142
+ "assignIn",
143
+ "assignInAllWith",
144
+ "at",
145
+ "before",
146
+ "bind",
147
+ "bindAll",
148
+ "bindKey",
149
+ "chunk",
150
+ "cloneDeepWith",
151
+ "cloneWith",
152
+ "concat",
153
+ "conformsTo",
154
+ "countBy",
155
+ "curryN",
156
+ "curryRightN",
157
+ "debounce",
158
+ "defaults",
159
+ "defaultsDeep",
160
+ "defaultTo",
161
+ "delay",
162
+ "difference",
163
+ "divide",
164
+ "drop",
165
+ "dropRight",
166
+ "dropRightWhile",
167
+ "dropWhile",
168
+ "endsWith",
169
+ "eq",
170
+ "every",
171
+ "filter",
172
+ "find",
173
+ "findIndex",
174
+ "findKey",
175
+ "findLast",
176
+ "findLastIndex",
177
+ "findLastKey",
178
+ "flatMap",
179
+ "flatMapDeep",
180
+ "flattenDepth",
181
+ "forEach",
182
+ "forEachRight",
183
+ "forIn",
184
+ "forInRight",
185
+ "forOwn",
186
+ "forOwnRight",
187
+ "get",
188
+ "groupBy",
189
+ "gt",
190
+ "gte",
191
+ "has",
192
+ "hasIn",
193
+ "includes",
194
+ "indexOf",
195
+ "intersection",
196
+ "invertBy",
197
+ "invoke",
198
+ "invokeMap",
199
+ "isEqual",
200
+ "isMatch",
201
+ "join",
202
+ "keyBy",
203
+ "lastIndexOf",
204
+ "lt",
205
+ "lte",
206
+ "map",
207
+ "mapKeys",
208
+ "mapValues",
209
+ "matchesProperty",
210
+ "maxBy",
211
+ "meanBy",
212
+ "merge",
213
+ "mergeAllWith",
214
+ "minBy",
215
+ "multiply",
216
+ "nth",
217
+ "omit",
218
+ "omitBy",
219
+ "overArgs",
220
+ "pad",
221
+ "padEnd",
222
+ "padStart",
223
+ "parseInt",
224
+ "partial",
225
+ "partialRight",
226
+ "partition",
227
+ "pick",
228
+ "pickBy",
229
+ "propertyOf",
230
+ "pull",
231
+ "pullAll",
232
+ "pullAt",
233
+ "random",
234
+ "range",
235
+ "rangeRight",
236
+ "rearg",
237
+ "reject",
238
+ "remove",
239
+ "repeat",
240
+ "restFrom",
241
+ "result",
242
+ "sampleSize",
243
+ "some",
244
+ "sortBy",
245
+ "sortedIndex",
246
+ "sortedIndexOf",
247
+ "sortedLastIndex",
248
+ "sortedLastIndexOf",
249
+ "sortedUniqBy",
250
+ "split",
251
+ "spreadFrom",
252
+ "startsWith",
253
+ "subtract",
254
+ "sumBy",
255
+ "take",
256
+ "takeRight",
257
+ "takeRightWhile",
258
+ "takeWhile",
259
+ "tap",
260
+ "throttle",
261
+ "thru",
262
+ "times",
263
+ "trimChars",
264
+ "trimCharsEnd",
265
+ "trimCharsStart",
266
+ "truncate",
267
+ "union",
268
+ "uniqBy",
269
+ "uniqWith",
270
+ "unset",
271
+ "unzipWith",
272
+ "without",
273
+ "wrap",
274
+ "xor",
275
+ "zip",
276
+ "zipObject",
277
+ "zipObjectDeep"
278
+ ],
279
+ "3": [
280
+ "assignInWith",
281
+ "assignWith",
282
+ "clamp",
283
+ "differenceBy",
284
+ "differenceWith",
285
+ "findFrom",
286
+ "findIndexFrom",
287
+ "findLastFrom",
288
+ "findLastIndexFrom",
289
+ "getOr",
290
+ "includesFrom",
291
+ "indexOfFrom",
292
+ "inRange",
293
+ "intersectionBy",
294
+ "intersectionWith",
295
+ "invokeArgs",
296
+ "invokeArgsMap",
297
+ "isEqualWith",
298
+ "isMatchWith",
299
+ "flatMapDepth",
300
+ "lastIndexOfFrom",
301
+ "mergeWith",
302
+ "orderBy",
303
+ "padChars",
304
+ "padCharsEnd",
305
+ "padCharsStart",
306
+ "pullAllBy",
307
+ "pullAllWith",
308
+ "rangeStep",
309
+ "rangeStepRight",
310
+ "reduce",
311
+ "reduceRight",
312
+ "replace",
313
+ "set",
314
+ "slice",
315
+ "sortedIndexBy",
316
+ "sortedLastIndexBy",
317
+ "transform",
318
+ "unionBy",
319
+ "unionWith",
320
+ "update",
321
+ "xorBy",
322
+ "xorWith",
323
+ "zipWith"
324
+ ],
325
+ "4": [
326
+ "fill",
327
+ "setWith",
328
+ "updateWith"
329
+ ]
330
+ };
331
+ exports.aryRearg = {
332
+ "2": [1, 0],
333
+ "3": [2, 0, 1],
334
+ "4": [3, 2, 0, 1]
335
+ };
336
+ exports.iterateeAry = {
337
+ "dropRightWhile": 1,
338
+ "dropWhile": 1,
339
+ "every": 1,
340
+ "filter": 1,
341
+ "find": 1,
342
+ "findFrom": 1,
343
+ "findIndex": 1,
344
+ "findIndexFrom": 1,
345
+ "findKey": 1,
346
+ "findLast": 1,
347
+ "findLastFrom": 1,
348
+ "findLastIndex": 1,
349
+ "findLastIndexFrom": 1,
350
+ "findLastKey": 1,
351
+ "flatMap": 1,
352
+ "flatMapDeep": 1,
353
+ "flatMapDepth": 1,
354
+ "forEach": 1,
355
+ "forEachRight": 1,
356
+ "forIn": 1,
357
+ "forInRight": 1,
358
+ "forOwn": 1,
359
+ "forOwnRight": 1,
360
+ "map": 1,
361
+ "mapKeys": 1,
362
+ "mapValues": 1,
363
+ "partition": 1,
364
+ "reduce": 2,
365
+ "reduceRight": 2,
366
+ "reject": 1,
367
+ "remove": 1,
368
+ "some": 1,
369
+ "takeRightWhile": 1,
370
+ "takeWhile": 1,
371
+ "times": 1,
372
+ "transform": 2
373
+ };
374
+ exports.iterateeRearg = {
375
+ "mapKeys": [1],
376
+ "reduceRight": [1, 0]
377
+ };
378
+ exports.methodRearg = {
379
+ "assignInAllWith": [1, 0],
380
+ "assignInWith": [1, 2, 0],
381
+ "assignAllWith": [1, 0],
382
+ "assignWith": [1, 2, 0],
383
+ "differenceBy": [1, 2, 0],
384
+ "differenceWith": [1, 2, 0],
385
+ "getOr": [2, 1, 0],
386
+ "intersectionBy": [1, 2, 0],
387
+ "intersectionWith": [1, 2, 0],
388
+ "isEqualWith": [1, 2, 0],
389
+ "isMatchWith": [2, 1, 0],
390
+ "mergeAllWith": [1, 0],
391
+ "mergeWith": [1, 2, 0],
392
+ "padChars": [2, 1, 0],
393
+ "padCharsEnd": [2, 1, 0],
394
+ "padCharsStart": [2, 1, 0],
395
+ "pullAllBy": [2, 1, 0],
396
+ "pullAllWith": [2, 1, 0],
397
+ "rangeStep": [1, 2, 0],
398
+ "rangeStepRight": [1, 2, 0],
399
+ "setWith": [3, 1, 2, 0],
400
+ "sortedIndexBy": [2, 1, 0],
401
+ "sortedLastIndexBy": [2, 1, 0],
402
+ "unionBy": [1, 2, 0],
403
+ "unionWith": [1, 2, 0],
404
+ "updateWith": [3, 1, 2, 0],
405
+ "xorBy": [1, 2, 0],
406
+ "xorWith": [1, 2, 0],
407
+ "zipWith": [1, 2, 0]
408
+ };
409
+ exports.methodSpread = {
410
+ "assignAll": { "start": 0 },
411
+ "assignAllWith": { "start": 0 },
412
+ "assignInAll": { "start": 0 },
413
+ "assignInAllWith": { "start": 0 },
414
+ "defaultsAll": { "start": 0 },
415
+ "defaultsDeepAll": { "start": 0 },
416
+ "invokeArgs": { "start": 2 },
417
+ "invokeArgsMap": { "start": 2 },
418
+ "mergeAll": { "start": 0 },
419
+ "mergeAllWith": { "start": 0 },
420
+ "partial": { "start": 1 },
421
+ "partialRight": { "start": 1 },
422
+ "without": { "start": 1 },
423
+ "zipAll": { "start": 0 }
424
+ };
425
+ exports.mutate = {
426
+ "array": {
427
+ "fill": true,
428
+ "pull": true,
429
+ "pullAll": true,
430
+ "pullAllBy": true,
431
+ "pullAllWith": true,
432
+ "pullAt": true,
433
+ "remove": true,
434
+ "reverse": true
435
+ },
436
+ "object": {
437
+ "assign": true,
438
+ "assignAll": true,
439
+ "assignAllWith": true,
440
+ "assignIn": true,
441
+ "assignInAll": true,
442
+ "assignInAllWith": true,
443
+ "assignInWith": true,
444
+ "assignWith": true,
445
+ "defaults": true,
446
+ "defaultsAll": true,
447
+ "defaultsDeep": true,
448
+ "defaultsDeepAll": true,
449
+ "merge": true,
450
+ "mergeAll": true,
451
+ "mergeAllWith": true,
452
+ "mergeWith": true
453
+ },
454
+ "set": {
455
+ "set": true,
456
+ "setWith": true,
457
+ "unset": true,
458
+ "update": true,
459
+ "updateWith": true
460
+ }
461
+ };
462
+ exports.realToAlias = function() {
463
+ var hasOwnProperty = Object.prototype.hasOwnProperty, object = exports.aliasToReal, result = {};
464
+ for (var key in object) {
465
+ var value = object[key];
466
+ if (hasOwnProperty.call(result, value)) {
467
+ result[value].push(key);
468
+ } else {
469
+ result[value] = [key];
470
+ }
471
+ }
472
+ return result;
473
+ }();
474
+ exports.remap = {
475
+ "assignAll": "assign",
476
+ "assignAllWith": "assignWith",
477
+ "assignInAll": "assignIn",
478
+ "assignInAllWith": "assignInWith",
479
+ "curryN": "curry",
480
+ "curryRightN": "curryRight",
481
+ "defaultsAll": "defaults",
482
+ "defaultsDeepAll": "defaultsDeep",
483
+ "findFrom": "find",
484
+ "findIndexFrom": "findIndex",
485
+ "findLastFrom": "findLast",
486
+ "findLastIndexFrom": "findLastIndex",
487
+ "getOr": "get",
488
+ "includesFrom": "includes",
489
+ "indexOfFrom": "indexOf",
490
+ "invokeArgs": "invoke",
491
+ "invokeArgsMap": "invokeMap",
492
+ "lastIndexOfFrom": "lastIndexOf",
493
+ "mergeAll": "merge",
494
+ "mergeAllWith": "mergeWith",
495
+ "padChars": "pad",
496
+ "padCharsEnd": "padEnd",
497
+ "padCharsStart": "padStart",
498
+ "propertyOf": "get",
499
+ "rangeStep": "range",
500
+ "rangeStepRight": "rangeRight",
501
+ "restFrom": "rest",
502
+ "spreadFrom": "spread",
503
+ "trimChars": "trim",
504
+ "trimCharsEnd": "trimEnd",
505
+ "trimCharsStart": "trimStart",
506
+ "zipAll": "zip"
507
+ };
508
+ exports.skipFixed = {
509
+ "castArray": true,
510
+ "flow": true,
511
+ "flowRight": true,
512
+ "iteratee": true,
513
+ "mixin": true,
514
+ "rearg": true,
515
+ "runInContext": true
516
+ };
517
+ exports.skipRearg = {
518
+ "add": true,
519
+ "assign": true,
520
+ "assignIn": true,
521
+ "bind": true,
522
+ "bindKey": true,
523
+ "concat": true,
524
+ "difference": true,
525
+ "divide": true,
526
+ "eq": true,
527
+ "gt": true,
528
+ "gte": true,
529
+ "isEqual": true,
530
+ "lt": true,
531
+ "lte": true,
532
+ "matchesProperty": true,
533
+ "merge": true,
534
+ "multiply": true,
535
+ "overArgs": true,
536
+ "partial": true,
537
+ "partialRight": true,
538
+ "propertyOf": true,
539
+ "random": true,
540
+ "range": true,
541
+ "rangeRight": true,
542
+ "subtract": true,
543
+ "zip": true,
544
+ "zipObject": true,
545
+ "zipObjectDeep": true
546
+ };
547
+ })(_mapping);
548
+ var placeholder = {};
549
+ var mapping = _mapping, fallbackHolder = placeholder;
550
+ var push = Array.prototype.push;
551
+ function baseArity(func, n) {
552
+ return n == 2 ? function(a, b) {
553
+ return func.apply(void 0, arguments);
554
+ } : function(a) {
555
+ return func.apply(void 0, arguments);
556
+ };
557
+ }
558
+ function baseAry(func, n) {
559
+ return n == 2 ? function(a, b) {
560
+ return func(a, b);
561
+ } : function(a) {
562
+ return func(a);
563
+ };
564
+ }
565
+ function cloneArray(array) {
566
+ var length = array ? array.length : 0, result = Array(length);
567
+ while (length--) {
568
+ result[length] = array[length];
569
+ }
570
+ return result;
571
+ }
572
+ function createCloner(func) {
573
+ return function(object) {
574
+ return func({}, object);
575
+ };
576
+ }
577
+ function flatSpread(func, start) {
578
+ return function() {
579
+ var length = arguments.length, lastIndex = length - 1, args = Array(length);
580
+ while (length--) {
581
+ args[length] = arguments[length];
582
+ }
583
+ var array = args[start], otherArgs = args.slice(0, start);
584
+ if (array) {
585
+ push.apply(otherArgs, array);
586
+ }
587
+ if (start != lastIndex) {
588
+ push.apply(otherArgs, args.slice(start + 1));
589
+ }
590
+ return func.apply(this, otherArgs);
591
+ };
592
+ }
593
+ function wrapImmutable(func, cloner) {
594
+ return function() {
595
+ var length = arguments.length;
596
+ if (!length) {
597
+ return;
598
+ }
599
+ var args = Array(length);
600
+ while (length--) {
601
+ args[length] = arguments[length];
602
+ }
603
+ var result = args[0] = cloner.apply(void 0, args);
604
+ func.apply(void 0, args);
605
+ return result;
606
+ };
607
+ }
608
+ function baseConvert(util, name, func, options) {
609
+ var isLib = typeof name == "function", isObj = name === Object(name);
610
+ if (isObj) {
611
+ options = func;
612
+ func = name;
613
+ name = void 0;
614
+ }
615
+ if (func == null) {
616
+ throw new TypeError();
617
+ }
618
+ options || (options = {});
619
+ var config = {
620
+ "cap": "cap" in options ? options.cap : true,
621
+ "curry": "curry" in options ? options.curry : true,
622
+ "fixed": "fixed" in options ? options.fixed : true,
623
+ "immutable": "immutable" in options ? options.immutable : true,
624
+ "rearg": "rearg" in options ? options.rearg : true
625
+ };
626
+ var defaultHolder = isLib ? func : fallbackHolder, forceCurry = "curry" in options && options.curry, forceFixed = "fixed" in options && options.fixed, forceRearg = "rearg" in options && options.rearg, pristine = isLib ? func.runInContext() : void 0;
627
+ var helpers = isLib ? func : {
628
+ "ary": util.ary,
629
+ "assign": util.assign,
630
+ "clone": util.clone,
631
+ "curry": util.curry,
632
+ "forEach": util.forEach,
633
+ "isArray": util.isArray,
634
+ "isError": util.isError,
635
+ "isFunction": util.isFunction,
636
+ "isWeakMap": util.isWeakMap,
637
+ "iteratee": util.iteratee,
638
+ "keys": util.keys,
639
+ "rearg": util.rearg,
640
+ "toInteger": util.toInteger,
641
+ "toPath": util.toPath
642
+ };
643
+ var ary = helpers.ary, assign = helpers.assign, clone = helpers.clone, curry = helpers.curry, each = helpers.forEach, isArray = helpers.isArray, isError = helpers.isError, isFunction = helpers.isFunction, isWeakMap = helpers.isWeakMap, keys = helpers.keys, rearg = helpers.rearg, toInteger = helpers.toInteger, toPath = helpers.toPath;
644
+ var aryMethodKeys = keys(mapping.aryMethod);
645
+ var wrappers = {
646
+ "castArray": function(castArray) {
647
+ return function() {
648
+ var value = arguments[0];
649
+ return isArray(value) ? castArray(cloneArray(value)) : castArray.apply(void 0, arguments);
650
+ };
651
+ },
652
+ "iteratee": function(iteratee) {
653
+ return function() {
654
+ var func2 = arguments[0], arity = arguments[1], result = iteratee(func2, arity), length = result.length;
655
+ if (config.cap && typeof arity == "number") {
656
+ arity = arity > 2 ? arity - 2 : 1;
657
+ return length && length <= arity ? result : baseAry(result, arity);
658
+ }
659
+ return result;
660
+ };
661
+ },
662
+ "mixin": function(mixin) {
663
+ return function(source) {
664
+ var func2 = this;
665
+ if (!isFunction(func2)) {
666
+ return mixin(func2, Object(source));
667
+ }
668
+ var pairs2 = [];
669
+ each(keys(source), function(key) {
670
+ if (isFunction(source[key])) {
671
+ pairs2.push([key, func2.prototype[key]]);
672
+ }
673
+ });
674
+ mixin(func2, Object(source));
675
+ each(pairs2, function(pair) {
676
+ var value = pair[1];
677
+ if (isFunction(value)) {
678
+ func2.prototype[pair[0]] = value;
679
+ } else {
680
+ delete func2.prototype[pair[0]];
681
+ }
682
+ });
683
+ return func2;
684
+ };
685
+ },
686
+ "nthArg": function(nthArg) {
687
+ return function(n) {
688
+ var arity = n < 0 ? 1 : toInteger(n) + 1;
689
+ return curry(nthArg(n), arity);
690
+ };
691
+ },
692
+ "rearg": function(rearg2) {
693
+ return function(func2, indexes) {
694
+ var arity = indexes ? indexes.length : 0;
695
+ return curry(rearg2(func2, indexes), arity);
696
+ };
697
+ },
698
+ "runInContext": function(runInContext) {
699
+ return function(context) {
700
+ return baseConvert(util, runInContext(context), options);
701
+ };
702
+ }
703
+ };
704
+ function castCap(name2, func2) {
705
+ if (config.cap) {
706
+ var indexes = mapping.iterateeRearg[name2];
707
+ if (indexes) {
708
+ return iterateeRearg(func2, indexes);
709
+ }
710
+ var n = !isLib && mapping.iterateeAry[name2];
711
+ if (n) {
712
+ return iterateeAry(func2, n);
713
+ }
714
+ }
715
+ return func2;
716
+ }
717
+ function castCurry(name2, func2, n) {
718
+ return forceCurry || config.curry && n > 1 ? curry(func2, n) : func2;
719
+ }
720
+ function castFixed(name2, func2, n) {
721
+ if (config.fixed && (forceFixed || !mapping.skipFixed[name2])) {
722
+ var data = mapping.methodSpread[name2], start = data && data.start;
723
+ return start === void 0 ? ary(func2, n) : flatSpread(func2, start);
724
+ }
725
+ return func2;
726
+ }
727
+ function castRearg(name2, func2, n) {
728
+ return config.rearg && n > 1 && (forceRearg || !mapping.skipRearg[name2]) ? rearg(func2, mapping.methodRearg[name2] || mapping.aryRearg[n]) : func2;
729
+ }
730
+ function cloneByPath(object, path) {
731
+ path = toPath(path);
732
+ var index = -1, length = path.length, lastIndex = length - 1, result = clone(Object(object)), nested = result;
733
+ while (nested != null && ++index < length) {
734
+ var key = path[index], value = nested[key];
735
+ if (value != null && !(isFunction(value) || isError(value) || isWeakMap(value))) {
736
+ nested[key] = clone(index == lastIndex ? value : Object(value));
737
+ }
738
+ nested = nested[key];
739
+ }
740
+ return result;
741
+ }
742
+ function convertLib(options2) {
743
+ return _.runInContext.convert(options2)(void 0);
744
+ }
745
+ function createConverter(name2, func2) {
746
+ var realName = mapping.aliasToReal[name2] || name2, methodName = mapping.remap[realName] || realName, oldOptions = options;
747
+ return function(options2) {
748
+ var newUtil = isLib ? pristine : helpers, newFunc = isLib ? pristine[methodName] : func2, newOptions = assign(assign({}, oldOptions), options2);
749
+ return baseConvert(newUtil, realName, newFunc, newOptions);
750
+ };
751
+ }
752
+ function iterateeAry(func2, n) {
753
+ return overArg(func2, function(func3) {
754
+ return typeof func3 == "function" ? baseAry(func3, n) : func3;
755
+ });
756
+ }
757
+ function iterateeRearg(func2, indexes) {
758
+ return overArg(func2, function(func3) {
759
+ var n = indexes.length;
760
+ return baseArity(rearg(baseAry(func3, n), indexes), n);
761
+ });
762
+ }
763
+ function overArg(func2, transform) {
764
+ return function() {
765
+ var length = arguments.length;
766
+ if (!length) {
767
+ return func2();
768
+ }
769
+ var args = Array(length);
770
+ while (length--) {
771
+ args[length] = arguments[length];
772
+ }
773
+ var index = config.rearg ? 0 : length - 1;
774
+ args[index] = transform(args[index]);
775
+ return func2.apply(void 0, args);
776
+ };
777
+ }
778
+ function wrap(name2, func2, placeholder2) {
779
+ var result, realName = mapping.aliasToReal[name2] || name2, wrapped = func2, wrapper = wrappers[realName];
780
+ if (wrapper) {
781
+ wrapped = wrapper(func2);
782
+ } else if (config.immutable) {
783
+ if (mapping.mutate.array[realName]) {
784
+ wrapped = wrapImmutable(func2, cloneArray);
785
+ } else if (mapping.mutate.object[realName]) {
786
+ wrapped = wrapImmutable(func2, createCloner(func2));
787
+ } else if (mapping.mutate.set[realName]) {
788
+ wrapped = wrapImmutable(func2, cloneByPath);
789
+ }
790
+ }
791
+ each(aryMethodKeys, function(aryKey) {
792
+ each(mapping.aryMethod[aryKey], function(otherName) {
793
+ if (realName == otherName) {
794
+ var data = mapping.methodSpread[realName], afterRearg = data && data.afterRearg;
795
+ result = afterRearg ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey) : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);
796
+ result = castCap(realName, result);
797
+ result = castCurry(realName, result, aryKey);
798
+ return false;
799
+ }
800
+ });
801
+ return !result;
802
+ });
803
+ result || (result = wrapped);
804
+ if (result == func2) {
805
+ result = forceCurry ? curry(result, 1) : function() {
806
+ return func2.apply(this, arguments);
807
+ };
808
+ }
809
+ result.convert = createConverter(realName, func2);
810
+ result.placeholder = func2.placeholder = placeholder2;
811
+ return result;
812
+ }
813
+ if (!isObj) {
814
+ return wrap(name, func, defaultHolder);
815
+ }
816
+ var _ = func;
817
+ var pairs = [];
818
+ each(aryMethodKeys, function(aryKey) {
819
+ each(mapping.aryMethod[aryKey], function(key) {
820
+ var func2 = _[mapping.remap[key] || key];
821
+ if (func2) {
822
+ pairs.push([key, wrap(key, func2, _)]);
823
+ }
824
+ });
825
+ });
826
+ each(keys(_), function(key) {
827
+ var func2 = _[key];
828
+ if (typeof func2 == "function") {
829
+ var length = pairs.length;
830
+ while (length--) {
831
+ if (pairs[length][0] == key) {
832
+ return;
833
+ }
834
+ }
835
+ func2.convert = createConverter(key, func2);
836
+ pairs.push([key, func2]);
837
+ }
838
+ });
839
+ each(pairs, function(pair) {
840
+ _[pair[0]] = pair[1];
841
+ });
842
+ _.convert = convertLib;
843
+ _.placeholder = _;
844
+ each(keys(_), function(key) {
845
+ each(mapping.realToAlias[key] || [], function(alias) {
846
+ _[alias] = _[key];
847
+ });
848
+ });
849
+ return _;
850
+ }
851
+ var _baseConvert = baseConvert;
852
+ export {
853
+ _baseConvert as _,
854
+ getDefaultExportFromCjs as a,
855
+ commonjsGlobal as c,
856
+ getAugmentedNamespace as g,
857
+ placeholder as p
858
+ };
859
+ //# sourceMappingURL=_baseConvert-CDjccxdO.mjs.map