@storybook/react-native-ui 8.0.0-alpha.3 → 8.2.0-alpha.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/index.d.ts +15 -283
- package/dist/index.js +3140 -825
- package/package.json +10 -11
- package/src/Button.tsx +2 -74
- package/src/Explorer.stories.tsx +0 -6
- package/src/Explorer.tsx +0 -16
- package/src/Layout.stories.tsx +1 -6
- package/src/Layout.tsx +32 -25
- package/src/MobileAddonsPanel.tsx +141 -126
- package/src/MobileMenuDrawer.tsx +15 -10
- package/src/Refs.tsx +3 -63
- package/src/Search.tsx +4 -97
- package/src/SearchResults.tsx +3 -73
- package/src/Sidebar.stories.tsx +4 -42
- package/src/Sidebar.tsx +7 -70
- package/src/Tree.stories.tsx +2 -10
- package/src/Tree.tsx +7 -61
- package/src/TreeNode.stories.tsx +0 -5
- package/src/TreeNode.tsx +0 -1
- package/src/icon/CloseIcon.tsx +21 -20
- package/src/icon/MenuIcon.tsx +0 -1
- package/src/icon/SearchIcon.tsx +17 -14
- package/src/index.tsx +1 -0
- package/src/mockdata.ts +1 -1
- package/src/types.ts +3 -15
- package/src/useExpanded.ts +4 -62
- package/src/util/StoryHash.ts +244 -0
- package/src/util/status.tsx +1 -1
- package/src/util/tree.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -314,368 +314,2601 @@ var require_debounce = __commonJS({
|
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
316
|
|
|
317
|
-
// ../../node_modules/
|
|
318
|
-
var
|
|
319
|
-
"../../node_modules/
|
|
320
|
-
(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
317
|
+
// ../../node_modules/lodash/isFunction.js
|
|
318
|
+
var require_isFunction = __commonJS({
|
|
319
|
+
"../../node_modules/lodash/isFunction.js"(exports, module2) {
|
|
320
|
+
var baseGetTag = require_baseGetTag();
|
|
321
|
+
var isObject = require_isObject();
|
|
322
|
+
var asyncTag = "[object AsyncFunction]";
|
|
323
|
+
var funcTag = "[object Function]";
|
|
324
|
+
var genTag = "[object GeneratorFunction]";
|
|
325
|
+
var proxyTag = "[object Proxy]";
|
|
326
|
+
function isFunction(value) {
|
|
327
|
+
if (!isObject(value)) {
|
|
328
|
+
return false;
|
|
329
|
+
}
|
|
330
|
+
var tag = baseGetTag(value);
|
|
331
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
332
|
+
}
|
|
333
|
+
module2.exports = isFunction;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
// ../../node_modules/lodash/_coreJsData.js
|
|
338
|
+
var require_coreJsData = __commonJS({
|
|
339
|
+
"../../node_modules/lodash/_coreJsData.js"(exports, module2) {
|
|
340
|
+
var root = require_root();
|
|
341
|
+
var coreJsData = root["__core-js_shared__"];
|
|
342
|
+
module2.exports = coreJsData;
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
|
|
346
|
+
// ../../node_modules/lodash/_isMasked.js
|
|
347
|
+
var require_isMasked = __commonJS({
|
|
348
|
+
"../../node_modules/lodash/_isMasked.js"(exports, module2) {
|
|
349
|
+
var coreJsData = require_coreJsData();
|
|
350
|
+
var maskSrcKey = function() {
|
|
351
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
352
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
353
|
+
}();
|
|
354
|
+
function isMasked(func) {
|
|
355
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
356
|
+
}
|
|
357
|
+
module2.exports = isMasked;
|
|
358
|
+
}
|
|
359
|
+
});
|
|
360
|
+
|
|
361
|
+
// ../../node_modules/lodash/_toSource.js
|
|
362
|
+
var require_toSource = __commonJS({
|
|
363
|
+
"../../node_modules/lodash/_toSource.js"(exports, module2) {
|
|
364
|
+
var funcProto = Function.prototype;
|
|
365
|
+
var funcToString = funcProto.toString;
|
|
366
|
+
function toSource(func) {
|
|
367
|
+
if (func != null) {
|
|
368
|
+
try {
|
|
369
|
+
return funcToString.call(func);
|
|
370
|
+
} catch (e) {
|
|
371
|
+
}
|
|
372
|
+
try {
|
|
373
|
+
return func + "";
|
|
374
|
+
} catch (e) {
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return "";
|
|
378
|
+
}
|
|
379
|
+
module2.exports = toSource;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
|
|
383
|
+
// ../../node_modules/lodash/_baseIsNative.js
|
|
384
|
+
var require_baseIsNative = __commonJS({
|
|
385
|
+
"../../node_modules/lodash/_baseIsNative.js"(exports, module2) {
|
|
386
|
+
var isFunction = require_isFunction();
|
|
387
|
+
var isMasked = require_isMasked();
|
|
388
|
+
var isObject = require_isObject();
|
|
389
|
+
var toSource = require_toSource();
|
|
390
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
391
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
392
|
+
var funcProto = Function.prototype;
|
|
393
|
+
var objectProto = Object.prototype;
|
|
394
|
+
var funcToString = funcProto.toString;
|
|
395
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
396
|
+
var reIsNative = RegExp(
|
|
397
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
398
|
+
);
|
|
399
|
+
function baseIsNative(value) {
|
|
400
|
+
if (!isObject(value) || isMasked(value)) {
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
404
|
+
return pattern.test(toSource(value));
|
|
405
|
+
}
|
|
406
|
+
module2.exports = baseIsNative;
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
// ../../node_modules/lodash/_getValue.js
|
|
411
|
+
var require_getValue = __commonJS({
|
|
412
|
+
"../../node_modules/lodash/_getValue.js"(exports, module2) {
|
|
413
|
+
function getValue(object, key) {
|
|
414
|
+
return object == null ? void 0 : object[key];
|
|
415
|
+
}
|
|
416
|
+
module2.exports = getValue;
|
|
417
|
+
}
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
// ../../node_modules/lodash/_getNative.js
|
|
421
|
+
var require_getNative = __commonJS({
|
|
422
|
+
"../../node_modules/lodash/_getNative.js"(exports, module2) {
|
|
423
|
+
var baseIsNative = require_baseIsNative();
|
|
424
|
+
var getValue = require_getValue();
|
|
425
|
+
function getNative(object, key) {
|
|
426
|
+
var value = getValue(object, key);
|
|
427
|
+
return baseIsNative(value) ? value : void 0;
|
|
428
|
+
}
|
|
429
|
+
module2.exports = getNative;
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
// ../../node_modules/lodash/_defineProperty.js
|
|
434
|
+
var require_defineProperty = __commonJS({
|
|
435
|
+
"../../node_modules/lodash/_defineProperty.js"(exports, module2) {
|
|
436
|
+
var getNative = require_getNative();
|
|
437
|
+
var defineProperty = function() {
|
|
438
|
+
try {
|
|
439
|
+
var func = getNative(Object, "defineProperty");
|
|
440
|
+
func({}, "", {});
|
|
441
|
+
return func;
|
|
442
|
+
} catch (e) {
|
|
443
|
+
}
|
|
444
|
+
}();
|
|
445
|
+
module2.exports = defineProperty;
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
|
|
449
|
+
// ../../node_modules/lodash/_baseAssignValue.js
|
|
450
|
+
var require_baseAssignValue = __commonJS({
|
|
451
|
+
"../../node_modules/lodash/_baseAssignValue.js"(exports, module2) {
|
|
452
|
+
var defineProperty = require_defineProperty();
|
|
453
|
+
function baseAssignValue(object, key, value) {
|
|
454
|
+
if (key == "__proto__" && defineProperty) {
|
|
455
|
+
defineProperty(object, key, {
|
|
456
|
+
"configurable": true,
|
|
457
|
+
"enumerable": true,
|
|
458
|
+
"value": value,
|
|
459
|
+
"writable": true
|
|
460
|
+
});
|
|
461
|
+
} else {
|
|
462
|
+
object[key] = value;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
module2.exports = baseAssignValue;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
|
|
469
|
+
// ../../node_modules/lodash/_arrayAggregator.js
|
|
470
|
+
var require_arrayAggregator = __commonJS({
|
|
471
|
+
"../../node_modules/lodash/_arrayAggregator.js"(exports, module2) {
|
|
472
|
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
473
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
474
|
+
while (++index < length) {
|
|
475
|
+
var value = array[index];
|
|
476
|
+
setter(accumulator, value, iteratee(value), array);
|
|
477
|
+
}
|
|
478
|
+
return accumulator;
|
|
479
|
+
}
|
|
480
|
+
module2.exports = arrayAggregator;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
// ../../node_modules/lodash/_createBaseFor.js
|
|
485
|
+
var require_createBaseFor = __commonJS({
|
|
486
|
+
"../../node_modules/lodash/_createBaseFor.js"(exports, module2) {
|
|
487
|
+
function createBaseFor(fromRight) {
|
|
488
|
+
return function(object, iteratee, keysFunc) {
|
|
489
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
490
|
+
while (length--) {
|
|
491
|
+
var key = props[fromRight ? length : ++index];
|
|
492
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
return object;
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
module2.exports = createBaseFor;
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
|
|
503
|
+
// ../../node_modules/lodash/_baseFor.js
|
|
504
|
+
var require_baseFor = __commonJS({
|
|
505
|
+
"../../node_modules/lodash/_baseFor.js"(exports, module2) {
|
|
506
|
+
var createBaseFor = require_createBaseFor();
|
|
507
|
+
var baseFor = createBaseFor();
|
|
508
|
+
module2.exports = baseFor;
|
|
509
|
+
}
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
// ../../node_modules/lodash/_baseTimes.js
|
|
513
|
+
var require_baseTimes = __commonJS({
|
|
514
|
+
"../../node_modules/lodash/_baseTimes.js"(exports, module2) {
|
|
515
|
+
function baseTimes(n, iteratee) {
|
|
516
|
+
var index = -1, result = Array(n);
|
|
517
|
+
while (++index < n) {
|
|
518
|
+
result[index] = iteratee(index);
|
|
519
|
+
}
|
|
520
|
+
return result;
|
|
521
|
+
}
|
|
522
|
+
module2.exports = baseTimes;
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
|
|
526
|
+
// ../../node_modules/lodash/_baseIsArguments.js
|
|
527
|
+
var require_baseIsArguments = __commonJS({
|
|
528
|
+
"../../node_modules/lodash/_baseIsArguments.js"(exports, module2) {
|
|
529
|
+
var baseGetTag = require_baseGetTag();
|
|
530
|
+
var isObjectLike = require_isObjectLike();
|
|
531
|
+
var argsTag = "[object Arguments]";
|
|
532
|
+
function baseIsArguments(value) {
|
|
533
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
534
|
+
}
|
|
535
|
+
module2.exports = baseIsArguments;
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
|
|
539
|
+
// ../../node_modules/lodash/isArguments.js
|
|
540
|
+
var require_isArguments = __commonJS({
|
|
541
|
+
"../../node_modules/lodash/isArguments.js"(exports, module2) {
|
|
542
|
+
var baseIsArguments = require_baseIsArguments();
|
|
543
|
+
var isObjectLike = require_isObjectLike();
|
|
544
|
+
var objectProto = Object.prototype;
|
|
545
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
546
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
547
|
+
var isArguments = baseIsArguments(function() {
|
|
548
|
+
return arguments;
|
|
549
|
+
}()) ? baseIsArguments : function(value) {
|
|
550
|
+
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
551
|
+
};
|
|
552
|
+
module2.exports = isArguments;
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
|
|
556
|
+
// ../../node_modules/lodash/isArray.js
|
|
557
|
+
var require_isArray = __commonJS({
|
|
558
|
+
"../../node_modules/lodash/isArray.js"(exports, module2) {
|
|
559
|
+
var isArray = Array.isArray;
|
|
560
|
+
module2.exports = isArray;
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
|
|
564
|
+
// ../../node_modules/lodash/stubFalse.js
|
|
565
|
+
var require_stubFalse = __commonJS({
|
|
566
|
+
"../../node_modules/lodash/stubFalse.js"(exports, module2) {
|
|
567
|
+
function stubFalse() {
|
|
568
|
+
return false;
|
|
569
|
+
}
|
|
570
|
+
module2.exports = stubFalse;
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
// ../../node_modules/lodash/isBuffer.js
|
|
575
|
+
var require_isBuffer = __commonJS({
|
|
576
|
+
"../../node_modules/lodash/isBuffer.js"(exports, module2) {
|
|
577
|
+
var root = require_root();
|
|
578
|
+
var stubFalse = require_stubFalse();
|
|
579
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
580
|
+
var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
|
|
581
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
582
|
+
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
583
|
+
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
584
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
585
|
+
module2.exports = isBuffer;
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
// ../../node_modules/lodash/_isIndex.js
|
|
590
|
+
var require_isIndex = __commonJS({
|
|
591
|
+
"../../node_modules/lodash/_isIndex.js"(exports, module2) {
|
|
592
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
593
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
594
|
+
function isIndex(value, length) {
|
|
595
|
+
var type = typeof value;
|
|
596
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
597
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
598
|
+
}
|
|
599
|
+
module2.exports = isIndex;
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
|
|
603
|
+
// ../../node_modules/lodash/isLength.js
|
|
604
|
+
var require_isLength = __commonJS({
|
|
605
|
+
"../../node_modules/lodash/isLength.js"(exports, module2) {
|
|
606
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
607
|
+
function isLength(value) {
|
|
608
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
609
|
+
}
|
|
610
|
+
module2.exports = isLength;
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
|
|
614
|
+
// ../../node_modules/lodash/_baseIsTypedArray.js
|
|
615
|
+
var require_baseIsTypedArray = __commonJS({
|
|
616
|
+
"../../node_modules/lodash/_baseIsTypedArray.js"(exports, module2) {
|
|
617
|
+
var baseGetTag = require_baseGetTag();
|
|
618
|
+
var isLength = require_isLength();
|
|
619
|
+
var isObjectLike = require_isObjectLike();
|
|
620
|
+
var argsTag = "[object Arguments]";
|
|
621
|
+
var arrayTag = "[object Array]";
|
|
622
|
+
var boolTag = "[object Boolean]";
|
|
623
|
+
var dateTag = "[object Date]";
|
|
624
|
+
var errorTag = "[object Error]";
|
|
625
|
+
var funcTag = "[object Function]";
|
|
626
|
+
var mapTag = "[object Map]";
|
|
627
|
+
var numberTag = "[object Number]";
|
|
628
|
+
var objectTag = "[object Object]";
|
|
629
|
+
var regexpTag = "[object RegExp]";
|
|
630
|
+
var setTag = "[object Set]";
|
|
631
|
+
var stringTag = "[object String]";
|
|
632
|
+
var weakMapTag = "[object WeakMap]";
|
|
633
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
634
|
+
var dataViewTag = "[object DataView]";
|
|
635
|
+
var float32Tag = "[object Float32Array]";
|
|
636
|
+
var float64Tag = "[object Float64Array]";
|
|
637
|
+
var int8Tag = "[object Int8Array]";
|
|
638
|
+
var int16Tag = "[object Int16Array]";
|
|
639
|
+
var int32Tag = "[object Int32Array]";
|
|
640
|
+
var uint8Tag = "[object Uint8Array]";
|
|
641
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
642
|
+
var uint16Tag = "[object Uint16Array]";
|
|
643
|
+
var uint32Tag = "[object Uint32Array]";
|
|
644
|
+
var typedArrayTags = {};
|
|
645
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
646
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
647
|
+
function baseIsTypedArray(value) {
|
|
648
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
649
|
+
}
|
|
650
|
+
module2.exports = baseIsTypedArray;
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
// ../../node_modules/lodash/_baseUnary.js
|
|
655
|
+
var require_baseUnary = __commonJS({
|
|
656
|
+
"../../node_modules/lodash/_baseUnary.js"(exports, module2) {
|
|
657
|
+
function baseUnary(func) {
|
|
658
|
+
return function(value) {
|
|
659
|
+
return func(value);
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
module2.exports = baseUnary;
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
|
|
666
|
+
// ../../node_modules/lodash/_nodeUtil.js
|
|
667
|
+
var require_nodeUtil = __commonJS({
|
|
668
|
+
"../../node_modules/lodash/_nodeUtil.js"(exports, module2) {
|
|
669
|
+
var freeGlobal = require_freeGlobal();
|
|
670
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
671
|
+
var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
|
|
672
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
673
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
674
|
+
var nodeUtil = function() {
|
|
675
|
+
try {
|
|
676
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
677
|
+
if (types) {
|
|
678
|
+
return types;
|
|
679
|
+
}
|
|
680
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
681
|
+
} catch (e) {
|
|
682
|
+
}
|
|
683
|
+
}();
|
|
684
|
+
module2.exports = nodeUtil;
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
|
|
688
|
+
// ../../node_modules/lodash/isTypedArray.js
|
|
689
|
+
var require_isTypedArray = __commonJS({
|
|
690
|
+
"../../node_modules/lodash/isTypedArray.js"(exports, module2) {
|
|
691
|
+
var baseIsTypedArray = require_baseIsTypedArray();
|
|
692
|
+
var baseUnary = require_baseUnary();
|
|
693
|
+
var nodeUtil = require_nodeUtil();
|
|
694
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
695
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
696
|
+
module2.exports = isTypedArray;
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
|
|
700
|
+
// ../../node_modules/lodash/_arrayLikeKeys.js
|
|
701
|
+
var require_arrayLikeKeys = __commonJS({
|
|
702
|
+
"../../node_modules/lodash/_arrayLikeKeys.js"(exports, module2) {
|
|
703
|
+
var baseTimes = require_baseTimes();
|
|
704
|
+
var isArguments = require_isArguments();
|
|
705
|
+
var isArray = require_isArray();
|
|
706
|
+
var isBuffer = require_isBuffer();
|
|
707
|
+
var isIndex = require_isIndex();
|
|
708
|
+
var isTypedArray = require_isTypedArray();
|
|
709
|
+
var objectProto = Object.prototype;
|
|
710
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
711
|
+
function arrayLikeKeys(value, inherited) {
|
|
712
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
713
|
+
for (var key in value) {
|
|
714
|
+
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
715
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
716
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
717
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
718
|
+
isIndex(key, length)))) {
|
|
719
|
+
result.push(key);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
return result;
|
|
723
|
+
}
|
|
724
|
+
module2.exports = arrayLikeKeys;
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
|
|
728
|
+
// ../../node_modules/lodash/_isPrototype.js
|
|
729
|
+
var require_isPrototype = __commonJS({
|
|
730
|
+
"../../node_modules/lodash/_isPrototype.js"(exports, module2) {
|
|
731
|
+
var objectProto = Object.prototype;
|
|
732
|
+
function isPrototype(value) {
|
|
733
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
734
|
+
return value === proto;
|
|
735
|
+
}
|
|
736
|
+
module2.exports = isPrototype;
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
|
|
740
|
+
// ../../node_modules/lodash/_overArg.js
|
|
741
|
+
var require_overArg = __commonJS({
|
|
742
|
+
"../../node_modules/lodash/_overArg.js"(exports, module2) {
|
|
743
|
+
function overArg(func, transform) {
|
|
744
|
+
return function(arg) {
|
|
745
|
+
return func(transform(arg));
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
module2.exports = overArg;
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
// ../../node_modules/lodash/_nativeKeys.js
|
|
753
|
+
var require_nativeKeys = __commonJS({
|
|
754
|
+
"../../node_modules/lodash/_nativeKeys.js"(exports, module2) {
|
|
755
|
+
var overArg = require_overArg();
|
|
756
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
757
|
+
module2.exports = nativeKeys;
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
// ../../node_modules/lodash/_baseKeys.js
|
|
762
|
+
var require_baseKeys = __commonJS({
|
|
763
|
+
"../../node_modules/lodash/_baseKeys.js"(exports, module2) {
|
|
764
|
+
var isPrototype = require_isPrototype();
|
|
765
|
+
var nativeKeys = require_nativeKeys();
|
|
766
|
+
var objectProto = Object.prototype;
|
|
767
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
768
|
+
function baseKeys(object) {
|
|
769
|
+
if (!isPrototype(object)) {
|
|
770
|
+
return nativeKeys(object);
|
|
771
|
+
}
|
|
772
|
+
var result = [];
|
|
773
|
+
for (var key in Object(object)) {
|
|
774
|
+
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
775
|
+
result.push(key);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
return result;
|
|
779
|
+
}
|
|
780
|
+
module2.exports = baseKeys;
|
|
781
|
+
}
|
|
782
|
+
});
|
|
783
|
+
|
|
784
|
+
// ../../node_modules/lodash/isArrayLike.js
|
|
785
|
+
var require_isArrayLike = __commonJS({
|
|
786
|
+
"../../node_modules/lodash/isArrayLike.js"(exports, module2) {
|
|
787
|
+
var isFunction = require_isFunction();
|
|
788
|
+
var isLength = require_isLength();
|
|
789
|
+
function isArrayLike(value) {
|
|
790
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
791
|
+
}
|
|
792
|
+
module2.exports = isArrayLike;
|
|
793
|
+
}
|
|
794
|
+
});
|
|
795
|
+
|
|
796
|
+
// ../../node_modules/lodash/keys.js
|
|
797
|
+
var require_keys = __commonJS({
|
|
798
|
+
"../../node_modules/lodash/keys.js"(exports, module2) {
|
|
799
|
+
var arrayLikeKeys = require_arrayLikeKeys();
|
|
800
|
+
var baseKeys = require_baseKeys();
|
|
801
|
+
var isArrayLike = require_isArrayLike();
|
|
802
|
+
function keys(object) {
|
|
803
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
804
|
+
}
|
|
805
|
+
module2.exports = keys;
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
// ../../node_modules/lodash/_baseForOwn.js
|
|
810
|
+
var require_baseForOwn = __commonJS({
|
|
811
|
+
"../../node_modules/lodash/_baseForOwn.js"(exports, module2) {
|
|
812
|
+
var baseFor = require_baseFor();
|
|
813
|
+
var keys = require_keys();
|
|
814
|
+
function baseForOwn(object, iteratee) {
|
|
815
|
+
return object && baseFor(object, iteratee, keys);
|
|
816
|
+
}
|
|
817
|
+
module2.exports = baseForOwn;
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
|
|
821
|
+
// ../../node_modules/lodash/_createBaseEach.js
|
|
822
|
+
var require_createBaseEach = __commonJS({
|
|
823
|
+
"../../node_modules/lodash/_createBaseEach.js"(exports, module2) {
|
|
824
|
+
var isArrayLike = require_isArrayLike();
|
|
825
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
826
|
+
return function(collection, iteratee) {
|
|
827
|
+
if (collection == null) {
|
|
828
|
+
return collection;
|
|
829
|
+
}
|
|
830
|
+
if (!isArrayLike(collection)) {
|
|
831
|
+
return eachFunc(collection, iteratee);
|
|
832
|
+
}
|
|
833
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
834
|
+
while (fromRight ? index-- : ++index < length) {
|
|
835
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return collection;
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
module2.exports = createBaseEach;
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
|
|
846
|
+
// ../../node_modules/lodash/_baseEach.js
|
|
847
|
+
var require_baseEach = __commonJS({
|
|
848
|
+
"../../node_modules/lodash/_baseEach.js"(exports, module2) {
|
|
849
|
+
var baseForOwn = require_baseForOwn();
|
|
850
|
+
var createBaseEach = require_createBaseEach();
|
|
851
|
+
var baseEach = createBaseEach(baseForOwn);
|
|
852
|
+
module2.exports = baseEach;
|
|
853
|
+
}
|
|
854
|
+
});
|
|
855
|
+
|
|
856
|
+
// ../../node_modules/lodash/_baseAggregator.js
|
|
857
|
+
var require_baseAggregator = __commonJS({
|
|
858
|
+
"../../node_modules/lodash/_baseAggregator.js"(exports, module2) {
|
|
859
|
+
var baseEach = require_baseEach();
|
|
860
|
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
861
|
+
baseEach(collection, function(value, key, collection2) {
|
|
862
|
+
setter(accumulator, value, iteratee(value), collection2);
|
|
863
|
+
});
|
|
864
|
+
return accumulator;
|
|
865
|
+
}
|
|
866
|
+
module2.exports = baseAggregator;
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
// ../../node_modules/lodash/_listCacheClear.js
|
|
871
|
+
var require_listCacheClear = __commonJS({
|
|
872
|
+
"../../node_modules/lodash/_listCacheClear.js"(exports, module2) {
|
|
873
|
+
function listCacheClear() {
|
|
874
|
+
this.__data__ = [];
|
|
875
|
+
this.size = 0;
|
|
876
|
+
}
|
|
877
|
+
module2.exports = listCacheClear;
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
|
|
881
|
+
// ../../node_modules/lodash/eq.js
|
|
882
|
+
var require_eq = __commonJS({
|
|
883
|
+
"../../node_modules/lodash/eq.js"(exports, module2) {
|
|
884
|
+
function eq(value, other) {
|
|
885
|
+
return value === other || value !== value && other !== other;
|
|
886
|
+
}
|
|
887
|
+
module2.exports = eq;
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
// ../../node_modules/lodash/_assocIndexOf.js
|
|
892
|
+
var require_assocIndexOf = __commonJS({
|
|
893
|
+
"../../node_modules/lodash/_assocIndexOf.js"(exports, module2) {
|
|
894
|
+
var eq = require_eq();
|
|
895
|
+
function assocIndexOf(array, key) {
|
|
896
|
+
var length = array.length;
|
|
897
|
+
while (length--) {
|
|
898
|
+
if (eq(array[length][0], key)) {
|
|
899
|
+
return length;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
return -1;
|
|
903
|
+
}
|
|
904
|
+
module2.exports = assocIndexOf;
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
|
|
908
|
+
// ../../node_modules/lodash/_listCacheDelete.js
|
|
909
|
+
var require_listCacheDelete = __commonJS({
|
|
910
|
+
"../../node_modules/lodash/_listCacheDelete.js"(exports, module2) {
|
|
911
|
+
var assocIndexOf = require_assocIndexOf();
|
|
912
|
+
var arrayProto = Array.prototype;
|
|
913
|
+
var splice = arrayProto.splice;
|
|
914
|
+
function listCacheDelete(key) {
|
|
915
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
916
|
+
if (index < 0) {
|
|
917
|
+
return false;
|
|
918
|
+
}
|
|
919
|
+
var lastIndex = data.length - 1;
|
|
920
|
+
if (index == lastIndex) {
|
|
921
|
+
data.pop();
|
|
922
|
+
} else {
|
|
923
|
+
splice.call(data, index, 1);
|
|
924
|
+
}
|
|
925
|
+
--this.size;
|
|
926
|
+
return true;
|
|
927
|
+
}
|
|
928
|
+
module2.exports = listCacheDelete;
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
|
|
932
|
+
// ../../node_modules/lodash/_listCacheGet.js
|
|
933
|
+
var require_listCacheGet = __commonJS({
|
|
934
|
+
"../../node_modules/lodash/_listCacheGet.js"(exports, module2) {
|
|
935
|
+
var assocIndexOf = require_assocIndexOf();
|
|
936
|
+
function listCacheGet(key) {
|
|
937
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
938
|
+
return index < 0 ? void 0 : data[index][1];
|
|
939
|
+
}
|
|
940
|
+
module2.exports = listCacheGet;
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
|
|
944
|
+
// ../../node_modules/lodash/_listCacheHas.js
|
|
945
|
+
var require_listCacheHas = __commonJS({
|
|
946
|
+
"../../node_modules/lodash/_listCacheHas.js"(exports, module2) {
|
|
947
|
+
var assocIndexOf = require_assocIndexOf();
|
|
948
|
+
function listCacheHas(key) {
|
|
949
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
950
|
+
}
|
|
951
|
+
module2.exports = listCacheHas;
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
|
|
955
|
+
// ../../node_modules/lodash/_listCacheSet.js
|
|
956
|
+
var require_listCacheSet = __commonJS({
|
|
957
|
+
"../../node_modules/lodash/_listCacheSet.js"(exports, module2) {
|
|
958
|
+
var assocIndexOf = require_assocIndexOf();
|
|
959
|
+
function listCacheSet(key, value) {
|
|
960
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
961
|
+
if (index < 0) {
|
|
962
|
+
++this.size;
|
|
963
|
+
data.push([key, value]);
|
|
964
|
+
} else {
|
|
965
|
+
data[index][1] = value;
|
|
966
|
+
}
|
|
967
|
+
return this;
|
|
968
|
+
}
|
|
969
|
+
module2.exports = listCacheSet;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
|
|
973
|
+
// ../../node_modules/lodash/_ListCache.js
|
|
974
|
+
var require_ListCache = __commonJS({
|
|
975
|
+
"../../node_modules/lodash/_ListCache.js"(exports, module2) {
|
|
976
|
+
var listCacheClear = require_listCacheClear();
|
|
977
|
+
var listCacheDelete = require_listCacheDelete();
|
|
978
|
+
var listCacheGet = require_listCacheGet();
|
|
979
|
+
var listCacheHas = require_listCacheHas();
|
|
980
|
+
var listCacheSet = require_listCacheSet();
|
|
981
|
+
function ListCache(entries) {
|
|
982
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
983
|
+
this.clear();
|
|
984
|
+
while (++index < length) {
|
|
985
|
+
var entry = entries[index];
|
|
986
|
+
this.set(entry[0], entry[1]);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
ListCache.prototype.clear = listCacheClear;
|
|
990
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
991
|
+
ListCache.prototype.get = listCacheGet;
|
|
992
|
+
ListCache.prototype.has = listCacheHas;
|
|
993
|
+
ListCache.prototype.set = listCacheSet;
|
|
994
|
+
module2.exports = ListCache;
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
|
|
998
|
+
// ../../node_modules/lodash/_stackClear.js
|
|
999
|
+
var require_stackClear = __commonJS({
|
|
1000
|
+
"../../node_modules/lodash/_stackClear.js"(exports, module2) {
|
|
1001
|
+
var ListCache = require_ListCache();
|
|
1002
|
+
function stackClear() {
|
|
1003
|
+
this.__data__ = new ListCache();
|
|
1004
|
+
this.size = 0;
|
|
1005
|
+
}
|
|
1006
|
+
module2.exports = stackClear;
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
|
|
1010
|
+
// ../../node_modules/lodash/_stackDelete.js
|
|
1011
|
+
var require_stackDelete = __commonJS({
|
|
1012
|
+
"../../node_modules/lodash/_stackDelete.js"(exports, module2) {
|
|
1013
|
+
function stackDelete(key) {
|
|
1014
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1015
|
+
this.size = data.size;
|
|
1016
|
+
return result;
|
|
1017
|
+
}
|
|
1018
|
+
module2.exports = stackDelete;
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
|
|
1022
|
+
// ../../node_modules/lodash/_stackGet.js
|
|
1023
|
+
var require_stackGet = __commonJS({
|
|
1024
|
+
"../../node_modules/lodash/_stackGet.js"(exports, module2) {
|
|
1025
|
+
function stackGet(key) {
|
|
1026
|
+
return this.__data__.get(key);
|
|
1027
|
+
}
|
|
1028
|
+
module2.exports = stackGet;
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
|
|
1032
|
+
// ../../node_modules/lodash/_stackHas.js
|
|
1033
|
+
var require_stackHas = __commonJS({
|
|
1034
|
+
"../../node_modules/lodash/_stackHas.js"(exports, module2) {
|
|
1035
|
+
function stackHas(key) {
|
|
1036
|
+
return this.__data__.has(key);
|
|
1037
|
+
}
|
|
1038
|
+
module2.exports = stackHas;
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
|
|
1042
|
+
// ../../node_modules/lodash/_Map.js
|
|
1043
|
+
var require_Map = __commonJS({
|
|
1044
|
+
"../../node_modules/lodash/_Map.js"(exports, module2) {
|
|
1045
|
+
var getNative = require_getNative();
|
|
1046
|
+
var root = require_root();
|
|
1047
|
+
var Map = getNative(root, "Map");
|
|
1048
|
+
module2.exports = Map;
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
|
|
1052
|
+
// ../../node_modules/lodash/_nativeCreate.js
|
|
1053
|
+
var require_nativeCreate = __commonJS({
|
|
1054
|
+
"../../node_modules/lodash/_nativeCreate.js"(exports, module2) {
|
|
1055
|
+
var getNative = require_getNative();
|
|
1056
|
+
var nativeCreate = getNative(Object, "create");
|
|
1057
|
+
module2.exports = nativeCreate;
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
|
|
1061
|
+
// ../../node_modules/lodash/_hashClear.js
|
|
1062
|
+
var require_hashClear = __commonJS({
|
|
1063
|
+
"../../node_modules/lodash/_hashClear.js"(exports, module2) {
|
|
1064
|
+
var nativeCreate = require_nativeCreate();
|
|
1065
|
+
function hashClear() {
|
|
1066
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1067
|
+
this.size = 0;
|
|
1068
|
+
}
|
|
1069
|
+
module2.exports = hashClear;
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
|
|
1073
|
+
// ../../node_modules/lodash/_hashDelete.js
|
|
1074
|
+
var require_hashDelete = __commonJS({
|
|
1075
|
+
"../../node_modules/lodash/_hashDelete.js"(exports, module2) {
|
|
1076
|
+
function hashDelete(key) {
|
|
1077
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1078
|
+
this.size -= result ? 1 : 0;
|
|
1079
|
+
return result;
|
|
1080
|
+
}
|
|
1081
|
+
module2.exports = hashDelete;
|
|
1082
|
+
}
|
|
1083
|
+
});
|
|
1084
|
+
|
|
1085
|
+
// ../../node_modules/lodash/_hashGet.js
|
|
1086
|
+
var require_hashGet = __commonJS({
|
|
1087
|
+
"../../node_modules/lodash/_hashGet.js"(exports, module2) {
|
|
1088
|
+
var nativeCreate = require_nativeCreate();
|
|
1089
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1090
|
+
var objectProto = Object.prototype;
|
|
1091
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1092
|
+
function hashGet(key) {
|
|
1093
|
+
var data = this.__data__;
|
|
1094
|
+
if (nativeCreate) {
|
|
1095
|
+
var result = data[key];
|
|
1096
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
1097
|
+
}
|
|
1098
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
1099
|
+
}
|
|
1100
|
+
module2.exports = hashGet;
|
|
1101
|
+
}
|
|
1102
|
+
});
|
|
1103
|
+
|
|
1104
|
+
// ../../node_modules/lodash/_hashHas.js
|
|
1105
|
+
var require_hashHas = __commonJS({
|
|
1106
|
+
"../../node_modules/lodash/_hashHas.js"(exports, module2) {
|
|
1107
|
+
var nativeCreate = require_nativeCreate();
|
|
1108
|
+
var objectProto = Object.prototype;
|
|
1109
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1110
|
+
function hashHas(key) {
|
|
1111
|
+
var data = this.__data__;
|
|
1112
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
1113
|
+
}
|
|
1114
|
+
module2.exports = hashHas;
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
|
|
1118
|
+
// ../../node_modules/lodash/_hashSet.js
|
|
1119
|
+
var require_hashSet = __commonJS({
|
|
1120
|
+
"../../node_modules/lodash/_hashSet.js"(exports, module2) {
|
|
1121
|
+
var nativeCreate = require_nativeCreate();
|
|
1122
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1123
|
+
function hashSet(key, value) {
|
|
1124
|
+
var data = this.__data__;
|
|
1125
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1126
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1127
|
+
return this;
|
|
1128
|
+
}
|
|
1129
|
+
module2.exports = hashSet;
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
1132
|
+
|
|
1133
|
+
// ../../node_modules/lodash/_Hash.js
|
|
1134
|
+
var require_Hash = __commonJS({
|
|
1135
|
+
"../../node_modules/lodash/_Hash.js"(exports, module2) {
|
|
1136
|
+
var hashClear = require_hashClear();
|
|
1137
|
+
var hashDelete = require_hashDelete();
|
|
1138
|
+
var hashGet = require_hashGet();
|
|
1139
|
+
var hashHas = require_hashHas();
|
|
1140
|
+
var hashSet = require_hashSet();
|
|
1141
|
+
function Hash(entries) {
|
|
1142
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1143
|
+
this.clear();
|
|
1144
|
+
while (++index < length) {
|
|
1145
|
+
var entry = entries[index];
|
|
1146
|
+
this.set(entry[0], entry[1]);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
Hash.prototype.clear = hashClear;
|
|
1150
|
+
Hash.prototype["delete"] = hashDelete;
|
|
1151
|
+
Hash.prototype.get = hashGet;
|
|
1152
|
+
Hash.prototype.has = hashHas;
|
|
1153
|
+
Hash.prototype.set = hashSet;
|
|
1154
|
+
module2.exports = Hash;
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
|
|
1158
|
+
// ../../node_modules/lodash/_mapCacheClear.js
|
|
1159
|
+
var require_mapCacheClear = __commonJS({
|
|
1160
|
+
"../../node_modules/lodash/_mapCacheClear.js"(exports, module2) {
|
|
1161
|
+
var Hash = require_Hash();
|
|
1162
|
+
var ListCache = require_ListCache();
|
|
1163
|
+
var Map = require_Map();
|
|
1164
|
+
function mapCacheClear() {
|
|
1165
|
+
this.size = 0;
|
|
1166
|
+
this.__data__ = {
|
|
1167
|
+
"hash": new Hash(),
|
|
1168
|
+
"map": new (Map || ListCache)(),
|
|
1169
|
+
"string": new Hash()
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
module2.exports = mapCacheClear;
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1176
|
+
// ../../node_modules/lodash/_isKeyable.js
|
|
1177
|
+
var require_isKeyable = __commonJS({
|
|
1178
|
+
"../../node_modules/lodash/_isKeyable.js"(exports, module2) {
|
|
1179
|
+
function isKeyable(value) {
|
|
1180
|
+
var type = typeof value;
|
|
1181
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1182
|
+
}
|
|
1183
|
+
module2.exports = isKeyable;
|
|
1184
|
+
}
|
|
1185
|
+
});
|
|
1186
|
+
|
|
1187
|
+
// ../../node_modules/lodash/_getMapData.js
|
|
1188
|
+
var require_getMapData = __commonJS({
|
|
1189
|
+
"../../node_modules/lodash/_getMapData.js"(exports, module2) {
|
|
1190
|
+
var isKeyable = require_isKeyable();
|
|
1191
|
+
function getMapData(map, key) {
|
|
1192
|
+
var data = map.__data__;
|
|
1193
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1194
|
+
}
|
|
1195
|
+
module2.exports = getMapData;
|
|
1196
|
+
}
|
|
1197
|
+
});
|
|
1198
|
+
|
|
1199
|
+
// ../../node_modules/lodash/_mapCacheDelete.js
|
|
1200
|
+
var require_mapCacheDelete = __commonJS({
|
|
1201
|
+
"../../node_modules/lodash/_mapCacheDelete.js"(exports, module2) {
|
|
1202
|
+
var getMapData = require_getMapData();
|
|
1203
|
+
function mapCacheDelete(key) {
|
|
1204
|
+
var result = getMapData(this, key)["delete"](key);
|
|
1205
|
+
this.size -= result ? 1 : 0;
|
|
1206
|
+
return result;
|
|
1207
|
+
}
|
|
1208
|
+
module2.exports = mapCacheDelete;
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
// ../../node_modules/lodash/_mapCacheGet.js
|
|
1213
|
+
var require_mapCacheGet = __commonJS({
|
|
1214
|
+
"../../node_modules/lodash/_mapCacheGet.js"(exports, module2) {
|
|
1215
|
+
var getMapData = require_getMapData();
|
|
1216
|
+
function mapCacheGet(key) {
|
|
1217
|
+
return getMapData(this, key).get(key);
|
|
1218
|
+
}
|
|
1219
|
+
module2.exports = mapCacheGet;
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
|
|
1223
|
+
// ../../node_modules/lodash/_mapCacheHas.js
|
|
1224
|
+
var require_mapCacheHas = __commonJS({
|
|
1225
|
+
"../../node_modules/lodash/_mapCacheHas.js"(exports, module2) {
|
|
1226
|
+
var getMapData = require_getMapData();
|
|
1227
|
+
function mapCacheHas(key) {
|
|
1228
|
+
return getMapData(this, key).has(key);
|
|
1229
|
+
}
|
|
1230
|
+
module2.exports = mapCacheHas;
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
|
|
1234
|
+
// ../../node_modules/lodash/_mapCacheSet.js
|
|
1235
|
+
var require_mapCacheSet = __commonJS({
|
|
1236
|
+
"../../node_modules/lodash/_mapCacheSet.js"(exports, module2) {
|
|
1237
|
+
var getMapData = require_getMapData();
|
|
1238
|
+
function mapCacheSet(key, value) {
|
|
1239
|
+
var data = getMapData(this, key), size = data.size;
|
|
1240
|
+
data.set(key, value);
|
|
1241
|
+
this.size += data.size == size ? 0 : 1;
|
|
1242
|
+
return this;
|
|
1243
|
+
}
|
|
1244
|
+
module2.exports = mapCacheSet;
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
|
|
1248
|
+
// ../../node_modules/lodash/_MapCache.js
|
|
1249
|
+
var require_MapCache = __commonJS({
|
|
1250
|
+
"../../node_modules/lodash/_MapCache.js"(exports, module2) {
|
|
1251
|
+
var mapCacheClear = require_mapCacheClear();
|
|
1252
|
+
var mapCacheDelete = require_mapCacheDelete();
|
|
1253
|
+
var mapCacheGet = require_mapCacheGet();
|
|
1254
|
+
var mapCacheHas = require_mapCacheHas();
|
|
1255
|
+
var mapCacheSet = require_mapCacheSet();
|
|
1256
|
+
function MapCache(entries) {
|
|
1257
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1258
|
+
this.clear();
|
|
1259
|
+
while (++index < length) {
|
|
1260
|
+
var entry = entries[index];
|
|
1261
|
+
this.set(entry[0], entry[1]);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
1265
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1266
|
+
MapCache.prototype.get = mapCacheGet;
|
|
1267
|
+
MapCache.prototype.has = mapCacheHas;
|
|
1268
|
+
MapCache.prototype.set = mapCacheSet;
|
|
1269
|
+
module2.exports = MapCache;
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
|
|
1273
|
+
// ../../node_modules/lodash/_stackSet.js
|
|
1274
|
+
var require_stackSet = __commonJS({
|
|
1275
|
+
"../../node_modules/lodash/_stackSet.js"(exports, module2) {
|
|
1276
|
+
var ListCache = require_ListCache();
|
|
1277
|
+
var Map = require_Map();
|
|
1278
|
+
var MapCache = require_MapCache();
|
|
1279
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
1280
|
+
function stackSet(key, value) {
|
|
1281
|
+
var data = this.__data__;
|
|
1282
|
+
if (data instanceof ListCache) {
|
|
1283
|
+
var pairs = data.__data__;
|
|
1284
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1285
|
+
pairs.push([key, value]);
|
|
1286
|
+
this.size = ++data.size;
|
|
1287
|
+
return this;
|
|
1288
|
+
}
|
|
1289
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1290
|
+
}
|
|
1291
|
+
data.set(key, value);
|
|
1292
|
+
this.size = data.size;
|
|
1293
|
+
return this;
|
|
1294
|
+
}
|
|
1295
|
+
module2.exports = stackSet;
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
|
|
1299
|
+
// ../../node_modules/lodash/_Stack.js
|
|
1300
|
+
var require_Stack = __commonJS({
|
|
1301
|
+
"../../node_modules/lodash/_Stack.js"(exports, module2) {
|
|
1302
|
+
var ListCache = require_ListCache();
|
|
1303
|
+
var stackClear = require_stackClear();
|
|
1304
|
+
var stackDelete = require_stackDelete();
|
|
1305
|
+
var stackGet = require_stackGet();
|
|
1306
|
+
var stackHas = require_stackHas();
|
|
1307
|
+
var stackSet = require_stackSet();
|
|
1308
|
+
function Stack(entries) {
|
|
1309
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1310
|
+
this.size = data.size;
|
|
1311
|
+
}
|
|
1312
|
+
Stack.prototype.clear = stackClear;
|
|
1313
|
+
Stack.prototype["delete"] = stackDelete;
|
|
1314
|
+
Stack.prototype.get = stackGet;
|
|
1315
|
+
Stack.prototype.has = stackHas;
|
|
1316
|
+
Stack.prototype.set = stackSet;
|
|
1317
|
+
module2.exports = Stack;
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
|
|
1321
|
+
// ../../node_modules/lodash/_setCacheAdd.js
|
|
1322
|
+
var require_setCacheAdd = __commonJS({
|
|
1323
|
+
"../../node_modules/lodash/_setCacheAdd.js"(exports, module2) {
|
|
1324
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1325
|
+
function setCacheAdd(value) {
|
|
1326
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
1327
|
+
return this;
|
|
1328
|
+
}
|
|
1329
|
+
module2.exports = setCacheAdd;
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
|
|
1333
|
+
// ../../node_modules/lodash/_setCacheHas.js
|
|
1334
|
+
var require_setCacheHas = __commonJS({
|
|
1335
|
+
"../../node_modules/lodash/_setCacheHas.js"(exports, module2) {
|
|
1336
|
+
function setCacheHas(value) {
|
|
1337
|
+
return this.__data__.has(value);
|
|
1338
|
+
}
|
|
1339
|
+
module2.exports = setCacheHas;
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
|
|
1343
|
+
// ../../node_modules/lodash/_SetCache.js
|
|
1344
|
+
var require_SetCache = __commonJS({
|
|
1345
|
+
"../../node_modules/lodash/_SetCache.js"(exports, module2) {
|
|
1346
|
+
var MapCache = require_MapCache();
|
|
1347
|
+
var setCacheAdd = require_setCacheAdd();
|
|
1348
|
+
var setCacheHas = require_setCacheHas();
|
|
1349
|
+
function SetCache(values) {
|
|
1350
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
1351
|
+
this.__data__ = new MapCache();
|
|
1352
|
+
while (++index < length) {
|
|
1353
|
+
this.add(values[index]);
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
1357
|
+
SetCache.prototype.has = setCacheHas;
|
|
1358
|
+
module2.exports = SetCache;
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
// ../../node_modules/lodash/_arraySome.js
|
|
1363
|
+
var require_arraySome = __commonJS({
|
|
1364
|
+
"../../node_modules/lodash/_arraySome.js"(exports, module2) {
|
|
1365
|
+
function arraySome(array, predicate) {
|
|
1366
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1367
|
+
while (++index < length) {
|
|
1368
|
+
if (predicate(array[index], index, array)) {
|
|
1369
|
+
return true;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
return false;
|
|
1373
|
+
}
|
|
1374
|
+
module2.exports = arraySome;
|
|
1375
|
+
}
|
|
1376
|
+
});
|
|
1377
|
+
|
|
1378
|
+
// ../../node_modules/lodash/_cacheHas.js
|
|
1379
|
+
var require_cacheHas = __commonJS({
|
|
1380
|
+
"../../node_modules/lodash/_cacheHas.js"(exports, module2) {
|
|
1381
|
+
function cacheHas(cache, key) {
|
|
1382
|
+
return cache.has(key);
|
|
1383
|
+
}
|
|
1384
|
+
module2.exports = cacheHas;
|
|
1385
|
+
}
|
|
1386
|
+
});
|
|
1387
|
+
|
|
1388
|
+
// ../../node_modules/lodash/_equalArrays.js
|
|
1389
|
+
var require_equalArrays = __commonJS({
|
|
1390
|
+
"../../node_modules/lodash/_equalArrays.js"(exports, module2) {
|
|
1391
|
+
var SetCache = require_SetCache();
|
|
1392
|
+
var arraySome = require_arraySome();
|
|
1393
|
+
var cacheHas = require_cacheHas();
|
|
1394
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1395
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
1396
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
1397
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
1398
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
1399
|
+
return false;
|
|
1400
|
+
}
|
|
1401
|
+
var arrStacked = stack.get(array);
|
|
1402
|
+
var othStacked = stack.get(other);
|
|
1403
|
+
if (arrStacked && othStacked) {
|
|
1404
|
+
return arrStacked == other && othStacked == array;
|
|
1405
|
+
}
|
|
1406
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
|
1407
|
+
stack.set(array, other);
|
|
1408
|
+
stack.set(other, array);
|
|
1409
|
+
while (++index < arrLength) {
|
|
1410
|
+
var arrValue = array[index], othValue = other[index];
|
|
1411
|
+
if (customizer) {
|
|
1412
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
1413
|
+
}
|
|
1414
|
+
if (compared !== void 0) {
|
|
1415
|
+
if (compared) {
|
|
1416
|
+
continue;
|
|
1417
|
+
}
|
|
1418
|
+
result = false;
|
|
1419
|
+
break;
|
|
1420
|
+
}
|
|
1421
|
+
if (seen) {
|
|
1422
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
1423
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
1424
|
+
return seen.push(othIndex);
|
|
331
1425
|
}
|
|
1426
|
+
})) {
|
|
1427
|
+
result = false;
|
|
1428
|
+
break;
|
|
1429
|
+
}
|
|
1430
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
1431
|
+
result = false;
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
stack["delete"](array);
|
|
1436
|
+
stack["delete"](other);
|
|
1437
|
+
return result;
|
|
1438
|
+
}
|
|
1439
|
+
module2.exports = equalArrays;
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
|
|
1443
|
+
// ../../node_modules/lodash/_Uint8Array.js
|
|
1444
|
+
var require_Uint8Array = __commonJS({
|
|
1445
|
+
"../../node_modules/lodash/_Uint8Array.js"(exports, module2) {
|
|
1446
|
+
var root = require_root();
|
|
1447
|
+
var Uint8Array2 = root.Uint8Array;
|
|
1448
|
+
module2.exports = Uint8Array2;
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
|
|
1452
|
+
// ../../node_modules/lodash/_mapToArray.js
|
|
1453
|
+
var require_mapToArray = __commonJS({
|
|
1454
|
+
"../../node_modules/lodash/_mapToArray.js"(exports, module2) {
|
|
1455
|
+
function mapToArray(map) {
|
|
1456
|
+
var index = -1, result = Array(map.size);
|
|
1457
|
+
map.forEach(function(value, key) {
|
|
1458
|
+
result[++index] = [key, value];
|
|
1459
|
+
});
|
|
1460
|
+
return result;
|
|
1461
|
+
}
|
|
1462
|
+
module2.exports = mapToArray;
|
|
1463
|
+
}
|
|
1464
|
+
});
|
|
1465
|
+
|
|
1466
|
+
// ../../node_modules/lodash/_setToArray.js
|
|
1467
|
+
var require_setToArray = __commonJS({
|
|
1468
|
+
"../../node_modules/lodash/_setToArray.js"(exports, module2) {
|
|
1469
|
+
function setToArray(set) {
|
|
1470
|
+
var index = -1, result = Array(set.size);
|
|
1471
|
+
set.forEach(function(value) {
|
|
1472
|
+
result[++index] = value;
|
|
1473
|
+
});
|
|
1474
|
+
return result;
|
|
1475
|
+
}
|
|
1476
|
+
module2.exports = setToArray;
|
|
1477
|
+
}
|
|
1478
|
+
});
|
|
1479
|
+
|
|
1480
|
+
// ../../node_modules/lodash/_equalByTag.js
|
|
1481
|
+
var require_equalByTag = __commonJS({
|
|
1482
|
+
"../../node_modules/lodash/_equalByTag.js"(exports, module2) {
|
|
1483
|
+
var Symbol2 = require_Symbol();
|
|
1484
|
+
var Uint8Array2 = require_Uint8Array();
|
|
1485
|
+
var eq = require_eq();
|
|
1486
|
+
var equalArrays = require_equalArrays();
|
|
1487
|
+
var mapToArray = require_mapToArray();
|
|
1488
|
+
var setToArray = require_setToArray();
|
|
1489
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1490
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
1491
|
+
var boolTag = "[object Boolean]";
|
|
1492
|
+
var dateTag = "[object Date]";
|
|
1493
|
+
var errorTag = "[object Error]";
|
|
1494
|
+
var mapTag = "[object Map]";
|
|
1495
|
+
var numberTag = "[object Number]";
|
|
1496
|
+
var regexpTag = "[object RegExp]";
|
|
1497
|
+
var setTag = "[object Set]";
|
|
1498
|
+
var stringTag = "[object String]";
|
|
1499
|
+
var symbolTag = "[object Symbol]";
|
|
1500
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1501
|
+
var dataViewTag = "[object DataView]";
|
|
1502
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
1503
|
+
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1504
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1505
|
+
switch (tag) {
|
|
1506
|
+
case dataViewTag:
|
|
1507
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
1508
|
+
return false;
|
|
332
1509
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
parse: function(s, fn) {
|
|
339
|
-
try {
|
|
340
|
-
return JSON.parse(s, fn || _.revive);
|
|
341
|
-
} catch (e) {
|
|
342
|
-
return s;
|
|
1510
|
+
object = object.buffer;
|
|
1511
|
+
other = other.buffer;
|
|
1512
|
+
case arrayBufferTag:
|
|
1513
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
1514
|
+
return false;
|
|
343
1515
|
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
1516
|
+
return true;
|
|
1517
|
+
case boolTag:
|
|
1518
|
+
case dateTag:
|
|
1519
|
+
case numberTag:
|
|
1520
|
+
return eq(+object, +other);
|
|
1521
|
+
case errorTag:
|
|
1522
|
+
return object.name == other.name && object.message == other.message;
|
|
1523
|
+
case regexpTag:
|
|
1524
|
+
case stringTag:
|
|
1525
|
+
return object == other + "";
|
|
1526
|
+
case mapTag:
|
|
1527
|
+
var convert = mapToArray;
|
|
1528
|
+
case setTag:
|
|
1529
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
1530
|
+
convert || (convert = setToArray);
|
|
1531
|
+
if (object.size != other.size && !isPartial) {
|
|
1532
|
+
return false;
|
|
350
1533
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
1534
|
+
var stacked = stack.get(object);
|
|
1535
|
+
if (stacked) {
|
|
1536
|
+
return stacked == other;
|
|
1537
|
+
}
|
|
1538
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
1539
|
+
stack.set(object, other);
|
|
1540
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
1541
|
+
stack["delete"](object);
|
|
1542
|
+
return result;
|
|
1543
|
+
case symbolTag:
|
|
1544
|
+
if (symbolValueOf) {
|
|
1545
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
return false;
|
|
1549
|
+
}
|
|
1550
|
+
module2.exports = equalByTag;
|
|
1551
|
+
}
|
|
1552
|
+
});
|
|
1553
|
+
|
|
1554
|
+
// ../../node_modules/lodash/_arrayPush.js
|
|
1555
|
+
var require_arrayPush = __commonJS({
|
|
1556
|
+
"../../node_modules/lodash/_arrayPush.js"(exports, module2) {
|
|
1557
|
+
function arrayPush(array, values) {
|
|
1558
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1559
|
+
while (++index < length) {
|
|
1560
|
+
array[offset + index] = values[index];
|
|
1561
|
+
}
|
|
1562
|
+
return array;
|
|
1563
|
+
}
|
|
1564
|
+
module2.exports = arrayPush;
|
|
1565
|
+
}
|
|
1566
|
+
});
|
|
1567
|
+
|
|
1568
|
+
// ../../node_modules/lodash/_baseGetAllKeys.js
|
|
1569
|
+
var require_baseGetAllKeys = __commonJS({
|
|
1570
|
+
"../../node_modules/lodash/_baseGetAllKeys.js"(exports, module2) {
|
|
1571
|
+
var arrayPush = require_arrayPush();
|
|
1572
|
+
var isArray = require_isArray();
|
|
1573
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1574
|
+
var result = keysFunc(object);
|
|
1575
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1576
|
+
}
|
|
1577
|
+
module2.exports = baseGetAllKeys;
|
|
1578
|
+
}
|
|
1579
|
+
});
|
|
1580
|
+
|
|
1581
|
+
// ../../node_modules/lodash/_arrayFilter.js
|
|
1582
|
+
var require_arrayFilter = __commonJS({
|
|
1583
|
+
"../../node_modules/lodash/_arrayFilter.js"(exports, module2) {
|
|
1584
|
+
function arrayFilter(array, predicate) {
|
|
1585
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1586
|
+
while (++index < length) {
|
|
1587
|
+
var value = array[index];
|
|
1588
|
+
if (predicate(value, index, array)) {
|
|
1589
|
+
result[resIndex++] = value;
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
return result;
|
|
1593
|
+
}
|
|
1594
|
+
module2.exports = arrayFilter;
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1598
|
+
// ../../node_modules/lodash/stubArray.js
|
|
1599
|
+
var require_stubArray = __commonJS({
|
|
1600
|
+
"../../node_modules/lodash/stubArray.js"(exports, module2) {
|
|
1601
|
+
function stubArray() {
|
|
1602
|
+
return [];
|
|
1603
|
+
}
|
|
1604
|
+
module2.exports = stubArray;
|
|
1605
|
+
}
|
|
1606
|
+
});
|
|
1607
|
+
|
|
1608
|
+
// ../../node_modules/lodash/_getSymbols.js
|
|
1609
|
+
var require_getSymbols = __commonJS({
|
|
1610
|
+
"../../node_modules/lodash/_getSymbols.js"(exports, module2) {
|
|
1611
|
+
var arrayFilter = require_arrayFilter();
|
|
1612
|
+
var stubArray = require_stubArray();
|
|
1613
|
+
var objectProto = Object.prototype;
|
|
1614
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
1615
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1616
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1617
|
+
if (object == null) {
|
|
1618
|
+
return [];
|
|
1619
|
+
}
|
|
1620
|
+
object = Object(object);
|
|
1621
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1622
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
1623
|
+
});
|
|
1624
|
+
};
|
|
1625
|
+
module2.exports = getSymbols;
|
|
1626
|
+
}
|
|
1627
|
+
});
|
|
1628
|
+
|
|
1629
|
+
// ../../node_modules/lodash/_getAllKeys.js
|
|
1630
|
+
var require_getAllKeys = __commonJS({
|
|
1631
|
+
"../../node_modules/lodash/_getAllKeys.js"(exports, module2) {
|
|
1632
|
+
var baseGetAllKeys = require_baseGetAllKeys();
|
|
1633
|
+
var getSymbols = require_getSymbols();
|
|
1634
|
+
var keys = require_keys();
|
|
1635
|
+
function getAllKeys(object) {
|
|
1636
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
1637
|
+
}
|
|
1638
|
+
module2.exports = getAllKeys;
|
|
1639
|
+
}
|
|
1640
|
+
});
|
|
1641
|
+
|
|
1642
|
+
// ../../node_modules/lodash/_equalObjects.js
|
|
1643
|
+
var require_equalObjects = __commonJS({
|
|
1644
|
+
"../../node_modules/lodash/_equalObjects.js"(exports, module2) {
|
|
1645
|
+
var getAllKeys = require_getAllKeys();
|
|
1646
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1647
|
+
var objectProto = Object.prototype;
|
|
1648
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1649
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1650
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
1651
|
+
if (objLength != othLength && !isPartial) {
|
|
1652
|
+
return false;
|
|
1653
|
+
}
|
|
1654
|
+
var index = objLength;
|
|
1655
|
+
while (index--) {
|
|
1656
|
+
var key = objProps[index];
|
|
1657
|
+
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
1658
|
+
return false;
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
var objStacked = stack.get(object);
|
|
1662
|
+
var othStacked = stack.get(other);
|
|
1663
|
+
if (objStacked && othStacked) {
|
|
1664
|
+
return objStacked == other && othStacked == object;
|
|
1665
|
+
}
|
|
1666
|
+
var result = true;
|
|
1667
|
+
stack.set(object, other);
|
|
1668
|
+
stack.set(other, object);
|
|
1669
|
+
var skipCtor = isPartial;
|
|
1670
|
+
while (++index < objLength) {
|
|
1671
|
+
key = objProps[index];
|
|
1672
|
+
var objValue = object[key], othValue = other[key];
|
|
1673
|
+
if (customizer) {
|
|
1674
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
1675
|
+
}
|
|
1676
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
1677
|
+
result = false;
|
|
1678
|
+
break;
|
|
1679
|
+
}
|
|
1680
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
1681
|
+
}
|
|
1682
|
+
if (result && !skipCtor) {
|
|
1683
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
1684
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
1685
|
+
result = false;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
stack["delete"](object);
|
|
1689
|
+
stack["delete"](other);
|
|
1690
|
+
return result;
|
|
1691
|
+
}
|
|
1692
|
+
module2.exports = equalObjects;
|
|
1693
|
+
}
|
|
1694
|
+
});
|
|
1695
|
+
|
|
1696
|
+
// ../../node_modules/lodash/_DataView.js
|
|
1697
|
+
var require_DataView = __commonJS({
|
|
1698
|
+
"../../node_modules/lodash/_DataView.js"(exports, module2) {
|
|
1699
|
+
var getNative = require_getNative();
|
|
1700
|
+
var root = require_root();
|
|
1701
|
+
var DataView = getNative(root, "DataView");
|
|
1702
|
+
module2.exports = DataView;
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1705
|
+
|
|
1706
|
+
// ../../node_modules/lodash/_Promise.js
|
|
1707
|
+
var require_Promise = __commonJS({
|
|
1708
|
+
"../../node_modules/lodash/_Promise.js"(exports, module2) {
|
|
1709
|
+
var getNative = require_getNative();
|
|
1710
|
+
var root = require_root();
|
|
1711
|
+
var Promise2 = getNative(root, "Promise");
|
|
1712
|
+
module2.exports = Promise2;
|
|
1713
|
+
}
|
|
1714
|
+
});
|
|
1715
|
+
|
|
1716
|
+
// ../../node_modules/lodash/_Set.js
|
|
1717
|
+
var require_Set = __commonJS({
|
|
1718
|
+
"../../node_modules/lodash/_Set.js"(exports, module2) {
|
|
1719
|
+
var getNative = require_getNative();
|
|
1720
|
+
var root = require_root();
|
|
1721
|
+
var Set2 = getNative(root, "Set");
|
|
1722
|
+
module2.exports = Set2;
|
|
1723
|
+
}
|
|
1724
|
+
});
|
|
1725
|
+
|
|
1726
|
+
// ../../node_modules/lodash/_WeakMap.js
|
|
1727
|
+
var require_WeakMap = __commonJS({
|
|
1728
|
+
"../../node_modules/lodash/_WeakMap.js"(exports, module2) {
|
|
1729
|
+
var getNative = require_getNative();
|
|
1730
|
+
var root = require_root();
|
|
1731
|
+
var WeakMap = getNative(root, "WeakMap");
|
|
1732
|
+
module2.exports = WeakMap;
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
// ../../node_modules/lodash/_getTag.js
|
|
1737
|
+
var require_getTag = __commonJS({
|
|
1738
|
+
"../../node_modules/lodash/_getTag.js"(exports, module2) {
|
|
1739
|
+
var DataView = require_DataView();
|
|
1740
|
+
var Map = require_Map();
|
|
1741
|
+
var Promise2 = require_Promise();
|
|
1742
|
+
var Set2 = require_Set();
|
|
1743
|
+
var WeakMap = require_WeakMap();
|
|
1744
|
+
var baseGetTag = require_baseGetTag();
|
|
1745
|
+
var toSource = require_toSource();
|
|
1746
|
+
var mapTag = "[object Map]";
|
|
1747
|
+
var objectTag = "[object Object]";
|
|
1748
|
+
var promiseTag = "[object Promise]";
|
|
1749
|
+
var setTag = "[object Set]";
|
|
1750
|
+
var weakMapTag = "[object WeakMap]";
|
|
1751
|
+
var dataViewTag = "[object DataView]";
|
|
1752
|
+
var dataViewCtorString = toSource(DataView);
|
|
1753
|
+
var mapCtorString = toSource(Map);
|
|
1754
|
+
var promiseCtorString = toSource(Promise2);
|
|
1755
|
+
var setCtorString = toSource(Set2);
|
|
1756
|
+
var weakMapCtorString = toSource(WeakMap);
|
|
1757
|
+
var getTag = baseGetTag;
|
|
1758
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
1759
|
+
getTag = function(value) {
|
|
1760
|
+
var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1761
|
+
if (ctorString) {
|
|
1762
|
+
switch (ctorString) {
|
|
1763
|
+
case dataViewCtorString:
|
|
1764
|
+
return dataViewTag;
|
|
1765
|
+
case mapCtorString:
|
|
1766
|
+
return mapTag;
|
|
1767
|
+
case promiseCtorString:
|
|
1768
|
+
return promiseTag;
|
|
1769
|
+
case setCtorString:
|
|
1770
|
+
return setTag;
|
|
1771
|
+
case weakMapCtorString:
|
|
1772
|
+
return weakMapTag;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
return result;
|
|
1776
|
+
};
|
|
1777
|
+
}
|
|
1778
|
+
module2.exports = getTag;
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
|
|
1782
|
+
// ../../node_modules/lodash/_baseIsEqualDeep.js
|
|
1783
|
+
var require_baseIsEqualDeep = __commonJS({
|
|
1784
|
+
"../../node_modules/lodash/_baseIsEqualDeep.js"(exports, module2) {
|
|
1785
|
+
var Stack = require_Stack();
|
|
1786
|
+
var equalArrays = require_equalArrays();
|
|
1787
|
+
var equalByTag = require_equalByTag();
|
|
1788
|
+
var equalObjects = require_equalObjects();
|
|
1789
|
+
var getTag = require_getTag();
|
|
1790
|
+
var isArray = require_isArray();
|
|
1791
|
+
var isBuffer = require_isBuffer();
|
|
1792
|
+
var isTypedArray = require_isTypedArray();
|
|
1793
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1794
|
+
var argsTag = "[object Arguments]";
|
|
1795
|
+
var arrayTag = "[object Array]";
|
|
1796
|
+
var objectTag = "[object Object]";
|
|
1797
|
+
var objectProto = Object.prototype;
|
|
1798
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1799
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
1800
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
1801
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
1802
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
1803
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
1804
|
+
if (isSameTag && isBuffer(object)) {
|
|
1805
|
+
if (!isBuffer(other)) {
|
|
1806
|
+
return false;
|
|
1807
|
+
}
|
|
1808
|
+
objIsArr = true;
|
|
1809
|
+
objIsObj = false;
|
|
1810
|
+
}
|
|
1811
|
+
if (isSameTag && !objIsObj) {
|
|
1812
|
+
stack || (stack = new Stack());
|
|
1813
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
1814
|
+
}
|
|
1815
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
1816
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
1817
|
+
if (objIsWrapped || othIsWrapped) {
|
|
1818
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
1819
|
+
stack || (stack = new Stack());
|
|
1820
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
if (!isSameTag) {
|
|
1824
|
+
return false;
|
|
1825
|
+
}
|
|
1826
|
+
stack || (stack = new Stack());
|
|
1827
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
1828
|
+
}
|
|
1829
|
+
module2.exports = baseIsEqualDeep;
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
|
|
1833
|
+
// ../../node_modules/lodash/_baseIsEqual.js
|
|
1834
|
+
var require_baseIsEqual = __commonJS({
|
|
1835
|
+
"../../node_modules/lodash/_baseIsEqual.js"(exports, module2) {
|
|
1836
|
+
var baseIsEqualDeep = require_baseIsEqualDeep();
|
|
1837
|
+
var isObjectLike = require_isObjectLike();
|
|
1838
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
1839
|
+
if (value === other) {
|
|
1840
|
+
return true;
|
|
1841
|
+
}
|
|
1842
|
+
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
|
1843
|
+
return value !== value && other !== other;
|
|
1844
|
+
}
|
|
1845
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
1846
|
+
}
|
|
1847
|
+
module2.exports = baseIsEqual;
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
|
|
1851
|
+
// ../../node_modules/lodash/_baseIsMatch.js
|
|
1852
|
+
var require_baseIsMatch = __commonJS({
|
|
1853
|
+
"../../node_modules/lodash/_baseIsMatch.js"(exports, module2) {
|
|
1854
|
+
var Stack = require_Stack();
|
|
1855
|
+
var baseIsEqual = require_baseIsEqual();
|
|
1856
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1857
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
1858
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
1859
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
1860
|
+
if (object == null) {
|
|
1861
|
+
return !length;
|
|
1862
|
+
}
|
|
1863
|
+
object = Object(object);
|
|
1864
|
+
while (index--) {
|
|
1865
|
+
var data = matchData[index];
|
|
1866
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
1867
|
+
return false;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
while (++index < length) {
|
|
1871
|
+
data = matchData[index];
|
|
1872
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
1873
|
+
if (noCustomizer && data[2]) {
|
|
1874
|
+
if (objValue === void 0 && !(key in object)) {
|
|
1875
|
+
return false;
|
|
1876
|
+
}
|
|
1877
|
+
} else {
|
|
1878
|
+
var stack = new Stack();
|
|
1879
|
+
if (customizer) {
|
|
1880
|
+
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
1881
|
+
}
|
|
1882
|
+
if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) {
|
|
1883
|
+
return false;
|
|
401
1884
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
return true;
|
|
1888
|
+
}
|
|
1889
|
+
module2.exports = baseIsMatch;
|
|
1890
|
+
}
|
|
1891
|
+
});
|
|
1892
|
+
|
|
1893
|
+
// ../../node_modules/lodash/_isStrictComparable.js
|
|
1894
|
+
var require_isStrictComparable = __commonJS({
|
|
1895
|
+
"../../node_modules/lodash/_isStrictComparable.js"(exports, module2) {
|
|
1896
|
+
var isObject = require_isObject();
|
|
1897
|
+
function isStrictComparable(value) {
|
|
1898
|
+
return value === value && !isObject(value);
|
|
1899
|
+
}
|
|
1900
|
+
module2.exports = isStrictComparable;
|
|
1901
|
+
}
|
|
1902
|
+
});
|
|
1903
|
+
|
|
1904
|
+
// ../../node_modules/lodash/_getMatchData.js
|
|
1905
|
+
var require_getMatchData = __commonJS({
|
|
1906
|
+
"../../node_modules/lodash/_getMatchData.js"(exports, module2) {
|
|
1907
|
+
var isStrictComparable = require_isStrictComparable();
|
|
1908
|
+
var keys = require_keys();
|
|
1909
|
+
function getMatchData(object) {
|
|
1910
|
+
var result = keys(object), length = result.length;
|
|
1911
|
+
while (length--) {
|
|
1912
|
+
var key = result[length], value = object[key];
|
|
1913
|
+
result[length] = [key, value, isStrictComparable(value)];
|
|
1914
|
+
}
|
|
1915
|
+
return result;
|
|
1916
|
+
}
|
|
1917
|
+
module2.exports = getMatchData;
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
|
|
1921
|
+
// ../../node_modules/lodash/_matchesStrictComparable.js
|
|
1922
|
+
var require_matchesStrictComparable = __commonJS({
|
|
1923
|
+
"../../node_modules/lodash/_matchesStrictComparable.js"(exports, module2) {
|
|
1924
|
+
function matchesStrictComparable(key, srcValue) {
|
|
1925
|
+
return function(object) {
|
|
1926
|
+
if (object == null) {
|
|
1927
|
+
return false;
|
|
1928
|
+
}
|
|
1929
|
+
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
module2.exports = matchesStrictComparable;
|
|
1933
|
+
}
|
|
1934
|
+
});
|
|
1935
|
+
|
|
1936
|
+
// ../../node_modules/lodash/_baseMatches.js
|
|
1937
|
+
var require_baseMatches = __commonJS({
|
|
1938
|
+
"../../node_modules/lodash/_baseMatches.js"(exports, module2) {
|
|
1939
|
+
var baseIsMatch = require_baseIsMatch();
|
|
1940
|
+
var getMatchData = require_getMatchData();
|
|
1941
|
+
var matchesStrictComparable = require_matchesStrictComparable();
|
|
1942
|
+
function baseMatches(source) {
|
|
1943
|
+
var matchData = getMatchData(source);
|
|
1944
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
1945
|
+
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
1946
|
+
}
|
|
1947
|
+
return function(object) {
|
|
1948
|
+
return object === source || baseIsMatch(object, source, matchData);
|
|
1949
|
+
};
|
|
1950
|
+
}
|
|
1951
|
+
module2.exports = baseMatches;
|
|
1952
|
+
}
|
|
1953
|
+
});
|
|
1954
|
+
|
|
1955
|
+
// ../../node_modules/lodash/_isKey.js
|
|
1956
|
+
var require_isKey = __commonJS({
|
|
1957
|
+
"../../node_modules/lodash/_isKey.js"(exports, module2) {
|
|
1958
|
+
var isArray = require_isArray();
|
|
1959
|
+
var isSymbol = require_isSymbol();
|
|
1960
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
1961
|
+
var reIsPlainProp = /^\w*$/;
|
|
1962
|
+
function isKey(value, object) {
|
|
1963
|
+
if (isArray(value)) {
|
|
1964
|
+
return false;
|
|
1965
|
+
}
|
|
1966
|
+
var type = typeof value;
|
|
1967
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
|
|
1968
|
+
return true;
|
|
1969
|
+
}
|
|
1970
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
1971
|
+
}
|
|
1972
|
+
module2.exports = isKey;
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1975
|
+
|
|
1976
|
+
// ../../node_modules/lodash/memoize.js
|
|
1977
|
+
var require_memoize = __commonJS({
|
|
1978
|
+
"../../node_modules/lodash/memoize.js"(exports, module2) {
|
|
1979
|
+
var MapCache = require_MapCache();
|
|
1980
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1981
|
+
function memoize2(func, resolver) {
|
|
1982
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
1983
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1984
|
+
}
|
|
1985
|
+
var memoized = function() {
|
|
1986
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1987
|
+
if (cache.has(key)) {
|
|
1988
|
+
return cache.get(key);
|
|
1989
|
+
}
|
|
1990
|
+
var result = func.apply(this, args);
|
|
1991
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1992
|
+
return result;
|
|
1993
|
+
};
|
|
1994
|
+
memoized.cache = new (memoize2.Cache || MapCache)();
|
|
1995
|
+
return memoized;
|
|
1996
|
+
}
|
|
1997
|
+
memoize2.Cache = MapCache;
|
|
1998
|
+
module2.exports = memoize2;
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
|
|
2002
|
+
// ../../node_modules/lodash/_memoizeCapped.js
|
|
2003
|
+
var require_memoizeCapped = __commonJS({
|
|
2004
|
+
"../../node_modules/lodash/_memoizeCapped.js"(exports, module2) {
|
|
2005
|
+
var memoize2 = require_memoize();
|
|
2006
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
2007
|
+
function memoizeCapped(func) {
|
|
2008
|
+
var result = memoize2(func, function(key) {
|
|
2009
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
2010
|
+
cache.clear();
|
|
2011
|
+
}
|
|
2012
|
+
return key;
|
|
2013
|
+
});
|
|
2014
|
+
var cache = result.cache;
|
|
2015
|
+
return result;
|
|
2016
|
+
}
|
|
2017
|
+
module2.exports = memoizeCapped;
|
|
2018
|
+
}
|
|
2019
|
+
});
|
|
2020
|
+
|
|
2021
|
+
// ../../node_modules/lodash/_stringToPath.js
|
|
2022
|
+
var require_stringToPath = __commonJS({
|
|
2023
|
+
"../../node_modules/lodash/_stringToPath.js"(exports, module2) {
|
|
2024
|
+
var memoizeCapped = require_memoizeCapped();
|
|
2025
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2026
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
2027
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
2028
|
+
var result = [];
|
|
2029
|
+
if (string.charCodeAt(0) === 46) {
|
|
2030
|
+
result.push("");
|
|
2031
|
+
}
|
|
2032
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2033
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
2034
|
+
});
|
|
2035
|
+
return result;
|
|
2036
|
+
});
|
|
2037
|
+
module2.exports = stringToPath;
|
|
2038
|
+
}
|
|
2039
|
+
});
|
|
2040
|
+
|
|
2041
|
+
// ../../node_modules/lodash/_arrayMap.js
|
|
2042
|
+
var require_arrayMap = __commonJS({
|
|
2043
|
+
"../../node_modules/lodash/_arrayMap.js"(exports, module2) {
|
|
2044
|
+
function arrayMap(array, iteratee) {
|
|
2045
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
2046
|
+
while (++index < length) {
|
|
2047
|
+
result[index] = iteratee(array[index], index, array);
|
|
2048
|
+
}
|
|
2049
|
+
return result;
|
|
2050
|
+
}
|
|
2051
|
+
module2.exports = arrayMap;
|
|
2052
|
+
}
|
|
2053
|
+
});
|
|
2054
|
+
|
|
2055
|
+
// ../../node_modules/lodash/_baseToString.js
|
|
2056
|
+
var require_baseToString = __commonJS({
|
|
2057
|
+
"../../node_modules/lodash/_baseToString.js"(exports, module2) {
|
|
2058
|
+
var Symbol2 = require_Symbol();
|
|
2059
|
+
var arrayMap = require_arrayMap();
|
|
2060
|
+
var isArray = require_isArray();
|
|
2061
|
+
var isSymbol = require_isSymbol();
|
|
2062
|
+
var INFINITY = 1 / 0;
|
|
2063
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
2064
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
2065
|
+
function baseToString(value) {
|
|
2066
|
+
if (typeof value == "string") {
|
|
2067
|
+
return value;
|
|
2068
|
+
}
|
|
2069
|
+
if (isArray(value)) {
|
|
2070
|
+
return arrayMap(value, baseToString) + "";
|
|
2071
|
+
}
|
|
2072
|
+
if (isSymbol(value)) {
|
|
2073
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
2074
|
+
}
|
|
2075
|
+
var result = value + "";
|
|
2076
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
2077
|
+
}
|
|
2078
|
+
module2.exports = baseToString;
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
|
|
2082
|
+
// ../../node_modules/lodash/toString.js
|
|
2083
|
+
var require_toString = __commonJS({
|
|
2084
|
+
"../../node_modules/lodash/toString.js"(exports, module2) {
|
|
2085
|
+
var baseToString = require_baseToString();
|
|
2086
|
+
function toString(value) {
|
|
2087
|
+
return value == null ? "" : baseToString(value);
|
|
2088
|
+
}
|
|
2089
|
+
module2.exports = toString;
|
|
2090
|
+
}
|
|
2091
|
+
});
|
|
2092
|
+
|
|
2093
|
+
// ../../node_modules/lodash/_castPath.js
|
|
2094
|
+
var require_castPath = __commonJS({
|
|
2095
|
+
"../../node_modules/lodash/_castPath.js"(exports, module2) {
|
|
2096
|
+
var isArray = require_isArray();
|
|
2097
|
+
var isKey = require_isKey();
|
|
2098
|
+
var stringToPath = require_stringToPath();
|
|
2099
|
+
var toString = require_toString();
|
|
2100
|
+
function castPath(value, object) {
|
|
2101
|
+
if (isArray(value)) {
|
|
2102
|
+
return value;
|
|
2103
|
+
}
|
|
2104
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
2105
|
+
}
|
|
2106
|
+
module2.exports = castPath;
|
|
2107
|
+
}
|
|
2108
|
+
});
|
|
2109
|
+
|
|
2110
|
+
// ../../node_modules/lodash/_toKey.js
|
|
2111
|
+
var require_toKey = __commonJS({
|
|
2112
|
+
"../../node_modules/lodash/_toKey.js"(exports, module2) {
|
|
2113
|
+
var isSymbol = require_isSymbol();
|
|
2114
|
+
var INFINITY = 1 / 0;
|
|
2115
|
+
function toKey(value) {
|
|
2116
|
+
if (typeof value == "string" || isSymbol(value)) {
|
|
2117
|
+
return value;
|
|
2118
|
+
}
|
|
2119
|
+
var result = value + "";
|
|
2120
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
2121
|
+
}
|
|
2122
|
+
module2.exports = toKey;
|
|
2123
|
+
}
|
|
2124
|
+
});
|
|
2125
|
+
|
|
2126
|
+
// ../../node_modules/lodash/_baseGet.js
|
|
2127
|
+
var require_baseGet = __commonJS({
|
|
2128
|
+
"../../node_modules/lodash/_baseGet.js"(exports, module2) {
|
|
2129
|
+
var castPath = require_castPath();
|
|
2130
|
+
var toKey = require_toKey();
|
|
2131
|
+
function baseGet(object, path) {
|
|
2132
|
+
path = castPath(path, object);
|
|
2133
|
+
var index = 0, length = path.length;
|
|
2134
|
+
while (object != null && index < length) {
|
|
2135
|
+
object = object[toKey(path[index++])];
|
|
2136
|
+
}
|
|
2137
|
+
return index && index == length ? object : void 0;
|
|
2138
|
+
}
|
|
2139
|
+
module2.exports = baseGet;
|
|
2140
|
+
}
|
|
2141
|
+
});
|
|
2142
|
+
|
|
2143
|
+
// ../../node_modules/lodash/get.js
|
|
2144
|
+
var require_get = __commonJS({
|
|
2145
|
+
"../../node_modules/lodash/get.js"(exports, module2) {
|
|
2146
|
+
var baseGet = require_baseGet();
|
|
2147
|
+
function get2(object, path, defaultValue) {
|
|
2148
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
2149
|
+
return result === void 0 ? defaultValue : result;
|
|
2150
|
+
}
|
|
2151
|
+
module2.exports = get2;
|
|
2152
|
+
}
|
|
2153
|
+
});
|
|
2154
|
+
|
|
2155
|
+
// ../../node_modules/lodash/_baseHasIn.js
|
|
2156
|
+
var require_baseHasIn = __commonJS({
|
|
2157
|
+
"../../node_modules/lodash/_baseHasIn.js"(exports, module2) {
|
|
2158
|
+
function baseHasIn(object, key) {
|
|
2159
|
+
return object != null && key in Object(object);
|
|
2160
|
+
}
|
|
2161
|
+
module2.exports = baseHasIn;
|
|
2162
|
+
}
|
|
2163
|
+
});
|
|
2164
|
+
|
|
2165
|
+
// ../../node_modules/lodash/_hasPath.js
|
|
2166
|
+
var require_hasPath = __commonJS({
|
|
2167
|
+
"../../node_modules/lodash/_hasPath.js"(exports, module2) {
|
|
2168
|
+
var castPath = require_castPath();
|
|
2169
|
+
var isArguments = require_isArguments();
|
|
2170
|
+
var isArray = require_isArray();
|
|
2171
|
+
var isIndex = require_isIndex();
|
|
2172
|
+
var isLength = require_isLength();
|
|
2173
|
+
var toKey = require_toKey();
|
|
2174
|
+
function hasPath(object, path, hasFunc) {
|
|
2175
|
+
path = castPath(path, object);
|
|
2176
|
+
var index = -1, length = path.length, result = false;
|
|
2177
|
+
while (++index < length) {
|
|
2178
|
+
var key = toKey(path[index]);
|
|
2179
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
2180
|
+
break;
|
|
2181
|
+
}
|
|
2182
|
+
object = object[key];
|
|
2183
|
+
}
|
|
2184
|
+
if (result || ++index != length) {
|
|
2185
|
+
return result;
|
|
2186
|
+
}
|
|
2187
|
+
length = object == null ? 0 : object.length;
|
|
2188
|
+
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
2189
|
+
}
|
|
2190
|
+
module2.exports = hasPath;
|
|
2191
|
+
}
|
|
2192
|
+
});
|
|
2193
|
+
|
|
2194
|
+
// ../../node_modules/lodash/hasIn.js
|
|
2195
|
+
var require_hasIn = __commonJS({
|
|
2196
|
+
"../../node_modules/lodash/hasIn.js"(exports, module2) {
|
|
2197
|
+
var baseHasIn = require_baseHasIn();
|
|
2198
|
+
var hasPath = require_hasPath();
|
|
2199
|
+
function hasIn(object, path) {
|
|
2200
|
+
return object != null && hasPath(object, path, baseHasIn);
|
|
2201
|
+
}
|
|
2202
|
+
module2.exports = hasIn;
|
|
2203
|
+
}
|
|
2204
|
+
});
|
|
2205
|
+
|
|
2206
|
+
// ../../node_modules/lodash/_baseMatchesProperty.js
|
|
2207
|
+
var require_baseMatchesProperty = __commonJS({
|
|
2208
|
+
"../../node_modules/lodash/_baseMatchesProperty.js"(exports, module2) {
|
|
2209
|
+
var baseIsEqual = require_baseIsEqual();
|
|
2210
|
+
var get2 = require_get();
|
|
2211
|
+
var hasIn = require_hasIn();
|
|
2212
|
+
var isKey = require_isKey();
|
|
2213
|
+
var isStrictComparable = require_isStrictComparable();
|
|
2214
|
+
var matchesStrictComparable = require_matchesStrictComparable();
|
|
2215
|
+
var toKey = require_toKey();
|
|
2216
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
2217
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
2218
|
+
function baseMatchesProperty(path, srcValue) {
|
|
2219
|
+
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
2220
|
+
return matchesStrictComparable(toKey(path), srcValue);
|
|
2221
|
+
}
|
|
2222
|
+
return function(object) {
|
|
2223
|
+
var objValue = get2(object, path);
|
|
2224
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
2225
|
+
};
|
|
2226
|
+
}
|
|
2227
|
+
module2.exports = baseMatchesProperty;
|
|
2228
|
+
}
|
|
2229
|
+
});
|
|
2230
|
+
|
|
2231
|
+
// ../../node_modules/lodash/identity.js
|
|
2232
|
+
var require_identity = __commonJS({
|
|
2233
|
+
"../../node_modules/lodash/identity.js"(exports, module2) {
|
|
2234
|
+
function identity(value) {
|
|
2235
|
+
return value;
|
|
2236
|
+
}
|
|
2237
|
+
module2.exports = identity;
|
|
2238
|
+
}
|
|
2239
|
+
});
|
|
2240
|
+
|
|
2241
|
+
// ../../node_modules/lodash/_baseProperty.js
|
|
2242
|
+
var require_baseProperty = __commonJS({
|
|
2243
|
+
"../../node_modules/lodash/_baseProperty.js"(exports, module2) {
|
|
2244
|
+
function baseProperty(key) {
|
|
2245
|
+
return function(object) {
|
|
2246
|
+
return object == null ? void 0 : object[key];
|
|
2247
|
+
};
|
|
2248
|
+
}
|
|
2249
|
+
module2.exports = baseProperty;
|
|
2250
|
+
}
|
|
2251
|
+
});
|
|
2252
|
+
|
|
2253
|
+
// ../../node_modules/lodash/_basePropertyDeep.js
|
|
2254
|
+
var require_basePropertyDeep = __commonJS({
|
|
2255
|
+
"../../node_modules/lodash/_basePropertyDeep.js"(exports, module2) {
|
|
2256
|
+
var baseGet = require_baseGet();
|
|
2257
|
+
function basePropertyDeep(path) {
|
|
2258
|
+
return function(object) {
|
|
2259
|
+
return baseGet(object, path);
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
module2.exports = basePropertyDeep;
|
|
2263
|
+
}
|
|
2264
|
+
});
|
|
2265
|
+
|
|
2266
|
+
// ../../node_modules/lodash/property.js
|
|
2267
|
+
var require_property = __commonJS({
|
|
2268
|
+
"../../node_modules/lodash/property.js"(exports, module2) {
|
|
2269
|
+
var baseProperty = require_baseProperty();
|
|
2270
|
+
var basePropertyDeep = require_basePropertyDeep();
|
|
2271
|
+
var isKey = require_isKey();
|
|
2272
|
+
var toKey = require_toKey();
|
|
2273
|
+
function property(path) {
|
|
2274
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
2275
|
+
}
|
|
2276
|
+
module2.exports = property;
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
// ../../node_modules/lodash/_baseIteratee.js
|
|
2281
|
+
var require_baseIteratee = __commonJS({
|
|
2282
|
+
"../../node_modules/lodash/_baseIteratee.js"(exports, module2) {
|
|
2283
|
+
var baseMatches = require_baseMatches();
|
|
2284
|
+
var baseMatchesProperty = require_baseMatchesProperty();
|
|
2285
|
+
var identity = require_identity();
|
|
2286
|
+
var isArray = require_isArray();
|
|
2287
|
+
var property = require_property();
|
|
2288
|
+
function baseIteratee(value) {
|
|
2289
|
+
if (typeof value == "function") {
|
|
2290
|
+
return value;
|
|
2291
|
+
}
|
|
2292
|
+
if (value == null) {
|
|
2293
|
+
return identity;
|
|
2294
|
+
}
|
|
2295
|
+
if (typeof value == "object") {
|
|
2296
|
+
return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
2297
|
+
}
|
|
2298
|
+
return property(value);
|
|
2299
|
+
}
|
|
2300
|
+
module2.exports = baseIteratee;
|
|
2301
|
+
}
|
|
2302
|
+
});
|
|
2303
|
+
|
|
2304
|
+
// ../../node_modules/lodash/_createAggregator.js
|
|
2305
|
+
var require_createAggregator = __commonJS({
|
|
2306
|
+
"../../node_modules/lodash/_createAggregator.js"(exports, module2) {
|
|
2307
|
+
var arrayAggregator = require_arrayAggregator();
|
|
2308
|
+
var baseAggregator = require_baseAggregator();
|
|
2309
|
+
var baseIteratee = require_baseIteratee();
|
|
2310
|
+
var isArray = require_isArray();
|
|
2311
|
+
function createAggregator(setter, initializer) {
|
|
2312
|
+
return function(collection, iteratee) {
|
|
2313
|
+
var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {};
|
|
2314
|
+
return func(collection, setter, baseIteratee(iteratee, 2), accumulator);
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
module2.exports = createAggregator;
|
|
2318
|
+
}
|
|
2319
|
+
});
|
|
2320
|
+
|
|
2321
|
+
// ../../node_modules/lodash/countBy.js
|
|
2322
|
+
var require_countBy = __commonJS({
|
|
2323
|
+
"../../node_modules/lodash/countBy.js"(exports, module2) {
|
|
2324
|
+
var baseAssignValue = require_baseAssignValue();
|
|
2325
|
+
var createAggregator = require_createAggregator();
|
|
2326
|
+
var objectProto = Object.prototype;
|
|
2327
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2328
|
+
var countBy2 = createAggregator(function(result, value, key) {
|
|
2329
|
+
if (hasOwnProperty.call(result, key)) {
|
|
2330
|
+
++result[key];
|
|
2331
|
+
} else {
|
|
2332
|
+
baseAssignValue(result, key, 1);
|
|
2333
|
+
}
|
|
2334
|
+
});
|
|
2335
|
+
module2.exports = countBy2;
|
|
2336
|
+
}
|
|
2337
|
+
});
|
|
2338
|
+
|
|
2339
|
+
// ../../node_modules/lodash/isEqual.js
|
|
2340
|
+
var require_isEqual = __commonJS({
|
|
2341
|
+
"../../node_modules/lodash/isEqual.js"(exports, module2) {
|
|
2342
|
+
var baseIsEqual = require_baseIsEqual();
|
|
2343
|
+
function isEqual2(value, other) {
|
|
2344
|
+
return baseIsEqual(value, other);
|
|
2345
|
+
}
|
|
2346
|
+
module2.exports = isEqual2;
|
|
2347
|
+
}
|
|
2348
|
+
});
|
|
2349
|
+
|
|
2350
|
+
// ../../node_modules/lodash/_assignMergeValue.js
|
|
2351
|
+
var require_assignMergeValue = __commonJS({
|
|
2352
|
+
"../../node_modules/lodash/_assignMergeValue.js"(exports, module2) {
|
|
2353
|
+
var baseAssignValue = require_baseAssignValue();
|
|
2354
|
+
var eq = require_eq();
|
|
2355
|
+
function assignMergeValue(object, key, value) {
|
|
2356
|
+
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
|
|
2357
|
+
baseAssignValue(object, key, value);
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
module2.exports = assignMergeValue;
|
|
2361
|
+
}
|
|
2362
|
+
});
|
|
2363
|
+
|
|
2364
|
+
// ../../node_modules/lodash/_cloneBuffer.js
|
|
2365
|
+
var require_cloneBuffer = __commonJS({
|
|
2366
|
+
"../../node_modules/lodash/_cloneBuffer.js"(exports, module2) {
|
|
2367
|
+
var root = require_root();
|
|
2368
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
2369
|
+
var freeModule = freeExports && typeof module2 == "object" && module2 && !module2.nodeType && module2;
|
|
2370
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
2371
|
+
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
2372
|
+
var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
2373
|
+
function cloneBuffer(buffer, isDeep) {
|
|
2374
|
+
if (isDeep) {
|
|
2375
|
+
return buffer.slice();
|
|
2376
|
+
}
|
|
2377
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
2378
|
+
buffer.copy(result);
|
|
2379
|
+
return result;
|
|
2380
|
+
}
|
|
2381
|
+
module2.exports = cloneBuffer;
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
// ../../node_modules/lodash/_cloneArrayBuffer.js
|
|
2386
|
+
var require_cloneArrayBuffer = __commonJS({
|
|
2387
|
+
"../../node_modules/lodash/_cloneArrayBuffer.js"(exports, module2) {
|
|
2388
|
+
var Uint8Array2 = require_Uint8Array();
|
|
2389
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
2390
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
2391
|
+
new Uint8Array2(result).set(new Uint8Array2(arrayBuffer));
|
|
2392
|
+
return result;
|
|
2393
|
+
}
|
|
2394
|
+
module2.exports = cloneArrayBuffer;
|
|
2395
|
+
}
|
|
2396
|
+
});
|
|
2397
|
+
|
|
2398
|
+
// ../../node_modules/lodash/_cloneTypedArray.js
|
|
2399
|
+
var require_cloneTypedArray = __commonJS({
|
|
2400
|
+
"../../node_modules/lodash/_cloneTypedArray.js"(exports, module2) {
|
|
2401
|
+
var cloneArrayBuffer = require_cloneArrayBuffer();
|
|
2402
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
2403
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
2404
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
2405
|
+
}
|
|
2406
|
+
module2.exports = cloneTypedArray;
|
|
2407
|
+
}
|
|
2408
|
+
});
|
|
2409
|
+
|
|
2410
|
+
// ../../node_modules/lodash/_copyArray.js
|
|
2411
|
+
var require_copyArray = __commonJS({
|
|
2412
|
+
"../../node_modules/lodash/_copyArray.js"(exports, module2) {
|
|
2413
|
+
function copyArray(source, array) {
|
|
2414
|
+
var index = -1, length = source.length;
|
|
2415
|
+
array || (array = Array(length));
|
|
2416
|
+
while (++index < length) {
|
|
2417
|
+
array[index] = source[index];
|
|
2418
|
+
}
|
|
2419
|
+
return array;
|
|
2420
|
+
}
|
|
2421
|
+
module2.exports = copyArray;
|
|
2422
|
+
}
|
|
2423
|
+
});
|
|
2424
|
+
|
|
2425
|
+
// ../../node_modules/lodash/_baseCreate.js
|
|
2426
|
+
var require_baseCreate = __commonJS({
|
|
2427
|
+
"../../node_modules/lodash/_baseCreate.js"(exports, module2) {
|
|
2428
|
+
var isObject = require_isObject();
|
|
2429
|
+
var objectCreate = Object.create;
|
|
2430
|
+
var baseCreate = function() {
|
|
2431
|
+
function object() {
|
|
2432
|
+
}
|
|
2433
|
+
return function(proto) {
|
|
2434
|
+
if (!isObject(proto)) {
|
|
2435
|
+
return {};
|
|
2436
|
+
}
|
|
2437
|
+
if (objectCreate) {
|
|
2438
|
+
return objectCreate(proto);
|
|
2439
|
+
}
|
|
2440
|
+
object.prototype = proto;
|
|
2441
|
+
var result = new object();
|
|
2442
|
+
object.prototype = void 0;
|
|
2443
|
+
return result;
|
|
2444
|
+
};
|
|
2445
|
+
}();
|
|
2446
|
+
module2.exports = baseCreate;
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
|
|
2450
|
+
// ../../node_modules/lodash/_getPrototype.js
|
|
2451
|
+
var require_getPrototype = __commonJS({
|
|
2452
|
+
"../../node_modules/lodash/_getPrototype.js"(exports, module2) {
|
|
2453
|
+
var overArg = require_overArg();
|
|
2454
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
2455
|
+
module2.exports = getPrototype;
|
|
2456
|
+
}
|
|
2457
|
+
});
|
|
2458
|
+
|
|
2459
|
+
// ../../node_modules/lodash/_initCloneObject.js
|
|
2460
|
+
var require_initCloneObject = __commonJS({
|
|
2461
|
+
"../../node_modules/lodash/_initCloneObject.js"(exports, module2) {
|
|
2462
|
+
var baseCreate = require_baseCreate();
|
|
2463
|
+
var getPrototype = require_getPrototype();
|
|
2464
|
+
var isPrototype = require_isPrototype();
|
|
2465
|
+
function initCloneObject(object) {
|
|
2466
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
2467
|
+
}
|
|
2468
|
+
module2.exports = initCloneObject;
|
|
2469
|
+
}
|
|
2470
|
+
});
|
|
2471
|
+
|
|
2472
|
+
// ../../node_modules/lodash/isArrayLikeObject.js
|
|
2473
|
+
var require_isArrayLikeObject = __commonJS({
|
|
2474
|
+
"../../node_modules/lodash/isArrayLikeObject.js"(exports, module2) {
|
|
2475
|
+
var isArrayLike = require_isArrayLike();
|
|
2476
|
+
var isObjectLike = require_isObjectLike();
|
|
2477
|
+
function isArrayLikeObject(value) {
|
|
2478
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
2479
|
+
}
|
|
2480
|
+
module2.exports = isArrayLikeObject;
|
|
2481
|
+
}
|
|
2482
|
+
});
|
|
2483
|
+
|
|
2484
|
+
// ../../node_modules/lodash/isPlainObject.js
|
|
2485
|
+
var require_isPlainObject = __commonJS({
|
|
2486
|
+
"../../node_modules/lodash/isPlainObject.js"(exports, module2) {
|
|
2487
|
+
var baseGetTag = require_baseGetTag();
|
|
2488
|
+
var getPrototype = require_getPrototype();
|
|
2489
|
+
var isObjectLike = require_isObjectLike();
|
|
2490
|
+
var objectTag = "[object Object]";
|
|
2491
|
+
var funcProto = Function.prototype;
|
|
2492
|
+
var objectProto = Object.prototype;
|
|
2493
|
+
var funcToString = funcProto.toString;
|
|
2494
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2495
|
+
var objectCtorString = funcToString.call(Object);
|
|
2496
|
+
function isPlainObject(value) {
|
|
2497
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
2498
|
+
return false;
|
|
2499
|
+
}
|
|
2500
|
+
var proto = getPrototype(value);
|
|
2501
|
+
if (proto === null) {
|
|
2502
|
+
return true;
|
|
2503
|
+
}
|
|
2504
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
2505
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
2506
|
+
}
|
|
2507
|
+
module2.exports = isPlainObject;
|
|
2508
|
+
}
|
|
2509
|
+
});
|
|
2510
|
+
|
|
2511
|
+
// ../../node_modules/lodash/_safeGet.js
|
|
2512
|
+
var require_safeGet = __commonJS({
|
|
2513
|
+
"../../node_modules/lodash/_safeGet.js"(exports, module2) {
|
|
2514
|
+
function safeGet(object, key) {
|
|
2515
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
2516
|
+
return;
|
|
2517
|
+
}
|
|
2518
|
+
if (key == "__proto__") {
|
|
2519
|
+
return;
|
|
2520
|
+
}
|
|
2521
|
+
return object[key];
|
|
2522
|
+
}
|
|
2523
|
+
module2.exports = safeGet;
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
|
|
2527
|
+
// ../../node_modules/lodash/_assignValue.js
|
|
2528
|
+
var require_assignValue = __commonJS({
|
|
2529
|
+
"../../node_modules/lodash/_assignValue.js"(exports, module2) {
|
|
2530
|
+
var baseAssignValue = require_baseAssignValue();
|
|
2531
|
+
var eq = require_eq();
|
|
2532
|
+
var objectProto = Object.prototype;
|
|
2533
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2534
|
+
function assignValue(object, key, value) {
|
|
2535
|
+
var objValue = object[key];
|
|
2536
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
2537
|
+
baseAssignValue(object, key, value);
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
module2.exports = assignValue;
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
|
|
2544
|
+
// ../../node_modules/lodash/_copyObject.js
|
|
2545
|
+
var require_copyObject = __commonJS({
|
|
2546
|
+
"../../node_modules/lodash/_copyObject.js"(exports, module2) {
|
|
2547
|
+
var assignValue = require_assignValue();
|
|
2548
|
+
var baseAssignValue = require_baseAssignValue();
|
|
2549
|
+
function copyObject(source, props, object, customizer) {
|
|
2550
|
+
var isNew = !object;
|
|
2551
|
+
object || (object = {});
|
|
2552
|
+
var index = -1, length = props.length;
|
|
2553
|
+
while (++index < length) {
|
|
2554
|
+
var key = props[index];
|
|
2555
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
2556
|
+
if (newValue === void 0) {
|
|
2557
|
+
newValue = source[key];
|
|
2558
|
+
}
|
|
2559
|
+
if (isNew) {
|
|
2560
|
+
baseAssignValue(object, key, newValue);
|
|
2561
|
+
} else {
|
|
2562
|
+
assignValue(object, key, newValue);
|
|
2563
|
+
}
|
|
2564
|
+
}
|
|
2565
|
+
return object;
|
|
2566
|
+
}
|
|
2567
|
+
module2.exports = copyObject;
|
|
2568
|
+
}
|
|
2569
|
+
});
|
|
2570
|
+
|
|
2571
|
+
// ../../node_modules/lodash/_nativeKeysIn.js
|
|
2572
|
+
var require_nativeKeysIn = __commonJS({
|
|
2573
|
+
"../../node_modules/lodash/_nativeKeysIn.js"(exports, module2) {
|
|
2574
|
+
function nativeKeysIn(object) {
|
|
2575
|
+
var result = [];
|
|
2576
|
+
if (object != null) {
|
|
2577
|
+
for (var key in Object(object)) {
|
|
2578
|
+
result.push(key);
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
return result;
|
|
2582
|
+
}
|
|
2583
|
+
module2.exports = nativeKeysIn;
|
|
2584
|
+
}
|
|
2585
|
+
});
|
|
2586
|
+
|
|
2587
|
+
// ../../node_modules/lodash/_baseKeysIn.js
|
|
2588
|
+
var require_baseKeysIn = __commonJS({
|
|
2589
|
+
"../../node_modules/lodash/_baseKeysIn.js"(exports, module2) {
|
|
2590
|
+
var isObject = require_isObject();
|
|
2591
|
+
var isPrototype = require_isPrototype();
|
|
2592
|
+
var nativeKeysIn = require_nativeKeysIn();
|
|
2593
|
+
var objectProto = Object.prototype;
|
|
2594
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
2595
|
+
function baseKeysIn(object) {
|
|
2596
|
+
if (!isObject(object)) {
|
|
2597
|
+
return nativeKeysIn(object);
|
|
2598
|
+
}
|
|
2599
|
+
var isProto = isPrototype(object), result = [];
|
|
2600
|
+
for (var key in object) {
|
|
2601
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
2602
|
+
result.push(key);
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
return result;
|
|
2606
|
+
}
|
|
2607
|
+
module2.exports = baseKeysIn;
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
|
|
2611
|
+
// ../../node_modules/lodash/keysIn.js
|
|
2612
|
+
var require_keysIn = __commonJS({
|
|
2613
|
+
"../../node_modules/lodash/keysIn.js"(exports, module2) {
|
|
2614
|
+
var arrayLikeKeys = require_arrayLikeKeys();
|
|
2615
|
+
var baseKeysIn = require_baseKeysIn();
|
|
2616
|
+
var isArrayLike = require_isArrayLike();
|
|
2617
|
+
function keysIn(object) {
|
|
2618
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
2619
|
+
}
|
|
2620
|
+
module2.exports = keysIn;
|
|
2621
|
+
}
|
|
2622
|
+
});
|
|
2623
|
+
|
|
2624
|
+
// ../../node_modules/lodash/toPlainObject.js
|
|
2625
|
+
var require_toPlainObject = __commonJS({
|
|
2626
|
+
"../../node_modules/lodash/toPlainObject.js"(exports, module2) {
|
|
2627
|
+
var copyObject = require_copyObject();
|
|
2628
|
+
var keysIn = require_keysIn();
|
|
2629
|
+
function toPlainObject(value) {
|
|
2630
|
+
return copyObject(value, keysIn(value));
|
|
2631
|
+
}
|
|
2632
|
+
module2.exports = toPlainObject;
|
|
2633
|
+
}
|
|
2634
|
+
});
|
|
2635
|
+
|
|
2636
|
+
// ../../node_modules/lodash/_baseMergeDeep.js
|
|
2637
|
+
var require_baseMergeDeep = __commonJS({
|
|
2638
|
+
"../../node_modules/lodash/_baseMergeDeep.js"(exports, module2) {
|
|
2639
|
+
var assignMergeValue = require_assignMergeValue();
|
|
2640
|
+
var cloneBuffer = require_cloneBuffer();
|
|
2641
|
+
var cloneTypedArray = require_cloneTypedArray();
|
|
2642
|
+
var copyArray = require_copyArray();
|
|
2643
|
+
var initCloneObject = require_initCloneObject();
|
|
2644
|
+
var isArguments = require_isArguments();
|
|
2645
|
+
var isArray = require_isArray();
|
|
2646
|
+
var isArrayLikeObject = require_isArrayLikeObject();
|
|
2647
|
+
var isBuffer = require_isBuffer();
|
|
2648
|
+
var isFunction = require_isFunction();
|
|
2649
|
+
var isObject = require_isObject();
|
|
2650
|
+
var isPlainObject = require_isPlainObject();
|
|
2651
|
+
var isTypedArray = require_isTypedArray();
|
|
2652
|
+
var safeGet = require_safeGet();
|
|
2653
|
+
var toPlainObject = require_toPlainObject();
|
|
2654
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2655
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
2656
|
+
if (stacked) {
|
|
2657
|
+
assignMergeValue(object, key, stacked);
|
|
2658
|
+
return;
|
|
2659
|
+
}
|
|
2660
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
2661
|
+
var isCommon = newValue === void 0;
|
|
2662
|
+
if (isCommon) {
|
|
2663
|
+
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
2664
|
+
newValue = srcValue;
|
|
2665
|
+
if (isArr || isBuff || isTyped) {
|
|
2666
|
+
if (isArray(objValue)) {
|
|
2667
|
+
newValue = objValue;
|
|
2668
|
+
} else if (isArrayLikeObject(objValue)) {
|
|
2669
|
+
newValue = copyArray(objValue);
|
|
2670
|
+
} else if (isBuff) {
|
|
2671
|
+
isCommon = false;
|
|
2672
|
+
newValue = cloneBuffer(srcValue, true);
|
|
2673
|
+
} else if (isTyped) {
|
|
2674
|
+
isCommon = false;
|
|
2675
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
2676
|
+
} else {
|
|
2677
|
+
newValue = [];
|
|
405
2678
|
}
|
|
406
|
-
|
|
407
|
-
|
|
2679
|
+
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
2680
|
+
newValue = objValue;
|
|
2681
|
+
if (isArguments(objValue)) {
|
|
2682
|
+
newValue = toPlainObject(objValue);
|
|
2683
|
+
} else if (!isObject(objValue) || isFunction(objValue)) {
|
|
2684
|
+
newValue = initCloneObject(srcValue);
|
|
408
2685
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
this._area = _.storage("fake");
|
|
447
|
-
} else if (force === false) {
|
|
448
|
-
this._area = this._real || this._area;
|
|
449
|
-
}
|
|
450
|
-
return this._area.name === "fake";
|
|
451
|
-
},
|
|
452
|
-
toString: function() {
|
|
453
|
-
return "store" + (this._ns ? "." + this.namespace() : "") + "[" + this._id + "]";
|
|
454
|
-
},
|
|
455
|
-
// storage functions
|
|
456
|
-
has: function(key) {
|
|
457
|
-
if (this._area.has) {
|
|
458
|
-
return this._area.has(this._in(key));
|
|
459
|
-
}
|
|
460
|
-
return !!(this._in(key) in this._area);
|
|
461
|
-
},
|
|
462
|
-
size: function() {
|
|
463
|
-
return this.keys().length;
|
|
464
|
-
},
|
|
465
|
-
each: function(fn, fill) {
|
|
466
|
-
for (var i = 0, m = _.length(this._area); i < m; i++) {
|
|
467
|
-
var key = this._out(_.key(this._area, i));
|
|
468
|
-
if (key !== void 0) {
|
|
469
|
-
if (fn.call(this, key, this.get(key), fill) === false) {
|
|
470
|
-
break;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
if (m > _.length(this._area)) {
|
|
474
|
-
m--;
|
|
475
|
-
i--;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
return fill || this;
|
|
479
|
-
},
|
|
480
|
-
keys: function(fillList) {
|
|
481
|
-
return this.each(function(k, v, list) {
|
|
482
|
-
list.push(k);
|
|
483
|
-
}, fillList || []);
|
|
484
|
-
},
|
|
485
|
-
get: function(key, alt) {
|
|
486
|
-
var s = _.get(this._area, this._in(key)), fn;
|
|
487
|
-
if (typeof alt === "function") {
|
|
488
|
-
fn = alt;
|
|
489
|
-
alt = null;
|
|
490
|
-
}
|
|
491
|
-
return s !== null ? _.parse(s, fn) : alt != null ? alt : s;
|
|
492
|
-
},
|
|
493
|
-
getAll: function(fillObj) {
|
|
494
|
-
return this.each(function(k, v, all) {
|
|
495
|
-
all[k] = v;
|
|
496
|
-
}, fillObj || {});
|
|
497
|
-
},
|
|
498
|
-
transact: function(key, fn, alt) {
|
|
499
|
-
var val = this.get(key, alt), ret = fn(val);
|
|
500
|
-
this.set(key, ret === void 0 ? val : ret);
|
|
501
|
-
return this;
|
|
502
|
-
},
|
|
503
|
-
set: function(key, data, overwrite) {
|
|
504
|
-
var d = this.get(key), replacer;
|
|
505
|
-
if (d != null && overwrite === false) {
|
|
506
|
-
return data;
|
|
507
|
-
}
|
|
508
|
-
if (typeof overwrite === "function") {
|
|
509
|
-
replacer = overwrite;
|
|
510
|
-
overwrite = void 0;
|
|
511
|
-
}
|
|
512
|
-
return _.set(this._area, this._in(key), _.stringify(data, replacer), overwrite) || d;
|
|
513
|
-
},
|
|
514
|
-
setAll: function(data, overwrite) {
|
|
515
|
-
var changed, val;
|
|
516
|
-
for (var key in data) {
|
|
517
|
-
val = data[key];
|
|
518
|
-
if (this.set(key, val, overwrite) !== val) {
|
|
519
|
-
changed = true;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
return changed;
|
|
523
|
-
},
|
|
524
|
-
add: function(key, data, replacer) {
|
|
525
|
-
var d = this.get(key);
|
|
526
|
-
if (d instanceof Array) {
|
|
527
|
-
data = d.concat(data);
|
|
528
|
-
} else if (d !== null) {
|
|
529
|
-
var type = typeof d;
|
|
530
|
-
if (type === typeof data && type === "object") {
|
|
531
|
-
for (var k in data) {
|
|
532
|
-
d[k] = data[k];
|
|
533
|
-
}
|
|
534
|
-
data = d;
|
|
535
|
-
} else {
|
|
536
|
-
data = d + data;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
_.set(this._area, this._in(key), _.stringify(data, replacer));
|
|
540
|
-
return data;
|
|
541
|
-
},
|
|
542
|
-
remove: function(key, alt) {
|
|
543
|
-
var d = this.get(key, alt);
|
|
544
|
-
_.remove(this._area, this._in(key));
|
|
545
|
-
return d;
|
|
546
|
-
},
|
|
547
|
-
clear: function() {
|
|
548
|
-
if (!this._ns) {
|
|
549
|
-
_.clear(this._area);
|
|
550
|
-
} else {
|
|
551
|
-
this.each(function(k) {
|
|
552
|
-
_.remove(this._area, this._in(k));
|
|
553
|
-
}, 1);
|
|
554
|
-
}
|
|
555
|
-
return this;
|
|
556
|
-
},
|
|
557
|
-
clearAll: function() {
|
|
558
|
-
var area = this._area;
|
|
559
|
-
for (var id in _.areas) {
|
|
560
|
-
if (_.areas.hasOwnProperty(id)) {
|
|
561
|
-
this._area = _.areas[id];
|
|
562
|
-
this.clear();
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
this._area = area;
|
|
566
|
-
return this;
|
|
567
|
-
},
|
|
568
|
-
// internal use functions
|
|
569
|
-
_in: function(k) {
|
|
570
|
-
if (typeof k !== "string") {
|
|
571
|
-
k = _.stringify(k);
|
|
572
|
-
}
|
|
573
|
-
return this._ns ? this._ns + k : k;
|
|
574
|
-
},
|
|
575
|
-
_out: function(k) {
|
|
576
|
-
return this._ns ? k && k.indexOf(this._ns) === 0 ? k.substring(this._ns.length) : void 0 : (
|
|
577
|
-
// so each() knows to skip it
|
|
578
|
-
k
|
|
579
|
-
);
|
|
2686
|
+
} else {
|
|
2687
|
+
isCommon = false;
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2690
|
+
if (isCommon) {
|
|
2691
|
+
stack.set(srcValue, newValue);
|
|
2692
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2693
|
+
stack["delete"](srcValue);
|
|
2694
|
+
}
|
|
2695
|
+
assignMergeValue(object, key, newValue);
|
|
2696
|
+
}
|
|
2697
|
+
module2.exports = baseMergeDeep;
|
|
2698
|
+
}
|
|
2699
|
+
});
|
|
2700
|
+
|
|
2701
|
+
// ../../node_modules/lodash/_baseMerge.js
|
|
2702
|
+
var require_baseMerge = __commonJS({
|
|
2703
|
+
"../../node_modules/lodash/_baseMerge.js"(exports, module2) {
|
|
2704
|
+
var Stack = require_Stack();
|
|
2705
|
+
var assignMergeValue = require_assignMergeValue();
|
|
2706
|
+
var baseFor = require_baseFor();
|
|
2707
|
+
var baseMergeDeep = require_baseMergeDeep();
|
|
2708
|
+
var isObject = require_isObject();
|
|
2709
|
+
var keysIn = require_keysIn();
|
|
2710
|
+
var safeGet = require_safeGet();
|
|
2711
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2712
|
+
if (object === source) {
|
|
2713
|
+
return;
|
|
2714
|
+
}
|
|
2715
|
+
baseFor(source, function(srcValue, key) {
|
|
2716
|
+
stack || (stack = new Stack());
|
|
2717
|
+
if (isObject(srcValue)) {
|
|
2718
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
2719
|
+
} else {
|
|
2720
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
2721
|
+
if (newValue === void 0) {
|
|
2722
|
+
newValue = srcValue;
|
|
580
2723
|
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
2724
|
+
assignMergeValue(object, key, newValue);
|
|
2725
|
+
}
|
|
2726
|
+
}, keysIn);
|
|
2727
|
+
}
|
|
2728
|
+
module2.exports = baseMerge;
|
|
2729
|
+
}
|
|
2730
|
+
});
|
|
2731
|
+
|
|
2732
|
+
// ../../node_modules/lodash/_apply.js
|
|
2733
|
+
var require_apply = __commonJS({
|
|
2734
|
+
"../../node_modules/lodash/_apply.js"(exports, module2) {
|
|
2735
|
+
function apply(func, thisArg, args) {
|
|
2736
|
+
switch (args.length) {
|
|
2737
|
+
case 0:
|
|
2738
|
+
return func.call(thisArg);
|
|
2739
|
+
case 1:
|
|
2740
|
+
return func.call(thisArg, args[0]);
|
|
2741
|
+
case 2:
|
|
2742
|
+
return func.call(thisArg, args[0], args[1]);
|
|
2743
|
+
case 3:
|
|
2744
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
2745
|
+
}
|
|
2746
|
+
return func.apply(thisArg, args);
|
|
2747
|
+
}
|
|
2748
|
+
module2.exports = apply;
|
|
2749
|
+
}
|
|
2750
|
+
});
|
|
2751
|
+
|
|
2752
|
+
// ../../node_modules/lodash/_overRest.js
|
|
2753
|
+
var require_overRest = __commonJS({
|
|
2754
|
+
"../../node_modules/lodash/_overRest.js"(exports, module2) {
|
|
2755
|
+
var apply = require_apply();
|
|
2756
|
+
var nativeMax = Math.max;
|
|
2757
|
+
function overRest(func, start, transform) {
|
|
2758
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
2759
|
+
return function() {
|
|
2760
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
2761
|
+
while (++index < length) {
|
|
2762
|
+
array[index] = args[start + index];
|
|
2763
|
+
}
|
|
2764
|
+
index = -1;
|
|
2765
|
+
var otherArgs = Array(start + 1);
|
|
2766
|
+
while (++index < start) {
|
|
2767
|
+
otherArgs[index] = args[index];
|
|
2768
|
+
}
|
|
2769
|
+
otherArgs[start] = transform(array);
|
|
2770
|
+
return apply(func, this, otherArgs);
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2773
|
+
module2.exports = overRest;
|
|
2774
|
+
}
|
|
2775
|
+
});
|
|
2776
|
+
|
|
2777
|
+
// ../../node_modules/lodash/constant.js
|
|
2778
|
+
var require_constant = __commonJS({
|
|
2779
|
+
"../../node_modules/lodash/constant.js"(exports, module2) {
|
|
2780
|
+
function constant(value) {
|
|
2781
|
+
return function() {
|
|
2782
|
+
return value;
|
|
2783
|
+
};
|
|
2784
|
+
}
|
|
2785
|
+
module2.exports = constant;
|
|
2786
|
+
}
|
|
2787
|
+
});
|
|
2788
|
+
|
|
2789
|
+
// ../../node_modules/lodash/_baseSetToString.js
|
|
2790
|
+
var require_baseSetToString = __commonJS({
|
|
2791
|
+
"../../node_modules/lodash/_baseSetToString.js"(exports, module2) {
|
|
2792
|
+
var constant = require_constant();
|
|
2793
|
+
var defineProperty = require_defineProperty();
|
|
2794
|
+
var identity = require_identity();
|
|
2795
|
+
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
2796
|
+
return defineProperty(func, "toString", {
|
|
2797
|
+
"configurable": true,
|
|
2798
|
+
"enumerable": false,
|
|
2799
|
+
"value": constant(string),
|
|
2800
|
+
"writable": true
|
|
2801
|
+
});
|
|
2802
|
+
};
|
|
2803
|
+
module2.exports = baseSetToString;
|
|
2804
|
+
}
|
|
2805
|
+
});
|
|
2806
|
+
|
|
2807
|
+
// ../../node_modules/lodash/_shortOut.js
|
|
2808
|
+
var require_shortOut = __commonJS({
|
|
2809
|
+
"../../node_modules/lodash/_shortOut.js"(exports, module2) {
|
|
2810
|
+
var HOT_COUNT = 800;
|
|
2811
|
+
var HOT_SPAN = 16;
|
|
2812
|
+
var nativeNow = Date.now;
|
|
2813
|
+
function shortOut(func) {
|
|
2814
|
+
var count = 0, lastCalled = 0;
|
|
2815
|
+
return function() {
|
|
2816
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
2817
|
+
lastCalled = stamp;
|
|
2818
|
+
if (remaining > 0) {
|
|
2819
|
+
if (++count >= HOT_COUNT) {
|
|
2820
|
+
return arguments[0];
|
|
618
2821
|
}
|
|
2822
|
+
} else {
|
|
2823
|
+
count = 0;
|
|
2824
|
+
}
|
|
2825
|
+
return func.apply(void 0, arguments);
|
|
2826
|
+
};
|
|
2827
|
+
}
|
|
2828
|
+
module2.exports = shortOut;
|
|
2829
|
+
}
|
|
2830
|
+
});
|
|
2831
|
+
|
|
2832
|
+
// ../../node_modules/lodash/_setToString.js
|
|
2833
|
+
var require_setToString = __commonJS({
|
|
2834
|
+
"../../node_modules/lodash/_setToString.js"(exports, module2) {
|
|
2835
|
+
var baseSetToString = require_baseSetToString();
|
|
2836
|
+
var shortOut = require_shortOut();
|
|
2837
|
+
var setToString = shortOut(baseSetToString);
|
|
2838
|
+
module2.exports = setToString;
|
|
2839
|
+
}
|
|
2840
|
+
});
|
|
2841
|
+
|
|
2842
|
+
// ../../node_modules/lodash/_baseRest.js
|
|
2843
|
+
var require_baseRest = __commonJS({
|
|
2844
|
+
"../../node_modules/lodash/_baseRest.js"(exports, module2) {
|
|
2845
|
+
var identity = require_identity();
|
|
2846
|
+
var overRest = require_overRest();
|
|
2847
|
+
var setToString = require_setToString();
|
|
2848
|
+
function baseRest(func, start) {
|
|
2849
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
2850
|
+
}
|
|
2851
|
+
module2.exports = baseRest;
|
|
2852
|
+
}
|
|
2853
|
+
});
|
|
2854
|
+
|
|
2855
|
+
// ../../node_modules/lodash/_isIterateeCall.js
|
|
2856
|
+
var require_isIterateeCall = __commonJS({
|
|
2857
|
+
"../../node_modules/lodash/_isIterateeCall.js"(exports, module2) {
|
|
2858
|
+
var eq = require_eq();
|
|
2859
|
+
var isArrayLike = require_isArrayLike();
|
|
2860
|
+
var isIndex = require_isIndex();
|
|
2861
|
+
var isObject = require_isObject();
|
|
2862
|
+
function isIterateeCall(value, index, object) {
|
|
2863
|
+
if (!isObject(object)) {
|
|
2864
|
+
return false;
|
|
2865
|
+
}
|
|
2866
|
+
var type = typeof index;
|
|
2867
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
2868
|
+
return eq(object[index], value);
|
|
2869
|
+
}
|
|
2870
|
+
return false;
|
|
2871
|
+
}
|
|
2872
|
+
module2.exports = isIterateeCall;
|
|
2873
|
+
}
|
|
2874
|
+
});
|
|
2875
|
+
|
|
2876
|
+
// ../../node_modules/lodash/_createAssigner.js
|
|
2877
|
+
var require_createAssigner = __commonJS({
|
|
2878
|
+
"../../node_modules/lodash/_createAssigner.js"(exports, module2) {
|
|
2879
|
+
var baseRest = require_baseRest();
|
|
2880
|
+
var isIterateeCall = require_isIterateeCall();
|
|
2881
|
+
function createAssigner(assigner) {
|
|
2882
|
+
return baseRest(function(object, sources) {
|
|
2883
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
2884
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
2885
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2886
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
2887
|
+
length = 1;
|
|
619
2888
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
try {
|
|
626
|
-
return localStorage;
|
|
627
|
-
} catch (e) {
|
|
2889
|
+
object = Object(object);
|
|
2890
|
+
while (++index < length) {
|
|
2891
|
+
var source = sources[index];
|
|
2892
|
+
if (source) {
|
|
2893
|
+
assigner(object, source, index, customizer);
|
|
628
2894
|
}
|
|
629
|
-
}())
|
|
630
|
-
);
|
|
631
|
-
store2.local = store2;
|
|
632
|
-
store2._ = _;
|
|
633
|
-
store2.area("session", function() {
|
|
634
|
-
try {
|
|
635
|
-
return sessionStorage;
|
|
636
|
-
} catch (e) {
|
|
637
|
-
}
|
|
638
|
-
}());
|
|
639
|
-
store2.area("page", _.storage("page"));
|
|
640
|
-
if (typeof define === "function" && define.amd !== void 0) {
|
|
641
|
-
define("store2", [], function() {
|
|
642
|
-
return store2;
|
|
643
|
-
});
|
|
644
|
-
} else if (typeof module2 !== "undefined" && module2.exports) {
|
|
645
|
-
module2.exports = store2;
|
|
646
|
-
} else {
|
|
647
|
-
if (window.store) {
|
|
648
|
-
_.conflict = window.store;
|
|
649
2895
|
}
|
|
650
|
-
|
|
651
|
-
}
|
|
652
|
-
}
|
|
2896
|
+
return object;
|
|
2897
|
+
});
|
|
2898
|
+
}
|
|
2899
|
+
module2.exports = createAssigner;
|
|
653
2900
|
}
|
|
654
2901
|
});
|
|
655
2902
|
|
|
656
|
-
// ../../node_modules
|
|
657
|
-
var
|
|
658
|
-
"../../node_modules
|
|
659
|
-
|
|
660
|
-
var
|
|
661
|
-
var
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
for (var name in all)
|
|
666
|
-
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
667
|
-
};
|
|
668
|
-
var __copyProps2 = (to, from, except, desc) => {
|
|
669
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
670
|
-
for (let key of __getOwnPropNames2(from))
|
|
671
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
672
|
-
return to;
|
|
673
|
-
};
|
|
674
|
-
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
675
|
-
var src_exports2 = {};
|
|
676
|
-
__export2(src_exports2, { Addon_TypesEnum: () => Addon_TypesEnum2 });
|
|
677
|
-
module2.exports = __toCommonJS2(src_exports2);
|
|
678
|
-
var Addon_TypesEnum2 = ((Addon_TypesEnum22) => (Addon_TypesEnum22.TAB = "tab", Addon_TypesEnum22.PANEL = "panel", Addon_TypesEnum22.TOOL = "tool", Addon_TypesEnum22.TOOLEXTRA = "toolextra", Addon_TypesEnum22.PREVIEW = "preview", Addon_TypesEnum22.experimental_PAGE = "page", Addon_TypesEnum22.experimental_SIDEBAR_BOTTOM = "sidebar-bottom", Addon_TypesEnum22.experimental_SIDEBAR_TOP = "sidebar-top", Addon_TypesEnum22))(Addon_TypesEnum2 || {});
|
|
2903
|
+
// ../../node_modules/lodash/mergeWith.js
|
|
2904
|
+
var require_mergeWith = __commonJS({
|
|
2905
|
+
"../../node_modules/lodash/mergeWith.js"(exports, module2) {
|
|
2906
|
+
var baseMerge = require_baseMerge();
|
|
2907
|
+
var createAssigner = require_createAssigner();
|
|
2908
|
+
var mergeWith2 = createAssigner(function(object, source, srcIndex, customizer) {
|
|
2909
|
+
baseMerge(object, source, srcIndex, customizer);
|
|
2910
|
+
});
|
|
2911
|
+
module2.exports = mergeWith2;
|
|
679
2912
|
}
|
|
680
2913
|
});
|
|
681
2914
|
|
|
@@ -699,6 +2932,9 @@ __export(src_exports, {
|
|
|
699
2932
|
StoryNode: () => StoryNode,
|
|
700
2933
|
Tree: () => Tree,
|
|
701
2934
|
isExpandType: () => isExpandType,
|
|
2935
|
+
transformStoryIndexToStoriesHash: () => transformStoryIndexToStoriesHash,
|
|
2936
|
+
transformStoryIndexV2toV3: () => transformStoryIndexV2toV3,
|
|
2937
|
+
transformStoryIndexV3toV4: () => transformStoryIndexV3toV4,
|
|
702
2938
|
useCombination: () => useCombination,
|
|
703
2939
|
useLayout: () => useLayout
|
|
704
2940
|
});
|
|
@@ -823,7 +3059,6 @@ var LeafNode = import_react_native_theming2.styled.TouchableOpacity(
|
|
|
823
3059
|
paddingTop: 5,
|
|
824
3060
|
paddingBottom: 4,
|
|
825
3061
|
backgroundColor: selected ? theme.color.secondary : void 0,
|
|
826
|
-
// flex: 1,
|
|
827
3062
|
// not sure 👇
|
|
828
3063
|
width: "100%",
|
|
829
3064
|
borderRadius: 4,
|
|
@@ -896,7 +3131,6 @@ var StoryNode = import_react.default.memo(function StoryNode2({
|
|
|
896
3131
|
});
|
|
897
3132
|
|
|
898
3133
|
// src/Tree.tsx
|
|
899
|
-
var import_manager_api2 = require("@storybook/manager-api");
|
|
900
3134
|
var import_react_native_theming5 = require("@storybook/react-native-theming");
|
|
901
3135
|
var import_react6 = __toESM(require("react"));
|
|
902
3136
|
|
|
@@ -906,7 +3140,6 @@ var import_react2 = require("react");
|
|
|
906
3140
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
907
3141
|
var Button = (0, import_react2.forwardRef)(
|
|
908
3142
|
({
|
|
909
|
-
// asChild = false,
|
|
910
3143
|
Icon,
|
|
911
3144
|
animation = "none",
|
|
912
3145
|
size = "small",
|
|
@@ -957,17 +3190,9 @@ var Button = (0, import_react2.forwardRef)(
|
|
|
957
3190
|
}
|
|
958
3191
|
);
|
|
959
3192
|
Button.displayName = "Button";
|
|
960
|
-
var StyledButton = import_react_native_theming3.styled.TouchableOpacity(({
|
|
961
|
-
theme,
|
|
962
|
-
variant,
|
|
963
|
-
size,
|
|
964
|
-
disabled,
|
|
965
|
-
active,
|
|
966
|
-
/* animating, animation, */
|
|
967
|
-
padding
|
|
968
|
-
}) => ({
|
|
3193
|
+
var StyledButton = import_react_native_theming3.styled.TouchableOpacity(({ theme, variant, size, disabled, active, padding }) => ({
|
|
969
3194
|
border: 0,
|
|
970
|
-
cursor: disabled ?
|
|
3195
|
+
// cursor: disabled ? 'not-allowed' : 'pointer',
|
|
971
3196
|
display: "flex",
|
|
972
3197
|
flexDirection: "row",
|
|
973
3198
|
gap: 6,
|
|
@@ -988,11 +3213,9 @@ var StyledButton = import_react_native_theming3.styled.TouchableOpacity(({
|
|
|
988
3213
|
paddingVertical: 0,
|
|
989
3214
|
height: size === "small" ? 28 : 32,
|
|
990
3215
|
position: "relative",
|
|
991
|
-
// textDecoration: 'none',
|
|
992
3216
|
transitionProperty: "background, box-shadow",
|
|
993
3217
|
transitionDuration: "150ms",
|
|
994
3218
|
transitionTimingFunction: "ease-out",
|
|
995
|
-
// verticalAlign: 'top',
|
|
996
3219
|
whiteSpace: "nowrap",
|
|
997
3220
|
userSelect: "none",
|
|
998
3221
|
opacity: disabled ? 0.5 : 1,
|
|
@@ -1010,34 +3233,6 @@ var StyledButton = import_react_native_theming3.styled.TouchableOpacity(({
|
|
|
1010
3233
|
borderRadius: theme.input.borderRadius,
|
|
1011
3234
|
// Making sure that the button never shrinks below its minimum size
|
|
1012
3235
|
flexShrink: 0
|
|
1013
|
-
// '&:hover': {
|
|
1014
|
-
// color: variant === 'ghost' ? theme.color.secondary : null,
|
|
1015
|
-
// background: (() => {
|
|
1016
|
-
// let bgColor = theme.color.secondary;
|
|
1017
|
-
// if (variant === 'solid') bgColor = theme.color.secondary;
|
|
1018
|
-
// if (variant === 'outline') bgColor = theme.button.background;
|
|
1019
|
-
// if (variant === 'ghost') return transparentize(0.86, theme.color.secondary);
|
|
1020
|
-
// return theme.base === 'light' ? darken(0.02, bgColor) : lighten(0.03, bgColor);
|
|
1021
|
-
// })(),
|
|
1022
|
-
// },
|
|
1023
|
-
// '&:active': {
|
|
1024
|
-
// color: variant === 'ghost' ? theme.color.secondary : null,
|
|
1025
|
-
// background: (() => {
|
|
1026
|
-
// let bgColor = theme.color.secondary;
|
|
1027
|
-
// if (variant === 'solid') bgColor = theme.color.secondary;
|
|
1028
|
-
// if (variant === 'outline') bgColor = theme.button.background;
|
|
1029
|
-
// if (variant === 'ghost') return theme.background.hoverable;
|
|
1030
|
-
// return theme.base === 'light' ? darken(0.02, bgColor) : lighten(0.03, bgColor);
|
|
1031
|
-
// })(),
|
|
1032
|
-
// },
|
|
1033
|
-
// '&:focus': {
|
|
1034
|
-
// boxShadow: `${rgba(theme.color.secondary, 1)} 0 0 0 1px inset`,
|
|
1035
|
-
// outline: 'none',
|
|
1036
|
-
// },
|
|
1037
|
-
// '> svg': {
|
|
1038
|
-
// animation:
|
|
1039
|
-
// animating && animation !== 'none' ? `${theme.animation[animation]} 1000ms ease-out` : '',
|
|
1040
|
-
// },
|
|
1041
3236
|
}));
|
|
1042
3237
|
var ButtonText = import_react_native_theming3.styled.Text(({ theme, variant, active }) => ({
|
|
1043
3238
|
color: (() => {
|
|
@@ -1054,7 +3249,6 @@ var ButtonText = import_react_native_theming3.styled.Text(({ theme, variant, act
|
|
|
1054
3249
|
flexDirection: "row",
|
|
1055
3250
|
gap: 6,
|
|
1056
3251
|
textAlign: "center",
|
|
1057
|
-
// lineHeight: theme.typography.size.s1,
|
|
1058
3252
|
fontSize: theme.typography.size.s1,
|
|
1059
3253
|
fontWeight: theme.typography.weight.bold
|
|
1060
3254
|
}));
|
|
@@ -1096,8 +3290,6 @@ var IconButton = (0, import_react3.forwardRef)(
|
|
|
1096
3290
|
IconButton.displayName = "IconButton";
|
|
1097
3291
|
|
|
1098
3292
|
// src/useExpanded.ts
|
|
1099
|
-
var import_manager_api = require("@storybook/manager-api");
|
|
1100
|
-
var import_core_events = require("@storybook/core-events");
|
|
1101
3293
|
var import_react4 = require("react");
|
|
1102
3294
|
|
|
1103
3295
|
// src/util/tree.ts
|
|
@@ -1163,10 +3355,7 @@ var isStoryHoistable = (storyName, componentName) => removeNoiseFromName(storyNa
|
|
|
1163
3355
|
|
|
1164
3356
|
// src/useExpanded.ts
|
|
1165
3357
|
var initializeExpanded = ({
|
|
1166
|
-
// refId,
|
|
1167
|
-
// data,
|
|
1168
3358
|
initialExpanded,
|
|
1169
|
-
// highlightedRef,
|
|
1170
3359
|
rootIds
|
|
1171
3360
|
}) => {
|
|
1172
3361
|
const highlightedAncestors = [];
|
|
@@ -1175,30 +3364,16 @@ var initializeExpanded = ({
|
|
|
1175
3364
|
{}
|
|
1176
3365
|
);
|
|
1177
3366
|
};
|
|
1178
|
-
var noop = () => {
|
|
1179
|
-
};
|
|
1180
3367
|
var useExpanded = ({
|
|
1181
|
-
// containerRef,
|
|
1182
|
-
// isBrowsing,
|
|
1183
3368
|
refId,
|
|
1184
3369
|
data,
|
|
1185
3370
|
initialExpanded,
|
|
1186
3371
|
rootIds,
|
|
1187
|
-
// highlightedRef,
|
|
1188
|
-
// setHighlightedItemId,
|
|
1189
|
-
// onSelectStoryId,
|
|
1190
3372
|
selectedStoryId
|
|
1191
3373
|
}) => {
|
|
1192
|
-
const api = (0, import_manager_api.useStorybookApi)();
|
|
1193
3374
|
const [expanded, setExpanded] = (0, import_react4.useReducer)(
|
|
1194
3375
|
(state, { ids, value }) => ids.reduce((acc, id) => Object.assign(acc, { [id]: value }), { ...state }),
|
|
1195
|
-
{
|
|
1196
|
-
refId,
|
|
1197
|
-
data,
|
|
1198
|
-
/* highlightedRef */
|
|
1199
|
-
rootIds,
|
|
1200
|
-
initialExpanded
|
|
1201
|
-
},
|
|
3376
|
+
{ refId, data, rootIds, initialExpanded },
|
|
1202
3377
|
initializeExpanded
|
|
1203
3378
|
);
|
|
1204
3379
|
const updateExpanded = (0, import_react4.useCallback)(({ ids, value }) => {
|
|
@@ -1207,23 +3382,6 @@ var useExpanded = ({
|
|
|
1207
3382
|
(0, import_react4.useEffect)(() => {
|
|
1208
3383
|
setExpanded({ ids: getAncestorIds(data, selectedStoryId), value: true });
|
|
1209
3384
|
}, [data, selectedStoryId]);
|
|
1210
|
-
const collapseAll = (0, import_react4.useCallback)(() => {
|
|
1211
|
-
const ids = Object.keys(data).filter((id) => !rootIds.includes(id));
|
|
1212
|
-
setExpanded({ ids, value: false });
|
|
1213
|
-
}, [data, rootIds]);
|
|
1214
|
-
const expandAll = (0, import_react4.useCallback)(() => {
|
|
1215
|
-
setExpanded({ ids: Object.keys(data), value: true });
|
|
1216
|
-
}, [data]);
|
|
1217
|
-
(0, import_react4.useEffect)(() => {
|
|
1218
|
-
if (!api)
|
|
1219
|
-
return noop;
|
|
1220
|
-
api.on(import_core_events.STORIES_COLLAPSE_ALL, collapseAll);
|
|
1221
|
-
api.on(import_core_events.STORIES_EXPAND_ALL, expandAll);
|
|
1222
|
-
return () => {
|
|
1223
|
-
api.off(import_core_events.STORIES_COLLAPSE_ALL, collapseAll);
|
|
1224
|
-
api.off(import_core_events.STORIES_EXPAND_ALL, expandAll);
|
|
1225
|
-
};
|
|
1226
|
-
}, [api, collapseAll, expandAll]);
|
|
1227
3385
|
return [expanded, updateExpanded];
|
|
1228
3386
|
};
|
|
1229
3387
|
|
|
@@ -1375,7 +3533,6 @@ var useLayout = () => (0, import_react5.useContext)(LayoutContext);
|
|
|
1375
3533
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1376
3534
|
var Node = import_react6.default.memo(function Node2({
|
|
1377
3535
|
item,
|
|
1378
|
-
// status,
|
|
1379
3536
|
refId,
|
|
1380
3537
|
isOrphan,
|
|
1381
3538
|
isDisplayed,
|
|
@@ -1385,8 +3542,7 @@ var Node = import_react6.default.memo(function Node2({
|
|
|
1385
3542
|
setFullyExpanded,
|
|
1386
3543
|
isExpanded,
|
|
1387
3544
|
setExpanded,
|
|
1388
|
-
onSelectStoryId
|
|
1389
|
-
api: _1
|
|
3545
|
+
onSelectStoryId
|
|
1390
3546
|
}) {
|
|
1391
3547
|
const { isDesktop, isMobile, closeMobileMenu } = useLayout();
|
|
1392
3548
|
if (!isDisplayed) {
|
|
@@ -1412,43 +3568,36 @@ var Node = import_react6.default.memo(function Node2({
|
|
|
1412
3568
|
) });
|
|
1413
3569
|
}
|
|
1414
3570
|
if (item.type === "root") {
|
|
1415
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
{
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
children: isFullyExpanded ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CollapseAllIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ExpandAllIcon, {})
|
|
1446
|
-
}
|
|
1447
|
-
)
|
|
1448
|
-
]
|
|
1449
|
-
},
|
|
1450
|
-
id
|
|
1451
|
-
);
|
|
3571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(RootNode, { id, children: [
|
|
3572
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3573
|
+
CollapseButton,
|
|
3574
|
+
{
|
|
3575
|
+
"data-action": "collapse-root",
|
|
3576
|
+
onPress: (event) => {
|
|
3577
|
+
event.preventDefault();
|
|
3578
|
+
setExpanded({ ids: [item.id], value: !isExpanded });
|
|
3579
|
+
},
|
|
3580
|
+
"aria-expanded": isExpanded,
|
|
3581
|
+
children: [
|
|
3582
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CollapseIcon, { isExpanded }),
|
|
3583
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_native2.Text, { children: item.renderLabel?.(item, {}) || item.name })
|
|
3584
|
+
]
|
|
3585
|
+
}
|
|
3586
|
+
),
|
|
3587
|
+
isExpanded && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3588
|
+
IconButton,
|
|
3589
|
+
{
|
|
3590
|
+
"aria-label": isFullyExpanded ? "Expand" : "Collapse",
|
|
3591
|
+
"data-action": "expand-all",
|
|
3592
|
+
"data-expanded": isFullyExpanded,
|
|
3593
|
+
onPress: (event) => {
|
|
3594
|
+
event.preventDefault();
|
|
3595
|
+
setFullyExpanded();
|
|
3596
|
+
},
|
|
3597
|
+
children: isFullyExpanded ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(CollapseAllIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ExpandAllIcon, {})
|
|
3598
|
+
}
|
|
3599
|
+
)
|
|
3600
|
+
] }, id);
|
|
1452
3601
|
}
|
|
1453
3602
|
if (item.type === "component" || item.type === "group") {
|
|
1454
3603
|
const BranchNode2 = item.type === "component" ? ComponentNode : GroupNode;
|
|
@@ -1502,7 +3651,6 @@ var RootNodeText = import_react_native_theming5.styled.Text(({ theme }) => ({
|
|
|
1502
3651
|
color: theme.textMutedColor,
|
|
1503
3652
|
lineHeight: 16,
|
|
1504
3653
|
letterSpacing: 2.5,
|
|
1505
|
-
// letterSpacing: '0.16em',
|
|
1506
3654
|
textTransform: "uppercase"
|
|
1507
3655
|
}));
|
|
1508
3656
|
var CollapseButton = import_react_native_theming5.styled.TouchableOpacity(({}) => ({
|
|
@@ -1511,24 +3659,13 @@ var CollapseButton = import_react_native_theming5.styled.TouchableOpacity(({}) =
|
|
|
1511
3659
|
paddingVertical: 0,
|
|
1512
3660
|
paddingHorizontal: 8,
|
|
1513
3661
|
borderRadius: 4,
|
|
1514
|
-
// transition: 'color 150ms, box-shadow 150ms',
|
|
1515
3662
|
gap: 6,
|
|
1516
3663
|
alignItems: "center",
|
|
1517
3664
|
cursor: "pointer",
|
|
1518
3665
|
height: 28
|
|
1519
3666
|
}));
|
|
1520
|
-
var Tree = import_react6.default.memo(function Tree2({
|
|
1521
|
-
// isBrowsing,
|
|
1522
|
-
isMain,
|
|
1523
|
-
refId,
|
|
1524
|
-
data,
|
|
1525
|
-
status,
|
|
1526
|
-
docsMode,
|
|
1527
|
-
selectedStoryId,
|
|
1528
|
-
onSelectStoryId
|
|
1529
|
-
}) {
|
|
3667
|
+
var Tree = import_react6.default.memo(function Tree2({ isMain, refId, data, status, docsMode, selectedStoryId, onSelectStoryId }) {
|
|
1530
3668
|
const containerRef = (0, import_react6.useRef)(null);
|
|
1531
|
-
const api = (0, import_manager_api2.useStorybookApi)();
|
|
1532
3669
|
const [rootIds, orphanIds, initialExpanded] = (0, import_react6.useMemo)(
|
|
1533
3670
|
() => Object.keys(data).reduce(
|
|
1534
3671
|
(acc, id) => {
|
|
@@ -1605,14 +3742,10 @@ var Tree = import_react6.default.memo(function Tree2({
|
|
|
1605
3742
|
);
|
|
1606
3743
|
}, [collapsedItems, collapsedData]);
|
|
1607
3744
|
const [expanded, setExpanded] = useExpanded({
|
|
1608
|
-
// containerRef,
|
|
1609
|
-
// isBrowsing,
|
|
1610
3745
|
refId,
|
|
1611
3746
|
data: collapsedData,
|
|
1612
3747
|
initialExpanded,
|
|
1613
3748
|
rootIds,
|
|
1614
|
-
// highlightedRef,
|
|
1615
|
-
// setHighlightedItemId,
|
|
1616
3749
|
selectedStoryId,
|
|
1617
3750
|
onSelectStoryId
|
|
1618
3751
|
});
|
|
@@ -1624,24 +3757,24 @@ var Tree = import_react6.default.memo(function Tree2({
|
|
|
1624
3757
|
if (item.type === "root") {
|
|
1625
3758
|
const descendants = expandableDescendants[item.id];
|
|
1626
3759
|
const isFullyExpanded = descendants.every((d) => expanded[d]);
|
|
1627
|
-
return (
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
|
|
3760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3761
|
+
Root,
|
|
3762
|
+
{
|
|
3763
|
+
item,
|
|
3764
|
+
refId,
|
|
3765
|
+
isOrphan: false,
|
|
3766
|
+
isDisplayed: true,
|
|
3767
|
+
isSelected: selectedStoryId === itemId,
|
|
3768
|
+
isExpanded: !!expanded[itemId],
|
|
3769
|
+
setExpanded,
|
|
3770
|
+
isFullyExpanded,
|
|
3771
|
+
expandableDescendants: descendants,
|
|
3772
|
+
onSelectStoryId,
|
|
3773
|
+
docsMode: false,
|
|
3774
|
+
color: "",
|
|
3775
|
+
status: {}
|
|
3776
|
+
},
|
|
3777
|
+
id
|
|
1645
3778
|
);
|
|
1646
3779
|
}
|
|
1647
3780
|
const isDisplayed = !item.parent || ancestry[itemId].every((a) => expanded[a]);
|
|
@@ -1649,7 +3782,6 @@ var Tree = import_react6.default.memo(function Tree2({
|
|
|
1649
3782
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1650
3783
|
Node,
|
|
1651
3784
|
{
|
|
1652
|
-
api,
|
|
1653
3785
|
item,
|
|
1654
3786
|
status: status?.[itemId],
|
|
1655
3787
|
refId,
|
|
@@ -1667,7 +3799,6 @@ var Tree = import_react6.default.memo(function Tree2({
|
|
|
1667
3799
|
});
|
|
1668
3800
|
}, [
|
|
1669
3801
|
ancestry,
|
|
1670
|
-
api,
|
|
1671
3802
|
collapsedData,
|
|
1672
3803
|
collapsedItems,
|
|
1673
3804
|
docsMode,
|
|
@@ -1713,15 +3844,12 @@ var import_react8 = __toESM(require("react"));
|
|
|
1713
3844
|
|
|
1714
3845
|
// src/Refs.tsx
|
|
1715
3846
|
var import_react7 = __toESM(require("react"));
|
|
1716
|
-
var import_manager_api3 = require("@storybook/manager-api");
|
|
1717
3847
|
var import_react_native_theming6 = require("@storybook/react-native-theming");
|
|
1718
3848
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1719
3849
|
var Wrapper2 = import_react_native_theming6.styled.View(({}) => ({
|
|
1720
3850
|
position: "relative"
|
|
1721
3851
|
}));
|
|
1722
3852
|
var Ref = import_react7.default.memo(function Ref2(props) {
|
|
1723
|
-
const { docsOptions } = (0, import_manager_api3.useStorybookState)();
|
|
1724
|
-
const api = (0, import_manager_api3.useStorybookApi)();
|
|
1725
3853
|
const {
|
|
1726
3854
|
index,
|
|
1727
3855
|
id: refId,
|
|
@@ -1729,8 +3857,6 @@ var Ref = import_react7.default.memo(function Ref2(props) {
|
|
|
1729
3857
|
isLoading: isLoadingMain,
|
|
1730
3858
|
isBrowsing,
|
|
1731
3859
|
selectedStoryId,
|
|
1732
|
-
// highlightedRef,
|
|
1733
|
-
// setHighlighted,
|
|
1734
3860
|
loginUrl,
|
|
1735
3861
|
type,
|
|
1736
3862
|
expanded = true,
|
|
@@ -1754,9 +3880,8 @@ var Ref = import_react7.default.memo(function Ref2(props) {
|
|
|
1754
3880
|
const onSelectStoryId = (0, import_react7.useCallback)(
|
|
1755
3881
|
(storyId) => {
|
|
1756
3882
|
setSelection({ refId, storyId });
|
|
1757
|
-
return api && api.selectStory(storyId, DEFAULT_REF_ID);
|
|
1758
3883
|
},
|
|
1759
|
-
[
|
|
3884
|
+
[refId, setSelection]
|
|
1760
3885
|
);
|
|
1761
3886
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_jsx_runtime13.Fragment, { children: isExpanded && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Wrapper2, { "data-title": title, isMain: true, children: state === "ready" && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1762
3887
|
Tree,
|
|
@@ -1766,7 +3891,7 @@ var Ref = import_react7.default.memo(function Ref2(props) {
|
|
|
1766
3891
|
isMain: true,
|
|
1767
3892
|
refId,
|
|
1768
3893
|
data: index,
|
|
1769
|
-
docsMode:
|
|
3894
|
+
docsMode: false,
|
|
1770
3895
|
selectedStoryId,
|
|
1771
3896
|
onSelectStoryId
|
|
1772
3897
|
}
|
|
@@ -1803,20 +3928,24 @@ var import_react14 = __toESM(require("react"));
|
|
|
1803
3928
|
var import_react_native_theming9 = require("@storybook/react-native-theming");
|
|
1804
3929
|
|
|
1805
3930
|
// src/Search.tsx
|
|
1806
|
-
var import_manager_api4 = require("@storybook/manager-api");
|
|
1807
3931
|
var import_react_native_theming7 = require("@storybook/react-native-theming");
|
|
1808
3932
|
var import_fuse = __toESM(require("fuse.js"));
|
|
1809
3933
|
var import_react10 = __toESM(require("react"));
|
|
1810
3934
|
|
|
1811
3935
|
// src/types.ts
|
|
1812
|
-
function isExpandType(
|
|
1813
|
-
return !!(
|
|
3936
|
+
function isExpandType(x2) {
|
|
3937
|
+
return !!(x2 && x2.showAll);
|
|
1814
3938
|
}
|
|
1815
3939
|
|
|
1816
3940
|
// src/icon/SearchIcon.tsx
|
|
1817
3941
|
var import_react_native_svg8 = require("react-native-svg");
|
|
1818
3942
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1819
|
-
var SearchIcon = ({
|
|
3943
|
+
var SearchIcon = ({
|
|
3944
|
+
color = "currentColor",
|
|
3945
|
+
width = 14,
|
|
3946
|
+
height = 14,
|
|
3947
|
+
...props
|
|
3948
|
+
}) => {
|
|
1820
3949
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_native_svg8.Svg, { width, height, viewBox: "0 0 14 14", fill: "none", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1821
3950
|
import_react_native_svg8.Path,
|
|
1822
3951
|
{
|
|
@@ -1831,7 +3960,12 @@ var SearchIcon = ({ color = "currentColor", width = 14, height = 14, ...props })
|
|
|
1831
3960
|
// src/icon/CloseIcon.tsx
|
|
1832
3961
|
var import_react_native_svg9 = require("react-native-svg");
|
|
1833
3962
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1834
|
-
var CloseIcon = ({
|
|
3963
|
+
var CloseIcon = ({
|
|
3964
|
+
color = "currentColor",
|
|
3965
|
+
width = 14,
|
|
3966
|
+
height = 14,
|
|
3967
|
+
...props
|
|
3968
|
+
}) => {
|
|
1835
3969
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react_native_svg9.Svg, { width, height, viewBox: "0 0 14 14", fill: "none", ...props, children: [
|
|
1836
3970
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1837
3971
|
import_react_native_svg9.Path,
|
|
@@ -1889,10 +4023,8 @@ var SearchField = import_react_native_theming7.styled.View({
|
|
|
1889
4023
|
display: "flex",
|
|
1890
4024
|
flexDirection: "column",
|
|
1891
4025
|
position: "relative"
|
|
1892
|
-
// marginBottom: 16,
|
|
1893
4026
|
});
|
|
1894
4027
|
var Input = (0, import_react_native_theming7.styled)(import_bottom_sheet.BottomSheetTextInput)(({ theme }) => ({
|
|
1895
|
-
// appearance: 'none',
|
|
1896
4028
|
height: 32,
|
|
1897
4029
|
paddingLeft: 28,
|
|
1898
4030
|
paddingRight: 28,
|
|
@@ -1901,34 +4033,8 @@ var Input = (0, import_react_native_theming7.styled)(import_bottom_sheet.BottomS
|
|
|
1901
4033
|
backgroundColor: "transparent",
|
|
1902
4034
|
borderRadius: 4,
|
|
1903
4035
|
fontSize: theme.typography.size.s1 + 1,
|
|
1904
|
-
// transition: 'all 150ms',
|
|
1905
4036
|
color: theme.color.defaultText,
|
|
1906
4037
|
width: "100%"
|
|
1907
|
-
// '&:focus, &:active': {
|
|
1908
|
-
// outline: 0,
|
|
1909
|
-
// borderColor: theme.color.secondary,
|
|
1910
|
-
// background: theme.background.app,
|
|
1911
|
-
// },
|
|
1912
|
-
// '&::placeholder': {
|
|
1913
|
-
// color: theme.textMutedColor,
|
|
1914
|
-
// opacity: 1,
|
|
1915
|
-
// },
|
|
1916
|
-
// '&:valid ~ code, &:focus ~ code': {
|
|
1917
|
-
// display: 'none',
|
|
1918
|
-
// },
|
|
1919
|
-
// '&:invalid ~ svg': {
|
|
1920
|
-
// display: 'none',
|
|
1921
|
-
// },
|
|
1922
|
-
// '&:valid ~ svg': {
|
|
1923
|
-
// display: 'block',
|
|
1924
|
-
// },
|
|
1925
|
-
// '&::-ms-clear': {
|
|
1926
|
-
// display: 'none',
|
|
1927
|
-
// },
|
|
1928
|
-
// '&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration':
|
|
1929
|
-
// {
|
|
1930
|
-
// display: 'none',
|
|
1931
|
-
// },
|
|
1932
4038
|
}));
|
|
1933
4039
|
var ClearIcon = import_react_native_theming7.styled.TouchableOpacity(({ theme }) => ({
|
|
1934
4040
|
position: "absolute",
|
|
@@ -1943,35 +4049,23 @@ var ClearIcon = import_react_native_theming7.styled.TouchableOpacity(({ theme })
|
|
|
1943
4049
|
justifyContent: "center",
|
|
1944
4050
|
height: "100%"
|
|
1945
4051
|
}));
|
|
1946
|
-
var Search = import_react10.default.memo(function Search2({
|
|
1947
|
-
children,
|
|
1948
|
-
dataset,
|
|
1949
|
-
setSelection,
|
|
1950
|
-
// enableShortcuts = true,
|
|
1951
|
-
getLastViewed,
|
|
1952
|
-
initialQuery = ""
|
|
1953
|
-
}) {
|
|
1954
|
-
const api = (0, import_manager_api4.useStorybookApi)();
|
|
4052
|
+
var Search = import_react10.default.memo(function Search2({ children, dataset, setSelection, getLastViewed, initialQuery = "" }) {
|
|
1955
4053
|
const inputRef = (0, import_react10.useRef)(null);
|
|
1956
4054
|
const [inputValue, setInputValue] = (0, import_react10.useState)(initialQuery);
|
|
1957
4055
|
const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
|
|
1958
4056
|
const [allComponents, showAllComponents] = (0, import_react10.useState)(false);
|
|
1959
4057
|
const selectStory = (0, import_react10.useCallback)(
|
|
1960
4058
|
(id, refId) => {
|
|
1961
|
-
if (api) {
|
|
1962
|
-
api.selectStory(id, void 0, { ref: refId !== DEFAULT_REF_ID && refId });
|
|
1963
|
-
}
|
|
1964
4059
|
setSelection({ storyId: id, refId });
|
|
1965
4060
|
inputRef.current?.blur();
|
|
1966
4061
|
showAllComponents(false);
|
|
1967
4062
|
},
|
|
1968
|
-
[
|
|
4063
|
+
[setSelection]
|
|
1969
4064
|
);
|
|
1970
4065
|
const getItemProps = (0, import_react10.useCallback)(
|
|
1971
4066
|
({ item: result }) => {
|
|
1972
4067
|
return {
|
|
1973
4068
|
icon: result?.item?.type === "component" ? "component" : "story",
|
|
1974
|
-
// isHighlighted:
|
|
1975
4069
|
result,
|
|
1976
4070
|
onPress: () => {
|
|
1977
4071
|
if (result?.item?.type === "story") {
|
|
@@ -1987,8 +4081,6 @@ var Search = import_react10.default.memo(function Search2({
|
|
|
1987
4081
|
item: result.item,
|
|
1988
4082
|
matches: result.matches,
|
|
1989
4083
|
isHighlighted: false
|
|
1990
|
-
// isHighlighted: searchItem.
|
|
1991
|
-
// isHighlighted: searchItem.item.
|
|
1992
4084
|
};
|
|
1993
4085
|
},
|
|
1994
4086
|
[selectStory]
|
|
@@ -2056,40 +4148,34 @@ var Search = import_react10.default.memo(function Search2({
|
|
|
2056
4148
|
const input = inputValue ? inputValue.trim() : "";
|
|
2057
4149
|
const results = input ? getResults(input) : [];
|
|
2058
4150
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_react_native4.View, { style: { flex: 1 }, children: [
|
|
2059
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
}
|
|
2082
|
-
)
|
|
2083
|
-
]
|
|
2084
|
-
}
|
|
2085
|
-
),
|
|
4151
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(SearchField, { children: [
|
|
4152
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SearchIconWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SearchIcon, {}) }),
|
|
4153
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
4154
|
+
Input,
|
|
4155
|
+
{
|
|
4156
|
+
ref: inputRef,
|
|
4157
|
+
onChangeText: setInputValue,
|
|
4158
|
+
onFocus: () => setIsOpen(true),
|
|
4159
|
+
onBlur: () => setIsOpen(false)
|
|
4160
|
+
}
|
|
4161
|
+
),
|
|
4162
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
4163
|
+
ClearIcon,
|
|
4164
|
+
{
|
|
4165
|
+
onPress: () => {
|
|
4166
|
+
setInputValue("");
|
|
4167
|
+
inputRef.current.clear();
|
|
4168
|
+
},
|
|
4169
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CloseIcon, {})
|
|
4170
|
+
}
|
|
4171
|
+
)
|
|
4172
|
+
] }),
|
|
2086
4173
|
children({
|
|
2087
4174
|
query: input,
|
|
2088
4175
|
results,
|
|
2089
4176
|
isBrowsing: !isOpen || !inputValue.length,
|
|
2090
4177
|
closeMenu: () => {
|
|
2091
4178
|
},
|
|
2092
|
-
// getMenuProps,
|
|
2093
4179
|
getItemProps,
|
|
2094
4180
|
highlightedIndex: null
|
|
2095
4181
|
})
|
|
@@ -2146,14 +4232,9 @@ var NoResults = import_react_native_theming8.styled.View(({ theme }) => ({
|
|
|
2146
4232
|
fontSize: theme.typography.size.s2,
|
|
2147
4233
|
lineHeight: 18,
|
|
2148
4234
|
color: theme.color.defaultText
|
|
2149
|
-
// small: {
|
|
2150
|
-
// color: theme.barTextColor,
|
|
2151
|
-
// fontSize: theme.typography.size.s1,
|
|
2152
|
-
// },
|
|
2153
4235
|
}));
|
|
2154
4236
|
var Mark = import_react_native_theming8.styled.Text(({ theme }) => ({
|
|
2155
4237
|
backgroundColor: "transparent",
|
|
2156
|
-
// fontSize: theme.typography.size.s1 - 1,
|
|
2157
4238
|
color: theme.color.secondary
|
|
2158
4239
|
}));
|
|
2159
4240
|
var MoreWrapper = import_react_native_theming8.styled.View({
|
|
@@ -2172,14 +4253,6 @@ var RecentlyOpenedTitle = import_react_native_theming8.styled.View(({ theme }) =
|
|
|
2172
4253
|
marginTop: 16,
|
|
2173
4254
|
marginBottom: 4,
|
|
2174
4255
|
alignItems: "center"
|
|
2175
|
-
// '.search-result-recentlyOpened-clear': {
|
|
2176
|
-
// visibility: 'hidden',
|
|
2177
|
-
// },
|
|
2178
|
-
// '&:hover': {
|
|
2179
|
-
// '.search-result-recentlyOpened-clear': {
|
|
2180
|
-
// visibility: 'visible',
|
|
2181
|
-
// },
|
|
2182
|
-
// },
|
|
2183
4256
|
}));
|
|
2184
4257
|
var Highlight = import_react11.default.memo(
|
|
2185
4258
|
function Highlight2({ children, match }) {
|
|
@@ -2201,39 +4274,16 @@ var Highlight = import_react11.default.memo(
|
|
|
2201
4274
|
}
|
|
2202
4275
|
);
|
|
2203
4276
|
var Title = import_react_native_theming8.styled.Text(({ theme }) => ({
|
|
2204
|
-
// display: 'grid',
|
|
2205
4277
|
justifyContent: "flex-start",
|
|
2206
|
-
// gridAutoColumns: 'auto',
|
|
2207
|
-
// gridAutoFlow: 'column',
|
|
2208
4278
|
color: theme.textMutedColor,
|
|
2209
4279
|
fontSize: theme.typography.size.s2
|
|
2210
|
-
// '& > span': {
|
|
2211
|
-
// display: 'block',
|
|
2212
|
-
// whiteSpace: 'nowrap',
|
|
2213
|
-
// overflow: 'hidden',
|
|
2214
|
-
// textOverflow: 'ellipsis',
|
|
2215
|
-
// },
|
|
2216
4280
|
}));
|
|
2217
4281
|
var Path10 = import_react_native_theming8.styled.View(({ theme }) => ({
|
|
2218
|
-
// display: 'grid',
|
|
2219
4282
|
justifyContent: "flex-start",
|
|
2220
4283
|
marginVertical: 2,
|
|
2221
|
-
// gridAutoColumns: 'auto',
|
|
2222
|
-
// gridAutoFlow: 'column',
|
|
2223
4284
|
color: theme.textMutedColor,
|
|
2224
4285
|
fontSize: theme.typography.size.s1 - 1,
|
|
2225
4286
|
flexDirection: "row"
|
|
2226
|
-
// '& > span': {
|
|
2227
|
-
// display: 'block',
|
|
2228
|
-
// whiteSpace: 'nowrap',
|
|
2229
|
-
// overflow: 'hidden',
|
|
2230
|
-
// textOverflow: 'ellipsis',
|
|
2231
|
-
// },
|
|
2232
|
-
// '& > span + span': {
|
|
2233
|
-
// '&:before': {
|
|
2234
|
-
// content: "' / '",
|
|
2235
|
-
// },
|
|
2236
|
-
// },
|
|
2237
4287
|
}));
|
|
2238
4288
|
var PathText = import_react_native_theming8.styled.Text(({ theme }) => ({
|
|
2239
4289
|
fontSize: theme.typography.size.s1 - 1,
|
|
@@ -2278,11 +4328,8 @@ var SearchResults = import_react11.default.memo(function SearchResults2({
|
|
|
2278
4328
|
query,
|
|
2279
4329
|
results,
|
|
2280
4330
|
closeMenu,
|
|
2281
|
-
// getMenuProps,
|
|
2282
4331
|
getItemProps,
|
|
2283
4332
|
highlightedIndex,
|
|
2284
|
-
// isLoading = false,
|
|
2285
|
-
// enableShortcuts = true,
|
|
2286
4333
|
clearLastViewed
|
|
2287
4334
|
}) {
|
|
2288
4335
|
const handleClearLastViewed = () => {
|
|
@@ -2292,12 +4339,7 @@ var SearchResults = import_react11.default.memo(function SearchResults2({
|
|
|
2292
4339
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(ResultsList, { children: [
|
|
2293
4340
|
results.length > 0 && !query && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(RecentlyOpenedTitle, { children: [
|
|
2294
4341
|
"Recently opened",
|
|
2295
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
2296
|
-
IconButton,
|
|
2297
|
-
{
|
|
2298
|
-
onPress: handleClearLastViewed
|
|
2299
|
-
}
|
|
2300
|
-
)
|
|
4342
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconButton, { onPress: handleClearLastViewed })
|
|
2301
4343
|
] }),
|
|
2302
4344
|
results.length === 0 && query && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_native5.View, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(NoResults, { children: [
|
|
2303
4345
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_native5.Text, { style: { marginBottom: 8 }, children: "No components found" }),
|
|
@@ -2333,7 +4375,7 @@ var SearchResults = import_react11.default.memo(function SearchResults2({
|
|
|
2333
4375
|
// src/useLastViewed.ts
|
|
2334
4376
|
var import_debounce = __toESM(require_debounce());
|
|
2335
4377
|
var import_react13 = require("react");
|
|
2336
|
-
var import_store2 = __toESM(
|
|
4378
|
+
var import_store2 = __toESM(require("store2"));
|
|
2337
4379
|
var save = (0, import_debounce.default)((value) => import_store2.default.set("lastViewedStoryIds", value), 1e3);
|
|
2338
4380
|
var useLastViewed = (selection) => {
|
|
2339
4381
|
const initialLastViewedStoryIds = (0, import_react13.useMemo)(() => {
|
|
@@ -2379,25 +4421,15 @@ var useLastViewed = (selection) => {
|
|
|
2379
4421
|
var import_react_native6 = require("react-native");
|
|
2380
4422
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
2381
4423
|
var Container2 = import_react_native_theming9.styled.View(({ theme }) => ({
|
|
2382
|
-
// position: 'absolute',
|
|
2383
|
-
// zIndex: 1,
|
|
2384
|
-
// left: 0,
|
|
2385
|
-
// top: 0,
|
|
2386
|
-
// bottom: 0,
|
|
2387
|
-
// right: 0,
|
|
2388
4424
|
width: "100%",
|
|
2389
4425
|
height: "100%",
|
|
2390
4426
|
display: "flex",
|
|
2391
4427
|
flexDirection: "column",
|
|
2392
4428
|
background: theme.background.content
|
|
2393
|
-
// [MEDIA_DESKTOP_BREAKPOINT]: {
|
|
2394
|
-
// background: theme.background.app,
|
|
2395
|
-
// },
|
|
2396
4429
|
}));
|
|
2397
4430
|
var Top = import_react_native_theming9.styled.View({
|
|
2398
4431
|
paddingLeft: 4,
|
|
2399
4432
|
paddingRight: 4,
|
|
2400
|
-
// paddingBottom: 20,
|
|
2401
4433
|
paddingTop: 16,
|
|
2402
4434
|
flex: 1,
|
|
2403
4435
|
flexDirection: "row"
|
|
@@ -2437,66 +4469,45 @@ var Sidebar = import_react14.default.memo(function Sidebar2({
|
|
|
2437
4469
|
indexError,
|
|
2438
4470
|
status,
|
|
2439
4471
|
previewInitialized,
|
|
2440
|
-
// menu,
|
|
2441
|
-
// extra,
|
|
2442
|
-
// bottom = [],
|
|
2443
|
-
// menuHighlighted = false,
|
|
2444
|
-
// enableShortcuts = true,
|
|
2445
4472
|
refs = {},
|
|
2446
4473
|
setSelection
|
|
2447
4474
|
}) {
|
|
2448
4475
|
const selected = (0, import_react14.useMemo)(() => storyId && { storyId, refId }, [storyId, refId]);
|
|
2449
4476
|
const dataset = useCombination(index, indexError, previewInitialized, status, refs);
|
|
2450
4477
|
const lastViewedProps = useLastViewed(selected);
|
|
2451
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Container2, { style: { paddingHorizontal: 10 }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Top, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
4478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Container2, { style: { paddingHorizontal: 10 }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Top, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Search, { dataset, setSelection, ...lastViewedProps, children: ({ query, results, isBrowsing, closeMenu, getItemProps, highlightedIndex }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Swap, { condition: isBrowsing, children: [
|
|
4479
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
4480
|
+
Explorer,
|
|
4481
|
+
{
|
|
4482
|
+
dataset,
|
|
4483
|
+
selected,
|
|
4484
|
+
isLoading: false,
|
|
4485
|
+
isBrowsing,
|
|
4486
|
+
setSelection
|
|
4487
|
+
}
|
|
4488
|
+
),
|
|
4489
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
4490
|
+
SearchResults,
|
|
4491
|
+
{
|
|
2458
4492
|
query,
|
|
2459
4493
|
results,
|
|
2460
|
-
isBrowsing,
|
|
2461
4494
|
closeMenu,
|
|
2462
|
-
// getMenuProps,
|
|
2463
4495
|
getItemProps,
|
|
2464
|
-
highlightedIndex
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
selected,
|
|
2471
|
-
isLoading: false,
|
|
2472
|
-
isBrowsing,
|
|
2473
|
-
setSelection
|
|
2474
|
-
}
|
|
2475
|
-
),
|
|
2476
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
2477
|
-
SearchResults,
|
|
2478
|
-
{
|
|
2479
|
-
query,
|
|
2480
|
-
results,
|
|
2481
|
-
closeMenu,
|
|
2482
|
-
getItemProps,
|
|
2483
|
-
highlightedIndex,
|
|
2484
|
-
isLoading: false,
|
|
2485
|
-
clearLastViewed: lastViewedProps.clearLastViewed
|
|
2486
|
-
}
|
|
2487
|
-
)
|
|
2488
|
-
] })
|
|
2489
|
-
}
|
|
2490
|
-
) }) });
|
|
4496
|
+
highlightedIndex,
|
|
4497
|
+
isLoading: false,
|
|
4498
|
+
clearLastViewed: lastViewedProps.clearLastViewed
|
|
4499
|
+
}
|
|
4500
|
+
)
|
|
4501
|
+
] }) }) }) });
|
|
2491
4502
|
});
|
|
2492
4503
|
|
|
2493
4504
|
// src/Layout.tsx
|
|
2494
|
-
var
|
|
2495
|
-
var
|
|
4505
|
+
var import_core_events = require("@storybook/core/core-events");
|
|
4506
|
+
var import_manager_api2 = require("@storybook/core/manager-api");
|
|
2496
4507
|
var import_react_native_theming11 = require("@storybook/react-native-theming");
|
|
2497
4508
|
var import_react17 = require("react");
|
|
2498
4509
|
var import_react_native9 = require("react-native");
|
|
2499
|
-
var
|
|
4510
|
+
var import_react_native_safe_area_context3 = require("react-native-safe-area-context");
|
|
2500
4511
|
|
|
2501
4512
|
// src/icon/BottomBarToggleIcon.tsx
|
|
2502
4513
|
var import_react_native_svg10 = require("react-native-svg");
|
|
@@ -2550,6 +4561,7 @@ var import_bottom_sheet2 = require("@gorhom/bottom-sheet");
|
|
|
2550
4561
|
var import_react15 = require("react");
|
|
2551
4562
|
var import_react_native7 = require("react-native");
|
|
2552
4563
|
var import_react_native_reanimated = require("react-native-reanimated");
|
|
4564
|
+
var import_react_native_safe_area_context = require("react-native-safe-area-context");
|
|
2553
4565
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2554
4566
|
var BottomSheetBackdropComponent = (backdropComponentProps) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2555
4567
|
import_bottom_sheet2.BottomSheetBackdrop,
|
|
@@ -2562,19 +4574,18 @@ var BottomSheetBackdropComponent = (backdropComponentProps) => /* @__PURE__ */ (
|
|
|
2562
4574
|
}
|
|
2563
4575
|
);
|
|
2564
4576
|
var MobileMenuDrawer = (0, import_react15.forwardRef)(
|
|
2565
|
-
({ children }, ref) => {
|
|
2566
|
-
const [isMobileMenuOpen, setMobileMenuOpen] = (0, import_react15.useState)(false);
|
|
4577
|
+
({ children, onStateChange }, ref) => {
|
|
2567
4578
|
const reducedMotion = (0, import_react_native_reanimated.useReducedMotion)();
|
|
4579
|
+
const insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
|
|
2568
4580
|
const menuBottomSheetRef = (0, import_react15.useRef)(null);
|
|
2569
4581
|
(0, import_react15.useImperativeHandle)(ref, () => ({
|
|
2570
|
-
isMobileMenuOpen,
|
|
2571
4582
|
setMobileMenuOpen: (open) => {
|
|
2572
4583
|
if (open) {
|
|
2573
|
-
|
|
4584
|
+
onStateChange(true);
|
|
2574
4585
|
menuBottomSheetRef.current?.present();
|
|
2575
4586
|
} else {
|
|
2576
4587
|
import_react_native7.Keyboard.dismiss();
|
|
2577
|
-
|
|
4588
|
+
onStateChange(false);
|
|
2578
4589
|
menuBottomSheetRef.current?.dismiss();
|
|
2579
4590
|
}
|
|
2580
4591
|
}
|
|
@@ -2586,7 +4597,7 @@ var MobileMenuDrawer = (0, import_react15.forwardRef)(
|
|
|
2586
4597
|
index: 1,
|
|
2587
4598
|
animateOnMount: !reducedMotion,
|
|
2588
4599
|
onDismiss: () => {
|
|
2589
|
-
|
|
4600
|
+
onStateChange(false);
|
|
2590
4601
|
},
|
|
2591
4602
|
snapPoints: ["50%", "75%"],
|
|
2592
4603
|
enableDismissOnClose: true,
|
|
@@ -2596,7 +4607,16 @@ var MobileMenuDrawer = (0, import_react15.forwardRef)(
|
|
|
2596
4607
|
keyboardBlurBehavior: "restore",
|
|
2597
4608
|
stackBehavior: "replace",
|
|
2598
4609
|
backdropComponent: BottomSheetBackdropComponent,
|
|
2599
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4610
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4611
|
+
import_bottom_sheet2.BottomSheetScrollView,
|
|
4612
|
+
{
|
|
4613
|
+
keyboardShouldPersistTaps: "handled",
|
|
4614
|
+
contentContainerStyle: {
|
|
4615
|
+
paddingBottom: insets.bottom
|
|
4616
|
+
},
|
|
4617
|
+
children
|
|
4618
|
+
}
|
|
4619
|
+
)
|
|
2600
4620
|
}
|
|
2601
4621
|
);
|
|
2602
4622
|
}
|
|
@@ -2604,129 +4624,132 @@ var MobileMenuDrawer = (0, import_react15.forwardRef)(
|
|
|
2604
4624
|
|
|
2605
4625
|
// src/MobileAddonsPanel.tsx
|
|
2606
4626
|
var import_bottom_sheet3 = require("@gorhom/bottom-sheet");
|
|
2607
|
-
var
|
|
4627
|
+
var import_manager_api = require("@storybook/core/manager-api");
|
|
2608
4628
|
var import_react_native_theming10 = require("@storybook/react-native-theming");
|
|
2609
|
-
var import_types3 =
|
|
4629
|
+
var import_types3 = require("@storybook/core/types");
|
|
2610
4630
|
var import_react16 = require("react");
|
|
2611
4631
|
var import_react_native8 = require("react-native");
|
|
2612
4632
|
var import_react_native_gesture_handler = require("react-native-gesture-handler");
|
|
2613
|
-
var import_react_native_reanimated2 = require("react-native-reanimated");
|
|
2614
|
-
var
|
|
4633
|
+
var import_react_native_reanimated2 = __toESM(require("react-native-reanimated"));
|
|
4634
|
+
var import_react_native_safe_area_context2 = require("react-native-safe-area-context");
|
|
2615
4635
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
2616
|
-
var MobileAddonsPanel = (0, import_react16.forwardRef)(
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
addonsPanelBottomSheetRef.current?.dismiss();
|
|
2633
|
-
}
|
|
4636
|
+
var MobileAddonsPanel = (0, import_react16.forwardRef)(({ storyId, onStateChange }, ref) => {
|
|
4637
|
+
const reducedMotion = (0, import_react_native_reanimated2.useReducedMotion)();
|
|
4638
|
+
const addonsPanelBottomSheetRef = (0, import_react16.useRef)(null);
|
|
4639
|
+
const insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
|
|
4640
|
+
const panels = import_manager_api.addons.getElements(import_types3.Addon_TypesEnum.PANEL);
|
|
4641
|
+
const [addonSelected, setAddonSelected] = (0, import_react16.useState)(Object.keys(panels)[0]);
|
|
4642
|
+
const animatedPosition = (0, import_react_native_reanimated2.useSharedValue)(0);
|
|
4643
|
+
(0, import_react_native_reanimated2.useAnimatedKeyboard)();
|
|
4644
|
+
(0, import_react16.useImperativeHandle)(ref, () => ({
|
|
4645
|
+
setAddonsPanelOpen: (open) => {
|
|
4646
|
+
if (open) {
|
|
4647
|
+
onStateChange(true);
|
|
4648
|
+
addonsPanelBottomSheetRef.current?.present();
|
|
4649
|
+
} else {
|
|
4650
|
+
onStateChange(false);
|
|
4651
|
+
addonsPanelBottomSheetRef.current?.dismiss();
|
|
2634
4652
|
}
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
paddingHorizontal: 8,
|
|
2670
|
-
// alignItems: 'center',
|
|
2671
|
-
justifyContent: "center"
|
|
2672
|
-
},
|
|
2673
|
-
children: Object.values(panels).map(({ id, title }) => {
|
|
2674
|
-
const resolvedTitle = typeof title === "function" ? title({}) : title;
|
|
2675
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2676
|
-
Tab,
|
|
2677
|
-
{
|
|
2678
|
-
active: id === addonSelected,
|
|
2679
|
-
onPress: () => setAddonSelected(id),
|
|
2680
|
-
text: resolvedTitle
|
|
2681
|
-
},
|
|
2682
|
-
id
|
|
2683
|
-
);
|
|
2684
|
-
})
|
|
2685
|
-
}
|
|
2686
|
-
),
|
|
2687
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2688
|
-
IconButton,
|
|
2689
|
-
{
|
|
2690
|
-
style: {
|
|
2691
|
-
marginRight: 4,
|
|
2692
|
-
marginBottom: 4,
|
|
2693
|
-
alignItems: "center",
|
|
2694
|
-
justifyContent: "center"
|
|
2695
|
-
},
|
|
2696
|
-
hitSlop: { top: 10, right: 10, bottom: 10, left: 10 },
|
|
2697
|
-
Icon: CloseIcon,
|
|
2698
|
-
onPress: () => {
|
|
2699
|
-
setAddonsPanelOpen(false);
|
|
2700
|
-
addonsPanelBottomSheetRef.current?.dismiss();
|
|
2701
|
-
}
|
|
2702
|
-
}
|
|
2703
|
-
)
|
|
2704
|
-
] }),
|
|
4653
|
+
}
|
|
4654
|
+
}));
|
|
4655
|
+
const { height } = (0, import_react_native8.useWindowDimensions)();
|
|
4656
|
+
const adjustedBottomSheetSize = (0, import_react_native_reanimated2.useAnimatedStyle)(() => {
|
|
4657
|
+
return {
|
|
4658
|
+
maxHeight: height - animatedPosition.value - insets.bottom
|
|
4659
|
+
};
|
|
4660
|
+
}, [animatedPosition.value, height, insets.bottom]);
|
|
4661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4662
|
+
import_bottom_sheet3.BottomSheetModal,
|
|
4663
|
+
{
|
|
4664
|
+
ref: addonsPanelBottomSheetRef,
|
|
4665
|
+
index: 1,
|
|
4666
|
+
animateOnMount: !reducedMotion,
|
|
4667
|
+
onDismiss: () => {
|
|
4668
|
+
onStateChange(false);
|
|
4669
|
+
},
|
|
4670
|
+
snapPoints: ["25%", "50%", "75%"],
|
|
4671
|
+
style: {
|
|
4672
|
+
paddingTop: 8
|
|
4673
|
+
},
|
|
4674
|
+
animatedPosition,
|
|
4675
|
+
containerStyle: {},
|
|
4676
|
+
backgroundStyle: {
|
|
4677
|
+
borderRadius: 0,
|
|
4678
|
+
borderTopColor: "lightgrey",
|
|
4679
|
+
borderTopWidth: 1
|
|
4680
|
+
},
|
|
4681
|
+
keyboardBehavior: "extend",
|
|
4682
|
+
enableDismissOnClose: true,
|
|
4683
|
+
enableHandlePanningGesture: true,
|
|
4684
|
+
stackBehavior: "replace",
|
|
4685
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react_native_reanimated2.default.View, { style: [{ flex: 1 }, adjustedBottomSheetSize], children: [
|
|
4686
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_react_native8.View, { style: { flexDirection: "row" }, children: [
|
|
2705
4687
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
2706
|
-
|
|
4688
|
+
import_react_native_gesture_handler.ScrollView,
|
|
2707
4689
|
{
|
|
2708
|
-
|
|
4690
|
+
horizontal: true,
|
|
4691
|
+
showsHorizontalScrollIndicator: false,
|
|
2709
4692
|
contentContainerStyle: {
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
4693
|
+
paddingHorizontal: 8,
|
|
4694
|
+
justifyContent: "center"
|
|
4695
|
+
},
|
|
4696
|
+
children: Object.values(panels).map(({ id, title }) => {
|
|
4697
|
+
const resolvedTitle = typeof title === "function" ? title({}) : title;
|
|
4698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4699
|
+
Tab,
|
|
4700
|
+
{
|
|
4701
|
+
active: id === addonSelected,
|
|
4702
|
+
onPress: () => setAddonSelected(id),
|
|
4703
|
+
text: resolvedTitle
|
|
4704
|
+
},
|
|
4705
|
+
id
|
|
4706
|
+
);
|
|
4707
|
+
})
|
|
4708
|
+
}
|
|
4709
|
+
),
|
|
4710
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4711
|
+
IconButton,
|
|
4712
|
+
{
|
|
4713
|
+
style: {
|
|
4714
|
+
marginRight: 4,
|
|
4715
|
+
marginBottom: 4,
|
|
4716
|
+
alignItems: "center",
|
|
4717
|
+
justifyContent: "center"
|
|
2713
4718
|
},
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
}
|
|
2721
|
-
return panels[addonSelected].render({ active: true });
|
|
2722
|
-
})()
|
|
4719
|
+
hitSlop: { top: 10, right: 10, bottom: 10, left: 10 },
|
|
4720
|
+
Icon: CloseIcon,
|
|
4721
|
+
onPress: () => {
|
|
4722
|
+
onStateChange(false);
|
|
4723
|
+
addonsPanelBottomSheetRef.current?.dismiss();
|
|
4724
|
+
}
|
|
2723
4725
|
}
|
|
2724
4726
|
)
|
|
2725
|
-
] })
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
4727
|
+
] }),
|
|
4728
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4729
|
+
import_react_native_gesture_handler.ScrollView,
|
|
4730
|
+
{
|
|
4731
|
+
style: { flex: 1 },
|
|
4732
|
+
keyboardShouldPersistTaps: "handled",
|
|
4733
|
+
contentContainerStyle: {
|
|
4734
|
+
paddingBottom: insets.bottom + 16,
|
|
4735
|
+
marginTop: 10,
|
|
4736
|
+
paddingHorizontal: 16
|
|
4737
|
+
},
|
|
4738
|
+
children: (() => {
|
|
4739
|
+
if (!storyId) {
|
|
4740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_native8.View, { style: { alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_native8.Text, { children: "No Story Selected" }) });
|
|
4741
|
+
}
|
|
4742
|
+
if (Object.keys(panels).length === 0) {
|
|
4743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_native8.View, { style: { alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_native8.Text, { children: "No addons loaded." }) });
|
|
4744
|
+
}
|
|
4745
|
+
return panels[addonSelected].render({ active: true });
|
|
4746
|
+
})()
|
|
4747
|
+
}
|
|
4748
|
+
)
|
|
4749
|
+
] })
|
|
4750
|
+
}
|
|
4751
|
+
);
|
|
4752
|
+
});
|
|
2730
4753
|
var Tab = ({ active, onPress, text }) => {
|
|
2731
4754
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TabButton, { active, onPress, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(TabText, { active, children: text }) });
|
|
2732
4755
|
};
|
|
@@ -2742,7 +4765,7 @@ var TabText = import_react_native_theming10.styled.Text(({ theme, active }) => (
|
|
|
2742
4765
|
color: active ? theme.barSelectedColor : theme.color.mediumdark,
|
|
2743
4766
|
textAlign: "center",
|
|
2744
4767
|
fontWeight: "bold",
|
|
2745
|
-
fontSize:
|
|
4768
|
+
fontSize: 12,
|
|
2746
4769
|
lineHeight: 12
|
|
2747
4770
|
}));
|
|
2748
4771
|
|
|
@@ -2755,11 +4778,13 @@ var Layout = ({
|
|
|
2755
4778
|
}) => {
|
|
2756
4779
|
const theme = (0, import_react_native_theming11.useTheme)();
|
|
2757
4780
|
const mobileMenuDrawerRef = (0, import_react17.useRef)(null);
|
|
4781
|
+
const [menuOpen, setMenuOpen] = (0, import_react17.useState)(false);
|
|
4782
|
+
const [drawerOpen, setDrawerOpen] = (0, import_react17.useState)(false);
|
|
2758
4783
|
const addonPanelRef = (0, import_react17.useRef)(null);
|
|
2759
|
-
const insets = (0,
|
|
4784
|
+
const insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
|
|
2760
4785
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_native9.View, { style: { flex: 1, paddingTop: insets.top }, children: [
|
|
2761
4786
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_native9.View, { style: { flex: 1 }, children }),
|
|
2762
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MobileMenuDrawer, { ref: mobileMenuDrawerRef, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4787
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MobileMenuDrawer, { ref: mobileMenuDrawerRef, onStateChange: setDrawerOpen, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2763
4788
|
Sidebar,
|
|
2764
4789
|
{
|
|
2765
4790
|
extra: [],
|
|
@@ -2767,8 +4792,8 @@ var Layout = ({
|
|
|
2767
4792
|
indexError: void 0,
|
|
2768
4793
|
refs: {},
|
|
2769
4794
|
setSelection: ({ storyId: newStoryId }) => {
|
|
2770
|
-
const channel =
|
|
2771
|
-
channel.emit(
|
|
4795
|
+
const channel = import_manager_api2.addons.getChannel();
|
|
4796
|
+
channel.emit(import_core_events.SET_CURRENT_STORY, { storyId: newStoryId });
|
|
2772
4797
|
},
|
|
2773
4798
|
status: {},
|
|
2774
4799
|
index: storyHash,
|
|
@@ -2776,19 +4801,22 @@ var Layout = ({
|
|
|
2776
4801
|
refId: DEFAULT_REF_ID
|
|
2777
4802
|
}
|
|
2778
4803
|
) }),
|
|
2779
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MobileAddonsPanel, { ref: addonPanelRef, storyId: story
|
|
2780
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Container3, { style: { marginBottom: insets.bottom }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Nav, { children: [
|
|
4804
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MobileAddonsPanel, { ref: addonPanelRef, storyId: story?.id, onStateChange: setMenuOpen }),
|
|
4805
|
+
(import_react_native9.Platform.OS !== "android" || !menuOpen && !drawerOpen) && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Container3, { style: { marginBottom: insets.bottom }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(Nav, { children: [
|
|
2781
4806
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
2782
4807
|
Button2,
|
|
2783
4808
|
{
|
|
4809
|
+
style: { flexShrink: 1 },
|
|
2784
4810
|
hitSlop: { bottom: 10, left: 10, right: 10, top: 10 },
|
|
2785
|
-
onPress: () =>
|
|
4811
|
+
onPress: () => {
|
|
4812
|
+
mobileMenuDrawerRef.current.setMobileMenuOpen(true);
|
|
4813
|
+
},
|
|
2786
4814
|
children: [
|
|
2787
4815
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(MenuIcon, { color: theme.color.mediumdark }),
|
|
2788
|
-
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_native9.Text, { children: [
|
|
2789
|
-
story
|
|
4816
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_react_native9.Text, { style: { flexShrink: 1 }, numberOfLines: 1, children: [
|
|
4817
|
+
story?.title,
|
|
2790
4818
|
"/",
|
|
2791
|
-
story
|
|
4819
|
+
story?.name
|
|
2792
4820
|
] })
|
|
2793
4821
|
]
|
|
2794
4822
|
}
|
|
@@ -2830,6 +4858,296 @@ var Button2 = import_react_native_theming11.styled.TouchableOpacity(({ theme })
|
|
|
2830
4858
|
paddingHorizontal: 7,
|
|
2831
4859
|
fontWeight: theme.typography.weight.bold
|
|
2832
4860
|
}));
|
|
4861
|
+
|
|
4862
|
+
// ../../node_modules/@storybook/csf/dist/index.mjs
|
|
4863
|
+
var C = Object.create;
|
|
4864
|
+
var u = Object.defineProperty;
|
|
4865
|
+
var B = Object.getOwnPropertyDescriptor;
|
|
4866
|
+
var F = Object.getOwnPropertyNames;
|
|
4867
|
+
var h = Object.getPrototypeOf;
|
|
4868
|
+
var w = Object.prototype.hasOwnProperty;
|
|
4869
|
+
var v = (r, e) => () => (e || r((e = { exports: {} }).exports, e), e.exports);
|
|
4870
|
+
var E = (r, e, n, t) => {
|
|
4871
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
4872
|
+
for (let a of F(e))
|
|
4873
|
+
!w.call(r, a) && a !== n && u(r, a, { get: () => e[a], enumerable: !(t = B(e, a)) || t.enumerable });
|
|
4874
|
+
return r;
|
|
4875
|
+
};
|
|
4876
|
+
var I = (r, e, n) => (n = r != null ? C(h(r)) : {}, E(e || !r || !r.__esModule ? u(n, "default", { value: r, enumerable: true }) : n, r));
|
|
4877
|
+
var x = v((T) => {
|
|
4878
|
+
Object.defineProperty(T, "__esModule", { value: true }), T.isEqual = function() {
|
|
4879
|
+
var r = Object.prototype.toString, e = Object.getPrototypeOf, n = Object.getOwnPropertySymbols ? function(t) {
|
|
4880
|
+
return Object.keys(t).concat(Object.getOwnPropertySymbols(t));
|
|
4881
|
+
} : Object.keys;
|
|
4882
|
+
return function(t, a) {
|
|
4883
|
+
return function i(o, s, p) {
|
|
4884
|
+
var y, g, d, c = r.call(o), b = r.call(s);
|
|
4885
|
+
if (o === s)
|
|
4886
|
+
return true;
|
|
4887
|
+
if (o == null || s == null)
|
|
4888
|
+
return false;
|
|
4889
|
+
if (p.indexOf(o) > -1 && p.indexOf(s) > -1)
|
|
4890
|
+
return true;
|
|
4891
|
+
if (p.push(o, s), c != b || (y = n(o), g = n(s), y.length != g.length || y.some(function(A) {
|
|
4892
|
+
return !i(o[A], s[A], p);
|
|
4893
|
+
})))
|
|
4894
|
+
return false;
|
|
4895
|
+
switch (c.slice(8, -1)) {
|
|
4896
|
+
case "Symbol":
|
|
4897
|
+
return o.valueOf() == s.valueOf();
|
|
4898
|
+
case "Date":
|
|
4899
|
+
case "Number":
|
|
4900
|
+
return +o == +s || +o != +o && +s != +s;
|
|
4901
|
+
case "RegExp":
|
|
4902
|
+
case "Function":
|
|
4903
|
+
case "String":
|
|
4904
|
+
case "Boolean":
|
|
4905
|
+
return "" + o == "" + s;
|
|
4906
|
+
case "Set":
|
|
4907
|
+
case "Map":
|
|
4908
|
+
y = o.entries(), g = s.entries();
|
|
4909
|
+
do
|
|
4910
|
+
if (!i((d = y.next()).value, g.next().value, p))
|
|
4911
|
+
return false;
|
|
4912
|
+
while (!d.done);
|
|
4913
|
+
return true;
|
|
4914
|
+
case "ArrayBuffer":
|
|
4915
|
+
o = new Uint8Array(o), s = new Uint8Array(s);
|
|
4916
|
+
case "DataView":
|
|
4917
|
+
o = new Uint8Array(o.buffer), s = new Uint8Array(s.buffer);
|
|
4918
|
+
case "Float32Array":
|
|
4919
|
+
case "Float64Array":
|
|
4920
|
+
case "Int8Array":
|
|
4921
|
+
case "Int16Array":
|
|
4922
|
+
case "Int32Array":
|
|
4923
|
+
case "Uint8Array":
|
|
4924
|
+
case "Uint16Array":
|
|
4925
|
+
case "Uint32Array":
|
|
4926
|
+
case "Uint8ClampedArray":
|
|
4927
|
+
case "Arguments":
|
|
4928
|
+
case "Array":
|
|
4929
|
+
if (o.length != s.length)
|
|
4930
|
+
return false;
|
|
4931
|
+
for (d = 0; d < o.length; d++)
|
|
4932
|
+
if ((d in o || d in s) && (d in o != d in s || !i(o[d], s[d], p)))
|
|
4933
|
+
return false;
|
|
4934
|
+
return true;
|
|
4935
|
+
case "Object":
|
|
4936
|
+
return i(e(o), e(s), p);
|
|
4937
|
+
default:
|
|
4938
|
+
return false;
|
|
4939
|
+
}
|
|
4940
|
+
}(t, a, []);
|
|
4941
|
+
};
|
|
4942
|
+
}();
|
|
4943
|
+
});
|
|
4944
|
+
var l = I(x());
|
|
4945
|
+
var O = (r) => r.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-").replace(/-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
4946
|
+
|
|
4947
|
+
// src/util/StoryHash.ts
|
|
4948
|
+
var import_countBy = __toESM(require_countBy());
|
|
4949
|
+
|
|
4950
|
+
// ../../node_modules/ts-dedent/esm/index.js
|
|
4951
|
+
function dedent(templ) {
|
|
4952
|
+
var values = [];
|
|
4953
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
4954
|
+
values[_i - 1] = arguments[_i];
|
|
4955
|
+
}
|
|
4956
|
+
var strings = Array.from(typeof templ === "string" ? [templ] : templ);
|
|
4957
|
+
strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
4958
|
+
var indentLengths = strings.reduce(function(arr, str) {
|
|
4959
|
+
var matches = str.match(/\n([\t ]+|(?!\s).)/g);
|
|
4960
|
+
if (matches) {
|
|
4961
|
+
return arr.concat(matches.map(function(match) {
|
|
4962
|
+
var _a, _b;
|
|
4963
|
+
return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
4964
|
+
}));
|
|
4965
|
+
}
|
|
4966
|
+
return arr;
|
|
4967
|
+
}, []);
|
|
4968
|
+
if (indentLengths.length) {
|
|
4969
|
+
var pattern_1 = new RegExp("\n[ ]{" + Math.min.apply(Math, indentLengths) + "}", "g");
|
|
4970
|
+
strings = strings.map(function(str) {
|
|
4971
|
+
return str.replace(pattern_1, "\n");
|
|
4972
|
+
});
|
|
4973
|
+
}
|
|
4974
|
+
strings[0] = strings[0].replace(/^\r?\n/, "");
|
|
4975
|
+
var string = strings[0];
|
|
4976
|
+
values.forEach(function(value, i) {
|
|
4977
|
+
var endentations = string.match(/(?:^|\n)( *)$/);
|
|
4978
|
+
var endentation = endentations ? endentations[1] : "";
|
|
4979
|
+
var indentedValue = value;
|
|
4980
|
+
if (typeof value === "string" && value.includes("\n")) {
|
|
4981
|
+
indentedValue = String(value).split("\n").map(function(str, i2) {
|
|
4982
|
+
return i2 === 0 ? str : "" + endentation + str;
|
|
4983
|
+
}).join("\n");
|
|
4984
|
+
}
|
|
4985
|
+
string += indentedValue + strings[i + 1];
|
|
4986
|
+
});
|
|
4987
|
+
return string;
|
|
4988
|
+
}
|
|
4989
|
+
|
|
4990
|
+
// src/util/StoryHash.ts
|
|
4991
|
+
var import_isEqual = __toESM(require_isEqual());
|
|
4992
|
+
var import_mergeWith = __toESM(require_mergeWith());
|
|
4993
|
+
var import_client_logger = require("@storybook/core/client-logger");
|
|
4994
|
+
var merge = (a, b) => (0, import_mergeWith.default)({}, a, b, (objValue, srcValue) => {
|
|
4995
|
+
if (Array.isArray(srcValue) && Array.isArray(objValue)) {
|
|
4996
|
+
srcValue.forEach((s) => {
|
|
4997
|
+
const existing = objValue.find((o) => o === s || (0, import_isEqual.default)(o, s));
|
|
4998
|
+
if (!existing) {
|
|
4999
|
+
objValue.push(s);
|
|
5000
|
+
}
|
|
5001
|
+
});
|
|
5002
|
+
return objValue;
|
|
5003
|
+
}
|
|
5004
|
+
if (Array.isArray(objValue)) {
|
|
5005
|
+
import_client_logger.logger.log(["the types mismatch, picking", objValue]);
|
|
5006
|
+
return objValue;
|
|
5007
|
+
}
|
|
5008
|
+
return void 0;
|
|
5009
|
+
});
|
|
5010
|
+
var TITLE_PATH_SEPARATOR = /\s*\/\s*/;
|
|
5011
|
+
var transformStoryIndexToStoriesHash = (input, { provider, docsOptions, filters, status }) => {
|
|
5012
|
+
if (!input.v) {
|
|
5013
|
+
throw new Error("Composition: Missing stories.json version");
|
|
5014
|
+
}
|
|
5015
|
+
let index = input;
|
|
5016
|
+
index = index.v === 2 ? transformStoryIndexV2toV3(index) : index;
|
|
5017
|
+
index = index.v === 3 ? transformStoryIndexV3toV4(index) : index;
|
|
5018
|
+
index = index;
|
|
5019
|
+
const entryValues = Object.values(index.entries).filter((entry) => {
|
|
5020
|
+
let result = true;
|
|
5021
|
+
Object.values(filters).forEach((filter) => {
|
|
5022
|
+
if (result === false) {
|
|
5023
|
+
return;
|
|
5024
|
+
}
|
|
5025
|
+
result = filter({ ...entry, status: status[entry.id] });
|
|
5026
|
+
});
|
|
5027
|
+
return result;
|
|
5028
|
+
});
|
|
5029
|
+
const { sidebar = {} } = provider.getConfig();
|
|
5030
|
+
const { showRoots, collapsedRoots = [], renderLabel } = sidebar;
|
|
5031
|
+
const setShowRoots = typeof showRoots !== "undefined";
|
|
5032
|
+
const storiesHashOutOfOrder = entryValues.reduce((acc, item) => {
|
|
5033
|
+
if (docsOptions.docsMode && item.type !== "docs") {
|
|
5034
|
+
return acc;
|
|
5035
|
+
}
|
|
5036
|
+
const { title } = item;
|
|
5037
|
+
const groups = title.trim().split(TITLE_PATH_SEPARATOR);
|
|
5038
|
+
const root = (!setShowRoots || showRoots) && groups.length > 1 ? [groups.shift()] : [];
|
|
5039
|
+
const names = [...root, ...groups];
|
|
5040
|
+
const paths = names.reduce((list, name, idx) => {
|
|
5041
|
+
const parent = idx > 0 && list[idx - 1];
|
|
5042
|
+
const id = O(parent ? `${parent}-${name}` : name);
|
|
5043
|
+
if (parent === id) {
|
|
5044
|
+
throw new Error(
|
|
5045
|
+
dedent`
|
|
5046
|
+
Invalid part '${name}', leading to id === parentId ('${id}'), inside title '${title}'
|
|
5047
|
+
|
|
5048
|
+
Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
|
|
5049
|
+
`
|
|
5050
|
+
);
|
|
5051
|
+
}
|
|
5052
|
+
list.push(id);
|
|
5053
|
+
return list;
|
|
5054
|
+
}, []);
|
|
5055
|
+
paths.forEach((id, idx) => {
|
|
5056
|
+
const childId = paths[idx + 1] || item.id;
|
|
5057
|
+
if (root.length && idx === 0) {
|
|
5058
|
+
acc[id] = merge(acc[id] || {}, {
|
|
5059
|
+
type: "root",
|
|
5060
|
+
id,
|
|
5061
|
+
name: names[idx],
|
|
5062
|
+
depth: idx,
|
|
5063
|
+
renderLabel,
|
|
5064
|
+
startCollapsed: collapsedRoots.includes(id),
|
|
5065
|
+
// Note that this will later get appended to the previous list of children (see below)
|
|
5066
|
+
children: [childId]
|
|
5067
|
+
});
|
|
5068
|
+
} else if ((!acc[id] || acc[id].type === "component") && idx === paths.length - 1) {
|
|
5069
|
+
acc[id] = merge(acc[id] || {}, {
|
|
5070
|
+
type: "component",
|
|
5071
|
+
id,
|
|
5072
|
+
name: names[idx],
|
|
5073
|
+
parent: paths[idx - 1],
|
|
5074
|
+
depth: idx,
|
|
5075
|
+
renderLabel,
|
|
5076
|
+
...childId && {
|
|
5077
|
+
children: [childId]
|
|
5078
|
+
}
|
|
5079
|
+
});
|
|
5080
|
+
} else {
|
|
5081
|
+
acc[id] = merge(acc[id] || {}, {
|
|
5082
|
+
type: "group",
|
|
5083
|
+
id,
|
|
5084
|
+
name: names[idx],
|
|
5085
|
+
parent: paths[idx - 1],
|
|
5086
|
+
depth: idx,
|
|
5087
|
+
renderLabel,
|
|
5088
|
+
...childId && {
|
|
5089
|
+
children: [childId]
|
|
5090
|
+
}
|
|
5091
|
+
});
|
|
5092
|
+
}
|
|
5093
|
+
});
|
|
5094
|
+
acc[item.id] = {
|
|
5095
|
+
type: "story",
|
|
5096
|
+
...item,
|
|
5097
|
+
depth: paths.length,
|
|
5098
|
+
parent: paths[paths.length - 1],
|
|
5099
|
+
renderLabel,
|
|
5100
|
+
prepared: !!item.parameters
|
|
5101
|
+
};
|
|
5102
|
+
return acc;
|
|
5103
|
+
}, {});
|
|
5104
|
+
function addItem(acc, item) {
|
|
5105
|
+
if (acc[item.id]) {
|
|
5106
|
+
return acc;
|
|
5107
|
+
}
|
|
5108
|
+
acc[item.id] = item;
|
|
5109
|
+
if (item.type === "root" || item.type === "group" || item.type === "component") {
|
|
5110
|
+
item.children.forEach((childId) => addItem(acc, storiesHashOutOfOrder[childId]));
|
|
5111
|
+
}
|
|
5112
|
+
return acc;
|
|
5113
|
+
}
|
|
5114
|
+
const orphanHash = Object.values(storiesHashOutOfOrder).filter((i) => i.type !== "root" && !i.parent).reduce(addItem, {});
|
|
5115
|
+
return Object.values(storiesHashOutOfOrder).filter((i) => i.type === "root").reduce(addItem, orphanHash);
|
|
5116
|
+
};
|
|
5117
|
+
var transformStoryIndexV2toV3 = (index) => {
|
|
5118
|
+
return {
|
|
5119
|
+
v: 3,
|
|
5120
|
+
stories: Object.values(index.stories).reduce((acc, entry) => {
|
|
5121
|
+
acc[entry.id] = {
|
|
5122
|
+
...entry,
|
|
5123
|
+
title: entry.kind,
|
|
5124
|
+
name: entry.name || entry.story,
|
|
5125
|
+
importPath: entry.parameters.fileName || ""
|
|
5126
|
+
};
|
|
5127
|
+
return acc;
|
|
5128
|
+
}, {})
|
|
5129
|
+
};
|
|
5130
|
+
};
|
|
5131
|
+
var transformStoryIndexV3toV4 = (index) => {
|
|
5132
|
+
const countByTitle = (0, import_countBy.default)(Object.values(index.stories), "title");
|
|
5133
|
+
return {
|
|
5134
|
+
v: 4,
|
|
5135
|
+
entries: Object.values(index.stories).reduce((acc, entry) => {
|
|
5136
|
+
let type = "story";
|
|
5137
|
+
if (entry.parameters?.docsOnly || entry.name === "Page" && countByTitle[entry.title] === 1) {
|
|
5138
|
+
type = "docs";
|
|
5139
|
+
}
|
|
5140
|
+
acc[entry.id] = {
|
|
5141
|
+
type,
|
|
5142
|
+
...type === "docs" && { tags: ["stories-mdx"], storiesImports: [] },
|
|
5143
|
+
...entry
|
|
5144
|
+
};
|
|
5145
|
+
delete acc[entry.id].story;
|
|
5146
|
+
delete acc[entry.id].kind;
|
|
5147
|
+
return acc;
|
|
5148
|
+
}, {})
|
|
5149
|
+
};
|
|
5150
|
+
};
|
|
2833
5151
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2834
5152
|
0 && (module.exports = {
|
|
2835
5153
|
Button,
|
|
@@ -2849,12 +5167,9 @@ var Button2 = import_react_native_theming11.styled.TouchableOpacity(({ theme })
|
|
|
2849
5167
|
StoryNode,
|
|
2850
5168
|
Tree,
|
|
2851
5169
|
isExpandType,
|
|
5170
|
+
transformStoryIndexToStoriesHash,
|
|
5171
|
+
transformStoryIndexV2toV3,
|
|
5172
|
+
transformStoryIndexV3toV4,
|
|
2852
5173
|
useCombination,
|
|
2853
5174
|
useLayout
|
|
2854
5175
|
});
|
|
2855
|
-
/*! Bundled license information:
|
|
2856
|
-
|
|
2857
|
-
store2/dist/store2.js:
|
|
2858
|
-
(*! store2 - v2.14.3 - 2024-02-14
|
|
2859
|
-
* Copyright (c) 2024 Nathan Bubna; Licensed MIT *)
|
|
2860
|
-
*/
|