Cleanup createBound.

Former-commit-id: f16e6df18a036507edea4b64618ffb06f3823a78
This commit is contained in:
John-David Dalton
2013-07-21 15:27:10 -07:00
parent 65227f601e
commit fcbeb10159
8 changed files with 1530 additions and 1338 deletions

994
dist/lodash.compat.js vendored

File diff suppressed because it is too large Load Diff

View File

@@ -3,49 +3,49 @@
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
* Build: `lodash -o ./dist/lodash.compat.js`
*/
;!function(n){function t(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function r(n,r){var e=typeof r;if(n=n.k,"boolean"==e||r==d)return n[r];"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:x+r;return n=n[e]||(n[e]={}),"object"==e?n[u]&&-1<t(n[u],r)?0:-1:n[u]?0:-1}function e(n){var t=this.k,r=typeof n;if("boolean"==r||n==d)t[n]=y;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:x+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=y
}}function u(n){return n.charCodeAt(0)}function a(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function o(n){var t=-1,r=n.length,u=n[0],a=n[r-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=l(),a.b=n,a.k=u,a.push=e;++t<r;)a.push(n[t]);return a}function i(n){return"\\"+Z[n]}function f(){return _.pop()||[]}function l(){return j.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",leading:b,f:"",maxWait:0,"null":b,number:d,object:d,push:d,g:d,string:d,h:"",trailing:b,"true":b,undefined:b,i:b,j:b,n:d}
}function c(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function p(){}function s(n){n.length=0,_.length<E&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,j.length<E&&j.push(n)}function v(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function h(e){function _(n){return n&&typeof n=="object"&&!$r(n)&&pr.call(n,"__wrapped__")?n:new j(n)}function j(n){this.__wrapped__=n
}function E(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,a=[];++e<u;){var o=n[e];o&&typeof o=="object"&&($r(o)||lt(o))?sr.apply(a,t?o:E(o,t,r)):r||a.push(o)}return a}function Z(n,e,u){var a=-1,i=ot(),l=n?n.length:0,c=[],p=!e&&l>=O&&i===t,v=u||p?f():c;if(p){var h=o(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),c))}for(;++a<l;){var h=n[a],m=u?u(h,a,n):h;(e?!a||v[v.length-1]!==m:0>i(v,m))&&((u||p)&&v.push(m),c.push(h))}return p?(s(v.b),g(v)):u&&s(v),c}function nt(n,t,r,e){function u(){var e=arguments,l=o?this:t;return a||(n=t[i]),r.length&&(e=e.length?(e=Er.call(e),f?e.concat(r):r.concat(e)):r),this instanceof u?(l=ut(n.prototype),e=n.apply(l,e),ht(e)?e:l):n.apply(l,e)
}var a=vt(n),o=!r,i=t;if(o){var f=e;r=t}else if(!a){if(!e)throw new Zt;t=n}return u}function rt(){var n=l();n.g=T,n.b=n.c=n.f=n.h="",n.e="r",n.i=y,n.j=y;for(var t,r=0;t=arguments[r];r++)for(var e in t)n[e]=t[e];r=n.a,n.d=/^[^,]+/.exec(r)[0],t=Mt,r="return function("+r+"){",e="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(e+="var s=r.length;m=-1;if("+n.b+"){",Nr.unindexedChars&&(e+="if(q(r)){r=r.split('')}"),e+="while(++m<s){"+n.f+";}}else{"):Nr.nonEnumArgs&&(e+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),Nr.enumPrototypes&&(e+="var E=typeof r=='function';"),Nr.enumErrorProps&&(e+="var D=r===j||r instanceof Error;");
var u=[];if(Nr.enumPrototypes&&u.push('!(E&&m=="prototype")'),Nr.enumErrorProps&&u.push('!(D&&(m=="message"||m=="name"))'),n.i&&n.j)e+="var A=-1,B=z[typeof r]&&t(r),s=B?B.length:0;while(++A<s){m=B[A];",u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}";else if(e+="for(m in r){",n.i&&u.push("l.call(r, m)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}",Nr.nonEnumShadows){for(e+="if(r!==y){var h=r.constructor,p=r===(h&&h.prototype),e=r===H?G:r===j?i:J.call(r),v=w[e];",k=0;7>k;k++)e+="m='"+n.g[k]+"';if((!(p&&v[m])&&l.call(r,m))",n.i||(e+="||(!v[m]&&r[m]!==y[m])"),e+="){"+n.f+"}";
e+="}"}return(n.b||Nr.nonEnumArgs)&&(e+="}"),e+=n.c+";return C",t=t("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",r+e+"}"),g(n),t(J,tr,pr,w,lt,$r,yt,n.j&&Rr,_,rr,Y,Br,Q,er,mr)}function ut(n){return ht(n)?dr(n):{}}function at(n){return Tr[n]}function ot(){var n=(n=_.indexOf)===Nt?t:n;return n}function it(n){var t,r;return!n||mr.call(n)!=U||(t=n.constructor,vt(t)&&!(t instanceof t))||!Nr.argsClass&&lt(n)||!Nr.nodeClass&&c(n)?b:Nr.ownLast?(Kr(n,function(n,t,e){return r=pr.call(e,t),b}),r!==false):(Kr(n,function(n,t){r=t
}),r===m||pr.call(n,r))}function ft(n){return Wr[n]}function lt(n){return n&&typeof n=="object"?mr.call(n)==W:b}function ct(n,t,r,e,u,a){var o=n;if(typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),typeof r=="function"){if(r=typeof e=="undefined"?r:_.createCallback(r,e,1),o=r(o),typeof o!="undefined")return o;o=n}if(e=ht(o)){var i=mr.call(o);if(!X[i]||!Nr.nodeClass&&c(o))return o;var l=$r(o)}if(!e||!t)return e?l?v(o):Hr({},o):o;switch(e=Ir[i],i){case G:case H:return new e(+o);case M:case Q:return new e(o);
case V:return e(o.source,P.exec(o))}i=!u,u||(u=f()),a||(a=f());for(var p=u.length;p--;)if(u[p]==n)return a[p];return o=l?e(o.length):{},l&&(pr.call(n,"index")&&(o.index=n.index),pr.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(l?qr:Mr)(n,function(n,e){o[e]=ct(n,t,r,m,u,a)}),i&&(s(u),s(a)),o}function pt(n){var t=[];return Kr(n,function(n,r){vt(n)&&t.push(r)}),t.sort()}function st(n){for(var t=-1,r=Rr(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function gt(n,t,r,e,u,a){var o=r===w;
if(typeof r=="function"&&!o){r=_.createCallback(r,e,2);var i=r(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!Y[typeof n])&&(!t||!Y[typeof t]))return b;if(n==d||t==d)return n===t;var l=mr.call(n),p=mr.call(t);if(l==W&&(l=U),p==W&&(p=U),l!=p)return b;switch(l){case G:case H:return+n==+t;case M:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case V:case Q:return n==Yt(t)}if(p=l==L,!p){if(pr.call(n,"__wrapped__")||pr.call(t,"__wrapped__"))return gt(n.__wrapped__||n,t.__wrapped__||t,r,e,u,a);
if(l!=U||!Nr.nodeClass&&(c(n)||c(t)))return b;var l=!Nr.argsObject&&lt(n)?Qt:n.constructor,g=!Nr.argsObject&&lt(t)?Qt:t.constructor;if(l!=g&&(!vt(l)||!(l instanceof l&&vt(g)&&g instanceof g)))return b}for(g=!u,u||(u=f()),a||(a=f()),l=u.length;l--;)if(u[l]==n)return a[l]==t;var v=0,i=y;if(u.push(n),a.push(t),p){if(l=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(p=l,g=t[v],o)for(;p--&&!(i=gt(n[p],g,r,e,u,a)););else if(!(i=gt(n[v],g,r,e,u,a)))break;return i}return Kr(t,function(t,o,f){return pr.call(f,o)?(v++,i=pr.call(n,o)&&gt(n[o],t,r,e,u,a)):void 0
}),i&&!o&&Kr(n,function(n,t,r){return pr.call(r,t)?i=-1<--v:void 0}),g&&(s(u),s(a)),i}function vt(n){return typeof n=="function"}function ht(n){return!(!n||!Y[typeof n])}function mt(n){return typeof n=="number"||mr.call(n)==M}function yt(n){return typeof n=="string"||mr.call(n)==Q}function dt(n,t,r){var e=arguments,u=0,a=2;if(!ht(n))return n;if(r===w)var o=e[3],i=e[4],l=e[5];else{var c=y,i=f(),l=f();typeof r!="number"&&(a=e.length),3<a&&"function"==typeof e[a-2]?o=_.createCallback(e[--a-1],e[a--],2):2<a&&"function"==typeof e[a-1]&&(o=e[--a])
}for(;++u<a;)($r(e[u])?kt:Mr)(e[u],function(t,r){var e,u,a=t,f=n[r];if(t&&((u=$r(t))||Ur(t))){for(a=i.length;a--;)if(e=i[a]==t){f=l[a];break}if(!e){var c;o&&(a=o(f,t),c=typeof a!="undefined")&&(f=a),c||(f=u?$r(f)?f:[]:Ur(f)?f:{}),i.push(t),l.push(f),c||(f=dt(f,t,w,o,i,l))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);n[r]=f});return c&&(s(i),s(l)),n}function bt(n){for(var t=-1,r=Rr(n),e=r.length,u=Ht(e);++t<e;)u[t]=n[r[t]];return u}function _t(n,t,r){var e=-1,u=ot(),a=n?n.length:0,o=b;
return r=(0>r?wr(0,a+r):r)||0,a&&typeof a=="number"?o=-1<(yt(n)?n.indexOf(t,r):u(n,t,r)):qr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function jt(n,t,r){var e=y;if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else qr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function Ct(n,t,r){var e=[];if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else qr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function wt(n,t,r){if(t=_.createCallback(t,r),!$r(n)){var e;
return qr(n,function(n,r,u){return t(n,r,u)?(e=n,b):void 0}),e}r=-1;for(var u=n.length;++r<u;){var a=n[r];if(t(a,r,n))return a}}function kt(n,t,r){if(t&&typeof r=="undefined"&&$r(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==false;);}else qr(n,t,r);return n}function xt(n,t,r){var e=-1,u=n?n.length:0,a=Ht(typeof u=="number"?u:0);if(t=_.createCallback(t,r),$r(n))for(;++e<u;)a[e]=t(n[e],e,n);else qr(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function Ot(n,t,r){var e=-1/0,a=e;if(!t&&$r(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];
i>a&&(a=i)}}else t=!t&&yt(n)?u:_.createCallback(t,r),qr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function Et(n,t,r,e){var u=3>arguments.length;if(t=_.createCallback(t,e,4),$r(n)){var a=-1,o=n.length;for(u&&(r=n[++a]);++a<o;)r=t(r,n[a],a,n)}else qr(n,function(n,e,a){r=u?(u=b,n):t(r,n,e,a)});return r}function St(n,t,r,e){var u=n,a=n?n.length:0,o=3>arguments.length;if(typeof a!="number")var i=Rr(n),a=i.length;else Nr.unindexedChars&&yt(n)&&(u=n.split(""));return t=_.createCallback(t,e,4),kt(n,function(n,e,f){e=i?i[--a]:--a,r=o?(o=b,u[e]):t(r,u[e],e,f)
}),r}function At(n,t,r){var e;if(t=_.createCallback(t,r),$r(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else qr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function It(n){var e=-1,u=ot(),a=n?n.length:0,i=E(arguments,y,y,1),f=[],l=a>=O&&u===t;if(l){var c=o(i);c?(u=r,i=c):l=b}for(;++e<a;)c=n[e],0>u(i,c)&&f.push(c);return l&&g(i),f}function Bt(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=-1;for(t=_.createCallback(t,r);++a<u&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[0];
return v(n,0,kr(wr(0,e),u))}}function Nt(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?wr(0,u+e):e||0}else if(e)return e=zt(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function Pt(n,t,r){if(typeof t!="number"&&t!=d){var e=0,u=-1,a=n?n.length:0;for(t=_.createCallback(t,r);++u<a&&t(n[u],u,n);)e++}else e=t==d||r?1:wr(0,t);return v(n,e)}function zt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?_.createCallback(r,e,1):Wt,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function Ft(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?m:t,t=b),r!=d&&(r=_.createCallback(r,e)),Z(n,t,r)
}function $t(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?Ot(Vr(n,"length")):0,e=Ht(0>r?0:r);++t<r;)e[t]=Vr(n,t);return e}function Dt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var a=n[r];t?u[a]=t[r]:u[a[0]]=a[1]}return u}function Rt(n,t){return Nr.fastBind||yr&&2<arguments.length?yr.call.apply(yr,arguments):nt(n,t,Er.call(arguments,2))}function qt(n,t,r){function e(){ir(s),ir(g),l=0,s=g=d}function u(){var t=v&&(!h||1<l);e(),t&&(p!==false&&(c=new Kt),i=n.apply(f,o))}function a(){e(),(v||p!==t)&&(c=new Kt,i=n.apply(f,o))
}var o,i,f,l=0,c=0,p=b,s=d,g=d,v=y;if(t=wr(0,t||0),r===y)var h=y,v=b;else ht(r)&&(h=r.leading,p="maxWait"in r&&wr(t,r.maxWait||0),v="trailing"in r?r.trailing:v);return function(){if(o=arguments,f=this,l++,ir(g),p===false)h&&2>l&&(i=n.apply(f,o));else{var r=new Kt;!s&&!h&&(c=r);var e=p-(r-c);0<e?s||(s=hr(a,e)):(ir(s),s=d,c=r,i=n.apply(f,o))}return t!==p&&(g=hr(u,t)),i}}function Tt(n){var t=Er.call(arguments,1);return hr(function(){n.apply(m,t)},1)}function Wt(n){return n}function Lt(n){kt(pt(n),function(t){var r=_[t]=n[t];
_.prototype[t]=function(){var n=this.__wrapped__,t=[n];return sr.apply(t,arguments),t=r.apply(_,t),n&&typeof n=="object"&&n===t?this:new j(t)}})}function Gt(){return this.__wrapped__}e=e?et.defaults(n.Object(),e,et.pick(n,q)):n;var Ht=e.Array,Jt=e.Boolean,Kt=e.Date,Mt=e.Function,Ut=e.Math,Vt=e.Number,Qt=e.Object,Xt=e.RegExp,Yt=e.String,Zt=e.TypeError,nr=[],tr=e.Error.prototype,rr=Qt.prototype,er=Yt.prototype,ur=e._,ar=Xt("^"+Yt(rr.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),or=Ut.ceil,ir=e.clearTimeout,fr=Ut.floor,lr=Mt.prototype.toString,cr=ar.test(cr=Qt.getPrototypeOf)&&cr,pr=rr.hasOwnProperty,sr=nr.push,gr=rr.propertyIsEnumerable,vr=e.setImmediate,hr=e.setTimeout,mr=rr.toString,yr=ar.test(yr=mr.bind)&&yr,dr=ar.test(dr=Qt.create)&&dr,br=ar.test(br=Ht.isArray)&&br,_r=e.isFinite,jr=e.isNaN,Cr=ar.test(Cr=Qt.keys)&&Cr,wr=Ut.max,kr=Ut.min,xr=e.parseInt,Or=Ut.random,Er=nr.slice,Sr=ar.test(e.attachEvent),Ar=yr&&!/\n|true/.test(yr+Sr),Ir={};
Ir[L]=Ht,Ir[G]=Jt,Ir[H]=Kt,Ir[K]=Mt,Ir[U]=Qt,Ir[M]=Vt,Ir[V]=Xt,Ir[Q]=Yt;var Br={};Br[L]=Br[H]=Br[M]={constructor:y,toLocaleString:y,toString:y,valueOf:y},Br[G]=Br[Q]={constructor:y,toString:y,valueOf:y},Br[J]=Br[K]=Br[V]={constructor:y,toString:y},Br[U]={constructor:y},function(){for(var n=T.length;n--;){var t,r=T[n];for(t in Br)pr.call(Br,t)&&!pr.call(Br[t],r)&&(Br[t][r]=b)}}(),j.prototype=_.prototype;var Nr=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1};
for(var e in new n)r.push(e);for(e in arguments);Nr.argsObject=arguments.constructor==Qt&&!(arguments instanceof Ht),Nr.argsClass=mr.call(arguments)==W,Nr.enumErrorProps=gr.call(tr,"message")||gr.call(tr,"name"),Nr.enumPrototypes=gr.call(n,"prototype"),Nr.fastBind=yr&&!Ar,Nr.ownLast="x"!=r[0],Nr.nonEnumArgs=0!=e,Nr.nonEnumShadows=!/valueOf/.test(r),Nr.spliceObjects=(nr.splice.call(t,0,1),!t[0]),Nr.unindexedChars="xx"!="x"[0]+Qt("x")[0];try{Nr.nodeClass=!(mr.call(document)==U&&!({toString:0}+""))}catch(u){Nr.nodeClass=y
}}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:z,variable:"",imports:{_:_}};var Pr={a:"x,F,k",h:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){r=a[b];if(r&&z[typeof r]){",f:"if(typeof C[m]=='undefined')C[m]=r[m]",c:"}}"},zr={a:"f,d,I",h:"d=d&&typeof I=='undefined'?d:u.createCallback(d,I)",b:"typeof s=='number'",f:"if(d(r[m],m,f)===false)return C"},Fr={h:"if(!z[typeof r])return C;"+zr.h,b:b};dr||(ut=function(n){if(ht(n)){p.prototype=n;
var t=new p;p.prototype=d}return t||{}}),Nr.argsClass||(lt=function(n){return n&&typeof n=="object"?pr.call(n,"callee"):b});var $r=br||function(n){return n&&typeof n=="object"?mr.call(n)==L:b},Dr=rt({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)",j:b}),Rr=Cr?function(n){return ht(n)?Nr.enumPrototypes&&typeof n=="function"||Nr.nonEnumArgs&&n.length&&lt(n)?Dr(n):Cr(n):[]}:Dr,qr=rt(zr),Tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wr=st(Tr),Lr=Xt("("+Rr(Wr).join("|")+")","g"),Gr=Xt("["+Rr(Tr).join("")+"]","g"),Hr=rt(Pr,{h:Pr.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Jr=rt(Pr),Kr=rt(zr,Fr,{i:b}),Mr=rt(zr,Fr);
vt(/x/)&&(vt=function(n){return typeof n=="function"&&mr.call(n)==K});var Ur=cr?function(n){if(!n||mr.call(n)!=U||!Nr.argsClass&&lt(n))return b;var t=n.valueOf,r=typeof t=="function"&&(r=cr(t))&&cr(r);return r?n==r||cr(n)==r:it(n)}:it,Vr=xt;Ar&&tt&&typeof vr=="function"&&(Tt=Rt(vr,e));var Qr=8==xr(S+"08")?xr:function(n,t){return xr(yt(n)?n.replace(F,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Hr,_.at=function(n){var t=-1,r=E(arguments,y,b,1),e=r.length,u=Ht(e);
for(Nr.unindexedChars&&yt(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},_.bind=Rt,_.bindAll=function(n){for(var t=1<arguments.length?E(arguments,y,b,1):pt(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Rt(n[u],n)}return n},_.bindKey=function(n,t){return nt(n,t,Er.call(arguments,2),w)},_.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},_.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]
}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r),kt(n,function(n,r,u){r=Yt(t(n,r,u)),pr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Wt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Rr(n);return function(t){for(var r=u.length,e=b;r--&&(e=gt(t[u[r]],n[u[r]],w)););return e}}return typeof t=="undefined"||D&&!D.test(lr.call(n))?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,a){return n.call(t,r,e,u,a)
}:function(r,e,u){return n.call(t,r,e,u)}},_.debounce=qt,_.defaults=Jr,_.defer=Tt,_.delay=function(n,t){var r=Er.call(arguments,2);return hr(function(){n.apply(m,r)},t)},_.difference=It,_.filter=Ct,_.flatten=function(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?m:t,t=b),r!=d&&(n=xt(n,r,e)),E(n,t)},_.forEach=kt,_.forIn=Kr,_.forOwn=Mr,_.functions=pt,_.groupBy=function(n,t,r){var e={};return t=_.createCallback(t,r),kt(n,function(n,r,u){r=Yt(t(n,r,u)),(pr.call(e,r)?e[r]:e[r]=[]).push(n)
}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else e=t==d||r?1:t||e;return v(n,0,kr(wr(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,a=-1,i=f(),l=-1,c=ot(),p=n?n.length:0,v=[],h=f();++a<u;){var m=e[a];i[a]=c===t&&(m?m.length:0)>=O&&o(a?e[a]:h)}n:for(;++l<p;){var y=i[0],m=n[l];if(0>(y?r(y,m):c(h,m))){for(a=u,(y||h).push(m);--a;)if(y=i[a],0>(y?r(y,m):c(e[a],m)))continue n;
v.push(m)}}for(;u--;)(y=i[u])&&g(y);return s(i),s(h),v},_.invert=st,_.invoke=function(n,t){var r=Er.call(arguments,2),e=-1,u=typeof t=="function",a=n?n.length:0,o=Ht(typeof a=="number"?a:0);return kt(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},_.keys=Rr,_.map=xt,_.max=Ot,_.memoize=function(n,t){function r(){var e=r.cache,u=x+(t?t.apply(this,arguments):arguments[0]);return pr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}return r.cache={},r},_.merge=dt,_.min=function(n,t,r){var e=1/0,a=e;if(!t&&$r(n)){r=-1;
for(var o=n.length;++r<o;){var i=n[r];i<a&&(a=i)}}else t=!t&&yt(n)?u:_.createCallback(t,r),qr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},_.omit=function(n,t,r){var e=ot(),u=typeof t=="function",a={};if(u)t=_.createCallback(t,r);else var o=E(arguments,y,b,1);return Kr(n,function(n,r,i){(u?!t(n,r,i):0>e(o,r))&&(a[r]=n)}),a},_.once=function(n){var t,r;return function(){return t?r:(t=y,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Rr(n),e=r.length,u=Ht(e);++t<e;){var a=r[t];
u[t]=[a,n[a]]}return u},_.partial=function(n){return nt(n,Er.call(arguments,1))},_.partialRight=function(n){return nt(n,Er.call(arguments,1),d,w)},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=E(arguments,y,b,1),o=ht(n)?a.length:0;++u<o;){var i=a[u];i in n&&(e[i]=n[i])}else t=_.createCallback(t,r),Kr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},_.pluck=Vr,_.range=function(n,t,r){n=+n||0,r=+r||1,t==d&&(t=n,n=0);var e=-1;t=wr(0,or((t-n)/r));for(var u=Ht(t);++e<t;)u[e]=n,n+=r;
return u},_.reject=function(n,t,r){return t=_.createCallback(t,r),Ct(n,function(n,r,e){return!t(n,r,e)})},_.rest=Pt,_.shuffle=function(n){var t=-1,r=n?n.length:0,e=Ht(typeof r=="number"?r:0);return kt(n,function(n){var r=fr(Or()*(++t+1));e[t]=e[r],e[r]=n}),e},_.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Ht(typeof u=="number"?u:0);for(t=_.createCallback(t,r),kt(n,function(n,r,u){var a=o[++e]=l();a.l=t(n,r,u),a.m=e,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n
},_.throttle=function(n,t,r){var e=y,u=y;return r===false?e=b:ht(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=l(),r.leading=e,r.maxWait=t,r.trailing=u,n=qt(n,t,r),g(r),n},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Ht(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?Nr.unindexedChars&&yt(n)?n.split(""):v(n):bt(n)},_.transform=function(n,t,r,e){var u=$r(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=ut(e&&e.prototype))),(u?qr:Mr)(n,function(n,e,u){return t(r,n,e,u)
}),r},_.union=function(){return Z(E(arguments,y,y))},_.uniq=Ft,_.values=bt,_.where=Ct,_.without=function(n){return It(n,Er.call(arguments,1))},_.wrap=function(n,t){return function(){var r=[n];return sr.apply(r,arguments),t.apply(this,r)}},_.zip=$t,_.zipObject=Dt,_.collect=xt,_.drop=Pt,_.each=kt,_.extend=Hr,_.methods=pt,_.object=Dt,_.select=Ct,_.tail=Pt,_.unique=Ft,_.unzip=$t,Lt(_),_.chain=_,_.prototype.chain=function(){return this},_.clone=ct,_.cloneDeep=function(n,t,r){return ct(n,y,t,r)},_.contains=_t,_.escape=function(n){return n==d?"":Yt(n).replace(Gr,at)
},_.every=jt,_.find=wt,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r),Mr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0}),e},_.has=function(n,t){return n?pr.call(n,t):b},_.identity=Wt,_.indexOf=Nt,_.isArguments=lt,_.isArray=$r,_.isBoolean=function(n){return n===y||n===false||mr.call(n)==G},_.isDate=function(n){return n?typeof n=="object"&&mr.call(n)==H:b},_.isElement=function(n){return n?1===n.nodeType:b
},_.isEmpty=function(n){var t=y;if(!n)return t;var r=mr.call(n),e=n.length;return r==L||r==Q||(Nr.argsClass?r==W:lt(n))||r==U&&typeof e=="number"&&vt(n.splice)?!e:(Mr(n,function(){return t=b}),t)},_.isEqual=gt,_.isFinite=function(n){return _r(n)&&!jr(parseFloat(n))},_.isFunction=vt,_.isNaN=function(n){return mt(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=mt,_.isObject=ht,_.isPlainObject=Ur,_.isRegExp=function(n){return n&&Y[typeof n]?mr.call(n)==V:b},_.isString=yt,_.isUndefined=function(n){return typeof n=="undefined"
},_.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?wr(0,e+r):kr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},_.mixin=Lt,_.noConflict=function(){return e._=ur,this},_.parseInt=Qr,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var r=Or();return n%1||t%1?n+kr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+fr(r*(t-n+1))},_.reduce=Et,_.reduceRight=St,_.result=function(n,t){var r=n?n[t]:m;return vt(r)?n[t]():r},_.runInContext=h,_.size=function(n){var t=n?n.length:0;
return typeof t=="number"?t:Rr(n).length},_.some=At,_.sortedIndex=zt,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Jr({},r,e);var u,a=Jr({},r.imports,e.imports),e=Rr(a),a=bt(a),o=0,f=r.interpolate||$,l="__p+='",f=Xt((r.escape||$).source+"|"+f.source+"|"+(f===z?N:$).source+"|"+(r.evaluate||$).source+"|$","g");n.replace(f,function(t,r,e,a,f,c){return e||(e=a),l+=n.slice(o,c).replace(R,i),r&&(l+="'+__e("+r+")+'"),f&&(u=y,l+="';"+f+";__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),o=c+t.length,t
}),l+="';\n",f=r=r.variable,f||(r="obj",l="with("+r+"){"+l+"}"),l=(u?l.replace(A,""):l).replace(I,"$1").replace(B,"$1;"),l="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=Mt(e,"return "+l).apply(m,a)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},_.unescape=function(n){return n==d?"":Yt(n).replace(Lr,ft)},_.uniqueId=function(n){var t=++C;return Yt(n==d?"":n)+t
},_.all=jt,_.any=At,_.detect=wt,_.findWhere=wt,_.foldl=Et,_.foldr=St,_.include=_t,_.inject=Et,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return sr.apply(t,arguments),n.apply(_,t)})}),_.first=Bt,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[u-1];return v(n,wr(0,u-e))}},_.take=Bt,_.head=Bt,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);
return t==d||r&&typeof t!="function"?e:new j(e)})}),_.VERSION="1.3.1",_.prototype.toString=function(){return Yt(this.__wrapped__)},_.prototype.value=Gt,_.prototype.valueOf=Gt,qr(["join","pop","shift"],function(n){var t=nr[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),qr(["push","reverse","sort","unshift"],function(n){var t=nr[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),qr(["concat","slice","splice"],function(n){var t=nr[n];_.prototype[n]=function(){return new j(t.apply(this.__wrapped__,arguments))
}}),Nr.spliceObjects||qr(["pop","shift","splice"],function(n){var t=nr[n],r="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new j(e):e}}),_}var m,y=!0,d=null,b=!1,_=[],j=[],C=0,w={},x=+new Date+"",O=75,E=40,S=" \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",A=/\b__p\+='';/g,I=/\b(__p\+=)''\+/g,B=/(__e\(.*?\)|\b__t\))\+'';/g,N=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,P=/\w*$/,z=/<%=([\s\S]+?)%>/g,F=RegExp("^["+S+"]*0+(?=.$)"),$=/($^)/,D=(D=/\bthis\b/)&&D.test(h)&&D,R=/['\n\r\t\u2028\u2029\\]/g,q="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),T="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),W="[object Arguments]",L="[object Array]",G="[object Boolean]",H="[object Date]",J="[object Error]",K="[object Function]",M="[object Number]",U="[object Object]",V="[object RegExp]",Q="[object String]",X={};
X[K]=b,X[W]=X[L]=X[G]=X[H]=X[M]=X[U]=X[V]=X[Q]=y;var Y={"boolean":b,"function":y,object:y,number:b,string:b,undefined:b},Z={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},nt=Y[typeof exports]&&exports,tt=Y[typeof module]&&module&&module.exports==nt&&module,rt=Y[typeof global]&&global;!rt||rt.global!==rt&&rt.window!==rt||(n=rt);var et=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=et, define(function(){return et})):nt&&!nt.nodeType?tt?(tt.exports=et)._=et:nt._=et:n._=et
;!function(n){function t(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function r(n,r){var e=typeof r;if(n=n.k,"boolean"==e||r==d)return n[r];"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:x+r;return n=n[e]||(n[e]={}),"object"==e?n[u]&&-1<t(n[u],r)?0:-1:n[u]?0:-1}function e(n){var t=this.k,r=typeof n;if("boolean"==r||n==d)t[n]=m;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:x+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=m
}}function u(n){return n.charCodeAt(0)}function a(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function o(n){var t=-1,r=n.length,u=n[0],a=n[r-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=f(),a.b=n,a.k=u,a.push=e;++t<r;)a.push(n[t]);return a}function i(n){return"\\"+Z[n]}function l(){return _.pop()||[]}function f(){return j.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",leading:b,f:"",maxWait:0,"null":b,number:d,object:d,push:d,g:d,string:d,h:"",trailing:b,"true":b,undefined:b,i:b,j:b,n:d}
}function c(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function p(){}function s(n){n.length=0,_.length<E&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,j.length<E&&j.push(n)}function v(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function h(e){function _(n){return n&&typeof n=="object"&&!Tr(n)&&hr.call(n,"__wrapped__")?n:new j(n)}function j(n){this.__wrapped__=n
}function E(n,t,r,e,u){var a=n;if(r){if(a=r(a),typeof a!="undefined")return a;a=n}var o=dt(a);if(o){var i=_r.call(a);if(!X[i]||!Fr.nodeClass&&c(a))return a;var f=Tr(a)}if(!o||!t)return o?f?v(a):Ur({},a):a;switch(o=Dr[i],i){case G:case H:return new o(+a);case M:case Q:return new o(a);case V:return o(a.source,N.exec(a))}i=!e,e||(e=l()),u||(u=l());for(var p=e.length;p--;)if(e[p]==n)return u[p];return a=f?o(a.length):{},f&&(hr.call(n,"index")&&(a.index=n.index),hr.call(n,"input")&&(a.input=n.input)),e.push(n),u.push(a),(f?Gr:Xr)(n,function(n,o){a[o]=E(n,t,r,e,u)
}),i&&(s(e),s(u)),a}function Z(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,a=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Tr(o)||vt(o))?yr.apply(a,t?o:Z(o,t,r)):r||a.push(o)}return a}function nt(n,t,r,e,u,a){if(r){var o=r(n,t);if(typeof o!="undefined")return!!o}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!Y[typeof n])&&(!t||!Y[typeof t]))return b;if(n==d||t==d)return n===t;var i=_r.call(n),f=_r.call(t);if(i==W&&(i=U),f==W&&(f=U),i!=f)return b;switch(i){case G:case H:return+n==+t;case M:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case V:case Q:return n==nr(t)}if(f=i==L,!f){if(hr.call(n,"__wrapped__")||hr.call(t,"__wrapped__"))return nt(n.__wrapped__||n,t.__wrapped__||t,r,e,u,a);if(i!=U||!Fr.nodeClass&&(c(n)||c(t)))return b;var i=!Fr.argsObject&&vt(n)?Yt:n.constructor,p=!Fr.argsObject&&vt(t)?Yt:t.constructor;if(i!=p&&(!mt(i)||!(i instanceof i&&mt(p)&&p instanceof p)))return b}for(p=!u,u||(u=l()),a||(a=l()),i=u.length;i--;)if(u[i]==n)return a[i]==t;var g=0,o=m;if(u.push(n),a.push(t),f){if(i=n.length,g=t.length,o=g==n.length,!o&&!e)return o;
for(;g--;)if(f=i,p=t[g],e)for(;f--&&!(o=nt(n[f],p,r,e,u,a)););else if(!(o=nt(n[g],p,r,e,u,a)))break;return o}return Qr(t,function(t,i,l){return hr.call(l,i)?(g++,o=hr.call(n,i)&&nt(n[i],t,r,e,u,a)):void 0}),o&&!e&&Qr(n,function(n,t,r){return hr.call(r,t)?o=-1<--g:void 0}),p&&(s(u),s(a)),o}function rt(n,t,r,e,u){(Tr(t)?Ot:Xr)(t,function(t,a){var o,i,l=t,f=n[a];if(t&&((i=Tr(t))||Yr(t))){for(l=e.length;l--;)if(o=e[l]==t){f=u[l];break}if(!o){var c;r&&(l=r(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?Tr(f)?f:[]:Yr(f)?f:{}),e.push(t),u.push(f),c||rt(f,t,r,e,u)
}}else r&&(l=r(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[a]=f})}function ut(n,e,u){var a=-1,i=ft(),f=n?n.length:0,c=[],p=!e&&f>=O&&i===t,v=u||p?l():c;if(p){var h=o(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),c))}for(;++a<f;){var h=n[a],y=u?u(h,a,n):h;(e?!a||v[v.length-1]!==y:0>i(v,y))&&((u||p)&&v.push(y),c.push(h))}return p?(s(v.b),g(v)):u&&s(v),c}function at(n,t,r,e,u,a){var o=mt(n);if(!o&&(u||!a))throw new tr;var i=n.__bindData__,l=t;if(i)return yr.apply(i[2],r),yr.apply(i[3],e),!u&&i[4]&&(i[1]=t,i[4]=b),at.apply(d,i);
!u&&a&&(t=n);var f=u||a||!(Fr.fastBind||jr&&r.length)?function(){var a=arguments,i=u?this:t;return o||(n=t[l]),(r.length||e.length)&&(a=cr.apply(r,a),yr.apply(a,e)),this instanceof f?(i=it(n.prototype),a=n.apply(i,a),dt(a)?a:i):n.apply(i,a)}:jr.call.apply(jr,cr.call(rr,n,t,r));return pt(f,Br.call(arguments)),f}function ot(){var n=f();n.g=T,n.b=n.c=n.f=n.h="",n.e="r",n.i=m,n.j=m;for(var t,r=0;t=arguments[r];r++)for(var e in t)n[e]=t[e];r=n.a,n.d=/^[^,]+/.exec(r)[0],t=Vt,r="return function("+r+"){",e="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(e+="var s=r.length;m=-1;if("+n.b+"){",Fr.unindexedChars&&(e+="if(q(r)){r=r.split('')}"),e+="while(++m<s){"+n.f+";}}else{"):Fr.nonEnumArgs&&(e+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),Fr.enumPrototypes&&(e+="var E=typeof r=='function';"),Fr.enumErrorProps&&(e+="var D=r===j||r instanceof Error;");
var u=[];if(Fr.enumPrototypes&&u.push('!(E&&m=="prototype")'),Fr.enumErrorProps&&u.push('!(D&&(m=="message"||m=="name"))'),n.i&&n.j)e+="var A=-1,B=z[typeof r]&&t(r),s=B?B.length:0;while(++A<s){m=B[A];",u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}";else if(e+="for(m in r){",n.i&&u.push("l.call(r, m)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}",Fr.nonEnumShadows){for(e+="if(r!==y){var h=r.constructor,p=r===(h&&h.prototype),e=r===H?G:r===j?i:J.call(r),v=w[e];",k=0;7>k;k++)e+="m='"+n.g[k]+"';if((!(p&&v[m])&&l.call(r,m))",n.i||(e+="||(!v[m]&&r[m]!==y[m])"),e+="){"+n.f+"}";
e+="}"}return(n.b||Fr.nonEnumArgs)&&(e+="}"),e+=n.c+";return C",t=t("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",r+e+"}"),g(n),t(J,er,hr,w,vt,Tr,_t,n.j&&Lr,_,ur,Y,zr,Q,ar,_r)}function it(n){return dt(n)?Cr(n):{}}function lt(n){return Hr[n]}function ft(){var n=(n=_.indexOf)===Dt?t:n;return n}function ct(n){var t=n.__bindData__;return typeof t!="undefined"?t===m||t&&t[4]:(t=!$||$.test(gr.call(n)),pt(n,t),t)}function pt(n,t){pr(n,"__bindData__",{configurable:b,enumerable:b,value:t,writable:b})}function st(n){var t,r;
return!n||_r.call(n)!=U||(t=n.constructor,mt(t)&&!(t instanceof t))||!Fr.argsClass&&vt(n)||!Fr.nodeClass&&c(n)?b:Fr.ownLast?(Qr(n,function(n,t,e){return r=hr.call(e,t),b}),r!==false):(Qr(n,function(n,t){r=t}),r===y||hr.call(n,r))}function gt(n){return Jr[n]}function vt(n){return n&&typeof n=="object"?_r.call(n)==W:b}function ht(n){var t=[];return Qr(n,function(n,r){mt(n)&&t.push(r)}),t.sort()}function yt(n){for(var t=-1,r=Lr(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function mt(n){return typeof n=="function"
}function dt(n){return!(!n||!Y[typeof n])}function bt(n){return typeof n=="number"||_r.call(n)==M}function _t(n){return typeof n=="string"||_r.call(n)==Q}function jt(n){for(var t=-1,r=Lr(n),e=r.length,u=Kt(e);++t<e;)u[t]=n[r[t]];return u}function Ct(n,t,r){var e=-1,u=ft(),a=n?n.length:0,o=b;return r=(0>r?Er(0,a+r):r)||0,a&&typeof a=="number"?o=-1<(_t(n)?n.indexOf(t,r):u(n,t,r)):Gr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function wt(n,t,r){var e=m;if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else Gr(n,function(n,r,u){return e=!!t(n,r,u)
});return e}function kt(n,t,r){var e=[];if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a)}}else Gr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function xt(n,t,r){if(t=_.createCallback(t,r),!Tr(n)){var e;return Gr(n,function(n,r,u){return t(n,r,u)?(e=n,b):void 0}),e}r=-1;for(var u=n.length;++r<u;){var a=n[r];if(t(a,r,n))return a}}function Ot(n,t,r){if(t&&typeof r=="undefined"&&Tr(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==false;);}else Gr(n,t,r);
return n}function Et(n,t,r){var e=-1,u=n?n.length:0,a=Kt(typeof u=="number"?u:0);if(t=_.createCallback(t,r),Tr(n))for(;++e<u;)a[e]=t(n[e],e,n);else Gr(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function St(n,t,r){var e=-1/0,a=e;if(!t&&Tr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i>a&&(a=i)}}else t=!t&&_t(n)?u:_.createCallback(t,r),Gr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function At(n,t,r,e){var u=3>arguments.length;if(t=_.createCallback(t,e,4),Tr(n)){var a=-1,o=n.length;for(u&&(r=n[++a]);++a<o;)r=t(r,n[a],a,n)
}else Gr(n,function(n,e,a){r=u?(u=b,n):t(r,n,e,a)});return r}function It(n,t,r,e){var u=n,a=n?n.length:0,o=3>arguments.length;if(typeof a!="number")var i=Lr(n),a=i.length;else Fr.unindexedChars&&_t(n)&&(u=n.split(""));return t=_.createCallback(t,e,4),Ot(n,function(n,e,l){e=i?i[--a]:--a,r=o?(o=b,u[e]):t(r,u[e],e,l)}),r}function Bt(n,t,r){var e;if(t=_.createCallback(t,r),Tr(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else Gr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function Pt(n){var e=-1,u=ft(),a=n?n.length:0,i=Z(arguments,m,m,1),l=[],f=a>=O&&u===t;
if(f){var c=o(i);c?(u=r,i=c):f=b}for(;++e<a;)c=n[e],0>u(i,c)&&l.push(c);return f&&g(i),l}function Nt(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=-1;for(t=_.createCallback(t,r);++a<u&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[0];return v(n,0,Sr(Er(0,e),u))}}function Dt(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?Er(0,u+e):e||0}else if(e)return e=Ft(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function zt(n,t,r){if(typeof t!="number"&&t!=d){var e=0,u=-1,a=n?n.length:0;
for(t=_.createCallback(t,r);++u<a&&t(n[u],u,n);)e++}else e=t==d||r?1:Er(0,t);return v(n,e)}function Ft(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?_.createCallback(r,e,1):Gt,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function $t(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?y:t,t=b),r!=d&&(r=_.createCallback(r,e)),ut(n,t,r)}function Rt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?St(Zr(n,"length")):0,e=Kt(0>r?0:r);++t<r;)e[t]=Zr(n,t);return e}function qt(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var a=n[r];
t?u[a]=t[r]:a&&(u[a[0]]=a[1])}return u}function Tt(n,t){return at(n,t,Br.call(arguments,2),[])}function Wt(n,t,r){function e(){fr(s),fr(g),f=0,s=g=d}function u(){var t=v&&(!h||1<f);e(),t&&(p!==false&&(c=new Ut),i=n.apply(l,o))}function a(){e(),(v||p!==t)&&(c=new Ut,i=n.apply(l,o))}var o,i,l,f=0,c=0,p=b,s=d,g=d,v=m;if(t=Er(0,t||0),r===m)var h=m,v=b;else dt(r)&&(h=r.leading,p="maxWait"in r&&Er(t,r.maxWait||0),v="trailing"in r?r.trailing:v);return function(){if(o=arguments,l=this,f++,fr(g),p===false)h&&2>f&&(i=n.apply(l,o));
else{var r=new Ut;!s&&!h&&(c=r);var e=p-(r-c);0<e?s||(s=br(a,e)):(fr(s),s=d,c=r,i=n.apply(l,o))}return t!==p&&(g=br(u,t)),i}}function Lt(n){var t=Br.call(arguments,1);return br(function(){n.apply(y,t)},1)}function Gt(n){return n}function Ht(n,t){t||(t=n,n=_);var r=mt(n);Ot(ht(t),function(e){var u=n[e]=t[e];r&&(n.prototype[e]=function(){var t=this.__wrapped__,r=[t];return yr.apply(r,arguments),r=u.apply(n,r),t&&typeof t=="object"&&t===r?this:new j(r)})})}function Jt(){return this.__wrapped__}e=e?et.defaults(n.Object(),e,et.pick(n,q)):n;
var Kt=e.Array,Mt=e.Boolean,Ut=e.Date,Vt=e.Function,Qt=e.Math,Xt=e.Number,Yt=e.Object,Zt=e.RegExp,nr=e.String,tr=e.TypeError,rr=[],er=e.Error.prototype,ur=Yt.prototype,ar=nr.prototype,or=e._,ir=Zt("^"+nr(ur.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),lr=Qt.ceil,fr=e.clearTimeout,cr=rr.concat,pr=ir.test(pr=Yt.defineProperty)&&pr,sr=Qt.floor,gr=Vt.prototype.toString,vr=ir.test(vr=Yt.getPrototypeOf)&&vr,hr=ur.hasOwnProperty,yr=rr.push,mr=ur.propertyIsEnumerable,dr=e.setImmediate,br=e.setTimeout,_r=ur.toString,jr=ir.test(jr=_r.bind)&&jr,Cr=ir.test(Cr=Yt.create)&&Cr,wr=ir.test(wr=Kt.isArray)&&wr,kr=e.isFinite,xr=e.isNaN,Or=ir.test(Or=Yt.keys)&&Or,Er=Qt.max,Sr=Qt.min,Ar=e.parseInt,Ir=Qt.random,Br=rr.slice,Pr=ir.test(e.attachEvent),Nr=jr&&!/\n|true/.test(jr+Pr),Dr={};
Dr[L]=Kt,Dr[G]=Mt,Dr[H]=Ut,Dr[K]=Vt,Dr[U]=Yt,Dr[M]=Xt,Dr[V]=Zt,Dr[Q]=nr;var zr={};zr[L]=zr[H]=zr[M]={constructor:m,toLocaleString:m,toString:m,valueOf:m},zr[G]=zr[Q]={constructor:m,toString:m,valueOf:m},zr[J]=zr[K]=zr[V]={constructor:m,toString:m},zr[U]={constructor:m},function(){for(var n=T.length;n--;){var t,r=T[n];for(t in zr)hr.call(zr,t)&&!hr.call(zr[t],r)&&(zr[t][r]=b)}}(),j.prototype=_.prototype;var Fr=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1};
for(var e in new n)r.push(e);for(e in arguments);Fr.argsObject=arguments.constructor==Yt&&!(arguments instanceof Kt),Fr.argsClass=_r.call(arguments)==W,Fr.enumErrorProps=mr.call(er,"message")||mr.call(er,"name"),Fr.enumPrototypes=mr.call(n,"prototype"),Fr.fastBind=jr&&!Nr,Fr.ownLast="x"!=r[0],Fr.nonEnumArgs=0!=e,Fr.nonEnumShadows=!/valueOf/.test(r),Fr.spliceObjects=(rr.splice.call(t,0,1),!t[0]),Fr.unindexedChars="xx"!="x"[0]+Yt("x")[0];try{Fr.nodeClass=!(_r.call(document)==U&&!({toString:0}+""))}catch(u){Fr.nodeClass=m
}}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:D,variable:"",imports:{_:_}};var $r={a:"x,F,k",h:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){r=a[b];if(r&&z[typeof r]){",f:"if(typeof C[m]=='undefined')C[m]=r[m]",c:"}}"},Rr={a:"f,d,I",h:"d=d&&typeof I=='undefined'?d:u.createCallback(d,I)",b:"typeof s=='number'",f:"if(d(r[m],m,f)===false)return C"},qr={h:"if(!z[typeof r])return C;"+Rr.h,b:b};Cr||(it=function(n){if(dt(n)){p.prototype=n;
var t=new p;p.prototype=d}return t||{}}),Fr.argsClass||(vt=function(n){return n&&typeof n=="object"?hr.call(n,"callee"):b});var Tr=wr||function(n){return n&&typeof n=="object"?_r.call(n)==L:b},Wr=ot({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)",j:b}),Lr=Or?function(n){return dt(n)?Fr.enumPrototypes&&typeof n=="function"||Fr.nonEnumArgs&&n.length&&vt(n)?Wr(n):Or(n):[]}:Wr,Gr=ot(Rr),Hr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jr=yt(Hr),Kr=Zt("("+Lr(Jr).join("|")+")","g"),Mr=Zt("["+Lr(Hr).join("")+"]","g"),Ur=ot($r,{h:$r.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Vr=ot($r),Qr=ot(Rr,qr,{i:b}),Xr=ot(Rr,qr);
mt(/x/)&&(mt=function(n){return typeof n=="function"&&_r.call(n)==K});var Yr=vr?function(n){if(!n||_r.call(n)!=U||!Fr.argsClass&&vt(n))return b;var t=n.valueOf,r=typeof t=="function"&&(r=vr(t))&&vr(r);return r?n==r||vr(n)==r:st(n)}:st,Zr=Et;Nr&&tt&&typeof dr=="function"&&(Lt=Tt(dr,e));var ne=8==Ar(S+"08")?Ar:function(n,t){return Ar(_t(n)?n.replace(z,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Ur,_.at=function(n){var t=-1,r=Z(arguments,m,b,1),e=r.length,u=Kt(e);
for(Fr.unindexedChars&&_t(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},_.bind=Tt,_.bindAll=function(n){for(var t=1<arguments.length?Z(arguments,m,b,1):ht(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Tt(n[u],n)}return n},_.bindKey=function(n,t){return at(n,t,Br.call(arguments,2),[],b,m)},_.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},_.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];
return t[0]}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r),Ot(n,function(n,r,u){r=nr(t(n,r,u)),hr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Gt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Lr(n),a=u[0],o=n[a];return 1!=u.length||o!==o||dt(o)?function(t){for(var r=u.length,e=b;r--&&(e=nt(t[u[r]],n[u[r]],d,m)););return e}:function(n){return n=n[a],o===n&&(0!==o||1/o==1/n)}}return typeof t!="undefined"&&ct(n)?1===r?function(r){return n.call(t,r)
}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,a){return n.call(t,r,e,u,a)}:function(r,e,u){return n.call(t,r,e,u)}:n},_.debounce=Wt,_.defaults=Vr,_.defer=Lt,_.delay=function(n,t){var r=Br.call(arguments,2);return br(function(){n.apply(y,r)},t)},_.difference=Pt,_.filter=kt,_.flatten=function(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?y:t,t=b),r!=d&&(n=Et(n,r,e)),Z(n,t)},_.forEach=Ot,_.forIn=Qr,_.forOwn=Xr,_.functions=ht,_.groupBy=function(n,t,r){var e={};return t=_.createCallback(t,r),Ot(n,function(n,r,u){r=nr(t(n,r,u)),(hr.call(e,r)?e[r]:e[r]=[]).push(n)
}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++}else e=t==d||r?1:t||e;return v(n,0,Sr(Er(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,a=-1,i=l(),f=-1,c=ft(),p=n?n.length:0,v=[],h=l();++a<u;){var y=e[a];i[a]=c===t&&(y?y.length:0)>=O&&o(a?e[a]:h)}n:for(;++f<p;){var m=i[0],y=n[f];if(0>(m?r(m,y):c(h,y))){for(a=u,(m||h).push(y);--a;)if(m=i[a],0>(m?r(m,y):c(e[a],y)))continue n;
v.push(y)}}for(;u--;)(m=i[u])&&g(m);return s(i),s(h),v},_.invert=yt,_.invoke=function(n,t){var r=Br.call(arguments,2),e=-1,u=typeof t=="function",a=n?n.length:0,o=Kt(typeof a=="number"?a:0);return Ot(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},_.keys=Lr,_.map=Et,_.max=St,_.memoize=function(n,t){function r(){var e=r.cache,u=x+(t?t.apply(this,arguments):arguments[0]);return hr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}return r.cache={},r},_.merge=function(n){var t=arguments,r=2;if(!dt(n))return n;
if("number"!=typeof t[2]&&(r=t.length),3<r&&"function"==typeof t[r-2])var e=_.createCallback(t[--r-1],t[r--],2);else 2<r&&"function"==typeof t[r-1]&&(e=t[--r]);for(var t=Br.call(arguments,1,r),u=-1,a=l(),o=l();++u<r;)rt(n,t[u],e,a,o);return s(a),s(o),n},_.min=function(n,t,r){var e=1/0,a=e;if(!t&&Tr(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<a&&(a=i)}}else t=!t&&_t(n)?u:_.createCallback(t,r),Gr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});return a},_.omit=function(n,t,r){var e=ft(),u=typeof t=="function",a={};
if(u)t=_.createCallback(t,r);else var o=Z(arguments,m,b,1);return Qr(n,function(n,r,i){(u?!t(n,r,i):0>e(o,r))&&(a[r]=n)}),a},_.once=function(n){var t,r;return function(){return t?r:(t=m,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Lr(n),e=r.length,u=Kt(e);++t<e;){var a=r[t];u[t]=[a,n[a]]}return u},_.partial=function(n){return at(n,d,Br.call(arguments,1),[],m)},_.partialRight=function(n){return at(n,d,[],Br.call(arguments,1),m,m)},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=Z(arguments,m,b,1),o=dt(n)?a.length:0;++u<o;){var i=a[u];
i in n&&(e[i]=n[i])}else t=_.createCallback(t,r),Qr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},_.pluck=Zr,_.range=function(n,t,r){n=+n||0,r=+r||1,t==d&&(t=n,n=0);var e=-1;t=Er(0,lr((t-n)/r));for(var u=Kt(t);++e<t;)u[e]=n,n+=r;return u},_.reject=function(n,t,r){return t=_.createCallback(t,r),kt(n,function(n,r,e){return!t(n,r,e)})},_.rest=zt,_.shuffle=function(n){var t=-1,r=n?n.length:0,e=Kt(typeof r=="number"?r:0);return Ot(n,function(n){var r=sr(Ir()*(++t+1));e[t]=e[r],e[r]=n}),e},_.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Kt(typeof u=="number"?u:0);
for(t=_.createCallback(t,r),Ot(n,function(n,r,u){var a=o[++e]=f();a.l=t(n,r,u),a.m=e,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,r){var e=m,u=m;return r===false?e=b:dt(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=f(),r.leading=e,r.maxWait=t,r.trailing=u,n=Wt(n,t,r),g(r),n},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Kt(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?Fr.unindexedChars&&_t(n)?n.split(""):v(n):jt(n)
},_.transform=function(n,t,r,e){var u=Tr(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=it(e&&e.prototype))),(u?Gr:Xr)(n,function(n,e,u){return t(r,n,e,u)}),r},_.union=function(){return ut(Z(arguments,m,m))},_.uniq=$t,_.values=jt,_.where=kt,_.without=function(n){return Pt(n,Br.call(arguments,1))},_.wrap=function(n,t){return function(){var r=[n];return yr.apply(r,arguments),t.apply(this,r)}},_.zip=Rt,_.zipObject=qt,_.collect=Et,_.drop=zt,_.each=Ot,_.extend=Ur,_.methods=ht,_.object=qt,_.select=kt,_.tail=zt,_.unique=$t,_.unzip=Rt,Ht(_),_.chain=_,_.prototype.chain=function(){return this
},_.clone=function(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),E(n,t,typeof r=="function"&&_.createCallback(r,e,1))},_.cloneDeep=function(n,t,r){return E(n,m,typeof t=="function"&&_.createCallback(t,r,1))},_.contains=Ct,_.escape=function(n){return n==d?"":nr(n).replace(Mr,lt)},_.every=wt,_.find=xt,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r),Xr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0
}),e},_.has=function(n,t){return n?hr.call(n,t):b},_.identity=Gt,_.indexOf=Dt,_.isArguments=vt,_.isArray=Tr,_.isBoolean=function(n){return n===m||n===false||_r.call(n)==G},_.isDate=function(n){return n?typeof n=="object"&&_r.call(n)==H:b},_.isElement=function(n){return n?1===n.nodeType:b},_.isEmpty=function(n){var t=m;if(!n)return t;var r=_r.call(n),e=n.length;return r==L||r==Q||(Fr.argsClass?r==W:vt(n))||r==U&&typeof e=="number"&&mt(n.splice)?!e:(Xr(n,function(){return t=b}),t)},_.isEqual=function(n,t,r,e){return nt(n,t,typeof r=="function"&&_.createCallback(r,e,2))
},_.isFinite=function(n){return kr(n)&&!xr(parseFloat(n))},_.isFunction=mt,_.isNaN=function(n){return bt(n)&&n!=+n},_.isNull=function(n){return n===d},_.isNumber=bt,_.isObject=dt,_.isPlainObject=Yr,_.isRegExp=function(n){return n&&Y[typeof n]?_r.call(n)==V:b},_.isString=_t,_.isUndefined=function(n){return typeof n=="undefined"},_.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?Er(0,e+r):Sr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},_.mixin=Ht,_.noConflict=function(){return e._=or,this
},_.parseInt=ne,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var r=Ir();return n%1||t%1?n+Sr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+sr(r*(t-n+1))},_.reduce=At,_.reduceRight=It,_.result=function(n,t){var r=n?n[t]:y;return mt(r)?n[t]():r},_.runInContext=h,_.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Lr(n).length},_.some=Bt,_.sortedIndex=Ft,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Vr({},r,e);var u,a=Vr({},r.imports,e.imports),e=Lr(a),a=jt(a),o=0,l=r.interpolate||F,f="__p+='",l=Zt((r.escape||F).source+"|"+l.source+"|"+(l===D?P:F).source+"|"+(r.evaluate||F).source+"|$","g");
n.replace(l,function(t,r,e,a,l,c){return e||(e=a),f+=n.slice(o,c).replace(R,i),r&&(f+="'+__e("+r+")+'"),l&&(u=m,f+="';"+l+";__p+='"),e&&(f+="'+((__t=("+e+"))==null?'':__t)+'"),o=c+t.length,t}),f+="';\n",l=r=r.variable,l||(r="obj",f="with("+r+"){"+f+"}"),f=(u?f.replace(A,""):f).replace(I,"$1").replace(B,"$1;"),f="function("+r+"){"+(l?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";try{var c=Vt(e,"return "+f).apply(y,a)
}catch(p){throw p.source=f,p}return t?c(t):(c.source=f,c)},_.unescape=function(n){return n==d?"":nr(n).replace(Kr,gt)},_.uniqueId=function(n){var t=++C;return nr(n==d?"":n)+t},_.all=wt,_.any=Bt,_.detect=xt,_.findWhere=xt,_.foldl=At,_.foldr=It,_.include=Ct,_.inject=At,Xr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return yr.apply(t,arguments),n.apply(_,t)})}),_.first=Nt,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r);a--&&t(n[a],a,n);)e++
}else if(e=t,e==d||r)return n[u-1];return v(n,Er(0,u-e))}},_.take=Nt,_.head=Nt,Xr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);return t==d||r&&typeof t!="function"?e:new j(e)})}),_.VERSION="1.3.1",_.prototype.toString=function(){return nr(this.__wrapped__)},_.prototype.value=Jt,_.prototype.valueOf=Jt,Gr(["join","pop","shift"],function(n){var t=rr[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),Gr(["push","reverse","sort","unshift"],function(n){var t=rr[n];
_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Gr(["concat","slice","splice"],function(n){var t=rr[n];_.prototype[n]=function(){return new j(t.apply(this.__wrapped__,arguments))}}),Fr.spliceObjects||Gr(["pop","shift","splice"],function(n){var t=rr[n],r="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new j(e):e}}),_}var y,m=!0,d=null,b=!1,_=[],j=[],C=0,w={},x=+new Date+"",O=75,E=40,S=" \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",A=/\b__p\+='';/g,I=/\b(__p\+=)''\+/g,B=/(__e\(.*?\)|\b__t\))\+'';/g,P=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,N=/\w*$/,D=/<%=([\s\S]+?)%>/g,z=RegExp("^["+S+"]*0+(?=.$)"),F=/($^)/,$=($=/\bthis\b/)&&$.test(h)&&$,R=/['\n\r\t\u2028\u2029\\]/g,q="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),T="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),W="[object Arguments]",L="[object Array]",G="[object Boolean]",H="[object Date]",J="[object Error]",K="[object Function]",M="[object Number]",U="[object Object]",V="[object RegExp]",Q="[object String]",X={};
X[K]=b,X[W]=X[L]=X[G]=X[H]=X[M]=X[U]=X[V]=X[Q]=m;var Y={"boolean":b,"function":m,object:m,number:b,string:b,undefined:b},Z={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},nt=Y[typeof exports]&&exports,tt=Y[typeof module]&&module&&module.exports==nt&&module,rt=Y[typeof global]&&global;!rt||rt.global!==rt&&rt.window!==rt||(n=rt);var et=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=et, define(function(){return et})):nt&&!nt.nodeType?tt?(tt.exports=et)._=et:nt._=et:n._=et
}(this);

965
dist/lodash.js vendored

File diff suppressed because it is too large Load Diff

83
dist/lodash.min.js vendored
View File

@@ -3,45 +3,46 @@
* 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(n){function t(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 e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==h)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:j+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==h)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:j+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y
}}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=c(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=c(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+J[n]}function f(){return m.pop()||[]}function c(){return d.pop()||{b:h,k:h,l:h,"false":b,m:0,leading:b,maxWait:0,"null":b,number:h,object:h,push:h,string:h,trailing:b,"true":b,undefined:b,n:h}
}function l(n){n.length=0,m.length<C&&m.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=h,d.length<C&&d.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(r){function m(n){if(!n||ve.call(n)!=M)return b;var t=n.valueOf,e=typeof t=="function"&&(e=fe(t))&&fe(e);return e?n==e||fe(n)==e:ot(n)}function d(n,t,e){if(!n||!H[typeof n])return n;t=t&&typeof e=="undefined"?t:Z.createCallback(t,e);
for(var r=-1,u=H[typeof n]&&Se(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function C(n,t,e){var r;if(!n||!H[typeof n])return n;t=t&&typeof e=="undefined"?t:Z.createCallback(t,e);for(r in n)if(t(n[r],r,n)===false)break;return n}function J(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&H[typeof u])for(var c=-1,l=H[typeof u]&&Se(u),p=l?l.length:0;++c<p;)r=l[c],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function L(n,t,e){var r,u=n,a=u;
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var c=Z.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(c=o[--f]);for(;++i<f;)if((u=o[i])&&H[typeof u])for(var l=-1,p=H[typeof u]&&Se(u),s=p?p.length:0;++l<s;)r=p[l],a[r]=c?c(a[r],u[r]):u[r];return a}function X(n){var t,e=[];if(!n||!H[typeof n])return e;for(t in n)ce.call(n,t)&&e.push(t);return e}function Z(n){return n&&typeof n=="object"&&!Ee(n)&&ce.call(n,"__wrapped__")?n:new nt(n)
}function nt(n){this.__wrapped__=n}function tt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,a=[];++r<u;){var o=n[r];o&&typeof o=="object"&&(Ee(o)||ft(o))?le.apply(a,t?o:tt(o,t,e)):e||a.push(o)}return a}function et(n,r,u){var a=-1,i=at(),c=n?n.length:0,s=[],v=!r&&c>=w&&i===t,g=u||v?f():s;if(v){var y=o(g);y?(i=e,g=y):(v=b,g=u?g:(l(g),s))}for(;++a<c;){var y=n[a],h=u?u(y,a,n):y;(r?!a||g[g.length-1]!==h:0>i(g,h))&&((u||v)&&g.push(h),s.push(y))}return v?(l(g.b),p(g)):u&&l(g),s}function rt(n,t,e,r){function u(){var r=arguments,c=o?this:t;
return a||(n=t[i]),e.length&&(r=r.length?(r=Ce.call(r),f?r.concat(e):e.concat(r)):e),this instanceof u?(c=gt(n.prototype)?ye(n.prototype):{},r=n.apply(c,r),gt(r)?r:c):n.apply(c,r)}var a=vt(n),o=!e,i=t;if(o){var f=r;e=t}else if(!a){if(!r)throw new Zt;t=n}return u}function ut(n){return Ae[n]}function at(){var n=(n=Z.indexOf)===$t?t:n;return n}function ot(n){var t,e;return n&&ve.call(n)==M&&(t=n.constructor,!vt(t)||t instanceof t)?(C(n,function(n,t){e=t}),e===g||ce.call(n,e)):b}function it(n){return Ie[n]
}function ft(n){return n&&typeof n=="object"?ve.call(n)==D:b}function ct(n,t,e,r,u,a){var o=n;if(typeof t!="boolean"&&t!=h&&(r=e,e=t,t=b),typeof e=="function"){if(e=typeof r=="undefined"?e:Z.createCallback(e,r,1),o=e(o),typeof o!="undefined")return o;o=n}if(r=gt(o)){var i=ve.call(o);if(!G[i])return o;var c=Ee(o)}if(!r||!t)return r?c?s(o):L({},o):o;switch(r=xe[i],i){case z:case W:return new r(+o);case K:case V:return new r(o);case U:return r(o.source,I.exec(o))}i=!u,u||(u=f()),a||(a=f());for(var p=u.length;p--;)if(u[p]==n)return a[p];
return o=c?r(o.length):{},c&&(ce.call(n,"index")&&(o.index=n.index),ce.call(n,"input")&&(o.input=n.input)),u.push(n),a.push(o),(c?wt:d)(n,function(n,r){o[r]=ct(n,t,e,g,u,a)}),i&&(l(u),l(a)),o}function lt(n){var t=[];return C(n,function(n,e){vt(n)&&t.push(e)}),t.sort()}function pt(n){for(var t=-1,e=Se(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function st(n,t,e,r,u,a){var o=e===k;if(typeof e=="function"&&!o){e=Z.createCallback(e,r,2);var i=e(n,t);if(typeof i!="undefined")return!!i}if(n===t)return 0!==n||1/n==1/t;
if(n===n&&(!n||!H[typeof n])&&(!t||!H[typeof t]))return b;if(n==h||t==h)return n===t;var c=ve.call(n),p=ve.call(t);if(c==D&&(c=M),p==D&&(p=M),c!=p)return b;switch(c){case z:case W:return+n==+t;case K:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case U:case V:return n==Yt(t)}if(p=c==q,!p){if(ce.call(n,"__wrapped__")||ce.call(t,"__wrapped__"))return st(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);if(c!=M)return b;var c=n.constructor,s=t.constructor;if(c!=s&&(!vt(c)||!(c instanceof c&&vt(s)&&s instanceof s)))return b
}for(s=!u,u||(u=f()),a||(a=f()),c=u.length;c--;)if(u[c]==n)return a[c]==t;var v=0,i=y;if(u.push(n),a.push(t),p){if(c=n.length,v=t.length,i=v==n.length,!i&&!o)return i;for(;v--;)if(p=c,s=t[v],o)for(;p--&&!(i=st(n[p],s,e,r,u,a)););else if(!(i=st(n[v],s,e,r,u,a)))break;return i}return C(t,function(t,o,f){return ce.call(f,o)?(v++,i=ce.call(n,o)&&st(n[o],t,e,r,u,a)):void 0}),i&&!o&&C(n,function(n,t,e){return ce.call(e,t)?i=-1<--v:void 0}),s&&(l(u),l(a)),i}function vt(n){return typeof n=="function"}function gt(n){return!(!n||!H[typeof n])
}function yt(n){return typeof n=="number"||ve.call(n)==K}function ht(n){return typeof n=="string"||ve.call(n)==V}function bt(n,t,e){var r=arguments,u=0,a=2;if(!gt(n))return n;if(e===k)var o=r[3],i=r[4],c=r[5];else{var p=y,i=f(),c=f();typeof e!="number"&&(a=r.length),3<a&&"function"==typeof r[a-2]?o=Z.createCallback(r[--a-1],r[a--],2):2<a&&"function"==typeof r[a-1]&&(o=r[--a])}for(;++u<a;)(Ee(r[u])?wt:d)(r[u],function(t,e){var r,u,a=t,f=n[e];if(t&&((u=Ee(t))||m(t))){for(a=i.length;a--;)if(r=i[a]==t){f=c[a];
break}if(!r){var l;o&&(a=o(f,t),l=typeof a!="undefined")&&(f=a),l||(f=u?Ee(f)?f:[]:m(f)?f:{}),i.push(t),c.push(f),l||(f=bt(f,t,k,o,i,c))}}else o&&(a=o(f,t),typeof a=="undefined"&&(a=t)),typeof a!="undefined"&&(f=a);n[e]=f});return p&&(l(i),l(c)),n}function mt(n){for(var t=-1,e=Se(n),r=e.length,u=Ut(r);++t<r;)u[t]=n[e[t]];return u}function dt(n,t,e){var r=-1,u=at(),a=n?n.length:0,o=b;return e=(0>e?_e(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(ht(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(o=n===t)
}),o}function _t(n,t,e){var r=y;t=Z.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)});return r}function kt(n,t,e){var r=[];t=Z.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function jt(n,t,e){t=Z.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,b):void 0
}),u}for(;++e<r;){var a=n[e];if(t(a,e,n))return a}}function wt(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Z.createCallback(t,e),typeof u=="number")for(;++r<u&&t(n[r],r,n)!==false;);else d(n,t);return n}function Ct(n,t,e){var r=-1,u=n?n.length:0;if(t=Z.createCallback(t,e),typeof u=="number")for(var a=Ut(u);++r<u;)a[r]=t(n[r],r,n);else a=[],d(n,function(n,e,u){a[++r]=t(n,e,u)});return a}function xt(n,t,e){var r=-1/0,a=r;if(!t&&Ee(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)
}}else t=!t&&ht(n)?u:Z.createCallback(t,e),wt(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)});return a}function Ot(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Ut(r);++e<r;)u[e]=n[e][t];return u||Ct(n,t)}function Et(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=Z.createCallback(t,r,4);var a=-1,o=n.length;if(typeof o=="number")for(u&&(e=n[++a]);++a<o;)e=t(e,n[a],a,n);else d(n,function(n,r,a){e=u?(u=b,n):t(e,n,r,a)});return e}function St(n,t,e,r){var u=n?n.length:0,a=3>arguments.length;
if(typeof u!="number")var o=Se(n),u=o.length;return t=Z.createCallback(t,r,4),wt(n,function(r,i,f){i=o?o[--u]:--u,e=a?(a=b,n[i]):t(e,n[i],i,f)}),e}function At(n,t,e){var r;t=Z.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else d(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function It(n){var r=-1,u=at(),a=n?n.length:0,i=tt(arguments,y,y,1),f=[],c=a>=w&&u===t;if(c){var l=o(i);l?(u=e,i=l):c=b}for(;++r<a;)l=n[r],0>u(i,l)&&f.push(l);return c&&p(i),f
}function Nt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=-1;for(t=Z.createCallback(t,e);++a<u&&t(n[a],a,n);)r++}else if(r=t,r==h||e)return n[0];return s(n,0,ke(_e(0,r),u))}}function $t(n,e,r){if(typeof r=="number"){var u=n?n.length:0;r=0>r?_e(0,u+r):r||0}else if(r)return r=Ft(n,e),n[r]===e?r:-1;return n?t(n,e,r):-1}function Bt(n,t,e){if(typeof t!="number"&&t!=h){var r=0,u=-1,a=n?n.length:0;for(t=Z.createCallback(t,e);++u<a&&t(n[u],u,n);)r++}else r=t==h||e?1:_e(0,t);return s(n,r)
}function Ft(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?Z.createCallback(e,r,1):Pt,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function Rt(n,t,e,r){return typeof t!="boolean"&&t!=h&&(r=e,e=r&&r[t]===n?g:t,t=b),e!=h&&(e=Z.createCallback(e,r)),et(n,t,e)}function Tt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?xt(Ot(n,"length")):0,r=Ut(0>e?0:e);++t<e;)r[t]=Ot(n,t);return r}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 qt(n,t){return Oe.fastBind||ge&&2<arguments.length?ge.call.apply(ge,arguments):rt(n,t,Ce.call(arguments,2))
}function zt(n,t,e){function r(){ae(s),ae(v),c=0,s=v=h}function u(){var t=g&&(!m||1<c);r(),t&&(p!==false&&(l=new Gt),i=n.apply(f,o))}function a(){r(),(g||p!==t)&&(l=new Gt,i=n.apply(f,o))}var o,i,f,c=0,l=0,p=b,s=h,v=h,g=y;if(t=_e(0,t||0),e===y)var m=y,g=b;else gt(e)&&(m=e.leading,p="maxWait"in e&&_e(t,e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=this,c++,ae(v),p===false)m&&2>c&&(i=n.apply(f,o));else{var e=new Gt;!s&&!m&&(l=e);var r=p-(e-l);0<r?s||(s=se(a,r)):(ae(s),s=h,l=e,i=n.apply(f,o))
}return t!==p&&(v=se(u,t)),i}}function Wt(n){var t=Ce.call(arguments,1);return se(function(){n.apply(g,t)},1)}function Pt(n){return n}function Kt(n){wt(lt(n),function(t){var e=Z[t]=n[t];Z.prototype[t]=function(){var n=this.__wrapped__,t=[n];return le.apply(t,arguments),t=e.apply(Z,t),n&&typeof n=="object"&&n===t?this:new nt(t)}})}function Mt(){return this.__wrapped__}r=r?Y.defaults(n.Object(),r,Y.pick(n,T)):n;var Ut=r.Array,Vt=r.Boolean,Gt=r.Date,Ht=r.Function,Jt=r.Math,Lt=r.Number,Qt=r.Object,Xt=r.RegExp,Yt=r.String,Zt=r.TypeError,ne=[],te=Qt.prototype,ee=r._,re=Xt("^"+Yt(te.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ue=Jt.ceil,ae=r.clearTimeout,oe=Jt.floor,ie=Ht.prototype.toString,fe=re.test(fe=Qt.getPrototypeOf)&&fe,ce=te.hasOwnProperty,le=ne.push,pe=r.setImmediate,se=r.setTimeout,ve=te.toString,ge=re.test(ge=ve.bind)&&ge,ye=re.test(ye=Qt.create)&&ye,he=re.test(he=Ut.isArray)&&he,be=r.isFinite,me=r.isNaN,de=re.test(de=Qt.keys)&&de,_e=Jt.max,ke=Jt.min,je=r.parseInt,we=Jt.random,Ce=ne.slice,Jt=re.test(r.attachEvent),Jt=ge&&!/\n|true/.test(ge+Jt),xe={};
xe[q]=Ut,xe[z]=Vt,xe[W]=Gt,xe[P]=Ht,xe[M]=Qt,xe[K]=Lt,xe[U]=Xt,xe[V]=Yt,nt.prototype=Z.prototype;var Oe=Z.support={};Oe.fastBind=ge&&!Jt,Z.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:N,variable:"",imports:{_:Z}};var Ee=he,Se=de?function(n){return gt(n)?de(n):[]}:X,Ae={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ie=pt(Ae),Ne=Xt("("+Se(Ie).join("|")+")","g"),$e=Xt("["+Se(Ae).join("")+"]","g");return Jt&&Q&&typeof pe=="function"&&(Wt=qt(pe,r)),Vt=8==je(x+"08")?je:function(n,t){return je(ht(n)?n.replace($,""):n,t||0)
},Z.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},Z.assign=L,Z.at=function(n){for(var t=-1,e=tt(arguments,y,b,1),r=e.length,u=Ut(r);++t<r;)u[t]=n[e[t]];return u},Z.bind=qt,Z.bindAll=function(n){for(var t=1<arguments.length?tt(arguments,y,b,1):lt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=qt(n[u],n)}return n},Z.bindKey=function(n,t){return rt(n,t,Ce.call(arguments,2),k)},Z.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
},Z.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},Z.countBy=function(n,t,e){var r={};return t=Z.createCallback(t,e),wt(n,function(n,e,u){e=Yt(t(n,e,u)),ce.call(r,e)?r[e]++:r[e]=1}),r},Z.createCallback=function(n,t,e){if(n==h)return Pt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=Se(n);return function(t){for(var e=u.length,r=b;e--&&(r=st(t[u[e]],n[u[e]],k)););return r}}return typeof t=="undefined"||F&&!F.test(ie.call(n))?n:1===e?function(e){return n.call(t,e)
}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}},Z.debounce=zt,Z.defaults=J,Z.defer=Wt,Z.delay=function(n,t){var e=Ce.call(arguments,2);return se(function(){n.apply(g,e)},t)},Z.difference=It,Z.filter=kt,Z.flatten=function(n,t,e,r){return typeof t!="boolean"&&t!=h&&(r=e,e=r&&r[t]===n?g:t,t=b),e!=h&&(n=Ct(n,e,r)),tt(n,t)},Z.forEach=wt,Z.forIn=C,Z.forOwn=d,Z.functions=lt,Z.groupBy=function(n,t,e){var r={};return t=Z.createCallback(t,e),wt(n,function(n,e,u){e=Yt(t(n,e,u)),(ce.call(r,e)?r[e]:r[e]=[]).push(n)
}),r},Z.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=Z.createCallback(t,e);a--&&t(n[a],a,n);)r++}else r=t==h||e?1:t||r;return s(n,0,ke(_e(0,u-r),u))},Z.intersection=function(n){for(var r=arguments,u=r.length,a=-1,i=f(),c=-1,s=at(),v=n?n.length:0,g=[],y=f();++a<u;){var h=r[a];i[a]=s===t&&(h?h.length:0)>=w&&o(a?r[a]:y)}n:for(;++c<v;){var b=i[0],h=n[c];if(0>(b?e(b,h):s(y,h))){for(a=u,(b||y).push(h);--a;)if(b=i[a],0>(b?e(b,h):s(r[a],h)))continue n;
g.push(h)}}for(;u--;)(b=i[u])&&p(b);return l(i),l(y),g},Z.invert=pt,Z.invoke=function(n,t){var e=Ce.call(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Ut(typeof a=="number"?a:0);return wt(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},Z.keys=Se,Z.map=Ct,Z.max=xt,Z.memoize=function(n,t){function e(){var r=e.cache,u=j+(t?t.apply(this,arguments):arguments[0]);return ce.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},Z.merge=bt,Z.min=function(n,t,e){var r=1/0,a=r;if(!t&&Ee(n)){e=-1;
for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&ht(n)?u:Z.createCallback(t,e),wt(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)});return a},Z.omit=function(n,t,e){var r=at(),u=typeof t=="function",a={};if(u)t=Z.createCallback(t,e);else var o=tt(arguments,y,b,1);return C(n,function(n,e,i){(u?!t(n,e,i):0>r(o,e))&&(a[e]=n)}),a},Z.once=function(n){var t,e;return function(){return t?e:(t=y,e=n.apply(this,arguments),n=h,e)}},Z.pairs=function(n){for(var t=-1,e=Se(n),r=e.length,u=Ut(r);++t<r;){var a=e[t];
u[t]=[a,n[a]]}return u},Z.partial=function(n){return rt(n,Ce.call(arguments,1))},Z.partialRight=function(n){return rt(n,Ce.call(arguments,1),h,k)},Z.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,a=tt(arguments,y,b,1),o=gt(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=Z.createCallback(t,e),C(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},Z.pluck=Ot,Z.range=function(n,t,e){n=+n||0,e=+e||1,t==h&&(t=n,n=0);var r=-1;t=_e(0,ue((t-n)/e));for(var u=Ut(t);++r<t;)u[r]=n,n+=e;
return u},Z.reject=function(n,t,e){return t=Z.createCallback(t,e),kt(n,function(n,e,r){return!t(n,e,r)})},Z.rest=Bt,Z.shuffle=function(n){var t=-1,e=n?n.length:0,r=Ut(typeof e=="number"?e:0);return wt(n,function(n){var e=oe(we()*(++t+1));r[t]=r[e],r[e]=n}),r},Z.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Ut(typeof u=="number"?u:0);for(t=Z.createCallback(t,e),wt(n,function(n,e,u){var a=o[++r]=c();a.l=t(n,e,u),a.m=r,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,p(n);return o},Z.tap=function(n,t){return t(n),n
},Z.throttle=function(n,t,e){var r=y,u=y;return e===false?r=b:gt(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=c(),e.leading=r,e.maxWait=t,e.trailing=u,n=zt(n,t,e),p(e),n},Z.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Ut(n);for(t=Z.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},Z.toArray=function(n){return n&&typeof n.length=="number"?s(n):mt(n)},Z.transform=function(n,t,e,r){var u=Ee(n);return t=Z.createCallback(t,r,4),e==h&&(u?e=[]:(r=n&&n.constructor,e=gt(r&&r.prototype)?ye(r&&r.prototype):{})),(u?wt:d)(n,function(n,r,u){return t(e,n,r,u)
}),e},Z.union=function(){return et(tt(arguments,y,y))},Z.uniq=Rt,Z.values=mt,Z.where=kt,Z.without=function(n){return It(n,Ce.call(arguments,1))},Z.wrap=function(n,t){return function(){var e=[n];return le.apply(e,arguments),t.apply(this,e)}},Z.zip=Tt,Z.zipObject=Dt,Z.collect=Ct,Z.drop=Bt,Z.each=wt,Z.extend=L,Z.methods=lt,Z.object=Dt,Z.select=kt,Z.tail=Bt,Z.unique=Rt,Z.unzip=Tt,Kt(Z),Z.chain=Z,Z.prototype.chain=function(){return this},Z.clone=ct,Z.cloneDeep=function(n,t,e){return ct(n,y,t,e)},Z.contains=dt,Z.escape=function(n){return n==h?"":Yt(n).replace($e,ut)
},Z.every=_t,Z.find=jt,Z.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=Z.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},Z.findKey=function(n,t,e){var r;return t=Z.createCallback(t,e),d(n,function(n,e,u){return t(n,e,u)?(r=e,b):void 0}),r},Z.has=function(n,t){return n?ce.call(n,t):b},Z.identity=Pt,Z.indexOf=$t,Z.isArguments=ft,Z.isArray=Ee,Z.isBoolean=function(n){return n===y||n===false||ve.call(n)==z},Z.isDate=function(n){return n?typeof n=="object"&&ve.call(n)==W:b},Z.isElement=function(n){return n?1===n.nodeType:b
},Z.isEmpty=function(n){var t=y;if(!n)return t;var e=ve.call(n),r=n.length;return e==q||e==V||e==D||e==M&&typeof r=="number"&&vt(n.splice)?!r:(d(n,function(){return t=b}),t)},Z.isEqual=st,Z.isFinite=function(n){return be(n)&&!me(parseFloat(n))},Z.isFunction=vt,Z.isNaN=function(n){return yt(n)&&n!=+n},Z.isNull=function(n){return n===h},Z.isNumber=yt,Z.isObject=gt,Z.isPlainObject=m,Z.isRegExp=function(n){return n?typeof n=="object"&&ve.call(n)==U:b},Z.isString=ht,Z.isUndefined=function(n){return typeof n=="undefined"
},Z.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?_e(0,r+e):ke(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},Z.mixin=Kt,Z.noConflict=function(){return r._=ee,this},Z.parseInt=Vt,Z.random=function(n,t){n==h&&t==h&&(t=1),n=+n||0,t==h?(t=n,n=0):t=+t||0;var e=we();return n%1||t%1?n+ke(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+oe(e*(t-n+1))},Z.reduce=Et,Z.reduceRight=St,Z.result=function(n,t){var e=n?n[t]:g;return vt(e)?n[t]():e},Z.runInContext=v,Z.size=function(n){var t=n?n.length:0;
return typeof t=="number"?t:Se(n).length},Z.some=At,Z.sortedIndex=Ft,Z.template=function(n,t,e){var r=Z.templateSettings;n||(n=""),e=J({},e,r);var u,a=J({},e.imports,r.imports),r=Se(a),a=mt(a),o=0,f=e.interpolate||B,c="__p+='",f=Xt((e.escape||B).source+"|"+f.source+"|"+(f===N?A:B).source+"|"+(e.evaluate||B).source+"|$","g");n.replace(f,function(t,e,r,a,f,l){return r||(r=a),c+=n.slice(o,l).replace(R,i),e&&(c+="'+__e("+e+")+'"),f&&(u=y,c+="';"+f+";__p+='"),r&&(c+="'+((__t=("+r+"))==null?'':__t)+'"),o=l+t.length,t
}),c+="';\n",f=e=e.variable,f||(e="obj",c="with("+e+"){"+c+"}"),c=(u?c.replace(O,""):c).replace(E,"$1").replace(S,"$1;"),c="function("+e+"){"+(f?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+c+"return __p}";try{var l=Ht(r,"return "+c).apply(g,a)}catch(p){throw p.source=c,p}return t?l(t):(l.source=c,l)},Z.unescape=function(n){return n==h?"":Yt(n).replace(Ne,it)},Z.uniqueId=function(n){var t=++_;return Yt(n==h?"":n)+t
},Z.all=_t,Z.any=At,Z.detect=jt,Z.findWhere=jt,Z.foldl=Et,Z.foldr=St,Z.include=dt,Z.inject=Et,d(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(){var t=[this.__wrapped__];return le.apply(t,arguments),n.apply(Z,t)})}),Z.first=Nt,Z.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=Z.createCallback(t,e);a--&&t(n[a],a,n);)r++}else if(r=t,r==h||e)return n[u-1];return s(n,_e(0,u-r))}},Z.take=Nt,Z.head=Nt,d(Z,function(n,t){Z.prototype[t]||(Z.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
return t==h||e&&typeof t!="function"?r:new nt(r)})}),Z.VERSION="1.3.1",Z.prototype.toString=function(){return Yt(this.__wrapped__)},Z.prototype.value=Mt,Z.prototype.valueOf=Mt,wt(["join","pop","shift"],function(n){var t=ne[n];Z.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),wt(["push","reverse","sort","unshift"],function(n){var t=ne[n];Z.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),wt(["concat","slice","splice"],function(n){var t=ne[n];Z.prototype[n]=function(){return new nt(t.apply(this.__wrapped__,arguments))
}}),Z}var g,y=!0,h=null,b=!1,m=[],d=[],_=0,k={},j=+new Date+"",w=75,C=40,x=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",O=/\b__p\+='';/g,E=/\b(__p\+=)''\+/g,S=/(__e\(.*?\)|\b__t\))\+'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,I=/\w*$/,N=/<%=([\s\S]+?)%>/g,$=RegExp("^["+x+"]*0+(?=.$)"),B=/($^)/,F=(F=/\bthis\b/)&&F.test(v)&&F,R=/['\n\r\t\u2028\u2029\\]/g,T="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),D="[object Arguments]",q="[object Array]",z="[object Boolean]",W="[object Date]",P="[object Function]",K="[object Number]",M="[object Object]",U="[object RegExp]",V="[object String]",G={};
G[P]=b,G[D]=G[q]=G[z]=G[W]=G[K]=G[M]=G[U]=G[V]=y;var H={"boolean":b,"function":y,object:y,number:b,string:b,undefined:b},J={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},L=H[typeof exports]&&exports,Q=H[typeof module]&&module&&module.exports==L&&module,X=H[typeof global]&&global;!X||X.global!==X&&X.window!==X||(n=X);var Y=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=Y, define(function(){return Y})):L&&!L.nodeType?Q?(Q.exports=Y)._=Y:L._=Y:n._=Y
;!function(n){function t(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 e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==h)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:k+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==h)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:k+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y
}}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=l(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+H[n]}function f(){return m.pop()||[]}function l(){return d.pop()||{b:h,k:h,l:h,"false":b,m:0,leading:b,maxWait:0,"null":b,number:h,object:h,push:h,string:h,trailing:b,"true":b,undefined:b,n:h}
}function c(n){n.length=0,m.length<w&&m.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=h,d.length<w&&d.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(r){function m(n){if(!n||he.call(n)!=K)return b;var t=n.valueOf,e=typeof t=="function"&&(e=pe(t))&&pe(e);return e?n==e||pe(n)==e:ct(n)}function d(n,t,e){if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:Y.createCallback(t,e);
for(var r=-1,u=G[typeof n]&&Be(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function w(n,t,e){var r;if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:Y.createCallback(t,e);for(r in n)if(t(n[r],r,n)===false)break;return n}function H(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&G[typeof u])for(var l=-1,c=G[typeof u]&&Be(u),p=c?c.length:0;++l<p;)r=c[l],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function J(n,t,e){var r,u=n,a=u;
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var l=Y.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(l=o[--f]);for(;++i<f;)if((u=o[i])&&G[typeof u])for(var c=-1,p=G[typeof u]&&Be(u),s=p?p.length:0;++c<s;)r=p[c],a[r]=l?l(a[r],u[r]):u[r];return a}function Q(n){var t,e=[];if(!n||!G[typeof n])return e;for(t in n)se.call(n,t)&&e.push(t);return e}function Y(n){return n&&typeof n=="object"&&!$e(n)&&se.call(n,"__wrapped__")?n:new Z(n)
}function Z(n){this.__wrapped__=n}function nt(n,t,e,r,u){var a=n;if(e){if(a=e(a),typeof a!="undefined")return a;a=n}var o=ht(a);if(o){var i=he.call(a);if(!V[i])return a;var l=$e(a)}if(!o||!t)return o?l?s(a):J({},a):a;switch(o=Ie[i],i){case q:case z:return new o(+a);case P:case U:return new o(a);case M:return o(a.source,A.exec(a))}i=!r,r||(r=f()),u||(u=f());for(var p=r.length;p--;)if(r[p]==n)return u[p];return a=l?o(a.length):{},l&&(se.call(n,"index")&&(a.index=n.index),se.call(n,"input")&&(a.input=n.input)),r.push(n),u.push(a),(l?Ct:d)(n,function(n,o){a[o]=nt(n,t,e,r,u)
}),i&&(c(r),c(u)),a}function tt(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,a=[];++r<u;){var o=n[r];o&&typeof o=="object"&&($e(o)||st(o))?ve.apply(a,t?o:tt(o,t,e)):e||a.push(o)}return a}function et(n,t,e,r,u,a){if(e){var o=e(n,t);if(typeof o!="undefined")return!!o}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!G[typeof n])&&(!t||!G[typeof t]))return b;if(n==h||t==h)return n===t;var i=he.call(n),l=he.call(t);if(i==R&&(i=K),l==R&&(l=K),i!=l)return b;switch(i){case q:case z:return+n==+t;case P:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case M:case U:return n==Zt(t)}if(l=i==T,!l){if(se.call(n,"__wrapped__")||se.call(t,"__wrapped__"))return et(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);if(i!=K)return b;var i=n.constructor,p=t.constructor;if(i!=p&&(!yt(i)||!(i instanceof i&&yt(p)&&p instanceof p)))return b}for(p=!u,u||(u=f()),a||(a=f()),i=u.length;i--;)if(u[i]==n)return a[i]==t;var s=0,o=y;if(u.push(n),a.push(t),l){if(i=n.length,s=t.length,o=s==n.length,!o&&!r)return o;for(;s--;)if(l=i,p=t[s],r)for(;l--&&!(o=et(n[l],p,e,r,u,a)););else if(!(o=et(n[s],p,e,r,u,a)))break;
return o}return w(t,function(t,i,f){return se.call(f,i)?(s++,o=se.call(n,i)&&et(n[i],t,e,r,u,a)):void 0}),o&&!r&&w(n,function(n,t,e){return se.call(e,t)?o=-1<--s:void 0}),p&&(c(u),c(a)),o}function rt(n,t,e,r,u){($e(t)?Ct:d)(t,function(t,a){var o,i,f=t,l=n[a];if(t&&((i=$e(t))||m(t))){for(f=r.length;f--;)if(o=r[f]==t){l=u[f];break}if(!o){var c;e&&(f=e(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?$e(l)?l:[]:m(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[a]=l})}function ut(n,r,u){var a=-1,i=it(),l=n?n.length:0,s=[],v=!r&&l>=j&&i===t,g=u||v?f():s;if(v){var y=o(g);y?(i=e,g=y):(v=b,g=u?g:(c(g),s))}for(;++a<l;){var y=n[a],h=u?u(y,a,n):y;(r?!a||g[g.length-1]!==h:0>i(g,h))&&((u||v)&&g.push(h),s.push(y))}return v?(c(g.b),p(g)):u&&c(g),s}function at(n,t,e,r,u,a){var o=yt(n);if(!o&&(u||!a))throw new ne;var i=n.__bindData__,f=t;if(i)return ve.apply(i[2],e),ve.apply(i[3],r),!u&&i[4]&&(i[1]=t,i[4]=b),at.apply(h,i);!u&&a&&(t=n);var l=u||a||!(Ne.fastBind||be&&e.length)?function(){var a=arguments,i=u?this:t;
return o||(n=t[f]),(e.length||r.length)&&(a=ie.apply(e,a),ve.apply(a,r)),this instanceof l?(i=ht(n.prototype)?me(n.prototype):{},a=n.apply(i,a),ht(a)?a:i):n.apply(i,a)}:be.call.apply(be,ie.call(te,n,t,e));return lt(l,Ee.call(arguments)),l}function ot(n){return De[n]}function it(){var n=(n=Y.indexOf)===Bt?t:n;return n}function ft(n){var t=n.__bindData__;return typeof t!="undefined"?t===y||t&&t[4]:(t=!B||B.test(ce.call(n)),lt(n,t),t)}function lt(n,t){fe(n,"__bindData__",{configurable:b,enumerable:b,value:t,writable:b})
}function ct(n){var t,e;return n&&he.call(n)==K&&(t=n.constructor,!yt(t)||t instanceof t)?(w(n,function(n,t){e=t}),e===g||se.call(n,e)):b}function pt(n){return Fe[n]}function st(n){return n&&typeof n=="object"?he.call(n)==R:b}function vt(n){var t=[];return w(n,function(n,e){yt(n)&&t.push(e)}),t.sort()}function gt(n){for(var t=-1,e=Be(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function yt(n){return typeof n=="function"}function ht(n){return!(!n||!G[typeof n])}function bt(n){return typeof n=="number"||he.call(n)==P
}function mt(n){return typeof n=="string"||he.call(n)==U}function dt(n){for(var t=-1,e=Be(n),r=e.length,u=Vt(r);++t<r;)u[t]=n[e[t]];return u}function _t(n,t,e){var r=-1,u=it(),a=n?n.length:0,o=b;return e=(0>e?we(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(mt(n)?n.indexOf(t,e):u(n,t,e)):d(n,function(n){return++r<e?void 0:!(o=n===t)}),o}function kt(n,t,e){var r=y;t=Y.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u&&(r=!!t(n[e],e,n)););else d(n,function(n,e,u){return r=!!t(n,e,u)
});return r}function jt(n,t,e){var r=[];t=Y.createCallback(t,e),e=-1;var u=n?n.length:0;if(typeof u=="number")for(;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)}else d(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function wt(n,t,e){t=Y.createCallback(t,e),e=-1;var r=n?n.length:0;if(typeof r!="number"){var u;return d(n,function(n,e,r){return t(n,e,r)?(u=n,b):void 0}),u}for(;++e<r;){var a=n[e];if(t(a,e,n))return a}}function Ct(n,t,e){var r=-1,u=n?n.length:0;if(t=t&&typeof e=="undefined"?t:Y.createCallback(t,e),typeof u=="number")for(;++r<u&&t(n[r],r,n)!==false;);else d(n,t);
return n}function xt(n,t,e){var r=-1,u=n?n.length:0;if(t=Y.createCallback(t,e),typeof u=="number")for(var a=Vt(u);++r<u;)a[r]=t(n[r],r,n);else a=[],d(n,function(n,e,u){a[++r]=t(n,e,u)});return a}function Ot(n,t,e){var r=-1/0,a=r;if(!t&&$e(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)}}else t=!t&&mt(n)?u:Y.createCallback(t,e),Ct(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)});return a}function Et(n,t){var e=-1,r=n?n.length:0;if(typeof r=="number")for(var u=Vt(r);++e<r;)u[e]=n[e][t];return u||xt(n,t)
}function St(n,t,e,r){if(!n)return e;var u=3>arguments.length;t=Y.createCallback(t,r,4);var a=-1,o=n.length;if(typeof o=="number")for(u&&(e=n[++a]);++a<o;)e=t(e,n[a],a,n);else d(n,function(n,r,a){e=u?(u=b,n):t(e,n,r,a)});return e}function At(n,t,e,r){var u=n?n.length:0,a=3>arguments.length;if(typeof u!="number")var o=Be(n),u=o.length;return t=Y.createCallback(t,r,4),Ct(n,function(r,i,f){i=o?o[--u]:--u,e=a?(a=b,n[i]):t(e,n[i],i,f)}),e}function It(n,t,e){var r;t=Y.createCallback(t,e),e=-1;var u=n?n.length:0;
if(typeof u=="number")for(;++e<u&&!(r=t(n[e],e,n)););else d(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function Nt(n){var r=-1,u=it(),a=n?n.length:0,i=tt(arguments,y,y,1),f=[],l=a>=j&&u===t;if(l){var c=o(i);c?(u=e,i=c):l=b}for(;++r<a;)c=n[r],0>u(i,c)&&f.push(c);return l&&p(i),f}function $t(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=-1;for(t=Y.createCallback(t,e);++a<u&&t(n[a],a,n);)r++}else if(r=t,r==h||e)return n[0];return s(n,0,Ce(we(0,r),u))}}function Bt(n,e,r){if(typeof r=="number"){var u=n?n.length:0;
r=0>r?we(0,u+r):r||0}else if(r)return r=Ft(n,e),n[r]===e?r:-1;return n?t(n,e,r):-1}function Dt(n,t,e){if(typeof t!="number"&&t!=h){var r=0,u=-1,a=n?n.length:0;for(t=Y.createCallback(t,e);++u<a&&t(n[u],u,n);)r++}else r=t==h||e?1:we(0,t);return s(n,r)}function Ft(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?Y.createCallback(e,r,1):Kt,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function Rt(n,t,e,r){return typeof t!="boolean"&&t!=h&&(r=e,e=r&&r[t]===n?g:t,t=b),e!=h&&(e=Y.createCallback(e,r)),ut(n,t,e)
}function Tt(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?Ot(Et(n,"length")):0,r=Vt(0>e?0:e);++t<e;)r[t]=Et(n,t);return r}function qt(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:a&&(u[a[0]]=a[1])}return u}function zt(n,t){return at(n,t,Ee.call(arguments,2),[])}function Wt(n,t,e){function r(){oe(s),oe(v),l=0,s=v=h}function u(){var t=g&&(!m||1<l);r(),t&&(p!==false&&(c=new Ht),i=n.apply(f,o))}function a(){r(),(g||p!==t)&&(c=new Ht,i=n.apply(f,o))}var o,i,f,l=0,c=0,p=b,s=h,v=h,g=y;
if(t=we(0,t||0),e===y)var m=y,g=b;else ht(e)&&(m=e.leading,p="maxWait"in e&&we(t,e.maxWait||0),g="trailing"in e?e.trailing:g);return function(){if(o=arguments,f=this,l++,oe(v),p===false)m&&2>l&&(i=n.apply(f,o));else{var e=new Ht;!s&&!m&&(c=e);var r=p-(e-c);0<r?s||(s=ye(a,r)):(oe(s),s=h,c=e,i=n.apply(f,o))}return t!==p&&(v=ye(u,t)),i}}function Pt(n){var t=Ee.call(arguments,1);return ye(function(){n.apply(g,t)},1)}function Kt(n){return n}function Mt(n,t){t||(t=n,n=Y);var e=yt(n);Ct(vt(t),function(r){var u=n[r]=t[r];
e&&(n.prototype[r]=function(){var t=this.__wrapped__,e=[t];return ve.apply(e,arguments),e=u.apply(n,e),t&&typeof t=="object"&&t===e?this:new Z(e)})})}function Ut(){return this.__wrapped__}r=r?X.defaults(n.Object(),r,X.pick(n,F)):n;var Vt=r.Array,Gt=r.Boolean,Ht=r.Date,Jt=r.Function,Lt=r.Math,Qt=r.Number,Xt=r.Object,Yt=r.RegExp,Zt=r.String,ne=r.TypeError,te=[],ee=Xt.prototype,re=r._,ue=Yt("^"+Zt(ee.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ae=Lt.ceil,oe=r.clearTimeout,ie=te.concat,fe=ue.test(fe=Xt.defineProperty)&&fe,le=Lt.floor,ce=Jt.prototype.toString,pe=ue.test(pe=Xt.getPrototypeOf)&&pe,se=ee.hasOwnProperty,ve=te.push,ge=r.setImmediate,ye=r.setTimeout,he=ee.toString,be=ue.test(be=he.bind)&&be,me=ue.test(me=Xt.create)&&me,de=ue.test(de=Vt.isArray)&&de,_e=r.isFinite,ke=r.isNaN,je=ue.test(je=Xt.keys)&&je,we=Lt.max,Ce=Lt.min,xe=r.parseInt,Oe=Lt.random,Ee=te.slice,Se=ue.test(r.attachEvent),Ae=be&&!/\n|true/.test(be+Se),Ie={};
Ie[T]=Vt,Ie[q]=Gt,Ie[z]=Ht,Ie[W]=Jt,Ie[K]=Xt,Ie[P]=Qt,Ie[M]=Yt,Ie[U]=Zt,Z.prototype=Y.prototype;var Ne=Y.support={};Ne.fastBind=be&&!Ae,Y.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:I,variable:"",imports:{_:Y}};var $e=de,Be=je?function(n){return ht(n)?je(n):[]}:Q,De={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fe=gt(De),Re=Yt("("+Be(Fe).join("|")+")","g"),Te=Yt("["+Be(De).join("")+"]","g");Ae&&L&&typeof ge=="function"&&(Pt=zt(ge,r));var qe=8==xe(C+"08")?xe:function(n,t){return xe(mt(n)?n.replace(N,""):n,t||0)
};return Y.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},Y.assign=J,Y.at=function(n){for(var t=-1,e=tt(arguments,y,b,1),r=e.length,u=Vt(r);++t<r;)u[t]=n[e[t]];return u},Y.bind=zt,Y.bindAll=function(n){for(var t=1<arguments.length?tt(arguments,y,b,1):vt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=zt(n[u],n)}return n},Y.bindKey=function(n,t){return at(n,t,Ee.call(arguments,2),[],b,y)},Y.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)
}return r},Y.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];return t[0]}},Y.countBy=function(n,t,e){var r={};return t=Y.createCallback(t,e),Ct(n,function(n,e,u){e=Zt(t(n,e,u)),se.call(r,e)?r[e]++:r[e]=1}),r},Y.createCallback=function(n,t,e){if(n==h)return Kt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=Be(n),a=u[0],o=n[a];return 1!=u.length||o!==o||ht(o)?function(t){for(var e=u.length,r=b;e--&&(r=et(t[u[e]],n[u[e]],h,y)););return r
}:function(n){return n=n[a],o===n&&(0!==o||1/o==1/n)}}return typeof t!="undefined"&&ft(n)?1===e?function(e){return n.call(t,e)}:2===e?function(e,r){return n.call(t,e,r)}:4===e?function(e,r,u,a){return n.call(t,e,r,u,a)}:function(e,r,u){return n.call(t,e,r,u)}:n},Y.debounce=Wt,Y.defaults=H,Y.defer=Pt,Y.delay=function(n,t){var e=Ee.call(arguments,2);return ye(function(){n.apply(g,e)},t)},Y.difference=Nt,Y.filter=jt,Y.flatten=function(n,t,e,r){return typeof t!="boolean"&&t!=h&&(r=e,e=r&&r[t]===n?g:t,t=b),e!=h&&(n=xt(n,e,r)),tt(n,t)
},Y.forEach=Ct,Y.forIn=w,Y.forOwn=d,Y.functions=vt,Y.groupBy=function(n,t,e){var r={};return t=Y.createCallback(t,e),Ct(n,function(n,e,u){e=Zt(t(n,e,u)),(se.call(r,e)?r[e]:r[e]=[]).push(n)}),r},Y.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=Y.createCallback(t,e);a--&&t(n[a],a,n);)r++}else r=t==h||e?1:t||r;return s(n,0,Ce(we(0,u-r),u))},Y.intersection=function(n){for(var r=arguments,u=r.length,a=-1,i=f(),l=-1,s=it(),v=n?n.length:0,g=[],y=f();++a<u;){var h=r[a];
i[a]=s===t&&(h?h.length:0)>=j&&o(a?r[a]:y)}n:for(;++l<v;){var b=i[0],h=n[l];if(0>(b?e(b,h):s(y,h))){for(a=u,(b||y).push(h);--a;)if(b=i[a],0>(b?e(b,h):s(r[a],h)))continue n;g.push(h)}}for(;u--;)(b=i[u])&&p(b);return c(i),c(y),g},Y.invert=gt,Y.invoke=function(n,t){var e=Ee.call(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Vt(typeof a=="number"?a:0);return Ct(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},Y.keys=Be,Y.map=xt,Y.max=Ot,Y.memoize=function(n,t){function e(){var r=e.cache,u=k+(t?t.apply(this,arguments):arguments[0]);
return se.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},Y.merge=function(n){var t=arguments,e=2;if(!ht(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=Y.createCallback(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Ee.call(arguments,1,e),u=-1,a=f(),o=f();++u<e;)rt(n,t[u],r,a,o);return c(a),c(o),n},Y.min=function(n,t,e){var r=1/0,a=r;if(!t&&$e(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&mt(n)?u:Y.createCallback(t,e),Ct(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)
});return a},Y.omit=function(n,t,e){var r=it(),u=typeof t=="function",a={};if(u)t=Y.createCallback(t,e);else var o=tt(arguments,y,b,1);return w(n,function(n,e,i){(u?!t(n,e,i):0>r(o,e))&&(a[e]=n)}),a},Y.once=function(n){var t,e;return function(){return t?e:(t=y,e=n.apply(this,arguments),n=h,e)}},Y.pairs=function(n){for(var t=-1,e=Be(n),r=e.length,u=Vt(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},Y.partial=function(n){return at(n,h,Ee.call(arguments,1),[],y)},Y.partialRight=function(n){return at(n,h,[],Ee.call(arguments,1),y,y)
},Y.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,a=tt(arguments,y,b,1),o=ht(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=Y.createCallback(t,e),w(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},Y.pluck=Et,Y.range=function(n,t,e){n=+n||0,e=+e||1,t==h&&(t=n,n=0);var r=-1;t=we(0,ae((t-n)/e));for(var u=Vt(t);++r<t;)u[r]=n,n+=e;return u},Y.reject=function(n,t,e){return t=Y.createCallback(t,e),jt(n,function(n,e,r){return!t(n,e,r)})},Y.rest=Dt,Y.shuffle=function(n){var t=-1,e=n?n.length:0,r=Vt(typeof e=="number"?e:0);
return Ct(n,function(n){var e=le(Oe()*(++t+1));r[t]=r[e],r[e]=n}),r},Y.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Vt(typeof u=="number"?u:0);for(t=Y.createCallback(t,e),Ct(n,function(n,e,u){var a=o[++r]=l();a.l=t(n,e,u),a.m=r,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,p(n);return o},Y.tap=function(n,t){return t(n),n},Y.throttle=function(n,t,e){var r=y,u=y;return e===false?r=b:ht(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=l(),e.leading=r,e.maxWait=t,e.trailing=u,n=Wt(n,t,e),p(e),n
},Y.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Vt(n);for(t=Y.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},Y.toArray=function(n){return n&&typeof n.length=="number"?s(n):dt(n)},Y.transform=function(n,t,e,r){var u=$e(n);return t=Y.createCallback(t,r,4),e==h&&(u?e=[]:(r=n&&n.constructor,e=ht(r&&r.prototype)?me(r&&r.prototype):{})),(u?Ct:d)(n,function(n,r,u){return t(e,n,r,u)}),e},Y.union=function(){return ut(tt(arguments,y,y))},Y.uniq=Rt,Y.values=dt,Y.where=jt,Y.without=function(n){return Nt(n,Ee.call(arguments,1))
},Y.wrap=function(n,t){return function(){var e=[n];return ve.apply(e,arguments),t.apply(this,e)}},Y.zip=Tt,Y.zipObject=qt,Y.collect=xt,Y.drop=Dt,Y.each=Ct,Y.extend=J,Y.methods=vt,Y.object=qt,Y.select=jt,Y.tail=Dt,Y.unique=Rt,Y.unzip=Tt,Mt(Y),Y.chain=Y,Y.prototype.chain=function(){return this},Y.clone=function(n,t,e,r){return typeof t!="boolean"&&t!=h&&(r=e,e=t,t=b),nt(n,t,typeof e=="function"&&Y.createCallback(e,r,1))},Y.cloneDeep=function(n,t,e){return nt(n,y,typeof t=="function"&&Y.createCallback(t,e,1))
},Y.contains=_t,Y.escape=function(n){return n==h?"":Zt(n).replace(Te,ot)},Y.every=kt,Y.find=wt,Y.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=Y.createCallback(t,e);++r<u;)if(t(n[r],r,n))return r;return-1},Y.findKey=function(n,t,e){var r;return t=Y.createCallback(t,e),d(n,function(n,e,u){return t(n,e,u)?(r=e,b):void 0}),r},Y.has=function(n,t){return n?se.call(n,t):b},Y.identity=Kt,Y.indexOf=Bt,Y.isArguments=st,Y.isArray=$e,Y.isBoolean=function(n){return n===y||n===false||he.call(n)==q},Y.isDate=function(n){return n?typeof n=="object"&&he.call(n)==z:b
},Y.isElement=function(n){return n?1===n.nodeType:b},Y.isEmpty=function(n){var t=y;if(!n)return t;var e=he.call(n),r=n.length;return e==T||e==U||e==R||e==K&&typeof r=="number"&&yt(n.splice)?!r:(d(n,function(){return t=b}),t)},Y.isEqual=function(n,t,e,r){return et(n,t,typeof e=="function"&&Y.createCallback(e,r,2))},Y.isFinite=function(n){return _e(n)&&!ke(parseFloat(n))},Y.isFunction=yt,Y.isNaN=function(n){return bt(n)&&n!=+n},Y.isNull=function(n){return n===h},Y.isNumber=bt,Y.isObject=ht,Y.isPlainObject=m,Y.isRegExp=function(n){return n?typeof n=="object"&&he.call(n)==M:b
},Y.isString=mt,Y.isUndefined=function(n){return typeof n=="undefined"},Y.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?we(0,r+e):Ce(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},Y.mixin=Mt,Y.noConflict=function(){return r._=re,this},Y.parseInt=qe,Y.random=function(n,t){n==h&&t==h&&(t=1),n=+n||0,t==h?(t=n,n=0):t=+t||0;var e=Oe();return n%1||t%1?n+Ce(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+le(e*(t-n+1))},Y.reduce=St,Y.reduceRight=At,Y.result=function(n,t){var e=n?n[t]:g;
return yt(e)?n[t]():e},Y.runInContext=v,Y.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Be(n).length},Y.some=It,Y.sortedIndex=Ft,Y.template=function(n,t,e){var r=Y.templateSettings;n||(n=""),e=H({},e,r);var u,a=H({},e.imports,r.imports),r=Be(a),a=dt(a),o=0,f=e.interpolate||$,l="__p+='",f=Yt((e.escape||$).source+"|"+f.source+"|"+(f===I?S:$).source+"|"+(e.evaluate||$).source+"|$","g");n.replace(f,function(t,e,r,a,f,c){return r||(r=a),l+=n.slice(o,c).replace(D,i),e&&(l+="'+__e("+e+")+'"),f&&(u=y,l+="';"+f+";__p+='"),r&&(l+="'+((__t=("+r+"))==null?'':__t)+'"),o=c+t.length,t
}),l+="';\n",f=e=e.variable,f||(e="obj",l="with("+e+"){"+l+"}"),l=(u?l.replace(x,""):l).replace(O,"$1").replace(E,"$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=Jt(r,"return "+l).apply(g,a)}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},Y.unescape=function(n){return n==h?"":Zt(n).replace(Re,pt)},Y.uniqueId=function(n){var t=++_;return Zt(n==h?"":n)+t
},Y.all=kt,Y.any=It,Y.detect=wt,Y.findWhere=wt,Y.foldl=St,Y.foldr=At,Y.include=_t,Y.inject=St,d(Y,function(n,t){Y.prototype[t]||(Y.prototype[t]=function(){var t=[this.__wrapped__];return ve.apply(t,arguments),n.apply(Y,t)})}),Y.first=$t,Y.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=h){var a=u;for(t=Y.createCallback(t,e);a--&&t(n[a],a,n);)r++}else if(r=t,r==h||e)return n[u-1];return s(n,we(0,u-r))}},Y.take=$t,Y.head=$t,d(Y,function(n,t){Y.prototype[t]||(Y.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);
return t==h||e&&typeof t!="function"?r:new Z(r)})}),Y.VERSION="1.3.1",Y.prototype.toString=function(){return Zt(this.__wrapped__)},Y.prototype.value=Ut,Y.prototype.valueOf=Ut,Ct(["join","pop","shift"],function(n){var t=te[n];Y.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),Ct(["push","reverse","sort","unshift"],function(n){var t=te[n];Y.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Ct(["concat","slice","splice"],function(n){var t=te[n];Y.prototype[n]=function(){return new Z(t.apply(this.__wrapped__,arguments))
}}),Y}var g,y=!0,h=null,b=!1,m=[],d=[],_=0,k=+new Date+"",j=75,w=40,C=" \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",x=/\b__p\+='';/g,O=/\b(__p\+=)''\+/g,E=/(__e\(.*?\)|\b__t\))\+'';/g,S=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,A=/\w*$/,I=/<%=([\s\S]+?)%>/g,N=RegExp("^["+C+"]*0+(?=.$)"),$=/($^)/,B=(B=/\bthis\b/)&&B.test(v)&&B,D=/['\n\r\t\u2028\u2029\\]/g,F="Array Boolean Date Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),R="[object Arguments]",T="[object Array]",q="[object Boolean]",z="[object Date]",W="[object Function]",P="[object Number]",K="[object Object]",M="[object RegExp]",U="[object String]",V={};
V[W]=b,V[R]=V[T]=V[q]=V[z]=V[P]=V[K]=V[M]=V[U]=y;var G={"boolean":b,"function":y,object:y,number:b,string:b,undefined:b},H={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},J=G[typeof exports]&&exports,L=G[typeof module]&&module&&module.exports==J&&module,Q=G[typeof global]&&global;!Q||Q.global!==Q&&Q.window!==Q||(n=Q);var X=v();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=X, define(function(){return X})):J&&!J.nodeType?L?(L.exports=X)._=X:J._=X:n._=X
}(this);

View File

@@ -77,7 +77,7 @@
/*--------------------------------------------------------------------------*/
/**
* A basic implementation of `_.indexOf` without support for binary searches
* A base implementation of `_.indexOf` without support for binary searches
* or `fromIndex` constraints.
*
* @private
@@ -86,7 +86,7 @@
* @param {Number} [fromIndex=0] The index to search from.
* @returns {Number} Returns the index of the matched value or `-1`.
*/
function basicIndexOf(array, value, fromIndex) {
function baseIndexOf(array, value, fromIndex) {
var index = (fromIndex || 0) - 1,
length = array ? array.length : 0;
@@ -173,6 +173,7 @@
/** Native method shortcuts */
var ceil = Math.ceil,
concat = arrayRef.concat,
floor = Math.floor,
hasOwnProperty = objectProto.hasOwnProperty,
push = arrayRef.push,
@@ -358,7 +359,7 @@
/*--------------------------------------------------------------------------*/
/**
* A basic implementation of `_.flatten` without support for `callback`
* A base implementation of `_.flatten` without support for `callback`
* shorthands or `thisArg` binding.
*
* @private
@@ -368,7 +369,7 @@
* @param {Number} [fromIndex=0] The index to start from.
* @returns {Array} Returns a new flattened array.
*/
function basicFlatten(array, isShallow, isArgArrays, fromIndex) {
function baseFlatten(array, isShallow, isArgArrays, fromIndex) {
var index = (fromIndex || 0) - 1,
length = array ? array.length : 0,
result = [];
@@ -377,7 +378,7 @@
var value = array[index];
// recursively flatten arrays (susceptible to call stack limits)
if (value && typeof value == 'object' && (isArray(value) || isArguments(value))) {
push.apply(result, isShallow ? value : basicFlatten(value, isShallow, isArgArrays));
push.apply(result, isShallow ? value : baseFlatten(value, isShallow, isArgArrays));
} else if (!isArgArrays) {
result.push(value);
}
@@ -386,7 +387,118 @@
}
/**
* A basic implementation of `_.uniq` without support for `callback` shorthands
* A base implementation of `_.isEqual`, without support for `thisArg` binding,
* that allows partial "_.where" style comparisons.
*
* @private
* @param {Mixed} a The value to compare.
* @param {Mixed} b The other value to compare.
* @param {Function} [callback] The function to customize comparing values.
* @param {Function} [isWhere=false] A flag to indicate performing partial comparisons.
* @param {Array} [stackA=[]] Tracks traversed `a` objects.
* @param {Array} [stackB=[]] Tracks traversed `b` objects.
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
*/
function baseIsEqual(a, b, stackA, stackB) {
if (a === b) {
return a !== 0 || (1 / a == 1 / b);
}
var type = typeof a,
otherType = typeof b;
if (a === a &&
!(a && objectTypes[type]) &&
!(b && objectTypes[otherType])) {
return false;
}
if (a == null || b == null) {
return a === b;
}
var className = toString.call(a),
otherClass = toString.call(b);
if (className != otherClass) {
return false;
}
switch (className) {
case boolClass:
case dateClass:
return +a == +b;
case numberClass:
return a != +a
? b != +b
: (a == 0 ? (1 / a == 1 / b) : a == +b);
case regexpClass:
case stringClass:
return a == String(b);
}
var isArr = className == arrayClass;
if (!isArr) {
if (a instanceof lodash || b instanceof lodash) {
return baseIsEqual(a.__wrapped__ || a, b.__wrapped__ || b, stackA, stackB);
}
if (className != objectClass) {
return false;
}
var ctorA = a.constructor,
ctorB = b.constructor;
if (ctorA != ctorB && !(
isFunction(ctorA) && ctorA instanceof ctorA &&
isFunction(ctorB) && ctorB instanceof ctorB
)) {
return false;
}
}
stackA || (stackA = []);
stackB || (stackB = []);
var length = stackA.length;
while (length--) {
if (stackA[length] == a) {
return stackB[length] == b;
}
}
var result = true,
size = 0;
stackA.push(a);
stackB.push(b);
if (isArr) {
size = b.length;
result = size == a.length;
if (result) {
while (size--) {
if (!(result = baseIsEqual(a[size], b[size], stackA, stackB))) {
break;
}
}
}
return result;
}
forIn(b, function(value, key, b) {
if (hasOwnProperty.call(b, key)) {
size++;
return !(result = hasOwnProperty.call(a, key) && baseIsEqual(a[key], value, stackA, stackB)) && indicatorObject;
}
});
if (result) {
forIn(a, function(value, key, a) {
if (hasOwnProperty.call(a, key)) {
return !(result = --size > -1) && indicatorObject;
}
});
}
return result;
}
/**
* A base implementation of `_.uniq` without support for `callback` shorthands
* or `thisArg` binding.
*
* @private
@@ -395,7 +507,7 @@
* @param {Function} [callback] The function called per iteration.
* @returns {Array} Returns a duplicate-value-free array.
*/
function basicUniq(array, isSorted, callback) {
function baseUniq(array, isSorted, callback) {
var index = -1,
indexOf = getIndexOf(),
length = array ? array.length : 0,
@@ -426,53 +538,56 @@
*
* @private
* @param {Function|String} func The function to bind or the method name.
* @param {Mixed} [thisArg] The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be partially applied.
* @param {Object} [idicator] Used to indicate binding by key or partially
* applying arguments from the right.
* @param {Mixed} thisArg The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be prepended to those passed to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those passed to the new function.
* @param {Boolean} [isPartial=false] A flag to indicate performing only partial application.
* @param {Boolean} [isAlt=false] A flag to indicate `_.bindKey` or `_.partialRight` behavior.
* @returns {Function} Returns the new bound function.
*/
function createBound(func, thisArg, partialArgs, indicator) {
var isFunc = isFunction(func),
isPartial = !partialArgs,
key = thisArg;
function createBound(func, thisArg, partialArgs, partialRightArgs, isPartial, isAlt) {
var isFunc = isFunction(func);
// juggle arguments
if (isPartial) {
var rightIndicator = indicator;
partialArgs = thisArg;
// except for `_.bindKey`, throw when `func` is not a function
if (!isFunc && (isPartial || !isAlt)) {
throw new TypeError;
}
else if (!isFunc) {
if (!indicator) {
throw new TypeError;
}
var key = thisArg;
// juggle arguments for `_.bindKey`
if (!isPartial && isAlt) {
thisArg = func;
}
// use `Function#bind` if it exists and is fast
// (in V8 `Function#bind` is slower except when partially applied)
if (!isPartial && !isAlt && (support.fastBind || (nativeBind && partialArgs.length))) {
var bound = nativeBind.call.apply(nativeBind, concat.call(arrayRef, func, thisArg, partialArgs));
}
else {
bound = function() {
// `Function#bind` spec
// http://es5.github.io/#x15.3.4.5
var args = arguments,
thisBinding = isPartial ? this : thisArg;
function bound() {
// `Function#bind` spec
// http://es5.github.io/#x15.3.4.5
var args = arguments,
thisBinding = isPartial ? this : thisArg;
if (!isFunc) {
func = thisArg[key];
}
if (partialArgs.length || partialRightArgs.length) {
args = concat.apply(partialArgs, args);
push.apply(args, partialRightArgs);
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
thisBinding = createObject(func.prototype);
if (!isFunc) {
func = thisArg[key];
}
if (partialArgs.length) {
args = args.length
? (args = nativeSlice.call(args), rightIndicator ? args.concat(partialArgs) : partialArgs.concat(args))
: partialArgs;
}
if (this instanceof bound) {
// ensure `new bound` is an instance of `func`
thisBinding = createObject(func.prototype);
// mimic the constructor's `return` behavior
// http://es5.github.io/#x13.2.2
var result = func.apply(thisBinding, args);
return isObject(result) ? result : thisBinding;
}
return func.apply(thisBinding, args);
// mimic the constructor's `return` behavior
// http://es5.github.io/#x13.2.2
var result = func.apply(thisBinding, args);
return isObject(result) ? result : thisBinding;
}
return func.apply(thisBinding, args);
};
}
return bound;
}
@@ -513,13 +628,13 @@
/**
* Gets the appropriate "indexOf" function. If the `_.indexOf` method is
* customized, this method returns the custom method, otherwise it returns
* the `basicIndexOf` function.
* the `baseIndexOf` function.
*
* @private
* @returns {Function} Returns the "indexOf" function.
*/
function getIndexOf() {
var result = (result = lodash.indexOf) === indexOf ? basicIndexOf : result;
var result = (result = lodash.indexOf) === indexOf ? baseIndexOf : result;
return result;
}
@@ -708,8 +823,6 @@
* @param {Boolean} [deep=false] A flag to indicate a deep clone.
* @param {Function} [callback] The function to customize cloning values.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @param- {Array} [stackA=[]] Tracks traversed source objects.
* @param- {Array} [stackB=[]] Associates clones with source counterparts.
* @returns {Mixed} Returns the cloned `value`.
* @example
*
@@ -780,10 +893,10 @@
}
/**
* Iterates over `object`'s own and inherited enumerable properties, executing
* the `callback` for each property. The `callback` is bound to `thisArg` and
* invoked with three arguments; (value, key, object). Callbacks may exit iteration
* early by explicitly returning `false`.
* Iterates over own and inherited enumerable properties of a given `object`,
* executing the `callback` for each property. The `callback` is bound to
* `thisArg` and invoked with three arguments; (value, key, object).
* Callbacks may exit iteration early by explicitly returning `false`.
*
* @static
* @memberOf _
@@ -819,10 +932,10 @@
};
/**
* Iterates over an object's own enumerable properties, executing the `callback`
* for each property. The `callback` is bound to `thisArg` and invoked with three
* arguments; (value, key, object). Callbacks may exit iteration early by explicitly
* returning `false`.
* Iterates over own enumerable properties of a given `object`, executing the
* `callback` for each property. The `callback` is bound to `thisArg` and
* invoked with three arguments; (value, key, object). Callbacks may exit
* iteration early by explicitly returning `false`.
*
* @static
* @memberOf _
@@ -1022,8 +1135,6 @@
* @param {Mixed} b The other value to compare.
* @param {Function} [callback] The function to customize comparing values.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @param- {Array} [stackA=[]] Tracks traversed `a` objects.
* @param- {Array} [stackB=[]] Tracks traversed `b` objects.
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
* @example
*
@@ -1048,102 +1159,8 @@
* });
* // => true
*/
function isEqual(a, b, stackA, stackB) {
if (a === b) {
return a !== 0 || (1 / a == 1 / b);
}
var type = typeof a,
otherType = typeof b;
if (a === a &&
!(a && objectTypes[type]) &&
!(b && objectTypes[otherType])) {
return false;
}
if (a == null || b == null) {
return a === b;
}
var className = toString.call(a),
otherClass = toString.call(b);
if (className != otherClass) {
return false;
}
switch (className) {
case boolClass:
case dateClass:
return +a == +b;
case numberClass:
return a != +a
? b != +b
: (a == 0 ? (1 / a == 1 / b) : a == +b);
case regexpClass:
case stringClass:
return a == String(b);
}
var isArr = className == arrayClass;
if (!isArr) {
if (a instanceof lodash || b instanceof lodash) {
return isEqual(a.__wrapped__ || a, b.__wrapped__ || b, stackA, stackB);
}
if (className != objectClass) {
return false;
}
var ctorA = a.constructor,
ctorB = b.constructor;
if (ctorA != ctorB && !(
isFunction(ctorA) && ctorA instanceof ctorA &&
isFunction(ctorB) && ctorB instanceof ctorB
)) {
return false;
}
}
stackA || (stackA = []);
stackB || (stackB = []);
var length = stackA.length;
while (length--) {
if (stackA[length] == a) {
return stackB[length] == b;
}
}
var result = true,
size = 0;
stackA.push(a);
stackB.push(b);
if (isArr) {
size = b.length;
result = size == a.length;
if (result) {
while (size--) {
if (!(result = isEqual(a[size], b[size], stackA, stackB))) {
break;
}
}
}
return result;
}
forIn(b, function(value, key, b) {
if (hasOwnProperty.call(b, key)) {
size++;
return !(result = hasOwnProperty.call(a, key) && isEqual(a[key], value, stackA, stackB)) && indicatorObject;
}
});
if (result) {
forIn(a, function(value, key, a) {
if (hasOwnProperty.call(a, key)) {
return !(result = --size > -1) && indicatorObject;
}
});
}
return result;
function isEqual(a, b) {
return baseIsEqual(a, b);
}
/**
@@ -1257,7 +1274,7 @@
function isNaN(value) {
// `NaN` as a primitive is the only value that is not equal to itself
// (perform the [[Class]] check first to avoid errors with some host objects in IE)
return isNumber(value) && value != +value
return isNumber(value) && value != +value;
}
/**
@@ -1378,7 +1395,7 @@
*/
function omit(object) {
var indexOf = getIndexOf(),
props = basicFlatten(arguments, true, false, 1),
props = baseFlatten(arguments, true, false, 1),
result = {};
forIn(object, function(value, key) {
@@ -1444,7 +1461,7 @@
*/
function pick(object) {
var index = -1,
props = basicFlatten(arguments, true, false, 1),
props = baseFlatten(arguments, true, false, 1),
length = props.length,
result = {};
@@ -1632,9 +1649,9 @@
}
/**
* Examines each element in a `collection`, returning an array of all elements
* the `callback` returns truthy for. The `callback` is bound to `thisArg` and
* invoked with three arguments; (value, index|key, collection).
* Iterates over elements of a `collection`, returning an array of all elements
* the `callback` returns truthy for. The `callback` is bound to `thisArg`
* and invoked with three arguments; (value, index|key, collection).
*
* If a property name is passed for `callback`, the created "_.pluck" style
* callback will return the property value of the given element.
@@ -1696,9 +1713,9 @@
}
/**
* Examines each element in a `collection`, returning the first that the `callback`
* returns truthy for. The `callback` is bound to `thisArg` and invoked with three
* arguments; (value, index|key, collection).
* Iterates over elements of a `collection`, returning the first that the
* `callback` returns truthy for. The `callback` is bound to `thisArg` and
* invoked with three arguments; (value, index|key, collection).
*
* If a property name is passed for `callback`, the created "_.pluck" style
* callback will return the property value of the given element.
@@ -1791,10 +1808,10 @@
}
/**
* Iterates over a `collection`, executing the `callback` for each element in
* the `collection`. The `callback` is bound to `thisArg` and invoked with three
* arguments; (value, index|key, collection). Callbacks may exit iteration early
* by explicitly returning `false`.
* Iterates over elements of a `collection`, executing the `callback` for
* each element. The `callback` is bound to `thisArg` and invoked with three
* arguments; (value, index|key, collection). Callbacks may exit iteration
* early by explicitly returning `false`.
*
* @static
* @memberOf _
@@ -2189,8 +2206,8 @@
}
/**
* This method is similar to `_.reduce`, except that it iterates over a
* `collection` from right to left.
* This method is similar to `_.reduce`, except that it iterates over elements
* of a `collection` from right to left.
*
* @static
* @memberOf _
@@ -2468,10 +2485,9 @@
}
/**
* Examines each element in a `collection`, returning an array of all elements
* that have the given `properties`. When checking `properties`, this method
* performs a deep comparison between values to determine if they are equivalent
* to each other.
* Performs a deep comparison of each element in a `collection` to the given
* `properties` object, returning an array of all elements that have equivalent
* property values.
*
* @static
* @memberOf _
@@ -2483,12 +2499,15 @@
* @example
*
* var stooges = [
* { 'name': 'moe', 'age': 40 },
* { 'name': 'larry', 'age': 50 }
* { 'name': 'curly', 'age': 30, 'quotes': ['Oh, a wise guy, eh?', 'Poifect!'] },
* { 'name': 'moe', 'age': '40', 'quotes': ['Spread out!', 'You knucklehead!'] }
* ];
*
* _.where(stooges, { 'age': 40 });
* // => [{ 'name': 'moe', 'age': 40 }]
* // => [{ 'name': 'moe', 'age': '40', 'quotes': ['Spread out!', 'You knucklehead!'] }]
*
* _.where(stooges, { 'quotes': ['Poifect!'] });
* // => [{ 'name': 'curly', 'age': 30, 'quotes': ['Oh, a wise guy, eh?', 'Poifect!'] }]
*/
function where(collection, properties, first) {
return (first && isEmpty(properties))
@@ -2545,7 +2564,7 @@
var index = -1,
indexOf = getIndexOf(),
length = array.length,
flattened = basicFlatten(arguments, true, true, 1),
flattened = baseFlatten(arguments, true, true, 1),
result = [];
while (++index < length) {
@@ -2677,7 +2696,7 @@
* // => ['Oh, a wise guy, eh?', 'Poifect!', 'Spread out!', 'You knucklehead!']
*/
function flatten(array, isShallow) {
return basicFlatten(array, isShallow);
return baseFlatten(array, isShallow);
}
/**
@@ -2712,7 +2731,7 @@
var index = sortedIndex(array, value);
return array[index] === value ? index : -1;
}
return array ? basicIndexOf(array, value, fromIndex) : -1;
return array ? baseIndexOf(array, value, fromIndex) : -1;
}
/**
@@ -3142,7 +3161,7 @@
* // => [1, 2, 3, 101, 10]
*/
function union(array) {
return basicUniq(basicFlatten(arguments, true, true));
return baseUniq(baseFlatten(arguments, true, true));
}
/**
@@ -3198,7 +3217,7 @@
if (callback != null) {
callback = createCallback(callback, thisArg);
}
return basicUniq(array, isSorted, callback);
return baseUniq(array, isSorted, callback);
}
/**
@@ -3274,7 +3293,7 @@
var key = keys[index];
if (values) {
result[key] = values[index];
} else {
} else if (key) {
result[key[0]] = key[1];
}
}
@@ -3333,11 +3352,7 @@
* // => 'hi moe'
*/
function bind(func, thisArg) {
// use `Function#bind` if it exists and is fast
// (in V8 `Function#bind` is slower except when partially applied)
return support.fastBind || (nativeBind && arguments.length > 2)
? nativeBind.call.apply(nativeBind, arguments)
: createBound(func, thisArg, nativeSlice.call(arguments, 2));
return createBound(func, thisArg, nativeSlice.call(arguments, 2), []);
}
/**
@@ -3365,7 +3380,7 @@
* // => alerts 'clicked docs', when the button is clicked
*/
function bindAll(object) {
var funcs = arguments.length > 1 ? basicFlatten(arguments, true, false, 1) : functions(object),
var funcs = arguments.length > 1 ? baseFlatten(arguments, true, false, 1) : functions(object),
index = -1,
length = funcs.length;
@@ -3469,6 +3484,7 @@
return function(object) {
var length = props.length,
result = false;
while (length--) {
if (!(result = object[props[length]] === func[props[length]])) {
break;
@@ -3746,7 +3762,7 @@
* // => 'hi moe'
*/
function partial(func) {
return createBound(func, nativeSlice.call(arguments, 1));
return createBound(func, null, nativeSlice.call(arguments, 1), [], true);
}
/**

View File

@@ -3,34 +3,33 @@
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
* Build: `lodash underscore exports="amd,commonjs,global,node" -o ./dist/lodash.underscore.js`
*/
;!function(n){function t(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function r(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function e(n){return"\\"+ct[n]}function u(){}function i(n){return n instanceof i?n:new o(n)}function o(n){this.__wrapped__=n}function a(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Dt(o)||g(o))?bt.apply(i,t?o:a(o,t,r)):r||i.push(o)
}return i}function f(n,t,r){for(var e=-1,u=s(),i=n?n.length:0,o=[],a=r?[]:o;++e<i;){var f=n[e],l=r?r(f,e,n):f;(t?!e||a[a.length-1]!==l:0>u(a,l))&&(r&&a.push(l),o.push(f))}return o}function l(n,t,r,e){function u(){var e=arguments,l=o?this:t;return i||(n=t[a]),r.length&&(e=e.length?(e=Rt.call(e),f?e.concat(r):r.concat(e)):r),this instanceof u?(l=c(n.prototype),e=n.apply(l,e),w(e)?e:l):n.apply(l,e)}var i=j(n),o=!r,a=t;if(o){var f=e;r=t}else if(!i){if(!e)throw new TypeError;t=n}return u}function c(n){return w(n)?xt(n):{}
}function p(n){return Mt[n]}function s(){var n=(n=i.indexOf)===z?t:n;return n}function v(n){return $t[n]}function g(n){return n&&typeof n=="object"?jt.call(n)==tt:!1}function h(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function y(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)"undefined"==typeof n[u]&&(n[u]=e[u])}return n}function m(n){var t=[];return zt(n,function(n,r){j(n)&&t.push(r)
}),t.sort()}function _(n){for(var t=-1,r=qt(n),e=r.length,u={};++t<e;){var i=r[t];u[n[i]]=i}return u}function d(n){if(!n)return!0;if(Dt(n)||A(n))return!n.length;for(var t in n)if(dt.call(n,t))return!1;return!0}function b(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!lt[typeof n])&&(!t||!lt[typeof t]))return!1;if(null==n||null==t)return n===t;var u=jt.call(n),o=jt.call(t);if(u!=o)return!1;switch(u){case et:case ut:return+n==+t;case it:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case at:case ft:return n==t+""
}if(o=u==rt,!o){if(n instanceof i||t instanceof i)return b(n.__wrapped__||n,t.__wrapped__||t,r,e);if(u!=ot)return!1;var u=n.constructor,a=t.constructor;if(u!=a&&(!j(u)||!(u instanceof u&&j(a)&&a instanceof a)))return!1}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;var f=!0,l=0;if(r.push(n),e.push(t),o){if(l=t.length,f=l==n.length)for(;l--&&(f=b(n[l],t[l],r,e)););return f}return zt(t,function(t,u,i){return dt.call(i,u)?(l++,!(f=dt.call(n,u)&&b(n[u],t,r,e))&&X):void 0}),f&&zt(n,function(n,t,r){return dt.call(r,t)?!(f=-1<--l)&&X:void 0
}),f}function j(n){return typeof n=="function"}function w(n){return!(!n||!lt[typeof n])}function x(n){return typeof n=="number"||jt.call(n)==it}function A(n){return typeof n=="string"||jt.call(n)==ft}function O(n){for(var t=-1,r=qt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];return u}function E(n,t){var r=s(),e=n?n.length:0,u=!1;return e&&typeof e=="number"?u=-1<r(n,t):Ct(n,function(n){return(u=n===t)&&X}),u}function T(n,t,r){var e=!0;t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&(e=!!t(n[r],r,n)););else Ct(n,function(n,r,u){return!(e=!!t(n,r,u))&&X
});return e}function S(n,t,r){var e=[];t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u;){var i=n[r];t(i,r,n)&&e.push(i)}else Ct(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function F(n,t,r){t=G(t,r),r=-1;var e=n?n.length:0;if(typeof e!="number"){var u;return Ct(n,function(n,r,e){return t(n,r,e)?(u=n,X):void 0}),u}for(;++r<e;){var i=n[r];if(t(i,r,n))return i}}function N(n,t,r){var e=-1,u=n?n.length:0;if(t=t&&typeof r=="undefined"?t:G(t,r),typeof u=="number")for(;++e<u&&t(n[e],e,n)!==X;);else Ct(n,t)
}function R(n,t,r){var e=-1,u=n?n.length:0;if(t=G(t,r),typeof u=="number")for(var i=Array(u);++e<u;)i[e]=t(n[e],e,n);else i=[],Ct(n,function(n,r,u){i[++e]=t(n,r,u)});return i}function B(n,t,r){var e=-1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=G(t,r),N(n,function(n,r,i){r=t(n,r,i),r>e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r>u&&(u=r);return u}function k(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(var u=Array(e);++r<e;)u[r]=n[r][t];return u||R(n,t)}function D(n,t,r,e){if(!n)return r;
var u=3>arguments.length;t=G(t,e,4);var i=-1,o=n.length;if(typeof o=="number")for(u&&(r=n[++i]);++i<o;)r=t(r,n[i],i,n);else Ct(n,function(n,e,i){r=u?(u=!1,n):t(r,n,e,i)});return r}function q(n,t,r,e){var u=n?n.length:0,i=3>arguments.length;if(typeof u!="number")var o=qt(n),u=o.length;return t=G(t,e,4),N(n,function(e,a,f){a=o?o[--u]:--u,r=i?(i=!1,n[a]):t(r,n[a],a,f)}),r}function M(n,t,r){var e;t=G(t,r),r=-1;var u=n?n.length:0;if(typeof u=="number")for(;++r<u&&!(e=t(n[r],r,n)););else Ct(n,function(n,r,u){return(e=t(n,r,u))&&X
});return!!e}function $(n,t,r){return r&&d(t)?L:(r?F:S)(n,t)}function I(n){for(var t=-1,r=s(),e=n.length,u=a(arguments,!0,!0,1),i=[];++t<e;){var o=n[t];0>r(u,o)&&i.push(o)}return i}function W(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=-1;for(t=G(t,r);++i<u&&t(n[i],i,n);)e++}else if(e=t,null==e||r)return n[0];return Rt.call(n,0,Ft(St(0,e),u))}}function z(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?St(0,u+e):e||0}else if(e)return e=P(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1
}function C(n,t,r){if(typeof t!="number"&&null!=t){var e=0,u=-1,i=n?n.length:0;for(t=G(t,r);++u<i&&t(n[u],u,n);)e++}else e=null==t||r?1:St(0,t);return Rt.call(n,e)}function P(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?G(r,e,1):J,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;return u}function U(n,t,r,e){return typeof t!="boolean"&&null!=t&&(e=r,r=e&&e[t]===n?L:t,t=!1),null!=r&&(r=G(r,e)),f(n,t,r)}function V(n,t){return kt.fastBind||wt&&2<arguments.length?wt.call.apply(wt,arguments):l(n,t,Rt.call(arguments,2))
}function G(n,t,r){if(null==n)return J;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=qt(n);return function(t){for(var r=u.length,e=!1;r--&&(e=t[u[r]]===n[u[r]]););return e}}return typeof t=="undefined"?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,i){return n.call(t,r,e,u,i)}:function(r,e,u){return n.call(t,r,e,u)}}function H(n,t,r){function e(){clearTimeout(s),clearTimeout(v),l=0,s=v=null}function u(){var t=g&&(!h||1<l);
e(),t&&(false!==p&&(c=new Date),a=n.apply(f,o))}function i(){e(),(g||p!==t)&&(c=new Date,a=n.apply(f,o))}var o,a,f,l=0,c=0,p=!1,s=null,v=null,g=!0;if(t=St(0,t||0),true===r)var h=!0,g=!1;else w(r)&&(h=r.leading,p="maxWait"in r&&St(t,r.maxWait||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,f=this,l++,clearTimeout(v),false===p)h&&2>l&&(a=n.apply(f,o));else{var r=new Date;!s&&!h&&(c=r);var e=p-(r-c);0<e?s||(s=setTimeout(i,e)):(clearTimeout(s),s=null,c=r,a=n.apply(f,o))}return t!==p&&(v=setTimeout(u,t)),a
}}function J(n){return n}function K(n){N(m(n),function(t){var r=i[t]=n[t];i.prototype[t]=function(){var n=[this.__wrapped__];return bt.apply(n,arguments),n=r.apply(i,n),this.__chain__&&(n=new o(n),n.__chain__=!0),n}})}var L,Q=0,X={},Y=+new Date+"",Z=/($^)/,nt=/['\n\r\t\u2028\u2029\\]/g,tt="[object Arguments]",rt="[object Array]",et="[object Boolean]",ut="[object Date]",it="[object Number]",ot="[object Object]",at="[object RegExp]",ft="[object String]",lt={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},ct={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},pt=lt[typeof exports]&&exports,st=lt[typeof module]&&module&&module.exports==pt&&module,vt=lt[typeof global]&&global;
!vt||vt.global!==vt&&vt.window!==vt||(n=vt);var gt=[],vt=Object.prototype,ht=n._,yt=RegExp("^"+(vt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),mt=Math.ceil,_t=Math.floor,dt=vt.hasOwnProperty,bt=gt.push,jt=vt.toString,wt=yt.test(wt=jt.bind)&&wt,xt=yt.test(xt=Object.create)&&xt,At=yt.test(At=Array.isArray)&&At,Ot=n.isFinite,Et=n.isNaN,Tt=yt.test(Tt=Object.keys)&&Tt,St=Math.max,Ft=Math.min,Nt=Math.random,Rt=gt.slice,vt=yt.test(n.attachEvent),Bt=wt&&!/\n|true/.test(wt+vt);
o.prototype=i.prototype;var kt={};!function(){var n={0:1,length:1};kt.fastBind=wt&&!Bt,kt.spliceObjects=(gt.splice.call(n,0,1),!n[0])}(1),i.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},xt||(c=function(n){if(w(n)){u.prototype=n;var t=new u;u.prototype=null}return t||{}}),g(arguments)||(g=function(n){return n&&typeof n=="object"?dt.call(n,"callee"):!1});var Dt=At||function(n){return n&&typeof n=="object"?jt.call(n)==rt:!1},At=function(n){var t,r=[];
if(!n||!lt[typeof n])return r;for(t in n)dt.call(n,t)&&r.push(t);return r},qt=Tt?function(n){return w(n)?Tt(n):[]}:At,Mt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},$t=_(Mt),It=RegExp("("+qt($t).join("|")+")","g"),Wt=RegExp("["+qt(Mt).join("")+"]","g"),zt=function(n,t){var r;if(!n||!lt[typeof n])return n;for(r in n)if(t(n[r],r,n)===X)break;return n},Ct=function(n,t){var r;if(!n||!lt[typeof n])return n;for(r in n)if(dt.call(n,r)&&t(n[r],r,n)===X)break;return n};j(/x/)&&(j=function(n){return typeof n=="function"&&"[object Function]"==jt.call(n)
}),i.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},i.bind=V,i.bindAll=function(n){for(var t=1<arguments.length?a(arguments,!0,!1,1):m(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=V(n[u],n)}return n},i.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},i.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},i.countBy=function(n,t,r){var e={};return t=G(t,r),N(n,function(n,r,u){r=t(n,r,u)+"",dt.call(e,r)?e[r]++:e[r]=1
}),e},i.debounce=H,i.defaults=y,i.defer=function(n){var t=Rt.call(arguments,1);return setTimeout(function(){n.apply(L,t)},1)},i.delay=function(n,t){var r=Rt.call(arguments,2);return setTimeout(function(){n.apply(L,r)},t)},i.difference=I,i.filter=S,i.flatten=function(n,t){return a(n,t)},i.forEach=N,i.functions=m,i.groupBy=function(n,t,r){var e={};return t=G(t,r),N(n,function(n,r,u){r=t(n,r,u)+"",(dt.call(e,r)?e[r]:e[r]=[]).push(n)}),e},i.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=u;
for(t=G(t,r);i--&&t(n[i],i,n);)e++}else e=null==t||r?1:t||e;return Rt.call(n,0,Ft(St(0,u-e),u))},i.intersection=function(n){var t=arguments,r=t.length,e=-1,u=s(),i=n?n.length:0,o=[];n:for(;++e<i;){var a=n[e];if(0>u(o,a)){for(var f=r;--f;)if(0>u(t[f],a))continue n;o.push(a)}}return o},i.invert=_,i.invoke=function(n,t){var r=Rt.call(arguments,2),e=-1,u=typeof t=="function",i=n?n.length:0,o=Array(typeof i=="number"?i:0);return N(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},i.keys=qt,i.map=R,i.max=B,i.memoize=function(n,t){var r={};
return function(){var e=Y+(t?t.apply(this,arguments):arguments[0]);return dt.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},i.min=function(n,t,r){var e=1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=G(t,r),N(n,function(n,r,i){r=t(n,r,i),r<e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r<u&&(u=r);return u},i.omit=function(n){var t=s(),r=a(arguments,!0,!1,1),e={};return zt(n,function(n,u){0>t(r,u)&&(e[u]=n)}),e},i.once=function(n){var t,r;return function(){return t?r:(t=!0,r=n.apply(this,arguments),n=null,r)
}},i.pairs=function(n){for(var t=-1,r=qt(n),e=r.length,u=Array(e);++t<e;){var i=r[t];u[t]=[i,n[i]]}return u},i.partial=function(n){return l(n,Rt.call(arguments,1))},i.pick=function(n){for(var t=-1,r=a(arguments,!0,!1,1),e=r.length,u={};++t<e;){var i=r[t];i in n&&(u[i]=n[i])}return u},i.pluck=k,i.range=function(n,t,r){n=+n||0,r=+r||1,null==t&&(t=n,n=0);var e=-1;t=St(0,mt((t-n)/r));for(var u=Array(t);++e<t;)u[e]=n,n+=r;return u},i.reject=function(n,t,r){return t=G(t,r),S(n,function(n,r,e){return!t(n,r,e)
})},i.rest=C,i.shuffle=function(n){var t=-1,r=n?n.length:0,e=Array(typeof r=="number"?r:0);return N(n,function(n){var r=_t(Nt()*(++t+1));e[t]=e[r],e[r]=n}),e},i.sortBy=function(n,t,e){var u=-1,i=n?n.length:0,o=Array(typeof i=="number"?i:0);for(t=G(t,e),N(n,function(n,r,e){o[++u]={l:t(n,r,e),m:u,n:n}}),i=o.length,o.sort(r);i--;)o[i]=o[i].n;return o},i.tap=function(n,t){return t(n),n},i.throttle=function(n,t,r){var e=!0,u=!0;return false===r?e=!1:w(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r={},r.leading=e,r.maxWait=t,r.trailing=u,H(n,t,r)
},i.times=function(n,t,r){for(var e=-1,u=Array(-1<n?n:0);++e<n;)u[e]=t.call(r,e);return u},i.toArray=function(n){return Dt(n)?Rt.call(n):n&&typeof n.length=="number"?R(n):O(n)},i.union=function(){return f(a(arguments,!0,!0))},i.uniq=U,i.values=O,i.where=$,i.without=function(n){return I(n,Rt.call(arguments,1))},i.wrap=function(n,t){return function(){var r=[n];return bt.apply(r,arguments),t.apply(this,r)}},i.zip=function(){for(var n=-1,t=B(k(arguments,"length")),r=Array(0>t?0:t);++n<t;)r[n]=k(arguments,n);
return r},i.collect=R,i.drop=C,i.each=N,i.extend=h,i.methods=m,i.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:u[i[0]]=i[1]}return u},i.select=S,i.tail=C,i.unique=U,i.chain=function(n){return n=new o(n),n.__chain__=!0,n},i.clone=function(n){return w(n)?Dt(n)?Rt.call(n):h({},n):n},i.contains=E,i.escape=function(n){return null==n?"":(n+"").replace(Wt,p)},i.every=T,i.find=F,i.has=function(n,t){return n?dt.call(n,t):!1},i.identity=J,i.indexOf=z,i.isArguments=g,i.isArray=Dt,i.isBoolean=function(n){return true===n||false===n||jt.call(n)==et
},i.isDate=function(n){return n?typeof n=="object"&&jt.call(n)==ut:!1},i.isElement=function(n){return n?1===n.nodeType:!1},i.isEmpty=d,i.isEqual=b,i.isFinite=function(n){return Ot(n)&&!Et(parseFloat(n))},i.isFunction=j,i.isNaN=function(n){return x(n)&&n!=+n},i.isNull=function(n){return null===n},i.isNumber=x,i.isObject=w,i.isRegExp=function(n){return n&&lt[typeof n]?jt.call(n)==at:!1},i.isString=A,i.isUndefined=function(n){return typeof n=="undefined"},i.lastIndexOf=function(n,t,r){var e=n?n.length:0;
for(typeof r=="number"&&(e=(0>r?St(0,e+r):Ft(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},i.mixin=K,i.noConflict=function(){return n._=ht,this},i.random=function(n,t){null==n&&null==t&&(t=1),n=+n||0,null==t?(t=n,n=0):t=+t||0;var r=Nt();return n%1||t%1?n+Ft(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+_t(r*(t-n+1))},i.reduce=D,i.reduceRight=q,i.result=function(n,t){var r=n?n[t]:L;return j(r)?n[t]():r},i.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:qt(n).length},i.some=M,i.sortedIndex=P,i.template=function(n,t,r){var u=i.templateSettings;
n||(n=""),r=y({},r,u);var o=0,a="__p+='",u=r.variable;n.replace(RegExp((r.escape||Z).source+"|"+(r.interpolate||Z).source+"|"+(r.evaluate||Z).source+"|$","g"),function(t,r,u,i,f){return a+=n.slice(o,f).replace(nt,e),r&&(a+="'+_['escape']("+r+")+'"),i&&(a+="';"+i+";__p+='"),u&&(a+="'+((__t=("+u+"))==null?'':__t)+'"),o=f+t.length,t}),a+="';\n",u||(u="obj",a="with("+u+"||{}){"+a+"}"),a="function("+u+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}";
try{var f=Function("_","return "+a)(i)}catch(l){throw l.source=a,l}return t?f(t):(f.source=a,f)},i.unescape=function(n){return null==n?"":(n+"").replace(It,v)},i.uniqueId=function(n){var t=++Q+"";return n?n+t:t},i.all=T,i.any=M,i.detect=F,i.findWhere=function(n,t){return $(n,t,!0)},i.foldl=D,i.foldr=q,i.include=E,i.inject=D,i.first=W,i.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&null!=t){var i=u;for(t=G(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,null==e||r)return n[u-1];return Rt.call(n,St(0,u-e))
}},i.take=W,i.head=W,i.VERSION="1.3.1",K(i),i.prototype.chain=function(){return this.__chain__=!0,this},i.prototype.value=function(){return this.__wrapped__},N("pop push reverse shift sort splice unshift".split(" "),function(n){var t=gt[n];i.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!kt.spliceObjects&&0===n.length&&delete n[0],this}}),N(["concat","join","slice"],function(n){var t=gt[n];i.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new o(n),n.__chain__=!0),n
}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=i, define(function(){return i})):pt&&!pt.nodeType?st?(st.exports=i)._=i:pt._=i:n._=i}(this);
;!function(n){function t(n,t){var r;if(n&&ht[typeof n])for(r in n)if(Et.call(n,r)&&t(n[r],r,n)===et)break}function r(n,t){var r;if(n&&ht[typeof n])for(r in n)if(t(n[r],r,n)===et)break}function e(n){var t,r=[];if(!n||!ht[typeof n])return r;for(t in n)Et.call(n,t)&&r.push(t);return r}function u(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function i(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
}return r<e?-1:1}function o(n){return"\\"+yt[n]}function a(){}function f(n){return n instanceof f?n:new c(n)}function c(n){this.__wrapped__=n}function l(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Ct(o)||_(o))?Tt.apply(i,t?o:l(o,t,r)):r||i.push(o)}return i}function p(n,t,e,u){if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!ht[typeof n])&&(!t||!ht[typeof t]))return tt;if(n==nt||t==nt)return n===t;var i=St.call(n),o=St.call(t);if(i!=o)return tt;switch(i){case ct:case lt:return+n==+t;
case pt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case vt:case gt:return n==t+""}if(o=i==ft,!o){if(n instanceof f||t instanceof f)return p(n.__wrapped__||n,t.__wrapped__||t,e,u);if(i!=st)return tt;var i=n.constructor,a=t.constructor;if(i!=a&&(!A(i)||!(i instanceof i&&A(a)&&a instanceof a)))return tt}for(e||(e=[]),u||(u=[]),i=e.length;i--;)if(e[i]==n)return u[i]==t;var c=Z,l=0;if(e.push(n),u.push(t),o){if(l=t.length,c=l==n.length)for(;l--&&(c=p(n[l],t[l],e,u)););return c}return r(t,function(t,r,i){return Et.call(i,r)?(l++,!(c=Et.call(n,r)&&p(n[r],t,e,u))&&et):void 0
}),c&&r(n,function(n,t,r){return Et.call(r,t)?!(c=-1<--l)&&et:void 0}),c}function s(n,t,r){for(var e=-1,u=y(),i=n?n.length:0,o=[],a=r?[]:o;++e<i;){var f=n[e],c=r?r(f,e,n):f;(t?!e||a[a.length-1]!==c:0>u(a,c))&&(r&&a.push(c),o.push(f))}return o}function v(n,t,r,e){var u=[],i=A(n);if(!i)throw new TypeError;var o=!e&&(zt.fastBind||Ft&&r.length)?Ft.call.apply(Ft,At.call(bt,n,t,r)):function(){var a=arguments,f=e?this:t;return i||(n=t[t]),(r.length||u.length)&&(a=At.apply(r,a),Tt.apply(a,u)),this instanceof o?(f=g(n.prototype),a=n.apply(f,a),O(a)?a:f):n.apply(f,a)
};return o}function g(n){return O(n)?Nt(n):{}}function h(n){return Ut[n]}function y(){var n=(n=f.indexOf)===U?u:n;return n}function m(n){return Vt[n]}function _(n){return n&&typeof n=="object"?St.call(n)==at:tt}function d(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function b(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)"undefined"==typeof n[u]&&(n[u]=e[u])}return n}function j(n){var t=[];
return r(n,function(n,r){A(n)&&t.push(r)}),t.sort()}function w(n){for(var t=-1,r=Pt(n),e=r.length,u={};++t<e;){var i=r[t];u[n[i]]=i}return u}function x(n){if(!n)return Z;if(Ct(n)||T(n))return!n.length;for(var t in n)if(Et.call(n,t))return tt;return Z}function A(n){return typeof n=="function"}function O(n){return!(!n||!ht[typeof n])}function E(n){return typeof n=="number"||St.call(n)==pt}function T(n){return typeof n=="string"||St.call(n)==gt}function S(n){for(var t=-1,r=Pt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];
return u}function F(n,r){var e=y(),u=n?n.length:0,i=tt;return u&&typeof u=="number"?i=-1<e(n,r):t(n,function(n){return(i=n===r)&&et}),i}function N(n,r,e){var u=Z;r=K(r,e),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i&&(u=!!r(n[e],e,n)););else t(n,function(n,t,e){return!(u=!!r(n,t,e))&&et});return u}function R(n,r,e){var u=[];r=K(r,e),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i;){var o=n[e];r(o,e,n)&&u.push(o)}else t(n,function(n,t,e){r(n,t,e)&&u.push(n)});return u}function k(n,r,e){r=K(r,e),e=-1;
var u=n?n.length:0;if(typeof u!="number"){var i;return t(n,function(n,t,e){return r(n,t,e)?(i=n,et):void 0}),i}for(;++e<u;){var o=n[e];if(r(o,e,n))return o}}function B(n,r,e){var u=-1,i=n?n.length:0;if(r=r&&typeof e=="undefined"?r:K(r,e),typeof i=="number")for(;++u<i&&r(n[u],u,n)!==et;);else t(n,r)}function D(n,r,e){var u=-1,i=n?n.length:0;if(r=K(r,e),typeof i=="number")for(var o=Array(i);++u<i;)o[u]=r(n[u],u,n);else o=[],t(n,function(n,t,e){o[++u]=r(n,t,e)});return o}function q(n,t,r){var e=-1/0,u=e,i=-1,o=n?n.length:0;
if(t||typeof o!="number")t=K(t,r),B(n,function(n,r,i){r=t(n,r,i),r>e&&(e=r,u=n)});else for(;++i<o;)r=n[i],r>u&&(u=r);return u}function M(n,t){var r=-1,e=n?n.length:0;if(typeof e=="number")for(var u=Array(e);++r<e;)u[r]=n[r][t];return u||D(n,t)}function $(n,r,e,u){if(!n)return e;var i=3>arguments.length;r=K(r,u,4);var o=-1,a=n.length;if(typeof a=="number")for(i&&(e=n[++o]);++o<a;)e=r(e,n[o],o,n);else t(n,function(n,t,u){e=i?(i=tt,n):r(e,n,t,u)});return e}function I(n,t,r,e){var u=n?n.length:0,i=3>arguments.length;
if(typeof u!="number")var o=Pt(n),u=o.length;return t=K(t,e,4),B(n,function(e,a,f){a=o?o[--u]:--u,r=i?(i=tt,n[a]):t(r,n[a],a,f)}),r}function W(n,r,e){var u;r=K(r,e),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i&&!(u=r(n[e],e,n)););else t(n,function(n,t,e){return(u=r(n,t,e))&&et});return!!u}function z(n,t,r){return r&&x(t)?Y:(r?k:R)(n,t)}function C(n){for(var t=-1,r=y(),e=n.length,u=l(arguments,Z,Z,1),i=[];++t<e;){var o=n[t];0>r(u,o)&&i.push(o)}return i}function P(n,t,r){if(n){var e=0,u=n.length;
if(typeof t!="number"&&t!=nt){var i=-1;for(t=K(t,r);++i<u&&t(n[i],i,n);)e++}else if(e=t,e==nt||r)return n[0];return It.call(n,0,Mt(qt(0,e),u))}}function U(n,t,r){if(typeof r=="number"){var e=n?n.length:0;r=0>r?qt(0,e+r):r||0}else if(r)return r=G(n,t),n[r]===t?r:-1;return n?u(n,t,r):-1}function V(n,t,r){if(typeof t!="number"&&t!=nt){var e=0,u=-1,i=n?n.length:0;for(t=K(t,r);++u<i&&t(n[u],u,n);)e++}else e=t==nt||r?1:qt(0,t);return It.call(n,e)}function G(n,t,r,e){var u=0,i=n?n.length:u;for(r=r?K(r,e,1):Q,t=r(t);u<i;)e=u+i>>>1,r(n[e])<t?u=e+1:i=e;
return u}function H(n,t,r,e){return typeof t!="boolean"&&t!=nt&&(e=r,r=e&&e[t]===n?Y:t,t=tt),r!=nt&&(r=K(r,e)),s(n,t,r)}function J(n,t){return v(n,t,It.call(arguments,2))}function K(n,t,r){if(n==nt)return Q;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Pt(n);return function(t){for(var r=u.length,e=tt;r--&&(e=t[u[r]]===n[u[r]]););return e}}return typeof t=="undefined"?n:1===r?function(r){return n.call(t,r)}:2===r?function(r,e){return n.call(t,r,e)}:4===r?function(r,e,u,i){return n.call(t,r,e,u,i)
}:function(r,e,u){return n.call(t,r,e,u)}}function L(n,t,r){function e(){clearTimeout(s),clearTimeout(v),c=0,s=v=nt}function u(){var t=g&&(!h||1<c);e(),t&&(p!==tt&&(l=new Date),a=n.apply(f,o))}function i(){e(),(g||p!==t)&&(l=new Date,a=n.apply(f,o))}var o,a,f,c=0,l=0,p=tt,s=nt,v=nt,g=Z;if(t=qt(0,t||0),r===Z)var h=Z,g=tt;else O(r)&&(h=r.leading,p="maxWait"in r&&qt(t,r.maxWait||0),g="trailing"in r?r.trailing:g);return function(){if(o=arguments,f=this,c++,clearTimeout(v),p===tt)h&&2>c&&(a=n.apply(f,o));
else{var r=new Date;!s&&!h&&(l=r);var e=p-(r-l);0<e?s||(s=setTimeout(i,e)):(clearTimeout(s),s=nt,l=r,a=n.apply(f,o))}return t!==p&&(v=setTimeout(u,t)),a}}function Q(n){return n}function X(n){B(j(n),function(t){var r=f[t]=n[t];f.prototype[t]=function(){var n=[this.__wrapped__];return Tt.apply(n,arguments),n=r.apply(f,n),this.__chain__&&(n=new c(n),n.__chain__=Z),n}})}var Y,Z=!0,nt=null,tt=!1,rt=0,et={},ut=+new Date+"",it=/($^)/,ot=/['\n\r\t\u2028\u2029\\]/g,at="[object Arguments]",ft="[object Array]",ct="[object Boolean]",lt="[object Date]",pt="[object Number]",st="[object Object]",vt="[object RegExp]",gt="[object String]",ht={"boolean":tt,"function":Z,object:Z,number:tt,string:tt,undefined:tt},yt={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},mt=ht[typeof exports]&&exports,_t=ht[typeof module]&&module&&module.exports==mt&&module,dt=ht[typeof global]&&global;
!dt||dt.global!==dt&&dt.window!==dt||(n=dt);var bt=[],dt=Object.prototype,jt=n._,wt=RegExp("^"+(dt.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),xt=Math.ceil,At=bt.concat,Ot=Math.floor,Et=dt.hasOwnProperty,Tt=bt.push,St=dt.toString,Ft=wt.test(Ft=St.bind)&&Ft,Nt=wt.test(Nt=Object.create)&&Nt,Rt=wt.test(Rt=Array.isArray)&&Rt,kt=n.isFinite,Bt=n.isNaN,Dt=wt.test(Dt=Object.keys)&&Dt,qt=Math.max,Mt=Math.min,$t=Math.random,It=bt.slice,dt=wt.test(n.attachEvent),Wt=Ft&&!/\n|true/.test(Ft+dt);
c.prototype=f.prototype;var zt={};!function(){var n={0:1,length:1};zt.fastBind=Ft&&!Wt,zt.spliceObjects=(bt.splice.call(n,0,1),!n[0])}(1),f.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},Nt||(g=function(n){if(O(n)){a.prototype=n;var t=new a;a.prototype=nt}return t||{}}),_(arguments)||(_=function(n){return n&&typeof n=="object"?Et.call(n,"callee"):tt});var Ct=Rt||function(n){return n&&typeof n=="object"?St.call(n)==ft:tt},Pt=Dt?function(n){return O(n)?Dt(n):[]
}:e,Ut={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"},Vt=w(Ut),Gt=RegExp("("+Pt(Vt).join("|")+")","g"),Ht=RegExp("["+Pt(Ut).join("")+"]","g");A(/x/)&&(A=function(n){return typeof n=="function"&&"[object Function]"==St.call(n)}),f.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},f.bind=J,f.bindAll=function(n){for(var t=1<arguments.length?l(arguments,Z,tt,1):j(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=J(n[u],n)}return n},f.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];
u&&e.push(u)}return e},f.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},f.countBy=function(n,t,r){var e={};return t=K(t,r),B(n,function(n,r,u){r=t(n,r,u)+"",Et.call(e,r)?e[r]++:e[r]=1}),e},f.debounce=L,f.defaults=b,f.defer=function(n){var t=It.call(arguments,1);return setTimeout(function(){n.apply(Y,t)},1)},f.delay=function(n,t){var r=It.call(arguments,2);return setTimeout(function(){n.apply(Y,r)},t)},f.difference=C,f.filter=R,f.flatten=function(n,t){return l(n,t)
},f.forEach=B,f.functions=j,f.groupBy=function(n,t,r){var e={};return t=K(t,r),B(n,function(n,r,u){r=t(n,r,u)+"",(Et.call(e,r)?e[r]:e[r]=[]).push(n)}),e},f.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=nt){var i=u;for(t=K(t,r);i--&&t(n[i],i,n);)e++}else e=t==nt||r?1:t||e;return It.call(n,0,Mt(qt(0,u-e),u))},f.intersection=function(n){var t=arguments,r=t.length,e=-1,u=y(),i=n?n.length:0,o=[];n:for(;++e<i;){var a=n[e];if(0>u(o,a)){for(var f=r;--f;)if(0>u(t[f],a))continue n;
o.push(a)}}return o},f.invert=w,f.invoke=function(n,t){var r=It.call(arguments,2),e=-1,u=typeof t=="function",i=n?n.length:0,o=Array(typeof i=="number"?i:0);return B(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},f.keys=Pt,f.map=D,f.max=q,f.memoize=function(n,t){var r={};return function(){var e=ut+(t?t.apply(this,arguments):arguments[0]);return Et.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},f.min=function(n,t,r){var e=1/0,u=e,i=-1,o=n?n.length:0;if(t||typeof o!="number")t=K(t,r),B(n,function(n,r,i){r=t(n,r,i),r<e&&(e=r,u=n)
});else for(;++i<o;)r=n[i],r<u&&(u=r);return u},f.omit=function(n){var t=y(),e=l(arguments,Z,tt,1),u={};return r(n,function(n,r){0>t(e,r)&&(u[r]=n)}),u},f.once=function(n){var t,r;return function(){return t?r:(t=Z,r=n.apply(this,arguments),n=nt,r)}},f.pairs=function(n){for(var t=-1,r=Pt(n),e=r.length,u=Array(e);++t<e;){var i=r[t];u[t]=[i,n[i]]}return u},f.partial=function(n){return v(n,nt,It.call(arguments,1),Z)},f.pick=function(n){for(var t=-1,r=l(arguments,Z,tt,1),e=r.length,u={};++t<e;){var i=r[t];
i in n&&(u[i]=n[i])}return u},f.pluck=M,f.range=function(n,t,r){n=+n||0,r=+r||1,t==nt&&(t=n,n=0);var e=-1;t=qt(0,xt((t-n)/r));for(var u=Array(t);++e<t;)u[e]=n,n+=r;return u},f.reject=function(n,t,r){return t=K(t,r),R(n,function(n,r,e){return!t(n,r,e)})},f.rest=V,f.shuffle=function(n){var t=-1,r=n?n.length:0,e=Array(typeof r=="number"?r:0);return B(n,function(n){var r=Ot($t()*(++t+1));e[t]=e[r],e[r]=n}),e},f.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Array(typeof u=="number"?u:0);for(t=K(t,r),B(n,function(n,r,u){o[++e]={l:t(n,r,u),m:e,n:n}
}),u=o.length,o.sort(i);u--;)o[u]=o[u].n;return o},f.tap=function(n,t){return t(n),n},f.throttle=function(n,t,r){var e=Z,u=Z;return r===tt?e=tt:O(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r={},r.leading=e,r.maxWait=t,r.trailing=u,L(n,t,r)},f.times=function(n,t,r){for(var e=-1,u=Array(-1<n?n:0);++e<n;)u[e]=t.call(r,e);return u},f.toArray=function(n){return Ct(n)?It.call(n):n&&typeof n.length=="number"?D(n):S(n)},f.union=function(){return s(l(arguments,Z,Z))},f.uniq=H,f.values=S,f.where=z,f.without=function(n){return C(n,It.call(arguments,1))
},f.wrap=function(n,t){return function(){var r=[n];return Tt.apply(r,arguments),t.apply(this,r)}},f.zip=function(){for(var n=-1,t=q(M(arguments,"length")),r=Array(0>t?0:t);++n<t;)r[n]=M(arguments,n);return r},f.collect=D,f.drop=V,f.each=B,f.extend=d,f.methods=j,f.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:i&&(u[i[0]]=i[1])}return u},f.select=R,f.tail=V,f.unique=H,f.chain=function(n){return n=new c(n),n.__chain__=Z,n},f.clone=function(n){return O(n)?Ct(n)?It.call(n):d({},n):n
},f.contains=F,f.escape=function(n){return n==nt?"":(n+"").replace(Ht,h)},f.every=N,f.find=k,f.has=function(n,t){return n?Et.call(n,t):tt},f.identity=Q,f.indexOf=U,f.isArguments=_,f.isArray=Ct,f.isBoolean=function(n){return n===Z||n===tt||St.call(n)==ct},f.isDate=function(n){return n?typeof n=="object"&&St.call(n)==lt:tt},f.isElement=function(n){return n?1===n.nodeType:tt},f.isEmpty=x,f.isEqual=function(n,t){return p(n,t)},f.isFinite=function(n){return kt(n)&&!Bt(parseFloat(n))},f.isFunction=A,f.isNaN=function(n){return E(n)&&n!=+n
},f.isNull=function(n){return n===nt},f.isNumber=E,f.isObject=O,f.isRegExp=function(n){return n&&ht[typeof n]?St.call(n)==vt:tt},f.isString=T,f.isUndefined=function(n){return typeof n=="undefined"},f.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?qt(0,e+r):Mt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},f.mixin=X,f.noConflict=function(){return n._=jt,this},f.random=function(n,t){n==nt&&t==nt&&(t=1),n=+n||0,t==nt?(t=n,n=0):t=+t||0;var r=$t();return n%1||t%1?n+Mt(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+Ot(r*(t-n+1))
},f.reduce=$,f.reduceRight=I,f.result=function(n,t){var r=n?n[t]:Y;return A(r)?n[t]():r},f.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Pt(n).length},f.some=W,f.sortedIndex=G,f.template=function(n,t,r){var e=f.templateSettings;n||(n=""),r=b({},r,e);var u=0,i="__p+='",e=r.variable;n.replace(RegExp((r.escape||it).source+"|"+(r.interpolate||it).source+"|"+(r.evaluate||it).source+"|$","g"),function(t,r,e,a,f){return i+=n.slice(u,f).replace(ot,o),r&&(i+="'+_['escape']("+r+")+'"),a&&(i+="';"+a+";__p+='"),e&&(i+="'+((__t=("+e+"))==null?'':__t)+'"),u=f+t.length,t
}),i+="';\n",e||(e="obj",i="with("+e+"||{}){"+i+"}"),i="function("+e+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}";try{var a=Function("_","return "+i)(f)}catch(c){throw c.source=i,c}return t?a(t):(a.source=i,a)},f.unescape=function(n){return n==nt?"":(n+"").replace(Gt,m)},f.uniqueId=function(n){var t=++rt+"";return n?n+t:t},f.all=N,f.any=W,f.detect=k,f.findWhere=function(n,t){return z(n,t,Z)},f.foldl=$,f.foldr=I,f.include=F,f.inject=$,f.first=P,f.last=function(n,t,r){if(n){var e=0,u=n.length;
if(typeof t!="number"&&t!=nt){var i=u;for(t=K(t,r);i--&&t(n[i],i,n);)e++}else if(e=t,e==nt||r)return n[u-1];return It.call(n,qt(0,u-e))}},f.take=P,f.head=P,f.VERSION="1.3.1",X(f),f.prototype.chain=function(){return this.__chain__=Z,this},f.prototype.value=function(){return this.__wrapped__},B("pop push reverse shift sort splice unshift".split(" "),function(n){var t=bt[n];f.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!zt.spliceObjects&&0===n.length&&delete n[0],this}
}),B(["concat","join","slice"],function(n){var t=bt[n];f.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new c(n),n.__chain__=Z),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=f, define(function(){return f})):mt&&!mt.nodeType?_t?(_t.exports=f)._=f:mt._=f:n._=f}(this);

View File

@@ -218,7 +218,7 @@
<!-- div -->
### <a id="_compactarray"></a>`_.compact(array)`
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3726 "View in source") [&#x24C9;][1]
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3771 "View in source") [&#x24C9;][1]
Creates an array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
@@ -242,7 +242,7 @@ _.compact([0, 1, false, 2, '', 3]);
<!-- div -->
### <a id="_differencearray--array1-array2-"></a>`_.difference(array [, array1, array2, ...])`
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3755 "View in source") [&#x24C9;][1]
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3800 "View in source") [&#x24C9;][1]
Creates an array excluding all values of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -267,7 +267,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div -->
### <a id="_findindexarray--callbackidentity-thisarg"></a>`_.findIndex(array [, callback=identity, thisArg])`
<a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3805 "View in source") [&#x24C9;][1]
<a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3850 "View in source") [&#x24C9;][1]
This method is similar to `_.find`, except that it returns the index of the element that passes the callback check, instead of the element itself.
@@ -295,7 +295,7 @@ _.findIndex(['apple', 'banana', 'beet'], function(food) {
<!-- div -->
### <a id="_firstarray--callbackn-thisarg"></a>`_.first(array [, callback|n, thisArg])`
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3875 "View in source") [&#x24C9;][1]
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3920 "View in source") [&#x24C9;][1]
Gets the first element of the `array`. If a number `n` is passed, the first `n` elements of the `array` are returned. If a `callback` function is passed, elements at the beginning of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -355,7 +355,7 @@ _.first(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_flattenarray--isshallowfalse-callbackidentity-thisarg"></a>`_.flatten(array [, isShallow=false, callback=identity, thisArg])`
<a href="#_flattenarray--isshallowfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3937 "View in source") [&#x24C9;][1]
<a href="#_flattenarray--isshallowfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3982 "View in source") [&#x24C9;][1]
Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truthy, `array` will only be flattened a single level. If `callback` is passed, each element of `array` is passed through a `callback` before flattening. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -398,7 +398,7 @@ _.flatten(stooges, 'quotes');
<!-- div -->
### <a id="_indexofarray-value--fromindex0"></a>`_.indexOf(array, value [, fromIndex=0])`
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3974 "View in source") [&#x24C9;][1]
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4019 "View in source") [&#x24C9;][1]
Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `fromIndex` will run a faster binary search.
@@ -430,7 +430,7 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
<!-- div -->
### <a id="_initialarray--callbackn1-thisarg"></a>`_.initial(array [, callback|n=1, thisArg])`
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4041 "View in source") [&#x24C9;][1]
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4086 "View in source") [&#x24C9;][1]
Gets all but the last element of `array`. If a number `n` is passed, the last `n` elements are excluded from the result. If a `callback` function is passed, elements at the end of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -487,7 +487,7 @@ _.initial(food, { 'type': 'vegetable' });
<!-- div -->
### <a id="_intersectionarray1-array2-"></a>`_.intersection([array1, array2, ...])`
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4074 "View in source") [&#x24C9;][1]
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4119 "View in source") [&#x24C9;][1]
Creates an array of unique values present in all passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -511,7 +511,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_lastarray--callbackn-thisarg"></a>`_.last(array [, callback|n, thisArg])`
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4176 "View in source") [&#x24C9;][1]
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4221 "View in source") [&#x24C9;][1]
Gets the last element of the `array`. If a number `n` is passed, the last `n` elements of the `array` are returned. If a `callback` function is passed, elements at the end of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments;(value, index, array).
@@ -568,7 +568,7 @@ _.last(food, { 'type': 'vegetable' });
<!-- div -->
### <a id="_lastindexofarray-value--fromindexarraylength-1"></a>`_.lastIndexOf(array, value [, fromIndex=array.length-1])`
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4217 "View in source") [&#x24C9;][1]
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4262 "View in source") [&#x24C9;][1]
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -597,7 +597,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
<!-- div -->
### <a id="_rangestart0-end--step1"></a>`_.range([start=0], end [, step=1])`
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4258 "View in source") [&#x24C9;][1]
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4303 "View in source") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`.
@@ -635,7 +635,7 @@ _.range(0);
<!-- div -->
### <a id="_restarray--callbackn1-thisarg"></a>`_.rest(array [, callback|n=1, thisArg])`
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4337 "View in source") [&#x24C9;][1]
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4382 "View in source") [&#x24C9;][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is passed, the first `n` values are excluded from the result. If a `callback` function is passed, 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 with three arguments; *(value, index, array)*.
@@ -695,7 +695,7 @@ _.rest(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_sortedindexarray-value--callbackidentity-thisarg"></a>`_.sortedIndex(array, value [, callback=identity, thisArg])`
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4401 "View in source") [&#x24C9;][1]
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4446 "View in source") [&#x24C9;][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is passed, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -744,7 +744,7 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
<!-- div -->
### <a id="_unionarray1-array2-"></a>`_.union([array1, array2, ...])`
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4432 "View in source") [&#x24C9;][1]
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4477 "View in source") [&#x24C9;][1]
Creates an array of unique values, in order, of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -768,7 +768,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_uniqarray--issortedfalse-callbackidentity-thisarg"></a>`_.uniq(array [, isSorted=false, callback=identity, thisArg])`
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4479 "View in source") [&#x24C9;][1]
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4524 "View in source") [&#x24C9;][1]
Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is passed, each element of `array` is passed through the `callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -815,7 +815,7 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
<!-- div -->
### <a id="_withoutarray--value1-value2-"></a>`_.without(array [, value1, value2, ...])`
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4507 "View in source") [&#x24C9;][1]
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4552 "View in source") [&#x24C9;][1]
Creates an array excluding all passed values using strict equality for comparisons, i.e. `===`.
@@ -840,7 +840,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
<!-- div -->
### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])`
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4527 "View in source") [&#x24C9;][1]
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4572 "View in source") [&#x24C9;][1]
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.
@@ -867,7 +867,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
<!-- div -->
### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])`
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4557 "View in source") [&#x24C9;][1]
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4602 "View in source") [&#x24C9;][1]
Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`.
@@ -902,7 +902,7 @@ _.zipObject(['moe', 'larry'], [30, 40]);
<!-- div -->
### <a id="_value"></a>`_(value)`
<a href="#_value">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L609 "View in source") [&#x24C9;][1]
<a href="#_value">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L610 "View in source") [&#x24C9;][1]
Creates a `lodash` object, which wraps the given `value`, to enable method chaining.
@@ -958,7 +958,7 @@ _.isArray(squares.value());
<!-- div -->
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5684 "View in source") [&#x24C9;][1]
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5725 "View in source") [&#x24C9;][1]
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
@@ -988,7 +988,7 @@ _([1, 2, 3, 4])
<!-- div -->
### <a id="_prototypetostring"></a>`_.prototype.toString()`
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5701 "View in source") [&#x24C9;][1]
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5742 "View in source") [&#x24C9;][1]
Produces the `toString` result of the wrapped value.
@@ -1009,7 +1009,7 @@ _([1, 2, 3]).toString();
<!-- div -->
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5718 "View in source") [&#x24C9;][1]
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5759 "View in source") [&#x24C9;][1]
Extracts the wrapped value.
@@ -1040,7 +1040,7 @@ _([1, 2, 3]).valueOf();
<!-- div -->
### <a id="_atcollection--index1-index2-"></a>`_.at(collection [, index1, index2, ...])`
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2711 "View in source") [&#x24C9;][1]
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2756 "View in source") [&#x24C9;][1]
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
@@ -1068,7 +1068,7 @@ _.at(['moe', 'larry', 'curly'], 0, 2);
<!-- div -->
### <a id="_containscollection-target--fromindex0"></a>`_.contains(collection, target [, fromIndex=0])`
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2753 "View in source") [&#x24C9;][1]
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2798 "View in source") [&#x24C9;][1]
Checks if a given `target` element is present in a `collection` using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -1106,7 +1106,7 @@ _.contains('curly', 'ur');
<!-- div -->
### <a id="_countbycollection--callbackidentity-thisarg"></a>`_.countBy(collection [, callback=identity, thisArg])`
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2808 "View in source") [&#x24C9;][1]
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2853 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the given `callback`. The corresponding value of each key is the number of times the key was returned by the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1142,7 +1142,7 @@ _.countBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_everycollection--callbackidentity-thisarg"></a>`_.every(collection [, callback=identity, thisArg])`
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2860 "View in source") [&#x24C9;][1]
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2905 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1188,7 +1188,7 @@ _.every(stooges, { 'age': 50 });
<!-- div -->
### <a id="_filtercollection--callbackidentity-thisarg"></a>`_.filter(collection [, callback=identity, thisArg])`
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2921 "View in source") [&#x24C9;][1]
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2966 "View in source") [&#x24C9;][1]
Iterates over elements of a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1234,7 +1234,7 @@ _.filter(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_findcollection--callbackidentity-thisarg"></a>`_.find(collection [, callback=identity, thisArg])`
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2988 "View in source") [&#x24C9;][1]
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3033 "View in source") [&#x24C9;][1]
Iterates over elements of a `collection`, returning the first that the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1283,7 +1283,7 @@ _.find(food, 'organic');
<!-- div -->
### <a id="_foreachcollection--callbackidentity-thisarg"></a>`_.forEach(collection [, callback=identity, thisArg])`
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3035 "View in source") [&#x24C9;][1]
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3080 "View in source") [&#x24C9;][1]
Iterates over elements of a `collection`, executing the `callback` for each element. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -1315,7 +1315,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert);
<!-- div -->
### <a id="_groupbycollection--callbackidentity-thisarg"></a>`_.groupBy(collection [, callback=identity, thisArg])`
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3085 "View in source") [&#x24C9;][1]
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3130 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1352,7 +1352,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_invokecollection-methodname--arg1-arg2-"></a>`_.invoke(collection, methodName [, arg1, arg2, ...])`
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3118 "View in source") [&#x24C9;][1]
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3163 "View in source") [&#x24C9;][1]
Invokes the method named by `methodName` on each element in the `collection`, returning an array of the results of each invoked method. Additional arguments will be passed to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`.
@@ -1381,7 +1381,7 @@ _.invoke([123, 456], String.prototype.split, '');
<!-- div -->
### <a id="_mapcollection--callbackidentity-thisarg"></a>`_.map(collection [, callback=identity, thisArg])`
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3170 "View in source") [&#x24C9;][1]
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3215 "View in source") [&#x24C9;][1]
Creates an array of values by running each element in the `collection` through the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1426,7 +1426,7 @@ _.map(stooges, 'name');
<!-- div -->
### <a id="_maxcollection--callbackidentity-thisarg"></a>`_.max(collection [, callback=identity, thisArg])`
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3227 "View in source") [&#x24C9;][1]
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3272 "View in source") [&#x24C9;][1]
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1468,7 +1468,7 @@ _.max(stooges, 'age');
<!-- div -->
### <a id="_mincollection--callbackidentity-thisarg"></a>`_.min(collection [, callback=identity, thisArg])`
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3296 "View in source") [&#x24C9;][1]
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3341 "View in source") [&#x24C9;][1]
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1510,7 +1510,7 @@ _.min(stooges, 'age');
<!-- div -->
### <a id="_pluckcollection-property"></a>`_.pluck(collection, property)`
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3346 "View in source") [&#x24C9;][1]
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3391 "View in source") [&#x24C9;][1]
Retrieves the value of a specified property from all elements in the `collection`.
@@ -1540,7 +1540,7 @@ _.pluck(stooges, 'name');
<!-- div -->
### <a id="_reducecollection--callbackidentity-accumulator-thisarg"></a>`_.reduce(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3378 "View in source") [&#x24C9;][1]
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3423 "View in source") [&#x24C9;][1]
Reduces a `collection` to a value which is the accumulated result of running each element in the `collection` through the `callback`, where each successive `callback` execution consumes the return value of the previous execution. If `accumulator` is not passed, the first element of the `collection` will be used as the initial `accumulator` value. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
@@ -1578,7 +1578,7 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
<!-- div -->
### <a id="_reducerightcollection--callbackidentity-accumulator-thisarg"></a>`_.reduceRight(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3421 "View in source") [&#x24C9;][1]
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3466 "View in source") [&#x24C9;][1]
This method is similar to `_.reduce`, except that it iterates over elements of a `collection` from right to left.
@@ -1609,7 +1609,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
<!-- div -->
### <a id="_rejectcollection--callbackidentity-thisarg"></a>`_.reject(collection [, callback=identity, thisArg])`
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3481 "View in source") [&#x24C9;][1]
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3526 "View in source") [&#x24C9;][1]
The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for.
@@ -1652,7 +1652,7 @@ _.reject(food, { 'type': 'fruit' });
<!-- div -->
### <a id="_shufflecollection"></a>`_.shuffle(collection)`
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3502 "View in source") [&#x24C9;][1]
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3547 "View in source") [&#x24C9;][1]
Creates an array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -1676,7 +1676,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
<!-- div -->
### <a id="_sizecollection"></a>`_.size(collection)`
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3535 "View in source") [&#x24C9;][1]
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3580 "View in source") [&#x24C9;][1]
Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects.
@@ -1706,7 +1706,7 @@ _.size('curly');
<!-- div -->
### <a id="_somecollection--callbackidentity-thisarg"></a>`_.some(collection [, callback=identity, thisArg])`
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3582 "View in source") [&#x24C9;][1]
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3627 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **any** element of a `collection`. The function returns as soon as it finds 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)*.
@@ -1752,7 +1752,7 @@ _.some(food, { 'type': 'meat' });
<!-- div -->
### <a id="_sortbycollection--callbackidentity-thisarg"></a>`_.sortBy(collection [, callback=identity, thisArg])`
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3638 "View in source") [&#x24C9;][1]
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3683 "View in source") [&#x24C9;][1]
Creates an array of elements, sorted in ascending order by the results of running each element in the `collection` through the `callback`. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1789,7 +1789,7 @@ _.sortBy(['banana', 'strawberry', 'apple'], 'length');
<!-- div -->
### <a id="_toarraycollection"></a>`_.toArray(collection)`
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3674 "View in source") [&#x24C9;][1]
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3719 "View in source") [&#x24C9;][1]
Converts the `collection` to an array.
@@ -1813,7 +1813,7 @@ Converts the `collection` to an array.
<!-- div -->
### <a id="_wherecollection-properties"></a>`_.where(collection, properties)`
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3708 "View in source") [&#x24C9;][1]
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3753 "View in source") [&#x24C9;][1]
Performs a deep comparison of each element in a `collection` to the given `properties` object, returning an array of all elements that have equivalent property values.
@@ -1853,7 +1853,7 @@ _.where(stooges, { 'quotes': ['Poifect!'] });
<!-- div -->
### <a id="_aftern-func"></a>`_.after(n, func)`
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4594 "View in source") [&#x24C9;][1]
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4639 "View in source") [&#x24C9;][1]
Creates a function this is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times.
@@ -1881,7 +1881,7 @@ _.forEach(notes, function(note) {
<!-- div -->
### <a id="_bindfunc--thisarg-arg1-arg2-"></a>`_.bind(func [, thisArg, arg1, arg2, ...])`
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4624 "View in source") [&#x24C9;][1]
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4669 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those passed to the bound function.
@@ -1912,7 +1912,7 @@ func();
<!-- div -->
### <a id="_bindallobject--methodname1-methodname2-"></a>`_.bindAll(object [, methodName1, methodName2, ...])`
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4656 "View in source") [&#x24C9;][1]
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4697 "View in source") [&#x24C9;][1]
Binds methods on `object` to `object`, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided, all the function properties of `object` will be bound.
@@ -1943,7 +1943,7 @@ jQuery('#docs').on('click', view.onClick);
<!-- div -->
### <a id="_bindkeyobject-key--arg1-arg2-"></a>`_.bindKey(object, key [, arg1, arg2, ...])`
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4702 "View in source") [&#x24C9;][1]
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4743 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
@@ -1984,7 +1984,7 @@ func();
<!-- div -->
### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])`
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4725 "View in source") [&#x24C9;][1]
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4766 "View in source") [&#x24C9;][1]
Creates a function that is the composition of the passed functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
@@ -2011,7 +2011,7 @@ welcome('moe');
<!-- div -->
### <a id="_createcallbackfuncidentity-thisarg-argcount3"></a>`_.createCallback([func=identity, thisArg, argCount=3])`
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4784 "View in source") [&#x24C9;][1]
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4825 "View in source") [&#x24C9;][1]
Produces a callback bound to an optional `thisArg`. If `func` is a property name, the created callback will return the property value for a given element. If `func` is an object, the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
@@ -2065,7 +2065,7 @@ _.toLookup(stooges, 'name');
<!-- div -->
### <a id="_debouncefunc-wait-options"></a>`_.debounce(func, wait, options)`
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4879 "View in source") [&#x24C9;][1]
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4920 "View in source") [&#x24C9;][1]
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2106,7 +2106,7 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
<!-- div -->
### <a id="_deferfunc--arg1-arg2-"></a>`_.defer(func [, arg1, arg2, ...])`
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4976 "View in source") [&#x24C9;][1]
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5017 "View in source") [&#x24C9;][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
@@ -2131,7 +2131,7 @@ _.defer(function() { alert('deferred'); });
<!-- div -->
### <a id="_delayfunc-wait--arg1-arg2-"></a>`_.delay(func, wait [, arg1, arg2, ...])`
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5002 "View in source") [&#x24C9;][1]
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5043 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -2158,7 +2158,7 @@ _.delay(log, 1000, 'logged later');
<!-- div -->
### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])`
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5027 "View in source") [&#x24C9;][1]
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5068 "View in source") [&#x24C9;][1]
Creates a function that memoizes the result of `func`. If `resolver` is passed, it will be used to determine the cache key for storing the result based on the arguments passed to the memoized function. By default, the first argument passed to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
@@ -2184,7 +2184,7 @@ var fibonacci = _.memoize(function(n) {
<!-- div -->
### <a id="_oncefunc"></a>`_.once(func)`
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5057 "View in source") [&#x24C9;][1]
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5098 "View in source") [&#x24C9;][1]
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
@@ -2210,7 +2210,7 @@ initialize();
<!-- div -->
### <a id="_partialfunc--arg1-arg2-"></a>`_.partial(func [, arg1, arg2, ...])`
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5092 "View in source") [&#x24C9;][1]
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5133 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
@@ -2237,7 +2237,7 @@ hi('moe');
<!-- div -->
### <a id="_partialrightfunc--arg1-arg2-"></a>`_.partialRight(func [, arg1, arg2, ...])`
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5123 "View in source") [&#x24C9;][1]
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5164 "View in source") [&#x24C9;][1]
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
@@ -2274,7 +2274,7 @@ options.imports
<!-- div -->
### <a id="_throttlefunc-wait-options"></a>`_.throttle(func, wait, options)`
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5158 "View in source") [&#x24C9;][1]
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5199 "View in source") [&#x24C9;][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2308,7 +2308,7 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
<!-- div -->
### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)`
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5199 "View in source") [&#x24C9;][1]
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5240 "View in source") [&#x24C9;][1]
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
@@ -2344,7 +2344,7 @@ hello();
<!-- div -->
### <a id="_assignobject--source1-source2--callback-thisarg"></a>`_.assign(object [, source1, source2, ..., callback, thisArg])`
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1446 "View in source") [&#x24C9;][1]
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1790 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -2382,7 +2382,7 @@ defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div -->
### <a id="_clonevalue--deepfalse-callback-thisarg"></a>`_.clone(value [, deep=false, callback, thisArg])`
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1501 "View in source") [&#x24C9;][1]
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1843 "View in source") [&#x24C9;][1]
Creates a clone of `value`. If `deep` is `true`, nested objects will also be cloned, otherwise they will be assigned by reference. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2429,7 +2429,7 @@ clone.childNodes.length;
<!-- div -->
### <a id="_clonedeepvalue--callback-thisarg"></a>`_.cloneDeep(value [, callback, thisArg])`
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1631 "View in source") [&#x24C9;][1]
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1895 "View in source") [&#x24C9;][1]
Creates a deep clone of `value`. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2475,7 +2475,7 @@ clone.node == view.node;
<!-- div -->
### <a id="_defaultsobject--source1-source2-"></a>`_.defaults(object [, source1, source2, ...])`
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1655 "View in source") [&#x24C9;][1]
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1919 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored.
@@ -2501,7 +2501,7 @@ _.defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div -->
### <a id="_findkeyobject--callbackidentity-thisarg"></a>`_.findKey(object [, callback=identity, thisArg])`
<a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1677 "View in source") [&#x24C9;][1]
<a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1941 "View in source") [&#x24C9;][1]
This method is similar to `_.find`, except that it returns the key of the element that passes the callback check, instead of the element itself.
@@ -2529,7 +2529,7 @@ _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
<!-- div -->
### <a id="_forinobject--callbackidentity-thisarg"></a>`_.forIn(object [, callback=identity, thisArg])`
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1718 "View in source") [&#x24C9;][1]
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1982 "View in source") [&#x24C9;][1]
Iterates over own and inherited enumerable properties of a given `object`, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2565,7 +2565,7 @@ _.forIn(new Dog('Dagny'), function(value, key) {
<!-- div -->
### <a id="_forownobject--callbackidentity-thisarg"></a>`_.forOwn(object [, callback=identity, thisArg])`
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1743 "View in source") [&#x24C9;][1]
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2007 "View in source") [&#x24C9;][1]
Iterates over own enumerable properties of a given `object`, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2593,7 +2593,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
<!-- div -->
### <a id="_functionsobject"></a>`_.functions(object)`
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1760 "View in source") [&#x24C9;][1]
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2024 "View in source") [&#x24C9;][1]
Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values.
@@ -2620,7 +2620,7 @@ _.functions(_);
<!-- div -->
### <a id="_hasobject-property"></a>`_.has(object, property)`
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1785 "View in source") [&#x24C9;][1]
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2049 "View in source") [&#x24C9;][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -2645,7 +2645,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div -->
### <a id="_invertobject"></a>`_.invert(object)`
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1802 "View in source") [&#x24C9;][1]
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2066 "View in source") [&#x24C9;][1]
Creates an object composed of the inverted keys and values of the given `object`.
@@ -2669,7 +2669,7 @@ _.invert({ 'first': 'moe', 'second': 'larry' });
<!-- div -->
### <a id="_isargumentsvalue"></a>`_.isArguments(value)`
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1304 "View in source") [&#x24C9;][1]
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1648 "View in source") [&#x24C9;][1]
Checks if `value` is an `arguments` object.
@@ -2696,7 +2696,7 @@ _.isArguments([1, 2, 3]);
<!-- div -->
### <a id="_isarrayvalue"></a>`_.isArray(value)`
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1330 "View in source") [&#x24C9;][1]
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1674 "View in source") [&#x24C9;][1]
Checks if `value` is an array.
@@ -2723,7 +2723,7 @@ _.isArray([1, 2, 3]);
<!-- div -->
### <a id="_isbooleanvalue"></a>`_.isBoolean(value)`
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1828 "View in source") [&#x24C9;][1]
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2092 "View in source") [&#x24C9;][1]
Checks if `value` is a boolean value.
@@ -2747,7 +2747,7 @@ _.isBoolean(null);
<!-- div -->
### <a id="_isdatevalue"></a>`_.isDate(value)`
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1845 "View in source") [&#x24C9;][1]
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2109 "View in source") [&#x24C9;][1]
Checks if `value` is a date.
@@ -2771,7 +2771,7 @@ _.isDate(new Date);
<!-- div -->
### <a id="_iselementvalue"></a>`_.isElement(value)`
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1862 "View in source") [&#x24C9;][1]
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2126 "View in source") [&#x24C9;][1]
Checks if `value` is a DOM element.
@@ -2795,7 +2795,7 @@ _.isElement(document.body);
<!-- div -->
### <a id="_isemptyvalue"></a>`_.isEmpty(value)`
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1887 "View in source") [&#x24C9;][1]
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2151 "View in source") [&#x24C9;][1]
Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty".
@@ -2825,7 +2825,7 @@ _.isEmpty('');
<!-- div -->
### <a id="_isequala-b--callback-thisarg"></a>`_.isEqual(a, b [, callback, thisArg])`
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1946 "View in source") [&#x24C9;][1]
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2208 "View in source") [&#x24C9;][1]
Performs a deep comparison between two values to determine if they are equivalent to each other. If `callback` is passed, it will be executed to compare values. If `callback` returns `undefined`, comparisons will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(a, b)*.
@@ -2870,7 +2870,7 @@ _.isEqual(words, otherWords, function(a, b) {
<!-- div -->
### <a id="_isfinitevalue"></a>`_.isFinite(value)`
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2132 "View in source") [&#x24C9;][1]
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2240 "View in source") [&#x24C9;][1]
Checks if `value` is, or can be coerced to, a finite number.
@@ -2908,7 +2908,7 @@ _.isFinite(Infinity);
<!-- div -->
### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2149 "View in source") [&#x24C9;][1]
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2257 "View in source") [&#x24C9;][1]
Checks if `value` is a function.
@@ -2932,7 +2932,7 @@ _.isFunction(_);
<!-- div -->
### <a id="_isnanvalue"></a>`_.isNaN(value)`
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2212 "View in source") [&#x24C9;][1]
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2320 "View in source") [&#x24C9;][1]
Checks if `value` is `NaN`.
@@ -2967,7 +2967,7 @@ _.isNaN(undefined);
<!-- div -->
### <a id="_isnullvalue"></a>`_.isNull(value)`
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2234 "View in source") [&#x24C9;][1]
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2342 "View in source") [&#x24C9;][1]
Checks if `value` is `null`.
@@ -2994,7 +2994,7 @@ _.isNull(undefined);
<!-- div -->
### <a id="_isnumbervalue"></a>`_.isNumber(value)`
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2253 "View in source") [&#x24C9;][1]
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2361 "View in source") [&#x24C9;][1]
Checks if `value` is a number.
@@ -3020,7 +3020,7 @@ _.isNumber(8.4 * 5);
<!-- div -->
### <a id="_isobjectvalue"></a>`_.isObject(value)`
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2179 "View in source") [&#x24C9;][1]
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2287 "View in source") [&#x24C9;][1]
Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
@@ -3050,7 +3050,7 @@ _.isObject(1);
<!-- div -->
### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)`
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2281 "View in source") [&#x24C9;][1]
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2389 "View in source") [&#x24C9;][1]
Checks if a given `value` is an object created by the `Object` constructor.
@@ -3085,7 +3085,7 @@ _.isPlainObject({ 'name': 'moe', 'age': 40 });
<!-- div -->
### <a id="_isregexpvalue"></a>`_.isRegExp(value)`
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2306 "View in source") [&#x24C9;][1]
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2414 "View in source") [&#x24C9;][1]
Checks if `value` is a regular expression.
@@ -3109,7 +3109,7 @@ _.isRegExp(/moe/);
<!-- div -->
### <a id="_isstringvalue"></a>`_.isString(value)`
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2323 "View in source") [&#x24C9;][1]
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2431 "View in source") [&#x24C9;][1]
Checks if `value` is a string.
@@ -3133,7 +3133,7 @@ _.isString('moe');
<!-- div -->
### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2340 "View in source") [&#x24C9;][1]
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2448 "View in source") [&#x24C9;][1]
Checks if `value` is `undefined`.
@@ -3157,7 +3157,7 @@ _.isUndefined(void 0);
<!-- div -->
### <a id="_keysobject"></a>`_.keys(object)`
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1364 "View in source") [&#x24C9;][1]
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1708 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property names of `object`.
@@ -3181,7 +3181,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_mergeobject--source1-source2--callback-thisarg"></a>`_.merge(object [, source1, source2, ..., callback, thisArg])`
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2399 "View in source") [&#x24C9;][1]
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2503 "View in source") [&#x24C9;][1]
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -3237,7 +3237,7 @@ _.merge(food, otherFood, function(a, b) {
<!-- div -->
### <a id="_omitobject-callback-prop1-prop2--thisarg"></a>`_.omit(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2514 "View in source") [&#x24C9;][1]
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2559 "View in source") [&#x24C9;][1]
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` function is passed, it will be executed for each property in the `object`, omitting the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3268,7 +3268,7 @@ _.omit({ 'name': 'moe', 'age': 40 }, function(value) {
<!-- div -->
### <a id="_pairsobject"></a>`_.pairs(object)`
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2549 "View in source") [&#x24C9;][1]
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2594 "View in source") [&#x24C9;][1]
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3292,7 +3292,7 @@ _.pairs({ 'moe': 30, 'larry': 40 });
<!-- div -->
### <a id="_pickobject-callback-prop1-prop2--thisarg"></a>`_.pick(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2588 "View in source") [&#x24C9;][1]
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2633 "View in source") [&#x24C9;][1]
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 `callback` is passed, it will be executed for each property in the `object`, picking the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3323,7 +3323,7 @@ _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) {
<!-- div -->
### <a id="_transformcollection--callbackidentity-accumulator-thisarg"></a>`_.transform(collection [, callback=identity, accumulator, thisArg])`
<a href="#_transformcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2643 "View in source") [&#x24C9;][1]
<a href="#_transformcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2688 "View in source") [&#x24C9;][1]
An alternative to `_.reduce`, this method transforms an `object` to a new `accumulator` object which is the result of running each of its elements through the `callback`, with each `callback` execution potentially mutating the `accumulator` object. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -3360,7 +3360,7 @@ var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key)
<!-- div -->
### <a id="_valuesobject"></a>`_.values(object)`
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2676 "View in source") [&#x24C9;][1]
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2721 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3391,7 +3391,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_escapestring"></a>`_.escape(string)`
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5223 "View in source") [&#x24C9;][1]
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5264 "View in source") [&#x24C9;][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3415,7 +3415,7 @@ _.escape('Moe, Larry & Curly');
<!-- div -->
### <a id="_identityvalue"></a>`_.identity(value)`
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5241 "View in source") [&#x24C9;][1]
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5282 "View in source") [&#x24C9;][1]
This method returns the first argument passed to it.
@@ -3440,7 +3440,7 @@ moe === _.identity(moe);
<!-- div -->
### <a id="_mixinobject"></a>`_.mixin(object)`
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5267 "View in source") [&#x24C9;][1]
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5308 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3470,7 +3470,7 @@ _('moe').capitalize();
<!-- div -->
### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5302 "View in source") [&#x24C9;][1]
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5343 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3490,7 +3490,7 @@ var lodash = _.noConflict();
<!-- div -->
### <a id="_parseintvalue--radix"></a>`_.parseInt(value [, radix])`
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5326 "View in source") [&#x24C9;][1]
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5367 "View in source") [&#x24C9;][1]
Converts the given `value` into an integer of the specified `radix`. If `radix` is `undefined` or `0`, a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
@@ -3517,7 +3517,7 @@ _.parseInt('08');
<!-- div -->
### <a id="_randommin0-max1"></a>`_.random([min=0, max=1])`
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5349 "View in source") [&#x24C9;][1]
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5390 "View in source") [&#x24C9;][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned.
@@ -3545,7 +3545,7 @@ _.random(5);
<!-- div -->
### <a id="_resultobject-property"></a>`_.result(object, property)`
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5393 "View in source") [&#x24C9;][1]
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5434 "View in source") [&#x24C9;][1]
Resolves the value of `property` on `object`. If `property` is a function, it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey, then `undefined` is returned.
@@ -3598,7 +3598,7 @@ Create a new `lodash` function using the given `context` object.
<!-- div -->
### <a id="_templatetext-data-options"></a>`_.template(text, data, options)`
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5484 "View in source") [&#x24C9;][1]
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5525 "View in source") [&#x24C9;][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -3686,7 +3686,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
<!-- div -->
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5609 "View in source") [&#x24C9;][1]
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5650 "View in source") [&#x24C9;][1]
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
@@ -3718,7 +3718,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
<!-- div -->
### <a id="_unescapestring"></a>`_.unescape(string)`
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5636 "View in source") [&#x24C9;][1]
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5677 "View in source") [&#x24C9;][1]
The inverse of `_.escape`, this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their corresponding characters.
@@ -3742,7 +3742,7 @@ _.unescape('Moe, Larry &amp; Curly');
<!-- div -->
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5656 "View in source") [&#x24C9;][1]
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5697 "View in source") [&#x24C9;][1]
Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
@@ -3776,7 +3776,7 @@ _.uniqueId();
<!-- div -->
### <a id="_templatesettingsimports_"></a>`_.templateSettings.imports._`
<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L818 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsimports_">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L819 "View in source") [&#x24C9;][1]
A reference to the `lodash` function.
@@ -3795,7 +3795,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_version"></a>`_.VERSION`
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5899 "View in source") [&#x24C9;][1]
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5940 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number.
@@ -3807,7 +3807,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_support"></a>`_.support`
<a href="#_support">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L636 "View in source") [&#x24C9;][1]
<a href="#_support">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L637 "View in source") [&#x24C9;][1]
*(Object)*: An object used to flag environments features.
@@ -3819,7 +3819,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_supportargsclass"></a>`_.support.argsClass`
<a href="#_supportargsclass">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L661 "View in source") [&#x24C9;][1]
<a href="#_supportargsclass">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L662 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if an `arguments` object's [[Class]] is resolvable *(all but Firefox < `4`, IE < `9`)*.
@@ -3831,7 +3831,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_supportargsobject"></a>`_.support.argsObject`
<a href="#_supportargsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L653 "View in source") [&#x24C9;][1]
<a href="#_supportargsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L654 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if `arguments` objects are `Object` objects *(all but Narwhal and Opera < `10.5`)*.
@@ -3843,7 +3843,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_supportenumerrorprops"></a>`_.support.enumErrorProps`
<a href="#_supportenumerrorprops">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L670 "View in source") [&#x24C9;][1]
<a href="#_supportenumerrorprops">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L671 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if `name` or `message` properties of `Error.prototype` are enumerable by default. *(IE < `9`, Safari < `5.1`)*
@@ -3855,7 +3855,7 @@ A reference to the `lodash` function.
<!-- div -->
### <a id="_supportenumprototypes"></a>`_.support.enumPrototypes`
<a href="#_supportenumprototypes">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L683 "View in source") [&#x24C9;][1]
<a href="#_supportenumprototypes">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L684 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if `prototype` properties are enumerable by default.
@@ -3869,7 +3869,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
<!-- div -->
### <a id="_supportfastbind"></a>`_.support.fastBind`
<a href="#_supportfastbind">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L691 "View in source") [&#x24C9;][1]
<a href="#_supportfastbind">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L692 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if `Function#bind` exists and is inferred to be fast *(all but V8)*.
@@ -3881,7 +3881,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
<!-- div -->
### <a id="_supportnonenumargs"></a>`_.support.nonEnumArgs`
<a href="#_supportnonenumargs">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L708 "View in source") [&#x24C9;][1]
<a href="#_supportnonenumargs">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L709 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if `arguments` object indexes are non-enumerable *(Firefox < `4`, IE < `9`, PhantomJS, Safari < `5.1`)*.
@@ -3893,7 +3893,7 @@ Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the p
<!-- div -->
### <a id="_supportnonenumshadows"></a>`_.support.nonEnumShadows`
<a href="#_supportnonenumshadows">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L719 "View in source") [&#x24C9;][1]
<a href="#_supportnonenumshadows">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L720 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if properties shadowing those on `Object.prototype` are non-enumerable.
@@ -3907,7 +3907,7 @@ In IE < `9` an objects own properties, shadowing non-enumerable ones, are made n
<!-- div -->
### <a id="_supportownlast"></a>`_.support.ownLast`
<a href="#_supportownlast">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L699 "View in source") [&#x24C9;][1]
<a href="#_supportownlast">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L700 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if own properties are iterated after inherited properties *(all but IE < `9`)*.
@@ -3919,7 +3919,7 @@ In IE < `9` an objects own properties, shadowing non-enumerable ones, are made n
<!-- div -->
### <a id="_supportspliceobjects"></a>`_.support.spliceObjects`
<a href="#_supportspliceobjects">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L733 "View in source") [&#x24C9;][1]
<a href="#_supportspliceobjects">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L734 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
@@ -3933,7 +3933,7 @@ Firefox < `10`, IE compatibility mode, and IE < `9` have buggy Array `shift()` a
<!-- div -->
### <a id="_supportunindexedchars"></a>`_.support.unindexedChars`
<a href="#_supportunindexedchars">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L744 "View in source") [&#x24C9;][1]
<a href="#_supportunindexedchars">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L745 "View in source") [&#x24C9;][1]
*(Boolean)*: Detect lack of support for accessing string characters by index.
@@ -3947,7 +3947,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
<!-- div -->
### <a id="_templatesettings"></a>`_.templateSettings`
<a href="#_templatesettings">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L770 "View in source") [&#x24C9;][1]
<a href="#_templatesettings">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L771 "View in source") [&#x24C9;][1]
*(Object)*: By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby *(ERB)*. Change the following template settings to use alternative delimiters.
@@ -3959,7 +3959,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
<!-- div -->
### <a id="_templatesettingsescape"></a>`_.templateSettings.escape`
<a href="#_templatesettingsescape">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L778 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsescape">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L779 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
@@ -3971,7 +3971,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
<!-- div -->
### <a id="_templatesettingsevaluate"></a>`_.templateSettings.evaluate`
<a href="#_templatesettingsevaluate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L786 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsevaluate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L787 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect code to be evaluated.
@@ -3983,7 +3983,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
<!-- div -->
### <a id="_templatesettingsinterpolate"></a>`_.templateSettings.interpolate`
<a href="#_templatesettingsinterpolate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L794 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsinterpolate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L795 "View in source") [&#x24C9;][1]
*(RegExp)*: Used to detect `data` property values to inject.
@@ -3995,7 +3995,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
<!-- div -->
### <a id="_templatesettingsvariable"></a>`_.templateSettings.variable`
<a href="#_templatesettingsvariable">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L802 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsvariable">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L803 "View in source") [&#x24C9;][1]
*(String)*: Used to reference the data object in the template text.
@@ -4007,7 +4007,7 @@ IE < `8` can't access characters by index and IE `8` can only access characters
<!-- div -->
### <a id="_templatesettingsimports"></a>`_.templateSettings.imports`
<a href="#_templatesettingsimports">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L810 "View in source") [&#x24C9;][1]
<a href="#_templatesettingsimports">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L811 "View in source") [&#x24C9;][1]
*(Object)*: Used to import variables into the compiled template.

View File

@@ -1093,7 +1093,7 @@
* @param {Mixed} a The value to compare.
* @param {Mixed} b The other value to compare.
* @param {Function} [callback] The function to customize comparing values.
* @param {Function} [isWhere] A flag to indicate performing partial comparisons.
* @param {Function} [isWhere=false] A flag to indicate performing partial comparisons.
* @param {Array} [stackA=[]] Tracks traversed `a` objects.
* @param {Array} [stackB=[]] Tracks traversed `b` objects.
* @returns {Boolean} Returns `true`, if the values are equivalent, else `false`.
@@ -1378,15 +1378,18 @@
*
* @private
* @param {Function|String} func The function to bind or the method name.
* @param {Mixed} [thisArg] The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be partially applied.
* @param {Object} [idicator] Used to indicate binding by key or partially
* applying arguments from the right.
* @param {Mixed} thisArg The `this` binding of `func`.
* @param {Array} partialArgs An array of arguments to be prepended to those passed to the new function.
* @param {Array} partialRightArgs An array of arguments to be appended to those passed to the new function.
* @param {Boolean} [isPartial=false] A flag to indicate performing only partial application.
* @param {Boolean} [isAlt=false] A flag to indicate `_.bindKey` or `_.partialRight` behavior.
* @returns {Function} Returns the new bound function.
*/
function createBound(func, thisArg, partialArgs, partialRightArgs, isPartial, isAlt) {
var isFunc = isFunction(func);
if (!isFunc && !(isAlt && !isPartial)) {
// except for `_.bindKey`, throw when `func` is not a function
if (!isFunc && (isPartial || !isAlt)) {
throw new TypeError;
}
var args = func.__bindData__,
@@ -1401,17 +1404,17 @@
}
return createBound.apply(null, args);
}
// juggle arguments
if (!isPartial && !isFunc) {
// juggle arguments for `_.bindKey`
if (!isPartial && isAlt) {
thisArg = func;
}
// use `Function#bind` if it exists and is fast
// (in V8 `Function#bind` is slower except when partially applied)
if (!isPartial && !isAlt && (support.fastBind || (nativeBind && partialArgs.length))) {
// use `Function#bind` if it exists and is fast
// (in V8 `Function#bind` is slower except when partially applied)
var result = nativeBind.call.apply(nativeBind, concat.call(arrayRef, func, thisArg, partialArgs));
var bound = nativeBind.call.apply(nativeBind, concat.call(arrayRef, func, thisArg, partialArgs));
}
else {
var result = function bound() {
bound = function() {
// `Function#bind` spec
// http://es5.github.io/#x15.3.4.5
var args = arguments,
@@ -1436,8 +1439,8 @@
return func.apply(thisBinding, args);
};
}
setBindData(result, nativeSlice.call(arguments));
return result
setBindData(bound, nativeSlice.call(arguments));
return bound;
}
/**