StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3190 lines
83 KiB
3190 lines
83 KiB
4 years ago
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||
|
module.exports = factory(require("plotly.js"));
|
||
|
else if(typeof define === 'function' && define.amd)
|
||
|
define("vue-plotly", ["plotly.js"], factory);
|
||
|
else if(typeof exports === 'object')
|
||
|
exports["vue-plotly"] = factory(require("plotly.js"));
|
||
|
else
|
||
|
root["vue-plotly"] = factory(root["plotly.js"]);
|
||
|
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_60__) {
|
||
|
return /******/ (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 = 23);
|
||
|
/******/ })
|
||
|
/************************************************************************/
|
||
|
/******/ ([
|
||
|
/* 0 */
|
||
|
/***/ (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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 1 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var freeGlobal = __webpack_require__(14);
|
||
|
|
||
|
/** 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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 2 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Symbol = __webpack_require__(15),
|
||
|
getRawTag = __webpack_require__(66),
|
||
|
objectToString = __webpack_require__(67);
|
||
|
|
||
|
/** `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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 3 */
|
||
|
/***/ (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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 4 */
|
||
|
/***/ (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
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 5 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
var core = module.exports = { version: '2.5.7' };
|
||
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 6 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
module.exports = function (it) {
|
||
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 7 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// Thank's IE8 for his funny defineProperty
|
||
|
module.exports = !__webpack_require__(8)(function () {
|
||
|
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
||
|
});
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 8 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
module.exports = function (exec) {
|
||
|
try {
|
||
|
return !!exec();
|
||
|
} catch (e) {
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 9 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
var hasOwnProperty = {}.hasOwnProperty;
|
||
|
module.exports = function (it, key) {
|
||
|
return hasOwnProperty.call(it, key);
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 10 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
||
|
var IObject = __webpack_require__(11);
|
||
|
var defined = __webpack_require__(12);
|
||
|
module.exports = function (it) {
|
||
|
return IObject(defined(it));
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 11 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
||
|
var cof = __webpack_require__(48);
|
||
|
// eslint-disable-next-line no-prototype-builtins
|
||
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
||
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 12 */
|
||
|
/***/ (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;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 13 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
// 7.1.4 ToInteger
|
||
|
var ceil = Math.ceil;
|
||
|
var floor = Math.floor;
|
||
|
module.exports = function (it) {
|
||
|
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 14 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
|
||
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
||
|
|
||
|
module.exports = freeGlobal;
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(63)))
|
||
|
|
||
|
/***/ }),
|
||
|
/* 15 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var root = __webpack_require__(1);
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var Symbol = root.Symbol;
|
||
|
|
||
|
module.exports = Symbol;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 16 */
|
||
|
/***/ (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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 17 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(2),
|
||
|
isObject = __webpack_require__(0);
|
||
|
|
||
|
/** `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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 18 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Performs a
|
||
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
||
|
* comparison between two values to determine if they are equivalent.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to compare.
|
||
|
* @param {*} other The other value to compare.
|
||
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* var object = { 'a': 1 };
|
||
|
* var other = { 'a': 1 };
|
||
|
*
|
||
|
* _.eq(object, object);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.eq(object, other);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.eq('a', 'a');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.eq('a', Object('a'));
|
||
|
* // => false
|
||
|
*
|
||
|
* _.eq(NaN, NaN);
|
||
|
* // => true
|
||
|
*/
|
||
|
function eq(value, other) {
|
||
|
return value === other || (value !== value && other !== other);
|
||
|
}
|
||
|
|
||
|
module.exports = eq;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 19 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isFunction = __webpack_require__(17),
|
||
|
isLength = __webpack_require__(20);
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
||
|
* not a function and has a `value.length` that's an integer greater than or
|
||
|
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isArrayLike([1, 2, 3]);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArrayLike(document.body.children);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArrayLike('abc');
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArrayLike(_.noop);
|
||
|
* // => false
|
||
|
*/
|
||
|
function isArrayLike(value) {
|
||
|
return value != null && isLength(value.length) && !isFunction(value);
|
||
|
}
|
||
|
|
||
|
module.exports = isArrayLike;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 20 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used as references for various `Number` constants. */
|
||
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a valid array-like length.
|
||
|
*
|
||
|
* **Note:** This method is loosely based on
|
||
|
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isLength(3);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isLength(Number.MIN_VALUE);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isLength(Infinity);
|
||
|
* // => false
|
||
|
*
|
||
|
* _.isLength('3');
|
||
|
* // => false
|
||
|
*/
|
||
|
function isLength(value) {
|
||
|
return typeof value == 'number' &&
|
||
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
||
|
}
|
||
|
|
||
|
module.exports = isLength;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 21 */
|
||
|
/***/ (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) {
|
||
|
var type = typeof value;
|
||
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||
|
|
||
|
return !!length &&
|
||
|
(type == 'number' ||
|
||
|
(type != 'symbol' && reIsUint.test(value))) &&
|
||
|
(value > -1 && value % 1 == 0 && value < length);
|
||
|
}
|
||
|
|
||
|
module.exports = isIndex;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 22 */
|
||
|
/***/ (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;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 23 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
|
||
|
/* styles */
|
||
|
__webpack_require__(24)
|
||
|
|
||
|
var Component = __webpack_require__(29)(
|
||
|
/* script */
|
||
|
__webpack_require__(30),
|
||
|
/* template */
|
||
|
__webpack_require__(99),
|
||
|
/* scopeId */
|
||
|
null,
|
||
|
/* cssModules */
|
||
|
null
|
||
|
)
|
||
|
Component.options.__file = "C:\\Users\\martinha\\vue-plotly\\src\\Plotly.vue"
|
||
|
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
|
||
|
if (Component.options.functional) {console.error("[vue-loader] Plotly.vue: functional components are not supported with templates, they should use render functions.")}
|
||
|
|
||
|
/* hot reload */
|
||
|
if (false) {(function () {
|
||
|
var hotAPI = require("vue-hot-reload-api")
|
||
|
hotAPI.install(require("vue"), false)
|
||
|
if (!hotAPI.compatible) return
|
||
|
module.hot.accept()
|
||
|
if (!module.hot.data) {
|
||
|
hotAPI.createRecord("data-v-cca72e96", Component.options)
|
||
|
} else {
|
||
|
hotAPI.reload("data-v-cca72e96", Component.options)
|
||
|
}
|
||
|
})()}
|
||
|
|
||
|
module.exports = Component.exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 24 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(25);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(27)("712e37f0", content, false);
|
||
|
// Hot Module Replacement
|
||
|
if(false) {
|
||
|
// When the styles change, update the <style> tags
|
||
|
if(!content.locals) {
|
||
|
module.hot.accept("!!../node_modules/css-loader/index.js!../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-cca72e96\",\"scoped\":false,\"hasInlineConfig\":false}!../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Plotly.vue", function() {
|
||
|
var newContent = require("!!../node_modules/css-loader/index.js!../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-cca72e96\",\"scoped\":false,\"hasInlineConfig\":false}!../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Plotly.vue");
|
||
|
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
|
||
|
update(newContent);
|
||
|
});
|
||
|
}
|
||
|
// When the module is disposed, remove the <style> tags
|
||
|
module.hot.dispose(function() { update(); });
|
||
|
}
|
||
|
|
||
|
/***/ }),
|
||
|
/* 25 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(26)(false);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", ""]);
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 26 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/*
|
||
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
||
|
Author Tobias Koppers @sokra
|
||
|
*/
|
||
|
// css base code, injected by the css-loader
|
||
|
module.exports = function(useSourceMap) {
|
||
|
var list = [];
|
||
|
|
||
|
// return the list of modules as css string
|
||
|
list.toString = function toString() {
|
||
|
return this.map(function (item) {
|
||
|
var content = cssWithMappingToString(item, useSourceMap);
|
||
|
if(item[2]) {
|
||
|
return "@media " + item[2] + "{" + content + "}";
|
||
|
} else {
|
||
|
return content;
|
||
|
}
|
||
|
}).join("");
|
||
|
};
|
||
|
|
||
|
// import a list of modules into the list
|
||
|
list.i = function(modules, mediaQuery) {
|
||
|
if(typeof modules === "string")
|
||
|
modules = [[null, modules, ""]];
|
||
|
var alreadyImportedModules = {};
|
||
|
for(var i = 0; i < this.length; i++) {
|
||
|
var id = this[i][0];
|
||
|
if(typeof id === "number")
|
||
|
alreadyImportedModules[id] = true;
|
||
|
}
|
||
|
for(i = 0; i < modules.length; i++) {
|
||
|
var item = modules[i];
|
||
|
// skip already imported module
|
||
|
// this implementation is not 100% perfect for weird media query combinations
|
||
|
// when a module is imported multiple times with different media queries.
|
||
|
// I hope this will never occur (Hey this way we have smaller bundles)
|
||
|
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
|
||
|
if(mediaQuery && !item[2]) {
|
||
|
item[2] = mediaQuery;
|
||
|
} else if(mediaQuery) {
|
||
|
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
|
||
|
}
|
||
|
list.push(item);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
return list;
|
||
|
};
|
||
|
|
||
|
function cssWithMappingToString(item, useSourceMap) {
|
||
|
var content = item[1] || '';
|
||
|
var cssMapping = item[3];
|
||
|
if (!cssMapping) {
|
||
|
return content;
|
||
|
}
|
||
|
|
||
|
if (useSourceMap && typeof btoa === 'function') {
|
||
|
var sourceMapping = toComment(cssMapping);
|
||
|
var sourceURLs = cssMapping.sources.map(function (source) {
|
||
|
return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
|
||
|
});
|
||
|
|
||
|
return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
|
||
|
}
|
||
|
|
||
|
return [content].join('\n');
|
||
|
}
|
||
|
|
||
|
// Adapted from convert-source-map (MIT)
|
||
|
function toComment(sourceMap) {
|
||
|
// eslint-disable-next-line no-undef
|
||
|
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
|
||
|
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
|
||
|
|
||
|
return '/*# ' + data + ' */';
|
||
|
}
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 27 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/*
|
||
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
||
|
Author Tobias Koppers @sokra
|
||
|
Modified by Evan You @yyx990803
|
||
|
*/
|
||
|
|
||
|
var hasDocument = typeof document !== 'undefined'
|
||
|
|
||
|
if (typeof DEBUG !== 'undefined' && DEBUG) {
|
||
|
if (!hasDocument) {
|
||
|
throw new Error(
|
||
|
'vue-style-loader cannot be used in a non-browser environment. ' +
|
||
|
"Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
|
||
|
) }
|
||
|
}
|
||
|
|
||
|
var listToStyles = __webpack_require__(28)
|
||
|
|
||
|
/*
|
||
|
type StyleObject = {
|
||
|
id: number;
|
||
|
parts: Array<StyleObjectPart>
|
||
|
}
|
||
|
|
||
|
type StyleObjectPart = {
|
||
|
css: string;
|
||
|
media: string;
|
||
|
sourceMap: ?string
|
||
|
}
|
||
|
*/
|
||
|
|
||
|
var stylesInDom = {/*
|
||
|
[id: number]: {
|
||
|
id: number,
|
||
|
refs: number,
|
||
|
parts: Array<(obj?: StyleObjectPart) => void>
|
||
|
}
|
||
|
*/}
|
||
|
|
||
|
var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
|
||
|
var singletonElement = null
|
||
|
var singletonCounter = 0
|
||
|
var isProduction = false
|
||
|
var noop = function () {}
|
||
|
|
||
|
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
||
|
// tags it will allow on a page
|
||
|
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
|
||
|
|
||
|
module.exports = function (parentId, list, _isProduction) {
|
||
|
isProduction = _isProduction
|
||
|
|
||
|
var styles = listToStyles(parentId, list)
|
||
|
addStylesToDom(styles)
|
||
|
|
||
|
return function update (newList) {
|
||
|
var mayRemove = []
|
||
|
for (var i = 0; i < styles.length; i++) {
|
||
|
var item = styles[i]
|
||
|
var domStyle = stylesInDom[item.id]
|
||
|
domStyle.refs--
|
||
|
mayRemove.push(domStyle)
|
||
|
}
|
||
|
if (newList) {
|
||
|
styles = listToStyles(parentId, newList)
|
||
|
addStylesToDom(styles)
|
||
|
} else {
|
||
|
styles = []
|
||
|
}
|
||
|
for (var i = 0; i < mayRemove.length; i++) {
|
||
|
var domStyle = mayRemove[i]
|
||
|
if (domStyle.refs === 0) {
|
||
|
for (var j = 0; j < domStyle.parts.length; j++) {
|
||
|
domStyle.parts[j]()
|
||
|
}
|
||
|
delete stylesInDom[domStyle.id]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function addStylesToDom (styles /* Array<StyleObject> */) {
|
||
|
for (var i = 0; i < styles.length; i++) {
|
||
|
var item = styles[i]
|
||
|
var domStyle = stylesInDom[item.id]
|
||
|
if (domStyle) {
|
||
|
domStyle.refs++
|
||
|
for (var j = 0; j < domStyle.parts.length; j++) {
|
||
|
domStyle.parts[j](item.parts[j])
|
||
|
}
|
||
|
for (; j < item.parts.length; j++) {
|
||
|
domStyle.parts.push(addStyle(item.parts[j]))
|
||
|
}
|
||
|
if (domStyle.parts.length > item.parts.length) {
|
||
|
domStyle.parts.length = item.parts.length
|
||
|
}
|
||
|
} else {
|
||
|
var parts = []
|
||
|
for (var j = 0; j < item.parts.length; j++) {
|
||
|
parts.push(addStyle(item.parts[j]))
|
||
|
}
|
||
|
stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function createStyleElement () {
|
||
|
var styleElement = document.createElement('style')
|
||
|
styleElement.type = 'text/css'
|
||
|
head.appendChild(styleElement)
|
||
|
return styleElement
|
||
|
}
|
||
|
|
||
|
function addStyle (obj /* StyleObjectPart */) {
|
||
|
var update, remove
|
||
|
var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
|
||
|
|
||
|
if (styleElement) {
|
||
|
if (isProduction) {
|
||
|
// has SSR styles and in production mode.
|
||
|
// simply do nothing.
|
||
|
return noop
|
||
|
} else {
|
||
|
// has SSR styles but in dev mode.
|
||
|
// for some reason Chrome can't handle source map in server-rendered
|
||
|
// style tags - source maps in <style> only works if the style tag is
|
||
|
// created and inserted dynamically. So we remove the server rendered
|
||
|
// styles and inject new ones.
|
||
|
styleElement.parentNode.removeChild(styleElement)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (isOldIE) {
|
||
|
// use singleton mode for IE9.
|
||
|
var styleIndex = singletonCounter++
|
||
|
styleElement = singletonElement || (singletonElement = createStyleElement())
|
||
|
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
|
||
|
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
|
||
|
} else {
|
||
|
// use multi-style-tag mode in all other cases
|
||
|
styleElement = createStyleElement()
|
||
|
update = applyToTag.bind(null, styleElement)
|
||
|
remove = function () {
|
||
|
styleElement.parentNode.removeChild(styleElement)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
update(obj)
|
||
|
|
||
|
return function updateStyle (newObj /* StyleObjectPart */) {
|
||
|
if (newObj) {
|
||
|
if (newObj.css === obj.css &&
|
||
|
newObj.media === obj.media &&
|
||
|
newObj.sourceMap === obj.sourceMap) {
|
||
|
return
|
||
|
}
|
||
|
update(obj = newObj)
|
||
|
} else {
|
||
|
remove()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var replaceText = (function () {
|
||
|
var textStore = []
|
||
|
|
||
|
return function (index, replacement) {
|
||
|
textStore[index] = replacement
|
||
|
return textStore.filter(Boolean).join('\n')
|
||
|
}
|
||
|
})()
|
||
|
|
||
|
function applyToSingletonTag (styleElement, index, remove, obj) {
|
||
|
var css = remove ? '' : obj.css
|
||
|
|
||
|
if (styleElement.styleSheet) {
|
||
|
styleElement.styleSheet.cssText = replaceText(index, css)
|
||
|
} else {
|
||
|
var cssNode = document.createTextNode(css)
|
||
|
var childNodes = styleElement.childNodes
|
||
|
if (childNodes[index]) styleElement.removeChild(childNodes[index])
|
||
|
if (childNodes.length) {
|
||
|
styleElement.insertBefore(cssNode, childNodes[index])
|
||
|
} else {
|
||
|
styleElement.appendChild(cssNode)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function applyToTag (styleElement, obj) {
|
||
|
var css = obj.css
|
||
|
var media = obj.media
|
||
|
var sourceMap = obj.sourceMap
|
||
|
|
||
|
if (media) {
|
||
|
styleElement.setAttribute('media', media)
|
||
|
}
|
||
|
|
||
|
if (sourceMap) {
|
||
|
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
||
|
// this makes source maps inside style tags work properly in Chrome
|
||
|
css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
|
||
|
// http://stackoverflow.com/a/26603875
|
||
|
css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
|
||
|
}
|
||
|
|
||
|
if (styleElement.styleSheet) {
|
||
|
styleElement.styleSheet.cssText = css
|
||
|
} else {
|
||
|
while (styleElement.firstChild) {
|
||
|
styleElement.removeChild(styleElement.firstChild)
|
||
|
}
|
||
|
styleElement.appendChild(document.createTextNode(css))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 28 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Translates the list format produced by css-loader into something
|
||
|
* easier to manipulate.
|
||
|
*/
|
||
|
module.exports = function listToStyles (parentId, list) {
|
||
|
var styles = []
|
||
|
var newStyles = {}
|
||
|
for (var i = 0; i < list.length; i++) {
|
||
|
var item = list[i]
|
||
|
var id = item[0]
|
||
|
var css = item[1]
|
||
|
var media = item[2]
|
||
|
var sourceMap = item[3]
|
||
|
var part = {
|
||
|
id: parentId + ':' + i,
|
||
|
css: css,
|
||
|
media: media,
|
||
|
sourceMap: sourceMap
|
||
|
}
|
||
|
if (!newStyles[id]) {
|
||
|
styles.push(newStyles[id] = { id: id, parts: [part] })
|
||
|
} else {
|
||
|
newStyles[id].parts.push(part)
|
||
|
}
|
||
|
}
|
||
|
return styles
|
||
|
}
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 29 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
// this module is a runtime utility for cleaner component module output and will
|
||
|
// be included in the final webpack user bundle
|
||
|
|
||
|
module.exports = function normalizeComponent (
|
||
|
rawScriptExports,
|
||
|
compiledTemplate,
|
||
|
scopeId,
|
||
|
cssModules
|
||
|
) {
|
||
|
var esModule
|
||
|
var scriptExports = rawScriptExports = rawScriptExports || {}
|
||
|
|
||
|
// ES6 modules interop
|
||
|
var type = typeof rawScriptExports.default
|
||
|
if (type === 'object' || type === 'function') {
|
||
|
esModule = rawScriptExports
|
||
|
scriptExports = rawScriptExports.default
|
||
|
}
|
||
|
|
||
|
// Vue.extend constructor export interop
|
||
|
var options = typeof scriptExports === 'function'
|
||
|
? scriptExports.options
|
||
|
: scriptExports
|
||
|
|
||
|
// render functions
|
||
|
if (compiledTemplate) {
|
||
|
options.render = compiledTemplate.render
|
||
|
options.staticRenderFns = compiledTemplate.staticRenderFns
|
||
|
}
|
||
|
|
||
|
// scopedId
|
||
|
if (scopeId) {
|
||
|
options._scopeId = scopeId
|
||
|
}
|
||
|
|
||
|
// inject cssModules
|
||
|
if (cssModules) {
|
||
|
var computed = Object.create(options.computed || null)
|
||
|
Object.keys(cssModules).forEach(function (key) {
|
||
|
var module = cssModules[key]
|
||
|
computed[key] = function () { return module }
|
||
|
})
|
||
|
options.computed = computed
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
esModule: esModule,
|
||
|
exports: scriptExports,
|
||
|
options: options
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 30 */
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(31);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_plotly_js__ = __webpack_require__(60);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_plotly_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_plotly_js__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_debounce__ = __webpack_require__(61);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_debounce___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_debounce__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_defaults__ = __webpack_require__(68);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_defaults___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_lodash_defaults__);
|
||
|
|
||
|
//
|
||
|
//
|
||
|
//
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
var events = ['click', 'hover', 'unhover', 'selecting', 'selected', 'restyle', 'relayout', 'autosize', 'deselect', 'doubleclick', 'redraw', 'animated', 'afterplot'];
|
||
|
|
||
|
var functions = ['restyle', 'relayout', 'update', 'addTraces', 'deleteTraces', 'moveTraces', 'extendTraces', 'prependTraces', 'purge'];
|
||
|
|
||
|
var methods = functions.reduce(function (all, funcName) {
|
||
|
all[funcName] = function () {
|
||
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||
|
args[_key] = arguments[_key];
|
||
|
}
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a[funcName].apply(__WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a, [this.$refs.container].concat(args));
|
||
|
};
|
||
|
return all;
|
||
|
}, {});
|
||
|
|
||
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
||
|
props: {
|
||
|
autoResize: Boolean,
|
||
|
watchShallow: false,
|
||
|
options: {
|
||
|
type: Object
|
||
|
},
|
||
|
data: {
|
||
|
type: Array
|
||
|
},
|
||
|
layout: {
|
||
|
type: Object
|
||
|
}
|
||
|
},
|
||
|
data: function data() {
|
||
|
return {
|
||
|
internalLayout: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, this.layout, {
|
||
|
datarevision: 1
|
||
|
})
|
||
|
};
|
||
|
},
|
||
|
mounted: function mounted() {
|
||
|
var _this = this;
|
||
|
|
||
|
this.react();
|
||
|
this.initEvents();
|
||
|
|
||
|
this.$watch('data', function () {
|
||
|
_this.internalLayout.datarevision++;
|
||
|
_this.react();
|
||
|
}, { deep: !this.watchShallow });
|
||
|
|
||
|
this.$watch('options', this.react, { deep: !this.watchShallow });
|
||
|
this.$watch('layout', this.relayout, { deep: !this.watchShallow });
|
||
|
},
|
||
|
beforeDestroy: function beforeDestroy() {
|
||
|
var _this2 = this;
|
||
|
|
||
|
window.removeEventListener('resize', this.__resizeListener);
|
||
|
this.__generalListeners.forEach(function (obj) {
|
||
|
return _this2.$refs.container.removeAllListeners(obj.fullName);
|
||
|
});
|
||
|
__WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a.purge(this.$refs.container);
|
||
|
},
|
||
|
|
||
|
methods: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({
|
||
|
initEvents: function initEvents() {
|
||
|
var _this3 = this;
|
||
|
|
||
|
if (this.autoResize) {
|
||
|
this.__resizeListener = function () {
|
||
|
_this3.internalLayout.datarevision++;
|
||
|
__WEBPACK_IMPORTED_MODULE_2_lodash_debounce___default()(_this3.react, 200);
|
||
|
};
|
||
|
window.addEventListener('resize', this.__resizeListener);
|
||
|
}
|
||
|
|
||
|
this.__generalListeners = events.map(function (eventName) {
|
||
|
return {
|
||
|
fullName: 'plotly_' + eventName,
|
||
|
handler: function handler() {
|
||
|
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||
|
args[_key2] = arguments[_key2];
|
||
|
}
|
||
|
|
||
|
_this3.$emit.apply(_this3, [eventName].concat(args));
|
||
|
}
|
||
|
};
|
||
|
});
|
||
|
|
||
|
this.__generalListeners.forEach(function (obj) {
|
||
|
_this3.$refs.container.on(obj.fullName, obj.handler);
|
||
|
});
|
||
|
}
|
||
|
}, methods, {
|
||
|
toImage: function toImage(options) {
|
||
|
var el = this.$refs.container;
|
||
|
var opts = __WEBPACK_IMPORTED_MODULE_3_lodash_defaults___default()(options, {
|
||
|
format: 'png',
|
||
|
width: el.clientWidth,
|
||
|
height: el.clientHeight
|
||
|
});
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a.toImage(this.$refs.container, opts);
|
||
|
},
|
||
|
downloadImage: function downloadImage(options) {
|
||
|
var el = this.$refs.container;
|
||
|
var opts = __WEBPACK_IMPORTED_MODULE_3_lodash_defaults___default()(options, {
|
||
|
format: 'png',
|
||
|
width: el.clientWidth,
|
||
|
height: el.clientHeight,
|
||
|
filename: (el.layout.title || 'plot') + ' - ' + new Date().toISOString()
|
||
|
});
|
||
|
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a.downloadImage(this.$refs.container, opts);
|
||
|
},
|
||
|
plot: function plot() {
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a.plot(this.$refs.container, this.data, this.internalLayout, this.getOptions());
|
||
|
},
|
||
|
getOptions: function getOptions() {
|
||
|
var el = this.$refs.container;
|
||
|
var opts = this.options;
|
||
|
|
||
|
// if width/height is not specified for toImageButton, default to el.clientWidth/clientHeight
|
||
|
if (!opts) opts = {};
|
||
|
if (!opts.toImageButtonOptions) opts.toImageButtonOptions = {};
|
||
|
if (!opts.toImageButtonOptions.width) opts.toImageButtonOptions.width = el.clientWidth;
|
||
|
if (!opts.toImageButtonOptions.height) opts.toImageButtonOptions.height = el.clientHeight;
|
||
|
return opts;
|
||
|
},
|
||
|
newPlot: function newPlot() {
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a.newPlot(this.$refs.container, this.data, this.internalLayout, this.getOptions());
|
||
|
},
|
||
|
react: function react() {
|
||
|
return __WEBPACK_IMPORTED_MODULE_1_plotly_js___default.a.react(this.$refs.container, this.data, this.internalLayout, this.getOptions());
|
||
|
}
|
||
|
})
|
||
|
});
|
||
|
|
||
|
/***/ }),
|
||
|
/* 31 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
|
||
|
exports.__esModule = true;
|
||
|
|
||
|
var _assign = __webpack_require__(32);
|
||
|
|
||
|
var _assign2 = _interopRequireDefault(_assign);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
exports.default = _assign2.default || 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;
|
||
|
};
|
||
|
|
||
|
/***/ }),
|
||
|
/* 32 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
module.exports = { "default": __webpack_require__(33), __esModule: true };
|
||
|
|
||
|
/***/ }),
|
||
|
/* 33 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
__webpack_require__(34);
|
||
|
module.exports = __webpack_require__(5).Object.assign;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 34 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// 19.1.3.1 Object.assign(target, source)
|
||
|
var $export = __webpack_require__(35);
|
||
|
|
||
|
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(45) });
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 35 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var global = __webpack_require__(4);
|
||
|
var core = __webpack_require__(5);
|
||
|
var ctx = __webpack_require__(36);
|
||
|
var hide = __webpack_require__(38);
|
||
|
var has = __webpack_require__(9);
|
||
|
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 && has(exports, key)) 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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 36 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// optional / simple context binding
|
||
|
var aFunction = __webpack_require__(37);
|
||
|
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);
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 37 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
module.exports = function (it) {
|
||
|
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
||
|
return it;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 38 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var dP = __webpack_require__(39);
|
||
|
var createDesc = __webpack_require__(44);
|
||
|
module.exports = __webpack_require__(7) ? function (object, key, value) {
|
||
|
return dP.f(object, key, createDesc(1, value));
|
||
|
} : function (object, key, value) {
|
||
|
object[key] = value;
|
||
|
return object;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 39 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var anObject = __webpack_require__(40);
|
||
|
var IE8_DOM_DEFINE = __webpack_require__(41);
|
||
|
var toPrimitive = __webpack_require__(43);
|
||
|
var dP = Object.defineProperty;
|
||
|
|
||
|
exports.f = __webpack_require__(7) ? 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;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 40 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(6);
|
||
|
module.exports = function (it) {
|
||
|
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
||
|
return it;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 41 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
module.exports = !__webpack_require__(7) && !__webpack_require__(8)(function () {
|
||
|
return Object.defineProperty(__webpack_require__(42)('div'), 'a', { get: function () { return 7; } }).a != 7;
|
||
|
});
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 42 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(6);
|
||
|
var document = __webpack_require__(4).document;
|
||
|
// typeof document.createElement is 'object' in old IE
|
||
|
var is = isObject(document) && isObject(document.createElement);
|
||
|
module.exports = function (it) {
|
||
|
return is ? document.createElement(it) : {};
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 43 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
||
|
var isObject = __webpack_require__(6);
|
||
|
// 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");
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 44 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
module.exports = function (bitmap, value) {
|
||
|
return {
|
||
|
enumerable: !(bitmap & 1),
|
||
|
configurable: !(bitmap & 2),
|
||
|
writable: !(bitmap & 4),
|
||
|
value: value
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 45 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
// 19.1.2.1 Object.assign(target, source, ...)
|
||
|
var getKeys = __webpack_require__(46);
|
||
|
var gOPS = __webpack_require__(57);
|
||
|
var pIE = __webpack_require__(58);
|
||
|
var toObject = __webpack_require__(59);
|
||
|
var IObject = __webpack_require__(11);
|
||
|
var $assign = Object.assign;
|
||
|
|
||
|
// should work with symbols and should have deterministic property order (V8 bug)
|
||
|
module.exports = !$assign || __webpack_require__(8)(function () {
|
||
|
var A = {};
|
||
|
var B = {};
|
||
|
// eslint-disable-next-line no-undef
|
||
|
var S = Symbol();
|
||
|
var K = 'abcdefghijklmnopqrst';
|
||
|
A[S] = 7;
|
||
|
K.split('').forEach(function (k) { B[k] = k; });
|
||
|
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
||
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
||
|
var T = toObject(target);
|
||
|
var aLen = arguments.length;
|
||
|
var index = 1;
|
||
|
var getSymbols = gOPS.f;
|
||
|
var isEnum = pIE.f;
|
||
|
while (aLen > index) {
|
||
|
var S = IObject(arguments[index++]);
|
||
|
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
|
||
|
var length = keys.length;
|
||
|
var j = 0;
|
||
|
var key;
|
||
|
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
|
||
|
} return T;
|
||
|
} : $assign;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 46 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
||
|
var $keys = __webpack_require__(47);
|
||
|
var enumBugKeys = __webpack_require__(56);
|
||
|
|
||
|
module.exports = Object.keys || function keys(O) {
|
||
|
return $keys(O, enumBugKeys);
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 47 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var has = __webpack_require__(9);
|
||
|
var toIObject = __webpack_require__(10);
|
||
|
var arrayIndexOf = __webpack_require__(49)(false);
|
||
|
var IE_PROTO = __webpack_require__(52)('IE_PROTO');
|
||
|
|
||
|
module.exports = function (object, names) {
|
||
|
var O = toIObject(object);
|
||
|
var i = 0;
|
||
|
var result = [];
|
||
|
var key;
|
||
|
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
|
||
|
// Don't enum bug & hidden keys
|
||
|
while (names.length > i) if (has(O, key = names[i++])) {
|
||
|
~arrayIndexOf(result, key) || result.push(key);
|
||
|
}
|
||
|
return result;
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 48 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
var toString = {}.toString;
|
||
|
|
||
|
module.exports = function (it) {
|
||
|
return toString.call(it).slice(8, -1);
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 49 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// false -> Array#indexOf
|
||
|
// true -> Array#includes
|
||
|
var toIObject = __webpack_require__(10);
|
||
|
var toLength = __webpack_require__(50);
|
||
|
var toAbsoluteIndex = __webpack_require__(51);
|
||
|
module.exports = function (IS_INCLUDES) {
|
||
|
return function ($this, el, fromIndex) {
|
||
|
var O = toIObject($this);
|
||
|
var length = toLength(O.length);
|
||
|
var index = toAbsoluteIndex(fromIndex, length);
|
||
|
var value;
|
||
|
// Array#includes uses SameValueZero equality algorithm
|
||
|
// eslint-disable-next-line no-self-compare
|
||
|
if (IS_INCLUDES && el != el) while (length > index) {
|
||
|
value = O[index++];
|
||
|
// eslint-disable-next-line no-self-compare
|
||
|
if (value != value) return true;
|
||
|
// Array#indexOf ignores holes, Array#includes - not
|
||
|
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
|
||
|
if (O[index] === el) return IS_INCLUDES || index || 0;
|
||
|
} return !IS_INCLUDES && -1;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 50 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// 7.1.15 ToLength
|
||
|
var toInteger = __webpack_require__(13);
|
||
|
var min = Math.min;
|
||
|
module.exports = function (it) {
|
||
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 51 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var toInteger = __webpack_require__(13);
|
||
|
var max = Math.max;
|
||
|
var min = Math.min;
|
||
|
module.exports = function (index, length) {
|
||
|
index = toInteger(index);
|
||
|
return index < 0 ? max(index + length, 0) : min(index, length);
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 52 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var shared = __webpack_require__(53)('keys');
|
||
|
var uid = __webpack_require__(55);
|
||
|
module.exports = function (key) {
|
||
|
return shared[key] || (shared[key] = uid(key));
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 53 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var core = __webpack_require__(5);
|
||
|
var global = __webpack_require__(4);
|
||
|
var SHARED = '__core-js_shared__';
|
||
|
var store = global[SHARED] || (global[SHARED] = {});
|
||
|
|
||
|
(module.exports = function (key, value) {
|
||
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
||
|
})('versions', []).push({
|
||
|
version: core.version,
|
||
|
mode: __webpack_require__(54) ? 'pure' : 'global',
|
||
|
copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
|
||
|
});
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 54 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
module.exports = true;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 55 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
var id = 0;
|
||
|
var px = Math.random();
|
||
|
module.exports = function (key) {
|
||
|
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 56 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
// IE 8- don't enum bug keys
|
||
|
module.exports = (
|
||
|
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
||
|
).split(',');
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 57 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
exports.f = Object.getOwnPropertySymbols;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 58 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
exports.f = {}.propertyIsEnumerable;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 59 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// 7.1.13 ToObject(argument)
|
||
|
var defined = __webpack_require__(12);
|
||
|
module.exports = function (it) {
|
||
|
return Object(defined(it));
|
||
|
};
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 60 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
module.exports = __WEBPACK_EXTERNAL_MODULE_60__;
|
||
|
|
||
|
/***/ }),
|
||
|
/* 61 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(0),
|
||
|
now = __webpack_require__(62),
|
||
|
toNumber = __webpack_require__(64);
|
||
|
|
||
|
/** Error message constants. */
|
||
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeMax = Math.max,
|
||
|
nativeMin = Math.min;
|
||
|
|
||
|
/**
|
||
|
* Creates a debounced function that delays invoking `func` until after `wait`
|
||
|
* milliseconds have elapsed since the last time the debounced function was
|
||
|
* invoked. The debounced function comes with a `cancel` method to cancel
|
||
|
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
||
|
* Provide `options` to indicate whether `func` should be invoked on the
|
||
|
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
||
|
* with the last arguments provided to the debounced function. Subsequent
|
||
|
* calls to the debounced function return the result of the last `func`
|
||
|
* invocation.
|
||
|
*
|
||
|
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
||
|
* invoked on the trailing edge of the timeout only if the debounced function
|
||
|
* is invoked more than once during the `wait` timeout.
|
||
|
*
|
||
|
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
||
|
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
||
|
*
|
||
|
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
||
|
* for details over the differences between `_.debounce` and `_.throttle`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Function
|
||
|
* @param {Function} func The function to debounce.
|
||
|
* @param {number} [wait=0] The number of milliseconds to delay.
|
||
|
* @param {Object} [options={}] The options object.
|
||
|
* @param {boolean} [options.leading=false]
|
||
|
* Specify invoking on the leading edge of the timeout.
|
||
|
* @param {number} [options.maxWait]
|
||
|
* The maximum time `func` is allowed to be delayed before it's invoked.
|
||
|
* @param {boolean} [options.trailing=true]
|
||
|
* Specify invoking on the trailing edge of the timeout.
|
||
|
* @returns {Function} Returns the new debounced function.
|
||
|
* @example
|
||
|
*
|
||
|
* // Avoid costly calculations while the window size is in flux.
|
||
|
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
||
|
*
|
||
|
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
||
|
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
||
|
* 'leading': true,
|
||
|
* 'trailing': false
|
||
|
* }));
|
||
|
*
|
||
|
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
||
|
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
||
|
* var source = new EventSource('/stream');
|
||
|
* jQuery(source).on('message', debounced);
|
||
|
*
|
||
|
* // Cancel the trailing debounced invocation.
|
||
|
* jQuery(window).on('popstate', debounced.cancel);
|
||
|
*/
|
||
|
function debounce(func, wait, options) {
|
||
|
var lastArgs,
|
||
|
lastThis,
|
||
|
maxWait,
|
||
|
result,
|
||
|
timerId,
|
||
|
lastCallTime,
|
||
|
lastInvokeTime = 0,
|
||
|
leading = false,
|
||
|
maxing = false,
|
||
|
trailing = true;
|
||
|
|
||
|
if (typeof func != 'function') {
|
||
|
throw new TypeError(FUNC_ERROR_TEXT);
|
||
|
}
|
||
|
wait = toNumber(wait) || 0;
|
||
|
if (isObject(options)) {
|
||
|
leading = !!options.leading;
|
||
|
maxing = 'maxWait' in options;
|
||
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
||
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
||
|
}
|
||
|
|
||
|
function invokeFunc(time) {
|
||
|
var args = lastArgs,
|
||
|
thisArg = lastThis;
|
||
|
|
||
|
lastArgs = lastThis = undefined;
|
||
|
lastInvokeTime = time;
|
||
|
result = func.apply(thisArg, args);
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
function leadingEdge(time) {
|
||
|
// Reset any `maxWait` timer.
|
||
|
lastInvokeTime = time;
|
||
|
// Start the timer for the trailing edge.
|
||
|
timerId = setTimeout(timerExpired, wait);
|
||
|
// Invoke the leading edge.
|
||
|
return leading ? invokeFunc(time) : result;
|
||
|
}
|
||
|
|
||
|
function remainingWait(time) {
|
||
|
var timeSinceLastCall = time - lastCallTime,
|
||
|
timeSinceLastInvoke = time - lastInvokeTime,
|
||
|
timeWaiting = wait - timeSinceLastCall;
|
||
|
|
||
|
return maxing
|
||
|
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
||
|
: timeWaiting;
|
||
|
}
|
||
|
|
||
|
function shouldInvoke(time) {
|
||
|
var timeSinceLastCall = time - lastCallTime,
|
||
|
timeSinceLastInvoke = time - lastInvokeTime;
|
||
|
|
||
|
// Either this is the first call, activity has stopped and we're at the
|
||
|
// trailing edge, the system time has gone backwards and we're treating
|
||
|
// it as the trailing edge, or we've hit the `maxWait` limit.
|
||
|
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
||
|
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
||
|
}
|
||
|
|
||
|
function timerExpired() {
|
||
|
var time = now();
|
||
|
if (shouldInvoke(time)) {
|
||
|
return trailingEdge(time);
|
||
|
}
|
||
|
// Restart the timer.
|
||
|
timerId = setTimeout(timerExpired, remainingWait(time));
|
||
|
}
|
||
|
|
||
|
function trailingEdge(time) {
|
||
|
timerId = undefined;
|
||
|
|
||
|
// Only invoke if we have `lastArgs` which means `func` has been
|
||
|
// debounced at least once.
|
||
|
if (trailing && lastArgs) {
|
||
|
return invokeFunc(time);
|
||
|
}
|
||
|
lastArgs = lastThis = undefined;
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
function cancel() {
|
||
|
if (timerId !== undefined) {
|
||
|
clearTimeout(timerId);
|
||
|
}
|
||
|
lastInvokeTime = 0;
|
||
|
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
||
|
}
|
||
|
|
||
|
function flush() {
|
||
|
return timerId === undefined ? result : trailingEdge(now());
|
||
|
}
|
||
|
|
||
|
function debounced() {
|
||
|
var time = now(),
|
||
|
isInvoking = shouldInvoke(time);
|
||
|
|
||
|
lastArgs = arguments;
|
||
|
lastThis = this;
|
||
|
lastCallTime = time;
|
||
|
|
||
|
if (isInvoking) {
|
||
|
if (timerId === undefined) {
|
||
|
return leadingEdge(lastCallTime);
|
||
|
}
|
||
|
if (maxing) {
|
||
|
// Handle invocations in a tight loop.
|
||
|
timerId = setTimeout(timerExpired, wait);
|
||
|
return invokeFunc(lastCallTime);
|
||
|
}
|
||
|
}
|
||
|
if (timerId === undefined) {
|
||
|
timerId = setTimeout(timerExpired, wait);
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
debounced.cancel = cancel;
|
||
|
debounced.flush = flush;
|
||
|
return debounced;
|
||
|
}
|
||
|
|
||
|
module.exports = debounce;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 62 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var root = __webpack_require__(1);
|
||
|
|
||
|
/**
|
||
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
||
|
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 2.4.0
|
||
|
* @category Date
|
||
|
* @returns {number} Returns the timestamp.
|
||
|
* @example
|
||
|
*
|
||
|
* _.defer(function(stamp) {
|
||
|
* console.log(_.now() - stamp);
|
||
|
* }, _.now());
|
||
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
||
|
*/
|
||
|
var now = function() {
|
||
|
return root.Date.now();
|
||
|
};
|
||
|
|
||
|
module.exports = now;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 63 */
|
||
|
/***/ (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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 64 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(0),
|
||
|
isSymbol = __webpack_require__(65);
|
||
|
|
||
|
/** Used as references for various `Number` constants. */
|
||
|
var NAN = 0 / 0;
|
||
|
|
||
|
/** Used to match leading and trailing whitespace. */
|
||
|
var reTrim = /^\s+|\s+$/g;
|
||
|
|
||
|
/** Used to detect bad signed hexadecimal string values. */
|
||
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
||
|
|
||
|
/** Used to detect binary string values. */
|
||
|
var reIsBinary = /^0b[01]+$/i;
|
||
|
|
||
|
/** Used to detect octal string values. */
|
||
|
var reIsOctal = /^0o[0-7]+$/i;
|
||
|
|
||
|
/** Built-in method references without a dependency on `root`. */
|
||
|
var freeParseInt = parseInt;
|
||
|
|
||
|
/**
|
||
|
* Converts `value` to a number.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to process.
|
||
|
* @returns {number} Returns the number.
|
||
|
* @example
|
||
|
*
|
||
|
* _.toNumber(3.2);
|
||
|
* // => 3.2
|
||
|
*
|
||
|
* _.toNumber(Number.MIN_VALUE);
|
||
|
* // => 5e-324
|
||
|
*
|
||
|
* _.toNumber(Infinity);
|
||
|
* // => Infinity
|
||
|
*
|
||
|
* _.toNumber('3.2');
|
||
|
* // => 3.2
|
||
|
*/
|
||
|
function toNumber(value) {
|
||
|
if (typeof value == 'number') {
|
||
|
return value;
|
||
|
}
|
||
|
if (isSymbol(value)) {
|
||
|
return NAN;
|
||
|
}
|
||
|
if (isObject(value)) {
|
||
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
||
|
value = isObject(other) ? (other + '') : other;
|
||
|
}
|
||
|
if (typeof value != 'string') {
|
||
|
return value === 0 ? value : +value;
|
||
|
}
|
||
|
value = value.replace(reTrim, '');
|
||
|
var isBinary = reIsBinary.test(value);
|
||
|
return (isBinary || reIsOctal.test(value))
|
||
|
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
||
|
: (reIsBadHex.test(value) ? NAN : +value);
|
||
|
}
|
||
|
|
||
|
module.exports = toNumber;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 65 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(2),
|
||
|
isObjectLike = __webpack_require__(3);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var symbolTag = '[object Symbol]';
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a `Symbol` primitive or object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isSymbol(Symbol.iterator);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isSymbol('abc');
|
||
|
* // => false
|
||
|
*/
|
||
|
function isSymbol(value) {
|
||
|
return typeof value == 'symbol' ||
|
||
|
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
||
|
}
|
||
|
|
||
|
module.exports = isSymbol;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 66 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var Symbol = __webpack_require__(15);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Used to resolve the
|
||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||
|
* of values.
|
||
|
*/
|
||
|
var nativeObjectToString = objectProto.toString;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to query.
|
||
|
* @returns {string} Returns the raw `toStringTag`.
|
||
|
*/
|
||
|
function getRawTag(value) {
|
||
|
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
||
|
tag = value[symToStringTag];
|
||
|
|
||
|
try {
|
||
|
value[symToStringTag] = undefined;
|
||
|
var unmasked = true;
|
||
|
} catch (e) {}
|
||
|
|
||
|
var result = nativeObjectToString.call(value);
|
||
|
if (unmasked) {
|
||
|
if (isOwn) {
|
||
|
value[symToStringTag] = tag;
|
||
|
} else {
|
||
|
delete value[symToStringTag];
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = getRawTag;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 67 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/**
|
||
|
* Used to resolve the
|
||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||
|
* of values.
|
||
|
*/
|
||
|
var nativeObjectToString = objectProto.toString;
|
||
|
|
||
|
/**
|
||
|
* Converts `value` to a string using `Object.prototype.toString`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to convert.
|
||
|
* @returns {string} Returns the converted string.
|
||
|
*/
|
||
|
function objectToString(value) {
|
||
|
return nativeObjectToString.call(value);
|
||
|
}
|
||
|
|
||
|
module.exports = objectToString;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 68 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseRest = __webpack_require__(69),
|
||
|
eq = __webpack_require__(18),
|
||
|
isIterateeCall = __webpack_require__(83),
|
||
|
keysIn = __webpack_require__(84);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Assigns own and inherited enumerable string keyed properties of source
|
||
|
* objects to the destination object for all destination properties that
|
||
|
* resolve to `undefined`. Source objects are applied from left to right.
|
||
|
* Once a property is set, additional values of the same property are ignored.
|
||
|
*
|
||
|
* **Note:** This method mutates `object`.
|
||
|
*
|
||
|
* @static
|
||
|
* @since 0.1.0
|
||
|
* @memberOf _
|
||
|
* @category Object
|
||
|
* @param {Object} object The destination object.
|
||
|
* @param {...Object} [sources] The source objects.
|
||
|
* @returns {Object} Returns `object`.
|
||
|
* @see _.defaultsDeep
|
||
|
* @example
|
||
|
*
|
||
|
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
||
|
* // => { 'a': 1, 'b': 2 }
|
||
|
*/
|
||
|
var defaults = baseRest(function(object, sources) {
|
||
|
object = Object(object);
|
||
|
|
||
|
var index = -1;
|
||
|
var length = sources.length;
|
||
|
var guard = length > 2 ? sources[2] : undefined;
|
||
|
|
||
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
||
|
length = 1;
|
||
|
}
|
||
|
|
||
|
while (++index < length) {
|
||
|
var source = sources[index];
|
||
|
var props = keysIn(source);
|
||
|
var propsIndex = -1;
|
||
|
var propsLength = props.length;
|
||
|
|
||
|
while (++propsIndex < propsLength) {
|
||
|
var key = props[propsIndex];
|
||
|
var value = object[key];
|
||
|
|
||
|
if (value === undefined ||
|
||
|
(eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
|
||
|
object[key] = source[key];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return object;
|
||
|
});
|
||
|
|
||
|
module.exports = defaults;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 69 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var identity = __webpack_require__(16),
|
||
|
overRest = __webpack_require__(70),
|
||
|
setToString = __webpack_require__(72);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to apply a rest parameter to.
|
||
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
||
|
* @returns {Function} Returns the new function.
|
||
|
*/
|
||
|
function baseRest(func, start) {
|
||
|
return setToString(overRest(func, start, identity), func + '');
|
||
|
}
|
||
|
|
||
|
module.exports = baseRest;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 70 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var apply = __webpack_require__(71);
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeMax = Math.max;
|
||
|
|
||
|
/**
|
||
|
* A specialized version of `baseRest` which transforms the rest array.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to apply a rest parameter to.
|
||
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
||
|
* @param {Function} transform The rest array transform.
|
||
|
* @returns {Function} Returns the new function.
|
||
|
*/
|
||
|
function overRest(func, start, transform) {
|
||
|
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
||
|
return function() {
|
||
|
var args = arguments,
|
||
|
index = -1,
|
||
|
length = nativeMax(args.length - start, 0),
|
||
|
array = Array(length);
|
||
|
|
||
|
while (++index < length) {
|
||
|
array[index] = args[start + index];
|
||
|
}
|
||
|
index = -1;
|
||
|
var otherArgs = Array(start + 1);
|
||
|
while (++index < start) {
|
||
|
otherArgs[index] = args[index];
|
||
|
}
|
||
|
otherArgs[start] = transform(array);
|
||
|
return apply(func, this, otherArgs);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = overRest;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 71 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
||
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to invoke.
|
||
|
* @param {*} thisArg The `this` binding of `func`.
|
||
|
* @param {Array} args The arguments to invoke `func` with.
|
||
|
* @returns {*} Returns the result of `func`.
|
||
|
*/
|
||
|
function apply(func, thisArg, args) {
|
||
|
switch (args.length) {
|
||
|
case 0: return func.call(thisArg);
|
||
|
case 1: return func.call(thisArg, args[0]);
|
||
|
case 2: return func.call(thisArg, args[0], args[1]);
|
||
|
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
||
|
}
|
||
|
return func.apply(thisArg, args);
|
||
|
}
|
||
|
|
||
|
module.exports = apply;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 72 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseSetToString = __webpack_require__(73),
|
||
|
shortOut = __webpack_require__(82);
|
||
|
|
||
|
/**
|
||
|
* Sets the `toString` method of `func` to return `string`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to modify.
|
||
|
* @param {Function} string The `toString` result.
|
||
|
* @returns {Function} Returns `func`.
|
||
|
*/
|
||
|
var setToString = shortOut(baseSetToString);
|
||
|
|
||
|
module.exports = setToString;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 73 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var constant = __webpack_require__(74),
|
||
|
defineProperty = __webpack_require__(75),
|
||
|
identity = __webpack_require__(16);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `setToString` without support for hot loop shorting.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to modify.
|
||
|
* @param {Function} string The `toString` result.
|
||
|
* @returns {Function} Returns `func`.
|
||
|
*/
|
||
|
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
||
|
return defineProperty(func, 'toString', {
|
||
|
'configurable': true,
|
||
|
'enumerable': false,
|
||
|
'value': constant(string),
|
||
|
'writable': true
|
||
|
});
|
||
|
};
|
||
|
|
||
|
module.exports = baseSetToString;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 74 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Creates a function that returns `value`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 2.4.0
|
||
|
* @category Util
|
||
|
* @param {*} value The value to return from the new function.
|
||
|
* @returns {Function} Returns the new constant function.
|
||
|
* @example
|
||
|
*
|
||
|
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
||
|
*
|
||
|
* console.log(objects);
|
||
|
* // => [{ 'a': 1 }, { 'a': 1 }]
|
||
|
*
|
||
|
* console.log(objects[0] === objects[1]);
|
||
|
* // => true
|
||
|
*/
|
||
|
function constant(value) {
|
||
|
return function() {
|
||
|
return value;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = constant;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 75 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var getNative = __webpack_require__(76);
|
||
|
|
||
|
var defineProperty = (function() {
|
||
|
try {
|
||
|
var func = getNative(Object, 'defineProperty');
|
||
|
func({}, '', {});
|
||
|
return func;
|
||
|
} catch (e) {}
|
||
|
}());
|
||
|
|
||
|
module.exports = defineProperty;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 76 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsNative = __webpack_require__(77),
|
||
|
getValue = __webpack_require__(81);
|
||
|
|
||
|
/**
|
||
|
* 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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 77 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isFunction = __webpack_require__(17),
|
||
|
isMasked = __webpack_require__(78),
|
||
|
isObject = __webpack_require__(0),
|
||
|
toSource = __webpack_require__(80);
|
||
|
|
||
|
/**
|
||
|
* Used to match `RegExp`
|
||
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
||
|
*/
|
||
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||
|
|
||
|
/** Used to detect host constructors (Safari). */
|
||
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
||
|
|
||
|
/** 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 detect if a method is native. */
|
||
|
var reIsNative = RegExp('^' +
|
||
|
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
||
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
||
|
);
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isNative` without bad shim checks.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
||
|
* else `false`.
|
||
|
*/
|
||
|
function baseIsNative(value) {
|
||
|
if (!isObject(value) || isMasked(value)) {
|
||
|
return false;
|
||
|
}
|
||
|
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
||
|
return pattern.test(toSource(value));
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsNative;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 78 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var coreJsData = __webpack_require__(79);
|
||
|
|
||
|
/** Used to detect methods masquerading as native. */
|
||
|
var maskSrcKey = (function() {
|
||
|
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
||
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
||
|
}());
|
||
|
|
||
|
/**
|
||
|
* Checks if `func` has its source masked.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to check.
|
||
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
||
|
*/
|
||
|
function isMasked(func) {
|
||
|
return !!maskSrcKey && (maskSrcKey in func);
|
||
|
}
|
||
|
|
||
|
module.exports = isMasked;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 79 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var root = __webpack_require__(1);
|
||
|
|
||
|
/** Used to detect overreaching core-js shims. */
|
||
|
var coreJsData = root['__core-js_shared__'];
|
||
|
|
||
|
module.exports = coreJsData;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 80 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var funcProto = Function.prototype;
|
||
|
|
||
|
/** Used to resolve the decompiled source of functions. */
|
||
|
var funcToString = funcProto.toString;
|
||
|
|
||
|
/**
|
||
|
* Converts `func` to its source code.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to convert.
|
||
|
* @returns {string} Returns the source code.
|
||
|
*/
|
||
|
function toSource(func) {
|
||
|
if (func != null) {
|
||
|
try {
|
||
|
return funcToString.call(func);
|
||
|
} catch (e) {}
|
||
|
try {
|
||
|
return (func + '');
|
||
|
} catch (e) {}
|
||
|
}
|
||
|
return '';
|
||
|
}
|
||
|
|
||
|
module.exports = toSource;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 81 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* Gets the value at `key` of `object`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} [object] The object to query.
|
||
|
* @param {string} key The key of the property to get.
|
||
|
* @returns {*} Returns the property value.
|
||
|
*/
|
||
|
function getValue(object, key) {
|
||
|
return object == null ? undefined : object[key];
|
||
|
}
|
||
|
|
||
|
module.exports = getValue;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 82 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
||
|
var HOT_COUNT = 800,
|
||
|
HOT_SPAN = 16;
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeNow = Date.now;
|
||
|
|
||
|
/**
|
||
|
* Creates a function that'll short out and invoke `identity` instead
|
||
|
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
||
|
* milliseconds.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to restrict.
|
||
|
* @returns {Function} Returns the new shortable function.
|
||
|
*/
|
||
|
function shortOut(func) {
|
||
|
var count = 0,
|
||
|
lastCalled = 0;
|
||
|
|
||
|
return function() {
|
||
|
var stamp = nativeNow(),
|
||
|
remaining = HOT_SPAN - (stamp - lastCalled);
|
||
|
|
||
|
lastCalled = stamp;
|
||
|
if (remaining > 0) {
|
||
|
if (++count >= HOT_COUNT) {
|
||
|
return arguments[0];
|
||
|
}
|
||
|
} else {
|
||
|
count = 0;
|
||
|
}
|
||
|
return func.apply(undefined, arguments);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = shortOut;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 83 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var eq = __webpack_require__(18),
|
||
|
isArrayLike = __webpack_require__(19),
|
||
|
isIndex = __webpack_require__(21),
|
||
|
isObject = __webpack_require__(0);
|
||
|
|
||
|
/**
|
||
|
* Checks if the given arguments are from an iteratee call.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The potential iteratee value argument.
|
||
|
* @param {*} index The potential iteratee index or key argument.
|
||
|
* @param {*} object The potential iteratee object argument.
|
||
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
||
|
* else `false`.
|
||
|
*/
|
||
|
function isIterateeCall(value, index, object) {
|
||
|
if (!isObject(object)) {
|
||
|
return false;
|
||
|
}
|
||
|
var type = typeof index;
|
||
|
if (type == 'number'
|
||
|
? (isArrayLike(object) && isIndex(index, object.length))
|
||
|
: (type == 'string' && index in object)
|
||
|
) {
|
||
|
return eq(object[index], value);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
module.exports = isIterateeCall;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 84 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var arrayLikeKeys = __webpack_require__(85),
|
||
|
baseKeysIn = __webpack_require__(96),
|
||
|
isArrayLike = __webpack_require__(19);
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
||
|
*
|
||
|
* **Note:** Non-object values are coerced to objects.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 3.0.0
|
||
|
* @category Object
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
* @example
|
||
|
*
|
||
|
* function Foo() {
|
||
|
* this.a = 1;
|
||
|
* this.b = 2;
|
||
|
* }
|
||
|
*
|
||
|
* Foo.prototype.c = 3;
|
||
|
*
|
||
|
* _.keysIn(new Foo);
|
||
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
||
|
*/
|
||
|
function keysIn(object) {
|
||
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
||
|
}
|
||
|
|
||
|
module.exports = keysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 85 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseTimes = __webpack_require__(86),
|
||
|
isArguments = __webpack_require__(87),
|
||
|
isArray = __webpack_require__(89),
|
||
|
isBuffer = __webpack_require__(90),
|
||
|
isIndex = __webpack_require__(21),
|
||
|
isTypedArray = __webpack_require__(92);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* Creates an array of the enumerable property names of the array-like `value`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to query.
|
||
|
* @param {boolean} inherited Specify returning inherited property names.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function arrayLikeKeys(value, inherited) {
|
||
|
var isArr = isArray(value),
|
||
|
isArg = !isArr && isArguments(value),
|
||
|
isBuff = !isArr && !isArg && isBuffer(value),
|
||
|
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
|
||
|
skipIndexes = isArr || isArg || isBuff || isType,
|
||
|
result = skipIndexes ? baseTimes(value.length, String) : [],
|
||
|
length = result.length;
|
||
|
|
||
|
for (var key in value) {
|
||
|
if ((inherited || hasOwnProperty.call(value, key)) &&
|
||
|
!(skipIndexes && (
|
||
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
||
|
key == 'length' ||
|
||
|
// Node.js 0.10 has enumerable non-index properties on buffers.
|
||
|
(isBuff && (key == 'offset' || key == 'parent')) ||
|
||
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
||
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
||
|
// Skip index properties.
|
||
|
isIndex(key, length)
|
||
|
))) {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = arrayLikeKeys;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 86 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.times` without support for iteratee shorthands
|
||
|
* or max array length checks.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {number} n The number of times to invoke `iteratee`.
|
||
|
* @param {Function} iteratee The function invoked per iteration.
|
||
|
* @returns {Array} Returns the array of results.
|
||
|
*/
|
||
|
function baseTimes(n, iteratee) {
|
||
|
var index = -1,
|
||
|
result = Array(n);
|
||
|
|
||
|
while (++index < n) {
|
||
|
result[index] = iteratee(index);
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseTimes;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 87 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsArguments = __webpack_require__(88),
|
||
|
isObjectLike = __webpack_require__(3);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is likely an `arguments` object.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 0.1.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
||
|
* else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isArguments(function() { return arguments; }());
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isArguments([1, 2, 3]);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
||
|
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
|
||
|
!propertyIsEnumerable.call(value, 'callee');
|
||
|
};
|
||
|
|
||
|
module.exports = isArguments;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 88 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(2),
|
||
|
isObjectLike = __webpack_require__(3);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var argsTag = '[object Arguments]';
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isArguments`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
||
|
*/
|
||
|
function baseIsArguments(value) {
|
||
|
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsArguments;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 89 */
|
||
|
/***/ (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;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 90 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(1),
|
||
|
stubFalse = __webpack_require__(91);
|
||
|
|
||
|
/** Detect free variable `exports`. */
|
||
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
||
|
|
||
|
/** Detect free variable `module`. */
|
||
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
||
|
|
||
|
/** Detect the popular CommonJS extension `module.exports`. */
|
||
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
||
|
|
||
|
/** Built-in value references. */
|
||
|
var Buffer = moduleExports ? root.Buffer : undefined;
|
||
|
|
||
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is a buffer.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.3.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isBuffer(new Buffer(2));
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isBuffer(new Uint8Array(2));
|
||
|
* // => false
|
||
|
*/
|
||
|
var isBuffer = nativeIsBuffer || stubFalse;
|
||
|
|
||
|
module.exports = isBuffer;
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22)(module)))
|
||
|
|
||
|
/***/ }),
|
||
|
/* 91 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* This method returns `false`.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 4.13.0
|
||
|
* @category Util
|
||
|
* @returns {boolean} Returns `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.times(2, _.stubFalse);
|
||
|
* // => [false, false]
|
||
|
*/
|
||
|
function stubFalse() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
module.exports = stubFalse;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 92 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseIsTypedArray = __webpack_require__(93),
|
||
|
baseUnary = __webpack_require__(94),
|
||
|
nodeUtil = __webpack_require__(95);
|
||
|
|
||
|
/* Node.js helper references. */
|
||
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is classified as a typed array.
|
||
|
*
|
||
|
* @static
|
||
|
* @memberOf _
|
||
|
* @since 3.0.0
|
||
|
* @category Lang
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* _.isTypedArray(new Uint8Array);
|
||
|
* // => true
|
||
|
*
|
||
|
* _.isTypedArray([]);
|
||
|
* // => false
|
||
|
*/
|
||
|
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
||
|
|
||
|
module.exports = isTypedArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 93 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var baseGetTag = __webpack_require__(2),
|
||
|
isLength = __webpack_require__(20),
|
||
|
isObjectLike = __webpack_require__(3);
|
||
|
|
||
|
/** `Object#toString` result references. */
|
||
|
var argsTag = '[object Arguments]',
|
||
|
arrayTag = '[object Array]',
|
||
|
boolTag = '[object Boolean]',
|
||
|
dateTag = '[object Date]',
|
||
|
errorTag = '[object Error]',
|
||
|
funcTag = '[object Function]',
|
||
|
mapTag = '[object Map]',
|
||
|
numberTag = '[object Number]',
|
||
|
objectTag = '[object Object]',
|
||
|
regexpTag = '[object RegExp]',
|
||
|
setTag = '[object Set]',
|
||
|
stringTag = '[object String]',
|
||
|
weakMapTag = '[object WeakMap]';
|
||
|
|
||
|
var arrayBufferTag = '[object ArrayBuffer]',
|
||
|
dataViewTag = '[object DataView]',
|
||
|
float32Tag = '[object Float32Array]',
|
||
|
float64Tag = '[object Float64Array]',
|
||
|
int8Tag = '[object Int8Array]',
|
||
|
int16Tag = '[object Int16Array]',
|
||
|
int32Tag = '[object Int32Array]',
|
||
|
uint8Tag = '[object Uint8Array]',
|
||
|
uint8ClampedTag = '[object Uint8ClampedArray]',
|
||
|
uint16Tag = '[object Uint16Array]',
|
||
|
uint32Tag = '[object Uint32Array]';
|
||
|
|
||
|
/** Used to identify `toStringTag` values of typed arrays. */
|
||
|
var typedArrayTags = {};
|
||
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
||
|
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
||
|
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
||
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
||
|
typedArrayTags[uint32Tag] = true;
|
||
|
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
|
||
|
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
||
|
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
|
||
|
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
||
|
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
|
||
|
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
|
||
|
typedArrayTags[setTag] = typedArrayTags[stringTag] =
|
||
|
typedArrayTags[weakMapTag] = false;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
||
|
*/
|
||
|
function baseIsTypedArray(value) {
|
||
|
return isObjectLike(value) &&
|
||
|
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
||
|
}
|
||
|
|
||
|
module.exports = baseIsTypedArray;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 94 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.unary` without support for storing metadata.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Function} func The function to cap arguments for.
|
||
|
* @returns {Function} Returns the new capped function.
|
||
|
*/
|
||
|
function baseUnary(func) {
|
||
|
return function(value) {
|
||
|
return func(value);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
module.exports = baseUnary;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 95 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(14);
|
||
|
|
||
|
/** Detect free variable `exports`. */
|
||
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
||
|
|
||
|
/** Detect free variable `module`. */
|
||
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
||
|
|
||
|
/** Detect the popular CommonJS extension `module.exports`. */
|
||
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
||
|
|
||
|
/** Detect free variable `process` from Node.js. */
|
||
|
var freeProcess = moduleExports && freeGlobal.process;
|
||
|
|
||
|
/** Used to access faster Node.js helpers. */
|
||
|
var nodeUtil = (function() {
|
||
|
try {
|
||
|
// Use `util.types` for Node.js 10+.
|
||
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
||
|
|
||
|
if (types) {
|
||
|
return types;
|
||
|
}
|
||
|
|
||
|
// Legacy `process.binding('util')` for Node.js < 10.
|
||
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
||
|
} catch (e) {}
|
||
|
}());
|
||
|
|
||
|
module.exports = nodeUtil;
|
||
|
|
||
|
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(22)(module)))
|
||
|
|
||
|
/***/ }),
|
||
|
/* 96 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
var isObject = __webpack_require__(0),
|
||
|
isPrototype = __webpack_require__(97),
|
||
|
nativeKeysIn = __webpack_require__(98);
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/** Used to check objects for own properties. */
|
||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function baseKeysIn(object) {
|
||
|
if (!isObject(object)) {
|
||
|
return nativeKeysIn(object);
|
||
|
}
|
||
|
var isProto = isPrototype(object),
|
||
|
result = [];
|
||
|
|
||
|
for (var key in object) {
|
||
|
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = baseKeysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 97 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/** Used for built-in method references. */
|
||
|
var objectProto = Object.prototype;
|
||
|
|
||
|
/**
|
||
|
* Checks if `value` is likely a prototype object.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
||
|
*/
|
||
|
function isPrototype(value) {
|
||
|
var Ctor = value && value.constructor,
|
||
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
||
|
|
||
|
return value === proto;
|
||
|
}
|
||
|
|
||
|
module.exports = isPrototype;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 98 */
|
||
|
/***/ (function(module, exports) {
|
||
|
|
||
|
/**
|
||
|
* This function is like
|
||
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
||
|
* except that it includes inherited enumerable properties.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The object to query.
|
||
|
* @returns {Array} Returns the array of property names.
|
||
|
*/
|
||
|
function nativeKeysIn(object) {
|
||
|
var result = [];
|
||
|
if (object != null) {
|
||
|
for (var key in Object(object)) {
|
||
|
result.push(key);
|
||
|
}
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
|
||
|
module.exports = nativeKeysIn;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
/* 99 */
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
||
|
return _c('div', {
|
||
|
ref: "container",
|
||
|
staticClass: "vue-plotly"
|
||
|
})
|
||
|
},staticRenderFns: []}
|
||
|
module.exports.render._withStripped = true
|
||
|
if (false) {
|
||
|
module.hot.accept()
|
||
|
if (module.hot.data) {
|
||
|
require("vue-hot-reload-api").rerender("data-v-cca72e96", module.exports)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/***/ })
|
||
|
/******/ ]);
|
||
|
});
|