Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update builds, vendors, and docs.

  • Loading branch information...
commit b0a2a8e09852d81b78caf6c21ba6c0ce71a44d52 1 parent 1b29121
@jdalton jdalton authored
View
4 dist/lodash.backbone.js
@@ -1384,7 +1384,9 @@
* @returns {Mixed} Returns the found element, else `undefined`.
* @example
*
- * _.find([1, 2, 3, 4], function(num) { return num % 2 == 0; });
+ * _.find([1, 2, 3, 4], function(num) {
+ * return num % 2 == 0;
+ * });
* // => 2
*
* var food = [
View
85 dist/lodash.compat.js
@@ -703,6 +703,7 @@
* @param {Object} [options1, options2, ...] The compile options object(s).
* arrays - A string of code to determine if the iterable is an array or array-like.
* useHas - A boolean to specify using `hasOwnProperty` checks in the object loop.
+ * useKeys - A boolean to specify using `_.keys` for own property iteration.
* args - A string of comma separated arguments the iteration function will accept.
* top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop.
@@ -1262,7 +1263,9 @@
* @returns {Mixed} Returns the key of the found element, else `undefined`.
* @example
*
- * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) { return num % 2 == 0; });
+ * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
+ * return num % 2 == 0;
+ * });
* // => 'b'
*/
function findKey(object, callback, thisArg) {
@@ -1537,11 +1540,8 @@
function isEqual(a, b, callback, thisArg, stackA, stackB) {
// used to indicate that when comparing objects, `a` has at least the properties of `b`
var whereIndicator = callback === indicatorObject;
- if (callback && !whereIndicator) {
- callback = (typeof thisArg == 'undefined')
- ? callback
- : lodash.createCallback(callback, thisArg, 2);
-
+ if (typeof callback == 'function' && !whereIndicator) {
+ callback = lodash.createCallback(callback, thisArg, 2);
var result = callback(a, b);
if (typeof result != 'undefined') {
return !!result;
@@ -2492,7 +2492,9 @@
* @returns {Mixed} Returns the found element, else `undefined`.
* @example
*
- * _.find([1, 2, 3, 4], function(num) { return num % 2 == 0; });
+ * _.find([1, 2, 3, 4], function(num) {
+ * return num % 2 == 0;
+ * });
* // => 2
*
* var food = [
@@ -4430,44 +4432,53 @@
/**
* Creates a function that will delay the execution of `func` until after
* `wait` milliseconds have elapsed since the last time it was invoked. Pass
- * `true` for `immediate` to cause debounce to invoke `func` on the leading,
- * instead of the trailing, edge of the `wait` timeout. Subsequent calls to
- * the debounced function will return the result of the last `func` call.
+ * an `options` object to indicate that `func` should be invoked on the leading
+ * and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced
+ * function will return the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to debounce.
* @param {Number} wait The number of milliseconds to delay.
- * @param {Boolean} immediate A flag to indicate execution is on the leading
- * edge of the timeout.
+ * @param {Object} options The options object.
+ * [leading=false] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
* var lazyLayout = _.debounce(calculateLayout, 300);
* jQuery(window).on('resize', lazyLayout);
*/
- function debounce(func, wait, immediate) {
+ function debounce(func, wait, options) {
var args,
result,
thisArg,
- timeoutId;
+ timeoutId,
+ trailing = true;
function delayed() {
timeoutId = null;
- if (!immediate) {
+ if (trailing) {
result = func.apply(thisArg, args);
}
}
+ if (options === true) {
+ var leading = true;
+ trailing = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
+ }
return function() {
- var isImmediate = immediate && !timeoutId;
+ var isLeading = leading && !timeoutId;
args = arguments;
thisArg = this;
clearTimeout(timeoutId);
timeoutId = setTimeout(delayed, wait);
- if (isImmediate) {
+ if (isLeading) {
result = func.apply(thisArg, args);
}
return result;
@@ -4637,39 +4648,57 @@
}
/**
- * Creates a function that, when executed, will only call the `func`
- * function at most once per every `wait` milliseconds. If the throttled
- * function is invoked more than once during the `wait` timeout, `func` will
- * also be called on the trailing edge of the timeout. Subsequent calls to the
- * throttled function will return the result of the last `func` call.
+ * Creates a function that, when executed, will only call the `func` function
+ * at most once per every `wait` milliseconds. If the throttled function is
+ * invoked more than once during the `wait` timeout, `func` will also be called
+ * on the trailing edge of the timeout. Pass an `options` object to indicate
+ * that `func` should be invoked on the leading and/or trailing edge of the
+ * `wait` timeout. Subsequent calls to the throttled function will return
+ * the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to throttle.
* @param {Number} wait The number of milliseconds to throttle executions to.
+ * @param {Object} options The options object.
+ * [leading=true] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
* var throttled = _.throttle(updatePosition, 100);
* jQuery(window).on('scroll', throttled);
*/
- function throttle(func, wait) {
+ function throttle(func, wait, options) {
var args,
result,
thisArg,
timeoutId,
- lastCalled = 0;
+ lastCalled = 0,
+ leading = true,
+ trailing = true;
function trailingCall() {
lastCalled = new Date;
timeoutId = null;
- result = func.apply(thisArg, args);
+
+ if (trailing) {
+ result = func.apply(thisArg, args);
+ }
+ }
+ if (options === false) {
+ leading = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
}
return function() {
- var now = new Date,
- remaining = wait - (now - lastCalled);
-
+ var now = new Date;
+ if (!timeoutId && !leading) {
+ lastCalled = now;
+ }
+ var remaining = wait - (now - lastCalled);
args = arguments;
thisArg = this;
View
26 dist/lodash.compat.min.js
@@ -9,7 +9,7 @@ return a||(n=t[i]),e.length&&(r=r.length?(r=G(r),f?r.concat(e):e.concat(r)):e),t
else if(r+="for(i in m){",(fe.enumPrototypes||t.i)&&(r+="if(",fe.enumPrototypes&&(r+="!(v&&i=='prototype')"),fe.enumPrototypes&&t.i&&(r+="&&"),t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",(fe.enumPrototypes||t.i)&&(r+="}"),r+="}",fe.nonEnumShadows){r+="var f=m.constructor;";for(var u=0;7>u;u++)r+="i='"+t.g[u]+"';if(","constructor"==t.g[u]&&(r+="!(f&&f.prototype===m)&&"),r+="h.call(m,i)){"+t.f+"}"}return(t.b||fe.nonEnumArgs)&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Gt,J,ce,et,pe,a,N)
}function z(n){return"\\"+$[n]}function L(n){return ve[n]}function K(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function M(n){this.__wrapped__=n}function U(){}function V(n){var t=!1;if(!n||Wt.call(n)!=S||!fe.argsClass&&J(n))return t;var e=n.constructor;return(Z(e)?e instanceof e:fe.nodeClass||!K(n))?fe.ownLast?(me(n,function(n,e,r){return t=Gt.call(r,e),!1}),!0===t):(me(n,function(n,e){t=e}),!1===t||Gt.call(n,t)):t}function G(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);
var r=-1;e=e-t||0;for(var u=Et(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function H(n){return ge[n]}function J(n){return Wt.call(n)==C}function Q(n,t,r,u,o,i){var f=n;if(typeof t=="function"&&(u=r,r=t,t=!1),typeof r=="function"){if(r=typeof u=="undefined"?r:a.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;f=n}if(u=nt(f)){var c=Wt.call(f);if(!P[c]||!fe.nodeClass&&K(f))return f;var l=ce(f)}if(!u||!t)return u?l?G(f):he({},f):f;switch(u=ie[c],c){case k:case x:return new u(+f);case E:case I:return new u(f);
-case A:return u(f.source,g.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Gt.call(n,"index")&&(f.index=n.index),Gt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ct:de)(n,function(n,u){f[u]=Q(n,t,r,e,o,i)}),f}function W(n){var t=[];return me(n,function(n,e){Z(n)&&t.push(e)}),t.sort()}function X(n){for(var t=-1,e=pe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function Y(n,t,e,r,u,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:a.createCallback(e,r,2);
+case A:return u(f.source,g.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Gt.call(n,"index")&&(f.index=n.index),Gt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ct:de)(n,function(n,u){f[u]=Q(n,t,r,e,o,i)}),f}function W(n){var t=[];return me(n,function(n,e){Z(n)&&t.push(e)}),t.sort()}function X(n){for(var t=-1,e=pe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function Y(n,t,e,r,u,o){var f=e===i;if(typeof e=="function"&&!f){e=a.createCallback(e,r,2);
var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Wt.call(n),l=Wt.call(t),p==C&&(p=S),l==C&&(l=S),p!=l)return!1;switch(p){case k:case x:return+n==+t;case E:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case A:case I:return n==Bt(t)}if(l=p==j,!l){if(Gt.call(n,"__wrapped__")||Gt.call(t,"__wrapped__"))return Y(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);
if(p!=S||!fe.nodeClass&&(K(n)||K(t)))return!1;var p=!fe.argsObject&&J(n)?$t:n.constructor,s=!fe.argsObject&&J(t)?$t:t.constructor;if(p!=s&&(!Z(p)||!(p instanceof p&&Z(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,c=!0;if(u.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=Y(n[l],s,e,r,u,o)););else if(!(c=Y(n[v],s,e,r,u,o)))break;return c}return me(t,function(t,a,i){return Gt.call(i,a)?(v++,c=Gt.call(n,a)&&Y(n[a],t,e,r,u,o)):void 0
}),c&&!f&&me(n,function(n,t,e){return Gt.call(e,t)?c=-1<--v:void 0}),c}function Z(n){return typeof n=="function"}function nt(n){return n?N[typeof n]:!1}function tt(n){return typeof n=="number"||Wt.call(n)==E}function et(n){return typeof n=="string"||Wt.call(n)==I}function rt(n,t,e){var r=arguments,u=0,o=2;if(!nt(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=a.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);
@@ -27,18 +27,18 @@ try{fe.nodeClass=!(Wt.call(document)==S&&!({toString:0}+""))}catch(u){fe.nodeCla
Z(/x/)&&(Z=function(n){return n instanceof It||Wt.call(n)==O});var be=Vt?function(n){if(!n||Wt.call(n)!=S||!fe.argsClass&&J(n))return!1;var t=n.valueOf,e=typeof t=="function"&&(e=Vt(t))&&Vt(e);return e?n==e||Vt(n)==e:V(n)}:V;return oe&&u&&typeof Jt=="function"&&(jt=Ct(Jt,r)),Jt=8==ue("08")?ue:function(n,t){return ue(et(n)?n.replace(y,""):n,t||0)},a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=he,a.at=function(n){var t=-1,e=Mt.apply(Rt,G(arguments,1)),r=e.length,u=Et(r);
for(fe.unindexedChars&&et(n)&&(n=n.split(""));++t<r;)u[t]=n[e[t]];return u},a.bind=Ct,a.bindAll=function(n){for(var t=Mt.apply(Rt,arguments),e=1<t.length?0:(t=W(n),-1),r=t.length;++e<r;){var u=t[e];n[u]=Ct(n[u],n)}return n},a.bindKey=function(n,t){return T(n,t,G(arguments,2),i)},a.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},a.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]
}},a.countBy=function(n,t,e){var r={};return t=a.createCallback(t,e),ct(n,function(n,e,u){e=Bt(t(n,e,u)),Gt.call(r,e)?r[e]++:r[e]=1}),r},a.createCallback=function(n,t,e){if(null==n)return kt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=pe(n);return function(t){for(var e=u.length,r=!1;e--&&(r=Y(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)
-}:function(e,r,u){return n.call(t,e,r,u)}:n},a.debounce=function(n,t,e){function r(){i=null,e||(a=n.apply(o,u))}var u,a,o,i;return function(){var f=e&&!i;return u=arguments,o=this,Kt(i),i=Qt(r,t),f&&(a=n.apply(o,u)),a}},a.defaults=ye,a.defer=jt,a.delay=function(n,t){var r=G(arguments,2);return Qt(function(){n.apply(e,r)},t)},a.difference=function(n){for(var t=-1,e=n?n.length:0,r=Mt.apply(Rt,arguments),r=B(r,e,100),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},a.filter=it,a.flatten=yt,a.forEach=ct,a.forIn=me,a.forOwn=de,a.functions=W,a.groupBy=function(n,t,e){var r={};
-return t=a.createCallback(t,e),ct(n,function(n,e,u){e=Bt(t(n,e,u)),(Gt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},a.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return G(n,0,re(ee(0,u-r),u))},a.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],c=i;n:for(;++u<a;){var l=n[u];if(o)var p=f+l,p=r[0][p]?!(c=r[0][p]):c=r[0][p]=[];if(p||0>mt(c,l)){o&&c.push(l);
-for(var s=e;--s;)if(!(r[s]||(r[s]=B(t[s],0,100)))(l))continue n;i.push(l)}}return i},a.invert=X,a.invoke=function(n,t){var e=G(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Et(typeof a=="number"?a:0);return ct(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},a.keys=pe,a.map=lt,a.max=pt,a.memoize=function(n,t){var e={};return function(){var r=f+(t?t.apply(this,arguments):arguments[0]);return Gt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},a.merge=rt,a.min=function(n,t,e){var r=1/0,u=r;
-if(!t&&ce(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<u&&(u=i)}}else t=!t&&et(n)?F:a.createCallback(t,e),se(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},a.omit=function(n,t,e){var r=typeof t=="function",u={};if(r)t=a.createCallback(t,e);else var o=Mt.apply(Rt,arguments);return me(n,function(n,e,a){(r?!t(n,e,a):0>mt(o,e,1))&&(u[e]=n)}),u},a.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},a.pairs=function(n){for(var t=-1,e=pe(n),r=e.length,u=Et(r);++t<r;){var a=e[t];
-u[t]=[a,n[a]]}return u},a.partial=function(n){return T(n,G(arguments,1))},a.partialRight=function(n){return T(n,G(arguments,1),null,i)},a.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=0,o=Mt.apply(Rt,arguments),i=nt(n)?o.length:0;++u<i;){var f=o[u];f in n&&(r[f]=n[f])}else t=a.createCallback(t,e),me(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},a.pluck=lt,a.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);var r=-1;t=ee(0,Lt((t-n)/e));for(var u=Et(t);++r<t;)u[r]=n,n+=e;
-return u},a.reject=function(n,t,e){return t=a.createCallback(t,e),it(n,function(n,e,r){return!t(n,e,r)})},a.rest=dt,a.shuffle=function(n){var t=-1,e=n?n.length:0,r=Et(typeof e=="number"?e:0);return ct(n,function(n){var e=Ut(ae()*(++t+1));r[t]=r[e],r[e]=n}),r},a.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Et(typeof u=="number"?u:0);for(t=a.createCallback(t,e),ct(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),u=o.length,o.sort(R);u--;)o[u]=o[u].c;return o},a.tap=function(n,t){return t(n),n},a.throttle=function(n,t){function e(){i=new At,o=null,u=n.apply(a,r)
-}var r,u,a,o,i=0;return function(){var f=new At,c=t-(f-i);return r=arguments,a=this,0<c?o||(o=Qt(e,c)):(Kt(o),o=null,i=f,u=n.apply(a,r)),u}},a.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Et(n);for(t=a.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},a.toArray=function(n){return n&&typeof n.length=="number"?fe.unindexedChars&&et(n)?n.split(""):G(n):ut(n)},a.union=function(){return _t(Mt.apply(Rt,arguments))},a.uniq=_t,a.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?pt(lt(n,"length")):0,u=Et(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=Et(e)))[t]=o[a];
-return u},a.values=ut,a.where=it,a.without=function(n){for(var t=-1,e=n?n.length:0,r=B(arguments,1,30),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},a.wrap=function(n,t){return function(){var e=[n];return Ht.apply(e,arguments),t.apply(this,e)}},a.zip=function(n){for(var t=-1,e=n?pt(lt(arguments,"length")):0,r=Et(e);++t<e;)r[t]=lt(arguments,t);return r},a.zipObject=wt,a.collect=lt,a.drop=dt,a.each=ct,a.extend=he,a.methods=W,a.object=wt,a.select=it,a.tail=dt,a.unique=_t,xt(a),a.clone=Q,a.cloneDeep=function(n,t,e){return Q(n,!0,t,e)
-},a.contains=at,a.escape=function(n){return null==n?"":Bt(n).replace(d,L)},a.every=ot,a.find=ft,a.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=a.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},a.findKey=function(n,t,e){var r;return t=a.createCallback(t,e),de(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},a.has=function(n,t){return n?Gt.call(n,t):!1},a.identity=kt,a.indexOf=mt,a.isArguments=J,a.isArray=ce,a.isBoolean=function(n){return!0===n||!1===n||Wt.call(n)==k},a.isDate=function(n){return n instanceof At||Wt.call(n)==x
-},a.isElement=function(n){return n?1===n.nodeType:!1},a.isEmpty=function(n){var t=!0;if(!n)return t;var e=Wt.call(n),r=n.length;return e==j||e==I||(fe.argsClass?e==C:J(n))||e==S&&typeof r=="number"&&Z(n.splice)?!r:(de(n,function(){return t=!1}),t)},a.isEqual=Y,a.isFinite=function(n){return Zt(n)&&!ne(parseFloat(n))},a.isFunction=Z,a.isNaN=function(n){return tt(n)&&n!=+n},a.isNull=function(n){return null===n},a.isNumber=tt,a.isObject=nt,a.isPlainObject=be,a.isRegExp=function(n){return n instanceof qt||Wt.call(n)==A
-},a.isString=et,a.isUndefined=function(n){return typeof n=="undefined"},a.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?ee(0,r+e):re(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=xt,a.noConflict=function(){return r._=Dt,this},a.parseInt=Jt,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Ut(ae()*((+t||0)-n+1))},a.reduce=st,a.reduceRight=vt,a.result=function(n,t){var r=n?n[t]:e;return Z(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;
-return typeof t=="number"?t:pe(n).length},a.some=gt,a.sortedIndex=bt,a.template=function(n,t,r){var u=a.templateSettings;n||(n=""),r=ye({},r,u);var o,i=ye({},r.imports,u.imports),u=pe(i),i=ut(i),f=0,s=r.interpolate||m,g="__p+='",s=qt((r.escape||m).source+"|"+s.source+"|"+(s===h?v:m).source+"|"+(r.evaluate||m).source+"|$","g");n.replace(s,function(t,e,r,u,a,i){return r||(r=u),g+=n.slice(f,i).replace(b,z),e&&(g+="'+__e("+e+")+'"),a&&(o=!0,g+="';"+a+";__p+='"),r&&(g+="'+((__t=("+r+"))==null?'':__t)+'"),f=i+t.length,t
+}:function(e,r,u){return n.call(t,e,r,u)}:n},a.debounce=function(n,t,e){function r(){i=null,f&&(a=n.apply(o,u))}var u,a,o,i,f=!0;if(!0===e)var c=!0,f=!1;else e&&(c=e.leading,f=e.trailing);return function(){var e=c&&!i;return u=arguments,o=this,Kt(i),i=Qt(r,t),e&&(a=n.apply(o,u)),a}},a.defaults=ye,a.defer=jt,a.delay=function(n,t){var r=G(arguments,2);return Qt(function(){n.apply(e,r)},t)},a.difference=function(n){for(var t=-1,e=n?n.length:0,r=Mt.apply(Rt,arguments),r=B(r,e,100),u=[];++t<e;){var a=n[t];
+r(a)||u.push(a)}return u},a.filter=it,a.flatten=yt,a.forEach=ct,a.forIn=me,a.forOwn=de,a.functions=W,a.groupBy=function(n,t,e){var r={};return t=a.createCallback(t,e),ct(n,function(n,e,u){e=Bt(t(n,e,u)),(Gt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},a.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return G(n,0,re(ee(0,u-r),u))},a.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],c=i;
+n:for(;++u<a;){var l=n[u];if(o)var p=f+l,p=r[0][p]?!(c=r[0][p]):c=r[0][p]=[];if(p||0>mt(c,l)){o&&c.push(l);for(var s=e;--s;)if(!(r[s]||(r[s]=B(t[s],0,100)))(l))continue n;i.push(l)}}return i},a.invert=X,a.invoke=function(n,t){var e=G(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Et(typeof a=="number"?a:0);return ct(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},a.keys=pe,a.map=lt,a.max=pt,a.memoize=function(n,t){var e={};return function(){var r=f+(t?t.apply(this,arguments):arguments[0]);
+return Gt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},a.merge=rt,a.min=function(n,t,e){var r=1/0,u=r;if(!t&&ce(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<u&&(u=i)}}else t=!t&&et(n)?F:a.createCallback(t,e),se(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},a.omit=function(n,t,e){var r=typeof t=="function",u={};if(r)t=a.createCallback(t,e);else var o=Mt.apply(Rt,arguments);return me(n,function(n,e,a){(r?!t(n,e,a):0>mt(o,e,1))&&(u[e]=n)}),u},a.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)
+}},a.pairs=function(n){for(var t=-1,e=pe(n),r=e.length,u=Et(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},a.partial=function(n){return T(n,G(arguments,1))},a.partialRight=function(n){return T(n,G(arguments,1),null,i)},a.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=0,o=Mt.apply(Rt,arguments),i=nt(n)?o.length:0;++u<i;){var f=o[u];f in n&&(r[f]=n[f])}else t=a.createCallback(t,e),me(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},a.pluck=lt,a.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);
+var r=-1;t=ee(0,Lt((t-n)/e));for(var u=Et(t);++r<t;)u[r]=n,n+=e;return u},a.reject=function(n,t,e){return t=a.createCallback(t,e),it(n,function(n,e,r){return!t(n,e,r)})},a.rest=dt,a.shuffle=function(n){var t=-1,e=n?n.length:0,r=Et(typeof e=="number"?e:0);return ct(n,function(n){var e=Ut(ae()*(++t+1));r[t]=r[e],r[e]=n}),r},a.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Et(typeof u=="number"?u:0);for(t=a.createCallback(t,e),ct(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),u=o.length,o.sort(R);u--;)o[u]=o[u].c;
+return o},a.tap=function(n,t){return t(n),n},a.throttle=function(n,t,e){function r(){f=new At,i=null,l&&(a=n.apply(o,u))}var u,a,o,i,f=0,c=!0,l=!0;return!1===e?c=!1:e&&(c=e.leading,l=e.trailing),function(){var e=new At;!i&&!c&&(f=e);var l=t-(e-f);return u=arguments,o=this,0<l?i||(i=Qt(r,l)):(Kt(i),i=null,f=e,a=n.apply(o,u)),a}},a.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Et(n);for(t=a.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},a.toArray=function(n){return n&&typeof n.length=="number"?fe.unindexedChars&&et(n)?n.split(""):G(n):ut(n)
+},a.union=function(){return _t(Mt.apply(Rt,arguments))},a.uniq=_t,a.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?pt(lt(n,"length")):0,u=Et(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=Et(e)))[t]=o[a];return u},a.values=ut,a.where=it,a.without=function(n){for(var t=-1,e=n?n.length:0,r=B(arguments,1,30),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},a.wrap=function(n,t){return function(){var e=[n];return Ht.apply(e,arguments),t.apply(this,e)}},a.zip=function(n){for(var t=-1,e=n?pt(lt(arguments,"length")):0,r=Et(e);++t<e;)r[t]=lt(arguments,t);
+return r},a.zipObject=wt,a.collect=lt,a.drop=dt,a.each=ct,a.extend=he,a.methods=W,a.object=wt,a.select=it,a.tail=dt,a.unique=_t,xt(a),a.clone=Q,a.cloneDeep=function(n,t,e){return Q(n,!0,t,e)},a.contains=at,a.escape=function(n){return null==n?"":Bt(n).replace(d,L)},a.every=ot,a.find=ft,a.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=a.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},a.findKey=function(n,t,e){var r;return t=a.createCallback(t,e),de(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0
+}),r},a.has=function(n,t){return n?Gt.call(n,t):!1},a.identity=kt,a.indexOf=mt,a.isArguments=J,a.isArray=ce,a.isBoolean=function(n){return!0===n||!1===n||Wt.call(n)==k},a.isDate=function(n){return n instanceof At||Wt.call(n)==x},a.isElement=function(n){return n?1===n.nodeType:!1},a.isEmpty=function(n){var t=!0;if(!n)return t;var e=Wt.call(n),r=n.length;return e==j||e==I||(fe.argsClass?e==C:J(n))||e==S&&typeof r=="number"&&Z(n.splice)?!r:(de(n,function(){return t=!1}),t)},a.isEqual=Y,a.isFinite=function(n){return Zt(n)&&!ne(parseFloat(n))
+},a.isFunction=Z,a.isNaN=function(n){return tt(n)&&n!=+n},a.isNull=function(n){return null===n},a.isNumber=tt,a.isObject=nt,a.isPlainObject=be,a.isRegExp=function(n){return n instanceof qt||Wt.call(n)==A},a.isString=et,a.isUndefined=function(n){return typeof n=="undefined"},a.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?ee(0,r+e):re(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=xt,a.noConflict=function(){return r._=Dt,this},a.parseInt=Jt,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Ut(ae()*((+t||0)-n+1))
+},a.reduce=st,a.reduceRight=vt,a.result=function(n,t){var r=n?n[t]:e;return Z(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:pe(n).length},a.some=gt,a.sortedIndex=bt,a.template=function(n,t,r){var u=a.templateSettings;n||(n=""),r=ye({},r,u);var o,i=ye({},r.imports,u.imports),u=pe(i),i=ut(i),f=0,s=r.interpolate||m,g="__p+='",s=qt((r.escape||m).source+"|"+s.source+"|"+(s===h?v:m).source+"|"+(r.evaluate||m).source+"|$","g");n.replace(s,function(t,e,r,u,a,i){return r||(r=u),g+=n.slice(f,i).replace(b,z),e&&(g+="'+__e("+e+")+'"),a&&(o=!0,g+="';"+a+";__p+='"),r&&(g+="'+((__t=("+r+"))==null?'':__t)+'"),f=i+t.length,t
}),g+="';\n",s=r=r.variable,s||(r="obj",g="with("+r+"){"+g+"}"),g=(o?g.replace(c,""):g).replace(l,"$1").replace(p,"$1;"),g="function("+r+"){"+(s?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+g+"return __p}";try{var y=It(u,"return "+g).apply(e,i)}catch(d){throw d.source=g,d}return t?y(t):(y.source=g,y)},a.unescape=function(n){return null==n?"":Bt(n).replace(s,H)},a.uniqueId=function(n){var t=++o;return Bt(null==n?"":n)+t
},a.all=ot,a.any=gt,a.detect=ft,a.foldl=st,a.foldr=vt,a.include=at,a.inject=st,de(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Ht.apply(t,arguments),n.apply(a,t)})}),a.first=ht,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return G(n,ee(0,u-r))}},a.take=ht,a.head=ht,de(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
return null==t||e&&typeof t!="function"?r:new M(r)})}),a.VERSION="1.1.1",a.prototype.toString=function(){return Bt(this.__wrapped__)},a.prototype.value=Ot,a.prototype.valueOf=Ot,se(["join","pop","shift"],function(n){var t=Rt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),se(["push","reverse","sort","unshift"],function(n){var t=Rt[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),se(["concat","slice","splice"],function(n){var t=Rt[n];a.prototype[n]=function(){return new M(t.apply(this.__wrapped__,arguments))
View
85 dist/lodash.js
@@ -552,6 +552,7 @@
* @param {Object} [options1, options2, ...] The compile options object(s).
* arrays - A string of code to determine if the iterable is an array or array-like.
* useHas - A boolean to specify using `hasOwnProperty` checks in the object loop.
+ * useKeys - A boolean to specify using `_.keys` for own property iteration.
* args - A string of comma separated arguments the iteration function will accept.
* top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop.
@@ -1060,7 +1061,9 @@
* @returns {Mixed} Returns the key of the found element, else `undefined`.
* @example
*
- * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) { return num % 2 == 0; });
+ * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
+ * return num % 2 == 0;
+ * });
* // => 'b'
*/
function findKey(object, callback, thisArg) {
@@ -1334,11 +1337,8 @@
function isEqual(a, b, callback, thisArg, stackA, stackB) {
// used to indicate that when comparing objects, `a` has at least the properties of `b`
var whereIndicator = callback === indicatorObject;
- if (callback && !whereIndicator) {
- callback = (typeof thisArg == 'undefined')
- ? callback
- : lodash.createCallback(callback, thisArg, 2);
-
+ if (typeof callback == 'function' && !whereIndicator) {
+ callback = lodash.createCallback(callback, thisArg, 2);
var result = callback(a, b);
if (typeof result != 'undefined') {
return !!result;
@@ -2280,7 +2280,9 @@
* @returns {Mixed} Returns the found element, else `undefined`.
* @example
*
- * _.find([1, 2, 3, 4], function(num) { return num % 2 == 0; });
+ * _.find([1, 2, 3, 4], function(num) {
+ * return num % 2 == 0;
+ * });
* // => 2
*
* var food = [
@@ -4228,44 +4230,53 @@
/**
* Creates a function that will delay the execution of `func` until after
* `wait` milliseconds have elapsed since the last time it was invoked. Pass
- * `true` for `immediate` to cause debounce to invoke `func` on the leading,
- * instead of the trailing, edge of the `wait` timeout. Subsequent calls to
- * the debounced function will return the result of the last `func` call.
+ * an `options` object to indicate that `func` should be invoked on the leading
+ * and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced
+ * function will return the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to debounce.
* @param {Number} wait The number of milliseconds to delay.
- * @param {Boolean} immediate A flag to indicate execution is on the leading
- * edge of the timeout.
+ * @param {Object} options The options object.
+ * [leading=false] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
* var lazyLayout = _.debounce(calculateLayout, 300);
* jQuery(window).on('resize', lazyLayout);
*/
- function debounce(func, wait, immediate) {
+ function debounce(func, wait, options) {
var args,
result,
thisArg,
- timeoutId;
+ timeoutId,
+ trailing = true;
function delayed() {
timeoutId = null;
- if (!immediate) {
+ if (trailing) {
result = func.apply(thisArg, args);
}
}
+ if (options === true) {
+ var leading = true;
+ trailing = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
+ }
return function() {
- var isImmediate = immediate && !timeoutId;
+ var isLeading = leading && !timeoutId;
args = arguments;
thisArg = this;
clearTimeout(timeoutId);
timeoutId = setTimeout(delayed, wait);
- if (isImmediate) {
+ if (isLeading) {
result = func.apply(thisArg, args);
}
return result;
@@ -4435,39 +4446,57 @@
}
/**
- * Creates a function that, when executed, will only call the `func`
- * function at most once per every `wait` milliseconds. If the throttled
- * function is invoked more than once during the `wait` timeout, `func` will
- * also be called on the trailing edge of the timeout. Subsequent calls to the
- * throttled function will return the result of the last `func` call.
+ * Creates a function that, when executed, will only call the `func` function
+ * at most once per every `wait` milliseconds. If the throttled function is
+ * invoked more than once during the `wait` timeout, `func` will also be called
+ * on the trailing edge of the timeout. Pass an `options` object to indicate
+ * that `func` should be invoked on the leading and/or trailing edge of the
+ * `wait` timeout. Subsequent calls to the throttled function will return
+ * the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to throttle.
* @param {Number} wait The number of milliseconds to throttle executions to.
+ * @param {Object} options The options object.
+ * [leading=true] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
* var throttled = _.throttle(updatePosition, 100);
* jQuery(window).on('scroll', throttled);
*/
- function throttle(func, wait) {
+ function throttle(func, wait, options) {
var args,
result,
thisArg,
timeoutId,
- lastCalled = 0;
+ lastCalled = 0,
+ leading = true,
+ trailing = true;
function trailingCall() {
lastCalled = new Date;
timeoutId = null;
- result = func.apply(thisArg, args);
+
+ if (trailing) {
+ result = func.apply(thisArg, args);
+ }
+ }
+ if (options === false) {
+ leading = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
}
return function() {
- var now = new Date,
- remaining = wait - (now - lastCalled);
-
+ var now = new Date;
+ if (!timeoutId && !leading) {
+ lastCalled = now;
+ }
+ var remaining = wait - (now - lastCalled);
args = arguments;
thisArg = this;
View
85 dist/lodash.legacy.js
@@ -665,6 +665,7 @@
* @param {Object} [options1, options2, ...] The compile options object(s).
* arrays - A string of code to determine if the iterable is an array or array-like.
* useHas - A boolean to specify using `hasOwnProperty` checks in the object loop.
+ * useKeys - A boolean to specify using `_.keys` for own property iteration.
* args - A string of comma separated arguments the iteration function will accept.
* top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop.
@@ -1197,7 +1198,9 @@
* @returns {Mixed} Returns the key of the found element, else `undefined`.
* @example
*
- * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) { return num % 2 == 0; });
+ * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
+ * return num % 2 == 0;
+ * });
* // => 'b'
*/
function findKey(object, callback, thisArg) {
@@ -1472,11 +1475,8 @@
function isEqual(a, b, callback, thisArg, stackA, stackB) {
// used to indicate that when comparing objects, `a` has at least the properties of `b`
var whereIndicator = callback === indicatorObject;
- if (callback && !whereIndicator) {
- callback = (typeof thisArg == 'undefined')
- ? callback
- : lodash.createCallback(callback, thisArg, 2);
-
+ if (typeof callback == 'function' && !whereIndicator) {
+ callback = lodash.createCallback(callback, thisArg, 2);
var result = callback(a, b);
if (typeof result != 'undefined') {
return !!result;
@@ -2427,7 +2427,9 @@
* @returns {Mixed} Returns the found element, else `undefined`.
* @example
*
- * _.find([1, 2, 3, 4], function(num) { return num % 2 == 0; });
+ * _.find([1, 2, 3, 4], function(num) {
+ * return num % 2 == 0;
+ * });
* // => 2
*
* var food = [
@@ -4360,44 +4362,53 @@
/**
* Creates a function that will delay the execution of `func` until after
* `wait` milliseconds have elapsed since the last time it was invoked. Pass
- * `true` for `immediate` to cause debounce to invoke `func` on the leading,
- * instead of the trailing, edge of the `wait` timeout. Subsequent calls to
- * the debounced function will return the result of the last `func` call.
+ * an `options` object to indicate that `func` should be invoked on the leading
+ * and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced
+ * function will return the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to debounce.
* @param {Number} wait The number of milliseconds to delay.
- * @param {Boolean} immediate A flag to indicate execution is on the leading
- * edge of the timeout.
+ * @param {Object} options The options object.
+ * [leading=false] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
* var lazyLayout = _.debounce(calculateLayout, 300);
* jQuery(window).on('resize', lazyLayout);
*/
- function debounce(func, wait, immediate) {
+ function debounce(func, wait, options) {
var args,
result,
thisArg,
- timeoutId;
+ timeoutId,
+ trailing = true;
function delayed() {
timeoutId = null;
- if (!immediate) {
+ if (trailing) {
result = func.apply(thisArg, args);
}
}
+ if (options === true) {
+ var leading = true;
+ trailing = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
+ }
return function() {
- var isImmediate = immediate && !timeoutId;
+ var isLeading = leading && !timeoutId;
args = arguments;
thisArg = this;
clearTimeout(timeoutId);
timeoutId = setTimeout(delayed, wait);
- if (isImmediate) {
+ if (isLeading) {
result = func.apply(thisArg, args);
}
return result;
@@ -4563,39 +4574,57 @@
}
/**
- * Creates a function that, when executed, will only call the `func`
- * function at most once per every `wait` milliseconds. If the throttled
- * function is invoked more than once during the `wait` timeout, `func` will
- * also be called on the trailing edge of the timeout. Subsequent calls to the
- * throttled function will return the result of the last `func` call.
+ * Creates a function that, when executed, will only call the `func` function
+ * at most once per every `wait` milliseconds. If the throttled function is
+ * invoked more than once during the `wait` timeout, `func` will also be called
+ * on the trailing edge of the timeout. Pass an `options` object to indicate
+ * that `func` should be invoked on the leading and/or trailing edge of the
+ * `wait` timeout. Subsequent calls to the throttled function will return
+ * the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to throttle.
* @param {Number} wait The number of milliseconds to throttle executions to.
+ * @param {Object} options The options object.
+ * [leading=true] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
* var throttled = _.throttle(updatePosition, 100);
* jQuery(window).on('scroll', throttled);
*/
- function throttle(func, wait) {
+ function throttle(func, wait, options) {
var args,
result,
thisArg,
timeoutId,
- lastCalled = 0;
+ lastCalled = 0,
+ leading = true,
+ trailing = true;
function trailingCall() {
lastCalled = new Date;
timeoutId = null;
- result = func.apply(thisArg, args);
+
+ if (trailing) {
+ result = func.apply(thisArg, args);
+ }
+ }
+ if (options === false) {
+ leading = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
}
return function() {
- var now = new Date,
- remaining = wait - (now - lastCalled);
-
+ var now = new Date;
+ if (!timeoutId && !leading) {
+ lastCalled = now;
+ }
+ var remaining = wait - (now - lastCalled);
args = arguments;
thisArg = this;
View
8 dist/lodash.legacy.min.js
@@ -8,7 +8,7 @@
return a||(n=t[i]),e.length&&(r=r.length?(r=U(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(M.prototype=n.prototype,c=new M,M.prototype=null,r=n.apply(c,r),Y(r)?r:c):n.apply(c,r)}var a=X(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new qt;t=n}return u}function $(){for(var n,t={g:w,b:"k(m)",c:"",e:"m",f:"",h:"",i:!0},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],e=Et,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b?(r+="var n=m.length;i=-1;if("+t.b+"){",Yt.unindexedChars&&(r+="if(l(m)){m=m.split('')}"),r+="while(++i<n){"+t.f+"}}else{"):Yt.nonEnumArgs&&(r+="var n=m.length;i=-1;if(n&&j(m)){while(++i<n){i+='';"+t.f+"}}else{"),Yt.enumPrototypes&&(r+="var v=typeof m=='function';"),r+="for(i in m){",(Yt.enumPrototypes||t.i)&&(r+="if(",Yt.enumPrototypes&&(r+="!(v&&i=='prototype')"),Yt.enumPrototypes&&t.i&&(r+="&&"),t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",(Yt.enumPrototypes||t.i)&&(r+="}"),r+="}",Yt.nonEnumShadows){r+="var f=m.constructor;";
for(var a=0;7>a;a++)r+="i='"+t.g[a]+"';if(","constructor"==t.g[a]&&(r+="!(f&&f.prototype===m)&&"),r+="h.call(m,i)){"+t.f+"}"}return(t.b||Yt.nonEnumArgs)&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Lt,G,Zt,nt,ne,u,P)}function D(n){return"\\"+q[n]}function z(n){return ee[n]}function L(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function K(n){this.__wrapped__=n}function M(){}function U(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;
e=e-t||0;for(var u=kt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function V(n){return re[n]}function G(n){return n?Lt.call(n,"callee"):!1}function H(n,t,r,a,o,i){var f=n;if(typeof t=="function"&&(a=r,r=t,t=!1),typeof r=="function"){if(r=typeof a=="undefined"?r:u.createCallback(r,a,1),f=r(f),typeof f!="undefined")return f;f=n}if(a=Y(f)){var c=Ut.call(f);if(!N[c]||!Yt.nodeClass&&L(f))return f;var l=Zt(f)}if(!a||!t)return a?l?U(f):ue({},f):f;switch(a=Xt[c],c){case k:case x:return new a(+f);case E:case I:return new a(f);
-case A:return a(f.source,g.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?a(f.length):{},l&&(Lt.call(n,"index")&&(f.index=n.index),Lt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?it:ie)(n,function(n,u){f[u]=H(n,t,r,e,o,i)}),f}function J(n){var t=[];return oe(n,function(n,e){X(n)&&t.push(e)}),t.sort()}function Q(n){for(var t=-1,e=ne(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function W(n,t,e,r,a,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:u.createCallback(e,r,2);
+case A:return a(f.source,g.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?a(f.length):{},l&&(Lt.call(n,"index")&&(f.index=n.index),Lt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?it:ie)(n,function(n,u){f[u]=H(n,t,r,e,o,i)}),f}function J(n){var t=[];return oe(n,function(n,e){X(n)&&t.push(e)}),t.sort()}function Q(n){for(var t=-1,e=ne(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function W(n,t,e,r,a,o){var f=e===i;if(typeof e=="function"&&!f){e=u.createCallback(e,r,2);
var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Ut.call(n),l=Ut.call(t),p==C&&(p=S),l==C&&(l=S),p!=l)return!1;switch(p){case k:case x:return+n==+t;case E:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case A:case I:return n==Pt(t)}if(l=p==j,!l){if(Lt.call(n,"__wrapped__")||Lt.call(t,"__wrapped__"))return W(n.__wrapped__||n,t.__wrapped__||t,e,r,a,o);
if(p!=S||!Yt.nodeClass&&(L(n)||L(t)))return!1;var p=!Yt.argsObject&&G(n)?It:n.constructor,s=!Yt.argsObject&&G(t)?It:t.constructor;if(p!=s&&(!X(p)||!(p instanceof p&&X(s)&&s instanceof s)))return!1}for(a||(a=[]),o||(o=[]),p=a.length;p--;)if(a[p]==n)return o[p]==t;var v=0,c=!0;if(a.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=W(n[l],s,e,r,a,o)););else if(!(c=W(n[v],s,e,r,a,o)))break;return c}return oe(t,function(t,u,i){return Lt.call(i,u)?(v++,c=Lt.call(n,u)&&W(n[u],t,e,r,a,o)):void 0
}),c&&!f&&oe(n,function(n,t,e){return Lt.call(e,t)?c=-1<--v:void 0}),c}function X(n){return typeof n=="function"}function Y(n){return n?P[typeof n]:!1}function Z(n){return typeof n=="number"||Ut.call(n)==E}function nt(n){return typeof n=="string"||Ut.call(n)==I}function tt(n,t,e){var r=arguments,a=0,o=2;if(!Y(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=u.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);
@@ -26,14 +26,14 @@ var Zt=function(n){return Yt.argsObject&&n instanceof kt||Ut.call(n)==j},ne=$({a
});var fe=function(n){var t=!1;if(!n||Ut.call(n)!=S||!Yt.argsClass&&G(n))return t;var e=n.constructor;return(X(e)?e instanceof e:Yt.nodeClass||!L(n))?Yt.ownLast?(oe(n,function(n,e,r){return t=Lt.call(r,e),!1}),!0===t):(oe(n,function(n,e){t=e}),!1===t||Lt.call(n,t)):t},xt=8==Qt("08")?Qt:function(n,t){return Qt(nt(n)?n.replace(y,""):n,t||0)};return u.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},u.assign=ue,u.at=function(n){var t=-1,e=Dt.apply(Ft,U(arguments,1)),r=e.length,u=kt(r);
for(Yt.unindexedChars&&nt(n)&&(n=n.split(""));++t<r;)u[t]=n[e[t]];return u},u.bind=_t,u.bindAll=function(n){for(var t=Dt.apply(Ft,arguments),e=1<t.length?0:(t=J(n),-1),r=t.length;++e<r;){var u=t[e];n[u]=_t(n[u],n)}return n},u.bindKey=function(n,t){return T(n,t,U(arguments,2),i)},u.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},u.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]
}},u.countBy=function(n,t,e){var r={};return t=u.createCallback(t,e),it(n,function(n,e,u){e=Pt(t(n,e,u)),Lt.call(r,e)?r[e]++:r[e]=1}),r},u.createCallback=function(n,t,e){if(null==n)return wt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=ne(n);return function(t){for(var e=u.length,r=!1;e--&&(r=W(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)
-}:function(e,r,u){return n.call(t,e,r,u)}:n},u.debounce=function(n,t,e){function r(){i=null,e||(a=n.apply(o,u))}var u,a,o,i;return function(){var f=e&&!i;return u=arguments,o=this,$t(i),i=Mt(r,t),f&&(a=n.apply(o,u)),a}},u.defaults=ae,u.defer=function(n){var t=U(arguments,1);return Mt(function(){n.apply(e,t)},1)},u.delay=function(n,t){var r=U(arguments,2);return Mt(function(){n.apply(e,r)},t)},u.difference=function(n){for(var t=-1,e=n?n.length:0,r=Dt.apply(Ft,arguments),r=a(r,e,100),u=[];++t<e;){var o=n[t];
+}:function(e,r,u){return n.call(t,e,r,u)}:n},u.debounce=function(n,t,e){function r(){i=null,f&&(a=n.apply(o,u))}var u,a,o,i,f=!0;if(!0===e)var c=!0,f=!1;else e&&(c=e.leading,f=e.trailing);return function(){var e=c&&!i;return u=arguments,o=this,$t(i),i=Mt(r,t),e&&(a=n.apply(o,u)),a}},u.defaults=ae,u.defer=function(n){var t=U(arguments,1);return Mt(function(){n.apply(e,t)},1)},u.delay=function(n,t){var r=U(arguments,2);return Mt(function(){n.apply(e,r)},t)},u.difference=function(n){for(var t=-1,e=n?n.length:0,r=Dt.apply(Ft,arguments),r=a(r,e,100),u=[];++t<e;){var o=n[t];
r(o)||u.push(o)}return u},u.filter=at,u.flatten=gt,u.forEach=it,u.forIn=oe,u.forOwn=ie,u.functions=J,u.groupBy=function(n,t,e){var r={};return t=u.createCallback(t,e),it(n,function(n,e,u){e=Pt(t(n,e,u)),(Lt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},u.initial=function(n,t,e){if(!n)return[];var r=0,a=n.length;if(typeof t!="number"&&null!=t){var o=a;for(t=u.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return U(n,0,Jt(Ht(0,a-r),a))},u.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,o=n?n.length:0,i=100<=o,c=[],l=c;
n:for(;++u<o;){var p=n[u];if(i)var s=f+p,s=r[0][s]?!(l=r[0][s]):l=r[0][s]=[];if(s||0>ht(l,p)){i&&l.push(p);for(var v=e;--v;)if(!(r[v]||(r[v]=a(t[v],0,100)))(p))continue n;c.push(p)}}return c},u.invert=Q,u.invoke=function(n,t){var e=U(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=kt(typeof a=="number"?a:0);return it(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},u.keys=ne,u.map=ft,u.max=ct,u.memoize=function(n,t){var e={};return function(){var r=f+(t?t.apply(this,arguments):arguments[0]);
return Lt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},u.merge=tt,u.min=function(n,t,e){var r=1/0,a=r;if(!t&&Zt(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&nt(n)?B:u.createCallback(t,e),te(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)});return a},u.omit=function(n,t,e){var r=typeof t=="function",a={};if(r)t=u.createCallback(t,e);else var o=Dt.apply(Ft,arguments);return oe(n,function(n,e,u){(r?!t(n,e,u):0>ht(o,e,1))&&(a[e]=n)}),a},u.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)
}},u.pairs=function(n){for(var t=-1,e=ne(n),r=e.length,u=kt(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},u.partial=function(n){return T(n,U(arguments,1))},u.partialRight=function(n){return T(n,U(arguments,1),null,i)},u.pick=function(n,t,e){var r={};if(typeof t!="function")for(var a=0,o=Dt.apply(Ft,arguments),i=Y(n)?o.length:0;++a<i;){var f=o[a];f in n&&(r[f]=n[f])}else t=u.createCallback(t,e),oe(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},u.pluck=ft,u.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);
var r=-1;t=Ht(0,Tt((t-n)/e));for(var u=kt(t);++r<t;)u[r]=n,n+=e;return u},u.reject=function(n,t,e){return t=u.createCallback(t,e),at(n,function(n,e,r){return!t(n,e,r)})},u.rest=yt,u.shuffle=function(n){var t=-1,e=n?n.length:0,r=kt(typeof e=="number"?e:0);return it(n,function(n){var e=zt(Wt()*(++t+1));r[t]=r[e],r[e]=n}),r},u.sortBy=function(n,t,e){var r=-1,a=n?n.length:0,o=kt(typeof a=="number"?a:0);for(t=u.createCallback(t,e),it(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),a=o.length,o.sort(R);a--;)o[a]=o[a].c;
-return o},u.tap=function(n,t){return t(n),n},u.throttle=function(n,t){function e(){i=new Ot,o=null,u=n.apply(a,r)}var r,u,a,o,i=0;return function(){var f=new Ot,c=t-(f-i);return r=arguments,a=this,0<c?o||(o=Mt(e,c)):($t(o),o=null,i=f,u=n.apply(a,r)),u}},u.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,a=kt(n);for(t=u.createCallback(t,e,1);++r<n;)a[r]=t(r);return a},u.toArray=function(n){return n&&typeof n.length=="number"?Yt.unindexedChars&&nt(n)?n.split(""):U(n):et(n)},u.union=function(){return dt(Dt.apply(Ft,arguments))
-},u.uniq=dt,u.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?ct(ft(n,"length")):0,u=kt(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=kt(e)))[t]=o[a];return u},u.values=et,u.where=at,u.without=function(n){for(var t=-1,e=n?n.length:0,r=a(arguments,1,30),u=[];++t<e;){var o=n[t];r(o)||u.push(o)}return u},u.wrap=function(n,t){return function(){var e=[n];return Kt.apply(e,arguments),t.apply(this,e)}},u.zip=function(n){for(var t=-1,e=n?ct(ft(arguments,"length")):0,r=kt(e);++t<e;)r[t]=ft(arguments,t);
+return o},u.tap=function(n,t){return t(n),n},u.throttle=function(n,t,e){function r(){f=new Ot,i=null,l&&(a=n.apply(o,u))}var u,a,o,i,f=0,c=!0,l=!0;return!1===e?c=!1:e&&(c=e.leading,l=e.trailing),function(){var e=new Ot;!i&&!c&&(f=e);var l=t-(e-f);return u=arguments,o=this,0<l?i||(i=Mt(r,l)):($t(i),i=null,f=e,a=n.apply(o,u)),a}},u.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,a=kt(n);for(t=u.createCallback(t,e,1);++r<n;)a[r]=t(r);return a},u.toArray=function(n){return n&&typeof n.length=="number"?Yt.unindexedChars&&nt(n)?n.split(""):U(n):et(n)
+},u.union=function(){return dt(Dt.apply(Ft,arguments))},u.uniq=dt,u.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?ct(ft(n,"length")):0,u=kt(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=kt(e)))[t]=o[a];return u},u.values=et,u.where=at,u.without=function(n){for(var t=-1,e=n?n.length:0,r=a(arguments,1,30),u=[];++t<e;){var o=n[t];r(o)||u.push(o)}return u},u.wrap=function(n,t){return function(){var e=[n];return Kt.apply(e,arguments),t.apply(this,e)}},u.zip=function(n){for(var t=-1,e=n?ct(ft(arguments,"length")):0,r=kt(e);++t<e;)r[t]=ft(arguments,t);
return r},u.zipObject=bt,u.collect=ft,u.drop=yt,u.each=it,u.extend=ue,u.methods=J,u.object=bt,u.select=at,u.tail=yt,u.unique=dt,Ct(u),u.clone=H,u.cloneDeep=function(n,t,e){return H(n,!0,t,e)},u.contains=rt,u.escape=function(n){return null==n?"":Pt(n).replace(d,z)},u.every=ut,u.find=ot,u.findIndex=function(n,t,e){var r=-1,a=n?n.length:0;for(t=u.createCallback(t,e);++r<a;)if(t(n[r],r,n))return r;return-1},u.findKey=function(n,t,e){var r;return t=u.createCallback(t,e),ie(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0
}),r},u.has=function(n,t){return n?Lt.call(n,t):!1},u.identity=wt,u.indexOf=ht,u.isArguments=G,u.isArray=Zt,u.isBoolean=function(n){return!0===n||!1===n||Ut.call(n)==k},u.isDate=function(n){return n instanceof Ot||Ut.call(n)==x},u.isElement=function(n){return n?1===n.nodeType:!1},u.isEmpty=function(n){var t=!0;if(!n)return t;var e=Ut.call(n),r=n.length;return e==j||e==I||(Yt.argsClass?e==C:G(n))||e==S&&typeof r=="number"&&X(n.splice)?!r:(ie(n,function(){return t=!1}),t)},u.isEqual=W,u.isFinite=function(n){return Vt(n)&&!Gt(parseFloat(n))
},u.isFunction=X,u.isNaN=function(n){return Z(n)&&n!=+n},u.isNull=function(n){return null===n},u.isNumber=Z,u.isObject=Y,u.isPlainObject=fe,u.isRegExp=function(n){return n instanceof Nt||Ut.call(n)==A},u.isString=nt,u.isUndefined=function(n){return typeof n=="undefined"},u.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ht(0,r+e):Jt(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},u.mixin=Ct,u.noConflict=function(){return r._=Rt,this},u.parseInt=xt,u.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+zt(Wt()*((+t||0)-n+1))
View
75 dist/lodash.min.js
@@ -4,40 +4,41 @@
* Build: `lodash modern -o ./dist/lodash.js`
* Underscore.js 1.4.4 underscorejs.org/LICENSE
*/
-;(function(n){function t(r){function a(n){return n&&typeof n=="object"&&!oe(n)&&Vt.call(n,"__wrapped__")?n:new P(n)}function q(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=f+n[e];(a[o]||(a[o]=[])).push(n[e])}}return function(e){if(u){var r=f+e;return a[r]&&-1<ht(a[r],e)}return-1<ht(n,e,t)}}function B(n){return n.charCodeAt(0)}function F(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function R(n,t,e,r){function u(){var r=arguments,c=o?this:t;
-return a||(n=t[i]),e.length&&(r=r.length?(r=U(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(K.prototype=n.prototype,c=new K,K.prototype=null,r=n.apply(c,r),X(r)?r:c):n.apply(c,r)}var a=W(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Bt;t=n}return u}function T(){for(var n,t={b:"k(m)",c:"",e:"m",f:"",h:"",i:!0,j:!!ie},e=0;n=arguments[e];e++)for(var r in n)t[r]=n[r];return n=t.a,t.d=/^[^,]+/.exec(n)[0],e=Et,r="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b&&(r+="var n=m.length;i=-1;if("+t.b+"){while(++i<n){"+t.f+"}}else{"),t.i&&t.j?r+="var s=-1,t=r[typeof m]?o(m):[],n=t.length;while(++s<n){i=t[s];"+t.f+"}":(r+="for(i in m){",t.i&&(r+="if(",t.i&&(r+="h.call(m,i)"),r+="){"),r+=t.f+";",t.i&&(r+="}"),r+="}"),t.b&&(r+="}"),r+=t.c+";return u",e("h,j,k,l,o,p,r","return function("+n+"){"+r+"}")(Vt,G,oe,Z,ie,a,S)
-}function D(n){return"\\"+A[n]}function z(n){return fe[n]}function P(n){this.__wrapped__=n}function K(){}function M(n){var t=!1;if(!n||Lt.call(n)!=O)return t;var e=n.constructor;return(W(e)?e instanceof e:ae.nodeClass||!isNode(n))?(se(n,function(n,e){t=e}),!1===t||Vt.call(n,t)):t}function U(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=xt(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function V(n){return ce[n]}function G(n){return Lt.call(n)==k}function H(n,t,r,u,o,i){var f=n;
-if(typeof t=="function"&&(u=r,r=t,t=!1),typeof r=="function"){if(r=typeof u=="undefined"?r:a.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;f=n}if(u=X(f)){var c=Lt.call(f);if(!I[c])return f;var l=oe(f)}if(!u||!t)return u?l?U(f):le({},f):f;switch(u=ue[c],c){case j:case C:return new u(+f);case x:case E:return new u(f);case N:return u(f.source,g.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Vt.call(n,"index")&&(f.index=n.index),Vt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?ot:ve)(n,function(n,u){f[u]=H(n,t,r,e,o,i)
-}),f}function J(n){var t=[];return se(n,function(n,e){W(n)&&t.push(e)}),t.sort()}function L(n){for(var t=-1,e=ie(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function Q(n,t,e,r,u,o){var f=e===i;if(e&&!f){e=typeof r=="undefined"?e:a.createCallback(e,r,2);var c=e(n,t);if(typeof c!="undefined")return!!c}if(n===t)return 0!==n||1/n==1/t;var l=typeof n,p=typeof t;if(n===n&&(!n||"function"!=l&&"object"!=l)&&(!t||"function"!=p&&"object"!=p))return!1;if(null==n||null==t)return n===t;if(p=Lt.call(n),l=Lt.call(t),p==k&&(p=O),l==k&&(l=O),p!=l)return!1;
-switch(p){case j:case C:return+n==+t;case x:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case N:case E:return n==qt(t)}if(l=p==w,!l){if(Vt.call(n,"__wrapped__")||Vt.call(t,"__wrapped__"))return Q(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);if(p!=O)return!1;var p=n.constructor,s=t.constructor;if(p!=s&&(!W(p)||!(p instanceof p&&W(s)&&s instanceof s)))return!1}for(u||(u=[]),o||(o=[]),p=u.length;p--;)if(u[p]==n)return o[p]==t;var v=0,c=!0;if(u.push(n),o.push(t),l){if(p=n.length,v=t.length,c=v==n.length,!c&&!f)return c;
-for(;v--;)if(l=p,s=t[v],f)for(;l--&&!(c=Q(n[l],s,e,r,u,o)););else if(!(c=Q(n[v],s,e,r,u,o)))break;return c}return se(t,function(t,a,i){return Vt.call(i,a)?(v++,c=Vt.call(n,a)&&Q(n[a],t,e,r,u,o)):void 0}),c&&!f&&se(n,function(n,t,e){return Vt.call(e,t)?c=-1<--v:void 0}),c}function W(n){return typeof n=="function"}function X(n){return n?S[typeof n]:!1}function Y(n){return typeof n=="number"||Lt.call(n)==x}function Z(n){return typeof n=="string"||Lt.call(n)==E}function nt(n,t,e){var r=arguments,u=0,o=2;
-if(!X(n))return n;if(e===i)var f=r[3],c=r[4],l=r[5];else c=[],l=[],typeof e!="number"&&(o=r.length),3<o&&"function"==typeof r[o-2]?f=a.createCallback(r[--o-1],r[o--],2):2<o&&"function"==typeof r[o-1]&&(f=r[--o]);for(;++u<o;)(oe(r[u])?ot:ve)(r[u],function(t,e){var r,u,a=t,o=n[e];if(t&&((u=oe(t))||ge(t))){for(a=c.length;a--;)if(r=c[a]==t){o=l[a];break}if(!r){var p,o=u?oe(o)?o:[]:ge(o)?o:{};f&&(a=f(o,t),p=typeof a!="undefined")&&(o=a),c.push(t),l.push(o),p||(o=nt(o,t,i,f,c,l))}}else f&&(a=f(o,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(o=a);
-n[e]=o});return n}function tt(n){for(var t=-1,e=ie(n),r=e.length,u=xt(r);++t<r;)u[t]=n[e[t]];return u}function et(n,t,e){var r=-1,u=n?n.length:0,a=!1;return e=(0>e?ne(0,u+e):e)||0,typeof u=="number"?a=-1<(Z(n)?n.indexOf(t,e):ht(n,t,e)):ve(n,function(n){return++r<e?void 0:!(a=n===t)}),a}function rt(n,t,e){var r=!0;t=a.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else ve(n,function(n,e,u){return r=!!t(n,e,u)});return r}function ut(n,t,e){var r=[];
-t=a.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else ve(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function at(n,t,e){t=a.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return ve(n,function(n,e,r){return t(n,e,r)?(u=n,!1):void 0}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function ot(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:a.createCallback(t,e),typeof u=="number")for(;++r<u&&!1!==t(n[r],r,n););else ve(n,t);
-return n}function it(n,t,e){var r=-1,u=n?n.length:0;if(t=a.createCallback(t,e),typeof u=="number")for(var o=xt(u);++r<u;)o[r]=t(n[r],r,n);else o=[],ve(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function ft(n,t,e){var r=-1/0,u=r;if(!t&&oe(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>u&&(u=i)}}else t=!t&&Z(n)?B:a.createCallback(t,e),ot(n,function(n,e,a){e=t(n,e,a),e>r&&(r=e,u=n)});return u}function ct(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=xt(r);++e<r;)u[e]=n[e][t];return u||it(n,t)
-}function lt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=a.createCallback(t,r,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n);else ve(n,function(n,r,a){e=u?(u=!1,n):t(e,n,r,a)});return e}function pt(n,t,e,r){var u=n?n.length:0,o=3>arguments.length;if(typeof u!="number")var i=ie(n),u=i.length;return t=a.createCallback(t,r,4),ot(n,function(r,a,f){a=i?i[--u]:--u,e=o?(o=!1,n[a]):t(e,n[a],a,f)}),e}function st(n,t,e){var r;t=a.createCallback(t,e),e=-1;var u=n?n.length:0;
-if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else ve(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function vt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=a.createCallback(t,e);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return U(n,0,te(ne(0,r),u))}}function gt(n,t,e,r){var u=-1,o=n?n.length:0,i=[];for(typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),null!=e&&(e=a.createCallback(e,r));++u<o;)r=n[u],e&&(r=e(r,u,n)),oe(r)?Gt.apply(i,t?r:gt(r)):i.push(r);
-return i}function ht(n,t,e){var r=-1,u=n?n.length:0;if(typeof e=="number")r=(0>e?ne(0,u+e):e||0)-1;else if(e)return r=mt(n,t),n[r]===t?r:-1;for(;++r<u;)if(n[r]===t)return r;return-1}function yt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=a.createCallback(t,e);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:ne(0,t);return U(n,r)}function mt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?a.createCallback(e,r,1):wt,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function bt(n,t,e,r){var u=-1,o=n?n.length:0,i=[],c=i;
-typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1);var l=!t&&75<=o;if(l)var p={};for(null!=e&&(c=[],e=a.createCallback(e,r));++u<o;){r=n[u];var s=e?e(r,u,n):r;if(l)var v=f+s,v=p[v]?!(c=p[v]):c=p[v]=[];(t?!u||c[c.length-1]!==s:v||0>ht(c,s))&&((e||l)&&c.push(s),i.push(r))}return i}function dt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:u[a[0]]=a[1]}return u}function _t(n,t){return ae.fastBind||Qt&&2<arguments.length?Qt.call.apply(Qt,arguments):R(n,t,U(arguments,2))}function kt(n){var t=U(arguments,1);
-return Jt(function(){n.apply(e,t)},1)}function wt(n){return n}function jt(n){ot(J(n),function(t){var e=a[t]=n[t];a.prototype[t]=function(){var n=this.__wrapped__,t=[n];return Gt.apply(t,arguments),t=e.apply(a,t),n&&typeof n=="object"&&n==t?this:new P(t)}})}function Ct(){return this.__wrapped__}r=r?$.defaults(n.Object(),r,$.pick(n,_)):n;var xt=r.Array,Ot=r.Boolean,Nt=r.Date,Et=r.Function,It=r.Math,St=r.Number,At=r.Object,$t=r.RegExp,qt=r.String,Bt=r.TypeError,Ft=xt(),Rt=At(),Tt=r._,Dt=$t("^"+qt(Rt.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),zt=It.ceil,Pt=r.clearTimeout,Kt=Ft.concat,Mt=It.floor,Ut=Dt.test(Ut=At.getPrototypeOf)&&Ut,Vt=Rt.hasOwnProperty,Gt=Ft.push,Ht=r.setImmediate,Jt=r.setTimeout,Lt=Rt.toString,Qt=Dt.test(Qt=Lt.bind)&&Qt,Wt=Dt.test(Wt=xt.isArray)&&Wt,Xt=r.isFinite,Yt=r.isNaN,Zt=Dt.test(Zt=At.keys)&&Zt,ne=It.max,te=It.min,ee=r.parseInt,re=It.random,It=Dt.test(r.attachEvent),It=Qt&&!/\n|true/.test(Qt+It),ue={};
-ue[w]=xt,ue[j]=Ot,ue[C]=Nt,ue[O]=At,ue[x]=St,ue[N]=$t,ue[E]=qt;var ae=a.support={};ae.fastBind=Qt&&!It,a.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:h,variable:"",imports:{_:a}},Ot={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},St={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:!1,f:"if(d(m[i],i,e)===false)return u"},At={h:"if(!r[typeof m])return u;"+St.h,b:!1},P.prototype=a.prototype;
-var oe=Wt||function(n){return n instanceof xt||Lt.call(n)==w},Wt=T({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:!1}),ie=Zt?function(n){return X(n)?Zt(n):[]}:Wt,fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce=L(fe),le=T(Ot,{h:Ot.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),pe=T(Ot),se=T(St,At,{i:!1}),ve=T(St,At),ge=function(n){if(!n||Lt.call(n)!=O)return!1;
-var t=n.valueOf,e=typeof t=="function"&&(e=Ut(t))&&Ut(e);return e?n==e||Ut(n)==e:M(n)};return It&&u&&typeof Ht=="function"&&(kt=_t(Ht,r)),Ht=8==ee("08")?ee:function(n,t){return ee(Z(n)?n.replace(y,""):n,t||0)},a.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},a.assign=le,a.at=function(n){for(var t=-1,e=Kt.apply(Ft,U(arguments,1)),r=e.length,u=xt(r);++t<r;)u[t]=n[e[t]];return u},a.bind=_t,a.bindAll=function(n){for(var t=Kt.apply(Ft,arguments),e=1<t.length?0:(t=J(n),-1),r=t.length;++e<r;){var u=t[e];
-n[u]=_t(n[u],n)}return n},a.bindKey=function(n,t){return R(n,t,U(arguments,2),i)},a.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},a.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},a.countBy=function(n,t,e){var r={};return t=a.createCallback(t,e),ot(n,function(n,e,u){e=qt(t(n,e,u)),Vt.call(r,e)?r[e]++:r[e]=1}),r},a.createCallback=function(n,t,e){if(null==n)return wt;var r=typeof n;
-if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=ie(n);return function(t){for(var e=u.length,r=!1;e--&&(r=Q(t[u[e]],n[u[e]],i)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}:n},a.debounce=function(n,t,e){function r(){i=null,e||(a=n.apply(o,u))}var u,a,o,i;return function(){var f=e&&!i;return u=arguments,o=this,Pt(i),i=Jt(r,t),f&&(a=n.apply(o,u)),a
-}},a.defaults=pe,a.defer=kt,a.delay=function(n,t){var r=U(arguments,2);return Jt(function(){n.apply(e,r)},t)},a.difference=function(n){for(var t=-1,e=n?n.length:0,r=Kt.apply(Ft,arguments),r=q(r,e,100),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},a.filter=ut,a.flatten=gt,a.forEach=ot,a.forIn=se,a.forOwn=ve,a.functions=J,a.groupBy=function(n,t,e){var r={};return t=a.createCallback(t,e),ot(n,function(n,e,u){e=qt(t(n,e,u)),(Vt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},a.initial=function(n,t,e){if(!n)return[];
-var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return U(n,0,te(ne(0,u-r),u))},a.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],c=i;n:for(;++u<a;){var l=n[u];if(o)var p=f+l,p=r[0][p]?!(c=r[0][p]):c=r[0][p]=[];if(p||0>ht(c,l)){o&&c.push(l);for(var s=e;--s;)if(!(r[s]||(r[s]=q(t[s],0,100)))(l))continue n;i.push(l)}}return i},a.invert=L,a.invoke=function(n,t){var e=U(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=xt(typeof a=="number"?a:0);
-return ot(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},a.keys=ie,a.map=it,a.max=ft,a.memoize=function(n,t){var e={};return function(){var r=f+(t?t.apply(this,arguments):arguments[0]);return Vt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},a.merge=nt,a.min=function(n,t,e){var r=1/0,u=r;if(!t&&oe(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<u&&(u=i)}}else t=!t&&Z(n)?B:a.createCallback(t,e),ot(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},a.omit=function(n,t,e){var r=typeof t=="function",u={};
-if(r)t=a.createCallback(t,e);else var o=Kt.apply(Ft,arguments);return se(n,function(n,e,a){(r?!t(n,e,a):0>ht(o,e,1))&&(u[e]=n)}),u},a.once=function(n){var t,e;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},a.pairs=function(n){for(var t=-1,e=ie(n),r=e.length,u=xt(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},a.partial=function(n){return R(n,U(arguments,1))},a.partialRight=function(n){return R(n,U(arguments,1),null,i)},a.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=0,o=Kt.apply(Ft,arguments),i=X(n)?o.length:0;++u<i;){var f=o[u];
-f in n&&(r[f]=n[f])}else t=a.createCallback(t,e),se(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},a.pluck=ct,a.range=function(n,t,e){n=+n||0,e=+e||1,null==t&&(t=n,n=0);var r=-1;t=ne(0,zt((t-n)/e));for(var u=xt(t);++r<t;)u[r]=n,n+=e;return u},a.reject=function(n,t,e){return t=a.createCallback(t,e),ut(n,function(n,e,r){return!t(n,e,r)})},a.rest=yt,a.shuffle=function(n){var t=-1,e=n?n.length:0,r=xt(typeof e=="number"?e:0);return ot(n,function(n){var e=Mt(re()*(++t+1));r[t]=r[e],r[e]=n}),r},a.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=xt(typeof u=="number"?u:0);
-for(t=a.createCallback(t,e),ot(n,function(n,e,u){o[++r]={a:t(n,e,u),b:r,c:n}}),u=o.length,o.sort(F);u--;)o[u]=o[u].c;return o},a.tap=function(n,t){return t(n),n},a.throttle=function(n,t){function e(){i=new Nt,o=null,u=n.apply(a,r)}var r,u,a,o,i=0;return function(){var f=new Nt,c=t-(f-i);return r=arguments,a=this,0<c?o||(o=Jt(e,c)):(Pt(o),o=null,i=f,u=n.apply(a,r)),u}},a.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=xt(n);for(t=a.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},a.toArray=function(n){return n&&typeof n.length=="number"?U(n):tt(n)
-},a.union=function(){return bt(Kt.apply(Ft,arguments))},a.uniq=bt,a.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?ft(ct(n,"length")):0,u=xt(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=xt(e)))[t]=o[a];return u},a.values=tt,a.where=ut,a.without=function(n){for(var t=-1,e=n?n.length:0,r=q(arguments,1,30),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},a.wrap=function(n,t){return function(){var e=[n];return Gt.apply(e,arguments),t.apply(this,e)}},a.zip=function(n){for(var t=-1,e=n?ft(ct(arguments,"length")):0,r=xt(e);++t<e;)r[t]=ct(arguments,t);
-return r},a.zipObject=dt,a.collect=it,a.drop=yt,a.each=ot,a.extend=le,a.methods=J,a.object=dt,a.select=ut,a.tail=yt,a.unique=bt,jt(a),a.clone=H,a.cloneDeep=function(n,t,e){return H(n,!0,t,e)},a.contains=et,a.escape=function(n){return null==n?"":qt(n).replace(b,z)},a.every=rt,a.find=at,a.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=a.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},a.findKey=function(n,t,e){var r;return t=a.createCallback(t,e),ve(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0
-}),r},a.has=function(n,t){return n?Vt.call(n,t):!1},a.identity=wt,a.indexOf=ht,a.isArguments=G,a.isArray=oe,a.isBoolean=function(n){return!0===n||!1===n||Lt.call(n)==j},a.isDate=function(n){return n instanceof Nt||Lt.call(n)==C},a.isElement=function(n){return n?1===n.nodeType:!1},a.isEmpty=function(n){var t=!0;if(!n)return t;var e=Lt.call(n),r=n.length;return e==w||e==E||e==k||e==O&&typeof r=="number"&&W(n.splice)?!r:(ve(n,function(){return t=!1}),t)},a.isEqual=Q,a.isFinite=function(n){return Xt(n)&&!Yt(parseFloat(n))
-},a.isFunction=W,a.isNaN=function(n){return Y(n)&&n!=+n},a.isNull=function(n){return null===n},a.isNumber=Y,a.isObject=X,a.isPlainObject=ge,a.isRegExp=function(n){return n instanceof $t||Lt.call(n)==N},a.isString=Z,a.isUndefined=function(n){return typeof n=="undefined"},a.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?ne(0,r+e):te(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},a.mixin=jt,a.noConflict=function(){return r._=Tt,this},a.parseInt=Ht,a.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Mt(re()*((+t||0)-n+1))
-},a.reduce=lt,a.reduceRight=pt,a.result=function(n,t){var r=n?n[t]:e;return W(r)?n[t]():r},a.runInContext=t,a.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ie(n).length},a.some=st,a.sortedIndex=mt,a.template=function(n,t,r){var u=a.templateSettings;n||(n=""),r=pe({},r,u);var o,i=pe({},r.imports,u.imports),u=ie(i),i=tt(i),f=0,s=r.interpolate||m,g="__p+='",s=$t((r.escape||m).source+"|"+s.source+"|"+(s===h?v:m).source+"|"+(r.evaluate||m).source+"|$","g");n.replace(s,function(t,e,r,u,a,i){return r||(r=u),g+=n.slice(f,i).replace(d,D),e&&(g+="'+__e("+e+")+'"),a&&(o=!0,g+="';"+a+";__p+='"),r&&(g+="'+((__t=("+r+"))==null?'':__t)+'"),f=i+t.length,t
-}),g+="';\n",s=r=r.variable,s||(r="obj",g="with("+r+"){"+g+"}"),g=(o?g.replace(c,""):g).replace(l,"$1").replace(p,"$1;"),g="function("+r+"){"+(s?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+g+"return __p}";try{var y=Et(u,"return "+g).apply(e,i)}catch(b){throw b.source=g,b}return t?y(t):(y.source=g,y)},a.unescape=function(n){return null==n?"":qt(n).replace(s,V)},a.uniqueId=function(n){var t=++o;return qt(null==n?"":n)+t
-},a.all=rt,a.any=st,a.detect=at,a.foldl=lt,a.foldr=pt,a.include=et,a.inject=lt,ve(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(){var t=[this.__wrapped__];return Gt.apply(t,arguments),n.apply(a,t)})}),a.first=vt,a.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=a.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return U(n,ne(0,u-r))}},a.take=vt,a.head=vt,ve(a,function(n,t){a.prototype[t]||(a.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
-return null==t||e&&typeof t!="function"?r:new P(r)})}),a.VERSION="1.1.1",a.prototype.toString=function(){return qt(this.__wrapped__)},a.prototype.value=Ct,a.prototype.valueOf=Ct,ot(["join","pop","shift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),ot(["push","reverse","sort","unshift"],function(n){var t=Ft[n];a.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ot(["concat","slice","splice"],function(n){var t=Ft[n];a.prototype[n]=function(){return new P(t.apply(this.__wrapped__,arguments))
-}}),a}var e,r=typeof exports=="object"&&exports,u=typeof module=="object"&&module&&module.exports==r&&module,a=typeof global=="object"&&global;(a.global===a||a.window===a)&&(n=a);var o=0,i={},f=+new Date+"",c=/\b__p\+='';/g,l=/\b(__p\+=)''\+/g,p=/(__e\(.*?\)|\b__t\))\+'';/g,s=/&(?:amp|lt|gt|quot|#39);/g,v=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,g=/\w*$/,h=/<%=([\s\S]+?)%>/g,y=/^0+(?=.$)/,m=/($^)/,b=/[&<>"']/g,d=/['\n\r\t\u2028\u2029\\]/g,_="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),k="[object Arguments]",w="[object Array]",j="[object Boolean]",C="[object Date]",x="[object Number]",O="[object Object]",N="[object RegExp]",E="[object String]",I={"[object Function]":!1};
-I[k]=I[w]=I[j]=I[C]=I[x]=I[O]=I[N]=I[E]=!0;var S={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},A={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},$=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=$,define(function(){return $})):r&&!r.nodeType?u?(u.exports=$)._=$:r._=$:n._=$})(this);
+;(function(n){function t(o){function f(n){if(!n||Yt.call(n)!=I)return a;var t=n.valueOf,e=typeof t=="function"&&(e=Jt(t))&&Jt(e);return e?n==e||Jt(n)==e:H(n)}function R(n){return n&&typeof n=="object"&&!le(n)&&Lt.call(n,"__wrapped__")?n:new V(n)}function T(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=p+n[e];(a[o]||(a[o]=[])).push(n[e])}}return function(e){if(u){var r=p+e;return a[r]&&-1<dt(a[r],e)}return-1<dt(n,e,t)}}function D(n){return n.charCodeAt(0)}function z(n,t){var e=n.b,r=t.b;
+if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function P(n,t,e,r){function a(){var r=arguments,l=i?this:t;return o||(n=t[f]),e.length&&(r=r.length?(r=J(r),c?r.concat(e):e.concat(r)):e),this instanceof a?(G.prototype=n.prototype,l=new G,G.prototype=u,r=n.apply(l,r),tt(r)?r:l):n.apply(l,r)}var o=nt(n),i=!e,f=t;if(i){var c=r;e=t}else if(!o){if(!r)throw new Dt;t=n}return a}function K(){for(var n,t={b:"k(m)",c:"",e:"m",f:"",h:"",i:r,j:!!pe},e=0;n=arguments[e];e++)for(var u in n)t[u]=n[u];
+return n=t.a,t.d=/^[^,]+/.exec(n)[0],e="var i,m="+t.d+",u="+t.e+";if(!m)return u;"+t.h+";",t.b&&(e+="var n=m.length;i=-1;if("+t.b+"){while(++i<n){"+t.f+"}}else{"),t.i&&t.j?e+="var s=-1,t=r[typeof m]?o(m):[],n=t.length;while(++s<n){i=t[s];"+t.f+"}":(e+="for(i in m){",t.i&&(e+="if(",t.i&&(e+="h.call(m,i)"),e+="){"),e+=t.f+";",t.i&&(e+="}"),e+="}"),t.b&&(e+="}"),e+=t.c+";return u",$t("h,j,k,l,o,p,r","return function("+n+"){"+e+"}")(Lt,Q,le,rt,pe,R,q)}function M(n){return"\\"+B[n]}function U(n){return se[n]
+}function V(n){this.__wrapped__=n}function G(){}function H(n){var t=a;if(!n||Yt.call(n)!=I)return t;var e=n.constructor;return(nt(e)?e instanceof e:ce.nodeClass||!isNode(n))?(ye(n,function(n,e){t=e}),t===a||Lt.call(n,t)):t}function J(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=It(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function L(n){return ve[n]}function Q(n){return Yt.call(n)==C}function W(n,t,r,u,o,i){var f=n;if(typeof t=="function"&&(u=r,r=t,t=a),typeof r=="function"){if(r=typeof u=="undefined"?r:R.createCallback(r,u,1),f=r(f),typeof f!="undefined")return f;
+f=n}if(u=tt(f)){var c=Yt.call(f);if(!$[c])return f;var l=le(f)}if(!u||!t)return u?l?J(f):ge({},f):f;switch(u=fe[c],c){case O:case N:return new u(+f);case E:case A:return new u(f);case S:return u(f.source,m.exec(f))}for(o||(o=[]),i||(i=[]),c=o.length;c--;)if(o[c]==n)return i[c];return f=l?u(f.length):{},l&&(Lt.call(n,"index")&&(f.index=n.index),Lt.call(n,"input")&&(f.input=n.input)),o.push(n),i.push(f),(l?lt:me)(n,function(n,u){f[u]=W(n,t,r,e,o,i)}),f}function X(n){var t=[];return ye(n,function(n,e){nt(n)&&t.push(e)
+}),t.sort()}function Y(n){for(var t=-1,e=pe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function Z(n,t,e,o,i,f){var c=e===l;if(typeof e=="function"&&!c){e=R.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=Yt.call(n),s=Yt.call(t),v==C&&(v=I),s==C&&(s=I),v!=s)return a;switch(v){case O:case N:return+n==+t;
+case E:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case S:case A:return n==Tt(t)}if(s=v==x,!s){if(Lt.call(n,"__wrapped__")||Lt.call(t,"__wrapped__"))return Z(n.__wrapped__||n,t.__wrapped__||t,e,o,i,f);if(v!=I)return a;var v=n.constructor,g=t.constructor;if(v!=g&&(!nt(v)||!(v instanceof v&&nt(g)&&g instanceof g)))return a}for(i||(i=[]),f||(f=[]),v=i.length;v--;)if(i[v]==n)return f[v]==t;var h=0,p=r;if(i.push(n),f.push(t),s){if(v=n.length,h=t.length,p=h==n.length,!p&&!c)return p;for(;h--;)if(s=v,g=t[h],c)for(;s--&&!(p=Z(n[s],g,e,o,i,f)););else if(!(p=Z(n[h],g,e,o,i,f)))break;
+return p}return ye(t,function(t,r,u){return Lt.call(u,r)?(h++,p=Lt.call(n,r)&&Z(n[r],t,e,o,i,f)):void 0}),p&&!c&&ye(n,function(n,t,e){return Lt.call(e,t)?p=-1<--h:void 0}),p}function nt(n){return typeof n=="function"}function tt(n){return n?q[typeof n]:a}function et(n){return typeof n=="number"||Yt.call(n)==E}function rt(n){return typeof n=="string"||Yt.call(n)==A}function ut(n,t,e){var r=arguments,u=0,a=2;if(!tt(n))return n;if(e===l)var o=r[3],i=r[4],c=r[5];else i=[],c=[],typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=R.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a]);
+for(;++u<a;)(le(r[u])?lt:me)(r[u],function(t,e){var r,u,a=t,p=n[e];if(t&&((u=le(t))||f(t))){for(a=i.length;a--;)if(r=i[a]==t){p=c[a];break}if(!r){var s,p=u?le(p)?p:[]:f(p)?p:{};o&&(a=o(p,t),s=typeof a!="undefined")&&(p=a),i.push(t),c.push(p),s||(p=ut(p,t,l,o,i,c))}}else o&&(a=o(p,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(p=a);n[e]=p});return n}function at(n){for(var t=-1,e=pe(n),r=e.length,u=It(r);++t<r;)u[t]=n[e[t]];return u}function ot(n,t,e){var r=-1,u=n?n.length:0,o=a;return e=(0>e?ue(0,u+e):e)||0,typeof u=="number"?o=-1<(rt(n)?n.indexOf(t,e):dt(n,t,e)):me(n,function(n){return++r<e?void 0:!(o=n===t)
+}),o}function it(n,t,e){var u=r;t=R.createCallback(t,e),e=-1;var a=n?n.length:0;if(typeof a=="number")for(;++e<a&&(u=!!t(n[e],e,n)););else me(n,function(n,e,r){return u=!!t(n,e,r)});return u}function ft(n,t,e){var r=[];t=R.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else me(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function ct(n,t,e){t=R.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return me(n,function(n,e,r){return t(n,e,r)?(u=n,a):void 0
+}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function lt(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:R.createCallback(t,e),typeof u=="number")for(;++r<u&&t(n[r],r,n)!==a;);else me(n,t);return n}function pt(n,t,e){var r=-1,u=n?n.length:0;if(t=R.createCallback(t,e),typeof u=="number")for(var a=It(u);++r<u;)a[r]=t(n[r],r,n);else a=[],me(n,function(n,e,u){a[++r]=t(n,e,u)});return a}function st(n,t,e){var r=-1/0,u=r;if(!t&&le(n)){e=-1;for(var a=n.length;++e<a;){var o=n[e];o>u&&(u=o)
+}}else t=!t&&rt(n)?D:R.createCallback(t,e),lt(n,function(n,e,a){e=t(n,e,a),e>r&&(r=e,u=n)});return u}function vt(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=It(r);++e<r;)u[e]=n[e][t];return u||pt(n,t)}function gt(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=R.createCallback(t,r,4);var o=-1,i=n.length;if(typeof i=="number")for(u&&(e=n[++o]);++o<i;)e=t(e,n[o],o,n);else me(n,function(n,r,o){e=u?(u=a,n):t(e,n,r,o)});return e}function ht(n,t,e,r){var u=n?n.length:0,o=3>arguments.length;
+if(typeof u!="number")var i=pe(n),u=i.length;return t=R.createCallback(t,r,4),lt(n,function(r,f,c){f=i?i[--u]:--u,e=o?(o=a,n[f]):t(e,n[f],f,c)}),e}function yt(n,t,e){var r;t=R.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else me(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function mt(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=-1;for(t=R.createCallback(t,e);++o<a&&t(n[o],o,n);)r++}else if(r=t,r==u||e)return n[0];return J(n,0,ae(ue(0,r),a))
+}}function bt(n,t,e,r){var o=-1,i=n?n.length:0,f=[];for(typeof t!="boolean"&&t!=u&&(r=e,e=t,t=a),e!=u&&(e=R.createCallback(e,r));++o<i;)r=n[o],e&&(r=e(r,o,n)),le(r)?Qt.apply(f,t?r:bt(r)):f.push(r);return f}function dt(n,t,e){var r=-1,u=n?n.length:0;if(typeof e=="number")r=(0>e?ue(0,u+e):e||0)-1;else if(e)return r=kt(n,t),n[r]===t?r:-1;for(;++r<u;)if(n[r]===t)return r;return-1}function _t(n,t,e){if(typeof t!="number"&&t!=u){var r=0,a=-1,o=n?n.length:0;for(t=R.createCallback(t,e);++a<o&&t(n[a],a,n);)r++
+}else r=t==u||e?1:ue(0,t);return J(n,r)}function kt(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?R.createCallback(e,r,1):Ot,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function wt(n,t,e,r){var o=-1,i=n?n.length:0,f=[],c=f;typeof t!="boolean"&&t!=u&&(r=e,e=t,t=a);var l=!t&&75<=i;if(l)var s={};for(e!=u&&(c=[],e=R.createCallback(e,r));++o<i;){r=n[o];var v=e?e(r,o,n):r;if(l)var g=p+v,g=s[g]?!(c=s[g]):c=s[g]=[];(t?!o||c[c.length-1]!==v:g||0>dt(c,v))&&((e||l)&&c.push(v),f.push(r))}return f}function jt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];
+t?u[a]=t[e]:u[a[0]]=a[1]}return u}function Ct(n,t){return ce.fastBind||Zt&&2<arguments.length?Zt.call.apply(Zt,arguments):P(n,t,J(arguments,2))}function xt(n){var t=J(arguments,1);return Xt(function(){n.apply(e,t)},1)}function Ot(n){return n}function Nt(n){lt(X(n),function(t){var e=R[t]=n[t];R.prototype[t]=function(){var n=this.__wrapped__,t=[n];return Qt.apply(t,arguments),t=e.apply(R,t),n&&typeof n=="object"&&n==t?this:new V(t)}})}function Et(){return this.__wrapped__}o=o?F.defaults(n.Object(),o,F.pick(n,j)):n;
+var It=o.Array,St=o.Boolean,At=o.Date,$t=o.Function,qt=o.Math,Bt=o.Number,Ft=o.Object,Rt=o.RegExp,Tt=o.String,Dt=o.TypeError,zt=It(),Pt=Ft(),Kt=o._,Mt=Rt("^"+Tt(Pt.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Ut=qt.ceil,Vt=o.clearTimeout,Gt=zt.concat,Ht=qt.floor,Jt=Mt.test(Jt=Ft.getPrototypeOf)&&Jt,Lt=Pt.hasOwnProperty,Qt=zt.push,Wt=o.setImmediate,Xt=o.setTimeout,Yt=Pt.toString,Zt=Mt.test(Zt=Yt.bind)&&Zt,ne=Mt.test(ne=It.isArray)&&ne,te=o.isFinite,ee=o.isNaN,re=Mt.test(re=Ft.keys)&&re,ue=qt.max,ae=qt.min,oe=o.parseInt,ie=qt.random,qt=Mt.test(o.attachEvent),qt=Zt&&!/\n|true/.test(Zt+qt),fe={};
+fe[x]=It,fe[O]=St,fe[N]=At,fe[I]=Ft,fe[E]=Bt,fe[S]=Rt,fe[A]=Tt;var ce=R.support={};ce.fastBind=Zt&&!qt,R.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:b,variable:"",imports:{_:R}},St={a:"q,w,g",h:"var a=arguments,b=0,c=typeof g=='number'?2:a.length;while(++b<c){m=a[b];if(m&&r[typeof m]){",f:"if(typeof u[i]=='undefined')u[i]=m[i]",c:"}}"},Bt={a:"e,d,x",h:"d=d&&typeof x=='undefined'?d:p.createCallback(d,x)",b:a,f:"if(d(m[i],i,e)===false)return u"},Ft={h:"if(!r[typeof m])return u;"+Bt.h,b:a},V.prototype=R.prototype;
+var le=ne||function(n){return n instanceof It||Yt.call(n)==x},ne=K({a:"q",e:"[]",h:"if(!(r[typeof q]))return u",f:"u.push(i)",b:a}),pe=re?function(n){return tt(n)?re(n):[]}:ne,se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ve=Y(se),ge=K(St,{h:St.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=p.createCallback(a[--c-1],a[c--],2);}else if(c>2&&typeof a[c-1]=='function'){d=a[--c];}"),f:"u[i]=d?d(u[i],m[i]):m[i]"}),he=K(St),ye=K(Bt,Ft,{i:a}),me=K(Bt,Ft);return qt&&i&&typeof Wt=="function"&&(xt=Ct(Wt,o)),Wt=8==oe("08")?oe:function(n,t){return oe(rt(n)?n.replace(d,""):n,t||0)
+},R.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},R.assign=ge,R.at=function(n){for(var t=-1,e=Gt.apply(zt,J(arguments,1)),r=e.length,u=It(r);++t<r;)u[t]=n[e[t]];return u},R.bind=Ct,R.bindAll=function(n){for(var t=Gt.apply(zt,arguments),e=1<t.length?0:(t=X(n),-1),r=t.length;++e<r;){var u=t[e];n[u]=Ct(n[u],n)}return n},R.bindKey=function(n,t){return P(n,t,J(arguments,2),l)},R.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)
+}return r},R.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},R.countBy=function(n,t,e){var r={};return t=R.createCallback(t,e),lt(n,function(n,e,u){e=Tt(t(n,e,u)),Lt.call(r,e)?r[e]++:r[e]=1}),r},R.createCallback=function(n,t,e){if(n==u)return Ot;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var o=pe(n);return function(t){for(var e=o.length,r=a;e--&&(r=Z(t[o[e]],n[o[e]],l)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)
+}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}:n},R.debounce=function(n,t,e){function o(){l=u,p&&(f=n.apply(c,i))}var i,f,c,l,p=r;if(e===r)var s=r,p=a;else e&&(s=e.leading,p=e.trailing);return function(){var e=s&&!l;return i=arguments,c=this,Vt(l),l=Xt(o,t),e&&(f=n.apply(c,i)),f}},R.defaults=he,R.defer=xt,R.delay=function(n,t){var r=J(arguments,2);return Xt(function(){n.apply(e,r)},t)},R.difference=function(n){for(var t=-1,e=n?n.length:0,r=Gt.apply(zt,arguments),r=T(r,e,100),u=[];++t<e;){var a=n[t];
+r(a)||u.push(a)}return u},R.filter=ft,R.flatten=bt,R.forEach=lt,R.forIn=ye,R.forOwn=me,R.functions=X,R.groupBy=function(n,t,e){var r={};return t=R.createCallback(t,e),lt(n,function(n,e,u){e=Tt(t(n,e,u)),(Lt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},R.initial=function(n,t,e){if(!n)return[];var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=a;for(t=R.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=t==u||e?1:t||r;return J(n,0,ae(ue(0,a-r),a))},R.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],f=i;
+n:for(;++u<a;){var c=n[u];if(o)var l=p+c,l=r[0][l]?!(f=r[0][l]):f=r[0][l]=[];if(l||0>dt(f,c)){o&&f.push(c);for(var s=e;--s;)if(!(r[s]||(r[s]=T(t[s],0,100)))(c))continue n;i.push(c)}}return i},R.invert=Y,R.invoke=function(n,t){var e=J(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=It(typeof a=="number"?a:0);return lt(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},R.keys=pe,R.map=pt,R.max=st,R.memoize=function(n,t){var e={};return function(){var r=p+(t?t.apply(this,arguments):arguments[0]);
+return Lt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},R.merge=ut,R.min=function(n,t,e){var r=1/0,u=r;if(!t&&le(n)){e=-1;for(var a=n.length;++e<a;){var o=n[e];o<u&&(u=o)}}else t=!t&&rt(n)?D:R.createCallback(t,e),lt(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},R.omit=function(n,t,e){var r=typeof t=="function",u={};if(r)t=R.createCallback(t,e);else var a=Gt.apply(zt,arguments);return ye(n,function(n,e,o){(r?!t(n,e,o):0>dt(a,e,1))&&(u[e]=n)}),u},R.once=function(n){var t,e;return function(){return t?e:(t=r,e=n.apply(this,arguments),n=u,e)
+}},R.pairs=function(n){for(var t=-1,e=pe(n),r=e.length,u=It(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},R.partial=function(n){return P(n,J(arguments,1))},R.partialRight=function(n){return P(n,J(arguments,1),u,l)},R.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=0,a=Gt.apply(zt,arguments),o=tt(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=R.createCallback(t,e),ye(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},R.pluck=vt,R.range=function(n,t,e){n=+n||0,e=+e||1,t==u&&(t=n,n=0);
+var r=-1;t=ue(0,Ut((t-n)/e));for(var a=It(t);++r<t;)a[r]=n,n+=e;return a},R.reject=function(n,t,e){return t=R.createCallback(t,e),ft(n,function(n,e,r){return!t(n,e,r)})},R.rest=_t,R.shuffle=function(n){var t=-1,e=n?n.length:0,r=It(typeof e=="number"?e:0);return lt(n,function(n){var e=Ht(ie()*(++t+1));r[t]=r[e],r[e]=n}),r},R.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,a=It(typeof u=="number"?u:0);for(t=R.createCallback(t,e),lt(n,function(n,e,u){a[++r]={a:t(n,e,u),b:r,c:n}}),u=a.length,a.sort(z);u--;)a[u]=a[u].c;
+return a},R.tap=function(n,t){return t(n),n},R.throttle=function(n,t,e){function o(){p=new At,l=u,v&&(f=n.apply(c,i))}var i,f,c,l,p=0,s=r,v=r;return e===a?s=a:e&&(s=e.leading,v=e.trailing),function(){var e=new At;!l&&!s&&(p=e);var r=t-(e-p);return i=arguments,c=this,0<r?l||(l=Xt(o,r)):(Vt(l),l=u,p=e,f=n.apply(c,i)),f}},R.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=It(n);for(t=R.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},R.toArray=function(n){return n&&typeof n.length=="number"?J(n):at(n)
+},R.union=function(){return wt(Gt.apply(zt,arguments))},R.uniq=wt,R.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?st(vt(n,"length")):0,u=It(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=It(e)))[t]=o[a];return u},R.values=at,R.where=ft,R.without=function(n){for(var t=-1,e=n?n.length:0,r=T(arguments,1,30),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},R.wrap=function(n,t){return function(){var e=[n];return Qt.apply(e,arguments),t.apply(this,e)}},R.zip=function(n){for(var t=-1,e=n?st(vt(arguments,"length")):0,r=It(e);++t<e;)r[t]=vt(arguments,t);
+return r},R.zipObject=jt,R.collect=pt,R.drop=_t,R.each=lt,R.extend=ge,R.methods=X,R.object=jt,R.select=ft,R.tail=_t,R.unique=wt,Nt(R),R.clone=W,R.cloneDeep=function(n,t,e){return W(n,r,t,e)},R.contains=ot,R.escape=function(n){return n==u?"":Tt(n).replace(k,U)},R.every=it,R.find=ct,R.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=R.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},R.findKey=function(n,t,e){var r;return t=R.createCallback(t,e),me(n,function(n,e,u){return t(n,e,u)?(r=e,a):void 0
+}),r},R.has=function(n,t){return n?Lt.call(n,t):a},R.identity=Ot,R.indexOf=dt,R.isArguments=Q,R.isArray=le,R.isBoolean=function(n){return n===r||n===a||Yt.call(n)==O},R.isDate=function(n){return n instanceof At||Yt.call(n)==N},R.isElement=function(n){return n?1===n.nodeType:a},R.isEmpty=function(n){var t=r;if(!n)return t;var e=Yt.call(n),u=n.length;return e==x||e==A||e==C||e==I&&typeof u=="number"&&nt(n.splice)?!u:(me(n,function(){return t=a}),t)},R.isEqual=Z,R.isFinite=function(n){return te(n)&&!ee(parseFloat(n))
+},R.isFunction=nt,R.isNaN=function(n){return et(n)&&n!=+n},R.isNull=function(n){return n===u},R.isNumber=et,R.isObject=tt,R.isPlainObject=f,R.isRegExp=function(n){return n instanceof Rt||Yt.call(n)==S},R.isString=rt,R.isUndefined=function(n){return typeof n=="undefined"},R.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?ue(0,r+e):ae(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},R.mixin=Nt,R.noConflict=function(){return o._=Kt,this},R.parseInt=Wt,R.random=function(n,t){return n==u&&t==u&&(t=1),n=+n||0,t==u&&(t=n,n=0),n+Ht(ie()*((+t||0)-n+1))
+},R.reduce=gt,R.reduceRight=ht,R.result=function(n,t){var r=n?n[t]:e;return nt(r)?n[t]():r},R.runInContext=t,R.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:pe(n).length},R.some=yt,R.sortedIndex=kt,R.template=function(n,t,u){var a=R.templateSettings;n||(n=""),u=he({},u,a);var o,i=he({},u.imports,a.imports),a=pe(i),i=at(i),f=0,c=u.interpolate||_,l="__p+='",c=Rt((u.escape||_).source+"|"+c.source+"|"+(c===b?y:_).source+"|"+(u.evaluate||_).source+"|$","g");n.replace(c,function(t,e,u,a,i,c){return u||(u=a),l+=n.slice(f,c).replace(w,M),e&&(l+="'+__e("+e+")+'"),i&&(o=r,l+="';"+i+";__p+='"),u&&(l+="'+((__t=("+u+"))==null?'':__t)+'"),f=c+t.length,t
+}),l+="';\n",c=u=u.variable,c||(u="obj",l="with("+u+"){"+l+"}"),l=(o?l.replace(s,""):l).replace(v,"$1").replace(g,"$1;"),l="function("+u+"){"+(c?"":u+"||("+u+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var p=$t(a,"return "+l).apply(e,i)}catch(h){throw h.source=l,h}return t?p(t):(p.source=l,p)},R.unescape=function(n){return n==u?"":Tt(n).replace(h,L)},R.uniqueId=function(n){var t=++c;return Tt(n==u?"":n)+t
+},R.all=it,R.any=yt,R.detect=ct,R.foldl=gt,R.foldr=ht,R.include=ot,R.inject=gt,me(R,function(n,t){R.prototype[t]||(R.prototype[t]=function(){var t=[this.__wrapped__];return Qt.apply(t,arguments),n.apply(R,t)})}),R.first=mt,R.last=function(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=a;for(t=R.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,r==u||e)return n[a-1];return J(n,ue(0,a-r))}},R.take=mt,R.head=mt,me(R,function(n,t){R.prototype[t]||(R.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
+return t==u||e&&typeof t!="function"?r:new V(r)})}),R.VERSION="1.1.1",R.prototype.toString=function(){return Tt(this.__wrapped__)},R.prototype.value=Et,R.prototype.valueOf=Et,lt(["join","pop","shift"],function(n){var t=zt[n];R.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),lt(["push","reverse","sort","unshift"],function(n){var t=zt[n];R.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),lt(["concat","slice","splice"],function(n){var t=zt[n];R.prototype[n]=function(){return new V(t.apply(this.__wrapped__,arguments))
+}}),R}var e,r=!0,u=null,a=!1,o=typeof exports=="object"&&exports,i=typeof module=="object"&&module&&module.exports==o&&module,f=typeof global=="object"&&global;(f.global===f||f.window===f)&&(n=f);var c=0,l={},p=+new Date+"",s=/\b__p\+='';/g,v=/\b(__p\+=)''\+/g,g=/(__e\(.*?\)|\b__t\))\+'';/g,h=/&(?:amp|lt|gt|quot|#39);/g,y=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,m=/\w*$/,b=/<%=([\s\S]+?)%>/g,d=/^0+(?=.$)/,_=/($^)/,k=/[&<>"']/g,w=/['\n\r\t\u2028\u2029\\]/g,j="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),C="[object Arguments]",x="[object Array]",O="[object Boolean]",N="[object Date]",E="[object Number]",I="[object Object]",S="[object RegExp]",A="[object String]",$={"[object Function]":a};
+$[C]=$[x]=$[O]=$[N]=$[E]=$[I]=$[S]=$[A]=r;var q={"boolean":a,"function":r,object:r,number:a,string:a,undefined:a},B={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},F=t();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=F,define(function(){return F})):o&&!o.nodeType?i?(i.exports=F)._=F:o._=F:n._=F})(this);
View
84 dist/lodash.mobile.js
@@ -1025,7 +1025,9 @@
* @returns {Mixed} Returns the key of the found element, else `undefined`.
* @example
*
- * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) { return num % 2 == 0; });
+ * _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
+ * return num % 2 == 0;
+ * });
* // => 'b'
*/
function findKey(object, callback, thisArg) {
@@ -1319,11 +1321,8 @@
function isEqual(a, b, callback, thisArg, stackA, stackB) {
// used to indicate that when comparing objects, `a` has at least the properties of `b`
var whereIndicator = callback === indicatorObject;
- if (callback && !whereIndicator) {
- callback = (typeof thisArg == 'undefined')
- ? callback
- : lodash.createCallback(callback, thisArg, 2);
-
+ if (typeof callback == 'function' && !whereIndicator) {
+ callback = lodash.createCallback(callback, thisArg, 2);
var result = callback(a, b);
if (typeof result != 'undefined') {
return !!result;
@@ -2271,7 +2270,9 @@
* @returns {Mixed} Returns the found element, else `undefined`.
* @example
*
- * _.find([1, 2, 3, 4], function(num) { return num % 2 == 0; });
+ * _.find([1, 2, 3, 4], function(num) {
+ * return num % 2 == 0;
+ * });
* // => 2
*
* var food = [
@@ -4205,44 +4206,53 @@
/**
* Creates a function that will delay the execution of `func` until after
* `wait` milliseconds have elapsed since the last time it was invoked. Pass
- * `true` for `immediate` to cause debounce to invoke `func` on the leading,
- * instead of the trailing, edge of the `wait` timeout. Subsequent calls to
- * the debounced function will return the result of the last `func` call.
+ * an `options` object to indicate that `func` should be invoked on the leading
+ * and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced
+ * function will return the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to debounce.
* @param {Number} wait The number of milliseconds to delay.
- * @param {Boolean} immediate A flag to indicate execution is on the leading
- * edge of the timeout.
+ * @param {Object} options The options object.
+ * [leading=false] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
* var lazyLayout = _.debounce(calculateLayout, 300);
* jQuery(window).on('resize', lazyLayout);
*/
- function debounce(func, wait, immediate) {
+ function debounce(func, wait, options) {
var args,
result,
thisArg,
- timeoutId;
+ timeoutId,
+ trailing = true;
function delayed() {
timeoutId = null;
- if (!immediate) {
+ if (trailing) {
result = func.apply(thisArg, args);
}
}
+ if (options === true) {
+ var leading = true;
+ trailing = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
+ }
return function() {
- var isImmediate = immediate && !timeoutId;
+ var isLeading = leading && !timeoutId;
args = arguments;
thisArg = this;
clearTimeout(timeoutId);
timeoutId = setTimeout(delayed, wait);
- if (isImmediate) {
+ if (isLeading) {
result = func.apply(thisArg, args);
}
return result;
@@ -4408,39 +4418,57 @@
}
/**
- * Creates a function that, when executed, will only call the `func`
- * function at most once per every `wait` milliseconds. If the throttled
- * function is invoked more than once during the `wait` timeout, `func` will
- * also be called on the trailing edge of the timeout. Subsequent calls to the
- * throttled function will return the result of the last `func` call.
+ * Creates a function that, when executed, will only call the `func` function
+ * at most once per every `wait` milliseconds. If the throttled function is
+ * invoked more than once during the `wait` timeout, `func` will also be called
+ * on the trailing edge of the timeout. Pass an `options` object to indicate
+ * that `func` should be invoked on the leading and/or trailing edge of the
+ * `wait` timeout. Subsequent calls to the throttled function will return
+ * the result of the last `func` call.
*
* @static
* @memberOf _
* @category Functions
* @param {Function} func The function to throttle.
* @param {Number} wait The number of milliseconds to throttle executions to.
+ * @param {Object} options The options object.
+ * [leading=true] A boolean to specify execution on the leading edge of the timeout.
+ * [trailing=true] A boolean to specify execution on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
* var throttled = _.throttle(updatePosition, 100);
* jQuery(window).on('scroll', throttled);
*/
- function throttle(func, wait) {
+ function throttle(func, wait, options) {
var args,
result,
thisArg,
timeoutId,
- lastCalled = 0;
+ lastCalled = 0,
+ leading = true,
+ trailing = true;
function trailingCall() {
lastCalled = new Date;
timeoutId = null;
- result = func.apply(thisArg, args);
+
+ if (trailing) {
+ result = func.apply(thisArg, args);
+ }
+ }
+ if (options === false) {
+ leading = false;
+ } else if (options) {
+ leading = options.leading;
+ trailing = options.trailing;
}
return function() {
- var now = new Date,
- remaining = wait - (now - lastCalled);
-
+ var now = new Date;
+ if (!timeoutId && !leading) {
+ lastCalled = now;
+ }
+ var remaining = wait - (now - lastCalled);
args = arguments;
thisArg = this;
View
28 dist/lodash.mobile.min.js
@@ -10,7 +10,7 @@ if(r=-1,ve(u))for(;++r<l;)a[r]=c?c(a[r],u[r]):u[r];else for(r in u)Xt.call(u,r)&
}function U(n,t,e){var r=n.length,u=r-t>=e;if(u){var a={};for(e=t-1;++e<r;){var o=p+n[e];(a[o]||(a[o]=[])).push(n[e])}}return function(e){if(u){var r=p+e;return a[r]&&-1<Ct(a[r],e)}return-1<Ct(n,e,t)}}function V(n){return n.charCodeAt(0)}function G(n,t){var e=n.b,r=t.b;if(n=n.a,t=t.a,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function H(n,t,e,r){function a(){var r=arguments,l=i?this:t;return o||(n=t[f]),e.length&&(r=r.length?(r=Y(r),c?r.concat(e):e.concat(r)):e),this instanceof a?(W.prototype=n.prototype,l=new W,W.prototype=u,r=n.apply(l,r),ot(r)?r:l):n.apply(l,r)
}var o=at(n),i=!e,f=t;if(i){var c=r;e=t}else if(!o){if(!r)throw new Kt;t=n}return a}function J(n){return"\\"+R[n]}function L(n){return ye[n]}function Q(n){this.__wrapped__=n}function W(){}function X(n){var t=a;if(!n||ne.call(n)!=S)return t;var e=n.constructor;return(at(e)?e instanceof e:se.nodeClass||!isNode(n))?(q(n,function(n,e){t=e}),t===a||Xt.call(n,t)):t}function Y(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=$t(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function Z(n){return he[n]
}function nt(n){return ne.call(n)==j}function tt(n,t,r,u,o,i){var c=n;if(typeof t=="function"&&(u=r,r=t,t=a),typeof r=="function"){if(r=typeof u=="undefined"?r:M.createCallback(r,u,1),c=r(c),typeof c!="undefined")return c;c=n}if(u=ot(c)){var l=ne.call(c);if(!B[l])return c;var p=ve(c)}if(!u||!t)return u?p?Y(c):z({},c):c;switch(u=pe[l],l){case O:case E:return new u(+c);case N:case $:return new u(c);case I:return u(c.source,d.exec(c))}for(o||(o=[]),i||(i=[]),l=o.length;l--;)if(o[l]==n)return i[l];return c=p?u(c.length):{},p&&(Xt.call(n,"index")&&(c.index=n.index),Xt.call(n,"input")&&(c.input=n.input)),o.push(n),i.push(c),(p?yt:f)(n,function(n,u){c[u]=tt(n,t,r,e,o,i)
-}),c}function et(n){var t=[];return q(n,function(n,e){at(n)&&t.push(e)}),t.sort()}function rt(n){for(var t=-1,e=ge(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function ut(n,t,e,o,i,f){var c=e===l;if(e&&!c){e=typeof o=="undefined"?e:M.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=ne.call(n),s=ne.call(t),v==j&&(v=S),s==j&&(s=S),v!=s)return a;
+}),c}function et(n){var t=[];return q(n,function(n,e){at(n)&&t.push(e)}),t.sort()}function rt(n){for(var t=-1,e=ge(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function ut(n,t,e,o,i,f){var c=e===l;if(typeof e=="function"&&!c){e=M.createCallback(e,o,2);var p=e(n,t);if(typeof p!="undefined")return!!p}if(n===t)return 0!==n||1/n==1/t;var s=typeof n,v=typeof t;if(n===n&&(!n||"function"!=s&&"object"!=s)&&(!t||"function"!=v&&"object"!=v))return a;if(n==u||t==u)return n===t;if(v=ne.call(n),s=ne.call(t),v==j&&(v=S),s==j&&(s=S),v!=s)return a;
switch(v){case O:case E:return+n==+t;case N:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case I:case $:return n==Pt(t)}if(s=v==x,!s){if(Xt.call(n,"__wrapped__")||Xt.call(t,"__wrapped__"))return ut(n.__wrapped__||n,t.__wrapped__||t,e,o,i,f);if(v!=S)return a;var v=n.constructor,g=t.constructor;if(v!=g&&(!at(v)||!(v instanceof v&&at(g)&&g instanceof g)))return a}for(i||(i=[]),f||(f=[]),v=i.length;v--;)if(i[v]==n)return f[v]==t;var y=0,p=r;if(i.push(n),f.push(t),s){if(v=n.length,y=t.length,p=y==n.length,!p&&!c)return p;
for(;y--;)if(s=v,g=t[y],c)for(;s--&&!(p=ut(n[s],g,e,o,i,f)););else if(!(p=ut(n[y],g,e,o,i,f)))break;return p}return q(t,function(t,r,u){return Xt.call(u,r)?(y++,p=Xt.call(n,r)&&ut(n[r],t,e,o,i,f)):void 0}),p&&!c&&q(n,function(n,t,e){return Xt.call(e,t)?p=-1<--y:void 0}),p}function at(n){return typeof n=="function"}function ot(n){return n?F[typeof n]:a}function it(n){return typeof n=="number"||ne.call(n)==N}function ft(n){return typeof n=="string"||ne.call(n)==$}function ct(n,t,e){var r=arguments,u=0,a=2;
if(!ot(n))return n;if(e===l)var o=r[3],c=r[4],p=r[5];else c=[],p=[],typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=M.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a]);for(;++u<a;)(ve(r[u])?yt:f)(r[u],function(t,e){var r,u,a=t,f=n[e];if(t&&((u=ve(t))||i(t))){for(a=c.length;a--;)if(r=c[a]==t){f=p[a];break}if(!r){var s,f=u?ve(f)?f:[]:i(f)?f:{};o&&(a=o(f,t),s=typeof a!="undefined")&&(f=a),c.push(t),p.push(f),s||(f=ct(f,t,l,o,c,p))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);
@@ -25,20 +25,20 @@ var $t=o.Array,Bt=o.Boolean,Ft=o.Date,Rt=o.Function,Tt=o.Math,qt=o.Number,Dt=o.O
pe[x]=$t,pe[O]=Bt,pe[E]=Ft,pe[S]=Dt,pe[N]=qt,pe[I]=zt,pe[$]=Pt;var se=M.support={};(function(){for(var n in arguments);se.fastBind=te&&!le,se.nonEnumArgs=0!=n})(1),M.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:m,variable:"",imports:{_:M}},Q.prototype=M.prototype;var ve=ee||function(n){return n instanceof $t||ne.call(n)==x},ge=ae?function(n){return ot(n)?se.nonEnumArgs&&n.length&&nt(n)?K(n):ae(n):[]}:K,ye={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},he=rt(ye);
return at(/x/)&&(at=function(n){return n instanceof Rt||ne.call(n)==A}),Bt=8==fe("08")?fe:function(n,t){return fe(ft(n)?n.replace(b,""):n,t||0)},M.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},M.assign=z,M.at=function(n){for(var t=-1,e=Lt.apply(Mt,Y(arguments,1)),r=e.length,u=$t(r);++t<r;)u[t]=n[e[t]];return u},M.bind=At,M.bindAll=function(n){for(var t=Lt.apply(Mt,arguments),e=1<t.length?0:(t=et(n),-1),r=t.length;++e<r;){var u=t[e];n[u]=At(n[u],n)}return n
},M.bindKey=function(n,t){return H(n,t,Y(arguments,2),l)},M.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},M.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},M.countBy=function(n,t,e){var r={};return t=M.createCallback(t,e),yt(n,function(n,e,u){e=Pt(t(n,e,u)),Xt.call(r,e)?r[e]++:r[e]=1}),r},M.createCallback=function(n,t,e){if(n==u)return Nt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]
-};var o=ge(n);return function(t){for(var e=o.length,r=a;e--&&(r=ut(t[o[e]],n[o[e]],l)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}:n},M.debounce=function(n,t,e){function r(){f=u,e||(o=n.apply(i,a))}var a,o,i,f;return function(){var u=e&&!f;return a=arguments,i=this,Jt(f),f=Zt(r,t),u&&(o=n.apply(i,a)),o}},M.defaults=D,M.defer=function(n){var t=Y(arguments,1);
-return Zt(function(){n.apply(e,t)},1)},M.delay=function(n,t){var r=Y(arguments,2);return Zt(function(){n.apply(e,r)},t)},M.difference=function(n){for(var t=-1,e=n?n.length:0,r=Lt.apply(Mt,arguments),r=U(r,e,100),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},M.filter=vt,M.flatten=wt,M.forEach=yt,M.forIn=q,M.forOwn=f,M.functions=et,M.groupBy=function(n,t,e){var r={};return t=M.createCallback(t,e),yt(n,function(n,e,u){e=Pt(t(n,e,u)),(Xt.call(r,e)?r[e]:r[e]=[]).push(n)}),r},M.initial=function(n,t,e){if(!n)return[];
-var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=a;for(t=M.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=t==u||e?1:t||r;return Y(n,0,ie(oe(0,a-r),a))},M.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],f=i;n:for(;++u<a;){var c=n[u];if(o)var l=p+c,l=r[0][l]?!(f=r[0][l]):f=r[0][l]=[];if(l||0>Ct(f,c)){o&&f.push(c);for(var s=e;--s;)if(!(r[s]||(r[s]=U(t[s],0,100)))(c))continue n;i.push(c)}}return i},M.invert=rt,M.invoke=function(n,t){var e=Y(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=$t(typeof a=="number"?a:0);
+};var o=ge(n);return function(t){for(var e=o.length,r=a;e--&&(r=ut(t[o[e]],n[o[e]],l)););return r}}return typeof t!="undefined"?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}:n},M.debounce=function(n,t,e){function o(){l=u,p&&(f=n.apply(c,i))}var i,f,c,l,p=r;if(e===r)var s=r,p=a;else e&&(s=e.leading,p=e.trailing);return function(){var e=s&&!l;return i=arguments,c=this,Jt(l),l=Zt(o,t),e&&(f=n.apply(c,i)),f
+}},M.defaults=D,M.defer=function(n){var t=Y(arguments,1);return Zt(function(){n.apply(e,t)},1)},M.delay=function(n,t){var r=Y(arguments,2);return Zt(function(){n.apply(e,r)},t)},M.difference=function(n){for(var t=-1,e=n?n.length:0,r=Lt.apply(Mt,arguments),r=U(r,e,100),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},M.filter=vt,M.flatten=wt,M.forEach=yt,M.forIn=q,M.forOwn=f,M.functions=et,M.groupBy=function(n,t,e){var r={};return t=M.createCallback(t,e),yt(n,function(n,e,u){e=Pt(t(n,e,u)),(Xt.call(r,e)?r[e]:r[e]=[]).push(n)
+}),r},M.initial=function(n,t,e){if(!n)return[];var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=a;for(t=M.createCallback(t,e);o--&&t(n[o],o,n);)r++}else r=t==u||e?1:t||r;return Y(n,0,ie(oe(0,a-r),a))},M.intersection=function(n){var t=arguments,e=t.length,r={0:{}},u=-1,a=n?n.length:0,o=100<=a,i=[],f=i;n:for(;++u<a;){var c=n[u];if(o)var l=p+c,l=r[0][l]?!(f=r[0][l]):f=r[0][l]=[];if(l||0>Ct(f,c)){o&&f.push(c);for(var s=e;--s;)if(!(r[s]||(r[s]=U(t[s],0,100)))(c))continue n;i.push(c)}}return i},M.invert=rt,M.invoke=function(n,t){var e=Y(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=$t(typeof a=="number"?a:0);
return yt(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},M.keys=ge,M.map=ht,M.max=dt,M.memoize=function(n,t){var e={};return function(){var r=p+(t?t.apply(this,arguments):arguments[0]);return Xt.call(e,r)?e[r]:e[r]=n.apply(this,arguments)}},M.merge=ct,M.min=function(n,t,e){var r=1/0,u=r;if(!t&&ve(n)){e=-1;for(var a=n.length;++e<a;){var o=n[e];o<u&&(u=o)}}else t=!t&&ft(n)?V:M.createCallback(t,e),P(n,function(n,e,a){e=t(n,e,a),e<r&&(r=e,u=n)});return u},M.omit=function(n,t,e){var r=typeof t=="function",u={};
if(r)t=M.createCallback(t,e);else var a=Lt.apply(Mt,arguments);return q(n,function(n,e,o){(r?!t(n,e,o):0>Ct(a,e,1))&&(u[e]=n)}),u},M.once=function(n){var t,e;return function(){return t?e:(t=r,e=n.apply(this,arguments),n=u,e)}},M.pairs=function(n){for(var t=-1,e=ge(n),r=e.length,u=$t(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},M.partial=function(n){return H(n,Y(arguments,1))},M.partialRight=function(n){return H(n,Y(arguments,1),u,l)},M.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=0,a=Lt.apply(Mt,arguments),o=ot(n)?a.length:0;++u<o;){var i=a[u];
i in n&&(r[i]=n[i])}else t=M.createCallback(t,e),q(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},M.pluck=ht,M.range=function(n,t,e){n=+n||0,e=+e||1,t==u&&(t=n,n=0);var r=-1;t=oe(0,Ht((t-n)/e));for(var a=$t(t);++r<t;)a[r]=n,n+=e;return a},M.reject=function(n,t,e){return t=M.createCallback(t,e),vt(n,function(n,e,r){return!t(n,e,r)})},M.rest=jt,M.shuffle=function(n){var t=-1,e=n?n.length:0,r=$t(typeof e=="number"?e:0);return yt(n,function(n){var e=Qt(ce()*(++t+1));r[t]=r[e],r[e]=n}),r},M.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,a=$t(typeof u=="number"?u:0);
-for(t=M.createCallback(t,e),yt(n,function(n,e,u){a[++r]={a:t(n,e,u),b:r,c:n}}),u=a.length,a.sort(G);u--;)a[u]=a[u].c;return a},M.tap=function(n,t){return t(n),n},M.throttle=function(n,t){function e(){f=new Ft,i=u,a=n.apply(o,r)}var r,a,o,i,f=0;return function(){var c=new Ft,l=t-(c-f);return r=arguments,o=this,0<l?i||(i=Zt(e,l)):(Jt(i),i=u,f=c,a=n.apply(o,r)),a}},M.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=$t(n);for(t=M.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},M.toArray=function(n){return n&&typeof n.length=="number"?Y(n):lt(n)
-},M.union=function(){return Ot(Lt.apply(Mt,arguments))},M.uniq=Ot,M.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?dt(ht(n,"length")):0,u=$t(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=$t(e)))[t]=o[a];return u},M.values=lt,M.where=vt,M.without=function(n){for(var t=-1,e=n?n.length:0,r=U(arguments,1,30),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},M.wrap=function(n,t){return function(){var e=[n];return Yt.apply(e,arguments),t.apply(this,e)}},M.zip=function(n){for(var t=-1,e=n?dt(ht(arguments,"length")):0,r=$t(e);++t<e;)r[t]=ht(arguments,t);
-return r},M.zipObject=Et,M.collect=ht,M.drop=jt,M.each=yt,M.extend=z,M.methods=et,M.object=Et,M.select=vt,M.tail=jt,M.unique=Ot,St(M),M.clone=tt,M.cloneDeep=function(n,t,e){return tt(n,r,t,e)},M.contains=pt,M.escape=function(n){return n==u?"":Pt(n).replace(k,L)},M.every=st,M.find=gt,M.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=M.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},M.findKey=function(n,t,e){var r;return t=M.createCallback(t,e),f(n,function(n,e,u){return t(n,e,u)?(r=e,a):void 0
-}),r},M.has=function(n,t){return n?Xt.call(n,t):a},M.identity=Nt,M.indexOf=Ct,M.isArguments=nt,M.isArray=ve,M.isBoolean=function(n){return n===r||n===a||ne.call(n)==O},M.isDate=function(n){return n instanceof Ft||ne.call(n)==E},M.isElement=function(n){return n?1===n.nodeType:a},M.isEmpty=function(n){var t=r;if(!n)return t;var e=ne.call(n),u=n.length;return e==x||e==$||e==j||e==S&&typeof u=="number"&&at(n.splice)?!u:(f(n,function(){return t=a}),t)},M.isEqual=ut,M.isFinite=function(n){return re(n)&&!ue(parseFloat(n))
-},M.isFunction=at,M.isNaN=function(n){return it(n)&&n!=+n},M.isNull=function(n){return n===u},M.isNumber=it,M.isObject=ot,M.isPlainObject=i,M.isRegExp=function(n){return n instanceof zt||ne.call(n)==I},M.isString=ft,M.isUndefined=function(n){return typeof n=="undefined"},M.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?oe(0,r+e):ie(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},M.mixin=St,M.noConflict=function(){return o._=Vt,this},M.parseInt=Bt,M.random=function(n,t){return n==u&&t==u&&(t=1),n=+n||0,t==u&&(t=n,n=0),n+Qt(ce()*((+t||0)-n+1))
-},M.reduce=mt,M.reduceRight=bt,M.result=function(n,t){var r=n?n[t]:e;return at(r)?n[t]():r},M.runInContext=t,M.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:ge(n).length},M.some=_t,M.sortedIndex=xt,M.template=function(n,t,u){var a=M.templateSettings;n||(n=""),u=D({},u,a);var o,i=D({},u.imports,a.imports),a=ge(i),i=lt(i),f=0,c=u.interpolate||_,l="__p+='",c=zt((u.escape||_).source+"|"+c.source+"|"+(c===m?h:_).source+"|"+(u.evaluate||_).source+"|$","g");n.replace(c,function(t,e,u,a,i,c){return u||(u=a),l+=n.slice(f,c).replace(w,J),e&&(l+="'+__e("+e+")+'"),i&&(o=r,l+="';"+i+";__p+='"),u&&(l+="'+((__t=("+u+"))==null?'':__t)+'"),f=c+t.length,t
-}),l+="';\n",c=u=u.variable,c||(u="obj",l="with("+u+"){"+l+"}"),l=(o?l.replace(s,""):l).replace(v,"$1").replace(g,"$1;"),l="function("+u+"){"+(c?"":u+"||("+u+"={});")+"var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var p=Rt(a,"return "+l).apply(e,i)}catch(y){throw y.source=l,y}return t?p(t):(p.source=l,p)},M.unescape=function(n){return n==u?"":Pt(n).replace(y,Z)},M.uniqueId=function(n){var t=++c;return Pt(n==u?"":n)+t
-},M.all=st,M.any=_t,M.detect=gt,M.foldl=mt,M.foldr=bt,M.include=pt,M.inject=mt,f(M,function(n,t){M.prototype[t]||(M.prototype[t]=function(){var t=[this.__wrapped__];return Yt.apply(t,arguments),n.apply(M,t)})}),M.first=kt,M.last=function(n,t,e){if(n){var r=0,a=n.length;if(typeof t!="number"&&t!=u){var o=a;for(t=M.createCallback(t,e);o--&&t(n[o],o,n);)r++}else if(r=t,r==u||e)return n[a-1];return Y(n,oe(0,a-r))}},M.take=kt,M.head=kt,f(M,function(n,t){M.prototype[t]||(M.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
-return t==u||e&&typeof t!="function"?r:new Q(r)})}),M.VERSION="1.1.1",M.prototype.toString=function(){return Pt(this.__wrapped__)},M.prototype.value=It,M.prototype.valueOf=It,P(["join","pop","shift"],function(n){var t=Mt[n];M.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),P(["push","reverse","sort","unshift"],function(n){var t=Mt[n];M.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),P(["concat","slice","splice"],function(n){var t=Mt[n];M.prototype[n]=function(){return new Q(t.apply(this.__wrapped__,arguments))
-}}),M}var e,r=!0,u=null,a=!1,o=typeof exports=="object"&&exports,i=typeof module=="object"&&module&&module.exports==o&&module,f=typeof global=="object"&&global;(f.global===f||f.window===f)&&(n=f);var c=0,l={},p=+new Date+"",s=/\b__p\+='';/g,v=/\b(__p\+=)''\+/g,g=/(__e\(.*?\)|\b__t\))\+'';/g,y=/&(?:amp|lt|gt|quot|#39);/g,h=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,d=/\w*$/,m=/<%=([\s\S]+?)%>/g,b=/^0+(?=.$)/,_=/($^)/,k=/[&<>"']/g,w=/['\n\r\t\u2028\u2029\\]/g,C="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),j="[object Arguments]",x="[object Array]",O="[object Boolean]",E="[object Date]",A="[object Function]",N="[object Number]",S="[object Object]",I="[object RegExp]",$="[object String]",B={};
+for(t=M.createCallback(t,e),yt(n,function(n,e,u){a[++r]={a:t(n,e,u),b:r,c:n}}),u=a.length,a.sort(G);u--;)a[u]=a[u].c;return a},M.tap=function(n,t){return t(n),n},M.throttle=function(n,t,e){function o(){p=new Ft,l=u,v&&(f=n.apply(c,i))}var i,f,c,l,p=0,s=r,v=r;return e===a?s=a:e&&(s=e.leading,v=e.trailing),function(){var e=new Ft;!l&&!s&&(p=e);var r=t-(e-p);return i=arguments,c=this,0<r?l||(l=Zt(o,r)):(Jt(l),l=u,p=e,f=n.apply(c,i)),f}},M.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=$t(n);for(t=M.createCallback(t,e,1);++r<n;)u[r]=t(r);
+return u},M.toArray=function(n){return n&&typeof n.length=="number"?Y(n):lt(n)},M.union=function(){return Ot(Lt.apply(Mt,arguments))},M.uniq=Ot,M.unzip=function(n){for(var t=-1,e=n?n.length:0,r=e?dt(ht(n,"length")):0,u=$t(r);++t<e;)for(var a=-1,o=n[t];++a<r;)(u[a]||(u[a]=$t(e)))[t]=o[a];return u},M.values=lt,M.where=vt,M.without=function(n){for(var t=-1,e=n?n.length:0,r=U(arguments,1,30),u=[];++t<e;){var a=n[t];r(a)||u.push(a)}return u},M.wrap=function(n,t){return function(){var e=[n];return Yt.apply(e,arguments),t.apply(this,e)