1 | (function webpackUniversalModuleDefinition(root, factory) {
|
2 | if(typeof exports === 'object' && typeof module === 'object')
|
3 | module.exports = factory();
|
4 | else if(typeof define === 'function' && define.amd)
|
5 | define([], factory);
|
6 | else if(typeof exports === 'object')
|
7 | exports["Redux"] = factory();
|
8 | else
|
9 | root["Redux"] = factory();
|
10 | })(this, function() {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId])
|
20 | return installedModules[moduleId].exports;
|
21 |
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | exports: {},
|
25 | id: moduleId,
|
26 | loaded: false
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.loaded = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.p = "";
|
48 |
|
49 |
|
50 | return __webpack_require__(0);
|
51 | })
|
52 |
|
53 | ([
|
54 |
|
55 | function(module, exports, __webpack_require__) {
|
56 |
|
57 | 'use strict';
|
58 |
|
59 | exports.__esModule = true;
|
60 | exports.compose = exports.applyMiddleware = exports.bindActionCreators = exports.combineReducers = exports.createStore = undefined;
|
61 |
|
62 | var _createStore = __webpack_require__(2);
|
63 |
|
64 | var _createStore2 = _interopRequireDefault(_createStore);
|
65 |
|
66 | var _combineReducers = __webpack_require__(7);
|
67 |
|
68 | var _combineReducers2 = _interopRequireDefault(_combineReducers);
|
69 |
|
70 | var _bindActionCreators = __webpack_require__(6);
|
71 |
|
72 | var _bindActionCreators2 = _interopRequireDefault(_bindActionCreators);
|
73 |
|
74 | var _applyMiddleware = __webpack_require__(5);
|
75 |
|
76 | var _applyMiddleware2 = _interopRequireDefault(_applyMiddleware);
|
77 |
|
78 | var _compose = __webpack_require__(1);
|
79 |
|
80 | var _compose2 = _interopRequireDefault(_compose);
|
81 |
|
82 | var _warning = __webpack_require__(3);
|
83 |
|
84 | var _warning2 = _interopRequireDefault(_warning);
|
85 |
|
86 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
87 |
|
88 | |
89 |
|
90 |
|
91 |
|
92 | function isCrushed() {}
|
93 |
|
94 | if (("development") !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
95 | (0, _warning2["default"])('You are currently using minified code outside of NODE_ENV === \'production\'. ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) ' + 'to ensure you have the correct code for your production build.');
|
96 | }
|
97 |
|
98 | exports.createStore = _createStore2["default"];
|
99 | exports.combineReducers = _combineReducers2["default"];
|
100 | exports.bindActionCreators = _bindActionCreators2["default"];
|
101 | exports.applyMiddleware = _applyMiddleware2["default"];
|
102 | exports.compose = _compose2["default"];
|
103 |
|
104 | },
|
105 |
|
106 | function(module, exports) {
|
107 |
|
108 | "use strict";
|
109 |
|
110 | exports.__esModule = true;
|
111 | exports["default"] = compose;
|
112 | |
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 | function compose() {
|
124 | for (var _len = arguments.length, funcs = Array(_len), _key = 0; _key < _len; _key++) {
|
125 | funcs[_key] = arguments[_key];
|
126 | }
|
127 |
|
128 | if (funcs.length === 0) {
|
129 | return function (arg) {
|
130 | return arg;
|
131 | };
|
132 | } else {
|
133 | var _ret = function () {
|
134 | var last = funcs[funcs.length - 1];
|
135 | var rest = funcs.slice(0, -1);
|
136 | return {
|
137 | v: function v() {
|
138 | return rest.reduceRight(function (composed, f) {
|
139 | return f(composed);
|
140 | }, last.apply(undefined, arguments));
|
141 | }
|
142 | };
|
143 | }();
|
144 |
|
145 | if (typeof _ret === "object") return _ret.v;
|
146 | }
|
147 | }
|
148 |
|
149 | },
|
150 |
|
151 | function(module, exports, __webpack_require__) {
|
152 |
|
153 | 'use strict';
|
154 |
|
155 | exports.__esModule = true;
|
156 | exports.ActionTypes = undefined;
|
157 | exports["default"] = createStore;
|
158 |
|
159 | var _isPlainObject = __webpack_require__(4);
|
160 |
|
161 | var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
|
162 |
|
163 | var _symbolObservable = __webpack_require__(11);
|
164 |
|
165 | var _symbolObservable2 = _interopRequireDefault(_symbolObservable);
|
166 |
|
167 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
168 |
|
169 | |
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 | var ActionTypes = exports.ActionTypes = {
|
176 | INIT: '@@redux/INIT'
|
177 | };
|
178 |
|
179 | |
180 |
|
181 |
|
182 |
|
183 |
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 | function createStore(reducer, initialState, enhancer) {
|
205 | var _ref2;
|
206 |
|
207 | if (typeof initialState === 'function' && typeof enhancer === 'undefined') {
|
208 | enhancer = initialState;
|
209 | initialState = undefined;
|
210 | }
|
211 |
|
212 | if (typeof enhancer !== 'undefined') {
|
213 | if (typeof enhancer !== 'function') {
|
214 | throw new Error('Expected the enhancer to be a function.');
|
215 | }
|
216 |
|
217 | return enhancer(createStore)(reducer, initialState);
|
218 | }
|
219 |
|
220 | if (typeof reducer !== 'function') {
|
221 | throw new Error('Expected the reducer to be a function.');
|
222 | }
|
223 |
|
224 | var currentReducer = reducer;
|
225 | var currentState = initialState;
|
226 | var currentListeners = [];
|
227 | var nextListeners = currentListeners;
|
228 | var isDispatching = false;
|
229 |
|
230 | function ensureCanMutateNextListeners() {
|
231 | if (nextListeners === currentListeners) {
|
232 | nextListeners = currentListeners.slice();
|
233 | }
|
234 | }
|
235 |
|
236 | |
237 |
|
238 |
|
239 |
|
240 |
|
241 | function getState() {
|
242 | return currentState;
|
243 | }
|
244 |
|
245 | |
246 |
|
247 |
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 |
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 |
|
267 |
|
268 | function subscribe(listener) {
|
269 | if (typeof listener !== 'function') {
|
270 | throw new Error('Expected listener to be a function.');
|
271 | }
|
272 |
|
273 | var isSubscribed = true;
|
274 |
|
275 | ensureCanMutateNextListeners();
|
276 | nextListeners.push(listener);
|
277 |
|
278 | return function unsubscribe() {
|
279 | if (!isSubscribed) {
|
280 | return;
|
281 | }
|
282 |
|
283 | isSubscribed = false;
|
284 |
|
285 | ensureCanMutateNextListeners();
|
286 | var index = nextListeners.indexOf(listener);
|
287 | nextListeners.splice(index, 1);
|
288 | };
|
289 | }
|
290 |
|
291 | |
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 | function dispatch(action) {
|
317 | if (!(0, _isPlainObject2["default"])(action)) {
|
318 | throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.');
|
319 | }
|
320 |
|
321 | if (typeof action.type === 'undefined') {
|
322 | throw new Error('Actions may not have an undefined "type" property. ' + 'Have you misspelled a constant?');
|
323 | }
|
324 |
|
325 | if (isDispatching) {
|
326 | throw new Error('Reducers may not dispatch actions.');
|
327 | }
|
328 |
|
329 | try {
|
330 | isDispatching = true;
|
331 | currentState = currentReducer(currentState, action);
|
332 | } finally {
|
333 | isDispatching = false;
|
334 | }
|
335 |
|
336 | var listeners = currentListeners = nextListeners;
|
337 | for (var i = 0; i < listeners.length; i++) {
|
338 | listeners[i]();
|
339 | }
|
340 |
|
341 | return action;
|
342 | }
|
343 |
|
344 | |
345 |
|
346 |
|
347 |
|
348 |
|
349 |
|
350 |
|
351 |
|
352 |
|
353 |
|
354 | function replaceReducer(nextReducer) {
|
355 | if (typeof nextReducer !== 'function') {
|
356 | throw new Error('Expected the nextReducer to be a function.');
|
357 | }
|
358 |
|
359 | currentReducer = nextReducer;
|
360 | dispatch({ type: ActionTypes.INIT });
|
361 | }
|
362 |
|
363 | |
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 | function observable() {
|
370 | var _ref;
|
371 |
|
372 | var outerSubscribe = subscribe;
|
373 | return _ref = {
|
374 | |
375 |
|
376 |
|
377 |
|
378 |
|
379 |
|
380 |
|
381 |
|
382 |
|
383 | subscribe: function subscribe(observer) {
|
384 | if (typeof observer !== 'object') {
|
385 | throw new TypeError('Expected the observer to be an object.');
|
386 | }
|
387 |
|
388 | function observeState() {
|
389 | if (observer.next) {
|
390 | observer.next(getState());
|
391 | }
|
392 | }
|
393 |
|
394 | observeState();
|
395 | var unsubscribe = outerSubscribe(observeState);
|
396 | return { unsubscribe: unsubscribe };
|
397 | }
|
398 | }, _ref[_symbolObservable2["default"]] = function () {
|
399 | return this;
|
400 | }, _ref;
|
401 | }
|
402 |
|
403 |
|
404 |
|
405 |
|
406 | dispatch({ type: ActionTypes.INIT });
|
407 |
|
408 | return _ref2 = {
|
409 | dispatch: dispatch,
|
410 | subscribe: subscribe,
|
411 | getState: getState,
|
412 | replaceReducer: replaceReducer
|
413 | }, _ref2[_symbolObservable2["default"]] = observable, _ref2;
|
414 | }
|
415 |
|
416 | },
|
417 |
|
418 | function(module, exports) {
|
419 |
|
420 | 'use strict';
|
421 |
|
422 | exports.__esModule = true;
|
423 | exports["default"] = warning;
|
424 | |
425 |
|
426 |
|
427 |
|
428 |
|
429 |
|
430 | function warning(message) {
|
431 |
|
432 | if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
433 | console.error(message);
|
434 | }
|
435 |
|
436 | try {
|
437 |
|
438 |
|
439 |
|
440 | throw new Error(message);
|
441 |
|
442 | } catch (e) {}
|
443 |
|
444 | }
|
445 |
|
446 | },
|
447 |
|
448 | function(module, exports, __webpack_require__) {
|
449 |
|
450 | var getPrototype = __webpack_require__(8),
|
451 | isHostObject = __webpack_require__(9),
|
452 | isObjectLike = __webpack_require__(10);
|
453 |
|
454 |
|
455 | var objectTag = '[object Object]';
|
456 |
|
457 |
|
458 | var objectProto = Object.prototype;
|
459 |
|
460 |
|
461 | var funcToString = Function.prototype.toString;
|
462 |
|
463 |
|
464 | var hasOwnProperty = objectProto.hasOwnProperty;
|
465 |
|
466 |
|
467 | var objectCtorString = funcToString.call(Object);
|
468 |
|
469 | |
470 |
|
471 |
|
472 |
|
473 |
|
474 | var objectToString = objectProto.toString;
|
475 |
|
476 | |
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 |
|
488 |
|
489 |
|
490 |
|
491 |
|
492 |
|
493 |
|
494 |
|
495 |
|
496 |
|
497 |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 |
|
504 |
|
505 | function isPlainObject(value) {
|
506 | if (!isObjectLike(value) ||
|
507 | objectToString.call(value) != objectTag || isHostObject(value)) {
|
508 | return false;
|
509 | }
|
510 | var proto = getPrototype(value);
|
511 | if (proto === null) {
|
512 | return true;
|
513 | }
|
514 | var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
515 | return (typeof Ctor == 'function' &&
|
516 | Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
517 | }
|
518 |
|
519 | module.exports = isPlainObject;
|
520 |
|
521 |
|
522 | },
|
523 |
|
524 | function(module, exports, __webpack_require__) {
|
525 |
|
526 | 'use strict';
|
527 |
|
528 | exports.__esModule = true;
|
529 |
|
530 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
531 |
|
532 | exports["default"] = applyMiddleware;
|
533 |
|
534 | var _compose = __webpack_require__(1);
|
535 |
|
536 | var _compose2 = _interopRequireDefault(_compose);
|
537 |
|
538 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
539 |
|
540 | |
541 |
|
542 |
|
543 |
|
544 |
|
545 |
|
546 |
|
547 |
|
548 |
|
549 |
|
550 |
|
551 |
|
552 |
|
553 |
|
554 |
|
555 |
|
556 | function applyMiddleware() {
|
557 | for (var _len = arguments.length, middlewares = Array(_len), _key = 0; _key < _len; _key++) {
|
558 | middlewares[_key] = arguments[_key];
|
559 | }
|
560 |
|
561 | return function (createStore) {
|
562 | return function (reducer, initialState, enhancer) {
|
563 | var store = createStore(reducer, initialState, enhancer);
|
564 | var _dispatch = store.dispatch;
|
565 | var chain = [];
|
566 |
|
567 | var middlewareAPI = {
|
568 | getState: store.getState,
|
569 | dispatch: function dispatch(action) {
|
570 | return _dispatch(action);
|
571 | }
|
572 | };
|
573 | chain = middlewares.map(function (middleware) {
|
574 | return middleware(middlewareAPI);
|
575 | });
|
576 | _dispatch = _compose2["default"].apply(undefined, chain)(store.dispatch);
|
577 |
|
578 | return _extends({}, store, {
|
579 | dispatch: _dispatch
|
580 | });
|
581 | };
|
582 | };
|
583 | }
|
584 |
|
585 | },
|
586 |
|
587 | function(module, exports) {
|
588 |
|
589 | 'use strict';
|
590 |
|
591 | exports.__esModule = true;
|
592 | exports["default"] = bindActionCreators;
|
593 | function bindActionCreator(actionCreator, dispatch) {
|
594 | return function () {
|
595 | return dispatch(actionCreator.apply(undefined, arguments));
|
596 | };
|
597 | }
|
598 |
|
599 | |
600 |
|
601 |
|
602 |
|
603 |
|
604 |
|
605 |
|
606 |
|
607 |
|
608 |
|
609 |
|
610 |
|
611 |
|
612 |
|
613 |
|
614 |
|
615 |
|
616 |
|
617 |
|
618 |
|
619 |
|
620 | function bindActionCreators(actionCreators, dispatch) {
|
621 | if (typeof actionCreators === 'function') {
|
622 | return bindActionCreator(actionCreators, dispatch);
|
623 | }
|
624 |
|
625 | if (typeof actionCreators !== 'object' || actionCreators === null) {
|
626 | throw new Error('bindActionCreators expected an object or a function, instead received ' + (actionCreators === null ? 'null' : typeof actionCreators) + '. ' + 'Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');
|
627 | }
|
628 |
|
629 | var keys = Object.keys(actionCreators);
|
630 | var boundActionCreators = {};
|
631 | for (var i = 0; i < keys.length; i++) {
|
632 | var key = keys[i];
|
633 | var actionCreator = actionCreators[key];
|
634 | if (typeof actionCreator === 'function') {
|
635 | boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
|
636 | }
|
637 | }
|
638 | return boundActionCreators;
|
639 | }
|
640 |
|
641 | },
|
642 |
|
643 | function(module, exports, __webpack_require__) {
|
644 |
|
645 | 'use strict';
|
646 |
|
647 | exports.__esModule = true;
|
648 | exports["default"] = combineReducers;
|
649 |
|
650 | var _createStore = __webpack_require__(2);
|
651 |
|
652 | var _isPlainObject = __webpack_require__(4);
|
653 |
|
654 | var _isPlainObject2 = _interopRequireDefault(_isPlainObject);
|
655 |
|
656 | var _warning = __webpack_require__(3);
|
657 |
|
658 | var _warning2 = _interopRequireDefault(_warning);
|
659 |
|
660 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
661 |
|
662 | function getUndefinedStateErrorMessage(key, action) {
|
663 | var actionType = action && action.type;
|
664 | var actionName = actionType && '"' + actionType.toString() + '"' || 'an action';
|
665 |
|
666 | return 'Given action ' + actionName + ', reducer "' + key + '" returned undefined. ' + 'To ignore an action, you must explicitly return the previous state.';
|
667 | }
|
668 |
|
669 | function getUnexpectedStateShapeWarningMessage(inputState, reducers, action) {
|
670 | var reducerKeys = Object.keys(reducers);
|
671 | var argumentName = action && action.type === _createStore.ActionTypes.INIT ? 'initialState argument passed to createStore' : 'previous state received by the reducer';
|
672 |
|
673 | if (reducerKeys.length === 0) {
|
674 | return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
|
675 | }
|
676 |
|
677 | if (!(0, _isPlainObject2["default"])(inputState)) {
|
678 | return 'The ' + argumentName + ' has unexpected type of "' + {}.toString.call(inputState).match(/\s([a-z|A-Z]+)/)[1] + '". Expected argument to be an object with the following ' + ('keys: "' + reducerKeys.join('", "') + '"');
|
679 | }
|
680 |
|
681 | var unexpectedKeys = Object.keys(inputState).filter(function (key) {
|
682 | return !reducers.hasOwnProperty(key);
|
683 | });
|
684 |
|
685 | if (unexpectedKeys.length > 0) {
|
686 | return 'Unexpected ' + (unexpectedKeys.length > 1 ? 'keys' : 'key') + ' ' + ('"' + unexpectedKeys.join('", "') + '" found in ' + argumentName + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('"' + reducerKeys.join('", "') + '". Unexpected keys will be ignored.');
|
687 | }
|
688 | }
|
689 |
|
690 | function assertReducerSanity(reducers) {
|
691 | Object.keys(reducers).forEach(function (key) {
|
692 | var reducer = reducers[key];
|
693 | var initialState = reducer(undefined, { type: _createStore.ActionTypes.INIT });
|
694 |
|
695 | if (typeof initialState === 'undefined') {
|
696 | throw new Error('Reducer "' + key + '" returned undefined during initialization. ' + 'If the state passed to the reducer is undefined, you must ' + 'explicitly return the initial state. The initial state may ' + 'not be undefined.');
|
697 | }
|
698 |
|
699 | var type = '@@redux/PROBE_UNKNOWN_ACTION_' + Math.random().toString(36).substring(7).split('').join('.');
|
700 | if (typeof reducer(undefined, { type: type }) === 'undefined') {
|
701 | throw new Error('Reducer "' + key + '" returned undefined when probed with a random type. ' + ('Don\'t try to handle ' + _createStore.ActionTypes.INIT + ' or other actions in "redux/*" ') + 'namespace. They are considered private. Instead, you must return the ' + 'current state for any unknown actions, unless it is undefined, ' + 'in which case you must return the initial state, regardless of the ' + 'action type. The initial state may not be undefined.');
|
702 | }
|
703 | });
|
704 | }
|
705 |
|
706 | |
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 |
|
713 |
|
714 |
|
715 |
|
716 |
|
717 |
|
718 |
|
719 |
|
720 |
|
721 |
|
722 | function combineReducers(reducers) {
|
723 | var reducerKeys = Object.keys(reducers);
|
724 | var finalReducers = {};
|
725 | for (var i = 0; i < reducerKeys.length; i++) {
|
726 | var key = reducerKeys[i];
|
727 | if (typeof reducers[key] === 'function') {
|
728 | finalReducers[key] = reducers[key];
|
729 | }
|
730 | }
|
731 | var finalReducerKeys = Object.keys(finalReducers);
|
732 |
|
733 | var sanityError;
|
734 | try {
|
735 | assertReducerSanity(finalReducers);
|
736 | } catch (e) {
|
737 | sanityError = e;
|
738 | }
|
739 |
|
740 | return function combination() {
|
741 | var state = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
|
742 | var action = arguments[1];
|
743 |
|
744 | if (sanityError) {
|
745 | throw sanityError;
|
746 | }
|
747 |
|
748 | if (true) {
|
749 | var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action);
|
750 | if (warningMessage) {
|
751 | (0, _warning2["default"])(warningMessage);
|
752 | }
|
753 | }
|
754 |
|
755 | var hasChanged = false;
|
756 | var nextState = {};
|
757 | for (var i = 0; i < finalReducerKeys.length; i++) {
|
758 | var key = finalReducerKeys[i];
|
759 | var reducer = finalReducers[key];
|
760 | var previousStateForKey = state[key];
|
761 | var nextStateForKey = reducer(previousStateForKey, action);
|
762 | if (typeof nextStateForKey === 'undefined') {
|
763 | var errorMessage = getUndefinedStateErrorMessage(key, action);
|
764 | throw new Error(errorMessage);
|
765 | }
|
766 | nextState[key] = nextStateForKey;
|
767 | hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
|
768 | }
|
769 | return hasChanged ? nextState : state;
|
770 | };
|
771 | }
|
772 |
|
773 | },
|
774 |
|
775 | function(module, exports) {
|
776 |
|
777 |
|
778 | var nativeGetPrototype = Object.getPrototypeOf;
|
779 |
|
780 | |
781 |
|
782 |
|
783 |
|
784 |
|
785 |
|
786 |
|
787 | function getPrototype(value) {
|
788 | return nativeGetPrototype(Object(value));
|
789 | }
|
790 |
|
791 | module.exports = getPrototype;
|
792 |
|
793 |
|
794 | },
|
795 |
|
796 | function(module, exports) {
|
797 |
|
798 | |
799 |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 | function isHostObject(value) {
|
806 |
|
807 |
|
808 | var result = false;
|
809 | if (value != null && typeof value.toString != 'function') {
|
810 | try {
|
811 | result = !!(value + '');
|
812 | } catch (e) {}
|
813 | }
|
814 | return result;
|
815 | }
|
816 |
|
817 | module.exports = isHostObject;
|
818 |
|
819 |
|
820 | },
|
821 |
|
822 | function(module, exports) {
|
823 |
|
824 | |
825 |
|
826 |
|
827 |
|
828 |
|
829 |
|
830 |
|
831 |
|
832 |
|
833 |
|
834 |
|
835 |
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 |
|
848 | function isObjectLike(value) {
|
849 | return !!value && typeof value == 'object';
|
850 | }
|
851 |
|
852 | module.exports = isObjectLike;
|
853 |
|
854 |
|
855 | },
|
856 |
|
857 | function(module, exports, __webpack_require__) {
|
858 |
|
859 | (function(global) {
|
860 | 'use strict';
|
861 |
|
862 | module.exports = __webpack_require__(12)(global || window || this);
|
863 |
|
864 | }.call(exports, (function() { return this; }())))
|
865 |
|
866 | },
|
867 |
|
868 | function(module, exports) {
|
869 |
|
870 | 'use strict';
|
871 |
|
872 | module.exports = function symbolObservablePonyfill(root) {
|
873 | var result;
|
874 | var Symbol = root.Symbol;
|
875 |
|
876 | if (typeof Symbol === 'function') {
|
877 | if (Symbol.observable) {
|
878 | result = Symbol.observable;
|
879 | } else {
|
880 | if (typeof Symbol['for'] === 'function') {
|
881 | result = Symbol['for']('observable');
|
882 | } else {
|
883 | result = Symbol('observable');
|
884 | }
|
885 | Symbol.observable = result;
|
886 | }
|
887 | } else {
|
888 | result = '@@observable';
|
889 | }
|
890 |
|
891 | return result;
|
892 | };
|
893 |
|
894 |
|
895 | }
|
896 | ])
|
897 | });
|
898 | ; |
\ | No newline at end of file |