1 | 'use strict';
|
2 |
|
3 | var _commonjsHelpers = require('./_commonjsHelpers-72d386ba.js');
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | function isObject(value) {
|
31 | var type = typeof value;
|
32 | return value != null && (type == 'object' || type == 'function');
|
33 | }
|
34 |
|
35 | var isObject_1 = isObject;
|
36 |
|
37 |
|
38 | var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == 'object' && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
|
39 |
|
40 | var _freeGlobal = freeGlobal;
|
41 |
|
42 |
|
43 | var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
44 |
|
45 |
|
46 | var root = _freeGlobal || freeSelf || Function('return this')();
|
47 |
|
48 | var _root = root;
|
49 |
|
50 |
|
51 | var Symbol = _root.Symbol;
|
52 |
|
53 | var _Symbol = Symbol;
|
54 |
|
55 |
|
56 | var objectProto = Object.prototype;
|
57 |
|
58 |
|
59 | var hasOwnProperty = objectProto.hasOwnProperty;
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | var nativeObjectToString = objectProto.toString;
|
67 |
|
68 |
|
69 | var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 | function getRawTag(value) {
|
79 | var isOwn = hasOwnProperty.call(value, symToStringTag),
|
80 | tag = value[symToStringTag];
|
81 |
|
82 | try {
|
83 | value[symToStringTag] = undefined;
|
84 | var unmasked = true;
|
85 | } catch (e) {}
|
86 |
|
87 | var result = nativeObjectToString.call(value);
|
88 | if (unmasked) {
|
89 | if (isOwn) {
|
90 | value[symToStringTag] = tag;
|
91 | } else {
|
92 | delete value[symToStringTag];
|
93 | }
|
94 | }
|
95 | return result;
|
96 | }
|
97 |
|
98 | var _getRawTag = getRawTag;
|
99 |
|
100 |
|
101 | var objectProto$1 = Object.prototype;
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 | var nativeObjectToString$1 = objectProto$1.toString;
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 | function objectToString(value) {
|
118 | return nativeObjectToString$1.call(value);
|
119 | }
|
120 |
|
121 | var _objectToString = objectToString;
|
122 |
|
123 |
|
124 | var nullTag = '[object Null]',
|
125 | undefinedTag = '[object Undefined]';
|
126 |
|
127 |
|
128 | var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 | function baseGetTag(value) {
|
138 | if (value == null) {
|
139 | return value === undefined ? undefinedTag : nullTag;
|
140 | }
|
141 | return (symToStringTag$1 && symToStringTag$1 in Object(value))
|
142 | ? _getRawTag(value)
|
143 | : _objectToString(value);
|
144 | }
|
145 |
|
146 | var _baseGetTag = baseGetTag;
|
147 |
|
148 | exports.baseGetTag = _baseGetTag;
|
149 | exports.isObject = isObject_1;
|
150 | exports.root = _root;
|
151 |
|