mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Rebuild dist.
This commit is contained in:
93
dist/lodash.compat.js
vendored
93
dist/lodash.compat.js
vendored
@@ -617,7 +617,11 @@
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
var oldDash = context._;
|
||||
|
||||
/** Used as the maximum value returned by `toLength` */
|
||||
/**
|
||||
* Used as the maximum length an array-like object.
|
||||
* See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*/
|
||||
var maxSafeInteger = Math.pow(2, 53) - 1;
|
||||
|
||||
/** Used to resolve the internal [[Class]] of values */
|
||||
@@ -1344,8 +1348,7 @@
|
||||
iterable = collection,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
length = toLength(length);
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
if (support.unindexedChars && isString(iterable)) {
|
||||
iterable = iterable.split('');
|
||||
}
|
||||
@@ -1373,8 +1376,7 @@
|
||||
var iterable = collection,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
length = toLength(length);
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
if (support.unindexedChars && isString(iterable)) {
|
||||
iterable = iterable.split('');
|
||||
}
|
||||
@@ -2186,20 +2188,6 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts `value` to an integer suitable for use as the length of an array-like
|
||||
* object. See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to convert.
|
||||
* @returns {number} Returns the converted integer.
|
||||
*/
|
||||
function toLength(value) {
|
||||
var result = +value || 0;
|
||||
return result < 0 ? 0 : (result < maxSafeInteger ? result : maxSafeInteger);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
@@ -3554,10 +3542,10 @@
|
||||
* // => true
|
||||
*/
|
||||
function contains(collection, target, fromIndex) {
|
||||
var length = toLength(collection && collection.length);
|
||||
var length = collection ? collection.length : 0;
|
||||
fromIndex = (typeof fromIndex == 'number' && +fromIndex) || 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
|
||||
if (fromIndex >= length) {
|
||||
return false;
|
||||
@@ -3790,12 +3778,27 @@
|
||||
* // => { 'name': 'fred', 'age': 40, 'blocked': true }
|
||||
*/
|
||||
function find(collection, predicate, thisArg) {
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
if (isArray(collection)) {
|
||||
var index = findIndex(collection, predicate, thisArg);
|
||||
return index > -1 ? collection[index] : undefined;
|
||||
var index = -1,
|
||||
length = collection.length;
|
||||
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (predicate(value, index, collection)) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var result;
|
||||
baseEach(collection, function(value, index, collection) {
|
||||
if (predicate(value, index, collection)) {
|
||||
result = value;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
var key = findKey(collection, predicate, thisArg);
|
||||
return typeof key == 'string' ? collection[key] : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3819,12 +3822,16 @@
|
||||
* // => 3
|
||||
*/
|
||||
function findLast(collection, predicate, thisArg) {
|
||||
if (isArray(collection)) {
|
||||
var index = findLastIndex(collection, predicate, thisArg);
|
||||
return index > -1 ? collection[index] : undefined;
|
||||
}
|
||||
var key = findLastKey(collection, predicate, thisArg);
|
||||
return typeof key == 'string' ? collection[key] : undefined;
|
||||
var result;
|
||||
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
baseEachRight(collection, function(value, index, collection) {
|
||||
if (predicate(value, index, collection)) {
|
||||
result = value;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4016,7 +4023,8 @@
|
||||
result = Array(length < 0 ? 0 : length >>> 0);
|
||||
|
||||
baseEach(collection, function(value) {
|
||||
result[++index] = (isFunc ? methodName : value[methodName]).apply(value, args);
|
||||
var func = isFunc ? methodName : (value != null && value[methodName]);
|
||||
result[++index] = func ? func.apply(value, args) : undefined;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
@@ -4451,7 +4459,7 @@
|
||||
collection = collection.split('');
|
||||
}
|
||||
if (n == null || guard) {
|
||||
var length = toLength(collection && collection.length);
|
||||
var length = collection ? collection.length : 0;
|
||||
return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
|
||||
}
|
||||
var result = shuffle(collection);
|
||||
@@ -4510,7 +4518,9 @@
|
||||
*/
|
||||
function size(collection) {
|
||||
var length = collection ? collection.length : 0;
|
||||
return typeof length == 'number' && length > -1 ? length : keys(collection).length;
|
||||
return (typeof length == 'number' && length > -1 && length <= maxSafeInteger)
|
||||
? length
|
||||
: keys(collection).length;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4671,7 +4681,7 @@
|
||||
*/
|
||||
function toArray(collection) {
|
||||
var length = collection && collection.length;
|
||||
if (typeof length == 'number' && length > -1) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
return (support.unindexedChars && isString(collection))
|
||||
? collection.split('')
|
||||
: slice(collection);
|
||||
@@ -5430,11 +5440,11 @@
|
||||
* // => { 'name': 'barney', 'employer': 'slate' }
|
||||
*/
|
||||
function assign(object, source, guard) {
|
||||
if (!object) {
|
||||
var args = arguments;
|
||||
if (!object || args.length < 2) {
|
||||
return object;
|
||||
}
|
||||
var args = arguments,
|
||||
argsIndex = 0,
|
||||
var argsIndex = 0,
|
||||
argsLength = args.length,
|
||||
type = typeof guard;
|
||||
|
||||
@@ -5626,7 +5636,10 @@
|
||||
* _.defaults({ 'name': 'barney' }, { 'name': 'fred', 'employer': 'slate' });
|
||||
* // => { 'name': 'barney', 'employer': 'slate' }
|
||||
*/
|
||||
function defaults() {
|
||||
function defaults(object) {
|
||||
if (!object || arguments.length < 2) {
|
||||
return object;
|
||||
}
|
||||
var args = slice(arguments);
|
||||
args.push(assignDefaults);
|
||||
return assign.apply(null, args);
|
||||
@@ -7895,7 +7908,7 @@
|
||||
*/
|
||||
function property(key) {
|
||||
return function(object) {
|
||||
return object[key];
|
||||
return object == null ? undefined : object[key];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
114
dist/lodash.compat.min.js
vendored
114
dist/lodash.compat.min.js
vendored
@@ -6,63 +6,63 @@
|
||||
;(function(){function n(n,t){return typeof n=="undefined"?t:n}function t(n,t){if(n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return 0}function r(n,t,r){r=(+r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function e(n,t){return n.has(t)?0:-1}function u(n){return n.charCodeAt(0)}function o(n,t){for(var r=-1,e=n.length;++r<e&&0<=t.indexOf(n.charAt(r)););return r}function a(n,t){for(var r=n.length;r--&&0<=t.indexOf(n.charAt(r)););return r}function i(n,r){return t(n.a,r.a)||n.b-r.b
|
||||
}function l(n,r){for(var e=n.a,u=r.a,o=-1,a=e.length;++o<a;){var i=t(e[o],u[o]);if(i)return i}return n.b-r.b}function f(n){return function(t){for(var r=-1,e=(t=null!=t&&(t+"").replace(U,c).match(X))?t.length:0,u="";++r<e;)u=n(u,t[r],r,t);return u}}function c(n){return ht[n]}function s(n){return st[n]}function p(n){return"\\"+vt[n]}function h(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(m(n),d(n)+1):(t+="",n.slice(o(n,t),a(n,t)+1)):n
|
||||
}function v(n,t){return(n=null==n?"":n+"")?null==t?n.slice(m(n)):(t+="",n.slice(o(n,t))):n}function y(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,d(n)+1):(t+="",n.slice(0,a(n,t)+1)):n}function m(n){for(var t=-1,r=n.length;++t<r;){var e=n.charCodeAt(t);if((160<e||9>e||13<e)&&32!=e&&160!=e&&5760!=e&&6158!=e&&(8192>e||8202<e&&8232!=e&&8233!=e&&8239!=e&&8287!=e&&12288!=e&&65279!=e))break}return t}function d(n){for(var t=n.length;t--;){var r=n.charCodeAt(t);if((160<r||9>r||13<r)&&32!=r&&160!=r&&5760!=r&&6158!=r&&(8192>r||8202<r&&8232!=r&&8233!=r&&8239!=r&&8287!=r&&12288!=r&&65279!=r))break
|
||||
}return t}function b(n){return pt[n]}function _(t){function o(n){return n&&typeof n=="object"&&!Le(n)&&re.call(n,"__wrapped__")?n:new a(n)}function a(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,a=arguments.length,i=Rr(a);++n<a;)i[n]=arguments[n];i=kt(u,o,i)}return this instanceof t?(n=d(r.prototype),i=r.apply(n,i||arguments),yr(i)?i:n):r.apply(e,i||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];return Ae(t,n),t}function m(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o
|
||||
}if(!yr(n))return n;var a=Yr.call(n);if(!lt[a]||!Oe.nodeClass&&h(n))return n;var i=je[a];switch(a){case nt:case tt:return new i(+n);case ut:case it:return new i(n);case at:return o=i(n.source,z.exec(n)),o.lastIndex=n.lastIndex,o}if(a=Le(n),t){e||(e=[]),u||(u=[]);for(var l=e.length;l--;)if(e[l]==n)return u[l];o=a?i(n.length):{}}else o=a?Bt(n):lr({},n);return a&&(re.call(n,"index")&&(o.index=n.index),re.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(a?pt:dt)(n,function(n,a){o[a]=m(n,t,r,e,u)
|
||||
}),o):o}function d(n){return yr(n)?se(n):{}}function U(n,t,r){if(typeof n!="function")return Or;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[S];if(typeof e=="undefined"&&(Oe.funcNames&&(e=!n.name),e=e||!Oe.funcDecomp,!e)){var u=ne.call(n);Oe.funcNames||(e=!B.test(u)),e||(e=V.test(u),Ae(n,e))}if(false===e||true!==e&&e[1]&x)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)
|
||||
};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return or(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Rr(v);++n<v;)y[n]=arguments[n];if(a&&(y=kt(a,l,y)),i){for(var n=i,m=f,b=-1,_=m.length,w=-1,j=ye(y.length-_,0),k=-1,A=n.length,S=Rr(j+A);++w<j;)S[w]=y[w];for(j=w;++k<A;)S[j+k]=n[k];for(;++b<_;)S[j+m[b]]=y[w++];y=S}return p&&v<u?(e|=O,e&=~E,h||(e&=~(x|C)),v=ye(0,u-v),X([r,e,v,o,y,null,[]])):(v=c?o:this,s&&(r=v[g]),this instanceof t?(v=d(r.prototype),n=r.apply(v,y),yr(n)?n:v):r.apply(v,y))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],l=n[6],f=n[7],c=e&x,s=e&C,p=e&j,h=e&k,g=r;return Ae(t,n),t}function st(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,a=St(),i=a===r,l=i&&Ee&&t&&200<=t.length,i=i&&!l,f=[],c=t?t.length:0;l&&(a=e,t=Ee(t));n:for(;++o<u;)if(l=n[o],i){for(var s=c;s--;)if(t[s]===l)continue n;f.push(l)}else 0>a(t,l)&&f.push(l);return f}function pt(n,t){var r=-1,e=n,u=n?n.length:0;if(typeof u=="number")for(u=Tt(u),Oe.unindexedChars&&br(e)&&(e=e.split(""));++r<u&&false!==t(e[r],r,n););else dt(n,t);
|
||||
return n}function ht(n,t){var r=n,e=n?n.length:0;if(typeof e=="number")for(e=Tt(e),Oe.unindexedChars&&br(r)&&(r=r.split(""));e--&&false!==t(r[e],e,n););else mt(n,t,Fe);return n}function gt(n,t,r,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];if(a&&typeof a=="object"&&typeof a.length=="number"&&(Le(a)||hr(a))){t||(a=gt(a,t,r));var i=-1,l=a.length,f=o.length;for(o.length+=l;++i<l;)o[f++]=a[i]}else r||o.push(a)}return o}function vt(n,t,r){var e=-1;r=r(n);for(var u=r.length;++e<u;){var o=r[e];
|
||||
if(false===t(n[o],o,n))break}return n}function mt(n,t,r){r=r(n);for(var e=r.length;e--;){var u=r[e];if(false===t(n[u],u,n))break}return n}function dt(n,t){return vt(n,t,Fe)}function _t(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var i=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=i&&"object"!=i&&"function"!=l&&"object"!=l))return false;if(l=Yr.call(n),i=Yr.call(t),l==J&&(l=ot),i==J&&(i=ot),l!=i)return false;switch(l){case nt:case tt:return+n==+t;
|
||||
case ut:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case it:return n==zr(t)}if(i=l==Q,!i){var f=re.call(n,"__wrapped__"),c=re.call(t,"__wrapped__");if(f||c)return _t(f?n.__wrapped__:n,c?t.__wrapped__:t,r,e,u,o);if(l!=ot||!Oe.nodeClass&&(h(n)||h(t)))return false;if(l=!Oe.argsObject&&hr(n)?$r:n.constructor,f=!Oe.argsObject&&hr(t)?$r:t.constructor,l!=f&&!(re.call(n,"constructor")&&re.call(t,"constructor")||vr(l)&&l instanceof l&&vr(f)&&f instanceof f)&&"constructor"in n&&"constructor"in t)return false}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;
|
||||
var s=0,a=true;if(u.push(n),o.push(t),i){if(l=n.length,s=t.length,(a=s==l)||e)for(;s--;)if(i=l,f=t[s],e)for(;i--&&!(a=_t(n[i],f,r,e,u,o)););else if(!(a=_t(n[s],f,r,e,u,o)))break}else vt(t,function(t,i,l){return re.call(l,i)?(s++,a=re.call(n,i)&&_t(n[i],t,r,e,u,o)):void 0},_r),a&&!e&&vt(n,function(n,t,r){return re.call(r,t)?a=-1<--s:void 0},_r);return u.pop(),o.pop(),a}function wt(n,t,r,e,u){(Le(t)?pt:dt)(t,function(t,o){var a,i,l=t,f=n[o];if(t&&((i=Le(t))||We(t))){for(l=e.length;l--;)if(a=e[l]==t){f=u[l];
|
||||
break}if(!a){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?Le(f)?f:[]:We(f)?f:{}),e.push(t),u.push(f),c||wt(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function xt(n,t){return n+Qr(_e()*(t-n+1))}function Ct(n,t,u){var o=n?n.length:0;if(!o)return[];var a=-1,i=St(),l=!t&&i===r,f=l&&Ee&&200<=o,l=l&&!f,c=[];if(f)var s=Ee(),i=e;else s=u&&!t?[]:c;n:for(;++a<o;){var p=n[a],h=u?u(p,a,n):p;if(l){for(var g=s.length;g--;)if(s[g]===h)continue n;
|
||||
u&&s.push(h),c.push(p)}else t?a&&s===h||(s=h,c.push(p)):0>i(s,h)&&((u||f)&&s.push(h),c.push(p))}return c}function jt(n,t){for(var r=-1,e=t(n),u=e.length,o=Rr(u);++r<u;)o[r]=n[e[r]];return o}function kt(n,t,r){for(var e=t.length,u=-1,o=ye(r.length-e,0),a=-1,i=n.length,l=Rr(o+i);++a<i;)l[a]=n[a];for(;++u<e;)l[t[u]]=r[u];for(;o--;)l[a++]=r[u++];return l}function Ot(n,t){return function(r,e,u){var a=t?[[],[]]:{};if(e=o.createCallback(e,u,3),Le(r)){u=-1;for(var i=r.length;++u<i;){var l=r[u];n(a,l,e(l,u,r),r)
|
||||
}}else pt(r,function(t,r,u){n(a,t,e(t,r,u),u)});return a}}function Et(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":zr(r),jr(r,Hr(t/r.length)).slice(0,t)):""}function At(n,t,r,e,u,o,a,i){var l=t&x,f=t&C,s=t&O,p=t&E;if(!f&&!vr(n))throw new Br;s&&!u.length&&(t&=~O,s=u=false),p&&!o.length&&(t&=~E,p=o=false);var h=!f&&n[S];return h&&true!==h?(h=Bt(h),h[4]&&(h[4]=Bt(h[4])),h[5]&&(h[5]=Bt(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&x,l&&!n&&(h[3]=e),!l&&n&&(t|=k),s&&(h[4]?ee.apply(h[4],u):h[4]=u),p&&(h[5]?le.apply(h[5],o):h[5]=o),h[1]|=t,At.apply(null,h)):(null==r?r=f?0:n.length:0>r&&(r=0),s&&(a=[]),p&&(i=[]),h=[n,t,r,e,u,o,a,i],t==x||t==(x|O)?c(h):X(h))
|
||||
}function St(){var n=(n=o.indexOf)===Pt?r:n;return n}function It(n){return typeof n=="function"&&Gr.test(ne.call(n))}function Rt(n){var t,r;return!n||Yr.call(n)!=ot||!re.call(n,"constructor")&&(t=n.constructor,vr(t)&&!(t instanceof t))||!Oe.argsClass&&hr(n)||!Oe.nodeClass&&h(n)?false:Oe.ownLast?(vt(n,function(n,t,e){return r=re.call(e,t),false},_r),false!==r):(vt(n,function(n,t){r=t},_r),typeof r=="undefined"||re.call(n,r))}function Nt(n){for(var t=-1,r=_r(n),e=r.length,u=[];++t<e;){var o=r[t];re.call(n,o)&&u.push(o)
|
||||
}return u}function Tt(n){return n=+n||0,0>n?0:n<Xr?n:Xr}function Lt(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Wt(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1}function Ft(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else if(a=t,null==a||r)return n?n[0]:w;return Bt(n,0,0>a?0:a)}function Pt(n,t,e){var u=n?n.length:0;
|
||||
if(typeof e=="number")e=0>e?ye(0,u+e):e||0;else if(e)return e=qt(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function $t(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else a=null==t||r?1:t;return a=e-a,Bt(n,0,0>a?0:a)}function Dt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else if(a=t,null==a||r)return n?n[e-1]:w;return a=e-a,Bt(n,0>a?0:a)}function zt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;
|
||||
for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else a=null==t||r?1:0>t?0:t;return Bt(n,a)}function Bt(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=ye(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=ye(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Rr(u);++e<u;)r[e]=n[t+e];return r}function qt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?o.createCallback(r,e,1):Or,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function Ut(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(r=o.createCallback(r,e,3)),Ct(n,t,r)
|
||||
}function Kt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?nr(Te(n,"length")):0,e=Rr(0>r?0:r);++t<r;)e[t]=Te(n,t);return e}function Mt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Le(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Vt(){return this.__wrapped__}function Zt(n,t,r){var e=Tt(n&&n.length);if(r=typeof r=="number"&&+r||0,e){if(typeof n=="string"||!Le(n)&&br(n))return r<e?ce?ce.call(n,t,r):-1<n.indexOf(t,r):false;var u=St();return r=0>r?ye(0,e+r):r,-1<u(n,t,r)
|
||||
}var o=-1,a=false;return pt(n,function(n){return++o<r?void 0:!(a=n===t)}),a}function Xt(n,t,r){var e=true;if(t=o.createCallback(t,r,3),Le(n)){r=-1;for(var u=n.length;++r<u;)if(!t(n[r],r,n))return false}else pt(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Yt(n,t,r){var e=[];if(t=o.createCallback(t,r,3),Le(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else pt(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Gt(n,t,r){return Le(n)?(t=Lt(n,t,r),-1<t?n[t]:w):(t=cr(n,t,r),typeof t=="string"?n[t]:w)
|
||||
}function Ht(n,t,r){if(t&&typeof r=="undefined"&&Le(n)){r=-1;for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else pt(n,U(t,r,3));return n}function Jt(n,t,r){if(t&&typeof r=="undefined"&&Le(n))for(r=n.length;r--&&false!==t(n[r],r,n););else ht(n,U(t,r,3));return n}function Qt(n,t,r){var e=-1,u=n&&n.length,a=Rr(0>u?0:u>>>0);if(t=o.createCallback(t,r,3),Le(n))for(;++e<u;)a[e]=t(n[e],e,n);else pt(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function nr(n,t,r){var e=-1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Le(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l>a&&(a=l)}else t=null==t&&br(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function tr(n,t,r,e){var u=3>arguments.length;if(t=o.createCallback(t,e,4),Le(n)){var a=-1,i=n.length;for(u&&i&&(r=n[++a]);++a<i;)r=t(r,n[a],a,n)}else pt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function rr(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ht(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function er(n){var t=-1,r=n&&n.length,e=Rr(0>r?0:r>>>0);
|
||||
return pt(n,function(n){var r=xt(0,++t);e[t]=e[r],e[r]=n}),e}function ur(n,t,r){var e;if(t=o.createCallback(t,r,3),Le(n)){r=-1;for(var u=n.length;++r<u;)if(t(n[r],r,n))return true}else pt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function or(n,t){if(3>arguments.length)return At(n,x,null,t);if(n)var r=n[S]?n[S][2]:n.length,e=Bt(arguments,2),r=r-e.length;return At(n,x|O,r,t,e)}function ar(n,t,r){var e,u,o,a,i,l,f,c=0,s=false,p=true;if(!vr(n))throw new Br;if(t=0>t?0:t,true===r)var h=true,p=false;else yr(r)&&(h=r.leading,s="maxWait"in r&&(ye(t,r.maxWait)||0),p="trailing"in r?r.trailing:p);
|
||||
var g=function(){var r=t-(Ue()-a);0>=r||r>t?(u&&Jr(u),r=f,u=l=f=w,r&&(c=Ue(),o=n.apply(i,e),l||u||(e=i=null))):l=ae(g,r)},v=function(){l&&Jr(l),u=l=f=w,(p||s!==t)&&(c=Ue(),o=n.apply(i,e),l||u||(e=i=null))};return function(){if(e=arguments,a=Ue(),i=this,f=p&&(l||!h),false===s)var r=h&&!l;else{u||h||(c=a);var y=s-(a-c),m=0>=y||y>s;m?(u&&(u=Jr(u)),c=a,o=n.apply(i,e)):u||(u=ae(v,y))}return m&&l?l=Jr(l):l||t===s||(l=ae(g,t)),r&&(m=true,o=n.apply(i,e)),!m||l||u||(e=i=null),o}}function ir(n){if(!vr(n))throw new Br;
|
||||
return function(){return!n.apply(this,arguments)}}function lr(n,t,r){if(!n)return n;var e=arguments,u=0,o=e.length,a=typeof r;if("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var i=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;){t=e[u];for(var a=-1,l=Fe(t),f=l.length;++a<f;){var c=l[a];n[c]=i?i(n[c],t[c]):t[c]}}return n}function fr(){var t=Bt(arguments);return t.push(n),lr.apply(null,t)}function cr(n,t,r){var e;return t=o.createCallback(t,r,3),dt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0
|
||||
}),e}function sr(n,t,r){var e;return t=o.createCallback(t,r,3),mt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0},Fe),e}function pr(n){var t=[];return vt(n,function(n,r){vr(n)&&t.push(r)},_r),t.sort()}function hr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Yr.call(n)==J||false}function gr(n){return n&&typeof n=="object"&&1===n.nodeType&&(Oe.nodeClass?-1<Yr.call(n).indexOf("Element"):h(n))||false}function vr(n){return typeof n=="function"}function yr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false
|
||||
}function mr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Yr.call(n)==ut||false}function dr(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Yr.call(n)==at||false}function br(n){return typeof n=="string"||n&&typeof n=="object"&&Yr.call(n)==it||false}function _r(n){var t=[];if(!yr(n))return t;Oe.nonEnumArgs&&n.length&&hr(n)&&(n=Bt(n));var r,e=Oe.enumPrototypes&&typeof n=="function",u=Oe.enumErrorProps&&(n===Ur||n instanceof Lr);for(r in n)e&&"prototype"==r||u&&("message"==r||"name"==r)||t.push(r);
|
||||
if(Oe.nonEnumShadows&&n!==Kr){if(r=n.constructor,e=-1,u=H.length,n===(r&&r.prototype))var o=n===Mr?it:n===Ur?rt:Yr.call(n),o=ke[o];for(;++e<u;)r=H[e],o&&o[r]||!re.call(n,r)||t.push(r)}return t}function wr(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=gt(arguments,true,false,1),i=yr(n)?a.length:0;++u<i;){var l=a[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),vt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)},_r);return e}function xr(n){return jt(n,Fe)}function Cr(n){return null==n?"":zr(n).replace(M,"\\$&")
|
||||
}function jr(n,t){var r="";if(t|=0,1>t||null==n)return r;n=zr(n);do t%2&&(r+=n),t=Qr(t/2),n+=n;while(t);return r}function kr(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Ir(n):Er(n)}function Or(n){return n}function Er(n){n||(n={});var t=Fe(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||yr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=re.call(e,o)&&_t(e[o],n[o],null,true)););return o}:function(n){return re.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false
|
||||
}}function Ar(n,t,r){var e=true,u=t&&pr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=pr(t)),false===r?e=false:yr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var a=vr(n),i=u?u.length:0;++r<i;){var l=u[r],f=n[l]=t[l];a&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];if(ee.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&yr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function Sr(){}function Ir(n){return function(t){return t[n]}}t=t?bt.defaults(yt.Object(),t,bt.pick(yt,G)):yt;
|
||||
var Rr=t.Array,Nr=t.Boolean,Tr=t.Date,Lr=t.Error,Wr=t.Function,Fr=t.Math,Pr=t.Number,$r=t.Object,Dr=t.RegExp,zr=t.String,Br=t.TypeError,qr=Rr.prototype,Ur=Lr.prototype,Kr=$r.prototype,Mr=zr.prototype,Vr=(Vr=t.window)&&Vr.document,Zr=t._,Xr=Fr.pow(2,53)-1,Yr=Kr.toString,Gr=Dr("^"+Cr(Yr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hr=Fr.ceil,Jr=t.clearTimeout,Qr=Fr.floor,ne=Wr.prototype.toString,te=It(te=$r.getPrototypeOf)&&te,re=Kr.hasOwnProperty,ee=qr.push,ue=Kr.propertyIsEnumerable,oe=It(oe=t.Set)&&oe,ae=t.setTimeout,ie=qr.splice,le=qr.unshift,fe=function(){try{var n={},t=It(t=$r.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),ce=It(ce=Mr.contains)&&ce,se=It(se=$r.create)&&se,pe=It(pe=Rr.isArray)&&pe,he=t.isFinite,ge=t.isNaN,ve=It(ve=$r.keys)&&ve,ye=Fr.max,me=Fr.min,de=It(de=Tr.now)&&de,be=t.parseInt,_e=Fr.random,we=It(we=Mr.trim)&&!we.call(Y)&&we,xe=It(xe=Mr.trimLeft)&&!xe.call(Y)&&xe,Ce=It(Ce=Mr.trimRight)&&!Ce.call(Y)&&Ce,je={};je[Q]=Rr,je[nt]=Nr,je[tt]=Tr,je[et]=Wr,je[ot]=$r,je[ut]=Pr,je[at]=Dr,je[it]=zr;var ke={};ke[Q]=ke[tt]=ke[ut]={constructor:true,toLocaleString:true,toString:true,valueOf:true},ke[nt]=ke[it]={constructor:true,toString:true,valueOf:true},ke[rt]=ke[et]=ke[at]={constructor:true,toString:true},ke[ot]={constructor:true},function(){for(var n=H.length;n--;){var t,r=H[n];
|
||||
for(t in ke)re.call(ke,t)&&!re.call(ke[t],r)&&(ke[t][r]=false)}}(),a.prototype=o.prototype;var Oe=o.support={};!function(){var n=function(){this.x=1},r={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var u in new n)e.push(u);for(u in arguments);Oe.argsClass=Yr.call(arguments)==J,Oe.argsObject=arguments.constructor==$r&&!(arguments instanceof Rr),Oe.enumErrorProps=ue.call(Ur,"message")||ue.call(Ur,"name"),Oe.enumPrototypes=ue.call(n,"prototype"),Oe.funcDecomp=!It(t.WinRTError)&&V.test(_),Oe.funcNames=typeof Wr.name=="string",Oe.nonEnumArgs="0"!=u,Oe.nonEnumShadows=!/valueOf/.test(e),Oe.ownLast="x"!=e[0],Oe.spliceObjects=(ie.call(r,0,1),!r[0]),Oe.unindexedChars="xx"!="x"[0]+$r("x")[0];
|
||||
try{Oe.dom=11===Vr.createDocumentFragment().nodeType}catch(o){Oe.dom=false}try{Oe.nodeClass=!(Yr.call(undefined)==ot&&!({toString:0}+""))}catch(a){Oe.nodeClass=true}}(1),o.templateSettings={escape:F,evaluate:P,interpolate:$,variable:"",imports:{_:o}},se||(d=function(){function n(){}return function(r){if(yr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var Ee=oe&&function(n){var t=new oe,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},Ae=fe?function(n,t){ct.value=t,fe(n,S,ct)}:Sr,Se=Ot(function(n,t,r){re.call(n,r)?n[r]++:n[r]=1
|
||||
}),Ie=Ot(function(n,t,r){re.call(n,r)?n[r].push(t):n[r]=[t]}),Re=Ot(function(n,t,r){n[r]=t}),Ne=Ot(function(n,t,r){n[r?0:1].push(t)},true),Te=Qt;Oe.argsClass||(hr=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&re.call(n,"callee")&&!ue.call(n,"callee")||false});var Le=pe||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Yr.call(n)==Q||false};Oe.dom||(gr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!We(n)||false}),vr(/x/)&&(vr=function(n){return typeof n=="function"&&Yr.call(n)==et
|
||||
});var We=te?function(n){if(!n||Yr.call(n)!=ot||!Oe.argsClass&&hr(n))return false;var t=n.valueOf,r=It(t)&&(r=te(t))&&te(r);return r?n==r||te(n)==r:Rt(n)}:Rt,Fe=ve?function(n){return Oe.enumPrototypes&&typeof n=="function"||Oe.nonEnumArgs&&n&&n.length&&hr(n)?Nt(n):yr(n)?ve(n):[]}:Nt,Pe=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)}),$e=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),De=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),ze=we?function(n,t){return null==n?"":null==t?we.call(n):g(n,t)
|
||||
}:g,Be=xe?function(n,t){return null==n?"":null==t?xe.call(n):v(n,t)}:v,qe=Ce?function(n,t){return null==n?"":null==t?Ce.call(n):y(n,t)}:y,Ue=de||function(){return(new Tr).getTime()},Ke=8==be(Y+"08")?be:function(n,t){return n=ze(n),be(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!vr(t))throw new Br;return function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=lr,o.at=function(n,t){var r=arguments,e=-1,u=gt(r,true,false,1),o=u.length,a=typeof t;for("number"!=a&&"string"!=a||!r[2]||r[2][t]!==n||(o=1),Oe.unindexedChars&&br(n)&&(n=n.split("")),r=Rr(o);++e<o;)r[e]=n[u[e]];
|
||||
return r},o.bind=or,o.bindAll=function(n){for(var t=1<arguments.length?gt(arguments,true,false,1):pr(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=At(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?At(t,x|C,null,n):At(t,x|C|O,null,n,Bt(arguments,2))},o.chain=function(n){return n=new a(n),n.__chain__=true,n},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!vr(n[r]))throw new Br;
|
||||
return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=Se,o.create=function(n,t){var r=d(n);return t?lr(r,t):r},o.createCallback=kr,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),At(n,j,t)},o.debounce=ar,o.defaults=fr,o.defer=function(n){if(!vr(n))throw new Br;var t=Bt(arguments,1);return ae(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!vr(n))throw new Br;var r=Bt(arguments,2);
|
||||
return ae(function(){n.apply(w,r)},t)},o.difference=function(n){return st(n,gt(arguments,true,true,1))},o.drop=zt,o.dropRight=$t,o.dropRightWhile=$t,o.dropWhile=zt,o.filter=Yt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=Qt(n,r,e)),gt(n,t)},o.forEach=Ht,o.forEachRight=Jt,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),vt(n,t,_r)},o.forInRight=function(n,t,r){return t=U(t,r,3),mt(n,t,_r)
|
||||
},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),dt(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),mt(n,t,Fe)},o.functions=pr,o.groupBy=Ie,o.indexBy=Re,o.initial=$t,o.intersection=function(n){if(!n)return[];for(var t=[],u=-1,o=arguments.length,a=[],i=St(),l=Ee&&i===r,f=[];++u<o;){var c=arguments[u];(Le(c)||hr(c))&&(t.push(c),a.push(l&&120<=c.length&&Ee(u?c:f)))}o=t.length,n=t[0];var l=-1,s=n?n.length:0,p=[];n:for(;++l<s;){var h=a[0],c=n[l];if(0>(h?e(h,c):i(f,c))){for(u=o,(h||f).push(c);--u;)if(h=a[u],0>(h?e(h,c):i(t[u],c)))continue n;
|
||||
p.push(c)}}return p},o.invert=function(n,t){for(var r=-1,e=Fe(n),u=e.length,o={};++r<u;){var a=e[r],i=n[a];t?re.call(o,i)?o[i].push(a):o[i]=[a]:o[i]=a}return o},o.invoke=function(n,t){var r=Bt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,a=Rr(0>o?0:o>>>0);return pt(n,function(n){a[++e]=(u?t:n[t]).apply(n,r)}),a},o.keys=Fe,o.keysIn=_r,o.map=Qt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),dt(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=Er,o.max=nr,o.memoize=function(n,t){if(!vr(n))throw new Br;
|
||||
var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return re.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var a=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(a=e[--u]);for(var e=Bt(e,1,u),o=-1,i=[],l=[];++o<u;)wt(n,e[o],a,i,l);return n},o.min=function(n,t,r){var e=1/0,a=e,i=typeof t;
|
||||
if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Le(n))for(r=-1,i=n.length;++r<i;){var l=n[r];l<a&&(a=l)}else t=null==t&&br(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},o.negate=ir,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),wr(n,ir(t));for(var e=gt(arguments,true,false,1),u=e.length;u--;)e[u]=zr(e[u]);return wr(n,st(_r(n),e))},o.once=function(n){var t,r;if(!vr(n))throw new Br;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)
|
||||
}},o.pairs=function(n){for(var t=-1,r=Fe(n),e=r.length,u=Rr(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=Bt(arguments,1),t=t-r.length;return At(n,O,t,null,r)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=Bt(arguments,1),t=t-r.length;return At(n,E,t,null,null,r)},o.partition=Ne,o.pick=wr,o.pluck=Te,o.property=Ir,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(ie.call(n,u--,1),e--);
|
||||
return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=ye(0,Hr((t-n)/(r||1)));for(var u=Rr(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Yt(n,ir(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,a=[];for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(a.push(r),ie.call(n,e--,1),u--);return a},o.rest=zt,o.shuffle=er,o.slice=Bt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,a=t&&Le(t),f=Rr(0>u?0:u>>>0);for(a||(t=o.createCallback(t,r,3)),pt(n,function(n,r,u){if(a)for(r=t.length,u=Rr(r);r--;)u[r]=n[t[r]];
|
||||
else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(a?l:i);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!vr(n))throw new Br;return false===r?e=false:yr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ft.leading=e,ft.maxWait=+t,ft.trailing=u,ar(n,t,ft)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Rr(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t?Oe.unindexedChars&&br(n)?n.split(""):Bt(n):xr(n)
|
||||
},o.transform=function(n,t,r,e){var u=Le(n);if(null==r)if(u)r=[];else{var a=n&&n.constructor;r=d(a&&a.prototype)}return t&&(t=o.createCallback(t,e,4),(u?pt:dt)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return Ct(gt(arguments,true,true))},o.uniq=Ut,o.values=xr,o.valuesIn=function(n){return jt(n,_r)},o.where=Yt,o.without=function(){return st(arguments[0],Bt(arguments,1))},o.wrap=function(n,t){return At(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Le(r)||hr(r))var e=e?st(e,r).concat(st(r,e)):r}return e?Ct(e):[]},o.zip=Kt,o.zipObject=Mt,o.callback=kr,o.collect=Qt,o.each=Ht,o.eachRight=Jt,o.extend=lr,o.methods=pr,o.object=Mt,o.select=Yt,o.tail=zt,o.unique=Ut,o.unzip=Kt,Ar(lr({},o)),o.camelCase=Pe,o.capitalize=function(n){return null==n?"":(n=zr(n),n.charAt(0).toUpperCase()+n.slice(1))},o.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&U(r,e,1),m(n,t,r)
|
||||
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),m(n,true,t)},o.contains=Zt,o.endsWith=function(n,t,r){n=null==n?"":zr(n),t=zr(t);var e=n.length;return r=(typeof r=="number"?me(ye(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":zr(n).replace(W,s)},o.escapeRegExp=Cr,o.every=Xt,o.find=Gt,o.findIndex=Lt,o.findKey=cr,o.findLast=function(n,t,r){return Le(n)?(t=Wt(n,t,r),-1<t?n[t]:w):(t=sr(n,t,r),typeof t=="string"?n[t]:w)},o.findLastIndex=Wt,o.findLastKey=sr,o.has=function(n,t){return n?re.call(n,t):false
|
||||
},o.identity=Or,o.indexOf=Pt,o.isArguments=hr,o.isArray=Le,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Yr.call(n)==nt||false},o.isDate=function(n){return n&&typeof n=="object"&&Yr.call(n)==tt||false},o.isElement=gr,o.isEmpty=function(n){var t=true;if(!n)return t;var r=Yr.call(n),e=n.length;return r==Q||r==it||(Oe.argsClass?r==J:hr(n))||r==ot&&typeof e=="number"&&vr(n.splice)?!e:(dt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;
|
||||
e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return _t(n,t,r)},o.isFinite=function(n){return he(n)&&!ge(parseFloat(n))},o.isFunction=vr,o.isNaN=function(n){return mr(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=mr,o.isObject=yr,o.isPlainObject=We,o.isRegExp=dr,o.isString=br,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=$e,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?ye(0,e+r):me(r,e-1))+1);e--;)if(n[e]===t)return e;
|
||||
return-1},o.mixin=Ar,o.noConflict=function(){return t._=Zr,this},o.noop=Sr,o.now=Ue,o.pad=function(n,t,r){n=null==n?"":zr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Qr(e),e=Hr(e),r=Et("",e,r),r.slice(0,t)+n+r):n},o.padLeft=function(n,t,r){return n=null==n?"":zr(n),Et(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":zr(n),n+Et(n,t,r)},o.parseInt=Ke,o.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=_e(),me(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):xt(n,t)
|
||||
},o.reduce=tr,o.reduceRight=rr,o.repeat=jr,o.result=function(n,t,r){var e=null==n?w:n[t];return typeof e=="undefined"?r:vr(e)?n[t]():e},o.runInContext=_,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t?t:Fe(n).length},o.some=ur,o.sortedIndex=qt,o.snakeCase=De,o.startsWith=function(n,t,r){return n=null==n?"":zr(n),r=typeof r=="number"?me(ye(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=fr({},r,e),n=zr(null==n?"":n);var u,a,i=fr({},r.imports,e.imports),e=Fe(i),i=xr(i),l=0,f=r.interpolate||K,c="__p+='",f=Dr((r.escape||K).source+"|"+f.source+"|"+(f===$?D:K).source+"|"+(r.evaluate||K).source+"|$","g");
|
||||
n.replace(f,function(t,r,e,o,i,f){return e||(e=o),c+=n.slice(l,f).replace(Z,p),r&&(u=true,c+="'+__e("+r+")+'"),i&&(a=true,c+="';"+i+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(a?c.replace(R,""):c).replace(N,"$1").replace(T,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(a?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var s=Wr(e,"return "+c).apply(w,i)
|
||||
}catch(h){throw h.source=c,h}return t?s(t):(s.source=c,s)},o.trim=ze,o.trimLeft=Be,o.trimRight=qe,o.truncate=function(n,t){var r=30,e="...";if(t&&yr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?zr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":zr(n),r>=n.length)return n;var o=r-e.length;if(1>o)return e;if(r=n.slice(0,o),null==u)return r+e;if(dr(u)){if(n.slice(o).search(u)){var a,i,l=n.slice(0,o);for(u.global||(u=Dr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;a=u.exec(l);)i=a.index;
|
||||
r=r.slice(0,null==i?o:i)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=zr(n),0>n.indexOf(";")?n:n.replace(L,b))},o.uniqueId=function(n){var t=++I;return zr(null==n?"":n)+t},o.all=Xt,o.any=ur,o.detect=Gt,o.findWhere=Gt,o.foldl=tr,o.foldr=rr,o.include=Zt,o.inject=tr,Ar(function(){var n={};return dt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Ft,o.last=Dt,o.sample=function(n,t,r){return n&&typeof n.length!="number"?n=xr(n):Oe.unindexedChars&&br(n)&&(n=n.split("")),null==t||r?(t=Tt(n&&n.length),0<t?n[xt(0,t-1)]:w):(n=er(n),n.length=me(ye(0,t),n.length),n)
|
||||
},o.take=Ft,o.takeRight=Dt,o.takeRightWhile=Dt,o.takeWhile=Ft,o.head=Ft,dt(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new a(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return zr(this.__wrapped__)},o.prototype.value=Vt,o.prototype.valueOf=Vt,pt(["join","pop","shift"],function(n){var t=qr[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new a(r,n):r}}),pt(["push","reverse","sort","unshift"],function(n){var t=qr[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pt(["concat","splice"],function(n){var t=qr[n];o.prototype[n]=function(){return new a(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Oe.spliceObjects||pt(["pop","shift","splice"],function(n){var t=qr[n],r="splice"==n;o.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new a(u,n):u
|
||||
}return t}function b(n){return pt[n]}function _(t){function o(n){return n&&typeof n=="object"&&!Re(n)&&Qr.call(n,"__wrapped__")?n:new a(n)}function a(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,a=arguments.length,i=Ar(a);++n<a;)i[n]=arguments[n];i=Et(u,o,i)}return this instanceof t?(n=d(r.prototype),i=r.apply(n,i||arguments),hr(i)?i:n):r.apply(e,i||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];return ke(t,n),t}function m(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o
|
||||
}if(!hr(n))return n;var a=Vr.call(n);if(!lt[a]||!Ce.nodeClass&&h(n))return n;var i=we[a];switch(a){case nt:case tt:return new i(+n);case ut:case it:return new i(n);case at:return o=i(n.source,z.exec(n)),o.lastIndex=n.lastIndex,o}if(a=Re(n),t){e||(e=[]),u||(u=[]);for(var l=e.length;l--;)if(e[l]==n)return u[l];o=a?i(n.length):{}}else o=a?zt(n):ir({},n);return a&&(Qr.call(n,"index")&&(o.index=n.index),Qr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(a?pt:_t)(n,function(n,a){o[a]=m(n,t,r,e,u)
|
||||
}),o):o}function d(n){return hr(n)?le(n):{}}function U(n,t,r){if(typeof n!="function")return Cr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[S];if(typeof e=="undefined"&&(Ce.funcNames&&(e=!n.name),e=e||!Ce.funcDecomp,!e)){var u=Hr.call(n);Ce.funcNames||(e=!B.test(u)),e||(e=V.test(u),ke(n,e))}if(false===e||true!==e&&e[1]&x)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)
|
||||
};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)}}return ur(n,t)}function X(n){function t(){for(var n=-1,v=arguments.length,y=Ar(v);++n<v;)y[n]=arguments[n];if(a&&(y=Et(a,l,y)),i){for(var n=i,m=f,b=-1,_=m.length,w=-1,j=he(y.length-_,0),k=-1,A=n.length,S=Ar(j+A);++w<j;)S[w]=y[w];for(j=w;++k<A;)S[j+k]=n[k];for(;++b<_;)S[j+m[b]]=y[w++];y=S}return p&&v<u?(e|=O,e&=~E,h||(e&=~(x|C)),v=he(0,u-v),X([r,e,v,o,y,null,[]])):(v=c?o:this,s&&(r=v[g]),this instanceof t?(v=d(r.prototype),n=r.apply(v,y),hr(n)?n:v):r.apply(v,y))
|
||||
}var r=n[0],e=n[1],u=n[2],o=n[3],a=n[4],i=n[5],l=n[6],f=n[7],c=e&x,s=e&C,p=e&j,h=e&k,g=r;return ke(t,n),t}function st(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,a=Rt(),i=a===r,l=i&&je&&t&&200<=t.length,i=i&&!l,f=[],c=t?t.length:0;l&&(a=e,t=je(t));n:for(;++o<u;)if(l=n[o],i){for(var s=c;s--;)if(t[s]===l)continue n;f.push(l)}else 0>a(t,l)&&f.push(l);return f}function pt(n,t){var r=-1,e=n,u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Mr)for(Ce.unindexedChars&&yr(e)&&(e=e.split(""));++r<u&&false!==t(e[r],r,n););else _t(n,t);
|
||||
return n}function ht(n,t){var r=n,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Mr)for(Ce.unindexedChars&&yr(r)&&(r=r.split(""));e--&&false!==t(r[e],e,n););else wt(n,t)}function gt(n,t,r,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var a=n[e];if(a&&typeof a=="object"&&typeof a.length=="number"&&(Re(a)||cr(a))){t||(a=gt(a,t,r));var i=-1,l=a.length,f=o.length;for(o.length+=l;++i<l;)o[f++]=a[i]}else r||o.push(a)}return o}function vt(n,t,r){var e=-1;r=r(n);for(var u=r.length;++e<u;){var o=r[e];if(false===t(n[o],o,n))break
|
||||
}return n}function mt(n,t,r){r=r(n);for(var e=r.length;e--;){var u=r[e];if(false===t(n[u],u,n))break}return n}function dt(n,t){vt(n,t,mr)}function _t(n,t){return vt(n,t,Te)}function wt(n,t){mt(n,t,Te)}function xt(n,t,r,e,u,o){if(r){var a=r(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;var i=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=i&&"object"!=i&&"function"!=l&&"object"!=l))return false;if(l=Vr.call(n),i=Vr.call(t),l==J&&(l=ot),i==J&&(i=ot),l!=i)return false;switch(l){case nt:case tt:return+n==+t;
|
||||
case ut:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case it:return n==Pr(t)}if(i=l==Q,!i){var f=Qr.call(n,"__wrapped__"),c=Qr.call(t,"__wrapped__");if(f||c)return xt(f?n.__wrapped__:n,c?t.__wrapped__:t,r,e,u,o);if(l!=ot||!Ce.nodeClass&&(h(n)||h(t)))return false;if(l=!Ce.argsObject&&cr(n)?Wr:n.constructor,f=!Ce.argsObject&&cr(t)?Wr:t.constructor,l!=f&&!(Qr.call(n,"constructor")&&Qr.call(t,"constructor")||pr(l)&&l instanceof l&&pr(f)&&f instanceof f)&&"constructor"in n&&"constructor"in t)return false}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;
|
||||
var s=0,a=true;if(u.push(n),o.push(t),i){if(l=n.length,s=t.length,(a=s==l)||e)for(;s--;)if(i=l,f=t[s],e)for(;i--&&!(a=xt(n[i],f,r,e,u,o)););else if(!(a=xt(n[s],f,r,e,u,o)))break}else dt(t,function(t,i,l){return Qr.call(l,i)?(s++,a=Qr.call(n,i)&&xt(n[i],t,r,e,u,o)):void 0}),a&&!e&&dt(n,function(n,t,r){return Qr.call(r,t)?a=-1<--s:void 0});return u.pop(),o.pop(),a}function Ct(n,t,r,e,u){(Re(t)?pt:_t)(t,function(t,o){var a,i,l=t,f=n[o];if(t&&((i=Re(t))||Ne(t))){for(l=e.length;l--;)if(a=e[l]==t){f=u[l];
|
||||
break}if(!a){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?Re(f)?f:[]:Ne(f)?f:{}),e.push(t),u.push(f),c||Ct(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[o]=f})}function jt(n,t){return n+Gr(me()*(t-n+1))}function kt(n,t,u){var o=n?n.length:0;if(!o)return[];var a=-1,i=Rt(),l=!t&&i===r,f=l&&je&&200<=o,l=l&&!f,c=[];if(f)var s=je(),i=e;else s=u&&!t?[]:c;n:for(;++a<o;){var p=n[a],h=u?u(p,a,n):p;if(l){for(var g=s.length;g--;)if(s[g]===h)continue n;
|
||||
u&&s.push(h),c.push(p)}else t?a&&s===h||(s=h,c.push(p)):0>i(s,h)&&((u||f)&&s.push(h),c.push(p))}return c}function Ot(n,t){for(var r=-1,e=t(n),u=e.length,o=Ar(u);++r<u;)o[r]=n[e[r]];return o}function Et(n,t,r){for(var e=t.length,u=-1,o=he(r.length-e,0),a=-1,i=n.length,l=Ar(o+i);++a<i;)l[a]=n[a];for(;++u<e;)l[t[u]]=r[u];for(;o--;)l[a++]=r[u++];return l}function At(n,t){return function(r,e,u){var a=t?[[],[]]:{};if(e=o.createCallback(e,u,3),Re(r)){u=-1;for(var i=r.length;++u<i;){var l=r[u];n(a,l,e(l,u,r),r)
|
||||
}}else pt(r,function(t,r,u){n(a,t,e(t,r,u),u)});return a}}function St(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":Pr(r),wr(r,Xr(t/r.length)).slice(0,t)):""}function It(n,t,r,e,u,o,a,i){var l=t&x,f=t&C,s=t&O,p=t&E;if(!f&&!pr(n))throw new $r;s&&!u.length&&(t&=~O,s=u=false),p&&!o.length&&(t&=~E,p=o=false);var h=!f&&n[S];return h&&true!==h?(h=zt(h),h[4]&&(h[4]=zt(h[4])),h[5]&&(h[5]=zt(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&x,l&&!n&&(h[3]=e),!l&&n&&(t|=k),s&&(h[4]?ne.apply(h[4],u):h[4]=u),p&&(h[5]?oe.apply(h[5],o):h[5]=o),h[1]|=t,It.apply(null,h)):(null==r?r=f?0:n.length:0>r&&(r=0),s&&(a=[]),p&&(i=[]),h=[n,t,r,e,u,o,a,i],t==x||t==(x|O)?c(h):X(h))
|
||||
}function Rt(){var n=(n=o.indexOf)===Ft?r:n;return n}function Nt(n){return typeof n=="function"&&Zr.test(Hr.call(n))}function Tt(n){var t,r;return!n||Vr.call(n)!=ot||!Qr.call(n,"constructor")&&(t=n.constructor,pr(t)&&!(t instanceof t))||!Ce.argsClass&&cr(n)||!Ce.nodeClass&&h(n)?false:Ce.ownLast?(dt(n,function(n,t,e){return r=Qr.call(e,t),false}),false!==r):(dt(n,function(n,t){r=t}),typeof r=="undefined"||Qr.call(n,r))}function Lt(n){for(var t=-1,r=mr(n),e=r.length,u=[];++t<e;){var o=r[t];Qr.call(n,o)&&u.push(o)
|
||||
}return u}function Wt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else if(a=t,null==a||r)return n?n[0]:w;return zt(n,0,0>a?0:a)}function Ft(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?he(0,u+e):e||0;else if(e)return e=Bt(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function Pt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else a=null==t||r?1:t;
|
||||
return a=e-a,zt(n,0,0>a?0:a)}function $t(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,a=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)a++}else if(a=t,null==a||r)return n?n[e-1]:w;return a=e-a,zt(n,0>a?0:a)}function Dt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,a=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)a++}else a=null==t||r?1:0>t?0:t;return zt(n,a)}function zt(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=he(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=he(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Ar(u);++e<u;)r[e]=n[t+e];
|
||||
return r}function Bt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?o.createCallback(r,e,1):Cr,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function qt(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(r=o.createCallback(r,e,3)),kt(n,t,r)}function Ut(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Qt(Ie(n,"length")):0,e=Ar(0>r?0:r);++t<r;)e[t]=Ie(n,t);return e}function Kt(n,t){var r=-1,e=n?n.length:0,u={};
|
||||
for(t||!e||Re(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Mt(){return this.__wrapped__}function Vt(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"&&+r||0,typeof e=="number"&&-1<e&&e<=Mr){if(typeof n=="string"||!Re(n)&&yr(n))return r<e?ie?ie.call(n,t,r):-1<n.indexOf(t,r):false;var u=Rt();return r=0>r?he(0,e+r):r,-1<u(n,t,r)}var o=-1,a=false;return pt(n,function(n){return++o<r?void 0:!(a=n===t)}),a}function Zt(n,t,r){var e=true;if(t=o.createCallback(t,r,3),Re(n)){r=-1;
|
||||
for(var u=n.length;++r<u;)if(!t(n[r],r,n))return false}else pt(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Xt(n,t,r){var e=[];if(t=o.createCallback(t,r,3),Re(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else pt(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Yt(n,t,r){if(t=o.createCallback(t,r,3),!Re(n)){var e;return pt(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e}r=-1;for(var u=n.length;++r<u;){var a=n[r];if(t(a,r,n))return a}}function Gt(n,t,r){if(t&&typeof r=="undefined"&&Re(n)){r=-1;
|
||||
for(var e=n.length;++r<e&&false!==t(n[r],r,n););}else pt(n,U(t,r,3));return n}function Ht(n,t,r){if(t&&typeof r=="undefined"&&Re(n))for(r=n.length;r--&&false!==t(n[r],r,n););else ht(n,U(t,r,3));return n}function Jt(n,t,r){var e=-1,u=n&&n.length,a=Ar(0>u?0:u>>>0);if(t=o.createCallback(t,r,3),Re(n))for(;++e<u;)a[e]=t(n[e],e,n);else pt(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function Qt(n,t,r){var e=-1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Re(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l>a&&(a=l)}else t=null==t&&yr(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function nr(n,t,r,e){var u=3>arguments.length;if(t=o.createCallback(t,e,4),Re(n)){var a=-1,i=n.length;for(u&&i&&(r=n[++a]);++a<i;)r=t(r,n[a],a,n)}else pt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function tr(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ht(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function rr(n){var t=-1,r=n&&n.length,e=Ar(0>r?0:r>>>0);
|
||||
return pt(n,function(n){var r=jt(0,++t);e[t]=e[r],e[r]=n}),e}function er(n,t,r){var e;if(t=o.createCallback(t,r,3),Re(n)){r=-1;for(var u=n.length;++r<u;)if(t(n[r],r,n))return true}else pt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function ur(n,t){if(3>arguments.length)return It(n,x,null,t);if(n)var r=n[S]?n[S][2]:n.length,e=zt(arguments,2),r=r-e.length;return It(n,x|O,r,t,e)}function or(n,t,r){function e(){c&&Yr(c),a=c=s=w,(g||h!==t)&&(p=ze(),i=n.apply(f,o),c||a||(o=f=null))}function u(){var r=t-(ze()-l);
|
||||
0>=r||r>t?(a&&Yr(a),r=s,a=c=s=w,r&&(p=ze(),i=n.apply(f,o),c||a||(o=f=null))):c=ee(u,r)}var o,a,i,l,f,c,s,p=0,h=false,g=true;if(!pr(n))throw new $r;if(t=0>t?0:t,true===r)var v=true,g=false;else hr(r)&&(v=r.leading,h="maxWait"in r&&(he(t,r.maxWait)||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,l=ze(),f=this,s=g&&(c||!v),false===h)var r=v&&!c;else{a||v||(p=l);var y=h-(l-p),m=0>=y||y>h;m?(a&&(a=Yr(a)),p=l,i=n.apply(f,o)):a||(a=ee(e,y))}return m&&c?c=Yr(c):c||t===h||(c=ee(u,t)),r&&(m=true,i=n.apply(f,o)),!m||c||a||(o=f=null),i
|
||||
}}function ar(n){if(!pr(n))throw new $r;return function(){return!n.apply(this,arguments)}}function ir(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,a=typeof r;if("number"!=a&&"string"!=a||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var i=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(i=e[--o]);for(;++u<o;){t=e[u];for(var a=-1,l=Te(t),f=l.length;++a<f;){var c=l[a];n[c]=i?i(n[c],t[c]):t[c]}}return n}function lr(t){if(!t||2>arguments.length)return t;var r=zt(arguments);
|
||||
return r.push(n),ir.apply(null,r)}function fr(n){var t=[];return dt(n,function(n,r){pr(n)&&t.push(r)}),t.sort()}function cr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Vr.call(n)==J||false}function sr(n){return n&&typeof n=="object"&&1===n.nodeType&&(Ce.nodeClass?-1<Vr.call(n).indexOf("Element"):h(n))||false}function pr(n){return typeof n=="function"}function hr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function gr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Vr.call(n)==ut||false
|
||||
}function vr(n){var t=typeof n;return n&&("function"==t||"object"==t)&&Vr.call(n)==at||false}function yr(n){return typeof n=="string"||n&&typeof n=="object"&&Vr.call(n)==it||false}function mr(n){var t=[];if(!hr(n))return t;Ce.nonEnumArgs&&n.length&&cr(n)&&(n=zt(n));var r,e=Ce.enumPrototypes&&typeof n=="function",u=Ce.enumErrorProps&&(n===zr||n instanceof Rr);for(r in n)e&&"prototype"==r||u&&("message"==r||"name"==r)||t.push(r);if(Ce.nonEnumShadows&&n!==Br){if(r=n.constructor,e=-1,u=H.length,n===(r&&r.prototype))var o=n===qr?it:n===zr?rt:Vr.call(n),o=xe[o];
|
||||
for(;++e<u;)r=H[e],o&&o[r]||!Qr.call(n,r)||t.push(r)}return t}function dr(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=gt(arguments,true,false,1),i=hr(n)?a.length:0;++u<i;){var l=a[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),dt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e}function br(n){return Ot(n,Te)}function _r(n){return null==n?"":Pr(n).replace(M,"\\$&")}function wr(n,t){var r="";if(t|=0,1>t||null==n)return r;n=Pr(n);do t%2&&(r+=n),t=Gr(t/2),n+=n;while(t);return r}function xr(n,t,r){var e=typeof n;
|
||||
return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Er(n):jr(n)}function Cr(n){return n}function jr(n){n||(n={});var t=Te(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||hr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=Qr.call(e,o)&&xt(e[o],n[o],null,true)););return o}:function(n){return Qr.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function kr(n,t,r){var e=true,u=t&&fr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=fr(t)),false===r?e=false:hr(r)&&"chain"in r&&(e=r.chain),r=-1;
|
||||
for(var a=pr(n),i=u?u.length:0;++r<i;){var l=u[r],f=n[l]=t[l];a&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];if(ne.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&hr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function Or(){}function Er(n){return function(t){return null==t?w:t[n]}}t=t?bt.defaults(yt.Object(),t,bt.pick(yt,G)):yt;var Ar=t.Array,Sr=t.Boolean,Ir=t.Date,Rr=t.Error,Nr=t.Function,Tr=t.Math,Lr=t.Number,Wr=t.Object,Fr=t.RegExp,Pr=t.String,$r=t.TypeError,Dr=Ar.prototype,zr=Rr.prototype,Br=Wr.prototype,qr=Pr.prototype,Ur=(Ur=t.window)&&Ur.document,Kr=t._,Mr=Tr.pow(2,53)-1,Vr=Br.toString,Zr=Fr("^"+_r(Vr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=Tr.ceil,Yr=t.clearTimeout,Gr=Tr.floor,Hr=Nr.prototype.toString,Jr=Nt(Jr=Wr.getPrototypeOf)&&Jr,Qr=Br.hasOwnProperty,ne=Dr.push,te=Br.propertyIsEnumerable,re=Nt(re=t.Set)&&re,ee=t.setTimeout,ue=Dr.splice,oe=Dr.unshift,ae=function(){try{var n={},t=Nt(t=Wr.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),ie=Nt(ie=qr.contains)&&ie,le=Nt(le=Wr.create)&&le,fe=Nt(fe=Ar.isArray)&&fe,ce=t.isFinite,se=t.isNaN,pe=Nt(pe=Wr.keys)&&pe,he=Tr.max,ge=Tr.min,ve=Nt(ve=Ir.now)&&ve,ye=t.parseInt,me=Tr.random,de=Nt(de=qr.trim)&&!de.call(Y)&&de,be=Nt(be=qr.trimLeft)&&!be.call(Y)&&be,_e=Nt(_e=qr.trimRight)&&!_e.call(Y)&&_e,we={};we[Q]=Ar,we[nt]=Sr,we[tt]=Ir,we[et]=Nr,we[ot]=Wr,we[ut]=Lr,we[at]=Fr,we[it]=Pr;var xe={};xe[Q]=xe[tt]=xe[ut]={constructor:true,toLocaleString:true,toString:true,valueOf:true},xe[nt]=xe[it]={constructor:true,toString:true,valueOf:true},xe[rt]=xe[et]=xe[at]={constructor:true,toString:true},xe[ot]={constructor:true},function(){for(var n=H.length;n--;){var t,r=H[n];
|
||||
for(t in xe)Qr.call(xe,t)&&!Qr.call(xe[t],r)&&(xe[t][r]=false)}}(),a.prototype=o.prototype;var Ce=o.support={};!function(){function n(){this.x=1}var r={0:1,length:1},e=[];n.prototype={valueOf:1,y:1};for(var u in new n)e.push(u);for(u in arguments);Ce.argsClass=Vr.call(arguments)==J,Ce.argsObject=arguments.constructor==Wr&&!(arguments instanceof Ar),Ce.enumErrorProps=te.call(zr,"message")||te.call(zr,"name"),Ce.enumPrototypes=te.call(n,"prototype"),Ce.funcDecomp=!Nt(t.WinRTError)&&V.test(_),Ce.funcNames=typeof Nr.name=="string",Ce.nonEnumArgs="0"!=u,Ce.nonEnumShadows=!/valueOf/.test(e),Ce.ownLast="x"!=e[0],Ce.spliceObjects=(ue.call(r,0,1),!r[0]),Ce.unindexedChars="xx"!="x"[0]+Wr("x")[0];
|
||||
try{Ce.dom=11===Ur.createDocumentFragment().nodeType}catch(o){Ce.dom=false}try{Ce.nodeClass=!(Vr.call(undefined)==ot&&!({toString:0}+""))}catch(a){Ce.nodeClass=true}}(1),o.templateSettings={escape:F,evaluate:P,interpolate:$,variable:"",imports:{_:o}},le||(d=function(){function n(){}return function(r){if(hr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var je=re&&function(n){var t=new re,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},ke=ae?function(n,t){ct.value=t,ae(n,S,ct)}:Or,Oe=At(function(n,t,r){Qr.call(n,r)?n[r]++:n[r]=1
|
||||
}),Ee=At(function(n,t,r){Qr.call(n,r)?n[r].push(t):n[r]=[t]}),Ae=At(function(n,t,r){n[r]=t}),Se=At(function(n,t,r){n[r?0:1].push(t)},true),Ie=Jt;Ce.argsClass||(cr=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Qr.call(n,"callee")&&!te.call(n,"callee")||false});var Re=fe||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Vr.call(n)==Q||false};Ce.dom||(sr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ne(n)||false}),pr(/x/)&&(pr=function(n){return typeof n=="function"&&Vr.call(n)==et
|
||||
});var Ne=Jr?function(n){if(!n||Vr.call(n)!=ot||!Ce.argsClass&&cr(n))return false;var t=n.valueOf,r=Nt(t)&&(r=Jr(t))&&Jr(r);return r?n==r||Jr(n)==r:Tt(n)}:Tt,Te=pe?function(n){return Ce.enumPrototypes&&typeof n=="function"||Ce.nonEnumArgs&&n&&n.length&&cr(n)?Lt(n):hr(n)?pe(n):[]}:Lt,Le=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)}),We=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Fe=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Pe=de?function(n,t){return null==n?"":null==t?de.call(n):g(n,t)
|
||||
}:g,$e=be?function(n,t){return null==n?"":null==t?be.call(n):v(n,t)}:v,De=_e?function(n,t){return null==n?"":null==t?_e.call(n):y(n,t)}:y,ze=ve||function(){return(new Ir).getTime()},Be=8==ye(Y+"08")?ye:function(n,t){return n=Pe(n),ye(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!pr(t))throw new $r;return function(){return 1>--n?t.apply(this,arguments):void 0}},o.assign=ir,o.at=function(n,t){var r=arguments,e=-1,u=gt(r,true,false,1),o=u.length,a=typeof t;for("number"!=a&&"string"!=a||!r[2]||r[2][t]!==n||(o=1),Ce.unindexedChars&&yr(n)&&(n=n.split("")),r=Ar(o);++e<o;)r[e]=n[u[e]];
|
||||
return r},o.bind=ur,o.bindAll=function(n){for(var t=1<arguments.length?gt(arguments,true,false,1):fr(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=It(n[u],x,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?It(t,x|C,null,n):It(t,x|C|O,null,n,zt(arguments,2))},o.chain=function(n){return n=new a(n),n.__chain__=true,n},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!pr(n[r]))throw new $r;
|
||||
return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=Oe,o.create=function(n,t){var r=d(n);return t?ir(r,t):r},o.createCallback=xr,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),It(n,j,t)},o.debounce=or,o.defaults=lr,o.defer=function(n){if(!pr(n))throw new $r;var t=zt(arguments,1);return ee(function(){n.apply(w,t)},1)},o.delay=function(n,t){if(!pr(n))throw new $r;var r=zt(arguments,2);
|
||||
return ee(function(){n.apply(w,r)},t)},o.difference=function(n){return st(n,gt(arguments,true,true,1))},o.drop=Dt,o.dropRight=Pt,o.dropRightWhile=Pt,o.dropWhile=Dt,o.filter=Xt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=Jt(n,r,e)),gt(n,t)},o.forEach=Gt,o.forEachRight=Ht,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),vt(n,t,mr)},o.forInRight=function(n,t,r){return t=U(t,r,3),mt(n,t,mr)
|
||||
},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),_t(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),mt(n,t,Te)},o.functions=fr,o.groupBy=Ee,o.indexBy=Ae,o.initial=Pt,o.intersection=function(n){if(!n)return[];for(var t=[],u=-1,o=arguments.length,a=[],i=Rt(),l=je&&i===r,f=[];++u<o;){var c=arguments[u];(Re(c)||cr(c))&&(t.push(c),a.push(l&&120<=c.length&&je(u?c:f)))}o=t.length,n=t[0];var l=-1,s=n?n.length:0,p=[];n:for(;++l<s;){var h=a[0],c=n[l];if(0>(h?e(h,c):i(f,c))){for(u=o,(h||f).push(c);--u;)if(h=a[u],0>(h?e(h,c):i(t[u],c)))continue n;
|
||||
p.push(c)}}return p},o.invert=function(n,t){for(var r=-1,e=Te(n),u=e.length,o={};++r<u;){var a=e[r],i=n[a];t?Qr.call(o,i)?o[i].push(a):o[i]=[a]:o[i]=a}return o},o.invoke=function(n,t){var r=zt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,a=Ar(0>o?0:o>>>0);return pt(n,function(n){var o=u?t:null!=n&&n[t];a[++e]=o?o.apply(n,r):w}),a},o.keys=Te,o.keysIn=mr,o.map=Jt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),_t(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=jr,o.max=Qt,o.memoize=function(n,t){function r(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];
|
||||
return Qr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}if(!pr(n))throw new $r;return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var a=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(a=e[--u]);for(var e=zt(e,1,u),o=-1,i=[],l=[];++o<u;)Ct(n,e[o],a,i,l);return n},o.min=function(n,t,r){var e=1/0,a=e,i=typeof t;if("number"!=i&&"string"!=i||!r||r[t]!==n||(t=null),null==t&&Re(n))for(r=-1,i=n.length;++r<i;){var l=n[r];
|
||||
l<a&&(a=l)}else t=null==t&&yr(n)?u:o.createCallback(t,r,3),pt(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},o.negate=ar,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),dr(n,ar(t));for(var e=gt(arguments,true,false,1),u=e.length;u--;)e[u]=Pr(e[u]);return dr(n,st(mr(n),e))},o.once=function(n){var t,r;if(!pr(n))throw new $r;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Te(n),e=r.length,u=Ar(e);++t<e;){var o=r[t];
|
||||
u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=zt(arguments,1),t=t-r.length;return It(n,O,t,null,r)},o.partialRight=function(n){if(n)var t=n[S]?n[S][2]:n.length,r=zt(arguments,1),t=t-r.length;return It(n,E,t,null,null,r)},o.partition=Se,o.pick=dr,o.pluck=Ie,o.property=Er,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(ue.call(n,u--,1),e--);return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;
|
||||
var e=-1;t=he(0,Xr((t-n)/(r||1)));for(var u=Ar(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Xt(n,ar(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,a=[];for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(a.push(r),ue.call(n,e--,1),u--);return a},o.rest=Dt,o.shuffle=rr,o.slice=zt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,a=t&&Re(t),f=Ar(0>u?0:u>>>0);for(a||(t=o.createCallback(t,r,3)),pt(n,function(n,r,u){if(a)for(r=t.length,u=Ar(r);r--;)u[r]=n[t[r]];
|
||||
else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(a?l:i);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!pr(n))throw new $r;return false===r?e=false:hr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ft.leading=e,ft.maxWait=+t,ft.trailing=u,or(n,t,ft)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Ar(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Mr?Ce.unindexedChars&&yr(n)?n.split(""):zt(n):br(n)
|
||||
},o.transform=function(n,t,r,e){var u=Re(n);if(null==r)if(u)r=[];else{var a=n&&n.constructor;r=d(a&&a.prototype)}return t&&(t=o.createCallback(t,e,4),(u?pt:_t)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return kt(gt(arguments,true,true))},o.uniq=qt,o.values=br,o.valuesIn=function(n){return Ot(n,mr)},o.where=Xt,o.without=function(){return st(arguments[0],zt(arguments,1))},o.wrap=function(n,t){return It(t,O,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Re(r)||cr(r))var e=e?st(e,r).concat(st(r,e)):r}return e?kt(e):[]},o.zip=Ut,o.zipObject=Kt,o.callback=xr,o.collect=Jt,o.each=Gt,o.eachRight=Ht,o.extend=ir,o.methods=fr,o.object=Kt,o.select=Xt,o.tail=Dt,o.unique=qt,o.unzip=Ut,kr(ir({},o)),o.camelCase=Le,o.capitalize=function(n){return null==n?"":(n=Pr(n),n.charAt(0).toUpperCase()+n.slice(1))},o.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&U(r,e,1),m(n,t,r)
|
||||
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),m(n,true,t)},o.contains=Vt,o.endsWith=function(n,t,r){n=null==n?"":Pr(n),t=Pr(t);var e=n.length;return r=(typeof r=="number"?ge(he(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":Pr(n).replace(W,s)},o.escapeRegExp=_r,o.every=Zt,o.find=Yt,o.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1},o.findKey=function(n,t,r){var e;
|
||||
return t=o.createCallback(t,r,3),_t(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e},o.findLast=function(n,t,r){var e;return t=o.createCallback(t,r,3),ht(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e},o.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},o.findLastKey=function(n,t,r){var e;return t=o.createCallback(t,r,3),wt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e},o.has=function(n,t){return n?Qr.call(n,t):false
|
||||
},o.identity=Cr,o.indexOf=Ft,o.isArguments=cr,o.isArray=Re,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Vr.call(n)==nt||false},o.isDate=function(n){return n&&typeof n=="object"&&Vr.call(n)==tt||false},o.isElement=sr,o.isEmpty=function(n){var t=true;if(!n)return t;var r=Vr.call(n),e=n.length;return r==Q||r==it||(Ce.argsClass?r==J:cr(n))||r==ot&&typeof e=="number"&&pr(n.splice)?!e:(_t(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;
|
||||
e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return xt(n,t,r)},o.isFinite=function(n){return ce(n)&&!se(parseFloat(n))},o.isFunction=pr,o.isNaN=function(n){return gr(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=gr,o.isObject=hr,o.isPlainObject=Ne,o.isRegExp=vr,o.isString=yr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=We,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?he(0,e+r):ge(r,e-1))+1);e--;)if(n[e]===t)return e;
|
||||
return-1},o.mixin=kr,o.noConflict=function(){return t._=Kr,this},o.noop=Or,o.now=ze,o.pad=function(n,t,r){n=null==n?"":Pr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Gr(e),e=Xr(e),r=St("",e,r),r.slice(0,t)+n+r):n},o.padLeft=function(n,t,r){return n=null==n?"":Pr(n),St(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":Pr(n),n+St(n,t,r)},o.parseInt=Be,o.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=me(),ge(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):jt(n,t)
|
||||
},o.reduce=nr,o.reduceRight=tr,o.repeat=wr,o.result=function(n,t,r){var e=null==n?w:n[t];return typeof e=="undefined"?r:pr(e)?n[t]():e},o.runInContext=_,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Mr?t:Te(n).length},o.some=er,o.sortedIndex=Bt,o.snakeCase=Fe,o.startsWith=function(n,t,r){return n=null==n?"":Pr(n),r=typeof r=="number"?ge(he(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=lr({},r,e),n=Pr(null==n?"":n);var u,a,i=lr({},r.imports,e.imports),e=Te(i),i=br(i),l=0,f=r.interpolate||K,c="__p+='",f=Fr((r.escape||K).source+"|"+f.source+"|"+(f===$?D:K).source+"|"+(r.evaluate||K).source+"|$","g");
|
||||
n.replace(f,function(t,r,e,o,i,f){return e||(e=o),c+=n.slice(l,f).replace(Z,p),r&&(u=true,c+="'+__e("+r+")+'"),i&&(a=true,c+="';"+i+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(a?c.replace(R,""):c).replace(N,"$1").replace(T,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(a?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var s=Nr(e,"return "+c).apply(w,i)
|
||||
}catch(h){throw h.source=c,h}return t?s(t):(s.source=c,s)},o.trim=Pe,o.trimLeft=$e,o.trimRight=De,o.truncate=function(n,t){var r=30,e="...";if(t&&hr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Pr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":Pr(n),r>=n.length)return n;var o=r-e.length;if(1>o)return e;if(r=n.slice(0,o),null==u)return r+e;if(vr(u)){if(n.slice(o).search(u)){var a,i,l=n.slice(0,o);for(u.global||(u=Fr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;a=u.exec(l);)i=a.index;
|
||||
r=r.slice(0,null==i?o:i)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=Pr(n),0>n.indexOf(";")?n:n.replace(L,b))},o.uniqueId=function(n){var t=++I;return Pr(null==n?"":n)+t},o.all=Zt,o.any=er,o.detect=Yt,o.findWhere=Yt,o.foldl=nr,o.foldr=tr,o.include=Vt,o.inject=nr,kr(function(){var n={};return _t(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Wt,o.last=$t,o.sample=function(n,t,r){return n&&typeof n.length!="number"?n=br(n):Ce.unindexedChars&&yr(n)&&(n=n.split("")),null==t||r?(t=n?n.length:0,0<t?n[jt(0,t-1)]:w):(n=rr(n),n.length=ge(he(0,t),n.length),n)
|
||||
},o.take=Wt,o.takeRight=$t,o.takeRightWhile=$t,o.takeWhile=Wt,o.head=Wt,_t(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new a(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return Pr(this.__wrapped__)},o.prototype.value=Mt,o.prototype.valueOf=Mt,pt(["join","pop","shift"],function(n){var t=Dr[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new a(r,n):r}}),pt(["push","reverse","sort","unshift"],function(n){var t=Dr[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),pt(["concat","splice"],function(n){var t=Dr[n];o.prototype[n]=function(){return new a(t.apply(this.__wrapped__,arguments),this.__chain__)}}),Ce.spliceObjects||pt(["pop","shift","splice"],function(n){var t=Dr[n],r="splice"==n;o.prototype[n]=function(){var n=this.__chain__,e=this.__wrapped__,u=t.apply(e,arguments);return 0===e.length&&delete e[0],n||r?new a(u,n):u
|
||||
}}),o}var w,x=1,C=2,j=4,k=8,O=16,E=32,A="2.4.1",S="__lodash@"+A+"__",I=0,R=/\b__p\+='';/g,N=/\b(__p\+=)''\+/g,T=/(__e\(.*?\)|\b__t\))\+'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,F=/<%-([\s\S]+?)%>/g,P=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,B=/^\s*function[ \n\r\t]+\w/,q=/^0[xX]/,U=/[\xC0-\xFF]/g,K=/($^)/,M=/[.*+?^${}()|[\]\\]/g,V=/\bthis\b/,Z=/['\n\r\t\u2028\u2029\\]/g,X=/[A-Z]{2,}|[a-zA-Z0-9][a-z0-9]*/g,Y=" \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",G="Array Boolean Date Error Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),H="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),J="[object Arguments]",Q="[object Array]",nt="[object Boolean]",tt="[object Date]",rt="[object Error]",et="[object Function]",ut="[object Number]",ot="[object Object]",at="[object RegExp]",it="[object String]",lt={};
|
||||
lt[et]=false,lt[J]=lt[Q]=lt[nt]=lt[tt]=lt[ut]=lt[ot]=lt[at]=lt[it]=true;var ft={leading:false,maxWait:0,trailing:false},ct={configurable:false,enumerable:false,value:null,writable:false},st={"&":"&","<":"<",">":">",'"':""","'":"'"},pt={"&":"&","<":"<",">":">",""":'"',"'":"'"},ht={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},gt={"function":true,object:true},vt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},yt=gt[typeof window]&&window||this,mt=gt[typeof exports]&&exports&&!exports.nodeType&&exports,gt=gt[typeof module]&&module&&!module.nodeType&&module,dt=mt&>&&typeof global=="object"&&global;
|
||||
!dt||dt.global!==dt&&dt.window!==dt&&dt.self!==dt||(yt=dt);var dt=gt&>.exports===mt&&mt,bt=_();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(yt._=bt, define(function(){return bt})):mt&>?dt?(gt.exports=bt)._=bt:mt._=bt:yt._=bt}).call(this);
|
||||
129
dist/lodash.js
vendored
129
dist/lodash.js
vendored
@@ -595,7 +595,11 @@
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
var oldDash = context._;
|
||||
|
||||
/** Used as the maximum value returned by `toLength` */
|
||||
/**
|
||||
* Used as the maximum length an array-like object.
|
||||
* See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*/
|
||||
var maxSafeInteger = Math.pow(2, 53) - 1;
|
||||
|
||||
/** Used to resolve the internal [[Class]] of values */
|
||||
@@ -1187,8 +1191,7 @@
|
||||
iterable = collection,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
length = toLength(length);
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (callback(iterable[index], index, collection) === false) {
|
||||
break;
|
||||
@@ -1213,8 +1216,7 @@
|
||||
var iterable = collection,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
length = toLength(length);
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (length--) {
|
||||
if (callback(iterable[length], length, collection) === false) {
|
||||
break;
|
||||
@@ -1761,9 +1763,9 @@
|
||||
callback = lodash.createCallback(callback, thisArg, 3);
|
||||
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
setter(result, value, callback(value, index, collection), collection);
|
||||
@@ -2011,20 +2013,6 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts `value` to an integer suitable for use as the length of an array-like
|
||||
* object. See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to convert.
|
||||
* @returns {number} Returns the converted integer.
|
||||
*/
|
||||
function toLength(value) {
|
||||
var result = +value || 0;
|
||||
return result < 0 ? 0 : (result < maxSafeInteger ? result : maxSafeInteger);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
@@ -3376,10 +3364,10 @@
|
||||
* // => true
|
||||
*/
|
||||
function contains(collection, target, fromIndex) {
|
||||
var length = toLength(collection && collection.length);
|
||||
var length = collection ? collection.length : 0;
|
||||
fromIndex = (typeof fromIndex == 'number' && +fromIndex) || 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
if (typeof collection == 'string' || !isArray(collection) && isString(collection)) {
|
||||
if (fromIndex >= length) {
|
||||
return false;
|
||||
@@ -3488,9 +3476,9 @@
|
||||
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (!predicate(collection[index], index, collection)) {
|
||||
return false;
|
||||
@@ -3549,9 +3537,9 @@
|
||||
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (predicate(value, index, collection)) {
|
||||
@@ -3612,13 +3600,27 @@
|
||||
* // => { 'name': 'fred', 'age': 40, 'blocked': true }
|
||||
*/
|
||||
function find(collection, predicate, thisArg) {
|
||||
var length = toLength(collection && collection.length);
|
||||
if (length) {
|
||||
var index = findIndex(collection, predicate, thisArg);
|
||||
return index > -1 ? collection[index] : undefined;
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (predicate(value, index, collection)) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var result;
|
||||
baseEach(collection, function(value, index, collection) {
|
||||
if (predicate(value, index, collection)) {
|
||||
result = value;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
var key = findKey(collection, predicate, thisArg);
|
||||
return typeof key == 'string' ? collection[key] : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3642,13 +3644,16 @@
|
||||
* // => 3
|
||||
*/
|
||||
function findLast(collection, predicate, thisArg) {
|
||||
var length = toLength(collection && collection.length);
|
||||
if (length) {
|
||||
var index = findLastIndex(collection, predicate, thisArg);
|
||||
return index > -1 ? collection[index] : undefined;
|
||||
}
|
||||
var key = findLastKey(collection, predicate, thisArg);
|
||||
return typeof key == 'string' ? collection[key] : undefined;
|
||||
var result;
|
||||
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
baseEachRight(collection, function(value, index, collection) {
|
||||
if (predicate(value, index, collection)) {
|
||||
result = value;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3679,10 +3684,10 @@
|
||||
*/
|
||||
function forEach(collection, callback, thisArg) {
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (callback(collection[index], index, collection) === false) {
|
||||
break;
|
||||
@@ -3712,10 +3717,10 @@
|
||||
* // => logs each number from right to left and returns '3,2,1'
|
||||
*/
|
||||
function forEachRight(collection, callback, thisArg) {
|
||||
var length = toLength(collection && collection.length);
|
||||
var length = collection ? collection.length : 0;
|
||||
|
||||
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (length--) {
|
||||
if (callback(collection[length], length, collection) === false) {
|
||||
break;
|
||||
@@ -3843,7 +3848,8 @@
|
||||
result = Array(length < 0 ? 0 : length >>> 0);
|
||||
|
||||
baseEach(collection, function(value) {
|
||||
result[++index] = (isFunc ? methodName : value[methodName]).apply(value, args);
|
||||
var func = isFunc ? methodName : (value != null && value[methodName]);
|
||||
result[++index] = func ? func.apply(value, args) : undefined;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
@@ -3889,10 +3895,10 @@
|
||||
*/
|
||||
function map(collection, callback, thisArg) {
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
callback = lodash.createCallback(callback, thisArg, 3);
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
var result = Array(length);
|
||||
while (++index < length) {
|
||||
result[index] = callback(collection[index], index, collection);
|
||||
@@ -4161,9 +4167,9 @@
|
||||
callback = lodash.createCallback(callback, thisArg, 4);
|
||||
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
if (noaccum && length) {
|
||||
accumulator = collection[++index];
|
||||
}
|
||||
@@ -4277,7 +4283,7 @@
|
||||
collection = values(collection);
|
||||
}
|
||||
if (n == null || guard) {
|
||||
var length = toLength(collection && collection.length);
|
||||
var length = collection ? collection.length : 0;
|
||||
return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
|
||||
}
|
||||
var result = shuffle(collection);
|
||||
@@ -4336,7 +4342,9 @@
|
||||
*/
|
||||
function size(collection) {
|
||||
var length = collection ? collection.length : 0;
|
||||
return typeof length == 'number' && length > -1 ? length : keys(collection).length;
|
||||
return (typeof length == 'number' && length > -1 && length <= maxSafeInteger)
|
||||
? length
|
||||
: keys(collection).length;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4386,9 +4394,9 @@
|
||||
|
||||
predicate = lodash.createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (predicate(collection[index], index, collection)) {
|
||||
return true;
|
||||
@@ -4497,7 +4505,7 @@
|
||||
*/
|
||||
function toArray(collection) {
|
||||
var length = collection && collection.length;
|
||||
if (typeof length == 'number' && length > -1) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
return slice(collection);
|
||||
}
|
||||
return values(collection);
|
||||
@@ -5254,11 +5262,11 @@
|
||||
* // => { 'name': 'barney', 'employer': 'slate' }
|
||||
*/
|
||||
function assign(object, source, guard) {
|
||||
if (!object) {
|
||||
var args = arguments;
|
||||
if (!object || args.length < 2) {
|
||||
return object;
|
||||
}
|
||||
var args = arguments,
|
||||
argsIndex = 0,
|
||||
var argsIndex = 0,
|
||||
argsLength = args.length,
|
||||
type = typeof guard;
|
||||
|
||||
@@ -5450,7 +5458,10 @@
|
||||
* _.defaults({ 'name': 'barney' }, { 'name': 'fred', 'employer': 'slate' });
|
||||
* // => { 'name': 'barney', 'employer': 'slate' }
|
||||
*/
|
||||
function defaults() {
|
||||
function defaults(object) {
|
||||
if (!object || arguments.length < 2) {
|
||||
return object;
|
||||
}
|
||||
var args = slice(arguments);
|
||||
args.push(assignDefaults);
|
||||
return assign.apply(null, args);
|
||||
@@ -7670,7 +7681,7 @@
|
||||
*/
|
||||
function property(key) {
|
||||
return function(object) {
|
||||
return object[key];
|
||||
return object == null ? undefined : object[key];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
112
dist/lodash.min.js
vendored
112
dist/lodash.min.js
vendored
@@ -4,61 +4,61 @@
|
||||
* Build: `lodash modern -o ./dist/lodash.js`
|
||||
*/
|
||||
;(function(){function n(n,t){return typeof n=="undefined"?t:n}function t(n,t){if(n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return 0}function r(n,t,r){r=(+r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function e(n,t){return n.has(t)?0:-1}function u(n){return n.charCodeAt(0)}function o(n,t){for(var r=-1,e=n.length;++r<e&&0<=t.indexOf(n.charAt(r)););return r}function i(n,t){for(var r=n.length;r--&&0<=t.indexOf(n.charAt(r)););return r}function a(n,r){return t(n.a,r.a)||n.b-r.b
|
||||
}function l(n,r){for(var e=n.a,u=r.a,o=-1,i=e.length;++o<i;){var a=t(e[o],u[o]);if(a)return a}return n.b-r.b}function f(n){return function(t){for(var r=-1,e=(t=null!=t&&(t+"").replace(U,c).match(Z))?t.length:0,u="";++r<e;)u=n(u,t[r],r,t);return u}}function c(n){return ct[n]}function p(n){return lt[n]}function s(n){return"\\"+st[n]}function h(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n),m(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n)):(t+="",n.slice(o(n,t))):n
|
||||
}function f(n,r){for(var e=n.a,u=r.a,o=-1,i=e.length;++o<i;){var a=t(e[o],u[o]);if(a)return a}return n.b-r.b}function l(n){return function(t){for(var r=-1,e=(t=null!=t&&(t+"").replace(U,c).match(Z))?t.length:0,u="";++r<e;)u=n(u,t[r],r,t);return u}}function c(n){return ct[n]}function p(n){return ft[n]}function s(n){return"\\"+st[n]}function h(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n),m(n)+1):(t+="",n.slice(o(n,t),i(n,t)+1)):n}function g(n,t){return(n=null==n?"":n+"")?null==t?n.slice(y(n)):(t+="",n.slice(o(n,t))):n
|
||||
}function v(n,t){return(n=null==n?"":n+"")?null==t?n.slice(0,m(n)+1):(t+="",n.slice(0,i(n,t)+1)):n}function y(n){for(var t=-1,r=n.length;++t<r;){var e=n.charCodeAt(t);if((160<e||9>e||13<e)&&32!=e&&160!=e&&5760!=e&&6158!=e&&(8192>e||8202<e&&8232!=e&&8233!=e&&8239!=e&&8287!=e&&12288!=e&&65279!=e))break}return t}function m(n){for(var t=n.length;t--;){var r=n.charCodeAt(t);if((160<r||9>r||13<r)&&32!=r&&160!=r&&5760!=r&&6158!=r&&(8192>r||8202<r&&8232!=r&&8233!=r&&8239!=r&&8287!=r&&12288!=r&&65279!=r))break
|
||||
}return t}function d(n){return ft[n]}function b(t){function o(n){return n&&typeof n=="object"&&!Re(n)&&Qr.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,i=arguments.length,a=Rr(i);++n<i;)a[n]=arguments[n];a=kt(u,o,a)}return this instanceof t?(n=m(r.prototype),a=r.apply(n,a||arguments),vr(a)?a:n):r.apply(e,a||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];return ke(t,n),t}function y(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o
|
||||
}if(!vr(n))return n;var i=Vr.call(n);if(!ot[i])return n;var a=_e[i];switch(i){case J:case Q:return new a(+n);case tt:case ut:return new a(n);case et:return o=a(n.source,z.exec(n)),o.lastIndex=n.lastIndex,o}if(i=Re(n),t){e||(e=[]),u||(u=[]);for(var l=e.length;l--;)if(e[l]==n)return u[l];o=i?a(n.length):{}}else o=i?Bt(n):ar({},n);return i&&(Qr.call(n,"index")&&(o.index=n.index),Qr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(i?ft:mt)(n,function(n,i){o[i]=y(n,t,r,e,u)}),o):o}function m(n){return vr(n)?ae(n):{}
|
||||
}function U(n,t,r){if(typeof n!="function")return Cr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[I];if(typeof e=="undefined"&&(we.funcNames&&(e=!n.name),e=e||!we.funcDecomp,!e)){var u=Hr.call(n);we.funcNames||(e=!B.test(u)),e||(e=M.test(u),ke(n,e))}if(false===e||true!==e&&e[1]&w)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)
|
||||
}}return ur(n,t)}function Z(n){function t(){for(var n=-1,v=arguments.length,y=Rr(v);++n<v;)y[n]=arguments[n];if(i&&(y=kt(i,l,y)),a){for(var n=a,d=f,b=-1,_=d.length,j=-1,k=se(y.length-_,0),A=-1,I=n.length,E=Rr(k+I);++j<k;)E[j]=y[j];for(k=j;++A<I;)E[k+A]=n[A];for(;++b<_;)E[k+d[b]]=y[j++];y=E}return s&&v<u?(e|=C,e&=~O,h||(e&=~(w|x)),v=se(0,u-v),Z([r,e,v,o,y,null,[]])):(v=c?o:this,p&&(r=v[g]),this instanceof t?(v=m(r.prototype),n=r.apply(v,y),vr(n)?n:v):r.apply(v,y))}var r=n[0],e=n[1],u=n[2],o=n[3],i=n[4],a=n[5],l=n[6],f=n[7],c=e&w,p=e&x,s=e&j,h=e&k,g=r;
|
||||
return ke(t,n),t}function lt(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=It(),a=i===r,l=a&&je&&t&&200<=t.length,a=a&&!l,f=[],c=t?t.length:0;l&&(i=e,t=je(t));n:for(;++o<u;)if(l=n[o],a){for(var p=c;p--;)if(t[p]===l)continue n;f.push(l)}else 0>i(t,l)&&f.push(l);return f}function ft(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(e=St(e);++r<e&&false!==t(n[r],r,n););else mt(n,t);return n}function ct(n,t){var r=n?n.length:0;if(typeof r=="number")for(r=St(r);r--&&false!==t(n[r],r,n););else dt(n,t)
|
||||
}function pt(n,t,r,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var i=n[e];if(i&&typeof i=="object"&&typeof i.length=="number"&&(Re(i)||sr(i))){t||(i=pt(i,t,r));var a=-1,l=i.length,f=o.length;for(o.length+=l;++a<l;)o[f++]=i[a]}else r||o.push(i)}return o}function st(n,t,r){var e=-1;r=r(n);for(var u=r.length;++e<u;){var o=r[e];if(false===t(n[o],o,n))break}return n}function gt(n,t,r){r=r(n);for(var e=r.length;e--;){var u=r[e];if(false===t(n[u],u,n))break}return n}function vt(n,t){st(n,t,br)}function mt(n,t){return st(n,t,Se)
|
||||
}function dt(n,t){gt(n,t,Se)}function bt(n,t,r,e,u,o){if(r){var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,l=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=l&&"object"!=l))return false;if(l=Vr.call(n),a=Vr.call(t),l==G&&(l=rt),a==G&&(a=rt),l!=a)return false;switch(l){case J:case Q:return+n==+t;case tt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case et:case ut:return n==Lr(t)}if(a=l==H,!a){var f=Qr.call(n,"__wrapped__"),c=Qr.call(t,"__wrapped__");
|
||||
if(f||c)return bt(f?n.__wrapped__:n,c?t.__wrapped__:t,r,e,u,o);if(l!=rt)return false;if(l=n.constructor,f=t.constructor,l!=f&&!(Qr.call(n,"constructor")&&Qr.call(t,"constructor")||gr(l)&&l instanceof l&&gr(f)&&f instanceof f)&&"constructor"in n&&"constructor"in t)return false}for(u||(u=[]),o||(o=[]),l=u.length;l--;)if(u[l]==n)return o[l]==t;var p=0,i=true;if(u.push(n),o.push(t),a){if(l=n.length,p=t.length,(i=p==l)||e)for(;p--;)if(a=l,f=t[p],e)for(;a--&&!(i=bt(n[a],f,r,e,u,o)););else if(!(i=bt(n[p],f,r,e,u,o)))break
|
||||
}else vt(t,function(t,a,l){return Qr.call(l,a)?(p++,i=Qr.call(n,a)&&bt(n[a],t,r,e,u,o)):void 0}),i&&!e&&vt(n,function(n,t,r){return Qr.call(r,t)?i=-1<--p:void 0});return u.pop(),o.pop(),i}function _t(n,t,r,e,u){(Re(t)?ft:mt)(t,function(t,o){var i,a,l=t,f=n[o];if(t&&((a=Re(t))||Ne(t))){for(l=e.length;l--;)if(i=e[l]==t){f=u[l];break}if(!i){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=a?Re(f)?f:[]:Ne(f)?f:{}),e.push(t),u.push(f),c||_t(f,t,r,e,u)}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);
|
||||
n[o]=f})}function wt(n,t){return n+Gr(ye()*(t-n+1))}function xt(n,t,u){var o=n?n.length:0;if(!o)return[];var i=-1,a=It(),l=!t&&a===r,f=l&&je&&200<=o,l=l&&!f,c=[];if(f)var p=je(),a=e;else p=u&&!t?[]:c;n:for(;++i<o;){var s=n[i],h=u?u(s,i,n):s;if(l){for(var g=p.length;g--;)if(p[g]===h)continue n;u&&p.push(h),c.push(s)}else t?i&&p===h||(p=h,c.push(s)):0>a(p,h)&&((u||f)&&p.push(h),c.push(s))}return c}function jt(n,t){for(var r=-1,e=t(n),u=e.length,o=Rr(u);++r<u;)o[r]=n[e[r]];return o}function kt(n,t,r){for(var e=t.length,u=-1,o=se(r.length-e,0),i=-1,a=n.length,l=Rr(o+a);++i<a;)l[i]=n[i];
|
||||
for(;++u<e;)l[t[u]]=r[u];for(;o--;)l[i++]=r[u++];return l}function Ct(n,t){return function(r,e,u){var i=t?[[],[]]:{};e=o.createCallback(e,u,3),u=-1;var a=St(r&&r.length);if(a)for(;++u<a;){var l=r[u];n(i,l,e(l,u,r),r)}else ft(r,function(t,r,u){n(i,t,e(t,r,u),u)});return i}}function Ot(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":Lr(r),jr(r,Xr(t/r.length)).slice(0,t)):""}function At(n,t,r,e,u,o,i,a){var l=t&w,f=t&x,p=t&C,s=t&O;if(!f&&!gr(n))throw new zr;p&&!u.length&&(t&=~C,p=u=false),s&&!o.length&&(t&=~O,s=o=false);
|
||||
var h=!f&&n[I];return h&&true!==h?(h=Bt(h),h[4]&&(h[4]=Bt(h[4])),h[5]&&(h[5]=Bt(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&w,l&&!n&&(h[3]=e),!l&&n&&(t|=k),p&&(h[4]?ne.apply(h[4],u):h[4]=u),s&&(h[5]?ue.apply(h[5],o):h[5]=o),h[1]|=t,At.apply(null,h)):(null==r?r=f?0:n.length:0>r&&(r=0),p&&(i=[]),s&&(a=[]),h=[n,t,r,e,u,o,i,a],t==w||t==(w|C)?c(h):Z(h))}function It(){var n=(n=o.indexOf)===$t?r:n;return n}function Et(n){return typeof n=="function"&&Zr.test(Hr.call(n))}function Rt(n){var t,r;return n&&Vr.call(n)==rt&&(Qr.call(n,"constructor")||(t=n.constructor,!gr(t)||t instanceof t))?(vt(n,function(n,t){r=t
|
||||
}),typeof r=="undefined"||Qr.call(n,r)):false}function Nt(n){for(var t=-1,r=br(n),e=r.length,u=[];++t<e;){var o=r[t];Qr.call(n,o)&&u.push(o)}return u}function St(n){return n=+n||0,0>n?0:n<Mr?n:Mr}function Tt(n,t,r){var e=-1,u=n?n.length:0;for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1}function Wt(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1}function Ft(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++
|
||||
}else if(i=t,null==i||r)return n?n[0]:_;return Bt(n,0,0>i?0:i)}function $t(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?se(0,u+e):e||0;else if(e)return e=qt(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function Dt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else i=null==t||r?1:t;return i=e-i,Bt(n,0,0>i?0:i)}function Lt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++
|
||||
}else if(i=t,null==i||r)return n?n[e-1]:_;return i=e-i,Bt(n,0>i?0:i)}function zt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else i=null==t||r?1:0>t?0:t;return Bt(n,i)}function Bt(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=se(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=se(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=Rr(u);++e<u;)r[e]=n[t+e];return r}function qt(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?o.createCallback(r,e,1):Cr,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;
|
||||
return u}function Ut(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(r=o.createCallback(r,e,3)),xt(n,t,r)}function Pt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Qt(Ee(n,"length")):0,e=Rr(0>r?0:r);++t<r;)e[t]=Ee(n,t);return e}function Kt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||Re(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Mt(){return this.__wrapped__
|
||||
}function Vt(n,t,r){var e=St(n&&n.length);if(r=typeof r=="number"&&+r||0,e){if(typeof n=="string"||!Re(n)&&dr(n))return r<e?ie?ie.call(n,t,r):-1<n.indexOf(t,r):false;var u=It();return r=0>r?se(0,e+r):r,-1<u(n,t,r)}var o=-1,i=false;return ft(n,function(n){return++o<r?void 0:!(i=n===t)}),i}function Zt(n,t,r){var e=true;t=o.createCallback(t,r,3),r=-1;var u=St(n&&n.length);if(u){for(;++r<u;)if(!t(n[r],r,n))return false}else ft(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Xt(n,t,r){var e=[];t=o.createCallback(t,r,3),r=-1;
|
||||
var u=St(n&&n.length);if(u)for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else ft(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Yt(n,t,r){return St(n&&n.length)?(t=Tt(n,t,r),-1<t?n[t]:_):(t=fr(n,t,r),typeof t=="string"?n[t]:_)}function Gt(n,t,r){var e=-1,u=St(n&&n.length);if(t=t&&typeof r=="undefined"?t:U(t,r,3),u)for(;++e<u&&false!==t(n[e],e,n););else ft(n,t);return n}function Ht(n,t,r){var e=St(n&&n.length);if(t=t&&typeof r=="undefined"?t:U(t,r,3),e)for(;e--&&false!==t(n[e],e,n););else ct(n,t);
|
||||
return n}function Jt(n,t,r){var e=-1,u=St(n&&n.length);if(t=o.createCallback(t,r,3),u)for(var i=Rr(u);++e<u;)i[e]=t(n[e],e,n);else i=[],ft(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function Qt(n,t,r){var e=-1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&Re(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l>i&&(i=l)}else t=null==t&&dr(n)?u:o.createCallback(t,r,3),ft(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,i=n)});return i}function nr(n,t,r,e){var u=3>arguments.length;t=o.createCallback(t,e,4);
|
||||
var i=-1,a=St(n&&n.length);if(a)for(u&&a&&(r=n[++i]);++i<a;)r=t(r,n[i],i,n);else ft(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function tr(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ct(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function rr(n){var t=-1,r=n&&n.length,e=Rr(0>r?0:r>>>0);return ft(n,function(n){var r=wt(0,++t);e[t]=e[r],e[r]=n}),e}function er(n,t,r){var e;t=o.createCallback(t,r,3),r=-1;var u=St(n&&n.length);if(u){for(;++r<u;)if(t(n[r],r,n))return true
|
||||
}else ft(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function ur(n,t){if(3>arguments.length)return At(n,w,null,t);if(n)var r=n[I]?n[I][2]:n.length,e=Bt(arguments,2),r=r-e.length;return At(n,w|C,r,t,e)}function or(n,t,r){function e(){c&&Yr(c),i=c=p=_,(g||h!==t)&&(s=ze(),a=n.apply(f,o),c||i||(o=f=null))}function u(){var r=t-(ze()-l);0>=r||r>t?(i&&Yr(i),r=p,i=c=p=_,r&&(s=ze(),a=n.apply(f,o),c||i||(o=f=null))):c=re(u,r)}var o,i,a,l,f,c,p,s=0,h=false,g=true;if(!gr(n))throw new zr;if(t=0>t?0:t,true===r)var v=true,g=false;
|
||||
else vr(r)&&(v=r.leading,h="maxWait"in r&&(se(t,r.maxWait)||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,l=ze(),f=this,p=g&&(c||!v),false===h)var r=v&&!c;else{i||v||(s=l);var y=h-(l-s),m=0>=y||y>h;m?(i&&(i=Yr(i)),s=l,a=n.apply(f,o)):i||(i=re(e,y))}return m&&c?c=Yr(c):c||t===h||(c=re(u,t)),r&&(m=true,a=n.apply(f,o)),!m||c||i||(o=f=null),a}}function ir(n){if(!gr(n))throw new zr;return function(){return!n.apply(this,arguments)}}function ar(n,t,r){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof r;
|
||||
if("number"!=i&&"string"!=i||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var a=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(a=e[--o]);for(;++u<o;){t=e[u];for(var i=-1,l=Se(t),f=l.length;++i<f;){var c=l[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function lr(){var t=Bt(arguments);return t.push(n),ar.apply(null,t)}function fr(n,t,r){var e;return t=o.createCallback(t,r,3),mt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e}function cr(n,t,r){var e;return t=o.createCallback(t,r,3),dt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0
|
||||
}),e}function pr(n){var t=[];return vt(n,function(n,r){gr(n)&&t.push(r)}),t.sort()}function sr(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Vr.call(n)==G||false}function hr(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<Vr.call(n).indexOf("Element")||false}function gr(n){return typeof n=="function"}function vr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function yr(n){var t=typeof n;return"number"==t||n&&"object"==t&&Vr.call(n)==tt||false}function mr(n){return n&&typeof n=="object"&&Vr.call(n)==et||false
|
||||
}function dr(n){return typeof n=="string"||n&&typeof n=="object"&&Vr.call(n)==ut||false}function br(n){var t=[];if(!vr(n))return t;for(var r in n)t.push(r);return t}function _r(n,t,r){var e={};if(typeof t!="function")for(var u=-1,i=pt(arguments,true,false,1),a=vr(n)?i.length:0;++u<a;){var l=i[u];l in n&&(e[l]=n[l])}else t=o.createCallback(t,r,3),vt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e}function wr(n){return jt(n,Se)}function xr(n){return null==n?"":Lr(n).replace(K,"\\$&")}function jr(n,t){var r="";
|
||||
if(t|=0,1>t||null==n)return r;n=Lr(n);do t%2&&(r+=n),t=Gr(t/2),n+=n;while(t);return r}function kr(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?Er(n):Or(n)}function Cr(n){return n}function Or(n){n||(n={});var t=Se(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||vr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=Qr.call(e,o)&&bt(e[o],n[o],null,true)););return o}:function(n){return Qr.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false
|
||||
}}function Ar(n,t,r){var e=true,u=t&&pr(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=pr(t)),false===r?e=false:vr(r)&&"chain"in r&&(e=r.chain),r=-1;for(var i=gr(n),a=u?u.length:0;++r<a;){var l=u[r],f=n[l]=t[l];i&&(n.prototype[l]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];if(ne.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&vr(o))return this;o=new n(o),o.__chain__=r}return o}}(f))}}function Ir(){}function Er(n){return function(t){return t[n]}}t=t?yt.defaults(ht.Object(),t,yt.pick(ht,Y)):ht;
|
||||
var Rr=t.Array,Nr=t.Boolean,Sr=t.Date,Tr=t.Function,Wr=t.Math,Fr=t.Number,$r=t.Object,Dr=t.RegExp,Lr=t.String,zr=t.TypeError,Br=Rr.prototype,qr=$r.prototype,Ur=Lr.prototype,Pr=(Pr=t.window)&&Pr.document,Kr=t._,Mr=Wr.pow(2,53)-1,Vr=qr.toString,Zr=Dr("^"+xr(Vr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xr=Wr.ceil,Yr=t.clearTimeout,Gr=Wr.floor,Hr=Tr.prototype.toString,Jr=Et(Jr=$r.getPrototypeOf)&&Jr,Qr=qr.hasOwnProperty,ne=Br.push,te=Et(te=t.Set)&&te,re=t.setTimeout,ee=Br.splice,ue=Br.unshift,oe=function(){try{var n={},t=Et(t=$r.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),ie=Et(ie=Ur.contains)&&ie,ae=Et(ae=$r.create)&&ae,le=Et(le=Rr.isArray)&&le,fe=t.isFinite,ce=t.isNaN,pe=Et(pe=$r.keys)&&pe,se=Wr.max,he=Wr.min,ge=Et(ge=Sr.now)&&ge,ve=t.parseInt,ye=Wr.random,me=Et(me=Ur.trim)&&!me.call(X)&&me,de=Et(de=Ur.trimLeft)&&!de.call(X)&&de,be=Et(be=Ur.trimRight)&&!be.call(X)&&be,_e={};_e[H]=Rr,_e[J]=Nr,_e[Q]=Sr,_e[nt]=Tr,_e[rt]=$r,_e[tt]=Fr,_e[et]=Dr,_e[ut]=Lr,i.prototype=o.prototype;var we=o.support={};we.funcDecomp=!Et(t.WinRTError)&&M.test(b),we.funcNames=typeof Tr.name=="string";
|
||||
try{we.dom=11===Pr.createDocumentFragment().nodeType}catch(xe){we.dom=false}o.templateSettings={escape:F,evaluate:$,interpolate:D,variable:"",imports:{_:o}},ae||(m=function(){function n(){}return function(r){if(vr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var je=te&&function(n){var t=new te,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},ke=oe?function(n,t){at.value=t,oe(n,I,at)}:Ir,Ce=Ct(function(n,t,r){Qr.call(n,r)?n[r]++:n[r]=1}),Oe=Ct(function(n,t,r){Qr.call(n,r)?n[r].push(t):n[r]=[t]
|
||||
}),Ae=Ct(function(n,t,r){n[r]=t}),Ie=Ct(function(n,t,r){n[r?0:1].push(t)},true),Ee=Jt,Re=le||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Vr.call(n)==H||false};we.dom||(hr=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!Ne(n)||false});var Ne=Jr?function(n){if(!n||Vr.call(n)!=rt)return false;var t=n.valueOf,r=Et(t)&&(r=Jr(t))&&Jr(r);return r?n==r||Jr(n)==r:Rt(n)}:Rt,Se=pe?function(n){return vr(n)?pe(n):[]}:Nt,Te=f(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)
|
||||
}),We=f(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Fe=f(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),$e=me?function(n,t){return null==n?"":null==t?me.call(n):h(n,t)}:h,De=de?function(n,t){return null==n?"":null==t?de.call(n):g(n,t)}:g,Le=be?function(n,t){return null==n?"":null==t?be.call(n):v(n,t)}:v,ze=ge||function(){return(new Sr).getTime()},Be=8==ve(X+"08")?ve:function(n,t){return n=$e(n),ve(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!gr(t))throw new zr;return function(){return 1>--n?t.apply(this,arguments):void 0
|
||||
}},o.assign=ar,o.at=function(n,t){var r=arguments,e=-1,u=pt(r,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),r=Rr(o);++e<o;)r[e]=n[u[e]];return r},o.bind=ur,o.bindAll=function(n){for(var t=1<arguments.length?pt(arguments,true,false,1):pr(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=At(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?At(t,w|x,null,n):At(t,w|x|C,null,n,Bt(arguments,2))},o.chain=function(n){return n=new i(n),n.__chain__=true,n
|
||||
},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!gr(n[r]))throw new zr;return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=Ce,o.create=function(n,t){var r=m(n);return t?ar(r,t):r},o.createCallback=kr,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),At(n,j,t)
|
||||
},o.debounce=or,o.defaults=lr,o.defer=function(n){if(!gr(n))throw new zr;var t=Bt(arguments,1);return re(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!gr(n))throw new zr;var r=Bt(arguments,2);return re(function(){n.apply(_,r)},t)},o.difference=function(n){return lt(n,pt(arguments,true,true,1))},o.drop=zt,o.dropRight=Dt,o.dropRightWhile=Dt,o.dropWhile=zt,o.filter=Xt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=Jt(n,r,e)),pt(n,t)
|
||||
},o.forEach=Gt,o.forEachRight=Ht,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),st(n,t,br)},o.forInRight=function(n,t,r){return t=U(t,r,3),gt(n,t,br)},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),mt(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),gt(n,t,Se)},o.functions=pr,o.groupBy=Oe,o.indexBy=Ae,o.initial=Dt,o.intersection=function(n){if(!n)return[];for(var t=[],u=-1,o=arguments.length,i=[],a=It(),l=je&&a===r,f=[];++u<o;){var c=arguments[u];
|
||||
(Re(c)||sr(c))&&(t.push(c),i.push(l&&120<=c.length&&je(u?c:f)))}o=t.length,n=t[0];var l=-1,p=n?n.length:0,s=[];n:for(;++l<p;){var h=i[0],c=n[l];if(0>(h?e(h,c):a(f,c))){for(u=o,(h||f).push(c);--u;)if(h=i[u],0>(h?e(h,c):a(t[u],c)))continue n;s.push(c)}}return s},o.invert=function(n,t){for(var r=-1,e=Se(n),u=e.length,o={};++r<u;){var i=e[r],a=n[i];t?Qr.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var r=Bt(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,i=Rr(0>o?0:o>>>0);
|
||||
return ft(n,function(n){i[++e]=(u?t:n[t]).apply(n,r)}),i},o.keys=Se,o.keysIn=br,o.map=Jt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),mt(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=Or,o.max=Qt,o.memoize=function(n,t){function r(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return Qr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}if(!gr(n))throw new zr;return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var i=U(e[--u-1],e[u--],2);
|
||||
else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Bt(e,1,u),o=-1,a=[],l=[];++o<u;)_t(n,e[o],i,a,l);return n},o.min=function(n,t,r){var e=1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&Re(n))for(r=-1,a=n.length;++r<a;){var l=n[r];l<i&&(i=l)}else t=null==t&&dr(n)?u:o.createCallback(t,r,3),ft(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,i=n)});return i},o.negate=ir,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),_r(n,ir(t));for(var e=pt(arguments,true,false,1),u=e.length;u--;)e[u]=Lr(e[u]);
|
||||
return _r(n,lt(br(n),e))},o.once=function(n){var t,r;if(!gr(n))throw new zr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Se(n),e=r.length,u=Rr(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Bt(arguments,1),t=t-r.length;return At(n,C,t,null,r)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Bt(arguments,1),t=t-r.length;return At(n,O,t,null,null,r)},o.partition=Ie,o.pick=_r,o.pluck=Ee,o.property=Er,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(ee.call(n,u--,1),e--);
|
||||
return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=se(0,Xr((t-n)/(r||1)));for(var u=Rr(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Xt(n,ir(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,i=[];for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(i.push(r),ee.call(n,e--,1),u--);return i},o.rest=zt,o.shuffle=rr,o.slice=Bt,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,i=t&&Re(t),f=Rr(0>u?0:u>>>0);for(i||(t=o.createCallback(t,r,3)),ft(n,function(n,r,u){if(i)for(r=t.length,u=Rr(r);r--;)u[r]=n[t[r]];
|
||||
else u=t(n,r,u);f[++e]={a:u,b:e,c:n}}),u=f.length,f.sort(i?l:a);u--;)f[u]=f[u].c;return f},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!gr(n))throw new zr;return false===r?e=false:vr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),it.leading=e,it.maxWait=+t,it.trailing=u,or(n,t,it)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Rr(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t?Bt(n):wr(n)
|
||||
},o.transform=function(n,t,r,e){var u=Re(n);if(null==r)if(u)r=[];else{var i=n&&n.constructor;r=m(i&&i.prototype)}return t&&(t=o.createCallback(t,e,4),(u?ft:mt)(n,function(n,e,u){return t(r,n,e,u)})),r},o.union=function(){return xt(pt(arguments,true,true))},o.uniq=Ut,o.values=wr,o.valuesIn=function(n){return jt(n,br)},o.where=Xt,o.without=function(){return lt(arguments[0],Bt(arguments,1))},o.wrap=function(n,t){return At(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];
|
||||
if(Re(r)||sr(r))var e=e?lt(e,r).concat(lt(r,e)):r}return e?xt(e):[]},o.zip=Pt,o.zipObject=Kt,o.callback=kr,o.collect=Jt,o.each=Gt,o.eachRight=Ht,o.extend=ar,o.methods=pr,o.object=Kt,o.select=Xt,o.tail=zt,o.unique=Ut,o.unzip=Pt,Ar(ar({},o)),o.camelCase=Te,o.capitalize=function(n){return null==n?"":(n=Lr(n),n.charAt(0).toUpperCase()+n.slice(1))},o.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&U(r,e,1),y(n,t,r)
|
||||
},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),y(n,true,t)},o.contains=Vt,o.endsWith=function(n,t,r){n=null==n?"":Lr(n),t=Lr(t);var e=n.length;return r=(typeof r=="number"?he(se(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":Lr(n).replace(W,p)},o.escapeRegExp=xr,o.every=Zt,o.find=Yt,o.findIndex=Tt,o.findKey=fr,o.findLast=function(n,t,r){return St(n&&n.length)?(t=Wt(n,t,r),-1<t?n[t]:_):(t=cr(n,t,r),typeof t=="string"?n[t]:_)},o.findLastIndex=Wt,o.findLastKey=cr,o.has=function(n,t){return n?Qr.call(n,t):false
|
||||
},o.identity=Cr,o.indexOf=$t,o.isArguments=sr,o.isArray=Re,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Vr.call(n)==J||false},o.isDate=function(n){return n&&typeof n=="object"&&Vr.call(n)==Q||false},o.isElement=hr,o.isEmpty=function(n){var t=true;if(!n)return t;var r=Vr.call(n),e=n.length;return r==H||r==ut||r==G||r==rt&&typeof e=="number"&&gr(n.splice)?!e:(mt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;
|
||||
e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return bt(n,t,r)},o.isFinite=function(n){return fe(n)&&!ce(parseFloat(n))},o.isFunction=gr,o.isNaN=function(n){return yr(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=yr,o.isObject=vr,o.isPlainObject=Ne,o.isRegExp=mr,o.isString=dr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=We,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?se(0,e+r):he(r,e-1))+1);e--;)if(n[e]===t)return e;
|
||||
return-1},o.mixin=Ar,o.noConflict=function(){return t._=Kr,this},o.noop=Ir,o.now=ze,o.pad=function(n,t,r){n=null==n?"":Lr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Gr(e),e=Xr(e),r=Ot("",e,r),r.slice(0,t)+n+r):n},o.padLeft=function(n,t,r){return n=null==n?"":Lr(n),Ot(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":Lr(n),n+Ot(n,t,r)},o.parseInt=Be,o.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=ye(),he(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):wt(n,t)
|
||||
},o.reduce=nr,o.reduceRight=tr,o.repeat=jr,o.result=function(n,t,r){var e=null==n?_:n[t];return typeof e=="undefined"?r:gr(e)?n[t]():e},o.runInContext=b,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t?t:Se(n).length},o.some=er,o.sortedIndex=qt,o.snakeCase=Fe,o.startsWith=function(n,t,r){return n=null==n?"":Lr(n),r=typeof r=="number"?he(se(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=lr({},r,e),n=Lr(null==n?"":n);var u,i,a=lr({},r.imports,e.imports),e=Se(a),a=wr(a),l=0,f=r.interpolate||P,c="__p+='",f=Dr((r.escape||P).source+"|"+f.source+"|"+(f===D?L:P).source+"|"+(r.evaluate||P).source+"|$","g");
|
||||
n.replace(f,function(t,r,e,o,a,f){return e||(e=o),c+=n.slice(l,f).replace(V,s),r&&(u=true,c+="'+__e("+r+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),l=f+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(R,""):c).replace(N,"$1").replace(S,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var p=Tr(e,"return "+c).apply(_,a)
|
||||
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=$e,o.trimLeft=De,o.trimRight=Le,o.truncate=function(n,t){var r=30,e="...";if(t&&vr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Lr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":Lr(n),r>=n.length)return n;var o=r-e.length;if(1>o)return e;if(r=n.slice(0,o),null==u)return r+e;if(mr(u)){if(n.slice(o).search(u)){var i,a,l=n.slice(0,o);for(u.global||(u=Dr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(l);)a=i.index;
|
||||
r=r.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=Lr(n),0>n.indexOf(";")?n:n.replace(T,d))},o.uniqueId=function(n){var t=++E;return Lr(null==n?"":n)+t},o.all=Zt,o.any=er,o.detect=Yt,o.findWhere=Yt,o.foldl=nr,o.foldr=tr,o.include=Vt,o.inject=nr,Ar(function(){var n={};return mt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Ft,o.last=Lt,o.sample=function(n,t,r){return n&&typeof n.length!="number"&&(n=wr(n)),null==t||r?(t=St(n&&n.length),0<t?n[wt(0,t-1)]:_):(n=rr(n),n.length=he(se(0,t),n.length),n)
|
||||
},o.take=Ft,o.takeRight=Lt,o.takeRightWhile=Lt,o.takeWhile=Ft,o.head=Ft,mt(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return Lr(this.__wrapped__)},o.prototype.value=Mt,o.prototype.valueOf=Mt,ft(["join","pop","shift"],function(n){var t=Br[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new i(r,n):r}}),ft(["push","reverse","sort","unshift"],function(n){var t=Br[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ft(["concat","splice"],function(n){var t=Br[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var _,w=1,x=2,j=4,k=8,C=16,O=32,A="2.4.1",I="__lodash@"+A+"__",E=0,R=/\b__p\+='';/g,N=/\b(__p\+=)''\+/g,S=/(__e\(.*?\)|\b__t\))\+'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,F=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,L=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,B=/^\s*function[ \n\r\t]+\w/,q=/^0[xX]/,U=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\t\u2028\u2029\\]/g,Z=/[A-Z]{2,}|[a-zA-Z0-9][a-z0-9]*/g,X=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",Y="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),G="[object Arguments]",H="[object Array]",J="[object Boolean]",Q="[object Date]",nt="[object Function]",tt="[object Number]",rt="[object Object]",et="[object RegExp]",ut="[object String]",ot={};
|
||||
ot[nt]=false,ot[G]=ot[H]=ot[J]=ot[Q]=ot[tt]=ot[rt]=ot[et]=ot[ut]=true;var it={leading:false,maxWait:0,trailing:false},at={configurable:false,enumerable:false,value:null,writable:false},lt={"&":"&","<":"<",">":">",'"':""","'":"'"},ft={"&":"&","<":"<",">":">",""":'"',"'":"'"},ct={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},pt={"function":true,object:true},st={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},ht=pt[typeof window]&&window||this,gt=pt[typeof exports]&&exports&&!exports.nodeType&&exports,pt=pt[typeof module]&&module&&!module.nodeType&&module,vt=gt&&pt&&typeof global=="object"&&global;
|
||||
}return t}function d(n){return lt[n]}function b(t){function o(n){return n&&typeof n=="object"&&!ke(n)&&Vr.call(n,"__wrapped__")?n:new i(n)}function i(n,t){this.__chain__=!!t,this.__wrapped__=n}function c(n){function t(){if(u){for(var n=-1,i=arguments.length,a=kr(i);++n<i;)a[n]=arguments[n];a=xt(u,o,a)}return this instanceof t?(n=m(r.prototype),a=r.apply(n,a||arguments),fr(a)?a:n):r.apply(e,a||arguments)}var r=n[0],e=n[3],u=n[4],o=n[6];return me(t,n),t}function y(n,t,r,e,u){if(r){var o=r(n);if(typeof o!="undefined")return o
|
||||
}if(!fr(n))return n;var i=zr.call(n);if(!ot[i])return n;var a=he[i];switch(i){case J:case Q:return new a(+n);case tt:case ut:return new a(n);case et:return o=a(n.source,z.exec(n)),o.lastIndex=n.lastIndex,o}if(i=ke(n),t){e||(e=[]),u||(u=[]);for(var f=e.length;f--;)if(e[f]==n)return u[f];o=i?a(n.length):{}}else o=i?Ft(n):rr({},n);return i&&(Vr.call(n,"index")&&(o.index=n.index),Vr.call(n,"input")&&(o.input=n.input)),t?(e.push(n),u.push(o),(i?lt:vt)(n,function(n,i){o[i]=y(n,t,r,e,u)}),o):o}function m(n){return fr(n)?ne(n):{}
|
||||
}function U(n,t,r){if(typeof n!="function")return dr;if(typeof t=="undefined"||!("prototype"in n))return n;var e=n[I];if(typeof e=="undefined"&&(ge.funcNames&&(e=!n.name),e=e||!ge.funcDecomp,!e)){var u=Kr.call(n);ge.funcNames||(e=!B.test(u)),e||(e=M.test(u),me(n,e))}if(false===e||true!==e&&e[1]&w)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,o){return n.call(t,r,e,u,o)
|
||||
}}return Qt(n,t)}function Z(n){function t(){for(var n=-1,v=arguments.length,y=kr(v);++n<v;)y[n]=arguments[n];if(i&&(y=xt(i,f,y)),a){for(var n=a,d=l,b=-1,_=d.length,k=-1,j=oe(y.length-_,0),A=-1,I=n.length,E=kr(j+I);++k<j;)E[k]=y[k];for(j=k;++A<I;)E[j+A]=n[A];for(;++b<_;)E[j+d[b]]=y[k++];y=E}return s&&v<u?(e|=C,e&=~O,h||(e&=~(w|x)),v=oe(0,u-v),Z([r,e,v,o,y,null,[]])):(v=c?o:this,p&&(r=v[g]),this instanceof t?(v=m(r.prototype),n=r.apply(v,y),fr(n)?n:v):r.apply(v,y))}var r=n[0],e=n[1],u=n[2],o=n[3],i=n[4],a=n[5],f=n[6],l=n[7],c=e&w,p=e&x,s=e&k,h=e&j,g=r;
|
||||
return me(t,n),t}function ft(n,t){var u=n?n.length:0;if(!u)return[];var o=-1,i=Ot(),a=i===r,f=a&&ye&&t&&200<=t.length,a=a&&!f,l=[],c=t?t.length:0;f&&(i=e,t=ye(t));n:for(;++o<u;)if(f=n[o],a){for(var p=c;p--;)if(t[p]===f)continue n;l.push(f)}else 0>i(t,f)&&l.push(f);return l}function lt(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Lr)for(;++r<e&&false!==t(n[r],r,n););else vt(n,t);return n}function ct(n,t){var r=n?n.length:0;if(typeof r=="number"&&-1<r&&r<=Lr)for(;r--&&false!==t(n[r],r,n););else gt(n,t,Ce);
|
||||
return n}function pt(n,t,r,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var i=n[e];if(i&&typeof i=="object"&&typeof i.length=="number"&&(ke(i)||or(i))){t||(i=pt(i,t,r));var a=-1,f=i.length,l=o.length;for(o.length+=f;++a<f;)o[l++]=i[a]}else r||o.push(i)}return o}function st(n,t,r){var e=-1;r=r(n);for(var u=r.length;++e<u;){var o=r[e];if(false===t(n[o],o,n))break}return n}function gt(n,t,r){r=r(n);for(var e=r.length;e--;){var u=r[e];if(false===t(n[u],u,n))break}return n}function vt(n,t){return st(n,t,Ce)
|
||||
}function mt(n,t,r,e,u,o){if(r){var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;var a=typeof n,f=typeof t;if(n===n&&(null==n||null==t||"function"!=a&&"object"!=a&&"function"!=f&&"object"!=f))return false;if(f=zr.call(n),a=zr.call(t),f==G&&(f=rt),a==G&&(a=rt),f!=a)return false;switch(f){case J:case Q:return+n==+t;case tt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case et:case ut:return n==Nr(t)}if(a=f==H,!a){var l=Vr.call(n,"__wrapped__"),c=Vr.call(t,"__wrapped__");if(l||c)return mt(l?n.__wrapped__:n,c?t.__wrapped__:t,r,e,u,o);
|
||||
if(f!=rt)return false;if(f=n.constructor,l=t.constructor,f!=l&&!(Vr.call(n,"constructor")&&Vr.call(t,"constructor")||ar(f)&&f instanceof f&&ar(l)&&l instanceof l)&&"constructor"in n&&"constructor"in t)return false}for(u||(u=[]),o||(o=[]),f=u.length;f--;)if(u[f]==n)return o[f]==t;var p=0,i=true;if(u.push(n),o.push(t),a){if(f=n.length,p=t.length,(i=p==f)||e)for(;p--;)if(a=f,l=t[p],e)for(;a--&&!(i=mt(n[a],l,r,e,u,o)););else if(!(i=mt(n[p],l,r,e,u,o)))break}else st(t,function(t,a,f){return Vr.call(f,a)?(p++,i=Vr.call(n,a)&&mt(n[a],t,r,e,u,o)):void 0
|
||||
},sr),i&&!e&&st(n,function(n,t,r){return Vr.call(r,t)?i=-1<--p:void 0},sr);return u.pop(),o.pop(),i}function dt(n,t,r,e,u){(ke(t)?lt:vt)(t,function(t,o){var i,a,f=t,l=n[o];if(t&&((a=ke(t))||je(t))){for(f=e.length;f--;)if(i=e[f]==t){l=u[f];break}if(!i){var c;r&&(f=r(l,t),c=typeof f!="undefined")&&(l=f),c||(l=a?ke(l)?l:[]:je(l)?l:{}),e.push(t),u.push(l),c||dt(l,t,r,e,u)}}else r&&(f=r(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);n[o]=l})}function bt(n,t){return n+Pr(le()*(t-n+1))}function _t(n,t,u){var o=n?n.length:0;
|
||||
if(!o)return[];var i=-1,a=Ot(),f=!t&&a===r,l=f&&ye&&200<=o,f=f&&!l,c=[];if(l)var p=ye(),a=e;else p=u&&!t?[]:c;n:for(;++i<o;){var s=n[i],h=u?u(s,i,n):s;if(f){for(var g=p.length;g--;)if(p[g]===h)continue n;u&&p.push(h),c.push(s)}else t?i&&p===h||(p=h,c.push(s)):0>a(p,h)&&((u||l)&&p.push(h),c.push(s))}return c}function wt(n,t){for(var r=-1,e=t(n),u=e.length,o=kr(u);++r<u;)o[r]=n[e[r]];return o}function xt(n,t,r){for(var e=t.length,u=-1,o=oe(r.length-e,0),i=-1,a=n.length,f=kr(o+a);++i<a;)f[i]=n[i];for(;++u<e;)f[t[u]]=r[u];
|
||||
for(;o--;)f[i++]=r[u++];return f}function kt(n,t){return function(r,e,u){var i=t?[[],[]]:{};e=o.createCallback(e,u,3),u=-1;var a=r?r.length:0;if(typeof a=="number"&&-1<a&&a<=Lr)for(;++u<a;){var f=r[u];n(i,f,e(f,u,r),r)}else lt(r,function(t,r,u){n(i,t,e(t,r,u),u)});return i}}function jt(n,t,r){return n=n.length,t|=0,n<t?(t-=n,r=null==r?" ":Nr(r),yr(r,qr(t/r.length)).slice(0,t)):""}function Ct(n,t,r,e,u,o,i,a){var f=t&w,l=t&x,p=t&C,s=t&O;if(!l&&!ar(n))throw new Sr;p&&!u.length&&(t&=~C,p=u=false),s&&!o.length&&(t&=~O,s=o=false);
|
||||
var h=!l&&n[I];return h&&true!==h?(h=Ft(h),h[4]&&(h[4]=Ft(h[4])),h[5]&&(h[5]=Ft(h[5])),typeof r=="number"&&(h[2]=r),n=h[1]&w,f&&!n&&(h[3]=e),!f&&n&&(t|=j),p&&(h[4]?Zr.apply(h[4],u):h[4]=u),s&&(h[5]?Hr.apply(h[5],o):h[5]=o),h[1]|=t,Ct.apply(null,h)):(null==r?r=l?0:n.length:0>r&&(r=0),p&&(i=[]),s&&(a=[]),h=[n,t,r,e,u,o,i,a],t==w||t==(w|C)?c(h):Z(h))}function Ot(){var n=(n=o.indexOf)===Nt?r:n;return n}function At(n){return typeof n=="function"&&Br.test(Kr.call(n))}function It(n){var t,r;return n&&zr.call(n)==rt&&(Vr.call(n,"constructor")||(t=n.constructor,!ar(t)||t instanceof t))?(st(n,function(n,t){r=t
|
||||
},sr),typeof r=="undefined"||Vr.call(n,r)):false}function Et(n){for(var t=-1,r=sr(n),e=r.length,u=[];++t<e;){var o=r[t];Vr.call(n,o)&&u.push(o)}return u}function Rt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else if(i=t,null==i||r)return n?n[0]:_;return Ft(n,0,0>i?0:i)}function Nt(n,t,e){var u=n?n.length:0;if(typeof e=="number")e=0>e?oe(0,u+e):e||0;else if(e)return e=$t(n,t),u&&n[e]===t?e:-1;return r(n,t,e)}function St(n,t,r){var e=n?n.length:0;
|
||||
if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else i=null==t||r?1:t;return i=e-i,Ft(n,0,0>i?0:i)}function Tt(n,t,r){var e=n?n.length:0;if(typeof t!="number"&&null!=t){var u=e,i=0;for(t=o.createCallback(t,r,3);u--&&t(n[u],u,n);)i++}else if(i=t,null==i||r)return n?n[e-1]:_;return i=e-i,Ft(n,0>i?0:i)}function Wt(n,t,r){if(typeof t!="number"&&null!=t){var e=-1,u=n?n.length:0,i=0;for(t=o.createCallback(t,r,3);++e<u&&t(n[e],e,n);)i++}else i=null==t||r?1:0>t?0:t;
|
||||
return Ft(n,i)}function Ft(n,t,r){var e=-1,u=n?n.length:0;for(t=+t||0,0>t?t=oe(u+t,0):t>u&&(t=u),r=typeof r=="undefined"?u:+r||0,0>r?r=oe(u+r,0):r>u&&(r=u),u=t>r?0:r-t,r=kr(u);++e<u;)r[e]=n[t+e];return r}function $t(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?o.createCallback(r,e,1):dr,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;return u}function Dt(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(r=o.createCallback(r,e,3)),_t(n,t,r)
|
||||
}function Lt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Xt(xe(n,"length")):0,e=kr(0>r?0:r);++t<r;)e[t]=xe(n,t);return e}function zt(n,t){var r=-1,e=n?n.length:0,u={};for(t||!e||ke(n[0])||(t=[]);++r<e;){var o=n[r];t?u[o]=t[r]:o&&(u[o[0]]=o[1])}return u}function Bt(){return this.__wrapped__}function qt(n,t,r){var e=n?n.length:0;if(r=typeof r=="number"&&+r||0,typeof e=="number"&&-1<e&&e<=Lr){if(typeof n=="string"||!ke(n)&&pr(n))return r<e?Qr?Qr.call(n,t,r):-1<n.indexOf(t,r):false;var u=Ot();
|
||||
return r=0>r?oe(0,e+r):r,-1<u(n,t,r)}var o=-1,i=false;return lt(n,function(n){return++o<r?void 0:!(i=n===t)}),i}function Ut(n,t,r){var e=true;t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Lr){for(;++r<u;)if(!t(n[r],r,n))return false}else lt(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Pt(n,t,r){var e=[];t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Lr)for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else lt(n,function(n,r,u){t(n,r,u)&&e.push(n)
|
||||
});return e}function Kt(n,t,r){t=o.createCallback(t,r,3),r=-1;var e=n?n.length:0;if(typeof e!="number"||-1>=e||e>Lr){var u;return lt(n,function(n,r,e){return t(n,r,e)?(u=n,false):void 0}),u}for(;++r<e;){var i=n[r];if(t(i,r,n))return i}}function Mt(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:U(t,r,3),typeof u=="number"&&-1<u&&u<=Lr)for(;++e<u&&false!==t(n[e],e,n););else lt(n,t);return n}function Vt(n,t,r){var e=n?n.length:0;if(t=t&&typeof r=="undefined"?t:U(t,r,3),typeof e=="number"&&-1<e&&e<=Lr)for(;e--&&false!==t(n[e],e,n););else ct(n,t);
|
||||
return n}function Zt(n,t,r){var e=-1,u=n?n.length:0;if(t=o.createCallback(t,r,3),typeof u=="number"&&-1<u&&u<=Lr)for(var i=kr(u);++e<u;)i[e]=t(n[e],e,n);else i=[],lt(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function Xt(n,t,r){var e=-1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&ke(n))for(r=-1,a=n.length;++r<a;){var f=n[r];f>i&&(i=f)}else t=null==t&&pr(n)?u:o.createCallback(t,r,3),lt(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,i=n)});return i}function Yt(n,t,r,e){var u=3>arguments.length;
|
||||
t=o.createCallback(t,e,4);var i=-1,a=n?n.length:0;if(typeof a=="number"&&-1<a&&a<=Lr)for(u&&a&&(r=n[++i]);++i<a;)r=t(r,n[i],i,n);else lt(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)});return r}function Gt(n,t,r,e){var u=3>arguments.length;return t=o.createCallback(t,e,4),ct(n,function(n,e,o){r=u?(u=false,n):t(r,n,e,o)}),r}function Ht(n){var t=-1,r=n&&n.length,e=kr(0>r?0:r>>>0);return lt(n,function(n){var r=bt(0,++t);e[t]=e[r],e[r]=n}),e}function Jt(n,t,r){var e;t=o.createCallback(t,r,3),r=-1;var u=n?n.length:0;
|
||||
if(typeof u=="number"&&-1<u&&u<=Lr){for(;++r<u;)if(t(n[r],r,n))return true}else lt(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function Qt(n,t){if(3>arguments.length)return Ct(n,w,null,t);if(n)var r=n[I]?n[I][2]:n.length,e=Ft(arguments,2),r=r-e.length;return Ct(n,w|C,r,t,e)}function nr(n,t,r){var e,u,o,i,a,f,l,c=0,p=false,s=true;if(!ar(n))throw new Sr;if(t=0>t?0:t,true===r)var h=true,s=false;else fr(r)&&(h=r.leading,p="maxWait"in r&&(oe(t,r.maxWait)||0),s="trailing"in r?r.trailing:s);var g=function(){var r=t-(Se()-i);
|
||||
0>=r||r>t?(u&&Ur(u),r=l,u=f=l=_,r&&(c=Se(),o=n.apply(a,e),f||u||(e=a=null))):f=Yr(g,r)},v=function(){f&&Ur(f),u=f=l=_,(s||p!==t)&&(c=Se(),o=n.apply(a,e),f||u||(e=a=null))};return function(){if(e=arguments,i=Se(),a=this,l=s&&(f||!h),false===p)var r=h&&!f;else{u||h||(c=i);var y=p-(i-c),m=0>=y||y>p;m?(u&&(u=Ur(u)),c=i,o=n.apply(a,e)):u||(u=Yr(v,y))}return m&&f?f=Ur(f):f||t===p||(f=Yr(g,t)),r&&(m=true,o=n.apply(a,e)),!m||f||u||(e=a=null),o}}function tr(n){if(!ar(n))throw new Sr;return function(){return!n.apply(this,arguments)
|
||||
}}function rr(n,t,r){var e=arguments;if(!n||2>e.length)return n;var u=0,o=e.length,i=typeof r;if("number"!=i&&"string"!=i||!e[3]||e[3][r]!==t||(o=2),3<o&&"function"==typeof e[o-2])var a=U(e[--o-1],e[o--],2);else 2<o&&"function"==typeof e[o-1]&&(a=e[--o]);for(;++u<o;){t=e[u];for(var i=-1,f=Ce(t),l=f.length;++i<l;){var c=f[i];n[c]=a?a(n[c],t[c]):t[c]}}return n}function er(t){if(!t||2>arguments.length)return t;var r=Ft(arguments);return r.push(n),rr.apply(null,r)}function ur(n){var t=[];return st(n,function(n,r){ar(n)&&t.push(r)
|
||||
},sr),t.sort()}function or(n){return n&&typeof n=="object"&&typeof n.length=="number"&&zr.call(n)==G||false}function ir(n){return n&&typeof n=="object"&&1===n.nodeType&&-1<zr.call(n).indexOf("Element")||false}function ar(n){return typeof n=="function"}function fr(n){var t=typeof n;return n&&("function"==t||"object"==t)||false}function lr(n){var t=typeof n;return"number"==t||n&&"object"==t&&zr.call(n)==tt||false}function cr(n){return n&&typeof n=="object"&&zr.call(n)==et||false}function pr(n){return typeof n=="string"||n&&typeof n=="object"&&zr.call(n)==ut||false
|
||||
}function sr(n){var t=[];if(!fr(n))return t;for(var r in n)t.push(r);return t}function hr(n,t,r){var e={};if(typeof t!="function")for(var u=-1,i=pt(arguments,true,false,1),a=fr(n)?i.length:0;++u<a;){var f=i[u];f in n&&(e[f]=n[f])}else t=o.createCallback(t,r,3),st(n,function(n,r,u){t(n,r,u)&&(e[r]=n)},sr);return e}function gr(n){return wt(n,Ce)}function vr(n){return null==n?"":Nr(n).replace(K,"\\$&")}function yr(n,t){var r="";if(t|=0,1>t||null==n)return r;n=Nr(n);do t%2&&(r+=n),t=Pr(t/2),n+=n;while(t);
|
||||
return r}function mr(n,t,r){var e=typeof n;return"function"==e||null==n?(typeof t=="undefined"||!("prototype"in n))&&n||U(n,t,r):"object"!=e?xr(n):br(n)}function dr(n){return n}function br(n){n||(n={});var t=Ce(n),r=t.length,e=t[0],u=n[e];return 1!=r||u!==u||fr(u)?function(e){for(var u=r,o=false;u--&&(o=t[u],o=Vr.call(e,o)&&mt(e[o],n[o],null,true)););return o}:function(n){return Vr.call(n,e)?(n=n[e],u===n&&(0!==u||1/u==1/n)):false}}function _r(n,t,r){var e=true,u=t&&ur(t);t&&(r||u.length)||(null==r&&(r=t),t=n,n=o,u=ur(t)),false===r?e=false:fr(r)&&"chain"in r&&(e=r.chain),r=-1;
|
||||
for(var i=ar(n),a=u?u.length:0;++r<a;){var f=u[r],l=n[f]=t[f];i&&(n.prototype[f]=function(t){return function(){var r=this.__chain__,u=this.__wrapped__,o=[u];if(Zr.apply(o,arguments),o=t.apply(n,o),e||r){if(u===o&&fr(o))return this;o=new n(o),o.__chain__=r}return o}}(l))}}function wr(){}function xr(n){return function(t){return null==t?_:t[n]}}t=t?yt.defaults(ht.Object(),t,yt.pick(ht,Y)):ht;var kr=t.Array,jr=t.Boolean,Cr=t.Date,Or=t.Function,Ar=t.Math,Ir=t.Number,Er=t.Object,Rr=t.RegExp,Nr=t.String,Sr=t.TypeError,Tr=kr.prototype,Wr=Er.prototype,Fr=Nr.prototype,$r=($r=t.window)&&$r.document,Dr=t._,Lr=Ar.pow(2,53)-1,zr=Wr.toString,Br=Rr("^"+vr(zr).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qr=Ar.ceil,Ur=t.clearTimeout,Pr=Ar.floor,Kr=Or.prototype.toString,Mr=At(Mr=Er.getPrototypeOf)&&Mr,Vr=Wr.hasOwnProperty,Zr=Tr.push,Xr=At(Xr=t.Set)&&Xr,Yr=t.setTimeout,Gr=Tr.splice,Hr=Tr.unshift,Jr=function(){try{var n={},t=At(t=Er.defineProperty)&&t,r=t(n,n,n)&&t
|
||||
}catch(e){}return r}(),Qr=At(Qr=Fr.contains)&&Qr,ne=At(ne=Er.create)&&ne,te=At(te=kr.isArray)&&te,re=t.isFinite,ee=t.isNaN,ue=At(ue=Er.keys)&&ue,oe=Ar.max,ie=Ar.min,ae=At(ae=Cr.now)&&ae,fe=t.parseInt,le=Ar.random,ce=At(ce=Fr.trim)&&!ce.call(X)&&ce,pe=At(pe=Fr.trimLeft)&&!pe.call(X)&&pe,se=At(se=Fr.trimRight)&&!se.call(X)&&se,he={};he[H]=kr,he[J]=jr,he[Q]=Cr,he[nt]=Or,he[rt]=Er,he[tt]=Ir,he[et]=Rr,he[ut]=Nr,i.prototype=o.prototype;var ge=o.support={};ge.funcDecomp=!At(t.WinRTError)&&M.test(b),ge.funcNames=typeof Or.name=="string";
|
||||
try{ge.dom=11===$r.createDocumentFragment().nodeType}catch(ve){ge.dom=false}o.templateSettings={escape:F,evaluate:$,interpolate:D,variable:"",imports:{_:o}},ne||(m=function(){function n(){}return function(r){if(fr(r)){n.prototype=r;var e=new n;n.prototype=null}return e||t.Object()}}());var ye=Xr&&function(n){var t=new Xr,r=n?n.length:0;for(t.push=t.add;r--;)t.push(n[r]);return t},me=Jr?function(n,t){at.value=t,Jr(n,I,at)}:wr,de=kt(function(n,t,r){Vr.call(n,r)?n[r]++:n[r]=1}),be=kt(function(n,t,r){Vr.call(n,r)?n[r].push(t):n[r]=[t]
|
||||
}),_e=kt(function(n,t,r){n[r]=t}),we=kt(function(n,t,r){n[r?0:1].push(t)},true),xe=Zt,ke=te||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&zr.call(n)==H||false};ge.dom||(ir=function(n){return n&&typeof n=="object"&&1===n.nodeType&&!je(n)||false});var je=Mr?function(n){if(!n||zr.call(n)!=rt)return false;var t=n.valueOf,r=At(t)&&(r=Mr(t))&&Mr(r);return r?n==r||Mr(n)==r:It(n)}:It,Ce=ue?function(n){return fr(n)?ue(n):[]}:Et,Oe=l(function(n,t,r){return n+t.charAt(0)[r?"toUpperCase":"toLowerCase"]()+t.slice(1)
|
||||
}),Ae=l(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Ie=l(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Ee=ce?function(n,t){return null==n?"":null==t?ce.call(n):h(n,t)}:h,Re=pe?function(n,t){return null==n?"":null==t?pe.call(n):g(n,t)}:g,Ne=se?function(n,t){return null==n?"":null==t?se.call(n):v(n,t)}:v,Se=ae||function(){return(new Cr).getTime()},Te=8==fe(X+"08")?fe:function(n,t){return n=Ee(n),fe(n,+t||(q.test(n)?16:10))};return o.after=function(n,t){if(!ar(t))throw new Sr;return function(){return 1>--n?t.apply(this,arguments):void 0
|
||||
}},o.assign=rr,o.at=function(n,t){var r=arguments,e=-1,u=pt(r,true,false,1),o=u.length,i=typeof t;for("number"!=i&&"string"!=i||!r[2]||r[2][t]!==n||(o=1),r=kr(o);++e<o;)r[e]=n[u[e]];return r},o.bind=Qt,o.bindAll=function(n){for(var t=1<arguments.length?pt(arguments,true,false,1):ur(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Ct(n[u],w,null,n)}return n},o.bindKey=function(n,t){return 3>arguments.length?Ct(t,w|x,null,n):Ct(t,w|x|C,null,n,Ft(arguments,2))},o.chain=function(n){return n=new i(n),n.__chain__=true,n
|
||||
},o.compact=function(n){for(var t=-1,r=n?n.length:0,e=0,u=[];++t<r;){var o=n[t];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,t=n.length,r=t;r--;)if(!ar(n[r]))throw new Sr;return function(){for(var r=t-1,e=n[r].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},o.constant=function(n){return function(){return n}},o.countBy=de,o.create=function(n,t){var r=m(n);return t?rr(r,t):r},o.createCallback=mr,o.curry=function(n,t){return typeof t!="number"&&(t=+t||(n?n.length:0)),Ct(n,k,t)
|
||||
},o.debounce=nr,o.defaults=er,o.defer=function(n){if(!ar(n))throw new Sr;var t=Ft(arguments,1);return Yr(function(){n.apply(_,t)},1)},o.delay=function(n,t){if(!ar(n))throw new Sr;var r=Ft(arguments,2);return Yr(function(){n.apply(_,r)},t)},o.difference=function(n){return ft(n,pt(arguments,true,true,1))},o.drop=Wt,o.dropRight=St,o.dropRightWhile=St,o.dropWhile=Wt,o.filter=Pt,o.flatten=function(n,t,r,e){if(!n||!n.length)return[];var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),null!=r&&(n=Zt(n,r,e)),pt(n,t)
|
||||
},o.forEach=Mt,o.forEachRight=Vt,o.forIn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),st(n,t,sr)},o.forInRight=function(n,t,r){return t=U(t,r,3),gt(n,t,sr)},o.forOwn=function(n,t,r){return t=t&&typeof r=="undefined"?t:U(t,r,3),vt(n,t)},o.forOwnRight=function(n,t,r){return t=U(t,r,3),gt(n,t,Ce)},o.functions=ur,o.groupBy=be,o.indexBy=_e,o.initial=St,o.intersection=function(n){if(!n)return[];for(var t=[],u=-1,o=arguments.length,i=[],a=Ot(),f=ye&&a===r,l=[];++u<o;){var c=arguments[u];
|
||||
(ke(c)||or(c))&&(t.push(c),i.push(f&&120<=c.length&&ye(u?c:l)))}o=t.length,n=t[0];var f=-1,p=n?n.length:0,s=[];n:for(;++f<p;){var h=i[0],c=n[f];if(0>(h?e(h,c):a(l,c))){for(u=o,(h||l).push(c);--u;)if(h=i[u],0>(h?e(h,c):a(t[u],c)))continue n;s.push(c)}}return s},o.invert=function(n,t){for(var r=-1,e=Ce(n),u=e.length,o={};++r<u;){var i=e[r],a=n[i];t?Vr.call(o,a)?o[a].push(i):o[a]=[i]:o[a]=i}return o},o.invoke=function(n,t){var r=Ft(arguments,2),e=-1,u=typeof t=="function",o=n&&n.length,i=kr(0>o?0:o>>>0);
|
||||
return lt(n,function(n){var o=u?t:null!=n&&n[t];i[++e]=o?o.apply(n,r):_}),i},o.keys=Ce,o.keysIn=sr,o.map=Zt,o.mapValues=function(n,t,r){var e={};return t=o.createCallback(t,r,3),vt(n,function(n,r,u){e[r]=t(n,r,u)}),e},o.matches=br,o.max=Xt,o.memoize=function(n,t){if(!ar(n))throw new Sr;var r=function(){var e=r.cache,u=t?t.apply(this,arguments):"_"+arguments[0];return Vr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)};return r.cache={},r},o.merge=function(n,t,r){if(!n)return n;var e=arguments,u=e.length,o=typeof r;
|
||||
if("number"!=o&&"string"!=o||!e[3]||e[3][r]!==t||(u=2),3<u&&"function"==typeof e[u-2])var i=U(e[--u-1],e[u--],2);else 2<u&&"function"==typeof e[u-1]&&(i=e[--u]);for(var e=Ft(e,1,u),o=-1,a=[],f=[];++o<u;)dt(n,e[o],i,a,f);return n},o.min=function(n,t,r){var e=1/0,i=e,a=typeof t;if("number"!=a&&"string"!=a||!r||r[t]!==n||(t=null),null==t&&ke(n))for(r=-1,a=n.length;++r<a;){var f=n[r];f<i&&(i=f)}else t=null==t&&pr(n)?u:o.createCallback(t,r,3),lt(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,i=n)});return i},o.negate=tr,o.omit=function(n,t,r){if(typeof t=="function")return t=o.createCallback(t,r,3),hr(n,tr(t));
|
||||
for(var e=pt(arguments,true,false,1),u=e.length;u--;)e[u]=Nr(e[u]);return hr(n,ft(sr(n),e))},o.once=function(n){var t,r;if(!ar(n))throw new Sr;return function(){return t?r:(t=true,r=n.apply(this,arguments),n=null,r)}},o.pairs=function(n){for(var t=-1,r=Ce(n),e=r.length,u=kr(e);++t<e;){var o=r[t];u[t]=[o,n[o]]}return u},o.partial=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Ft(arguments,1),t=t-r.length;return Ct(n,C,t,null,r)},o.partialRight=function(n){if(n)var t=n[I]?n[I][2]:n.length,r=Ft(arguments,1),t=t-r.length;
|
||||
return Ct(n,O,t,null,null,r)},o.partition=we,o.pick=hr,o.pluck=xe,o.property=xr,o.pull=function(n){for(var t=0,r=arguments.length,e=n?n.length:0;++t<r;)for(var u=-1,o=arguments[t];++u<e;)n[u]===o&&(Gr.call(n,u--,1),e--);return n},o.range=function(n,t,r){n=+n||0,r=null==r?1:+r||0,null==t?(t=n,n=0):t=+t||0;var e=-1;t=oe(0,qr((t-n)/(r||1)));for(var u=kr(t);++e<t;)u[e]=n,n+=r;return u},o.reject=function(n,t,r){return t=o.createCallback(t,r,3),Pt(n,tr(t))},o.remove=function(n,t,r){var e=-1,u=n?n.length:0,i=[];
|
||||
for(t=o.createCallback(t,r,3);++e<u;)r=n[e],t(r,e,n)&&(i.push(r),Gr.call(n,e--,1),u--);return i},o.rest=Wt,o.shuffle=Ht,o.slice=Ft,o.sortBy=function(n,t,r){var e=-1,u=n&&n.length,i=t&&ke(t),l=kr(0>u?0:u>>>0);for(i||(t=o.createCallback(t,r,3)),lt(n,function(n,r,u){if(i)for(r=t.length,u=kr(r);r--;)u[r]=n[t[r]];else u=t(n,r,u);l[++e]={a:u,b:e,c:n}}),u=l.length,l.sort(i?f:a);u--;)l[u]=l[u].c;return l},o.tap=function(n,t,r){return t.call(r,n),n},o.throttle=function(n,t,r){var e=true,u=true;if(!ar(n))throw new Sr;
|
||||
return false===r?e=false:fr(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),it.leading=e,it.maxWait=+t,it.trailing=u,nr(n,t,it)},o.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=kr(n);for(t=U(t,r,1);++e<n;)u[e]=t(e);return u},o.toArray=function(n){var t=n&&n.length;return typeof t=="number"&&-1<t&&t<=Lr?Ft(n):gr(n)},o.transform=function(n,t,r,e){var u=ke(n);if(null==r)if(u)r=[];else{var i=n&&n.constructor;r=m(i&&i.prototype)}return t&&(t=o.createCallback(t,e,4),(u?lt:vt)(n,function(n,e,u){return t(r,n,e,u)
|
||||
})),r},o.union=function(){return _t(pt(arguments,true,true))},o.uniq=Dt,o.values=gr,o.valuesIn=function(n){return wt(n,sr)},o.where=Pt,o.without=function(){return ft(arguments[0],Ft(arguments,1))},o.wrap=function(n,t){return Ct(t,C,null,null,[n])},o.xor=function(){for(var n=-1,t=arguments.length;++n<t;){var r=arguments[n];if(ke(r)||or(r))var e=e?ft(e,r).concat(ft(r,e)):r}return e?_t(e):[]},o.zip=Lt,o.zipObject=zt,o.callback=mr,o.collect=Zt,o.each=Mt,o.eachRight=Vt,o.extend=rr,o.methods=ur,o.object=zt,o.select=Pt,o.tail=Wt,o.unique=Dt,o.unzip=Lt,_r(rr({},o)),o.camelCase=Oe,o.capitalize=function(n){return null==n?"":(n=Nr(n),n.charAt(0).toUpperCase()+n.slice(1))
|
||||
},o.clone=function(n,t,r,e){var u=typeof t;return"boolean"!=u&&null!=t&&(e=r,r=t,t=false,"number"!=u&&"string"!=u||!e||e[r]!==n||(r=null)),r=typeof r=="function"&&U(r,e,1),y(n,t,r)},o.cloneDeep=function(n,t,r){return t=typeof t=="function"&&U(t,r,1),y(n,true,t)},o.contains=qt,o.endsWith=function(n,t,r){n=null==n?"":Nr(n),t=Nr(t);var e=n.length;return r=(typeof r=="number"?ie(oe(+r||0,0),e):e)-t.length,0<=r&&n.indexOf(t,r)==r},o.escape=function(n){return null==n?"":Nr(n).replace(W,p)},o.escapeRegExp=vr,o.every=Ut,o.find=Kt,o.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;
|
||||
for(t=o.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1},o.findKey=function(n,t,r){var e;return t=o.createCallback(t,r,3),vt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0}),e},o.findLast=function(n,t,r){var e;return t=o.createCallback(t,r,3),ct(n,function(n,r,u){return t(n,r,u)?(e=n,false):void 0}),e},o.findLastIndex=function(n,t,r){var e=n?n.length:0;for(t=o.createCallback(t,r,3);e--;)if(t(n[e],e,n))return e;return-1},o.findLastKey=function(n,t,r){var e;return t=o.createCallback(t,r,3),gt(n,function(n,r,u){return t(n,r,u)?(e=r,false):void 0
|
||||
},Ce),e},o.has=function(n,t){return n?Vr.call(n,t):false},o.identity=dr,o.indexOf=Nt,o.isArguments=or,o.isArray=ke,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&zr.call(n)==J||false},o.isDate=function(n){return n&&typeof n=="object"&&zr.call(n)==Q||false},o.isElement=ir,o.isEmpty=function(n){var t=true;if(!n)return t;var r=zr.call(n),e=n.length;return r==H||r==ut||r==G||r==rt&&typeof e=="number"&&ar(n.splice)?!e:(vt(n,function(){return t=false}),t)},o.isEqual=function(n,t,r,e){if(r=typeof r=="function"&&U(r,e,2),!r){if(n===t)return 0!==n||1/n==1/t;
|
||||
e=typeof n;var u=typeof t;if(n===n&&(null==n||null==t||"function"!=e&&"object"!=e&&"function"!=u&&"object"!=u))return false}return mt(n,t,r)},o.isFinite=function(n){return re(n)&&!ee(parseFloat(n))},o.isFunction=ar,o.isNaN=function(n){return lr(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=lr,o.isObject=fr,o.isPlainObject=je,o.isRegExp=cr,o.isString=pr,o.isUndefined=function(n){return typeof n=="undefined"},o.kebabCase=Ae,o.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(r|=0,e=(0>r?oe(0,e+r):ie(r,e-1))+1);e--;)if(n[e]===t)return e;
|
||||
return-1},o.mixin=_r,o.noConflict=function(){return t._=Dr,this},o.noop=wr,o.now=Se,o.pad=function(n,t,r){n=null==n?"":Nr(n),t|=0;var e=n.length;return e<t?(e=(t-e)/2,t=Pr(e),e=qr(e),r=jt("",e,r),r.slice(0,t)+n+r):n},o.padLeft=function(n,t,r){return n=null==n?"":Nr(n),jt(n,t,r)+n},o.padRight=function(n,t,r){return n=null==n?"":Nr(n),n+jt(n,t,r)},o.parseInt=Te,o.random=function(n,t,r){var e=null==n,u=null==t;return null==r&&(u&&typeof n=="boolean"?(r=n,n=1):typeof t=="boolean"&&(r=t,u=true)),e&&u&&(t=1,u=false),n=+n||0,u?(t=n,n=0):t=+t||0,r||n%1||t%1?(r=le(),ie(n+r*(t-n+parseFloat("1e-"+((r+"").length-1))),t)):bt(n,t)
|
||||
},o.reduce=Yt,o.reduceRight=Gt,o.repeat=yr,o.result=function(n,t,r){var e=null==n?_:n[t];return typeof e=="undefined"?r:ar(e)?n[t]():e},o.runInContext=b,o.size=function(n){var t=n?n.length:0;return typeof t=="number"&&-1<t&&t<=Lr?t:Ce(n).length},o.some=Jt,o.sortedIndex=$t,o.snakeCase=Ie,o.startsWith=function(n,t,r){return n=null==n?"":Nr(n),r=typeof r=="number"?ie(oe(+r||0,0),n.length):0,n.lastIndexOf(t,r)==r},o.template=function(n,t,r){var e=o.templateSettings;r=er({},r,e),n=Nr(null==n?"":n);var u,i,a=er({},r.imports,e.imports),e=Ce(a),a=gr(a),f=0,l=r.interpolate||P,c="__p+='",l=Rr((r.escape||P).source+"|"+l.source+"|"+(l===D?L:P).source+"|"+(r.evaluate||P).source+"|$","g");
|
||||
n.replace(l,function(t,r,e,o,a,l){return e||(e=o),c+=n.slice(f,l).replace(V,s),r&&(u=true,c+="'+__e("+r+")+'"),a&&(i=true,c+="';"+a+";\n__p+='"),e&&(c+="'+((__t=("+e+"))==null?'':__t)+'"),f=l+t.length,t}),c+="';",(r=r.variable)||(c="with(obj){"+c+"}"),c=(i?c.replace(R,""):c).replace(N,"$1").replace(S,"$1;"),c="function("+(r||"obj")+"){"+(r?"":"obj||(obj={});")+"var __t,__p=''"+(u?",__e=_.escape":"")+(i?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var p=Or(e,"return "+c).apply(_,a)
|
||||
}catch(h){throw h.source=c,h}return t?p(t):(p.source=c,p)},o.trim=Ee,o.trimLeft=Re,o.trimRight=Ne,o.truncate=function(n,t){var r=30,e="...";if(t&&fr(t))var u="separator"in t?t.separator:u,r="length"in t?+t.length||0:r,e="omission"in t?Nr(t.omission):e;else null!=t&&(r=+t||0);if(n=null==n?"":Nr(n),r>=n.length)return n;var o=r-e.length;if(1>o)return e;if(r=n.slice(0,o),null==u)return r+e;if(cr(u)){if(n.slice(o).search(u)){var i,a,f=n.slice(0,o);for(u.global||(u=Rr(u.source,(z.exec(u)||"")+"g")),u.lastIndex=0;i=u.exec(f);)a=i.index;
|
||||
r=r.slice(0,null==a?o:a)}}else n.indexOf(u,o)!=o&&(u=r.lastIndexOf(u),-1<u&&(r=r.slice(0,u)));return r+e},o.unescape=function(n){return null==n?"":(n=Nr(n),0>n.indexOf(";")?n:n.replace(T,d))},o.uniqueId=function(n){var t=++E;return Nr(null==n?"":n)+t},o.all=Ut,o.any=Jt,o.detect=Kt,o.findWhere=Kt,o.foldl=Yt,o.foldr=Gt,o.include=qt,o.inject=Yt,_r(function(){var n={};return vt(o,function(t,r){o.prototype[r]||(n[r]=t)}),n}(),false),o.first=Rt,o.last=Tt,o.sample=function(n,t,r){return n&&typeof n.length!="number"&&(n=gr(n)),null==t||r?(t=n?n.length:0,0<t?n[bt(0,t-1)]:_):(n=Ht(n),n.length=ie(oe(0,t),n.length),n)
|
||||
},o.take=Rt,o.takeRight=Tt,o.takeRightWhile=Tt,o.takeWhile=Rt,o.head=Rt,vt(o,function(n,t){var r="sample"!==t;o.prototype[t]||(o.prototype[t]=function(t,e){var u=this.__chain__,o=n(this.__wrapped__,t,e);return u||null!=t&&(!e||r&&typeof t=="function")?new i(o,u):o})}),o.VERSION=A,o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.toString=function(){return Nr(this.__wrapped__)},o.prototype.value=Bt,o.prototype.valueOf=Bt,lt(["join","pop","shift"],function(n){var t=Tr[n];o.prototype[n]=function(){var n=this.__chain__,r=t.apply(this.__wrapped__,arguments);
|
||||
return n?new i(r,n):r}}),lt(["push","reverse","sort","unshift"],function(n){var t=Tr[n];o.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),lt(["concat","splice"],function(n){var t=Tr[n];o.prototype[n]=function(){return new i(t.apply(this.__wrapped__,arguments),this.__chain__)}}),o}var _,w=1,x=2,k=4,j=8,C=16,O=32,A="2.4.1",I="__lodash@"+A+"__",E=0,R=/\b__p\+='';/g,N=/\b(__p\+=)''\+/g,S=/(__e\(.*?\)|\b__t\))\+'';/g,T=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,F=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,L=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,z=/\w*$/,B=/^\s*function[ \n\r\t]+\w/,q=/^0[xX]/,U=/[\xC0-\xFF]/g,P=/($^)/,K=/[.*+?^${}()|[\]\\]/g,M=/\bthis\b/,V=/['\n\r\t\u2028\u2029\\]/g,Z=/[A-Z]{2,}|[a-zA-Z0-9][a-z0-9]*/g,X=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",Y="Array Boolean Date Function Math Number Object RegExp Set String _ clearTimeout document isFinite isNaN parseInt setTimeout TypeError window WinRTError".split(" "),G="[object Arguments]",H="[object Array]",J="[object Boolean]",Q="[object Date]",nt="[object Function]",tt="[object Number]",rt="[object Object]",et="[object RegExp]",ut="[object String]",ot={};
|
||||
ot[nt]=false,ot[G]=ot[H]=ot[J]=ot[Q]=ot[tt]=ot[rt]=ot[et]=ot[ut]=true;var it={leading:false,maxWait:0,trailing:false},at={configurable:false,enumerable:false,value:null,writable:false},ft={"&":"&","<":"<",">":">",'"':""","'":"'"},lt={"&":"&","<":"<",">":">",""":'"',"'":"'"},ct={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"AE",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss","\xd7":" ","\xf7":" "},pt={"function":true,object:true},st={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},ht=pt[typeof window]&&window||this,gt=pt[typeof exports]&&exports&&!exports.nodeType&&exports,pt=pt[typeof module]&&module&&!module.nodeType&&module,vt=gt&&pt&&typeof global=="object"&&global;
|
||||
!vt||vt.global!==vt&&vt.window!==vt&&vt.self!==vt||(ht=vt);var vt=pt&&pt.exports===gt&>,yt=b();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ht._=yt, define(function(){return yt})):gt&&pt?vt?(pt.exports=yt)._=yt:gt._=yt:ht._=yt}).call(this);
|
||||
215
dist/lodash.underscore.js
vendored
215
dist/lodash.underscore.js
vendored
@@ -226,7 +226,11 @@
|
||||
/** Used to restore the original `_` reference in `noConflict` */
|
||||
var oldDash = root._;
|
||||
|
||||
/** Used as the maximum value returned by `toLength` */
|
||||
/**
|
||||
* Used as the maximum length an array-like object.
|
||||
* See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*/
|
||||
var maxSafeInteger = Math.pow(2, 53) - 1;
|
||||
|
||||
/** Used to resolve the internal [[Class]] of values */
|
||||
@@ -569,8 +573,7 @@
|
||||
iterable = collection,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
length = toLength(length);
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (callback(iterable[index], index, collection) === breakIndicator) {
|
||||
break;
|
||||
@@ -595,8 +598,7 @@
|
||||
var iterable = collection,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number') {
|
||||
length = toLength(length);
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (length--) {
|
||||
if (callback(iterable[length], length, collection) === breakIndicator) {
|
||||
break;
|
||||
@@ -981,9 +983,9 @@
|
||||
callback = createCallback(callback, thisArg, 3);
|
||||
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
setter(result, value, callback(value, index, collection), collection);
|
||||
@@ -1109,20 +1111,6 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts `value` to an integer suitable for use as the length of an array-like
|
||||
* object. See the [ES6 spec](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength)
|
||||
* for more details.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to convert.
|
||||
* @returns {number} Returns the converted integer.
|
||||
*/
|
||||
function toLength(value) {
|
||||
var result = +value || 0;
|
||||
return result < 0 ? 0 : (result < maxSafeInteger ? result : maxSafeInteger);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
@@ -1199,60 +1187,6 @@
|
||||
*/
|
||||
var drop = rest;
|
||||
|
||||
/**
|
||||
* This method is like `_.find` except that it returns the index of the first
|
||||
* element the predicate returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is provided for `predicate` the created "_.where" style callback
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Arrays
|
||||
* @param {Array} array The array to search.
|
||||
* @param {Function|Object|string} [predicate=identity] The function called
|
||||
* per iteration. If a property name or object is provided it will be used
|
||||
* to create a "_.pluck" or "_.where" style callback, respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {number} Returns the index of the found element, else `-1`.
|
||||
* @example
|
||||
*
|
||||
* var characters = [
|
||||
* { 'name': 'barney', 'age': 36 },
|
||||
* { 'name': 'fred', 'age': 40, 'blocked': true },
|
||||
* { 'name': 'pebbles', 'age': 1 }
|
||||
* ];
|
||||
*
|
||||
* _.findIndex(characters, function(chr) {
|
||||
* return chr.age < 20;
|
||||
* });
|
||||
* // => 2
|
||||
*
|
||||
* // using "_.where" callback shorthand
|
||||
* _.findIndex(characters, { 'age': 36 });
|
||||
* // => 0
|
||||
*
|
||||
* // using "_.pluck" callback shorthand
|
||||
* _.findIndex(characters, 'blocked');
|
||||
* // => 1
|
||||
*/
|
||||
function findIndex(array, predicate, thisArg) {
|
||||
var index = -1,
|
||||
length = array ? array.length : 0;
|
||||
|
||||
predicate = createCallback(predicate, thisArg, 3);
|
||||
while (++index < length) {
|
||||
if (predicate(array[index], index, array)) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first element of `array`.
|
||||
*
|
||||
@@ -1957,10 +1891,10 @@
|
||||
*/
|
||||
function contains(collection, target) {
|
||||
var indexOf = getIndexOf(),
|
||||
length = toLength(collection && collection.length),
|
||||
length = collection ? collection.length : 0,
|
||||
result = false;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
return indexOf(collection, target) > -1;
|
||||
}
|
||||
baseEach(collection, function(value) {
|
||||
@@ -2053,9 +1987,9 @@
|
||||
|
||||
predicate = createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (!predicate(collection[index], index, collection)) {
|
||||
return false;
|
||||
@@ -2114,9 +2048,9 @@
|
||||
|
||||
predicate = createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (predicate(value, index, collection)) {
|
||||
@@ -2177,13 +2111,27 @@
|
||||
* // => { 'name': 'fred', 'age': 40, 'blocked': true }
|
||||
*/
|
||||
function find(collection, predicate, thisArg) {
|
||||
var length = toLength(collection && collection.length);
|
||||
if (length) {
|
||||
var index = findIndex(collection, predicate, thisArg);
|
||||
return index > -1 ? collection[index] : undefined;
|
||||
predicate = createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (predicate(value, index, collection)) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var result;
|
||||
baseEach(collection, function(value, index, collection) {
|
||||
if (predicate(value, index, collection)) {
|
||||
result = value;
|
||||
return breakIndicator;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
var key = findKey(collection, predicate, thisArg);
|
||||
return typeof key == 'string' ? collection[key] : undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2214,10 +2162,10 @@
|
||||
*/
|
||||
function forEach(collection, callback, thisArg) {
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3);
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (callback(collection[index], index, collection) === breakIndicator) {
|
||||
break;
|
||||
@@ -2345,7 +2293,8 @@
|
||||
result = Array(length < 0 ? 0 : length >>> 0);
|
||||
|
||||
baseEach(collection, function(value) {
|
||||
result[++index] = (isFunc ? methodName : value[methodName]).apply(value, args);
|
||||
var func = isFunc ? methodName : (value != null && value[methodName]);
|
||||
result[++index] = func ? func.apply(value, args) : undefined;
|
||||
});
|
||||
return result;
|
||||
}
|
||||
@@ -2391,10 +2340,10 @@
|
||||
*/
|
||||
function map(collection, callback, thisArg) {
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
callback = createCallback(callback, thisArg, 3);
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
var result = Array(length);
|
||||
while (++index < length) {
|
||||
result[index] = callback(collection[index], index, collection);
|
||||
@@ -2458,9 +2407,9 @@
|
||||
callback = null;
|
||||
}
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (callback == null && length) {
|
||||
if (callback == null && typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (value > result) {
|
||||
@@ -2531,9 +2480,9 @@
|
||||
callback = null;
|
||||
}
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (callback == null && length) {
|
||||
if (callback == null && typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
var value = collection[index];
|
||||
if (value < result) {
|
||||
@@ -2659,9 +2608,9 @@
|
||||
callback = createCallback(callback, thisArg, 4);
|
||||
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
if (noaccum && length) {
|
||||
accumulator = collection[++index];
|
||||
}
|
||||
@@ -2775,7 +2724,7 @@
|
||||
collection = values(collection);
|
||||
}
|
||||
if (n == null || guard) {
|
||||
var length = toLength(collection && collection.length);
|
||||
var length = collection ? collection.length : 0;
|
||||
return length > 0 ? collection[baseRandom(0, length - 1)] : undefined;
|
||||
}
|
||||
var result = shuffle(collection);
|
||||
@@ -2834,7 +2783,9 @@
|
||||
*/
|
||||
function size(collection) {
|
||||
var length = collection ? collection.length : 0;
|
||||
return typeof length == 'number' && length > -1 ? length : keys(collection).length;
|
||||
return (typeof length == 'number' && length > -1 && length <= maxSafeInteger)
|
||||
? length
|
||||
: keys(collection).length;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2884,9 +2835,9 @@
|
||||
|
||||
predicate = createCallback(predicate, thisArg, 3);
|
||||
var index = -1,
|
||||
length = toLength(collection && collection.length);
|
||||
length = collection ? collection.length : 0;
|
||||
|
||||
if (length) {
|
||||
if (typeof length == 'number' && length > -1 && length <= maxSafeInteger) {
|
||||
while (++index < length) {
|
||||
if (predicate(collection[index], index, collection)) {
|
||||
return true;
|
||||
@@ -3720,60 +3671,6 @@
|
||||
return object;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is like `_.findIndex` except that it returns the key of the
|
||||
* first element the predicate returns truthy for, instead of the element itself.
|
||||
*
|
||||
* If a property name is provided for `predicate` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
*
|
||||
* If an object is provided for `predicate` the created "_.where" style callback
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Objects
|
||||
* @param {Object} object The object to search.
|
||||
* @param {Function|Object|string} [predicate=identity] The function called
|
||||
* per iteration. If a property name or object is provided it will be used
|
||||
* to create a "_.pluck" or "_.where" style callback, respectively.
|
||||
* @param {*} [thisArg] The `this` binding of `predicate`.
|
||||
* @returns {string|undefined} Returns the key of the found element, else `undefined`.
|
||||
* @example
|
||||
*
|
||||
* var characters = {
|
||||
* 'barney': { 'age': 36 },
|
||||
* 'fred': { 'age': 40, 'blocked': true },
|
||||
* 'pebbles': { 'age': 1 }
|
||||
* };
|
||||
*
|
||||
* _.findKey(characters, function(chr) {
|
||||
* return chr.age < 40;
|
||||
* });
|
||||
* // => 'barney' (property order is not guaranteed across environments)
|
||||
*
|
||||
* // using "_.where" callback shorthand
|
||||
* _.findKey(characters, { 'age': 1 });
|
||||
* // => 'pebbles'
|
||||
*
|
||||
* // using "_.pluck" callback shorthand
|
||||
* _.findKey(characters, 'blocked');
|
||||
* // => 'fred'
|
||||
*/
|
||||
function findKey(object, predicate, thisArg) {
|
||||
var result;
|
||||
|
||||
predicate = createCallback(predicate, thisArg, 3);
|
||||
baseForOwn(object, function(value, key, object) {
|
||||
if (predicate(value, key, object)) {
|
||||
result = key;
|
||||
return breakIndicator;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a sorted array of property names of all enumerable properties,
|
||||
* own and inherited, of `object` that have function values.
|
||||
@@ -4939,7 +4836,7 @@
|
||||
*/
|
||||
function property(key) {
|
||||
return function(object) {
|
||||
return object[key];
|
||||
return object == null ? undefined : object[key];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5018,7 +4915,7 @@
|
||||
*/
|
||||
function range(start, end, step) {
|
||||
start = +start || 0;
|
||||
step = step == null ? 1 : (+step || 0);
|
||||
step = +step || 1;
|
||||
|
||||
if (end == null) {
|
||||
end = start;
|
||||
@@ -5029,7 +4926,7 @@
|
||||
// use `Array(length)` so engines like Chakra and V8 avoid slower modes
|
||||
// http://youtu.be/XAqIpGU8ZZk#t=17m25s
|
||||
var index = -1,
|
||||
length = nativeMax(0, ceil((end - start) / step)),
|
||||
length = nativeMax(0, ceil((end - start) / (step || 1))),
|
||||
result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
70
dist/lodash.underscore.min.js
vendored
70
dist/lodash.underscore.min.js
vendored
@@ -3,38 +3,38 @@
|
||||
* Lo-Dash 2.4.1 (Custom Build) lodash.com/license | Underscore.js 1.6.0 underscorejs.org/LICENSE
|
||||
* Build: `lodash underscore -o ./dist/lodash.underscore.js`
|
||||
*/
|
||||
;(function(){function n(n,r,t){t=(+t||0)-1;for(var e=n?n.length:0;++t<e;)if(n[t]===r)return t;return-1}function r(n,r){var t;n:{t=n.a;var e=r.a;if(t!==e){if(t>e||typeof t=="undefined"){t=1;break n}if(t<e||typeof e=="undefined"){t=-1;break n}}t=0}return t||n.b-r.b}function t(n){return Ar[n]}function e(n){return"\\"+Or[n]}function u(n){return Tr[n]}function o(n){return n instanceof o?n:new i(n)}function i(n,r){this.__chain__=!!r,this.__wrapped__=n}function f(n){return L(n)?Hr(n):{}}function a(n,r,t){if(typeof n!="function")return tr;
|
||||
if(typeof r=="undefined"||!("prototype"in n))return n;switch(t){case 1:return function(t){return n.call(r,t)};case 2:return function(t,e){return n.call(r,t,e)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)}}return z(n,r)}function c(n){function r(){for(var n=-1,a=arguments.length,c=Array(a);++n<a;)c[n]=arguments[n];if(u){for(var n=u,a=o,l=a.length,p=-1,s=Xr(c.length-l,0),g=-1,h=n.length,v=Array(s+h);++g<h;)v[g]=n[g];for(;++p<l;)v[a[p]]=c[p];
|
||||
for(;s--;)v[g++]=c[p++];c=v}return n=i?e:this,this instanceof r?(n=f(t.prototype),a=t.apply(n,c),L(a)?a:n):t.apply(n,c)}var t=n[0],e=n[3],u=n[4],o=n[6],i=n[1]&fr;return r}function l(n,r){var t=n?n.length:0;if(!t)return[];for(var e=-1,u=d(),o=[];++e<t;){var i=n[e];0>u(r,i)&&o.push(i)}return o}function p(n,r){var t=-1,e=n?n.length:0;if(typeof e=="number")for(e=j(e);++t<e&&r(n[t],t,n)!==cr;);else h(n,r,lt);return n}function s(n,r){var t=n?n.length:0;if(typeof t=="number")for(t=j(t);t--&&r(n[t],t,n)!==cr;);else for(var t=lt(n),e=t.length;e--;){var u=t[e];
|
||||
if(r(n[u],u,n)===cr)break}return n}function g(n,r,t,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var i=n[e];if(i&&typeof i=="object"&&typeof i.length=="number"&&(ct(i)||J(i))){r||(i=g(i,r,t));var f=-1,a=i.length,c=o.length;for(o.length+=a;++f<a;)o[c++]=i[f]}else t||o.push(i)}return o}function h(n,r,t){var e=-1;t=t(n);for(var u=t.length;++e<u;){var o=t[e];if(r(n[o],o,n)===cr)break}return n}function v(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;var u=typeof n,i=typeof r;if(n===n&&(null==n||null==r||"function"!=u&&"object"!=u&&"function"!=i&&"object"!=i))return false;
|
||||
if(i=Ir.call(n),u=Ir.call(r),i!=u)return false;switch(i){case _r:case dr:return+n==+r;case br:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case jr:case xr:return n==r+""}if(u=i==mr,!u){var f=n instanceof o,a=r instanceof o;if(f||a)return v(f?n.__wrapped__:n,a?r.__wrapped__:r,t,e);if(i!=wr)return false;if(i=Pr.call(n,"constructor"),f=Pr.call(r,"constructor"),i!==f||!i&&(i=n.constructor,f=r.constructor,i!=f&&!(K(i)&&i instanceof i&&K(f)&&f instanceof f)&&"constructor"in n&&"constructor"in r))return false}for(t||(t=[]),e||(e=[]),i=t.length;i--;)if(t[i]==n)return e[i]==r;
|
||||
var c=true,l=0;if(t.push(n),e.push(r),u){if(l=r.length,c=l==n.length)for(;l--&&(c=v(n[l],r[l],t,e)););}else h(r,function(r,u,o){return Pr.call(o,u)?(l++,!(c=Pr.call(n,u)&&v(n[u],r,t,e))&&cr):void 0},Y),c&&h(n,function(n,r,t){return Pr.call(t,r)?!(c=-1<--l)&&cr:void 0},Y);return t.pop(),e.pop(),c}function y(n,r,t){var e=n?n.length:0;if(!e)return[];for(var u=-1,o=d(),i=[],f=t&&!r?[]:i;++u<e;){var a=n[u],c=t?t(a,u,n):a;r?u&&f===c||(f=c,i.push(a)):0>o(f,c)&&(t&&f.push(c),i.push(a))}return i}function m(n,r){return function(t,e,u){var o=r?[[],[]]:{};
|
||||
e=rr(e,u,3),u=-1;var i=j(t&&t.length);if(i)for(;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}else p(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function _(n,r,t,e,u,i,f,a){var l=r&ar;if(!K(n))throw new TypeError;if(l&&!u.length&&(r&=~ar,l=u=false),l){f=u;for(var l=-1,p=f.length,s=[];++l<p;)f[l]===o&&s.push(l);f=s}return c([n,r,t,e,u,i,f,a])}function d(){var r=(r=o.indexOf)===A?n:r;return r}function b(n){return typeof n=="function"&&Dr.test(Cr.call(n))}function w(n){for(var r=-1,t=Y(n),e=t.length,u=[];++r<e;){var o=t[r];
|
||||
Pr.call(n,o)&&u.push(o)}return u}function j(n){return n=+n||0,0>n?0:n<$r?n:$r}function x(n,r,t){return null==r||t?n?n[0]:ir:E(n,0,0>r?0:r)}function A(r,t,e){var u=r?r.length:0;if(typeof e=="number")e=0>e?Xr(0,u+e):e||0;else if(e)return e=O(r,t),u&&r[e]===t?e:-1;return n(r,t,e)}function T(n,r,t){return E(n,null==r||t?1:0>r?0:r)}function E(n,r,t){var e=-1,u=n?n.length:0;for(r=+r||0,0>r?r=Xr(u+r,0):r>u&&(r=u),t=typeof t=="undefined"?u:+t||0,0>t?t=Xr(u+t,0):t>u&&(t=u),u=r>t?0:t-r,t=Array(u);++e<u;)t[e]=n[r+e];
|
||||
return t}function O(n,r,t,e){var u=0,o=n?n.length:u;for(t=t?rr(t,e,1):tr,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function S(n,r,t,e){if(!n||!n.length)return[];var u=typeof r;return"boolean"!=u&&null!=r&&(e=t,t=r,r=false,"number"!=u&&"string"!=u||!e||e[t]!==n||(t=null)),null!=t&&(t=rr(t,e,3)),y(n,r,t)}function k(n,r){var t=d(),e=false;return j(n&&n.length)?-1<t(n,r):(p(n,function(n){return(e=n===r)&&cr}),e)}function N(n,r,t){var e=true;r=rr(r,t,3),t=-1;var u=j(n&&n.length);if(u){for(;++t<u;)if(!r(n[t],t,n))return false
|
||||
}else p(n,function(n,t,u){return!(e=!!r(n,t,u))&&cr});return e}function q(n,r,t){var e=[];r=rr(r,t,3),t=-1;var u=j(n&&n.length);if(u)for(;++t<u;){var o=n[t];r(o,t,n)&&e.push(o)}else p(n,function(n,t,u){r(n,t,u)&&e.push(n)});return e}function F(n,r,t){if(j(n&&n.length)){var e;n:{e=-1;var u=n?n.length:0;for(r=rr(r,t,3);++e<u;)if(r(n[e],e,n))break n;e=-1}return-1<e?n[e]:ir}return e=G(n,r,t),typeof e=="string"?n[e]:ir}function B(n,r,t){var e=-1,u=j(n&&n.length);if(r=r&&typeof t=="undefined"?r:a(r,t,3),u)for(;++e<u&&r(n[e],e,n)!==cr;);else p(n,r);
|
||||
return n}function M(n,r,t){var e=-1,u=j(n&&n.length);if(r=rr(r,t,3),u)for(var o=Array(u);++e<u;)o[e]=r(n[e],e,n);else o=[],p(n,function(n,t,u){o[++e]=r(n,t,u)});return o}function R(n,r,t){var e=-1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=j(n&&n.length);if(null==r&&i)for(;++o<i;)t=n[o],t>u&&(u=t);else r=rr(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function $(n,r,t,e){var u=3>arguments.length;r=rr(r,e,4);var o=-1,i=j(n&&n.length);if(i)for(u&&i&&(t=n[++o]);++o<i;)t=r(t,n[o],o,n);
|
||||
else p(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)});return t}function I(n,r,t,e){var u=3>arguments.length;return r=rr(r,e,4),s(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function D(n){var r=-1,t=n&&n.length,e=Array(0>t?0:t>>>0);return p(n,function(n){var t;t=++r,t=0+zr(nt()*(t-0+1)),e[r]=e[t],e[t]=n}),e}function W(n,r,t){var e;r=rr(r,t,3),t=-1;var u=j(n&&n.length);if(u){for(;++t<u;)if(r(n[t],t,n))return true}else p(n,function(n,t,u){return(e=r(n,t,u))&&cr});return!!e}function z(n,r){return 3>arguments.length?_(n,fr,null,r):_(n,fr|ar,null,r,E(arguments,2))
|
||||
}function C(n,r,t){var e,u,o,i,f,a,c,l=0,p=false,s=true;if(!K(n))throw new TypeError;if(r=0>r?0:r,true===t)var g=true,s=false;else L(t)&&(g=t.leading,p="maxWait"in t&&(Xr(r,t.maxWait)||0),s="trailing"in t?t.trailing:s);var h=function(){var t=r-(pt()-i);0>=t||t>r?(u&&clearTimeout(u),t=c,u=a=c=ir,t&&(l=pt(),o=n.apply(f,e),a||u||(e=f=null))):a=setTimeout(h,t)},v=function(){a&&clearTimeout(a),u=a=c=ir,(s||p!==r)&&(l=pt(),o=n.apply(f,e),a||u||(e=f=null))};return function(){if(e=arguments,i=pt(),f=this,c=s&&(a||!g),false===p)var t=g&&!a;
|
||||
else{u||g||(l=i);var y=p-(i-l),m=0>=y||y>p;m?(u&&(u=clearTimeout(u)),l=i,o=n.apply(f,e)):u||(u=setTimeout(v,y))}return m&&a?a=clearTimeout(a):a||r===p||(a=setTimeout(h,r)),t&&(m=true,o=n.apply(f,e)),!m||a||u||(e=f=null),o}}function P(n){if(!K(n))throw new TypeError;return function(){return!n.apply(this,arguments)}}function U(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)n[f]=r[f]}return n}function V(n,r,t){if(!n)return n;
|
||||
var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)"undefined"==typeof n[f]&&(n[f]=r[f])}return n}function G(n,r,t){var e;return r=rr(r,t,3),h(n,function(n,t,u){return r(n,t,u)?(e=t,cr):void 0},lt),e}function H(n){var r=[];return h(n,function(n,t){K(n)&&r.push(t)},Y),r.sort()}function J(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ir.call(n)==yr||false}function K(n){return typeof n=="function"}function L(n){var r=typeof n;
|
||||
return n&&("function"==r||"object"==r)||false}function Q(n){var r=typeof n;return"number"==r||n&&"object"==r&&Ir.call(n)==br||false}function X(n){return typeof n=="string"||n&&typeof n=="object"&&Ir.call(n)==xr||false}function Y(n){var r=[];if(!L(n))return r;for(var t in n)r.push(t);return r}function Z(n){for(var r=-1,t=g(arguments,true,false,1),e=t.length,u={};++r<e;){var o=t[r];o in n&&(u[o]=n[o])}return u}function nr(n){for(var r=-1,t=lt(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function rr(n,r,t){var e=typeof n;
|
||||
return"function"==e||null==n?(typeof r=="undefined"||!("prototype"in n))&&n||a(n,r,t):"object"!=e?or(n):er(n)}function tr(n){return n}function er(n){n||(n={});var r=lt(n),t=r.length;return function(e){for(var u=t,o=true;u--&&(o=r[u],o=Pr.call(e,o)&&e[o]===n[o]););return o}}function ur(n){for(var r=-1,t=H(n),e=t.length;++r<e;){var u=t[r];o.prototype[u]=function(){var r=o[u]=n[u];return function(){var n=[this.__wrapped__];return Ur.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function or(n){return function(r){return r[n]
|
||||
}}var ir,fr=1,ar=16,cr="__lodash@2.4.1__breaker__",lr=0,pr=/&(?:amp|lt|gt|quot|#x27);/g,sr=/[&<>"']/g,gr=/($^)/,hr=/[.*+?^${}()|[\]\\]/g,vr=/['\n\r\t\u2028\u2029\\]/g,yr="[object Arguments]",mr="[object Array]",_r="[object Boolean]",dr="[object Date]",br="[object Number]",wr="[object Object]",jr="[object RegExp]",xr="[object String]",Ar={"&":"&","<":"<",">":">",'"':""","'":"'"},Tr={"&":"&","<":"<",">":">",""":'"',"'":"'"},Er={"function":true,object:true},Or={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Sr=Er[typeof window]&&window||this,kr=Er[typeof exports]&&exports&&!exports.nodeType&&exports,Nr=Er[typeof module]&&module&&!module.nodeType&&module,qr=kr&&Nr&&typeof global=="object"&&global;
|
||||
!qr||qr.global!==qr&&qr.window!==qr&&qr.self!==qr||(Sr=qr);var Fr=Nr&&Nr.exports===kr&&kr,Br=Array.prototype,Mr=Object.prototype,Rr=Sr._,$r=Math.pow(2,53)-1,Ir=Mr.toString,Dr=RegExp("^"+(null==Ir?"":(Ir+"").replace(hr,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wr=Math.ceil,zr=Math.floor,Cr=Function.prototype.toString,Pr=Mr.hasOwnProperty,Ur=Br.push,Vr=Mr.propertyIsEnumerable,Gr=Br.splice,Hr=b(Hr=Object.create)&&Hr,Jr=b(Jr=Array.isArray)&&Jr,Kr=Sr.isFinite,Lr=Sr.isNaN,Qr=b(Qr=Object.keys)&&Qr,Xr=Math.max,Yr=Math.min,Zr=b(Zr=Date.now)&&Zr,nt=Math.random;
|
||||
i.prototype=o.prototype;var rt={};!function(){var n={0:1,length:1};rt.spliceObjects=(Gr.call(n,0,1),!n[0])}(1),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Hr||(f=function(){function n(){}return function(r){if(L(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Sr.Object()}}());var tt=T,et=m(function(n,r,t){Pr.call(n,t)?n[t]++:n[t]=1}),ut=m(function(n,r,t){Pr.call(n,t)?n[t].push(r):n[t]=[r]}),ot=m(function(n,r,t){n[t]=r
|
||||
}),it=m(function(n,r,t){n[t?0:1].push(r)},true),ft=M,at=q;J(arguments)||(J=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Pr.call(n,"callee")&&!Vr.call(n,"callee")||false});var ct=Jr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Ir.call(n)==mr||false};K(/x/)&&(K=function(n){return typeof n=="function"&&"[object Function]"==Ir.call(n)});var lt=Qr?function(n){return L(n)?Qr(n):[]}:w,pt=Zr||function(){return(new Date).getTime()};o.after=function(n,r){if(!K(r))throw new TypeError;
|
||||
return function(){return 1>--n?r.apply(this,arguments):void 0}},o.bind=z,o.bindAll=function(n){for(var r=1<arguments.length?g(arguments,true,false,1):H(n),t=-1,e=r.length;++t<e;){var u=r[t];n[u]=_(n[u],fr,null,n)}return n},o.chain=function(n){return n=new i(n),n.__chain__=true,n},o.compact=function(n){for(var r=-1,t=n?n.length:0,e=0,u=[];++r<t;){var o=n[r];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,r=n.length,t=r;t--;)if(!K(n[t]))throw new TypeError;return function(){for(var t=r-1,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);
|
||||
return e}},o.constant=function(n){return function(){return n}},o.countBy=et,o.debounce=C,o.defaults=V,o.defer=function(n){if(!K(n))throw new TypeError;var r=E(arguments,1);return setTimeout(function(){n.apply(ir,r)},1)},o.delay=function(n,r){if(!K(n))throw new TypeError;var t=E(arguments,2);return setTimeout(function(){n.apply(ir,t)},r)},o.difference=function(n){return l(n,g(arguments,true,true,1))},o.drop=tt,o.filter=q,o.flatten=function(n,r,t){if(!n||!n.length)return[];var e=typeof r;return"number"!=e&&"string"!=e||!t||t[r]!==n||(r=false),g(n,r)
|
||||
},o.forEach=B,o.functions=H,o.groupBy=ut,o.indexBy=ot,o.initial=function(n,r,t){return r=(n?n.length:0)-(null==r||t?1:r),E(n,0,0>r?0:r)},o.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(ct(e)||J(e))&&n.push(e)}var t=n.length,u=n[0],o=-1,i=d(),f=u?u.length:0,a=[];n:for(;++o<f;)if(e=u[o],0>i(a,e)){for(r=t;--r;)if(0>i(n[r],e))continue n;a.push(e)}return a},o.invert=function(n){for(var r=-1,t=lt(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o}return u},o.invoke=function(n,r){var t=E(arguments,2),e=-1,u=typeof r=="function",o=n&&n.length,i=Array(0>o?0:o>>>0);
|
||||
return p(n,function(n){i[++e]=(u?r:n[r]).apply(n,t)}),i},o.keys=lt,o.map=M,o.matches=er,o.max=R,o.memoize=function(n,r){var t={};return function(){var e=r?r.apply(this,arguments):"_"+arguments[0];return Pr.call(t,e)?t[e]:t[e]=n.apply(this,arguments)}},o.min=function(n,r,t){var e=1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=j(n&&n.length);if(null==r&&i)for(;++o<i;)t=n[o],t<u&&(u=t);else r=rr(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t<e&&(e=t,u=n)});return u},o.omit=function(n){for(var r=g(arguments,true,false,1),t=r.length;t--;)r[t]=r[t]+"";
|
||||
return Z(n,l(Y(n),r))},o.once=function(n){var r,t;if(!K(n))throw new TypeError;return function(){return r?t:(r=true,t=n.apply(this,arguments),n=null,t)}},o.pairs=function(n){for(var r=-1,t=lt(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u},o.partial=function(n){return _(n,ar,null,null,E(arguments,1))},o.partition=it,o.pick=Z,o.pluck=ft,o.property=or,o.range=function(n,r,t){n=+n||0,t=null==t?1:+t||0,null==r?(r=n,n=0):r=+r||0;var e=-1;r=Xr(0,Wr((r-n)/t));for(var u=Array(r);++e<r;)u[e]=n,n+=t;
|
||||
return u},o.reject=function(n,r,t){return r=rr(r,t,3),q(n,P(r))},o.rest=T,o.shuffle=D,o.sortBy=function(n,t,e){var u=-1,o=n&&n.length,i=Array(0>o?0:o>>>0);for(t=rr(t,e,3),p(n,function(n,r,e){i[++u]={a:t(n,r,e),b:u,c:n}}),o=i.length,i.sort(r);o--;)i[o]=i[o].c;return i},o.tap=function(n,r){return r(n),n},o.throttle=function(n,r,t){var e=true,u=true;if(!K(n))throw new TypeError;return false===t?e=false:L(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),C(n,r,{leading:e,maxWait:r,trailing:u})},o.times=function(n,r,t){n=-1<(n=+n)?n:0;
|
||||
var e=-1,u=Array(n);for(r=a(r,t,1);++e<n;)u[e]=r(e);return u},o.toArray=function(n){return ct(n)?E(n):n&&typeof n.length=="number"?M(n):nr(n)},o.union=function(){return y(g(arguments,true,true))},o.uniq=S,o.values=nr,o.where=at,o.without=function(){return l(arguments[0],E(arguments,1))},o.wrap=function(n,r){return _(r,ar,null,null,[n])},o.zip=function(){for(var n=-1,r=R(ft(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=ft(arguments,n);return t},o.collect=M,o.each=B,o.extend=U,o.methods=H,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};
|
||||
for(r||!e||ct(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=q,o.tail=T,o.unique=S,o.clone=function(n){return L(n)?ct(n)?E(n):U({},n):n},o.contains=k,o.escape=function(n){return null==n?"":(n+"").replace(sr,t)},o.every=N,o.find=F,o.has=function(n,r){return n?Pr.call(n,r):false},o.identity=tr,o.indexOf=A,o.isArguments=J,o.isArray=ct,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Ir.call(n)==_r||false},o.isDate=function(n){return n&&typeof n=="object"&&Ir.call(n)==dr||false
|
||||
},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=function(n){if(!n)return true;if(ct(n)||X(n))return!n.length;for(var r in n)if(Pr.call(n,r))return false;return true},o.isEqual=function(n,r){return v(n,r)},o.isFinite=function(n){return Kr(n)&&!Lr(parseFloat(n))},o.isFunction=K,o.isNaN=function(n){return Q(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=Q,o.isObject=L,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&Ir.call(n)==jr||false},o.isString=X,o.isUndefined=function(n){return typeof n=="undefined"
|
||||
},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(t|=0,e=(0>t?Xr(0,e+t):Yr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=ur,o.noConflict=function(){return Sr._=Rr,this},o.now=pt,o.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+zr(nt()*(r-n+1))},o.reduce=$,o.reduceRight=I,o.result=function(n,r){if(null!=n){var t=n[r];return K(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r?r:lt(n).length},o.some=W,o.sortedIndex=O,o.template=function(n,r,t){var u=o,i=u.templateSettings;
|
||||
n=(null==n?"":n)+"",t=V({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||gr).source+"|"+(t.interpolate||gr).source+"|"+(t.evaluate||gr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(vr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r}),a+="';",i||(a="with(obj||{}){"+a+"}"),a="function("+(i||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
|
||||
try{var c=Function("_","return "+a)(u)}catch(l){throw l.source=a,l}return r?c(r):(c.source=a,c)},o.unescape=function(n){return null==n?"":(n+="",0>n.indexOf(";")?n:n.replace(pr,u))},o.uniqueId=function(n){var r=++lr+"";return n?n+r:r},o.all=N,o.any=W,o.detect=F,o.findWhere=F,o.foldl=$,o.foldr=I,o.include=k,o.inject=$,o.first=x,o.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:ir:(r=e-r,E(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=nr(n)),null==r||t?(r=j(n&&n.length),0<r?n[0+zr(nt()*(r-1-0+1))]:ir):(n=D(n),n.length=Yr(Xr(0,r),n.length),n)
|
||||
},o.take=x,o.head=x,ur(U({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},p("pop push reverse shift sort splice unshift".split(" "),function(n){var r=Br[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),rt.spliceObjects||0!==n.length||delete n[0],this}}),p(["concat","join","slice"],function(n){var r=Br[n];o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n
|
||||
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Sr._=o, define("underscore",function(){return o})):kr&&Nr?Fr?(Nr.exports=o)._=o:kr._=o:Sr._=o}).call(this);
|
||||
;(function(){function n(n,r,t){t=(+t||0)-1;for(var e=n?n.length:0;++t<e;)if(n[t]===r)return t;return-1}function r(n,r){var t;n:{t=n.a;var e=r.a;if(t!==e){if(t>e||typeof t=="undefined"){t=1;break n}if(t<e||typeof e=="undefined"){t=-1;break n}}t=0}return t||n.b-r.b}function t(n){return jr[n]}function e(n){return"\\"+Tr[n]}function u(n){return xr[n]}function o(n){return n instanceof o?n:new i(n)}function i(n,r){this.__chain__=!!r,this.__wrapped__=n}function f(n){return J(n)?Vr(n):{}}function a(n,r,t){if(typeof n!="function")return nr;
|
||||
if(typeof r=="undefined"||!("prototype"in n))return n;switch(t){case 1:return function(t){return n.call(r,t)};case 2:return function(t,e){return n.call(r,t,e)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,o){return n.call(r,t,e,u,o)}}return W(n,r)}function c(n){function r(){for(var n=-1,a=arguments.length,c=Array(a);++n<a;)c[n]=arguments[n];if(u){for(var n=u,a=o,l=a.length,p=-1,s=Lr(c.length-l,0),h=-1,g=n.length,v=Array(s+g);++h<g;)v[h]=n[h];for(;++p<l;)v[a[p]]=c[p];
|
||||
for(;s--;)v[h++]=c[p++];c=v}return n=i?e:this,this instanceof r?(n=f(t.prototype),a=t.apply(n,c),J(a)?a:n):t.apply(n,c)}var t=n[0],e=n[3],u=n[4],o=n[6],i=n[1]∨return r}function l(n,r){var t=n?n.length:0;if(!t)return[];for(var e=-1,u=b(),o=[];++e<t;){var i=n[e];0>u(r,i)&&o.push(i)}return o}function p(n,r){var t=-1,e=n?n.length:0;if(typeof e=="number"&&-1<e&&e<=Mr)for(;++t<e&&r(n[t],t,n)!==fr;);else g(n,r,at);return n}function s(n,r){var t=n?n.length:0;if(typeof t=="number"&&-1<t&&t<=Mr)for(;t--&&r(n[t],t,n)!==fr;);else for(var t=at(n),e=t.length;e--;){var u=t[e];
|
||||
if(r(n[u],u,n)===fr)break}return n}function h(n,r,t,e){e=(+e||0)-1;for(var u=n?n.length:0,o=[];++e<u;){var i=n[e];if(i&&typeof i=="object"&&typeof i.length=="number"&&(ft(i)||G(i))){r||(i=h(i,r,t));var f=-1,a=i.length,c=o.length;for(o.length+=a;++f<a;)o[c++]=i[f]}else t||o.push(i)}return o}function g(n,r,t){var e=-1;t=t(n);for(var u=t.length;++e<u;){var o=t[e];if(r(n[o],o,n)===fr)break}return n}function v(n,r,t,e){if(n===r)return 0!==n||1/n==1/r;var u=typeof n,i=typeof r;if(n===n&&(null==n||null==r||"function"!=u&&"object"!=u&&"function"!=i&&"object"!=i))return false;
|
||||
if(i=Rr.call(n),u=Rr.call(r),i!=u)return false;switch(i){case yr:case mr:return+n==+r;case _r:return n!=+n?r!=+r:0==n?1/n==1/r:n==+r;case dr:case wr:return n==r+""}if(u=i==vr,!u){var f=n instanceof o,a=r instanceof o;if(f||a)return v(f?n.__wrapped__:n,a?r.__wrapped__:r,t,e);if(i!=br)return false;if(i=zr.call(n,"constructor"),f=zr.call(r,"constructor"),i!==f||!i&&(i=n.constructor,f=r.constructor,i!=f&&!(H(i)&&i instanceof i&&H(f)&&f instanceof f)&&"constructor"in n&&"constructor"in r))return false}for(t||(t=[]),e||(e=[]),i=t.length;i--;)if(t[i]==n)return e[i]==r;
|
||||
var c=true,l=0;if(t.push(n),e.push(r),u){if(l=r.length,c=l==n.length)for(;l--&&(c=v(n[l],r[l],t,e)););}else g(r,function(r,u,o){return zr.call(o,u)?(l++,!(c=zr.call(n,u)&&v(n[u],r,t,e))&&fr):void 0},Q),c&&g(n,function(n,r,t){return zr.call(t,r)?!(c=-1<--l)&&fr:void 0},Q);return t.pop(),e.pop(),c}function y(n,r,t){var e=n?n.length:0;if(!e)return[];for(var u=-1,o=b(),i=[],f=t&&!r?[]:i;++u<e;){var a=n[u],c=t?t(a,u,n):a;r?u&&f===c||(f=c,i.push(a)):0>o(f,c)&&(t&&f.push(c),i.push(a))}return i}function m(n,r){return function(t,e,u){var o=r?[[],[]]:{};
|
||||
e=Z(e,u,3),u=-1;var i=t?t.length:0;if(typeof i=="number"&&-1<i&&i<=Mr)for(;++u<i;){var f=t[u];n(o,f,e(f,u,t),t)}else p(t,function(r,t,u){n(o,r,e(r,t,u),u)});return o}}function _(n,r,t,e,u,i,f,a){var l=r&ir;if(!H(n))throw new TypeError;if(l&&!u.length&&(r&=~ir,l=u=false),l){f=u;for(var l=-1,p=f.length,s=[];++l<p;)f[l]===o&&s.push(l);f=s}return c([n,r,t,e,u,i,f,a])}function b(){var r=(r=o.indexOf)===x?n:r;return r}function d(n){return typeof n=="function"&&$r.test(Wr.call(n))}function w(n){for(var r=-1,t=Q(n),e=t.length,u=[];++r<e;){var o=t[r];
|
||||
zr.call(n,o)&&u.push(o)}return u}function j(n,r,t){return null==r||t?n?n[0]:ur:T(n,0,0>r?0:r)}function x(r,t,e){var u=r?r.length:0;if(typeof e=="number")e=0>e?Lr(0,u+e):e||0;else if(e)return e=E(r,t),u&&r[e]===t?e:-1;return n(r,t,e)}function A(n,r,t){return T(n,null==r||t?1:0>r?0:r)}function T(n,r,t){var e=-1,u=n?n.length:0;for(r=+r||0,0>r?r=Lr(u+r,0):r>u&&(r=u),t=typeof t=="undefined"?u:+t||0,0>t?t=Lr(u+t,0):t>u&&(t=u),u=r>t?0:t-r,t=Array(u);++e<u;)t[e]=n[r+e];return t}function E(n,r,t,e){var u=0,o=n?n.length:u;
|
||||
for(t=t?Z(t,e,1):nr,r=t(r);u<o;)e=u+o>>>1,t(n[e])<r?u=e+1:o=e;return u}function O(n,r,t,e){if(!n||!n.length)return[];var u=typeof r;return"boolean"!=u&&null!=r&&(e=t,t=r,r=false,"number"!=u&&"string"!=u||!e||e[t]!==n||(t=null)),null!=t&&(t=Z(t,e,3)),y(n,r,t)}function S(n,r){var t=b(),e=n?n.length:0,u=false;return typeof e=="number"&&-1<e&&e<=Mr?-1<t(n,r):(p(n,function(n){return(u=n===r)&&fr}),u)}function k(n,r,t){var e=true;r=Z(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Mr){for(;++t<u;)if(!r(n[t],t,n))return false
|
||||
}else p(n,function(n,t,u){return!(e=!!r(n,t,u))&&fr});return e}function N(n,r,t){var e=[];r=Z(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Mr)for(;++t<u;){var o=n[t];r(o,t,n)&&e.push(o)}else p(n,function(n,t,u){r(n,t,u)&&e.push(n)});return e}function q(n,r,t){r=Z(r,t,3),t=-1;var e=n?n.length:0;if(typeof e!="number"||-1>=e||e>Mr){var u;return p(n,function(n,t,e){return r(n,t,e)?(u=n,fr):void 0}),u}for(;++t<e;){var o=n[t];if(r(o,t,n))return o}}function F(n,r,t){var e=-1,u=n?n.length:0;
|
||||
if(r=r&&typeof t=="undefined"?r:a(r,t,3),typeof u=="number"&&-1<u&&u<=Mr)for(;++e<u&&r(n[e],e,n)!==fr;);else p(n,r);return n}function B(n,r,t){var e=-1,u=n?n.length:0;if(r=Z(r,t,3),typeof u=="number"&&-1<u&&u<=Mr)for(var o=Array(u);++e<u;)o[e]=r(n[e],e,n);else o=[],p(n,function(n,t,u){o[++e]=r(n,t,u)});return o}function M(n,r,t){var e=-1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=n?n.length:0;if(null==r&&typeof i=="number"&&-1<i&&i<=Mr)for(;++o<i;)t=n[o],t>u&&(u=t);
|
||||
else r=Z(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t>e&&(e=t,u=n)});return u}function R(n,r,t,e){var u=3>arguments.length;r=Z(r,e,4);var o=-1,i=n?n.length:0;if(typeof i=="number"&&-1<i&&i<=Mr)for(u&&i&&(t=n[++o]);++o<i;)t=r(t,n[o],o,n);else p(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)});return t}function $(n,r,t,e){var u=3>arguments.length;return r=Z(r,e,4),s(n,function(n,e,o){t=u?(u=false,n):r(t,n,e,o)}),t}function I(n){var r=-1,t=n&&n.length,e=Array(0>t?0:t>>>0);return p(n,function(n){var t;t=++r,t=0+Dr(Yr()*(t-0+1)),e[r]=e[t],e[t]=n
|
||||
}),e}function D(n,r,t){var e;r=Z(r,t,3),t=-1;var u=n?n.length:0;if(typeof u=="number"&&-1<u&&u<=Mr){for(;++t<u;)if(r(n[t],t,n))return true}else p(n,function(n,t,u){return(e=r(n,t,u))&&fr});return!!e}function W(n,r){return 3>arguments.length?_(n,or,null,r):_(n,or|ir,null,r,T(arguments,2))}function z(n,r,t){var e,u,o,i,f,a,c,l=0,p=false,s=true;if(!H(n))throw new TypeError;if(r=0>r?0:r,true===t)var h=true,s=false;else J(t)&&(h=t.leading,p="maxWait"in t&&(Lr(r,t.maxWait)||0),s="trailing"in t?t.trailing:s);var g=function(){var t=r-(ct()-i);
|
||||
0>=t||t>r?(u&&clearTimeout(u),t=c,u=a=c=ur,t&&(l=ct(),o=n.apply(f,e),a||u||(e=f=null))):a=setTimeout(g,t)},v=function(){a&&clearTimeout(a),u=a=c=ur,(s||p!==r)&&(l=ct(),o=n.apply(f,e),a||u||(e=f=null))};return function(){if(e=arguments,i=ct(),f=this,c=s&&(a||!h),false===p)var t=h&&!a;else{u||h||(l=i);var y=p-(i-l),m=0>=y||y>p;m?(u&&(u=clearTimeout(u)),l=i,o=n.apply(f,e)):u||(u=setTimeout(v,y))}return m&&a?a=clearTimeout(a):a||r===p||(a=setTimeout(g,r)),t&&(m=true,o=n.apply(f,e)),!m||a||u||(e=f=null),o}
|
||||
}function C(n){if(!H(n))throw new TypeError;return function(){return!n.apply(this,arguments)}}function P(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)n[f]=r[f]}return n}function U(n,r,t){if(!n)return n;var e=arguments,u=0,o=e.length,i=typeof t;for("number"!=i&&"string"!=i||!e[3]||e[3][t]!==r||(o=2);++u<o;){r=e[u];for(var f in r)"undefined"==typeof n[f]&&(n[f]=r[f])}return n}function V(n){var r=[];
|
||||
return g(n,function(n,t){H(n)&&r.push(t)},Q),r.sort()}function G(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Rr.call(n)==gr||false}function H(n){return typeof n=="function"}function J(n){var r=typeof n;return n&&("function"==r||"object"==r)||false}function K(n){var r=typeof n;return"number"==r||n&&"object"==r&&Rr.call(n)==_r||false}function L(n){return typeof n=="string"||n&&typeof n=="object"&&Rr.call(n)==wr||false}function Q(n){var r=[];if(!J(n))return r;for(var t in n)r.push(t);return r}function X(n){for(var r=-1,t=h(arguments,true,false,1),e=t.length,u={};++r<e;){var o=t[r];
|
||||
o in n&&(u[o]=n[o])}return u}function Y(n){for(var r=-1,t=at(n),e=t.length,u=Array(e);++r<e;)u[r]=n[t[r]];return u}function Z(n,r,t){var e=typeof n;return"function"==e||null==n?(typeof r=="undefined"||!("prototype"in n))&&n||a(n,r,t):"object"!=e?er(n):rr(n)}function nr(n){return n}function rr(n){n||(n={});var r=at(n),t=r.length;return function(e){for(var u=t,o=true;u--&&(o=r[u],o=zr.call(e,o)&&e[o]===n[o]););return o}}function tr(n){for(var r=-1,t=V(n),e=t.length;++r<e;){var u=t[r];o.prototype[u]=function(){var r=o[u]=n[u];
|
||||
return function(){var n=[this.__wrapped__];return Cr.apply(n,arguments),n=r.apply(o,n),this.__chain__?new i(n,true):n}}()}}function er(n){return function(r){return null==r?ur:r[n]}}var ur,or=1,ir=16,fr="__lodash@2.4.1__breaker__",ar=0,cr=/&(?:amp|lt|gt|quot|#x27);/g,lr=/[&<>"']/g,pr=/($^)/,sr=/[.*+?^${}()|[\]\\]/g,hr=/['\n\r\t\u2028\u2029\\]/g,gr="[object Arguments]",vr="[object Array]",yr="[object Boolean]",mr="[object Date]",_r="[object Number]",br="[object Object]",dr="[object RegExp]",wr="[object String]",jr={"&":"&","<":"<",">":">",'"':""","'":"'"},xr={"&":"&","<":"<",">":">",""":'"',"'":"'"},Ar={"function":true,object:true},Tr={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Er=Ar[typeof window]&&window||this,Or=Ar[typeof exports]&&exports&&!exports.nodeType&&exports,Sr=Ar[typeof module]&&module&&!module.nodeType&&module,kr=Or&&Sr&&typeof global=="object"&&global;
|
||||
!kr||kr.global!==kr&&kr.window!==kr&&kr.self!==kr||(Er=kr);var Nr=Sr&&Sr.exports===Or&&Or,qr=Array.prototype,Fr=Object.prototype,Br=Er._,Mr=Math.pow(2,53)-1,Rr=Fr.toString,$r=RegExp("^"+(null==Rr?"":(Rr+"").replace(sr,"\\$&")).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ir=Math.ceil,Dr=Math.floor,Wr=Function.prototype.toString,zr=Fr.hasOwnProperty,Cr=qr.push,Pr=Fr.propertyIsEnumerable,Ur=qr.splice,Vr=d(Vr=Object.create)&&Vr,Gr=d(Gr=Array.isArray)&&Gr,Hr=Er.isFinite,Jr=Er.isNaN,Kr=d(Kr=Object.keys)&&Kr,Lr=Math.max,Qr=Math.min,Xr=d(Xr=Date.now)&&Xr,Yr=Math.random;
|
||||
i.prototype=o.prototype;var Zr={};!function(){var n={0:1,length:1};Zr.spliceObjects=(Ur.call(n,0,1),!n[0])}(1),o.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Vr||(f=function(){function n(){}return function(r){if(J(r)){n.prototype=r;var t=new n;n.prototype=null}return t||Er.Object()}}());var nt=A,rt=m(function(n,r,t){zr.call(n,t)?n[t]++:n[t]=1}),tt=m(function(n,r,t){zr.call(n,t)?n[t].push(r):n[t]=[r]}),et=m(function(n,r,t){n[t]=r
|
||||
}),ut=m(function(n,r,t){n[t?0:1].push(r)},true),ot=B,it=N;G(arguments)||(G=function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&zr.call(n,"callee")&&!Pr.call(n,"callee")||false});var ft=Gr||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&Rr.call(n)==vr||false};H(/x/)&&(H=function(n){return typeof n=="function"&&"[object Function]"==Rr.call(n)});var at=Kr?function(n){return J(n)?Kr(n):[]}:w,ct=Xr||function(){return(new Date).getTime()};o.after=function(n,r){if(!H(r))throw new TypeError;
|
||||
return function(){return 1>--n?r.apply(this,arguments):void 0}},o.bind=W,o.bindAll=function(n){for(var r=1<arguments.length?h(arguments,true,false,1):V(n),t=-1,e=r.length;++t<e;){var u=r[t];n[u]=_(n[u],or,null,n)}return n},o.chain=function(n){return n=new i(n),n.__chain__=true,n},o.compact=function(n){for(var r=-1,t=n?n.length:0,e=0,u=[];++r<t;){var o=n[r];o&&(u[e++]=o)}return u},o.compose=function(){for(var n=arguments,r=n.length,t=r;t--;)if(!H(n[t]))throw new TypeError;return function(){for(var t=r-1,e=n[t].apply(this,arguments);t--;)e=n[t].call(this,e);
|
||||
return e}},o.constant=function(n){return function(){return n}},o.countBy=rt,o.debounce=z,o.defaults=U,o.defer=function(n){if(!H(n))throw new TypeError;var r=T(arguments,1);return setTimeout(function(){n.apply(ur,r)},1)},o.delay=function(n,r){if(!H(n))throw new TypeError;var t=T(arguments,2);return setTimeout(function(){n.apply(ur,t)},r)},o.difference=function(n){return l(n,h(arguments,true,true,1))},o.drop=nt,o.filter=N,o.flatten=function(n,r,t){if(!n||!n.length)return[];var e=typeof r;return"number"!=e&&"string"!=e||!t||t[r]!==n||(r=false),h(n,r)
|
||||
},o.forEach=F,o.functions=V,o.groupBy=tt,o.indexBy=et,o.initial=function(n,r,t){return r=(n?n.length:0)-(null==r||t?1:r),T(n,0,0>r?0:r)},o.intersection=function(){for(var n=[],r=-1,t=arguments.length;++r<t;){var e=arguments[r];(ft(e)||G(e))&&n.push(e)}var t=n.length,u=n[0],o=-1,i=b(),f=u?u.length:0,a=[];n:for(;++o<f;)if(e=u[o],0>i(a,e)){for(r=t;--r;)if(0>i(n[r],e))continue n;a.push(e)}return a},o.invert=function(n){for(var r=-1,t=at(n),e=t.length,u={};++r<e;){var o=t[r];u[n[o]]=o}return u},o.invoke=function(n,r){var t=T(arguments,2),e=-1,u=typeof r=="function",o=n&&n.length,i=Array(0>o?0:o>>>0);
|
||||
return p(n,function(n){var o=u?r:null!=n&&n[r];i[++e]=o?o.apply(n,t):ur}),i},o.keys=at,o.map=B,o.matches=rr,o.max=M,o.memoize=function(n,r){var t={};return function(){var e=r?r.apply(this,arguments):"_"+arguments[0];return zr.call(t,e)?t[e]:t[e]=n.apply(this,arguments)}},o.min=function(n,r,t){var e=1/0,u=e,o=typeof r;"number"!=o&&"string"!=o||!t||t[r]!==n||(r=null);var o=-1,i=n?n.length:0;if(null==r&&typeof i=="number"&&-1<i&&i<=Mr)for(;++o<i;)t=n[o],t<u&&(u=t);else r=Z(r,t,3),p(n,function(n,t,o){t=r(n,t,o),t<e&&(e=t,u=n)
|
||||
});return u},o.omit=function(n){for(var r=h(arguments,true,false,1),t=r.length;t--;)r[t]=r[t]+"";return X(n,l(Q(n),r))},o.once=function(n){var r,t;if(!H(n))throw new TypeError;return function(){return r?t:(r=true,t=n.apply(this,arguments),n=null,t)}},o.pairs=function(n){for(var r=-1,t=at(n),e=t.length,u=Array(e);++r<e;){var o=t[r];u[r]=[o,n[o]]}return u},o.partial=function(n){return _(n,ir,null,null,T(arguments,1))},o.partition=ut,o.pick=X,o.pluck=ot,o.property=er,o.range=function(n,r,t){n=+n||0,t=+t||1,null==r?(r=n,n=0):r=+r||0;
|
||||
var e=-1;r=Lr(0,Ir((r-n)/(t||1)));for(var u=Array(r);++e<r;)u[e]=n,n+=t;return u},o.reject=function(n,r,t){return r=Z(r,t,3),N(n,C(r))},o.rest=A,o.shuffle=I,o.sortBy=function(n,t,e){var u=-1,o=n&&n.length,i=Array(0>o?0:o>>>0);for(t=Z(t,e,3),p(n,function(n,r,e){i[++u]={a:t(n,r,e),b:u,c:n}}),o=i.length,i.sort(r);o--;)i[o]=i[o].c;return i},o.tap=function(n,r){return r(n),n},o.throttle=function(n,r,t){var e=true,u=true;if(!H(n))throw new TypeError;return false===t?e=false:J(t)&&(e="leading"in t?t.leading:e,u="trailing"in t?t.trailing:u),z(n,r,{leading:e,maxWait:r,trailing:u})
|
||||
},o.times=function(n,r,t){n=-1<(n=+n)?n:0;var e=-1,u=Array(n);for(r=a(r,t,1);++e<n;)u[e]=r(e);return u},o.toArray=function(n){return ft(n)?T(n):n&&typeof n.length=="number"?B(n):Y(n)},o.union=function(){return y(h(arguments,true,true))},o.uniq=O,o.values=Y,o.where=it,o.without=function(){return l(arguments[0],T(arguments,1))},o.wrap=function(n,r){return _(r,ir,null,null,[n])},o.zip=function(){for(var n=-1,r=M(ot(arguments,"length")),t=Array(0>r?0:r);++n<r;)t[n]=ot(arguments,n);return t},o.collect=B,o.each=F,o.extend=P,o.methods=V,o.object=function(n,r){var t=-1,e=n?n.length:0,u={};
|
||||
for(r||!e||ft(n[0])||(r=[]);++t<e;){var o=n[t];r?u[o]=r[t]:o&&(u[o[0]]=o[1])}return u},o.select=N,o.tail=A,o.unique=O,o.clone=function(n){return J(n)?ft(n)?T(n):P({},n):n},o.contains=S,o.escape=function(n){return null==n?"":(n+"").replace(lr,t)},o.every=k,o.find=q,o.has=function(n,r){return n?zr.call(n,r):false},o.identity=nr,o.indexOf=x,o.isArguments=G,o.isArray=ft,o.isBoolean=function(n){return true===n||false===n||n&&typeof n=="object"&&Rr.call(n)==yr||false},o.isDate=function(n){return n&&typeof n=="object"&&Rr.call(n)==mr||false
|
||||
},o.isElement=function(n){return n&&1===n.nodeType||false},o.isEmpty=function(n){if(!n)return true;if(ft(n)||L(n))return!n.length;for(var r in n)if(zr.call(n,r))return false;return true},o.isEqual=function(n,r){return v(n,r)},o.isFinite=function(n){return Hr(n)&&!Jr(parseFloat(n))},o.isFunction=H,o.isNaN=function(n){return K(n)&&n!=+n},o.isNull=function(n){return null===n},o.isNumber=K,o.isObject=J,o.isRegExp=function(n){var r=typeof n;return n&&("function"==r||"object"==r)&&Rr.call(n)==dr||false},o.isString=L,o.isUndefined=function(n){return typeof n=="undefined"
|
||||
},o.lastIndexOf=function(n,r,t){var e=n?n.length:0;for(typeof t=="number"&&(t|=0,e=(0>t?Lr(0,e+t):Qr(t,e-1))+1);e--;)if(n[e]===r)return e;return-1},o.mixin=tr,o.noConflict=function(){return Er._=Br,this},o.now=ct,o.random=function(n,r){return null==n&&null==r&&(r=1),n=+n||0,null==r?(r=n,n=0):r=+r||0,n+Dr(Yr()*(r-n+1))},o.reduce=R,o.reduceRight=$,o.result=function(n,r){if(null!=n){var t=n[r];return H(t)?n[r]():t}},o.size=function(n){var r=n?n.length:0;return typeof r=="number"&&-1<r&&r<=Mr?r:at(n).length
|
||||
},o.some=D,o.sortedIndex=E,o.template=function(n,r,t){var u=o,i=u.templateSettings;n=(null==n?"":n)+"",t=U({},t,i);var f=0,a="__p+='",i=t.variable;n.replace(RegExp((t.escape||pr).source+"|"+(t.interpolate||pr).source+"|"+(t.evaluate||pr).source+"|$","g"),function(r,t,u,o,i){return a+=n.slice(f,i).replace(hr,e),t&&(a+="'+_.escape("+t+")+'"),o&&(a+="';"+o+";\n__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),f=i+r.length,r}),a+="';",i||(a="with(obj||{}){"+a+"}"),a="function("+(i||"obj")+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
|
||||
try{var c=Function("_","return "+a)(u)}catch(l){throw l.source=a,l}return r?c(r):(c.source=a,c)},o.unescape=function(n){return null==n?"":(n+="",0>n.indexOf(";")?n:n.replace(cr,u))},o.uniqueId=function(n){var r=++ar+"";return n?n+r:r},o.all=k,o.any=D,o.detect=q,o.findWhere=q,o.foldl=R,o.foldr=$,o.include=S,o.inject=R,o.first=j,o.last=function(n,r,t){var e=n?n.length:0;return null==r||t?n?n[e-1]:ur:(r=e-r,T(n,0>r?0:r))},o.sample=function(n,r,t){return n&&typeof n.length!="number"&&(n=Y(n)),null==r||t?(r=n?n.length:0,0<r?n[0+Dr(Yr()*(r-1-0+1))]:ur):(n=I(n),n.length=Qr(Lr(0,r),n.length),n)
|
||||
},o.take=j,o.head=j,tr(P({},o)),o.VERSION="2.4.1",o.prototype.chain=function(){return this.__chain__=true,this},o.prototype.value=function(){return this.__wrapped__},p("pop push reverse shift sort splice unshift".split(" "),function(n){var r=qr[n];o.prototype[n]=function(){var n=this.__wrapped__;return r.apply(n,arguments),Zr.spliceObjects||0!==n.length||delete n[0],this}}),p(["concat","join","slice"],function(n){var r=qr[n];o.prototype[n]=function(){var n=r.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new i(n),n.__chain__=true),n
|
||||
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Er._=o, define("underscore",function(){return o})):Or&&Sr?Nr?(Sr.exports=o)._=o:Or._=o:Er._=o}).call(this);
|
||||
Reference in New Issue
Block a user