react 16.5.1 → 16.5.2
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/cjs/react.development.js +3 -3
- package/cjs/react.production.min.js +2 -2
- package/package.json +2 -2
- package/umd/react.development.js +328 -322
- package/umd/react.production.min.js +21 -20
- package/umd/react.profiling.min.js +33 -0
- package/cjs/react.profiling.min.js +0 -24
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.5.
|
|
1
|
+
/** @license React v16.5.2
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,7 +20,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
|
|
|
20
20
|
|
|
21
21
|
// TODO: this is special because it gets imported during build.
|
|
22
22
|
|
|
23
|
-
var ReactVersion = '16.5.
|
|
23
|
+
var ReactVersion = '16.5.2';
|
|
24
24
|
|
|
25
25
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
26
26
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -81,7 +81,7 @@ var enableSuspense = false;
|
|
|
81
81
|
// Gather advanced timing metrics for Profiler subtrees.
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
//
|
|
84
|
+
// Trace which interactions trigger each commit.
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
// Only used in www builds.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.5.
|
|
1
|
+
/** @license React v16.5.2
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,5 +20,5 @@ function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var
|
|
|
20
20
|
function aa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=M(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function W(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,aa,b);R(b)}function ba(a,b){var d=I.currentDispatcher;null===d?B("277"):void 0;return d.readContext(a,b)}
|
|
21
21
|
var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,V,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B("143");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
|
|
22
22
|
_currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:v,_context:a};a.Consumer=a;a.unstable_read=ba.bind(null,a);return a},forwardRef:function(a){return{$$typeof:y,render:a}},Fragment:r,StrictMode:t,unstable_AsyncMode:x,unstable_Profiler:u,createElement:L,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=m({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=I.current);void 0!==b.key&&(g=""+b.key);
|
|
23
|
-
var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.
|
|
23
|
+
var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,
|
|
24
24
|
assign:m}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react"
|
|
6
6
|
],
|
|
7
|
-
"version": "16.5.
|
|
7
|
+
"version": "16.5.2",
|
|
8
8
|
"homepage": "https://reactjs.org/",
|
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
|
10
10
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"loose-envify": "^1.1.0",
|
|
25
25
|
"object-assign": "^4.1.1",
|
|
26
26
|
"prop-types": "^15.6.2",
|
|
27
|
-
"schedule": "^0.
|
|
27
|
+
"schedule": "^0.5.0"
|
|
28
28
|
},
|
|
29
29
|
"browserify": {
|
|
30
30
|
"transform": [
|
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.5.
|
|
1
|
+
/** @license React v16.5.2
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
// TODO: this is special because it gets imported during build.
|
|
19
19
|
|
|
20
|
-
var ReactVersion = '16.5.
|
|
20
|
+
var ReactVersion = '16.5.2';
|
|
21
21
|
|
|
22
22
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
23
23
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -78,8 +78,8 @@ var enableSuspense = false;
|
|
|
78
78
|
// Gather advanced timing metrics for Profiler subtrees.
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
//
|
|
82
|
-
var
|
|
81
|
+
// Trace which interactions trigger each commit.
|
|
82
|
+
var enableSchedulerTracing = true;
|
|
83
83
|
|
|
84
84
|
// Only used in www builds.
|
|
85
85
|
|
|
@@ -575,135 +575,297 @@ function createRef() {
|
|
|
575
575
|
return refObject;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
|
|
578
|
+
/* eslint-disable no-var */
|
|
579
579
|
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
580
|
+
// TODO: Currently there's only a single priority level, Deferred. Will add
|
|
581
|
+
// additional priorities.
|
|
582
|
+
var DEFERRED_TIMEOUT = 5000;
|
|
583
|
+
|
|
584
|
+
// Callbacks are stored as a circular, doubly linked list.
|
|
585
|
+
var firstCallbackNode = null;
|
|
586
|
+
|
|
587
|
+
var isPerformingWork = false;
|
|
588
|
+
|
|
589
|
+
var isHostCallbackScheduled = false;
|
|
590
|
+
|
|
591
|
+
var hasNativePerformanceNow = typeof performance === 'object' && typeof performance.now === 'function';
|
|
592
|
+
|
|
593
|
+
var timeRemaining;
|
|
594
|
+
if (hasNativePerformanceNow) {
|
|
595
|
+
timeRemaining = function () {
|
|
596
|
+
// We assume that if we have a performance timer that the rAF callback
|
|
597
|
+
// gets a performance timer value. Not sure if this is always true.
|
|
598
|
+
var remaining = getFrameDeadline() - performance.now();
|
|
599
|
+
return remaining > 0 ? remaining : 0;
|
|
600
|
+
};
|
|
601
|
+
} else {
|
|
602
|
+
timeRemaining = function () {
|
|
603
|
+
// Fallback to Date.now()
|
|
604
|
+
var remaining = getFrameDeadline() - Date.now();
|
|
605
|
+
return remaining > 0 ? remaining : 0;
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
var deadlineObject = {
|
|
610
|
+
timeRemaining: timeRemaining,
|
|
611
|
+
didTimeout: false
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
function ensureHostCallbackIsScheduled() {
|
|
615
|
+
if (isPerformingWork) {
|
|
616
|
+
// Don't schedule work yet; wait until the next time we yield.
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
// Schedule the host callback using the earliest timeout in the list.
|
|
620
|
+
var timesOutAt = firstCallbackNode.timesOutAt;
|
|
621
|
+
if (!isHostCallbackScheduled) {
|
|
622
|
+
isHostCallbackScheduled = true;
|
|
623
|
+
} else {
|
|
624
|
+
// Cancel the existing host callback.
|
|
625
|
+
cancelCallback();
|
|
626
|
+
}
|
|
627
|
+
requestCallback(flushWork, timesOutAt);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
function flushFirstCallback(node) {
|
|
631
|
+
var flushedNode = firstCallbackNode;
|
|
632
|
+
|
|
633
|
+
// Remove the node from the list before calling the callback. That way the
|
|
634
|
+
// list is in a consistent state even if the callback throws.
|
|
635
|
+
var next = firstCallbackNode.next;
|
|
636
|
+
if (firstCallbackNode === next) {
|
|
637
|
+
// This is the last callback in the list.
|
|
638
|
+
firstCallbackNode = null;
|
|
639
|
+
next = null;
|
|
640
|
+
} else {
|
|
641
|
+
var previous = firstCallbackNode.previous;
|
|
642
|
+
firstCallbackNode = previous.next = next;
|
|
643
|
+
next.previous = previous;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
flushedNode.next = flushedNode.previous = null;
|
|
592
647
|
|
|
593
|
-
//
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
648
|
+
// Now it's safe to call the callback.
|
|
649
|
+
var callback = flushedNode.callback;
|
|
650
|
+
callback(deadlineObject);
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function flushWork(didTimeout) {
|
|
654
|
+
isPerformingWork = true;
|
|
655
|
+
deadlineObject.didTimeout = didTimeout;
|
|
656
|
+
try {
|
|
657
|
+
if (didTimeout) {
|
|
658
|
+
// Flush all the timed out callbacks without yielding.
|
|
659
|
+
while (firstCallbackNode !== null) {
|
|
660
|
+
// Read the current time. Flush all the callbacks that expire at or
|
|
661
|
+
// earlier than that time. Then read the current time again and repeat.
|
|
662
|
+
// This optimizes for as few performance.now calls as possible.
|
|
663
|
+
var currentTime = getCurrentTime();
|
|
664
|
+
if (firstCallbackNode.timesOutAt <= currentTime) {
|
|
665
|
+
do {
|
|
666
|
+
flushFirstCallback();
|
|
667
|
+
} while (firstCallbackNode !== null && firstCallbackNode.timesOutAt <= currentTime);
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
break;
|
|
671
|
+
}
|
|
672
|
+
} else {
|
|
673
|
+
// Keep flushing callbacks until we run out of time in the frame.
|
|
674
|
+
if (firstCallbackNode !== null) {
|
|
675
|
+
do {
|
|
676
|
+
flushFirstCallback();
|
|
677
|
+
} while (firstCallbackNode !== null && getFrameDeadline() - getCurrentTime() > 0);
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
} finally {
|
|
681
|
+
isPerformingWork = false;
|
|
682
|
+
if (firstCallbackNode !== null) {
|
|
683
|
+
// There's still work remaining. Request another callback.
|
|
684
|
+
ensureHostCallbackIsScheduled(firstCallbackNode);
|
|
685
|
+
} else {
|
|
686
|
+
isHostCallbackScheduled = false;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
function unstable_scheduleWork(callback, options) {
|
|
692
|
+
var currentTime = getCurrentTime();
|
|
693
|
+
|
|
694
|
+
var timesOutAt;
|
|
695
|
+
if (options !== undefined && options !== null && options.timeout !== null && options.timeout !== undefined) {
|
|
696
|
+
// Check for an explicit timeout
|
|
697
|
+
timesOutAt = currentTime + options.timeout;
|
|
698
|
+
} else {
|
|
699
|
+
// Compute an absolute timeout using the default constant.
|
|
700
|
+
timesOutAt = currentTime + DEFERRED_TIMEOUT;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
var newNode = {
|
|
704
|
+
callback: callback,
|
|
705
|
+
timesOutAt: timesOutAt,
|
|
706
|
+
next: null,
|
|
707
|
+
previous: null
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
// Insert the new callback into the list, sorted by its timeout.
|
|
711
|
+
if (firstCallbackNode === null) {
|
|
712
|
+
// This is the first callback in the list.
|
|
713
|
+
firstCallbackNode = newNode.next = newNode.previous = newNode;
|
|
714
|
+
ensureHostCallbackIsScheduled(firstCallbackNode);
|
|
715
|
+
} else {
|
|
716
|
+
var next = null;
|
|
717
|
+
var node = firstCallbackNode;
|
|
718
|
+
do {
|
|
719
|
+
if (node.timesOutAt > timesOutAt) {
|
|
720
|
+
// The new callback times out before this one.
|
|
721
|
+
next = node;
|
|
722
|
+
break;
|
|
723
|
+
}
|
|
724
|
+
node = node.next;
|
|
725
|
+
} while (node !== firstCallbackNode);
|
|
726
|
+
|
|
727
|
+
if (next === null) {
|
|
728
|
+
// No callback with a later timeout was found, which means the new
|
|
729
|
+
// callback has the latest timeout in the list.
|
|
730
|
+
next = firstCallbackNode;
|
|
731
|
+
} else if (next === firstCallbackNode) {
|
|
732
|
+
// The new callback has the earliest timeout in the entire list.
|
|
733
|
+
firstCallbackNode = newNode;
|
|
734
|
+
ensureHostCallbackIsScheduled(firstCallbackNode);
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
var previous = next.previous;
|
|
738
|
+
previous.next = next.previous = newNode;
|
|
739
|
+
newNode.next = next;
|
|
740
|
+
newNode.previous = previous;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
return newNode;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function unstable_cancelScheduledWork(callbackNode) {
|
|
747
|
+
var next = callbackNode.next;
|
|
748
|
+
if (next === null) {
|
|
749
|
+
// Already cancelled.
|
|
750
|
+
return;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
if (next === callbackNode) {
|
|
754
|
+
// This is the only scheduled callback. Clear the list.
|
|
755
|
+
firstCallbackNode = null;
|
|
756
|
+
} else {
|
|
757
|
+
// Remove the callback from its position in the list.
|
|
758
|
+
if (callbackNode === firstCallbackNode) {
|
|
759
|
+
firstCallbackNode = next;
|
|
760
|
+
}
|
|
761
|
+
var previous = callbackNode.previous;
|
|
762
|
+
previous.next = next;
|
|
763
|
+
next.previous = previous;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
callbackNode.next = callbackNode.previous = null;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
// The remaining code is essentially a polyfill for requestIdleCallback. It
|
|
770
|
+
// works by scheduling a requestAnimationFrame, storing the time for the start
|
|
771
|
+
// of the frame, then scheduling a postMessage which gets scheduled after paint.
|
|
772
|
+
// Within the postMessage handler do as much work as possible until time + frame
|
|
773
|
+
// rate. By separating the idle call into a separate event tick we ensure that
|
|
598
774
|
// layout, paint and other browser work is counted against the available time.
|
|
599
775
|
// The frame rate is dynamically adjusted.
|
|
600
776
|
|
|
601
777
|
// We capture a local reference to any global, in case it gets polyfilled after
|
|
602
|
-
// this module is initially evaluated.
|
|
603
|
-
//
|
|
778
|
+
// this module is initially evaluated. We want to be using a
|
|
779
|
+
// consistent implementation.
|
|
604
780
|
var localDate = Date;
|
|
605
781
|
|
|
606
|
-
// This initialization code may run even on server environments
|
|
607
|
-
//
|
|
608
|
-
//
|
|
609
|
-
//
|
|
610
|
-
// https://github.com/facebook/react/pull/13088
|
|
782
|
+
// This initialization code may run even on server environments if a component
|
|
783
|
+
// just imports ReactDOM (e.g. for findDOMNode). Some environments might not
|
|
784
|
+
// have setTimeout or clearTimeout. However, we always expect them to be defined
|
|
785
|
+
// on the client. https://github.com/facebook/react/pull/13088
|
|
611
786
|
var localSetTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
|
|
612
787
|
var localClearTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
|
|
613
788
|
|
|
614
|
-
// We don't expect either of these to necessarily be defined,
|
|
615
|
-
//
|
|
789
|
+
// We don't expect either of these to necessarily be defined, but we will error
|
|
790
|
+
// later if they are missing on the client.
|
|
616
791
|
var localRequestAnimationFrame = typeof requestAnimationFrame === 'function' ? requestAnimationFrame : undefined;
|
|
617
792
|
var localCancelAnimationFrame = typeof cancelAnimationFrame === 'function' ? cancelAnimationFrame : undefined;
|
|
618
793
|
|
|
619
|
-
var
|
|
794
|
+
var getCurrentTime;
|
|
795
|
+
|
|
796
|
+
// requestAnimationFrame does not run when the tab is in the background. If
|
|
797
|
+
// we're backgrounded we prefer for that work to happen so that the page
|
|
798
|
+
// continues to load in the background. So we also schedule a 'setTimeout' as
|
|
799
|
+
// a fallback.
|
|
800
|
+
// TODO: Need a better heuristic for backgrounded work.
|
|
801
|
+
var ANIMATION_FRAME_TIMEOUT = 100;
|
|
802
|
+
var rAFID;
|
|
803
|
+
var rAFTimeoutID;
|
|
804
|
+
var requestAnimationFrameWithTimeout = function (callback) {
|
|
805
|
+
// schedule rAF and also a setTimeout
|
|
806
|
+
rAFID = localRequestAnimationFrame(function (timestamp) {
|
|
807
|
+
// cancel the setTimeout
|
|
808
|
+
localClearTimeout(rAFTimeoutID);
|
|
809
|
+
callback(timestamp);
|
|
810
|
+
});
|
|
811
|
+
rAFTimeoutID = localSetTimeout(function () {
|
|
812
|
+
// cancel the requestAnimationFrame
|
|
813
|
+
localCancelAnimationFrame(rAFID);
|
|
814
|
+
callback(getCurrentTime());
|
|
815
|
+
}, ANIMATION_FRAME_TIMEOUT);
|
|
816
|
+
};
|
|
620
817
|
|
|
621
|
-
var now = void 0;
|
|
622
818
|
if (hasNativePerformanceNow) {
|
|
623
819
|
var Performance = performance;
|
|
624
|
-
|
|
820
|
+
getCurrentTime = function () {
|
|
625
821
|
return Performance.now();
|
|
626
822
|
};
|
|
627
823
|
} else {
|
|
628
|
-
|
|
824
|
+
getCurrentTime = function () {
|
|
629
825
|
return localDate.now();
|
|
630
826
|
};
|
|
631
827
|
}
|
|
632
828
|
|
|
633
|
-
var
|
|
634
|
-
var
|
|
829
|
+
var requestCallback;
|
|
830
|
+
var cancelCallback;
|
|
831
|
+
var getFrameDeadline;
|
|
635
832
|
|
|
636
|
-
if (
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
scheduledCallback: callback,
|
|
643
|
-
timeoutTime: 0,
|
|
644
|
-
next: null,
|
|
645
|
-
prev: null
|
|
646
|
-
};
|
|
647
|
-
var timeoutId = localSetTimeout(function () {
|
|
648
|
-
callback({
|
|
649
|
-
timeRemaining: function () {
|
|
650
|
-
return Infinity;
|
|
651
|
-
},
|
|
652
|
-
|
|
653
|
-
didTimeout: false
|
|
654
|
-
});
|
|
655
|
-
});
|
|
656
|
-
timeoutIds.set(callback, timeoutId);
|
|
657
|
-
return callbackConfig;
|
|
833
|
+
if (typeof window === 'undefined') {
|
|
834
|
+
// If this accidentally gets imported in a non-browser environment, fallback
|
|
835
|
+
// to a naive implementation.
|
|
836
|
+
var timeoutID = -1;
|
|
837
|
+
requestCallback = function (callback, absoluteTimeout) {
|
|
838
|
+
timeoutID = setTimeout(callback, 0, true);
|
|
658
839
|
};
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
var timeoutId = timeoutIds.get(callback);
|
|
662
|
-
timeoutIds.delete(callbackId);
|
|
663
|
-
localClearTimeout(timeoutId);
|
|
840
|
+
cancelCallback = function () {
|
|
841
|
+
clearTimeout(timeoutID);
|
|
664
842
|
};
|
|
843
|
+
getFrameDeadline = function () {
|
|
844
|
+
return 0;
|
|
845
|
+
};
|
|
846
|
+
} else if (window._schedMock) {
|
|
847
|
+
// Dynamic injection, only for testing purposes.
|
|
848
|
+
var impl = window._schedMock;
|
|
849
|
+
requestCallback = impl[0];
|
|
850
|
+
cancelCallback = impl[1];
|
|
851
|
+
getFrameDeadline = impl[2];
|
|
665
852
|
} else {
|
|
666
|
-
{
|
|
667
|
-
if (typeof
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
673
|
-
}
|
|
853
|
+
if (typeof console !== 'undefined') {
|
|
854
|
+
if (typeof localRequestAnimationFrame !== 'function') {
|
|
855
|
+
console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
856
|
+
}
|
|
857
|
+
if (typeof localCancelAnimationFrame !== 'function') {
|
|
858
|
+
console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
|
|
674
859
|
}
|
|
675
860
|
}
|
|
676
861
|
|
|
677
|
-
var
|
|
678
|
-
var tailOfPendingCallbacksLinkedList = null;
|
|
679
|
-
|
|
680
|
-
// We track what the next soonest timeoutTime is, to be able to quickly tell
|
|
681
|
-
// if none of the scheduled callbacks have timed out.
|
|
682
|
-
var nextSoonestTimeoutTime = -1;
|
|
683
|
-
|
|
862
|
+
var scheduledCallback = null;
|
|
684
863
|
var isIdleScheduled = false;
|
|
864
|
+
var timeoutTime = -1;
|
|
865
|
+
|
|
685
866
|
var isAnimationFrameScheduled = false;
|
|
686
867
|
|
|
687
|
-
|
|
688
|
-
// if we're backgrounded we prefer for that work to happen so that the page
|
|
689
|
-
// continues to load in the background.
|
|
690
|
-
// so we also schedule a 'setTimeout' as a fallback.
|
|
691
|
-
var animationFrameTimeout = 100;
|
|
692
|
-
var rafID = void 0;
|
|
693
|
-
var timeoutID = void 0;
|
|
694
|
-
var scheduleAnimationFrameWithFallbackSupport = function (callback) {
|
|
695
|
-
// schedule rAF and also a setTimeout
|
|
696
|
-
rafID = localRequestAnimationFrame(function (timestamp) {
|
|
697
|
-
// cancel the setTimeout
|
|
698
|
-
localClearTimeout(timeoutID);
|
|
699
|
-
callback(timestamp);
|
|
700
|
-
});
|
|
701
|
-
timeoutID = localSetTimeout(function () {
|
|
702
|
-
// cancel the requestAnimationFrame
|
|
703
|
-
localCancelAnimationFrame(rafID);
|
|
704
|
-
callback(now());
|
|
705
|
-
}, animationFrameTimeout);
|
|
706
|
-
};
|
|
868
|
+
var isPerformingIdleWork = false;
|
|
707
869
|
|
|
708
870
|
var frameDeadline = 0;
|
|
709
871
|
// We start out assuming that we run at 30fps but then the heuristic tracking
|
|
@@ -712,93 +874,8 @@ if (!canUseDOM) {
|
|
|
712
874
|
var previousFrameTime = 33;
|
|
713
875
|
var activeFrameTime = 33;
|
|
714
876
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
timeRemaining: function () {
|
|
718
|
-
var remaining = frameDeadline - now();
|
|
719
|
-
return remaining > 0 ? remaining : 0;
|
|
720
|
-
}
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Handles the case where a callback errors:
|
|
725
|
-
* - don't catch the error, because this changes debugging behavior
|
|
726
|
-
* - do start a new postMessage callback, to call any remaining callbacks,
|
|
727
|
-
* - but only if there is an error, so there is not extra overhead.
|
|
728
|
-
*/
|
|
729
|
-
var callUnsafely = function (callbackConfig, arg) {
|
|
730
|
-
var callback = callbackConfig.scheduledCallback;
|
|
731
|
-
var finishedCalling = false;
|
|
732
|
-
try {
|
|
733
|
-
callback(arg);
|
|
734
|
-
finishedCalling = true;
|
|
735
|
-
} finally {
|
|
736
|
-
// always remove it from linked list
|
|
737
|
-
cancelScheduledWork(callbackConfig);
|
|
738
|
-
|
|
739
|
-
if (!finishedCalling) {
|
|
740
|
-
// an error must have been thrown
|
|
741
|
-
isIdleScheduled = true;
|
|
742
|
-
window.postMessage(messageKey, '*');
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
};
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Checks for timed out callbacks, runs them, and then checks again to see if
|
|
749
|
-
* any more have timed out.
|
|
750
|
-
* Keeps doing this until there are none which have currently timed out.
|
|
751
|
-
*/
|
|
752
|
-
var callTimedOutCallbacks = function () {
|
|
753
|
-
if (headOfPendingCallbacksLinkedList === null) {
|
|
754
|
-
return;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
var currentTime = now();
|
|
758
|
-
// TODO: this would be more efficient if deferred callbacks are stored in
|
|
759
|
-
// min heap.
|
|
760
|
-
// Or in a linked list with links for both timeoutTime order and insertion
|
|
761
|
-
// order.
|
|
762
|
-
// For now an easy compromise is the current approach:
|
|
763
|
-
// Keep a pointer to the soonest timeoutTime, and check that first.
|
|
764
|
-
// If it has not expired, we can skip traversing the whole list.
|
|
765
|
-
// If it has expired, then we step through all the callbacks.
|
|
766
|
-
if (nextSoonestTimeoutTime === -1 || nextSoonestTimeoutTime > currentTime) {
|
|
767
|
-
// We know that none of them have timed out yet.
|
|
768
|
-
return;
|
|
769
|
-
}
|
|
770
|
-
// NOTE: we intentionally wait to update the nextSoonestTimeoutTime until
|
|
771
|
-
// after successfully calling any timed out callbacks.
|
|
772
|
-
// If a timed out callback throws an error, we could get stuck in a state
|
|
773
|
-
// where the nextSoonestTimeoutTime was set wrong.
|
|
774
|
-
var updatedNextSoonestTimeoutTime = -1; // we will update nextSoonestTimeoutTime below
|
|
775
|
-
var timedOutCallbacks = [];
|
|
776
|
-
|
|
777
|
-
// iterate once to find timed out callbacks and find nextSoonestTimeoutTime
|
|
778
|
-
var currentCallbackConfig = headOfPendingCallbacksLinkedList;
|
|
779
|
-
while (currentCallbackConfig !== null) {
|
|
780
|
-
var _timeoutTime = currentCallbackConfig.timeoutTime;
|
|
781
|
-
if (_timeoutTime !== -1 && _timeoutTime <= currentTime) {
|
|
782
|
-
// it has timed out!
|
|
783
|
-
timedOutCallbacks.push(currentCallbackConfig);
|
|
784
|
-
} else {
|
|
785
|
-
if (_timeoutTime !== -1 && (updatedNextSoonestTimeoutTime === -1 || _timeoutTime < updatedNextSoonestTimeoutTime)) {
|
|
786
|
-
updatedNextSoonestTimeoutTime = _timeoutTime;
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
currentCallbackConfig = currentCallbackConfig.next;
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
if (timedOutCallbacks.length > 0) {
|
|
793
|
-
frameDeadlineObject.didTimeout = true;
|
|
794
|
-
for (var i = 0, len = timedOutCallbacks.length; i < len; i++) {
|
|
795
|
-
callUnsafely(timedOutCallbacks[i], frameDeadlineObject);
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
// NOTE: we intentionally wait to update the nextSoonestTimeoutTime until
|
|
800
|
-
// after successfully calling any timed out callbacks.
|
|
801
|
-
nextSoonestTimeoutTime = updatedNextSoonestTimeoutTime;
|
|
877
|
+
getFrameDeadline = function () {
|
|
878
|
+
return frameDeadline;
|
|
802
879
|
};
|
|
803
880
|
|
|
804
881
|
// We use the postMessage trick to defer idle work until after the repaint.
|
|
@@ -807,29 +884,40 @@ if (!canUseDOM) {
|
|
|
807
884
|
if (event.source !== window || event.data !== messageKey) {
|
|
808
885
|
return;
|
|
809
886
|
}
|
|
810
|
-
isIdleScheduled = false;
|
|
811
887
|
|
|
812
|
-
|
|
813
|
-
return;
|
|
814
|
-
}
|
|
888
|
+
isIdleScheduled = false;
|
|
815
889
|
|
|
816
|
-
|
|
817
|
-
callTimedOutCallbacks();
|
|
890
|
+
var currentTime = getCurrentTime();
|
|
818
891
|
|
|
819
|
-
var
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
892
|
+
var didTimeout = false;
|
|
893
|
+
if (frameDeadline - currentTime <= 0) {
|
|
894
|
+
// There's no time left in this idle period. Check if the callback has
|
|
895
|
+
// a timeout and whether it's been exceeded.
|
|
896
|
+
if (timeoutTime !== -1 && timeoutTime <= currentTime) {
|
|
897
|
+
// Exceeded the timeout. Invoke the callback even though there's no
|
|
898
|
+
// time left.
|
|
899
|
+
didTimeout = true;
|
|
900
|
+
} else {
|
|
901
|
+
// No timeout.
|
|
902
|
+
if (!isAnimationFrameScheduled) {
|
|
903
|
+
// Schedule another animation callback so we retry later.
|
|
904
|
+
isAnimationFrameScheduled = true;
|
|
905
|
+
requestAnimationFrameWithTimeout(animationTick);
|
|
906
|
+
}
|
|
907
|
+
// Exit without invoking the callback.
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
827
910
|
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
911
|
+
|
|
912
|
+
timeoutTime = -1;
|
|
913
|
+
var callback = scheduledCallback;
|
|
914
|
+
scheduledCallback = null;
|
|
915
|
+
if (callback !== null) {
|
|
916
|
+
isPerformingIdleWork = true;
|
|
917
|
+
try {
|
|
918
|
+
callback(didTimeout);
|
|
919
|
+
} finally {
|
|
920
|
+
isPerformingIdleWork = false;
|
|
833
921
|
}
|
|
834
922
|
}
|
|
835
923
|
};
|
|
@@ -864,109 +952,27 @@ if (!canUseDOM) {
|
|
|
864
952
|
}
|
|
865
953
|
};
|
|
866
954
|
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
var scheduledCallbackConfig = {
|
|
877
|
-
scheduledCallback: callback,
|
|
878
|
-
timeoutTime: timeoutTime,
|
|
879
|
-
prev: null,
|
|
880
|
-
next: null
|
|
881
|
-
};
|
|
882
|
-
if (headOfPendingCallbacksLinkedList === null) {
|
|
883
|
-
// Make this callback the head and tail of our list
|
|
884
|
-
headOfPendingCallbacksLinkedList = scheduledCallbackConfig;
|
|
885
|
-
tailOfPendingCallbacksLinkedList = scheduledCallbackConfig;
|
|
886
|
-
} else {
|
|
887
|
-
// Add latest callback as the new tail of the list
|
|
888
|
-
scheduledCallbackConfig.prev = tailOfPendingCallbacksLinkedList;
|
|
889
|
-
// renaming for clarity
|
|
890
|
-
var oldTailOfPendingCallbacksLinkedList = tailOfPendingCallbacksLinkedList;
|
|
891
|
-
if (oldTailOfPendingCallbacksLinkedList !== null) {
|
|
892
|
-
oldTailOfPendingCallbacksLinkedList.next = scheduledCallbackConfig;
|
|
893
|
-
}
|
|
894
|
-
tailOfPendingCallbacksLinkedList = scheduledCallbackConfig;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
if (!isAnimationFrameScheduled) {
|
|
955
|
+
requestCallback = function (callback, absoluteTimeout) {
|
|
956
|
+
scheduledCallback = callback;
|
|
957
|
+
timeoutTime = absoluteTimeout;
|
|
958
|
+
if (isPerformingIdleWork) {
|
|
959
|
+
// If we're already performing idle work, an error must have been thrown.
|
|
960
|
+
// Don't wait for the next frame. Continue working ASAP, in a new event.
|
|
961
|
+
window.postMessage(messageKey, '*');
|
|
962
|
+
} else if (!isAnimationFrameScheduled) {
|
|
898
963
|
// If rAF didn't already schedule one, we need to schedule a frame.
|
|
899
964
|
// TODO: If this rAF doesn't materialize because the browser throttles, we
|
|
900
|
-
// might want to still have setTimeout trigger
|
|
965
|
+
// might want to still have setTimeout trigger rIC as a backup to ensure
|
|
901
966
|
// that we keep performing work.
|
|
902
967
|
isAnimationFrameScheduled = true;
|
|
903
|
-
|
|
968
|
+
requestAnimationFrameWithTimeout(animationTick);
|
|
904
969
|
}
|
|
905
|
-
return scheduledCallbackConfig;
|
|
906
970
|
};
|
|
907
971
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
// cancelScheduledWork should be idempotent, a no-op after first call.
|
|
913
|
-
return;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* There are four possible cases:
|
|
918
|
-
* - Head/nodeToRemove/Tail -> null
|
|
919
|
-
* In this case we set Head and Tail to null.
|
|
920
|
-
* - Head -> ... middle nodes... -> Tail/nodeToRemove
|
|
921
|
-
* In this case we point the middle.next to null and put middle as the new
|
|
922
|
-
* Tail.
|
|
923
|
-
* - Head/nodeToRemove -> ...middle nodes... -> Tail
|
|
924
|
-
* In this case we point the middle.prev at null and move the Head to
|
|
925
|
-
* middle.
|
|
926
|
-
* - Head -> ... ?some nodes ... -> nodeToRemove -> ... ?some nodes ... -> Tail
|
|
927
|
-
* In this case we point the Head.next to the Tail and the Tail.prev to
|
|
928
|
-
* the Head.
|
|
929
|
-
*/
|
|
930
|
-
var next = callbackConfig.next;
|
|
931
|
-
var prev = callbackConfig.prev;
|
|
932
|
-
callbackConfig.next = null;
|
|
933
|
-
callbackConfig.prev = null;
|
|
934
|
-
if (next !== null) {
|
|
935
|
-
// we have a next
|
|
936
|
-
|
|
937
|
-
if (prev !== null) {
|
|
938
|
-
// we have a prev
|
|
939
|
-
|
|
940
|
-
// callbackConfig is somewhere in the middle of a list of 3 or more nodes.
|
|
941
|
-
prev.next = next;
|
|
942
|
-
next.prev = prev;
|
|
943
|
-
return;
|
|
944
|
-
} else {
|
|
945
|
-
// there is a next but not a previous one;
|
|
946
|
-
// callbackConfig is the head of a list of 2 or more other nodes.
|
|
947
|
-
next.prev = null;
|
|
948
|
-
headOfPendingCallbacksLinkedList = next;
|
|
949
|
-
return;
|
|
950
|
-
}
|
|
951
|
-
} else {
|
|
952
|
-
// there is no next callback config; this must the tail of the list
|
|
953
|
-
|
|
954
|
-
if (prev !== null) {
|
|
955
|
-
// we have a prev
|
|
956
|
-
|
|
957
|
-
// callbackConfig is the tail of a list of 2 or more other nodes.
|
|
958
|
-
prev.next = null;
|
|
959
|
-
tailOfPendingCallbacksLinkedList = prev;
|
|
960
|
-
return;
|
|
961
|
-
} else {
|
|
962
|
-
// there is no previous callback config;
|
|
963
|
-
// callbackConfig is the only thing in the linked list,
|
|
964
|
-
// so both head and tail point to it.
|
|
965
|
-
headOfPendingCallbacksLinkedList = null;
|
|
966
|
-
tailOfPendingCallbacksLinkedList = null;
|
|
967
|
-
return;
|
|
968
|
-
}
|
|
969
|
-
}
|
|
972
|
+
cancelCallback = function () {
|
|
973
|
+
scheduledCallback = null;
|
|
974
|
+
isIdleScheduled = false;
|
|
975
|
+
timeoutTime = -1;
|
|
970
976
|
};
|
|
971
977
|
}
|
|
972
978
|
|
|
@@ -976,16 +982,16 @@ var DEFAULT_THREAD_ID = 0;
|
|
|
976
982
|
var interactionIDCounter = 0;
|
|
977
983
|
var threadIDCounter = 0;
|
|
978
984
|
|
|
979
|
-
// Set of currently
|
|
985
|
+
// Set of currently traced interactions.
|
|
980
986
|
// Interactions "stack"–
|
|
981
|
-
// Meaning that newly
|
|
987
|
+
// Meaning that newly traced interactions are appended to the previously active set.
|
|
982
988
|
// When an interaction goes out of scope, the previous set (if any) is restored.
|
|
983
989
|
var interactionsRef = null;
|
|
984
990
|
|
|
985
991
|
// Listener(s) to notify when interactions begin and end.
|
|
986
992
|
var subscriberRef = null;
|
|
987
993
|
|
|
988
|
-
if (
|
|
994
|
+
if (enableSchedulerTracing) {
|
|
989
995
|
interactionsRef = {
|
|
990
996
|
current: new Set()
|
|
991
997
|
};
|
|
@@ -995,7 +1001,7 @@ if (enableSchedulerTracking) {
|
|
|
995
1001
|
}
|
|
996
1002
|
|
|
997
1003
|
function unstable_clear(callback) {
|
|
998
|
-
if (!
|
|
1004
|
+
if (!enableSchedulerTracing) {
|
|
999
1005
|
return callback();
|
|
1000
1006
|
}
|
|
1001
1007
|
|
|
@@ -1010,7 +1016,7 @@ function unstable_clear(callback) {
|
|
|
1010
1016
|
}
|
|
1011
1017
|
|
|
1012
1018
|
function unstable_getCurrent() {
|
|
1013
|
-
if (!
|
|
1019
|
+
if (!enableSchedulerTracing) {
|
|
1014
1020
|
return null;
|
|
1015
1021
|
} else {
|
|
1016
1022
|
return interactionsRef.current;
|
|
@@ -1021,10 +1027,10 @@ function unstable_getThreadID() {
|
|
|
1021
1027
|
return ++threadIDCounter;
|
|
1022
1028
|
}
|
|
1023
1029
|
|
|
1024
|
-
function
|
|
1030
|
+
function unstable_trace(name, timestamp, callback) {
|
|
1025
1031
|
var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
|
|
1026
1032
|
|
|
1027
|
-
if (!
|
|
1033
|
+
if (!enableSchedulerTracing) {
|
|
1028
1034
|
return callback();
|
|
1029
1035
|
}
|
|
1030
1036
|
|
|
@@ -1037,7 +1043,7 @@ function unstable_track(name, timestamp, callback) {
|
|
|
1037
1043
|
|
|
1038
1044
|
var prevInteractions = interactionsRef.current;
|
|
1039
1045
|
|
|
1040
|
-
//
|
|
1046
|
+
// Traced interactions should stack/accumulate.
|
|
1041
1047
|
// To do that, clone the current interactions.
|
|
1042
1048
|
// The previous set will be restored upon completion.
|
|
1043
1049
|
var interactions = new Set(prevInteractions);
|
|
@@ -1049,7 +1055,7 @@ function unstable_track(name, timestamp, callback) {
|
|
|
1049
1055
|
|
|
1050
1056
|
try {
|
|
1051
1057
|
if (subscriber !== null) {
|
|
1052
|
-
subscriber.
|
|
1058
|
+
subscriber.onInteractionTraced(interaction);
|
|
1053
1059
|
}
|
|
1054
1060
|
} finally {
|
|
1055
1061
|
try {
|
|
@@ -1085,7 +1091,7 @@ function unstable_track(name, timestamp, callback) {
|
|
|
1085
1091
|
function unstable_wrap(callback) {
|
|
1086
1092
|
var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
|
|
1087
1093
|
|
|
1088
|
-
if (!
|
|
1094
|
+
if (!enableSchedulerTracing) {
|
|
1089
1095
|
return callback;
|
|
1090
1096
|
}
|
|
1091
1097
|
|
|
@@ -1176,18 +1182,18 @@ function unstable_wrap(callback) {
|
|
|
1176
1182
|
}
|
|
1177
1183
|
|
|
1178
1184
|
var subscribers = null;
|
|
1179
|
-
if (
|
|
1185
|
+
if (enableSchedulerTracing) {
|
|
1180
1186
|
subscribers = new Set();
|
|
1181
1187
|
}
|
|
1182
1188
|
|
|
1183
1189
|
function unstable_subscribe(subscriber) {
|
|
1184
|
-
if (
|
|
1190
|
+
if (enableSchedulerTracing) {
|
|
1185
1191
|
subscribers.add(subscriber);
|
|
1186
1192
|
|
|
1187
1193
|
if (subscribers.size === 1) {
|
|
1188
1194
|
subscriberRef.current = {
|
|
1189
1195
|
onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
|
|
1190
|
-
|
|
1196
|
+
onInteractionTraced: onInteractionTraced,
|
|
1191
1197
|
onWorkCanceled: onWorkCanceled,
|
|
1192
1198
|
onWorkScheduled: onWorkScheduled,
|
|
1193
1199
|
onWorkStarted: onWorkStarted,
|
|
@@ -1198,7 +1204,7 @@ function unstable_subscribe(subscriber) {
|
|
|
1198
1204
|
}
|
|
1199
1205
|
|
|
1200
1206
|
function unstable_unsubscribe(subscriber) {
|
|
1201
|
-
if (
|
|
1207
|
+
if (enableSchedulerTracing) {
|
|
1202
1208
|
subscribers.delete(subscriber);
|
|
1203
1209
|
|
|
1204
1210
|
if (subscribers.size === 0) {
|
|
@@ -1207,13 +1213,13 @@ function unstable_unsubscribe(subscriber) {
|
|
|
1207
1213
|
}
|
|
1208
1214
|
}
|
|
1209
1215
|
|
|
1210
|
-
function
|
|
1216
|
+
function onInteractionTraced(interaction) {
|
|
1211
1217
|
var didCatchError = false;
|
|
1212
1218
|
var caughtError = null;
|
|
1213
1219
|
|
|
1214
1220
|
subscribers.forEach(function (subscriber) {
|
|
1215
1221
|
try {
|
|
1216
|
-
subscriber.
|
|
1222
|
+
subscriber.onInteractionTraced(interaction);
|
|
1217
1223
|
} catch (error) {
|
|
1218
1224
|
if (!didCatchError) {
|
|
1219
1225
|
didCatchError = true;
|
|
@@ -1479,18 +1485,18 @@ var ReactSharedInternals = {
|
|
|
1479
1485
|
// CJS bundles use the shared NPM package.
|
|
1480
1486
|
objectAssign(ReactSharedInternals, {
|
|
1481
1487
|
Schedule: {
|
|
1482
|
-
unstable_cancelScheduledWork:
|
|
1483
|
-
unstable_now:
|
|
1484
|
-
unstable_scheduleWork:
|
|
1488
|
+
unstable_cancelScheduledWork: unstable_cancelScheduledWork,
|
|
1489
|
+
unstable_now: getCurrentTime,
|
|
1490
|
+
unstable_scheduleWork: unstable_scheduleWork
|
|
1485
1491
|
},
|
|
1486
|
-
|
|
1492
|
+
ScheduleTracing: {
|
|
1487
1493
|
__interactionsRef: interactionsRef,
|
|
1488
1494
|
__subscriberRef: subscriberRef,
|
|
1489
1495
|
unstable_clear: unstable_clear,
|
|
1490
1496
|
unstable_getCurrent: unstable_getCurrent,
|
|
1491
1497
|
unstable_getThreadID: unstable_getThreadID,
|
|
1492
1498
|
unstable_subscribe: unstable_subscribe,
|
|
1493
|
-
|
|
1499
|
+
unstable_trace: unstable_trace,
|
|
1494
1500
|
unstable_unsubscribe: unstable_unsubscribe,
|
|
1495
1501
|
unstable_wrap: unstable_wrap
|
|
1496
1502
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.5.
|
|
1
|
+
/** @license React v16.5.2
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6,22 +6,23 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(
|
|
10
|
-
1;throw a;}}function
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"":
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
a,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
function(){return null},
|
|
26
|
-
|
|
27
|
-
|
|
9
|
+
'use strict';(function(D,k){"object"===typeof exports&&"undefined"!==typeof module?module.exports=k():"function"===typeof define&&define.amd?define(k):D.React=k()})(this,function(){function D(a,b,c,d,g,na,e,h){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[c,d,g,na,e,h],oa=0;a=Error(b.replace(/%s/g,function(){return f[oa++]}));a.name="Invariant Violation"}a.framesToPop=
|
|
10
|
+
1;throw a;}}function k(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);D(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function p(a,b,c){this.props=a;this.context=b;this.refs=S;this.updater=c||T}function U(){}function E(a,b,c){this.props=a;this.context=b;this.refs=S;this.updater=c||T}
|
|
11
|
+
function F(){if(!G){var a=e.timesOutAt;H?I():H=!0;J(pa,a)}}function V(a){a=e;var b=e.next;if(e===b)e=null;else{var c=e.previous;e=c.next=b;b.previous=c}a.next=a.previous=null;a=a.callback;a(W)}function pa(a){G=!0;W.didTimeout=a;try{if(a)for(;null!==e;){var b=m();if(e.timesOutAt<=b){do V();while(null!==e&&e.timesOutAt<=b)}else break}else if(null!==e){do V();while(null!==e&&0<q()-m())}}finally{G=!1,null!==e?F(e):H=!1}}function X(a,b,c){var d=void 0,g={},e=null,f=null;if(null!=b)for(d in void 0!==b.ref&&
|
|
12
|
+
(f=b.ref),void 0!==b.key&&(e=""+b.key),b)Y.call(b,d)&&!Z.hasOwnProperty(d)&&(g[d]=b[d]);var h=arguments.length-2;if(1===h)g.children=c;else if(1<h){for(var k=Array(h),n=0;n<h;n++)k[n]=arguments[n+2];g.children=k}if(a&&a.defaultProps)for(d in h=a.defaultProps,h)void 0===g[d]&&(g[d]=h[d]);return{$$typeof:r,type:a,key:e,ref:f,props:g,_owner:w.current}}function qa(a,b){return{$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function K(a){return"object"===typeof a&&null!==a&&a.$$typeof===
|
|
13
|
+
r}function ra(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function aa(a,b,c,d){if(x.length){var g=x.pop();g.result=a;g.keyPrefix=b;g.func=c;g.context=d;g.count=0;return g}return{result:a,keyPrefix:b,func:c,context:d,count:0}}function ba(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>x.length&&x.push(a)}function L(a,b,c,d){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var e=!1;if(null===a)e=!0;else switch(g){case "string":case "number":e=
|
|
14
|
+
!0;break;case "object":switch(a.$$typeof){case r:case sa:e=!0}}if(e)return c(d,a,""===b?"."+M(a,0):b),1;e=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){g=a[f];var h=b+M(g,f);e+=L(g,h,c,d)}else if(null===a||"object"!==typeof a?h=null:(h=ca&&a[ca]||a["@@iterator"],h="function"===typeof h?h:null),"function"===typeof h)for(a=h.call(a),f=0;!(g=a.next()).done;)g=g.value,h=b+M(g,f++),e+=L(g,h,c,d);else"object"===g&&(c=""+a,k("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+
|
|
15
|
+
"}":c,""));return e}function N(a,b,c){return null==a?0:L(a,"",b,c)}function M(a,b){return"object"===typeof a&&null!==a&&null!=a.key?ra(a.key):b.toString(36)}function ta(a,b,c){a.func.call(a.context,b,a.count++)}function ua(a,b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?O(a,d,c,function(a){return a}):null!=a&&(K(a)&&(a=qa(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(da,"$&/")+"/")+c)),d.push(a))}function O(a,b,c,d,e){var g="";null!=c&&(g=(""+c).replace(da,
|
|
16
|
+
"$&/")+"/");b=aa(b,g,d,e);N(a,ua,b);ba(b)}function va(a,b){var c=w.currentDispatcher;null===c?k("277"):void 0;return c.readContext(a,b)}var f="function"===typeof Symbol&&Symbol.for,r=f?Symbol.for("react.element"):60103,sa=f?Symbol.for("react.portal"):60106,l=f?Symbol.for("react.fragment"):60107,P=f?Symbol.for("react.strict_mode"):60108,wa=f?Symbol.for("react.profiler"):60114,xa=f?Symbol.for("react.provider"):60109,ya=f?Symbol.for("react.context"):60110,za=f?Symbol.for("react.async_mode"):60111,Aa=
|
|
17
|
+
f?Symbol.for("react.forward_ref"):60112;f&&Symbol.for("react.placeholder");var ca="function"===typeof Symbol&&Symbol.iterator,ea=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,Ca=Object.prototype.propertyIsEnumerable,y=function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;
|
|
18
|
+
var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var k in f)Ba.call(f,k)&&(c[k]=f[k]);if(ea){d=ea(f);for(var h=0;h<d.length;h++)Ca.call(f,d[h])&&(c[d[h]]=f[d[h]])}}return c},
|
|
19
|
+
T={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},S={};p.prototype.isReactComponent={};p.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?k("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};p.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};U.prototype=p.prototype;f=E.prototype=new U;f.constructor=E;y(f,p.prototype);
|
|
20
|
+
f.isPureReactComponent=!0;var e=null,G=!1,H=!1;f="object"===typeof performance&&"function"===typeof performance.now;var W={timeRemaining:f?function(){var a=q()-performance.now();return 0<a?a:0}:function(){var a=q()-Date.now();return 0<a?a:0},didTimeout:!1},Da=Date,Ea="function"===typeof setTimeout?setTimeout:void 0,Fa="function"===typeof clearTimeout?clearTimeout:void 0,fa="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,ha="function"===typeof cancelAnimationFrame?cancelAnimationFrame:
|
|
21
|
+
void 0,ia,ja,ka=function(a){ia=fa(function(b){Fa(ja);a(b)});ja=Ea(function(){ha(ia);a(m())},100)};if(f){var Ga=performance;var m=function(){return Ga.now()}}else m=function(){return Da.now()};if("undefined"===typeof window){var la=-1;var J=function(a,b){la=setTimeout(a,0,!0)};var I=function(){clearTimeout(la)};var q=function(){return 0}}else if(window._schedMock)f=window._schedMock,J=f[0],I=f[1],q=f[2];else{"undefined"!==typeof console&&("function"!==typeof fa&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),
|
|
22
|
+
"function"!==typeof ha&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var z=null,A=!1,t=-1,u=!1,Q=!1,B=0,C=33,v=33;q=function(){return B};var R="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){if(a.source===window&&a.data===R){A=!1;var b=m();a=!1;if(0>=B-b)if(-1!==t&&t<=b)a=!0;else{u||(u=!0,ka(ma));return}t=-1;b=z;z=null;if(null!==b){Q=
|
|
23
|
+
!0;try{b(a)}finally{Q=!1}}}},!1);var ma=function(a){u=!1;var b=a-B+v;b<v&&C<v?(8>b&&(b=8),v=b<C?C:b):C=b;B=a+v;A||(A=!0,window.postMessage(R,"*"))};J=function(a,b){z=a;t=b;Q?window.postMessage(R,"*"):u||(u=!0,ka(ma))};I=function(){z=null;A=!1;t=-1}}var Ha=0,w={current:null,currentDispatcher:null};f={ReactCurrentOwner:w,assign:y};y(f,{Schedule:{unstable_cancelScheduledWork:function(a){var b=a.next;if(null!==b){if(b===a)e=null;else{a===e&&(e=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=
|
|
24
|
+
null}},unstable_now:m,unstable_scheduleWork:function(a,b){var c=m();b=void 0!==b&&null!==b&&null!==b.timeout&&void 0!==b.timeout?c+b.timeout:c+5E3;a={callback:a,timesOutAt:b,next:null,previous:null};if(null===e)e=a.next=a.previous=a,F(e);else{c=null;var d=e;do{if(d.timesOutAt>b){c=d;break}d=d.next}while(d!==e);null===c?c=e:c===e&&(e=a,F(e));b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a}},ScheduleTracing:{__interactionsRef:null,__subscriberRef:null,unstable_clear:function(a){return a()},
|
|
25
|
+
unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Ha},unstable_subscribe:function(a){},unstable_trace:function(a,b,c){return c()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var Y=Object.prototype.hasOwnProperty,Z={key:!0,ref:!0,__self:!0,__source:!0},da=/\/+/g,x=[];l={Children:{map:function(a,b,c){if(null==a)return a;var d=[];O(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=aa(null,null,b,c);N(a,ta,b);ba(b)},count:function(a){return N(a,
|
|
26
|
+
function(){return null},null)},toArray:function(a){var b=[];O(a,b,null,function(a){return a});return b},only:function(a){K(a)?void 0:k("143");return a}},createRef:function(){return{current:null}},Component:p,PureComponent:E,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:ya,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:xa,_context:a};a.Consumer=a;a.unstable_read=va.bind(null,a);return a},forwardRef:function(a){return{$$typeof:Aa,
|
|
27
|
+
render:a}},Fragment:l,StrictMode:P,unstable_AsyncMode:za,unstable_Profiler:wa,createElement:X,cloneElement:function(a,b,c){null===a||void 0===a?k("267",a):void 0;var d=void 0,e=y({},a.props),f=a.key,m=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(m=b.ref,h=w.current);void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(d in b)Y.call(b,d)&&!Z.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==l?l[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<
|
|
28
|
+
d){l=Array(d);for(var n=0;n<d;n++)l[n]=arguments[n+2];e.children=l}return{$$typeof:r,type:a.type,key:f,ref:m,props:e,_owner:h}},createFactory:function(a){var b=X.bind(null,a);b.type=a;return b},isValidElement:K,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:f};l=(P={default:l},l)||P;return l.default||l});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** @license React v16.5.2
|
|
2
|
+
* react.profiling.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
'use strict';(function(H,n){"object"===typeof exports&&"undefined"!==typeof module?module.exports=n():"function"===typeof define&&define.amd?define(n):H.React=n()})(this,function(){function H(a,b,c,d,e,k,z,g){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[c,d,e,k,z,g],h=0;a=Error(b.replace(/%s/g,function(){return f[h++]}));a.name="Invariant Violation"}a.framesToPop=1;
|
|
10
|
+
throw a;}}function n(a){for(var b=arguments.length-1,c="https://reactjs.org/docs/error-decoder.html?invariant="+a,d=0;d<b;d++)c+="&args[]="+encodeURIComponent(arguments[d+1]);H(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",c)}function t(a,b,c){this.props=a;this.context=b;this.refs=X;this.updater=c||Y}function Z(){}function I(a,b,c){this.props=a;this.context=b;this.refs=X;this.updater=c||Y}function J(){if(!K){var a=
|
|
11
|
+
f.timesOutAt;L?M():L=!0;N(sa,a)}}function aa(a){a=f;var b=f.next;if(f===b)f=null;else{var c=f.previous;f=c.next=b;b.previous=c}a.next=a.previous=null;a=a.callback;a(ba)}function sa(a){K=!0;ba.didTimeout=a;try{if(a)for(;null!==f;){var b=q();if(f.timesOutAt<=b){do aa();while(null!==f&&f.timesOutAt<=b)}else break}else if(null!==f){do aa();while(null!==f&&0<u()-q())}}finally{K=!1,null!==f?J(f):L=!1}}function ta(a){var b=!1,c=null;m.forEach(function(d){try{d.onInteractionTraced(a)}catch(e){b||(b=!0,c=
|
|
12
|
+
e)}});if(b)throw c;}function ua(a){var b=!1,c=null;m.forEach(function(d){try{d.onInteractionScheduledWorkCompleted(a)}catch(e){b||(b=!0,c=e)}});if(b)throw c;}function va(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkScheduled(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function wa(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkStarted(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function xa(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkStopped(a,b)}catch(k){c||(c=!0,d=k)}});
|
|
13
|
+
if(c)throw d;}function ya(a,b){var c=!1,d=null;m.forEach(function(e){try{e.onWorkCanceled(a,b)}catch(k){c||(c=!0,d=k)}});if(c)throw d;}function ca(a,b,c){var d=void 0,e={},k=null,z=null;if(null!=b)for(d in void 0!==b.ref&&(z=b.ref),void 0!==b.key&&(k=""+b.key),b)da.call(b,d)&&!ea.hasOwnProperty(d)&&(e[d]=b[d]);var g=arguments.length-2;if(1===g)e.children=c;else if(1<g){for(var f=Array(g),h=0;h<g;h++)f[h]=arguments[h+2];e.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===e[d]&&(e[d]=
|
|
14
|
+
g[d]);return{$$typeof:v,type:a,key:k,ref:z,props:e,_owner:A.current}}function za(a,b){return{$$typeof:v,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===v}function Aa(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function fa(a,b,c,d){if(B.length){var e=B.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,keyPrefix:b,func:c,context:d,count:0}}function ha(a){a.result=
|
|
15
|
+
null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>B.length&&B.push(a)}function P(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var k=!1;if(null===a)k=!0;else switch(e){case "string":case "number":k=!0;break;case "object":switch(a.$$typeof){case v:case Ba:k=!0}}if(k)return c(d,a,""===b?"."+Q(a,0):b),1;k=0;b=""===b?".":b+":";if(Array.isArray(a))for(var f=0;f<a.length;f++){e=a[f];var g=b+Q(e,f);k+=P(e,g,c,d)}else if(null===a||"object"!==typeof a?g=null:(g=ia&&a[ia]||a["@@iterator"],
|
|
16
|
+
g="function"===typeof g?g:null),"function"===typeof g)for(a=g.call(a),f=0;!(e=a.next()).done;)e=e.value,g=b+Q(e,f++),k+=P(e,g,c,d);else"object"===e&&(c=""+a,n("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return k}function R(a,b,c){return null==a?0:P(a,"",b,c)}function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?Aa(a.key):b.toString(36)}function Ca(a,b,c){a.func.call(a.context,b,a.count++)}function Da(a,b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,
|
|
17
|
+
b,a.count++);Array.isArray(a)?S(a,d,c,function(a){return a}):null!=a&&(O(a)&&(a=za(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(ja,"$&/")+"/")+c)),d.push(a))}function S(a,b,c,d,e){var k="";null!=c&&(k=(""+c).replace(ja,"$&/")+"/");b=fa(b,k,d,e);R(a,Da,b);ha(b)}function Ea(a,b){var c=A.currentDispatcher;null===c?n("277"):void 0;return c.readContext(a,b)}var h="function"===typeof Symbol&&Symbol.for,v=h?Symbol.for("react.element"):60103,Ba=h?Symbol.for("react.portal"):60106,r=h?Symbol.for("react.fragment"):
|
|
18
|
+
60107,T=h?Symbol.for("react.strict_mode"):60108,Fa=h?Symbol.for("react.profiler"):60114,Ga=h?Symbol.for("react.provider"):60109,Ha=h?Symbol.for("react.context"):60110,Ia=h?Symbol.for("react.async_mode"):60111,Ja=h?Symbol.for("react.forward_ref"):60112;h&&Symbol.for("react.placeholder");var ia="function"===typeof Symbol&&Symbol.iterator,ka=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,La=Object.prototype.propertyIsEnumerable,C=function(){try{if(!Object.assign)return!1;var a=new String("abc");
|
|
19
|
+
a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(d){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
20
|
+
var c=Object(a);for(var d,e=1;e<arguments.length;e++){var k=Object(arguments[e]);for(var f in k)Ka.call(k,f)&&(c[f]=k[f]);if(ka){d=ka(k);for(var g=0;g<d.length;g++)La.call(k,d[g])&&(c[d[g]]=k[d[g]])}}return c},Y={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,b,c,d){},enqueueSetState:function(a,b,c,d){}},X={};t.prototype.isReactComponent={};t.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?n("85"):void 0;this.updater.enqueueSetState(this,
|
|
21
|
+
a,b,"setState")};t.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};Z.prototype=t.prototype;h=I.prototype=new Z;h.constructor=I;C(h,t.prototype);h.isPureReactComponent=!0;var f=null,K=!1,L=!1;h="object"===typeof performance&&"function"===typeof performance.now;var ba={timeRemaining:h?function(){var a=u()-performance.now();return 0<a?a:0}:function(){var a=u()-Date.now();return 0<a?a:0},didTimeout:!1},Ma=Date,Na="function"===typeof setTimeout?setTimeout:void 0,
|
|
22
|
+
Oa="function"===typeof clearTimeout?clearTimeout:void 0,la="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,ma="function"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,na,oa,pa=function(a){na=la(function(b){Oa(oa);a(b)});oa=Na(function(){ma(na);a(q())},100)};if(h){var Pa=performance;var q=function(){return Pa.now()}}else q=function(){return Ma.now()};if("undefined"===typeof window){var qa=-1;var N=function(a,b){qa=setTimeout(a,0,!0)};var M=function(){clearTimeout(qa)};
|
|
23
|
+
var u=function(){return 0}}else if(window._schedMock)h=window._schedMock,N=h[0],M=h[1],u=h[2];else{"undefined"!==typeof console&&("function"!==typeof la&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof ma&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var D=null,E=!1,w=
|
|
24
|
+
-1,x=!1,U=!1,F=0,G=33,y=33;u=function(){return F};var V="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(a){if(a.source===window&&a.data===V){E=!1;var b=q();a=!1;if(0>=F-b)if(-1!==w&&w<=b)a=!0;else{x||(x=!0,pa(ra));return}w=-1;b=D;D=null;if(null!==b){U=!0;try{b(a)}finally{U=!1}}}},!1);var ra=function(a){x=!1;var b=a-F+y;b<y&&G<y?(8>b&&(b=8),y=b<G?G:b):G=b;F=a+y;E||(E=!0,window.postMessage(V,"*"))};N=function(a,b){D=a;w=b;U?window.postMessage(V,
|
|
25
|
+
"*"):x||(x=!0,pa(ra))};M=function(){D=null;E=!1;w=-1}}var Qa=0,Ra=0,l=null,p=null;l={current:new Set};p={current:null};var m=null;m=new Set;var A={current:null,currentDispatcher:null};h={ReactCurrentOwner:A,assign:C};C(h,{Schedule:{unstable_cancelScheduledWork:function(a){var b=a.next;if(null!==b){if(b===a)f=null;else{a===f&&(f=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}},unstable_now:q,unstable_scheduleWork:function(a,b){var c=q();b=void 0!==b&&null!==b&&null!==b.timeout&&void 0!==
|
|
26
|
+
b.timeout?c+b.timeout:c+5E3;a={callback:a,timesOutAt:b,next:null,previous:null};if(null===f)f=a.next=a.previous=a,J(f);else{c=null;var d=f;do{if(d.timesOutAt>b){c=d;break}d=d.next}while(d!==f);null===c?c=f:c===f&&(f=a,J(f));b=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a}},ScheduleTracing:{__interactionsRef:l,__subscriberRef:p,unstable_clear:function(a){var b=l.current;l.current=new Set;try{return a()}finally{l.current=b}},unstable_getCurrent:function(){return l.current},unstable_getThreadID:function(){return++Ra},
|
|
27
|
+
unstable_subscribe:function(a){m.add(a);1===m.size&&(p.current={onInteractionScheduledWorkCompleted:ua,onInteractionTraced:ta,onWorkCanceled:ya,onWorkScheduled:va,onWorkStarted:wa,onWorkStopped:xa})},unstable_trace:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,e={__count:1,id:Qa++,name:a,timestamp:b},f=l.current,h=new Set(f);h.add(e);l.current=h;var g=p.current,W=void 0;try{if(null!==g)g.onInteractionTraced(e)}finally{try{if(null!==g)g.onWorkStarted(h,d)}finally{try{W=
|
|
28
|
+
c()}finally{l.current=f;try{if(null!==g)g.onWorkStopped(h,d)}finally{if(e.__count--,null!==g&&0===e.__count)g.onInteractionScheduledWorkCompleted(e)}}}}return W},unstable_unsubscribe:function(a){m.delete(a);0===m.size&&(p.current=null)},unstable_wrap:function(a){function b(){var b=l.current;l.current=d;e=p.current;try{var g=void 0;try{if(null!==e)e.onWorkStarted(d,c)}finally{try{g=a.apply(void 0,arguments)}finally{if(l.current=b,null!==e)e.onWorkStopped(d,c)}}return g}finally{f||(f=!0,d.forEach(function(a){a.__count--;
|
|
29
|
+
if(null!==e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)}))}}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,d=l.current,e=p.current;if(null!==e)e.onWorkScheduled(d,c);d.forEach(function(a){a.__count++});var f=!1;b.cancel=function(){e=p.current;try{if(null!==e)e.onWorkCanceled(d,c)}finally{d.forEach(function(a){a.__count--;if(e&&0===a.__count)e.onInteractionScheduledWorkCompleted(a)})}};return b}}});var da=Object.prototype.hasOwnProperty,ea={key:!0,ref:!0,__self:!0,__source:!0},
|
|
30
|
+
ja=/\/+/g,B=[];r={Children:{map:function(a,b,c){if(null==a)return a;var d=[];S(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=fa(null,null,b,c);R(a,Ca,b);ha(b)},count:function(a){return R(a,function(){return null},null)},toArray:function(a){var b=[];S(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:n("143");return a}},createRef:function(){return{current:null}},Component:t,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:Ha,
|
|
31
|
+
_calculateChangedBits:b,_currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:Ga,_context:a};a.Consumer=a;a.unstable_read=Ea.bind(null,a);return a},forwardRef:function(a){return{$$typeof:Ja,render:a}},Fragment:r,StrictMode:T,unstable_AsyncMode:Ia,unstable_Profiler:Fa,createElement:ca,cloneElement:function(a,b,c){null===a||void 0===a?n("267",a):void 0;var d=void 0,e=C({},a.props),f=a.key,h=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,g=A.current);
|
|
32
|
+
void 0!==b.key&&(f=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(d in b)da.call(b,d)&&!ea.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==l?l[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<d){l=Array(d);for(var m=0;m<d;m++)l[m]=arguments[m+2];e.children=l}return{$$typeof:v,type:a.type,key:f,ref:h,props:e,_owner:g}},createFactory:function(a){var b=ca.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.5.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:h};
|
|
33
|
+
r=(T={default:r},r)||T;return r.default||r});
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @license React v16.5.1
|
|
2
|
-
* react.profiling.min.js
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
'use strict';var m=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.async_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112;n&&Symbol.for("react.placeholder");
|
|
11
|
-
var z="function"===typeof Symbol&&Symbol.iterator;function A(a,b,d,c,e,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var k=[d,c,e,g,h,f],l=0;a=Error(b.replace(/%s/g,function(){return k[l++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
12
|
-
function B(a){for(var b=arguments.length-1,d="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)d+="&args[]="+encodeURIComponent(arguments[c+1]);A(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",d)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};
|
|
13
|
-
function E(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?B("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||C}var H=G.prototype=new F;
|
|
14
|
-
H.constructor=G;m(H,E.prototype);H.isPureReactComponent=!0;var I={current:null,currentDispatcher:null},J=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};
|
|
15
|
-
function L(a,b,d){var c=void 0,e={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=""+b.key),b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var k=Array(f),l=0;l<f;l++)k[l]=arguments[l+2];e.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:e,_owner:I.current}}
|
|
16
|
-
function M(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,d,c){if(P.length){var e=P.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,func:d,context:c,count:0}}
|
|
17
|
-
function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}
|
|
18
|
-
function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return d(c,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){e=a[h];var f=b+T(e,h);g+=S(e,f,d,c)}else if(null===a||"object"!==typeof a?f=null:(f=z&&a[z]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),h=
|
|
19
|
-
0;!(e=a.next()).done;)e=e.value,f=b+T(e,h++),g+=S(e,f,d,c);else"object"===e&&(d=""+a,B("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function U(a,b,d){return null==a?0:S(a,"",b,d)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function V(a,b){a.func.call(a.context,b,a.count++)}
|
|
20
|
-
function aa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=M(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function W(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,aa,b);R(b)}function ba(a,b){var d=I.currentDispatcher;null===d?B("277"):void 0;return d.readContext(a,b)}
|
|
21
|
-
var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,V,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B("143");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
|
|
22
|
-
_currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:v,_context:a};a.Consumer=a;a.unstable_read=ba.bind(null,a);return a},forwardRef:function(a){return{$$typeof:y,render:a}},Fragment:r,StrictMode:t,unstable_AsyncMode:x,unstable_Profiler:u,createElement:L,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=m({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=I.current);void 0!==b.key&&(g=""+b.key);
|
|
23
|
-
var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,
|
|
24
|
-
assign:m}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
|