-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to execute core-js in firefox's content_script environment #86
Comments
I don't know anything about writing FF extensions, I use this way getting global object because it's most appropriate way of those that I know.
You can propose more correct way. |
@iamolivinius can you try replace this line in core-js, for example, to var global = typeof self == 'object' && !self.port ? self : Function('return this')() and test your script? |
I was able to solve this minor issue within our project. I went with the "facebook kinda way", see: https://github.com/facebook/regenerator/blob/master/runtime.js#L645-650 browserify uses a similar solution but in a slightly different order, see: https://github.com/substack/insert-module-globals/blob/master/index.js#L14-16 webpack as far as I can see, uses a simple function (function() { return this; }() Not sure if there is some quantitative data to argue for one or the other. |
As you can see in the table above, first 2 examples will not be correct in some cases. Last example returns |
FWIW, this is what Lodash uses which is seemingly pretty reliable. |
Fixes zloirock#86 Line 2-31 is taken from https://github.com/lodash/lodash/blob/3.10.0/lodash.js#L251-274
@sebmck unfortunately not reliable enough to run in a content script within firefox (bootstrapped) extension. (add-on sdk untested) There are several ways to develop Firefox extensions. In this comment I focus on
For an overview, see: https://blog.mozilla.org/addons/2014/06/05/how-to-develop-firefox-extension/ Due to the API design of add-ons SDK and/or security mechanisms in general some really awesome javascript "modules" like core-js and lodash break within a firefox extension. Reason OneAdd-on SDK declares the
Many libraries check for self to get the global object basically to patch or inject methods. Obviously this will fail on a frozen object or if you rely on methods that can usually be found in the self object. Reason Two(This is 50% guessing. I haven't found much documentation on this.) Firefox executes content script code within a sandbox with higher privileges than ordinary code from a requested webpage. Nevertheless you can access the web page environment from the content script. Obviously this would open some security issues if it wasn't for Xray vision, see: https://developer.mozilla.org/en-US/docs/Xray_vision As far as I understand it: If you reference a native object or method from a web page environment within a content script you'd get a vanilla version of it regardless of any changes a web page may have introduced to this object before. Within a Bootstraped extension sandbox window and self and reference the window/tab of a requested webpage. Neither of those two are global. If you'd run the following example code you'd expect the eternal 🎱. var global = (function () { /* SOME MAGIC TO GET window, self, etc. */ })();
var windowMath = global['Math'];
windowMath.pow(2, 3) // TypeError: windowMath.pow is not a function Firefox Browser Console:
Turns out SolutionFind and use the correct global object.
|
Get correct global object in Firefox extensions, close #86
diff --git a/bundle.js b/bundle.js new file mode 100644 index 0000000..5cd3b41 --- /dev/null +++ b/bundle.js @@ -0,0 +1,35867 @@ +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = "/"; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 551); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__(5) + , core = __webpack_require__(36) + , hide = __webpack_require__(19) + , redefine = __webpack_require__(20) + , ctx = __webpack_require__(37) + , PROTOTYPE = 'prototype'; + +var $export = function(type, name, source){ + var IS_FORCED = type & $export.F + , IS_GLOBAL = type & $export.G + , IS_STATIC = type & $export.S + , IS_PROTO = type & $export.P + , IS_BIND = type & $export.B + , target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE] + , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) + , expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}) + , key, own, out, exp; + if(IS_GLOBAL)source = name; + for(key in source){ + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + // export native or passed + out = (own ? target : source)[key]; + // bind timers to global for call from export context + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; + // extend global + if(target)redefine(target, key, out, type & $export.U); + // export + if(exports[key] != out)hide(exports, key, exp); + if(IS_PROTO && expProto[key] != out)expProto[key] = out; + } +}; +global.core = core; +// type bitmap +$export.F = 1; // forced +$export.G = 2; // global +$export.S = 4; // static +$export.P = 8; // proto +$export.B = 16; // bind +$export.W = 32; // wrap +$export.U = 64; // safe +$export.R = 128; // real proto method for `library` +module.exports = $export; + +/***/ }), +/* 1 */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + + + +/** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + +var validateFormat = function validateFormat(format) {}; + +if (process.env.NODE_ENV !== 'production') { + validateFormat = function validateFormat(format) { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + }; +} + +function invariant(condition, format, a, b, c, d, e, f) { + validateFormat(format); + + if (!condition) { + var error; + if (format === undefined) { + error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.'); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error(format.replace(/%s/g, function () { + return args[argIndex++]; + })); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } +} + +module.exports = invariant; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) + +/***/ }), +/* 3 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2014-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + + + +var emptyFunction = __webpack_require__(30); + +/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + +var warning = emptyFunction; + +if (process.env.NODE_ENV !== 'production') { + (function () { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } + + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } + + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(undefined, [format].concat(args)); + } + }; + })(); +} + +module.exports = warning; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) + +/***/ }), +/* 4 */ +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__(8); +module.exports = function(it){ + if(!isObject(it))throw TypeError(it + ' is not an object!'); + return it; +}; + +/***/ }), +/* 5 */ +/***/ (function(module, exports) { + +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); +if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef + +/***/ }), +/* 6 */ +/***/ (function(module, exports) { + +module.exports = function(exec){ + try { + return !!exec(); + } catch(e){ + return true; + } +}; + +/***/ }), +/* 7 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + + +/** + * WARNING: DO NOT manually require this module. + * This is a replacement for `invariant(...)` used by the error code system + * and will _only_ be required by the corresponding babel pass. + * It always throws. + */ + +function reactProdInvariant(code) { + var argCount = arguments.length - 1; + + var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code; + + for (var argIdx = 0; argIdx < argCount; argIdx++) { + message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]); + } + + message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.'; + + var error = new Error(message); + error.name = 'Invariant Violation'; + error.framesToPop = 1; // we don't care about reactProdInvariant's own frame + + throw error; +} + +module.exports = reactProdInvariant; + +/***/ }), +/* 8 */ +/***/ (function(module, exports) { + +module.exports = function(it){ + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; + +/***/ }), +/* 9 */ +/***/ (function(module, exports, __webpack_require__) { + +var store = __webpack_require__(87)('wks') + , uid = __webpack_require__(54) + , Symbol = __webpack_require__(5).Symbol + , USE_SYMBOL = typeof Symbol == 'function'; + +var $exports = module.exports = function(name){ + return store[name] || (store[name] = + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); +}; + +$exports.store = store; + +/***/ }), +/* 10 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + + +/* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var hasOwnProperty = Object.prototype.hasOwnProperty; +var propIsEnumerable = Object.prototype.propertyIsEnumerable; + +function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } + + return Object(val); +} + +function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } +} + +module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; +}; + + +/***/ }), +/* 11 */ +/***/ (function(module, exports, __webpack_require__) { + +// Thank's IE8 for his funny defineProperty +module.exports = !__webpack_require__(6)(function(){ + return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; +}); + +/***/ }), +/* 12 */ +/***/ (function(module, exports, __webpack_require__) { + +var anObject = __webpack_require__(4) + , IE8_DOM_DEFINE = __webpack_require__(162) + , toPrimitive = __webpack_require__(33) + , dP = Object.defineProperty; + +exports.f = __webpack_require__(11) ? Object.defineProperty : function defineProperty(O, P, Attributes){ + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if(IE8_DOM_DEFINE)try { + return dP(O, P, Attributes); + } catch(e){ /* empty */ } + if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); + if('value' in Attributes)O[P] = Attributes.value; + return O; +}; + +/***/ }), +/* 13 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + + + +var _prodInvariant = __webpack_require__(7); + +var DOMProperty = __webpack_require__(45); +var ReactDOMComponentFlags = __webpack_require__(190); + +var invariant = __webpack_require__(2); + +var ATTR_NAME = DOMProperty.ID_ATTRIBUTE_NAME; +var Flags = ReactDOMComponentFlags; + +var internalInstanceKey = '__reactInternalInstance$' + Math.random().toString(36).slice(2); + +/** + * Check if a given node should be cached. + */ +function shouldPrecacheNode(node, nodeID) { + return node.nodeType === 1 && node.getAttribute(ATTR_NAME) === String(nodeID) || node.nodeType === 8 && node.nodeValue === ' react-text: ' + nodeID + ' ' || node.nodeType === 8 && node.nodeValue === ' react-empty: ' + nodeID + ' '; +} + +/** + * Drill down (through composites and empty components) until we get a host or + * host text component. + * + * This is pretty polymorphic but unavoidable with the current structure we have + * for `_renderedChildren`. + */ +function getRenderedHostOrTextFromComponent(component) { + var rendered; + while (rendered = component._renderedComponent) { + component = rendered; + } + return component; +} + +/** + * Populate `_hostNode` on the rendered host/text component with the given + * DOM node. The passed `inst` can be a composite. + */ +function precacheNode(inst, node) { + var hostInst = getRenderedHostOrTextFromComponent(inst); + hostInst._hostNode = node; + node[internalInstanceKey] = hostInst; +} + +function uncacheNode(inst) { + var node = inst._hostNode; + if (node) { + delete node[internalInstanceKey]; + inst._hostNode = null; + } +} + +/** + * Populate `_hostNode` on each child of `inst`, assuming that the children + * match up with the DOM (element) children of `node`. + * + * We cache entire levels at once to avoid an n^2 problem where we access the + * children of a node sequentially and have to walk from the start to our target + * node every time. + * + * Since we update `_renderedChildren` and the actual DOM at (slightly) + * different times, we could race here and see a newer `_renderedChildren` than + * the DOM nodes we see. To avoid this, ReactMultiChild calls + * `prepareToManageChildren` before we change `_renderedChildren`, at which + * time the container's child nodes are always cached (until it unmounts). + */ +function precacheChildNodes(inst, node) { + if (inst._flags & Flags.hasCachedChildNodes) { + return; + } + var children = inst._renderedChildren; + var childNode = node.firstChild; + outer: for (var name in children) { + if (!children.hasOwnProperty(name)) { + continue; + } + var childInst = children[name]; + var childID = getRenderedHostOrTextFromComponent(childInst)._domID; + if (childID === 0) { + // We're currently unmounting this child in ReactMultiChild; skip it. + continue; + } + // We assume the child nodes are in the same order as the child instances. + for (; childNode !== null; childNode = childNode.nextSibling) { + if (shouldPrecacheNode(childNode, childID)) { + precacheNode(childInst, childNode); + continue outer; + } + } + // We reached the end of the DOM children without finding an ID match. + true ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Unable to find element with ID %s.', childID) : _prodInvariant('32', childID) : void 0; + } + inst._flags |= Flags.hasCachedChildNodes; +} + +/** + * Given a DOM node, return the closest ReactDOMComponent or + * ReactDOMTextComponent instance ancestor. + */ +function getClosestInstanceFromNode(node) { + if (node[internalInstanceKey]) { + return node[internalInstanceKey]; + } + + // Walk up the tree until we find an ancestor whose instance we have cached. + var parents = []; + while (!node[internalInstanceKey]) { + parents.push(node); + if (node.parentNode) { + node = node.parentNode; + } else { + // Top of the tree. This node must not be part of a React tree (or is + // unmounted, potentially). + return null; + } + } + + var closest; + var inst; + for (; node && (inst = node[internalInstanceKey]); node = parents.pop()) { + closest = inst; + if (parents.length) { + precacheChildNodes(inst, node); + } + } + + return closest; +} + +/** + * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent + * instance, or null if the node was not rendered by this React. + */ +function getInstanceFromNode(node) { + var inst = getClosestInstanceFromNode(node); + if (inst != null && inst._hostNode === node) { + return inst; + } else { + return null; + } +} + +/** + * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding + * DOM node. + */ +function getNodeFromInstance(inst) { + // Without this first invariant, passing a non-DOM-component triggers the next + // invariant for a missing parent, which is super confusing. + !(inst._hostNode !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'getNodeFromInstance: Invalid argument.') : _prodInvariant('33') : void 0; + + if (inst._hostNode) { + return inst._hostNode; + } + + // Walk up the tree until we find an ancestor whose DOM node we have cached. + var parents = []; + while (!inst._hostNode) { + parents.push(inst); + !inst._hostParent ? process.env.NODE_ENV !== 'production' ? invariant(false, 'React DOM tree root should always have a node reference.') : _prodInvariant('34') : void 0; + inst = inst._hostParent; + } + + // Now parents contains each ancestor that does *not* have a cached native + // node, and `inst` is the deepest ancestor that does. + for (; parents.length; inst = parents.pop()) { + precacheChildNodes(inst, inst._hostNode); + } + + return inst._hostNode; +} + +var ReactDOMComponentTree = { + getClosestInstanceFromNode: getClosestInstanceFromNode, + getInstanceFromNode: getInstanceFromNode, + getNodeFromInstance: getNodeFromInstance, + precacheChildNodes: precacheChildNodes, + precacheNode: precacheNode, + uncacheNode: uncacheNode +}; + +module.exports = ReactDOMComponentTree; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) + +/***/ }), +/* 14 */ +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.15 ToLength +var toInteger = __webpack_require__(44) + , min = Math.min; +module.exports = function(it){ + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 +}; + +/***/ }), +/* 15 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + + + +var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + +/** + * Simple, lightweight module assisting with the detection and context of + * Worker. Helps avoid circular dependencies and allows code to reason about + * whether or not they are in a Worker, even if they never include the main + * `ReactWorker` dependency. + */ +var ExecutionEnvironment = { + + canUseDOM: canUseDOM, + + canUseWorkers: typeof Worker !== 'undefined', + + canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent), + + canUseViewport: canUseDOM && !!window.screen, + + isInWorker: !canUseDOM // For now, this is true - might change in the future. + +}; + +module.exports = ExecutionEnvironment; + +/***/ }), +/* 16 */ +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.13 ToObject(argument) +var defined = __webpack_require__(28); +module.exports = function(it){ + return Object(defined(it)); +}; + +/***/ }), +/* 17 */ +/***/ (function(module, exports) { + +var hasOwnProperty = {}.hasOwnProperty; +module.exports = function(it, key){ + return hasOwnProperty.call(it, key); +}; + +/***/ }), +/* 18 */ +/***/ (function(module, exports) { + +module.exports = function(it){ + if(typeof it != 'function')throw TypeError(it + ' is not a function!'); + return it; +}; + +/***/ }), +/* 19 */ +/***/ (function(module, exports, __webpack_require__) { + +var dP = __webpack_require__(12) + , createDesc = __webpack_require__(43); +module.exports = __webpack_require__(11) ? function(object, key, value){ + return dP.f(object, key, createDesc(1, value)); +} : function(object, key, value){ + object[key] = value; + return object; +}; + +/***/ }), +/* 20 */ +/***/ (function(module, exports, __webpack_require__) { + +var global = __webpack_require__(5) + , hide = __webpack_require__(19) + , has = __webpack_require__(17) + , SRC = __webpack_require__(54)('src') + , TO_STRING = 'toString' + , $toString = Function[TO_STRING] + , TPL = ('' + $toString).split(TO_STRING); + +__webpack_require__(36).inspectSource = function(it){ + return $toString.call(it); +}; + +(module.exports = function(O, key, val, safe){ + var isFunction = typeof val == 'function'; + if(isFunction)has(val, 'name') || hide(val, 'name', key); + if(O[key] === val)return; + if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); + if(O === global){ + O[key] = val; + } else { + if(!safe){ + delete O[key]; + hide(O, key, val); + } else { + if(O[key])O[key] = val; + else hide(O, key, val); + } + } +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative +})(Function.prototype, TO_STRING, function toString(){ + return typeof this == 'function' && this[SRC] || $toString.call(this); +}); + +/***/ }), +/* 21 */ +/***/ (function(module, exports, __webpack_require__) { + +var $export = __webpack_require__(0) + , fails = __webpack_require__(6) + , defined = __webpack_require__(28) + , quot = /"/g; +// B.2.3.2.1 CreateHTML(string, tag, attribute, value) +var createHTML = function(string, tag, attribute, value) { + var S = String(defined(string)) + , p1 = '<' + tag; + if(attribute !== '')p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"'; + return p1 + '>' + S + '</' + tag + '>'; +}; +module.exports = function(NAME, exec){ + var O = {}; + O[NAME] = exec(createHTML); + $export($export.P + $export.F * fails(function(){ + var test = ''[NAME]('"'); + return test !== test.toLowerCase() || test.split('"').length > 3; + }), 'String', O); +}; + +/***/ }), +/* 22 */ +/***/ (function(module, exports, __webpack_require__) { + +// to indexed object, toObject with fallback for non-array-like ES3 strings +var IObject = __webpack_require__(68) + , defined = __webpack_require__(28); +module.exports = function(it){ + return IObject(defined(it)); +}; + +/***/ }), +/* 23 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2016-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + + + +var _prodInvariant = __webpack_require__(57); + +var ReactCurrentOwner = __webpack_require__(35); + +var invariant = __webpack_require__(2); +var warning = __webpack_require__(3); + +function isNative(fn) { + // Based on isNative() from Lodash + var funcToString = Function.prototype.toString; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var reIsNative = RegExp('^' + funcToString + // Take an example native function source for comparison + .call(hasOwnProperty) + // Strip regex characters so we can use it for regex + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + // Remove hasOwnProperty from the template to make it generic + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'); + try { + var source = funcToString.call(fn); + return reIsNative.test(source); + } catch (err) { + return false; + } +} + +var canUseCollections = +// Array.from +typeof Array.from === 'function' && +// Map +typeof Map === 'function' && isNative(Map) && +// Map.prototype.keys +Map.prototype != null && typeof Map.prototype.keys === 'function' && isNative(Map.prototype.keys) && +// Set +typeof Set === 'function' && isNative(Set) && +// Set.prototype.keys +Set.prototype != null && typeof Set.prototype.keys === 'function' && isNative(Set.prototype.keys); + +var setItem; +var getItem; +var removeItem; +var getItemIDs; +var addRoot; +var removeRoot; +var getRootIDs; + +if (canUseCollections) { + var itemMap = new Map(); + var rootIDSet = new Set(); + + setItem = function (id, item) { + itemMap.set(id, item); + }; + getItem = function (id) { + return itemMap.get(id); + }; + removeItem = function (id) { + itemMap['delete'](id); + }; + getItemIDs = function () { + return Array.from(itemMap.keys()); + }; + + addRoot = function (id) { + rootIDSet.add(id); + }; + removeRoot = function (id) { + rootIDSet['delete'](id); + }; + getRootIDs = function () { + return Array.from(rootIDSet.keys()); + }; +} else { + var itemByKey = {}; + var rootByKey = {}; + + // Use non-numeric keys to prevent V8 performance issues: + // https://github.com/facebook/react/pull/7232 + var getKeyFromID = function (id) { + return '.' + id; + }; + var getIDFromKey = function (key) { + return parseInt(key.substr(1), 10); + }; + + setItem = function (id, item) { + var key = getKeyFromID(id); + itemByKey[key] = item; + }; + getItem = function (id) { + var key = getKeyFromID(id); + return itemByKey[key]; + }; + removeItem = function (id) { + var key = getKeyFromID(id); + delete itemByKey[key]; + }; + getItemIDs = function () { + return Object.keys(itemByKey).map(getIDFromKey); + }; + + addRoot = function (id) { + var key = getKeyFromID(id); + rootByKey[key] = true; + }; + removeRoot = function (id) { + var key = getKeyFromID(id); + delete rootByKey[key]; + }; + getRootIDs = function () { + return Object.keys(rootByKey).map(getIDFromKey); + }; +} + +var unmountedIDs = []; + +function purgeDeep(id) { + var item = getItem(id); + if (item) { + var childIDs = item.childIDs; + + removeItem(id); + childIDs.forEach(purgeDeep); + } +} + +function describeComponentFrame(name, source, ownerName) { + return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : ''); +} + +function getDisplayName(element) { + if (element == null) { + return '#empty'; + } else if (typeof element === 'string' || typeof element === 'number') { + return '#text'; + } else if (typeof element.type === 'string') { + return element.type; + } else { + return element.type.displayName || element.type.name || 'Unknown'; + } +} + +function describeID(id) { + var name = ReactComponentTreeHook.getDisplayName(id); + var element = ReactComponentTreeHook.getElement(id); + var ownerID = ReactComponentTreeHook.getOwnerID(id); + var ownerName; + if (ownerID) { + ownerName = ReactComponentTreeHook.getDisplayName(ownerID); + } + process.env.NODE_ENV !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0; + return describeComponentFrame(name, element && element._source, ownerName); +} + +var ReactComponentTreeHook = { + onSetChildren: function (id, nextChildIDs) { + var item = getItem(id); + !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0; + item.childIDs = nextChildIDs; + + for (var i = 0; i < nextChildIDs.length; i++) { + var nextChildID = nextChildIDs[i]; + var nextChild = getItem(nextChildID); + !nextChild ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected hook events to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('140') : void 0; + !(nextChild.childIDs != null || typeof nextChild.element !== 'object' || nextChild.element == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren().') : _prodInvariant('141') : void 0; + !nextChild.isMounted ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren().') : _prodInvariant('71') : void 0; + if (nextChild.parentID == null) { + nextChild.parentID = id; + // TODO: This shouldn't be necessary but mounting a new root during in + // componentWillMount currently causes not-yet-mounted components to + // be purged from our tree data so their parent id is missing. + } + !(nextChild.parentID === id) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).', nextChildID, nextChild.parentID, id) : _prodInvariant('142', nextChildID, nextChild.parentID, id) : void 0; + } + }, + onBeforeMountComponent: function (id, element, parentID) { + var item = { + element: element, + parentID: parentID, + text: null, + childIDs: [], + isMounted: false, + updateCount: 0 + }; + setItem(id, item); + }, + onBeforeUpdateComponent: function (id, element) { + var item = getItem(id); + if (!item || !item.isMounted) { + // We may end up here as a result of setState() in componentWillUnmount(). + // In this case, ignore the element. + return; + } + item.element = element; + }, + onMountComponent: function (id) { + var item = getItem(id); + !item ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Item must have been set') : _prodInvariant('144') : void 0; + item.isMounted = true; + var isRoot = item.parentID === 0; + if (isRoot) { + addRoot(id); + } + }, + onUpdateComponent: function (id) { + var item = getItem(id); + if (!item || !item.isMounted) { + // We may end up here as a result of setState() in componentWillUnmount(). + // In this case, ignore the element. + return; + } + item.updateCount++; + }, + onUnmountComponent: function (id) { + var item = getItem(id); + if (item) { + // We need to check if it exists. + // `item` might not exist if it is inside an error boundary, and a sibling + // error boundary child threw while mounting. Then this instance never + // got a chance to mount, but it still gets an unmounting event during + // the error boundary cleanup. + item.isMounted = false; + var isRoot = item.parentID === 0; + if (isRoot) { + removeRoot(id); + } + } + unmountedIDs.push(id); + }, + purgeUnmountedComponents: function () { + if (ReactComponentTreeHook._preventPurging) { + // Should only be used for testing. + return; + } + + for (var i = 0; i < unmountedIDs.length; i++) { + var id = unmountedIDs[i]; + purgeDeep(id); + } + unmountedIDs.length = 0; + }, + isMounted: function (id) { + var item = getItem(id); + return item ? item.isMounted : false; + }, + getCurrentStackAddendum: function (topElement) { + var info = ''; + if (topElement) { + var name = getDisplayName(topElement); + var owner = topElement._owner; + info += describeComponentFrame(name, topElement._source, owner && owner.getName()); + } + + var currentOwner = ReactCurrentOwner.current; + var id = currentOwner && currentOwner._debugID; + + info += ReactComponentTreeHook.getStackAddendumByID(id); + return info; + }, + getStackAddendumByID: function (id) { + var info = ''; + while (id) { + info += describeID(id); + id = ReactComponentTreeHook.getParentID(id); + } + return info; + }, + getChildIDs: function (id) { + var item = getItem(id); + return item ? item.childIDs : []; + }, + getDisplayName: function (id) { + var element = ReactComponentTreeHook.getElement(id); + if (!element) { + return null; + } + return getDisplayName(element); + }, + getElement: function (id) { + var item = getItem(id); + return item ? item.element : null; + }, + getOwnerID: function (id) { + var element = ReactComponentTreeHook.getElement(id); + if (!element || !element._owner) { + return null; + } + return element._owner._debugID; + }, + getParentID: function (id) { + var item = getItem(id); + return item ? item.parentID : null; + }, + getSource: function (id) { + var item = getItem(id); + var element = item ? item.element : null; + var source = element != null ? element._source : null; + return source; + }, + getText: function (id) { + var element = ReactComponentTreeHook.getElement(id); + if (typeof element === 'string') { + return element; + } else if (typeof element === 'number') { + return '' + element; + } else { + return null; + } + }, + getUpdateCount: function (id) { + var item = getItem(id); + return item ? item.updateCount : 0; + }, + + + getRootIDs: getRootIDs, + getRegisteredIDs: getItemIDs +}; + +module.exports = ReactComponentTreeHook; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) + +/***/ }), +/* 24 */ +/***/ (function(module, exports, __webpack_require__) { + +var pIE = __webpack_require__(69) + , createDesc = __webpack_require__(43) + , toIObject = __webpack_require__(22) + , toPrimitive = __webpack_require__(33) + , has = __webpack_require__(17) + , IE8_DOM_DEFINE = __webpack_require__(162) + , gOPD = Object.getOwnPropertyDescriptor; + +exports.f = __webpack_require__(11) ? gOPD : function getOwnPropertyDescriptor(O, P){ + O = toIObject(O); + P = toPrimitive(P, true); + if(IE8_DOM_DEFINE)try { + return gOPD(O, P); + } catch(e){ /* empty */ } + if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]); +}; + +/***/ }), +/* 25 */ +/***/ (function(module, exports, __webpack_require__) { + +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) +var has = __webpack_require__(17) + , toObject = __webpack_require__(16) + , IE_PROTO = __webpack_require__(118)('IE_PROTO') + , ObjectProto = Object.prototype; + +module.exports = Object.getPrototypeOf || function(O){ + O = toObject(O); + if(has(O, IE_PROTO))return O[IE_PROTO]; + if(typeof O.constructor == 'function' && O instanceof O.constructor){ + return O.constructor.prototype; + } return O instanceof Object ? ObjectProto : null; +}; + +/***/ }), +/* 26 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2016-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + + + +// Trust the developer to only use ReactInstrumentation with a __DEV__ check + +var debugTool = null; + +if (process.env.NODE_ENV !== 'production') { + var ReactDebugTool = __webpack_require__(477); + debugTool = ReactDebugTool; +} + +module.exports = { debugTool: debugTool }; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) + +/***/ }), +/* 27 */ +/***/ (function(module, exports) { + +var toString = {}.toString; + +module.exports = function(it){ + return toString.call(it).slice(8, -1); +}; + +/***/ }), +/* 28 */ +/***/ (function(module, exports) { + +// 7.2.1 RequireObjectCoercible(argument) +module.exports = function(it){ + if(it == undefined)throw TypeError("Can't call method on " + it); + return it; +}; + +/***/ }), +/* 29 */ +/***/ (function(module, exports, __webpack_require__) { + +var fails = __webpack_require__(6); + +module.exports = function(method, arg){ + return !!method && fails(function(){ + arg ? method.call(null, function(){}, 1) : method.call(null); + }); +}; + +/***/ }), +/* 30 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/** + * Copyright (c) 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + +function makeEmptyFunction(arg) { + return function () { + return arg; + }; +} + +/** + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ +var emptyFunction = function emptyFunction() {}; + +emptyFunction.thatReturns = makeEmptyFunction; +emptyFunction.thatReturnsFalse = makeEmptyFunction(false); +emptyFunction.thatReturnsTrue = makeEmptyFunction(true); +emptyFunction.thatReturnsNull = makeEmptyFunction(null); +emptyFunction.thatReturnsThis = function () { + return this; +}; +emptyFunction.thatReturnsArgument = function (arg) { + return arg; +}; + +module.exports = emptyFunction; + +/***/ }), +/* 31 */ +/***/ (function(module, exports, __webpack_require__) { + +// 0 -> Array#forEach +// 1 -> Array#map +// 2 -> Array#filter +// 3 -> Array#some +// 4 -> Array#every +// 5 -> Array#find +// 6 -> Array#findIndex +var ctx = __webpack_require__(37) + , IObject = __webpack_require__(68) + , toObject = __webpack_require__(16) + , toLength = __webpack_require__(14) + , asc = __webpack_require__(244); +module.exports = function(TYPE, $create){ + var IS_MAP = TYPE == 1 + , IS_FILTER = TYPE == 2 + , IS_SOME = TYPE == 3 + , IS_EVERY = TYPE == 4 + , IS_FIND_INDEX = TYPE == 6 + , NO_HOLES = TYPE == 5 || IS_FIND_INDEX + , create = $create || asc; + return function($this, callbackfn, that){ + var O = toObject($this) + , self = IObject(O) + , f = ctx(callbackfn, that, 3) + , length = toLength(self.length) + , index = 0 + , result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined + , val, res; + for(;length > index; index++)if(NO_HOLES || index in self){ + val = self[index]; + res = f(val, index, O); + if(TYPE){ + if(IS_MAP)result[index] = res; // map + else if(res)switch(TYPE){ + case 3: return true; // some + case 5: return val; // find + case 6: return index; // findIndex + case 2: result.push(val); // filter + } else if(IS_EVERY)return false; // every + } + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; + }; +}; + +/***/ }), +/* 32 */ +/***/ (function(module, exports, __webpack_require__) { + +// most Object methods by ES6 should accept primitives +var $export = __webpack_require__(0) + , core = __webpack_require__(36) + , fails = __webpack_require__(6); +module.exports = function(KEY, exec){ + var fn = (core.Object || {})[KEY] || Object[KEY] + , exp = {}; + exp[KEY] = exec(fn); + $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp); +}; + +/***/ }), +/* 33 */ +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.1 ToPrimitive(input [, PreferredType]) +var isObject = __webpack_require__(8); +// instead of the ES6 spec version, we didn't implement @@toPrimitive case +// and the second argument - flag - preferred type is a string +module.exports = function(it, S){ + if(!isObject(it))return it; + var fn, val; + if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; + if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; + if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; + throw TypeError("Can't convert object to primitive value"); +}; + +/***/ }), +/* 34 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + */ + + + +var _prodInvariant = __webpack_require__(7), + _assign = __webpack_require__(10); + +var CallbackQueue = __webpack_require__(188); +var PooledClass = __webpack_require__(55); +var ReactFeatureFlags = __webpack_require__(193); +var ReactReconciler = __webpack_require__(64); +var Transaction = __webpack_require__(92); + +var invariant = __webpack_require__(2); + +var dirtyComponents = []; +var updateBatchNumber = 0; +var asapCallbackQueue = CallbackQueue.getPooled(); +var asapEnqueued = false; + +var batchingStrategy = null; + +function ensureInjected() { + !(ReactUpdates.ReactReconcileTransaction && batchingStrategy) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must inject a reconcile transaction class and batching strategy') : _prodInvariant('123') : void 0; +} + +var NESTED_UPDATES = { + initialize: function () { + this.dirtyComponentsLength = dirtyComponents.length; + }, + close: function () { + if (this.dirtyComponentsLength !== dirtyComponents.length) { + // Additional updates were enqueued by componentDidUpdate handlers or + // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run + // these new updates so that if A's componentDidUpdate calls setState on + // B, B will update before the callback A's updater provided when calling + // setState. + dirtyComponents.splice(0, this.dirtyComponentsLength); + flushBatchedUpdates(); + } else { + dirtyComponents.length = 0; + } + } +}; + +var UPDATE_QUEUEING = { + initialize: function () { + this.callbackQueue.reset(); + }, + close: function () { + this.callbackQueue.notifyAll(); + } +}; + +var TRANSACTION_WRAPPERS = [NESTED_UPDATES, UPDATE_QUEUEING]; + +function ReactUpdatesFlushTransaction() { + this.reinitializeTransaction(); + this.dirtyComponentsLength = null; + this.callbackQueue = CallbackQueue.getPooled(); + this.reconcileTransaction = ReactUpdates.ReactReconcileTransaction.getPooled( + /* useCreateElement */true); +} + +_assign(ReactUpdatesFlushTransaction.prototype, Transaction, { + getTransactionWrappers: function () { + return TRANSACTION_WRAPPERS; + }, + + destructor: function () { + this.dirtyComponentsLength = null; + CallbackQueue.release(this.callbackQueue); + this.callbackQueue = null; + ReactUpdates.ReactReconcileTransaction.release(this.reconcileTransaction); + this.reconcileTransaction = null; + }, + + perform: function (method, scope, a) { + // Essentially calls `this.reconcileTransaction.perform(method, scope, a)` + // with this transaction's wrappers around it. + return Transaction.perform.call(this, this.reconcileTransaction.perform, this.reconcileTransaction, method, scope, a); + } +}); + +PooledClass.addPoolingTo(ReactUpdatesFlushTransaction); + +function batchedUpdates(callback, a, b, c, d, e) { + ensureInjected(); + return batchingStrategy.batchedUpdates(callback, a, b, c, d, e); +} + +/** + * Array comparator for ReactComponents by mount ordering. + * + * @param {ReactComponent} c1 first component you're comparing + * @param {ReactComponent} c2 second component you're comparing + * @return {number} Return value usable by Array.prototype.sort(). + */ +function mountOrderComparator(c1, c2) { + return c1._mountOrder - c2._mountOrder; +} + +function runBatchedUpdates(transaction) { + var len = transaction.dirtyComponentsLength; + !(len === dirtyComponents.length) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Expected flush transaction\'s stored dirty-components length (%s) to match dirty-components array length (%s).', len, dirtyComponents.length) : _prodInvariant('124', len, dirtyComponents.length) : void 0; + + // Since reconciling a component higher in the owner hierarchy usually (not + // always -- see shouldComponentUpdate()) will reconcile children, reconcile + // them before their children by sorting the array. + dirtyComponents.sort(mountOrderComparator); + + // Any updates enqueued while reconciling must be performed after this entire + // batch. Otherwise, if dirtyComponents is [A, B] where A has children B and + // C, B could update twice in a single batch if C's render enqueues an update + // to B (since B would have already updated, we should skip it, and the only + // way we can know to do so is by checking the batch counter). + updateBatchNumber++; + + for (var i = 0; i < len; i++) { + // If a component is unmounted before pending changes apply, it will still + // be here, but we assume that it has cleared its _pendingCallbacks and + // that performUpdateIfNecessary is a noop. + var component = dirtyComponents[i]; + + // If performUpdateIfNecessary happens to enqueue any new updates, we + // shouldn't execute the callbacks until the next render happens, so + // stash the callbacks first + var callbacks = component._pendingCallbacks; + component._pendingCallbacks = null; + + var markerName; + if (ReactFeatureFlags.logTopLevelRenders) { + var namedComponent = component; + // Duck type TopLevelWrapper. This is probably always true. + if (component._currentElement.type.isReactTopLevelWrapper) { + namedComponent = component._renderedComponent; + } + markerName = 'React update: ' + namedComponent.getName(); + console.time(markerName); + } + + ReactReconciler.performUpdateIfNecessary(component, transaction.reconcileTransaction, updateBatchNumber); + + if (markerName) { + console.timeEnd(markerName); + } + + if (callbacks) { + for (var j = 0; j < callbacks.length; j++) { + transaction.callbackQueue.enqueue(callbacks[j], component.getPublicInstance()); + } + } + } +} + +var flushBatchedUpdates = function () { + // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents + // array and perform any updates enqueued by mount-ready handlers (i.e., + // componentDidUpdate) but we need to check here too in order to catch + // updates enqueued by setState callbacks and asap calls. + while (dirtyComponents.length || asapEnqueued) { + if (dirtyComponents.length) { + var transaction = ReactUpdatesFlushTransaction.getPooled(); + transaction.perform(runBatchedUpdates, null, transaction); + ReactUpdatesFlushTransaction.release(transaction); + } + + if (asapEnqueued) { + asapEnqueued = false; + var queue = asapCallbackQueue; + asapCallbackQueue = CallbackQueue.getPooled(); + queue.notifyAll(); + CallbackQueue.release(queue); + } + } +}; + +/** + * Mark a component as needing a rerender, adding an optional callback to a + * list of functions which will be executed once the rerender occurs. + */ +function enqueueUpdate(component) { + ensureInjected(); + + // Various parts of our code (such as ReactCompositeComponent's + // _renderValidatedComponent) assume that calls to render aren't nested; + // verify that that's the case. (This is called by each top-level update + // function, like setState, forceUpdate, etc.; creation and + // destruction of top-level components is guarded in ReactMount.) + + if (!batchingStrategy.isBatchingUpdates) { + batchingStrategy.batchedUpdates(enqueueUpdate, component); + return; + } + + dirtyComponents.push(component); + if (component._updateBatchNumber == null) { + component._updateBatchNumber = updateBatchNumber + 1; + } +} + +/** + * Enqueue a callback to be run at the end of the current batching cycle. Throws + * if no updates are currently being performed. + */ +function asap(callback, context) { + !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0; + asapCallbackQueue.enqueue(callback, context); + asapEnqueued = true; +} + +var ReactUpdatesInjection = { + injectReconcileTransaction: function (ReconcileTransaction) { + !ReconcileTransaction ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a reconcile transaction class') : _prodInvariant('126') : void 0; + ReactUpdates.ReactReconcileTransaction = ReconcileTransaction; + }, + + injectBatchingStrategy: function (_batchingStrategy) { + !_batchingStrategy ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batching strategy') : _prodInvariant('127') : void 0; + !(typeof _batchingStrategy.batchedUpdates === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide a batchedUpdates() function') : _prodInvariant('128') : void 0; + !(typeof _batchingStrategy.isBatchingUpdates === 'boolean') ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates: must provide an isBatchingUpdates boolean attribute') : _prodInvariant('129') : void 0; + batchingStrategy = _batchingStrategy; + } +}; + +var ReactUpdates = { + /** + * React references `ReactReconcileTransaction` using this property in order + * to allow dependency injection. + * + * @internal + */ + ReactReconcileTransaction: null, + + batchedUpdates: batchedUpdates, + enqueueUpdate: enqueueUpdate, + flushBatchedUpdates: flushBatchedUpdates, + injection: ReactUpdatesInjection, + asap: asap +}; + +module.exports = ReactUpdates; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) + +/***/ }), +/* 35 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright 2013-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */ + + + +/** + * Keeps track of the current owner. + * + * The current owner is the component who should own any components that are + * currently being constructed. + */ +var ReactCurrentOwner = { + + /** + * @internal + * @type {ReactComponent} + */ + current: null + +}; + +module.exports = ReactCurrentOwner; + +/***/ }), +/* 36 */ +/***/ (function(module, exports) { + +var core = module.exports = {version: '2.4.0'}; +if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef + +/***/ }), +/* 37 */ +/***/ (function(module, exports, __webpack_require__) { + +// optional / simple context binding +var aFunction = __webpack_require__(18); +module.exports = function(fn, that, length){ + aFunction(fn); + if(that === undefined)return fn; + switch(length){ + case 1: return function(a){ + return fn.call(that, a); + }; + case 2: return function(a, b){ + return fn.call(that, a, b); + }; + case 3: return function(a, b, c){ + return fn.call(that, a, b, c); + }; + } + return function(/* ...args */){ + return fn.apply(that, arguments); + }; +}; + +/***/ }), +/* 38 */ +/***/ (function(module, exports, __webpack_require__) { + +var Map = __webpack_require__(178) + , $export = __webpack_require__(0) + , shared = __webpack_require__(87)('metadata') + , store = shared.store || (shared.store = new (__webpack_require__(181))); + +var getOrCreateMetadataMap = function(target, targetKey, create){ + var targetMetadata = store.get(target); + if(!targetMetadata){ + if(!create)return undefined; + store.set(target, targetMetadata = new Map); + } + var keyMetadata = targetMetadata.get(targetKey); + if(!keyMetadata){ + if(!create)return undefined; + targetMetadata.set(targetKey, keyMetadata = new Map); + } return keyMetadata; +}; +var ordinaryHasOwnMetadata = function(MetadataKey, O, P){ + var metadataMap = getOrCreateMetadataMap(O, P, false); + return metadataMap === undefined ? false : metadataMap.has(MetadataKey); +}; +var ordinaryGetOwnMetadata = function(MetadataKey, O, P){ + var metadataMap = getOrCreateMetadataMap(O, P, false); + return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey); +}; +var ordinaryDefineOwnMetadata = function(MetadataKey, MetadataValue, O, P){ + getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue); +}; +var ordinaryOwnMetadataKeys = function(target, targetKey){ + var metadataMap = getOrCreateMetadataMap(target, targetKey, false) + , keys = []; + if(metadataMap)metadataMap.forEach(function(_, key){ keys.push(key); }); + return keys; +}; +var toMetaKey = function(it){ + return it === undefined || typeof it == 'symbol' ? it : String(it); +}; +var exp = function(O){ + $export($export.S, 'Reflect', O); +}; + +module.exports = { + store: store, + map: getOrCreateMetadataMap, + has: ordinaryHasOwnMetadata, + get: ordinaryGetOwnMetadata, + set: ordinaryDefineOwnMetadata, + keys: ordinaryOwnMetadataKeys, + key: toMetaKey, + exp: exp +}; + +/***/ }), +/* 39 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +if(__webpack_require__(11)){ + var LIBRARY = __webpack_require__(47) + , global = __webpack_require__(5) + , fails = __webpack_require__(6) + , $export = __webpack_require__(0) + , $typed = __webpack_require__(88) + , $buffer = __webpack_require__(125) + , ctx = __webpack_require__(37) + , anInstance = __webpack_require__(46) + , propertyDesc = __webpack_require__(43) + , hide = __webpack_require__(19) + , redefineAll = __webpack_require__(51) + , toInteger = __webpack_require__(44) + , toLength = __webpack_require__(14) + , toIndex = __webpack_require__(53) + , toPrimitive = __webpack_require__(33) + , has = __webpack_require__(17) + , same = __webpack_require__(175) + , classof = __webpack_require__(67) + , isObject = __webpack_require__(8) + , toObject = __webpack_require__(16) + , isArrayIter = __webpack_require__(110) + , create = __webpack_require__(48) + , getPrototypeOf = __webpack_require__(25) + , gOPN = __webpack_require__(49).f + , getIterFn = __webpack_require__(127) + , uid = __webpack_require__(54) + , wks = __webpack_require__(9) + , createArrayMethod = __webpack_require__(31) + , createArrayIncludes = __webpack_require__(78) + , speciesConstructor = __webpack_require__(119) + , ArrayIterators = __webpack_require__(128) + , Iterators = __webpack_require__(60) + , $iterDetect = __webpack_require__(84) + , setSpecies = __webpack_require__(52) + , arrayFill = __webpack_require__(103) + , arrayCopyWithin = __webpack_require__(155) + , $DP = __webpack_require__(12) + , $GOPD = __webpack_require__(24) + , dP = $DP.f + , gOPD = $GOPD.f + , RangeError = global.RangeError + , TypeError = global.TypeError + , Uint8Array = global.Uint8Array + , ARRAY_BUFFER = 'ArrayBuffer' + , SHARED_BUFFER = 'Shared' + ARRAY_BUFFER + , BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT' + , PROTOTYPE = 'prototype' + , ArrayProto = Array[PROTOTYPE] + , $ArrayBuffer = $buffer.ArrayBuffer + , $DataView = $buffer.DataView + , arrayForEach = createArrayMethod(0) + ,…
diff --git a/dist/bundle.js b/dist/bundle.js index b9b3ef2..384df3b 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -60,7 +60,7 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1); +/******/ return __webpack_require__(__webpack_require__.s = 135); /******/ }) /************************************************************************/ /******/ ([ @@ -73,136 +73,10 @@ module.exports = React; /* 1 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -var React = __webpack_require__(0); -var ReactDOM = __webpack_require__(2); -var Container_1 = __webpack_require__(4); -var data = { - username: "fischer", - latitude: 55.663685, - longitude: 12.598535 -}; -ReactDOM.render(React.createElement(Container_1.Container, { data: data }), document.getElementById("container")); - - -/***/ }), -/* 2 */ -/***/ (function(module, exports) { - -module.exports = ReactDOM; - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var React = __webpack_require__(0); -var UsernameHeading = /** @class */ (function (_super) { - __extends(UsernameHeading, _super); - function UsernameHeading() { - return _super !== null && _super.apply(this, arguments) || this; - } - UsernameHeading.prototype.render = function () { - return React.createElement("h1", null, this.props.username); - }; - return UsernameHeading; -}(React.Component)); -exports.UsernameHeading = UsernameHeading; - - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var React = __webpack_require__(0); -var Hello_1 = __webpack_require__(3); -var MapView_1 = __webpack_require__(5); -var NearbySights_1 = __webpack_require__(368); -var Container = /** @class */ (function (_super) { - __extends(Container, _super); - function Container() { - return _super !== null && _super.apply(this, arguments) || this; - } - Container.prototype.render = function () { - return (React.createElement("div", null, - React.createElement(Hello_1.UsernameHeading, { username: this.props.data.username }), - React.createElement(MapView_1.MapView, { latitude: this.props.data.latitude, longitude: this.props.data.longitude }), - React.createElement(NearbySights_1.NearbySights, { latitude: this.props.data.latitude, longitude: this.props.data.longitude }))); - }; - return Container; -}(React.Component)); -exports.Container = Container; - - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -var React = __webpack_require__(0); -var _a = __webpack_require__(139), withScriptjs = _a.withScriptjs, withGoogleMap = _a.withGoogleMap, GoogleMap = _a.GoogleMap, Marker = _a.Marker; -var MapView = /** @class */ (function (_super) { - __extends(MapView, _super); - function MapView() { - return _super !== null && _super.apply(this, arguments) || this; - } - MapView.prototype.render = function () { - var coordinates = { lat: this.props.latitude, lng: this.props.longitude }; - var TrackMeMap = withScriptjs(withGoogleMap(function (props) { return (React.createElement(GoogleMap, { defaultZoom: 15, defaultCenter: coordinates }, props.isMarkerShown && React.createElement(Marker, { position: coordinates }))); })); - return (React.createElement(TrackMeMap, { isMarkerShown: true, googleMapURL: "https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places", loadingElement: React.createElement("div", { style: { height: "100%" } }), containerElement: React.createElement("div", { style: { height: "400px" } }), mapElement: React.createElement("div", { style: { height: "100%" } }) })); - }; - return MapView; -}(React.Component)); -exports.MapView = MapView; - - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - module.exports = { "default": __webpack_require__(141), __esModule: true }; /***/ }), -/* 7 */ +/* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -217,7 +91,7 @@ exports.default = function (instance, Constructor) { }; /***/ }), -/* 8 */ +/* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -225,7 +99,7 @@ exports.default = function (instance, Constructor) { exports.__esModule = true; -var _defineProperty = __webpack_require__(89); +var _defineProperty = __webpack_require__(85); var _defineProperty2 = _interopRequireDefault(_defineProperty); @@ -250,7 +124,7 @@ exports.default = function () { }(); /***/ }), -/* 9 */ +/* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -258,7 +132,7 @@ exports.default = function () { exports.__esModule = true; -var _typeof2 = __webpack_require__(90); +var _typeof2 = __webpack_require__(86); var _typeof3 = _interopRequireDefault(_typeof2); @@ -273,7 +147,7 @@ exports.default = function (self, call) { }; /***/ }), -/* 10 */ +/* 5 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -289,7 +163,7 @@ var _create = __webpack_require__(173); var _create2 = _interopRequireDefault(_create); -var _typeof2 = __webpack_require__(90); +var _typeof2 = __webpack_require__(86); var _typeof3 = _interopRequireDefault(_typeof2); @@ -312,7 +186,7 @@ exports.default = function (subClass, superClass) { }; /***/ }), -/* 11 */ +/* 6 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** @@ -344,10 +218,10 @@ if (process.env.NODE_ENV !== 'production') { module.exports = __webpack_require__(218)(); } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) /***/ }), -/* 12 */ +/* 7 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -355,7 +229,7 @@ if (process.env.NODE_ENV !== 'production') { exports.__esModule = true; -var _defineProperty = __webpack_require__(89); +var _defineProperty = __webpack_require__(85); var _defineProperty2 = _interopRequireDefault(_defineProperty); @@ -377,7 +251,7 @@ exports.default = function (obj, key, value) { }; /***/ }), -/* 13 */ +/* 8 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -455,7 +329,7 @@ var BICYCLING_LAYER = (exports.BICYCLING_LAYER = /***/ }), -/* 14 */ +/* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -465,11 +339,11 @@ Object.defineProperty(exports, "__esModule", { value: true, }) -var _bind2 = __webpack_require__(42) +var _bind2 = __webpack_require__(37) var _bind3 = _interopRequireDefault(_bind2) -var _isFunction2 = __webpack_require__(43) +var _isFunction2 = __webpack_require__(38) var _isFunction3 = _interopRequireDefault(_isFunction2) @@ -597,10 +471,10 @@ function unregisterEvent(registered) { /***/ }), -/* 15 */ +/* 10 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(101); +var freeGlobal = __webpack_require__(97); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -612,7 +486,7 @@ module.exports = root; /***/ }), -/* 16 */ +/* 11 */ /***/ (function(module, exports) { var core = module.exports = { version: '2.5.1' }; @@ -620,7 +494,7 @@ if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), -/* 17 */ +/* 12 */ /***/ (function(module, exports) { /** @@ -652,12 +526,12 @@ module.exports = isArray; /***/ }), -/* 18 */ +/* 13 */ /***/ (function(module, exports, __webpack_require__) { -var store = __webpack_require__(59)('wks'); -var uid = __webpack_require__(39); -var Symbol = __webpack_require__(19).Symbol; +var store = __webpack_require__(55)('wks'); +var uid = __webpack_require__(34); +var Symbol = __webpack_require__(14).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { @@ -669,7 +543,7 @@ $exports.store = store; /***/ }), -/* 19 */ +/* 14 */ /***/ (function(module, exports) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 @@ -681,13 +555,13 @@ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef /***/ }), -/* 20 */ +/* 15 */ /***/ (function(module, exports, __webpack_require__) { -var global = __webpack_require__(19); -var core = __webpack_require__(16); -var ctx = __webpack_require__(60); -var hide = __webpack_require__(27); +var global = __webpack_require__(14); +var core = __webpack_require__(11); +var ctx = __webpack_require__(56); +var hide = __webpack_require__(22); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { @@ -748,15 +622,15 @@ module.exports = $export; /***/ }), -/* 21 */ +/* 16 */ /***/ (function(module, exports, __webpack_require__) { -var anObject = __webpack_require__(28); -var IE8_DOM_DEFINE = __webpack_require__(87); -var toPrimitive = __webpack_require__(61); +var anObject = __webpack_require__(23); +var IE8_DOM_DEFINE = __webpack_require__(83); +var toPrimitive = __webpack_require__(57); var dP = Object.defineProperty; -exports.f = __webpack_require__(24) ? Object.defineProperty : function defineProperty(O, P, Attributes) { +exports.f = __webpack_require__(19) ? Object.defineProperty : function defineProperty(O, P, Attributes) { anObject(O); P = toPrimitive(P, true); anObject(Attributes); @@ -770,7 +644,7 @@ exports.f = __webpack_require__(24) ? Object.defineProperty : function definePro /***/ }), -/* 22 */ +/* 17 */ /***/ (function(module, exports) { // shim for using process in browser @@ -960,7 +834,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 23 */ +/* 18 */ /***/ (function(module, exports) { var hasOwnProperty = {}.hasOwnProperty; @@ -970,17 +844,17 @@ module.exports = function (it, key) { /***/ }), -/* 24 */ +/* 19 */ /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(29)(function () { +module.exports = !__webpack_require__(24)(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), -/* 25 */ +/* 20 */ /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__(179), @@ -1003,7 +877,7 @@ module.exports = getNative; /***/ }), -/* 26 */ +/* 21 */ /***/ (function(module, exports) { /** @@ -1040,12 +914,12 @@ module.exports = isObject; /***/ }), -/* 27 */ +/* 22 */ /***/ (function(module, exports, __webpack_require__) { -var dP = __webpack_require__(21); -var createDesc = __webpack_require__(34); -module.exports = __webpack_require__(24) ? function (object, key, value) { +var dP = __webpack_require__(16); +var createDesc = __webpack_require__(29); +module.exports = __webpack_require__(19) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { object[key] = value; @@ -1054,10 +928,10 @@ module.exports = __webpack_require__(24) ? function (object, key, value) { /***/ }), -/* 28 */ +/* 23 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(33); +var isObject = __webpack_require__(28); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; @@ -1065,7 +939,7 @@ module.exports = function (it) { /***/ }), -/* 29 */ +/* 24 */ /***/ (function(module, exports) { module.exports = function (exec) { @@ -1078,19 +952,19 @@ module.exports = function (exec) { /***/ }), -/* 30 */ +/* 25 */ /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(95); -var defined = __webpack_require__(57); +var IObject = __webpack_require__(91); +var defined = __webpack_require__(53); module.exports = function (it) { return IObject(defined(it)); }; /***/ }), -/* 31 */ +/* 26 */ /***/ (function(module, exports) { /** @@ -1125,7 +999,7 @@ module.exports = isObjectLike; /***/ }), -/* 32 */ +/* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1181,10 +1055,10 @@ var invariant = function(condition, format, a, b, c, d, e, f) { module.exports = invariant; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) /***/ }), -/* 33 */ +/* 28 */ /***/ (function(module, exports) { module.exports = function (it) { @@ -1193,7 +1067,7 @@ module.exports = function (it) { /***/ }), -/* 34 */ +/* 29 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { @@ -1207,14 +1081,14 @@ module.exports = function (bitmap, value) { /***/ }), -/* 35 */ +/* 30 */ /***/ (function(module, exports) { module.exports = {}; /***/ }), -/* 36 */ +/* 31 */ /***/ (function(module, exports) { /** @@ -1241,10 +1115,10 @@ module.exports = identity; /***/ }), -/* 37 */ +/* 32 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(44), +var Symbol = __webpack_require__(39), getRawTag = __webpack_require__(180), objectToString = __webpack_require__(181); @@ -1275,18 +1149,18 @@ module.exports = baseGetTag; /***/ }), -/* 38 */ +/* 33 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) -var defined = __webpack_require__(57); +var defined = __webpack_require__(53); module.exports = function (it) { return Object(defined(it)); }; /***/ }), -/* 39 */ +/* 34 */ /***/ (function(module, exports) { var id = 0; @@ -1297,12 +1171,12 @@ module.exports = function (key) { /***/ }), -/* 40 */ +/* 35 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(94); -var enumBugKeys = __webpack_require__(66); +var $keys = __webpack_require__(90); +var enumBugKeys = __webpack_require__(62); module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); @@ -1310,20 +1184,20 @@ module.exports = Object.keys || function keys(O) { /***/ }), -/* 41 */ +/* 36 */ /***/ (function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }), -/* 42 */ +/* 37 */ /***/ (function(module, exports, __webpack_require__) { -var baseRest = __webpack_require__(71), +var baseRest = __webpack_require__(67), createWrap = __webpack_require__(185), - getHolder = __webpack_require__(76), - replaceHolders = __webpack_require__(47); + getHolder = __webpack_require__(72), + replaceHolders = __webpack_require__(42); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG = 1, @@ -1380,11 +1254,11 @@ module.exports = bind; /***/ }), -/* 43 */ +/* 38 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(37), - isObject = __webpack_require__(26); +var baseGetTag = __webpack_require__(32), + isObject = __webpack_require__(21); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', @@ -1423,10 +1297,10 @@ module.exports = isFunction; /***/ }), -/* 44 */ +/* 39 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(15); +var root = __webpack_require__(10); /** Built-in value references. */ var Symbol = root.Symbol; @@ -1435,11 +1309,11 @@ module.exports = Symbol; /***/ }), -/* 45 */ +/* 40 */ /***/ (function(module, exports, __webpack_require__) { -var baseCreate = __webpack_require__(73), - isObject = __webpack_require__(26); +var baseCreate = __webpack_require__(69), + isObject = __webpack_require__(21); /** * Creates a function that produces an instance of `Ctor` regardless of @@ -1478,7 +1352,7 @@ module.exports = createCtor; /***/ }), -/* 46 */ +/* 41 */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ @@ -1506,7 +1380,7 @@ module.exports = isIndex; /***/ }), -/* 47 */ +/* 42 */ /***/ (function(module, exports) { /** Used as the internal argument placeholder. */ @@ -1541,11 +1415,11 @@ module.exports = replaceHolders; /***/ }), -/* 48 */ +/* 43 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(37), - isObjectLike = __webpack_require__(31); +var baseGetTag = __webpack_require__(32), + isObjectLike = __webpack_require__(26); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; @@ -1576,12 +1450,12 @@ module.exports = isSymbol; /***/ }), -/* 49 */ +/* 44 */ /***/ (function(module, exports, __webpack_require__) { var arrayLikeKeys = __webpack_require__(237), baseKeys = __webpack_require__(244), - isArrayLike = __webpack_require__(50); + isArrayLike = __webpack_require__(45); /** * Creates an array of the own enumerable property names of `object`. @@ -1619,11 +1493,11 @@ module.exports = keys; /***/ }), -/* 50 */ +/* 45 */ /***/ (function(module, exports, __webpack_require__) { -var isFunction = __webpack_require__(43), - isLength = __webpack_require__(81); +var isFunction = __webpack_require__(38), + isLength = __webpack_require__(77); /** * Checks if `value` is array-like. A value is considered array-like if it's @@ -1658,7 +1532,7 @@ module.exports = isArrayLike; /***/ }), -/* 51 */ +/* 46 */ /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__(251), @@ -1696,10 +1570,10 @@ module.exports = ListCache; /***/ }), -/* 52 */ +/* 47 */ /***/ (function(module, exports, __webpack_require__) { -var eq = __webpack_require__(53); +var eq = __webpack_require__(48); /** * Gets the index at which the `key` is found in `array` of key-value pairs. @@ -1723,7 +1597,7 @@ module.exports = assocIndexOf; /***/ }), -/* 53 */ +/* 48 */ /***/ (function(module, exports) { /** @@ -1766,10 +1640,10 @@ module.exports = eq; /***/ }), -/* 54 */ +/* 49 */ /***/ (function(module, exports, __webpack_require__) { -var getNative = __webpack_require__(25); +var getNative = __webpack_require__(20); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); @@ -1778,7 +1652,7 @@ module.exports = nativeCreate; /***/ }), -/* 55 */ +/* 50 */ /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__(269); @@ -1802,10 +1676,10 @@ module.exports = getMapData; /***/ }), -/* 56 */ +/* 51 */ /***/ (function(module, exports, __webpack_require__) { -var isSymbol = __webpack_require__(48); +var isSymbol = __webpack_require__(43); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; @@ -1829,7 +1703,13 @@ module.exports = toKey; /***/ }), -/* 57 */ +/* 52 */ +/***/ (function(module, exports) { + +module.exports = ReactDOM; + +/***/ }), +/* 53 */ /***/ (function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) @@ -1840,21 +1720,21 @@ module.exports = function (it) { /***/ }), -/* 58 */ +/* 54 */ /***/ (function(module, exports, __webpack_require__) { -var shared = __webpack_require__(59)('keys'); -var uid = __webpack_require__(39); +var shared = __webpack_require__(55)('keys'); +var uid = __webpack_require__(34); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; /***/ }), -/* 59 */ +/* 55 */ /***/ (function(module, exports, __webpack_require__) { -var global = __webpack_require__(19); +var global = __webpack_require__(14); var SHARED = '__core-js_shared__'; var store = global[SHARED] || (global[SHARED] = {}); module.exports = function (key) { @@ -1863,7 +1743,7 @@ module.exports = function (key) { /***/ }), -/* 60 */ +/* 56 */ /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding @@ -1889,11 +1769,11 @@ module.exports = function (fn, that, length) { /***/ }), -/* 61 */ +/* 57 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(33); +var isObject = __webpack_require__(28); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, S) { @@ -1907,7 +1787,7 @@ module.exports = function (it, S) { /***/ }), -/* 62 */ +/* 58 */ /***/ (function(module, exports) { // 7.1.4 ToInteger @@ -1919,28 +1799,28 @@ module.exports = function (it) { /***/ }), -/* 63 */ +/* 59 */ /***/ (function(module, exports) { module.exports = true; /***/ }), -/* 64 */ +/* 60 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = __webpack_require__(28); +var anObject = __webpack_require__(23); var dPs = __webpack_require__(151); -var enumBugKeys = __webpack_require__(66); -var IE_PROTO = __webpack_require__(58)('IE_PROTO'); +var enumBugKeys = __webpack_require__(62); +var IE_PROTO = __webpack_require__(54)('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function () { // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(88)('iframe'); + var iframe = __webpack_require__(84)('iframe'); var i = enumBugKeys.length; var lt = '<'; var gt = '>'; @@ -1973,7 +1853,7 @@ module.exports = Object.create || function create(O, Properties) { /***/ }), -/* 65 */ +/* 61 */ /***/ (function(module, exports) { var toString = {}.toString; @@ -1984,7 +1864,7 @@ module.exports = function (it) { /***/ }), -/* 66 */ +/* 62 */ /***/ (function(module, exports) { // IE 8- don't enum bug keys @@ -1994,12 +1874,12 @@ module.exports = ( /***/ }), -/* 67 */ +/* 63 */ /***/ (function(module, exports, __webpack_require__) { -var def = __webpack_require__(21).f; -var has = __webpack_require__(23); -var TAG = __webpack_require__(18)('toStringTag'); +var def = __webpack_require__(16).f; +var has = __webpack_require__(18); +var TAG = __webpack_require__(13)('toStringTag'); module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); @@ -2007,21 +1887,21 @@ module.exports = function (it, tag, stat) { /***/ }), -/* 68 */ +/* 64 */ /***/ (function(module, exports, __webpack_require__) { -exports.f = __webpack_require__(18); +exports.f = __webpack_require__(13); /***/ }), -/* 69 */ +/* 65 */ /***/ (function(module, exports, __webpack_require__) { -var global = __webpack_require__(19); -var core = __webpack_require__(16); -var LIBRARY = __webpack_require__(63); -var wksExt = __webpack_require__(68); -var defineProperty = __webpack_require__(21).f; +var global = __webpack_require__(14); +var core = __webpack_require__(11); +var LIBRARY = __webpack_require__(59); +var wksExt = __webpack_require__(64); +var defineProperty = __webpack_require__(16).f; module.exports = function (name) { var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); @@ -2029,19 +1909,19 @@ module.exports = function (name) { /***/ }), -/* 70 */ +/* 66 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), -/* 71 */ +/* 67 */ /***/ (function(module, exports, __webpack_require__) { -var identity = __webpack_require__(36), +var identity = __webpack_require__(31), overRest = __webpack_require__(176), - setToString = __webpack_require__(99); + setToString = __webpack_require__(95); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. @@ -2059,7 +1939,7 @@ module.exports = baseRest; /***/ }), -/* 72 */ +/* 68 */ /***/ (function(module, exports) { /** @@ -2086,10 +1966,10 @@ module.exports = apply; /***/ }), -/* 73 */ +/* 69 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(26); +var isObject = __webpack_require__(21); /** Built-in value references. */ var objectCreate = Object.create; @@ -2122,11 +2002,11 @@ module.exports = baseCreate; /***/ }), -/* 74 */ +/* 70 */ /***/ (function(module, exports, __webpack_require__) { -var baseCreate = __webpack_require__(73), - baseLodash = __webpack_require__(75); +var baseCreate = __webpack_require__(69), + baseLodash = __webpack_require__(71); /** Used as references for the maximum length and index of an array. */ var MAX_ARRAY_LENGTH = 4294967295; @@ -2156,7 +2036,7 @@ module.exports = LazyWrapper; /***/ }), -/* 75 */ +/* 71 */ /***/ (function(module, exports) { /** @@ -2172,7 +2052,7 @@ module.exports = baseLodash; /***/ }), -/* 76 */ +/* 72 */ /***/ (function(module, exports) { /** @@ -2191,7 +2071,7 @@ module.exports = getHolder; /***/ }), -/* 77 */ +/* 73 */ /***/ (function(module, exports) { module.exports = function(module) { @@ -2219,7 +2099,7 @@ module.exports = function(module) { /***/ }), -/* 78 */ +/* 74 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2261,7 +2141,7 @@ emptyFunction.thatReturnsArgument = function (arg) { module.exports = emptyFunction; /***/ }), -/* 79 */ +/* 75 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2318,10 +2198,10 @@ function invariant(condition, format, a, b, c, d, e, f) { } module.exports = invariant; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) /***/ }), -/* 80 */ +/* 76 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2340,7 +2220,7 @@ module.exports = ReactPropTypesSecret; /***/ }), -/* 81 */ +/* 77 */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ @@ -2381,11 +2261,11 @@ module.exports = isLength; /***/ }), -/* 82 */ +/* 78 */ /***/ (function(module, exports, __webpack_require__) { -var getNative = __webpack_require__(25), - root = __webpack_require__(15); +var getNative = __webpack_require__(20), + root = __webpack_require__(10); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); @@ -2394,7 +2274,7 @@ module.exports = Map; /***/ }), -/* 83 */ +/* 79 */ /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__(261), @@ -2432,11 +2312,11 @@ module.exports = MapCache; /***/ }), -/* 84 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { -var isArray = __webpack_require__(17), - isSymbol = __webpack_require__(48); +var isArray = __webpack_require__(12), + isSymbol = __webpack_require__(43); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, @@ -2467,7 +2347,7 @@ module.exports = isKey; /***/ }), -/* 85 */ +/* 81 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2488,13 +2368,13 @@ exports.default = function (obj, keys) { }; /***/ }), -/* 86 */ +/* 82 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) -var has = __webpack_require__(23); -var toObject = __webpack_require__(38); -var IE_PROTO = __webpack_require__(58)('IE_PROTO'); +var has = __webpack_require__(18); +var toObject = __webpack_require__(33); +var IE_PROTO = __webpack_require__(54)('IE_PROTO'); var ObjectProto = Object.prototype; module.exports = Object.getPrototypeOf || function (O) { @@ -2507,20 +2387,20 @@ module.exports = Object.getPrototypeOf || function (O) { /***/ }), -/* 87 */ +/* 83 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = !__webpack_require__(24) && !__webpack_require__(29)(function () { - return Object.defineProperty(__webpack_require__(88)('div'), 'a', { get: function () { return 7; } }).a != 7; +module.exports = !__webpack_require__(19) && !__webpack_require__(24)(function () { + return Object.defineProperty(__webpack_require__(84)('div'), 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), -/* 88 */ +/* 84 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(33); -var document = __webpack_require__(19).document; +var isObject = __webpack_require__(28); +var document = __webpack_require__(14).document; // typeof document.createElement is 'object' in old IE var is = isObject(document) && isObject(document.createElement); module.exports = function (it) { @@ -2529,13 +2409,13 @@ module.exports = function (it) { /***/ }), -/* 89 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { module.exports = { "default": __webpack_require__(145), __esModule: true }; /***/ }), -/* 90 */ +/* 86 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2562,7 +2442,7 @@ exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.d }; /***/ }), -/* 91 */ +/* 87 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2570,7 +2450,7 @@ exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.d var $at = __webpack_require__(149)(true); // 21.1.3.27 String.prototype[@@iterator]() -__webpack_require__(92)(String, 'String', function (iterated) { +__webpack_require__(88)(String, 'String', function (iterated) { this._t = String(iterated); // target this._i = 0; // next index // 21.1.5.2.1 %StringIteratorPrototype%.next() @@ -2586,21 +2466,21 @@ __webpack_require__(92)(String, 'String', function (iterated) { /***/ }), -/* 92 */ +/* 88 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var LIBRARY = __webpack_require__(63); -var $export = __webpack_require__(20); -var redefine = __webpack_require__(93); -var hide = __webpack_require__(27); -var has = __webpack_require__(23); -var Iterators = __webpack_require__(35); +var LIBRARY = __webpack_require__(59); +var $export = __webpack_require__(15); +var redefine = __webpack_require__(89); +var hide = __webpack_require__(22); +var has = __webpack_require__(18); +var Iterators = __webpack_require__(30); var $iterCreate = __webpack_require__(150); -var setToStringTag = __webpack_require__(67); -var getPrototypeOf = __webpack_require__(86); -var ITERATOR = __webpack_require__(18)('iterator'); +var setToStringTag = __webpack_require__(63); +var getPrototypeOf = __webpack_require__(82); +var ITERATOR = __webpack_require__(13)('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; var KEYS = 'keys'; @@ -2663,20 +2543,20 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE /***/ }), -/* 93 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(27); +module.exports = __webpack_require__(22); /***/ }), -/* 94 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { -var has = __webpack_require__(23); -var toIObject = __webpack_require__(30); +var has = __webpack_require__(18); +var toIObject = __webpack_require__(25); var arrayIndexOf = __webpack_require__(152)(false); -var IE_PROTO = __webpack_require__(58)('IE_PROTO'); +var IE_PROTO = __webpack_require__(54)('IE_PROTO'); module.exports = function (object, names) { var O = toIObject(object); @@ -2693,11 +2573,11 @@ module.exports = function (object, names) { /***/ }), -/* 95 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { // fallback for non-array-like ES3 and non-enumerable old V8 strings -var cof = __webpack_require__(65); +var cof = __webpack_require__(61); // eslint-disable-next-line no-prototype-builtins module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { return cof(it) == 'String' ? it.split('') : Object(it); @@ -2705,11 +2585,11 @@ module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { /***/ }), -/* 96 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.15 ToLength -var toInteger = __webpack_require__(62); +var toInteger = __webpack_require__(58); var min = Math.min; module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 @@ -2717,12 +2597,12 @@ module.exports = function (it) { /***/ }), -/* 97 */ +/* 93 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) -var $keys = __webpack_require__(94); -var hiddenKeys = __webpack_require__(66).concat('length', 'prototype'); +var $keys = __webpack_require__(90); +var hiddenKeys = __webpack_require__(62).concat('length', 'prototype'); exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return $keys(O, hiddenKeys); @@ -2730,18 +2610,18 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { /***/ }), -/* 98 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { -var pIE = __webpack_require__(41); -var createDesc = __webpack_require__(34); -var toIObject = __webpack_require__(30); -var toPrimitive = __webpack_require__(61); -var has = __webpack_require__(23); -var IE8_DOM_DEFINE = __webpack_require__(87); +var pIE = __webpack_require__(36); +var createDesc = __webpack_require__(29); +var toIObject = __webpack_require__(25); +var toPrimitive = __webpack_require__(57); +var has = __webpack_require__(18); +var IE8_DOM_DEFINE = __webpack_require__(83); var gOPD = Object.getOwnPropertyDescriptor; -exports.f = __webpack_require__(24) ? gOPD : function getOwnPropertyDescriptor(O, P) { +exports.f = __webpack_require__(19) ? gOPD : function getOwnPropertyDescriptor(O, P) { O = toIObject(O); P = toPrimitive(P, true); if (IE8_DOM_DEFINE) try { @@ -2752,11 +2632,11 @@ exports.f = __webpack_require__(24) ? gOPD : function getOwnPropertyDescriptor(O /***/ }), -/* 99 */ +/* 95 */ /***/ (function(module, exports, __webpack_require__) { var baseSetToString = __webpack_require__(177), - shortOut = __webpack_require__(104); + shortOut = __webpack_require__(100); /** * Sets the `toString` method of `func` to return `string`. @@ -2772,10 +2652,10 @@ module.exports = setToString; /***/ }), -/* 100 */ +/* 96 */ /***/ (function(module, exports, __webpack_require__) { -var getNative = __webpack_require__(25); +var getNative = __webpack_require__(20); var defineProperty = (function() { try { @@ -2789,7 +2669,7 @@ module.exports = defineProperty; /***/ }), -/* 101 */ +/* 97 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -2797,10 +2677,10 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(102))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98))) /***/ }), -/* 102 */ +/* 98 */ /***/ (function(module, exports) { var g; @@ -2827,7 +2707,7 @@ module.exports = g; /***/ }), -/* 103 */ +/* 99 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -2859,7 +2739,7 @@ module.exports = toSource; /***/ }), -/* 104 */ +/* 100 */ /***/ (function(module, exports) { /** Used to detect hot functions by number of calls within a span of milliseconds. */ @@ -2902,11 +2782,11 @@ module.exports = shortOut; /***/ }), -/* 105 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { -var identity = __webpack_require__(36), - metaMap = __webpack_require__(106); +var identity = __webpack_require__(31), + metaMap = __webpack_require__(102); /** * The base implementation of `setData` without support for hot loop shorting. @@ -2925,10 +2805,10 @@ module.exports = baseSetData; /***/ }), -/* 106 */ +/* 102 */ /***/ (function(module, exports, __webpack_require__) { -var WeakMap = __webpack_require__(107); +var WeakMap = __webpack_require__(103); /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; @@ -2937,11 +2817,11 @@ module.exports = metaMap; /***/ }), -/* 107 */ +/* 103 */ /***/ (function(module, exports, __webpack_require__) { -var getNative = __webpack_require__(25), - root = __webpack_require__(15); +var getNative = __webpack_require__(20), + root = __webpack_require__(10); /* Built-in method references that are verified to be native. */ var WeakMap = getNative(root, 'WeakMap'); @@ -2950,18 +2830,18 @@ module.exports = WeakMap; /***/ }), -/* 108 */ +/* 104 */ /***/ (function(module, exports, __webpack_require__) { -var composeArgs = __webpack_require__(109), - composeArgsRight = __webpack_require__(110), +var composeArgs = __webpack_require__(105), + composeArgsRight = __webpack_require__(106), countHolders = __webpack_require__(188), - createCtor = __webpack_require__(45), - createRecurry = __webpack_require__(111), - getHolder = __webpack_require__(76), + createCtor = __webpack_require__(40), + createRecurry = __webpack_require__(107), + getHolder = __webpack_require__(72), reorder = __webpack_require__(203), - replaceHolders = __webpack_require__(47), - root = __webpack_require__(15); + replaceHolders = __webpack_require__(42), + root = __webpack_require__(10); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG = 1, @@ -3048,7 +2928,7 @@ module.exports = createHybrid; /***/ }), -/* 109 */ +/* 105 */ /***/ (function(module, exports) { /* Built-in method references for those with the same name as other `lodash` methods. */ @@ -3093,7 +2973,7 @@ module.exports = composeArgs; /***/ }), -/* 110 */ +/* 106 */ /***/ (function(module, exports) { /* Built-in method references for those with the same name as other `lodash` methods. */ @@ -3140,12 +3020,12 @@ module.exports = composeArgsRight; /***/ }), -/* 111 */ +/* 107 */ /***/ (function(module, exports, __webpack_require__) { var isLaziable = __webpack_require__(189), - setData = __webpack_require__(115), - setWrapToString = __webpack_require__(116); + setData = __webpack_require__(111), + setWrapToString = __webpack_require__(112); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG = 1, @@ -3202,10 +3082,10 @@ module.exports = createRecurry; /***/ }), -/* 112 */ +/* 108 */ /***/ (function(module, exports, __webpack_require__) { -var metaMap = __webpack_require__(106), +var metaMap = __webpack_require__(102), noop = __webpack_require__(190); /** @@ -3223,11 +3103,11 @@ module.exports = getData; /***/ }), -/* 113 */ +/* 109 */ /***/ (function(module, exports, __webpack_require__) { -var baseCreate = __webpack_require__(73), - baseLodash = __webpack_require__(75); +var baseCreate = __webpack_require__(69), + baseLodash = __webpack_require__(71); /** * The base constructor for creating `lodash` wrapper objects. @@ -3251,7 +3131,7 @@ module.exports = LodashWrapper; /***/ }), -/* 114 */ +/* 110 */ /***/ (function(module, exports) { /** @@ -3277,11 +3157,11 @@ module.exports = copyArray; /***/ }), -/* 115 */ +/* 111 */ /***/ (function(module, exports, __webpack_require__) { -var baseSetData = __webpack_require__(105), - shortOut = __webpack_require__(104); +var baseSetData = __webpack_require__(101), + shortOut = __webpack_require__(100); /** * Sets metadata for `func`. @@ -3303,12 +3183,12 @@ module.exports = setData; /***/ }), -/* 116 */ +/* 112 */ /***/ (function(module, exports, __webpack_require__) { var getWrapDetails = __webpack_require__(195), insertWrapDetails = __webpack_require__(196), - setToString = __webpack_require__(99), + setToString = __webpack_require__(95), updateWrapDetails = __webpack_require__(197); /** @@ -3330,7 +3210,7 @@ module.exports = setWrapToString; /***/ }), -/* 117 */ +/* 113 */ /***/ (function(module, exports) { /** @@ -3358,11 +3238,11 @@ module.exports = arrayEach; /***/ }), -/* 118 */ +/* 114 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(26), - isSymbol = __webpack_require__(48); +var isObject = __webpack_require__(21), + isSymbol = __webpack_require__(43); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; @@ -3430,7 +3310,7 @@ module.exports = toNumber; /***/ }), -/* 119 */ +/* 115 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4508,10 +4388,10 @@ var createEventHandler = createEventHandlerWithConfig(config); -/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(17))) /***/ }), -/* 120 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4525,7 +4405,7 @@ var createEventHandler = createEventHandlerWithConfig(config); -var emptyFunction = __webpack_require__(78); +var emptyFunction = __webpack_require__(74); /** * Similar to invariant but only logs a warning if the condition is not met. @@ -4577,10 +4457,10 @@ if (process.env.NODE_ENV !== 'production') { } module.exports = warning; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) /***/ }), -/* 121 */ +/* 117 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -4645,10 +4525,10 @@ if (process.env.NODE_ENV !== 'production') { module.exports = warning; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) /***/ }), -/* 122 */ +/* 118 */ /***/ (function(module, exports, __webpack_require__) { var baseForOwn = __webpack_require__(234), @@ -4668,11 +4548,11 @@ module.exports = baseEach; /***/ }), -/* 123 */ +/* 119 */ /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__(239), - isObjectLike = __webpack_require__(31); + isObjectLike = __webpack_require__(26); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -4710,10 +4590,10 @@ module.exports = isArguments; /***/ }), -/* 124 */ +/* 120 */ /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(15), +/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(10), stubFalse = __webpack_require__(240); /** Detect free variable `exports`. */ @@ -4752,10 +4632,10 @@ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(77)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(73)(module))) /***/ }), -/* 125 */ +/* 121 */ /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__(241), @@ -4788,7 +4668,7 @@ module.exports = isTypedArray; /***/ }), -/* 126 */ +/* 122 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -4812,10 +4692,10 @@ module.exports = isPrototype; /***/ }), -/* 127 */ +/* 123 */ /***/ (function(module, exports, __webpack_require__) { -var ListCache = __webpack_require__(51), +var ListCache = __webpack_require__(46), stackClear = __webpack_require__(256), stackDelete = __webpack_require__(257), stackGet = __webpack_require__(258), @@ -4845,11 +4725,11 @@ module.exports = Stack; /***/ }), -/* 128 */ +/* 124 */ /***/ (function(module, exports, __webpack_require__) { var baseIsEqualDeep = __webpack_require__(273), - isObjectLike = __webpack_require__(31); + isObjectLike = __webpack_require__(26); /** * The base implementation of `_.isEqual` which supports partial comparisons @@ -4879,7 +4759,7 @@ module.exports = baseIsEqual; /***/ }), -/* 129 */ +/* 125 */ /***/ (function(module, exports, __webpack_require__) { var SetCache = __webpack_require__(274), @@ -4968,10 +4848,10 @@ module.exports = equalArrays; /***/ }), -/* 130 */ +/* 126 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(26); +var isObject = __webpack_require__(21); /** * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. @@ -4989,7 +4869,7 @@ module.exports = isStrictComparable; /***/ }), -/* 131 */ +/* 127 */ /***/ (function(module, exports) { /** @@ -5015,11 +4895,11 @@ module.exports = matchesStrictComparable; /***/ }), -/* 132 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { -var castPath = __webpack_require__(133), - toKey = __webpack_require__(56); +var castPath = __webpack_require__(129), + toKey = __webpack_require__(51); /** * The base implementation of `_.get` without support for default values. @@ -5045,13 +4925,13 @@ module.exports = baseGet; /***/ }), -/* 133 */ +/* 129 */ /***/ (function(module, exports, __webpack_require__) { -var isArray = __webpack_require__(17), - isKey = __webpack_require__(84), +var isArray = __webpack_require__(12), + isKey = __webpack_require__(80), stringToPath = __webpack_require__(297), - toString = __webpack_require__(134); + toString = __webpack_require__(130); /** * Casts `value` to a path array if it's not one. @@ -5072,7 +4952,7 @@ module.exports = castPath; /***/ }), -/* 134 */ +/* 130 */ /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__(300); @@ -5106,15 +4986,15 @@ module.exports = toString; /***/ }), -/* 135 */ +/* 131 */ /***/ (function(module, exports, __webpack_require__) { -var castPath = __webpack_require__(133), - isArguments = __webpack_require__(123), - isArray = __webpack_require__(17), - isIndex = __webpack_require__(46), - isLength = __webpack_require__(81), - toKey = __webpack_require__(56); +var castPath = __webpack_require__(129), + isArguments = __webpack_require__(119), + isArray = __webpack_require__(12), + isIndex = __webpack_require__(41), + isLength = __webpack_require__(77), + toKey = __webpack_require__(51); /** * Checks if `path` exists on `object`. @@ -5151,7 +5031,7 @@ module.exports = hasPath; /***/ }), -/* 136 */ +/* 132 */ /***/ (function(module, exports) { /** Used to compose unicode character classes. */ @@ -5183,11 +5063,11 @@ module.exports = hasUnicode; /***/ }), -/* 137 */ +/* 133 */ /***/ (function(module, exports, __webpack_require__) { -var baseAssignValue = __webpack_require__(138), - eq = __webpack_require__(53); +var baseAssignValue = __webpack_require__(134), + eq = __webpack_require__(48); /** Used for built-in method references. */ var objectProto = Object.prototype; @@ -5217,10 +5097,10 @@ module.exports = assignValue; /***/ }), -/* 138 */ +/* 134 */ /***/ (function(module, exports, __webpack_require__) { -var defineProperty = __webpack_require__(100); +var defineProperty = __webpack_require__(96); /** * The base implementation of `assignValue` and `assignMergeValue` without @@ -5248,6 +5128,126 @@ module.exports = baseAssignValue; /***/ }), +/* 135 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(0); +var ReactDOM = __webpack_require__(52); +var Container_1 = __webpack_require__(136); +var data = { + username: "fischer", + latitude: 55.663685, + longitude: 12.598535 +}; +ReactDOM.render(React.createElement(Container_1.Container, { data: data }), document.getElementById("container")); + + +/***/ }), +/* 136 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(0); +var Hello_1 = __webpack_require__(137); +var MapView_1 = __webpack_require__(138); +var NearbySights_1 = __webpack_require__(345); +var Container = /** @class */ (function (_super) { + __extends(Container, _super); + function Container() { + return _super !== null && _super.apply(this, arguments) || this; + } + Container.prototype.render = function () { + return (React.createElement("div", null, + React.createElement(Hello_1.UsernameHeading, { username: this.props.data.username }), + React.createElement(MapView_1.MapView, { latitude: this.props.data.latitude, longitude: this.props.data.longitude }), + React.createElement(NearbySights_1.NearbySights, { latitude: this.props.data.latitude, longitude: this.props.data.longitude }))); + }; + return Container; +}(React.Component)); +exports.Container = Container; + + +/***/ }), +/* 137 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(0); +var UsernameHeading = /** @class */ (function (_super) { + __extends(UsernameHeading, _super); + function UsernameHeading() { + return _super !== null && _super.apply(this, arguments) || this; + } + UsernameHeading.prototype.render = function () { + return React.createElement("h1", null, this.props.username); + }; + return UsernameHeading; +}(React.Component)); +exports.UsernameHeading = UsernameHeading; + + +/***/ }), +/* 138 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __extends = (this && this.__extends) || (function () { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var React = __webpack_require__(0); +var _a = __webpack_require__(139), withScriptjs = _a.withScriptjs, withGoogleMap = _a.withGoogleMap, GoogleMap = _a.GoogleMap, Marker = _a.Marker; +var MapView = /** @class */ (function (_super) { + __extends(MapView, _super); + function MapView() { + return _super !== null && _super.apply(this, arguments) || this; + } + MapView.prototype.render = function () { + var coordinates = { lat: this.props.latitude, lng: this.props.longitude }; + var TrackMeMap = withScriptjs(withGoogleMap(function (props) { return (React.createElement(GoogleMap, { defaultZoom: 15, defaultCenter: coordinates }, props.isMarkerShown && React.createElement(Marker, { position: coordinates }))); })); + return (React.createElement(TrackMeMap, { isMarkerShown: true, googleMapURL: "https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places", loadingElement: React.createElement("div", { style: { height: "100%" } }), containerElement: React.createElement("div", { style: { height: "400px" } }), mapElement: React.createElement("div", { style: { height: "100%" } }) })); + }; + return MapView; +}(React.Component)); +exports.MapView = MapView; + + +/***/ }), /* 139 */ /***/ (function(module, exports, __webpack_require__) { @@ -5427,41 +5427,41 @@ Object.defineProperty(exports, "__esModule", { value: true, }) -var _objectWithoutProperties2 = __webpack_require__(85) +var _objectWithoutProperties2 = __webpack_require__(81) var _objectWithoutProperties3 = _interopRequireDefault( _objectWithoutProperties2 ) -var _getPrototypeOf = __webpack_require__(6) +var _getPrototypeOf = __webpack_require__(1) var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf) -var _classCallCheck2 = __webpack_require__(7) +var _classCallCheck2 = __webpack_require__(2) var _classCallCheck3 = _interopRequireDefault(_classCallCheck2) -var _createClass2 = __webpack_require__(8) +var _createClass2 = __webpack_require__(3) var _createClass3 = _interopRequireDefault(_createClass2) -var _possibleConstructorReturn2 = __webpack_require__(9) +var _possibleConstructorReturn2 = __webpack_require__(4) var _possibleConstructorReturn3 = _interopRequireDefault( _possibleConstructorReturn2 ) -var _inherits2 = __webpack_require__(10) +var _inherits2 = __webpack_require__(5) var _inherits3 = _interopRequireDefault(_inherits2) -var _bind2 = __webpack_require__(42) +var _bind2 = __webpack_require__(37) var _bind3 = _interopRequireDefault(_bind2) exports.withScriptjs = withScriptjs -var _invariant = __webpack_require__(32) +var _invariant = __webpack_require__(27) var _invariant2 = _interopRequireDefault(_invariant) @@ -5469,9 +5469,9 @@ var _canUseDom = __webpack_require__(208) var _canUseDom2 = _interopRequireDefault(_canUseDom) -var _recompose = __webpack_require__(119) +var _recompose = __webpack_require__(115) -var _propTypes = __webpack_require__(11) +var _propTypes = __webpack_require__(6) var _propTypes2 = _interopRequireDefault(_propTypes) @@ -5620,7 +5620,7 @@ exports.default = withScriptjs /***/ (function(module, exports, __webpack_require__) { __webpack_require__(142); -module.exports = __webpack_require__(16).Object.getPrototypeOf; +module.exports = __webpack_require__(11).Object.getPrototypeOf; /***/ }), @@ -5628,8 +5628,8 @@ module.exports = __webpack_require__(16).Object.getPrototypeOf; /***/ (function(module, exports, __webpack_require__) { // 19.1.2.9 Object.getPrototypeOf(O) -var toObject = __webpack_require__(38); -var $getPrototypeOf = __webpack_require__(86); +var toObject = __webpack_require__(33); +var $getPrototypeOf = __webpack_require__(82); __webpack_require__(143)('getPrototypeOf', function () { return function getPrototypeOf(it) { @@ -5643,9 +5643,9 @@ __webpack_require__(143)('getPrototypeOf', function () { /***/ (function(module, exports, __webpack_require__) { // most Object methods by ES6 should accept primitives -var $export = __webpack_require__(20); -var core = __webpack_require__(16); -var fails = __webpack_require__(29); +var $export = __webpack_require__(15); +var core = __webpack_require__(11); +var fails = __webpack_require__(24); module.exports = function (KEY, exec) { var fn = (core.Object || {})[KEY] || Object[KEY]; var exp = {}; @@ -5669,7 +5669,7 @@ module.exports = function (it) { /***/ (function(module, exports, __webpack_require__) { __webpack_require__(146); -var $Object = __webpack_require__(16).Object; +var $Object = __webpack_require__(11).Object; module.exports = function defineProperty(it, key, desc) { return $Object.defineProperty(it, key, desc); }; @@ -5679,9 +5679,9 @@ module.exports = function defineProperty(it, key, desc) { /* 146 */ /***/ (function(module, exports, __webpack_require__) { -var $export = __webpack_require__(20); +var $export = __webpack_require__(15); // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) -$export($export.S + $export.F * !__webpack_require__(24), 'Object', { defineProperty: __webpack_require__(21).f }); +$export($export.S + $export.F * !__webpack_require__(19), 'Object', { defineProperty: __webpack_require__(16).f }); /***/ }), @@ -5694,17 +5694,17 @@ module.exports = { "default": __webpack_require__(148), __esModule: true }; /* 148 */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(91); +__webpack_require__(87); __webpack_require__(155); -module.exports = __webpack_require__(68).f('iterator'); +module.exports = __webpack_require__(64).f('iterator'); /***/ }), /* 149 */ /***/ (function(module, exports, __webpack_require__) { -var toInteger = __webpack_require__(62); -var defined = __webpack_require__(57); +var toInteger = __webpack_require__(58); +var defined = __webpack_require__(53); // true -> String#at // false -> String#codePointAt module.exports = function (TO_STRING) { @@ -5728,13 +5728,13 @@ module.exports = function (TO_STRING) { "use strict"; -var create = __webpack_require__(64); -var descriptor = __webpack_require__(34); -var setToStringTag = __webpack_require__(67); +var create = __webpack_require__(60); +var descriptor = __webpack_require__(29); +var setToStringTag = __webpack_require__(63); var IteratorPrototype = {}; // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -__webpack_require__(27)(IteratorPrototype, __webpack_require__(18)('iterator'), function () { return this; }); +__webpack_require__(22)(IteratorPrototype, __webpack_require__(13)('iterator'), function () { return this; }); module.exports = function (Constructor, NAME, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); @@ -5746,11 +5746,11 @@ module.exports = function (Constructor, NAME, next) { /* 151 */ /***/ (function(module, exports, __webpack_require__) { -var dP = __webpack_require__(21); -var anObject = __webpack_require__(28); -var getKeys = __webpack_require__(40); +var dP = __webpack_require__(16); +var anObject = __webpack_require__(23); +var getKeys = __webpack_require__(35); -module.exports = __webpack_require__(24) ? Object.defineProperties : function defineProperties(O, Properties) { +module.exports = __webpack_require__(19) ? Object.defineProperties : function defineProperties(O, Properties) { anObject(O); var keys = getKeys(Properties); var length = keys.length; @@ -5767,8 +5767,8 @@ module.exports = __webpack_require__(24) ? Object.defineProperties : function de // false -> Array#indexOf // true -> Array#includes -var toIObject = __webpack_require__(30); -var toLength = __webpack_require__(96); +var toIObject = __webpack_require__(25); +var toLength = __webpack_require__(92); var toAbsoluteIndex = __webpack_require__(153); module.exports = function (IS_INCLUDES) { return function ($this, el, fromIndex) { @@ -5794,7 +5794,7 @@ module.exports = function (IS_INCLUDES) { /* 153 */ /***/ (function(module, exports, __webpack_require__) { -var toInteger = __webpack_require__(62); +var toInteger = __webpack_require__(58); var max = Math.max; var min = Math.min; module.exports = function (index, length) { @@ -5807,7 +5807,7 @@ module.exports = function (index, length) { /* 154 */ /***/ (function(module, exports, __webpack_require__) { -var document = __webpack_require__(19).document; +var document = __webpack_require__(14).document; module.exports = document && document.documentElement; @@ -5816,10 +5816,10 @@ module.exports = document && document.documentElement; /***/ (function(module, exports, __webpack_require__) { __webpack_require__(156); -var global = __webpack_require__(19); -var hide = __webpack_require__(27); -var Iterators = __webpack_require__(35); -var TO_STRING_TAG = __webpack_require__(18)('toStringTag'); +var global = __webpack_require__(14); +var hide = __webpack_require__(22); +var Iterators = __webpack_require__(30); +var TO_STRING_TAG = __webpack_require__(13)('toStringTag'); var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + @@ -5844,14 +5844,14 @@ for (var i = 0; i < DOMIterables.length; i++) { var addToUnscopables = __webpack_require__(157); var step = __webpack_require__(158); -var Iterators = __webpack_require__(35); -var toIObject = __webpack_require__(30); +var Iterators = __webpack_require__(30); +var toIObject = __webpack_require__(25); // 22.1.3.4 Array.prototype.entries() // 22.1.3.13 Array.prototype.keys() // 22.1.3.29 Array.prototype.values() // 22.1.3.30 Array.prototype[@@iterator]() -module.exports = __webpack_require__(92)(Array, 'Array', function (iterated, kind) { +module.exports = __webpack_require__(88)(Array, 'Array', function (iterated, kind) { this._t = toIObject(iterated); // target this._i = 0; // next index this._k = kind; // kind @@ -5907,7 +5907,7 @@ __webpack_require__(161); __webpack_require__(166); __webpack_require__(167); __webpack_require__(168); -module.exports = __webpack_require__(16).Symbol; +module.exports = __webpack_require__(11).Symbol; /***/ }), @@ -5917,30 +5917,30 @@ module.exports = __webpack_require__(16).Symbol; "use strict"; // ECMAScript 6 symbols shim -var global = __webpack_require__(19); -var has = __webpack_require__(23); -var DESCRIPTORS = __webpack_require__(24); -var $export = __webpack_require__(20); -var redefine = __webpack_require__(93); +var global = __webpack_require__(14); +var has = __webpack_require__(18); +var DESCRIPTORS = __webpack_require__(19); +var $export = __webpack_require__(15); +var redefine = __webpack_require__(89); var META = __webpack_require__(162).KEY; -var $fails = __webpack_require__(29); -var shared = __webpack_require__(59); -var setToStringTag = __webpack_require__(67); -var uid = __webpack_require__(39); -var wks = __webpack_require__(18); -var wksExt = __webpack_require__(68); -var wksDefine = __webpack_require__(69); +var $fails = __webpack_require__(24); +var shared = __webpack_require__(55); +var setToStringTag = __webpack_require__(63); +var uid = __webpack_require__(34); +var wks = __webpack_require__(13); +var wksExt = __webpack_require__(64); +var wksDefine = __webpack_require__(65); var enumKeys = __webpack_require__(163); var isArray = __webpack_require__(164); -var anObject = __webpack_require__(28); -var toIObject = __webpack_require__(30); -var toPrimitive = __webpack_require__(61); -var createDesc = __webpack_require__(34); -var _create = __webpack_require__(64); +var anObject = __webpack_require__(23); +var toIObject = __webpack_require__(25); +var toPrimitive = __webpack_require__(57); +var createDesc = __webpack_require__(29); +var _…
… using tokens (if present). diff --git a/dist/bundle.js b/dist/bundle.js index eb14ca4..fd2fae7 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -60,7 +60,7 @@ /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 163); +/******/ return __webpack_require__(__webpack_require__.s = 177); /******/ }) /************************************************************************/ /******/ ([ @@ -95,14 +95,14 @@ if (process.env.NODE_ENV !== 'production') { // By explicitly using `prop-types` you are opting into new development behavior. // http://fb.me/prop-types-in-prod var throwOnDirectAccess = true; - module.exports = __webpack_require__(165)(isValidElement, throwOnDirectAccess); + module.exports = __webpack_require__(179)(isValidElement, throwOnDirectAccess); } else { // By explicitly using `prop-types` you are opting into new production behavior. // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(168)(); + module.exports = __webpack_require__(182)(); } -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) /***/ }), /* 2 */ @@ -170,7 +170,7 @@ if (process.env.NODE_ENV !== 'production') { module.exports = warning; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) /***/ }), /* 3 */ @@ -229,13 +229,13 @@ var invariant = function(condition, format, a, b, c, d, e, f) { module.exports = invariant; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = { "default": __webpack_require__(198), __esModule: true }; +module.exports = { "default": __webpack_require__(234), __esModule: true }; /***/ }), /* 5 */ @@ -261,7 +261,7 @@ exports.default = function (instance, Constructor) { exports.__esModule = true; -var _defineProperty = __webpack_require__(115); +var _defineProperty = __webpack_require__(130); var _defineProperty2 = _interopRequireDefault(_defineProperty); @@ -294,7 +294,7 @@ exports.default = function () { exports.__esModule = true; -var _typeof2 = __webpack_require__(116); +var _typeof2 = __webpack_require__(131); var _typeof3 = _interopRequireDefault(_typeof2); @@ -317,15 +317,15 @@ exports.default = function (self, call) { exports.__esModule = true; -var _setPrototypeOf = __webpack_require__(226); +var _setPrototypeOf = __webpack_require__(262); var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); -var _create = __webpack_require__(230); +var _create = __webpack_require__(266); var _create2 = _interopRequireDefault(_create); -var _typeof2 = __webpack_require__(116); +var _typeof2 = __webpack_require__(131); var _typeof3 = _interopRequireDefault(_typeof2); @@ -356,7 +356,7 @@ exports.default = function (subClass, superClass) { exports.__esModule = true; -var _defineProperty = __webpack_require__(115); +var _defineProperty = __webpack_require__(130); var _defineProperty2 = _interopRequireDefault(_defineProperty); @@ -457,6 +457,196 @@ var BICYCLING_LAYER = (exports.BICYCLING_LAYER = /***/ }), /* 11 */ +/***/ (function(module, exports) { + +// shim for using process in browser +var process = module.exports = {}; + +// cached from whatever global is present so that test runners that stub it +// don't break things. But we need to wrap it in a try catch in case it is +// wrapped in strict mode code which doesn't define any globals. It's inside a +// function because try/catches deoptimize in certain engines. + +var cachedSetTimeout; +var cachedClearTimeout; + +function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); +} +function defaultClearTimeout () { + throw new Error('clearTimeout has not been defined'); +} +(function () { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } +} ()) +function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch(e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch(e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + + +} +function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e){ + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e){ + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + + + +} +var queue = []; +var draining = false; +var currentQueue; +var queueIndex = -1; + +function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } +} + +function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while(len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); +} + +process.nextTick = function (fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + + +/***/ }), +/* 12 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -466,27 +656,27 @@ Object.defineProperty(exports, "__esModule", { value: true, }) -var _bind2 = __webpack_require__(44) +var _bind2 = __webpack_require__(47) var _bind3 = _interopRequireDefault(_bind2) -var _isFunction2 = __webpack_require__(45) +var _isFunction2 = __webpack_require__(48) var _isFunction3 = _interopRequireDefault(_isFunction2) -var _reduce3 = __webpack_require__(284) +var _reduce3 = __webpack_require__(317) var _reduce4 = _interopRequireDefault(_reduce3) -var _forEach2 = __webpack_require__(360) +var _forEach2 = __webpack_require__(393) var _forEach3 = _interopRequireDefault(_forEach2) -var _lowerFirst2 = __webpack_require__(362) +var _lowerFirst2 = __webpack_require__(395) var _lowerFirst3 = _interopRequireDefault(_lowerFirst2) -var _has2 = __webpack_require__(369) +var _has2 = __webpack_require__(402) var _has3 = _interopRequireDefault(_has2) @@ -598,10 +788,10 @@ function unregisterEvent(registered) { /***/ }), -/* 12 */ +/* 13 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(127); +var freeGlobal = __webpack_require__(142); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -613,7 +803,7 @@ module.exports = root; /***/ }), -/* 13 */ +/* 14 */ /***/ (function(module, exports) { var core = module.exports = { version: '2.5.1' }; @@ -621,7 +811,7 @@ if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), -/* 14 */ +/* 15 */ /***/ (function(module, exports) { /** @@ -653,11 +843,11 @@ module.exports = isArray; /***/ }), -/* 15 */ +/* 16 */ /***/ (function(module, exports, __webpack_require__) { -var store = __webpack_require__(72)('wks'); -var uid = __webpack_require__(41); +var store = __webpack_require__(80)('wks'); +var uid = __webpack_require__(44); var Symbol = __webpack_require__(17).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; @@ -670,214 +860,24 @@ $exports.store = store; /***/ }), -/* 16 */ +/* 17 */ /***/ (function(module, exports) { -// shim for using process in browser -var process = module.exports = {}; +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 +var global = module.exports = typeof window != 'undefined' && window.Math == Math + ? window : typeof self != 'undefined' && self.Math == Math ? self + // eslint-disable-next-line no-new-func + : Function('return this')(); +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self - // eslint-disable-next-line no-new-func - : Function('return this')(); -if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { +/***/ }), +/* 18 */ +/***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(17); -var core = __webpack_require__(13); -var ctx = __webpack_require__(73); +var core = __webpack_require__(14); +var ctx = __webpack_require__(81); var hide = __webpack_require__(24); var PROTOTYPE = 'prototype'; @@ -943,8 +943,8 @@ module.exports = $export; /***/ (function(module, exports, __webpack_require__) { var anObject = __webpack_require__(25); -var IE8_DOM_DEFINE = __webpack_require__(113); -var toPrimitive = __webpack_require__(74); +var IE8_DOM_DEFINE = __webpack_require__(128); +var toPrimitive = __webpack_require__(82); var dP = Object.defineProperty; exports.f = __webpack_require__(21) ? Object.defineProperty : function defineProperty(O, P, Attributes) { @@ -984,8 +984,8 @@ module.exports = !__webpack_require__(26)(function () { /* 22 */ /***/ (function(module, exports, __webpack_require__) { -var baseIsNative = __webpack_require__(236), - getValue = __webpack_require__(241); +var baseIsNative = __webpack_require__(272), + getValue = __webpack_require__(277); /** * Gets the native function at `key` of `object`. @@ -1045,7 +1045,7 @@ module.exports = isObject; /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(19); -var createDesc = __webpack_require__(32); +var createDesc = __webpack_require__(33); module.exports = __webpack_require__(21) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { @@ -1058,7 +1058,7 @@ module.exports = __webpack_require__(21) ? function (object, key, value) { /* 25 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(31); +var isObject = __webpack_require__(32); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; @@ -1083,8 +1083,8 @@ module.exports = function (exec) { /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(121); -var defined = __webpack_require__(70); +var IObject = __webpack_require__(136); +var defined = __webpack_require__(78); module.exports = function (it) { return IObject(defined(it)); }; @@ -1265,6 +1265,25 @@ var createPath = function createPath(location) { /***/ }), /* 31 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_Provider__ = __webpack_require__(203); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_connectAdvanced__ = __webpack_require__(117); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connect_connect__ = __webpack_require__(205); +/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return __WEBPACK_IMPORTED_MODULE_0__components_Provider__["b"]; }); +/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createProvider", function() { return __WEBPACK_IMPORTED_MODULE_0__components_Provider__["a"]; }); +/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "connectAdvanced", function() { return __WEBPACK_IMPORTED_MODULE_1__components_connectAdvanced__["a"]; }); +/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return __WEBPACK_IMPORTED_MODULE_2__connect_connect__["a"]; }); + + + + + + +/***/ }), +/* 32 */ /***/ (function(module, exports) { module.exports = function (it) { @@ -1273,7 +1292,7 @@ module.exports = function (it) { /***/ }), -/* 32 */ +/* 33 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { @@ -1287,14 +1306,14 @@ module.exports = function (bitmap, value) { /***/ }), -/* 33 */ +/* 34 */ /***/ (function(module, exports) { module.exports = {}; /***/ }), -/* 34 */ +/* 35 */ /***/ (function(module, exports) { /** @@ -1321,12 +1340,12 @@ module.exports = identity; /***/ }), -/* 35 */ +/* 36 */ /***/ (function(module, exports, __webpack_require__) { -var Symbol = __webpack_require__(46), - getRawTag = __webpack_require__(237), - objectToString = __webpack_require__(238); +var Symbol = __webpack_require__(49), + getRawTag = __webpack_require__(273), + objectToString = __webpack_require__(274); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -1355,36 +1374,36 @@ module.exports = baseGetTag; /***/ }), -/* 36 */ +/* 37 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__ = __webpack_require__(164); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__ = __webpack_require__(178); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HashRouter__ = __webpack_require__(170); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HashRouter__ = __webpack_require__(184); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return __WEBPACK_IMPORTED_MODULE_1__HashRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link__ = __webpack_require__(99); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link__ = __webpack_require__(106); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return __WEBPACK_IMPORTED_MODULE_2__Link__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__ = __webpack_require__(172); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__ = __webpack_require__(186); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NavLink__ = __webpack_require__(174); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NavLink__ = __webpack_require__(188); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return __WEBPACK_IMPORTED_MODULE_4__NavLink__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Prompt__ = __webpack_require__(177); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Prompt__ = __webpack_require__(191); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_5__Prompt__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Redirect__ = __webpack_require__(178); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Redirect__ = __webpack_require__(192); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_6__Redirect__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(101); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(108); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_7__Route__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Router__ = __webpack_require__(65); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Router__ = __webpack_require__(68); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_8__Router__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StaticRouter__ = __webpack_require__(183); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StaticRouter__ = __webpack_require__(197); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_9__StaticRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Switch__ = __webpack_require__(184); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Switch__ = __webpack_require__(198); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_10__Switch__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__matchPath__ = __webpack_require__(185); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__matchPath__ = __webpack_require__(199); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_11__matchPath__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withRouter__ = __webpack_require__(186); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withRouter__ = __webpack_require__(200); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_12__withRouter__["a"]; }); @@ -1414,7 +1433,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /***/ }), -/* 37 */ +/* 38 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1533,11 +1552,11 @@ Router.childContextTypes = { /* harmony default export */ __webpack_exports__["a"] = (Router); /***/ }), -/* 38 */ +/* 39 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(175); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(189); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__); @@ -1610,14 +1629,14 @@ var matchPath = function matchPath(pathname) { /* harmony default export */ __webpack_exports__["a"] = (matchPath); /***/ }), -/* 39 */ +/* 40 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createLocation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return locationsAreEqual; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_resolve_pathname__ = __webpack_require__(96); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_value_equal__ = __webpack_require__(97); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_resolve_pathname__ = __webpack_require__(103); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_value_equal__ = __webpack_require__(104); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PathUtils__ = __webpack_require__(30); 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; }; @@ -1686,18 +1705,75 @@ var locationsAreEqual = function locationsAreEqual(a, b) { }; /***/ }), -/* 40 */ +/* 41 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const SET_LOGIN_SUCCESS = 'SET_LOGIN_SUCCESS'; +const SET_LOGOUT_SUCCESS = 'SET_LOGOUT_SUCCESS'; +function login(username) { + return (dispatch) => { + dispatch(setLoginSuccess(true)); + }; +} +exports.login = login; +; +function logout() { + return (dispatch) => { + dispatch(setLoginSuccess(false)); + }; +} +exports.logout = logout; +; +function setLoginSuccess(isLoginSuccess) { + return { + type: SET_LOGIN_SUCCESS, + isLoginSuccess + }; +} +function reducer(state = { isLoginSuccess: false }, action) { + switch (action.type) { + case SET_LOGIN_SUCCESS: + return Object.assign({}, state, { + isLoginSuccess: action.isLoginSuccess + }); + case SET_LOGOUT_SUCCESS: + return Object.assign({}, state, { + isLoginSuccess: action.isLoginSuccess + }); + default: return state; + } +} +exports.default = reducer; +; + + +/***/ }), +/* 42 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const BASEURL = 'http://localhost:5000'; +exports.BASEURL = BASEURL; + + +/***/ }), +/* 43 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.13 ToObject(argument) -var defined = __webpack_require__(70); +var defined = __webpack_require__(78); module.exports = function (it) { return Object(defined(it)); }; /***/ }), -/* 41 */ +/* 44 */ /***/ (function(module, exports) { var id = 0; @@ -1708,12 +1784,12 @@ module.exports = function (key) { /***/ }), -/* 42 */ +/* 45 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(120); -var enumBugKeys = __webpack_require__(79); +var $keys = __webpack_require__(135); +var enumBugKeys = __webpack_require__(87); module.exports = Object.keys || function keys(O) { return $keys(O, enumBugKeys); @@ -1721,20 +1797,20 @@ module.exports = Object.keys || function keys(O) { /***/ }), -/* 43 */ +/* 46 */ /***/ (function(module, exports) { exports.f = {}.propertyIsEnumerable; /***/ }), -/* 44 */ +/* 47 */ /***/ (function(module, exports, __webpack_require__) { -var baseRest = __webpack_require__(84), - createWrap = __webpack_require__(242), - getHolder = __webpack_require__(89), - replaceHolders = __webpack_require__(49); +var baseRest = __webpack_require__(92), + createWrap = __webpack_require__(278), + getHolder = __webpack_require__(97), + replaceHolders = __webpack_require__(52); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG = 1, @@ -1791,10 +1867,10 @@ module.exports = bind; /***/ }), -/* 45 */ +/* 48 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(35), +var baseGetTag = __webpack_require__(36), isObject = __webpack_require__(23); /** `Object#toString` result references. */ @@ -1834,10 +1910,10 @@ module.exports = isFunction; /***/ }), -/* 46 */ +/* 49 */ /***/ (function(module, exports, __webpack_require__) { -var root = __webpack_require__(12); +var root = __webpack_require__(13); /** Built-in value references. */ var Symbol = root.Symbol; @@ -1846,10 +1922,10 @@ module.exports = Symbol; /***/ }), -/* 47 */ +/* 50 */ /***/ (function(module, exports, __webpack_require__) { -var baseCreate = __webpack_require__(86), +var baseCreate = __webpack_require__(94), isObject = __webpack_require__(23); /** @@ -1889,7 +1965,7 @@ module.exports = createCtor; /***/ }), -/* 48 */ +/* 51 */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ @@ -1917,7 +1993,7 @@ module.exports = isIndex; /***/ }), -/* 49 */ +/* 52 */ /***/ (function(module, exports) { /** Used as the internal argument placeholder. */ @@ -1952,10 +2028,10 @@ module.exports = replaceHolders; /***/ }), -/* 50 */ +/* 53 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(35), +var baseGetTag = __webpack_require__(36), isObjectLike = __webpack_require__(28); /** `Object#toString` result references. */ @@ -1987,12 +2063,12 @@ module.exports = isSymbol; /***/ }), -/* 51 */ +/* 54 */ /***/ (function(module, exports, __webpack_require__) { -var arrayLikeKeys = __webpack_require__(289), - baseKeys = __webpack_require__(296), - isArrayLike = __webpack_require__(52); +var arrayLikeKeys = __webpack_require__(322), + baseKeys = __webpack_require__(329), + isArrayLike = __webpack_require__(55); /** * Creates an array of the own enumerable property names of `object`. @@ -2030,11 +2106,11 @@ module.exports = keys; /***/ }), -/* 52 */ +/* 55 */ /***/ (function(module, exports, __webpack_require__) { -var isFunction = __webpack_require__(45), - isLength = __webpack_require__(91); +var isFunction = __webpack_require__(48), + isLength = __webpack_require__(98); /** * Checks if `value` is array-like. A value is considered array-like if it's @@ -2069,14 +2145,14 @@ module.exports = isArrayLike; /***/ }), -/* 53 */ +/* 56 */ /***/ (function(module, exports, __webpack_require__) { -var listCacheClear = __webpack_require__(303), - listCacheDelete = __webpack_require__(304), - listCacheGet = __webpack_require__(305), - listCacheHas = __webpack_require__(306), - listCacheSet = __webpack_require__(307); +var listCacheClear = __webpack_require__(336), + listCacheDelete = __webpack_require__(337), + listCacheGet = __webpack_require__(338), + listCacheHas = __webpack_require__(339), + listCacheSet = __webpack_require__(340); /** * Creates an list cache object. @@ -2107,10 +2183,10 @@ module.exports = ListCache; /***/ }), -/* 54 */ +/* 57 */ /***/ (function(module, exports, __webpack_require__) { -var eq = __webpack_require__(55); +var eq = __webpack_require__(58); /** * Gets the index at which the `key` is found in `array` of key-value pairs. @@ -2134,7 +2210,7 @@ module.exports = assocIndexOf; /***/ }), -/* 55 */ +/* 58 */ /***/ (function(module, exports) { /** @@ -2177,7 +2253,7 @@ module.exports = eq; /***/ }), -/* 56 */ +/* 59 */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(22); @@ -2189,10 +2265,10 @@ module.exports = nativeCreate; /***/ }), -/* 57 */ +/* 60 */ /***/ (function(module, exports, __webpack_require__) { -var isKeyable = __webpack_require__(321); +var isKeyable = __webpack_require__(354); /** * Gets the data for `map`. @@ -2213,10 +2289,10 @@ module.exports = getMapData; /***/ }), -/* 58 */ +/* 61 */ /***/ (function(module, exports, __webpack_require__) { -var isSymbol = __webpack_require__(50); +var isSymbol = __webpack_require__(53); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; @@ -2240,13 +2316,13 @@ module.exports = toKey; /***/ }), -/* 59 */ +/* 62 */ /***/ (function(module, exports) { module.exports = ReactDOM; /***/ }), -/* 60 */ +/* 63 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2288,7 +2364,7 @@ emptyFunction.thatReturnsArgument = function (arg) { module.exports = emptyFunction; /***/ }), -/* 61 */ +/* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2345,10 +2421,10 @@ function invariant(condition, format, a, b, c, d, e, f) { } module.exports = invariant; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) /***/ }), -/* 62 */ +/* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2367,7 +2443,7 @@ module.exports = ReactPropTypesSecret; /***/ }), -/* 63 */ +/* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2378,11 +2454,11 @@ exports.locationsAreEqual = exports.createLocation = undefined; 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; }; -var _resolvePathname = __webpack_require__(96); +var _resolvePathname = __webpack_require__(103); var _resolvePathname2 = _interopRequireDefault(_resolvePathname); -var _valueEqual = __webpack_require__(97); +var _valueEqual = __webpack_require__(104); var _valueEqual2 = _interopRequireDefault(_valueEqual); @@ -2451,7 +2527,7 @@ var locationsAreEqual = exports.locationsAreEqual = function locationsAreEqual(a }; /***/ }), -/* 64 */ +/* 67 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2542,18 +2618,18 @@ var createTransitionManager = function createTransitionManager() { exports.default = createTransitionManager; /***/ }), -/* 65 */ +/* 68 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__ = __webpack_require__(38); // Written in this round about way for babel-transform-imports /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__["a" /* default */]); /***/ }), -/* 66 */ +/* 69 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2565,7 +2641,7 @@ exports.default = createTransitionManager; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__matchPath__ = __webpack_require__(38); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__matchPath__ = __webpack_require__(39); 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; }; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -2702,7 +2778,7 @@ Route.childContextTypes = { /* harmony default export */ __webpack_exports__["a"] = (Route); /***/ }), -/* 67 */ +/* 70 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2787,28 +2863,255 @@ var createTransitionManager = function createTransitionManager() { /* harmony default export */ __webpack_exports__["a"] = (createTransitionManager); /***/ }), -/* 68 */ +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright 2015, Yahoo! Inc. + * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. + */ + + +var REACT_STATICS = { + childContextTypes: true, + contextTypes: true, + defaultProps: true, + displayName: true, + getDefaultProps: true, + mixins: true, + propTypes: true, + type: true +}; + +var KNOWN_STATICS = { + name: true, + length: true, + prototype: true, + caller: true, + callee: true, + arguments: true, + arity: true +}; + +var defineProperty = Object.defineProperty; +var getOwnPropertyNames = Object.getOwnPropertyNames; +var getOwnPropertySymbols = Object.getOwnPropertySymbols; +var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; +var getPrototypeOf = Object.getPrototypeOf; +var objectPrototype = getPrototypeOf && getPrototypeOf(Object); + +module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { + if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components + + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } + } + + var keys = getOwnPropertyNames(sourceComponent); + + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} + } + } + + return targetComponent; + } + + return targetComponent; +}; + + +/***/ }), +/* 72 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (immutable) */ __webpack_exports__["a"] = warning; +/** + * Prints a warning in the console if it exists. + * + * @param {String} message The warning message. + * @returns {void} + */ +function warning(message) { + /* eslint-disable no-console */ + if (typeof console !== 'undefined' && typeof console.error === 'function') { + console.error(message); + } + /* eslint-enable no-console */ + try { + // This error was thrown as a convenience so that if you enable + // "break on all exceptions" in your console, + // it would pause the execution at this line. + throw new Error(message); + /* eslint-disable no-empty */ + } catch (e) {} + /* eslint-enable no-empty */ +} + +/***/ }), +/* 73 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(208); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getPrototype_js__ = __webpack_require__(213); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__ = __webpack_require__(215); + + + + +/** `Object#toString` result references. */ +var objectTag = '[object Object]'; + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to infer the `Object` constructor. */ +var objectCtorString = funcToString.call(Object); + +/** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ +function isPlainObject(value) { + if (!Object(__WEBPACK_IMPORTED_MODULE_2__isObjectLike_js__["a" /* default */])(value) || Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) != objectTag) { + return false; + } + var proto = Object(__WEBPACK_IMPORTED_MODULE_1__getPrototype_js__["a" /* default */])(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return typeof Ctor == 'function' && Ctor instanceof Ctor && + funcToString.call(Ctor) == objectCtorString; +} + +/* harmony default export */ __webpack_exports__["a"] = (isPlainObject); + + +/***/ }), +/* 74 */ +/***/ (function(module, exports) { + +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); + +try { + // This works if eval is allowed (see CSP) + g = g || Function("return this")() || (1,eval)("this"); +} catch(e) { + // This works if the window reference is available + if(typeof window === "object") + g = window; +} + +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} + +module.exports = g; + + +/***/ }), +/* 75 */ +/***/ (function(module, exports) { + +module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + if(!module.children) module.children = []; + Object.defineProperty(module, "loaded", { + enumerable: true, + get: function() { + return module.l; + } + }); + Object.defineProperty(module, "id", { + enumerable: true, + get: function() { + return module.i; + } + }); + module.webpackPolyfill = 1; + } + return module; +}; + + +/***/ }), +/* 76 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemoryRouter__ = __webpack_require__(100); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemoryRouter__ = __webpack_require__(107); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0__MemoryRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Prompt__ = __webpack_require__(102); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Prompt__ = __webpack_require__(109); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_1__Prompt__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Redirect__ = __webpack_require__(103); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Redirect__ = __webpack_require__(110); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_2__Redirect__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Route__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Route__ = __webpack_require__(69); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_3__Route__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Router__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Router__ = __webpack_require__(38); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_4__Router__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__StaticRouter__ = __webpack_require__(105); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__StaticRouter__ = __webpack_require__(112); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_5__StaticRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Switch__ = __webpack_require__(106); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Switch__ = __webpack_require__(113); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_6__Switch__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__matchPath__ = __webpack_require__(38); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__matchPath__ = __webpack_require__(39); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_7__matchPath__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__withRouter__ = __webpack_require__(107); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__withRouter__ = __webpack_require__(114); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_8__withRouter__["a"]; }); @@ -2830,18 +3133,26 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /***/ }), -/* 69 */ +/* 77 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const BASEURL = 'http://localhost:5000'; -exports.BASEURL = BASEURL; +function storeTokens(tokens, remember) { + if (tokens === undefined) + return; + let storage = remember ? localStorage : sessionStorage; + let access_token_key = 'access_token'; + let refresh_token_key = 'refresh_token'; + storage.setItem(access_token_key, tokens.access_token); + storage.setItem(refresh_token_key, tokens.refresh_token); +} +exports.storeTokens = storeTokens; /***/ }), -/* 70 */ +/* 78 */ /***/ (function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) @@ -2852,18 +3163,18 @@ module.exports = function (it) { /***/ }), -/* 71 */ +/* 79 */ /***/ (function(module, exports, __webpack_require__) { -var shared = __webpack_require__(72)('keys'); -var uid = __webpack_require__(41); +var shared = __webpack_require__(80)('keys'); +var uid = __webpack_require__(44); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; /***/ }), -/* 72 */ +/* 80 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(17); @@ -2875,11 +3186,11 @@ module.exports = function (key) { /***/ }), -/* 73 */ +/* 81 */ /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding -var aFunction = __webpack_require__(201); +var aFunction = __webpack_require__(237); module.exports = function (fn, that, length) { aFunction(fn); if (that === undefined) return fn; @@ -2901,11 +3212,11 @@ module.exports = function (fn, that, length) { /***/ }), -/* 74 */ +/* 82 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(31); +var isObject = __webpack_require__(32); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, S) { @@ -2919,7 +3230,7 @@ module.exports = function (it, S) { /***/ }), -/* 75 */ +/* 83 */ /***/ (function(module, exports) { // 7.1.4 ToInteger @@ -2931,34 +3242,34 @@ module.exports = function (it) { /***/ }), -/* 76 */ +/* 84 */ /***/ (function(module, exports) { module.exports = true; /***/ }), -/* 77 */ +/* 85 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) var anObject = __webpack_require__(25); -var dPs = __webpack_require__(208); -var enumBugKeys = __webpack_require__(79); -var IE_PROTO = __webpack_require__(71)('IE_PROTO'); +var dPs = __webpack_require__(244); +var enumBugKeys = __webpack_require__(87); +var IE_PROTO = __webpack_require__(79)('IE_PROTO'); var Empty = function () { /* empty */ }; var PROTOTYPE = 'prototype'; // Create object with fake `null` prototype: use iframe Object with cleared prototype var createDict = function () { // Thrash, waste and sodomy: IE GC bug - var iframe = __webpack_require__(114)('iframe'); + var iframe = __webpack_require__(129)('iframe'); var i = enumBugKeys.length; var lt = '<'; var gt = '>'; var iframeDocument; iframe.style.display = 'none'; - __webpack_require__(211).appendChild(iframe); + __webpack_require__(247).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); @@ -2985,7 +3296,7 @@ module.exports = Object.create || function create(O, Properties) { /***/ }), -/* 78 */ +/* 86 */ /***/ (function(module, exports) { var toString = {}.toString; @@ -2996,7 +3307,7 @@ module.exports = function (it) { /***/ }), -/* 79 */ +/* 87 */ /***/ (function(module, exports) { // IE 8- don't enum bug keys @@ -3006,12 +3317,12 @@ module.exports = ( /***/ }), -/* 80 */ +/* 88 */ /***/ (function(module, exports, __webpack_require__) { var def = __webpack_require__(19).f; var has = __webpack_require__(20); -var TAG = __webpack_require__(15)('toStringTag'); +var TAG = __webpack_require__(16)('toStringTag'); module.exports = function (it, tag, stat) { if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); @@ -3019,20 +3330,20 @@ module.exports = function (it, tag, stat) { /***/ }), -/* 81 */ +/* 89 */ /***/ (function(module, exports, __webpack_require__) { -exports.f = __webpack_require__(15); +exports.f = __webpack_require__(16); /***/ }), -/* 82 */ +/* 90 */ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(17); -var core = __webpack_require__(13); -var LIBRARY = __webpack_require__(76); -var wksExt = __webpack_require__(81); +var core = __webpack_require__(14); +var LIBRARY = __webpack_require__(84); +var wksExt = __webpack_require__(89); var defineProperty = __webpack_require__(19).f; module.exports = function (name) { var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); @@ -3041,19 +3352,19 @@ module.exports = function (name) { /***/ }), -/* 83 */ +/* 91 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), -/* 84 */ +/* 92 */ /***/ (function(module, exports, __webpack_require__) { -var identity = __webpack_require__(34), - overRest = __webpack_require__(233), - setToString = __webpack_require__(125); +var identity = __webpack_require__(35), + overRest = __webpack_require__(269), + setToString = __webpack_require__(140); /** * The base implementation of `_.rest` which doesn't validate or coerce arguments. @@ -3071,7 +3382,7 @@ module.exports = baseRest; /***/ }), -/* 85 */ +/* 93 */ /***/ (function(module, exports) { /** @@ -3098,7 +3409,7 @@ module.exports = apply; /***/ }), -/* 86 */ +/* 94 */ /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(23); @@ -3134,11 +3445,11 @@ module.exports = baseCreate; /***/ }), -/* 87 */ +/* 95 */ /***/ (function(module, exports, __webpack_require__) { -var baseCreate = __webpack_require__(86), - baseLodash = __webpack_require__(88); +var baseCreate = __webpack_require__(94), + baseLodash = __webpack_require__(96); /** Used as references for the maximum length and index of an array. */ var MAX_ARRAY_LENGTH = 4294967295; @@ -3168,7 +3479,7 @@ module.exports = LazyWrapper; /***/ }), -/* 88 */ +/* 96 */ /***/ (function(module, exports) { /** @@ -3184,7 +3495,7 @@ module.exports = baseLodash; /***/ }), -/* 89 */ +/* 97 */ /***/ (function(module, exports) { /** @@ -3203,35 +3514,7 @@ module.exports = getHolder; /***/ }), -/* 90 */ -/***/ (function(module, exports) { - -module.exports = function(module) { - if(!module.webpackPolyfill) { - module.deprecate = function() {}; - module.paths = []; - // module.parent = undefined by default - if(!module.children) module.children = []; - Object.defineProperty(module, "loaded", { - enumerable: true, - get: function() { - return module.l; - } - }); - Object.defineProperty(module, "id", { - enumerable: true, - get: function() { - return module.i; - } - }); - module.webpackPolyfill = 1; - } - return module; -}; - - -/***/ }), -/* 91 */ +/* 98 */ /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ @@ -3272,11 +3555,11 @@ module.exports = isLength; /***/ }), -/* 92 */ +/* 99 */ /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(22), - root = __webpack_require__(12); + root = __webpack_require__(13); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); @@ -3285,14 +3568,14 @@ module.exports = Map; /***/ }), -/* 93 */ +/* 100 */ /***/ (function(module, exports, __webpack_require__) { -var mapCacheClear = __webpack_require__(313), - mapCacheDelete = __webpack_require__(320), - mapCacheGet = __webpack_require__(322), - mapCacheHas = __webpack_require__(323), - mapCacheSet = __webpack_require__(324); +var mapCacheClear = __webpack_require__(346), + mapCacheDelete = __webpack_require__(353), + mapCacheGet = __webpack_require__(355), + mapCacheHas = __webpack_require__(356), + mapCacheSet = __webpack_require__(357); /** * Creates a map cache object to store key-value pairs. @@ -3323,11 +3606,11 @@ module.exports = MapCache; /***/ }), -/* 94 */ +/* 101 */ /***/ (function(module, exports, __webpack_require__) { -var isArray = __webpack_require__(14), - isSymbol = __webpack_require__(50); +var isArray = __webpack_require__(15), + isSymbol = __webpack_require__(53); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, @@ -3358,7 +3641,7 @@ module.exports = isKey; /***/ }), -/* 95 */ +/* 102 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3372,7 +3655,7 @@ module.exports = isKey; -var emptyFunction = __webpack_require__(60); +var emptyFunction = __webpack_require__(63); /** * Similar to invariant but only logs a warning if the condition is not met. @@ -3424,10 +3707,10 @@ if (process.env.NODE_ENV !== 'production') { } module.exports = warning; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(16))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) /***/ }), -/* 96 */ +/* 103 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3504,7 +3787,7 @@ function resolvePathname(to) { /* harmony default export */ __webpack_exports__["default"] = (resolvePathname); /***/ }), -/* 97 */ +/* 104 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3549,7 +3832,7 @@ function valueEqual(a, b) { /* harmony default export */ __webpack_exports__["default"] = (valueEqual); /***/ }), -/* 98 */ +/* 105 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -3610,7 +3893,7 @@ var isExtraneousPopstateEvent = exports.isExtraneousPopstateEvent = function isE }; /***/ }), -/* 99 */ +/* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3720,7 +4003,7 @@ Link.contextTypes = { /* harmony default export */ __webpack_exports__["a"] = (Link); /***/ }), -/* 100 */ +/* 107 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3730,9 +4013,9 @@ Link.contextTypes = { /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history_createMemoryHistory__ = __webpack_require__(173); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history_createMemoryHistory__ = __webpack_require__(187); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history_createMemoryHistory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_history_createMemoryHistory__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Router__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Router__ = __webpack_require__(38); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -3787,18 +4070,18 @@ MemoryRouter.propTypes = { /* harmony default export */ __webpack_exports__["a"] = (MemoryRouter); /***/ }), -/* 101 */ +/* 108 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__ = __webpack_require__(69); // Written in this round about way for babel-transform-imports /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__["a" /* default */]); /***/ }), -/* 102 */ +/* 109 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3889,7 +4172,7 @@ Prompt.contextTypes = { /* harmony default export */ __webpack_exports__["a"] = (Prompt); /***/ }), -/* 103 */ +/* 110 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3901,7 +4184,7 @@ Prompt.contextTypes = { /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_warning__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_invariant__ = __webpack_require__(3); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_invariant__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_history__ = __webpack_require__(179); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_history__ = __webpack_require__(193); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -3997,7 +4280,7 @@ Redirect.contextTypes = { /* harmony default export */ __webpack_exports__["a"] = (Redirect); /***/ }), -/* 104 */ +/* 111 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4063,7 +4346,7 @@ var isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) { }; /***/ }), -/* 105 */ +/* 112 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -4077,7 +4360,7 @@ var isExtraneousPopstateEvent = function isExtraneousPopstateEvent(event) { /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_history_PathUtils__ = __webpack_require__(29); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_history_PathUtils___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_history_PathUtils__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Router__ = __webpack_require__(37); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Router__ = __webpack_require__(38); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var s…
diff --git a/.gitignore b/.gitignore index bff9ff2..d30f40e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,73 +1,21 @@ -.DS_STORE +# See https://help.github.com/ignore-files/ for more about ignoring files. -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release +# dependencies +/node_modules -# Dependency directories -node_modules/ -jspm_packages/ +# testing +/coverage -# Typescript v1 declaration files -typings/ +# production +/build -# Optional npm cache directory -.npm +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env - - -# Created by https://www.gitignore.io/api/visualstudiocode - -### VisualStudioCode ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -.history - -# End of https://www.gitignore.io/api/visualstudiocode +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 8404051..0000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Launch", - "type": "node", - "request": "launch", - "program": "${workspaceRoot}/node_modules/.bin/webpack-dev-server", - "outFiles": [ - "${workspaceRoot}/dist/*" - ], - "stopOnEntry": false, - "cwd": "${workspaceRoot}", - "runtimeExecutable": null, - "runtimeArgs": [], - "env": { - "NODE_ENV": "development" - }, - "console": "internalConsole", - "sourceMaps": true - }, - { - "name": "Chrome", - "type": "chrome", - "request": "launch", - "url": "http://localhost:3000", - "webRoot": "${workspaceRoot}/src" - } - ] -} \ No newline at end of file diff --git a/dist/bundle.js b/dist/bundle.js deleted file mode 100644 index fd2fae7..0000000 --- a/dist/bundle.js +++ /dev/null @@ -1,24364 +0,0 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 177); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -module.exports = React; - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (process.env.NODE_ENV !== 'production') { - var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && - Symbol.for && - Symbol.for('react.element')) || - 0xeac7; - - var isValidElement = function(object) { - return typeof object === 'object' && - object !== null && - object.$$typeof === REACT_ELEMENT_TYPE; - }; - - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = __webpack_require__(179)(isValidElement, throwOnDirectAccess); -} else { - // By explicitly using `prop-types` you are opting into new production behavior. - // http://fb.me/prop-types-in-prod - module.exports = __webpack_require__(182)(); -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - - -/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */ - -var warning = function() {}; - -if (process.env.NODE_ENV !== 'production') { - warning = function(condition, format, args) { - var len = arguments.length; - args = new Array(len > 2 ? len - 2 : 0); - for (var key = 2; key < len; key++) { - args[key - 2] = arguments[key]; - } - if (format === undefined) { - throw new Error( - '`warning(condition, format, ...args)` requires a warning ' + - 'message argument' - ); - } - - if (format.length < 10 || (/^[s\W]*$/).test(format)) { - throw new Error( - 'The warning format should be able to uniquely identify this ' + - 'warning. Please, use a more descriptive format than: ' + format - ); - } - - if (!condition) { - var argIndex = 0; - var message = 'Warning: ' + - format.replace(/%s/g, function() { - return args[argIndex++]; - }); - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch(x) {} - } - }; -} - -module.exports = warning; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - - - -/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */ - -var invariant = function(condition, format, a, b, c, d, e, f) { - if (process.env.NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); - } - } - - if (!condition) { - var error; - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error( - format.replace(/%s/g, function() { return args[argIndex++]; }) - ); - error.name = 'Invariant Violation'; - } - - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } -}; - -module.exports = invariant; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11))) - -/***/ }), -/* 4 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = { "default": __webpack_require__(234), __esModule: true }; - -/***/ }), -/* 5 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -exports.default = function (instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -}; - -/***/ }), -/* 6 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _defineProperty = __webpack_require__(130); - -var _defineProperty2 = _interopRequireDefault(_defineProperty); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function () { - function defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - (0, _defineProperty2.default)(target, descriptor.key, descriptor); - } - } - - return function (Constructor, protoProps, staticProps) { - if (protoProps) defineProperties(Constructor.prototype, protoProps); - if (staticProps) defineProperties(Constructor, staticProps); - return Constructor; - }; -}(); - -/***/ }), -/* 7 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _typeof2 = __webpack_require__(131); - -var _typeof3 = _interopRequireDefault(_typeof2); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function (self, call) { - if (!self) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self; -}; - -/***/ }), -/* 8 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _setPrototypeOf = __webpack_require__(262); - -var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); - -var _create = __webpack_require__(266); - -var _create2 = _interopRequireDefault(_create); - -var _typeof2 = __webpack_require__(131); - -var _typeof3 = _interopRequireDefault(_typeof2); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function (subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass))); - } - - subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, { - constructor: { - value: subClass, - enumerable: false, - writable: true, - configurable: true - } - }); - if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass; -}; - -/***/ }), -/* 9 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; - -var _defineProperty = __webpack_require__(130); - -var _defineProperty2 = _interopRequireDefault(_defineProperty); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -exports.default = function (obj, key, value) { - if (key in obj) { - (0, _defineProperty2.default)(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -}; - -/***/ }), -/* 10 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true, -}) -var MAP = (exports.MAP = "__SECRET_MAP_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -// export const SKELETON = `__SECRET_SKELETON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`; - -var MARKER = (exports.MARKER = - "__SECRET_MARKER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var MARKER_WITH_LABEL = (exports.MARKER_WITH_LABEL = - "__SECRET_MARKER_WITH_LABEL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var RECTANGLE = (exports.RECTANGLE = - "__SECRET_RECTANGLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var POLYLINE = (exports.POLYLINE = - "__SECRET_POLYLINE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var POLYGON = (exports.POLYGON = - "__SECRET_POLYGON_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var CIRCLE = (exports.CIRCLE = - "__SECRET_CIRCLE_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var KML_LAYER = (exports.KML_LAYER = - "__SECRET_KML_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var DIRECTIONS_RENDERER = (exports.DIRECTIONS_RENDERER = - "__SECRET_DIRECTIONS_RENDERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var HEATMAP_LAYER = (exports.HEATMAP_LAYER = - "__SECRET_HEATMAP_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var FUSION_TABLES_LAYER = (exports.FUSION_TABLES_LAYER = - "__SECRET_FUSION_TABLES_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var ANCHOR = (exports.ANCHOR = - "__SECRET_ANCHOR_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var INFO_WINDOW = (exports.INFO_WINDOW = - "__SECRET_INFO_WINDOW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var OVERLAY_VIEW = (exports.OVERLAY_VIEW = - "__SECRET_OVERLAY_VIEW_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var GROUND_LAYER = (exports.GROUND_LAYER = - "__SECRET_GROUND_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var DRAWING_MANAGER = (exports.DRAWING_MANAGER = - "__SECRET_DRAWING_MANAGER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var SEARCH_BOX = (exports.SEARCH_BOX = - "__SECRET_SEARCH_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var MARKER_CLUSTERER = (exports.MARKER_CLUSTERER = - "__SECRET_MARKER_CLUSTERER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var INFO_BOX = (exports.INFO_BOX = - "__SECRET_INFO_BOX_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var TRAFFIC_LAYER = (exports.TRAFFIC_LAYER = - "__SECRET_TRAFFIC_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var STREET_VIEW_PANORAMA = (exports.STREET_VIEW_PANORAMA = - "__SECRET_STREET_VIEW_PANORAMA_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - -var BICYCLING_LAYER = (exports.BICYCLING_LAYER = - "__SECRET_BICYCLING_LAYER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED") - - -/***/ }), -/* 11 */ -/***/ (function(module, exports) { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), -/* 12 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true, -}) - -var _bind2 = __webpack_require__(47) - -var _bind3 = _interopRequireDefault(_bind2) - -var _isFunction2 = __webpack_require__(48) - -var _isFunction3 = _interopRequireDefault(_isFunction2) - -var _reduce3 = __webpack_require__(317) - -var _reduce4 = _interopRequireDefault(_reduce3) - -var _forEach2 = __webpack_require__(393) - -var _forEach3 = _interopRequireDefault(_forEach2) - -var _lowerFirst2 = __webpack_require__(395) - -var _lowerFirst3 = _interopRequireDefault(_lowerFirst2) - -var _has2 = __webpack_require__(402) - -var _has3 = _interopRequireDefault(_has2) - -exports.construct = construct -exports.componentDidMount = componentDidMount -exports.componentDidUpdate = componentDidUpdate -exports.componentWillUnmount = componentWillUnmount - -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { default: obj } -} - -/* global google */ -/* eslint-disable no-param-reassign */ -function rdcUncontrolledAndControlledProps(acc, value, key) { - if ((0, _has3.default)(acc.prevProps, key)) { - var match = key.match(/^default(\S+)/) - if (match) { - var unprefixedKey = (0, _lowerFirst3.default)(match[1]) - if (!(0, _has3.default)(acc.nextProps, unprefixedKey)) { - acc.nextProps[unprefixedKey] = acc.prevProps[key] - } - } else { - acc.nextProps[key] = acc.prevProps[key] - } - } - return acc -} - -function applyUpdaterToNextProps(updaterMap, prevProps, nextProps, instance) { - ;(0, _forEach3.default)(updaterMap, function(fn, key) { - var nextValue = nextProps[key] - if (nextValue !== prevProps[key]) { - fn(instance, nextValue) - } - }) -} - -function construct(propTypes, updaterMap, prevProps, instance) { - var _reduce2 = (0, _reduce4.default)( - propTypes, - rdcUncontrolledAndControlledProps, - { - nextProps: {}, - prevProps: prevProps, - } - ), - nextProps = _reduce2.nextProps - - applyUpdaterToNextProps( - updaterMap, - { - /* empty prevProps for construct */ - }, - nextProps, - instance - ) -} - -function componentDidMount(component, instance, eventMap) { - registerEvents(component, instance, eventMap) -} - -function componentDidUpdate( - component, - instance, - eventMap, - updaterMap, - prevProps -) { - component.unregisterAllEvents() - applyUpdaterToNextProps(updaterMap, prevProps, component.props, instance) - registerEvents(component, instance, eventMap) -} - -function componentWillUnmount(component) { - component.unregisterAllEvents() -} - -function registerEvents(component, instance, eventMap) { - var registeredList = (0, _reduce4.default)( - eventMap, - function(acc, googleEventName, onEventName) { - if ((0, _isFunction3.default)(component.props[onEventName])) { - acc.push( - google.maps.event.addListener( - instance, - googleEventName, - component.props[onEventName] - ) - ) - } - return acc - }, - [] - ) - - component.unregisterAllEvents = (0, _bind3.default)( - _forEach3.default, - null, - registeredList, - unregisterEvent - ) -} - -function unregisterEvent(registered) { - google.maps.event.removeListener(registered) -} - - -/***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { - -var freeGlobal = __webpack_require__(142); - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -module.exports = root; - - -/***/ }), -/* 14 */ -/***/ (function(module, exports) { - -var core = module.exports = { version: '2.5.1' }; -if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - - -/***/ }), -/* 15 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -module.exports = isArray; - - -/***/ }), -/* 16 */ -/***/ (function(module, exports, __webpack_require__) { - -var store = __webpack_require__(80)('wks'); -var uid = __webpack_require__(44); -var Symbol = __webpack_require__(17).Symbol; -var USE_SYMBOL = typeof Symbol == 'function'; - -var $exports = module.exports = function (name) { - return store[name] || (store[name] = - USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); -}; - -$exports.store = store; - - -/***/ }), -/* 17 */ -/***/ (function(module, exports) { - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global = module.exports = typeof window != 'undefined' && window.Math == Math - ? window : typeof self != 'undefined' && self.Math == Math ? self - // eslint-disable-next-line no-new-func - : Function('return this')(); -if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef - - -/***/ }), -/* 18 */ -/***/ (function(module, exports, __webpack_require__) { - -var global = __webpack_require__(17); -var core = __webpack_require__(14); -var ctx = __webpack_require__(81); -var hide = __webpack_require__(24); -var PROTOTYPE = 'prototype'; - -var $export = function (type, name, source) { - var IS_FORCED = type & $export.F; - var IS_GLOBAL = type & $export.G; - var IS_STATIC = type & $export.S; - var IS_PROTO = type & $export.P; - var IS_BIND = type & $export.B; - var IS_WRAP = type & $export.W; - var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); - var expProto = exports[PROTOTYPE]; - var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; - var key, own, out; - if (IS_GLOBAL) source = name; - for (key in source) { - // contains in native - own = !IS_FORCED && target && target[key] !== undefined; - if (own && key in exports) continue; - // export native or passed - out = own ? target[key] : source[key]; - // prevent global pollution for namespaces - exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] - // bind timers to global for call from export context - : IS_BIND && own ? ctx(out, global) - // wrap global constructors for prevent change them in library - : IS_WRAP && target[key] == out ? (function (C) { - var F = function (a, b, c) { - if (this instanceof C) { - switch (arguments.length) { - case 0: return new C(); - case 1: return new C(a); - case 2: return new C(a, b); - } return new C(a, b, c); - } return C.apply(this, arguments); - }; - F[PROTOTYPE] = C[PROTOTYPE]; - return F; - // make static versions for prototype methods - })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; - // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% - if (IS_PROTO) { - (exports.virtual || (exports.virtual = {}))[key] = out; - // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% - if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); - } - } -}; -// type bitmap -$export.F = 1; // forced -$export.G = 2; // global -$export.S = 4; // static -$export.P = 8; // proto -$export.B = 16; // bind -$export.W = 32; // wrap -$export.U = 64; // safe -$export.R = 128; // real proto method for `library` -module.exports = $export; - - -/***/ }), -/* 19 */ -/***/ (function(module, exports, __webpack_require__) { - -var anObject = __webpack_require__(25); -var IE8_DOM_DEFINE = __webpack_require__(128); -var toPrimitive = __webpack_require__(82); -var dP = Object.defineProperty; - -exports.f = __webpack_require__(21) ? Object.defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return dP(O, P, Attributes); - } catch (e) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; - - -/***/ }), -/* 20 */ -/***/ (function(module, exports) { - -var hasOwnProperty = {}.hasOwnProperty; -module.exports = function (it, key) { - return hasOwnProperty.call(it, key); -}; - - -/***/ }), -/* 21 */ -/***/ (function(module, exports, __webpack_require__) { - -// Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(26)(function () { - return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; -}); - - -/***/ }), -/* 22 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseIsNative = __webpack_require__(272), - getValue = __webpack_require__(277); - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -module.exports = getNative; - - -/***/ }), -/* 23 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); -} - -module.exports = isObject; - - -/***/ }), -/* 24 */ -/***/ (function(module, exports, __webpack_require__) { - -var dP = __webpack_require__(19); -var createDesc = __webpack_require__(33); -module.exports = __webpack_require__(21) ? function (object, key, value) { - return dP.f(object, key, createDesc(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; -}; - - -/***/ }), -/* 25 */ -/***/ (function(module, exports, __webpack_require__) { - -var isObject = __webpack_require__(32); -module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; -}; - - -/***/ }), -/* 26 */ -/***/ (function(module, exports) { - -module.exports = function (exec) { - try { - return !!exec(); - } catch (e) { - return true; - } -}; - - -/***/ }), -/* 27 */ -/***/ (function(module, exports, __webpack_require__) { - -// to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(136); -var defined = __webpack_require__(78); -module.exports = function (it) { - return IObject(defined(it)); -}; - - -/***/ }), -/* 28 */ -/***/ (function(module, exports) { - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return value != null && typeof value == 'object'; -} - -module.exports = isObjectLike; - - -/***/ }), -/* 29 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -exports.__esModule = true; -var addLeadingSlash = exports.addLeadingSlash = function addLeadingSlash(path) { - return path.charAt(0) === '/' ? path : '/' + path; -}; - -var stripLeadingSlash = exports.stripLeadingSlash = function stripLeadingSlash(path) { - return path.charAt(0) === '/' ? path.substr(1) : path; -}; - -var hasBasename = exports.hasBasename = function hasBasename(path, prefix) { - return new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path); -}; - -var stripBasename = exports.stripBasename = function stripBasename(path, prefix) { - return hasBasename(path, prefix) ? path.substr(prefix.length) : path; -}; - -var stripTrailingSlash = exports.stripTrailingSlash = function stripTrailingSlash(path) { - return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path; -}; - -var parsePath = exports.parsePath = function parsePath(path) { - var pathname = path || '/'; - var search = ''; - var hash = ''; - - var hashIndex = pathname.indexOf('#'); - if (hashIndex !== -1) { - hash = pathname.substr(hashIndex); - pathname = pathname.substr(0, hashIndex); - } - - var searchIndex = pathname.indexOf('?'); - if (searchIndex !== -1) { - search = pathname.substr(searchIndex); - pathname = pathname.substr(0, searchIndex); - } - - return { - pathname: pathname, - search: search === '?' ? '' : search, - hash: hash === '#' ? '' : hash - }; -}; - -var createPath = exports.createPath = function createPath(location) { - var pathname = location.pathname, - search = location.search, - hash = location.hash; - - - var path = pathname || '/'; - - if (search && search !== '?') path += search.charAt(0) === '?' ? search : '?' + search; - - if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : '#' + hash; - - return path; -}; - -/***/ }), -/* 30 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addLeadingSlash; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return stripLeadingSlash; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return hasBasename; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return stripBasename; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return stripTrailingSlash; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return parsePath; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createPath; }); -var addLeadingSlash = function addLeadingSlash(path) { - return path.charAt(0) === '/' ? path : '/' + path; -}; - -var stripLeadingSlash = function stripLeadingSlash(path) { - return path.charAt(0) === '/' ? path.substr(1) : path; -}; - -var hasBasename = function hasBasename(path, prefix) { - return new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path); -}; - -var stripBasename = function stripBasename(path, prefix) { - return hasBasename(path, prefix) ? path.substr(prefix.length) : path; -}; - -var stripTrailingSlash = function stripTrailingSlash(path) { - return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path; -}; - -var parsePath = function parsePath(path) { - var pathname = path || '/'; - var search = ''; - var hash = ''; - - var hashIndex = pathname.indexOf('#'); - if (hashIndex !== -1) { - hash = pathname.substr(hashIndex); - pathname = pathname.substr(0, hashIndex); - } - - var searchIndex = pathname.indexOf('?'); - if (searchIndex !== -1) { - search = pathname.substr(searchIndex); - pathname = pathname.substr(0, searchIndex); - } - - return { - pathname: pathname, - search: search === '?' ? '' : search, - hash: hash === '#' ? '' : hash - }; -}; - -var createPath = function createPath(location) { - var pathname = location.pathname, - search = location.search, - hash = location.hash; - - - var path = pathname || '/'; - - if (search && search !== '?') path += search.charAt(0) === '?' ? search : '?' + search; - - if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : '#' + hash; - - return path; -}; - -/***/ }), -/* 31 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_Provider__ = __webpack_require__(203); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_connectAdvanced__ = __webpack_require__(117); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__connect_connect__ = __webpack_require__(205); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return __WEBPACK_IMPORTED_MODULE_0__components_Provider__["b"]; }); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createProvider", function() { return __WEBPACK_IMPORTED_MODULE_0__components_Provider__["a"]; }); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "connectAdvanced", function() { return __WEBPACK_IMPORTED_MODULE_1__components_connectAdvanced__["a"]; }); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return __WEBPACK_IMPORTED_MODULE_2__connect_connect__["a"]; }); - - - - - - -/***/ }), -/* 32 */ -/***/ (function(module, exports) { - -module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; - - -/***/ }), -/* 33 */ -/***/ (function(module, exports) { - -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - - -/***/ }), -/* 34 */ -/***/ (function(module, exports) { - -module.exports = {}; - - -/***/ }), -/* 35 */ -/***/ (function(module, exports) { - -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} - -module.exports = identity; - - -/***/ }), -/* 36 */ -/***/ (function(module, exports, __webpack_require__) { - -var Symbol = __webpack_require__(49), - getRawTag = __webpack_require__(273), - objectToString = __webpack_require__(274); - -/** `Object#toString` result references. */ -var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -/** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); -} - -module.exports = baseGetTag; - - -/***/ }), -/* 37 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__ = __webpack_require__(178); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HashRouter__ = __webpack_require__(184); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return __WEBPACK_IMPORTED_MODULE_1__HashRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link__ = __webpack_require__(106); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return __WEBPACK_IMPORTED_MODULE_2__Link__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__ = __webpack_require__(186); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NavLink__ = __webpack_require__(188); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return __WEBPACK_IMPORTED_MODULE_4__NavLink__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Prompt__ = __webpack_require__(191); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_5__Prompt__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Redirect__ = __webpack_require__(192); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_6__Redirect__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(108); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_7__Route__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Router__ = __webpack_require__(68); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_8__Router__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StaticRouter__ = __webpack_require__(197); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_9__StaticRouter__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Switch__ = __webpack_require__(198); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_10__Switch__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__matchPath__ = __webpack_require__(199); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_11__matchPath__["a"]; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withRouter__ = __webpack_require__(200); -/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_12__withRouter__["a"]; }); - - - - - - - - - - - - - - - - - - - - - - - - - - - -/***/ }), -/* 38 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(2); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(3); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__); -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; }; - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } - -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } - - - - - - -/** - * The public API for putting history on context. - */ - -var Router = function (_React$Component) { - _inherits(Router, _React$Component); - - function Router() { - var _temp, _this, _ret; - - _classCallCheck(this, Router); - - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = { - match: _this.computeMatch(_this.props.history.location.pathname) - }, _temp), _possibleConstructorReturn(_this, _ret); - } - - Router.prototype.getChildContext = function getChildContext() { - return { - router: _extends({}, this.context.router, { - history: this.props.history, - route: { - location: this.props.history.location, - match: this.state.match - } - }) - }; - }; - - Router.prototype.computeMatch = function computeMatch(pathname) { - return { - path: '/', - url: '/', - params: {}, - isExact: pathname === '/' - }; - }; - - Router.prototype.componentWillMount = function componentWillMount() { - var _this2 = this; - - var _props = this.props, - children = _props.children, - history = _props.history; - - - __WEBPACK_IMPORTED_MODULE_1_invariant___default()(children == null || __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 1, 'A <Router> may have only one child element'); - - // Do this here so we can setState when a <Redirect> changes the - // location in componentWillMount. This happens e.g. when doing - // server rendering using a <StaticRouter>. - this.unlisten = history.listen(function () { - _this2.setState({ - match: _this2.computeMatch(history.location.pathname) - }); - }); - }; - - Router.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) { - __WEBPACK_IMPORTED_MODULE_0_warning___default()(this.props.history === nextProps.history, 'You cannot change <Router history>'); - }; - - Router.prototype.componentWillUnmount = function componentWillUnmount() { - this.unlisten(); - }; - - Router.prototype.render = function render() { - var children = this.props.children; - - return children ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children) : null; - }; - - return Router; -}(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component); - -Router.propTypes = { - history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired, - children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node -}; -Router.contextTypes = { - router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object -}; -Router.childContextTypes = { - router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired -}; - - -/* harmony default export */ __webpack_exports__["a"] = (Router); - -/***/ }), -/* 39 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(189); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__); - - -var patternCache = {}; -var cacheLimit = 10000; -var cacheCount = 0; - -var compilePath = function compilePath(pattern, options) { - var cacheKey = '' + options.end + options.strict + options.sensitive; - var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {}); - - if (cache[pattern]) return cache[pattern]; - - var keys = []; - var re = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default()(pattern, keys, options); - var compiledPattern = { re: re, keys: keys }; - - if (cacheCount < cacheLimit) { - cache[pattern] = compiledPattern; - cacheCount++; - } - - return compiledPattern; -}; - -/** - * Public API for matching a URL pathname to a path pattern. - */ -var matchPath = function matchPath(pathname) { - var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - if (typeof options === 'string') options = { path: options }; - - var _options = options, - _options$path = _options.path, - path = _options$path === undefined ? '/' : _options$path, - _options$exact = _options.exact, - exact = _options$exact === undefined ? false : _options$exact, - _options$strict = _options.strict, - strict = _options$strict === undefined ? false : _options$strict, - _options$sensitive = _options.sensitive, - sensitive = _options$sensitive === undefined ? false : _options$sensitive; - - var _compilePath = compilePath(path, { end: exact, strict: strict, sensitive: sensitive }), - re = _compilePath.re, - keys = _compilePath.keys; - - var match = re.exec(pathname); - - if (!match) return null; - - var url = match[0], - values = match.slice(1); - - var isExact = pathname === url; - - if (exact && !isExact) return null; - - return { - path: path, // the path pattern used to match - url: path === '/' && url === '' ? '/' : url, // the matched portion of the URL - isExact: isExact, // whether or not we matched exactly - params: keys.reduce(function (memo, key, index) { - memo[key.name] = values[index]; - return memo; - }, {}) - }; -}; - -/* harmony default export */ __webpack_exports__["a"] = (matchPath); - -/***/ }), -/* 40 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createLocation; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return locationsAreEqual; }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_resolve_pathname__ = __webpack_require__(103); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_value_equal__ = __webpack_require__(104); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PathUtils__ = __webpack_require__(30); -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; }; - - - - - -var createLocation = function createLocation(path, state, key, currentLocation) { - var location = void 0; - if (typeof path === 'string') { - // Two-arg form: push(path, state) - location = Object(__WEBPACK_IMPORTED_MODULE_2__PathUtils__["d" /* parsePath */])(path); - location.state = state; - } else { - // One-arg form: push(location) - location = _extends({}, path); - - if (location.pathname === undefined) location.pathname = ''; - - if (location.search) { - if (location.search.charAt(0) !== '?') location.search = '?' + location.search; - } else { - location.search = ''; - } - - if (location.hash) { - if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash; - } else { - location.hash = ''; - } - - if (state !== undefined && location.state === undefined) location.state = state; - } - - try { - location.pathname = decodeURI(location.pathname); - } catch (e) { - if (e instanceof URIError) { - throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.'); - } else { - throw e; - } - } - - if (key) location.key = key; - - if (currentLocation) { - // Resolve incomplete/relative pathname relative to current location. - if (!location.pathname) { - location.pathname = currentLocation.pathname; - } else if (location.pathname.charAt(0) !== '/') { - location.pathname = Object(__WEBPACK_IMPORTED_MODULE_0_resolve_pathname__["default"])(location.pathname, currentLocation.pathname); - } - } else { - // When there is no prior location and pathname is empty, set it to / - if (!location.pathname) { - location.pathname = '/'; - } - } - - return location; -}; - -var locationsAreEqual = function locationsAreEqual(a, b) { - return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(__WEBPACK_IMPORTED_MODULE_1_value_equal__["default"])(a.state, b.state); -}; - -/***/ }), -/* 41 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const SET_LOGIN_SUCCESS = 'SET_LOGIN_SUCCESS'; -const SET_LOGOUT_SUCCESS = 'SET_LOGOUT_SUCCESS'; -function login(username) { - return (dispatch) => { - dispatch(setLoginSuccess(true)); - }; -} -exports.login = login; -; -function logout() { - return (dispatch) => { - dispatch(setLoginSuccess(false)); - }; -} -exports.logout = logout; -; -function setLoginSuccess(isLoginSuccess) { - return { - type: SET_LOGIN_SUCCESS, - isLoginSuccess - }; -} -function reducer(state = { isLoginSuccess: false }, action) { - switch (action.type) { - case SET_LOGIN_SUCCESS: - return Object.assign({}, state, { - isLoginSuccess: action.isLoginSuccess - }); - case SET_LOGOUT_SUCCESS: - return Object.assign({}, state, { - isLoginSuccess: action.isLoginSuccess - }); - default: return state; - } -} -exports.default = reducer; -; - - -/***/ }), -/* 42 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const BASEURL = 'http://localhost:5000'; -exports.BASEURL = BASEURL; - - -/***/ }), -/* 43 */ -/***/ (function(module, exports, __webpack_require__) { - -// 7.1.13 ToObject(argument) -var defined = __webpack_require__(78); -module.exports = function (it) { - return Object(defined(it)); -}; - - -/***/ }), -/* 44 */ -/***/ (function(module, exports) { - -var id = 0; -var px = Math.random(); -module.exports = function (key) { - return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); -}; - - -/***/ }), -/* 45 */ -/***/ (function(module, exports, __webpack_require__) { - -// 19.1.2.14 / 15.2.3.14 Object.keys(O) -var $keys = __webpack_require__(135); -var enumBugKeys = __webpack_require__(87); - -module.exports = Object.keys || function keys(O) { - return $keys(O, enumBugKeys); -}; - - -/***/ }), -/* 46 */ -/***/ (function(module, exports) { - -exports.f = {}.propertyIsEnumerable; - - -/***/ }), -/* 47 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseRest = __webpack_require__(92), - createWrap = __webpack_require__(278), - getHolder = __webpack_require__(97), - replaceHolders = __webpack_require__(52); - -/** Used to compose bitmasks for function metadata. */ -var WRAP_BIND_FLAG = 1, - WRAP_PARTIAL_FLAG = 32; - -/** - * Creates a function that invokes `func` with the `this` binding of `thisArg` - * and `partials` prepended to the arguments it receives. - * - * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds, - * may be used as a placeholder for partially applied arguments. - * - * **Note:** Unlike native `Function#bind`, this method doesn't set the "length" - * property of bound functions. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to bind. - * @param {*} thisArg The `this` binding of `func`. - * @param {...*} [partials] The arguments to be partially applied. - * @returns {Function} Returns the new bound function. - * @example - * - * function greet(greeting, punctuation) { - * return greeting + ' ' + this.user + punctuation; - * } - * - * var object = { 'user': 'fred' }; - * - * var bound = _.bind(greet, object, 'hi'); - * bound('!'); - * // => 'hi fred!' - * - * // Bound with placeholders. - * var bound = _.bind(greet, object, _, '!'); - * bound('hi'); - * // => 'hi fred!' - */ -var bind = baseRest(function(func, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); -}); - -// Assign default placeholders. -bind.placeholder = {}; - -module.exports = bind; - - -/***/ }), -/* 48 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseGetTag = __webpack_require__(36), - isObject = __webpack_require__(23); - -/** `Object#toString` result references. */ -var asyncTag = '[object AsyncFunction]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - proxyTag = '[object Proxy]'; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - if (!isObject(value)) { - return false; - } - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed arrays and other constructors. - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} - -module.exports = isFunction; - - -/***/ }), -/* 49 */ -/***/ (function(module, exports, __webpack_require__) { - -var root = __webpack_require__(13); - -/** Built-in value references. */ -var Symbol = root.Symbol; - -module.exports = Symbol; - - -/***/ }), -/* 50 */ -/***/ (function(module, exports, __webpack_require__) { - -var baseCreate = __webpack_require__(94), - isObject = __webpack_require__(23); - -/** - * Creates a function that produces an instance of `Ctor` regardless of - * whether it was invoked as part of a `new` expression or by `call` or `apply`. - * - * @private - * @param {Function} Ctor The constructor to wrap. - * @returns {Function} Returns the new wrapped function. - */ -function createCtor(Ctor) { - return function() { - // Use a `switch` statement to work with class constructors. See - // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist - // for more details. - var args = arguments; - switch (args.length) { - case 0: return new Ctor; - case 1: return new Ctor(args[0]); - case 2: return new Ctor(args[0], args[1]); - case 3: return new Ctor(args[0], args[1], args[2]); - case 4: return new Ctor(args[0], args[1], args[2], args[3]); - case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), - result = Ctor.apply(thisBinding, args); - - // Mimic the constructor's `return` behavior. - // See https://es5.github.io/#x13.2.2 for more details. - return isObject(result) ? result : thisBinding; - }; -} - -module.exports = createCtor; - - -/***/ }), -/* 51 */ -/***/ (function(module, exports) { - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && - (typeof value == 'number' || reIsUint.test(value)) && - (value > -1 && value % 1 == 0 && value < length); -} - -module.exports = isIndex; - - -/***/ }), -/* 52 */ -/***/ (function(module, exports) { - -/** Used as the internal argument placeholder. */ -var PLACEHOLDER = '__lodash_placeholder__'; - -/** - * Replaces all `placeholder` elements in `array` with an internal placeholder - * and returns an array of their indexes. - * - * @private - * @param {Array} array The array to modify. - * @param {*} placeholder The placeholder to replace. - * @returns {Array} Returns the new array of placeholder indexes. - */ -function replaceHolders(array, placeholder) { - var index = -1, - length = array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (value === placeholder || value === PLACEHOLDER) { - array[index] = PLACEHOLDER; - result[resIndex++] = index; - } - } - return result; -} - -module.exports = replaceHolders; - - -/***/ }), -/* 53 */ -/***/…
Would you be open to changing the module.exports = (function() {
if (typeof globalThis === "object") return globalThis;
try {
Object.defineProperty(Object.prototype, "__magic__", {
get: function() {
return this;
},
configurable: true
});
var result = __magic__;
delete Object.prototype.__magic__;
return result;
} catch (error) {
// In IE8, Object.defineProperty only works on DOM objects.
// If we hit this code path, assume `window` exists.
return window;
}
})(); |
@EmilTholin the actual implementation works in all known environments without any problems. I hope that the example from this blog post will be used just as an example - modification of |
Thank you for your quick reply and insight. I see, that's great. I just got a reply on an issue in the |
I have already commented on this issue. |
Just stumbled across the latest iteration of this code in a project that uses Babel, Webpack, etc. Consider that - this - referenced in the global context is always the global object. It doesn't matter what environment. As Node is modular, it provides a - global - reference. Should have been end of story about a decade ago. The reason that this issue has been tossed around for a dozen years is an irrational reliance on host objects to detect the global object (e.g. window, self, etc.) There's clearly no end to that road. So pass - this - to your module from the global context. Or, as mentioned and inexplicably discarded above, use something like this: (function() { return this; })() ...which will also work every time, as long as you don't nest it inside a strict mode function. If a design requires doing that, then the design should be adjusted to avoid painting us into a corner. Introducing Math and legacy IE sniffing "magic" to the equation is not the answer. Another thing to consider here is that one-size-fits-all scripting solutions usually turn out poorly, typically requiring endless maintenance. No amount of documenting aberrations and busted assumptions will ever solve this particular problem once and for all. Thankfully, it never needed solving. :) |
JavaScript is much more complicated and confusing than you think. Mentioned by you tools like Babel or Webpack too often add strict mode by default, don't forget about native modules context in browsers or Node where this mode enabled by default too - but |
My team and I are using core-js via the babel/polyfill to develop a (cross) brower extension.
During today's debugging session I found out that importing/requireing the polyfill or core-js causes SEGFAULTs in Firefox. Don't get me wrong I'm not gonna blame corejs for segfaults in FF ❤️
So I went all the way down to the
modules/$.js
to find out that corejs references theself
variable.https://github.com/zloirock/core-js/blob/master/modules/%24.js#L2
Obviously that's not a problem in most cases but for some reason the FF team thought it would be a great idea to use
self
as a namespace within an extensions content_script environment.https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts#Accessing_port_in_the_content_script
Honestly I didn't read your entire code base to find out why you're checking for
self
. With this issue I just want to rise a discussion if we somehow can fix this problem.Apart form this: Thanks for this great project 👍
The text was updated successfully, but these errors were encountered: