downshift 6.1.3 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,10 +60,11 @@
60
60
  _setPrototypeOf(subClass, superClass);
61
61
  }
62
62
 
63
- function createCommonjsModule(fn) {
64
- var module = { exports: {} };
65
- return fn(module, module.exports), module.exports;
66
- }
63
+ var propTypes$3 = {exports: {}};
64
+
65
+ var reactIs$1 = {exports: {}};
66
+
67
+ var reactIs_development$1 = {};
67
68
 
68
69
  /** @license React v16.13.1
69
70
  * react-is.development.js
@@ -73,194 +74,180 @@
73
74
  * This source code is licensed under the MIT license found in the
74
75
  * LICENSE file in the root directory of this source tree.
75
76
  */
76
- var reactIs_development$1 = createCommonjsModule(function (module, exports) {
77
-
78
- {
79
- (function () {
80
- // nor polyfill, then a plain number is used for performance.
81
-
82
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
83
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
84
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
85
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
86
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
87
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
88
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
89
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
90
- // (unstable) APIs that have been removed. Can we remove the symbols?
91
-
92
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
93
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
94
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
95
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
96
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
97
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
98
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
99
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
100
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
101
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
102
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
103
-
104
- function isValidElementType(type) {
105
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
106
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
107
- }
108
77
 
109
- function typeOf(object) {
110
- if (typeof object === 'object' && object !== null) {
111
- var $$typeof = object.$$typeof;
112
-
113
- switch ($$typeof) {
114
- case REACT_ELEMENT_TYPE:
115
- var type = object.type;
116
-
117
- switch (type) {
118
- case REACT_ASYNC_MODE_TYPE:
119
- case REACT_CONCURRENT_MODE_TYPE:
120
- case REACT_FRAGMENT_TYPE:
121
- case REACT_PROFILER_TYPE:
122
- case REACT_STRICT_MODE_TYPE:
123
- case REACT_SUSPENSE_TYPE:
124
- return type;
125
-
126
- default:
127
- var $$typeofType = type && type.$$typeof;
128
-
129
- switch ($$typeofType) {
130
- case REACT_CONTEXT_TYPE:
131
- case REACT_FORWARD_REF_TYPE:
132
- case REACT_LAZY_TYPE:
133
- case REACT_MEMO_TYPE:
134
- case REACT_PROVIDER_TYPE:
135
- return $$typeofType;
136
-
137
- default:
138
- return $$typeof;
139
- }
140
78
 
141
- }
142
79
 
143
- case REACT_PORTAL_TYPE:
144
- return $$typeof;
145
- }
146
- }
80
+ {
81
+ (function() {
82
+
83
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
84
+ // nor polyfill, then a plain number is used for performance.
85
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
86
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
87
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
88
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
89
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
90
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
91
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
92
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
93
+ // (unstable) APIs that have been removed. Can we remove the symbols?
94
+
95
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
96
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
97
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
98
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
99
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
100
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
101
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
102
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
103
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
104
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
105
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
106
+
107
+ function isValidElementType(type) {
108
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
109
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
110
+ }
147
111
 
148
- return undefined;
149
- } // AsyncMode is deprecated along with isAsyncMode
150
-
151
-
152
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
153
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
154
- var ContextConsumer = REACT_CONTEXT_TYPE;
155
- var ContextProvider = REACT_PROVIDER_TYPE;
156
- var Element = REACT_ELEMENT_TYPE;
157
- var ForwardRef = REACT_FORWARD_REF_TYPE;
158
- var Fragment = REACT_FRAGMENT_TYPE;
159
- var Lazy = REACT_LAZY_TYPE;
160
- var Memo = REACT_MEMO_TYPE;
161
- var Portal = REACT_PORTAL_TYPE;
162
- var Profiler = REACT_PROFILER_TYPE;
163
- var StrictMode = REACT_STRICT_MODE_TYPE;
164
- var Suspense = REACT_SUSPENSE_TYPE;
165
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
166
-
167
- function isAsyncMode(object) {
168
- {
169
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
170
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
112
+ function typeOf(object) {
113
+ if (typeof object === 'object' && object !== null) {
114
+ var $$typeof = object.$$typeof;
115
+
116
+ switch ($$typeof) {
117
+ case REACT_ELEMENT_TYPE:
118
+ var type = object.type;
119
+
120
+ switch (type) {
121
+ case REACT_ASYNC_MODE_TYPE:
122
+ case REACT_CONCURRENT_MODE_TYPE:
123
+ case REACT_FRAGMENT_TYPE:
124
+ case REACT_PROFILER_TYPE:
125
+ case REACT_STRICT_MODE_TYPE:
126
+ case REACT_SUSPENSE_TYPE:
127
+ return type;
128
+
129
+ default:
130
+ var $$typeofType = type && type.$$typeof;
131
+
132
+ switch ($$typeofType) {
133
+ case REACT_CONTEXT_TYPE:
134
+ case REACT_FORWARD_REF_TYPE:
135
+ case REACT_LAZY_TYPE:
136
+ case REACT_MEMO_TYPE:
137
+ case REACT_PROVIDER_TYPE:
138
+ return $$typeofType;
139
+
140
+ default:
141
+ return $$typeof;
142
+ }
171
143
 
172
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
173
- }
174
144
  }
175
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
176
- }
177
-
178
- function isConcurrentMode(object) {
179
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
180
- }
181
-
182
- function isContextConsumer(object) {
183
- return typeOf(object) === REACT_CONTEXT_TYPE;
184
- }
185
-
186
- function isContextProvider(object) {
187
- return typeOf(object) === REACT_PROVIDER_TYPE;
188
- }
189
-
190
- function isElement(object) {
191
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
192
- }
193
-
194
- function isForwardRef(object) {
195
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
196
- }
197
-
198
- function isFragment(object) {
199
- return typeOf(object) === REACT_FRAGMENT_TYPE;
200
- }
201
-
202
- function isLazy(object) {
203
- return typeOf(object) === REACT_LAZY_TYPE;
204
- }
205
-
206
- function isMemo(object) {
207
- return typeOf(object) === REACT_MEMO_TYPE;
208
- }
209
-
210
- function isPortal(object) {
211
- return typeOf(object) === REACT_PORTAL_TYPE;
212
- }
213
145
 
214
- function isProfiler(object) {
215
- return typeOf(object) === REACT_PROFILER_TYPE;
216
- }
217
-
218
- function isStrictMode(object) {
219
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
220
- }
146
+ case REACT_PORTAL_TYPE:
147
+ return $$typeof;
148
+ }
149
+ }
221
150
 
222
- function isSuspense(object) {
223
- return typeOf(object) === REACT_SUSPENSE_TYPE;
224
- }
151
+ return undefined;
152
+ } // AsyncMode is deprecated along with isAsyncMode
153
+
154
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
155
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
156
+ var ContextConsumer = REACT_CONTEXT_TYPE;
157
+ var ContextProvider = REACT_PROVIDER_TYPE;
158
+ var Element = REACT_ELEMENT_TYPE;
159
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
160
+ var Fragment = REACT_FRAGMENT_TYPE;
161
+ var Lazy = REACT_LAZY_TYPE;
162
+ var Memo = REACT_MEMO_TYPE;
163
+ var Portal = REACT_PORTAL_TYPE;
164
+ var Profiler = REACT_PROFILER_TYPE;
165
+ var StrictMode = REACT_STRICT_MODE_TYPE;
166
+ var Suspense = REACT_SUSPENSE_TYPE;
167
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
168
+
169
+ function isAsyncMode(object) {
170
+ {
171
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
172
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
225
173
 
226
- exports.AsyncMode = AsyncMode;
227
- exports.ConcurrentMode = ConcurrentMode;
228
- exports.ContextConsumer = ContextConsumer;
229
- exports.ContextProvider = ContextProvider;
230
- exports.Element = Element;
231
- exports.ForwardRef = ForwardRef;
232
- exports.Fragment = Fragment;
233
- exports.Lazy = Lazy;
234
- exports.Memo = Memo;
235
- exports.Portal = Portal;
236
- exports.Profiler = Profiler;
237
- exports.StrictMode = StrictMode;
238
- exports.Suspense = Suspense;
239
- exports.isAsyncMode = isAsyncMode;
240
- exports.isConcurrentMode = isConcurrentMode;
241
- exports.isContextConsumer = isContextConsumer;
242
- exports.isContextProvider = isContextProvider;
243
- exports.isElement = isElement;
244
- exports.isForwardRef = isForwardRef;
245
- exports.isFragment = isFragment;
246
- exports.isLazy = isLazy;
247
- exports.isMemo = isMemo;
248
- exports.isPortal = isPortal;
249
- exports.isProfiler = isProfiler;
250
- exports.isStrictMode = isStrictMode;
251
- exports.isSuspense = isSuspense;
252
- exports.isValidElementType = isValidElementType;
253
- exports.typeOf = typeOf;
254
- })();
174
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
175
+ }
255
176
  }
256
- });
257
177
 
258
- var reactIs$1 = createCommonjsModule(function (module) {
178
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
179
+ }
180
+ function isConcurrentMode(object) {
181
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
182
+ }
183
+ function isContextConsumer(object) {
184
+ return typeOf(object) === REACT_CONTEXT_TYPE;
185
+ }
186
+ function isContextProvider(object) {
187
+ return typeOf(object) === REACT_PROVIDER_TYPE;
188
+ }
189
+ function isElement(object) {
190
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
191
+ }
192
+ function isForwardRef(object) {
193
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
194
+ }
195
+ function isFragment(object) {
196
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
197
+ }
198
+ function isLazy(object) {
199
+ return typeOf(object) === REACT_LAZY_TYPE;
200
+ }
201
+ function isMemo(object) {
202
+ return typeOf(object) === REACT_MEMO_TYPE;
203
+ }
204
+ function isPortal(object) {
205
+ return typeOf(object) === REACT_PORTAL_TYPE;
206
+ }
207
+ function isProfiler(object) {
208
+ return typeOf(object) === REACT_PROFILER_TYPE;
209
+ }
210
+ function isStrictMode(object) {
211
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
212
+ }
213
+ function isSuspense(object) {
214
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
215
+ }
259
216
 
260
- {
261
- module.exports = reactIs_development$1;
262
- }
263
- });
217
+ reactIs_development$1.AsyncMode = AsyncMode;
218
+ reactIs_development$1.ConcurrentMode = ConcurrentMode;
219
+ reactIs_development$1.ContextConsumer = ContextConsumer;
220
+ reactIs_development$1.ContextProvider = ContextProvider;
221
+ reactIs_development$1.Element = Element;
222
+ reactIs_development$1.ForwardRef = ForwardRef;
223
+ reactIs_development$1.Fragment = Fragment;
224
+ reactIs_development$1.Lazy = Lazy;
225
+ reactIs_development$1.Memo = Memo;
226
+ reactIs_development$1.Portal = Portal;
227
+ reactIs_development$1.Profiler = Profiler;
228
+ reactIs_development$1.StrictMode = StrictMode;
229
+ reactIs_development$1.Suspense = Suspense;
230
+ reactIs_development$1.isAsyncMode = isAsyncMode;
231
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
232
+ reactIs_development$1.isContextConsumer = isContextConsumer;
233
+ reactIs_development$1.isContextProvider = isContextProvider;
234
+ reactIs_development$1.isElement = isElement;
235
+ reactIs_development$1.isForwardRef = isForwardRef;
236
+ reactIs_development$1.isFragment = isFragment;
237
+ reactIs_development$1.isLazy = isLazy;
238
+ reactIs_development$1.isMemo = isMemo;
239
+ reactIs_development$1.isPortal = isPortal;
240
+ reactIs_development$1.isProfiler = isProfiler;
241
+ reactIs_development$1.isStrictMode = isStrictMode;
242
+ reactIs_development$1.isSuspense = isSuspense;
243
+ reactIs_development$1.isValidElementType = isValidElementType;
244
+ reactIs_development$1.typeOf = typeOf;
245
+ })();
246
+ }
247
+
248
+ {
249
+ reactIs$1.exports = reactIs_development$1;
250
+ }
264
251
 
265
252
  /*
266
253
  object-assign
@@ -268,93 +255,87 @@
268
255
  @license MIT
269
256
  */
270
257
  /* eslint-disable no-unused-vars */
271
-
272
258
  var getOwnPropertySymbols = Object.getOwnPropertySymbols;
273
259
  var hasOwnProperty = Object.prototype.hasOwnProperty;
274
260
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
275
261
 
276
262
  function toObject(val) {
277
- if (val === null || val === undefined) {
278
- throw new TypeError('Object.assign cannot be called with null or undefined');
279
- }
263
+ if (val === null || val === undefined) {
264
+ throw new TypeError('Object.assign cannot be called with null or undefined');
265
+ }
280
266
 
281
- return Object(val);
267
+ return Object(val);
282
268
  }
