mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
More JSDoc cleanup. [closes #334]
Former-commit-id: dcb55079320e3bcd35c3bf4f36d18f393f16e426
This commit is contained in:
56
build.js
56
build.js
@@ -659,7 +659,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} source The source to process.
|
||||
* @param {array} [commands=[]] An array of commands.
|
||||
* @param {Array} [commands=[]] An array of commands.
|
||||
* @returns {string} Returns the modified source.
|
||||
*/
|
||||
function addCommandsToHeader(source, commands) {
|
||||
@@ -822,7 +822,7 @@
|
||||
* Creates modules based on the provided build state.
|
||||
*
|
||||
* @private
|
||||
* @param {object} state The build state object.
|
||||
* @param {Object} state The build state object.
|
||||
*/
|
||||
function buildModule(state) {
|
||||
var buildFuncs = state.buildFuncs,
|
||||
@@ -1085,7 +1085,7 @@
|
||||
* each template file's basename.
|
||||
*
|
||||
* @private
|
||||
* @param {object} state The build state object.
|
||||
* @param {Object} state The build state object.
|
||||
* @returns {string} Returns the compiled source.
|
||||
*/
|
||||
function buildTemplate(state) {
|
||||
@@ -1218,7 +1218,7 @@
|
||||
* The default callback used for `build` invocations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} data The data for the given build.
|
||||
* @param {Object} data The data for the given build.
|
||||
* gzip - The gzipped output of the built source
|
||||
* outputPath - The path where the built source is to be written
|
||||
* source - The built source output
|
||||
@@ -1293,8 +1293,8 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} funcName The name of the function to get aliases for.
|
||||
* @param {object} [depMap] The dependency map used to validate aliases.
|
||||
* @returns {array} Returns an array of aliases.
|
||||
* @param {Object} [depMap] The dependency map used to validate aliases.
|
||||
* @returns {Array} Returns an array of aliases.
|
||||
*/
|
||||
function getAliases(funcName, depMap) {
|
||||
var aliases = hasOwnProperty.call(realToAliasMap, funcName) && realToAliasMap[funcName];
|
||||
@@ -1309,7 +1309,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} identifier The identifier to query.
|
||||
* @param {object} [depMap] The dependency map used to resolve the identifier.
|
||||
* @param {Object} [depMap] The dependency map used to resolve the identifier.
|
||||
* @returns {string} Returns the identifier's category.
|
||||
*/
|
||||
function getCategory(identifier, depMap) {
|
||||
@@ -1348,9 +1348,9 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} funcName A function name or array of function names.
|
||||
* @param {object} [depMap] The dependency map used to look up dependants.
|
||||
* @param- {array} [stackA=[]] Internally used track queried function names.
|
||||
* @returns {array} Returns an array of function dependants.
|
||||
* @param {Object} [depMap] The dependency map used to look up dependants.
|
||||
* @param- {Array} [stackA=[]] Internally used track queried function names.
|
||||
* @returns {Array} Returns an array of function dependants.
|
||||
*/
|
||||
function getDependants(funcName, depMap, stack) {
|
||||
var funcNames = _.isArray(funcName) ? funcName : [funcName];
|
||||
@@ -1375,11 +1375,11 @@
|
||||
* dependencies plus any additional detected sub-dependencies.
|
||||
*
|
||||
* @private
|
||||
* @param {(string|string[])} funcName A function name or array of dependencies to query.
|
||||
* @param {object} [depMap] The dependency map used to look up dependants.
|
||||
* @param {string|string[]} funcName A function name or array of dependencies to query.
|
||||
* @param {Object} [depMap] The dependency map used to look up dependants.
|
||||
* @param {boolean} [isShallow=false] A flag to indicate getting only the immediate dependencies.
|
||||
* @param- {array} [stackA=[]] Internally used track queried function names.
|
||||
* @returns {array} Returns an array of function dependencies.
|
||||
* @param- {Array} [stackA=[]] Internally used track queried function names.
|
||||
* @returns {Array} Returns an array of function dependencies.
|
||||
*/
|
||||
function getDependencies(funcName, depMap, isShallow, stack) {
|
||||
// juggle arguments
|
||||
@@ -1420,8 +1420,8 @@
|
||||
* Gets the formatted source of the given function.
|
||||
*
|
||||
* @private
|
||||
* @param {function} func The function to process.
|
||||
* @param {(number|string)} [indent=0] The level to indent.
|
||||
* @param {Function} func The function to process.
|
||||
* @param {number|string} [indent=0] The level to indent.
|
||||
* @returns {string} Returns the formatted source.
|
||||
*/
|
||||
function getFunctionSource(func, indent) {
|
||||
@@ -1445,7 +1445,7 @@
|
||||
* Gets the indent of the given function.
|
||||
*
|
||||
* @private
|
||||
* @param {function} func The function to process.
|
||||
* @param {Function} func The function to process.
|
||||
* @returns {string} Returns the indent.
|
||||
*/
|
||||
function getIndent(func) {
|
||||
@@ -1506,7 +1506,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} category The category to filter by.
|
||||
* @returns {array} Returns a new array of names.
|
||||
* @returns {Array} Returns a new array of names.
|
||||
*/
|
||||
function getNamesByCategory(category) {
|
||||
return categoryMap[category] || [];
|
||||
@@ -1517,7 +1517,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} funcName The name of the function to resolve.
|
||||
* @param {object} [depMap] The dependency map used to validate the real name.
|
||||
* @param {Object} [depMap] The dependency map used to validate the real name.
|
||||
* @returns {string} Returns the real function name.
|
||||
*/
|
||||
function getRealName(funcName, depMap) {
|
||||
@@ -1546,7 +1546,7 @@
|
||||
* @private
|
||||
* @param {string} source The source to process.
|
||||
* @param {boolean} [isShallow=false] A flag to indicate looking for varaibles one closure deep.
|
||||
* @returns {array} Returns a new array of variable names.
|
||||
* @returns {Array} Returns a new array of variable names.
|
||||
*/
|
||||
function getVars(source, isShallow) {
|
||||
var indentA = isShallow ? ' {2}' : ' {2,4}',
|
||||
@@ -1621,7 +1621,7 @@
|
||||
}, null);
|
||||
|
||||
return result && (
|
||||
/@type +function\b/i.test(result[0]) ||
|
||||
/@type +Function\b/i.test(result[0]) ||
|
||||
/(?:function(?:\s+\w+)?\b|create[A-Z][a-z]+|template)\(/.test(result[1]))
|
||||
? (leadingComments ? result[0] : '') + result[1]
|
||||
: '';
|
||||
@@ -1691,7 +1691,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} value The option to convert.
|
||||
* @returns {array} Returns the new converted array.
|
||||
* @returns {Array} Returns the new converted array.
|
||||
*/
|
||||
function optionToArray(value) {
|
||||
return _.compact(_.isArray(value)
|
||||
@@ -1705,8 +1705,8 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} value The option to convert.
|
||||
* @param {object} [depMap] The dependency map used to resolve real names.
|
||||
* @returns {array} Returns the new converted array.
|
||||
* @param {Object} [depMap] The dependency map used to resolve real names.
|
||||
* @returns {Array} Returns the new converted array.
|
||||
*/
|
||||
function optionToMethodsArray(value, depMap) {
|
||||
depMap || (depMap = funcDependencyMap);
|
||||
@@ -2513,8 +2513,8 @@
|
||||
*
|
||||
* Note: For a list of commands see `displayHelp()` or run `lodash --help`.
|
||||
*
|
||||
* @param {(array|object)} [options=[]] An array of build commands or the state object.
|
||||
* @param {function} [callback=defaultBuildCallback] The function called or per build.
|
||||
* @param {Array|Object} [options=[]] An array of build commands or the state object.
|
||||
* @param {Function} [callback=defaultBuildCallback] The function called or per build.
|
||||
*/
|
||||
function build(options, callback) {
|
||||
options || (options = []);
|
||||
@@ -3498,8 +3498,8 @@
|
||||
' * @static',
|
||||
' * @memberOf _',
|
||||
' * @category Collections',
|
||||
' * @param {(array|object|string)} collection The collection to iterate over.',
|
||||
' * @param {object} properties The object of property values to filter by.',
|
||||
' * @param {Array|Object|string} collection The collection to iterate over.',
|
||||
' * @param {Object} properties The object of property values to filter by.',
|
||||
' * @returns {*} Returns the found element, else `undefined`.',
|
||||
' * @example',
|
||||
' *',
|
||||
|
||||
@@ -72,16 +72,16 @@
|
||||
* callback when finished. The `onComplete` callback is invoked with one
|
||||
* argument; (outputSource).
|
||||
*
|
||||
* @param {(string|string[])} [source=''] The source to minify or array of commands.
|
||||
* @param {string|string[]} [source=''] The source to minify or array of commands.
|
||||
* -o, --output - Write output to a given path/filename.
|
||||
* -s, --silent - Skip status updates normally logged to the console.
|
||||
* -t, --template - Applies template specific minifier options.
|
||||
*
|
||||
* @param {object} [options={}] The options object.
|
||||
* outputPath - Write output to a given path/filename.
|
||||
* isSilent - Skip status updates normally logged to the console.
|
||||
* isTemplate - Applies template specific minifier options.
|
||||
* onComplete - The function called once minification has finished.
|
||||
* @param {Object} [options={}] The options object.
|
||||
* @param {string} [options.outputPath] Write output to a given path/filename.
|
||||
* @param {boolean} [options.isSilent] Skip status updates normally logged to the console.
|
||||
* @param {boolean} [options.isTemplate] Applies template specific minifier options.
|
||||
* @param {Function} [options.onComplete] The function called once minification has finished.
|
||||
*/
|
||||
function minify(source, options) {
|
||||
// used to specify the source map URL
|
||||
@@ -206,7 +206,7 @@
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {string} source The source to minify.
|
||||
* @param {object} options The options object.
|
||||
* @param {Object} options The options object.
|
||||
* outputPath - Write output to a given path/filename.
|
||||
* isSilent - Skip status updates normally logged to the console.
|
||||
* isTemplate - Applies template specific minifier options.
|
||||
@@ -260,7 +260,7 @@
|
||||
* `git hash-object path/to/dependency.tar.gz`.
|
||||
*
|
||||
* @private
|
||||
* @param {object} options The options object.
|
||||
* @param {Object} options The options object.
|
||||
* id - The Git object ID of the `.tar.gz` file.
|
||||
* onComplete - The function called once the extraction has finished.
|
||||
* path - The path of the extraction directory.
|
||||
@@ -333,7 +333,7 @@
|
||||
* See https://code.google.com/p/closure-compiler/wiki/FAQ#What_are_the_recommended_Java_VM_command-line_options?.
|
||||
*
|
||||
* @private
|
||||
* @param {function} callback The function called once the options have been retrieved.
|
||||
* @param {Function} callback The function called once the options have been retrieved.
|
||||
*/
|
||||
function getJavaOptions(callback) {
|
||||
var result = [];
|
||||
@@ -368,7 +368,7 @@
|
||||
* @private
|
||||
* @param {string} source The JavaScript source to minify.
|
||||
* @param {string} mode The optimization mode.
|
||||
* @param {function} callback The function called once the process has completed.
|
||||
* @param {Function} callback The function called once the process has completed.
|
||||
*/
|
||||
function closureCompile(source, mode, callback) {
|
||||
var filePath = this.filePath,
|
||||
@@ -468,7 +468,7 @@
|
||||
* @private
|
||||
* @param {string} source The JavaScript source to minify.
|
||||
* @param {string} label The label to log.
|
||||
* @param {function} callback The function called once the process has completed.
|
||||
* @param {Function} callback The function called once the process has completed.
|
||||
*/
|
||||
function uglify(source, label, callback) {
|
||||
if (!this.isSilent) {
|
||||
@@ -520,7 +520,7 @@
|
||||
* The Closure Compiler callback for simple optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {string} result The resulting minified source.
|
||||
* @param {string} map The source map output.
|
||||
*/
|
||||
@@ -540,7 +540,7 @@
|
||||
* The Closure Compiler `gzip` callback for simple optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {Buffer} result The resulting gzipped source.
|
||||
*/
|
||||
function onClosureSimpleGzip(exception, result) {
|
||||
@@ -565,7 +565,7 @@
|
||||
* The Closure Compiler callback for advanced optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {string} result The resulting minified source.
|
||||
* @param {string} map The source map output.
|
||||
*/
|
||||
@@ -585,7 +585,7 @@
|
||||
* The Closure Compiler `gzip` callback for advanced optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {Buffer} result The resulting gzipped source.
|
||||
*/
|
||||
function onClosureAdvancedGzip(exception, result) {
|
||||
@@ -610,7 +610,7 @@
|
||||
* The UglifyJS callback.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {string} result The resulting minified source.
|
||||
*/
|
||||
function onUglify(exception, result) {
|
||||
@@ -626,7 +626,7 @@
|
||||
* The UglifyJS `gzip` callback.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {Buffer} result The resulting gzipped source.
|
||||
*/
|
||||
function onUglifyGzip(exception, result) {
|
||||
@@ -656,7 +656,7 @@
|
||||
* The hybrid callback for simple optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {string} result The resulting minified source.
|
||||
*/
|
||||
function onSimpleHybrid(exception, result) {
|
||||
@@ -672,7 +672,7 @@
|
||||
* The hybrid `gzip` callback for simple optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {Buffer} result The resulting gzipped source.
|
||||
*/
|
||||
function onSimpleHybridGzip(exception, result) {
|
||||
@@ -697,7 +697,7 @@
|
||||
* The hybrid callback for advanced optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {string} result The resulting minified source.
|
||||
*/
|
||||
function onAdvancedHybrid(exception, result) {
|
||||
@@ -713,7 +713,7 @@
|
||||
* The hybrid `gzip` callback for advanced optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {object} [exception] The error object.
|
||||
* @param {Object} [exception] The error object.
|
||||
* @param {Buffer} result The resulting gzipped source.
|
||||
*/
|
||||
function onAdvancedHybridGzip(exception, result) {
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
* Pre-process a given Lo-Dash `source`, preparing it for minification.
|
||||
*
|
||||
* @param {string} [source=''] The source to process.
|
||||
* @param {object} [options={}] The options object.
|
||||
* @param {Object} [options={}] The options object.
|
||||
* @returns {string} Returns the processed source.
|
||||
*/
|
||||
function preprocess(source, options) {
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
*
|
||||
* @memberOf util.fs
|
||||
* @param {string} dirname The path of the directory.
|
||||
* @param {(number|string)} [mode='0777'] The permission mode.
|
||||
* @param {number|string} [mode='0777'] The permission mode.
|
||||
*/
|
||||
function mkdirpSync(dirname, mode) {
|
||||
// ensure relative paths are prefixed with `./`
|
||||
@@ -64,7 +64,7 @@
|
||||
/**
|
||||
* The utility object.
|
||||
*
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
var util = {
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
* The file system object.
|
||||
*
|
||||
* @memberOf util
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'fs': _.defaults(_.cloneDeep(fs), {
|
||||
'existsSync': fs.existsSync || path.existsSync,
|
||||
@@ -83,7 +83,7 @@
|
||||
* The path object.
|
||||
*
|
||||
* @memberOf util
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'path': _.defaults(_.cloneDeep(path), {
|
||||
'sep': sep,
|
||||
|
||||
586
dist/lodash.compat.js
vendored
586
dist/lodash.compat.js
vendored
File diff suppressed because it is too large
Load Diff
102
dist/lodash.compat.min.js
vendored
102
dist/lodash.compat.min.js
vendored
@@ -3,54 +3,54 @@
|
||||
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
|
||||
* Build: `lodash -o ./dist/lodash.compat.js`
|
||||
*/
|
||||
;!function(){function n(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function t(t,e){var r=typeof e;if(t=t.k,"boolean"==r||e==m)return t[e]?0:-1;"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:x+e;return t=(t=t[r])&&t[u],"object"==r?t&&-1<n(t,e)?0:-1:t?0:-1}function e(n){var t=this.k,e=typeof n;if("boolean"==e||n==m)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:x+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y}}function r(n){return n.charCodeAt(0)
|
||||
}function u(n,t){var e=n.l,r=t.l;if(e!==r){if(e>r||typeof e=="undefined")return 1;if(e<r||typeof r=="undefined")return-1}return n.m-t.m}function o(n){var t=-1,r=n.length,u=n[0],o=n[r-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return d;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=d,o=f(),o.b=n,o.k=u,o.push=e;++t<r;)o.push(n[t]);return o}function a(n){return"\\"+Y[n]}function i(){return _.pop()||[]}function f(){return b.pop()||{a:"",b:m,c:"",k:m,configurable:d,l:m,enumerable:d,"false":d,d:"",m:0,e:"",v:m,leading:d,g:"",maxWait:0,"null":d,number:m,z:m,push:m,h:m,string:m,i:"",trailing:d,"true":d,undefined:d,j:d,n:m,writable:d}
|
||||
}function l(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function c(){}function p(n){n.length=0,_.length<E&&_.push(n)}function s(n){var t=n.k;t&&s(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=m,b.length<E&&b.push(n)}function g(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function h(e){function _(n){return n&&typeof n=="object"&&!Ge(n)&&de.call(n,"__wrapped__")?n:new b(n)}function b(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
}function E(n,t,e,r,u){var o=n;if(e){if(o=e(o),typeof o!="undefined")return o;o=n}var a=_t(o);if(a){var f=xe.call(o);if(!Q[f]||!Ke.nodeClass&&l(o))return o;var c=Ge(o)}if(!a||!t)return a?c?g(o):tr({},o):o;switch(a=Te[f],f){case K:case W:return new a(+o);case M:case V:return new a(o);case U:return a(o.source,D.exec(o))}f=!r,r||(r=i()),u||(u=i());for(var s=r.length;s--;)if(r[s]==n)return u[s];return o=c?a(o.length):{},c&&(de.call(n,"index")&&(o.index=n.index),de.call(n,"input")&&(o.input=n.input)),r.push(n),u.push(o),(c?nr:ur)(n,function(n,a){o[a]=E(n,t,e,r,u)
|
||||
}),f&&(p(r),p(u)),o}function Y(n,t,e){if(typeof n!="function")return Ht;if(typeof t=="undefined")return n;var r=!n.name||n.__bindData__;if(typeof r=="undefined"&&(r=!F||F.test(ye.call(n)),We(n,r)),r!==y&&!(r&&1&r[1]))return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}}return Gt(n,t)}function nt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var a=n[r];
|
||||
a&&typeof a=="object"&&(Ge(a)||ht(a))?_e.apply(o,t?a:nt(a,t,e)):e||o.push(a)}return o}function et(n,t,e,r,u,o){if(e){var a=e(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!X[typeof n])&&(!t||!X[typeof t]))return d;if(n==m||t==m)return n===t;var f=xe.call(n),c=xe.call(t);if(f==T&&(f=H),c==T&&(c=H),f!=c)return d;switch(f){case K:case W:return+n==+t;case M:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case U:case V:return n==oe(t)}if(c=f==q,!c){if(de.call(n,"__wrapped__")||de.call(t,"__wrapped__"))return et(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);
|
||||
if(f!=H||!Ke.nodeClass&&(l(n)||l(t)))return d;var f=!Ke.argsObject&&ht(n)?re:n.constructor,s=!Ke.argsObject&&ht(t)?re:t.constructor;if(f!=s&&(!dt(f)||!(f instanceof f&&dt(s)&&s instanceof s)))return d}for(s=!u,u||(u=i()),o||(o=i()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var g=0,a=y;if(u.push(n),o.push(t),c){if(f=n.length,g=t.length,a=g==n.length,!a&&!r)return a;for(;g--;)if(c=f,s=t[g],r)for(;c--&&!(a=et(n[c],s,e,r,u,o)););else if(!(a=et(n[g],s,e,r,u,o)))break;return a}return rr(t,function(t,i,f){return de.call(f,i)?(g++,a=de.call(n,i)&&et(n[i],t,e,r,u,o)):void 0
|
||||
}),a&&!r&&rr(n,function(n,t,e){return de.call(e,t)?a=-1<--g:void 0}),s&&(p(u),p(o)),a}function ut(n,t,e,r,u){(Ge(t)?Ot:ur)(t,function(t,o){var a,i,f=t,l=n[o];if(t&&((i=Ge(t))||or(t))){for(f=r.length;f--;)if(a=r[f]==t){l=u[f];break}if(!a){var c;e&&(f=e(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?Ge(l)?l:[]:or(l)?l:{}),r.push(t),u.push(l),c||ut(l,t,e,r,u)}}else e&&(f=e(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);n[o]=l})}function ot(e,r,u){var a=-1,f=pt(),l=e?e.length:0,c=[],g=!r&&l>=C&&f===n,h=u||g?i():c;
|
||||
if(g){var v=o(h);v?(f=t,h=v):(g=d,h=u?h:(p(h),c))}for(;++a<l;){var v=e[a],y=u?u(v,a,e):v;(r?!a||h[h.length-1]!==y:0>f(h,y))&&((u||g)&&h.push(y),c.push(v))}return g?(p(h.b),s(h)):u&&p(h),c}function at(n){return function(t,e,r){var u={};if(e=_.createCallback(e,r,3),Ge(t)){r=-1;for(var o=t.length;++r<o;){var a=t[r];n(u,a,e(a,r,t),t)}}else nr(t,function(t,r,o){n(u,t,e(t,r,o),o)});return u}}function it(n,t,e,r,u,o){var a=1&t,i=2&t,f=4&t,l=8&t,c=16&t,p=32&t,s=n;if(!i&&!dt(n))throw new ae;c&&!e.length&&(t&=-17,c=e=d),p&&!r.length&&(t&=-33,p=r=d);
|
||||
var g=n&&n.__bindData__;if(g)return a&&!(1&g[1])&&(g[4]=u),!a&&1&g[1]&&(t|=8),f&&!(4&g[1])&&(g[5]=o),c&&_e.apply(g[2]||(g[2]=[]),e),p&&_e.apply(g[3]||(g[3]=[]),r),g[1]|=t,it.apply(m,g);if(!a||i||f||p||!(Ke.fastBind||Oe&&c))v=function(){var g=arguments,h=a?u:this;return c&&Ce.apply(g,e),p&&_e.apply(g,r),f&&g.length<o?(t|=16,it(n,l?t:-4&t,g,m,u,o)):(i&&(n=h[s]),this instanceof v?(h=lt(n.prototype),g=n.apply(h,g),_t(g)?g:h):n.apply(h,g))};else{if(c){var h=[u];_e.apply(h,e)}var v=c?Oe.apply(n,h):Oe.call(n,u)
|
||||
}return We(v,$e.call(arguments)),v}function ft(){var n=f();n.h=L,n.b=n.c=n.g=n.i="",n.e="t",n.j=y;for(var t,e=0;t=arguments[e];e++)for(var r in t)n[r]=t[r];e=n.a,n.d=/^[^,]+/.exec(e)[0],t=ne,e="return function("+e+"){",r="var n,t="+n.d+",E="+n.e+";if(!t)return E;"+n.i+";",n.b?(r+="var u=t.length;n=-1;if("+n.b+"){",Ke.unindexedChars&&(r+="if(s(t)){t=t.split('')}"),r+="while(++n<u){"+n.g+";}}else{"):Ke.nonEnumArgs&&(r+="var u=t.length;n=-1;if(u&&p(t)){while(++n<u){n+='';"+n.g+";}}else{"),Ke.enumPrototypes&&(r+="var G=typeof t=='function';"),Ke.enumErrorProps&&(r+="var F=false===k||t instanceof Error;");
|
||||
var u=[];if(Ke.enumPrototypes&&u.push('!(G&&n=="prototype")'),Ke.enumErrorProps&&u.push('!(F&&(n=="message"||n=="name"))'),n.j&&n.f)r+="var C=-1,D=B[typeof t]&&v(t),u=D?D.length:0;while(++C<u){n=D[C];",u.length&&(r+="if("+u.join("&&")+"){"),r+=n.g+";",u.length&&(r+="}"),r+="}";else if(r+="for(n in t){",n.j&&u.push("m.call(t, n)"),u.length&&(r+="if("+u.join("&&")+"){"),r+=n.g+";",u.length&&(r+="}"),r+="}",Ke.nonEnumShadows){for(r+="if(false!==A){var i=t.constructor,r=false===(i&&i.prototype),f=false===J?I:false===k?j:L.call(t),x=y[f];",k=0;7>k;k++)r+="n='"+n.h[k]+"';if((!(r&&x[n])&&m.call(t,n))",n.j||(r+="||(!x[n]&&t[n]!==A[n])"),r+="){"+n.g+"}";
|
||||
r+="}"}return(n.b||Ke.nonEnumArgs)&&(r+="}"),r+=n.c+";return E",t=t("d,j,k,m,o,p,q,s,v,A,B,y,I,J,L",e+r+"}"),s(n),t(Y,G,fe,de,j,ht,Ge,wt,n.f,le,X,qe,V,ce,xe)}function lt(n){return _t(n)?Se(n):{}}function ct(n){return Qe[n]}function pt(){var t=(t=_.indexOf)===zt?n:t;return t}function st(n){var t,e;return!n||xe.call(n)!=H||(t=n.constructor,dt(t)&&!(t instanceof t))||!Ke.argsClass&&ht(n)||!Ke.nodeClass&&l(n)?d:Ke.ownLast?(rr(n,function(n,t,r){return e=de.call(r,t),d}),e!==false):(rr(n,function(n,t){e=t
|
||||
}),e===v||de.call(n,e))}function gt(n){return Xe[n]}function ht(n){return n&&typeof n=="object"?xe.call(n)==T:d}function vt(n,t,e){var r=Me(n),u=r.length;for(t=Y(t,e,3);u--&&(e=r[u],!(t(n[e],e,n)===false)););return n}function yt(n){var t=[];return rr(n,function(n,e){dt(n)&&t.push(e)}),t.sort()}function mt(n){for(var t=-1,e=Me(n),r=e.length,u={};++t<r;){var o=e[t];u[n[o]]=o}return u}function dt(n){return typeof n=="function"}function _t(n){return!(!n||!X[typeof n])}function bt(n){return typeof n=="number"||xe.call(n)==M
|
||||
}function wt(n){return typeof n=="string"||xe.call(n)==V}function jt(n){for(var t=-1,e=Me(n),r=e.length,u=Xt(r);++t<r;)u[t]=n[e[t]];return u}function kt(n,t,e){var r=-1,u=pt(),o=n?n.length:0,a=d;return e=(0>e?Pe(0,o+e):e)||0,o&&typeof o=="number"?a=-1<(wt(n)?n.indexOf(t,e):u(n,t,e)):nr(n,function(n){return++r<e?void 0:!(a=n===t)}),a}function xt(n,t,e){var r=y;if(t=_.createCallback(t,e,3),Ge(n)){e=-1;for(var u=n.length;++e<u&&(r=!!t(n[e],e,n)););}else nr(n,function(n,e,u){return r=!!t(n,e,u)});return r
|
||||
}function Ct(n,t,e){var r=[];if(t=_.createCallback(t,e,3),Ge(n)){e=-1;for(var u=n.length;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}}else nr(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Et(n,t,e){if(t=_.createCallback(t,e,3),!Ge(n)){var r;return nr(n,function(n,e,u){return t(n,e,u)?(r=n,d):void 0}),r}e=-1;for(var u=n.length;++e<u;){var o=n[e];if(t(o,e,n))return o}}function Ot(n,t,e){if(t&&typeof e=="undefined"&&Ge(n)){e=-1;for(var r=n.length;++e<r&&t(n[e],e,n)!==false;);}else nr(n,t,e);return n
|
||||
}function St(n,t,e){var r=n,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Y(t,e,3),Ge(n))for(;u--&&t(n[u],u,n)!==false;);else{if(typeof u!="number")var o=Me(n),u=o.length;else Ke.unindexedChars&&wt(n)&&(r=n.split(""));nr(n,function(n,e,a){return e=o?o[--u]:--u,t(r[e],e,a)})}return n}function At(n,t,e){var r=-1,u=n?n.length:0,o=Xt(typeof u=="number"?u:0);if(t=_.createCallback(t,e,3),Ge(n))for(;++r<u;)o[r]=t(n[r],r,n);else nr(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function It(n,t,e){var u=-1/0,o=u;
|
||||
if(!t&&Ge(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i>o&&(o=i)}}else t=!t&&wt(n)?r:_.createCallback(t,e,3),nr(n,function(n,e,r){e=t(n,e,r),e>u&&(u=e,o=n)});return o}function Bt(n,t,e,r){var u=3>arguments.length;if(t=Y(t,r,4),Ge(n)){var o=-1,a=n.length;for(u&&(e=n[++o]);++o<a;)e=t(e,n[o],o,n)}else nr(n,function(n,r,o){e=u?(u=d,n):t(e,n,r,o)});return e}function Dt(n,t,e,r){var u=3>arguments.length;return t=Y(t,r,4),St(n,function(n,r,o){e=u?(u=d,n):t(e,n,r,o)}),e}function Pt(n){var t=-1,e=n?n.length:0,r=Xt(typeof e=="number"?e:0);
|
||||
return Ot(n,function(n){var e=Vt(++t);r[t]=r[e],r[e]=n}),r}function Nt(n,t,e){var r;if(t=_.createCallback(t,e,3),Ge(n)){e=-1;for(var u=n.length;++e<u&&!(r=t(n[e],e,n)););}else nr(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Rt(n){return n&&typeof n.length=="number"?Ke.unindexedChars&&wt(n)?n.split(""):g(n):jt(n)}function Ft(e){var r=-1,u=pt(),a=e?e.length:0,i=nt(arguments,y,y,1),f=[],l=a>=C&&u===n;if(l){var c=o(i);c?(u=t,i=c):l=d}for(;++r<a;)c=e[r],0>u(i,c)&&f.push(c);return l&&s(i),f
|
||||
}function $t(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=m){var o=-1;for(t=_.createCallback(t,e,3);++o<u&&t(n[o],o,n);)r++}else if(r=t,r==m||e)return n[0];return g(n,0,Ne(Pe(0,r),u))}}function zt(t,e,r){if(typeof r=="number"){var u=t?t.length:0;r=0>r?Pe(0,u+r):r||0}else if(r)return r=Tt(t,e),t[r]===e?r:-1;return n(t,e,r)}function Lt(n,t,e){if(typeof t!="number"&&t!=m){var r=0,u=-1,o=n?n.length:0;for(t=_.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=t==m||e?1:Pe(0,t);return g(n,r)
|
||||
}function Tt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?_.createCallback(e,r,1):Ht,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function qt(n,t,e,r){return typeof t!="boolean"&&t!=m&&(r=e,e=r&&r[t]===n?v:t,t=d),e!=m&&(e=_.createCallback(e,r,3)),ot(n,t,e)}function Kt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?It(lr(n,"length")):0,r=Xt(0>e?0:e);++t<e;)r[t]=lr(n,t);return r}function Wt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u
|
||||
}function Gt(n,t){return it(n,17,$e.call(arguments,2),m,t)}function Jt(n,t,e){function r(){g&&he(g),l=0,s=g=m,(h||p!==t)&&(c=+new Zt,a=n.apply(f,o))}function u(){var e=t-(new Zt-i);0<e?g=je(u,e):(e=h&&(!v||1<l),s&&he(s),l=0,s=g=m,e&&(c=+new Zt,a=n.apply(f,o)))}var o,a,i,f,l=0,c=0,p=d,s=m,g=m,h=y;if(!dt(n))throw new ae;if(t=Pe(0,t||0),e===y)var v=y,h=d;else _t(e)&&(v=e.leading,p="maxWait"in e&&Pe(t,e.maxWait||0),h="trailing"in e?e.trailing:h);return function(){if(o=arguments,i=+new Zt,f=this,l++,p===false)v&&2>l&&(a=n.apply(f,o));
|
||||
else{!s&&!v&&(c=i);var e=p-(i-c);0<e?s||(s=je(r,e)):(s&&(he(s),s=m),c=i,a=n.apply(f,o))}return!g&&t!==p&&(g=je(u,t)),a}}function Mt(n){if(!dt(n))throw new ae;var t=$e.call(arguments,1);return je(function(){n.apply(v,t)},1)}function Ht(n){return n}function Ut(n,t){var e=n,r=!t||dt(e);t||(e=b,t=n,n=_),Ot(yt(t),function(u){var o=n[u]=t[u];r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return _e.apply(r,arguments),r=o.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)})})}function Vt(n,t){n==m&&t==m&&(t=1),n=+n||0,t==m?(t=n,n=0):t=+t||0;
|
||||
var e=Fe();return n%1||t%1?n+Ne(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+ve(e*(t-n+1))}function Qt(){return this.__wrapped__}e=e?rt.defaults(Z.Object(),e,rt.pick(Z,z)):Z;var Xt=e.Array,Yt=e.Boolean,Zt=e.Date,ne=e.Function,te=e.Math,ee=e.Number,re=e.Object,ue=e.RegExp,oe=e.String,ae=e.TypeError,ie=[],fe=e.Error.prototype,le=re.prototype,ce=oe.prototype,pe=e._,se=ue("^"+oe(le.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ge=te.ceil,he=e.clearTimeout,ve=te.floor,ye=ne.prototype.toString,me=se.test(me=re.getPrototypeOf)&&me,de=le.hasOwnProperty,_e=ie.push,be=le.propertyIsEnumerable,we=e.setImmediate,je=e.setTimeout,ke=ie.splice,xe=le.toString,Ce=ie.unshift,Ee=function(){try{var n={},t=se.test(t=re.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),Oe=se.test(Oe=xe.bind)&&Oe,Se=se.test(Se=re.create)&&Se,Ae=se.test(Ae=Xt.isArray)&&Ae,Ie=e.isFinite,Be=e.isNaN,De=se.test(De=re.keys)&&De,Pe=te.max,Ne=te.min,Re=e.parseInt,Fe=te.random,$e=ie.slice,ze=se.test(e.attachEvent),Le=Oe&&!/\n|true/.test(Oe+ze),Te={};Te[q]=Xt,Te[K]=Yt,Te[W]=Zt,Te[J]=ne,Te[H]=re,Te[M]=ee,Te[U]=ue,Te[V]=oe;var qe={};qe[q]=qe[W]=qe[M]={constructor:y,toLocaleString:y,toString:y,valueOf:y},qe[K]=qe[V]={constructor:y,toString:y,valueOf:y},qe[G]=qe[J]=qe[U]={constructor:y,toString:y},qe[H]={constructor:y},function(){for(var n=L.length;n--;){var t,e=L[n];
|
||||
for(t in qe)de.call(qe,t)&&!de.call(qe[t],e)&&(qe[t][e]=d)}}(),b.prototype=_.prototype;var Ke=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},e=[];n.prototype={valueOf:1};for(var r in new n)e.push(r);for(r in arguments);Ke.argsObject=arguments.constructor==re&&!(arguments instanceof Xt),Ke.argsClass=xe.call(arguments)==T,Ke.enumErrorProps=be.call(fe,"message")||be.call(fe,"name"),Ke.enumPrototypes=be.call(n,"prototype"),Ke.fastBind=Oe&&!Le,Ke.ownLast="x"!=e[0],Ke.nonEnumArgs=0!=r,Ke.nonEnumShadows=!/valueOf/.test(e),Ke.spliceObjects=(ie.splice.call(t,0,1),!t[0]),Ke.unindexedChars="xx"!="x"[0]+re("x")[0];
|
||||
try{Ke.nodeClass=!(xe.call(document)==H&&!({toString:0}+""))}catch(u){Ke.nodeClass=y}}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:P,variable:"",imports:{_:_}},Se||(lt=function(n){if(_t(n)){c.prototype=n;var t=new c;c.prototype=m}return t||{}});var We=Ee?function(n,t){var e=f();e.value=t,Ee(n,"__bindData__",e),s(e)}:c;Ke.argsClass||(ht=function(n){return n&&typeof n=="object"?de.call(n,"callee"):d});var Ge=Ae||function(n){return n&&typeof n=="object"?xe.call(n)==q:d
|
||||
},Je=ft({a:"z",e:"[]",i:"if(!(B[typeof z]))return E",g:"E.push(n)"}),Me=De?function(n){return _t(n)?Ke.enumPrototypes&&typeof n=="function"||Ke.nonEnumArgs&&n.length&&ht(n)?Je(n):De(n):[]}:Je,He={a:"g,e,K",i:"e=e&&typeof K=='undefined'?e:d(e,K,3)",b:"typeof u=='number'",v:Me,g:"if(e(t[n],n,g)===false)return E"},Ue={a:"z,H,l",i:"var a=arguments,b=0,c=typeof l=='number'?2:a.length;while(++b<c){t=a[b];if(t&&B[typeof t]){",v:Me,g:"if(typeof E[n]=='undefined')E[n]=t[n]",c:"}}"},Ve={i:"if(!B[typeof t])return E;"+He.i,b:d},Qe={"&":"&","<":"<",">":">",'"':""","'":"'"},Xe=mt(Qe),Ye=ue("("+Me(Xe).join("|")+")","g"),Ze=ue("["+Me(Qe).join("")+"]","g"),nr=ft(He),tr=ft(Ue,{i:Ue.i.replace(";",";if(c>3&&typeof a[c-2]=='function'){var e=d(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){e=a[--c]}"),g:"E[n]=e?e(E[n],t[n]):t[n]"}),er=ft(Ue),rr=ft(He,Ve,{j:d}),ur=ft(He,Ve);
|
||||
dt(/x/)&&(dt=function(n){return typeof n=="function"&&xe.call(n)==J});var or=me?function(n){if(!n||xe.call(n)!=H||!Ke.argsClass&&ht(n))return d;var t=n.valueOf,e=typeof t=="function"&&(e=me(t))&&me(e);return e?n==e||me(n)==e:st(n)}:st,ar=at(function(n,t,e){de.call(n,e)?n[e]++:n[e]=1}),ir=at(function(n,t,e){(de.call(n,e)?n[e]:n[e]=[]).push(t)}),fr=at(function(n,t,e){n[e]=t}),lr=At;Le&&tt&&typeof we=="function"&&(Mt=function(n){if(!dt(n))throw new ae;return we.apply(e,arguments)});var cr=8==Re(O+"08")?Re:function(n,t){return Re(wt(n)?n.replace(N,""):n,t||0)
|
||||
};return _.after=function(n,t){if(!dt(t))throw new ae;return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=tr,_.at=function(n){var t=arguments,e=-1,r=nt(t,y,d,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Xt(t);for(Ke.unindexedChars&&wt(n)&&(n=n.split(""));++e<t;)u[e]=n[r[e]];return u},_.bind=Gt,_.bindAll=function(n){for(var t=1<arguments.length?nt(arguments,y,d,1):yt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=it(n[u],1,m,m,n)}return n},_.bindKey=function(n,t){return it(t,19,$e.call(arguments,2),m,n)
|
||||
},_.chain=function(n){return n=new b(n),n.__chain__=y,n},_.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},_.compose=function(){for(var n=arguments,t=n.length||1;t--;)if(!dt(n[t]))throw new ae;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},_.countBy=ar,_.createCallback=function(n,t,e){var r=typeof n;if(n==m||"function"==r)return Y(n,t,e);if("object"!=r)return function(t){return t[n]};var u=Me(n),o=u[0],a=n[o];
|
||||
return 1!=u.length||a!==a||_t(a)?function(t){for(var e=u.length,r=d;e--&&(r=et(t[u[e]],n[u[e]],m,y)););return r}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},_.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,it(n,4,m,m,m,t)},_.debounce=Jt,_.defaults=er,_.defer=Mt,_.delay=function(n,t){if(!dt(n))throw new ae;var e=$e.call(arguments,2);return je(function(){n.apply(v,e)},t)},_.difference=Ft,_.filter=Ct,_.flatten=function(n,t,e,r){return typeof t!="boolean"&&t!=m&&(r=e,e=r&&r[t]===n?v:t,t=d),e!=m&&(n=At(n,e,r)),nt(n,t)
|
||||
},_.forEach=Ot,_.forEachRight=St,_.forIn=rr,_.forInRight=function(n,t,e){var r=[];rr(n,function(n,t){r.push(t,n)});var u=r.length;for(t=Y(t,e,3);u--&&t(r[u--],r[u],n)!==false;);return n},_.forOwn=ur,_.forOwnRight=vt,_.functions=yt,_.groupBy=ir,_.indexBy=fr,_.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=m){var o=u;for(t=_.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else r=t==m||e?1:t||r;return g(n,0,Ne(Pe(0,u-r),u))},_.intersection=function(e){for(var r=arguments,u=r.length,a=-1,f=i(),l=-1,c=pt(),g=e?e.length:0,h=[],v=i();++a<u;){var y=r[a];
|
||||
f[a]=c===n&&(y?y.length:0)>=C&&o(a?r[a]:v)}n:for(;++l<g;){var m=f[0],y=e[l];if(0>(m?t(m,y):c(v,y))){for(a=u,(m||v).push(y);--a;)if(m=f[a],0>(m?t(m,y):c(r[a],y)))continue n;h.push(y)}}for(;u--;)(m=f[u])&&s(m);return p(f),p(v),h},_.invert=mt,_.invoke=function(n,t){var e=$e.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Xt(typeof o=="number"?o:0);return Ot(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},_.keys=Me,_.map=At,_.max=It,_.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):x+arguments[0];
|
||||
return de.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!dt(n))throw new ae;return e.cache={},e},_.merge=function(n){var t=arguments,e=2;if(!_t(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=Y(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=$e.call(arguments,1,e),u=-1,o=i(),a=i();++u<e;)ut(n,t[u],r,o,a);return p(o),p(a),n},_.min=function(n,t,e){var u=1/0,o=u;if(!t&&Ge(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&wt(n)?r:_.createCallback(t,e,3),nr(n,function(n,e,r){e=t(n,e,r),e<u&&(u=e,o=n)
|
||||
});return o},_.omit=function(n,t,e){var r=pt(),u=typeof t=="function",o={};if(u)t=_.createCallback(t,e,3);else var a=nt(arguments,y,d,1);return rr(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)}),o},_.once=function(n){var t,e;if(!dt(n))throw new ae;return function(){return t?e:(t=y,e=n.apply(this,arguments),n=m,e)}},_.pairs=function(n){for(var t=-1,e=Me(n),r=e.length,u=Xt(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},_.partial=function(n){return it(n,16,$e.call(arguments,1))},_.partialRight=function(n){return it(n,32,m,$e.call(arguments,1))
|
||||
},_.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=nt(arguments,y,d,1),a=_t(n)?o.length:0;++u<a;){var i=o[u];i in n&&(r[i]=n[i])}else t=_.createCallback(t,e,3),rr(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},_.pluck=lr,_.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(ke.call(n,o--,1),u--);return n},_.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:+e||1,t==m&&(t=n,n=0);var r=-1;t=Pe(0,ge((t-n)/(e||1)));
|
||||
for(var u=Xt(t);++r<t;)u[r]=n,n+=e;return u},_.reject=function(n,t,e){return t=_.createCallback(t,e,3),Ct(n,function(n,e,r){return!t(n,e,r)})},_.remove=function(n,t,e){var r=-1,u=n?n.length:0,o=[];for(t=_.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(o.push(e),ke.call(n,r--,1),u--);return o},_.rest=Lt,_.shuffle=Pt,_.sortBy=function(n,t,e){var r=-1,o=n?n.length:0,a=Xt(typeof o=="number"?o:0);for(t=_.createCallback(t,e,3),Ot(n,function(n,e,u){var o=a[++r]=f();o.l=t(n,e,u),o.m=r,o.n=n}),o=a.length,a.sort(u);o--;)n=a[o],a[o]=n.n,s(n);
|
||||
return a},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,e){var r=y,u=y;if(!dt(n))throw new ae;return e===false?r=d:_t(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=f(),e.leading=r,e.maxWait=t,e.trailing=u,n=Jt(n,t,e),s(e),n},_.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Xt(n);for(t=Y(t,e,1);++r<n;)u[r]=t(r);return u},_.toArray=Rt,_.transform=function(n,t,e,r){var u=Ge(n);return t=Y(t,r,4),e==m&&(u?e=[]:(r=n&&n.constructor,e=lt(r&&r.prototype))),(u?nr:ur)(n,function(n,r,u){return t(e,n,r,u)
|
||||
}),e},_.union=function(){return ot(nt(arguments,y,y))},_.uniq=qt,_.values=jt,_.where=Ct,_.without=function(n){return Ft(n,$e.call(arguments,1))},_.wrap=function(n,t){if(!dt(t))throw new ae;return function(){var e=[n];return _e.apply(e,arguments),t.apply(this,e)}},_.zip=Kt,_.zipObject=Wt,_.collect=At,_.drop=Lt,_.each=Ot,_.o=St,_.extend=tr,_.methods=yt,_.object=Wt,_.select=Ct,_.tail=Lt,_.unique=qt,_.unzip=Kt,Ut(_),_.clone=function(n,t,e,r){return typeof t!="boolean"&&t!=m&&(r=e,e=t,t=d),E(n,t,typeof e=="function"&&Y(e,r,1))
|
||||
},_.cloneDeep=function(n,t,e){return E(n,y,typeof t=="function"&&Y(t,e,1))},_.contains=kt,_.escape=function(n){return n==m?"":oe(n).replace(Ze,ct)},_.every=xt,_.find=Et,_.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=_.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},_.findKey=function(n,t,e){var r;return t=_.createCallback(t,e,3),ur(n,function(n,e,u){return t(n,e,u)?(r=e,d):void 0}),r},_.findLast=function(n,t,e){var r;return t=_.createCallback(t,e,3),St(n,function(n,e,u){return t(n,e,u)?(r=n,d):void 0
|
||||
}),r},_.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=_.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},_.findLastKey=function(n,t,e){var r;return t=_.createCallback(t,e,3),vt(n,function(n,e,u){return t(n,e,u)?(r=e,d):void 0}),r},_.has=function(n,t){return n?de.call(n,t):d},_.identity=Ht,_.indexOf=zt,_.isArguments=ht,_.isArray=Ge,_.isBoolean=function(n){return n===y||n===false||xe.call(n)==K},_.isDate=function(n){return n?typeof n=="object"&&xe.call(n)==W:d},_.isElement=function(n){return n?1===n.nodeType:d
|
||||
},_.isEmpty=function(n){var t=y;if(!n)return t;var e=xe.call(n),r=n.length;return e==q||e==V||(Ke.argsClass?e==T:ht(n))||e==H&&typeof r=="number"&&dt(n.splice)?!r:(ur(n,function(){return t=d}),t)},_.isEqual=function(n,t,e,r){return et(n,t,typeof e=="function"&&Y(e,r,2))},_.isFinite=function(n){return Ie(n)&&!Be(parseFloat(n))},_.isFunction=dt,_.isNaN=function(n){return bt(n)&&n!=+n},_.isNull=function(n){return n===m},_.isNumber=bt,_.isObject=_t,_.isPlainObject=or,_.isRegExp=function(n){return n&&X[typeof n]?xe.call(n)==U:d
|
||||
},_.isString=wt,_.isUndefined=function(n){return typeof n=="undefined"},_.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Pe(0,r+e):Ne(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},_.mixin=Ut,_.noConflict=function(){return e._=pe,this},_.parseInt=cr,_.random=Vt,_.reduce=Bt,_.reduceRight=Dt,_.result=function(n,t){var e=n?n[t]:v;return dt(e)?n[t]():e},_.runInContext=h,_.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Me(n).length},_.some=Nt,_.sortedIndex=Tt,_.template=function(n,t,e){var r=_.templateSettings;
|
||||
n||(n=""),e=er({},e,r);var u,o=er({},e.imports,r.imports),r=Me(o),o=jt(o),i=0,f=e.interpolate||R,l="__p+='",f=ue((e.escape||R).source+"|"+f.source+"|"+(f===P?B:R).source+"|"+(e.evaluate||R).source+"|$","g");n.replace(f,function(t,e,r,o,f,c){return r||(r=o),l+=n.slice(i,c).replace($,a),e&&(l+="'+__e("+e+")+'"),f&&(u=y,l+="';"+f+";__p+='"),r&&(l+="'+((__t=("+r+"))==null?'':__t)+'"),i=c+t.length,t}),l+="';\n",f=e=e.variable,f||(e="obj",l="with("+e+"){"+l+"}"),l=(u?l.replace(S,""):l).replace(A,"$1").replace(I,"$1;"),l="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";
|
||||
try{var c=ne(r,"return "+l).apply(v,o)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},_.unescape=function(n){return n==m?"":oe(n).replace(Ye,gt)},_.uniqueId=function(n){var t=++w;return oe(n==m?"":n)+t},_.all=xt,_.any=Nt,_.detect=Et,_.findWhere=Et,_.foldl=Bt,_.foldr=Dt,_.include=kt,_.inject=Bt,ur(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return _e.apply(t,arguments),t=n.apply(_,t),e?new b(t,e):t})}),_.first=$t,_.last=function(n,t,e){if(n){var r=0,u=n.length;
|
||||
if(typeof t!="number"&&t!=m){var o=u;for(t=_.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,r==m||e)return n[u-1];return g(n,Pe(0,u-r))}},_.sample=function(n,t,e){return Ge(n)||(n=Rt(n)),t==m||e?n[Vt(n.length-1)]:(n=Pt(n),n.length=Ne(Pe(0,t),n.length),n)},_.take=$t,_.head=$t,ur(_,function(n,t){var e="sample"!==t;_.prototype[t]||(_.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||t!=m&&(!r||e&&typeof t=="function")?new b(o,u):o})}),_.VERSION="1.3.1",_.prototype.chain=function(){return this.__chain__=y,this
|
||||
},_.prototype.toString=function(){return oe(this.__wrapped__)},_.prototype.value=Qt,_.prototype.valueOf=Qt,nr(["join","pop","shift"],function(n){var t=ie[n];_.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new b(e,n):e}}),nr(["push","reverse","sort","unshift"],function(n){var t=ie[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),nr(["concat","slice","splice"],function(n){var t=ie[n];_.prototype[n]=function(){return new b(t.apply(this.__wrapped__,arguments),this.__chain__)
|
||||
}}),Ke.spliceObjects||nr(["pop","shift","splice"],function(n){var t=ie[n],e="splice"==n;_.prototype[n]=function(){var n=this.__chain__,r=this.__wrapped__,u=t.apply(r,arguments);return 0===r.length&&delete r[0],n||e?new b(u,n):u}}),_}var v,y=!0,m=null,d=!1,_=[],b=[],w=0,j={},x=+new Date+"",C=75,E=40,O=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",S=/\b__p\+='';/g,A=/\b(__p\+=)''\+/g,I=/(__e\(.*?\)|\b__t\))\+'';/g,B=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,D=/\w*$/,P=/<%=([\s\S]+?)%>/g,N=RegExp("^["+O+"]*0+(?=.$)"),R=/($^)/,F=(F=/\bthis\b/)&&F.test(h)&&F,$=/['\n\r\t\u2028\u2029\\]/g,z="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),L="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),T="[object Arguments]",q="[object Array]",K="[object Boolean]",W="[object Date]",G="[object Error]",J="[object Function]",M="[object Number]",H="[object Object]",U="[object RegExp]",V="[object String]",Q={};
|
||||
Q[J]=d,Q[T]=Q[q]=Q[K]=Q[W]=Q[M]=Q[H]=Q[U]=Q[V]=y;var X={"boolean":d,"function":y,object:y,number:d,string:d,undefined:d},Y={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Z=X[typeof window]&&window||this,nt=X[typeof exports]&&exports,tt=X[typeof module]&&module&&module.exports==nt&&module,et=X[typeof global]&&global;!et||et.global!==et&&et.window!==et||(Z=et);var rt=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Z._=rt, define(function(){return rt
|
||||
})):nt&&!nt.nodeType?tt?(tt.exports=rt)._=rt:nt._=rt:Z._=rt}.call(this);
|
||||
;(function(){function n(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function t(t,e){var r=typeof e;if(t=t.k,"boolean"==r||null==e)return t[e]?0:-1;"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:b+e;return t=(t=t[r])&&t[u],"object"==r?t&&-1<n(t,e)?0:-1:t?0:-1}function e(n){var t=this.k,e=typeof n;if("boolean"==e||null==n)t[n]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:b+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=!0
|
||||
}}function r(n){return n.charCodeAt(0)}function u(n,t){var e=n.l,r=t.l;if(e!==r){if(e>r||typeof e=="undefined")return 1;if(e<r||typeof r=="undefined")return-1}return n.m-t.m}function o(n){var t=-1,r=n.length,u=n[0],o=n[r-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return!1;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=!1,o=l(),o.b=n,o.k=u,o.push=e;++t<r;)o.push(n[t]);return o}function a(n){return"\\"+V[n]}function i(){return y.pop()||[]}function l(){return m.pop()||{a:"",b:null,c:"",k:null,configurable:!1,l:null,enumerable:!1,"false":!1,d:"",m:0,e:"",v:null,leading:!1,g:"",maxWait:0,"null":!1,number:null,z:null,push:null,h:null,string:null,i:"",trailing:!1,"true":!1,undefined:!1,j:!1,n:null,writable:!1}
|
||||
}function f(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function c(){}function p(n){n.length=0,y.length<j&&y.push(n)}function s(n){var t=n.k;t&&s(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=null,m.length<j&&m.push(n)}function g(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function h(e){function y(n){return n&&typeof n=="object"&&!qe(n)&&ve.call(n,"__wrapped__")?n:new m(n)}function m(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
}function j(n,t,e,r,u){var o=n;if(e){if(o=e(o),typeof o!="undefined")return o;o=n}var a=yt(o);if(a){var l=we.call(o);if(!H[l]||!Le.nodeClass&&f(o))return o;var c=qe(o)}if(!a||!t)return a?c?g(o):Ye({},o):o;switch(a=$e[l],l){case L:case T:return new a(+o);case W:case M:return new a(o);case J:return a(o.source,A.exec(o))}l=!r,r||(r=i()),u||(u=i());for(var s=r.length;s--;)if(r[s]==n)return u[s];return o=c?a(o.length):{},c&&(ve.call(n,"index")&&(o.index=n.index),ve.call(n,"input")&&(o.input=n.input)),r.push(n),u.push(o),(c?Xe:tr)(n,function(n,a){o[a]=j(n,t,e,r,u)
|
||||
}),l&&(p(r),p(u)),o}function V(n,t,e){if(typeof n!="function")return Gt;if(typeof t=="undefined")return n;var r=!n.name||n.__bindData__;if(typeof r=="undefined"&&(r=!P||P.test(ge.call(n)),Te(n,r)),true!==r&&!(r&&1&r[1]))return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}}return qt(n,t)}function X(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var a=n[r];
|
||||
a&&typeof a=="object"&&(qe(a)||pt(a))?ye.apply(o,t?a:X(a,t,e)):e||o.push(a)}return o}function Z(n,t,e,r,u,o){if(e){var a=e(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&!(n&&U[typeof n]||t&&U[typeof t]))return!1;if(null==n||null==t)return n===t;var l=we.call(n),c=we.call(t);if(l==$&&(l=G),c==$&&(c=G),l!=c)return!1;switch(l){case L:case T:return+n==+t;case W:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case J:case M:return n==ee(t)}if(c=l==z,!c){if(ve.call(n,"__wrapped__")||ve.call(t,"__wrapped__"))return Z(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);
|
||||
if(l!=G||!Le.nodeClass&&(f(n)||f(t)))return!1;var l=!Le.argsObject&&pt(n)?ne:n.constructor,s=!Le.argsObject&&pt(t)?ne:t.constructor;if(l!=s&&!(vt(l)&&l instanceof l&&vt(s)&&s instanceof s))return!1}for(s=!u,u||(u=i()),o||(o=i()),l=u.length;l--;)if(u[l]==n)return o[l]==t;var g=0,a=!0;if(u.push(n),o.push(t),c){if(l=n.length,g=t.length,a=g==n.length,!a&&!r)return a;for(;g--;)if(c=l,s=t[g],r)for(;c--&&!(a=Z(n[c],s,e,r,u,o)););else if(!(a=Z(n[g],s,e,r,u,o)))break;return a}return nr(t,function(t,i,l){return ve.call(l,i)?(g++,a=ve.call(n,i)&&Z(n[i],t,e,r,u,o)):void 0
|
||||
}),a&&!r&&nr(n,function(n,t,e){return ve.call(e,t)?a=-1<--g:void 0}),s&&(p(u),p(o)),a}function tt(n,t,e,r,u){(qe(t)?xt:tr)(t,function(t,o){var a,i,l=t,f=n[o];if(t&&((i=qe(t))||er(t))){for(l=r.length;l--;)if(a=r[l]==t){f=u[l];break}if(!a){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?qe(f)?f:[]:er(f)?f:{}),r.push(t),u.push(f),c||tt(f,t,e,r,u)}}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function et(e,r,u){var a=-1,l=lt(),f=e?e.length:0,c=[],g=!r&&f>=w&&l===n,h=u||g?i():c;
|
||||
if(g){var v=o(h);v?(l=t,h=v):(g=!1,h=u?h:(p(h),c))}for(;++a<f;){var v=e[a],y=u?u(v,a,e):v;(r?!a||h[h.length-1]!==y:0>l(h,y))&&((u||g)&&h.push(y),c.push(v))}return g?(p(h.b),s(h)):u&&p(h),c}function rt(n){return function(t,e,r){var u={};if(e=y.createCallback(e,r,3),qe(t)){r=-1;for(var o=t.length;++r<o;){var a=t[r];n(u,a,e(a,r,t),t)}}else Xe(t,function(t,r,o){n(u,t,e(t,r,o),o)});return u}}function ut(n,t,e,r,u,o){var a=1&t,i=2&t,l=4&t,f=8&t,c=16&t,p=32&t,s=n;if(!i&&!vt(n))throw new re;c&&!e.length&&(t&=-17,c=e=!1),p&&!r.length&&(t&=-33,p=r=!1);
|
||||
var g=n&&n.__bindData__;if(g)return!a||1&g[1]||(g[4]=u),!a&&1&g[1]&&(t|=8),!l||4&g[1]||(g[5]=o),c&&ye.apply(g[2]||(g[2]=[]),e),p&&ye.apply(g[3]||(g[3]=[]),r),g[1]|=t,ut.apply(null,g);if(!a||i||l||p||!(Le.fastBind||xe&&c))v=function(){var g=arguments,h=a?u:this;return c&&je.apply(g,e),p&&ye.apply(g,r),l&&g.length<o?(t|=16,ut(n,f?t:-4&t,g,null,u,o)):(i&&(n=h[s]),this instanceof v?(h=at(n.prototype),g=n.apply(h,g),yt(g)?g:h):n.apply(h,g))};else{if(c){var h=[u];ye.apply(h,e)}var v=c?xe.apply(n,h):xe.call(n,u)
|
||||
}return Te(v,Ne.call(arguments)),v}function ot(){var n=l();n.h=F,n.b=n.c=n.g=n.i="",n.e="t",n.j=!0;for(var t,e=0;t=arguments[e];e++)for(var r in t)n[r]=t[r];e=n.a,n.d=/^[^,]+/.exec(e)[0],t=Xt,e="return function("+e+"){",r="var n,t="+n.d+",E="+n.e+";if(!t)return E;"+n.i+";",n.b?(r+="var u=t.length;n=-1;if("+n.b+"){",Le.unindexedChars&&(r+="if(s(t)){t=t.split('')}"),r+="while(++n<u){"+n.g+";}}else{"):Le.nonEnumArgs&&(r+="var u=t.length;n=-1;if(u&&p(t)){while(++n<u){n+='';"+n.g+";}}else{"),Le.enumPrototypes&&(r+="var G=typeof t=='function';"),Le.enumErrorProps&&(r+="var F=t===k||t instanceof Error;");
|
||||
var u=[];if(Le.enumPrototypes&&u.push('!(G&&n=="prototype")'),Le.enumErrorProps&&u.push('!(F&&(n=="message"||n=="name"))'),n.j&&n.f)r+="var C=-1,D=B[typeof t]&&v(t),u=D?D.length:0;while(++C<u){n=D[C];",u.length&&(r+="if("+u.join("&&")+"){"),r+=n.g+";",u.length&&(r+="}"),r+="}";else if(r+="for(n in t){",n.j&&u.push("m.call(t, n)"),u.length&&(r+="if("+u.join("&&")+"){"),r+=n.g+";",u.length&&(r+="}"),r+="}",Le.nonEnumShadows){for(r+="if(t!==A){var i=t.constructor,r=t===(i&&i.prototype),f=t===J?I:t===k?j:L.call(t),x=y[f];",k=0;7>k;k++)r+="n='"+n.h[k]+"';if((!(r&&x[n])&&m.call(t,n))",n.j||(r+="||(!x[n]&&t[n]!==A[n])"),r+="){"+n.g+"}";
|
||||
r+="}"}return(n.b||Le.nonEnumArgs)&&(r+="}"),r+=n.c+";return E",t=t("d,j,k,m,o,p,q,s,v,A,B,y,I,J,L",e+r+"}"),s(n),t(V,q,oe,ve,_,pt,qe,dt,n.f,ae,U,ze,M,ie,we)}function at(n){return yt(n)?Ce(n):{}}function it(n){return He[n]}function lt(){var t=(t=y.indexOf)===Rt?n:t;return t}function ft(n){var t,e;return!n||we.call(n)!=G||(t=n.constructor,vt(t)&&!(t instanceof t))||!Le.argsClass&&pt(n)||!Le.nodeClass&&f(n)?!1:Le.ownLast?(nr(n,function(n,t,r){return e=ve.call(r,t),!1}),false!==e):(nr(n,function(n,t){e=t
|
||||
}),e===v||ve.call(n,e))}function ct(n){return Ue[n]}function pt(n){return n&&typeof n=="object"?we.call(n)==$:!1}function st(n,t,e){var r=We(n),u=r.length;for(t=V(t,e,3);u--&&(e=r[u],false!==t(n[e],e,n)););return n}function gt(n){var t=[];return nr(n,function(n,e){vt(n)&&t.push(e)}),t.sort()}function ht(n){for(var t=-1,e=We(n),r=e.length,u={};++t<r;){var o=e[t];u[n[o]]=o}return u}function vt(n){return typeof n=="function"}function yt(n){return!(!n||!U[typeof n])}function mt(n){return typeof n=="number"||we.call(n)==W
|
||||
}function dt(n){return typeof n=="string"||we.call(n)==M}function _t(n){for(var t=-1,e=We(n),r=e.length,u=Ut(r);++t<r;)u[t]=n[e[t]];return u}function bt(n,t,e){var r=-1,u=lt(),o=n?n.length:0,a=!1;return e=(0>e?Ie(0,o+e):e)||0,o&&typeof o=="number"?a=-1<(dt(n)?n.indexOf(t,e):u(n,t,e)):Xe(n,function(n){return++r<e?void 0:!(a=n===t)}),a}function wt(n,t,e){var r=!0;if(t=y.createCallback(t,e,3),qe(n)){e=-1;for(var u=n.length;++e<u&&(r=!!t(n[e],e,n)););}else Xe(n,function(n,e,u){return r=!!t(n,e,u)});return r
|
||||
}function jt(n,t,e){var r=[];if(t=y.createCallback(t,e,3),qe(n)){e=-1;for(var u=n.length;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}}else Xe(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function kt(n,t,e){if(t=y.createCallback(t,e,3),!qe(n)){var r;return Xe(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r}e=-1;for(var u=n.length;++e<u;){var o=n[e];if(t(o,e,n))return o}}function xt(n,t,e){if(t&&typeof e=="undefined"&&qe(n)){e=-1;for(var r=n.length;++e<r&&false!==t(n[e],e,n););}else Xe(n,t,e);return n
|
||||
}function Ct(n,t,e){var r=n,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:V(t,e,3),qe(n))for(;u--&&false!==t(n[u],u,n););else{if(typeof u!="number")var o=We(n),u=o.length;else Le.unindexedChars&&dt(n)&&(r=n.split(""));Xe(n,function(n,e,a){return e=o?o[--u]:--u,t(r[e],e,a)})}return n}function Et(n,t,e){var r=-1,u=n?n.length:0,o=Ut(typeof u=="number"?u:0);if(t=y.createCallback(t,e,3),qe(n))for(;++r<u;)o[r]=t(n[r],r,n);else Xe(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function Ot(n,t,e){var u=-1/0,o=u;
|
||||
if(!t&&qe(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i>o&&(o=i)}}else t=!t&&dt(n)?r:y.createCallback(t,e,3),Xe(n,function(n,e,r){e=t(n,e,r),e>u&&(u=e,o=n)});return o}function St(n,t,e,r){var u=3>arguments.length;if(t=V(t,r,4),qe(n)){var o=-1,a=n.length;for(u&&(e=n[++o]);++o<a;)e=t(e,n[o],o,n)}else Xe(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)});return e}function At(n,t,e,r){var u=3>arguments.length;return t=V(t,r,4),Ct(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)}),e}function It(n){var t=-1,e=n?n.length:0,r=Ut(typeof e=="number"?e:0);
|
||||
return xt(n,function(n){var e=Mt(++t);r[t]=r[e],r[e]=n}),r}function Bt(n,t,e){var r;if(t=y.createCallback(t,e,3),qe(n)){e=-1;for(var u=n.length;++e<u&&!(r=t(n[e],e,n)););}else Xe(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Dt(n){return n&&typeof n.length=="number"?Le.unindexedChars&&dt(n)?n.split(""):g(n):_t(n)}function Pt(e){var r=-1,u=lt(),a=e?e.length:0,i=X(arguments,!0,!0,1),l=[],f=a>=w&&u===n;if(f){var c=o(i);c?(u=t,i=c):f=!1}for(;++r<a;)c=e[r],0>u(i,c)&&l.push(c);return f&&s(i),l
|
||||
}function Nt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=y.createCallback(t,e,3);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return g(n,0,Be(Ie(0,r),u))}}function Rt(t,e,r){if(typeof r=="number"){var u=t?t.length:0;r=0>r?Ie(0,u+r):r||0}else if(r)return r=$t(t,e),t[r]===e?r:-1;return n(t,e,r)}function Ft(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=y.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:Ie(0,t);
|
||||
return g(n,r)}function $t(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?y.createCallback(e,r,1):Gt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function zt(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?v:t,t=!1),null!=e&&(e=y.createCallback(e,r,3)),et(n,t,e)}function Lt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Ot(ar(n,"length")):0,r=Ut(0>e?0:e);++t<e;)r[t]=ar(n,t);return r}function Tt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])
|
||||
}return u}function qt(n,t){return 2<arguments.length?ut(n,17,Ne.call(arguments,2),null,t):ut(n,1,null,null,t)}function Kt(n,t,e){var r,u,o,a,i=0,l=0,f=!1,c=null,p=null,s=!0;if(!vt(n))throw new re;if(t=Ie(0,t||0),true===e)var g=!0,s=!1;else yt(e)&&(g=e.leading,f="maxWait"in e&&Ie(t,e.maxWait||0),s="trailing"in e?e.trailing:s);var h=function(){var e=t-(new Qt-o);0<e?p=_e(h,e):(e=s&&(!g||1<i),c&&pe(c),i=0,c=p=null,e&&(l=+new Qt,u=n.apply(a,r)))},v=function(){p&&pe(p),i=0,c=p=null,(s||f!==t)&&(l=+new Qt,u=n.apply(a,r))
|
||||
};return function(){if(r=arguments,o=+new Qt,a=this,i++,false===f)g&&2>i&&(u=n.apply(a,r));else{c||g||(l=o);var e=f-(o-l);0<e?c||(c=_e(v,e)):(c&&(pe(c),c=null),l=o,u=n.apply(a,r))}return p||t===f||(p=_e(h,t)),u}}function Wt(n){if(!vt(n))throw new re;var t=Ne.call(arguments,1);return _e(function(){n.apply(v,t)},1)}function Gt(n){return n}function Jt(n,t){var e=n,r=!t||vt(e);t||(e=m,t=n,n=y),xt(gt(t),function(u){var o=n[u]=t[u];r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return ye.apply(r,arguments),r=o.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)
|
||||
})})}function Mt(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var e=Pe();return n%1||t%1?n+Be(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+se(e*(t-n+1))}function Ht(){return this.__wrapped__}e=e?nt.defaults(Q.Object(),e,nt.pick(Q,R)):Q;var Ut=e.Array,Vt=e.Boolean,Qt=e.Date,Xt=e.Function,Yt=e.Math,Zt=e.Number,ne=e.Object,te=e.RegExp,ee=e.String,re=e.TypeError,ue=[],oe=e.Error.prototype,ae=ne.prototype,ie=ee.prototype,le=e._,fe=te("^"+ee(ae.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ce=Yt.ceil,pe=e.clearTimeout,se=Yt.floor,ge=Xt.prototype.toString,he=fe.test(he=ne.getPrototypeOf)&&he,ve=ae.hasOwnProperty,ye=ue.push,me=ae.propertyIsEnumerable,de=e.setImmediate,_e=e.setTimeout,be=ue.splice,we=ae.toString,je=ue.unshift,ke=function(){try{var n={},t=fe.test(t=ne.defineProperty)&&t,e=t(n,n,n)&&t
|
||||
}catch(r){}return e}(),xe=fe.test(xe=we.bind)&&xe,Ce=fe.test(Ce=ne.create)&&Ce,Ee=fe.test(Ee=Ut.isArray)&&Ee,Oe=e.isFinite,Se=e.isNaN,Ae=fe.test(Ae=ne.keys)&&Ae,Ie=Yt.max,Be=Yt.min,De=e.parseInt,Pe=Yt.random,Ne=ue.slice,Re=fe.test(e.attachEvent),Fe=xe&&!/\n|true/.test(xe+Re),$e={};$e[z]=Ut,$e[L]=Vt,$e[T]=Qt,$e[K]=Xt,$e[G]=ne,$e[W]=Zt,$e[J]=te,$e[M]=ee;var ze={};ze[z]=ze[T]=ze[W]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},ze[L]=ze[M]={constructor:!0,toString:!0,valueOf:!0},ze[q]=ze[K]=ze[J]={constructor:!0,toString:!0},ze[G]={constructor:!0},function(){for(var n=F.length;n--;){var t,e=F[n];
|
||||
for(t in ze)ve.call(ze,t)&&!ve.call(ze[t],e)&&(ze[t][e]=!1)}}(),m.prototype=y.prototype;var Le=y.support={};!function(){var n=function(){this.x=1},t={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var r in new n)e.push(r);for(r in arguments);Le.argsObject=arguments.constructor==ne&&!(arguments instanceof Ut),Le.argsClass=we.call(arguments)==$,Le.enumErrorProps=me.call(oe,"message")||me.call(oe,"name"),Le.enumPrototypes=me.call(n,"prototype"),Le.fastBind=xe&&!Fe,Le.ownLast="x"!=e[0],Le.nonEnumArgs=0!=r,Le.nonEnumShadows=!/valueOf/.test(e),Le.spliceObjects=(ue.splice.call(t,0,1),!t[0]),Le.unindexedChars="xx"!="x"[0]+ne("x")[0];
|
||||
try{Le.nodeClass=!(we.call(document)==G&&!({toString:0}+""))}catch(u){Le.nodeClass=!0}}(1),y.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:I,variable:"",imports:{_:y}},Ce||(at=function(n){if(yt(n)){c.prototype=n;var t=new c;c.prototype=null}return t||{}});var Te=ke?function(n,t){var e=l();e.value=t,ke(n,"__bindData__",e),s(e)}:c;Le.argsClass||(pt=function(n){return n&&typeof n=="object"?ve.call(n,"callee"):!1});var qe=Ee||function(n){return n&&typeof n=="object"?we.call(n)==z:!1
|
||||
},Ke=ot({a:"z",e:"[]",i:"if(!(B[typeof z]))return E",g:"E.push(n)"}),We=Ae?function(n){return yt(n)?Le.enumPrototypes&&typeof n=="function"||Le.nonEnumArgs&&n.length&&pt(n)?Ke(n):Ae(n):[]}:Ke,Ge={a:"g,e,K",i:"e=e&&typeof K=='undefined'?e:d(e,K,3)",b:"typeof u=='number'",v:We,g:"if(e(t[n],n,g)===false)return E"},Je={a:"z,H,l",i:"var a=arguments,b=0,c=typeof l=='number'?2:a.length;while(++b<c){t=a[b];if(t&&B[typeof t]){",v:We,g:"if(typeof E[n]=='undefined')E[n]=t[n]",c:"}}"},Me={i:"if(!B[typeof t])return E;"+Ge.i,b:!1},He={"&":"&","<":"<",">":">",'"':""","'":"'"},Ue=ht(He),Ve=te("("+We(Ue).join("|")+")","g"),Qe=te("["+We(He).join("")+"]","g"),Xe=ot(Ge),Ye=ot(Je,{i:Je.i.replace(";",";if(c>3&&typeof a[c-2]=='function'){var e=d(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){e=a[--c]}"),g:"E[n]=e?e(E[n],t[n]):t[n]"}),Ze=ot(Je),nr=ot(Ge,Me,{j:!1}),tr=ot(Ge,Me);
|
||||
vt(/x/)&&(vt=function(n){return typeof n=="function"&&we.call(n)==K});var er=he?function(n){if(!n||we.call(n)!=G||!Le.argsClass&&pt(n))return!1;var t=n.valueOf,e=typeof t=="function"&&(e=he(t))&&he(e);return e?n==e||he(n)==e:ft(n)}:ft,rr=rt(function(n,t,e){ve.call(n,e)?n[e]++:n[e]=1}),ur=rt(function(n,t,e){(ve.call(n,e)?n[e]:n[e]=[]).push(t)}),or=rt(function(n,t,e){n[e]=t}),ar=Et;Fe&&Y&&typeof de=="function"&&(Wt=function(n){if(!vt(n))throw new re;return de.apply(e,arguments)});var ir=8==De(x+"08")?De:function(n,t){return De(dt(n)?n.replace(B,""):n,t||0)
|
||||
};return y.after=function(n,t){if(!vt(t))throw new re;return function(){return 1>--n?t.apply(this,arguments):void 0}},y.assign=Ye,y.at=function(n){var t=arguments,e=-1,r=X(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Ut(t);for(Le.unindexedChars&&dt(n)&&(n=n.split(""));++e<t;)u[e]=n[r[e]];return u},y.bind=qt,y.bindAll=function(n){for(var t=1<arguments.length?X(arguments,!0,!1,1):gt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=ut(n[u],1,null,null,n)}return n},y.bindKey=function(n,t){return 2<arguments.length?ut(t,19,Ne.call(arguments,2),null,n):ut(t,3,null,null,n)
|
||||
},y.chain=function(n){return n=new m(n),n.__chain__=!0,n},y.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},y.compose=function(){for(var n=arguments,t=n.length||1;t--;)if(!vt(n[t]))throw new re;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},y.countBy=rr,y.createCallback=function(n,t,e){var r=typeof n;if(null==n||"function"==r)return V(n,t,e);if("object"!=r)return function(t){return t[n]};var u=We(n),o=u[0],a=n[o];
|
||||
return 1!=u.length||a!==a||yt(a)?function(t){for(var e=u.length,r=!1;e--&&(r=Z(t[u[e]],n[u[e]],null,!0)););return r}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},y.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,ut(n,4,null,null,null,t)},y.debounce=Kt,y.defaults=Ze,y.defer=Wt,y.delay=function(n,t){if(!vt(n))throw new re;var e=Ne.call(arguments,2);return _e(function(){n.apply(v,e)},t)},y.difference=Pt,y.filter=jt,y.flatten=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?v:t,t=!1),null!=e&&(n=Et(n,e,r)),X(n,t)
|
||||
},y.forEach=xt,y.forEachRight=Ct,y.forIn=nr,y.forInRight=function(n,t,e){var r=[];nr(n,function(n,t){r.push(t,n)});var u=r.length;for(t=V(t,e,3);u--&&false!==t(r[u--],r[u],n););return n},y.forOwn=tr,y.forOwnRight=st,y.functions=gt,y.groupBy=ur,y.indexBy=or,y.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=y.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return g(n,0,Be(Ie(0,u-r),u))},y.intersection=function(e){for(var r=arguments,u=r.length,a=-1,l=i(),f=-1,c=lt(),g=e?e.length:0,h=[],v=i();++a<u;){var y=r[a];
|
||||
l[a]=c===n&&(y?y.length:0)>=w&&o(a?r[a]:v)}n:for(;++f<g;){var m=l[0],y=e[f];if(0>(m?t(m,y):c(v,y))){for(a=u,(m||v).push(y);--a;)if(m=l[a],0>(m?t(m,y):c(r[a],y)))continue n;h.push(y)}}for(;u--;)(m=l[u])&&s(m);return p(l),p(v),h},y.invert=ht,y.invoke=function(n,t){var e=Ne.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Ut(typeof o=="number"?o:0);return xt(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},y.keys=We,y.map=Et,y.max=Ot,y.memoize=function(n,t){if(!vt(n))throw new re;var e=function(){var r=e.cache,u=t?t.apply(this,arguments):b+arguments[0];
|
||||
return ve.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return e.cache={},e},y.merge=function(n){var t=arguments,e=2;if(!yt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=V(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Ne.call(arguments,1,e),u=-1,o=i(),a=i();++u<e;)tt(n,t[u],r,o,a);return p(o),p(a),n},y.min=function(n,t,e){var u=1/0,o=u;if(!t&&qe(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&dt(n)?r:y.createCallback(t,e,3),Xe(n,function(n,e,r){e=t(n,e,r),e<u&&(u=e,o=n)
|
||||
});return o},y.omit=function(n,t,e){var r=lt(),u=typeof t=="function",o={};if(u)t=y.createCallback(t,e,3);else var a=X(arguments,!0,!1,1);return nr(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)}),o},y.once=function(n){var t,e;if(!vt(n))throw new re;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},y.pairs=function(n){for(var t=-1,e=We(n),r=e.length,u=Ut(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},y.partial=function(n){return ut(n,16,Ne.call(arguments,1))},y.partialRight=function(n){return ut(n,32,null,Ne.call(arguments,1))
|
||||
},y.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=X(arguments,!0,!1,1),a=yt(n)?o.length:0;++u<a;){var i=o[u];i in n&&(r[i]=n[i])}else t=y.createCallback(t,e,3),nr(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},y.pluck=ar,y.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(be.call(n,o--,1),u--);return n},y.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:+e||1,null==t&&(t=n,n=0);var r=-1;t=Ie(0,ce((t-n)/(e||1)));
|
||||
for(var u=Ut(t);++r<t;)u[r]=n,n+=e;return u},y.reject=function(n,t,e){return t=y.createCallback(t,e,3),jt(n,function(n,e,r){return!t(n,e,r)})},y.remove=function(n,t,e){var r=-1,u=n?n.length:0,o=[];for(t=y.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(o.push(e),be.call(n,r--,1),u--);return o},y.rest=Ft,y.shuffle=It,y.sortBy=function(n,t,e){var r=-1,o=n?n.length:0,a=Ut(typeof o=="number"?o:0);for(t=y.createCallback(t,e,3),xt(n,function(n,e,u){var o=a[++r]=l();o.l=t(n,e,u),o.m=r,o.n=n}),o=a.length,a.sort(u);o--;)n=a[o],a[o]=n.n,s(n);
|
||||
return a},y.tap=function(n,t){return t(n),n},y.throttle=function(n,t,e){var r=!0,u=!0;if(!vt(n))throw new re;return false===e?r=!1:yt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=l(),e.leading=r,e.maxWait=t,e.trailing=u,n=Kt(n,t,e),s(e),n},y.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ut(n);for(t=V(t,e,1);++r<n;)u[r]=t(r);return u},y.toArray=Dt,y.transform=function(n,t,e,r){var u=qe(n);return t=V(t,r,4),null==e&&(u?e=[]:(r=n&&n.constructor,e=at(r&&r.prototype))),(u?Xe:tr)(n,function(n,r,u){return t(e,n,r,u)
|
||||
}),e},y.union=function(){return et(X(arguments,!0,!0))},y.uniq=zt,y.values=_t,y.where=jt,y.without=function(n){return Pt(n,Ne.call(arguments,1))},y.wrap=function(n,t){if(!vt(t))throw new re;return function(){var e=[n];return ye.apply(e,arguments),t.apply(this,e)}},y.zip=Lt,y.zipObject=Tt,y.collect=Et,y.drop=Ft,y.each=xt,y.eachRight=Ct,y.extend=Ye,y.methods=gt,y.object=Tt,y.select=jt,y.tail=Ft,y.unique=zt,y.unzip=Lt,Jt(y),y.clone=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),j(n,t,typeof e=="function"&&V(e,r,1))
|
||||
},y.cloneDeep=function(n,t,e){return j(n,!0,typeof t=="function"&&V(t,e,1))},y.contains=bt,y.escape=function(n){return null==n?"":ee(n).replace(Qe,it)},y.every=wt,y.find=kt,y.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=y.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},y.findKey=function(n,t,e){var r;return t=y.createCallback(t,e,3),tr(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},y.findLast=function(n,t,e){var r;return t=y.createCallback(t,e,3),Ct(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0
|
||||
}),r},y.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=y.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},y.findLastKey=function(n,t,e){var r;return t=y.createCallback(t,e,3),st(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},y.has=function(n,t){return n?ve.call(n,t):!1},y.identity=Gt,y.indexOf=Rt,y.isArguments=pt,y.isArray=qe,y.isBoolean=function(n){return true===n||false===n||we.call(n)==L},y.isDate=function(n){return n?typeof n=="object"&&we.call(n)==T:!1},y.isElement=function(n){return n?1===n.nodeType:!1
|
||||
},y.isEmpty=function(n){var t=!0;if(!n)return t;var e=we.call(n),r=n.length;return e==z||e==M||(Le.argsClass?e==$:pt(n))||e==G&&typeof r=="number"&&vt(n.splice)?!r:(tr(n,function(){return t=!1}),t)},y.isEqual=function(n,t,e,r){return Z(n,t,typeof e=="function"&&V(e,r,2))},y.isFinite=function(n){return Oe(n)&&!Se(parseFloat(n))},y.isFunction=vt,y.isNaN=function(n){return mt(n)&&n!=+n},y.isNull=function(n){return null===n},y.isNumber=mt,y.isObject=yt,y.isPlainObject=er,y.isRegExp=function(n){return n&&U[typeof n]?we.call(n)==J:!1
|
||||
},y.isString=dt,y.isUndefined=function(n){return typeof n=="undefined"},y.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ie(0,r+e):Be(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},y.mixin=Jt,y.noConflict=function(){return e._=le,this},y.parseInt=ir,y.random=Mt,y.reduce=St,y.reduceRight=At,y.result=function(n,t){var e=n?n[t]:v;return vt(e)?n[t]():e},y.runInContext=h,y.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:We(n).length},y.some=Bt,y.sortedIndex=$t,y.template=function(n,t,e){var r=y.templateSettings;
|
||||
n||(n=""),e=Ze({},e,r);var u,o=Ze({},e.imports,r.imports),r=We(o),o=_t(o),i=0,l=e.interpolate||D,f="__p+='",l=te((e.escape||D).source+"|"+l.source+"|"+(l===I?S:D).source+"|"+(e.evaluate||D).source+"|$","g");n.replace(l,function(t,e,r,o,l,c){return r||(r=o),f+=n.slice(i,c).replace(N,a),e&&(f+="'+__e("+e+")+'"),l&&(u=!0,f+="';"+l+";__p+='"),r&&(f+="'+((__t=("+r+"))==null?'':__t)+'"),i=c+t.length,t}),f+="';\n",l=e=e.variable,l||(e="obj",f="with("+e+"){"+f+"}"),f=(u?f.replace(C,""):f).replace(E,"$1").replace(O,"$1;"),f="function("+e+"){"+(l?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";
|
||||
try{var c=Xt(r,"return "+f).apply(v,o)}catch(p){throw p.source=f,p}return t?c(t):(c.source=f,c)},y.unescape=function(n){return null==n?"":ee(n).replace(Ve,ct)},y.uniqueId=function(n){var t=++d;return ee(null==n?"":n)+t},y.all=wt,y.any=Bt,y.detect=kt,y.findWhere=kt,y.foldl=St,y.foldr=At,y.include=bt,y.inject=St,tr(y,function(n,t){y.prototype[t]||(y.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return ye.apply(t,arguments),t=n.apply(y,t),e?new m(t,e):t})}),y.first=Nt,y.last=function(n,t,e){if(n){var r=0,u=n.length;
|
||||
if(typeof t!="number"&&null!=t){var o=u;for(t=y.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return g(n,Ie(0,u-r))}},y.sample=function(n,t,e){return qe(n)||(n=Dt(n)),null==t||e?n[Mt(n.length-1)]:(n=It(n),n.length=Be(Ie(0,t),n.length),n)},y.take=Nt,y.head=Nt,tr(y,function(n,t){var e="sample"!==t;y.prototype[t]||(y.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new m(o,u):o})}),y.VERSION="1.3.1",y.prototype.chain=function(){return this.__chain__=!0,this
|
||||
},y.prototype.toString=function(){return ee(this.__wrapped__)},y.prototype.value=Ht,y.prototype.valueOf=Ht,Xe(["join","pop","shift"],function(n){var t=ue[n];y.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new m(e,n):e}}),Xe(["push","reverse","sort","unshift"],function(n){var t=ue[n];y.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Xe(["concat","slice","splice"],function(n){var t=ue[n];y.prototype[n]=function(){return new m(t.apply(this.__wrapped__,arguments),this.__chain__)
|
||||
}}),Le.spliceObjects||Xe(["pop","shift","splice"],function(n){var t=ue[n],e="splice"==n;y.prototype[n]=function(){var n=this.__chain__,r=this.__wrapped__,u=t.apply(r,arguments);return 0===r.length&&delete r[0],n||e?new m(u,n):u}}),y}var v,y=[],m=[],d=0,_={},b=+new Date+"",w=75,j=40,x=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",C=/\b__p\+='';/g,E=/\b(__p\+=)''\+/g,O=/(__e\(.*?\)|\b__t\))\+'';/g,S=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,A=/\w*$/,I=/<%=([\s\S]+?)%>/g,B=RegExp("^["+x+"]*0+(?=.$)"),D=/($^)/,P=(P=/\bthis\b/)&&P.test(h)&&P,N=/['\n\r\t\u2028\u2029\\]/g,R="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),F="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),$="[object Arguments]",z="[object Array]",L="[object Boolean]",T="[object Date]",q="[object Error]",K="[object Function]",W="[object Number]",G="[object Object]",J="[object RegExp]",M="[object String]",H={};
|
||||
H[K]=!1,H[$]=H[z]=H[L]=H[T]=H[W]=H[G]=H[J]=H[M]=!0;var U={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},V={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Q=U[typeof window]&&window||this,X=U[typeof exports]&&exports,Y=U[typeof module]&&module&&module.exports==X&&module,Z=U[typeof global]&&global;!Z||Z.global!==Z&&Z.window!==Z||(Q=Z);var nt=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Q._=nt, define(function(){return nt
|
||||
})):X&&!X.nodeType?Y?(Y.exports=nt)._=nt:X._=nt:Q._=nt}).call(this);
|
||||
558
dist/lodash.js
vendored
558
dist/lodash.js
vendored
File diff suppressed because it is too large
Load Diff
94
dist/lodash.min.js
vendored
94
dist/lodash.min.js
vendored
@@ -3,50 +3,50 @@
|
||||
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
|
||||
* Build: `lodash modern -o ./dist/lodash.js`
|
||||
*/
|
||||
;!function(){function n(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function t(t,r){var e=typeof r;if(t=t.k,"boolean"==e||r==y)return t[r]?0:-1;"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:w+r;return t=(t=t[e])&&t[u],"object"==e?t&&-1<n(t,r)?0:-1:t?0:-1}function r(n){var t=this.k,r=typeof n;if("boolean"==r||n==y)t[n]=g;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:w+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=g}}function e(n){return n.charCodeAt(0)
|
||||
}function u(n,t){var r=n.l,e=t.l;if(r!==e){if(r>e||typeof r=="undefined")return 1;if(r<e||typeof e=="undefined")return-1}return n.m-t.m}function o(n){var t=-1,e=n.length,u=n[0],o=n[e-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return m;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=m,o=f(),o.b=n,o.k=u,o.push=r;++t<e;)o.push(n[t]);return o}function a(n){return"\\"+G[n]}function i(){return _.pop()||[]}function f(){return b.pop()||{b:y,k:y,configurable:m,l:y,enumerable:m,"false":m,m:0,leading:m,maxWait:0,"null":m,number:y,z:y,push:y,string:y,trailing:m,"true":m,undefined:m,n:y,writable:m}
|
||||
}function l(){}function c(n){n.length=0,_.length<k&&_.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=y,b.length<k&&b.push(n)}function s(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function v(r){function _(n){if(!n||jr.call(n)!=K)return m;var t=n.valueOf,r=typeof t=="function"&&(r=gr(t))&&gr(r);return r?n==r||gr(n)==r:pt(n)}function b(n,t,r){if(!n||!V[typeof n])return n;t=t&&typeof r=="undefined"?t:rt(t,r,3);
|
||||
for(var e=-1,u=V[typeof n]&&Kr(n),o=u?u.length:0;++e<o&&(r=u[e],!(t(n[r],r,n)===false)););return n}function k(n,t,r){var e;if(!n||!V[typeof n])return n;t=t&&typeof r=="undefined"?t:rt(t,r,3);for(e in n)if(t(n[e],e,n)===false)break;return n}function G(n,t,r){var e,u=n,o=u;if(!u)return o;for(var a=arguments,i=0,f=typeof r=="number"?2:a.length;++i<f;)if((u=a[i])&&V[typeof u])for(var l=-1,c=V[typeof u]&&Kr(u),p=c?c.length:0;++l<p;)e=c[l],"undefined"==typeof o[e]&&(o[e]=u[e]);return o}function J(n,t,r){var e,u=n,o=u;
|
||||
if(!u)return o;var a=arguments,i=0,f=typeof r=="number"?2:a.length;if(3<f&&"function"==typeof a[f-2])var l=rt(a[--f-1],a[f--],2);else 2<f&&"function"==typeof a[f-1]&&(l=a[--f]);for(;++i<f;)if((u=a[i])&&V[typeof u])for(var c=-1,p=V[typeof u]&&Kr(u),s=p?p.length:0;++c<s;)e=p[c],o[e]=l?l(o[e],u[e]):u[e];return o}function X(n){var t,r=[];if(!n||!V[typeof n])return r;for(t in n)yr.call(n,t)&&r.push(t);return r}function Z(n){return n&&typeof n=="object"&&!Pr(n)&&yr.call(n,"__wrapped__")?n:new nt(n)}function nt(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
}function tt(n,t,r,e,u){var o=n;if(r){if(o=r(o),typeof o!="undefined")return o;o=n}var a=_t(o);if(a){var f=jr.call(o);if(!U[f])return o;var l=Pr(o)}if(!a||!t)return a?l?s(o):J({},o):o;switch(a=zr[f],f){case z:case q:return new a(+o);case P:case M:return new a(o);case L:return a(o.source,S.exec(o))}f=!e,e||(e=i()),u||(u=i());for(var p=e.length;p--;)if(e[p]==n)return u[p];return o=l?a(o.length):{},l&&(yr.call(n,"index")&&(o.index=n.index),yr.call(n,"input")&&(o.input=n.input)),e.push(n),u.push(o),(l?Ot:b)(n,function(n,a){o[a]=tt(n,t,r,e,u)
|
||||
}),f&&(c(e),c(u)),o}function rt(n,t,r){if(typeof n!="function")return Gt;if(typeof t=="undefined")return n;var e=!n.name||n.__bindData__;if(typeof e=="undefined"&&(e=!B||B.test(hr.call(n)),Wr(n,e)),e!==g&&!(e&&1&e[1]))return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return Mt(n,t)}function et(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];
|
||||
a&&typeof a=="object"&&(Pr(a)||vt(a))?_r.apply(o,t?a:et(a,t,r)):r||o.push(a)}return o}function ut(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!V[typeof n])&&(!t||!V[typeof t]))return m;if(n==y||t==y)return n===t;var f=jr.call(n),l=jr.call(t);if(f==F&&(f=K),l==F&&(l=K),f!=l)return m;switch(f){case z:case q:return+n==+t;case P:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case L:case M:return n==or(t)}if(l=f==T,!l){if(yr.call(n,"__wrapped__")||yr.call(t,"__wrapped__"))return ut(n.__wrapped__||n,t.__wrapped__||t,r,e,u,o);
|
||||
if(f!=K)return m;var f=n.constructor,p=t.constructor;if(f!=p&&(!mt(f)||!(f instanceof f&&mt(p)&&p instanceof p)))return m}for(p=!u,u||(u=i()),o||(o=i()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var s=0,a=g;if(u.push(n),o.push(t),l){if(f=n.length,s=t.length,a=s==n.length,!a&&!e)return a;for(;s--;)if(l=f,p=t[s],e)for(;l--&&!(a=ut(n[l],p,r,e,u,o)););else if(!(a=ut(n[s],p,r,e,u,o)))break;return a}return k(t,function(t,i,f){return yr.call(f,i)?(s++,a=yr.call(n,i)&&ut(n[i],t,r,e,u,o)):void 0}),a&&!e&&k(n,function(n,t,r){return yr.call(r,t)?a=-1<--s:void 0
|
||||
}),p&&(c(u),c(o)),a}function ot(n,t,r,e,u){(Pr(t)?Ot:b)(t,function(t,o){var a,i,f=t,l=n[o];if(t&&((i=Pr(t))||_(t))){for(f=e.length;f--;)if(a=e[f]==t){l=u[f];break}if(!a){var c;r&&(f=r(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?Pr(l)?l:[]:_(l)?l:{}),e.push(t),u.push(l),c||ot(l,t,r,e,u)}}else r&&(f=r(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);n[o]=l})}function at(r,e,u){var a=-1,f=ct(),l=r?r.length:0,s=[],v=!e&&l>=j&&f===n,h=u||v?i():s;if(v){var g=o(h);g?(f=t,h=g):(v=m,h=u?h:(c(h),s))
|
||||
}for(;++a<l;){var g=r[a],y=u?u(g,a,r):g;(e?!a||h[h.length-1]!==y:0>f(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(c(h.b),p(h)):u&&c(h),s}function it(n){return function(t,r,e){var u={};r=Z.createCallback(r,e,3),e=-1;var o=t?t.length:0;if(typeof o=="number")for(;++e<o;){var a=t[e];n(u,a,r(a,e,t),t)}else b(t,function(t,e,o){n(u,t,r(t,e,o),o)});return u}}function ft(n,t,r,e,u,o){var a=1&t,i=2&t,f=4&t,l=8&t,c=16&t,p=32&t,s=n;if(!i&&!mt(n))throw new ar;c&&!r.length&&(t&=-17,c=r=m),p&&!e.length&&(t&=-33,p=e=m);
|
||||
var v=n&&n.__bindData__;if(v)return a&&!(1&v[1])&&(v[4]=u),!a&&1&v[1]&&(t|=8),f&&!(4&v[1])&&(v[5]=o),c&&_r.apply(v[2]||(v[2]=[]),r),p&&_r.apply(v[3]||(v[3]=[]),e),v[1]|=t,ft.apply(y,v);if(!a||i||f||p||!(qr.fastBind||Cr&&c))g=function(){var v=arguments,h=a?u:this;return c&&kr.apply(v,r),p&&_r.apply(v,e),f&&v.length<o?(t|=16,ft(n,l?t:-4&t,v,y,u,o)):(i&&(n=h[s]),this instanceof g?(h=_t(n.prototype)?Or(n.prototype):{},v=n.apply(h,v),_t(v)?v:h):n.apply(h,v))};else{if(c){var h=[u];_r.apply(h,r)}var g=c?Cr.apply(n,h):Cr.call(n,u)
|
||||
}return Wr(g,Dr.call(arguments)),g}function lt(n){return Lr[n]}function ct(){var t=(t=Z.indexOf)===zt?n:t;return t}function pt(n){var t,r;return n&&jr.call(n)==K&&(t=n.constructor,!mt(t)||t instanceof t)?(k(n,function(n,t){r=t}),r===h||yr.call(n,r)):m}function st(n){return Mr[n]}function vt(n){return n&&typeof n=="object"?jr.call(n)==F:m}function ht(n,t,r){var e=Kr(n),u=e.length;for(t=rt(t,r,3);u--&&(r=e[u],!(t(n[r],r,n)===false)););return n}function gt(n){var t=[];return k(n,function(n,r){mt(n)&&t.push(r)
|
||||
}),t.sort()}function yt(n){for(var t=-1,r=Kr(n),e=r.length,u={};++t<e;){var o=r[t];u[n[o]]=o}return u}function mt(n){return typeof n=="function"}function _t(n){return!(!n||!V[typeof n])}function bt(n){return typeof n=="number"||jr.call(n)==P}function dt(n){return typeof n=="string"||jr.call(n)==M}function wt(n){for(var t=-1,r=Kr(n),e=r.length,u=Xt(e);++t<e;)u[t]=n[r[t]];return u}function jt(n,t,r){var e=-1,u=ct(),o=n?n.length:0,a=m;return r=(0>r?Nr(0,o+r):r)||0,o&&typeof o=="number"?a=-1<(dt(n)?n.indexOf(t,r):u(n,t,r)):b(n,function(n){return++e<r?void 0:!(a=n===t)
|
||||
}),a}function kt(n,t,r){var e=g;t=Z.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&(e=!!t(n[r],r,n)););else b(n,function(n,r,u){return e=!!t(n,r,u)});return e}function xt(n,t,r){var e=[];t=Z.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u;){var o=n[r];t(o,r,n)&&e.push(o)}else b(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Ct(n,t,r){t=Z.createCallback(t,r,3),r=-1;var e=n?n.length:0;if(typeof e!="number"){var u;return b(n,function(n,r,e){return t(n,r,e)?(u=n,m):void 0
|
||||
}),u}for(;++r<e;){var o=n[r];if(t(o,r,n))return o}}function Ot(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:rt(t,r,3),typeof u=="number")for(;++e<u&&t(n[e],e,n)!==false;);else b(n,t);return n}function Et(n,t,r){var e=n?n.length:0;if(t=t&&typeof r=="undefined"?t:rt(t,r,3),typeof e=="number")for(;e--&&t(n[e],e,n)!==false;);else{var u=Kr(n),e=u.length;b(n,function(n,r,o){return r=u?u[--e]:--e,t(o[r],r,o)})}return n}function It(n,t,r){var e=-1,u=n?n.length:0;if(t=Z.createCallback(t,r,3),typeof u=="number")for(var o=Xt(u);++e<u;)o[e]=t(n[e],e,n);
|
||||
else o=[],b(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function St(n,t,r){var u=-1/0,o=u;if(!t&&Pr(n)){r=-1;for(var a=n.length;++r<a;){var i=n[r];i>o&&(o=i)}}else t=!t&&dt(n)?e:Z.createCallback(t,r,3),Ot(n,function(n,r,e){r=t(n,r,e),r>u&&(u=r,o=n)});return o}function At(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(var u=Xt(e);++r<e;)u[r]=n[r][t];return u||It(n,t)}function Nt(n,t,r,e){if(!n)return r;var u=3>arguments.length;t=rt(t,e,4);var o=-1,a=n.length;if(typeof a=="number")for(u&&(r=n[++o]);++o<a;)r=t(r,n[o],o,n);
|
||||
else b(n,function(n,e,o){r=u?(u=m,n):t(r,n,e,o)});return r}function Rt(n,t,r,e){var u=3>arguments.length;return t=rt(t,e,4),Et(n,function(n,e,o){r=u?(u=m,n):t(r,n,e,o)}),r}function Bt(n){var t=-1,r=n?n.length:0,e=Xt(typeof r=="number"?r:0);return Ot(n,function(n){var r=Jt(++t);e[t]=e[r],e[r]=n}),e}function $t(n,t,r){var e;t=Z.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&!(e=t(n[r],r,n)););else b(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function Dt(n){return n&&typeof n.length=="number"?s(n):wt(n)
|
||||
}function Ft(r){var e=-1,u=ct(),a=r?r.length:0,i=et(arguments,g,g,1),f=[],l=a>=j&&u===n;if(l){var c=o(i);c?(u=t,i=c):l=m}for(;++e<a;)c=r[e],0>u(i,c)&&f.push(c);return l&&p(i),f}function Tt(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=y){var o=-1;for(t=Z.createCallback(t,r,3);++o<u&&t(n[o],o,n);)e++}else if(e=t,e==y||r)return n[0];return s(n,0,Rr(Nr(0,e),u))}}function zt(t,r,e){if(typeof e=="number"){var u=t?t.length:0;e=0>e?Nr(0,u+e):e||0}else if(e)return e=Wt(t,r),t[e]===r?e:-1;return n(t,r,e)
|
||||
}function qt(n,t,r){if(typeof t!="number"&&t!=y){var e=0,u=-1,o=n?n.length:0;for(t=Z.createCallback(t,r,3);++u<o&&t(n[u],u,n);)e++}else e=t==y||r?1:Nr(0,t);return s(n,e)}function Wt(n,t,r,e){var u=0,o=n?n.length:u;for(r=r?Z.createCallback(r,e,1):Gt,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function Pt(n,t,r,e){return typeof t!="boolean"&&t!=y&&(e=r,r=e&&e[t]===n?h:t,t=m),r!=y&&(r=Z.createCallback(r,e,3)),at(n,t,r)}function Kt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?St(At(n,"length")):0,e=Xt(0>r?0:r);++t<r;)e[t]=At(n,t);
|
||||
return e}function Lt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Mt(n,t){return ft(n,17,Dr.call(arguments,2),y,t)}function Ut(n,t,r){function e(){v&&sr(v),l=0,s=v=y,(h||p!==t)&&(c=mr(),a=n.apply(f,o))}function u(){var r=t-(mr()-i);0<r?v=dr(u,r):(r=h&&(!_||1<l),s&&sr(s),l=0,s=v=y,r&&(c=mr(),a=n.apply(f,o)))}var o,a,i,f,l=0,c=0,p=m,s=y,v=y,h=g;if(!mt(n))throw new ar;if(t=Nr(0,t||0),r===g)var _=g,h=m;else _t(r)&&(_=r.leading,p="maxWait"in r&&Nr(t,r.maxWait||0),h="trailing"in r?r.trailing:h);
|
||||
return function(){if(o=arguments,i=mr(),f=this,l++,p===false)_&&2>l&&(a=n.apply(f,o));else{!s&&!_&&(c=i);var r=p-(i-c);0<r?s||(s=dr(e,r)):(s&&(sr(s),s=y),c=i,a=n.apply(f,o))}return!v&&t!==p&&(v=dr(u,t)),a}}function Vt(n){if(!mt(n))throw new ar;var t=Dr.call(arguments,1);return dr(function(){n.apply(h,t)},1)}function Gt(n){return n}function Ht(n,t){var r=n,e=!t||mt(r);t||(r=nt,t=n,n=Z),Ot(gt(t),function(u){var o=n[u]=t[u];e&&(r.prototype[u]=function(){var t=this.__wrapped__,e=[t];return _r.apply(e,arguments),e=o.apply(n,e),t&&typeof t=="object"&&t===e?this:new r(e)
|
||||
})})}function Jt(n,t){n==y&&t==y&&(t=1),n=+n||0,t==y?(t=n,n=0):t=+t||0;var r=$r();return n%1||t%1?n+Rr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+vr(r*(t-n+1))}function Qt(){return this.__wrapped__}r=r?Y.defaults(H.Object(),r,Y.pick(H,D)):H;var Xt=r.Array,Yt=r.Boolean,Zt=r.Date,nr=r.Function,tr=r.Math,rr=r.Number,er=r.Object,ur=r.RegExp,or=r.String,ar=r.TypeError,ir=[],fr=er.prototype,lr=r._,cr=ur("^"+or(fr.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),pr=tr.ceil,sr=r.clearTimeout,vr=tr.floor,hr=nr.prototype.toString,gr=cr.test(gr=er.getPrototypeOf)&&gr,yr=fr.hasOwnProperty,mr=cr.test(mr=Zt.now)&&mr||function(){return+new Zt
|
||||
},_r=ir.push,br=r.setImmediate,dr=r.setTimeout,wr=ir.splice,jr=fr.toString,kr=ir.unshift,xr=function(){try{var n={},t=cr.test(t=er.defineProperty)&&t,r=t(n,n,n)&&t}catch(e){}return r}(),Cr=cr.test(Cr=jr.bind)&&Cr,Or=cr.test(Or=er.create)&&Or,Er=cr.test(Er=Xt.isArray)&&Er,Ir=r.isFinite,Sr=r.isNaN,Ar=cr.test(Ar=er.keys)&&Ar,Nr=tr.max,Rr=tr.min,Br=r.parseInt,$r=tr.random,Dr=ir.slice,Fr=cr.test(r.attachEvent),Tr=Cr&&!/\n|true/.test(Cr+Fr),zr={};zr[T]=Xt,zr[z]=Yt,zr[q]=Zt,zr[W]=nr,zr[K]=er,zr[P]=rr,zr[L]=ur,zr[M]=or,nt.prototype=Z.prototype;
|
||||
var qr=Z.support={};qr.fastBind=Cr&&!Tr,Z.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:A,variable:"",imports:{_:Z}};var Wr=xr?function(n,t){var r=f();r.value=t,xr(n,"__bindData__",r),p(r)}:l,Pr=Er||function(n){return n&&typeof n=="object"?jr.call(n)==T:m},Kr=Ar?function(n){return _t(n)?Ar(n):[]}:X,Lr={"&":"&","<":"<",">":">",'"':""","'":"'"},Mr=yt(Lr),Ur=ur("("+Kr(Mr).join("|")+")","g"),Vr=ur("["+Kr(Lr).join("")+"]","g"),Gr=it(function(n,t,r){yr.call(n,r)?n[r]++:n[r]=1
|
||||
}),Hr=it(function(n,t,r){(yr.call(n,r)?n[r]:n[r]=[]).push(t)}),Jr=it(function(n,t,r){n[r]=t});Tr&&Q&&typeof br=="function"&&(Vt=function(n){if(!mt(n))throw new ar;return br.apply(r,arguments)});var Qr=8==Br(x+"08")?Br:function(n,t){return Br(dt(n)?n.replace(N,""):n,t||0)};return Z.after=function(n,t){if(!mt(t))throw new ar;return function(){return 1>--n?t.apply(this,arguments):void 0}},Z.assign=J,Z.at=function(n){for(var t=arguments,r=-1,e=et(t,g,m,1),t=t[2]&&t[2][t[1]]===n?1:e.length,u=Xt(t);++r<t;)u[r]=n[e[r]];
|
||||
return u},Z.bind=Mt,Z.bindAll=function(n){for(var t=1<arguments.length?et(arguments,g,m,1):gt(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=ft(n[u],1,y,y,n)}return n},Z.bindKey=function(n,t){return ft(t,19,Dr.call(arguments,2),y,n)},Z.chain=function(n){return n=new nt(n),n.__chain__=g,n},Z.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},Z.compose=function(){for(var n=arguments,t=n.length||1;t--;)if(!mt(n[t]))throw new ar;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];
|
||||
return t[0]}},Z.countBy=Gr,Z.createCallback=function(n,t,r){var e=typeof n;if(n==y||"function"==e)return rt(n,t,r);if("object"!=e)return function(t){return t[n]};var u=Kr(n),o=u[0],a=n[o];return 1!=u.length||a!==a||_t(a)?function(t){for(var r=u.length,e=m;r--&&(e=ut(t[u[r]],n[u[r]],y,g)););return e}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},Z.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,ft(n,4,y,y,y,t)},Z.debounce=Ut,Z.defaults=G,Z.defer=Vt,Z.delay=function(n,t){if(!mt(n))throw new ar;
|
||||
var r=Dr.call(arguments,2);return dr(function(){n.apply(h,r)},t)},Z.difference=Ft,Z.filter=xt,Z.flatten=function(n,t,r,e){return typeof t!="boolean"&&t!=y&&(e=r,r=e&&e[t]===n?h:t,t=m),r!=y&&(n=It(n,r,e)),et(n,t)},Z.forEach=Ot,Z.forEachRight=Et,Z.forIn=k,Z.forInRight=function(n,t,r){var e=[];k(n,function(n,t){e.push(t,n)});var u=e.length;for(t=rt(t,r,3);u--&&t(e[u--],e[u],n)!==false;);return n},Z.forOwn=b,Z.forOwnRight=ht,Z.functions=gt,Z.groupBy=Hr,Z.indexBy=Jr,Z.initial=function(n,t,r){if(!n)return[];
|
||||
var e=0,u=n.length;if(typeof t!="number"&&t!=y){var o=u;for(t=Z.createCallback(t,r,3);o--&&t(n[o],o,n);)e++}else e=t==y||r?1:t||e;return s(n,0,Rr(Nr(0,u-e),u))},Z.intersection=function(r){for(var e=arguments,u=e.length,a=-1,f=i(),l=-1,s=ct(),v=r?r.length:0,h=[],g=i();++a<u;){var y=e[a];f[a]=s===n&&(y?y.length:0)>=j&&o(a?e[a]:g)}n:for(;++l<v;){var m=f[0],y=r[l];if(0>(m?t(m,y):s(g,y))){for(a=u,(m||g).push(y);--a;)if(m=f[a],0>(m?t(m,y):s(e[a],y)))continue n;h.push(y)}}for(;u--;)(m=f[u])&&p(m);return c(f),c(g),h
|
||||
},Z.invert=yt,Z.invoke=function(n,t){var r=Dr.call(arguments,2),e=-1,u=typeof t=="function",o=n?n.length:0,a=Xt(typeof o=="number"?o:0);return Ot(n,function(n){a[++e]=(u?t:n[t]).apply(n,r)}),a},Z.keys=Kr,Z.map=It,Z.max=St,Z.memoize=function(n,t){function r(){var e=r.cache,u=t?t.apply(this,arguments):w+arguments[0];return yr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}if(!mt(n))throw new ar;return r.cache={},r},Z.merge=function(n){var t=arguments,r=2;if(!_t(n))return n;if("number"!=typeof t[2]&&(r=t.length),3<r&&"function"==typeof t[r-2])var e=rt(t[--r-1],t[r--],2);
|
||||
else 2<r&&"function"==typeof t[r-1]&&(e=t[--r]);for(var t=Dr.call(arguments,1,r),u=-1,o=i(),a=i();++u<r;)ot(n,t[u],e,o,a);return c(o),c(a),n},Z.min=function(n,t,r){var u=1/0,o=u;if(!t&&Pr(n)){r=-1;for(var a=n.length;++r<a;){var i=n[r];i<o&&(o=i)}}else t=!t&&dt(n)?e:Z.createCallback(t,r,3),Ot(n,function(n,r,e){r=t(n,r,e),r<u&&(u=r,o=n)});return o},Z.omit=function(n,t,r){var e=ct(),u=typeof t=="function",o={};if(u)t=Z.createCallback(t,r,3);else var a=et(arguments,g,m,1);return k(n,function(n,r,i){(u?!t(n,r,i):0>e(a,r))&&(o[r]=n)
|
||||
}),o},Z.once=function(n){var t,r;if(!mt(n))throw new ar;return function(){return t?r:(t=g,r=n.apply(this,arguments),n=y,r)}},Z.pairs=function(n){for(var t=-1,r=Kr(n),e=r.length,u=Xt(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},Z.partial=function(n){return ft(n,16,Dr.call(arguments,1))},Z.partialRight=function(n){return ft(n,32,y,Dr.call(arguments,1))},Z.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,o=et(arguments,g,m,1),a=_t(n)?o.length:0;++u<a;){var i=o[u];i in n&&(e[i]=n[i])
|
||||
}else t=Z.createCallback(t,r,3),k(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},Z.pluck=At,Z.pull=function(n){for(var t=arguments,r=0,e=t.length,u=n?n.length:0;++r<e;)for(var o=-1,a=t[r];++o<u;)n[o]===a&&(wr.call(n,o--,1),u--);return n},Z.range=function(n,t,r){n=+n||0,r=typeof r=="number"?r:+r||1,t==y&&(t=n,n=0);var e=-1;t=Nr(0,pr((t-n)/(r||1)));for(var u=Xt(t);++e<t;)u[e]=n,n+=r;return u},Z.reject=function(n,t,r){return t=Z.createCallback(t,r,3),xt(n,function(n,r,e){return!t(n,r,e)})},Z.remove=function(n,t,r){var e=-1,u=n?n.length:0,o=[];
|
||||
for(t=Z.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(o.push(r),wr.call(n,e--,1),u--);return o},Z.rest=qt,Z.shuffle=Bt,Z.sortBy=function(n,t,r){var e=-1,o=n?n.length:0,a=Xt(typeof o=="number"?o:0);for(t=Z.createCallback(t,r,3),Ot(n,function(n,r,u){var o=a[++e]=f();o.l=t(n,r,u),o.m=e,o.n=n}),o=a.length,a.sort(u);o--;)n=a[o],a[o]=n.n,p(n);return a},Z.tap=function(n,t){return t(n),n},Z.throttle=function(n,t,r){var e=g,u=g;if(!mt(n))throw new ar;return r===false?e=m:_t(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=f(),r.leading=e,r.maxWait=t,r.trailing=u,n=Ut(n,t,r),p(r),n
|
||||
},Z.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Xt(n);for(t=rt(t,r,1);++e<n;)u[e]=t(e);return u},Z.toArray=Dt,Z.transform=function(n,t,r,e){var u=Pr(n);return t=rt(t,e,4),r==y&&(u?r=[]:(e=n&&n.constructor,r=_t(e&&e.prototype)?Or(e&&e.prototype):{})),(u?Ot:b)(n,function(n,e,u){return t(r,n,e,u)}),r},Z.union=function(){return at(et(arguments,g,g))},Z.uniq=Pt,Z.values=wt,Z.where=xt,Z.without=function(n){return Ft(n,Dr.call(arguments,1))},Z.wrap=function(n,t){if(!mt(t))throw new ar;return function(){var r=[n];
|
||||
return _r.apply(r,arguments),t.apply(this,r)}},Z.zip=Kt,Z.zipObject=Lt,Z.collect=It,Z.drop=qt,Z.each=Ot,Z.a=Et,Z.extend=J,Z.methods=gt,Z.object=Lt,Z.select=xt,Z.tail=qt,Z.unique=Pt,Z.unzip=Kt,Ht(Z),Z.clone=function(n,t,r,e){return typeof t!="boolean"&&t!=y&&(e=r,r=t,t=m),tt(n,t,typeof r=="function"&&rt(r,e,1))},Z.cloneDeep=function(n,t,r){return tt(n,g,typeof t=="function"&&rt(t,r,1))},Z.contains=jt,Z.escape=function(n){return n==y?"":or(n).replace(Vr,lt)},Z.every=kt,Z.find=Ct,Z.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;
|
||||
for(t=Z.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1},Z.findKey=function(n,t,r){var e;return t=Z.createCallback(t,r,3),b(n,function(n,r,u){return t(n,r,u)?(e=r,m):void 0}),e},Z.findLast=function(n,t,r){var e;return t=Z.createCallback(t,r,3),Et(n,function(n,r,u){return t(n,r,u)?(e=n,m):void 0}),e},Z.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=Z.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},Z.findLastKey=function(n,t,r){var e;return t=Z.createCallback(t,r,3),ht(n,function(n,r,u){return t(n,r,u)?(e=r,m):void 0
|
||||
}),e},Z.has=function(n,t){return n?yr.call(n,t):m},Z.identity=Gt,Z.indexOf=zt,Z.isArguments=vt,Z.isArray=Pr,Z.isBoolean=function(n){return n===g||n===false||jr.call(n)==z},Z.isDate=function(n){return n?typeof n=="object"&&jr.call(n)==q:m},Z.isElement=function(n){return n?1===n.nodeType:m},Z.isEmpty=function(n){var t=g;if(!n)return t;var r=jr.call(n),e=n.length;return r==T||r==M||r==F||r==K&&typeof e=="number"&&mt(n.splice)?!e:(b(n,function(){return t=m}),t)},Z.isEqual=function(n,t,r,e){return ut(n,t,typeof r=="function"&&rt(r,e,2))
|
||||
},Z.isFinite=function(n){return Ir(n)&&!Sr(parseFloat(n))},Z.isFunction=mt,Z.isNaN=function(n){return bt(n)&&n!=+n},Z.isNull=function(n){return n===y},Z.isNumber=bt,Z.isObject=_t,Z.isPlainObject=_,Z.isRegExp=function(n){return n?typeof n=="object"&&jr.call(n)==L:m},Z.isString=dt,Z.isUndefined=function(n){return typeof n=="undefined"},Z.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Nr(0,e+r):Rr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},Z.mixin=Ht,Z.noConflict=function(){return r._=lr,this
|
||||
},Z.parseInt=Qr,Z.random=Jt,Z.reduce=Nt,Z.reduceRight=Rt,Z.result=function(n,t){var r=n?n[t]:h;return mt(r)?n[t]():r},Z.runInContext=v,Z.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Kr(n).length},Z.some=$t,Z.sortedIndex=Wt,Z.template=function(n,t,r){var e=Z.templateSettings;n||(n=""),r=G({},r,e);var u,o=G({},r.imports,e.imports),e=Kr(o),o=wt(o),i=0,f=r.interpolate||R,l="__p+='",f=ur((r.escape||R).source+"|"+f.source+"|"+(f===A?I:R).source+"|"+(r.evaluate||R).source+"|$","g");n.replace(f,function(t,r,e,o,f,c){return e||(e=o),l+=n.slice(i,c).replace($,a),r&&(l+="'+__e("+r+")+'"),f&&(u=g,l+="';"+f+";__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),i=c+t.length,t
|
||||
}),l+="';\n",f=r=r.variable,f||(r="obj",l="with("+r+"){"+l+"}"),l=(u?l.replace(C,""):l).replace(O,"$1").replace(E,"$1;"),l="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=nr(e,"return "+l).apply(h,o)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},Z.unescape=function(n){return n==y?"":or(n).replace(Ur,st)},Z.uniqueId=function(n){var t=++d;return or(n==y?"":n)+t
|
||||
},Z.all=kt,Z.any=$t,Z.detect=Ct,Z.findWhere=Ct,Z.foldl=Nt,Z.foldr=Rt,Z.include=jt,Z.inject=Nt,b(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(){var t=[this.__wrapped__],r=this.__chain__;return _r.apply(t,arguments),t=n.apply(Z,t),r?new nt(t,r):t})}),Z.first=Tt,Z.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=y){var o=u;for(t=Z.createCallback(t,r,3);o--&&t(n[o],o,n);)e++}else if(e=t,e==y||r)return n[u-1];return s(n,Nr(0,u-e))}},Z.sample=function(n,t,r){return Pr(n)||(n=Dt(n)),t==y||r?n[Jt(n.length-1)]:(n=Bt(n),n.length=Rr(Nr(0,t),n.length),n)
|
||||
},Z.take=Tt,Z.head=Tt,b(Z,function(n,t){var r="sample"!==t;Z.prototype[t]||(Z.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||t!=y&&(!e||r&&typeof t=="function")?new nt(o,u):o})}),Z.VERSION="1.3.1",Z.prototype.chain=function(){return this.__chain__=g,this},Z.prototype.toString=function(){return or(this.__wrapped__)},Z.prototype.value=Qt,Z.prototype.valueOf=Qt,Ot(["join","pop","shift"],function(n){var t=ir[n];Z.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new nt(r,n):r}}),Ot(["push","reverse","sort","unshift"],function(n){var t=ir[n];Z.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Ot(["concat","slice","splice"],function(n){var t=ir[n];Z.prototype[n]=function(){return new nt(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Z}var h,g=!0,y=null,m=!1,_=[],b=[],d=0,w=+new Date+"",j=75,k=40,x=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",C=/\b__p\+='';/g,O=/\b(__p\+=)''\+/g,E=/(__e\(.*?\)|\b__t\))\+'';/g,I=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,S=/\w*$/,A=/<%=([\s\S]+?)%>/g,N=RegExp("^["+x+"]*0+(?=.$)"),R=/($^)/,B=(B=/\bthis\b/)&&B.test(v)&&B,$=/['\n\r\t\u2028\u2029\\]/g,D="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),F="[object Arguments]",T="[object Array]",z="[object Boolean]",q="[object Date]",W="[object Function]",P="[object Number]",K="[object Object]",L="[object RegExp]",M="[object String]",U={};
|
||||
U[W]=m,U[F]=U[T]=U[z]=U[q]=U[P]=U[K]=U[L]=U[M]=g;var V={"boolean":m,"function":g,object:g,number:m,string:m,undefined:m},G={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},H=V[typeof window]&&window||this,J=V[typeof exports]&&exports,Q=V[typeof module]&&module&&module.exports==J&&module,X=V[typeof global]&&global;!X||X.global!==X&&X.window!==X||(H=X);var Y=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(H._=Y, define(function(){return Y})):J&&!J.nodeType?Q?(Q.exports=Y)._=Y:J._=Y:H._=Y
|
||||
}.call(this);
|
||||
;(function(){function n(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function t(t,e){var r=typeof e;if(t=t.k,"boolean"==r||null==e)return t[e]?0:-1;"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:_+e;return t=(t=t[r])&&t[u],"object"==r?t&&-1<n(t,e)?0:-1:t?0:-1}function e(n){var t=this.k,e=typeof n;if("boolean"==e||null==n)t[n]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:_+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=!0
|
||||
}}function r(n){return n.charCodeAt(0)}function u(n,t){var e=n.l,r=t.l;if(e!==r){if(e>r||typeof e=="undefined")return 1;if(e<r||typeof r=="undefined")return-1}return n.m-t.m}function o(n){var t=-1,r=n.length,u=n[0],o=n[r-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return!1;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=!1,o=f(),o.b=n,o.k=u,o.push=e;++t<r;)o.push(n[t]);return o}function a(n){return"\\"+M[n]}function i(){return g.pop()||[]}function f(){return y.pop()||{b:null,k:null,configurable:!1,l:null,enumerable:!1,"false":!1,m:0,leading:!1,maxWait:0,"null":!1,number:null,z:null,push:null,string:null,trailing:!1,"true":!1,undefined:!1,n:null,writable:!1}
|
||||
}function l(){}function c(n){n.length=0,g.length<d&&g.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=null,y.length<d&&y.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(e){function g(n){if(!n||be.call(n)!=q)return!1;var t=n.valueOf,e=typeof t=="function"&&(e=se(t))&&se(e);return e?n==e||se(n)==e:ft(n)}function y(n,t,e){if(!n||!L[typeof n])return n;t=t&&typeof e=="undefined"?t:Z(t,e,3);
|
||||
for(var r=-1,u=L[typeof n]&&qe(n),o=u?u.length:0;++r<o&&(e=u[r],false!==t(n[e],e,n)););return n}function d(n,t,e){var r;if(!n||!L[typeof n])return n;t=t&&typeof e=="undefined"?t:Z(t,e,3);for(r in n)if(false===t(n[r],r,n))break;return n}function M(n,t,e){var r,u=n,o=u;if(!u)return o;for(var a=arguments,i=0,f=typeof e=="number"?2:a.length;++i<f;)if((u=a[i])&&L[typeof u])for(var l=-1,c=L[typeof u]&&qe(u),p=c?c.length:0;++l<p;)r=c[l],"undefined"==typeof o[r]&&(o[r]=u[r]);return o}function V(n,t,e){var r,u=n,o=u;
|
||||
if(!u)return o;var a=arguments,i=0,f=typeof e=="number"?2:a.length;if(3<f&&"function"==typeof a[f-2])var l=Z(a[--f-1],a[f--],2);else 2<f&&"function"==typeof a[f-1]&&(l=a[--f]);for(;++i<f;)if((u=a[i])&&L[typeof u])for(var c=-1,p=L[typeof u]&&qe(u),s=p?p.length:0;++c<s;)r=p[c],o[r]=l?l(o[r],u[r]):u[r];return o}function H(n){var t,e=[];if(!n||!L[typeof n])return e;for(t in n)ve.call(n,t)&&e.push(t);return e}function Q(n){return n&&typeof n=="object"&&!ze(n)&&ve.call(n,"__wrapped__")?n:new X(n)}function X(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
}function Y(n,t,e,r,u){var o=n;if(e){if(o=e(o),typeof o!="undefined")return o;o=n}var a=gt(o);if(a){var f=be.call(o);if(!K[f])return o;var l=ze(o)}if(!a||!t)return a?l?s(o):V({},o):o;switch(a=De[f],f){case D:case F:return new a(+o);case z:case P:return new a(o);case W:return a(o.source,O.exec(o))}f=!r,r||(r=i()),u||(u=i());for(var p=r.length;p--;)if(r[p]==n)return u[p];return o=l?a(o.length):{},l&&(ve.call(n,"index")&&(o.index=n.index),ve.call(n,"input")&&(o.input=n.input)),r.push(n),u.push(o),(l?kt:y)(n,function(n,a){o[a]=Y(n,t,e,r,u)
|
||||
}),f&&(c(r),c(u)),o}function Z(n,t,e){if(typeof n!="function")return Mt;if(typeof t=="undefined")return n;var r=!n.name||n.__bindData__;if(typeof r=="undefined"&&(r=!A||A.test(pe.call(n)),Te(n,r)),true!==r&&!(r&&1&r[1]))return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}}return Pt(n,t)}function nt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var a=n[r];
|
||||
a&&typeof a=="object"&&(ze(a)||ct(a))?ge.apply(o,t?a:nt(a,t,e)):e||o.push(a)}return o}function tt(n,t,e,r,u,o){if(e){var a=e(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&!(n&&L[typeof n]||t&&L[typeof t]))return!1;if(null==n||null==t)return n===t;var f=be.call(n),l=be.call(t);if(f==B&&(f=q),l==B&&(l=q),f!=l)return!1;switch(f){case D:case F:return+n==+t;case z:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case W:case P:return n==ee(t)}if(l=f==$,!l){if(ve.call(n,"__wrapped__")||ve.call(t,"__wrapped__"))return tt(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);
|
||||
if(f!=q)return!1;var f=n.constructor,p=t.constructor;if(f!=p&&!(ht(f)&&f instanceof f&&ht(p)&&p instanceof p))return!1}for(p=!u,u||(u=i()),o||(o=i()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var s=0,a=!0;if(u.push(n),o.push(t),l){if(f=n.length,s=t.length,a=s==n.length,!a&&!r)return a;for(;s--;)if(l=f,p=t[s],r)for(;l--&&!(a=tt(n[l],p,e,r,u,o)););else if(!(a=tt(n[s],p,e,r,u,o)))break;return a}return d(t,function(t,i,f){return ve.call(f,i)?(s++,a=ve.call(n,i)&&tt(n[i],t,e,r,u,o)):void 0}),a&&!r&&d(n,function(n,t,e){return ve.call(e,t)?a=-1<--s:void 0
|
||||
}),p&&(c(u),c(o)),a}function et(n,t,e,r,u){(ze(t)?kt:y)(t,function(t,o){var a,i,f=t,l=n[o];if(t&&((i=ze(t))||g(t))){for(f=r.length;f--;)if(a=r[f]==t){l=u[f];break}if(!a){var c;e&&(f=e(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?ze(l)?l:[]:g(l)?l:{}),r.push(t),u.push(l),c||et(l,t,e,r,u)}}else e&&(f=e(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);n[o]=l})}function rt(e,r,u){var a=-1,f=it(),l=e?e.length:0,s=[],v=!r&&l>=b&&f===n,h=u||v?i():s;if(v){var g=o(h);g?(f=t,h=g):(v=!1,h=u?h:(c(h),s))
|
||||
}for(;++a<l;){var g=e[a],y=u?u(g,a,e):g;(r?!a||h[h.length-1]!==y:0>f(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(c(h.b),p(h)):u&&c(h),s}function ut(n){return function(t,e,r){var u={};e=Q.createCallback(e,r,3),r=-1;var o=t?t.length:0;if(typeof o=="number")for(;++r<o;){var a=t[r];n(u,a,e(a,r,t),t)}else y(t,function(t,r,o){n(u,t,e(t,r,o),o)});return u}}function ot(n,t,e,r,u,o){var a=1&t,i=2&t,f=4&t,l=8&t,c=16&t,p=32&t,s=n;if(!i&&!ht(n))throw new re;c&&!e.length&&(t&=-17,c=e=!1),p&&!r.length&&(t&=-33,p=r=!1);
|
||||
var v=n&&n.__bindData__;if(v)return!a||1&v[1]||(v[4]=u),!a&&1&v[1]&&(t|=8),!f||4&v[1]||(v[5]=o),c&&ge.apply(v[2]||(v[2]=[]),e),p&&ge.apply(v[3]||(v[3]=[]),r),v[1]|=t,ot.apply(null,v);if(!a||i||f||p||!(Fe.fastBind||je&&c))g=function(){var v=arguments,h=a?u:this;return c&&de.apply(v,e),p&&ge.apply(v,r),f&&v.length<o?(t|=16,ot(n,l?t:-4&t,v,null,u,o)):(i&&(n=h[s]),this instanceof g?(h=gt(n.prototype)?ke(n.prototype):{},v=n.apply(h,v),gt(v)?v:h):n.apply(h,v))};else{if(c){var h=[u];ge.apply(h,e)}var g=c?je.apply(n,h):je.call(n,u)
|
||||
}return Te(g,Re.call(arguments)),g}function at(n){return We[n]}function it(){var t=(t=Q.indexOf)===Dt?n:t;return t}function ft(n){var t,e;return n&&be.call(n)==q&&(t=n.constructor,!ht(t)||t instanceof t)?(d(n,function(n,t){e=t}),e===h||ve.call(n,e)):!1}function lt(n){return Pe[n]}function ct(n){return n&&typeof n=="object"?be.call(n)==B:!1}function pt(n,t,e){var r=qe(n),u=r.length;for(t=Z(t,e,3);u--&&(e=r[u],false!==t(n[e],e,n)););return n}function st(n){var t=[];return d(n,function(n,e){ht(n)&&t.push(e)
|
||||
}),t.sort()}function vt(n){for(var t=-1,e=qe(n),r=e.length,u={};++t<r;){var o=e[t];u[n[o]]=o}return u}function ht(n){return typeof n=="function"}function gt(n){return!(!n||!L[typeof n])}function yt(n){return typeof n=="number"||be.call(n)==z}function mt(n){return typeof n=="string"||be.call(n)==P}function _t(n){for(var t=-1,e=qe(n),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u}function bt(n,t,e){var r=-1,u=it(),o=n?n.length:0,a=!1;return e=(0>e?Ie(0,o+e):e)||0,o&&typeof o=="number"?a=-1<(mt(n)?n.indexOf(t,e):u(n,t,e)):y(n,function(n){return++r<e?void 0:!(a=n===t)
|
||||
}),a}function dt(n,t,e){var r=!0;t=Q.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else y(n,function(n,e,u){return r=!!t(n,e,u)});return r}function wt(n,t,e){var r=[];t=Q.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else y(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function jt(n,t,e){t=Q.createCallback(t,e,3),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return y(n,function(n,e,r){return t(n,e,r)?(u=n,!1):void 0
|
||||
}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function kt(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof u=="number")for(;++r<u&&false!==t(n[r],r,n););else y(n,t);return n}function xt(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Z(t,e,3),typeof r=="number")for(;r--&&false!==t(n[r],r,n););else{var u=qe(n),r=u.length;y(n,function(n,e,o){return e=u?u[--r]:--r,t(o[e],e,o)})}return n}function Ct(n,t,e){var r=-1,u=n?n.length:0;if(t=Q.createCallback(t,e,3),typeof u=="number")for(var o=Ht(u);++r<u;)o[r]=t(n[r],r,n);
|
||||
else o=[],y(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function Ot(n,t,e){var u=-1/0,o=u;if(!t&&ze(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i>o&&(o=i)}}else t=!t&&mt(n)?r:Q.createCallback(t,e,3),kt(n,function(n,e,r){e=t(n,e,r),e>u&&(u=e,o=n)});return o}function Et(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Ht(r);++e<r;)u[e]=n[e][t];return u||Ct(n,t)}function It(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=Z(t,r,4);var o=-1,a=n.length;if(typeof a=="number")for(u&&(e=n[++o]);++o<a;)e=t(e,n[o],o,n);
|
||||
else y(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)});return e}function St(n,t,e,r){var u=3>arguments.length;return t=Z(t,r,4),xt(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)}),e}function At(n){var t=-1,e=n?n.length:0,r=Ht(typeof e=="number"?e:0);return kt(n,function(n){var e=Vt(++t);r[t]=r[e],r[e]=n}),r}function Nt(n,t,e){var r;t=Q.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else y(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Rt(n){return n&&typeof n.length=="number"?s(n):_t(n)
|
||||
}function Bt(e){var r=-1,u=it(),a=e?e.length:0,i=nt(arguments,!0,!0,1),f=[],l=a>=b&&u===n;if(l){var c=o(i);c?(u=t,i=c):l=!1}for(;++r<a;)c=e[r],0>u(i,c)&&f.push(c);return l&&p(i),f}function $t(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=Q.createCallback(t,e,3);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return s(n,0,Se(Ie(0,r),u))}}function Dt(t,e,r){if(typeof r=="number"){var u=t?t.length:0;r=0>r?Ie(0,u+r):r||0}else if(r)return r=Tt(t,e),t[r]===e?r:-1;
|
||||
return n(t,e,r)}function Ft(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=Q.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:Ie(0,t);return s(n,r)}function Tt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?Q.createCallback(e,r,1):Mt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function zt(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?h:t,t=!1),null!=e&&(e=Q.createCallback(e,r,3)),rt(n,t,e)}function qt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Ot(Et(n,"length")):0,r=Ht(0>e?0:e);++t<e;)r[t]=Et(n,t);
|
||||
return r}function Wt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Pt(n,t){return 2<arguments.length?ot(n,17,Re.call(arguments,2),null,t):ot(n,1,null,null,t)}function Kt(n,t,e){function r(){v&&le(v),l=0,s=v=null,(h||p!==t)&&(c=he(),a=n.apply(f,o))}function u(){var e=t-(he()-i);0<e?v=me(u,e):(e=h&&(!g||1<l),s&&le(s),l=0,s=v=null,e&&(c=he(),a=n.apply(f,o)))}var o,a,i,f,l=0,c=0,p=!1,s=null,v=null,h=!0;if(!ht(n))throw new re;if(t=Ie(0,t||0),true===e)var g=!0,h=!1;
|
||||
else gt(e)&&(g=e.leading,p="maxWait"in e&&Ie(t,e.maxWait||0),h="trailing"in e?e.trailing:h);return function(){if(o=arguments,i=he(),f=this,l++,false===p)g&&2>l&&(a=n.apply(f,o));else{s||g||(c=i);var e=p-(i-c);0<e?s||(s=me(r,e)):(s&&(le(s),s=null),c=i,a=n.apply(f,o))}return v||t===p||(v=me(u,t)),a}}function Lt(n){if(!ht(n))throw new re;var t=Re.call(arguments,1);return me(function(){n.apply(h,t)},1)}function Mt(n){return n}function Ut(n,t){var e=n,r=!t||ht(e);t||(e=X,t=n,n=Q),kt(st(t),function(u){var o=n[u]=t[u];
|
||||
r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return ge.apply(r,arguments),r=o.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)})})}function Vt(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var e=Ne();return n%1||t%1?n+Se(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+ce(e*(t-n+1))}function Gt(){return this.__wrapped__}e=e?J.defaults(U.Object(),e,J.pick(U,R)):U;var Ht=e.Array,Jt=e.Boolean,Qt=e.Date,Xt=e.Function,Yt=e.Math,Zt=e.Number,ne=e.Object,te=e.RegExp,ee=e.String,re=e.TypeError,ue=[],oe=ne.prototype,ae=e._,ie=te("^"+ee(oe.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),fe=Yt.ceil,le=e.clearTimeout,ce=Yt.floor,pe=Xt.prototype.toString,se=ie.test(se=ne.getPrototypeOf)&&se,ve=oe.hasOwnProperty,he=ie.test(he=Qt.now)&&he||function(){return+new Qt
|
||||
},ge=ue.push,ye=e.setImmediate,me=e.setTimeout,_e=ue.splice,be=oe.toString,de=ue.unshift,we=function(){try{var n={},t=ie.test(t=ne.defineProperty)&&t,e=t(n,n,n)&&t}catch(r){}return e}(),je=ie.test(je=be.bind)&&je,ke=ie.test(ke=ne.create)&&ke,xe=ie.test(xe=Ht.isArray)&&xe,Ce=e.isFinite,Oe=e.isNaN,Ee=ie.test(Ee=ne.keys)&&Ee,Ie=Yt.max,Se=Yt.min,Ae=e.parseInt,Ne=Yt.random,Re=ue.slice,Be=ie.test(e.attachEvent),$e=je&&!/\n|true/.test(je+Be),De={};De[$]=Ht,De[D]=Jt,De[F]=Qt,De[T]=Xt,De[q]=ne,De[z]=Zt,De[W]=te,De[P]=ee,X.prototype=Q.prototype;
|
||||
var Fe=Q.support={};Fe.fastBind=je&&!$e,Q.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:E,variable:"",imports:{_:Q}};var Te=we?function(n,t){var e=f();e.value=t,we(n,"__bindData__",e),p(e)}:l,ze=xe||function(n){return n&&typeof n=="object"?be.call(n)==$:!1},qe=Ee?function(n){return gt(n)?Ee(n):[]}:H,We={"&":"&","<":"<",">":">",'"':""","'":"'"},Pe=vt(We),Ke=te("("+qe(Pe).join("|")+")","g"),Le=te("["+qe(We).join("")+"]","g"),Me=ut(function(n,t,e){ve.call(n,e)?n[e]++:n[e]=1
|
||||
}),Ue=ut(function(n,t,e){(ve.call(n,e)?n[e]:n[e]=[]).push(t)}),Ve=ut(function(n,t,e){n[e]=t});$e&&G&&typeof ye=="function"&&(Lt=function(n){if(!ht(n))throw new re;return ye.apply(e,arguments)});var Ge=8==Ae(w+"08")?Ae:function(n,t){return Ae(mt(n)?n.replace(I,""):n,t||0)};return Q.after=function(n,t){if(!ht(t))throw new re;return function(){return 1>--n?t.apply(this,arguments):void 0}},Q.assign=V,Q.at=function(n){for(var t=arguments,e=-1,r=nt(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Ht(t);++e<t;)u[e]=n[r[e]];
|
||||
return u},Q.bind=Pt,Q.bindAll=function(n){for(var t=1<arguments.length?nt(arguments,!0,!1,1):st(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=ot(n[u],1,null,null,n)}return n},Q.bindKey=function(n,t){return 2<arguments.length?ot(t,19,Re.call(arguments,2),null,n):ot(t,3,null,null,n)},Q.chain=function(n){return n=new X(n),n.__chain__=!0,n},Q.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},Q.compose=function(){for(var n=arguments,t=n.length||1;t--;)if(!ht(n[t]))throw new re;
|
||||
return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},Q.countBy=Me,Q.createCallback=function(n,t,e){var r=typeof n;if(null==n||"function"==r)return Z(n,t,e);if("object"!=r)return function(t){return t[n]};var u=qe(n),o=u[0],a=n[o];return 1!=u.length||a!==a||gt(a)?function(t){for(var e=u.length,r=!1;e--&&(r=tt(t[u[e]],n[u[e]],null,!0)););return r}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},Q.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,ot(n,4,null,null,null,t)
|
||||
},Q.debounce=Kt,Q.defaults=M,Q.defer=Lt,Q.delay=function(n,t){if(!ht(n))throw new re;var e=Re.call(arguments,2);return me(function(){n.apply(h,e)},t)},Q.difference=Bt,Q.filter=wt,Q.flatten=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?h:t,t=!1),null!=e&&(n=Ct(n,e,r)),nt(n,t)},Q.forEach=kt,Q.forEachRight=xt,Q.forIn=d,Q.forInRight=function(n,t,e){var r=[];d(n,function(n,t){r.push(t,n)});var u=r.length;for(t=Z(t,e,3);u--&&false!==t(r[u--],r[u],n););return n},Q.forOwn=y,Q.forOwnRight=pt,Q.functions=st,Q.groupBy=Ue,Q.indexBy=Ve,Q.initial=function(n,t,e){if(!n)return[];
|
||||
var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=Q.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return s(n,0,Se(Ie(0,u-r),u))},Q.intersection=function(e){for(var r=arguments,u=r.length,a=-1,f=i(),l=-1,s=it(),v=e?e.length:0,h=[],g=i();++a<u;){var y=r[a];f[a]=s===n&&(y?y.length:0)>=b&&o(a?r[a]:g)}n:for(;++l<v;){var m=f[0],y=e[l];if(0>(m?t(m,y):s(g,y))){for(a=u,(m||g).push(y);--a;)if(m=f[a],0>(m?t(m,y):s(r[a],y)))continue n;h.push(y)}}for(;u--;)(m=f[u])&&p(m);
|
||||
return c(f),c(g),h},Q.invert=vt,Q.invoke=function(n,t){var e=Re.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Ht(typeof o=="number"?o:0);return kt(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},Q.keys=qe,Q.map=Ct,Q.max=Ot,Q.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):_+arguments[0];return ve.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!ht(n))throw new re;return e.cache={},e},Q.merge=function(n){var t=arguments,e=2;if(!gt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=Z(t[--e-1],t[e--],2);
|
||||
else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Re.call(arguments,1,e),u=-1,o=i(),a=i();++u<e;)et(n,t[u],r,o,a);return c(o),c(a),n},Q.min=function(n,t,e){var u=1/0,o=u;if(!t&&ze(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&mt(n)?r:Q.createCallback(t,e,3),kt(n,function(n,e,r){e=t(n,e,r),e<u&&(u=e,o=n)});return o},Q.omit=function(n,t,e){var r=it(),u=typeof t=="function",o={};if(u)t=Q.createCallback(t,e,3);else var a=nt(arguments,!0,!1,1);return d(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)
|
||||
}),o},Q.once=function(n){var t,e;if(!ht(n))throw new re;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},Q.pairs=function(n){for(var t=-1,e=qe(n),r=e.length,u=Ht(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},Q.partial=function(n){return ot(n,16,Re.call(arguments,1))},Q.partialRight=function(n){return ot(n,32,null,Re.call(arguments,1))},Q.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=nt(arguments,!0,!1,1),a=gt(n)?o.length:0;++u<a;){var i=o[u];i in n&&(r[i]=n[i])
|
||||
}else t=Q.createCallback(t,e,3),d(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},Q.pluck=Et,Q.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(_e.call(n,o--,1),u--);return n},Q.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:+e||1,null==t&&(t=n,n=0);var r=-1;t=Ie(0,fe((t-n)/(e||1)));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;return u},Q.reject=function(n,t,e){return t=Q.createCallback(t,e,3),wt(n,function(n,e,r){return!t(n,e,r)})},Q.remove=function(n,t,e){var r=-1,u=n?n.length:0,o=[];
|
||||
for(t=Q.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(o.push(e),_e.call(n,r--,1),u--);return o},Q.rest=Ft,Q.shuffle=At,Q.sortBy=function(n,t,e){var r=-1,o=n?n.length:0,a=Ht(typeof o=="number"?o:0);for(t=Q.createCallback(t,e,3),kt(n,function(n,e,u){var o=a[++r]=f();o.l=t(n,e,u),o.m=r,o.n=n}),o=a.length,a.sort(u);o--;)n=a[o],a[o]=n.n,p(n);return a},Q.tap=function(n,t){return t(n),n},Q.throttle=function(n,t,e){var r=!0,u=!0;if(!ht(n))throw new re;return false===e?r=!1:gt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=f(),e.leading=r,e.maxWait=t,e.trailing=u,n=Kt(n,t,e),p(e),n
|
||||
},Q.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);for(t=Z(t,e,1);++r<n;)u[r]=t(r);return u},Q.toArray=Rt,Q.transform=function(n,t,e,r){var u=ze(n);return t=Z(t,r,4),null==e&&(u?e=[]:(r=n&&n.constructor,e=gt(r&&r.prototype)?ke(r&&r.prototype):{})),(u?kt:y)(n,function(n,r,u){return t(e,n,r,u)}),e},Q.union=function(){return rt(nt(arguments,!0,!0))},Q.uniq=zt,Q.values=_t,Q.where=wt,Q.without=function(n){return Bt(n,Re.call(arguments,1))},Q.wrap=function(n,t){if(!ht(t))throw new re;return function(){var e=[n];
|
||||
return ge.apply(e,arguments),t.apply(this,e)}},Q.zip=qt,Q.zipObject=Wt,Q.collect=Ct,Q.drop=Ft,Q.each=kt,Q.a=xt,Q.extend=V,Q.methods=st,Q.object=Wt,Q.select=wt,Q.tail=Ft,Q.unique=zt,Q.unzip=qt,Ut(Q),Q.clone=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),Y(n,t,typeof e=="function"&&Z(e,r,1))},Q.cloneDeep=function(n,t,e){return Y(n,!0,typeof t=="function"&&Z(t,e,1))},Q.contains=bt,Q.escape=function(n){return null==n?"":ee(n).replace(Le,at)},Q.every=dt,Q.find=jt,Q.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;
|
||||
for(t=Q.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},Q.findKey=function(n,t,e){var r;return t=Q.createCallback(t,e,3),y(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},Q.findLast=function(n,t,e){var r;return t=Q.createCallback(t,e,3),xt(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r},Q.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=Q.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},Q.findLastKey=function(n,t,e){var r;return t=Q.createCallback(t,e,3),pt(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0
|
||||
}),r},Q.has=function(n,t){return n?ve.call(n,t):!1},Q.identity=Mt,Q.indexOf=Dt,Q.isArguments=ct,Q.isArray=ze,Q.isBoolean=function(n){return true===n||false===n||be.call(n)==D},Q.isDate=function(n){return n?typeof n=="object"&&be.call(n)==F:!1},Q.isElement=function(n){return n?1===n.nodeType:!1},Q.isEmpty=function(n){var t=!0;if(!n)return t;var e=be.call(n),r=n.length;return e==$||e==P||e==B||e==q&&typeof r=="number"&&ht(n.splice)?!r:(y(n,function(){return t=!1}),t)},Q.isEqual=function(n,t,e,r){return tt(n,t,typeof e=="function"&&Z(e,r,2))
|
||||
},Q.isFinite=function(n){return Ce(n)&&!Oe(parseFloat(n))},Q.isFunction=ht,Q.isNaN=function(n){return yt(n)&&n!=+n},Q.isNull=function(n){return null===n},Q.isNumber=yt,Q.isObject=gt,Q.isPlainObject=g,Q.isRegExp=function(n){return n?typeof n=="object"&&be.call(n)==W:!1},Q.isString=mt,Q.isUndefined=function(n){return typeof n=="undefined"},Q.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ie(0,r+e):Se(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},Q.mixin=Ut,Q.noConflict=function(){return e._=ae,this
|
||||
},Q.parseInt=Ge,Q.random=Vt,Q.reduce=It,Q.reduceRight=St,Q.result=function(n,t){var e=n?n[t]:h;return ht(e)?n[t]():e},Q.runInContext=v,Q.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:qe(n).length},Q.some=Nt,Q.sortedIndex=Tt,Q.template=function(n,t,e){var r=Q.templateSettings;n||(n=""),e=M({},e,r);var u,o=M({},e.imports,r.imports),r=qe(o),o=_t(o),i=0,f=e.interpolate||S,l="__p+='",f=te((e.escape||S).source+"|"+f.source+"|"+(f===E?C:S).source+"|"+(e.evaluate||S).source+"|$","g");n.replace(f,function(t,e,r,o,f,c){return r||(r=o),l+=n.slice(i,c).replace(N,a),e&&(l+="'+__e("+e+")+'"),f&&(u=!0,l+="';"+f+";__p+='"),r&&(l+="'+((__t=("+r+"))==null?'':__t)+'"),i=c+t.length,t
|
||||
}),l+="';\n",f=e=e.variable,f||(e="obj",l="with("+e+"){"+l+"}"),l=(u?l.replace(j,""):l).replace(k,"$1").replace(x,"$1;"),l="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=Xt(r,"return "+l).apply(h,o)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},Q.unescape=function(n){return null==n?"":ee(n).replace(Ke,lt)},Q.uniqueId=function(n){var t=++m;return ee(null==n?"":n)+t
|
||||
},Q.all=dt,Q.any=Nt,Q.detect=jt,Q.findWhere=jt,Q.foldl=It,Q.foldr=St,Q.include=bt,Q.inject=It,y(Q,function(n,t){Q.prototype[t]||(Q.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return ge.apply(t,arguments),t=n.apply(Q,t),e?new X(t,e):t})}),Q.first=$t,Q.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=Q.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return s(n,Ie(0,u-r))}},Q.sample=function(n,t,e){return ze(n)||(n=Rt(n)),null==t||e?n[Vt(n.length-1)]:(n=At(n),n.length=Se(Ie(0,t),n.length),n)
|
||||
},Q.take=$t,Q.head=$t,y(Q,function(n,t){var e="sample"!==t;Q.prototype[t]||(Q.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new X(o,u):o})}),Q.VERSION="1.3.1",Q.prototype.chain=function(){return this.__chain__=!0,this},Q.prototype.toString=function(){return ee(this.__wrapped__)},Q.prototype.value=Gt,Q.prototype.valueOf=Gt,kt(["join","pop","shift"],function(n){var t=ue[n];Q.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);
|
||||
return n?new X(e,n):e}}),kt(["push","reverse","sort","unshift"],function(n){var t=ue[n];Q.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),kt(["concat","slice","splice"],function(n){var t=ue[n];Q.prototype[n]=function(){return new X(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Q}var h,g=[],y=[],m=0,_=+new Date+"",b=75,d=40,w=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",j=/\b__p\+='';/g,k=/\b(__p\+=)''\+/g,x=/(__e\(.*?\)|\b__t\))\+'';/g,C=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,O=/\w*$/,E=/<%=([\s\S]+?)%>/g,I=RegExp("^["+w+"]*0+(?=.$)"),S=/($^)/,A=(A=/\bthis\b/)&&A.test(v)&&A,N=/['\n\r\t\u2028\u2029\\]/g,R="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),B="[object Arguments]",$="[object Array]",D="[object Boolean]",F="[object Date]",T="[object Function]",z="[object Number]",q="[object Object]",W="[object RegExp]",P="[object String]",K={};
|
||||
K[T]=!1,K[B]=K[$]=K[D]=K[F]=K[z]=K[q]=K[W]=K[P]=!0;var L={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},M={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},U=L[typeof window]&&window||this,V=L[typeof exports]&&exports,G=L[typeof module]&&module&&module.exports==V&&module,H=L[typeof global]&&global;!H||H.global!==H&&H.window!==H||(U=H);var J=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(U._=J, define(function(){return J
|
||||
})):V&&!V.nodeType?G?(G.exports=J)._=J:V._=J:U._=J}).call(this);
|
||||
430
dist/lodash.underscore.js
vendored
430
dist/lodash.underscore.js
vendored
File diff suppressed because it is too large
Load Diff
14
dist/lodash.underscore.min.js
vendored
14
dist/lodash.underscore.min.js
vendored
@@ -3,9 +3,9 @@
|
||||
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
|
||||
* Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
|
||||
*/
|
||||
;!function(){function n(n,r,t){t=(t||0)-1;for(var e=n?n.length:0;++t<e;)if(n[t]===r)return t;return-1}function r(n,r){var t=n.l,e=r.l;if(t!==e){if(t>e||typeof t=="undefined")return 1;if(t<e||typeof e=="undefined")return-1}return n.m-r.m}function t(n){return"\\"+vr[n]}function e(){}function u(n){return n instanceof u?n:new i(n)}function i(n,r){this.__chain__=!!r,this.__wrapped__=n}function o(n,r,t){if(typeof n!="function")return L;if(typeof r=="undefined")return n;switch(t){case 1:return function(t){return n.call(r,t)
|
||||
};case 2:return function(t,e){return n.call(r,t,e)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,i){return n.call(r,t,e,u,i)}}return H(n,r)}function f(n,r,t,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Cr(o)||y(o))?Ar.apply(i,r?o:f(o,r,t)):t||i.push(o)}return i}function a(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;if(n===n&&(!n||!sr[typeof n])&&(!r||!sr[typeof r]))return!1;if(null==n||null==r)return n===r;var i=Tr.call(n),o=Tr.call(r);
|
||||
if(i!=o)return!1;switch(i){case or:case fr:return+n==+r;case ar:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case cr:case pr:return n==r+""}if(o=i==ir,!o){if(Er.call(n,"__wrapped__")||r instanceof u)return a(n.__wrapped__||n,r.__wrapped__||r,t,e);if(i!=lr)return!1;var i=n.constructor,f=r.constructor;if(i!=f&&(!j(i)||!(i instanceof i&&j(f)&&f instanceof f)))return!1}for(t||(t=[]),e||(e=[]),i=t.length;i--;)if(t[i]==n)return e[i]==r;var l=!0,c=0;if(t.push(n),e.push(r),o){if(c=r.length,l=c==n.length)for(;c--&&(l=a(n[c],r[c],t,e)););return l
|
||||
;(function(){function n(n,r,t){t=(t||0)-1;for(var e=n?n.length:0;++t<e;)if(n[t]===r)return t;return-1}function r(n,r){var t=n.l,e=r.l;if(t!==e){if(t>e||typeof t=="undefined")return 1;if(t<e||typeof e=="undefined")return-1}return n.m-r.m}function t(n){return"\\"+vr[n]}function e(){}function u(n){return n instanceof u?n:new i(n)}function i(n,r){this.__chain__=!!r,this.__wrapped__=n}function o(n,r,t){if(typeof n!="function")return L;if(typeof r=="undefined")return n;switch(t){case 1:return function(t){return n.call(r,t)
|
||||
};case 2:return function(t,e){return n.call(r,t,e)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,i){return n.call(r,t,e,u,i)}}return H(n,r)}function f(n,r,t,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Cr(o)||y(o))?Ar.apply(i,r?o:f(o,r,t)):t||i.push(o)}return i}function a(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;if(n===n&&!(n&&sr[typeof n]||r&&sr[typeof r]))return!1;if(null==n||null==r)return n===r;var i=Tr.call(n),o=Tr.call(r);
|
||||
if(i!=o)return!1;switch(i){case or:case fr:return+n==+r;case ar:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case cr:case pr:return n==r+""}if(o=i==ir,!o){if(Er.call(n,"__wrapped__")||r instanceof u)return a(n.__wrapped__||n,r.__wrapped__||r,t,e);if(i!=lr)return!1;var i=n.constructor,f=r.constructor;if(i!=f&&!(j(i)&&i instanceof i&&j(f)&&f instanceof f))return!1}for(t||(t=[]),e||(e=[]),i=t.length;i--;)if(t[i]==n)return e[i]==r;var l=!0,c=0;if(t.push(n),e.push(r),o){if(c=r.length,l=c==n.length)for(;c--&&(l=a(n[c],r[c],t,e)););return l
|
||||
}return Kr(r,function(r,u,i){return Er.call(i,u)?(c++,!(l=Er.call(n,u)&&a(n[u],r,t,e))&&nr):void 0}),l&&Kr(n,function(n,r,t){return Er.call(t,r)?!(l=-1<--c)&&nr:void 0}),l}function l(n,r,t){for(var e=-1,u=h(),i=n?n.length:0,o=[],f=t?[]:o;++e<i;){var a=n[e],l=t?t(a,e,n):a;(r?!e||f[f.length-1]!==l:0>u(f,l))&&(t&&f.push(l),o.push(a))}return o}function c(n){return function(r,t,e){var u={};t=J(t,e,3),e=-1;var i=r?r.length:0;if(typeof i=="number")for(;++e<i;){var o=r[e];n(u,o,t(o,e,r),r)}else Lr(r,function(r,e,i){n(u,r,t(r,e,i),i)
|
||||
});return u}}function p(n,r,t,e,u,i){var o=1&r,f=2&r,a=4&r,l=8&r,c=16&r,v=32&r,h=n;if(!f&&!j(n))throw new TypeError;if(c&&!t.length&&(r&=-17,c=t=!1),v&&!e.length&&(r&=-33,v=e=!1),!o||f||a||v||!(zr.fastBind||Sr&&c))y=function(){var g=arguments,m=o?u:this;return c&&Or.apply(g,t),v&&Ar.apply(g,e),a&&g.length<i?(r|=16,p(n,l?r:-4&r,g,null,u,i)):(f&&(n=m[h]),this instanceof y?(m=s(n.prototype),g=n.apply(m,g),x(g)?g:m):n.apply(m,g))};else{if(c){var g=[u];Ar.apply(g,t)}var y=c?Sr.apply(n,g):Sr.call(n,u)}return y
|
||||
}function s(n){return x(n)?Fr(n):{}}function v(n){return Vr[n]}function h(){var r=(r=u.indexOf)===P?n:r;return r}function g(n){return Gr[n]}function y(n){return n&&typeof n=="object"?Tr.call(n)==ur:!1}function m(n){if(!n)return n;for(var r=1,t=arguments.length;r<t;r++){var e=arguments[r];if(e)for(var u in e)n[u]=e[u]}return n}function _(n){if(!n)return n;for(var r=1,t=arguments.length;r<t;r++){var e=arguments[r];if(e)for(var u in e)"undefined"==typeof n[u]&&(n[u]=e[u])}return n}function d(n){var r=[];
|
||||
@@ -15,9 +15,9 @@ var e=n?n.length:0;if(typeof e!="number"){var u;return Lr(n,function(n,t,e){retu
|
||||
if(r=J(r,t,3),typeof u=="number")for(var i=Array(u);++e<u;)i[e]=r(n[e],e,n);else i=[],Lr(n,function(n,t,u){i[++e]=r(n,t,u)});return i}function k(n,r,t){var e=-1/0,u=e,i=-1,o=n?n.length:0;if(r||typeof o!="number")r=J(r,t,3),R(n,function(n,t,i){t=r(n,t,i),t>e&&(e=t,u=n)});else for(;++i<o;)t=n[i],t>u&&(u=t);return u}function q(n,r){var t=-1,e=n?n.length:0;if(typeof e=="number")for(var u=Array(e);++t<e;)u[t]=n[t][r];return u||D(n,r)}function M(n,r,t,e){if(!n)return t;var u=3>arguments.length;r=o(r,e,4);
|
||||
var i=-1,f=n.length;if(typeof f=="number")for(u&&(t=n[++i]);++i<f;)t=r(t,n[i],i,n);else Lr(n,function(n,e,i){t=u?(u=!1,n):r(t,n,e,i)});return t}function $(n,r,t,e){var u=3>arguments.length;return r=o(r,e,4),B(n,function(n,e,i){t=u?(u=!1,n):r(t,n,e,i)}),t}function I(n,r,t){var e;r=J(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number")for(;++t<u&&!(e=r(n[t],t,n)););else Lr(n,function(n,t,u){return(e=r(n,t,u))&&nr});return!!e}function W(n,r,t){return t&&w(r)?Y:(t?N:F)(n,r)}function z(n){for(var r=-1,t=h(),e=n.length,u=f(arguments,!0,!0,1),i=[];++r<e;){var o=n[r];
|
||||
0>t(u,o)&&i.push(o)}return i}function C(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&null!=r){var i=-1;for(r=J(r,t,3);++i<u&&r(n[i],i,n);)e++}else if(e=r,null==e||t)return n[0];return $r.call(n,0,qr(kr(0,e),u))}}function P(r,t,e){if(typeof e=="number"){var u=r?r.length:0;e=0>e?kr(0,u+e):e||0}else if(e)return e=V(r,t),r[e]===t?e:-1;return n(r,t,e)}function U(n,r,t){if(typeof r!="number"&&null!=r){var e=0,u=-1,i=n?n.length:0;for(r=J(r,t,3);++u<i&&r(n[u],u,n);)e++}else e=null==r||t?1:kr(0,r);
|
||||
return $r.call(n,e)}function V(n,r,t,e){var u=0,i=n?n.length:u;for(t=t?J(t,e,1):L,r=t(r);u<i;)e=u+i>>>1,t(n[e])<r?u=e+1:i=e;return u}function G(n,r,t,e){return typeof r!="boolean"&&null!=r&&(e=t,t=e&&e[r]===n?Y:r,r=!1),null!=t&&(t=J(t,e,3)),l(n,r,t)}function H(n,r){return p(n,17,$r.call(arguments,2),null,r)}function J(n,r,t){var e=typeof n;if(null==n||"function"==e)return o(n,r,t);if("object"!=e)return function(r){return r[n]};var u=Ur(n);return function(r){for(var t=u.length,e=!1;t--&&(e=r[u[t]]===n[u[t]]););return e
|
||||
return $r.call(n,e)}function V(n,r,t,e){var u=0,i=n?n.length:u;for(t=t?J(t,e,1):L,r=t(r);u<i;)e=u+i>>>1,t(n[e])<r?u=e+1:i=e;return u}function G(n,r,t,e){return typeof r!="boolean"&&null!=r&&(t=(e=t)&&e[r]===n?Y:r,r=!1),null!=t&&(t=J(t,e,3)),l(n,r,t)}function H(n,r){return 2<arguments.length?p(n,17,$r.call(arguments,2),null,r):p(n,1,null,null,r)}function J(n,r,t){var e=typeof n;if(null==n||"function"==e)return o(n,r,t);if("object"!=e)return function(r){return r[n]};var u=Ur(n);return function(r){for(var t=u.length,e=!1;t--&&(e=r[u[t]]===n[u[t]]););return e
|
||||
}}function K(n,r,t){var e,u,i,o,f=0,a=0,l=!1,c=null,p=null,s=!0;if(!j(n))throw new TypeError;if(r=kr(0,r||0),true===t)var v=!0,s=!1;else x(t)&&(v=t.leading,l="maxWait"in t&&kr(r,t.maxWait||0),s="trailing"in t?t.trailing:s);var h=function(){var t=r-(new Date-i);0<t?p=setTimeout(h,t):(t=s&&(!v||1<f),c&&clearTimeout(c),f=0,c=p=null,t&&(a=+new Date,u=n.apply(o,e)))},g=function(){p&&clearTimeout(p),f=0,c=p=null,(s||l!==r)&&(a=+new Date,u=n.apply(o,e))};return function(){if(e=arguments,i=+new Date,o=this,f++,false===l)v&&2>f&&(u=n.apply(o,e));
|
||||
else{!c&&!v&&(a=i);var t=l-(i-a);0<t?c||(c=setTimeout(g,t)):(c&&(clearTimeout(c),c=null),a=i,u=n.apply(o,e))}return!p&&r!==l&&(p=setTimeout(h,r)),u}}function L(n){return n}function Q(n){R(d(n),function(r){var t=u[r]=n[r];u.prototype[r]=function(){var n=[this.__wrapped__];return Ar.apply(n,arguments),n=t.apply(u,n),this.__chain__&&(n=new i(n),n.__chain__=!0),n}})}function X(n,r){null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0;var t=Mr();return n%1||r%1?n+qr(t*(r-n+parseFloat("1e-"+((t+"").length-1))),r):n+xr(t*(r-n+1))
|
||||
else{c||v||(a=i);var t=l-(i-a);0<t?c||(c=setTimeout(g,t)):(c&&(clearTimeout(c),c=null),a=i,u=n.apply(o,e))}return p||r===l||(p=setTimeout(h,r)),u}}function L(n){return n}function Q(n){R(d(n),function(r){var t=u[r]=n[r];u.prototype[r]=function(){var n=[this.__wrapped__];return Ar.apply(n,arguments),n=t.apply(u,n),this.__chain__&&(n=new i(n),n.__chain__=!0),n}})}function X(n,r){null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0;var t=Mr();return n%1||r%1?n+qr(t*(r-n+parseFloat("1e-"+((t+"").length-1))),r):n+xr(t*(r-n+1))
|
||||
}var Y,Z=0,nr={},rr=+new Date+"",tr=/($^)/,er=/['\n\r\t\u2028\u2029\\]/g,ur="[object Arguments]",ir="[object Array]",or="[object Boolean]",fr="[object Date]",ar="[object Number]",lr="[object Object]",cr="[object RegExp]",pr="[object String]",sr={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},vr={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},hr=sr[typeof window]&&window||this,gr=sr[typeof exports]&&exports,yr=sr[typeof module]&&module&&module.exports==gr&&module,mr=sr[typeof global]&&global;
|
||||
!mr||mr.global!==mr&&mr.window!==mr||(hr=mr);var _r=[],dr=Object.prototype,br=hr._,wr=RegExp("^"+(dr.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),jr=Math.ceil,xr=Math.floor,Er=dr.hasOwnProperty,Ar=_r.push,Tr=dr.toString,Or=_r.unshift,Sr=wr.test(Sr=Tr.bind)&&Sr,Fr=wr.test(Fr=Object.create)&&Fr,Nr=wr.test(Nr=Array.isArray)&&Nr,Rr=hr.isFinite,Br=hr.isNaN,Dr=wr.test(Dr=Object.keys)&&Dr,kr=Math.max,qr=Math.min,Mr=Math.random,$r=_r.slice,Ir=wr.test(hr.attachEvent),Wr=Sr&&!/\n|true/.test(Sr+Ir);
|
||||
i.prototype=u.prototype;var zr={};!function(){var n={0:1,length:1};zr.fastBind=Sr&&!Wr,zr.spliceObjects=(_r.splice.call(n,0,1),!n[0])}(1),u.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Fr||(s=function(n){if(x(n)){e.prototype=n;var r=new e;e.prototype=null}return r||{}}),y(arguments)||(y=function(n){return n&&typeof n=="object"?Er.call(n,"callee"):!1});var Cr=Nr||function(n){return n&&typeof n=="object"?Tr.call(n)==ir:!1},Pr=function(n){var r,t=[];
|
||||
@@ -34,5 +34,5 @@ return function(){var t=[n];return Ar.apply(t,arguments),r.apply(this,t)}},u.zip
|
||||
},u.isNumber=E,u.isObject=x,u.isRegExp=function(n){return n&&sr[typeof n]?Tr.call(n)==cr:!1},u.isString=A,u.isUndefined=function(n){return typeof n=="undefined"},u.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(e=(0>t?kr(0,e+t):qr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},u.mixin=Q,u.noConflict=function(){return hr._=br,this},u.random=X,u.reduce=M,u.reduceRight=$,u.result=function(n,r){var t=n?n[r]:Y;return j(t)?n[r]():t},u.size=function(n){var r=n?n.length:0;return typeof r=="number"?r:Ur(n).length
|
||||
},u.some=I,u.sortedIndex=V,u.template=function(n,r,e){var i=u,o=i.templateSettings;n||(n=""),e=_({},e,o);var f=0,a="__p+='",o=e.variable;n.replace(RegExp((e.escape||tr).source+"|"+(e.interpolate||tr).source+"|"+(e.evaluate||tr).source+"|$","g"),function(r,e,u,i,o){return a+=n.slice(f,o).replace(er,t),e&&(a+="'+_.escape("+e+")+'"),i&&(a+="';"+i+";__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=o+r.length,r}),a+="';\n",o||(o="obj",a="with("+o+"||{}){"+a+"}"),a="function("+o+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
|
||||
try{var l=Function("_","return "+a)(i)}catch(c){throw c.source=a,c}return r?l(r):(l.source=a,l)},u.unescape=function(n){return null==n?"":(n+"").replace(Hr,g)},u.uniqueId=function(n){var r=++Z+"";return n?n+r:r},u.all=S,u.any=I,u.detect=N,u.findWhere=function(n,r){return W(n,r,!0)},u.foldl=M,u.foldr=$,u.include=O,u.inject=M,u.first=C,u.last=function(n,r,t){if(n){var e=0,u=n.length;if(typeof r!="number"&&null!=r){var i=u;for(r=J(r,t,3);i--&&r(n[i],i,n);)e++}else if(e=r,null==e||t)return n[u-1];return $r.call(n,kr(0,u-e))
|
||||
}},u.take=C,u.head=C,Q(u),u.VERSION="1.3.1",u.prototype.chain=function(){return this.__chain__=!0,this},u.prototype.value=function(){return this.__wrapped__},R("pop push reverse shift sort splice unshift".split(" "),function(n){var r=_r[n];u.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),!zr.spliceObjects&&0===n.length&&delete n[0],this}}),R(["concat","join","slice"],function(n){var r=_r[n];u.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=!0),n
|
||||
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(hr._=u, define(function(){return u})):gr&&!gr.nodeType?yr?(yr.exports=u)._=u:gr._=u:hr._=u}.call(this);
|
||||
}},u.take=C,u.head=C,Q(u),u.VERSION="1.3.1",u.prototype.chain=function(){return this.__chain__=!0,this},u.prototype.value=function(){return this.__wrapped__},R("pop push reverse shift sort splice unshift".split(" "),function(n){var r=_r[n];u.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),zr.spliceObjects||0!==n.length||delete n[0],this}}),R(["concat","join","slice"],function(n){var r=_r[n];u.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=!0),n
|
||||
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(hr._=u, define(function(){return u})):gr&&!gr.nodeType?yr?(yr.exports=u)._=u:gr._=u:hr._=u}).call(this);
|
||||
503
doc/README.md
503
doc/README.md
File diff suppressed because it is too large
Load Diff
@@ -21,7 +21,7 @@
|
||||
* @private
|
||||
* @param {Element} element The element.
|
||||
* @param {string} eventName The name of the event.
|
||||
* @param {function} handler The event handler.
|
||||
* @param {Function} handler The event handler.
|
||||
* @returns {Element} The element.
|
||||
*/
|
||||
function addListener(element, eventName, handler) {
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
* See http://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_arithmetic_mean_of_logarithms.
|
||||
*
|
||||
* @private
|
||||
* @param {array} array The array of values.
|
||||
* @param {Array} array The array of values.
|
||||
* @returns {number} The geometric mean.
|
||||
*/
|
||||
function getGeometricMean(array) {
|
||||
@@ -127,7 +127,7 @@
|
||||
* margin of error.
|
||||
*
|
||||
* @private
|
||||
* @param {object} bench The benchmark object.
|
||||
* @param {Object} bench The benchmark object.
|
||||
* @returns {number} Returns the adjusted Hz.
|
||||
*/
|
||||
function getHz(bench) {
|
||||
@@ -591,7 +591,7 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
suites.push(
|
||||
Benchmark.Suite('`_.bind` (uses native `Function#bind` if available and inferred fast)')
|
||||
Benchmark.Suite('`_.bind` with partially applied arguments (uses native `Function#bind` if available and inferred fast)')
|
||||
.add(buildName, {
|
||||
'fn': 'lodash.bind(func, { "name": "moe" }, "hi")',
|
||||
'teardown': 'function bind(){}'
|
||||
|
||||
@@ -342,7 +342,7 @@
|
||||
* Creates a context object to use with `vm.runInContext`.
|
||||
*
|
||||
* @private
|
||||
* @returns {object} Returns a new context object.
|
||||
* @returns {Object} Returns a new context object.
|
||||
*/
|
||||
function createContext() {
|
||||
return vm.createContext({
|
||||
@@ -356,8 +356,8 @@
|
||||
* Expands a list of function names to include real and alias names.
|
||||
*
|
||||
* @private
|
||||
* @param {array} funcNames The array of function names to expand.
|
||||
* @returns {array} Returns a new array of expanded function names.
|
||||
* @param {Array} funcNames The array of function names to expand.
|
||||
* @returns {Array} Returns a new array of expanded function names.
|
||||
*/
|
||||
function expandFuncNames(funcNames) {
|
||||
return funcNames.reduce(function(result, funcName) {
|
||||
@@ -372,7 +372,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} funcName The name of the function to get aliases for.
|
||||
* @returns {array} Returns an array of aliases.
|
||||
* @returns {Array} Returns an array of aliases.
|
||||
*/
|
||||
function getAliases(funcName) {
|
||||
return realToAliasMap[funcName] || [];
|
||||
@@ -393,7 +393,7 @@
|
||||
* Tests if a given method can be called successfully.
|
||||
*
|
||||
* @private
|
||||
* @param {object} lodash The built Lo-Dash object.
|
||||
* @param {Object} lodash The built Lo-Dash object.
|
||||
* @param {string} funcName The name of the method to test.
|
||||
* @param {string} message The unit test message.
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* @private
|
||||
* @param {Element} element The element.
|
||||
* @param {string} eventName The name of the event.
|
||||
* @param {function} handler The event handler.
|
||||
* @param {Function} handler The event handler.
|
||||
* @returns {Element} The element.
|
||||
*/
|
||||
function addListener(element, eventName, handler) {
|
||||
|
||||
152
vendor/benchmark.js/benchmark.js
vendored
152
vendor/benchmark.js/benchmark.js
vendored
@@ -105,8 +105,8 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @param {object} [context=window] The context object.
|
||||
* @returns {function} Returns the `Benchmark` function.
|
||||
* @param {Object} [context=window] The context object.
|
||||
* @returns {Function} Returns the `Benchmark` function.
|
||||
*/
|
||||
function runInContext(context) {
|
||||
// exit early if unable to acquire lodash
|
||||
@@ -181,7 +181,7 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
var support = {};
|
||||
|
||||
@@ -245,7 +245,7 @@
|
||||
* Timer object used by `clock()` and `Deferred#resolve`.
|
||||
*
|
||||
* @private
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
var timer = {
|
||||
|
||||
@@ -254,7 +254,7 @@
|
||||
*
|
||||
* @private
|
||||
* @memberOf timer
|
||||
* @type {(function|object)}
|
||||
* @type {Function|Object}
|
||||
*/
|
||||
'ns': Date,
|
||||
|
||||
@@ -263,7 +263,7 @@
|
||||
*
|
||||
* @private
|
||||
* @memberOf timer
|
||||
* @param {object} deferred The deferred instance.
|
||||
* @param {Object} deferred The deferred instance.
|
||||
*/
|
||||
'start': null, // lazy defined in `clock()`
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
*
|
||||
* @private
|
||||
* @memberOf timer
|
||||
* @param {object} deferred The deferred instance.
|
||||
* @param {Object} deferred The deferred instance.
|
||||
*/
|
||||
'stop': null // lazy defined in `clock()`
|
||||
};
|
||||
@@ -284,8 +284,8 @@
|
||||
*
|
||||
* @constructor
|
||||
* @param {string} name A name to identify the benchmark.
|
||||
* @param {(function|string)} fn The test to benchmark.
|
||||
* @param {object} [options={}] Options object.
|
||||
* @param {Function|string} fn The test to benchmark.
|
||||
* @param {Object} [options={}] Options object.
|
||||
* @example
|
||||
*
|
||||
* // basic usage (the `new` operator is optional)
|
||||
@@ -394,7 +394,7 @@
|
||||
*
|
||||
* @constructor
|
||||
* @memberOf Benchmark
|
||||
* @param {object} clone The cloned benchmark instance.
|
||||
* @param {Object} clone The cloned benchmark instance.
|
||||
*/
|
||||
function Deferred(clone) {
|
||||
var deferred = this;
|
||||
@@ -410,7 +410,7 @@
|
||||
*
|
||||
* @constructor
|
||||
* @memberOf Benchmark
|
||||
* @param {(object|string)} type The event type.
|
||||
* @param {Object|string} type The event type.
|
||||
*/
|
||||
function Event(type) {
|
||||
var event = this;
|
||||
@@ -428,7 +428,7 @@
|
||||
* @constructor
|
||||
* @memberOf Benchmark
|
||||
* @param {string} name A name to identify the suite.
|
||||
* @param {object} [options={}] Options object.
|
||||
* @param {Object} [options={}] Options object.
|
||||
* @example
|
||||
*
|
||||
* // basic usage (the `new` operator is optional)
|
||||
@@ -499,7 +499,7 @@
|
||||
* @private
|
||||
* @param {string} args The comma separated function arguments.
|
||||
* @param {string} body The function body.
|
||||
* @returns {function} The new function.
|
||||
* @returns {Function} The new function.
|
||||
*/
|
||||
function createFunction() {
|
||||
// lazy define
|
||||
@@ -523,8 +523,8 @@
|
||||
* Delay the execution of a function based on the benchmark's `delay` property.
|
||||
*
|
||||
* @private
|
||||
* @param {object} bench The benchmark instance.
|
||||
* @param {object} fn The function to execute.
|
||||
* @param {Object} bench The benchmark instance.
|
||||
* @param {Object} fn The function to execute.
|
||||
*/
|
||||
function delay(bench, fn) {
|
||||
bench._timerId = _.delay(fn, bench.delay * 1e3);
|
||||
@@ -545,7 +545,7 @@
|
||||
* Gets the name of the first argument from a function's source.
|
||||
*
|
||||
* @private
|
||||
* @param {function} fn The function.
|
||||
* @param {Function} fn The function.
|
||||
* @returns {string} The argument name.
|
||||
*/
|
||||
function getFirstArgument(fn) {
|
||||
@@ -558,7 +558,7 @@
|
||||
* See http://en.wikipedia.org/wiki/Geometric_mean#Relationship_with_arithmetic_mean_of_logarithms.
|
||||
*
|
||||
* @private
|
||||
* @param {array} sample The sample.
|
||||
* @param {Array} sample The sample.
|
||||
* @returns {number} The geometric mean.
|
||||
*/
|
||||
function getGeometricMean(sample) {
|
||||
@@ -571,7 +571,7 @@
|
||||
* Computes the arithmetic mean of a sample.
|
||||
*
|
||||
* @private
|
||||
* @param {array} sample The sample.
|
||||
* @param {Array} sample The sample.
|
||||
* @returns {number} The mean.
|
||||
*/
|
||||
function getMean(sample) {
|
||||
@@ -584,7 +584,7 @@
|
||||
* Gets the source code of a function.
|
||||
*
|
||||
* @private
|
||||
* @param {function} fn The function.
|
||||
* @param {Function} fn The function.
|
||||
* @param {string} altSource A string used when a function's source code is unretrievable.
|
||||
* @returns {string} The function's source code.
|
||||
*/
|
||||
@@ -704,8 +704,8 @@
|
||||
* A helper function for setting options/event handlers.
|
||||
*
|
||||
* @private
|
||||
* @param {object} object The benchmark or suite instance.
|
||||
* @param {object} [options={}] Options object.
|
||||
* @param {Object} object The benchmark or suite instance.
|
||||
* @param {Object} [options={}] Options object.
|
||||
*/
|
||||
function setOptions(object, options) {
|
||||
options = _.extend({}, object.constructor.options, options);
|
||||
@@ -758,10 +758,10 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @param {array} array The array to iterate over.
|
||||
* @param {(function|string)} callback The function/alias called per iteration.
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function|string} callback The function/alias called per iteration.
|
||||
* @param {*} thisArg The `this` binding for the callback.
|
||||
* @returns {array} A new array of values that passed callback filter.
|
||||
* @returns {Array} A new array of values that passed callback filter.
|
||||
* @example
|
||||
*
|
||||
* // get odd numbers
|
||||
@@ -818,10 +818,10 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @param {array} benches Array of benchmarks to iterate over.
|
||||
* @param {(object|string)} name The name of the method to invoke OR options object.
|
||||
* @param {Array} benches Array of benchmarks to iterate over.
|
||||
* @param {Object|string} name The name of the method to invoke OR options object.
|
||||
* @param {...*} [arg] Arguments to invoke the method with.
|
||||
* @returns {array} A new array of values returned from each method invoked.
|
||||
* @returns {Array} A new array of values returned from each method invoked.
|
||||
* @example
|
||||
*
|
||||
* // invoke `reset` on all benchmarks
|
||||
@@ -999,7 +999,7 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @param {(array|object)} object The object to operate on.
|
||||
* @param {Array|Object} object The object to operate on.
|
||||
* @param {string} [separator1=','] The separator used between key-value pairs.
|
||||
* @param {string} [separator2=': '] The separator used between keys and values.
|
||||
* @returns {string} The joined result.
|
||||
@@ -1023,7 +1023,7 @@
|
||||
*
|
||||
* @name abort
|
||||
* @memberOf Benchmark.Suite
|
||||
* @returns {object} The suite instance.
|
||||
* @returns {Object} The suite instance.
|
||||
*/
|
||||
function abortSuite() {
|
||||
var event,
|
||||
@@ -1053,9 +1053,9 @@
|
||||
*
|
||||
* @memberOf Benchmark.Suite
|
||||
* @param {string} name A name to identify the benchmark.
|
||||
* @param {(function|string)} fn The test to benchmark.
|
||||
* @param {object} [options={}] Options object.
|
||||
* @returns {object} The benchmark instance.
|
||||
* @param {Function|string} fn The test to benchmark.
|
||||
* @param {Object} [options={}] Options object.
|
||||
* @returns {Object} The benchmark instance.
|
||||
* @example
|
||||
*
|
||||
* // basic usage
|
||||
@@ -1101,8 +1101,8 @@
|
||||
*
|
||||
* @name clone
|
||||
* @memberOf Benchmark.Suite
|
||||
* @param {object} options Options object to overwrite cloned options.
|
||||
* @returns {object} The new suite instance.
|
||||
* @param {Object} options Options object to overwrite cloned options.
|
||||
* @returns {Object} The new suite instance.
|
||||
*/
|
||||
function cloneSuite(options) {
|
||||
var suite = this,
|
||||
@@ -1124,8 +1124,8 @@
|
||||
*
|
||||
* @name filter
|
||||
* @memberOf Benchmark.Suite
|
||||
* @param {(function|string)} callback The function/alias called per iteration.
|
||||
* @returns {object} A new suite of benchmarks that passed callback filter.
|
||||
* @param {Function|string} callback The function/alias called per iteration.
|
||||
* @returns {Object} A new suite of benchmarks that passed callback filter.
|
||||
*/
|
||||
function filterSuite(callback) {
|
||||
var suite = this,
|
||||
@@ -1140,7 +1140,7 @@
|
||||
*
|
||||
* @name reset
|
||||
* @memberOf Benchmark.Suite
|
||||
* @returns {object} The suite instance.
|
||||
* @returns {Object} The suite instance.
|
||||
*/
|
||||
function resetSuite() {
|
||||
var event,
|
||||
@@ -1169,8 +1169,8 @@
|
||||
*
|
||||
* @name run
|
||||
* @memberOf Benchmark.Suite
|
||||
* @param {object} [options={}] Options object.
|
||||
* @returns {object} The suite instance.
|
||||
* @param {Object} [options={}] Options object.
|
||||
* @returns {Object} The suite instance.
|
||||
* @example
|
||||
*
|
||||
* // basic usage
|
||||
@@ -1215,7 +1215,7 @@
|
||||
* Executes all registered listeners of the specified event type.
|
||||
*
|
||||
* @memberOf Benchmark, Benchmark.Suite
|
||||
* @param {(object|string)} type The event type or object.
|
||||
* @param {Object|string} type The event type or object.
|
||||
* @returns {*} Returns the return value of the last listener executed.
|
||||
*/
|
||||
function emit(type) {
|
||||
@@ -1246,7 +1246,7 @@
|
||||
*
|
||||
* @memberOf Benchmark, Benchmark.Suite
|
||||
* @param {string} type The event type.
|
||||
* @returns {array} The listeners array.
|
||||
* @returns {Array} The listeners array.
|
||||
*/
|
||||
function listeners(type) {
|
||||
var object = this,
|
||||
@@ -1262,8 +1262,8 @@
|
||||
*
|
||||
* @memberOf Benchmark, Benchmark.Suite
|
||||
* @param {string} [type] The event type.
|
||||
* @param {function} [listener] The function to unregister.
|
||||
* @returns {object} The benchmark instance.
|
||||
* @param {Function} [listener] The function to unregister.
|
||||
* @returns {Object} The benchmark instance.
|
||||
* @example
|
||||
*
|
||||
* // unregister a listener for an event type
|
||||
@@ -1313,8 +1313,8 @@
|
||||
*
|
||||
* @memberOf Benchmark, Benchmark.Suite
|
||||
* @param {string} type The event type.
|
||||
* @param {function} listener The function to register.
|
||||
* @returns {object} The benchmark instance.
|
||||
* @param {Function} listener The function to register.
|
||||
* @returns {Object} The benchmark instance.
|
||||
* @example
|
||||
*
|
||||
* // register a listener for an event type
|
||||
@@ -1342,7 +1342,7 @@
|
||||
* Aborts the benchmark without recording times.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @returns {object} The benchmark instance.
|
||||
* @returns {Object} The benchmark instance.
|
||||
*/
|
||||
function abort() {
|
||||
var event,
|
||||
@@ -1375,8 +1375,8 @@
|
||||
* Creates a new benchmark using the same test and options.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @param {object} options Options object to overwrite cloned options.
|
||||
* @returns {object} The new benchmark instance.
|
||||
* @param {Object} options Options object to overwrite cloned options.
|
||||
* @returns {Object} The new benchmark instance.
|
||||
* @example
|
||||
*
|
||||
* var bizarro = bench.clone({
|
||||
@@ -1405,7 +1405,7 @@
|
||||
* Determines if a benchmark is faster than another.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @param {object} other The benchmark to compare.
|
||||
* @param {Object} other The benchmark to compare.
|
||||
* @returns {number} Returns `-1` if slower, `1` if faster, and `0` if indeterminate.
|
||||
*/
|
||||
function compare(other) {
|
||||
@@ -1459,7 +1459,7 @@
|
||||
* Reset properties and abort if running.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @returns {object} The benchmark instance.
|
||||
* @returns {Object} The benchmark instance.
|
||||
*/
|
||||
function reset() {
|
||||
var data,
|
||||
@@ -1557,7 +1557,7 @@
|
||||
* Clocks the time taken to execute a test per cycle (secs).
|
||||
*
|
||||
* @private
|
||||
* @param {object} bench The benchmark instance.
|
||||
* @param {Object} bench The benchmark instance.
|
||||
* @returns {number} The time taken.
|
||||
*/
|
||||
function clock() {
|
||||
@@ -1872,8 +1872,8 @@
|
||||
* Computes stats on benchmark results.
|
||||
*
|
||||
* @private
|
||||
* @param {object} bench The benchmark instance.
|
||||
* @param {object} options The options object.
|
||||
* @param {Object} bench The benchmark instance.
|
||||
* @param {Object} options The options object.
|
||||
*/
|
||||
function compute(bench, options) {
|
||||
options || (options = {});
|
||||
@@ -2026,8 +2026,8 @@
|
||||
* Cycles a benchmark until a run `count` can be established.
|
||||
*
|
||||
* @private
|
||||
* @param {object} clone The cloned benchmark instance.
|
||||
* @param {object} options The options object.
|
||||
* @param {Object} clone The cloned benchmark instance.
|
||||
* @param {Object} options The options object.
|
||||
*/
|
||||
function cycle(clone, options) {
|
||||
options || (options = {});
|
||||
@@ -2130,8 +2130,8 @@
|
||||
* Runs the benchmark.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @param {object} [options={}] Options object.
|
||||
* @returns {object} The benchmark instance.
|
||||
* @param {Object} [options={}] Options object.
|
||||
* @returns {Object} The benchmark instance.
|
||||
* @example
|
||||
*
|
||||
* // basic usage
|
||||
@@ -2187,7 +2187,7 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'options': {
|
||||
|
||||
@@ -2270,7 +2270,7 @@
|
||||
* An event listener called when the benchmark is aborted.
|
||||
*
|
||||
* @memberOf Benchmark.options
|
||||
* @type function
|
||||
* @type Function
|
||||
*/
|
||||
'onAbort': undefined,
|
||||
|
||||
@@ -2278,7 +2278,7 @@
|
||||
* An event listener called when the benchmark completes running.
|
||||
*
|
||||
* @memberOf Benchmark.options
|
||||
* @type function
|
||||
* @type Function
|
||||
*/
|
||||
'onComplete': undefined,
|
||||
|
||||
@@ -2286,7 +2286,7 @@
|
||||
* An event listener called after each run cycle.
|
||||
*
|
||||
* @memberOf Benchmark.options
|
||||
* @type function
|
||||
* @type Function
|
||||
*/
|
||||
'onCycle': undefined,
|
||||
|
||||
@@ -2294,7 +2294,7 @@
|
||||
* An event listener called when a test errors.
|
||||
*
|
||||
* @memberOf Benchmark.options
|
||||
* @type function
|
||||
* @type Function
|
||||
*/
|
||||
'onError': undefined,
|
||||
|
||||
@@ -2302,7 +2302,7 @@
|
||||
* An event listener called when the benchmark is reset.
|
||||
*
|
||||
* @memberOf Benchmark.options
|
||||
* @type function
|
||||
* @type Function
|
||||
*/
|
||||
'onReset': undefined,
|
||||
|
||||
@@ -2310,7 +2310,7 @@
|
||||
* An event listener called when the benchmark starts running.
|
||||
*
|
||||
* @memberOf Benchmark.options
|
||||
* @type function
|
||||
* @type Function
|
||||
*/
|
||||
'onStart': undefined
|
||||
},
|
||||
@@ -2321,7 +2321,7 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'platform': context.platform || req('platform') || ({
|
||||
'description': context.navigator && context.navigator.userAgent || null,
|
||||
@@ -2393,7 +2393,7 @@
|
||||
* The compiled test function.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type function|...string
|
||||
* @type {Function|string}
|
||||
*/
|
||||
'compiled': undefined,
|
||||
|
||||
@@ -2401,7 +2401,7 @@
|
||||
* The error object if the test failed.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'error': undefined,
|
||||
|
||||
@@ -2409,7 +2409,7 @@
|
||||
* The test to benchmark.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type function|...string
|
||||
* @type {Function|string}
|
||||
*/
|
||||
'fn': undefined,
|
||||
|
||||
@@ -2433,7 +2433,7 @@
|
||||
* Compiled into the test and executed immediately **before** the test loop.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type function|...string
|
||||
* @type {Function|string}
|
||||
* @example
|
||||
*
|
||||
* // basic usage
|
||||
@@ -2496,7 +2496,7 @@
|
||||
* Compiled into the test and executed immediately **after** the test loop.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type function|...string
|
||||
* @type {Function|string}
|
||||
*/
|
||||
'teardown': noop,
|
||||
|
||||
@@ -2504,7 +2504,7 @@
|
||||
* An object of stats including mean, margin or error, and standard deviation.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'stats': {
|
||||
|
||||
@@ -2569,7 +2569,7 @@
|
||||
* An object of timing data including cycle, elapsed, period, start, and stop.
|
||||
*
|
||||
* @memberOf Benchmark
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'times': {
|
||||
|
||||
@@ -2628,7 +2628,7 @@
|
||||
* The deferred benchmark instance.
|
||||
*
|
||||
* @memberOf Benchmark.Deferred
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'benchmark': null,
|
||||
|
||||
@@ -2685,7 +2685,7 @@
|
||||
* The object whose listeners are currently being processed.
|
||||
*
|
||||
* @memberOf Benchmark.Event
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'currentTarget': undefined,
|
||||
|
||||
@@ -2701,7 +2701,7 @@
|
||||
* The object to which the event was originally emitted.
|
||||
*
|
||||
* @memberOf Benchmark.Event
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'target': undefined,
|
||||
|
||||
@@ -2729,7 +2729,7 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark.Suite
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
Suite.options = {
|
||||
|
||||
|
||||
2
vendor/docdown/docdown.php
vendored
2
vendor/docdown/docdown.php
vendored
@@ -9,7 +9,7 @@ require(dirname(__FILE__) . '/src/DocDown/MarkdownGenerator.php');
|
||||
/**
|
||||
* Generates Markdown from JSDoc entries in a given file.
|
||||
*
|
||||
* @param {array} [$options=array()] The options array.
|
||||
* @param {Array} [$options=array()] The options array.
|
||||
* @returns {string} The generated Markdown.
|
||||
* @example
|
||||
*
|
||||
|
||||
8
vendor/docdown/src/DocDown/Alias.php
vendored
8
vendor/docdown/src/DocDown/Alias.php
vendored
@@ -20,7 +20,7 @@ class Alias {
|
||||
*
|
||||
* @constructor
|
||||
* @param {string} $name The alias name.
|
||||
* @param {object} $owner The alias owner.
|
||||
* @param {Object} $owner The alias owner.
|
||||
*/
|
||||
public function __construct( $name, $owner ) {
|
||||
$this->owner = $owner;
|
||||
@@ -48,7 +48,7 @@ class Alias {
|
||||
*
|
||||
* @memberOf Alias
|
||||
* @param {number} $index The index of the array value to return.
|
||||
* @returns {(array|string)} The entry's `alias` objects.
|
||||
* @returns {Array|string} The entry's `alias` objects.
|
||||
*/
|
||||
public function getAliases( $index = null ) {
|
||||
$result = array();
|
||||
@@ -172,7 +172,7 @@ class Alias {
|
||||
*
|
||||
* @memberOf Alias
|
||||
* @param {number} $index The index of the array value to return.
|
||||
* @returns {(array|string)} The owner entry's `member` data.
|
||||
* @returns {Array|string} The owner entry's `member` data.
|
||||
*/
|
||||
public function getMembers( $index = null ) {
|
||||
return $index !== null
|
||||
@@ -195,7 +195,7 @@ class Alias {
|
||||
*
|
||||
* @memberOf Alias
|
||||
* @param {number} $index The index of the array value to return.
|
||||
* @returns {array} The owner entry's `param` data.
|
||||
* @returns {Array} The owner entry's `param` data.
|
||||
*/
|
||||
public function getParams( $index = null ) {
|
||||
return $index !== null
|
||||
|
||||
19
vendor/docdown/src/DocDown/Entry.php
vendored
19
vendor/docdown/src/DocDown/Entry.php
vendored
@@ -55,7 +55,7 @@ class Entry {
|
||||
* @static
|
||||
* @memberOf Entry
|
||||
* @param {string} $source The source code.
|
||||
* @returns {array} The array of entries.
|
||||
* @returns {Array} The array of entries.
|
||||
*/
|
||||
public static function getEntries( $source ) {
|
||||
preg_match_all('#/\*\*(?![-!])[\s\S]*?\*/\s*.+#', $source, $result);
|
||||
@@ -90,7 +90,7 @@ class Entry {
|
||||
*
|
||||
* @memberOf Entry
|
||||
* @param {number} $index The index of the array value to return.
|
||||
* @returns {(array|string)} The entry's `alias` objects.
|
||||
* @returns {Array|string} The entry's `alias` objects.
|
||||
*/
|
||||
public function getAliases( $index = null ) {
|
||||
if (!isset($this->_aliases)) {
|
||||
@@ -167,7 +167,7 @@ class Entry {
|
||||
if (count($result)) {
|
||||
$result = trim(preg_replace('/(?:^|\n)[\t ]*\*[\t ]?/', ' ', $result[1]));
|
||||
} else {
|
||||
$result = $this->getType() == 'function' ? 'Methods' : 'Properties';
|
||||
$result = $this->getType() == 'Function' ? 'Methods' : 'Properties';
|
||||
}
|
||||
$this->_category = $result;
|
||||
return $result;
|
||||
@@ -191,7 +191,7 @@ class Entry {
|
||||
$result = preg_replace('/(?:^|\n)[\t ]*\*\n[\t ]*\*[\t ]*/', "\n\n", $result);
|
||||
$result = preg_replace('/(?:^|\n)[\t ]*\*[\t ]?/', ' ', $result);
|
||||
$result = trim($result);
|
||||
$result = ($type == 'function' ? '' : '(' . str_replace('|', ', ', trim($type, '{}')) . '): ') . $result;
|
||||
$result = ($type == 'Function' ? '' : '(' . str_replace('|', ', ', trim($type, '{}')) . '): ') . $result;
|
||||
}
|
||||
$this->_desc = $result;
|
||||
return $result;
|
||||
@@ -330,7 +330,7 @@ class Entry {
|
||||
*
|
||||
* @memberOf Entry
|
||||
* @param {number} $index The index of the array value to return.
|
||||
* @returns {(array|string)} The entry's `member` data.
|
||||
* @returns {Array|string} The entry's `member` data.
|
||||
*/
|
||||
public function getMembers( $index = null ) {
|
||||
if (!isset($this->_members)) {
|
||||
@@ -373,7 +373,7 @@ class Entry {
|
||||
*
|
||||
* @memberOf Entry
|
||||
* @param {number} $index The index of the array value to return.
|
||||
* @returns {array} The entry's `param` data.
|
||||
* @returns {Array} The entry's `param` data.
|
||||
*/
|
||||
public function getParams( $index = null ) {
|
||||
if (!isset($this->_params)) {
|
||||
@@ -434,9 +434,12 @@ class Entry {
|
||||
|
||||
preg_match('#\*[\t ]*@type\s(?:\{\(?)?([^)}\n]+)#', $this->entry, $result);
|
||||
if (count($result)) {
|
||||
$result = trim(strtolower($result[1]));
|
||||
$result = trim($result[1]);
|
||||
if (preg_match('/^(?:array|function|object|regexp)$/', $result)) {
|
||||
$result = ucfirst($result);
|
||||
}
|
||||
} else {
|
||||
$result = $this->isFunction() ? 'function' : 'unknown';
|
||||
$result = $this->isFunction() ? 'Function' : 'unknown';
|
||||
}
|
||||
$this->_type = $result;
|
||||
return $result;
|
||||
|
||||
20
vendor/docdown/src/DocDown/MarkdownGenerator.php
vendored
20
vendor/docdown/src/DocDown/MarkdownGenerator.php
vendored
@@ -56,7 +56,7 @@ class MarkdownGenerator {
|
||||
*
|
||||
* @constructor
|
||||
* @param {string} $source The source code to parse.
|
||||
* @param {array} $options The options array.
|
||||
* @param {Array} $options The options array.
|
||||
*/
|
||||
public function __construct( $source, $options = array() ) {
|
||||
// juggle arguments
|
||||
@@ -139,7 +139,7 @@ class MarkdownGenerator {
|
||||
* @static
|
||||
* @memberOf MarkdownGenerator
|
||||
* @param {string} $string The string to modify.
|
||||
* @param {(array|object)} $object The template object.
|
||||
* @param {Array|Object} $object The template object.
|
||||
* @returns {string} The modified string.
|
||||
*/
|
||||
private static function interpolate( $string, $object ) {
|
||||
@@ -175,8 +175,8 @@ class MarkdownGenerator {
|
||||
*
|
||||
* @private
|
||||
* @memberOf MarkdownGenerator
|
||||
* @param {array} $result The result array to modify.
|
||||
* @param {array} $entries The entries to add to the `$result`.
|
||||
* @param {Array} $result The result array to modify.
|
||||
* @param {Array} $entries The entries to add to the `$result`.
|
||||
*/
|
||||
private function addEntries( &$result, $entries ) {
|
||||
foreach ($entries as $entry) {
|
||||
@@ -235,7 +235,7 @@ class MarkdownGenerator {
|
||||
*
|
||||
* @private
|
||||
* @memberOf MarkdownGenerator
|
||||
* @param {(number|object)} $entry The entry object.
|
||||
* @param {number|Object} $entry The entry object.
|
||||
* @param {string} $member The name of the member.
|
||||
* @returns {string} The url hash.
|
||||
*/
|
||||
@@ -255,7 +255,7 @@ class MarkdownGenerator {
|
||||
*
|
||||
* @private
|
||||
* @memberOf MarkdownGenerator
|
||||
* @param {(number|object)} $entry The entry object.
|
||||
* @param {number|Object} $entry The entry object.
|
||||
* @returns {string} The url.
|
||||
*/
|
||||
private function getLineUrl( $entry ) {
|
||||
@@ -268,7 +268,7 @@ class MarkdownGenerator {
|
||||
*
|
||||
* @private
|
||||
* @memberOf MarkdownGenerator
|
||||
* @param {(number|object)} $entry The entry object.
|
||||
* @param {number|Object} $entry The entry object.
|
||||
* @returns {string} The separator.
|
||||
*/
|
||||
private function getSeparator( $entry ) {
|
||||
@@ -315,7 +315,7 @@ class MarkdownGenerator {
|
||||
}
|
||||
|
||||
// append entry to api member
|
||||
if (!$member || $entry->isCtor() || ($entry->getType() == 'object' &&
|
||||
if (!$member || $entry->isCtor() || ($entry->getType() == 'Object' &&
|
||||
!preg_match('/[=:]\s*(?:null|undefined)\s*[,;]?$/', $entry->entry))) {
|
||||
|
||||
// assign the real entry, replacing the temporary entry if it exist
|
||||
@@ -400,7 +400,7 @@ class MarkdownGenerator {
|
||||
foreach ($entry->{$kind} as $subentry) {
|
||||
$name = $subentry->getName();
|
||||
// functions w/o ALL-CAPs names are last
|
||||
$sortBy['a'][] = $subentry->getType() == 'function' && !preg_match('/^[A-Z_]+$/', $name);
|
||||
$sortBy['a'][] = $subentry->getType() == 'Function' && !preg_match('/^[A-Z_]+$/', $name);
|
||||
// ALL-CAPs properties first
|
||||
$sortBy['b'][] = preg_match('/^[A-Z_]+$/', $name);
|
||||
// lowercase alphanumeric sort
|
||||
@@ -541,7 +541,7 @@ class MarkdownGenerator {
|
||||
$subentries = is_string($kind) ? $entry->{$kind} : array($kind);
|
||||
|
||||
// add sub-entry name
|
||||
if ($kind != 'static' && $entry->getType() != 'object' &&
|
||||
if ($kind != 'static' && $entry->getType() != 'Object' &&
|
||||
count($subentries) && $subentries[0] != $kind) {
|
||||
if ($kind == 'plugin') {
|
||||
$result[] = $closeTag;
|
||||
|
||||
66
vendor/platform.js/platform.js
vendored
66
vendor/platform.js/platform.js
vendored
@@ -77,8 +77,8 @@
|
||||
* An iteration utility for arrays and objects.
|
||||
*
|
||||
* @private
|
||||
* @param {(array|object)} object The object to iterate over.
|
||||
* @param {function} callback The function called per iteration.
|
||||
* @param {Array|Object} object The object to iterate over.
|
||||
* @param {Function} callback The function called per iteration.
|
||||
*/
|
||||
function each(object, callback) {
|
||||
var index = -1,
|
||||
@@ -111,8 +111,8 @@
|
||||
* Iterates over an object's own properties, executing the `callback` for each.
|
||||
*
|
||||
* @private
|
||||
* @param {object} object The object to iterate over.
|
||||
* @param {function} callback The function executed per own property.
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} callback The function executed per own property.
|
||||
*/
|
||||
function forOwn(object, callback) {
|
||||
for (var key in object) {
|
||||
@@ -137,7 +137,7 @@
|
||||
* Checks if an object has the specified key as a direct property.
|
||||
*
|
||||
* @private
|
||||
* @param {object} object The object to check.
|
||||
* @param {Object} object The object to check.
|
||||
* @param {string} key The key to check for.
|
||||
* @returns {boolean} Returns `true` if key is a direct property, else `false`.
|
||||
*/
|
||||
@@ -199,8 +199,8 @@
|
||||
* A bare-bones` Array#reduce` like utility function.
|
||||
*
|
||||
* @private
|
||||
* @param {array} array The array to iterate over.
|
||||
* @param {function} callback The function called per iteration.
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} callback The function called per iteration.
|
||||
* @param {*} accumulator Initial value of the accumulator.
|
||||
* @returns {*} The accumulator.
|
||||
*/
|
||||
@@ -230,7 +230,7 @@
|
||||
*
|
||||
* @memberOf platform
|
||||
* @param {string} [ua = navigator.userAgent] The user agent string.
|
||||
* @returns {object} A platform object.
|
||||
* @returns {Object} A platform object.
|
||||
*/
|
||||
function parse(ua) {
|
||||
|
||||
@@ -377,8 +377,8 @@
|
||||
* Picks the layout engine from an array of guesses.
|
||||
*
|
||||
* @private
|
||||
* @param {array} guesses An array of guesses.
|
||||
* @returns {(null|string)} The detected layout engine.
|
||||
* @param {Array} guesses An array of guesses.
|
||||
* @returns {null|string} The detected layout engine.
|
||||
*/
|
||||
function getLayout(guesses) {
|
||||
return reduce(guesses, function(result, guess) {
|
||||
@@ -392,8 +392,8 @@
|
||||
* Picks the manufacturer from an array of guesses.
|
||||
*
|
||||
* @private
|
||||
* @param {array} guesses An array of guesses.
|
||||
* @returns {(null|string)} The detected manufacturer.
|
||||
* @param {Array} guesses An array of guesses.
|
||||
* @returns {null|string} The detected manufacturer.
|
||||
*/
|
||||
function getManufacturer(guesses) {
|
||||
return reduce(guesses, function(result, value, key) {
|
||||
@@ -410,8 +410,8 @@
|
||||
* Picks the browser name from an array of guesses.
|
||||
*
|
||||
* @private
|
||||
* @param {array} guesses An array of guesses.
|
||||
* @returns {(null|string)} The detected browser name.
|
||||
* @param {Array} guesses An array of guesses.
|
||||
* @returns {null|string} The detected browser name.
|
||||
*/
|
||||
function getName(guesses) {
|
||||
return reduce(guesses, function(result, guess) {
|
||||
@@ -425,8 +425,8 @@
|
||||
* Picks the OS name from an array of guesses.
|
||||
*
|
||||
* @private
|
||||
* @param {array} guesses An array of guesses.
|
||||
* @returns {(null|string)} The detected OS name.
|
||||
* @param {Array} guesses An array of guesses.
|
||||
* @returns {null|string} The detected OS name.
|
||||
*/
|
||||
function getOS(guesses) {
|
||||
return reduce(guesses, function(result, guess) {
|
||||
@@ -475,8 +475,8 @@
|
||||
* Picks the product name from an array of guesses.
|
||||
*
|
||||
* @private
|
||||
* @param {array} guesses An array of guesses.
|
||||
* @returns {(null|string)} The detected product name.
|
||||
* @param {Array} guesses An array of guesses.
|
||||
* @returns {null|string} The detected product name.
|
||||
*/
|
||||
function getProduct(guesses) {
|
||||
return reduce(guesses, function(result, guess) {
|
||||
@@ -504,8 +504,8 @@
|
||||
* Resolves the version using an array of UA patterns.
|
||||
*
|
||||
* @private
|
||||
* @param {array} patterns An array of UA patterns.
|
||||
* @returns {(null|string)} The detected version.
|
||||
* @param {Array} patterns An array of UA patterns.
|
||||
* @returns {null|string} The detected version.
|
||||
*/
|
||||
function getVersion(patterns) {
|
||||
return reduce(patterns, function(result, pattern) {
|
||||
@@ -862,7 +862,7 @@
|
||||
* The platform object.
|
||||
*
|
||||
* @name platform
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
return {
|
||||
|
||||
@@ -870,7 +870,7 @@
|
||||
* The browser/environment version.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'version': name && version && (description.unshift(version), version),
|
||||
|
||||
@@ -878,7 +878,7 @@
|
||||
* The name of the browser/environment.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'name': name && (description.unshift(name), name),
|
||||
|
||||
@@ -886,7 +886,7 @@
|
||||
* The name of the operating system.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
'os': os
|
||||
? (name &&
|
||||
@@ -898,7 +898,7 @@
|
||||
* The CPU architecture the OS is built for.
|
||||
*
|
||||
* @memberOf platform.os
|
||||
* @type number|Null
|
||||
* @type number|null
|
||||
*/
|
||||
'architecture': null,
|
||||
|
||||
@@ -906,7 +906,7 @@
|
||||
* The family of the OS.
|
||||
*
|
||||
* @memberOf platform.os
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'family': null,
|
||||
|
||||
@@ -914,7 +914,7 @@
|
||||
* The version of the OS.
|
||||
*
|
||||
* @memberOf platform.os
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'version': null,
|
||||
|
||||
@@ -931,7 +931,7 @@
|
||||
* The platform description.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'description': description.length ? description.join(' ') : ua,
|
||||
|
||||
@@ -939,7 +939,7 @@
|
||||
* The name of the browser layout engine.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'layout': layout && layout[0],
|
||||
|
||||
@@ -947,7 +947,7 @@
|
||||
* The name of the product's manufacturer.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'manufacturer': manufacturer,
|
||||
|
||||
@@ -955,7 +955,7 @@
|
||||
* The alpha/beta release indicator.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'prerelease': prerelease,
|
||||
|
||||
@@ -963,7 +963,7 @@
|
||||
* The name of the product hosting the browser.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'product': product,
|
||||
|
||||
@@ -971,7 +971,7 @@
|
||||
* The browser's user agent string.
|
||||
*
|
||||
* @memberOf platform
|
||||
* @type string|Null
|
||||
* @type string|null
|
||||
*/
|
||||
'ua': ua,
|
||||
|
||||
|
||||
22
vendor/qunit-clib/qunit-clib.js
vendored
22
vendor/qunit-clib/qunit-clib.js
vendored
@@ -22,7 +22,7 @@
|
||||
* Installs the CLI boilerplate additions on the given `context` object.
|
||||
*
|
||||
* @memberOf exports
|
||||
* @param {object} context The context object.
|
||||
* @param {Object} context The context object.
|
||||
*/
|
||||
function runInContext(context) {
|
||||
// exit early if no `context` is provided or if `QUnit` does not exist
|
||||
@@ -34,7 +34,7 @@
|
||||
* Schedules timer-based callbacks.
|
||||
*
|
||||
* @private
|
||||
* @param {(function|string)} fn The function to call.
|
||||
* @param {Function|string} fn The function to call.
|
||||
* @param {number} delay The number of milliseconds to delay the `fn` call.
|
||||
* @param [arg1, arg2, ...] Arguments to invoke `fn` with.
|
||||
* @param {boolean} repeated A flag to specify whether `fn` is called repeatedly.
|
||||
@@ -84,7 +84,7 @@
|
||||
* Executes a code snippet or function repeatedly, with a delay between each call.
|
||||
*
|
||||
* @memberOf context
|
||||
* @param {(function|string)} fn The function to call or string to evaluate.
|
||||
* @param {Function|string} fn The function to call or string to evaluate.
|
||||
* @param {number} delay The number of milliseconds to delay each `fn` call.
|
||||
* @param [arg1, arg2, ...] Arguments to invoke `fn` with.
|
||||
* @returns {number} The the ID of the timeout.
|
||||
@@ -97,7 +97,7 @@
|
||||
* Executes a code snippet or a function after specified delay.
|
||||
*
|
||||
* @memberOf context
|
||||
* @param {(function|string)} fn The function to call or string to evaluate.
|
||||
* @param {Function|string} fn The function to call or string to evaluate.
|
||||
* @param {number} delay The number of milliseconds to delay the `fn` call.
|
||||
* @param [arg1, arg2, ...] Arguments to invoke `fn` with.
|
||||
* @returns {number} The the ID of the timeout.
|
||||
@@ -121,7 +121,7 @@
|
||||
* A logging callback triggered when all testing is completed.
|
||||
*
|
||||
* @memberOf QUnit
|
||||
* @param {object} details An object with properties `failed`, `passed`, `runtime`, and `total`.
|
||||
* @param {Object} details An object with properties `failed`, `passed`, `runtime`, and `total`.
|
||||
*/
|
||||
QUnit.done(function() {
|
||||
var ran;
|
||||
@@ -160,7 +160,7 @@
|
||||
* A logging callback triggered after every assertion.
|
||||
*
|
||||
* @memberOf QUnit
|
||||
* @param {object} details An object with properties `actual`, `expected`, `message`, and `result`.
|
||||
* @param {Object} details An object with properties `actual`, `expected`, `message`, and `result`.
|
||||
*/
|
||||
QUnit.log(function(details) {
|
||||
var expected = details.expected,
|
||||
@@ -183,7 +183,7 @@
|
||||
* A logging callback triggered at the start of every test module.
|
||||
*
|
||||
* @memberOf QUnit
|
||||
* @param {object} details An object with property `name`.
|
||||
* @param {Object} details An object with property `name`.
|
||||
*/
|
||||
QUnit.moduleStart(function(details) {
|
||||
console.log(hr);
|
||||
@@ -195,8 +195,8 @@
|
||||
* Converts an object into a string representation.
|
||||
*
|
||||
* @memberOf QUnit
|
||||
* @type function
|
||||
* @param {object} object The object to stringify.
|
||||
* @type Function
|
||||
* @param {Object} object The object to stringify.
|
||||
* @returns {string} The result string.
|
||||
*/
|
||||
QUnit.jsDump.parsers.object = (function() {
|
||||
@@ -217,7 +217,7 @@
|
||||
* A logging callback triggered after a test is completed.
|
||||
*
|
||||
* @memberOf QUnit
|
||||
* @param {object} details An object with properties `failed`, `name`, `passed`, and `total`.
|
||||
* @param {Object} details An object with properties `failed`, `name`, `passed`, and `total`.
|
||||
*/
|
||||
QUnit.testDone(function(details) {
|
||||
var assertions = QUnit.config.testStats.assertions,
|
||||
@@ -239,7 +239,7 @@
|
||||
* An object used to hold information about the current running test.
|
||||
*
|
||||
* @memberOf QUnit.config
|
||||
* @type object
|
||||
* @type Object
|
||||
*/
|
||||
QUnit.config.testStats = {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user