react-is 16.4.0-alpha.0911da3 → 16.4.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/README.md +37 -7
- package/cjs/react-is.development.js +35 -13
- package/cjs/react-is.production.min.js +5 -4
- package/package.json +1 -4
- package/umd/react-is.development.js +35 -13
- package/umd/react-is.production.min.js +5 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# `react-is`
|
|
2
2
|
|
|
3
|
-
This package allows you to test arbitrary values and see if they're a particular React type
|
|
3
|
+
This package allows you to test arbitrary values and see if they're a particular React element type.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -14,7 +14,37 @@ npm install react-is --save
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
###
|
|
17
|
+
### Determining if a Component is Valid
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import * as ReactIs from "react-is";
|
|
21
|
+
|
|
22
|
+
class ClassComponent extends React.Component {
|
|
23
|
+
render() {
|
|
24
|
+
return React.createElement("div");
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const StatelessComponent = () => React.createElement("div");
|
|
29
|
+
|
|
30
|
+
const ForwardRefComponent = React.forwardRef((props, ref) =>
|
|
31
|
+
React.createElement(Component, { forwardedRef: ref, ...props })
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const Context = React.createContext(false);
|
|
35
|
+
|
|
36
|
+
ReactIs.isValidElementType("div"); // true
|
|
37
|
+
ReactIs.isValidElementType(ClassComponent); // true
|
|
38
|
+
ReactIs.isValidElementType(StatelessComponent); // true
|
|
39
|
+
ReactIs.isValidElementType(ForwardRefComponent); // true
|
|
40
|
+
ReactIs.isValidElementType(Context.Provider); // true
|
|
41
|
+
ReactIs.isValidElementType(Context.Consumer); // true
|
|
42
|
+
ReactIs.isValidElementType(React.createFactory("div")); // true
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Determining an Element's Type
|
|
46
|
+
|
|
47
|
+
#### AsyncMode
|
|
18
48
|
|
|
19
49
|
```js
|
|
20
50
|
import React from "react";
|
|
@@ -24,7 +54,7 @@ ReactIs.isAsyncMode(<React.unstable_AsyncMode />); // true
|
|
|
24
54
|
ReactIs.typeOf(<React.unstable_AsyncMode />) === ReactIs.AsyncMode; // true
|
|
25
55
|
```
|
|
26
56
|
|
|
27
|
-
|
|
57
|
+
#### Context
|
|
28
58
|
|
|
29
59
|
```js
|
|
30
60
|
import React from "react";
|
|
@@ -38,7 +68,7 @@ ReactIs.typeOf(<ThemeContext.Provider />) === ReactIs.ContextProvider; // true
|
|
|
38
68
|
ReactIs.typeOf(<ThemeContext.Consumer />) === ReactIs.ContextConsumer; // true
|
|
39
69
|
```
|
|
40
70
|
|
|
41
|
-
|
|
71
|
+
#### Element
|
|
42
72
|
|
|
43
73
|
```js
|
|
44
74
|
import React from "react";
|
|
@@ -48,7 +78,7 @@ ReactIs.isElement(<div />); // true
|
|
|
48
78
|
ReactIs.typeOf(<div />) === ReactIs.Element; // true
|
|
49
79
|
```
|
|
50
80
|
|
|
51
|
-
|
|
81
|
+
#### Fragment
|
|
52
82
|
|
|
53
83
|
```js
|
|
54
84
|
import React from "react";
|
|
@@ -58,7 +88,7 @@ ReactIs.isFragment(<></>); // true
|
|
|
58
88
|
ReactIs.typeOf(<></>) === ReactIs.Fragment; // true
|
|
59
89
|
```
|
|
60
90
|
|
|
61
|
-
|
|
91
|
+
#### Portal
|
|
62
92
|
|
|
63
93
|
```js
|
|
64
94
|
import React from "react";
|
|
@@ -72,7 +102,7 @@ ReactIs.isPortal(portal); // true
|
|
|
72
102
|
ReactIs.typeOf(portal) === ReactIs.Portal; // true
|
|
73
103
|
```
|
|
74
104
|
|
|
75
|
-
|
|
105
|
+
#### StrictMode
|
|
76
106
|
|
|
77
107
|
```js
|
|
78
108
|
import React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -19,17 +19,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
19
19
|
|
|
20
20
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
21
21
|
// nor polyfill, then a plain number is used for performance.
|
|
22
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol
|
|
23
|
-
|
|
24
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
22
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
23
|
+
|
|
24
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
26
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
27
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
28
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
29
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
30
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
31
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
32
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
33
|
+
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;
|
|
34
|
+
|
|
35
|
+
function isValidElementType(type) {
|
|
36
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
37
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
38
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
39
|
+
}
|
|
33
40
|
|
|
34
41
|
function typeOf(object) {
|
|
35
42
|
if (typeof object === 'object' && object !== null) {
|
|
@@ -42,13 +49,15 @@ function typeOf(object) {
|
|
|
42
49
|
switch (type) {
|
|
43
50
|
case REACT_ASYNC_MODE_TYPE:
|
|
44
51
|
case REACT_FRAGMENT_TYPE:
|
|
52
|
+
case REACT_PROFILER_TYPE:
|
|
45
53
|
case REACT_STRICT_MODE_TYPE:
|
|
46
54
|
return type;
|
|
47
55
|
default:
|
|
48
|
-
var $$typeofType = type.$$typeof;
|
|
56
|
+
var $$typeofType = type && type.$$typeof;
|
|
49
57
|
|
|
50
58
|
switch ($$typeofType) {
|
|
51
59
|
case REACT_CONTEXT_TYPE:
|
|
60
|
+
case REACT_FORWARD_REF_TYPE:
|
|
52
61
|
case REACT_PROVIDER_TYPE:
|
|
53
62
|
return $$typeofType;
|
|
54
63
|
default:
|
|
@@ -67,7 +76,9 @@ var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
|
67
76
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
68
77
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
69
78
|
var Element = REACT_ELEMENT_TYPE;
|
|
79
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
70
80
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
81
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
71
82
|
var Portal = REACT_PORTAL_TYPE;
|
|
72
83
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
73
84
|
|
|
@@ -83,9 +94,15 @@ function isContextProvider(object) {
|
|
|
83
94
|
function isElement(object) {
|
|
84
95
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
85
96
|
}
|
|
97
|
+
function isForwardRef(object) {
|
|
98
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
99
|
+
}
|
|
86
100
|
function isFragment(object) {
|
|
87
101
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
88
102
|
}
|
|
103
|
+
function isProfiler(object) {
|
|
104
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
105
|
+
}
|
|
89
106
|
function isPortal(object) {
|
|
90
107
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
91
108
|
}
|
|
@@ -98,14 +115,19 @@ exports.AsyncMode = AsyncMode;
|
|
|
98
115
|
exports.ContextConsumer = ContextConsumer;
|
|
99
116
|
exports.ContextProvider = ContextProvider;
|
|
100
117
|
exports.Element = Element;
|
|
118
|
+
exports.ForwardRef = ForwardRef;
|
|
101
119
|
exports.Fragment = Fragment;
|
|
120
|
+
exports.Profiler = Profiler;
|
|
102
121
|
exports.Portal = Portal;
|
|
103
122
|
exports.StrictMode = StrictMode;
|
|
123
|
+
exports.isValidElementType = isValidElementType;
|
|
104
124
|
exports.isAsyncMode = isAsyncMode;
|
|
105
125
|
exports.isContextConsumer = isContextConsumer;
|
|
106
126
|
exports.isContextProvider = isContextProvider;
|
|
107
127
|
exports.isElement = isElement;
|
|
128
|
+
exports.isForwardRef = isForwardRef;
|
|
108
129
|
exports.isFragment = isFragment;
|
|
130
|
+
exports.isProfiler = isProfiler;
|
|
109
131
|
exports.isPortal = isPortal;
|
|
110
132
|
exports.isStrictMode = isStrictMode;
|
|
111
133
|
})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var b="function"===typeof Symbol&&Symbol
|
|
11
|
-
function
|
|
12
|
-
exports.
|
|
10
|
+
'use strict';Object.defineProperty(exports,"__esModule",{value:!0});var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.forward_ref"):60112,n=b?Symbol.for("react.timeout"):60113;
|
|
11
|
+
function q(a){if("object"===typeof a&&null!==a){var p=a.$$typeof;switch(p){case c:switch(a=a.type,a){case l:case e:case g:case f:return a;default:switch(a=a&&a.$$typeof,a){case k:case m:case h:return a;default:return p}}case d:return p}}}exports.typeOf=q;exports.AsyncMode=l;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=m;exports.Fragment=e;exports.Profiler=g;exports.Portal=d;exports.StrictMode=f;
|
|
12
|
+
exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===l||a===g||a===f||a===n||"object"===typeof a&&null!==a&&(a.$$typeof===h||a.$$typeof===k||a.$$typeof===m)};exports.isAsyncMode=function(a){return q(a)===l};exports.isContextConsumer=function(a){return q(a)===k};exports.isContextProvider=function(a){return q(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return q(a)===m};
|
|
13
|
+
exports.isFragment=function(a){return q(a)===e};exports.isProfiler=function(a){return q(a)===g};exports.isPortal=function(a){return q(a)===d};exports.isStrictMode=function(a){return q(a)===f};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-is",
|
|
3
|
-
"version": "16.4.
|
|
3
|
+
"version": "16.4.2",
|
|
4
4
|
"description": "Brand checking of React Elements.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "facebook/react",
|
|
@@ -12,9 +12,6 @@
|
|
|
12
12
|
"url": "https://github.com/facebook/react/issues"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://reactjs.org/",
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"react": "^16.0.0 || 16.4.0-alpha.0911da3"
|
|
17
|
-
},
|
|
18
15
|
"files": [
|
|
19
16
|
"LICENSE",
|
|
20
17
|
"README.md",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react-is.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -17,17 +17,24 @@
|
|
|
17
17
|
|
|
18
18
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
19
19
|
// nor polyfill, then a plain number is used for performance.
|
|
20
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol
|
|
21
|
-
|
|
22
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
20
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
21
|
+
|
|
22
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
23
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
24
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
25
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
26
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
27
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
28
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
29
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
30
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
31
|
+
var REACT_TIMEOUT_TYPE = hasSymbol ? Symbol.for('react.timeout') : 0xead1;
|
|
32
|
+
|
|
33
|
+
function isValidElementType(type) {
|
|
34
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
35
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
36
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_TIMEOUT_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
37
|
+
}
|
|
31
38
|
|
|
32
39
|
function typeOf(object) {
|
|
33
40
|
if (typeof object === 'object' && object !== null) {
|
|
@@ -40,13 +47,15 @@ function typeOf(object) {
|
|
|
40
47
|
switch (type) {
|
|
41
48
|
case REACT_ASYNC_MODE_TYPE:
|
|
42
49
|
case REACT_FRAGMENT_TYPE:
|
|
50
|
+
case REACT_PROFILER_TYPE:
|
|
43
51
|
case REACT_STRICT_MODE_TYPE:
|
|
44
52
|
return type;
|
|
45
53
|
default:
|
|
46
|
-
var $$typeofType = type.$$typeof;
|
|
54
|
+
var $$typeofType = type && type.$$typeof;
|
|
47
55
|
|
|
48
56
|
switch ($$typeofType) {
|
|
49
57
|
case REACT_CONTEXT_TYPE:
|
|
58
|
+
case REACT_FORWARD_REF_TYPE:
|
|
50
59
|
case REACT_PROVIDER_TYPE:
|
|
51
60
|
return $$typeofType;
|
|
52
61
|
default:
|
|
@@ -65,7 +74,9 @@ var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
|
65
74
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
66
75
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
67
76
|
var Element = REACT_ELEMENT_TYPE;
|
|
77
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
68
78
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
79
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
69
80
|
var Portal = REACT_PORTAL_TYPE;
|
|
70
81
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
71
82
|
|
|
@@ -81,9 +92,15 @@ function isContextProvider(object) {
|
|
|
81
92
|
function isElement(object) {
|
|
82
93
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
83
94
|
}
|
|
95
|
+
function isForwardRef(object) {
|
|
96
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
97
|
+
}
|
|
84
98
|
function isFragment(object) {
|
|
85
99
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
86
100
|
}
|
|
101
|
+
function isProfiler(object) {
|
|
102
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
103
|
+
}
|
|
87
104
|
function isPortal(object) {
|
|
88
105
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
89
106
|
}
|
|
@@ -96,14 +113,19 @@ exports.AsyncMode = AsyncMode;
|
|
|
96
113
|
exports.ContextConsumer = ContextConsumer;
|
|
97
114
|
exports.ContextProvider = ContextProvider;
|
|
98
115
|
exports.Element = Element;
|
|
116
|
+
exports.ForwardRef = ForwardRef;
|
|
99
117
|
exports.Fragment = Fragment;
|
|
118
|
+
exports.Profiler = Profiler;
|
|
100
119
|
exports.Portal = Portal;
|
|
101
120
|
exports.StrictMode = StrictMode;
|
|
121
|
+
exports.isValidElementType = isValidElementType;
|
|
102
122
|
exports.isAsyncMode = isAsyncMode;
|
|
103
123
|
exports.isContextConsumer = isContextConsumer;
|
|
104
124
|
exports.isContextProvider = isContextProvider;
|
|
105
125
|
exports.isElement = isElement;
|
|
126
|
+
exports.isForwardRef = isForwardRef;
|
|
106
127
|
exports.isFragment = isFragment;
|
|
128
|
+
exports.isProfiler = isProfiler;
|
|
107
129
|
exports.isPortal = isPortal;
|
|
108
130
|
exports.isStrictMode = isStrictMode;
|
|
109
131
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.4.
|
|
1
|
+
/** @license React v16.4.2
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,6 +6,7 @@
|
|
|
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(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case
|
|
10
|
-
d?Symbol
|
|
11
|
-
|
|
9
|
+
'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case n:switch(a=a.type,a){case e:case f:case g:case h:return a;default:switch(a=a&&a.$$typeof,a){case k:case l:case m:return a;default:return b}}case p:return b}}}var d="function"===typeof Symbol&&Symbol.for,n=d?Symbol.for("react.element"):
|
|
10
|
+
60103,p=d?Symbol.for("react.portal"):60106,f=d?Symbol.for("react.fragment"):60107,h=d?Symbol.for("react.strict_mode"):60108,g=d?Symbol.for("react.profiler"):60114,m=d?Symbol.for("react.provider"):60109,k=d?Symbol.for("react.context"):60110,e=d?Symbol.for("react.async_mode"):60111,l=d?Symbol.for("react.forward_ref"):60112,q=d?Symbol.for("react.timeout"):60113;b.typeOf=c;b.AsyncMode=e;b.ContextConsumer=k;b.ContextProvider=m;b.Element=n;b.ForwardRef=l;b.Fragment=f;b.Profiler=g;b.Portal=p;b.StrictMode=
|
|
11
|
+
h;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===m||a.$$typeof===k||a.$$typeof===l)};b.isAsyncMode=function(a){return c(a)===e};b.isContextConsumer=function(a){return c(a)===k};b.isContextProvider=function(a){return c(a)===m};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===n};b.isForwardRef=function(a){return c(a)===l};b.isFragment=function(a){return c(a)===
|
|
12
|
+
f};b.isProfiler=function(a){return c(a)===g};b.isPortal=function(a){return c(a)===p};b.isStrictMode=function(a){return c(a)===h};Object.defineProperty(b,"__esModule",{value:!0})});
|