283
269
 
284
270
  function shouldUseNative() {
285
- try {
286
- if (!Object.assign) {
287
- return false;
288
- } // Detect buggy property enumeration order in older V8 versions.
289
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
290
-
291
-
292
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
293
-
294
- test1[5] = 'de';
295
-
296
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
297
- return false;
298
- } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
299
-
300
-
301
- var test2 = {};
302
-
303
- for (var i = 0; i < 10; i++) {
304
- test2['_' + String.fromCharCode(i)] = i;
305
- }
306
-
307
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
308
- return test2[n];
309
- });
310
-
311
- if (order2.join('') !== '0123456789') {
312
- return false;
313
- } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
314
-
315
-
316
- var test3 = {};
317
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
318
- test3[letter] = letter;
319
- });
320
-
321
- if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
322
- return false;
323
- }
324
-
325
- return true;
326
- } catch (err) {
327
- // We don't expect any of the above to throw, but better to be safe.
328
- return false;
329
- }
271
+ try {
272
+ if (!Object.assign) {
273
+ return false;
274
+ }
275
+
276
+ // Detect buggy property enumeration order in older V8 versions.
277
+
278
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
279
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
280
+ test1[5] = 'de';
281
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
282
+ return false;
283
+ }
284
+
285
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
286
+ var test2 = {};
287
+ for (var i = 0; i < 10; i++) {
288
+ test2['_' + String.fromCharCode(i)] = i;
289
+ }
290
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
291
+ return test2[n];
292
+ });
293
+ if (order2.join('') !== '0123456789') {
294
+ return false;
295
+ }
296
+
297
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
298
+ var test3 = {};
299
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
300
+ test3[letter] = letter;
301
+ });
302
+ if (Object.keys(Object.assign({}, test3)).join('') !==
303
+ 'abcdefghijklmnopqrst') {
304
+ return false;
305
+ }
306
+
307
+ return true;
308
+ } catch (err) {
309
+ // We don't expect any of the above to throw, but better to be safe.
310
+ return false;
311
+ }
330
312
  }
331
313
 
332
314
  var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
333
- var from;
334
- var to = toObject(target);
335
- var symbols;
336
-
337
- for (var s = 1; s < arguments.length; s++) {
338
- from = Object(arguments[s]);
339
-
340
- for (var key in from) {
341
- if (hasOwnProperty.call(from, key)) {
342
- to[key] = from[key];
343
- }
344
- }
345
-
346
- if (getOwnPropertySymbols) {
347
- symbols = getOwnPropertySymbols(from);
348
-
349
- for (var i = 0; i < symbols.length; i++) {
350
- if (propIsEnumerable.call(from, symbols[i])) {
351
- to[symbols[i]] = from[symbols[i]];
352
- }
353
- }
354
- }
355
- }
356
-
357
- return to;
315
+ var from;
316
+ var to = toObject(target);
317
+ var symbols;
318
+
319
+ for (var s = 1; s < arguments.length; s++) {
320
+ from = Object(arguments[s]);
321
+
322
+ for (var key in from) {
323
+ if (hasOwnProperty.call(from, key)) {
324
+ to[key] = from[key];
325
+ }
326
+ }
327
+
328
+ if (getOwnPropertySymbols) {
329
+ symbols = getOwnPropertySymbols(from);
330
+ for (var i = 0; i < symbols.length; i++) {
331
+ if (propIsEnumerable.call(from, symbols[i])) {
332
+ to[symbols[i]] = from[symbols[i]];
333
+ }
334
+ }
335
+ }
336
+ }
337
+
338
+ return to;
358
339
  };
359
340
 
360
341
  /**
@@ -364,8 +345,9 @@
364
345
  * LICENSE file in the root directory of this source tree.
365
346
  */
366
347
 
367
- var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
368
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
348
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
349
+
350
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$2;
369
351
 
370
352
  /**
371
353
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -374,20 +356,18 @@
374
356
  * LICENSE file in the root directory of this source tree.
375
357
  */
376
358
 
377
- var printWarning$1 = function () {};
359
+ var printWarning$1 = function() {};
378
360
 
379
361
  {
380
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
362
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
381
363
  var loggedTypeFailures = {};
382
364
  var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
383
365
 
384
- printWarning$1 = function (text) {
366
+ printWarning$1 = function(text) {
385
367
  var message = 'Warning: ' + text;
386
-
387
368
  if (typeof console !== 'undefined') {
388
369
  console.error(message);
389
370
  }
390
-
391
371
  try {
392
372
  // --- Welcome to debugging React ---
393
373
  // This error was thrown as a convenience so that you can use this stack
@@ -396,6 +376,7 @@
396
376
  } catch (x) {}
397
377
  };
398
378
  }
379
+
399
380
  /**
400
381
  * Assert that the values match with the type specs.
401
382
  * Error messages are memorized and will only be shown once.
@@ -407,59 +388,67 @@
407
388
  * @param {?Function} getStack Returns the component stack.
408
389
  * @private
409
390
  */
410
-
411
-
412
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
391
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
413
392
  {
414
393
  for (var typeSpecName in typeSpecs) {
415
394
  if (has$1(typeSpecs, typeSpecName)) {
416
- var error; // Prop type validation may throw. In case they do, we don't want to
395
+ var error;
396
+ // Prop type validation may throw. In case they do, we don't want to
417
397
  // fail the render phase where it didn't fail before. So we log it.
418
398
  // After these have been cleaned up, we'll let them throw.
419
-
420
399
  try {
421
400
  // This is intentionally an invariant that gets caught. It's the same
422
401
  // behavior as without this statement except with a better message.
423
402
  if (typeof typeSpecs[typeSpecName] !== 'function') {
424
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.');
403
+ var err = Error(
404
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
405
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
406
+ );
425
407
  err.name = 'Invariant Violation';
426
408
  throw err;
427
409
  }
428
-
429
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
410
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
430
411
  } catch (ex) {
431
412
  error = ex;
432
413
  }
433
-
434
414
  if (error && !(error instanceof Error)) {
435
- printWarning$1((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
415
+ printWarning$1(
416
+ (componentName || 'React class') + ': type specification of ' +
417
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
418
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
419
+ 'You may have forgotten to pass an argument to the type checker ' +
420
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
421
+ 'shape all require an argument).'
422
+ );
436
423
  }
437
-
438
424
  if (error instanceof Error && !(error.message in loggedTypeFailures)) {
439
425
  // Only monitor this failure once because there tends to be a lot of the
440
426
  // same error.
441
427
  loggedTypeFailures[error.message] = true;
428
+
442
429
  var stack = getStack ? getStack() : '';
443
- printWarning$1('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
430
+
431
+ printWarning$1(
432
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
433
+ );
444
434
  }
445
435
  }
446
436
  }
447
437
  }
448
438
  }
439
+
449
440
  /**
450
441
  * Resets warning cache when testing.
451
442
  *
452
443
  * @private
453
444
  */
454
-
455
-
456
- checkPropTypes.resetWarningCache = function () {
445
+ checkPropTypes$1.resetWarningCache = function() {
457
446
  {
458
447
  loggedTypeFailures = {};
459
448
  }
460
449
  };
461
450
 
462
- var checkPropTypes_1 = checkPropTypes;
451
+ var checkPropTypes_1 = checkPropTypes$1;
463
452
 
464
453
  /**
465
454
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -468,18 +457,21 @@
468
457
  * LICENSE file in the root directory of this source tree.
469
458
  */
470
459
 
471
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
460
+ var ReactIs$1 = reactIs$1.exports;
461
+ var assign = objectAssign;
462
+
463
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
464
+ var checkPropTypes = checkPropTypes_1;
472
465
 
473
- var printWarning = function () {};
466
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
467
+ var printWarning = function() {};
474
468
 
475
469
  {
476
- printWarning = function (text) {
470
+ printWarning = function(text) {
477
471
  var message = 'Warning: ' + text;
478
-
479
472
  if (typeof console !== 'undefined') {
480
473
  console.error(message);
481
474
  }
482
-
483
475
  try {
484
476
  // --- Welcome to debugging React ---
485
477
  // This error was thrown as a convenience so that you can use this stack
@@ -493,7 +485,7 @@
493
485
  return null;
494
486
  }
495
487
 
496
- var factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
488
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
497
489
  /* global Symbol */
498
490
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
499
491
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -512,14 +504,13 @@
512
504
  * @param {?object} maybeIterable
513
505
  * @return {?function}
514
506
  */
515
-
516
507
  function getIteratorFn(maybeIterable) {
517
508
  var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
518
-
519
509
  if (typeof iteratorFn === 'function') {
520
510
  return iteratorFn;
521
511
  }
522
512
  }
513
+
523
514
  /**
524
515
  * Collection of methods that allow declaration and validation of props that are
525
516
  * supplied to React components. Example usage:
@@ -567,10 +558,10 @@
567
558
  * @internal
568
559
  */
569
560
 
561
+ var ANONYMOUS = '<<anonymous>>';
570
562
 
571
- var ANONYMOUS = '<<anonymous>>'; // Important!
563
+ // Important!
572
564
  // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
573
-
574
565
  var ReactPropTypes = {
575
566
  array: createPrimitiveTypeChecker('array'),
576
567
  bool: createPrimitiveTypeChecker('boolean'),
@@ -579,6 +570,7 @@
579
570
  object: createPrimitiveTypeChecker('object'),
580
571
  string: createPrimitiveTypeChecker('string'),
581
572
  symbol: createPrimitiveTypeChecker('symbol'),
573
+
582
574
  any: createAnyTypeChecker(),
583
575
  arrayOf: createArrayOfTypeChecker,
584
576
  element: createElementTypeChecker(),
@@ -589,15 +581,14 @@
589
581
  oneOf: createEnumTypeChecker,
590
582
  oneOfType: createUnionTypeChecker,
591
583
  shape: createShapeTypeChecker,
592
- exact: createStrictShapeTypeChecker
584
+ exact: createStrictShapeTypeChecker,
593
585
  };
586
+
594
587
  /**
595
588
  * inlined Object.is polyfill to avoid requiring consumers ship their own
596
589
  * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
597
590
  */
598
-
599
591
  /*eslint-disable no-self-compare*/
600
-
601
592
  function is(x, y) {
602
593
  // SameValue algorithm
603
594
  if (x === y) {
@@ -618,14 +609,11 @@
618
609
  * is prohibitively expensive if they are created too often, such as what
619
610
  * happens in oneOfType() for any type before the one that matched.
620
611
  */
621
-
622
-
623
612
  function PropTypeError(message) {
624
613
  this.message = message;
625
614
  this.stack = '';
626
- } // Make `instanceof Error` still work for returned errors.
627
-
628
-
615
+ }
616
+ // Make `instanceof Error` still work for returned errors.
629
617
  PropTypeError.prototype = Error.prototype;
630
618
 
631
619
  function createChainableTypeChecker(validate) {
@@ -633,39 +621,47 @@
633
621
  var manualPropTypeCallCache = {};
634
622
  var manualPropTypeWarningCount = 0;
635
623
  }
636
-
637
624
  function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
638
625
  componentName = componentName || ANONYMOUS;
639
626
  propFullName = propFullName || propName;
640
627
 
641
- if (secret !== ReactPropTypesSecret_1) {
628
+ if (secret !== ReactPropTypesSecret) {
642
629
  if (throwOnDirectAccess) {
643
630
  // New behavior only for users of `prop-types` package
644
- var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
631
+ var err = new Error(
632
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
633
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
634
+ 'Read more at http://fb.me/use-check-prop-types'
635
+ );
645
636
  err.name = 'Invariant Violation';
646
637
  throw err;
647
638
  } else if (typeof console !== 'undefined') {
648
639
  // Old behavior for people using React.PropTypes
649
640
  var cacheKey = componentName + ':' + propName;
650
-
651
- if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
652
- manualPropTypeWarningCount < 3) {
653
- printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
641
+ if (
642
+ !manualPropTypeCallCache[cacheKey] &&
643
+ // Avoid spamming the console because they are often not actionable except for lib authors
644
+ manualPropTypeWarningCount < 3
645
+ ) {
646
+ printWarning(
647
+ 'You are manually calling a React.PropTypes validation ' +
648
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
649
+ 'and will throw in the standalone `prop-types` package. ' +
650
+ 'You may be seeing this warning due to a third-party PropTypes ' +
651
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
652
+ );
654
653
  manualPropTypeCallCache[cacheKey] = true;
655
654
  manualPropTypeWarningCount++;
656
655
  }
657
656
  }
658
657
  }
659
-
660
658
  if (props[propName] == null) {
661
659
  if (isRequired) {
662
660
  if (props[propName] === null) {
663
661
  return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
664
662
  }
665
-
666
663
  return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
667
664
  }
668
-
669
665
  return null;
670
666
  } else {
671
667
  return validate(props, propName, componentName, location, propFullName);
@@ -674,6 +670,7 @@
674
670
 
675
671
  var chainedCheckType = checkType.bind(null, false);
676
672
  chainedCheckType.isRequired = checkType.bind(null, true);
673
+
677
674
  return chainedCheckType;
678
675
  }
679
676
 
@@ -681,18 +678,16 @@
681
678
  function validate(props, propName, componentName, location, propFullName, secret) {
682
679
  var propValue = props[propName];
683
680
  var propType = getPropType(propValue);
684
-
685
681
  if (propType !== expectedType) {
686
682
  // `propValue` being instance of, say, date/regexp, pass the 'object'
687
683
  // check, but we can offer a more precise error message here rather than
688
684
  // 'of type `object`'.
689
685
  var preciseType = getPreciseType(propValue);
686
+
690
687
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
691
688
  }
692
-
693
689
  return null;
694
690
  }
695
-
696
691
  return createChainableTypeChecker(validate);
697
692
  }
698
693
 
@@ -705,55 +700,43 @@
705
700
  if (typeof typeChecker !== 'function') {
706
701
  return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
707
702
  }
708
-
709
703
  var propValue = props[propName];
710
-
711
704
  if (!Array.isArray(propValue)) {
712
705
  var propType = getPropType(propValue);
713
706
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
714
707
  }
715
-
716
708
  for (var i = 0; i < propValue.length; i++) {
717
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
718
-
709
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
719
710
  if (error instanceof Error) {
720
711
  return error;
721
712
  }
722
713
  }
723
-
724
714
  return null;
725
715
  }
726
-
727
716
  return createChainableTypeChecker(validate);
728
717
  }
729
718
 
730
719
  function createElementTypeChecker() {
731
720
  function validate(props, propName, componentName, location, propFullName) {
732
721
  var propValue = props[propName];
733
-
734
722
  if (!isValidElement(propValue)) {
735
723
  var propType = getPropType(propValue);
736
724
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
737
725
  }
738
-
739
726
  return null;
740
727
  }
741
-
742
728
  return createChainableTypeChecker(validate);
743
729
  }
744
730
 
745
731
  function createElementTypeTypeChecker() {
746
732
  function validate(props, propName, componentName, location, propFullName) {
747
733
  var propValue = props[propName];
748
-
749
- if (!reactIs$1.isValidElementType(propValue)) {
734
+ if (!ReactIs$1.isValidElementType(propValue)) {
750
735
  var propType = getPropType(propValue);
751
736
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
752
737
  }
753
-
754
738
  return null;
755
739
  }
756
-
757
740
  return createChainableTypeChecker(validate);
758
741
  }
759
742
 
@@ -764,10 +747,8 @@
764
747
  var actualClassName = getClassName(props[propName]);
765
748
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
766
749
  }
767
-
768
750
  return null;
769
751
  }
770
-
771
752
  return createChainableTypeChecker(validate);
772
753
  }
773
754
 
@@ -775,18 +756,19 @@
775
756
  if (!Array.isArray(expectedValues)) {
776
757
  {
777
758
  if (arguments.length > 1) {
778
- printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
759
+ printWarning(
760
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
761
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
762
+ );
779
763
  } else {
780
764
  printWarning('Invalid argument supplied to oneOf, expected an array.');
781
765
  }
782
766
  }
783
-
784
767
  return emptyFunctionThatReturnsNull;
785
768
  }
786
769
 
787
770
  function validate(props, propName, componentName, location, propFullName) {
788
771
  var propValue = props[propName];
789
-
790
772
  for (var i = 0; i < expectedValues.length; i++) {
791
773
  if (is(propValue, expectedValues[i])) {
792
774
  return null;
@@ -795,16 +777,13 @@
795
777
 
796
778
  var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
797
779
  var type = getPreciseType(value);
798
-
799
780
  if (type === 'symbol') {
800
781
  return String(value);
801
782
  }
802
-
803
783
  return value;
804
784
  });
805
785
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
806
786
  }
807
-
808
787
  return createChainableTypeChecker(validate);
809
788
  }
810
789
 
@@ -813,27 +792,21 @@
813
792
  if (typeof typeChecker !== 'function') {
814
793
  return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
815
794
  }
816
-
817
795
  var propValue = props[propName];
818
796
  var propType = getPropType(propValue);
819
-
820
797
  if (propType !== 'object') {
821
798
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
822
799
  }
823
-
824
800
  for (var key in propValue) {
825
801
  if (has(propValue, key)) {
826
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
827
-
802
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
828
803
  if (error instanceof Error) {
829
804
  return error;
830
805
  }
831
806
  }
832
807
  }
833
-
834
808
  return null;
835
809
  }
836
-
837
810
  return createChainableTypeChecker(validate);
838
811
  }
839
812
 
@@ -845,9 +818,11 @@
845
818
 
846
819
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
847
820
  var checker = arrayOfTypeCheckers[i];
848
-
849
821
  if (typeof checker !== 'function') {
850
- printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
822
+ printWarning(
823
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
824
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
825
+ );
851
826
  return emptyFunctionThatReturnsNull;
852
827
  }
853
828
  }
