mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Update vendors, builds, and docs.
This commit is contained in:
47
dist/lodash.compat.js
vendored
47
dist/lodash.compat.js
vendored
@@ -2756,7 +2756,7 @@
|
||||
* Creates a shallow clone of `object` excluding the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a callback is provided it will be executed for each
|
||||
* property of `object` omitting the properties the callback returns truthy
|
||||
* property of `object` omitting the properties the callback returns truey
|
||||
* for. The callback is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -2830,7 +2830,7 @@
|
||||
* Creates a shallow clone of `object` composed of the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a callback is provided it will be executed for each
|
||||
* property of `object` picking the properties the callback returns truthy
|
||||
* property of `object` picking the properties the callback returns truey
|
||||
* for. The callback is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -3079,7 +3079,7 @@
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks if the given callback returns truthy value for **all** elements of
|
||||
* Checks if the given callback returns truey value for **all** elements of
|
||||
* a collection. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index|key, collection).
|
||||
*
|
||||
@@ -3142,7 +3142,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of a collection, returning an array of all elements
|
||||
* the callback returns truthy for. The callback is bound to `thisArg` and
|
||||
* the callback returns truey for. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -3206,7 +3206,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of a collection, returning the first element that
|
||||
* the callback returns truthy for. The callback is bound to `thisArg` and
|
||||
* the callback returns truey for. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -3805,7 +3805,7 @@
|
||||
|
||||
/**
|
||||
* The opposite of `_.filter` this method returns the elements of a
|
||||
* collection that the callback does **not** return truthy for.
|
||||
* collection that the callback does **not** return truey for.
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
@@ -3932,7 +3932,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the callback returns a truthy value for **any** element of a
|
||||
* Checks if the callback returns a truey value for **any** element of a
|
||||
* collection. The function returns as soon as it finds a passing value and
|
||||
* does not iterate over the entire collection. The callback is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index|key, collection).
|
||||
@@ -4243,7 +4243,7 @@
|
||||
/**
|
||||
* Gets the first element or first `n` elements of an array. If a callback
|
||||
* is provided elements at the beginning of the array are returned as long
|
||||
* as the callback returns truthy. The callback is bound to `thisArg` and
|
||||
* as the callback returns truey. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -4319,7 +4319,7 @@
|
||||
|
||||
/**
|
||||
* Flattens a nested array (the nesting can be to any depth). If `isShallow`
|
||||
* is truthy, the array will only be flattened a single level. If a callback
|
||||
* is truey, the array will only be flattened a single level. If a callback
|
||||
* is provided each element of the array is passed through the callback before
|
||||
* flattening. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index, array).
|
||||
@@ -4409,7 +4409,7 @@
|
||||
/**
|
||||
* Gets all but the last element or last `n` elements of an array. If a
|
||||
* callback is provided elements at the end of the array are excluded from
|
||||
* the result as long as the callback returns truthy. The callback is bound
|
||||
* the result as long as the callback returns truey. The callback is bound
|
||||
* to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -4542,7 +4542,7 @@
|
||||
/**
|
||||
* Gets the last element or last `n` elements of an array. If a callback is
|
||||
* provided elements at the end of the array are returned as long as the
|
||||
* callback returns truthy. The callback is bound to `thisArg` and invoked
|
||||
* callback returns truey. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -4738,7 +4738,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all elements from an array that the callback returns truthy for
|
||||
* Removes all elements from an array that the callback returns truey for
|
||||
* and returns an array of removed elements. The callback is bound to `thisArg`
|
||||
* and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
@@ -4790,7 +4790,7 @@
|
||||
* The opposite of `_.initial` this method gets all but the first element or
|
||||
* first `n` elements of an array. If a callback function is provided elements
|
||||
* at the beginning of the array are excluded from the result as long as the
|
||||
* callback returns truthy. The callback is bound to `thisArg` and invoked
|
||||
* callback returns truey. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -5083,8 +5083,8 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Creates a function this is restricted to executing `func` with the `this`
|
||||
* binding and arguments of the created function, only after it is called `n` times.
|
||||
* Creates a function that executes `func`, with the `this` binding and
|
||||
* arguments of the created function, only after being called `n` times.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -5095,11 +5095,16 @@
|
||||
* @returns {Function} Returns the new restricted function.
|
||||
* @example
|
||||
*
|
||||
* var renderNotes = _.after(notes.length, render);
|
||||
* _.forEach(notes, function(note) {
|
||||
* note.asyncSave({ 'success': renderNotes });
|
||||
* var saves = ['profile', 'settings'];
|
||||
*
|
||||
* var done = _.after(saves.length, function() {
|
||||
* console.log('Done saving!');
|
||||
* });
|
||||
* // `renderNotes` is run once, after all notes have saved
|
||||
*
|
||||
* _.forEach(saves, function(type) {
|
||||
* asyncSave({ 'type': type, 'complete': done });
|
||||
* });
|
||||
* // => logs 'Done saving!', after all saves have completed
|
||||
*/
|
||||
function after(n, func) {
|
||||
if (!isFunction(func)) {
|
||||
@@ -6002,7 +6007,7 @@
|
||||
* is given, else it returns the interpolated text.
|
||||
* @example
|
||||
*
|
||||
* // using a compiled template
|
||||
* // using the "interpolate" delimiter to create a compiled template
|
||||
* var compiled = _.template('hello <%= name %>');
|
||||
* compiled({ 'name': 'moe' });
|
||||
* // => 'hello moe'
|
||||
@@ -6012,7 +6017,7 @@
|
||||
* // => '<b><script></b>'
|
||||
*
|
||||
* // using the "evaluate" delimiter to generate HTML
|
||||
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
|
||||
* var list = '<% _.forEach(people, function(name) { %><li><%- name %></li><% }); %>';
|
||||
* _.template(list, { 'people': ['moe', 'larry'] });
|
||||
* // => '<li>moe</li><li>larry</li>'
|
||||
*
|
||||
|
||||
49
dist/lodash.js
vendored
49
dist/lodash.js
vendored
@@ -1322,7 +1322,7 @@
|
||||
* @param {Function} func The function to set data on.
|
||||
* @param {*} value The value to set.
|
||||
*/
|
||||
var setBindData = !defineProperty ? noop : function(func, value) {
|
||||
var setBindData = function(func, value) {
|
||||
var descriptor = getObject();
|
||||
descriptor.value = value;
|
||||
defineProperty(func, '__bindData__', descriptor);
|
||||
@@ -2409,7 +2409,7 @@
|
||||
* Creates a shallow clone of `object` excluding the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a callback is provided it will be executed for each
|
||||
* property of `object` omitting the properties the callback returns truthy
|
||||
* property of `object` omitting the properties the callback returns truey
|
||||
* for. The callback is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -2483,7 +2483,7 @@
|
||||
* Creates a shallow clone of `object` composed of the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a callback is provided it will be executed for each
|
||||
* property of `object` picking the properties the callback returns truthy
|
||||
* property of `object` picking the properties the callback returns truey
|
||||
* for. The callback is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -2729,7 +2729,7 @@
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks if the given callback returns truthy value for **all** elements of
|
||||
* Checks if the given callback returns truey value for **all** elements of
|
||||
* a collection. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index|key, collection).
|
||||
*
|
||||
@@ -2792,7 +2792,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of a collection, returning an array of all elements
|
||||
* the callback returns truthy for. The callback is bound to `thisArg` and
|
||||
* the callback returns truey for. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -2856,7 +2856,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of a collection, returning the first element that
|
||||
* the callback returns truthy for. The callback is bound to `thisArg` and
|
||||
* the callback returns truey for. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -3463,7 +3463,7 @@
|
||||
|
||||
/**
|
||||
* The opposite of `_.filter` this method returns the elements of a
|
||||
* collection that the callback does **not** return truthy for.
|
||||
* collection that the callback does **not** return truey for.
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
@@ -3590,7 +3590,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the callback returns a truthy value for **any** element of a
|
||||
* Checks if the callback returns a truey value for **any** element of a
|
||||
* collection. The function returns as soon as it finds a passing value and
|
||||
* does not iterate over the entire collection. The callback is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index|key, collection).
|
||||
@@ -3899,7 +3899,7 @@
|
||||
/**
|
||||
* Gets the first element or first `n` elements of an array. If a callback
|
||||
* is provided elements at the beginning of the array are returned as long
|
||||
* as the callback returns truthy. The callback is bound to `thisArg` and
|
||||
* as the callback returns truey. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -3975,7 +3975,7 @@
|
||||
|
||||
/**
|
||||
* Flattens a nested array (the nesting can be to any depth). If `isShallow`
|
||||
* is truthy, the array will only be flattened a single level. If a callback
|
||||
* is truey, the array will only be flattened a single level. If a callback
|
||||
* is provided each element of the array is passed through the callback before
|
||||
* flattening. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index, array).
|
||||
@@ -4065,7 +4065,7 @@
|
||||
/**
|
||||
* Gets all but the last element or last `n` elements of an array. If a
|
||||
* callback is provided elements at the end of the array are excluded from
|
||||
* the result as long as the callback returns truthy. The callback is bound
|
||||
* the result as long as the callback returns truey. The callback is bound
|
||||
* to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -4198,7 +4198,7 @@
|
||||
/**
|
||||
* Gets the last element or last `n` elements of an array. If a callback is
|
||||
* provided elements at the end of the array are returned as long as the
|
||||
* callback returns truthy. The callback is bound to `thisArg` and invoked
|
||||
* callback returns truey. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -4394,7 +4394,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all elements from an array that the callback returns truthy for
|
||||
* Removes all elements from an array that the callback returns truey for
|
||||
* and returns an array of removed elements. The callback is bound to `thisArg`
|
||||
* and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
@@ -4446,7 +4446,7 @@
|
||||
* The opposite of `_.initial` this method gets all but the first element or
|
||||
* first `n` elements of an array. If a callback function is provided elements
|
||||
* at the beginning of the array are excluded from the result as long as the
|
||||
* callback returns truthy. The callback is bound to `thisArg` and invoked
|
||||
* callback returns truey. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -4739,8 +4739,8 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Creates a function this is restricted to executing `func` with the `this`
|
||||
* binding and arguments of the created function, only after it is called `n` times.
|
||||
* Creates a function that executes `func`, with the `this` binding and
|
||||
* arguments of the created function, only after being called `n` times.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -4751,11 +4751,16 @@
|
||||
* @returns {Function} Returns the new restricted function.
|
||||
* @example
|
||||
*
|
||||
* var renderNotes = _.after(notes.length, render);
|
||||
* _.forEach(notes, function(note) {
|
||||
* note.asyncSave({ 'success': renderNotes });
|
||||
* var saves = ['profile', 'settings'];
|
||||
*
|
||||
* var done = _.after(saves.length, function() {
|
||||
* console.log('Done saving!');
|
||||
* });
|
||||
* // `renderNotes` is run once, after all notes have saved
|
||||
*
|
||||
* _.forEach(saves, function(type) {
|
||||
* asyncSave({ 'type': type, 'complete': done });
|
||||
* });
|
||||
* // => logs 'Done saving!', after all saves have completed
|
||||
*/
|
||||
function after(n, func) {
|
||||
if (!isFunction(func)) {
|
||||
@@ -5658,7 +5663,7 @@
|
||||
* is given, else it returns the interpolated text.
|
||||
* @example
|
||||
*
|
||||
* // using a compiled template
|
||||
* // using the "interpolate" delimiter to create a compiled template
|
||||
* var compiled = _.template('hello <%= name %>');
|
||||
* compiled({ 'name': 'moe' });
|
||||
* // => 'hello moe'
|
||||
@@ -5668,7 +5673,7 @@
|
||||
* // => '<b><script></b>'
|
||||
*
|
||||
* // using the "evaluate" delimiter to generate HTML
|
||||
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
|
||||
* var list = '<% _.forEach(people, function(name) { %><li><%- name %></li><% }); %>';
|
||||
* _.template(list, { 'people': ['moe', 'larry'] });
|
||||
* // => '<li>moe</li><li>larry</li>'
|
||||
*
|
||||
|
||||
90
dist/lodash.min.js
vendored
90
dist/lodash.min.js
vendored
@@ -3,50 +3,50 @@
|
||||
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
|
||||
* Build: `lodash modern -o ./dist/lodash.js`
|
||||
*/
|
||||
;(function(){function n(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function t(t,e){var r=typeof e;if(t=t.k,"boolean"==r||null==e)return t[e]?0:-1;"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:_+e;return t=(t=t[r])&&t[u],"object"==r?t&&-1<n(t,e)?0:-1:t?0:-1}function e(n){var t=this.k,e=typeof n;if("boolean"==e||null==n)t[n]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:_+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=!0
|
||||
}}function r(n){return n.charCodeAt(0)}function u(n,t){var e=n.l,r=t.l;if(e!==r){if(e>r||typeof e=="undefined")return 1;if(e<r||typeof r=="undefined")return-1}return n.m-t.m}function o(n){var t=-1,r=n.length,u=n[0],o=n[r-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return!1;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=!1,o=f(),o.b=n,o.k=u,o.push=e;++t<r;)o.push(n[t]);return o}function a(n){return"\\"+U[n]}function i(){return g.pop()||[]}function f(){return y.pop()||{b:null,k:null,configurable:!1,l:null,enumerable:!1,"false":!1,m:0,leading:!1,maxWait:0,"null":!1,number:null,z:null,push:null,string:null,trailing:!1,"true":!1,undefined:!1,n:null,writable:!1}
|
||||
}function l(){}function c(n){n.length=0,g.length<d&&g.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=null,y.length<d&&y.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(e){function g(n){if(!n||de.call(n)!=W)return!1;var t=n.valueOf,e=typeof t=="function"&&(e=ve(t))&&ve(e);return e?n==e||ve(n)==e:lt(n)}function y(n,t,e){if(!n||!M[typeof n])return n;t=t&&typeof e=="undefined"?t:nt(t,e,3);
|
||||
for(var r=-1,u=M[typeof n]&&We(n),o=u?u.length:0;++r<o&&(e=u[r],false!==t(n[e],e,n)););return n}function d(n,t,e){var r;if(!n||!M[typeof n])return n;t=t&&typeof e=="undefined"?t:nt(t,e,3);for(r in n)if(false===t(n[r],r,n))break;return n}function U(n,t,e){var r,u=n,o=u;if(!u)return o;for(var a=arguments,i=0,f=typeof e=="number"?2:a.length;++i<f;)if((u=a[i])&&M[typeof u])for(var l=-1,c=M[typeof u]&&We(u),p=c?c.length:0;++l<p;)r=c[l],"undefined"==typeof o[r]&&(o[r]=u[r]);return o}function G(n,t,e){var r,u=n,o=u;
|
||||
if(!u)return o;var a=arguments,i=0,f=typeof e=="number"?2:a.length;if(3<f&&"function"==typeof a[f-2])var l=nt(a[--f-1],a[f--],2);else 2<f&&"function"==typeof a[f-1]&&(l=a[--f]);for(;++i<f;)if((u=a[i])&&M[typeof u])for(var c=-1,p=M[typeof u]&&We(u),s=p?p.length:0;++c<s;)r=p[c],o[r]=l?l(o[r],u[r]):u[r];return o}function J(n){var t,e=[];if(!n||!M[typeof n])return e;for(t in n)he.call(n,t)&&e.push(t);return e}function X(n){return n&&typeof n=="object"&&!qe(n)&&he.call(n,"__wrapped__")?n:new Y(n)}function Y(n,t){this.__chain__=!!t,this.__wrapped__=n
|
||||
}function Z(n,t,e,r,u){var o=n;if(e){if(o=e(o),typeof o!="undefined")return o;o=n}var a=yt(o);if(a){var f=de.call(o);if(!L[f])return o;var l=qe(o)}if(!a||!t)return a?l?s(o):G({},o):o;switch(a=Fe[f],f){case F:case T:return new a(+o);case q:case K:return new a(o);case P:return a(o.source,O.exec(o))}f=!r,r||(r=i()),u||(u=i());for(var p=r.length;p--;)if(r[p]==n)return u[p];return o=l?a(o.length):{},l&&(he.call(n,"index")&&(o.index=n.index),he.call(n,"input")&&(o.input=n.input)),r.push(n),u.push(o),(l?xt:y)(n,function(n,a){o[a]=Z(n,t,e,r,u)
|
||||
}),f&&(c(r),c(u)),o}function nt(n,t,e){if(typeof n!="function")return Ut;if(typeof t=="undefined")return n;var r=n.__bindData__||Te.a&&!n.name;if(typeof r=="undefined"){var u=A&&se.call(n);Te.a||!u||N.test(u)||(r=!0),(Te.a||!r)&&(r=!A||A.test(u),ze(n,r))}if(true!==r&&r&&1&r[1])return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)
|
||||
}}return Kt(n,t)}function tt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var a=n[r];a&&typeof a=="object"&&(qe(a)||pt(a))?ye.apply(o,t?a:tt(a,t,e)):e||o.push(a)}return o}function et(n,t,e,r,u,o){if(e){var a=e(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&!(n&&M[typeof n]||t&&M[typeof t]))return!1;if(null==n||null==t)return n===t;var f=de.call(n),l=de.call(t);if(f==$&&(f=W),l==$&&(l=W),f!=l)return!1;switch(f){case F:case T:return+n==+t;case q:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
|
||||
case P:case K:return n==re(t)}if(l=f==D,!l){if(he.call(n,"__wrapped__")||he.call(t,"__wrapped__"))return et(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);if(f!=W)return!1;var f=n.constructor,p=t.constructor;if(f!=p&&!(gt(f)&&f instanceof f&>(p)&&p instanceof p))return!1}for(p=!u,u||(u=i()),o||(o=i()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var s=0,a=!0;if(u.push(n),o.push(t),l){if(f=n.length,s=t.length,a=s==n.length,!a&&!r)return a;for(;s--;)if(l=f,p=t[s],r)for(;l--&&!(a=et(n[l],p,e,r,u,o)););else if(!(a=et(n[s],p,e,r,u,o)))break;
|
||||
return a}return d(t,function(t,i,f){return he.call(f,i)?(s++,a=he.call(n,i)&&et(n[i],t,e,r,u,o)):void 0}),a&&!r&&d(n,function(n,t,e){return he.call(e,t)?a=-1<--s:void 0}),p&&(c(u),c(o)),a}function rt(n,t,e,r,u){(qe(t)?xt:y)(t,function(t,o){var a,i,f=t,l=n[o];if(t&&((i=qe(t))||g(t))){for(f=r.length;f--;)if(a=r[f]==t){l=u[f];break}if(!a){var c;e&&(f=e(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?qe(l)?l:[]:g(l)?l:{}),r.push(t),u.push(l),c||rt(l,t,e,r,u)}}else e&&(f=e(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);
|
||||
n[o]=l})}function ut(e,r,u){var a=-1,f=ft(),l=e?e.length:0,s=[],v=!r&&l>=b&&f===n,h=u||v?i():s;if(v){var g=o(h);g?(f=t,h=g):(v=!1,h=u?h:(c(h),s))}for(;++a<l;){var g=e[a],y=u?u(g,a,e):g;(r?!a||h[h.length-1]!==y:0>f(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(c(h.b),p(h)):u&&c(h),s}function ot(n){return function(t,e,r){var u={};e=X.createCallback(e,r,3),r=-1;var o=t?t.length:0;if(typeof o=="number")for(;++r<o;){var a=t[r];n(u,a,e(a,r,t),t)}else y(t,function(t,r,o){n(u,t,e(t,r,o),o)});return u}}function at(n,t,e,r,u,o){var a=1&t,i=2&t,f=4&t,l=8&t,c=16&t,p=32&t,s=n;
|
||||
;(function(){function n(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function t(t,e){var r=typeof e;if(t=t.k,"boolean"==r||null==e)return t[e]?0:-1;"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:m+e;return t=(t=t[r])&&t[u],"object"==r?t&&-1<n(t,e)?0:-1:t?0:-1}function e(n){var t=this.k,e=typeof n;if("boolean"==e||null==n)t[n]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:m+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=!0
|
||||
}}function r(n){return n.charCodeAt(0)}function u(n,t){var e=n.l,r=t.l;if(e!==r){if(e>r||typeof e=="undefined")return 1;if(e<r||typeof r=="undefined")return-1}return n.m-t.m}function o(n){var t=-1,r=n.length,u=n[0],o=n[r-1];if(u&&typeof u=="object"&&o&&typeof o=="object")return!1;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=!1,o=f(),o.b=n,o.k=u,o.push=e;++t<r;)o.push(n[t]);return o}function a(n){return"\\"+M[n]}function i(){return h.pop()||[]}function f(){return g.pop()||{b:null,k:null,configurable:!1,l:null,enumerable:!1,"false":!1,m:0,leading:!1,maxWait:0,"null":!1,number:null,z:null,push:null,string:null,trailing:!1,"true":!1,undefined:!1,n:null,writable:!1}
|
||||
}function l(n){n.length=0,h.length<b&&h.push(n)}function c(n){var t=n.k;t&&c(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=null,g.length<b&&g.push(n)}function p(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function s(e){function h(n){if(!n||de.call(n)!=q)return!1;var t=n.valueOf,e=typeof t=="function"&&(e=ve(t))&&ve(e);return e?n==e||ve(n)==e:lt(n)}function g(n,t,e){if(!n||!L[typeof n])return n;t=t&&typeof e=="undefined"?t:nt(t,e,3);
|
||||
for(var r=-1,u=L[typeof n]&&qe(n),o=u?u.length:0;++r<o&&(e=u[r],false!==t(n[e],e,n)););return n}function b(n,t,e){var r;if(!n||!L[typeof n])return n;t=t&&typeof e=="undefined"?t:nt(t,e,3);for(r in n)if(false===t(n[r],r,n))break;return n}function M(n,t,e){var r,u=n,o=u;if(!u)return o;for(var a=arguments,i=0,f=typeof e=="number"?2:a.length;++i<f;)if((u=a[i])&&L[typeof u])for(var l=-1,c=L[typeof u]&&qe(u),p=c?c.length:0;++l<p;)r=c[l],"undefined"==typeof o[r]&&(o[r]=u[r]);return o}function V(n,t,e){var r,u=n,o=u;
|
||||
if(!u)return o;var a=arguments,i=0,f=typeof e=="number"?2:a.length;if(3<f&&"function"==typeof a[f-2])var l=nt(a[--f-1],a[f--],2);else 2<f&&"function"==typeof a[f-1]&&(l=a[--f]);for(;++i<f;)if((u=a[i])&&L[typeof u])for(var c=-1,p=L[typeof u]&&qe(u),s=p?p.length:0;++c<s;)r=p[c],o[r]=l?l(o[r],u[r]):u[r];return o}function H(n){var t,e=[];if(!n||!L[typeof n])return e;for(t in n)he.call(n,t)&&e.push(t);return e}function Q(n,t){var e=f();e.value=t,je(n,"__bindData__",e),c(e)}function X(n){return n&&typeof n=="object"&&!ze(n)&&he.call(n,"__wrapped__")?n:new Y(n)
|
||||
}function Y(n,t){this.__chain__=!!t,this.__wrapped__=n}function Z(n,t,e,r,u){var o=n;if(e){if(o=e(o),typeof o!="undefined")return o;o=n}var a=yt(o);if(a){var f=de.call(o);if(!K[f])return o;var c=ze(o)}if(!a||!t)return a?c?p(o):V({},o):o;switch(a=Fe[f],f){case D:case F:return new a(+o);case z:case P:return new a(o);case W:return a(o.source,C.exec(o))}f=!r,r||(r=i()),u||(u=i());for(var s=r.length;s--;)if(r[s]==n)return u[s];return o=c?a(o.length):{},c&&(he.call(n,"index")&&(o.index=n.index),he.call(n,"input")&&(o.input=n.input)),r.push(n),u.push(o),(c?xt:g)(n,function(n,a){o[a]=Z(n,t,e,r,u)
|
||||
}),f&&(l(r),l(u)),o}function nt(n,t,e){if(typeof n!="function")return Ut;if(typeof t=="undefined")return n;var r=n.__bindData__||Te.a&&!n.name;if(typeof r=="undefined"){var u=S&&se.call(n);Te.a||!u||O.test(u)||(r=!0),(Te.a||!r)&&(r=!S||S.test(u),Q(n,r))}if(true!==r&&r&&1&r[1])return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,o){return n.call(t,e,r,u,o)}
|
||||
}return Kt(n,t)}function tt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,o=[];++r<u;){var a=n[r];a&&typeof a=="object"&&(ze(a)||pt(a))?ye.apply(o,t?a:tt(a,t,e)):e||o.push(a)}return o}function et(n,t,e,r,u,o){if(e){var a=e(n,t);if(typeof a!="undefined")return!!a}if(n===t)return 0!==n||1/n==1/t;if(n===n&&!(n&&L[typeof n]||t&&L[typeof t]))return!1;if(null==n||null==t)return n===t;var f=de.call(n),c=de.call(t);if(f==B&&(f=q),c==B&&(c=q),f!=c)return!1;switch(f){case D:case F:return+n==+t;case z:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
|
||||
case W:case P:return n==re(t)}if(c=f==$,!c){if(he.call(n,"__wrapped__")||he.call(t,"__wrapped__"))return et(n.__wrapped__||n,t.__wrapped__||t,e,r,u,o);if(f!=q)return!1;var f=n.constructor,p=t.constructor;if(f!=p&&!(gt(f)&&f instanceof f&>(p)&&p instanceof p))return!1}for(p=!u,u||(u=i()),o||(o=i()),f=u.length;f--;)if(u[f]==n)return o[f]==t;var s=0,a=!0;if(u.push(n),o.push(t),c){if(f=n.length,s=t.length,a=s==n.length,!a&&!r)return a;for(;s--;)if(c=f,p=t[s],r)for(;c--&&!(a=et(n[c],p,e,r,u,o)););else if(!(a=et(n[s],p,e,r,u,o)))break;
|
||||
return a}return b(t,function(t,i,f){return he.call(f,i)?(s++,a=he.call(n,i)&&et(n[i],t,e,r,u,o)):void 0}),a&&!r&&b(n,function(n,t,e){return he.call(e,t)?a=-1<--s:void 0}),p&&(l(u),l(o)),a}function rt(n,t,e,r,u){(ze(t)?xt:g)(t,function(t,o){var a,i,f=t,l=n[o];if(t&&((i=ze(t))||h(t))){for(f=r.length;f--;)if(a=r[f]==t){l=u[f];break}if(!a){var c;e&&(f=e(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?ze(l)?l:[]:h(l)?l:{}),r.push(t),u.push(l),c||rt(l,t,e,r,u)}}else e&&(f=e(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);
|
||||
n[o]=l})}function ut(e,r,u){var a=-1,f=ft(),p=e?e.length:0,s=[],v=!r&&p>=_&&f===n,h=u||v?i():s;if(v){var g=o(h);g?(f=t,h=g):(v=!1,h=u?h:(l(h),s))}for(;++a<p;){var g=e[a],y=u?u(g,a,e):g;(r?!a||h[h.length-1]!==y:0>f(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(l(h.b),c(h)):u&&l(h),s}function ot(n){return function(t,e,r){var u={};e=X.createCallback(e,r,3),r=-1;var o=t?t.length:0;if(typeof o=="number")for(;++r<o;){var a=t[r];n(u,a,e(a,r,t),t)}else g(t,function(t,r,o){n(u,t,e(t,r,o),o)});return u}}function at(n,t,e,r,u,o){var a=1&t,i=2&t,f=4&t,l=8&t,c=16&t,p=32&t,s=n;
|
||||
if(!i&&!gt(n))throw new ue;c&&!e.length&&(t&=-17,c=e=!1),p&&!r.length&&(t&=-33,p=r=!1);var v=n&&n.__bindData__;if(v)return!a||1&v[1]||(v[4]=u),!a&&1&v[1]&&(t|=8),!f||4&v[1]||(v[5]=o),c&&ye.apply(v[2]||(v[2]=[]),e),p&&ye.apply(v[3]||(v[3]=[]),r),v[1]|=t,at.apply(null,v);if(!a||i||f||p||!(Te.fastBind||ke&&c))g=function(){var v=arguments,h=a?u:this;return c&&we.apply(v,e),p&&ye.apply(v,r),f&&v.length<o?(t|=16,at(n,l?t:-4&t,v,null,u,o)):(i&&(n=h[s]),this instanceof g?(h=yt(n.prototype)?xe(n.prototype):{},v=n.apply(h,v),yt(v)?v:h):n.apply(h,v))
|
||||
};else{if(c){var h=[u];ye.apply(h,e)}var g=c?ke.apply(n,h):ke.call(n,u)}return ze(g,Be.call(arguments)),g}function it(n){return Pe[n]}function ft(){var t=(t=X.indexOf)===Ft?n:t;return t}function lt(n){var t,e;return n&&de.call(n)==W&&(t=n.constructor,!gt(t)||t instanceof t)?(d(n,function(n,t){e=t}),e===h||he.call(n,e)):!1}function ct(n){return Ke[n]}function pt(n){return n&&typeof n=="object"?de.call(n)==$:!1}function st(n,t,e){var r=We(n),u=r.length;for(t=nt(t,e,3);u--&&(e=r[u],false!==t(n[e],e,n)););return n
|
||||
}function vt(n){var t=[];return d(n,function(n,e){gt(n)&&t.push(e)}),t.sort()}function ht(n){for(var t=-1,e=We(n),r=e.length,u={};++t<r;){var o=e[t];u[n[o]]=o}return u}function gt(n){return typeof n=="function"}function yt(n){return!(!n||!M[typeof n])}function mt(n){return typeof n=="number"||de.call(n)==q}function _t(n){return typeof n=="string"||de.call(n)==K}function bt(n){for(var t=-1,e=We(n),r=e.length,u=Jt(r);++t<r;)u[t]=n[e[t]];return u}function dt(n,t,e){var r=-1,u=ft(),o=n?n.length:0,a=!1;return e=(0>e?Ie(0,o+e):e)||0,qe(n)?a=-1<u(n,t,e):typeof o=="number"?a=-1<(_t(n)?n.indexOf(t,e):u(n,t,e)):y(n,function(n){return++r<e?void 0:!(a=n===t)
|
||||
}),a}function wt(n,t,e){var r=!0;t=X.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else y(n,function(n,e,u){return r=!!t(n,e,u)});return r}function jt(n,t,e){var r=[];t=X.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else y(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function kt(n,t,e){t=X.createCallback(t,e,3),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return y(n,function(n,e,r){return t(n,e,r)?(u=n,!1):void 0
|
||||
}),u}for(;++e<r;){var o=n[e];if(t(o,e,n))return o}}function xt(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:nt(t,e,3),typeof u=="number")for(;++r<u&&false!==t(n[r],r,n););else y(n,t);return n}function Ct(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:nt(t,e,3),typeof r=="number")for(;r--&&false!==t(n[r],r,n););else{var u=We(n),r=u.length;y(n,function(n,e,o){return e=u?u[--r]:--r,t(o[e],e,o)})}return n}function Ot(n,t,e){var r=-1,u=n?n.length:0;if(t=X.createCallback(t,e,3),typeof u=="number")for(var o=Jt(u);++r<u;)o[r]=t(n[r],r,n);
|
||||
else o=[],y(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function Nt(n,t,e){var u=-1/0,o=u;if(!t&&qe(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i>o&&(o=i)}}else t=!t&&_t(n)?r:X.createCallback(t,e,3),xt(n,function(n,e,r){e=t(n,e,r),e>u&&(u=e,o=n)});return o}function Et(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Jt(r);++e<r;)u[e]=n[e][t];return u||Ot(n,t)}function It(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=nt(t,r,4);var o=-1,a=n.length;if(typeof a=="number")for(u&&(e=n[++o]);++o<a;)e=t(e,n[o],o,n);
|
||||
else y(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)});return e}function St(n,t,e,r){var u=3>arguments.length;return t=nt(t,r,4),Ct(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)}),e}function At(n){var t=-1,e=n?n.length:0,r=Jt(typeof e=="number"?e:0);return xt(n,function(n){var e=Gt(++t);r[t]=r[e],r[e]=n}),r}function Rt(n,t,e){var r;t=X.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else y(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Bt(n){return n&&typeof n.length=="number"?s(n):bt(n)
|
||||
}function $t(e){var r=-1,u=ft(),a=e?e.length:0,i=tt(arguments,!0,!0,1),f=[],l=a>=b&&u===n;if(l){var c=o(i);c?(u=t,i=c):l=!1}for(;++r<a;)c=e[r],0>u(i,c)&&f.push(c);return l&&p(i),f}function Dt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=X.createCallback(t,e,3);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return s(n,0,Se(Ie(0,r),u))}}function Ft(t,e,r){if(typeof r=="number"){var u=t?t.length:0;r=0>r?Ie(0,u+r):r||0}else if(r)return r=zt(t,e),t[r]===e?r:-1;
|
||||
return n(t,e,r)}function Tt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=X.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:Ie(0,t);return s(n,r)}function zt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?X.createCallback(e,r,1):Ut,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function qt(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?h:t,t=!1),null!=e&&(e=X.createCallback(e,r,3)),ut(n,t,e)}function Wt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Nt(Et(n,"length")):0,r=Jt(0>e?0:e);++t<e;)r[t]=Et(n,t);
|
||||
};else{if(c){var h=[u];ye.apply(h,e)}var g=c?ke.apply(n,h):ke.call(n,u)}return Q(g,Be.call(arguments)),g}function it(n){return We[n]}function ft(){var t=(t=X.indexOf)===Ft?n:t;return t}function lt(n){var t,e;return n&&de.call(n)==q&&(t=n.constructor,!gt(t)||t instanceof t)?(b(n,function(n,t){e=t}),e===v||he.call(n,e)):!1}function ct(n){return Pe[n]}function pt(n){return n&&typeof n=="object"?de.call(n)==B:!1}function st(n,t,e){var r=qe(n),u=r.length;for(t=nt(t,e,3);u--&&(e=r[u],false!==t(n[e],e,n)););return n
|
||||
}function vt(n){var t=[];return b(n,function(n,e){gt(n)&&t.push(e)}),t.sort()}function ht(n){for(var t=-1,e=qe(n),r=e.length,u={};++t<r;){var o=e[t];u[n[o]]=o}return u}function gt(n){return typeof n=="function"}function yt(n){return!(!n||!L[typeof n])}function mt(n){return typeof n=="number"||de.call(n)==z}function _t(n){return typeof n=="string"||de.call(n)==P}function bt(n){for(var t=-1,e=qe(n),r=e.length,u=Jt(r);++t<r;)u[t]=n[e[t]];return u}function dt(n,t,e){var r=-1,u=ft(),o=n?n.length:0,a=!1;return e=(0>e?Ie(0,o+e):e)||0,ze(n)?a=-1<u(n,t,e):typeof o=="number"?a=-1<(_t(n)?n.indexOf(t,e):u(n,t,e)):g(n,function(n){return++r<e?void 0:!(a=n===t)
|
||||
}),a}function wt(n,t,e){var r=!0;t=X.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else g(n,function(n,e,u){return r=!!t(n,e,u)});return r}function jt(n,t,e){var r=[];t=X.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var o=n[e];t(o,e,n)&&r.push(o)}else g(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function kt(n,t,e){t=X.createCallback(t,e,3),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return g(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 xt(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:nt(t,e,3),typeof u=="number")for(;++r<u&&false!==t(n[r],r,n););else g(n,t);return n}function Ct(n,t,e){var r=n?n.length:0;if(t=t&&typeof e=="undefined"?t:nt(t,e,3),typeof r=="number")for(;r--&&false!==t(n[r],r,n););else{var u=qe(n),r=u.length;g(n,function(n,e,o){return e=u?u[--r]:--r,t(o[e],e,o)})}return n}function Ot(n,t,e){var r=-1,u=n?n.length:0;if(t=X.createCallback(t,e,3),typeof u=="number")for(var o=Jt(u);++r<u;)o[r]=t(n[r],r,n);
|
||||
else o=[],g(n,function(n,e,u){o[++r]=t(n,e,u)});return o}function Nt(n,t,e){var u=-1/0,o=u;if(!t&&ze(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i>o&&(o=i)}}else t=!t&&_t(n)?r:X.createCallback(t,e,3),xt(n,function(n,e,r){e=t(n,e,r),e>u&&(u=e,o=n)});return o}function Et(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Jt(r);++e<r;)u[e]=n[e][t];return u||Ot(n,t)}function It(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=nt(t,r,4);var o=-1,a=n.length;if(typeof a=="number")for(u&&(e=n[++o]);++o<a;)e=t(e,n[o],o,n);
|
||||
else g(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)});return e}function St(n,t,e,r){var u=3>arguments.length;return t=nt(t,r,4),Ct(n,function(n,r,o){e=u?(u=!1,n):t(e,n,r,o)}),e}function At(n){var t=-1,e=n?n.length:0,r=Jt(typeof e=="number"?e:0);return xt(n,function(n){var e=Gt(++t);r[t]=r[e],r[e]=n}),r}function Rt(n,t,e){var r;t=X.createCallback(t,e,3),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else g(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Bt(n){return n&&typeof n.length=="number"?p(n):bt(n)
|
||||
}function $t(e){var r=-1,u=ft(),a=e?e.length:0,i=tt(arguments,!0,!0,1),f=[],l=a>=_&&u===n;if(l){var p=o(i);p?(u=t,i=p):l=!1}for(;++r<a;)p=e[r],0>u(i,p)&&f.push(p);return l&&c(i),f}function Dt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=-1;for(t=X.createCallback(t,e,3);++o<u&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[0];return p(n,0,Se(Ie(0,r),u))}}function Ft(t,e,r){if(typeof r=="number"){var u=t?t.length:0;r=0>r?Ie(0,u+r):r||0}else if(r)return r=zt(t,e),t[r]===e?r:-1;
|
||||
return n(t,e,r)}function Tt(n,t,e){if(typeof t!="number"&&null!=t){var r=0,u=-1,o=n?n.length:0;for(t=X.createCallback(t,e,3);++u<o&&t(n[u],u,n);)r++}else r=null==t||e?1:Ie(0,t);return p(n,r)}function zt(n,t,e,r){var u=0,o=n?n.length:u;for(e=e?X.createCallback(e,r,1):Ut,t=e(t);u<o;)r=u+o>>>1,e(n[r])<t?u=r+1:o=r;return u}function qt(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?v:t,t=!1),null!=e&&(e=X.createCallback(e,r,3)),ut(n,t,e)}function Wt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Nt(Et(n,"length")):0,r=Jt(0>e?0:e);++t<e;)r[t]=Et(n,t);
|
||||
return r}function Pt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var o=n[e];t?u[o]=t[e]:o&&(u[o[0]]=o[1])}return u}function Kt(n,t){return 2<arguments.length?at(n,17,Be.call(arguments,2),null,t):at(n,1,null,null,t)}function Lt(n,t,e){function r(){v&&ce(v),l=0,s=v=null,(h||p!==t)&&(c=ge(),a=n.apply(f,o))}function u(){var e=t-(ge()-i);0<e?v=_e(u,e):(e=h&&(!g||1<l),s&&ce(s),l=0,s=v=null,e&&(c=ge(),a=n.apply(f,o)))}var o,a,i,f,l=0,c=0,p=!1,s=null,v=null,h=!0;if(!gt(n))throw new ue;if(t=Ie(0,t||0),true===e)var g=!0,h=!1;
|
||||
else yt(e)&&(g=e.leading,p="maxWait"in e&&Ie(t,e.maxWait||0),h="trailing"in e?e.trailing:h);return function(){if(o=arguments,i=ge(),f=this,l++,false===p)g&&2>l&&(a=n.apply(f,o));else{s||g||(c=i);var e=p-(i-c);0<e?s||(s=_e(r,e)):(s&&(ce(s),s=null),c=i,a=n.apply(f,o))}return v||t===p||(v=_e(u,t)),a}}function Mt(n){if(!gt(n))throw new ue;var t=Be.call(arguments,1);return _e(function(){n.apply(h,t)},1)}function Ut(n){return n}function Vt(n,t){var e=n,r=!t||gt(e);t||(e=Y,t=n,n=X),xt(vt(t),function(u){var o=n[u]=t[u];
|
||||
r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return ye.apply(r,arguments),r=o.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)})})}function Gt(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var e=Re();return n%1||t%1?n+Se(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+pe(e*(t-n+1))}function Ht(){return this.__wrapped__}e=e?Q.defaults(V.Object(),e,Q.pick(V,B)):V;var Jt=e.Array,Qt=e.Boolean,Xt=e.Date,Yt=e.Function,Zt=e.Math,ne=e.Number,te=e.Object,ee=e.RegExp,re=e.String,ue=e.TypeError,oe=[],ae=te.prototype,ie=e._,fe=ee("^"+re(ae.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),le=Zt.ceil,ce=e.clearTimeout,pe=Zt.floor,se=Yt.prototype.toString,ve=fe.test(ve=te.getPrototypeOf)&&ve,he=ae.hasOwnProperty,ge=fe.test(ge=Xt.now)&&ge||function(){return+new Xt
|
||||
},ye=oe.push,me=e.setImmediate,_e=e.setTimeout,be=oe.splice,de=ae.toString,we=oe.unshift,je=function(){try{var n={},t=fe.test(t=te.defineProperty)&&t,e=t(n,n,n)&&t}catch(r){}return e}(),ke=fe.test(ke=de.bind)&&ke,xe=fe.test(xe=te.create)&&xe,Ce=fe.test(Ce=Jt.isArray)&&Ce,Oe=e.isFinite,Ne=e.isNaN,Ee=fe.test(Ee=te.keys)&&Ee,Ie=Zt.max,Se=Zt.min,Ae=e.parseInt,Re=Zt.random,Be=oe.slice,$e=fe.test(e.attachEvent),De=ke&&!/\n|true/.test(ke+$e),Fe={};Fe[D]=Jt,Fe[F]=Qt,Fe[T]=Xt,Fe[z]=Yt,Fe[W]=te,Fe[q]=ne,Fe[P]=ee,Fe[K]=re,Y.prototype=X.prototype;
|
||||
var Te=X.support={};Te.fastBind=ke&&!De,Te.a=typeof Yt.name=="string",X.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:E,variable:"",imports:{_:X}};var ze=je?function(n,t){var e=f();e.value=t,je(n,"__bindData__",e),p(e)}:l,qe=Ce||function(n){return n&&typeof n=="object"?de.call(n)==D:!1},We=Ee?function(n){return yt(n)?Ee(n):[]}:J,Pe={"&":"&","<":"<",">":">",'"':""","'":"'"},Ke=ht(Pe),Le=ee("("+We(Ke).join("|")+")","g"),Me=ee("["+We(Pe).join("")+"]","g"),Ue=ot(function(n,t,e){he.call(n,e)?n[e]++:n[e]=1
|
||||
}),Ve=ot(function(n,t,e){(he.call(n,e)?n[e]:n[e]=[]).push(t)}),Ge=ot(function(n,t,e){n[e]=t});De&&H&&typeof me=="function"&&(Mt=function(n){if(!gt(n))throw new ue;return me.apply(e,arguments)});var He=8==Ae(w+"08")?Ae:function(n,t){return Ae(_t(n)?n.replace(I,""):n,t||0)};return X.after=function(n,t){if(!gt(t))throw new ue;return function(){return 1>--n?t.apply(this,arguments):void 0}},X.assign=G,X.at=function(n){for(var t=arguments,e=-1,r=tt(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Jt(t);++e<t;)u[e]=n[r[e]];
|
||||
return u},X.bind=Kt,X.bindAll=function(n){for(var t=1<arguments.length?tt(arguments,!0,!1,1):vt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=at(n[u],1,null,null,n)}return n},X.bindKey=function(n,t){return 2<arguments.length?at(t,19,Be.call(arguments,2),null,n):at(t,3,null,null,n)},X.chain=function(n){return n=new Y(n),n.__chain__=!0,n},X.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},X.compose=function(){for(var n=arguments,t=n.length||1;t--;)if(!gt(n[t]))throw new ue;
|
||||
return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},X.countBy=Ue,X.createCallback=function(n,t,e){var r=typeof n;if(null==n||"function"==r)return nt(n,t,e);if("object"!=r)return function(t){return t[n]};var u=We(n),o=u[0],a=n[o];return 1!=u.length||a!==a||yt(a)?function(t){for(var e=u.length,r=!1;e--&&(r=et(t[u[e]],n[u[e]],null,!0)););return r}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},X.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,at(n,4,null,null,null,t)
|
||||
},X.debounce=Lt,X.defaults=U,X.defer=Mt,X.delay=function(n,t){if(!gt(n))throw new ue;var e=Be.call(arguments,2);return _e(function(){n.apply(h,e)},t)},X.difference=$t,X.filter=jt,X.flatten=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?h:t,t=!1),null!=e&&(n=Ot(n,e,r)),tt(n,t)},X.forEach=xt,X.forEachRight=Ct,X.forIn=d,X.forInRight=function(n,t,e){var r=[];d(n,function(n,t){r.push(t,n)});var u=r.length;for(t=nt(t,e,3);u--&&false!==t(r[u--],r[u],n););return n},X.forOwn=y,X.forOwnRight=st,X.functions=vt,X.groupBy=Ve,X.indexBy=Ge,X.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=X.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return s(n,0,Se(Ie(0,u-r),u))},X.intersection=function(e){for(var r=arguments,u=r.length,a=-1,f=i(),l=-1,s=ft(),v=e?e.length:0,h=[],g=i();++a<u;){var y=r[a];f[a]=s===n&&(y?y.length:0)>=b&&o(a?r[a]:g)}n:for(;++l<v;){var m=f[0],y=e[l];if(0>(m?t(m,y):s(g,y))){for(a=u,(m||g).push(y);--a;)if(m=f[a],0>(m?t(m,y):s(r[a],y)))continue n;h.push(y)}}for(;u--;)(m=f[u])&&p(m);
|
||||
return c(f),c(g),h},X.invert=ht,X.invoke=function(n,t){var e=Be.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Jt(typeof o=="number"?o:0);return xt(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},X.keys=We,X.map=Ot,X.max=Nt,X.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):_+arguments[0];return he.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!gt(n))throw new ue;return e.cache={},e},X.merge=function(n){var t=arguments,e=2;if(!yt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=nt(t[--e-1],t[e--],2);
|
||||
else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Be.call(arguments,1,e),u=-1,o=i(),a=i();++u<e;)rt(n,t[u],r,o,a);return c(o),c(a),n},X.min=function(n,t,e){var u=1/0,o=u;if(!t&&qe(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&_t(n)?r:X.createCallback(t,e,3),xt(n,function(n,e,r){e=t(n,e,r),e<u&&(u=e,o=n)});return o},X.omit=function(n,t,e){var r=ft(),u=typeof t=="function",o={};if(u)t=X.createCallback(t,e,3);else var a=tt(arguments,!0,!1,1);return d(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)
|
||||
}),o},X.once=function(n){var t,e;if(!gt(n))throw new ue;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}},X.pairs=function(n){for(var t=-1,e=We(n),r=e.length,u=Jt(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},X.partial=function(n){return at(n,16,Be.call(arguments,1))},X.partialRight=function(n){return at(n,32,null,Be.call(arguments,1))},X.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=tt(arguments,!0,!1,1),a=yt(n)?o.length:0;++u<a;){var i=o[u];i in n&&(r[i]=n[i])
|
||||
}else t=X.createCallback(t,e,3),d(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},X.pluck=Et,X.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(be.call(n,o--,1),u--);return n},X.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:+e||1,null==t&&(t=n,n=0);var r=-1;t=Ie(0,le((t-n)/(e||1)));for(var u=Jt(t);++r<t;)u[r]=n,n+=e;return u},X.reject=function(n,t,e){return t=X.createCallback(t,e,3),jt(n,function(n,e,r){return!t(n,e,r)})},X.remove=function(n,t,e){var r=-1,u=n?n.length:0,o=[];
|
||||
for(t=X.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(o.push(e),be.call(n,r--,1),u--);return o},X.rest=Tt,X.shuffle=At,X.sortBy=function(n,t,e){var r=-1,o=n?n.length:0,a=Jt(typeof o=="number"?o:0);for(t=X.createCallback(t,e,3),xt(n,function(n,e,u){var o=a[++r]=f();o.l=t(n,e,u),o.m=r,o.n=n}),o=a.length,a.sort(u);o--;)n=a[o],a[o]=n.n,p(n);return a},X.tap=function(n,t){return t(n),n},X.throttle=function(n,t,e){var r=!0,u=!0;if(!gt(n))throw new ue;return false===e?r=!1:yt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=f(),e.leading=r,e.maxWait=t,e.trailing=u,n=Lt(n,t,e),p(e),n
|
||||
},X.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Jt(n);for(t=nt(t,e,1);++r<n;)u[r]=t(r);return u},X.toArray=Bt,X.transform=function(n,t,e,r){var u=qe(n);return t=nt(t,r,4),null==e&&(u?e=[]:(r=n&&n.constructor,e=yt(r&&r.prototype)?xe(r&&r.prototype):{})),(u?xt:y)(n,function(n,r,u){return t(e,n,r,u)}),e},X.union=function(){return ut(tt(arguments,!0,!0))},X.uniq=qt,X.values=bt,X.where=jt,X.without=function(n){return $t(n,Be.call(arguments,1))},X.wrap=function(n,t){if(!gt(t))throw new ue;return function(){var e=[n];
|
||||
return ye.apply(e,arguments),t.apply(this,e)}},X.zip=Wt,X.zipObject=Pt,X.collect=Ot,X.drop=Tt,X.each=xt,X.c=Ct,X.extend=G,X.methods=vt,X.object=Pt,X.select=jt,X.tail=Tt,X.unique=qt,X.unzip=Wt,Vt(X),X.clone=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),Z(n,t,typeof e=="function"&&nt(e,r,1))},X.cloneDeep=function(n,t,e){return Z(n,!0,typeof t=="function"&&nt(t,e,1))},X.contains=dt,X.escape=function(n){return null==n?"":re(n).replace(Me,it)},X.every=wt,X.find=kt,X.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;
|
||||
for(t=X.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},X.findKey=function(n,t,e){var r;return t=X.createCallback(t,e,3),y(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},X.findLast=function(n,t,e){var r;return t=X.createCallback(t,e,3),Ct(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0}),r},X.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=X.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},X.findLastKey=function(n,t,e){var r;return t=X.createCallback(t,e,3),st(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0
|
||||
}),r},X.has=function(n,t){return n?he.call(n,t):!1},X.identity=Ut,X.indexOf=Ft,X.isArguments=pt,X.isArray=qe,X.isBoolean=function(n){return true===n||false===n||de.call(n)==F},X.isDate=function(n){return n?typeof n=="object"&&de.call(n)==T:!1},X.isElement=function(n){return n?1===n.nodeType:!1},X.isEmpty=function(n){var t=!0;if(!n)return t;var e=de.call(n),r=n.length;return e==D||e==K||e==$||e==W&&typeof r=="number"&>(n.splice)?!r:(y(n,function(){return t=!1}),t)},X.isEqual=function(n,t,e,r){return et(n,t,typeof e=="function"&&nt(e,r,2))
|
||||
},X.isFinite=function(n){return Oe(n)&&!Ne(parseFloat(n))},X.isFunction=gt,X.isNaN=function(n){return mt(n)&&n!=+n},X.isNull=function(n){return null===n},X.isNumber=mt,X.isObject=yt,X.isPlainObject=g,X.isRegExp=function(n){return n?typeof n=="object"&&de.call(n)==P:!1},X.isString=_t,X.isUndefined=function(n){return typeof n=="undefined"},X.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ie(0,r+e):Se(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},X.mixin=Vt,X.noConflict=function(){return e._=ie,this
|
||||
},X.parseInt=He,X.random=Gt,X.reduce=It,X.reduceRight=St,X.result=function(n,t){var e=n?n[t]:h;return gt(e)?n[t]():e},X.runInContext=v,X.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:We(n).length},X.some=Rt,X.sortedIndex=zt,X.template=function(n,t,e){var r=X.templateSettings;n||(n=""),e=U({},e,r);var u,o=U({},e.imports,r.imports),r=We(o),o=bt(o),i=0,f=e.interpolate||S,l="__p+='",f=ee((e.escape||S).source+"|"+f.source+"|"+(f===E?C:S).source+"|"+(e.evaluate||S).source+"|$","g");n.replace(f,function(t,e,r,o,f,c){return r||(r=o),l+=n.slice(i,c).replace(R,a),e&&(l+="'+__e("+e+")+'"),f&&(u=!0,l+="';"+f+";__p+='"),r&&(l+="'+((__t=("+r+"))==null?'':__t)+'"),i=c+t.length,t
|
||||
}),l+="';\n",f=e=e.variable,f||(e="obj",l="with("+e+"){"+l+"}"),l=(u?l.replace(j,""):l).replace(k,"$1").replace(x,"$1;"),l="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=Yt(r,"return "+l).apply(h,o)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},X.unescape=function(n){return null==n?"":re(n).replace(Le,ct)},X.uniqueId=function(n){var t=++m;return re(null==n?"":n)+t
|
||||
},X.all=wt,X.any=Rt,X.detect=kt,X.findWhere=kt,X.foldl=It,X.foldr=St,X.include=dt,X.inject=It,y(X,function(n,t){X.prototype[t]||(X.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return ye.apply(t,arguments),t=n.apply(X,t),e?new Y(t,e):t})}),X.first=Dt,X.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&null!=t){var o=u;for(t=X.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return s(n,Ie(0,u-r))}},X.sample=function(n,t,e){return qe(n)||(n=Bt(n)),null==t||e?n[Gt(n.length-1)]:(n=At(n),n.length=Se(Ie(0,t),n.length),n)
|
||||
},X.take=Dt,X.head=Dt,y(X,function(n,t){var e="sample"!==t;X.prototype[t]||(X.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new Y(o,u):o})}),X.VERSION="1.3.1",X.prototype.chain=function(){return this.__chain__=!0,this},X.prototype.toString=function(){return re(this.__wrapped__)},X.prototype.value=Ht,X.prototype.valueOf=Ht,xt(["join","pop","shift"],function(n){var t=oe[n];X.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);
|
||||
return n?new Y(e,n):e}}),xt(["push","reverse","sort","unshift"],function(n){var t=oe[n];X.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),xt(["concat","slice","splice"],function(n){var t=oe[n];X.prototype[n]=function(){return new Y(t.apply(this.__wrapped__,arguments),this.__chain__)}}),X}var h,g=[],y=[],m=0,_=+new Date+"",b=75,d=40,w=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",j=/\b__p\+='';/g,k=/\b(__p\+=)''\+/g,x=/(__e\(.*?\)|\b__t\))\+'';/g,C=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,O=/\w*$/,N=/^function[ \n\r\t]+\w/,E=/<%=([\s\S]+?)%>/g,I=RegExp("^["+w+"]*0+(?=.$)"),S=/($^)/,A=(A=/\bthis\b/)&&A.test(v)&&A,R=/['\n\r\t\u2028\u2029\\]/g,B="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),$="[object Arguments]",D="[object Array]",F="[object Boolean]",T="[object Date]",z="[object Function]",q="[object Number]",W="[object Object]",P="[object RegExp]",K="[object String]",L={};
|
||||
L[z]=!1,L[$]=L[D]=L[F]=L[T]=L[q]=L[W]=L[P]=L[K]=!0;var M={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},U={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},V=M[typeof window]&&window||this,G=M[typeof exports]&&exports,H=M[typeof module]&&module&&module.exports==G&&module,J=M[typeof global]&&global;!J||J.global!==J&&J.window!==J||(V=J);var Q=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(V._=Q, define(function(){return Q
|
||||
})):G&&!G.nodeType?H?(H.exports=Q)._=Q:G._=Q:V._=Q}).call(this);
|
||||
else yt(e)&&(g=e.leading,p="maxWait"in e&&Ie(t,e.maxWait||0),h="trailing"in e?e.trailing:h);return function(){if(o=arguments,i=ge(),f=this,l++,false===p)g&&2>l&&(a=n.apply(f,o));else{s||g||(c=i);var e=p-(i-c);0<e?s||(s=_e(r,e)):(s&&(ce(s),s=null),c=i,a=n.apply(f,o))}return v||t===p||(v=_e(u,t)),a}}function Mt(n){if(!gt(n))throw new ue;var t=Be.call(arguments,1);return _e(function(){n.apply(v,t)},1)}function Ut(n){return n}function Vt(n,t){var e=n,r=!t||gt(e);t||(e=Y,t=n,n=X),xt(vt(t),function(u){var o=n[u]=t[u];
|
||||
r&&(e.prototype[u]=function(){var t=this.__wrapped__,r=[t];return ye.apply(r,arguments),r=o.apply(n,r),t&&typeof t=="object"&&t===r?this:new e(r)})})}function Gt(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var e=Re();return n%1||t%1?n+Se(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+pe(e*(t-n+1))}function Ht(){return this.__wrapped__}e=e?J.defaults(U.Object(),e,J.pick(U,R)):U;var Jt=e.Array,Qt=e.Boolean,Xt=e.Date,Yt=e.Function,Zt=e.Math,ne=e.Number,te=e.Object,ee=e.RegExp,re=e.String,ue=e.TypeError,oe=[],ae=te.prototype,ie=e._,fe=ee("^"+re(ae.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),le=Zt.ceil,ce=e.clearTimeout,pe=Zt.floor,se=Yt.prototype.toString,ve=fe.test(ve=te.getPrototypeOf)&&ve,he=ae.hasOwnProperty,ge=fe.test(ge=Xt.now)&&ge||function(){return+new Xt
|
||||
},ye=oe.push,me=e.setImmediate,_e=e.setTimeout,be=oe.splice,de=ae.toString,we=oe.unshift,je=function(){try{var n={},t=fe.test(t=te.defineProperty)&&t,e=t(n,n,n)&&t}catch(r){}return e}(),ke=fe.test(ke=de.bind)&&ke,xe=fe.test(xe=te.create)&&xe,Ce=fe.test(Ce=Jt.isArray)&&Ce,Oe=e.isFinite,Ne=e.isNaN,Ee=fe.test(Ee=te.keys)&&Ee,Ie=Zt.max,Se=Zt.min,Ae=e.parseInt,Re=Zt.random,Be=oe.slice,$e=fe.test(e.attachEvent),De=ke&&!/\n|true/.test(ke+$e),Fe={};Fe[$]=Jt,Fe[D]=Qt,Fe[F]=Xt,Fe[T]=Yt,Fe[q]=te,Fe[z]=ne,Fe[W]=ee,Fe[P]=re,Y.prototype=X.prototype;
|
||||
var Te=X.support={};Te.fastBind=ke&&!De,Te.a=typeof Yt.name=="string",X.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:N,variable:"",imports:{_:X}};var ze=Ce||function(n){return n&&typeof n=="object"?de.call(n)==$:!1},qe=Ee?function(n){return yt(n)?Ee(n):[]}:H,We={"&":"&","<":"<",">":">",'"':""","'":"'"},Pe=ht(We),Ke=ee("("+qe(Pe).join("|")+")","g"),Le=ee("["+qe(We).join("")+"]","g"),Me=ot(function(n,t,e){he.call(n,e)?n[e]++:n[e]=1}),Ue=ot(function(n,t,e){(he.call(n,e)?n[e]:n[e]=[]).push(t)
|
||||
}),Ve=ot(function(n,t,e){n[e]=t});De&&G&&typeof me=="function"&&(Mt=function(n){if(!gt(n))throw new ue;return me.apply(e,arguments)});var Ge=8==Ae(d+"08")?Ae:function(n,t){return Ae(_t(n)?n.replace(E,""):n,t||0)};return X.after=function(n,t){if(!gt(t))throw new ue;return function(){return 1>--n?t.apply(this,arguments):void 0}},X.assign=V,X.at=function(n){for(var t=arguments,e=-1,r=tt(t,!0,!1,1),t=t[2]&&t[2][t[1]]===n?1:r.length,u=Jt(t);++e<t;)u[e]=n[r[e]];return u},X.bind=Kt,X.bindAll=function(n){for(var t=1<arguments.length?tt(arguments,!0,!1,1):vt(n),e=-1,r=t.length;++e<r;){var u=t[e];
|
||||
n[u]=at(n[u],1,null,null,n)}return n},X.bindKey=function(n,t){return 2<arguments.length?at(t,19,Be.call(arguments,2),null,n):at(t,3,null,null,n)},X.chain=function(n){return n=new Y(n),n.__chain__=!0,n},X.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},X.compose=function(){for(var n=arguments,t=n.length||1;t--;)if(!gt(n[t]))throw new ue;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},X.countBy=Me,X.createCallback=function(n,t,e){var r=typeof n;
|
||||
if(null==n||"function"==r)return nt(n,t,e);if("object"!=r)return function(t){return t[n]};var u=qe(n),o=u[0],a=n[o];return 1!=u.length||a!==a||yt(a)?function(t){for(var e=u.length,r=!1;e--&&(r=et(t[u[e]],n[u[e]],null,!0)););return r}:function(n){return n=n[o],a===n&&(0!==a||1/a==1/n)}},X.curry=function(n,t){return t=typeof t=="number"?t:+t||n.length,at(n,4,null,null,null,t)},X.debounce=Lt,X.defaults=M,X.defer=Mt,X.delay=function(n,t){if(!gt(n))throw new ue;var e=Be.call(arguments,2);return _e(function(){n.apply(v,e)
|
||||
},t)},X.difference=$t,X.filter=jt,X.flatten=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(e=(r=e)&&r[t]===n?v:t,t=!1),null!=e&&(n=Ot(n,e,r)),tt(n,t)},X.forEach=xt,X.forEachRight=Ct,X.forIn=b,X.forInRight=function(n,t,e){var r=[];b(n,function(n,t){r.push(t,n)});var u=r.length;for(t=nt(t,e,3);u--&&false!==t(r[u--],r[u],n););return n},X.forOwn=g,X.forOwnRight=st,X.functions=vt,X.groupBy=Ue,X.indexBy=Ve,X.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=X.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else r=null==t||e?1:t||r;return p(n,0,Se(Ie(0,u-r),u))},X.intersection=function(e){for(var r=arguments,u=r.length,a=-1,f=i(),p=-1,s=ft(),v=e?e.length:0,h=[],g=i();++a<u;){var y=r[a];f[a]=s===n&&(y?y.length:0)>=_&&o(a?r[a]:g)}n:for(;++p<v;){var m=f[0],y=e[p];if(0>(m?t(m,y):s(g,y))){for(a=u,(m||g).push(y);--a;)if(m=f[a],0>(m?t(m,y):s(r[a],y)))continue n;h.push(y)}}for(;u--;)(m=f[u])&&c(m);return l(f),l(g),h},X.invert=ht,X.invoke=function(n,t){var e=Be.call(arguments,2),r=-1,u=typeof t=="function",o=n?n.length:0,a=Jt(typeof o=="number"?o:0);
|
||||
return xt(n,function(n){a[++r]=(u?t:n[t]).apply(n,e)}),a},X.keys=qe,X.map=Ot,X.max=Nt,X.memoize=function(n,t){function e(){var r=e.cache,u=t?t.apply(this,arguments):m+arguments[0];return he.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}if(!gt(n))throw new ue;return e.cache={},e},X.merge=function(n){var t=arguments,e=2;if(!yt(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=nt(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Be.call(arguments,1,e),u=-1,o=i(),a=i();++u<e;)rt(n,t[u],r,o,a);
|
||||
return l(o),l(a),n},X.min=function(n,t,e){var u=1/0,o=u;if(!t&&ze(n)){e=-1;for(var a=n.length;++e<a;){var i=n[e];i<o&&(o=i)}}else t=!t&&_t(n)?r:X.createCallback(t,e,3),xt(n,function(n,e,r){e=t(n,e,r),e<u&&(u=e,o=n)});return o},X.omit=function(n,t,e){var r=ft(),u=typeof t=="function",o={};if(u)t=X.createCallback(t,e,3);else var a=tt(arguments,!0,!1,1);return b(n,function(n,e,i){(u?!t(n,e,i):0>r(a,e))&&(o[e]=n)}),o},X.once=function(n){var t,e;if(!gt(n))throw new ue;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)
|
||||
}},X.pairs=function(n){for(var t=-1,e=qe(n),r=e.length,u=Jt(r);++t<r;){var o=e[t];u[t]=[o,n[o]]}return u},X.partial=function(n){return at(n,16,Be.call(arguments,1))},X.partialRight=function(n){return at(n,32,null,Be.call(arguments,1))},X.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,o=tt(arguments,!0,!1,1),a=yt(n)?o.length:0;++u<a;){var i=o[u];i in n&&(r[i]=n[i])}else t=X.createCallback(t,e,3),b(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},X.pluck=Et,X.pull=function(n){for(var t=arguments,e=0,r=t.length,u=n?n.length:0;++e<r;)for(var o=-1,a=t[e];++o<u;)n[o]===a&&(be.call(n,o--,1),u--);
|
||||
return n},X.range=function(n,t,e){n=+n||0,e=typeof e=="number"?e:+e||1,null==t&&(t=n,n=0);var r=-1;t=Ie(0,le((t-n)/(e||1)));for(var u=Jt(t);++r<t;)u[r]=n,n+=e;return u},X.reject=function(n,t,e){return t=X.createCallback(t,e,3),jt(n,function(n,e,r){return!t(n,e,r)})},X.remove=function(n,t,e){var r=-1,u=n?n.length:0,o=[];for(t=X.createCallback(t,e,3);++r<u;)e=n[r],t(e,r,n)&&(o.push(e),be.call(n,r--,1),u--);return o},X.rest=Tt,X.shuffle=At,X.sortBy=function(n,t,e){var r=-1,o=n?n.length:0,a=Jt(typeof o=="number"?o:0);
|
||||
for(t=X.createCallback(t,e,3),xt(n,function(n,e,u){var o=a[++r]=f();o.l=t(n,e,u),o.m=r,o.n=n}),o=a.length,a.sort(u);o--;)n=a[o],a[o]=n.n,c(n);return a},X.tap=function(n,t){return t(n),n},X.throttle=function(n,t,e){var r=!0,u=!0;if(!gt(n))throw new ue;return false===e?r=!1:yt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=f(),e.leading=r,e.maxWait=t,e.trailing=u,n=Lt(n,t,e),c(e),n},X.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Jt(n);for(t=nt(t,e,1);++r<n;)u[r]=t(r);return u},X.toArray=Bt,X.transform=function(n,t,e,r){var u=ze(n);
|
||||
return t=nt(t,r,4),null==e&&(u?e=[]:(r=n&&n.constructor,e=yt(r&&r.prototype)?xe(r&&r.prototype):{})),(u?xt:g)(n,function(n,r,u){return t(e,n,r,u)}),e},X.union=function(){return ut(tt(arguments,!0,!0))},X.uniq=qt,X.values=bt,X.where=jt,X.without=function(n){return $t(n,Be.call(arguments,1))},X.wrap=function(n,t){if(!gt(t))throw new ue;return function(){var e=[n];return ye.apply(e,arguments),t.apply(this,e)}},X.zip=Wt,X.zipObject=Pt,X.collect=Ot,X.drop=Tt,X.each=xt,X.c=Ct,X.extend=V,X.methods=vt,X.object=Pt,X.select=jt,X.tail=Tt,X.unique=qt,X.unzip=Wt,Vt(X),X.clone=function(n,t,e,r){return typeof t!="boolean"&&null!=t&&(r=e,e=t,t=!1),Z(n,t,typeof e=="function"&&nt(e,r,1))
|
||||
},X.cloneDeep=function(n,t,e){return Z(n,!0,typeof t=="function"&&nt(t,e,1))},X.contains=dt,X.escape=function(n){return null==n?"":re(n).replace(Le,it)},X.every=wt,X.find=kt,X.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=X.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},X.findKey=function(n,t,e){var r;return t=X.createCallback(t,e,3),g(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},X.findLast=function(n,t,e){var r;return t=X.createCallback(t,e,3),Ct(n,function(n,e,u){return t(n,e,u)?(r=n,!1):void 0
|
||||
}),r},X.findLastIndex=function(n,t,e){var r=n?n.length:0;for(t=X.createCallback(t,e,3);r--;)if(t(n[r],r,n))return r;return-1},X.findLastKey=function(n,t,e){var r;return t=X.createCallback(t,e,3),st(n,function(n,e,u){return t(n,e,u)?(r=e,!1):void 0}),r},X.has=function(n,t){return n?he.call(n,t):!1},X.identity=Ut,X.indexOf=Ft,X.isArguments=pt,X.isArray=ze,X.isBoolean=function(n){return true===n||false===n||de.call(n)==D},X.isDate=function(n){return n?typeof n=="object"&&de.call(n)==F:!1},X.isElement=function(n){return n?1===n.nodeType:!1
|
||||
},X.isEmpty=function(n){var t=!0;if(!n)return t;var e=de.call(n),r=n.length;return e==$||e==P||e==B||e==q&&typeof r=="number"&>(n.splice)?!r:(g(n,function(){return t=!1}),t)},X.isEqual=function(n,t,e,r){return et(n,t,typeof e=="function"&&nt(e,r,2))},X.isFinite=function(n){return Oe(n)&&!Ne(parseFloat(n))},X.isFunction=gt,X.isNaN=function(n){return mt(n)&&n!=+n},X.isNull=function(n){return null===n},X.isNumber=mt,X.isObject=yt,X.isPlainObject=h,X.isRegExp=function(n){return n?typeof n=="object"&&de.call(n)==W:!1
|
||||
},X.isString=_t,X.isUndefined=function(n){return typeof n=="undefined"},X.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ie(0,r+e):Se(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},X.mixin=Vt,X.noConflict=function(){return e._=ie,this},X.parseInt=Ge,X.random=Gt,X.reduce=It,X.reduceRight=St,X.result=function(n,t){var e=n?n[t]:v;return gt(e)?n[t]():e},X.runInContext=s,X.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:qe(n).length},X.some=Rt,X.sortedIndex=zt,X.template=function(n,t,e){var r=X.templateSettings;
|
||||
n||(n=""),e=M({},e,r);var u,o=M({},e.imports,r.imports),r=qe(o),o=bt(o),i=0,f=e.interpolate||I,l="__p+='",f=ee((e.escape||I).source+"|"+f.source+"|"+(f===N?x:I).source+"|"+(e.evaluate||I).source+"|$","g");n.replace(f,function(t,e,r,o,f,c){return r||(r=o),l+=n.slice(i,c).replace(A,a),e&&(l+="'+__e("+e+")+'"),f&&(u=!0,l+="';"+f+";__p+='"),r&&(l+="'+((__t=("+r+"))==null?'':__t)+'"),i=c+t.length,t}),l+="';\n",f=e=e.variable,f||(e="obj",l="with("+e+"){"+l+"}"),l=(u?l.replace(w,""):l).replace(j,"$1").replace(k,"$1;"),l="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";
|
||||
try{var c=Yt(r,"return "+l).apply(v,o)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},X.unescape=function(n){return null==n?"":re(n).replace(Ke,ct)},X.uniqueId=function(n){var t=++y;return re(null==n?"":n)+t},X.all=wt,X.any=Rt,X.detect=kt,X.findWhere=kt,X.foldl=It,X.foldr=St,X.include=dt,X.inject=It,g(X,function(n,t){X.prototype[t]||(X.prototype[t]=function(){var t=[this.__wrapped__],e=this.__chain__;return ye.apply(t,arguments),t=n.apply(X,t),e?new Y(t,e):t})}),X.first=Dt,X.last=function(n,t,e){if(n){var r=0,u=n.length;
|
||||
if(typeof t!="number"&&null!=t){var o=u;for(t=X.createCallback(t,e,3);o--&&t(n[o],o,n);)r++}else if(r=t,null==r||e)return n[u-1];return p(n,Ie(0,u-r))}},X.sample=function(n,t,e){return ze(n)||(n=Bt(n)),null==t||e?n[Gt(n.length-1)]:(n=At(n),n.length=Se(Ie(0,t),n.length),n)},X.take=Dt,X.head=Dt,g(X,function(n,t){var e="sample"!==t;X.prototype[t]||(X.prototype[t]=function(t,r){var u=this.__chain__,o=n(this.__wrapped__,t,r);return u||null!=t&&(!r||e&&typeof t=="function")?new Y(o,u):o})}),X.VERSION="1.3.1",X.prototype.chain=function(){return this.__chain__=!0,this
|
||||
},X.prototype.toString=function(){return re(this.__wrapped__)},X.prototype.value=Ht,X.prototype.valueOf=Ht,xt(["join","pop","shift"],function(n){var t=oe[n];X.prototype[n]=function(){var n=this.__chain__,e=t.apply(this.__wrapped__,arguments);return n?new Y(e,n):e}}),xt(["push","reverse","sort","unshift"],function(n){var t=oe[n];X.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),xt(["concat","slice","splice"],function(n){var t=oe[n];X.prototype[n]=function(){return new Y(t.apply(this.__wrapped__,arguments),this.__chain__)
|
||||
}}),X}var v,h=[],g=[],y=0,m=+new Date+"",_=75,b=40,d=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",w=/\b__p\+='';/g,j=/\b(__p\+=)''\+/g,k=/(__e\(.*?\)|\b__t\))\+'';/g,x=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C=/\w*$/,O=/^function[ \n\r\t]+\w/,N=/<%=([\s\S]+?)%>/g,E=RegExp("^["+d+"]*0+(?=.$)"),I=/($^)/,S=(S=/\bthis\b/)&&S.test(s)&&S,A=/['\n\r\t\u2028\u2029\\]/g,R="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),B="[object Arguments]",$="[object Array]",D="[object Boolean]",F="[object Date]",T="[object Function]",z="[object Number]",q="[object Object]",W="[object RegExp]",P="[object String]",K={};
|
||||
K[T]=!1,K[B]=K[$]=K[D]=K[F]=K[z]=K[q]=K[W]=K[P]=!0;var L={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},M={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},U=L[typeof window]&&window||this,V=L[typeof exports]&&exports,G=L[typeof module]&&module&&module.exports==V&&module,H=L[typeof global]&&global;!H||H.global!==H&&H.window!==H||(U=H);var J=s();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(U._=J, define(function(){return J
|
||||
})):V&&!V.nodeType?G?(G.exports=J)._=J:V._=J:U._=J}).call(this);
|
||||
45
dist/lodash.underscore.js
vendored
45
dist/lodash.underscore.js
vendored
@@ -1474,7 +1474,7 @@
|
||||
* Creates a shallow clone of `object` excluding the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a callback is provided it will be executed for each
|
||||
* property of `object` omitting the properties the callback returns truthy
|
||||
* property of `object` omitting the properties the callback returns truey
|
||||
* for. The callback is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -1540,7 +1540,7 @@
|
||||
* Creates a shallow clone of `object` composed of the specified properties.
|
||||
* Property names may be specified as individual arguments or as arrays of
|
||||
* property names. If a callback is provided it will be executed for each
|
||||
* property of `object` picking the properties the callback returns truthy
|
||||
* property of `object` picking the properties the callback returns truey
|
||||
* for. The callback is bound to `thisArg` and invoked with three arguments;
|
||||
* (value, key, object).
|
||||
*
|
||||
@@ -1685,7 +1685,7 @@
|
||||
});
|
||||
|
||||
/**
|
||||
* Checks if the given callback returns truthy value for **all** elements of
|
||||
* Checks if the given callback returns truey value for **all** elements of
|
||||
* a collection. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index|key, collection).
|
||||
*
|
||||
@@ -1748,7 +1748,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of a collection, returning an array of all elements
|
||||
* the callback returns truthy for. The callback is bound to `thisArg` and
|
||||
* the callback returns truey for. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -1812,7 +1812,7 @@
|
||||
|
||||
/**
|
||||
* Iterates over elements of a collection, returning the first element that
|
||||
* the callback returns truthy for. The callback is bound to `thisArg` and
|
||||
* the callback returns truey for. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index|key, collection).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -2364,7 +2364,7 @@
|
||||
|
||||
/**
|
||||
* The opposite of `_.filter` this method returns the elements of a
|
||||
* collection that the callback does **not** return truthy for.
|
||||
* collection that the callback does **not** return truey for.
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
* callback will return the property value of the given element.
|
||||
@@ -2460,7 +2460,7 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the callback returns a truthy value for **any** element of a
|
||||
* Checks if the callback returns a truey value for **any** element of a
|
||||
* collection. The function returns as soon as it finds a passing value and
|
||||
* does not iterate over the entire collection. The callback is bound to
|
||||
* `thisArg` and invoked with three arguments; (value, index|key, collection).
|
||||
@@ -2697,7 +2697,7 @@
|
||||
/**
|
||||
* Gets the first element or first `n` elements of an array. If a callback
|
||||
* is provided elements at the beginning of the array are returned as long
|
||||
* as the callback returns truthy. The callback is bound to `thisArg` and
|
||||
* as the callback returns truey. The callback is bound to `thisArg` and
|
||||
* invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -2773,7 +2773,7 @@
|
||||
|
||||
/**
|
||||
* Flattens a nested array (the nesting can be to any depth). If `isShallow`
|
||||
* is truthy, the array will only be flattened a single level. If a callback
|
||||
* is truey, the array will only be flattened a single level. If a callback
|
||||
* is provided each element of the array is passed through the callback before
|
||||
* flattening. The callback is bound to `thisArg` and invoked with three
|
||||
* arguments; (value, index, array).
|
||||
@@ -2854,7 +2854,7 @@
|
||||
/**
|
||||
* Gets all but the last element or last `n` elements of an array. If a
|
||||
* callback is provided elements at the end of the array are excluded from
|
||||
* the result as long as the callback returns truthy. The callback is bound
|
||||
* the result as long as the callback returns truey. The callback is bound
|
||||
* to `thisArg` and invoked with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -2966,7 +2966,7 @@
|
||||
/**
|
||||
* Gets the last element or last `n` elements of an array. If a callback is
|
||||
* provided elements at the end of the array are returned as long as the
|
||||
* callback returns truthy. The callback is bound to `thisArg` and invoked
|
||||
* callback returns truey. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -3129,7 +3129,7 @@
|
||||
* The opposite of `_.initial` this method gets all but the first element or
|
||||
* first `n` elements of an array. If a callback function is provided elements
|
||||
* at the beginning of the array are excluded from the result as long as the
|
||||
* callback returns truthy. The callback is bound to `thisArg` and invoked
|
||||
* callback returns truey. The callback is bound to `thisArg` and invoked
|
||||
* with three arguments; (value, index, array).
|
||||
*
|
||||
* If a property name is provided for `callback` the created "_.pluck" style
|
||||
@@ -3421,8 +3421,8 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* Creates a function this is restricted to executing `func` with the `this`
|
||||
* binding and arguments of the created function, only after it is called `n` times.
|
||||
* Creates a function that executes `func`, with the `this` binding and
|
||||
* arguments of the created function, only after being called `n` times.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -3433,11 +3433,16 @@
|
||||
* @returns {Function} Returns the new restricted function.
|
||||
* @example
|
||||
*
|
||||
* var renderNotes = _.after(notes.length, render);
|
||||
* _.forEach(notes, function(note) {
|
||||
* note.asyncSave({ 'success': renderNotes });
|
||||
* var saves = ['profile', 'settings'];
|
||||
*
|
||||
* var done = _.after(saves.length, function() {
|
||||
* console.log('Done saving!');
|
||||
* });
|
||||
* // `renderNotes` is run once, after all notes have saved
|
||||
*
|
||||
* _.forEach(saves, function(type) {
|
||||
* asyncSave({ 'type': type, 'complete': done });
|
||||
* });
|
||||
* // => logs 'Done saving!', after all saves have completed
|
||||
*/
|
||||
function after(n, func) {
|
||||
if (!isFunction(func)) {
|
||||
@@ -4172,7 +4177,7 @@
|
||||
* is given, else it returns the interpolated text.
|
||||
* @example
|
||||
*
|
||||
* // using a compiled template
|
||||
* // using the "interpolate" delimiter to create a compiled template
|
||||
* var compiled = _.template('hello <%= name %>');
|
||||
* compiled({ 'name': 'moe' });
|
||||
* // => 'hello moe'
|
||||
@@ -4182,7 +4187,7 @@
|
||||
* // => '<b><script></b>'
|
||||
*
|
||||
* // using the "evaluate" delimiter to generate HTML
|
||||
* var list = '<% _.forEach(people, function(name) { %><li><%= name %></li><% }); %>';
|
||||
* var list = '<% _.forEach(people, function(name) { %><li><%- name %></li><% }); %>';
|
||||
* _.template(list, { 'people': ['moe', 'larry'] });
|
||||
* // => '<li>moe</li><li>larry</li>'
|
||||
*
|
||||
|
||||
332
doc/README.md
332
doc/README.md
File diff suppressed because it is too large
Load Diff
14
vendor/benchmark.js/benchmark.js
vendored
14
vendor/benchmark.js/benchmark.js
vendored
@@ -5,7 +5,7 @@
|
||||
* Modified by John-David Dalton <http://allyoucanleet.com/>
|
||||
* Available under MIT license <http://mths.be/mit>
|
||||
*/
|
||||
;(function(window, undefined) {
|
||||
;(function(root, undefined) {
|
||||
'use strict';
|
||||
|
||||
/** Detect free variable `define` */
|
||||
@@ -21,10 +21,10 @@
|
||||
/** Detect free variable `require` */
|
||||
var freeRequire = typeof require == 'function' && require;
|
||||
|
||||
/** Detect free variable `global`, from Node.js or Browserified code, and use it as `window` */
|
||||
/** Detect free variable `global`, from Node.js or Browserified code, and use it as `root` */
|
||||
var freeGlobal = typeof global == 'object' && global;
|
||||
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
||||
window = freeGlobal;
|
||||
root = freeGlobal;
|
||||
}
|
||||
|
||||
/** Used to assign each benchmark an incrimented id */
|
||||
@@ -105,12 +105,12 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf Benchmark
|
||||
* @param {Object} [context=window] The context object.
|
||||
* @param {Object} [context=root] The context object.
|
||||
* @returns {Function} Returns the `Benchmark` function.
|
||||
*/
|
||||
function runInContext(context) {
|
||||
// exit early if unable to acquire lodash
|
||||
var _ = context && context._ || req('lodash') || window._;
|
||||
var _ = context && context._ || req('lodash') || root._;
|
||||
if (!_) {
|
||||
Benchmark.runInContext = runInContext;
|
||||
return Benchmark;
|
||||
@@ -119,7 +119,7 @@
|
||||
// after built-in constructors like `Object`, for the creation of literals.
|
||||
// ES5 clears this up by stating that literals must use built-in constructors.
|
||||
// See http://es5.github.io/#x11.1.5.
|
||||
context = context ? _.defaults(window.Object(), context, _.pick(window, contextProps)) : window;
|
||||
context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
|
||||
|
||||
/** Native constructor references */
|
||||
var Array = context.Array,
|
||||
@@ -2867,7 +2867,7 @@
|
||||
}
|
||||
// in a browser or Rhino
|
||||
else {
|
||||
window.Benchmark = Benchmark;
|
||||
root.Benchmark = Benchmark;
|
||||
}
|
||||
}
|
||||
}(this));
|
||||
|
||||
28
vendor/platform.js/platform.js
vendored
28
vendor/platform.js/platform.js
vendored
@@ -3,18 +3,18 @@
|
||||
* Copyright 2010-2013 John-David Dalton <http://allyoucanleet.com/>
|
||||
* Available under MIT license <http://mths.be/mit>
|
||||
*/
|
||||
;(function(window) {
|
||||
;(function(root) {
|
||||
'use strict';
|
||||
|
||||
/** Backup possible window/global object */
|
||||
var oldWin = window;
|
||||
/** Backup possible global object */
|
||||
var oldRoot = root;
|
||||
|
||||
/** Detect free variable `exports` */
|
||||
var freeExports = typeof exports == 'object' && exports;
|
||||
|
||||
/** Detect free variable `global` */
|
||||
var freeGlobal = typeof global == 'object' && global &&
|
||||
(global == global.global ? (window = global) : global);
|
||||
(global == global.global ? (root = global) : global);
|
||||
|
||||
/** Opera regexp */
|
||||
var reOpera = /Opera/;
|
||||
@@ -23,10 +23,10 @@
|
||||
var toString = Object.prototype.toString;
|
||||
|
||||
/** Detect Java environment */
|
||||
var java = /Java/.test(getClassOf(window.java)) && window.java;
|
||||
var java = /Java/.test(getClassOf(root.java)) && root.java;
|
||||
|
||||
/** Detect Rhino */
|
||||
var rhino = java && getClassOf(window.environment) == 'Environment';
|
||||
var rhino = java && getClassOf(root.environment) == 'Environment';
|
||||
|
||||
/** A character to represent alpha */
|
||||
var alpha = java ? 'a' : '\u03b1';
|
||||
@@ -35,20 +35,20 @@
|
||||
var beta = java ? 'b' : '\u03b2';
|
||||
|
||||
/** Browser document object */
|
||||
var doc = window.document || {};
|
||||
var doc = root.document || {};
|
||||
|
||||
/** Used to check for own properties of an object */
|
||||
var hasOwnProperty = {}.hasOwnProperty;
|
||||
|
||||
/** Browser navigator object */
|
||||
var nav = window.navigator || {};
|
||||
var nav = root.navigator || {};
|
||||
|
||||
/**
|
||||
* Detect Opera browser
|
||||
* http://www.howtocreate.co.uk/operaStuff/operaObject.html
|
||||
* http://dev.opera.com/articles/view/opera-mini-web-content-authoring-guidelines/#operamini
|
||||
*/
|
||||
var opera = window.operamini || window.opera;
|
||||
var opera = root.operamini || root.opera;
|
||||
|
||||
/** Opera [[Class]] */
|
||||
var operaClass = reOpera.test(operaClass = getClassOf(opera)) ? operaClass : (opera = null);
|
||||
@@ -597,7 +597,7 @@
|
||||
if (useFeatures) {
|
||||
// detect server-side environments
|
||||
// Rhino has a global function while others have a global object
|
||||
if (isHostType(window, 'global')) {
|
||||
if (isHostType(root, 'global')) {
|
||||
if (java) {
|
||||
data = java.lang.System;
|
||||
arch = data.getProperty('os.arch');
|
||||
@@ -605,7 +605,7 @@
|
||||
}
|
||||
if (freeExports) {
|
||||
// if `thisBinding` is the [ModuleScope]
|
||||
if (thisBinding == oldWin && typeof system == 'object' && (data = [system])[0]) {
|
||||
if (thisBinding == oldRoot && typeof system == 'object' && (data = [system])[0]) {
|
||||
os || (os = data[0].os || null);
|
||||
try {
|
||||
data[1] = require('ringo/engine').version;
|
||||
@@ -632,12 +632,12 @@
|
||||
}
|
||||
}
|
||||
// detect Adobe AIR
|
||||
else if (getClassOf((data = window.runtime)) == 'ScriptBridgingProxyObject') {
|
||||
else if (getClassOf((data = root.runtime)) == 'ScriptBridgingProxyObject') {
|
||||
name = 'Adobe AIR';
|
||||
os = data.flash.system.Capabilities.os;
|
||||
}
|
||||
// detect PhantomJS
|
||||
else if (getClassOf((data = window.phantom)) == 'RuntimeObject') {
|
||||
else if (getClassOf((data = root.phantom)) == 'RuntimeObject') {
|
||||
name = 'PhantomJS';
|
||||
version = (data = data.version || null) && (data.major + '.' + data.minor + '.' + data.patch);
|
||||
}
|
||||
@@ -1002,6 +1002,6 @@
|
||||
}
|
||||
// in a browser or Rhino
|
||||
else {
|
||||
window.platform = parse();
|
||||
root.platform = parse();
|
||||
}
|
||||
}(this));
|
||||
|
||||
Reference in New Issue
Block a user