mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Rebuild docs and dist.
Former-commit-id: fdba90c6b602eef0c36190e889ebc3fb2ec6c622
This commit is contained in:
48
dist/lodash.compat.js
vendored
48
dist/lodash.compat.js
vendored
@@ -4449,32 +4449,6 @@
|
||||
*/
|
||||
var uniq = overloadWrapper(basicUniq);
|
||||
|
||||
/**
|
||||
* The inverse of `_.zip`, this method splits groups of elements into arrays
|
||||
* composed of elements from each group at their corresponding indexes.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Arrays
|
||||
* @param {Array} array The array to process.
|
||||
* @returns {Array} Returns a new array of the composed arrays.
|
||||
* @example
|
||||
*
|
||||
* _.unzip([['moe', 30, true], ['larry', 40, false]]);
|
||||
* // => [['moe', 'larry'], [30, 40], [true, false]];
|
||||
*/
|
||||
function unzip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = array ? max(pluck(array, 'length')) : 0,
|
||||
result = Array(length < 0 ? 0 : length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = pluck(array, index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an array with all occurrences of the passed values removed using
|
||||
* strict equality for comparisons, i.e. `===`.
|
||||
@@ -4495,13 +4469,13 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Groups the elements of each array at their corresponding indexes. Useful for
|
||||
* separate data sources that are coordinated through matching array indexes.
|
||||
* For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix
|
||||
* in a similar fashion.
|
||||
* Creates an array of grouped elements, the first of which contains the first
|
||||
* elements of the given arrays, the second of which contains the second
|
||||
* elements of the given arrays, and so on.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @alias unzip
|
||||
* @category Arrays
|
||||
* @param {Array} [array1, array2, ...] Arrays to process.
|
||||
* @returns {Array} Returns a new array of grouped elements.
|
||||
@@ -4510,8 +4484,16 @@
|
||||
* _.zip(['moe', 'larry'], [30, 40], [true, false]);
|
||||
* // => [['moe', 30, true], ['larry', 40, false]]
|
||||
*/
|
||||
function zip(array) {
|
||||
return array ? unzip(arguments) : [];
|
||||
function zip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = array ? max(pluck(array, 'length')) : 0,
|
||||
result = Array(length < 0 ? 0 : length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = pluck(array, index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5727,7 +5709,6 @@
|
||||
lodash.transform = transform;
|
||||
lodash.union = union;
|
||||
lodash.uniq = uniq;
|
||||
lodash.unzip = unzip;
|
||||
lodash.values = values;
|
||||
lodash.where = where;
|
||||
lodash.without = without;
|
||||
@@ -5745,6 +5726,7 @@
|
||||
lodash.select = filter;
|
||||
lodash.tail = rest;
|
||||
lodash.unique = uniq;
|
||||
lodash.unzip = zip;
|
||||
|
||||
// add functions to `lodash.prototype`
|
||||
mixin(lodash);
|
||||
|
||||
60
dist/lodash.compat.min.js
vendored
60
dist/lodash.compat.min.js
vendored
@@ -4,48 +4,48 @@
|
||||
* Build: `lodash -o ./dist/lodash.compat.js`
|
||||
* Underscore.js 1.4.4 underscorejs.org/LICENSE
|
||||
*/
|
||||
;!function(n){function t(n,t,r){r=(r||0)-1;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function r(n,r){var e=typeof r;if(n=n.k,"boolean"==e||r==d)return n[r];"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:O+r;return n=n[e]||(n[e]={}),"object"==e?n[u]&&-1<t(n[u],r)?0:-1:n[u]?0:-1}function e(n){var t=this.k,r=typeof n;if("boolean"==r||n==d)t[n]=y;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:O+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=y}}function u(n){return n.charCodeAt(0)
|
||||
;!function(n){function t(n,t,r){r=(r||0)-1;for(var e=n.length;++r<e;)if(n[r]===t)return r;return-1}function r(n,r){var e=typeof r;if(n=n.k,"boolean"==e||r==d)return n[r];"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:O+r;return n=n[e]||(n[e]={}),"object"==e?n[u]&&-1<t(n[u],r)?0:-1:n[u]?0:-1}function e(n){var t=this.k,r=typeof n;if("boolean"==r||n==d)t[n]=m;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:O+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=m}}function u(n){return n.charCodeAt(0)
|
||||
}function a(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function o(n){var t=-1,r=n.length,u=n[0],a=n[r-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=c(),a.b=n,a.k=u,a.push=e;++t<r;)a.push(n[t]);return a}function i(n){return"\\"+rt[n]}function l(){return _.pop()||[]}function c(){return C.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",leading:b,f:"",maxWait:0,"null":b,number:d,object:d,push:d,g:d,string:d,h:"",trailing:b,"true":b,undefined:b,i:b,j:b,n:d}
|
||||
}function f(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function p(){}function s(n){n.length=0,_.length<S&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,C.length<S&&C.push(n)}function v(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 h(e){function _(n){return n&&typeof n=="object"&&!Tr(n)&&hr.call(n,"__wrapped__")?n:new C(n)}function C(n){this.__wrapped__=n
|
||||
}function S(n,t,r){for(var e=-1,u=n?n.length:0,a=[];++e<u;){var o=n[e];r&&(o=r(o,e,n)),o&&typeof o=="object"&&(Tr(o)||gt(o))?mr.apply(a,t?o:S(o)):a.push(o)}return a}function rt(n,e,u){var a=-1,i=ct(),c=n?n.length:0,f=[],p=!e&&c>=E&&i===t,v=u||p?l():f;if(p){var h=o(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),f))}for(;++a<c;){var h=n[a],m=u?u(h,a,n):h;(e?!a||v[v.length-1]!==m:0>i(v,m))&&((u||p)&&v.push(m),f.push(h))}return p?(s(v.array),g(v)):u&&s(v),f}function et(n,t,r,e){function u(){var e=arguments,c=o?this:t;
|
||||
return a||(n=t[i]),r.length&&(e=e.length?(e=Br.call(e),l?e.concat(r):r.concat(e)):r),this instanceof u?(c=it(n.prototype),e=n.apply(c,e),bt(e)?e:c):n.apply(c,e)}var a=dt(n),o=!r,i=t;if(o){var l=e;r=t}else if(!a){if(!e)throw new rr;t=n}return u}function at(){var n=c(),t=x.o;n.g=G,n.b=n.c=n.f=n.h="",n.e="r",n.i=y,n.j=!!t;for(var r,e=0;r=arguments[e];e++)for(var u in r)n[u]=r[u];e=n.a,n.d=/^[^,]+/.exec(e)[0],r=Qt,e="return function("+e+"){",u="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(u+="var s=r.length;m=-1;if("+n.b+"){",$r.unindexedChars&&(u+="if(q(r)){r=r.split('')}"),u+="while(++m<s){"+n.f+";}}else{"):$r.nonEnumArgs&&(u+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),$r.enumPrototypes&&(u+="var E=typeof r=='function';"),$r.enumErrorProps&&(u+="var D=r===j||r instanceof Error;");
|
||||
}function S(n,t,r){for(var e=-1,u=n?n.length:0,a=[];++e<u;){var o=n[e];r&&(o=r(o,e,n)),o&&typeof o=="object"&&(Tr(o)||gt(o))?yr.apply(a,t?o:S(o)):a.push(o)}return a}function rt(n,e,u){var a=-1,i=ct(),c=n?n.length:0,f=[],p=!e&&c>=E&&i===t,v=u||p?l():f;if(p){var h=o(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),f))}for(;++a<c;){var h=n[a],y=u?u(h,a,n):h;(e?!a||v[v.length-1]!==y:0>i(v,y))&&((u||p)&&v.push(y),f.push(h))}return p?(s(v.array),g(v)):u&&s(v),f}function et(n,t,r,e){function u(){var e=arguments,c=o?this:t;
|
||||
return a||(n=t[i]),r.length&&(e=e.length?(e=Br.call(e),l?e.concat(r):r.concat(e)):r),this instanceof u?(c=it(n.prototype),e=n.apply(c,e),bt(e)?e:c):n.apply(c,e)}var a=dt(n),o=!r,i=t;if(o){var l=e;r=t}else if(!a){if(!e)throw new rr;t=n}return u}function at(){var n=c(),t=x.o;n.g=G,n.b=n.c=n.f=n.h="",n.e="r",n.i=m,n.j=!!t;for(var r,e=0;r=arguments[e];e++)for(var u in r)n[u]=r[u];e=n.a,n.d=/^[^,]+/.exec(e)[0],r=Qt,e="return function("+e+"){",u="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(u+="var s=r.length;m=-1;if("+n.b+"){",$r.unindexedChars&&(u+="if(q(r)){r=r.split('')}"),u+="while(++m<s){"+n.f+";}}else{"):$r.nonEnumArgs&&(u+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),$r.enumPrototypes&&(u+="var E=typeof r=='function';"),$r.enumErrorProps&&(u+="var D=r===j||r instanceof Error;");
|
||||
var a=[];if($r.enumPrototypes&&a.push('!(E&&m=="prototype")'),$r.enumErrorProps&&a.push('!(D&&(m=="message"||m=="name"))'),n.i&&n.j)u+="var A=-1,B=z[typeof r]&&t(r),s=B?B.length:0;while(++A<s){m=B[A];",a.length&&(u+="if("+a.join("&&")+"){"),u+=n.f+";",a.length&&(u+="}"),u+="}";else if(u+="for(m in r){",n.i&&a.push("l.call(r, m)"),a.length&&(u+="if("+a.join("&&")+"){"),u+=n.f+";",a.length&&(u+="}"),u+="}",$r.nonEnumShadows){for(u+="if(r!==y){var h=r.constructor,p=r===(h&&h.prototype),e=r===H?G:r===j?i:J.call(r),v=w[e];",k=0;7>k;k++)u+="m='"+n.g[k]+"';if((!(p&&v[m])&&l.call(r,m))",n.i||(u+="||(!v[m]&&r[m]!==y[m])"),u+="){"+n.f+"}";
|
||||
u+="}"}return(n.b||$r.nonEnumArgs)&&(u+="}"),u+=n.c+";return C",r=r("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",e+u+"}"),g(n),r(U,ur,hr,w,gt,Tr,Ct,t,_,ar,tt,Fr,Z,or,_r)}function it(n){return bt(n)?jr(n):{}}function lt(n){return Hr[n]}function ct(){var n=(n=_.indexOf)===$t?t:n;return n}function ft(n){return function(t,r,e,u){return typeof r!="boolean"&&r!=d&&(u=e,e=u&&u[r]===t?m:r,r=b),e!=d&&(e=_.createCallback(e,u)),n(t,r,e,u)}}function pt(n){var t,r;return!n||_r.call(n)!=X||(t=n.constructor,dt(t)&&!(t instanceof t))||!$r.argsClass&>(n)||!$r.nodeClass&&f(n)?b:$r.ownLast?(Ur(n,function(n,t,e){return r=hr.call(e,t),b
|
||||
}),r!==false):(Ur(n,function(n,t){r=t}),r===m||hr.call(n,r))}function st(n){return Jr[n]}function gt(n){return n&&typeof n=="object"?_r.call(n)==H:b}function vt(n,t,r,e,u,a){var o=n;if(typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),typeof r=="function"){if(r=typeof e=="undefined"?r:_.createCallback(r,e,1),o=r(o),typeof o!="undefined")return o;o=n}if(e=bt(o)){var i=_r.call(o);if(!nt[i]||!$r.nodeClass&&f(o))return o;var c=Tr(o)}if(!e||!t)return e?c?v(o):Kr({},o):o;switch(e=zr[i],i){case K:case M:return new e(+o);
|
||||
case Q:case Z:return new e(o);case Y:return e(o.source,$.exec(o))}i=!u,u||(u=l()),a||(a=l());for(var p=u.length;p--;)if(u[p]==n)return a[p];return o=c?e(o.length):{},c&&(hr.call(n,"index")&&(o.index=n.index),hr.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(c?Gr:Vr)(n,function(n,e){o[e]=vt(n,t,r,m,u,a)}),i&&(s(u),s(a)),o}function ht(n){var t=[];return Ur(n,function(n,r){dt(n)&&t.push(r)}),t.sort()}function mt(n){for(var t=-1,r=Lr(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function yt(n,t,r,e,u,a){var o=r===w;
|
||||
if(typeof r=="function"&&!o){r=_.createCallback(r,e,2);var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var c=typeof n,p=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=p&&"object"!=p))return b;if(n==d||t==d)return n===t;if(p=_r.call(n),c=_r.call(t),p==H&&(p=X),c==H&&(c=X),p!=c)return b;switch(p){case K:case M:return+n==+t;case Q:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case Y:case Z:return n==tr(t)}if(c=p==J,!c){if(hr.call(n,"__wrapped__")||hr.call(t,"__wrapped__"))return yt(n.__wrapped__||n,t.__wrapped__||t,r,e,u,a);
|
||||
if(p!=X||!$r.nodeClass&&(f(n)||f(t)))return b;var p=!$r.argsObject&>(n)?Zt:n.constructor,g=!$r.argsObject&>(t)?Zt:t.constructor;if(p!=g&&(!dt(p)||!(p instanceof p&&dt(g)&&g instanceof g)))return b}for(g=!u,u||(u=l()),a||(a=l()),p=u.length;p--;)if(u[p]==n)return a[p]==t;var v=0,i=y;if(u.push(n),a.push(t),c){if(p=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(c=p,g=t[v],o)for(;c--&&!(i=yt(n[c],g,r,e,u,a)););else if(!(i=yt(n[v],g,r,e,u,a)))break;return i}return Ur(t,function(t,o,l){return hr.call(l,o)?(v++,i=hr.call(n,o)&&yt(n[o],t,r,e,u,a)):void 0
|
||||
}),i&&!o&&Ur(n,function(n,t,r){return hr.call(r,t)?i=-1<--v:void 0}),g&&(s(u),s(a)),i}function dt(n){return typeof n=="function"}function bt(n){return!(!n||!tt[typeof n])}function _t(n){return typeof n=="number"||_r.call(n)==Q}function Ct(n){return typeof n=="string"||_r.call(n)==Z}function jt(n,t,r){var e=arguments,u=0,a=2;if(!bt(n))return n;if(r===w)var o=e[3],i=e[4],c=e[5];else{var f=y,i=l(),c=l();typeof r!="number"&&(a=e.length),3<a&&"function"==typeof e[a-2]?o=_.createCallback(e[--a-1],e[a--],2):2<a&&"function"==typeof e[a-1]&&(o=e[--a])
|
||||
u+="}"}return(n.b||$r.nonEnumArgs)&&(u+="}"),u+=n.c+";return C",r=r("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",e+u+"}"),g(n),r(U,ur,hr,w,gt,Tr,Ct,t,_,ar,tt,Fr,Z,or,_r)}function it(n){return bt(n)?jr(n):{}}function lt(n){return Hr[n]}function ct(){var n=(n=_.indexOf)===$t?t:n;return n}function ft(n){return function(t,r,e,u){return typeof r!="boolean"&&r!=d&&(u=e,e=u&&u[r]===t?y:r,r=b),e!=d&&(e=_.createCallback(e,u)),n(t,r,e,u)}}function pt(n){var t,r;return!n||_r.call(n)!=X||(t=n.constructor,dt(t)&&!(t instanceof t))||!$r.argsClass&>(n)||!$r.nodeClass&&f(n)?b:$r.ownLast?(Ur(n,function(n,t,e){return r=hr.call(e,t),b
|
||||
}),r!==false):(Ur(n,function(n,t){r=t}),r===y||hr.call(n,r))}function st(n){return Jr[n]}function gt(n){return n&&typeof n=="object"?_r.call(n)==H:b}function vt(n,t,r,e,u,a){var o=n;if(typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),typeof r=="function"){if(r=typeof e=="undefined"?r:_.createCallback(r,e,1),o=r(o),typeof o!="undefined")return o;o=n}if(e=bt(o)){var i=_r.call(o);if(!nt[i]||!$r.nodeClass&&f(o))return o;var c=Tr(o)}if(!e||!t)return e?c?v(o):Kr({},o):o;switch(e=zr[i],i){case K:case M:return new e(+o);
|
||||
case Q:case Z:return new e(o);case Y:return e(o.source,$.exec(o))}i=!u,u||(u=l()),a||(a=l());for(var p=u.length;p--;)if(u[p]==n)return a[p];return o=c?e(o.length):{},c&&(hr.call(n,"index")&&(o.index=n.index),hr.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(c?Gr:Vr)(n,function(n,e){o[e]=vt(n,t,r,y,u,a)}),i&&(s(u),s(a)),o}function ht(n){var t=[];return Ur(n,function(n,r){dt(n)&&t.push(r)}),t.sort()}function yt(n){for(var t=-1,r=Lr(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function mt(n,t,r,e,u,a){var o=r===w;
|
||||
if(typeof r=="function"&&!o){r=_.createCallback(r,e,2);var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var c=typeof n,p=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=p&&"object"!=p))return b;if(n==d||t==d)return n===t;if(p=_r.call(n),c=_r.call(t),p==H&&(p=X),c==H&&(c=X),p!=c)return b;switch(p){case K:case M:return+n==+t;case Q:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case Y:case Z:return n==tr(t)}if(c=p==J,!c){if(hr.call(n,"__wrapped__")||hr.call(t,"__wrapped__"))return mt(n.__wrapped__||n,t.__wrapped__||t,r,e,u,a);
|
||||
if(p!=X||!$r.nodeClass&&(f(n)||f(t)))return b;var p=!$r.argsObject&>(n)?Zt:n.constructor,g=!$r.argsObject&>(t)?Zt:t.constructor;if(p!=g&&(!dt(p)||!(p instanceof p&&dt(g)&&g instanceof g)))return b}for(g=!u,u||(u=l()),a||(a=l()),p=u.length;p--;)if(u[p]==n)return a[p]==t;var v=0,i=m;if(u.push(n),a.push(t),c){if(p=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(c=p,g=t[v],o)for(;c--&&!(i=mt(n[c],g,r,e,u,a)););else if(!(i=mt(n[v],g,r,e,u,a)))break;return i}return Ur(t,function(t,o,l){return hr.call(l,o)?(v++,i=hr.call(n,o)&&mt(n[o],t,r,e,u,a)):void 0
|
||||
}),i&&!o&&Ur(n,function(n,t,r){return hr.call(r,t)?i=-1<--v:void 0}),g&&(s(u),s(a)),i}function dt(n){return typeof n=="function"}function bt(n){return!(!n||!tt[typeof n])}function _t(n){return typeof n=="number"||_r.call(n)==Q}function Ct(n){return typeof n=="string"||_r.call(n)==Z}function jt(n,t,r){var e=arguments,u=0,a=2;if(!bt(n))return n;if(r===w)var o=e[3],i=e[4],c=e[5];else{var f=m,i=l(),c=l();typeof r!="number"&&(a=e.length),3<a&&"function"==typeof e[a-2]?o=_.createCallback(e[--a-1],e[a--],2):2<a&&"function"==typeof e[a-1]&&(o=e[--a])
|
||||
}for(;++u<a;)(Tr(e[u])?St:Vr)(e[u],function(t,r){var e,u,a=t,l=n[r];if(t&&((u=Tr(t))||Qr(t))){for(a=i.length;a--;)if(e=i[a]==t){l=c[a];break}if(!e){var f;o&&(a=o(l,t),f=typeof a!="undefined")&&(l=a),f||(l=u?Tr(l)?l:[]:Qr(l)?l:{}),i.push(t),c.push(l),f||(l=jt(l,t,w,o,i,c))}}else o&&(a=o(l,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(l=a);n[r]=l});return f&&(s(i),s(c)),n}function wt(n){for(var t=-1,r=Lr(n),e=r.length,u=Mt(e);++t<e;)u[t]=n[r[t]];return u}function kt(n,t,r){var e=-1,u=ct(),a=n?n.length:0,o=b;
|
||||
return r=(0>r?Er(0,a+r):r)||0,a&&typeof a=="number"?o=-1<(Ct(n)?n.indexOf(t,r):u(n,t,r)):Gr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function xt(n,t,r){var e=y;if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else Gr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Ot(n,t,r){var e=[];if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else Gr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Et(n,t,r){if(t=_.createCallback(t,r),!Tr(n)){var e;
|
||||
return r=(0>r?Er(0,a+r):r)||0,a&&typeof a=="number"?o=-1<(Ct(n)?n.indexOf(t,r):u(n,t,r)):Gr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function xt(n,t,r){var e=m;if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else Gr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Ot(n,t,r){var e=[];if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else Gr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Et(n,t,r){if(t=_.createCallback(t,r),!Tr(n)){var e;
|
||||
return Gr(n,function(n,r,u){return t(n,r,u)?(e=n,b):void 0}),e}r=-1;for(var u=n.length;++r<u;){var a=n[r];if(t(a,r,n))return a}}function St(n,t,r){if(t&&typeof r=="undefined"&&Tr(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==false;);}else Gr(n,t,r);return n}function At(n,t,r){var e=-1,u=n?n.length:0,a=Mt(typeof u=="number"?u:0);if(t=_.createCallback(t,r),Tr(n))for(;++e<u;)a[e]=t(n[e],e,n);else Gr(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function It(n,t,r){var e=-1/0,a=e;if(!t&&Tr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];
|
||||
i>a&&(a=i)}}else t=!t&&Ct(n)?u:_.createCallback(t,r),Gr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function Bt(n,t,r,e){var u=3>arguments.length;if(t=_.createCallback(t,e,4),Tr(n)){var a=-1,o=n.length;for(u&&(r=n[++a]);++a<o;)r=t(r,n[a],a,n)}else Gr(n,function(n,e,a){r=u?(u=b,n):t(r,n,e,a)});return r}function Nt(n,t,r,e){var u=n,a=n?n.length:0,o=3>arguments.length;if(typeof a!="number")var i=Lr(n),a=i.length;else $r.unindexedChars&&Ct(n)&&(u=n.split(""));return t=_.createCallback(t,e,4),St(n,function(n,e,l){e=i?i[--a]:--a,r=o?(o=b,u[e]):t(r,u[e],e,l)
|
||||
}),r}function Pt(n,t,r){var e;if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else Gr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function zt(n){var e=-1,u=ct(),a=n?n.length:0,i=pr.apply(er,Br.call(arguments,1)),l=[],c=a>=E&&u===t;if(c){var f=o(i);f?(u=r,i=f):c=b}for(;++e<a;)f=n[e],0>u(i,f)&&l.push(f);return c&&g(i),l}function Ft(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=-1;for(t=_.createCallback(t,r);++a<u&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[0];
|
||||
return v(n,0,Sr(Er(0,e),u))}}function $t(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?Er(0,u+e):e||0}else if(e)return e=Dt(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function qt(n,t,r){if(typeof t!="number"&&t!=d){var e=0,u=-1,a=n?n.length:0;for(t=_.createCallback(t,r);++u<a&&t(n[u],u,n);)e++}else e=t==d||r?1:Er(0,t);return v(n,e)}function Dt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?_.createCallback(r,e,1):Ht,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function Rt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?It(Xr(n,"length")):0,e=Mt(0>r?0:r);++t<r;)e[t]=Xr(n,t);
|
||||
return e}function Tt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var a=n[r];t?u[a]=t[r]:u[a[0]]=a[1]}return u}function Wt(n,t){return $r.fastBind||Cr&&2<arguments.length?Cr.call.apply(Cr,arguments):et(n,t,Br.call(arguments,2))}function Lt(n,t,r){function e(){fr(s),fr(g),c=0,s=g=d}function u(){var t=v&&(!h||1<c);e(),t&&(p!==false&&(f=new Vt),i=n.apply(l,o))}function a(){e(),(v||p!==t)&&(f=new Vt,i=n.apply(l,o))}var o,i,l,c=0,f=0,p=b,s=d,g=d,v=y;if(t=Er(0,t||0),r===y)var h=y,v=b;else bt(r)&&(h=r.leading,p="maxWait"in r&&Er(t,r.maxWait||0),v="trailing"in r?r.trailing:v);
|
||||
return function(){if(o=arguments,l=this,c++,fr(g),p===false)h&&2>c&&(i=n.apply(l,o));else{var r=new Vt;!s&&!h&&(f=r);var e=p-(r-f);0<e?s||(s=br(a,e)):(fr(s),s=d,f=r,i=n.apply(l,o))}return t!==p&&(g=br(u,t)),i}}function Gt(n){var t=Br.call(arguments,1);return br(function(){n.apply(m,t)},1)}function Ht(n){return n}function Jt(n){St(ht(n),function(t){var r=_[t]=n[t];_.prototype[t]=function(){var n=this.__wrapped__,t=[n];return mr.apply(t,arguments),t=r.apply(_,t),n&&typeof n=="object"&&n===t?this:new C(t)
|
||||
}})}function Kt(){return this.__wrapped__}e=e?ot.defaults(n.Object(),e,ot.pick(n,L)):n;var Mt=e.Array,Ut=e.Boolean,Vt=e.Date,Qt=e.Function,Xt=e.Math,Yt=e.Number,Zt=e.Object,nr=e.RegExp,tr=e.String,rr=e.TypeError,er=[],ur=e.Error.prototype,ar=Zt.prototype,or=tr.prototype,ir=e._,lr=nr("^"+tr(ar.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),cr=Xt.ceil,fr=e.clearTimeout,pr=er.concat,sr=Xt.floor,gr=Qt.prototype.toString,vr=lr.test(vr=Zt.getPrototypeOf)&&vr,hr=ar.hasOwnProperty,mr=er.push,yr=ar.propertyIsEnumerable,dr=e.setImmediate,br=e.setTimeout,_r=ar.toString,Cr=lr.test(Cr=_r.bind)&&Cr,jr=lr.test(jr=Zt.create)&&jr,wr=lr.test(wr=Mt.isArray)&&wr,kr=e.isFinite,xr=e.isNaN,Or=lr.test(Or=Zt.keys)&&Or,Er=Xt.max,Sr=Xt.min,Ar=e.parseInt,Ir=Xt.random,Br=er.slice,Nr=lr.test(e.attachEvent),Pr=Cr&&!/\n|true/.test(Cr+Nr),zr={};
|
||||
zr[J]=Mt,zr[K]=Ut,zr[M]=Vt,zr[V]=Qt,zr[X]=Zt,zr[Q]=Yt,zr[Y]=nr,zr[Z]=tr;var Fr={};Fr[J]=Fr[M]=Fr[Q]={constructor:y,toLocaleString:y,toString:y,valueOf:y},Fr[K]=Fr[Z]={constructor:y,toString:y,valueOf:y},Fr[U]=Fr[V]=Fr[Y]={constructor:y,toString:y},Fr[X]={constructor:y},function(){for(var n=G.length;n--;){var t,r=G[n];for(t in Fr)hr.call(Fr,t)&&!hr.call(Fr[t],r)&&(Fr[t][r]=b)}}(),C.prototype=_.prototype;var $r=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1};
|
||||
for(var e in new n)r.push(e);for(e in arguments);$r.argsObject=arguments.constructor==Zt&&!(arguments instanceof Mt),$r.argsClass=_r.call(arguments)==H,$r.enumErrorProps=yr.call(ur,"message")||yr.call(ur,"name"),$r.enumPrototypes=yr.call(n,"prototype"),$r.fastBind=Cr&&!Pr,$r.ownLast="x"!=r[0],$r.nonEnumArgs=0!=e,$r.nonEnumShadows=!/valueOf/.test(r),$r.spliceObjects=(er.splice.call(t,0,1),!t[0]),$r.unindexedChars="xx"!="x"[0]+Zt("x")[0];try{$r.nodeClass=!(_r.call(document)==X&&!({toString:0}+""))}catch(u){$r.nodeClass=y
|
||||
return e}function Tt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var a=n[r];t?u[a]=t[r]:u[a[0]]=a[1]}return u}function Wt(n,t){return $r.fastBind||Cr&&2<arguments.length?Cr.call.apply(Cr,arguments):et(n,t,Br.call(arguments,2))}function Lt(n,t,r){function e(){fr(s),fr(g),c=0,s=g=d}function u(){var t=v&&(!h||1<c);e(),t&&(p!==false&&(f=new Vt),i=n.apply(l,o))}function a(){e(),(v||p!==t)&&(f=new Vt,i=n.apply(l,o))}var o,i,l,c=0,f=0,p=b,s=d,g=d,v=m;if(t=Er(0,t||0),r===m)var h=m,v=b;else bt(r)&&(h=r.leading,p="maxWait"in r&&Er(t,r.maxWait||0),v="trailing"in r?r.trailing:v);
|
||||
return function(){if(o=arguments,l=this,c++,fr(g),p===false)h&&2>c&&(i=n.apply(l,o));else{var r=new Vt;!s&&!h&&(f=r);var e=p-(r-f);0<e?s||(s=br(a,e)):(fr(s),s=d,f=r,i=n.apply(l,o))}return t!==p&&(g=br(u,t)),i}}function Gt(n){var t=Br.call(arguments,1);return br(function(){n.apply(y,t)},1)}function Ht(n){return n}function Jt(n){St(ht(n),function(t){var r=_[t]=n[t];_.prototype[t]=function(){var n=this.__wrapped__,t=[n];return yr.apply(t,arguments),t=r.apply(_,t),n&&typeof n=="object"&&n===t?this:new C(t)
|
||||
}})}function Kt(){return this.__wrapped__}e=e?ot.defaults(n.Object(),e,ot.pick(n,L)):n;var Mt=e.Array,Ut=e.Boolean,Vt=e.Date,Qt=e.Function,Xt=e.Math,Yt=e.Number,Zt=e.Object,nr=e.RegExp,tr=e.String,rr=e.TypeError,er=[],ur=e.Error.prototype,ar=Zt.prototype,or=tr.prototype,ir=e._,lr=nr("^"+tr(ar.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),cr=Xt.ceil,fr=e.clearTimeout,pr=er.concat,sr=Xt.floor,gr=Qt.prototype.toString,vr=lr.test(vr=Zt.getPrototypeOf)&&vr,hr=ar.hasOwnProperty,yr=er.push,mr=ar.propertyIsEnumerable,dr=e.setImmediate,br=e.setTimeout,_r=ar.toString,Cr=lr.test(Cr=_r.bind)&&Cr,jr=lr.test(jr=Zt.create)&&jr,wr=lr.test(wr=Mt.isArray)&&wr,kr=e.isFinite,xr=e.isNaN,Or=lr.test(Or=Zt.keys)&&Or,Er=Xt.max,Sr=Xt.min,Ar=e.parseInt,Ir=Xt.random,Br=er.slice,Nr=lr.test(e.attachEvent),Pr=Cr&&!/\n|true/.test(Cr+Nr),zr={};
|
||||
zr[J]=Mt,zr[K]=Ut,zr[M]=Vt,zr[V]=Qt,zr[X]=Zt,zr[Q]=Yt,zr[Y]=nr,zr[Z]=tr;var Fr={};Fr[J]=Fr[M]=Fr[Q]={constructor:m,toLocaleString:m,toString:m,valueOf:m},Fr[K]=Fr[Z]={constructor:m,toString:m,valueOf:m},Fr[U]=Fr[V]=Fr[Y]={constructor:m,toString:m},Fr[X]={constructor:m},function(){for(var n=G.length;n--;){var t,r=G[n];for(t in Fr)hr.call(Fr,t)&&!hr.call(Fr[t],r)&&(Fr[t][r]=b)}}(),C.prototype=_.prototype;var $r=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1};
|
||||
for(var e in new n)r.push(e);for(e in arguments);$r.argsObject=arguments.constructor==Zt&&!(arguments instanceof Mt),$r.argsClass=_r.call(arguments)==H,$r.enumErrorProps=mr.call(ur,"message")||mr.call(ur,"name"),$r.enumPrototypes=mr.call(n,"prototype"),$r.fastBind=Cr&&!Pr,$r.ownLast="x"!=r[0],$r.nonEnumArgs=0!=e,$r.nonEnumShadows=!/valueOf/.test(r),$r.spliceObjects=(er.splice.call(t,0,1),!t[0]),$r.unindexedChars="xx"!="x"[0]+Zt("x")[0];try{$r.nodeClass=!(_r.call(document)==X&&!({toString:0}+""))}catch(u){$r.nodeClass=m
|
||||
}}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:q,variable:"",imports:{_:_}};var qr={a:"x,F,k",h:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){r=a[b];if(r&&z[typeof r]){",f:"if(typeof C[m]=='undefined')C[m]=r[m]",c:"}}"},Dr={a:"f,d,I",h:"d=d&&typeof I=='undefined'?d:u.createCallback(d,I)",b:"typeof s=='number'",f:"if(d(r[m],m,f)===false)return C"},Rr={h:"if(!z[typeof r])return C;"+Dr.h,b:b};jr||(it=function(n){if(bt(n)){p.prototype=n;
|
||||
var t=new p;p.prototype=d}return t||{}}),$r.argsClass||(gt=function(n){return n&&typeof n=="object"?hr.call(n,"callee"):b});var Tr=wr||function(n){return n&&typeof n=="object"?_r.call(n)==J:b},Wr=at({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)"}),Lr=x.o=Or?function(n){return bt(n)?$r.enumPrototypes&&typeof n=="function"||$r.nonEnumArgs&&n.length&>(n)?Wr(n):Or(n):[]}:Wr,Gr=at(Dr),Hr={"&":"&","<":"<",">":">",'"':""","'":"'"},Jr=mt(Hr),Kr=at(qr,{h:qr.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Mr=at(qr),Ur=at(Dr,Rr,{i:b}),Vr=at(Dr,Rr);
|
||||
var t=new p;p.prototype=d}return t||{}}),$r.argsClass||(gt=function(n){return n&&typeof n=="object"?hr.call(n,"callee"):b});var Tr=wr||function(n){return n&&typeof n=="object"?_r.call(n)==J:b},Wr=at({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)"}),Lr=x.o=Or?function(n){return bt(n)?$r.enumPrototypes&&typeof n=="function"||$r.nonEnumArgs&&n.length&>(n)?Wr(n):Or(n):[]}:Wr,Gr=at(Dr),Hr={"&":"&","<":"<",">":">",'"':""","'":"'"},Jr=yt(Hr),Kr=at(qr,{h:qr.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Mr=at(qr),Ur=at(Dr,Rr,{i:b}),Vr=at(Dr,Rr);
|
||||
dt(/x/)&&(dt=function(n){return typeof n=="function"&&_r.call(n)==V});var Qr=vr?function(n){if(!n||_r.call(n)!=X||!$r.argsClass&>(n))return b;var t=n.valueOf,r=typeof t=="function"&&(r=vr(t))&&vr(r);return r?n==r||vr(n)==r:pt(n)}:pt,Xr=At,Yr=ft(S),Zr=ft(rt);Pr&&ut&&typeof dr=="function"&&(Gt=Wt(dr,e));var ne=8==Ar(A+"08")?Ar:function(n,t){return Ar(Ct(n)?n.replace(D,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Kr,_.at=function(n){var t=-1,r=pr.apply(er,Br.call(arguments,1)),e=r.length,u=Mt(e);
|
||||
for($r.unindexedChars&&Ct(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},_.bind=Wt,_.bindAll=function(n){for(var t=1<arguments.length?pr.apply(er,Br.call(arguments,1)):ht(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Wt(n[u],n)}return n},_.bindKey=function(n,t){return et(n,t,Br.call(arguments,2),w)},_.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},_.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];
|
||||
return t[0]}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r),St(n,function(n,r,u){r=tr(t(n,r,u)),hr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Ht;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Lr(n);return function(t){for(var r=u.length,e=b;r--&&(e=yt(t[u[r]],n[u[r]],w)););return e}}return typeof t=="undefined"||T&&!T.test(gr.call(n))?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)
|
||||
}:4===r?function(r,e,u,a){return n.call(t,r,e,u,a)}:function(r,e,u){return n.call(t,r,e,u)}},_.debounce=Lt,_.defaults=Mr,_.defer=Gt,_.delay=function(n,t){var r=Br.call(arguments,2);return br(function(){n.apply(m,r)},t)},_.difference=zt,_.filter=Ot,_.flatten=Yr,_.forEach=St,_.forIn=Ur,_.forOwn=Vr,_.functions=ht,_.groupBy=function(n,t,r){var e={};return t=_.createCallback(t,r),St(n,function(n,r,u){r=tr(t(n,r,u)),(hr.call(e,r)?e[r]:e[r]=[]).push(n)}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;
|
||||
if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else e=t==d||r?1:t||e;return v(n,0,Sr(Er(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,a=-1,i=l(),c=-1,f=ct(),p=n?n.length:0,v=[],h=l();++a<u;){var m=e[a];i[a]=f===t&&(m?m.length:0)>=E&&o(a?e[a]:h)}n:for(;++c<p;){var y=i[0],m=n[c];if(0>(y?r(y,m):f(h,m))){for(a=u,(y||h).push(m);--a;)if(y=i[a],0>(y?r(y,m):f(e[a],m)))continue n;v.push(m)}}for(;u--;)(y=i[u])&&g(y);return s(i),s(h),v},_.invert=mt,_.invoke=function(n,t){var r=Br.call(arguments,2),e=-1,u=typeof t=="function",a=n?n.length:0,o=Mt(typeof a=="number"?a:0);
|
||||
return t[0]}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r),St(n,function(n,r,u){r=tr(t(n,r,u)),hr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Ht;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Lr(n);return function(t){for(var r=u.length,e=b;r--&&(e=mt(t[u[r]],n[u[r]],w)););return e}}return typeof t=="undefined"||T&&!T.test(gr.call(n))?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)
|
||||
}:4===r?function(r,e,u,a){return n.call(t,r,e,u,a)}:function(r,e,u){return n.call(t,r,e,u)}},_.debounce=Lt,_.defaults=Mr,_.defer=Gt,_.delay=function(n,t){var r=Br.call(arguments,2);return br(function(){n.apply(y,r)},t)},_.difference=zt,_.filter=Ot,_.flatten=Yr,_.forEach=St,_.forIn=Ur,_.forOwn=Vr,_.functions=ht,_.groupBy=function(n,t,r){var e={};return t=_.createCallback(t,r),St(n,function(n,r,u){r=tr(t(n,r,u)),(hr.call(e,r)?e[r]:e[r]=[]).push(n)}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;
|
||||
if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else e=t==d||r?1:t||e;return v(n,0,Sr(Er(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,a=-1,i=l(),c=-1,f=ct(),p=n?n.length:0,v=[],h=l();++a<u;){var y=e[a];i[a]=f===t&&(y?y.length:0)>=E&&o(a?e[a]:h)}n:for(;++c<p;){var m=i[0],y=n[c];if(0>(m?r(m,y):f(h,y))){for(a=u,(m||h).push(y);--a;)if(m=i[a],0>(m?r(m,y):f(e[a],y)))continue n;v.push(y)}}for(;u--;)(m=i[u])&&g(m);return s(i),s(h),v},_.invert=yt,_.invoke=function(n,t){var r=Br.call(arguments,2),e=-1,u=typeof t=="function",a=n?n.length:0,o=Mt(typeof a=="number"?a:0);
|
||||
return St(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},_.keys=Lr,_.map=At,_.max=It,_.memoize=function(n,t){function r(){var e=r.cache,u=O+(t?t.apply(this,arguments):arguments[0]);return hr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}return r.cache={},r},_.merge=jt,_.min=function(n,t,r){var e=1/0,a=e;if(!t&&Tr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<a&&(a=i)}}else t=!t&&Ct(n)?u:_.createCallback(t,r),Gr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},_.omit=function(n,t,r){var e=ct(),u=typeof t=="function",a={};
|
||||
if(u)t=_.createCallback(t,r);else var o=pr.apply(er,Br.call(arguments,1));return Ur(n,function(n,r,i){(u?!t(n,r,i):0>e(o,r))&&(a[r]=n)}),a},_.once=function(n){var t,r;return function(){return t?r:(t=y,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Lr(n),e=r.length,u=Mt(e);++t<e;){var a=r[t];u[t]=[a,n[a]]}return u},_.partial=function(n){return et(n,Br.call(arguments,1))},_.partialRight=function(n){return et(n,Br.call(arguments,1),d,w)},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=pr.apply(er,Br.call(arguments,1)),o=bt(n)?a.length:0;++u<o;){var i=a[u];
|
||||
if(u)t=_.createCallback(t,r);else var o=pr.apply(er,Br.call(arguments,1));return Ur(n,function(n,r,i){(u?!t(n,r,i):0>e(o,r))&&(a[r]=n)}),a},_.once=function(n){var t,r;return function(){return t?r:(t=m,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Lr(n),e=r.length,u=Mt(e);++t<e;){var a=r[t];u[t]=[a,n[a]]}return u},_.partial=function(n){return et(n,Br.call(arguments,1))},_.partialRight=function(n){return et(n,Br.call(arguments,1),d,w)},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=pr.apply(er,Br.call(arguments,1)),o=bt(n)?a.length:0;++u<o;){var i=a[u];
|
||||
i in n&&(e[i]=n[i])}else t=_.createCallback(t,r),Ur(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},_.pluck=Xr,_.range=function(n,t,r){n=+n||0,r=+r||1,t==d&&(t=n,n=0);var e=-1;t=Er(0,cr((t-n)/r));for(var u=Mt(t);++e<t;)u[e]=n,n+=r;return u},_.reject=function(n,t,r){return t=_.createCallback(t,r),Ot(n,function(n,r,e){return!t(n,r,e)})},_.rest=qt,_.shuffle=function(n){var t=-1,r=n?n.length:0,e=Mt(typeof r=="number"?r:0);return St(n,function(n){var r=sr(Ir()*(++t+1));e[t]=e[r],e[r]=n}),e},_.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Mt(typeof u=="number"?u:0);
|
||||
for(t=_.createCallback(t,r),St(n,function(n,r,u){var a=o[++e]=c();a.l=t(n,r,u),a.m=e,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,r){var e=y,u=y;return r===false?e=b:bt(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=c(),r.leading=e,r.maxWait=t,r.trailing=u,n=Lt(n,t,r),g(r),n},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Mt(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?$r.unindexedChars&&Ct(n)?n.split(""):v(n):wt(n)
|
||||
},_.transform=function(n,t,r,e){var u=Tr(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=it(e&&e.prototype))),(u?Gr:Vr)(n,function(n,e,u){return t(r,n,e,u)}),r},_.union=function(n){return n||(arguments[0]=er),rt(S(arguments,y))},_.uniq=Zr,_.unzip=Rt,_.values=wt,_.where=Ot,_.without=function(n){return zt(n,Br.call(arguments,1))},_.wrap=function(n,t){return function(){var r=[n];return mr.apply(r,arguments),t.apply(this,r)}},_.zip=function(n){return n?Rt(arguments):[]},_.zipObject=Tt,_.collect=At,_.drop=qt,_.each=St,_.extend=Kr,_.methods=ht,_.object=Tt,_.select=Ot,_.tail=qt,_.unique=Zr,Jt(_),_.chain=_,_.prototype.chain=function(){return this
|
||||
},_.clone=vt,_.cloneDeep=function(n,t,r){return vt(n,y,t,r)},_.contains=kt,_.escape=function(n){return n==d?"":tr(n).replace(z,lt)},_.every=xt,_.find=Et,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r),Vr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0}),e},_.has=function(n,t){return n?hr.call(n,t):b},_.identity=Ht,_.indexOf=$t,_.isArguments=gt,_.isArray=Tr,_.isBoolean=function(n){return n===y||n===false||_r.call(n)==K
|
||||
},_.isDate=function(n){return n?typeof n=="object"&&_r.call(n)==M:b},_.isElement=function(n){return n?1===n.nodeType:b},_.isEmpty=function(n){var t=y;if(!n)return t;var r=_r.call(n),e=n.length;return r==J||r==Z||($r.argsClass?r==H:gt(n))||r==X&&typeof e=="number"&&dt(n.splice)?!e:(Vr(n,function(){return t=b}),t)},_.isEqual=yt,_.isFinite=function(n){return kr(n)&&!xr(parseFloat(n))},_.isFunction=dt,_.isNaN=function(n){return _t(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=_t,_.isObject=bt,_.isPlainObject=Qr,_.isRegExp=function(n){return n&&tt[typeof n]?_r.call(n)==Y:b
|
||||
},_.isString=Ct,_.isUndefined=function(n){return typeof n=="undefined"},_.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Er(0,e+r):Sr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},_.mixin=Jt,_.noConflict=function(){return e._=ir,this},_.parseInt=ne,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var r=Ir();return n%1||t%1?n+Sr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+sr(r*(t-n+1))},_.reduce=Bt,_.reduceRight=Nt,_.result=function(n,t){var r=n?n[t]:m;
|
||||
return dt(r)?n[t]():r},_.runInContext=h,_.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Lr(n).length},_.some=Pt,_.sortedIndex=Dt,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Mr({},r,e);var u,a=Mr({},r.imports,e.imports),e=Lr(a),a=wt(a),o=0,l=r.interpolate||R,c="__p+='",l=nr((r.escape||R).source+"|"+l.source+"|"+(l===q?F:R).source+"|"+(r.evaluate||R).source+"|$","g");n.replace(l,function(t,r,e,a,l,f){return e||(e=a),c+=n.slice(o,f).replace(W,i),r&&(c+="'+__e("+r+")+'"),l&&(u=y,c+="';"+l+";__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),o=f+t.length,t
|
||||
}),c+="';\n",l=r=r.variable,l||(r="obj",c="with("+r+"){"+c+"}"),c=(u?c.replace(I,""):c).replace(B,"$1").replace(N,"$1;"),c="function("+r+"){"+(l?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var f=Qt(e,"return "+c).apply(m,a)}catch(p){throw p.source=c,p}return t?f(t):(f.source=c,f)},_.unescape=function(n){return n==d?"":tr(n).replace(P,st)},_.uniqueId=function(n){var t=++j;return tr(n==d?"":n)+t
|
||||
},_.all=xt,_.any=Pt,_.detect=Et,_.findWhere=Et,_.foldl=Bt,_.foldr=Nt,_.include=kt,_.inject=Bt,Vr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return mr.apply(t,arguments),n.apply(_,t)})}),_.first=Ft,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[u-1];return v(n,Er(0,u-e))}},_.take=Ft,_.head=Ft,Vr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
|
||||
for(t=_.createCallback(t,r),St(n,function(n,r,u){var a=o[++e]=c();a.l=t(n,r,u),a.m=e,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,r){var e=m,u=m;return r===false?e=b:bt(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=c(),r.leading=e,r.maxWait=t,r.trailing=u,n=Lt(n,t,r),g(r),n},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Mt(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?$r.unindexedChars&&Ct(n)?n.split(""):v(n):wt(n)
|
||||
},_.transform=function(n,t,r,e){var u=Tr(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=it(e&&e.prototype))),(u?Gr:Vr)(n,function(n,e,u){return t(r,n,e,u)}),r},_.union=function(n){return n||(arguments[0]=er),rt(S(arguments,m))},_.uniq=Zr,_.values=wt,_.where=Ot,_.without=function(n){return zt(n,Br.call(arguments,1))},_.wrap=function(n,t){return function(){var r=[n];return yr.apply(r,arguments),t.apply(this,r)}},_.zip=Rt,_.zipObject=Tt,_.collect=At,_.drop=qt,_.each=St,_.extend=Kr,_.methods=ht,_.object=Tt,_.select=Ot,_.tail=qt,_.unique=Zr,_.unzip=Rt,Jt(_),_.chain=_,_.prototype.chain=function(){return this
|
||||
},_.clone=vt,_.cloneDeep=function(n,t,r){return vt(n,m,t,r)},_.contains=kt,_.escape=function(n){return n==d?"":tr(n).replace(z,lt)},_.every=xt,_.find=Et,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r),Vr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0}),e},_.has=function(n,t){return n?hr.call(n,t):b},_.identity=Ht,_.indexOf=$t,_.isArguments=gt,_.isArray=Tr,_.isBoolean=function(n){return n===m||n===false||_r.call(n)==K
|
||||
},_.isDate=function(n){return n?typeof n=="object"&&_r.call(n)==M:b},_.isElement=function(n){return n?1===n.nodeType:b},_.isEmpty=function(n){var t=m;if(!n)return t;var r=_r.call(n),e=n.length;return r==J||r==Z||($r.argsClass?r==H:gt(n))||r==X&&typeof e=="number"&&dt(n.splice)?!e:(Vr(n,function(){return t=b}),t)},_.isEqual=mt,_.isFinite=function(n){return kr(n)&&!xr(parseFloat(n))},_.isFunction=dt,_.isNaN=function(n){return _t(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=_t,_.isObject=bt,_.isPlainObject=Qr,_.isRegExp=function(n){return n&&tt[typeof n]?_r.call(n)==Y:b
|
||||
},_.isString=Ct,_.isUndefined=function(n){return typeof n=="undefined"},_.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Er(0,e+r):Sr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},_.mixin=Jt,_.noConflict=function(){return e._=ir,this},_.parseInt=ne,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var r=Ir();return n%1||t%1?n+Sr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+sr(r*(t-n+1))},_.reduce=Bt,_.reduceRight=Nt,_.result=function(n,t){var r=n?n[t]:y;
|
||||
return dt(r)?n[t]():r},_.runInContext=h,_.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Lr(n).length},_.some=Pt,_.sortedIndex=Dt,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Mr({},r,e);var u,a=Mr({},r.imports,e.imports),e=Lr(a),a=wt(a),o=0,l=r.interpolate||R,c="__p+='",l=nr((r.escape||R).source+"|"+l.source+"|"+(l===q?F:R).source+"|"+(r.evaluate||R).source+"|$","g");n.replace(l,function(t,r,e,a,l,f){return e||(e=a),c+=n.slice(o,f).replace(W,i),r&&(c+="'+__e("+r+")+'"),l&&(u=m,c+="';"+l+";__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),o=f+t.length,t
|
||||
}),c+="';\n",l=r=r.variable,l||(r="obj",c="with("+r+"){"+c+"}"),c=(u?c.replace(I,""):c).replace(B,"$1").replace(N,"$1;"),c="function("+r+"){"+(l?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var f=Qt(e,"return "+c).apply(y,a)}catch(p){throw p.source=c,p}return t?f(t):(f.source=c,f)},_.unescape=function(n){return n==d?"":tr(n).replace(P,st)},_.uniqueId=function(n){var t=++j;return tr(n==d?"":n)+t
|
||||
},_.all=xt,_.any=Pt,_.detect=Et,_.findWhere=Et,_.foldl=Bt,_.foldr=Nt,_.include=kt,_.inject=Bt,Vr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return yr.apply(t,arguments),n.apply(_,t)})}),_.first=Ft,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[u-1];return v(n,Er(0,u-e))}},_.take=Ft,_.head=Ft,Vr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
|
||||
return t==d||r&&typeof t!="function"?e:new C(e)})}),_.VERSION="1.3.1",_.prototype.toString=function(){return tr(this.__wrapped__)},_.prototype.value=Kt,_.prototype.valueOf=Kt,Gr(["join","pop","shift"],function(n){var t=er[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),Gr(["push","reverse","sort","unshift"],function(n){var t=er[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Gr(["concat","slice","splice"],function(n){var t=er[n];_.prototype[n]=function(){return new C(t.apply(this.__wrapped__,arguments))
|
||||
}}),$r.spliceObjects||Gr(["pop","shift","splice"],function(n){var t=er[n],r="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new C(e):e}}),_}var m,y=!0,d=null,b=!1,_=[],C=[],j=0,w={},x={},O=+new Date+"",E=75,S=40,A=" \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",I=/\b__p\+='';/g,B=/\b(__p\+=)''\+/g,N=/(__e\(.*?\)|\b__t\))\+'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,F=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$=/\w*$/,q=/<%=([\s\S]+?)%>/g,D=RegExp("^["+A+"]*0+(?=.$)"),R=/($^)/,T=(T=/\bthis\b/)&&T.test(h)&&T,W=/['\n\r\t\u2028\u2029\\]/g,L="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),G="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),H="[object Arguments]",J="[object Array]",K="[object Boolean]",M="[object Date]",U="[object Error]",V="[object Function]",Q="[object Number]",X="[object Object]",Y="[object RegExp]",Z="[object String]",nt={};
|
||||
nt[V]=b,nt[H]=nt[J]=nt[K]=nt[M]=nt[Q]=nt[X]=nt[Y]=nt[Z]=y;var tt={"boolean":b,"function":y,object:y,number:b,string:b,undefined:b},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},et=tt[typeof exports]&&exports,ut=tt[typeof module]&&module&&module.exports==et&&module,at=tt[typeof global]&&global;!at||at.global!==at&&at.window!==at||(n=at);var ot=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=ot, define(function(){return ot})):et&&!et.nodeType?ut?(ut.exports=ot)._=ot:et._=ot:n._=ot
|
||||
}}),$r.spliceObjects||Gr(["pop","shift","splice"],function(n){var t=er[n],r="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new C(e):e}}),_}var y,m=!0,d=null,b=!1,_=[],C=[],j=0,w={},x={},O=+new Date+"",E=75,S=40,A=" \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",I=/\b__p\+='';/g,B=/\b(__p\+=)''\+/g,N=/(__e\(.*?\)|\b__t\))\+'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,F=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$=/\w*$/,q=/<%=([\s\S]+?)%>/g,D=RegExp("^["+A+"]*0+(?=.$)"),R=/($^)/,T=(T=/\bthis\b/)&&T.test(h)&&T,W=/['\n\r\t\u2028\u2029\\]/g,L="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),G="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),H="[object Arguments]",J="[object Array]",K="[object Boolean]",M="[object Date]",U="[object Error]",V="[object Function]",Q="[object Number]",X="[object Object]",Y="[object RegExp]",Z="[object String]",nt={};
|
||||
nt[V]=b,nt[H]=nt[J]=nt[K]=nt[M]=nt[Q]=nt[X]=nt[Y]=nt[Z]=m;var tt={"boolean":b,"function":m,object:m,number:b,string:b,undefined:b},rt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},et=tt[typeof exports]&&exports,ut=tt[typeof module]&&module&&module.exports==et&&module,at=tt[typeof global]&&global;!at||at.global!==at&&at.window!==at||(n=at);var ot=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=ot, define(function(){return ot})):et&&!et.nodeType?ut?(ut.exports=ot)._=ot:et._=ot:n._=ot
|
||||
}(this);
|
||||
48
dist/lodash.js
vendored
48
dist/lodash.js
vendored
@@ -4110,32 +4110,6 @@
|
||||
*/
|
||||
var uniq = overloadWrapper(basicUniq);
|
||||
|
||||
/**
|
||||
* The inverse of `_.zip`, this method splits groups of elements into arrays
|
||||
* composed of elements from each group at their corresponding indexes.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Arrays
|
||||
* @param {Array} array The array to process.
|
||||
* @returns {Array} Returns a new array of the composed arrays.
|
||||
* @example
|
||||
*
|
||||
* _.unzip([['moe', 30, true], ['larry', 40, false]]);
|
||||
* // => [['moe', 'larry'], [30, 40], [true, false]];
|
||||
*/
|
||||
function unzip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = array ? max(pluck(array, 'length')) : 0,
|
||||
result = Array(length < 0 ? 0 : length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = pluck(array, index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an array with all occurrences of the passed values removed using
|
||||
* strict equality for comparisons, i.e. `===`.
|
||||
@@ -4156,13 +4130,13 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Groups the elements of each array at their corresponding indexes. Useful for
|
||||
* separate data sources that are coordinated through matching array indexes.
|
||||
* For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix
|
||||
* in a similar fashion.
|
||||
* Creates an array of grouped elements, the first of which contains the first
|
||||
* elements of the given arrays, the second of which contains the second
|
||||
* elements of the given arrays, and so on.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @alias unzip
|
||||
* @category Arrays
|
||||
* @param {Array} [array1, array2, ...] Arrays to process.
|
||||
* @returns {Array} Returns a new array of grouped elements.
|
||||
@@ -4171,8 +4145,16 @@
|
||||
* _.zip(['moe', 'larry'], [30, 40], [true, false]);
|
||||
* // => [['moe', 30, true], ['larry', 40, false]]
|
||||
*/
|
||||
function zip(array) {
|
||||
return array ? unzip(arguments) : [];
|
||||
function zip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = array ? max(pluck(array, 'length')) : 0,
|
||||
result = Array(length < 0 ? 0 : length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = pluck(array, index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -5388,7 +5370,6 @@
|
||||
lodash.transform = transform;
|
||||
lodash.union = union;
|
||||
lodash.uniq = uniq;
|
||||
lodash.unzip = unzip;
|
||||
lodash.values = values;
|
||||
lodash.where = where;
|
||||
lodash.without = without;
|
||||
@@ -5406,6 +5387,7 @@
|
||||
lodash.select = filter;
|
||||
lodash.tail = rest;
|
||||
lodash.unique = uniq;
|
||||
lodash.unzip = zip;
|
||||
|
||||
// add functions to `lodash.prototype`
|
||||
mixin(lodash);
|
||||
|
||||
56
dist/lodash.min.js
vendored
56
dist/lodash.min.js
vendored
@@ -5,44 +5,44 @@
|
||||
* Underscore.js 1.4.4 underscorejs.org/LICENSE
|
||||
*/
|
||||
;!function(n){function t(n,t,e){e=(e||0)-1;for(var r=n.length;++e<r;)if(n[e]===t)return e;return-1}function e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==h)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:w+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==h)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:w+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y}}function u(n){return n.charCodeAt(0)
|
||||
}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return m;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=m,a=c(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+X[n]}function f(){return b.pop()||[]}function c(){return d.pop()||{b:h,k:h,l:h,"false":m,m:0,leading:m,maxWait:0,"null":m,number:h,object:h,push:h,string:h,trailing:m,"true":m,undefined:m,n:h}
|
||||
}function l(n){n.length=0,b.length<x&&b.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=h,d.length<x&&d.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(r){function b(n){if(!n||me.call(n)!=G)return m;var t=n.valueOf,e=typeof t=="function"&&(e=se(t))&&se(e);return e?n==e||se(n)==e:lt(n)}function d(n,t,e){if(!n||!Q[typeof n])return n;t=t&&typeof e=="undefined"?t:et.createCallback(t,e);
|
||||
}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=c(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+X[n]}function f(){return m.pop()||[]}function c(){return d.pop()||{b:h,k:h,l:h,"false":b,m:0,leading:b,maxWait:0,"null":b,number:h,object:h,push:h,string:h,trailing:b,"true":b,undefined:b,n:h}
|
||||
}function l(n){n.length=0,m.length<x&&m.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=h,d.length<x&&d.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(r){function m(n){if(!n||be.call(n)!=G)return b;var t=n.valueOf,e=typeof t=="function"&&(e=se(t))&&se(e);return e?n==e||se(n)==e:lt(n)}function d(n,t,e){if(!n||!Q[typeof n])return n;t=t&&typeof e=="undefined"?t:et.createCallback(t,e);
|
||||
for(var r=-1,u=Q[typeof n]&&$e(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function x(n,t,e){var r;if(!n||!Q[typeof n])return n;t=t&&typeof e=="undefined"?t:et.createCallback(t,e);for(r in n)if(t(n[r],r,n)===false)break;return n}function X(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&Q[typeof u])for(var c=-1,l=Q[typeof u]&&$e(u),p=l?l.length:0;++c<p;)r=l[c],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function Y(n,t,e){var r,u=n,a=u;
|
||||
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var c=et.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(c=o[--f]);for(;++i<f;)if((u=o[i])&&Q[typeof u])for(var l=-1,p=Q[typeof u]&&$e(u),s=p?p.length:0;++l<s;)r=p[l],a[r]=c?c(a[r],u[r]):u[r];return a}function nt(n){var t,e=[];if(!n||!Q[typeof n])return e;for(t in n)ve.call(n,t)&&e.push(t);return e}function et(n){return n&&typeof n=="object"&&!Ne(n)&&ve.call(n,"__wrapped__")?n:new rt(n)
|
||||
}function rt(n){this.__wrapped__=n}function ut(n,t,e){for(var r=-1,u=n?n.length:0,a=[];++r<u;){var o=n[r];e&&(o=e(o,r,n)),o&&typeof o=="object"&&(Ne(o)||st(o))?ge.apply(a,t?o:ut(o)):a.push(o)}return a}function at(n,r,u){var a=-1,i=ft(),c=n?n.length:0,s=[],v=!r&&c>=C&&i===t,g=u||v?f():s;if(v){var y=o(g);y?(i=e,g=y):(v=m,g=u?g:(l(g),s))}for(;++a<c;){var y=n[a],h=u?u(y,a,n):y;(r?!a||g[g.length-1]!==h:0>i(g,h))&&((u||v)&&g.push(h),s.push(y))}return v?(l(g.array),p(g)):u&&l(g),s}function ot(n,t,e,r){function u(){var r=arguments,c=o?this:t;
|
||||
return a||(n=t[i]),e.length&&(r=r.length?(r=Se.call(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(c=bt(n.prototype)?de(n.prototype):{},r=n.apply(c,r),bt(r)?r:c):n.apply(c,r)}var a=mt(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new ee;t=n}return u}function it(n){return Be[n]}function ft(){var n=(n=et.indexOf)===Tt?t:n;return n}function ct(n){return function(t,e,r,u){return typeof e!="boolean"&&e!=h&&(u=r,r=u&&u[e]===t?g:e,e=m),r!=h&&(r=et.createCallback(r,u)),n(t,e,r,u)}}function lt(n){var t,e;
|
||||
return n&&me.call(n)==G&&(t=n.constructor,!mt(t)||t instanceof t)?(x(n,function(n,t){e=t}),e===g||ve.call(n,e)):m}function pt(n){return Fe[n]}function st(n){return n&&typeof n=="object"?me.call(n)==W:m}function vt(n,t,e,r,u,a){var o=n;if(typeof t!="boolean"&&t!=h&&(r=e,e=t,t=m),typeof e=="function"){if(e=typeof r=="undefined"?e:et.createCallback(e,r,1),o=e(o),typeof o!="undefined")return o;o=n}if(r=bt(o)){var i=me.call(o);if(!L[i])return o;var c=Ne(o)}if(!r||!t)return r?c?s(o):Y({},o):o;switch(r=Ae[i],i){case K:case M:return new r(+o);
|
||||
case V:case J:return new r(o);case H:return r(o.source,B.exec(o))}i=!u,u||(u=f()),a||(a=f());for(var p=u.length;p--;)if(u[p]==n)return a[p];return o=c?r(o.length):{},c&&(ve.call(n,"index")&&(o.index=n.index),ve.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(c?Et:d)(n,function(n,r){o[r]=vt(n,t,e,g,u,a)}),i&&(l(u),l(a)),o}function gt(n){var t=[];return x(n,function(n,e){mt(n)&&t.push(e)}),t.sort()}function yt(n){for(var t=-1,e=$e(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function ht(n,t,e,r,u,a){var o=e===k;
|
||||
if(typeof e=="function"&&!o){e=et.createCallback(e,r,2);var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var c=typeof n,p=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=p&&"object"!=p))return m;if(n==h||t==h)return n===t;if(p=me.call(n),c=me.call(t),p==W&&(p=G),c==W&&(c=G),p!=c)return m;switch(p){case K:case M:return+n==+t;case V:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case H:case J:return n==te(t)}if(c=p==P,!c){if(ve.call(n,"__wrapped__")||ve.call(t,"__wrapped__"))return ht(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);
|
||||
if(p!=G)return m;var p=n.constructor,s=t.constructor;if(p!=s&&(!mt(p)||!(p instanceof p&&mt(s)&&s instanceof s)))return m}for(s=!u,u||(u=f()),a||(a=f()),p=u.length;p--;)if(u[p]==n)return a[p]==t;var v=0,i=y;if(u.push(n),a.push(t),c){if(p=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(c=p,s=t[v],o)for(;c--&&!(i=ht(n[c],s,e,r,u,a)););else if(!(i=ht(n[v],s,e,r,u,a)))break;return i}return x(t,function(t,o,f){return ve.call(f,o)?(v++,i=ve.call(n,o)&&ht(n[o],t,e,r,u,a)):void 0}),i&&!o&&x(n,function(n,t,e){return ve.call(e,t)?i=-1<--v:void 0
|
||||
}),s&&(l(u),l(a)),i}function mt(n){return typeof n=="function"}function bt(n){return!(!n||!Q[typeof n])}function dt(n){return typeof n=="number"||me.call(n)==V}function _t(n){return typeof n=="string"||me.call(n)==J}function kt(n,t,e){var r=arguments,u=0,a=2;if(!bt(n))return n;if(e===k)var o=r[3],i=r[4],c=r[5];else{var p=y,i=f(),c=f();typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=et.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a])}for(;++u<a;)(Ne(r[u])?Et:d)(r[u],function(t,e){var r,u,a=t,f=n[e];
|
||||
if(t&&((u=Ne(t))||b(t))){for(a=i.length;a--;)if(r=i[a]==t){f=c[a];break}if(!r){var l;o&&(a=o(f,t),l=typeof a!="undefined")&&(f=a),l||(f=u?Ne(f)?f:[]:b(f)?f:{}),i.push(t),c.push(f),l||(f=kt(f,t,k,o,i,c))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);n[e]=f});return p&&(l(i),l(c)),n}function jt(n){for(var t=-1,e=$e(n),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u}function wt(n,t,e){var r=-1,u=ft(),a=n?n.length:0,o=m;return e=(0>e?Ce(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(_t(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(o=n===t)
|
||||
}),o}function Ct(n,t,e){var r=y;t=et.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)});return r}function xt(n,t,e){var r=[];t=et.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Ot(n,t,e){t=et.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,m):void 0
|
||||
}function rt(n){this.__wrapped__=n}function ut(n,t,e){for(var r=-1,u=n?n.length:0,a=[];++r<u;){var o=n[r];e&&(o=e(o,r,n)),o&&typeof o=="object"&&(Ne(o)||st(o))?ge.apply(a,t?o:ut(o)):a.push(o)}return a}function at(n,r,u){var a=-1,i=ft(),c=n?n.length:0,s=[],v=!r&&c>=C&&i===t,g=u||v?f():s;if(v){var y=o(g);y?(i=e,g=y):(v=b,g=u?g:(l(g),s))}for(;++a<c;){var y=n[a],h=u?u(y,a,n):y;(r?!a||g[g.length-1]!==h:0>i(g,h))&&((u||v)&&g.push(h),s.push(y))}return v?(l(g.array),p(g)):u&&l(g),s}function ot(n,t,e,r){function u(){var r=arguments,c=o?this:t;
|
||||
return a||(n=t[i]),e.length&&(r=r.length?(r=Se.call(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(c=mt(n.prototype)?de(n.prototype):{},r=n.apply(c,r),mt(r)?r:c):n.apply(c,r)}var a=bt(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new ee;t=n}return u}function it(n){return Be[n]}function ft(){var n=(n=et.indexOf)===Tt?t:n;return n}function ct(n){return function(t,e,r,u){return typeof e!="boolean"&&e!=h&&(u=r,r=u&&u[e]===t?g:e,e=b),r!=h&&(r=et.createCallback(r,u)),n(t,e,r,u)}}function lt(n){var t,e;
|
||||
return n&&be.call(n)==G&&(t=n.constructor,!bt(t)||t instanceof t)?(x(n,function(n,t){e=t}),e===g||ve.call(n,e)):b}function pt(n){return Fe[n]}function st(n){return n&&typeof n=="object"?be.call(n)==W:b}function vt(n,t,e,r,u,a){var o=n;if(typeof t!="boolean"&&t!=h&&(r=e,e=t,t=b),typeof e=="function"){if(e=typeof r=="undefined"?e:et.createCallback(e,r,1),o=e(o),typeof o!="undefined")return o;o=n}if(r=mt(o)){var i=be.call(o);if(!L[i])return o;var c=Ne(o)}if(!r||!t)return r?c?s(o):Y({},o):o;switch(r=Ae[i],i){case K:case M:return new r(+o);
|
||||
case V:case J:return new r(o);case H:return r(o.source,B.exec(o))}i=!u,u||(u=f()),a||(a=f());for(var p=u.length;p--;)if(u[p]==n)return a[p];return o=c?r(o.length):{},c&&(ve.call(n,"index")&&(o.index=n.index),ve.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(c?Et:d)(n,function(n,r){o[r]=vt(n,t,e,g,u,a)}),i&&(l(u),l(a)),o}function gt(n){var t=[];return x(n,function(n,e){bt(n)&&t.push(e)}),t.sort()}function yt(n){for(var t=-1,e=$e(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function ht(n,t,e,r,u,a){var o=e===k;
|
||||
if(typeof e=="function"&&!o){e=et.createCallback(e,r,2);var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var c=typeof n,p=typeof t;if(n===n&&(!n||"function"!=c&&"object"!=c)&&(!t||"function"!=p&&"object"!=p))return b;if(n==h||t==h)return n===t;if(p=be.call(n),c=be.call(t),p==W&&(p=G),c==W&&(c=G),p!=c)return b;switch(p){case K:case M:return+n==+t;case V:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case H:case J:return n==te(t)}if(c=p==P,!c){if(ve.call(n,"__wrapped__")||ve.call(t,"__wrapped__"))return ht(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);
|
||||
if(p!=G)return b;var p=n.constructor,s=t.constructor;if(p!=s&&(!bt(p)||!(p instanceof p&&bt(s)&&s instanceof s)))return b}for(s=!u,u||(u=f()),a||(a=f()),p=u.length;p--;)if(u[p]==n)return a[p]==t;var v=0,i=y;if(u.push(n),a.push(t),c){if(p=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(c=p,s=t[v],o)for(;c--&&!(i=ht(n[c],s,e,r,u,a)););else if(!(i=ht(n[v],s,e,r,u,a)))break;return i}return x(t,function(t,o,f){return ve.call(f,o)?(v++,i=ve.call(n,o)&&ht(n[o],t,e,r,u,a)):void 0}),i&&!o&&x(n,function(n,t,e){return ve.call(e,t)?i=-1<--v:void 0
|
||||
}),s&&(l(u),l(a)),i}function bt(n){return typeof n=="function"}function mt(n){return!(!n||!Q[typeof n])}function dt(n){return typeof n=="number"||be.call(n)==V}function _t(n){return typeof n=="string"||be.call(n)==J}function kt(n,t,e){var r=arguments,u=0,a=2;if(!mt(n))return n;if(e===k)var o=r[3],i=r[4],c=r[5];else{var p=y,i=f(),c=f();typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=et.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a])}for(;++u<a;)(Ne(r[u])?Et:d)(r[u],function(t,e){var r,u,a=t,f=n[e];
|
||||
if(t&&((u=Ne(t))||m(t))){for(a=i.length;a--;)if(r=i[a]==t){f=c[a];break}if(!r){var l;o&&(a=o(f,t),l=typeof a!="undefined")&&(f=a),l||(f=u?Ne(f)?f:[]:m(f)?f:{}),i.push(t),c.push(f),l||(f=kt(f,t,k,o,i,c))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);n[e]=f});return p&&(l(i),l(c)),n}function jt(n){for(var t=-1,e=$e(n),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u}function wt(n,t,e){var r=-1,u=ft(),a=n?n.length:0,o=b;return e=(0>e?Ce(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(_t(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(o=n===t)
|
||||
}),o}function Ct(n,t,e){var r=y;t=et.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)});return r}function xt(n,t,e){var r=[];t=et.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function Ot(n,t,e){t=et.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,b):void 0
|
||||
}),u}for(;++e<r;){var a=n[e];if(t(a,e,n))return a}}function Et(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:et.createCallback(t,e),typeof u=="number")for(;++r<u&&t(n[r],r,n)!==false;);else d(n,t);return n}function St(n,t,e){var r=-1,u=n?n.length:0;if(t=et.createCallback(t,e),typeof u=="number")for(var a=Ht(u);++r<u;)a[r]=t(n[r],r,n);else a=[],d(n,function(n,e,u){a[++r]=t(n,e,u)});return a}function At(n,t,e){var r=-1/0,a=r;if(!t&&Ne(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)
|
||||
}}else t=!t&&_t(n)?u:et.createCallback(t,e),Et(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)});return a}function It(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||St(n,t)}function Nt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=et.createCallback(t,r,4);var a=-1,o=n.length;if(typeof o=="number")for(u&&(e=n[++a]);++a<o;)e=t(e,n[a],a,n);else d(n,function(n,r,a){e=u?(u=m,n):t(e,n,r,a)});return e}function $t(n,t,e,r){var u=n?n.length:0,a=3>arguments.length;
|
||||
if(typeof u!="number")var o=$e(n),u=o.length;return t=et.createCallback(t,r,4),Et(n,function(r,i,f){i=o?o[--u]:--u,e=a?(a=m,n[i]):t(e,n[i],i,f)}),e}function Bt(n,t,e){var r;t=et.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else d(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Ft(n){var r=-1,u=ft(),a=n?n.length:0,i=ce.apply(re,Se.call(arguments,1)),f=[],c=a>=C&&u===t;if(c){var l=o(i);l?(u=e,i=l):c=m}for(;++r<a;)l=n[r],0>u(i,l)&&f.push(l);
|
||||
}}else t=!t&&_t(n)?u:et.createCallback(t,e),Et(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)});return a}function It(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||St(n,t)}function Nt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=et.createCallback(t,r,4);var a=-1,o=n.length;if(typeof o=="number")for(u&&(e=n[++a]);++a<o;)e=t(e,n[a],a,n);else d(n,function(n,r,a){e=u?(u=b,n):t(e,n,r,a)});return e}function $t(n,t,e,r){var u=n?n.length:0,a=3>arguments.length;
|
||||
if(typeof u!="number")var o=$e(n),u=o.length;return t=et.createCallback(t,r,4),Et(n,function(r,i,f){i=o?o[--u]:--u,e=a?(a=b,n[i]):t(e,n[i],i,f)}),e}function Bt(n,t,e){var r;t=et.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else d(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Ft(n){var r=-1,u=ft(),a=n?n.length:0,i=ce.apply(re,Se.call(arguments,1)),f=[],c=a>=C&&u===t;if(c){var l=o(i);l?(u=e,i=l):c=b}for(;++r<a;)l=n[r],0>u(i,l)&&f.push(l);
|
||||
return c&&p(i),f}function Rt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=-1;for(t=et.createCallback(t,e);++a<u&&t(n[a],a,n);)r++}else if(r=t,r==h||e)return n[0];return s(n,0,xe(Ce(0,r),u))}}function Tt(n,e,r){if(typeof r=="number"){var u=n?n.length:0;r=0>r?Ce(0,u+r):r||0}else if(r)return r=Dt(n,e),n[r]===e?r:-1;return n?t(n,e,r):-1}function qt(n,t,e){if(typeof t!="number"&&t!=h){var r=0,u=-1,a=n?n.length:0;for(t=et.createCallback(t,e);++u<a&&t(n[u],u,n);)r++}else r=t==h||e?1:Ce(0,t);
|
||||
return s(n,r)}function Dt(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?et.createCallback(e,r,1):Ut,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function zt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?At(It(n,"length")):0,r=Ht(0>e?0:e);++t<e;)r[t]=It(n,t);return r}function Wt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function Pt(n,t){return Ie.fastBind||be&&2<arguments.length?be.call.apply(be,arguments):ot(n,t,Se.call(arguments,2))
|
||||
}function Kt(n,t,e){function r(){fe(s),fe(v),c=0,s=v=h}function u(){var t=g&&(!b||1<c);r(),t&&(p!==false&&(l=new Lt),i=n.apply(f,o))}function a(){r(),(g||p!==t)&&(l=new Lt,i=n.apply(f,o))}var o,i,f,c=0,l=0,p=m,s=h,v=h,g=y;if(t=Ce(0,t||0),e===y)var b=y,g=m;else bt(e)&&(b=e.leading,p="maxWait"in e&&Ce(t,e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=this,c++,fe(v),p===false)b&&2>c&&(i=n.apply(f,o));else{var e=new Lt;!s&&!b&&(l=e);var r=p-(e-l);0<r?s||(s=he(a,r)):(fe(s),s=h,l=e,i=n.apply(f,o))
|
||||
}return t!==p&&(v=he(u,t)),i}}function Mt(n){var t=Se.call(arguments,1);return he(function(){n.apply(g,t)},1)}function Ut(n){return n}function Vt(n){Et(gt(n),function(t){var e=et[t]=n[t];et.prototype[t]=function(){var n=this.__wrapped__,t=[n];return ge.apply(t,arguments),t=e.apply(et,t),n&&typeof n=="object"&&n===t?this:new rt(t)}})}function Gt(){return this.__wrapped__}r=r?tt.defaults(n.Object(),r,tt.pick(n,z)):n;var Ht=r.Array,Jt=r.Boolean,Lt=r.Date,Qt=r.Function,Xt=r.Math,Yt=r.Number,Zt=r.Object,ne=r.RegExp,te=r.String,ee=r.TypeError,re=[],ue=Zt.prototype,ae=r._,oe=ne("^"+te(ue.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ie=Xt.ceil,fe=r.clearTimeout,ce=re.concat,le=Xt.floor,pe=Qt.prototype.toString,se=oe.test(se=Zt.getPrototypeOf)&&se,ve=ue.hasOwnProperty,ge=re.push,ye=r.setImmediate,he=r.setTimeout,me=ue.toString,be=oe.test(be=me.bind)&&be,de=oe.test(de=Zt.create)&&de,_e=oe.test(_e=Ht.isArray)&&_e,ke=r.isFinite,je=r.isNaN,we=oe.test(we=Zt.keys)&&we,Ce=Xt.max,xe=Xt.min,Oe=r.parseInt,Ee=Xt.random,Se=re.slice,Xt=oe.test(r.attachEvent),Xt=be&&!/\n|true/.test(be+Xt),Ae={};
|
||||
Ae[P]=Ht,Ae[K]=Jt,Ae[M]=Lt,Ae[U]=Qt,Ae[G]=Zt,Ae[V]=Yt,Ae[H]=ne,Ae[J]=te,rt.prototype=et.prototype;var Ie=et.support={};Ie.fastBind=be&&!Xt,et.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:et}};var Ne=_e,$e=j.o=we?function(n){return bt(n)?we(n):[]}:nt,Be={"&":"&","<":"<",">":">",'"':""","'":"'"},Fe=yt(Be),Jt=ct(ut),Yt=ct(at);return Xt&&Z&&typeof ye=="function"&&(Mt=Pt(ye,r)),ye=8==Oe(O+"08")?Oe:function(n,t){return Oe(_t(n)?n.replace(R,""):n,t||0)
|
||||
return s(n,r)}function Dt(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?et.createCallback(e,r,1):Ut,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function zt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?At(It(n,"length")):0,r=Ht(0>e?0:e);++t<e;)r[t]=It(n,t);return r}function Wt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function Pt(n,t){return Ie.fastBind||me&&2<arguments.length?me.call.apply(me,arguments):ot(n,t,Se.call(arguments,2))
|
||||
}function Kt(n,t,e){function r(){fe(s),fe(v),c=0,s=v=h}function u(){var t=g&&(!m||1<c);r(),t&&(p!==false&&(l=new Lt),i=n.apply(f,o))}function a(){r(),(g||p!==t)&&(l=new Lt,i=n.apply(f,o))}var o,i,f,c=0,l=0,p=b,s=h,v=h,g=y;if(t=Ce(0,t||0),e===y)var m=y,g=b;else mt(e)&&(m=e.leading,p="maxWait"in e&&Ce(t,e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=this,c++,fe(v),p===false)m&&2>c&&(i=n.apply(f,o));else{var e=new Lt;!s&&!m&&(l=e);var r=p-(e-l);0<r?s||(s=he(a,r)):(fe(s),s=h,l=e,i=n.apply(f,o))
|
||||
}return t!==p&&(v=he(u,t)),i}}function Mt(n){var t=Se.call(arguments,1);return he(function(){n.apply(g,t)},1)}function Ut(n){return n}function Vt(n){Et(gt(n),function(t){var e=et[t]=n[t];et.prototype[t]=function(){var n=this.__wrapped__,t=[n];return ge.apply(t,arguments),t=e.apply(et,t),n&&typeof n=="object"&&n===t?this:new rt(t)}})}function Gt(){return this.__wrapped__}r=r?tt.defaults(n.Object(),r,tt.pick(n,z)):n;var Ht=r.Array,Jt=r.Boolean,Lt=r.Date,Qt=r.Function,Xt=r.Math,Yt=r.Number,Zt=r.Object,ne=r.RegExp,te=r.String,ee=r.TypeError,re=[],ue=Zt.prototype,ae=r._,oe=ne("^"+te(ue.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ie=Xt.ceil,fe=r.clearTimeout,ce=re.concat,le=Xt.floor,pe=Qt.prototype.toString,se=oe.test(se=Zt.getPrototypeOf)&&se,ve=ue.hasOwnProperty,ge=re.push,ye=r.setImmediate,he=r.setTimeout,be=ue.toString,me=oe.test(me=be.bind)&&me,de=oe.test(de=Zt.create)&&de,_e=oe.test(_e=Ht.isArray)&&_e,ke=r.isFinite,je=r.isNaN,we=oe.test(we=Zt.keys)&&we,Ce=Xt.max,xe=Xt.min,Oe=r.parseInt,Ee=Xt.random,Se=re.slice,Xt=oe.test(r.attachEvent),Xt=me&&!/\n|true/.test(me+Xt),Ae={};
|
||||
Ae[P]=Ht,Ae[K]=Jt,Ae[M]=Lt,Ae[U]=Qt,Ae[G]=Zt,Ae[V]=Yt,Ae[H]=ne,Ae[J]=te,rt.prototype=et.prototype;var Ie=et.support={};Ie.fastBind=me&&!Xt,et.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:et}};var Ne=_e,$e=j.o=we?function(n){return mt(n)?we(n):[]}:nt,Be={"&":"&","<":"<",">":">",'"':""","'":"'"},Fe=yt(Be),Jt=ct(ut),Yt=ct(at);return Xt&&Z&&typeof ye=="function"&&(Mt=Pt(ye,r)),ye=8==Oe(O+"08")?Oe:function(n,t){return Oe(_t(n)?n.replace(R,""):n,t||0)
|
||||
},et.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},et.assign=Y,et.at=function(n){for(var t=-1,e=ce.apply(re,Se.call(arguments,1)),r=e.length,u=Ht(r);++t<r;)u[t]=n[e[t]];return u},et.bind=Pt,et.bindAll=function(n){for(var t=1<arguments.length?ce.apply(re,Se.call(arguments,1)):gt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=Pt(n[u],n)}return n},et.bindKey=function(n,t){return ot(n,t,Se.call(arguments,2),k)},et.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},et.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},et.countBy=function(n,t,e){var r={};return t=et.createCallback(t,e),Et(n,function(n,e,u){e=te(t(n,e,u)),ve.call(r,e)?r[e]++:r[e]=1}),r},et.createCallback=function(n,t,e){if(n==h)return Ut;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=$e(n);return function(t){for(var e=u.length,r=m;e--&&(r=ht(t[u[e]],n[u[e]],k)););return r
|
||||
u&&r.push(u)}return r},et.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},et.countBy=function(n,t,e){var r={};return t=et.createCallback(t,e),Et(n,function(n,e,u){e=te(t(n,e,u)),ve.call(r,e)?r[e]++:r[e]=1}),r},et.createCallback=function(n,t,e){if(n==h)return Ut;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=$e(n);return function(t){for(var e=u.length,r=b;e--&&(r=ht(t[u[e]],n[u[e]],k)););return r
|
||||
}}return typeof t=="undefined"||q&&!q.test(pe.call(n))?n:1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}},et.debounce=Kt,et.defaults=X,et.defer=Mt,et.delay=function(n,t){var e=Se.call(arguments,2);return he(function(){n.apply(g,e)},t)},et.difference=Ft,et.filter=xt,et.flatten=Jt,et.forEach=Et,et.forIn=x,et.forOwn=d,et.functions=gt,et.groupBy=function(n,t,e){var r={};return t=et.createCallback(t,e),Et(n,function(n,e,u){e=te(t(n,e,u)),(ve.call(r,e)?r[e]:r[e]=[]).push(n)
|
||||
}),r},et.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=et.createCallback(t,e);a--&&t(n[a],a,n);)r++}else r=t==h||e?1:t||r;return s(n,0,xe(Ce(0,u-r),u))},et.intersection=function(n){for(var r=arguments,u=r.length,a=-1,i=f(),c=-1,s=ft(),v=n?n.length:0,g=[],y=f();++a<u;){var h=r[a];i[a]=s===t&&(h?h.length:0)>=C&&o(a?r[a]:y)}n:for(;++c<v;){var m=i[0],h=n[c];if(0>(m?e(m,h):s(y,h))){for(a=u,(m||y).push(h);--a;)if(m=i[a],0>(m?e(m,h):s(r[a],h)))continue n;
|
||||
g.push(h)}}for(;u--;)(m=i[u])&&p(m);return l(i),l(y),g},et.invert=yt,et.invoke=function(n,t){var e=Se.call(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Ht(typeof a=="number"?a:0);return Et(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},et.keys=$e,et.map=St,et.max=At,et.memoize=function(n,t){function e(){var r=e.cache,u=w+(t?t.apply(this,arguments):arguments[0]);return ve.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},et.merge=kt,et.min=function(n,t,e){var r=1/0,a=r;
|
||||
}),r},et.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=et.createCallback(t,e);a--&&t(n[a],a,n);)r++}else r=t==h||e?1:t||r;return s(n,0,xe(Ce(0,u-r),u))},et.intersection=function(n){for(var r=arguments,u=r.length,a=-1,i=f(),c=-1,s=ft(),v=n?n.length:0,g=[],y=f();++a<u;){var h=r[a];i[a]=s===t&&(h?h.length:0)>=C&&o(a?r[a]:y)}n:for(;++c<v;){var b=i[0],h=n[c];if(0>(b?e(b,h):s(y,h))){for(a=u,(b||y).push(h);--a;)if(b=i[a],0>(b?e(b,h):s(r[a],h)))continue n;
|
||||
g.push(h)}}for(;u--;)(b=i[u])&&p(b);return l(i),l(y),g},et.invert=yt,et.invoke=function(n,t){var e=Se.call(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Ht(typeof a=="number"?a:0);return Et(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},et.keys=$e,et.map=St,et.max=At,et.memoize=function(n,t){function e(){var r=e.cache,u=w+(t?t.apply(this,arguments):arguments[0]);return ve.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},et.merge=kt,et.min=function(n,t,e){var r=1/0,a=r;
|
||||
if(!t&&Ne(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&_t(n)?u:et.createCallback(t,e),Et(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)});return a},et.omit=function(n,t,e){var r=ft(),u=typeof t=="function",a={};if(u)t=et.createCallback(t,e);else var o=ce.apply(re,Se.call(arguments,1));return x(n,function(n,e,i){(u?!t(n,e,i):0>r(o,e))&&(a[e]=n)}),a},et.once=function(n){var t,e;return function(){return t?e:(t=y,e=n.apply(this,arguments),n=h,e)}},et.pairs=function(n){for(var t=-1,e=$e(n),r=e.length,u=Ht(r);++t<r;){var a=e[t];
|
||||
u[t]=[a,n[a]]}return u},et.partial=function(n){return ot(n,Se.call(arguments,1))},et.partialRight=function(n){return ot(n,Se.call(arguments,1),h,k)},et.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,a=ce.apply(re,Se.call(arguments,1)),o=bt(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=et.createCallback(t,e),x(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},et.pluck=It,et.range=function(n,t,e){n=+n||0,e=+e||1,t==h&&(t=n,n=0);var r=-1;t=Ce(0,ie((t-n)/e));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;
|
||||
u[t]=[a,n[a]]}return u},et.partial=function(n){return ot(n,Se.call(arguments,1))},et.partialRight=function(n){return ot(n,Se.call(arguments,1),h,k)},et.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,a=ce.apply(re,Se.call(arguments,1)),o=mt(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=et.createCallback(t,e),x(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},et.pluck=It,et.range=function(n,t,e){n=+n||0,e=+e||1,t==h&&(t=n,n=0);var r=-1;t=Ce(0,ie((t-n)/e));for(var u=Ht(t);++r<t;)u[r]=n,n+=e;
|
||||
return u},et.reject=function(n,t,e){return t=et.createCallback(t,e),xt(n,function(n,e,r){return!t(n,e,r)})},et.rest=qt,et.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ht(typeof e=="number"?e:0);return Et(n,function(n){var e=le(Ee()*(++t+1));r[t]=r[e],r[e]=n}),r},et.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Ht(typeof u=="number"?u:0);for(t=et.createCallback(t,e),Et(n,function(n,e,u){var a=o[++r]=c();a.l=t(n,e,u),a.m=r,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,p(n);return o},et.tap=function(n,t){return t(n),n
|
||||
},et.throttle=function(n,t,e){var r=y,u=y;return e===false?r=m:bt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=Kt(n,t,e),p(e),n},et.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);for(t=et.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},et.toArray=function(n){return n&&typeof n.length=="number"?s(n):jt(n)},et.transform=function(n,t,e,r){var u=Ne(n);return t=et.createCallback(t,r,4),e==h&&(u?e=[]:(r=n&&n.constructor,e=bt(r&&r.prototype)?de(r&&r.prototype):{})),(u?Et:d)(n,function(n,r,u){return t(e,n,r,u)
|
||||
}),e},et.union=function(n){return n||(arguments[0]=re),at(ut(arguments,y))},et.uniq=Yt,et.unzip=zt,et.values=jt,et.where=xt,et.without=function(n){return Ft(n,Se.call(arguments,1))},et.wrap=function(n,t){return function(){var e=[n];return ge.apply(e,arguments),t.apply(this,e)}},et.zip=function(n){return n?zt(arguments):[]},et.zipObject=Wt,et.collect=St,et.drop=qt,et.each=Et,et.extend=Y,et.methods=gt,et.object=Wt,et.select=xt,et.tail=qt,et.unique=Yt,Vt(et),et.chain=et,et.prototype.chain=function(){return this
|
||||
},et.clone=vt,et.cloneDeep=function(n,t,e){return vt(n,y,t,e)},et.contains=wt,et.escape=function(n){return n==h?"":te(n).replace(N,it)},et.every=Ct,et.find=Ot,et.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=et.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},et.findKey=function(n,t,e){var r;return t=et.createCallback(t,e),d(n,function(n,e,u){return t(n,e,u)?(r=e,m):void 0}),r},et.has=function(n,t){return n?ve.call(n,t):m},et.identity=Ut,et.indexOf=Tt,et.isArguments=st,et.isArray=Ne,et.isBoolean=function(n){return n===y||n===false||me.call(n)==K
|
||||
},et.isDate=function(n){return n?typeof n=="object"&&me.call(n)==M:m},et.isElement=function(n){return n?1===n.nodeType:m},et.isEmpty=function(n){var t=y;if(!n)return t;var e=me.call(n),r=n.length;return e==P||e==J||e==W||e==G&&typeof r=="number"&&mt(n.splice)?!r:(d(n,function(){return t=m}),t)},et.isEqual=ht,et.isFinite=function(n){return ke(n)&&!je(parseFloat(n))},et.isFunction=mt,et.isNaN=function(n){return dt(n)&&n!=+n},et.isNull=function(n){return n===h},et.isNumber=dt,et.isObject=bt,et.isPlainObject=b,et.isRegExp=function(n){return n?typeof n=="object"&&me.call(n)==H:m
|
||||
},et.throttle=function(n,t,e){var r=y,u=y;return e===false?r=b:mt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=Kt(n,t,e),p(e),n},et.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ht(n);for(t=et.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},et.toArray=function(n){return n&&typeof n.length=="number"?s(n):jt(n)},et.transform=function(n,t,e,r){var u=Ne(n);return t=et.createCallback(t,r,4),e==h&&(u?e=[]:(r=n&&n.constructor,e=mt(r&&r.prototype)?de(r&&r.prototype):{})),(u?Et:d)(n,function(n,r,u){return t(e,n,r,u)
|
||||
}),e},et.union=function(n){return n||(arguments[0]=re),at(ut(arguments,y))},et.uniq=Yt,et.values=jt,et.where=xt,et.without=function(n){return Ft(n,Se.call(arguments,1))},et.wrap=function(n,t){return function(){var e=[n];return ge.apply(e,arguments),t.apply(this,e)}},et.zip=zt,et.zipObject=Wt,et.collect=St,et.drop=qt,et.each=Et,et.extend=Y,et.methods=gt,et.object=Wt,et.select=xt,et.tail=qt,et.unique=Yt,et.unzip=zt,Vt(et),et.chain=et,et.prototype.chain=function(){return this},et.clone=vt,et.cloneDeep=function(n,t,e){return vt(n,y,t,e)
|
||||
},et.contains=wt,et.escape=function(n){return n==h?"":te(n).replace(N,it)},et.every=Ct,et.find=Ot,et.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=et.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},et.findKey=function(n,t,e){var r;return t=et.createCallback(t,e),d(n,function(n,e,u){return t(n,e,u)?(r=e,b):void 0}),r},et.has=function(n,t){return n?ve.call(n,t):b},et.identity=Ut,et.indexOf=Tt,et.isArguments=st,et.isArray=Ne,et.isBoolean=function(n){return n===y||n===false||be.call(n)==K
|
||||
},et.isDate=function(n){return n?typeof n=="object"&&be.call(n)==M:b},et.isElement=function(n){return n?1===n.nodeType:b},et.isEmpty=function(n){var t=y;if(!n)return t;var e=be.call(n),r=n.length;return e==P||e==J||e==W||e==G&&typeof r=="number"&&bt(n.splice)?!r:(d(n,function(){return t=b}),t)},et.isEqual=ht,et.isFinite=function(n){return ke(n)&&!je(parseFloat(n))},et.isFunction=bt,et.isNaN=function(n){return dt(n)&&n!=+n},et.isNull=function(n){return n===h},et.isNumber=dt,et.isObject=mt,et.isPlainObject=m,et.isRegExp=function(n){return n?typeof n=="object"&&be.call(n)==H:b
|
||||
},et.isString=_t,et.isUndefined=function(n){return typeof n=="undefined"},et.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ce(0,r+e):xe(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},et.mixin=Vt,et.noConflict=function(){return r._=ae,this},et.parseInt=ye,et.random=function(n,t){n==h&&t==h&&(t=1),n=+n||0,t==h?(t=n,n=0):t=+t||0;var e=Ee();return n%1||t%1?n+xe(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+le(e*(t-n+1))},et.reduce=Nt,et.reduceRight=$t,et.result=function(n,t){var e=n?n[t]:g;
|
||||
return mt(e)?n[t]():e},et.runInContext=v,et.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:$e(n).length},et.some=Bt,et.sortedIndex=Dt,et.template=function(n,t,e){var r=et.templateSettings;n||(n=""),e=X({},e,r);var u,a=X({},e.imports,r.imports),r=$e(a),a=jt(a),o=0,f=e.interpolate||T,c="__p+='",f=ne((e.escape||T).source+"|"+f.source+"|"+(f===F?$:T).source+"|"+(e.evaluate||T).source+"|$","g");n.replace(f,function(t,e,r,a,f,l){return r||(r=a),c+=n.slice(o,l).replace(D,i),e&&(c+="'+__e("+e+")+'"),f&&(u=y,c+="';"+f+";__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),o=l+t.length,t
|
||||
return bt(e)?n[t]():e},et.runInContext=v,et.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:$e(n).length},et.some=Bt,et.sortedIndex=Dt,et.template=function(n,t,e){var r=et.templateSettings;n||(n=""),e=X({},e,r);var u,a=X({},e.imports,r.imports),r=$e(a),a=jt(a),o=0,f=e.interpolate||T,c="__p+='",f=ne((e.escape||T).source+"|"+f.source+"|"+(f===F?$:T).source+"|"+(e.evaluate||T).source+"|$","g");n.replace(f,function(t,e,r,a,f,l){return r||(r=a),c+=n.slice(o,l).replace(D,i),e&&(c+="'+__e("+e+")+'"),f&&(u=y,c+="';"+f+";__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),o=l+t.length,t
|
||||
}),c+="';\n",f=e=e.variable,f||(e="obj",c="with("+e+"){"+c+"}"),c=(u?c.replace(E,""):c).replace(S,"$1").replace(A,"$1;"),c="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var l=Qt(r,"return "+c).apply(g,a)}catch(p){throw p.source=c,p}return t?l(t):(l.source=c,l)},et.unescape=function(n){return n==h?"":te(n).replace(I,pt)},et.uniqueId=function(n){var t=++_;return te(n==h?"":n)+t
|
||||
},et.all=Ct,et.any=Bt,et.detect=Ot,et.findWhere=Ot,et.foldl=Nt,et.foldr=$t,et.include=wt,et.inject=Nt,d(et,function(n,t){et.prototype[t]||(et.prototype[t]=function(){var t=[this.__wrapped__];return ge.apply(t,arguments),n.apply(et,t)})}),et.first=Rt,et.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=et.createCallback(t,e);a--&&t(n[a],a,n);)r++}else if(r=t,r==h||e)return n[u-1];return s(n,Ce(0,u-r))}},et.take=Rt,et.head=Rt,d(et,function(n,t){et.prototype[t]||(et.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
|
||||
return t==h||e&&typeof t!="function"?r:new rt(r)})}),et.VERSION="1.3.1",et.prototype.toString=function(){return te(this.__wrapped__)},et.prototype.value=Gt,et.prototype.valueOf=Gt,Et(["join","pop","shift"],function(n){var t=re[n];et.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),Et(["push","reverse","sort","unshift"],function(n){var t=re[n];et.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Et(["concat","slice","splice"],function(n){var t=re[n];et.prototype[n]=function(){return new rt(t.apply(this.__wrapped__,arguments))
|
||||
}}),et}var g,y=!0,h=null,m=!1,b=[],d=[],_=0,k={},j={},w=+new Date+"",C=75,x=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",E=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,A=/(__e\(.*?\)|\b__t\))\+'';/g,I=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,F=/<%=([\s\S]+?)%>/g,R=RegExp("^["+O+"]*0+(?=.$)"),T=/($^)/,q=(q=/\bthis\b/)&&q.test(v)&&q,D=/['\n\r\t\u2028\u2029\\]/g,z="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),W="[object Arguments]",P="[object Array]",K="[object Boolean]",M="[object Date]",U="[object Function]",V="[object Number]",G="[object Object]",H="[object RegExp]",J="[object String]",L={};
|
||||
L[U]=m,L[W]=L[P]=L[K]=L[M]=L[V]=L[G]=L[H]=L[J]=y;var Q={"boolean":m,"function":y,object:y,number:m,string:m,undefined:m},X={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Y=Q[typeof exports]&&exports,Z=Q[typeof module]&&module&&module.exports==Y&&module,nt=Q[typeof global]&&global;!nt||nt.global!==nt&&nt.window!==nt||(n=nt);var tt=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=tt, define(function(){return tt})):Y&&!Y.nodeType?Z?(Z.exports=tt)._=tt:Y._=tt:n._=tt
|
||||
}}),et}var g,y=!0,h=null,b=!1,m=[],d=[],_=0,k={},j={},w=+new Date+"",C=75,x=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",E=/\b__p\+='';/g,S=/\b(__p\+=)''\+/g,A=/(__e\(.*?\)|\b__t\))\+'';/g,I=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,F=/<%=([\s\S]+?)%>/g,R=RegExp("^["+O+"]*0+(?=.$)"),T=/($^)/,q=(q=/\bthis\b/)&&q.test(v)&&q,D=/['\n\r\t\u2028\u2029\\]/g,z="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),W="[object Arguments]",P="[object Array]",K="[object Boolean]",M="[object Date]",U="[object Function]",V="[object Number]",G="[object Object]",H="[object RegExp]",J="[object String]",L={};
|
||||
L[U]=b,L[W]=L[P]=L[K]=L[M]=L[V]=L[G]=L[H]=L[J]=y;var Q={"boolean":b,"function":y,object:y,number:b,string:b,undefined:b},X={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Y=Q[typeof exports]&&exports,Z=Q[typeof module]&&module&&module.exports==Y&&module,nt=Q[typeof global]&&global;!nt||nt.global!==nt&&nt.window!==nt||(n=nt);var tt=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=tt, define(function(){return tt})):Y&&!Y.nodeType?Z?(Z.exports=tt)._=tt:Y._=tt:n._=tt
|
||||
}(this);
|
||||
48
dist/lodash.underscore.js
vendored
48
dist/lodash.underscore.js
vendored
@@ -3178,32 +3178,6 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The inverse of `_.zip`, this method splits groups of elements into arrays
|
||||
* composed of elements from each group at their corresponding indexes.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Arrays
|
||||
* @param {Array} array The array to process.
|
||||
* @returns {Array} Returns a new array of the composed arrays.
|
||||
* @example
|
||||
*
|
||||
* _.unzip([['moe', 30, true], ['larry', 40, false]]);
|
||||
* // => [['moe', 'larry'], [30, 40], [true, false]];
|
||||
*/
|
||||
function unzip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = array ? max(pluck(array, 'length')) : 0,
|
||||
result = Array(length < 0 ? 0 : length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = pluck(array, index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an array with all occurrences of the passed values removed using
|
||||
* strict equality for comparisons, i.e. `===`.
|
||||
@@ -3224,13 +3198,13 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Groups the elements of each array at their corresponding indexes. Useful for
|
||||
* separate data sources that are coordinated through matching array indexes.
|
||||
* For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix
|
||||
* in a similar fashion.
|
||||
* Creates an array of grouped elements, the first of which contains the first
|
||||
* elements of the given arrays, the second of which contains the second
|
||||
* elements of the given arrays, and so on.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @alias unzip
|
||||
* @category Arrays
|
||||
* @param {Array} [array1, array2, ...] Arrays to process.
|
||||
* @returns {Array} Returns a new array of grouped elements.
|
||||
@@ -3239,8 +3213,16 @@
|
||||
* _.zip(['moe', 'larry'], [30, 40], [true, false]);
|
||||
* // => [['moe', 30, true], ['larry', 40, false]]
|
||||
*/
|
||||
function zip(array) {
|
||||
return array ? unzip(arguments) : [];
|
||||
function zip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = array ? max(pluck(array, 'length')) : 0,
|
||||
result = Array(length < 0 ? 0 : length);
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = pluck(array, index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4344,7 +4326,6 @@
|
||||
lodash.toArray = toArray;
|
||||
lodash.union = union;
|
||||
lodash.uniq = uniq;
|
||||
lodash.unzip = unzip;
|
||||
lodash.values = values;
|
||||
lodash.where = where;
|
||||
lodash.without = without;
|
||||
@@ -4361,6 +4342,7 @@
|
||||
lodash.select = filter;
|
||||
lodash.tail = rest;
|
||||
lodash.unique = uniq;
|
||||
lodash.unzip = zip;
|
||||
|
||||
// add Underscore compat
|
||||
lodash.chain = chain;
|
||||
|
||||
4
dist/lodash.underscore.min.js
vendored
4
dist/lodash.underscore.min.js
vendored
@@ -27,8 +27,8 @@ var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=u;for(t=G(t,r);i--&&t(n
|
||||
}),o},i.keys=$t,i.map=S,i.max=N,i.memoize=function(n,t){var r={};return function(){var e=X+(t?t.apply(this,arguments):arguments[0]);return jt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},i.min=function(n,t,r){var e=1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=G(t,r),F(n,function(n,r,i){r=t(n,r,i),r<e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r<u&&(u=r);return u},i.omit=function(n){var t=c(),r=dt.apply(ht,qt.call(arguments,1)),e={};return Wt(n,function(n,u){0>t(r,u)&&(e[u]=n)}),e},i.once=function(n){var t,r;
|
||||
return function(){return t?r:(t=!0,r=n.apply(this,arguments),n=null,r)}},i.pairs=function(n){for(var t=-1,r=$t(n),e=r.length,u=Array(e);++t<e;){var i=r[t];u[t]=[i,n[i]]}return u},i.partial=function(n){return a(n,qt.call(arguments,1))},i.pick=function(n){for(var t=-1,r=dt.apply(ht,qt.call(arguments,1)),e=r.length,u={};++t<e;){var i=r[t];i in n&&(u[i]=n[i])}return u},i.pluck=B,i.range=function(n,t,r){n=+n||0,r=+r||1,null==t&&(t=n,n=0);var e=-1;t=Nt(0,_t((t-n)/r));for(var u=Array(t);++e<t;)u[e]=n,n+=r;
|
||||
return u},i.reject=function(n,t,r){return t=G(t,r),E(n,function(n,r,e){return!t(n,r,e)})},i.rest=W,i.shuffle=function(n){var t=-1,r=n?n.length:0,e=Array(typeof r=="number"?r:0);return F(n,function(n){var r=bt(kt()*(++t+1));e[t]=e[r],e[r]=n}),e},i.sortBy=function(n,t,e){var u=-1,i=n?n.length:0,o=Array(typeof i=="number"?i:0);for(t=G(t,e),F(n,function(n,r,e){o[++u]={l:t(n,r,e),m:u,n:n}}),i=o.length,o.sort(r);i--;)o[i]=o[i].n;return o},i.tap=function(n,t){return t(n),n},i.throttle=function(n,t,r){var e=!0,u=!0;
|
||||
return false===r?e=!1:b(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r={},r.leading=e,r.maxWait=t,r.trailing=u,H(n,t,r)},i.times=function(n,t,r){for(var e=-1,u=Array(-1<n?n:0);++e<n;)u[e]=t.call(r,e);return u},i.toArray=function(n){return Mt(n)?qt.call(n):n&&typeof n.length=="number"?S(n):x(n)},i.union=function(n){return n||(arguments[0]=ht),P(z(arguments,!0))},i.uniq=P,i.unzip=U,i.values=x,i.where=R,i.without=function(n){return M(n,qt.call(arguments,1))},i.wrap=function(n,t){return function(){var r=[n];
|
||||
return wt.apply(r,arguments),t.apply(this,r)}},i.zip=function(n){return n?U(arguments):[]},i.collect=S,i.drop=W,i.each=F,i.extend=v,i.methods=h,i.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:u[i[0]]=i[1]}return u},i.select=E,i.tail=W,i.unique=P,i.chain=function(n){return n=new o(n),n.__chain__=!0,n},i.clone=function(n){return b(n)?Mt(n)?qt.call(n):v({},n):n},i.contains=A,i.escape=function(n){return null==n?"":(n+"").replace(Z,l)},i.every=O,i.find=T,i.has=function(n,t){return n?jt.call(n,t):!1
|
||||
return false===r?e=!1:b(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r={},r.leading=e,r.maxWait=t,r.trailing=u,H(n,t,r)},i.times=function(n,t,r){for(var e=-1,u=Array(-1<n?n:0);++e<n;)u[e]=t.call(r,e);return u},i.toArray=function(n){return Mt(n)?qt.call(n):n&&typeof n.length=="number"?S(n):x(n)},i.union=function(n){return n||(arguments[0]=ht),P(z(arguments,!0))},i.uniq=P,i.values=x,i.where=R,i.without=function(n){return M(n,qt.call(arguments,1))},i.wrap=function(n,t){return function(){var r=[n];
|
||||
return wt.apply(r,arguments),t.apply(this,r)}},i.zip=U,i.collect=S,i.drop=W,i.each=F,i.extend=v,i.methods=h,i.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:u[i[0]]=i[1]}return u},i.select=E,i.tail=W,i.unique=P,i.unzip=U,i.chain=function(n){return n=new o(n),n.__chain__=!0,n},i.clone=function(n){return b(n)?Mt(n)?qt.call(n):v({},n):n},i.contains=A,i.escape=function(n){return null==n?"":(n+"").replace(Z,l)},i.every=O,i.find=T,i.has=function(n,t){return n?jt.call(n,t):!1
|
||||
},i.identity=J,i.indexOf=I,i.isArguments=s,i.isArray=Mt,i.isBoolean=function(n){return true===n||false===n||xt.call(n)==ut},i.isDate=function(n){return n?typeof n=="object"&&xt.call(n)==it:!1},i.isElement=function(n){return n?1===n.nodeType:!1},i.isEmpty=m,i.isEqual=_,i.isFinite=function(n){return Tt(n)&&!Ft(parseFloat(n))},i.isFunction=d,i.isNaN=function(n){return j(n)&&n!=+n},i.isNull=function(n){return null===n},i.isNumber=j,i.isObject=b,i.isRegExp=function(n){return n&&ct[typeof n]?xt.call(n)==ft:!1
|
||||
},i.isString=w,i.isUndefined=function(n){return typeof n=="undefined"},i.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Nt(0,e+r):Bt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},i.mixin=K,i.noConflict=function(){return n._=yt,this},i.random=function(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var r=kt();return n%1||t%1?n+Bt(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+bt(r*(t-n+1))},i.reduce=k,i.reduceRight=q,i.result=function(n,t){var r=n?n[t]:void 0;
|
||||
return d(r)?n[t]():r},i.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:$t(n).length},i.some=D,i.sortedIndex=C,i.template=function(n,t,r){var u=i.templateSettings;n||(n=""),r=g({},r,u);var o=0,a="__p+='",u=r.variable;n.replace(RegExp((r.escape||nt).source+"|"+(r.interpolate||nt).source+"|"+(r.evaluate||nt).source+"|$","g"),function(t,r,u,i,f){return a+=n.slice(o,f).replace(tt,e),r&&(a+="'+_['escape']("+r+")+'"),i&&(a+="';"+i+";__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),o=f+t.length,t
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* [`_.union`](#_unionarray1-array2-)
|
||||
* [`_.uniq`](#_uniqarray--issortedfalse-callbackidentity-thisarg)
|
||||
* [`_.unique`](#_uniqarray--issortedfalse-callbackidentity-thisarg)
|
||||
* [`_.unzip`](#_unziparray)
|
||||
* [`_.unzip`](#_ziparray1-array2-)
|
||||
* [`_.without`](#_withoutarray--value1-value2-)
|
||||
* [`_.zip`](#_ziparray1-array2-)
|
||||
* [`_.zipObject`](#_zipobjectkeys--values)
|
||||
@@ -812,34 +812,10 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
|
||||
<!-- /div -->
|
||||
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_unziparray"></a>`_.unzip(array)`
|
||||
<a href="#_unziparray">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4485 "View in source") [Ⓣ][1]
|
||||
|
||||
The inverse of `_.zip`, this method splits groups of elements into arrays composed of elements from each group at their corresponding indexes.
|
||||
|
||||
#### Arguments
|
||||
1. `array` *(Array)*: The array to process.
|
||||
|
||||
#### Returns
|
||||
*(Array)*: Returns a new array of the composed arrays.
|
||||
|
||||
#### Example
|
||||
```js
|
||||
_.unzip([['moe', 30, true], ['larry', 40, false]]);
|
||||
// => [['moe', 'larry'], [30, 40], [true, false]];
|
||||
```
|
||||
|
||||
* * *
|
||||
|
||||
<!-- /div -->
|
||||
|
||||
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_withoutarray--value1-value2-"></a>`_.without(array [, value1, value2, ...])`
|
||||
<a href="#_withoutarray--value1-value2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4512 "View in source") [Ⓣ][1]
|
||||
<a href="#_withoutarray--value1-value2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4486 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates an array with all occurrences of the passed values removed using strict equality for comparisons, i.e. `===`.
|
||||
|
||||
@@ -864,9 +840,12 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])`
|
||||
<a href="#_ziparray1-array2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4532 "View in source") [Ⓣ][1]
|
||||
<a href="#_ziparray1-array2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4506 "View in source") [Ⓣ][1]
|
||||
|
||||
Groups the elements of each array at their corresponding indexes. Useful for separate data sources that are coordinated through matching array indexes. For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix in a similar fashion.
|
||||
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.
|
||||
|
||||
#### Aliases
|
||||
*unzip*
|
||||
|
||||
#### Arguments
|
||||
1. `[array1, array2, ...]` *(Array)*: Arrays to process.
|
||||
@@ -888,7 +867,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])`
|
||||
<a href="#_zipobjectkeys--values">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4554 "View in source") [Ⓣ][1]
|
||||
<a href="#_zipobjectkeys--values">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4536 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`.
|
||||
|
||||
@@ -979,7 +958,7 @@ _.isArray(squares.value());
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
|
||||
<a href="#_tapvalue-interceptor">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5657 "View in source") [Ⓣ][1]
|
||||
<a href="#_tapvalue-interceptor">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5639 "View in source") [Ⓣ][1]
|
||||
|
||||
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
|
||||
|
||||
@@ -1009,7 +988,7 @@ _([1, 2, 3, 4])
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_prototypetostring"></a>`_.prototype.toString()`
|
||||
<a href="#_prototypetostring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5674 "View in source") [Ⓣ][1]
|
||||
<a href="#_prototypetostring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5656 "View in source") [Ⓣ][1]
|
||||
|
||||
Produces the `toString` result of the wrapped value.
|
||||
|
||||
@@ -1030,7 +1009,7 @@ _([1, 2, 3]).toString();
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
|
||||
<a href="#_prototypevalueof">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5691 "View in source") [Ⓣ][1]
|
||||
<a href="#_prototypevalueof">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5673 "View in source") [Ⓣ][1]
|
||||
|
||||
Extracts the wrapped value.
|
||||
|
||||
@@ -1871,7 +1850,7 @@ _.where(stooges, { 'age': 40 });
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_aftern-func"></a>`_.after(n, func)`
|
||||
<a href="#_aftern-func">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4591 "View in source") [Ⓣ][1]
|
||||
<a href="#_aftern-func">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4573 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function this is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times.
|
||||
|
||||
@@ -1899,7 +1878,7 @@ _.forEach(notes, function(note) {
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_bindfunc--thisarg-arg1-arg2-"></a>`_.bind(func [, thisArg, arg1, arg2, ...])`
|
||||
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4621 "View in source") [Ⓣ][1]
|
||||
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4603 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those passed to the bound function.
|
||||
|
||||
@@ -1930,7 +1909,7 @@ func();
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_bindallobject--methodname1-methodname2-"></a>`_.bindAll(object [, methodName1, methodName2, ...])`
|
||||
<a href="#_bindallobject--methodname1-methodname2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4652 "View in source") [Ⓣ][1]
|
||||
<a href="#_bindallobject--methodname1-methodname2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4634 "View in source") [Ⓣ][1]
|
||||
|
||||
Binds methods on `object` to `object`, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided, all the function properties of `object` will be bound.
|
||||
|
||||
@@ -1961,7 +1940,7 @@ jQuery('#docs').on('click', view.onClick);
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_bindkeyobject-key--arg1-arg2-"></a>`_.bindKey(object, key [, arg1, arg2, ...])`
|
||||
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4698 "View in source") [Ⓣ][1]
|
||||
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4680 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
|
||||
|
||||
@@ -2002,7 +1981,7 @@ func();
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])`
|
||||
<a href="#_composefunc1-func2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4721 "View in source") [Ⓣ][1]
|
||||
<a href="#_composefunc1-func2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4703 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that is the composition of the passed functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
|
||||
|
||||
@@ -2029,7 +2008,7 @@ welcome('moe');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_createcallbackfuncidentity-thisarg-argcount3"></a>`_.createCallback([func=identity, thisArg, argCount=3])`
|
||||
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4780 "View in source") [Ⓣ][1]
|
||||
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4762 "View in source") [Ⓣ][1]
|
||||
|
||||
Produces a callback bound to an optional `thisArg`. If `func` is a property name, the created callback will return the property value for a given element. If `func` is an object, the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
|
||||
|
||||
@@ -2083,7 +2062,7 @@ _.toLookup(stooges, 'name');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_debouncefunc-wait-options"></a>`_.debounce(func, wait, options)`
|
||||
<a href="#_debouncefunc-wait-options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4865 "View in source") [Ⓣ][1]
|
||||
<a href="#_debouncefunc-wait-options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4847 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
|
||||
|
||||
@@ -2124,7 +2103,7 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_deferfunc--arg1-arg2-"></a>`_.defer(func [, arg1, arg2, ...])`
|
||||
<a href="#_deferfunc--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4962 "View in source") [Ⓣ][1]
|
||||
<a href="#_deferfunc--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4944 "View in source") [Ⓣ][1]
|
||||
|
||||
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
|
||||
|
||||
@@ -2149,7 +2128,7 @@ _.defer(function() { alert('deferred'); });
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_delayfunc-wait--arg1-arg2-"></a>`_.delay(func, wait [, arg1, arg2, ...])`
|
||||
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4988 "View in source") [Ⓣ][1]
|
||||
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4970 "View in source") [Ⓣ][1]
|
||||
|
||||
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
|
||||
|
||||
@@ -2176,7 +2155,7 @@ _.delay(log, 1000, 'logged later');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])`
|
||||
<a href="#_memoizefunc--resolver">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5013 "View in source") [Ⓣ][1]
|
||||
<a href="#_memoizefunc--resolver">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4995 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that memoizes the result of `func`. If `resolver` is passed, it will be used to determine the cache key for storing the result based on the arguments passed to the memoized function. By default, the first argument passed to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
|
||||
|
||||
@@ -2202,7 +2181,7 @@ var fibonacci = _.memoize(function(n) {
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_oncefunc"></a>`_.once(func)`
|
||||
<a href="#_oncefunc">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5043 "View in source") [Ⓣ][1]
|
||||
<a href="#_oncefunc">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5025 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
|
||||
|
||||
@@ -2228,7 +2207,7 @@ initialize();
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_partialfunc--arg1-arg2-"></a>`_.partial(func [, arg1, arg2, ...])`
|
||||
<a href="#_partialfunc--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5078 "View in source") [Ⓣ][1]
|
||||
<a href="#_partialfunc--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5060 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
|
||||
|
||||
@@ -2255,7 +2234,7 @@ hi('moe');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_partialrightfunc--arg1-arg2-"></a>`_.partialRight(func [, arg1, arg2, ...])`
|
||||
<a href="#_partialrightfunc--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5109 "View in source") [Ⓣ][1]
|
||||
<a href="#_partialrightfunc--arg1-arg2-">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5091 "View in source") [Ⓣ][1]
|
||||
|
||||
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
|
||||
|
||||
@@ -2292,7 +2271,7 @@ options.imports
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_throttlefunc-wait-options"></a>`_.throttle(func, wait, options)`
|
||||
<a href="#_throttlefunc-wait-options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5144 "View in source") [Ⓣ][1]
|
||||
<a href="#_throttlefunc-wait-options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5126 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
|
||||
|
||||
@@ -2326,7 +2305,7 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)`
|
||||
<a href="#_wrapvalue-wrapper">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5185 "View in source") [Ⓣ][1]
|
||||
<a href="#_wrapvalue-wrapper">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5167 "View in source") [Ⓣ][1]
|
||||
|
||||
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
|
||||
|
||||
@@ -3407,7 +3386,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_escapestring"></a>`_.escape(string)`
|
||||
<a href="#_escapestring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5209 "View in source") [Ⓣ][1]
|
||||
<a href="#_escapestring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5191 "View in source") [Ⓣ][1]
|
||||
|
||||
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
|
||||
|
||||
@@ -3431,7 +3410,7 @@ _.escape('Moe, Larry & Curly');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_identityvalue"></a>`_.identity(value)`
|
||||
<a href="#_identityvalue">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5227 "View in source") [Ⓣ][1]
|
||||
<a href="#_identityvalue">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5209 "View in source") [Ⓣ][1]
|
||||
|
||||
This method returns the first argument passed to it.
|
||||
|
||||
@@ -3456,7 +3435,7 @@ moe === _.identity(moe);
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_mixinobject"></a>`_.mixin(object)`
|
||||
<a href="#_mixinobject">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5253 "View in source") [Ⓣ][1]
|
||||
<a href="#_mixinobject">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5235 "View in source") [Ⓣ][1]
|
||||
|
||||
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
|
||||
|
||||
@@ -3486,7 +3465,7 @@ _('moe').capitalize();
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_noconflict"></a>`_.noConflict()`
|
||||
<a href="#_noconflict">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5282 "View in source") [Ⓣ][1]
|
||||
<a href="#_noconflict">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5264 "View in source") [Ⓣ][1]
|
||||
|
||||
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
|
||||
|
||||
@@ -3506,7 +3485,7 @@ var lodash = _.noConflict();
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_parseintvalue--radix"></a>`_.parseInt(value [, radix])`
|
||||
<a href="#_parseintvalue--radix">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5306 "View in source") [Ⓣ][1]
|
||||
<a href="#_parseintvalue--radix">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5288 "View in source") [Ⓣ][1]
|
||||
|
||||
Converts the given `value` into an integer of the specified `radix`. If `radix` is `undefined` or `0`, a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
|
||||
|
||||
@@ -3533,7 +3512,7 @@ _.parseInt('08');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_randommin0-max1"></a>`_.random([min=0, max=1])`
|
||||
<a href="#_randommin0-max1">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5329 "View in source") [Ⓣ][1]
|
||||
<a href="#_randommin0-max1">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5311 "View in source") [Ⓣ][1]
|
||||
|
||||
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned.
|
||||
|
||||
@@ -3561,7 +3540,7 @@ _.random(5);
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_resultobject-property"></a>`_.result(object, property)`
|
||||
<a href="#_resultobject-property">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5373 "View in source") [Ⓣ][1]
|
||||
<a href="#_resultobject-property">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5355 "View in source") [Ⓣ][1]
|
||||
|
||||
Resolves the value of `property` on `object`. If `property` is a function, it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey, then `undefined` is returned.
|
||||
|
||||
@@ -3614,7 +3593,7 @@ Create a new `lodash` function using the given `context` object.
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_templatetext-data-options"></a>`_.template(text, data, options)`
|
||||
<a href="#_templatetext-data-options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5457 "View in source") [Ⓣ][1]
|
||||
<a href="#_templatetext-data-options">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5439 "View in source") [Ⓣ][1]
|
||||
|
||||
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
|
||||
|
||||
@@ -3696,7 +3675,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
|
||||
<a href="#_timesn-callback--thisarg">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5582 "View in source") [Ⓣ][1]
|
||||
<a href="#_timesn-callback--thisarg">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5564 "View in source") [Ⓣ][1]
|
||||
|
||||
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
|
||||
|
||||
@@ -3728,7 +3707,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_unescapestring"></a>`_.unescape(string)`
|
||||
<a href="#_unescapestring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5609 "View in source") [Ⓣ][1]
|
||||
<a href="#_unescapestring">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5591 "View in source") [Ⓣ][1]
|
||||
|
||||
The inverse of `_.escape`, this method converts the HTML entities `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding characters.
|
||||
|
||||
@@ -3752,7 +3731,7 @@ _.unescape('Moe, Larry & Curly');
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
|
||||
<a href="#_uniqueidprefix">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5629 "View in source") [Ⓣ][1]
|
||||
<a href="#_uniqueidprefix">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5611 "View in source") [Ⓣ][1]
|
||||
|
||||
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
|
||||
|
||||
@@ -3805,7 +3784,7 @@ A reference to the `lodash` function.
|
||||
<!-- div -->
|
||||
|
||||
### <a id="_version"></a>`_.VERSION`
|
||||
<a href="#_version">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5872 "View in source") [Ⓣ][1]
|
||||
<a href="#_version">#</a> [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5854 "View in source") [Ⓣ][1]
|
||||
|
||||
*(String)*: The semantic version number.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user