@@ -855,15 +830,13 @@
855
830
  function validate(props, propName, componentName, location, propFullName) {
856
831
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
857
832
  var checker = arrayOfTypeCheckers[i];
858
-
859
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
833
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
860
834
  return null;
861
835
  }
862
836
  }
863
837
 
864
838
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
865
839
  }
866
-
867
840
  return createChainableTypeChecker(validate);
868
841
  }
869
842
 
@@ -872,10 +845,8 @@
872
845
  if (!isNode(props[propName])) {
873
846
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
874
847
  }
875
-
876
848
  return null;
877
849
  }
878
-
879
850
  return createChainableTypeChecker(validate);
880
851
  }
881
852
 
@@ -883,28 +854,21 @@
883
854
  function validate(props, propName, componentName, location, propFullName) {
884
855
  var propValue = props[propName];
885
856
  var propType = getPropType(propValue);
886
-
887
857
  if (propType !== 'object') {
888
858
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
889
859
  }
890
-
891
860
  for (var key in shapeTypes) {
892
861
  var checker = shapeTypes[key];
893
-
894
862
  if (!checker) {
895
863
  continue;
896
864
  }
897
-
898
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
899
-
865
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
900
866
  if (error) {
901
867
  return error;
902
868
  }
903
869
  }
904
-
905
870
  return null;
906
871
  }
907
-
908
872
  return createChainableTypeChecker(validate);
909
873
  }
910
874
 
@@ -912,29 +876,26 @@
912
876
  function validate(props, propName, componentName, location, propFullName) {
913
877
  var propValue = props[propName];
914
878
  var propType = getPropType(propValue);
915
-
916
879
  if (propType !== 'object') {
917
880
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
918
- } // We need to check all keys in case some are required but missing from
881
+ }
882
+ // We need to check all keys in case some are required but missing from
919
883
  // props.
920
-
921
-
922
- var allKeys = objectAssign({}, props[propName], shapeTypes);
923
-
884
+ var allKeys = assign({}, props[propName], shapeTypes);
924
885
  for (var key in allKeys) {
925
886
  var checker = shapeTypes[key];
926
-
927
887
  if (!checker) {
928
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
888
+ return new PropTypeError(
889
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
890
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
891
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
892
+ );
929
893
  }
930
-
931
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
932
-
894
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
933
895
  if (error) {
934
896
  return error;
935
897
  }
936
898
  }
937
-
938
899
  return null;
939
900
  }
940
901
 
@@ -947,25 +908,20 @@
947
908
  case 'string':
948
909
  case 'undefined':
949
910
  return true;
950
-
951
911
  case 'boolean':
952
912
  return !propValue;
953
-
954
913
  case 'object':
955
914
  if (Array.isArray(propValue)) {
956
915
  return propValue.every(isNode);
957
916
  }
958
-
959
917
  if (propValue === null || isValidElement(propValue)) {
960
918
  return true;
961
919
  }
962
920
 
963
921
  var iteratorFn = getIteratorFn(propValue);
964
-
965
922
  if (iteratorFn) {
966
923
  var iterator = iteratorFn.call(propValue);
967
924
  var step;
968
-
969
925
  if (iteratorFn !== propValue.entries) {
970
926
  while (!(step = iterator.next()).done) {
971
927
  if (!isNode(step.value)) {
@@ -976,7 +932,6 @@
976
932
  // Iterator will provide entry [k,v] tuples rather than values.
977
933
  while (!(step = iterator.next()).done) {
978
934
  var entry = step.value;
979
-
980
935
  if (entry) {
981
936
  if (!isNode(entry[1])) {
982
937
  return false;
@@ -989,7 +944,6 @@
989
944
  }
990
945
 
991
946
  return true;
992
-
993
947
  default:
994
948
  return false;
995
949
  }
@@ -999,57 +953,51 @@
999
953
  // Native Symbol.
1000
954
  if (propType === 'symbol') {
1001
955
  return true;
1002
- } // falsy value can't be a Symbol
1003
-
956
+ }
1004
957
 
958
+ // falsy value can't be a Symbol
1005
959
  if (!propValue) {
1006
960
  return false;
1007
- } // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1008
-
961
+ }
1009
962
 
963
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1010
964
  if (propValue['@@toStringTag'] === 'Symbol') {
1011
965
  return true;
1012
- } // Fallback for non-spec compliant Symbols which are polyfilled.
1013
-
966
+ }
1014
967
 
968
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1015
969
  if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1016
970
  return true;
1017
971
  }
1018
972
 
1019
973
  return false;
1020
- } // Equivalent of `typeof` but with special handling for array and regexp.
1021
-
974
+ }
1022
975
 
976
+ // Equivalent of `typeof` but with special handling for array and regexp.
1023
977
  function getPropType(propValue) {
1024
978
  var propType = typeof propValue;
1025
-
1026
979
  if (Array.isArray(propValue)) {
1027
980
  return 'array';
1028
981
  }
1029
-
1030
982
  if (propValue instanceof RegExp) {
1031
983
  // Old webkits (at least until Android 4.0) return 'function' rather than
1032
984
  // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1033
985
  // passes PropTypes.object.
1034
986
  return 'object';
1035
987
  }
1036
-
1037
988
  if (isSymbol(propType, propValue)) {
1038
989
  return 'symbol';
1039
990
  }
1040
-
1041
991
  return propType;
1042
- } // This handles more types than `getPropType`. Only used for error messages.
1043
- // See `createPrimitiveTypeChecker`.
1044
-
992
+ }
1045
993
 
994
+ // This handles more types than `getPropType`. Only used for error messages.
995
+ // See `createPrimitiveTypeChecker`.
1046
996
  function getPreciseType(propValue) {
1047
997
  if (typeof propValue === 'undefined' || propValue === null) {
1048
998
  return '' + propValue;
1049
999
  }
1050
-
1051
1000
  var propType = getPropType(propValue);
1052
-
1053
1001
  if (propType === 'object') {
1054
1002
  if (propValue instanceof Date) {
1055
1003
  return 'date';
@@ -1057,42 +1005,38 @@
1057
1005
  return 'regexp';
1058
1006
  }
1059
1007
  }
1060
-
1061
1008
  return propType;
1062
- } // Returns a string that is postfixed to a warning about an invalid type.
1063
- // For example, "undefined" or "of type array"
1064
-
1009
+ }
1065
1010
 
1011
+ // Returns a string that is postfixed to a warning about an invalid type.
1012
+ // For example, "undefined" or "of type array"
1066
1013
  function getPostfixForTypeWarning(value) {
1067
1014
  var type = getPreciseType(value);
1068
-
1069
1015
  switch (type) {
1070
1016
  case 'array':
1071
1017
  case 'object':
1072
1018
  return 'an ' + type;
1073
-
1074
1019
  case 'boolean':
1075
1020
  case 'date':
1076
1021
  case 'regexp':
1077
1022
  return 'a ' + type;
1078
-
1079
1023
  default:
1080
1024
  return type;
1081
1025
  }
1082
- } // Returns class name of the object, if any.
1083
-
1026
+ }
1084
1027
 
1028
+ // Returns class name of the object, if any.
1085
1029
  function getClassName(propValue) {
1086
1030
  if (!propValue.constructor || !propValue.constructor.name) {
1087
1031
  return ANONYMOUS;
1088
1032
  }
1089
-
1090
1033
  return propValue.constructor.name;
1091
1034
  }
1092
1035
 
1093
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1094
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1036
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1037
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1095
1038
  ReactPropTypes.PropTypes = ReactPropTypes;
1039
+
1096
1040
  return ReactPropTypes;
1097
1041
  };
1098
1042
 
@@ -1102,15 +1046,19 @@
1102
1046
  * This source code is licensed under the MIT license found in the
1103
1047
  * LICENSE file in the root directory of this source tree.
1104
1048
  */
1105
- var propTypes$3 = createCommonjsModule(function (module) {
1106
- {
1107
- var ReactIs = reactIs$1; // By explicitly using `prop-types` you are opting into new development behavior.
1108
- // http://fb.me/prop-types-in-prod
1109
1049
 
1110
- var throwOnDirectAccess = true;
1111
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1112
- }
1113
- });
1050
+ {
1051
+ var ReactIs = reactIs$1.exports;
1052
+
1053
+ // By explicitly using `prop-types` you are opting into new development behavior.
1054
+ // http://fb.me/prop-types-in-prod
1055
+ var throwOnDirectAccess = true;
1056
+ propTypes$3.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1057
+ }
1058
+
1059
+ var PropTypes = propTypes$3.exports;
1060
+
1061
+ var reactIs = {exports: {}};
1114
1062
 
1115
1063
  /** @license React v17.0.2
1116
1064
  * react-is.production.min.js
@@ -1120,27 +1068,9 @@
1120
1068
  * This source code is licensed under the MIT license found in the
1121
1069
  * LICENSE file in the root directory of this source tree.
1122
1070
  */
1071
+ if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;x("react.element");x("react.portal");x("react.fragment");x("react.strict_mode");x("react.profiler");x("react.provider");x("react.context");x("react.forward_ref");x("react.suspense");x("react.suspense_list");x("react.memo");x("react.lazy");x("react.block");x("react.server.block");x("react.fundamental");x("react.debug_trace_mode");x("react.legacy_hidden");}
1123
1072
 
1124
- if ("function" === typeof Symbol && Symbol.for) {
1125
- var x = Symbol.for;
1126
- x("react.element");
1127
- x("react.portal");
1128
- x("react.fragment");
1129
- x("react.strict_mode");
1130
- x("react.profiler");
1131
- x("react.provider");
1132
- x("react.context");
1133
- x("react.forward_ref");
1134
- x("react.suspense");
1135
- x("react.suspense_list");
1136
- x("react.memo");
1137
- x("react.lazy");
1138
- x("react.block");
1139
- x("react.server.block");
1140
- x("react.fundamental");
1141
- x("react.debug_trace_mode");
1142
- x("react.legacy_hidden");
1143
- }
1073
+ var reactIs_development = {};
1144
1074
 
1145
1075
  /** @license React v17.0.2
1146
1076
  * react-is.development.js
@@ -1150,326 +1080,225 @@
1150
1080
  * This source code is licensed under the MIT license found in the
1151
1081
  * LICENSE file in the root directory of this source tree.
1152
1082
  */
1153
- var reactIs_development = createCommonjsModule(function (module, exports) {
1154
-
1155
- {
1156
- (function () {
1157
- // When adding new symbols to this file,
1158
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1159
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1160
- // nor polyfill, then a plain number is used for performance.
1161
-
1162
- var REACT_ELEMENT_TYPE = 0xeac7;
1163
- var REACT_PORTAL_TYPE = 0xeaca;
1164
- var REACT_FRAGMENT_TYPE = 0xeacb;
1165
- var REACT_STRICT_MODE_TYPE = 0xeacc;
1166
- var REACT_PROFILER_TYPE = 0xead2;
1167
- var REACT_PROVIDER_TYPE = 0xeacd;
1168
- var REACT_CONTEXT_TYPE = 0xeace;
1169
- var REACT_FORWARD_REF_TYPE = 0xead0;
1170
- var REACT_SUSPENSE_TYPE = 0xead1;
1171
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
1172
- var REACT_MEMO_TYPE = 0xead3;
1173
- var REACT_LAZY_TYPE = 0xead4;
1174
- var REACT_BLOCK_TYPE = 0xead9;
1175
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
1176
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
1177
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
1178
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
1179
-
1180
- if (typeof Symbol === 'function' && Symbol.for) {
1181
- var symbolFor = Symbol.for;
1182
- REACT_ELEMENT_TYPE = symbolFor('react.element');
1183
- REACT_PORTAL_TYPE = symbolFor('react.portal');
1184
- REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
1185
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
1186
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
1187
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
1188
- REACT_CONTEXT_TYPE = symbolFor('react.context');
1189
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
1190
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
1191
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
1192
- REACT_MEMO_TYPE = symbolFor('react.memo');
1193
- REACT_LAZY_TYPE = symbolFor('react.lazy');
1194
- REACT_BLOCK_TYPE = symbolFor('react.block');
1195
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
1196
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
1197
- symbolFor('react.scope');
1198
- symbolFor('react.opaque.id');
1199
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
1200
- symbolFor('react.offscreen');
1201
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
1202
- } // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
1203
-
1204
-
1205
- var enableScopeAPI = false; // Experimental Create Event Handle API.
1206
-
1207
- function isValidElementType(type) {
1208
- if (typeof type === 'string' || typeof type === 'function') {
1209
- return true;
1210
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1211
1083
 
1084
+ {
1085
+ (function() {
1086
+
1087
+ // ATTENTION
1088
+ // When adding new symbols to this file,
1089
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1090
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
1091
+ // nor polyfill, then a plain number is used for performance.
1092
+ var REACT_ELEMENT_TYPE = 0xeac7;
1093
+ var REACT_PORTAL_TYPE = 0xeaca;
1094
+ var REACT_FRAGMENT_TYPE = 0xeacb;
1095
+ var REACT_STRICT_MODE_TYPE = 0xeacc;
1096
+ var REACT_PROFILER_TYPE = 0xead2;
1097
+ var REACT_PROVIDER_TYPE = 0xeacd;
1098
+ var REACT_CONTEXT_TYPE = 0xeace;
1099
+ var REACT_FORWARD_REF_TYPE = 0xead0;
1100
+ var REACT_SUSPENSE_TYPE = 0xead1;
1101
+ var REACT_SUSPENSE_LIST_TYPE = 0xead8;
1102
+ var REACT_MEMO_TYPE = 0xead3;
1103
+ var REACT_LAZY_TYPE = 0xead4;
1104
+ var REACT_BLOCK_TYPE = 0xead9;
1105
+ var REACT_SERVER_BLOCK_TYPE = 0xeada;
1106
+ var REACT_FUNDAMENTAL_TYPE = 0xead5;
1107
+ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
1108
+ var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
1109
+
1110
+ if (typeof Symbol === 'function' && Symbol.for) {
1111
+ var symbolFor = Symbol.for;
1112
+ REACT_ELEMENT_TYPE = symbolFor('react.element');
1113
+ REACT_PORTAL_TYPE = symbolFor('react.portal');
1114
+ REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
1115
+ REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
1116
+ REACT_PROFILER_TYPE = symbolFor('react.profiler');
1117
+ REACT_PROVIDER_TYPE = symbolFor('react.provider');
1118
+ REACT_CONTEXT_TYPE = symbolFor('react.context');
1119
+ REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
1120
+ REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
1121
+ REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
1122
+ REACT_MEMO_TYPE = symbolFor('react.memo');
1123
+ REACT_LAZY_TYPE = symbolFor('react.lazy');
1124
+ REACT_BLOCK_TYPE = symbolFor('react.block');
1125
+ REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
1126
+ REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
1127
+ symbolFor('react.scope');
1128
+ symbolFor('react.opaque.id');
1129
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
1130
+ symbolFor('react.offscreen');
1131
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
1132
+ }
1212
1133
 
1213
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
1214
- return true;
1215
- }
1216
-
1217
- if (typeof type === 'object' && type !== null) {
1218
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
1219
- return true;
1220
- }
1221
- }
1222
-
1223
- return false;
1224
- }
1225
-
1226
- function typeOf(object) {
1227
- if (typeof object === 'object' && object !== null) {
1228
- var $$typeof = object.$$typeof;
1229
-
1230
- switch ($$typeof) {
1231
- case REACT_ELEMENT_TYPE:
1232
- var type = object.type;
1233
-
1234
- switch (type) {
1235
- case REACT_FRAGMENT_TYPE:
1236
- case REACT_PROFILER_TYPE:
1237
- case REACT_STRICT_MODE_TYPE:
1238
- case REACT_SUSPENSE_TYPE:
1239
- case REACT_SUSPENSE_LIST_TYPE:
1240
- return type;
1241
-
1242
- default:
1243
- var $$typeofType = type && type.$$typeof;
1244
-
1245
- switch ($$typeofType) {
1246
- case REACT_CONTEXT_TYPE:
1247
- case REACT_FORWARD_REF_TYPE:
1248
- case REACT_LAZY_TYPE:
1249
- case REACT_MEMO_TYPE:
1250
- case REACT_PROVIDER_TYPE:
1251
- return $$typeofType;
1252
-
1253
- default:
1254
- return $$typeof;
1255
- }
1256
-
1257
- }
1258
-
1259
- case REACT_PORTAL_TYPE:
1260
- return $$typeof;
1261
- }
1262
- }
1263
-
1264
- return undefined;
1265
- }
1266
-
1267
- var ContextConsumer = REACT_CONTEXT_TYPE;
1268
- var ContextProvider = REACT_PROVIDER_TYPE;
1269
- var Element = REACT_ELEMENT_TYPE;
1270
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1271
- var Fragment = REACT_FRAGMENT_TYPE;
1272
- var Lazy = REACT_LAZY_TYPE;
1273
- var Memo = REACT_MEMO_TYPE;
1274
- var Portal = REACT_PORTAL_TYPE;
1275
- var Profiler = REACT_PROFILER_TYPE;
1276
- var StrictMode = REACT_STRICT_MODE_TYPE;
1277
- var Suspense = REACT_SUSPENSE_TYPE;
1278
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
1279
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
1280
-
1281
- function isAsyncMode(object) {
1282
- {
1283
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1284
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1285
-
1286
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1287
- }
1288
- }
1289
- return false;
1290
- }
1291
-
1292
- function isConcurrentMode(object) {
1293
- {
1294
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1295
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
1296
-
1297
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1298
- }
1299
- }
1300
- return false;
1301
- }
1302
-
1303
- function isContextConsumer(object) {
1304
- return typeOf(object) === REACT_CONTEXT_TYPE;
1305
- }
1306
-
1307
- function isContextProvider(object) {
1308
- return typeOf(object) === REACT_PROVIDER_TYPE;
1309
- }
1310
-
1311
- function isElement(object) {
1312
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1313
- }
1314
-
1315
- function isForwardRef(object) {
1316
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1317
- }
1318
-
1319
- function isFragment(object) {
1320
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1321
- }
1322
-
1323
- function isLazy(object) {
1324
- return typeOf(object) === REACT_LAZY_TYPE;
1325
- }
1326
-
1327
- function isMemo(object) {
1328
- return typeOf(object) === REACT_MEMO_TYPE;
1329
- }
1134
+ // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
1330
1135
 
1331
- function isPortal(object) {
1332
- return typeOf(object) === REACT_PORTAL_TYPE;
1333
- }
1136
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
1334
1137
 
1335
- function isProfiler(object) {
1336
- return typeOf(object) === REACT_PROFILER_TYPE;
1337
- }
1338
-
1339
- function isStrictMode(object) {
1340
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1341
- }
1138
+ function isValidElementType(type) {
1139
+ if (typeof type === 'string' || typeof type === 'function') {
1140
+ return true;
1141
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1342
1142
 
1343
- function isSuspense(object) {
1344
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1345
- }
1346
1143
 
1347
- exports.ContextConsumer = ContextConsumer;
1348
- exports.ContextProvider = ContextProvider;
1349
- exports.Element = Element;
1350
- exports.ForwardRef = ForwardRef;
1351
- exports.Fragment = Fragment;
1352
- exports.Lazy = Lazy;
1353
- exports.Memo = Memo;
1354
- exports.Portal = Portal;
1355
- exports.Profiler = Profiler;
1356
- exports.StrictMode = StrictMode;
1357
- exports.Suspense = Suspense;
1358
- exports.isAsyncMode = isAsyncMode;
1359
- exports.isConcurrentMode = isConcurrentMode;
1360
- exports.isContextConsumer = isContextConsumer;
1361
- exports.isContextProvider = isContextProvider;
1362
- exports.isElement = isElement;
1363
- exports.isForwardRef = isForwardRef;
1364
- exports.isFragment = isFragment;
1365
- exports.isLazy = isLazy;
1366
- exports.isMemo = isMemo;
1367
- exports.isPortal = isPortal;
1368
- exports.isProfiler = isProfiler;
1369
- exports.isStrictMode = isStrictMode;
1370
- exports.isSuspense = isSuspense;
1371
- exports.isValidElementType = isValidElementType;
1372
- exports.typeOf = typeOf;
1373
- })();
1144
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
1145
+ return true;
1374
1146
  }
1375
- });
1376
-
1377
- var reactIs = createCommonjsModule(function (module) {
1378
1147
 
1379
- {
1380
- module.exports = reactIs_development;
1148
+ if (typeof type === 'object' && type !== null) {
1149
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
1150
+ return true;
1151
+ }
1381
1152
  }
1382
- });
1383
1153
 
1384
- function t(t) {
1385
- return "object" == typeof t && null != t && 1 === t.nodeType;
1154
+ return false;
1386
1155
  }
1387
1156
 
1388
- function e(t, e) {
1389
- return (!e || "hidden" !== t) && "visible" !== t && "clip" !== t;
1390
- }
1391
-
1392
- function n(t, n) {
1393
- if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
1394
- var r = getComputedStyle(t, null);
1395
- return e(r.overflowY, n) || e(r.overflowX, n) || function (t) {
1396
- var e = function (t) {
1397
- if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
1157
+ function typeOf(object) {
1158
+ if (typeof object === 'object' && object !== null) {
1159
+ var $$typeof = object.$$typeof;
1160
+
1161
+ switch ($$typeof) {
1162
+ case REACT_ELEMENT_TYPE:
1163
+ var type = object.type;
1164
+
1165
+ switch (type) {
1166
+ case REACT_FRAGMENT_TYPE:
1167
+ case REACT_PROFILER_TYPE:
1168
+ case REACT_STRICT_MODE_TYPE:
1169
+ case REACT_SUSPENSE_TYPE:
1170
+ case REACT_SUSPENSE_LIST_TYPE:
1171
+ return type;
1172
+
1173
+ default:
1174
+ var $$typeofType = type && type.$$typeof;
1175
+
1176
+ switch ($$typeofType) {
1177
+ case REACT_CONTEXT_TYPE:
1178
+ case REACT_FORWARD_REF_TYPE:
1179
+ case REACT_LAZY_TYPE:
1180
+ case REACT_MEMO_TYPE:
1181
+ case REACT_PROVIDER_TYPE:
1182
+ return $$typeofType;
1183
+
1184
+ default:
1185
+ return $$typeof;
1186
+ }
1398
1187
 
1399
- try {
1400
- return t.ownerDocument.defaultView.frameElement;
1401
- } catch (t) {
1402
- return null;
1403
1188
  }
1404
- }(t);
1405
1189
 
1406
- return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
1407
- }(t);
1190
+ case REACT_PORTAL_TYPE:
1191
+ return $$typeof;
1192
+ }
1408
1193
  }
1409
1194
 
1410
- return !1;
1195
+ return undefined;
1411
1196
  }
1197
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1198
+ var ContextProvider = REACT_PROVIDER_TYPE;
1199
+ var Element = REACT_ELEMENT_TYPE;
1200
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1201
+ var Fragment = REACT_FRAGMENT_TYPE;
1202
+ var Lazy = REACT_LAZY_TYPE;
1203
+ var Memo = REACT_MEMO_TYPE;
1204
+ var Portal = REACT_PORTAL_TYPE;
1205
+ var Profiler = REACT_PROFILER_TYPE;
1206
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1207
+ var Suspense = REACT_SUSPENSE_TYPE;
1208
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1209
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
1210
+
1211
+ function isAsyncMode(object) {
1212
+ {
1213
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1214
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1412
1215
 
1413
- function r(t, e, n, r, i, o, l, d) {
1414
- return o < t && l > e || o > t && l < e ? 0 : o <= t && d <= n || l >= e && d >= n ? o - t - r : l > e && d < n || o < t && d > n ? l - e + i : 0;
1415
- }
1416
-
1417
- function computeScrollIntoView (e, i) {
1418
- var o = window,
1419
- l = i.scrollMode,
1420
- d = i.block,
1421
- u = i.inline,
1422
- h = i.boundary,
1423
- a = i.skipOverflowHiddenElements,
1424
- c = "function" == typeof h ? h : function (t) {
1425
- return t !== h;
1426
- };
1427
- if (!t(e)) throw new TypeError("Invalid target");
1428
-
1429
- for (var f = document.scrollingElement || document.documentElement, s = [], p = e; t(p) && c(p);) {
1430
- if ((p = p.parentElement) === f) {
1431
- s.push(p);
1432
- break;
1216
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1433
1217
  }
1434
-
1435
- null != p && p === document.body && n(p) && !n(document.documentElement) || null != p && n(p, a) && s.push(p);
1436
1218
  }
1437
1219
 
1438
- for (var m = o.visualViewport ? o.visualViewport.width : innerWidth, g = o.visualViewport ? o.visualViewport.height : innerHeight, w = window.scrollX || pageXOffset, v = window.scrollY || pageYOffset, W = e.getBoundingClientRect(), b = W.height, H = W.width, y = W.top, E = W.right, M = W.bottom, V = W.left, x = "start" === d || "nearest" === d ? y : "end" === d ? M : y + b / 2, I = "center" === u ? V + H / 2 : "end" === u ? E : V, C = [], T = 0; T < s.length; T++) {
1439
- var k = s[T],
1440
- B = k.getBoundingClientRect(),
1441
- D = B.height,
1442
- O = B.width,
1443
- R = B.top,
1444
- X = B.right,
1445
- Y = B.bottom,
1446
- L = B.left;
1447
- if ("if-needed" === l && y >= 0 && V >= 0 && M <= g && E <= m && y >= R && M <= Y && V >= L && E <= X) return C;
1448
- var S = getComputedStyle(k),
1449
- j = parseInt(S.borderLeftWidth, 10),
1450
- q = parseInt(S.borderTopWidth, 10),
1451
- z = parseInt(S.borderRightWidth, 10),
1452
- A = parseInt(S.borderBottomWidth, 10),
1453
- F = 0,
1454
- G = 0,
1455
- J = "offsetWidth" in k ? k.offsetWidth - k.clientWidth - j - z : 0,
1456
- K = "offsetHeight" in k ? k.offsetHeight - k.clientHeight - q - A : 0;
1457
- if (f === k) F = "start" === d ? x : "end" === d ? x - g : "nearest" === d ? r(v, v + g, g, q, A, v + x, v + x + b, b) : x - g / 2, G = "start" === u ? I : "center" === u ? I - m / 2 : "end" === u ? I - m : r(w, w + m, m, j, z, w + I, w + I + H, H), F = Math.max(0, F + v), G = Math.max(0, G + w);else {
1458
- F = "start" === d ? x - R - q : "end" === d ? x - Y + A + K : "nearest" === d ? r(R, Y, D, q, A + K, x, x + b, b) : x - (R + D / 2) + K / 2, G = "start" === u ? I - L - j : "center" === u ? I - (L + O / 2) + J / 2 : "end" === u ? I - X + z + J : r(L, X, O, j, z + J, I, I + H, H);
1459
- var N = k.scrollLeft,
1460
- P = k.scrollTop;
1461
- x += P - (F = Math.max(0, Math.min(P + F, k.scrollHeight - D + K))), I += N - (G = Math.max(0, Math.min(N + G, k.scrollWidth - O + J)));
1220
+ return false;
1221
+ }
1222
+ function isConcurrentMode(object) {
1223
+ {
1224
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1225
+ hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
1226
+
1227
+ console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1462
1228
  }
1463
- C.push({
1464
- el: k,
1465
- top: F,
1466
- left: G
1467
- });
1468
1229
  }
1469
1230
 
1470
- return C;
1231
+ return false;
1232
+ }
1233
+ function isContextConsumer(object) {
1234
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1235
+ }
1236
+ function isContextProvider(object) {
1237
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1238
+ }
1239
+ function isElement(object) {
1240
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1241
+ }
1242
+ function isForwardRef(object) {
1243
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1244
+ }
1245
+ function isFragment(object) {
1246
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1247
+ }
1248
+ function isLazy(object) {
1249
+ return typeOf(object) === REACT_LAZY_TYPE;
1250
+ }
1251
+ function isMemo(object) {
1252
+ return typeOf(object) === REACT_MEMO_TYPE;
1253
+ }
1254
+ function isPortal(object) {
1255
+ return typeOf(object) === REACT_PORTAL_TYPE;
1256
+ }
1257
+ function isProfiler(object) {
1258
+ return typeOf(object) === REACT_PROFILER_TYPE;
1259
+ }
1260
+ function isStrictMode(object) {
1261
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1262
+ }
1263
+ function isSuspense(object) {
1264
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1265
+ }
1266
+
1267
+ reactIs_development.ContextConsumer = ContextConsumer;
1268
+ reactIs_development.ContextProvider = ContextProvider;
1269
+ reactIs_development.Element = Element;
1270
+ reactIs_development.ForwardRef = ForwardRef;
1271
+ reactIs_development.Fragment = Fragment;
1272
+ reactIs_development.Lazy = Lazy;
1273
+ reactIs_development.Memo = Memo;
1274
+ reactIs_development.Portal = Portal;
1275
+ reactIs_development.Profiler = Profiler;
1276
+ reactIs_development.StrictMode = StrictMode;
1277
+ reactIs_development.Suspense = Suspense;
1278
+ reactIs_development.isAsyncMode = isAsyncMode;
1279
+ reactIs_development.isConcurrentMode = isConcurrentMode;
1280
+ reactIs_development.isContextConsumer = isContextConsumer;
1281
+ reactIs_development.isContextProvider = isContextProvider;
1282
+ reactIs_development.isElement = isElement;
1283
+ reactIs_development.isForwardRef = isForwardRef;
1284
+ reactIs_development.isFragment = isFragment;
1285
+ reactIs_development.isLazy = isLazy;
1286
+ reactIs_development.isMemo = isMemo;
1287
+ reactIs_development.isPortal = isPortal;
1288
+ reactIs_development.isProfiler = isProfiler;
1289
+ reactIs_development.isStrictMode = isStrictMode;
1290
+ reactIs_development.isSuspense = isSuspense;
1291
+ reactIs_development.isValidElementType = isValidElementType;
1292
+ reactIs_development.typeOf = typeOf;
1293
+ })();
1471
1294
  }
1472
1295
 
1296
+ {
1297
+ reactIs.exports = reactIs_development;
1298
+ }
1299
+
1300
+ function t(t){return "object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return (!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return !1}function r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}function computeScrollIntoView(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t(p)&&c(p);){if((p=p.parentElement)===f){s.push(p);break}null!=p&&p===document.body&&n(p)&&!n(document.documentElement)||null!=p&&n(p,a)&&s.push(p);}for(var m=o.visualViewport?o.visualViewport.width:innerWidth,g=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,E=W.right,M=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?M:y+b/2,I="center"===u?V+H/2:"end"===u?E:V,C=[],T=0;T<s.length;T++){var k=s[T],B=k.getBoundingClientRect(),D=B.height,O=B.width,R=B.top,X=B.right,Y=B.bottom,L=B.left;if("if-needed"===l&&y>=0&&V>=0&&M<=g&&E<=m&&y>=R&&M<=Y&&V>=L&&E<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),q=parseInt(S.borderTopWidth,10),z=parseInt(S.borderRightWidth,10),A=parseInt(S.borderBottomWidth,10),F=0,G=0,J="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-z:0,K="offsetHeight"in k?k.offsetHeight-k.clientHeight-q-A:0;if(f===k)F="start"===d?x:"end"===d?x-g:"nearest"===d?r(v,v+g,g,q,A,v+x,v+x+b,b):x-g/2,G="start"===u?I:"center"===u?I-m/2:"end"===u?I-m:r(w,w+m,m,j,z,w+I,w+I+H,H),F=Math.max(0,F+v),G=Math.max(0,G+w);else {F="start"===d?x-R-q:"end"===d?x-Y+A+K:"nearest"===d?r(R,Y,D,q,A+K,x,x+b,b):x-(R+D/2)+K/2,G="start"===u?I-L-j:"center"===u?I-(L+O/2)+J/2:"end"===u?I-X+z+J:r(L,X,O,j,z+J,I,I+H,H);var N=k.scrollLeft,P=k.scrollTop;x+=P-(F=Math.max(0,Math.min(P+F,k.scrollHeight-D+K))),I+=N-(G=Math.max(0,Math.min(N+G,k.scrollWidth-O+J)));}C.push({el:k,top:F,left:G});}return C}
1301
+
1473
1302
  var idCounter = 0;
1474
1303
  /**
1475
1304
  * Accepts a parameter and returns it if it's a function
@@ -1619,7 +1448,7 @@
1619
1448
  }
1620
1449
  /**
1621
1450
  * Default implementation for status message. Only added when menu is open.
1622
- * Will specift if there are results in the list, and if so, how many,
1451
+ * Will specify if there are results in the list, and if so, how many,
1623
1452
  * and what keys are relevant.
1624
1453
  *
1625
1454
  * @param {Object} param the downshift state and other relevant properties
@@ -1998,6 +1827,12 @@
1998
1827
  touchEnd: touchEnd
1999
1828
  });
2000
1829
 
1830
+ var _excluded$4 = ["refKey", "ref"],
1831
+ _excluded2$3 = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"],
1832
+ _excluded3$2 = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"],
1833
+ _excluded4$1 = ["refKey", "ref"],
1834
+ _excluded5$1 = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"];
1835
+
2001
1836
  var Downshift = /*#__PURE__*/function () {
2002
1837
  var Downshift = /*#__PURE__*/function (_Component) {
2003
1838
  _inheritsLoose(Downshift, _Component);
@@ -2117,6 +1952,8 @@
2117
1952
  isItemSelected = newStateToSet.hasOwnProperty('selectedItem'); // this keeps track of the object we want to call with setState
2118
1953
 
2119
1954
  var nextState = {}; // this is just used to tell whether the state changed
1955
+
1956
+ var nextFullState = {}; // we need to call on change if the outside world is controlling any of our state
2120
1957
  // and we're trying to update that state. OR if the selection has changed and we're
2121
1958
  // trying to update the selection
2122
1959
 
@@ -2142,7 +1979,7 @@
2142
1979
  return;
2143
1980
  }
2144
1981
 
2145
- newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
1982
+ nextFullState[key] = newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
2146
1983
 
2147
1984
  if (!isControlledProp(_this.props, key)) {
2148
1985
  nextState[key] = newStateToSet[key];
@@ -2191,7 +2028,7 @@
2191
2028
  _ref$refKey = _ref.refKey,
2192
2029
  refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
2193
2030
  ref = _ref.ref,
2194
- rest = _objectWithoutPropertiesLoose(_ref, ["refKey", "ref"]);
2031
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2195
2032
 
2196
2033
  var _ref2 = _temp2 === void 0 ? {} : _temp2,
2197
2034
  _ref2$suppressRefErro = _ref2.suppressRefError,
@@ -2375,7 +2212,7 @@
2375
2212
  var onKeyDown = _ref3.onKeyDown,
2376
2213
  onKeyUp = _ref3.onKeyUp,
2377
2214
  onBlur = _ref3.onBlur,
2378
- rest = _objectWithoutPropertiesLoose(_ref3, ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"]);
2215
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
2379
2216
 
2380
2217
  var _this$getState5 = _this.getState(),
2381
2218
  isOpen = _this$getState5.isOpen;
@@ -2439,10 +2276,10 @@
2439
2276
  _this.internalSetTimeout(function () {
2440
2277
  if (!_this.isMouseDown && (_this.props.environment.document.activeElement == null || _this.props.environment.document.activeElement.id !== _this.inputId) && _this.props.environment.document.activeElement !== blurTarget // Do nothing if we refocus the same element again (to solve issue in Safari on iOS)
2441
2278
  ) {
2442
- _this.reset({
2443
- type: blurButton
2444
- });
2445
- }
2279
+ _this.reset({
2280
+ type: blurButton
2281
+ });
2282
+ }
2446
2283
  });
2447
2284
  };
2448
2285
 
@@ -2460,7 +2297,7 @@
2460
2297
  onChange = _ref4.onChange,
2461
2298
  onInput = _ref4.onInput;
2462
2299
  _ref4.onChangeText;
2463
- var rest = _objectWithoutPropertiesLoose(_ref4, ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"]);
2300
+ var rest = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
2464
2301
 
2465
2302
  var onChangeKey;
2466
2303
  var eventHandlers = {};
@@ -2535,7 +2372,7 @@
2535
2372
  _ref5$refKey = _ref5.refKey,
2536
2373
  refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
2537
2374
  ref = _ref5.ref,
2538
- props = _objectWithoutPropertiesLoose(_ref5, ["refKey", "ref"]);
2375
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded4$1);
2539
2376
 
2540
2377
  var _ref6 = _temp6 === void 0 ? {} : _temp6,
2541
2378
  _ref6$suppressRefErro = _ref6.suppressRefError,
@@ -2558,7 +2395,7 @@
2558
2395
  var index = _ref7.index,
2559
2396
  _ref7$item = _ref7.item,
2560
2397
  item = _ref7$item === void 0 ? requiredProp('getItemProps', 'item') : _ref7$item,
2561
- rest = _objectWithoutPropertiesLoose(_ref7, ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"]);
2398
+ rest = _objectWithoutPropertiesLoose(_ref7, _excluded5$1);
2562
2399
 
2563
2400
  if (index === undefined) {
2564
2401
  _this.items.push(item);
@@ -3062,9 +2899,9 @@
3062
2899
  selectedItemChanged: function selectedItemChanged(prevItem, item) {
3063
2900
  return prevItem !== item;
3064
2901
  },
3065
- environment: typeof window === 'undefined'
2902
+ environment:
3066
2903
  /* istanbul ignore next (ssr) */
3067
- ? {} : window,
2904
+ typeof window === 'undefined' ? {} : window,
3068
2905
  stateReducer: function stateReducer(state, stateToSet) {
3069
2906
  return stateToSet;
3070
2907
  },
@@ -3076,51 +2913,52 @@
3076
2913
  }();
3077
2914
 
3078
2915
  Downshift.propTypes = {
3079
- children: propTypes$3.func,
3080
- defaultHighlightedIndex: propTypes$3.number,
3081
- defaultIsOpen: propTypes$3.bool,
3082
- initialHighlightedIndex: propTypes$3.number,
3083
- initialSelectedItem: propTypes$3.any,
3084
- initialInputValue: propTypes$3.string,
3085
- initialIsOpen: propTypes$3.bool,
3086
- getA11yStatusMessage: propTypes$3.func,
3087
- itemToString: propTypes$3.func,
3088
- onChange: propTypes$3.func,
3089
- onSelect: propTypes$3.func,
3090
- onStateChange: propTypes$3.func,
3091
- onInputValueChange: propTypes$3.func,
3092
- onUserAction: propTypes$3.func,
3093
- onOuterClick: propTypes$3.func,
3094
- selectedItemChanged: propTypes$3.func,
3095
- stateReducer: propTypes$3.func,
3096
- itemCount: propTypes$3.number,
3097
- id: propTypes$3.string,
3098
- environment: propTypes$3.shape({
3099
- addEventListener: propTypes$3.func,
3100
- removeEventListener: propTypes$3.func,
3101
- document: propTypes$3.shape({
3102
- getElementById: propTypes$3.func,
3103
- activeElement: propTypes$3.any,
3104
- body: propTypes$3.any
2916
+ children: PropTypes.func,
2917
+ defaultHighlightedIndex: PropTypes.number,
2918
+ defaultIsOpen: PropTypes.bool,
2919
+ initialHighlightedIndex: PropTypes.number,
2920
+ initialSelectedItem: PropTypes.any,
2921
+ initialInputValue: PropTypes.string,
2922
+ initialIsOpen: PropTypes.bool,
2923
+ getA11yStatusMessage: PropTypes.func,
2924
+ itemToString: PropTypes.func,
2925
+ onChange: PropTypes.func,
2926
+ onSelect: PropTypes.func,
2927
+ onStateChange: PropTypes.func,
2928
+ onInputValueChange: PropTypes.func,
2929
+ onUserAction: PropTypes.func,
2930
+ onOuterClick: PropTypes.func,
2931
+ selectedItemChanged: PropTypes.func,
2932
+ stateReducer: PropTypes.func,
2933
+ itemCount: PropTypes.number,
2934
+ id: PropTypes.string,
2935
+ environment: PropTypes.shape({
2936
+ addEventListener: PropTypes.func,
2937
+ removeEventListener: PropTypes.func,
2938
+ document: PropTypes.shape({
2939
+ getElementById: PropTypes.func,
2940
+ activeElement: PropTypes.any,
2941
+ body: PropTypes.any
3105
2942
  })
3106
2943
  }),
3107
- suppressRefError: propTypes$3.bool,
3108
- scrollIntoView: propTypes$3.func,
2944
+ suppressRefError: PropTypes.bool,
2945
+ scrollIntoView: PropTypes.func,
3109
2946
  // things we keep in state for uncontrolled components
3110
2947
  // but can accept as props for controlled components
3111
2948
 
3112
2949
  /* eslint-disable react/no-unused-prop-types */
3113
- selectedItem: propTypes$3.any,
3114
- isOpen: propTypes$3.bool,
3115
- inputValue: propTypes$3.string,
3116
- highlightedIndex: propTypes$3.number,
3117
- labelId: propTypes$3.string,
3118
- inputId: propTypes$3.string,
3119
- menuId: propTypes$3.string,
3120
- getItemId: propTypes$3.func
2950
+ selectedItem: PropTypes.any,
2951
+ isOpen: PropTypes.bool,
2952
+ inputValue: PropTypes.string,
2953
+ highlightedIndex: PropTypes.number,
2954
+ labelId: PropTypes.string,
2955
+ inputId: PropTypes.string,
2956
+ menuId: PropTypes.string,
2957
+ getItemId: PropTypes.func
3121
2958
  /* eslint-enable react/no-unused-prop-types */
3122
2959
 
3123
2960
  } ;
2961
+ var Downshift$1 = Downshift;
3124
2962
 
3125
2963
  function validateGetMenuPropsCalledCorrectly(node, _ref12) {
3126
2964
  var refKey = _ref12.refKey;
@@ -3136,7 +2974,7 @@
3136
2974
  var refKeySpecified = refKey !== 'ref';
3137
2975
  var isComposite = !isDOMElement(element);
3138
2976
 
3139
- if (isComposite && !refKeySpecified && !reactIs.isForwardRef(element)) {
2977
+ if (isComposite && !refKeySpecified && !reactIs.exports.isForwardRef(element)) {
3140
2978
  // eslint-disable-next-line no-console
3141
2979
  console.error('downshift: You returned a non-DOM element. You must specify a refKey in getRootProps');
3142
2980
  } else if (!isComposite && refKeySpecified) {
@@ -3144,12 +2982,13 @@
3144
2982
  console.error("downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified \"" + refKey + "\"");
3145
2983
  }
3146
2984
 
3147
- if (!reactIs.isForwardRef(element) && !getElementProps(element)[refKey]) {
2985
+ if (!reactIs.exports.isForwardRef(element) && !getElementProps(element)[refKey]) {
3148
2986
  // eslint-disable-next-line no-console
3149
2987
  console.error("downshift: You must apply the ref prop \"" + refKey + "\" from getRootProps onto your root element.");
3150
2988
  }
3151
2989
  }
3152
2990
 
2991
+ var _excluded$3 = ["isInitialMount", "highlightedIndex", "items", "environment"];
3153
2992
  var dropdownDefaultStateValues = {
3154
2993
  highlightedIndex: -1,
3155
2994
  isOpen: false,
@@ -3347,9 +3186,9 @@
3347
3186
  getA11ySelectionMessage: getA11ySelectionMessage,
3348
3187
  scrollIntoView: scrollIntoView,
3349
3188
  circularNavigation: false,
3350
- environment: typeof window === 'undefined'
3189
+ environment:
3351
3190
  /* istanbul ignore next (ssr) */
3352
- ? {} : window
3191
+ typeof window === 'undefined' ? {} : window
3353
3192
  };
3354
3193
 
3355
3194
  function getDefaultValue$1(props, propKey, defaultStateValues) {
@@ -3563,11 +3402,11 @@
3563
3402
  highlightedIndex = _ref2.highlightedIndex,
3564
3403
  items = _ref2.items,
3565
3404
  environment = _ref2.environment,
3566
- rest = _objectWithoutPropertiesLoose(_ref2, ["isInitialMount", "highlightedIndex", "items", "environment"]);
3405
+ rest = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
3567
3406
 
3568
3407
  // Sets a11y status message on changes in state.
3569
3408
  react.useEffect(function () {
3570
- if (isInitialMount) {
3409
+ if (isInitialMount || false) {
3571
3410
  return;
3572
3411
  }
3573
3412
 
@@ -3698,58 +3537,84 @@
3698
3537
  }
3699
3538
  /* eslint-enable complexity */
3700
3539
 
3701
- function getItemIndexByCharacterKey(keysSoFar, highlightedIndex, items, itemToString, getItemNodeFromIndex) {
3702
- var lowerCasedKeysSoFar = keysSoFar.toLowerCase();
3703
-
3704
- for (var index = 0; index < items.length; index++) {
3705
- var offsetIndex = (index + highlightedIndex + 1) % items.length;
3706
-
3707
- if (itemToString(items[offsetIndex]).toLowerCase().startsWith(lowerCasedKeysSoFar)) {
3708
- var element = getItemNodeFromIndex(offsetIndex);
3540
+ /*! *****************************************************************************
3541
+ Copyright (c) Microsoft Corporation.
3542
+
3543
+ Permission to use, copy, modify, and/or distribute this software for any
3544
+ purpose with or without fee is hereby granted.
3545
+
3546
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3547
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3548
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3549
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3550
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3551
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3552
+ PERFORMANCE OF THIS SOFTWARE.
3553
+ ***************************************************************************** */
3554
+
3555
+ var __assign = function() {
3556
+ __assign = Object.assign || function __assign(t) {
3557
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
3558
+ s = arguments[i];
3559
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3560
+ }
3561
+ return t;
3562
+ };
3563
+ return __assign.apply(this, arguments);
3564
+ };
3709
3565
 
3710
- if (!(element && element.hasAttribute('disabled'))) {
3711
- return offsetIndex;
3712
- }
3566
+ function getItemIndexByCharacterKey(_a) {
3567
+ var keysSoFar = _a.keysSoFar, highlightedIndex = _a.highlightedIndex, items = _a.items, itemToString = _a.itemToString, getItemNodeFromIndex = _a.getItemNodeFromIndex;
3568
+ var lowerCasedKeysSoFar = keysSoFar.toLowerCase();
3569
+ for (var index = 0; index < items.length; index++) {
3570
+ var offsetIndex = (index + highlightedIndex + 1) % items.length;
3571
+ var item = items[offsetIndex];
3572
+ if (item !== undefined &&
3573
+ itemToString(item)
3574
+ .toLowerCase()
3575
+ .startsWith(lowerCasedKeysSoFar)) {
3576
+ var element = getItemNodeFromIndex(offsetIndex);
3577
+ if (!(element === null || element === void 0 ? void 0 : element.hasAttribute('disabled'))) {
3578
+ return offsetIndex;
3579
+ }
3580
+ }
3713
3581
  }
3714
- }
3715
-
3716
- return highlightedIndex;
3582
+ return highlightedIndex;
3717
3583
  }
3718
-
3719
3584
  var propTypes$2 = {
3720
- items: propTypes$3.array.isRequired,
3721
- itemToString: propTypes$3.func,
3722
- getA11yStatusMessage: propTypes$3.func,
3723
- getA11ySelectionMessage: propTypes$3.func,
3724
- circularNavigation: propTypes$3.bool,
3725
- highlightedIndex: propTypes$3.number,
3726
- defaultHighlightedIndex: propTypes$3.number,
3727
- initialHighlightedIndex: propTypes$3.number,
3728
- isOpen: propTypes$3.bool,
3729
- defaultIsOpen: propTypes$3.bool,
3730
- initialIsOpen: propTypes$3.bool,
3731
- selectedItem: propTypes$3.any,
3732
- initialSelectedItem: propTypes$3.any,
3733
- defaultSelectedItem: propTypes$3.any,
3734
- id: propTypes$3.string,
3735
- labelId: propTypes$3.string,
3736
- menuId: propTypes$3.string,
3737
- getItemId: propTypes$3.func,
3738
- toggleButtonId: propTypes$3.string,
3739
- stateReducer: propTypes$3.func,
3740
- onSelectedItemChange: propTypes$3.func,
3741
- onHighlightedIndexChange: propTypes$3.func,
3742
- onStateChange: propTypes$3.func,
3743
- onIsOpenChange: propTypes$3.func,
3744
- environment: propTypes$3.shape({
3745
- addEventListener: propTypes$3.func,
3746
- removeEventListener: propTypes$3.func,
3747
- document: propTypes$3.shape({
3748
- getElementById: propTypes$3.func,
3749
- activeElement: propTypes$3.any,
3750
- body: propTypes$3.any
3585
+ items: PropTypes.array.isRequired,
3586
+ itemToString: PropTypes.func,
3587
+ getA11yStatusMessage: PropTypes.func,
3588
+ getA11ySelectionMessage: PropTypes.func,
3589
+ circularNavigation: PropTypes.bool,
3590
+ highlightedIndex: PropTypes.number,
3591
+ defaultHighlightedIndex: PropTypes.number,
3592
+ initialHighlightedIndex: PropTypes.number,
3593
+ isOpen: PropTypes.bool,
3594
+ defaultIsOpen: PropTypes.bool,
3595
+ initialIsOpen: PropTypes.bool,
3596
+ selectedItem: PropTypes.any,
3597
+ initialSelectedItem: PropTypes.any,
3598
+ defaultSelectedItem: PropTypes.any,
3599
+ id: PropTypes.string,
3600
+ labelId: PropTypes.string,
3601
+ menuId: PropTypes.string,
3602
+ getItemId: PropTypes.func,
3603
+ toggleButtonId: PropTypes.string,
3604
+ stateReducer: PropTypes.func,
3605
+ onSelectedItemChange: PropTypes.func,
3606
+ onHighlightedIndexChange: PropTypes.func,
3607
+ onStateChange: PropTypes.func,
3608
+ onIsOpenChange: PropTypes.func,
3609
+ environment: PropTypes.shape({
3610
+ addEventListener: PropTypes.func,
3611
+ removeEventListener: PropTypes.func,
3612
+ document: PropTypes.shape({
3613
+ getElementById: PropTypes.func,
3614
+ activeElement: PropTypes.any,
3615
+ body: PropTypes.any
3616
+ })
3751
3617
  })
3752
- })
3753
3618
  };
3754
3619
  /**
3755
3620
  * Default implementation for status message. Only added when menu is open.
@@ -3759,39 +3624,27 @@
3759
3624
  * @param {Object} param the downshift state and other relevant properties
3760
3625
  * @return {String} the a11y status message
3761
3626
  */
3762
-
3763
- function getA11yStatusMessage(_ref) {
3764
- var isOpen = _ref.isOpen,
3765
- resultCount = _ref.resultCount,
3766
- previousResultCount = _ref.previousResultCount;
3767
-
3768
- if (!isOpen) {
3627
+ function getA11yStatusMessage(_a) {
3628
+ var isOpen = _a.isOpen, resultCount = _a.resultCount, previousResultCount = _a.previousResultCount;
3629
+ if (!isOpen) {
3630
+ return '';
3631
+ }
3632
+ if (!resultCount) {
3633
+ return 'No results are available.';
3634
+ }
3635
+ if (resultCount !== previousResultCount) {
3636
+ return resultCount + " result" + (resultCount === 1 ? ' is' : 's are') + " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.";
3637
+ }
3769
3638
  return '';
3770
- }
3771
-
3772
- if (!resultCount) {
3773
- return 'No results are available.';
3774
- }
3775
-
3776
- if (resultCount !== previousResultCount) {
3777
- return resultCount + " result" + (resultCount === 1 ? ' is' : 's are') + " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.";
3778
- }
3779
-
3780
- return '';
3781
3639
  }
3782
-
3783
- var defaultProps$2 = _extends({}, defaultProps$3, {
3784
- getA11yStatusMessage: getA11yStatusMessage
3785
- }); // eslint-disable-next-line import/no-mutable-exports
3786
-
3787
-
3640
+ var defaultProps$2 = __assign(__assign({}, defaultProps$3), { getA11yStatusMessage: getA11yStatusMessage });
3641
+ // eslint-disable-next-line import/no-mutable-exports
3788
3642
  var validatePropTypes$2 = noop;
3789
3643
  /* istanbul ignore next */
3790
-
3791
3644
  {
3792
- validatePropTypes$2 = function validatePropTypes(options, caller) {
3793
- propTypes$3.checkPropTypes(propTypes$2, options, 'prop', caller.name);
3794
- };
3645
+ validatePropTypes$2 = function (options, caller) {
3646
+ PropTypes.checkPropTypes(propTypes$2, options, 'prop', caller.name);
3647
+ };
3795
3648
  }
3796
3649
 
3797
3650
  var MenuKeyDownArrowDown = '__menu_keydown_arrow_down__' ;
@@ -3866,7 +3719,13 @@
3866
3719
  {
3867
3720
  var lowercasedKey = action.key;
3868
3721
  var inputValue = "" + state.inputValue + lowercasedKey;
3869
- var itemIndex = getItemIndexByCharacterKey(inputValue, state.selectedItem ? props.items.indexOf(state.selectedItem) : -1, props.items, props.itemToString, action.getItemNodeFromIndex);
3722
+ var itemIndex = getItemIndexByCharacterKey({
3723
+ keysSoFar: inputValue,
3724
+ highlightedIndex: state.selectedItem ? props.items.indexOf(state.selectedItem) : -1,
3725
+ items: props.items,
3726
+ itemToString: props.itemToString,
3727
+ getItemNodeFromIndex: action.getItemNodeFromIndex
3728
+ });
3870
3729
  changes = _extends({
3871
3730
  inputValue: inputValue
3872
3731
  }, itemIndex >= 0 && {
@@ -3931,7 +3790,13 @@
3931
3790
 
3932
3791
  var _inputValue = "" + state.inputValue + _lowercasedKey;
3933
3792
 
3934
- var highlightedIndex = getItemIndexByCharacterKey(_inputValue, state.highlightedIndex, props.items, props.itemToString, action.getItemNodeFromIndex);
3793
+ var highlightedIndex = getItemIndexByCharacterKey({
3794
+ keysSoFar: _inputValue,
3795
+ highlightedIndex: state.highlightedIndex,
3796
+ items: props.items,
3797
+ itemToString: props.itemToString,
3798
+ getItemNodeFromIndex: action.getItemNodeFromIndex
3799
+ });
3935
3800
  changes = _extends({
3936
3801
  inputValue: _inputValue
3937
3802
  }, highlightedIndex >= 0 && {
@@ -3966,6 +3831,9 @@
3966
3831
  }
3967
3832
  /* eslint-enable complexity */
3968
3833
 
3834
+ var _excluded$2 = ["onMouseLeave", "refKey", "onKeyDown", "onBlur", "ref"],
3835
+ _excluded2$2 = ["onClick", "onKeyDown", "refKey", "ref"],
3836
+ _excluded3$1 = ["item", "index", "onMouseMove", "onClick", "refKey", "ref"];
3969
3837
  useSelect.stateChangeTypes = stateChangeTypes$2;
3970
3838
 
3971
3839
  function useSelect(userProps) {
@@ -4256,7 +4124,7 @@
4256
4124
  onKeyDown = _ref.onKeyDown,
4257
4125
  onBlur = _ref.onBlur,
4258
4126
  ref = _ref.ref,
4259
- rest = _objectWithoutPropertiesLoose(_ref, ["onMouseLeave", "refKey", "onKeyDown", "onBlur", "ref"]);
4127
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2);
4260
4128
 
4261
4129
  var _ref2 = _temp2 === void 0 ? {} : _temp2,
4262
4130
  _ref2$suppressRefErro = _ref2.suppressRefError,
@@ -4321,7 +4189,7 @@
4321
4189
  _ref3$refKey = _ref3.refKey,
4322
4190
  refKey = _ref3$refKey === void 0 ? 'ref' : _ref3$refKey,
4323
4191
  ref = _ref3.ref,
4324
- rest = _objectWithoutPropertiesLoose(_ref3, ["onClick", "onKeyDown", "refKey", "ref"]);
4192
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
4325
4193
 
4326
4194
  var _ref4 = _temp4 === void 0 ? {} : _temp4,
4327
4195
  _ref4$suppressRefErro = _ref4.suppressRefError,
@@ -4370,7 +4238,7 @@
4370
4238
  _ref5$refKey = _ref5.refKey,
4371
4239
  refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
4372
4240
  ref = _ref5.ref,
4373
- rest = _objectWithoutPropertiesLoose(_ref5, ["item", "index", "onMouseMove", "onClick", "refKey", "ref"]);
4241
+ rest = _objectWithoutPropertiesLoose(_ref5, _excluded3$1);
4374
4242
 
4375
4243
  var _latest$current = latest.current,
4376
4244
  latestState = _latest$current.state,
@@ -4500,42 +4368,42 @@
4500
4368
  }
4501
4369
 
4502
4370
  var propTypes$1 = {
4503
- items: propTypes$3.array.isRequired,
4504
- itemToString: propTypes$3.func,
4505
- getA11yStatusMessage: propTypes$3.func,
4506
- getA11ySelectionMessage: propTypes$3.func,
4507
- circularNavigation: propTypes$3.bool,
4508
- highlightedIndex: propTypes$3.number,
4509
- defaultHighlightedIndex: propTypes$3.number,
4510
- initialHighlightedIndex: propTypes$3.number,
4511
- isOpen: propTypes$3.bool,
4512
- defaultIsOpen: propTypes$3.bool,
4513
- initialIsOpen: propTypes$3.bool,
4514
- selectedItem: propTypes$3.any,
4515
- initialSelectedItem: propTypes$3.any,
4516
- defaultSelectedItem: propTypes$3.any,
4517
- inputValue: propTypes$3.string,
4518
- defaultInputValue: propTypes$3.string,
4519
- initialInputValue: propTypes$3.string,
4520
- id: propTypes$3.string,
4521
- labelId: propTypes$3.string,
4522
- menuId: propTypes$3.string,
4523
- getItemId: propTypes$3.func,
4524
- inputId: propTypes$3.string,
4525
- toggleButtonId: propTypes$3.string,
4526
- stateReducer: propTypes$3.func,
4527
- onSelectedItemChange: propTypes$3.func,
4528
- onHighlightedIndexChange: propTypes$3.func,
4529
- onStateChange: propTypes$3.func,
4530
- onIsOpenChange: propTypes$3.func,
4531
- onInputValueChange: propTypes$3.func,
4532
- environment: propTypes$3.shape({
4533
- addEventListener: propTypes$3.func,
4534
- removeEventListener: propTypes$3.func,
4535
- document: propTypes$3.shape({
4536
- getElementById: propTypes$3.func,
4537
- activeElement: propTypes$3.any,
4538
- body: propTypes$3.any
4371
+ items: PropTypes.array.isRequired,
4372
+ itemToString: PropTypes.func,
4373
+ getA11yStatusMessage: PropTypes.func,
4374
+ getA11ySelectionMessage: PropTypes.func,
4375
+ circularNavigation: PropTypes.bool,
4376
+ highlightedIndex: PropTypes.number,
4377
+ defaultHighlightedIndex: PropTypes.number,
4378
+ initialHighlightedIndex: PropTypes.number,
4379
+ isOpen: PropTypes.bool,
4380
+ defaultIsOpen: PropTypes.bool,
4381
+ initialIsOpen: PropTypes.bool,
4382
+ selectedItem: PropTypes.any,
4383
+ initialSelectedItem: PropTypes.any,
4384
+ defaultSelectedItem: PropTypes.any,
4385
+ inputValue: PropTypes.string,
4386
+ defaultInputValue: PropTypes.string,
4387
+ initialInputValue: PropTypes.string,
4388
+ id: PropTypes.string,
4389
+ labelId: PropTypes.string,
4390
+ menuId: PropTypes.string,
4391
+ getItemId: PropTypes.func,
4392
+ inputId: PropTypes.string,
4393
+ toggleButtonId: PropTypes.string,
4394
+ stateReducer: PropTypes.func,
4395
+ onSelectedItemChange: PropTypes.func,
4396
+ onHighlightedIndexChange: PropTypes.func,
4397
+ onStateChange: PropTypes.func,
4398
+ onIsOpenChange: PropTypes.func,
4399
+ onInputValueChange: PropTypes.func,
4400
+ environment: PropTypes.shape({
4401
+ addEventListener: PropTypes.func,
4402
+ removeEventListener: PropTypes.func,
4403
+ document: PropTypes.shape({
4404
+ getElementById: PropTypes.func,
4405
+ activeElement: PropTypes.any,
4406
+ body: PropTypes.any
4539
4407
  })
4540
4408
  })
4541
4409
  };
@@ -4581,7 +4449,7 @@
4581
4449
 
4582
4450
  {
4583
4451
  validatePropTypes$1 = function validatePropTypes(options, caller) {
4584
- propTypes$3.checkPropTypes(propTypes$1, options, 'prop', caller.name);
4452
+ PropTypes.checkPropTypes(propTypes$1, options, 'prop', caller.name);
4585
4453
  };
4586
4454
  }
4587
4455
 
@@ -4706,6 +4574,11 @@
4706
4574
  }
4707
4575
  /* eslint-enable complexity */
4708
4576
 
4577
+ var _excluded$1 = ["onMouseLeave", "refKey", "ref"],
4578
+ _excluded2$1 = ["item", "index", "refKey", "ref", "onMouseMove", "onClick", "onPress"],
4579
+ _excluded3 = ["onClick", "onPress", "refKey", "ref"],
4580
+ _excluded4 = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "refKey", "ref"],
4581
+ _excluded5 = ["refKey", "ref"];
4709
4582
  useCombobox.stateChangeTypes = stateChangeTypes$1;
4710
4583
 
4711
4584
  function useCombobox(userProps) {
@@ -4876,8 +4749,8 @@
4876
4749
 
4877
4750
  if (!latestState.isOpen || latestState.highlightedIndex < 0 || event.which === 229 // if IME composing, wait for next Enter keydown event.
4878
4751
  ) {
4879
- return;
4880
- }
4752
+ return;
4753
+ }
4881
4754
 
4882
4755
  event.preventDefault();
4883
4756
  dispatch({
@@ -4902,7 +4775,7 @@
4902
4775
  _ref$refKey = _ref.refKey,
4903
4776
  refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
4904
4777
  ref = _ref.ref,
4905
- rest = _objectWithoutPropertiesLoose(_ref, ["onMouseLeave", "refKey", "ref"]);
4778
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
4906
4779
 
4907
4780
  var _ref2 = _temp2 === void 0 ? {} : _temp2,
4908
4781
  _ref2$suppressRefErro = _ref2.suppressRefError,
@@ -4929,7 +4802,7 @@
4929
4802
  onMouseMove = _ref3.onMouseMove,
4930
4803
  onClick = _ref3.onClick;
4931
4804
  _ref3.onPress;
4932
- var rest = _objectWithoutPropertiesLoose(_ref3, ["item", "index", "refKey", "ref", "onMouseMove", "onClick", "onPress"]);
4805
+ var rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
4933
4806
 
4934
4807
  var _latest$current = latest.current,
4935
4808
  latestProps = _latest$current.props,
@@ -4983,7 +4856,7 @@
4983
4856
  var _ref5$refKey = _ref5.refKey,
4984
4857
  refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
4985
4858
  ref = _ref5.ref,
4986
- rest = _objectWithoutPropertiesLoose(_ref5, ["onClick", "onPress", "refKey", "ref"]);
4859
+ rest = _objectWithoutPropertiesLoose(_ref5, _excluded3);
4987
4860
 
4988
4861
  var toggleButtonHandleClick = function toggleButtonHandleClick() {
4989
4862
  dispatch({
@@ -5013,7 +4886,7 @@
5013
4886
  var _ref6$refKey = _ref6.refKey,
5014
4887
  refKey = _ref6$refKey === void 0 ? 'ref' : _ref6$refKey,
5015
4888
  ref = _ref6.ref,
5016
- rest = _objectWithoutPropertiesLoose(_ref6, ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "refKey", "ref"]);
4889
+ rest = _objectWithoutPropertiesLoose(_ref6, _excluded4);
5017
4890
 
5018
4891
  var _ref7 = _temp6 === void 0 ? {} : _temp6,
5019
4892
  _ref7$suppressRefErro = _ref7.suppressRefError,
@@ -5077,7 +4950,7 @@
5077
4950
  _ref8$refKey = _ref8.refKey,
5078
4951
  refKey = _ref8$refKey === void 0 ? 'ref' : _ref8$refKey,
5079
4952
  ref = _ref8.ref,
5080
- rest = _objectWithoutPropertiesLoose(_ref8, ["refKey", "ref"]);
4953
+ rest = _objectWithoutPropertiesLoose(_ref8, _excluded5);
5081
4954
 
5082
4955
  var _ref9 = _temp8 === void 0 ? {} : _temp8,
5083
4956
  _ref9$suppressRefErro = _ref9.suppressRefError,
@@ -5217,9 +5090,7 @@
5217
5090
  var element = event.target;
5218
5091
 
5219
5092
  if (element instanceof HTMLInputElement && // if element is a text input
5220
- element.value !== '' && ( // and we have text in it
5221
- // and cursor is either not at the start or is currently highlighting text.
5222
- element.selectionStart !== 0 || element.selectionEnd !== 0)) {
5093
+ element.value !== '' && (element.selectionStart !== 0 || element.selectionEnd !== 0)) {
5223
5094
  return false;
5224
5095
  }
5225
5096
 
@@ -5240,26 +5111,26 @@
5240
5111
  }
5241
5112
 
5242
5113
  var propTypes = {
5243
- selectedItems: propTypes$3.array,
5244
- initialSelectedItems: propTypes$3.array,
5245
- defaultSelectedItems: propTypes$3.array,
5246
- itemToString: propTypes$3.func,
5247
- getA11yRemovalMessage: propTypes$3.func,
5248
- stateReducer: propTypes$3.func,
5249
- activeIndex: propTypes$3.number,
5250
- initialActiveIndex: propTypes$3.number,
5251
- defaultActiveIndex: propTypes$3.number,
5252
- onActiveIndexChange: propTypes$3.func,
5253
- onSelectedItemsChange: propTypes$3.func,
5254
- keyNavigationNext: propTypes$3.string,
5255
- keyNavigationPrevious: propTypes$3.string,
5256
- environment: propTypes$3.shape({
5257
- addEventListener: propTypes$3.func,
5258
- removeEventListener: propTypes$3.func,
5259
- document: propTypes$3.shape({
5260
- getElementById: propTypes$3.func,
5261
- activeElement: propTypes$3.any,
5262
- body: propTypes$3.any
5114
+ selectedItems: PropTypes.array,
5115
+ initialSelectedItems: PropTypes.array,
5116
+ defaultSelectedItems: PropTypes.array,
5117
+ itemToString: PropTypes.func,
5118
+ getA11yRemovalMessage: PropTypes.func,
5119
+ stateReducer: PropTypes.func,
5120
+ activeIndex: PropTypes.number,
5121
+ initialActiveIndex: PropTypes.number,
5122
+ defaultActiveIndex: PropTypes.number,
5123
+ onActiveIndexChange: PropTypes.func,
5124
+ onSelectedItemsChange: PropTypes.func,
5125
+ keyNavigationNext: PropTypes.string,
5126
+ keyNavigationPrevious: PropTypes.string,
5127
+ environment: PropTypes.shape({
5128
+ addEventListener: PropTypes.func,
5129
+ removeEventListener: PropTypes.func,
5130
+ document: PropTypes.shape({
5131
+ getElementById: PropTypes.func,
5132
+ activeElement: PropTypes.any,
5133
+ body: PropTypes.any
5263
5134
  })
5264
5135
  })
5265
5136
  };
@@ -5277,7 +5148,7 @@
5277
5148
 
5278
5149
  {
5279
5150
  validatePropTypes = function validatePropTypes(options, caller) {
5280
- propTypes$3.checkPropTypes(propTypes, options, 'prop', caller.name);
5151
+ PropTypes.checkPropTypes(propTypes, options, 'prop', caller.name);
5281
5152
  };
5282
5153
  }
5283
5154
 
@@ -5436,6 +5307,8 @@
5436
5307
  return _extends({}, state, changes);
5437
5308
  }
5438
5309
 
5310
+ var _excluded = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"],
5311
+ _excluded2 = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
5439
5312
  useMultipleSelection.stateChangeTypes = stateChangeTypes;
5440
5313
 
5441
5314
  function useMultipleSelection(userProps) {
@@ -5565,7 +5438,7 @@
5565
5438
  onKeyDown = _ref3.onKeyDown,
5566
5439
  selectedItem = _ref3.selectedItem,
5567
5440
  index = _ref3.index,
5568
- rest = _objectWithoutPropertiesLoose(_ref3, ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"]);
5441
+ rest = _objectWithoutPropertiesLoose(_ref3, _excluded);
5569
5442
 
5570
5443
  var latestState = latest.current.state;
5571
5444
  var itemIndex = getItemIndex(index, selectedItem, latestState.selectedItems);
@@ -5606,7 +5479,7 @@
5606
5479
  onClick = _ref4.onClick,
5607
5480
  _ref4$preventKeyActio = _ref4.preventKeyAction,
5608
5481
  preventKeyAction = _ref4$preventKeyActio === void 0 ? false : _ref4$preventKeyActio,
5609
- rest = _objectWithoutPropertiesLoose(_ref4, ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"]);
5482
+ rest = _objectWithoutPropertiesLoose(_ref4, _excluded2);
5610
5483
 
5611
5484
  var _ref5 = _temp3 === void 0 ? {} : _temp3,
5612
5485
  _ref5$suppressRefErro = _ref5.suppressRefError,
@@ -5680,7 +5553,7 @@
5680
5553
  };
5681
5554
  }
5682
5555
 
5683
- exports.default = Downshift;
5556
+ exports['default'] = Downshift$1;
5684
5557
  exports.resetIdCounter = resetIdCounter;
5685
5558
  exports.useCombobox = useCombobox;
5686
5559
  exports.useMultipleSelection = useMultipleSelection;