Socket
Socket
Sign inDemoInstall

lodash

Package Overview
Dependencies
0
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.2 to 0.9.0

lodash.underscore.js

67

lodash.min.js
/*!
Lo-Dash 0.8.2 lodash.com/license
Lo-Dash 0.9.0 lodash.com/license
Underscore.js 1.4.2 underscorejs.org/LICENSE
*/
;(function(e,t){function s(e){if(e&&e.__wrapped__)return e;if(!(this instanceof s))return new s(e);this.__wrapped__=e}function o(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||H),s=i?{}:e;if(i)for(n=t-1;++n<r;){var o=e[n]+"";(Z.call(s,o)?s[o]:s[o]=[]).push(e[n])}return function(e){if(i){var n=e+"";return Z.call(s,n)&&-1<T(s[n],e)}return-1<T(s,e,t)}}function u(e,n){var r=e.b,i=n.b,e=e.a,n=n.a;if(e!==n){if(e>n||e===t)return 1;if(e<n||n===t)return-1}return r<i?-1:1}function a(e,t,n){function r(){var u=arguments
,a=s?this:t;return i||(e=t[o]),n.length&&(u=u.length?n.concat(nt.call(u)):n),this instanceof r?(p.prototype=e.prototype,a=new p,(u=e.apply(a,u))&&Ht[typeof u]?u:a):e.apply(a,u)}var i=m(e),s=!n,o=e;return s&&(n=t),r}function f(e,n){return e?"function"!=typeof e?function(t){return t[e]}:n!==t?function(t,r,i){return e.call(n,t,r,i)}:e:A}function l(){for(var e={e:"",g:Et,i:"",j:Mt,m:Tt,n:kt,o:J,p:"",q:n,r:_t,c:{d:""},l:{d:""}},t,i=-1;t=arguments[++i];)for(var s in t){var o=t[s];/d|h/.test(s)?("string"==typeof
o&&(o={b:o,k:o}),e.c[s]=o.b,e.l[s]=o.k):e[s]=o}t=e.a;if("d"!=(e.f=/^[^,]+/.exec(t)[0])||!e.c.h)e.c=r;i="",e.r&&(i+="'use strict';"),i+="var i,A,j="+e.f+",t="+(e.i||e.f)+";if(!"+e.f+")return t;"+e.p+";",e.c&&(i+="var k=j.length;i=-1;",e.l&&(i+="if(k===+k){"),e.n&&(i+="if(y.call(j)==w){j=j.split('')}"),i+=e.c.d+";while(++i<k){A=j[i];"+e.c.h+"}",e.l&&(i+="}"));if(e.l){e.c?i+="else {":e.m&&(i+="var k=j.length;i=-1;if(k&&O(j)){while(++i<k){A=j[i+=''];"+e.l.h+"}}else {"),e.g||(i+="var u=typeof j=='function'&&q.call(j,'prototype');"
);if(e.j&&e.q)i+="var n=-1,o=Y[typeof j]?l(j):[],k=o.length;"+e.l.d+";while(++n<k){i=o[n];",e.g||(i+="if(!(u&&i=='prototype')){"),i+="A=j[i];"+e.l.h+"",e.g||(i+="}");else{i+=e.l.d+";for(i in j){";if(!e.g||e.q)i+="if(",e.g||(i+="!(u&&i=='prototype')"),!e.g&&e.q&&(i+="&&"),e.q&&(i+="h.call(j,i)"),i+="){";i+="A=j[i];"+e.l.h+";";if(!e.g||e.q)i+="}"}i+="}";if(e.g){i+="var g=j.constructor;";for(s=0;7>s;s++)i+="i='"+e.o[s]+"';if(","constructor"==e.o[s]&&(i+="!(g&&g.prototype===j)&&"),i+="h.call(j,i)){A=j[i];"+
e.l.h+"}"}if(e.c||e.m)i+="}"}return i+=e.e+";return t",Function("D,E,F,I,e,f,J,h,M,O,Q,S,T,X,Y,l,q,v,w,y,z","var G=function("+t+"){"+i+"};return G")(Dt,_,L,u,Q,f,en,Z,T,v,$t,m,Jt,mt,Ht,ut,tt,nt,yt,rt)}function c(e){return"\\"+Bt[e]}function h(e){return Qt[e]}function p(){}function d(e){return Gt[e]}function v(e){return rt.call(e)==ct}function m(e){return"function"==typeof e}function g(e){var t=i;if(!e||"object"!=typeof e||v(e))return t;var n=e.constructor;return(!Lt||"function"==typeof e.toString||"string"!=typeof
(e+""))&&(!m(n)||n instanceof n)?xt?(en(e,function(e,n,r){return t=!Z.call(r,n),i}),t===i):(en(e,function(e,n){t=n}),t===i||Z.call(e,t)):t}function y(e,t,n,s,o){if(e==r)return e;n&&(t=i);if(n=Ht[typeof e]){var u=rt.call(e);if(!Pt[u]||Nt&&v(e))return e;var a=u==ht,n=a||(u==mt?Jt(e):n)}if(!n||!t)return n?a?nt.call(e):Zt({},e):e;n=e.constructor;switch(u){case pt:case dt:return new n(+e);case vt:case yt:return new n(e);case gt:return n(e.source,U.exec(e))}s||(s=[]),o||(o=[]);for(u=s.length;u--;)if(s[
u]==e)return o[u];var f=a?n(e.length):{};return s.push(e),o.push(f),(a?mn:tn)(e,function(e,n){f[n]=y(e,t,r,s,o)}),f}function b(e,t,s,o){if(e==r||t==r)return e===t;if(e===t)return 0!==e||1/e==1/t;if(Ht[typeof e]||Ht[typeof t])e=e.__wrapped__||e,t=t.__wrapped__||t;var u=rt.call(e);if(u!=rt.call(t))return i;switch(u){case pt:case dt:return+e==+t;case vt:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case gt:case yt:return e==t+""}var a=Dt[u];if(Nt&&!a&&(a=v(e))&&!v(t)||!a&&(u!=mt||Lt&&("function"!=typeof e.
toString&&"string"==typeof (e+"")||"function"!=typeof t.toString&&"string"==typeof (t+""))))return i;s||(s=[]),o||(o=[]);for(u=s.length;u--;)if(s[u]==e)return o[u]==t;var u=-1,f=n,l=0;s.push(e),o.push(t);if(a){l=e.length;if(f=l==t.length)for(;l--&&(f=b(e[l],t[l],s,o)););return f}a=e.constructor,f=t.constructor;if(a!=f&&(!m(a)||!(a instanceof a&&m(f)&&f instanceof f)))return i;for(var c in e)if(Z.call(e,c)&&(l++,!Z.call(t,c)||!b(e[c],t[c],s,o)))return i;for(c in t)if(Z.call(t,c)&&!(l--))return i;if(
Et)for(;7>++u;)if(c=J[u],Z.call(e,c)&&(!Z.call(t,c)||!b(e[c],t[c],s,o)))return i;return n}function w(e,t,n){var r=-Infinity,i=-1,s=e?e.length:0,o=r;if(t||s!==+s)t=f(t,n),mn(e,function(e,n,i){n=t(e,n,i),n>r&&(r=n,o=e)});else for(;++i<s;)e[i]>o&&(o=e[i]);return o}function E(e,t,n,r){var s=e,o=e?e.length:0,u=3>arguments.length;if(o!==+o)var a=sn(e),o=a.length;else kt&&rt.call(e)==yt&&(s=e.split(""));return mn(e,function(e,f,l){f=a?a[--o]:--o,n=u?(u=i,s[f]):t.call(r,n,s[f],f,l)}),n}function S(e,t,n){
if(e)return t==r||n?e[0]:nt.call(e,0,t)}function x(e,t){for(var n=-1,r=e?e.length:0,i=[];++n<r;){var s=e[n];$t(s)?et.apply(i,t?s:x(s)):i.push(s)}return i}function T(e,t,n){var r=-1,i=e?e.length:0;if("number"==typeof n)r=(0>n?at(0,i+n):n||0)-1;else if(n)return r=C(e,t),e[r]===t?r:-1;for(;++r<i;)if(e[r]===t)return r;return-1}function N(e,t,n){return e?nt.call(e,t==r||n?1:t):[]}function C(e,t,n,r){var i=0,s=e?e.length:i;if(n){n=f(n,r);for(t=n(t);i<s;)r=i+s>>>1,n(e[r])<t?i=r+1:s=r}else for(;i<s;)r=i+
s>>>1,e[r]<t?i=r+1:s=r;return i}function k(e,t,n,r){var s=-1,o=e?e.length:0,u=[],a=[];"function"==typeof t&&(r=n,n=t,t=i);for(n=f(n,r);++s<o;)if(r=n(e[s],s,e),t?!s||a[a.length-1]!==r:0>T(a,r))a.push(r),u.push(e[s]);return u}function L(e,t){return Ot||it&&2<arguments.length?it.call.apply(it,arguments):a(e,t,nt.call(arguments,2))}function A(e){return e}function O(e){mn(nn(e),function(t){var r=s[t]=e[t];s.prototype[t]=function(){var e=[this.__wrapped__];return arguments.length&&et.apply(e,arguments)
,e=r.apply(s,e),this.__chain__&&(e=new s(e),e.__chain__=n),e}})}var n=!0,r=null,i=!1,M="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(e=global),exports),_=Array.prototype,D=Object.prototype,P=0,H=30,B=e._,j=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,F=/&(?:amp|lt|gt|quot|#x27);/g,I=/\b__p\+='';/g,q=/\b(__p\+=)''\+/g,R=/(__e\(.*?\)|\b__t\))\+'';/g,U=/\w*$/,z=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g,W=RegExp("^"+(D.valueOf+""
).replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),X=/($^)/,V=/[&<>"']/g,$=/['\n\r\t\u2028\u2029\\]/g,J="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),K=Math.ceil,Q=_.concat,G=Math.floor,Y=W.test(Y=Object.getPrototypeOf)&&Y,Z=D.hasOwnProperty,et=_.push,tt=D.propertyIsEnumerable,nt=_.slice,rt=D.toString,it=W.test(it=nt.bind)&&it,st=W.test(st=Array.isArray)&&st,ot=e.isFinite,ut=W.test(ut=Object.keys)&&ut
,at=Math.max,ft=Math.min,lt=Math.random,ct="[object Arguments]",ht="[object Array]",pt="[object Boolean]",dt="[object Date]",vt="[object Number]",mt="[object Object]",gt="[object RegExp]",yt="[object String]",bt=e.clearTimeout,wt=e.setTimeout,Et,St,xt,Tt=n;(function(){function e(){this.x=1}var t={0:1,length:1},n=[];e.prototype={valueOf:1,y:1};for(var r in new e)n.push(r);for(r in arguments)Tt=!r;Et=4>(n+"").length,xt="x"!=n[0],St=(n.splice.call(t,0,1),t[0])})(1);var Nt=!v(arguments),Ct="x"!=nt.call("x"
)[0],kt="xx"!="x"[0]+Object("x")[0];try{var Lt=("[object Object]",rt.call(e.document||0)==mt)}catch(At){}var Ot=it&&/\n|Opera/.test(it+rt.call(e.opera)),Mt=ut&&/^.+$|true/.test(ut+!!e.attachEvent),_t=!Ot,Dt={};Dt[pt]=Dt[dt]=Dt["[object Function]"]=Dt[vt]=Dt[mt]=Dt[gt]=i,Dt[ct]=Dt[ht]=Dt[yt]=n;var Pt={};Pt[ct]=Pt["[object Function]"]=i,Pt[ht]=Pt[pt]=Pt[dt]=Pt[vt]=Pt[mt]=Pt[gt]=Pt[yt]=n;var Ht={"boolean":i,"function":n,object:n,number:i,string:i,"undefined":i,unknown:n},Bt={"\\":"\\","'":"'","\n":"n"
,"\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};s.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""};var jt={a:"d,c,x",p:"c=f(c,x)",h:"if(c(A,i,d)===false)return t"},Ft={i:"{}",p:"c=f(c,x)",h:"var p=c(A,i,d);(h.call(t,p)?t[p]++:t[p]=1)"},It={i:"true",h:"if(!c(A,i,d))return!t"},qt={q:i,r:i,a:"m",p:"for(var a=1,b=arguments.length;a<b;a++){if(j=arguments[a]){",h:"t[i]=A",e:"}}"},Rt={i:"[]",h:"c(A,i,d)&&t.push(A)"},Ut={p:"c=f(c,x)"}
,zt={h:{k:jt.h}},Wt={i:"d||[]",d:{b:"t=Array(k)",k:"t="+(Mt?"Array(k)":"[]")},h:{b:"t[i]=c(A,i,d)",k:"t"+(Mt?"[n]=":".push")+"(c(A,i,d))"}},Xt={q:i,a:"m,c,x",i:"{}",p:"var R=typeof c=='function';if(R)c=f(c,x);else var s=e.apply(E,arguments)",h:"if(R?!c(A,i,m):M(s,i)<0)t[i]=A"},Vt=l({a:"m",i:"{}",h:"t[A]=i"});Nt&&(v=function(e){return e?Z.call(e,"callee"):i});var $t=st||function(e){return rt.call(e)==ht};m(/x/)&&(m=function(e){return"[object Function]"==rt.call(e)});var Jt=Y?function(e){if(!e||"object"!=typeof
e)return i;var t=e.valueOf,n="function"==typeof t&&(n=Y(t))&&Y(n);return n?e==n||Y(e)==n&&!v(e):g(e)}:g,Kt=l({a:"m",i:"[]",h:"t.push(i)"}),Qt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},Gt=Vt(Qt),Yt=l(qt,{h:"if(t[i]==null)"+qt.h}),Zt=l(qt),en=l(jt,Ut,zt,{q:i}),tn=l(jt,Ut,zt),nn=l({q:i,a:"m",i:"[]",h:"S(A)&&t.push(i)",e:"t.sort()"}),rn=l({a:"A",i:"true",p:"var H=y.call(A),k=A.length;if(D[H]"+(Nt?"||O(A)":"")+"||(H==X&&k===+k&&S(A.splice)))return!k",h:{k:"return false"}}),sn=ut?function(
e){var t=typeof e;return"function"==t&&tt.call(e,"prototype")?Kt(e):e&&Ht[t]?ut(e):[]}:Kt,on=l(qt,{a:"m,dd,N",p:"var P,C=arguments,a=0;if(N==I){var b=2,ee=C[3],ff=C[4]}else var b=C.length,ee=[],ff=[];while(++a<b){if(j=C[a]){",h:"if((dd=A)&&((P=Q(dd))||T(dd))){var K=false,gg=ee.length;while(gg--)if(K=ee[gg]==dd)break;if(K){t[i]=ff[gg]}else {ee.push(dd);ff.push(A=(A=t[i],P)?(Q(A)?A:[]):(T(A)?A:{}));t[i]=G(A,dd,I,ee,ff)}}else if(dd!=null)t[i]=dd"}),un=l(Xt),an=l({a:"m",i:"[]",h:"t"+(Mt?"[n]=":".push"
)+"([i,A])"}),fn=l(Xt,{p:"if(typeof c!='function'){var i=0,s=e.apply(E,arguments),k=s.length;while(++i<k){var p=s[i];if(p in m)t[p]=m[p]}}else {c=f(c,x)",h:"if(c(A,i,m))t[i]=A",e:"}"}),ln=l({a:"m",i:"[]",h:"t.push(A)"}),cn=l({a:"d,hh",i:"false",n:i,d:{b:"if(y.call(d)==w)return d.indexOf(hh)>-1"},h:"if(A===hh)return true"}),hn=l(jt,Ft),pn=l(jt,It),dn=l(jt,Rt),vn=l(jt,Ut,{i:"z",h:"if(c(A,i,d))return A"}),mn=l(jt,Ut),gn=l(jt,Ft,{h:"var p=c(A,i,d);(h.call(t,p)?t[p]:t[p]=[]).push(A)"}),yn=l(Wt,{a:"d,U"
,p:"var C=v.call(arguments,2),R=typeof U=='function'",h:{b:"t[i]=(R?U:A[U]).apply(A,C)",k:"t"+(Mt?"[n]=":".push")+"((R?U:A[U]).apply(A,C))"}}),bn=l(jt,Wt),wn=l(Wt,{a:"d,bb",h:{b:"t[i]=A[bb]",k:"t"+(Mt?"[n]=":".push")+"(A[bb])"}}),En=l({a:"d,c,B,x",i:"B",p:"var V=arguments.length<3;c=f(c,x)",d:{b:"if(V)t=j[++i]"},h:{b:"t=c(t,A,i,d)",k:"t=V?(V=false,A):c(t,A,i,d)"}}),Sn=l(jt,Rt,{h:"!"+Rt.h}),xn=l(jt,It,{i:"false",h:It.h.replace("!","")}),Tn=l(jt,Ft,Wt,{h:{b:"t[i]={a:c(A,i,d),b:i,c:A}",k:"t"+(Mt?"[n]="
:".push")+"({a:c(A,i,d),b:i,c:A})"},e:"t.sort(I);k=t.length;while(k--)t[k]=t[k].c"}),Nn=l(Rt,{a:"d,aa",p:"var s=[];J(aa,function(A,p){s.push(p)});var cc=s.length",h:"for(var Z=true,r=0;r<cc;r++){var p=s[r];if(!(Z=A[p]===aa[p]))break}Z&&t.push(A)"}),Cn=l({q:i,r:i,a:"m",p:"var L=arguments,i=0,k=L.length;if(k>1){while(++i<k)t[L[i]]=F(t[L[i]],t);return t}",h:"if(S(A))t[i]=F(A,t)"});s.VERSION="0.8.2",s.after=function(e,t){return 1>e?t():function(){if(1>--e)return t.apply(this,arguments)}},s.bind=L,s.bindAll=
Cn,s.chain=function(e){return e=new s(e),e.__chain__=n,e},s.clone=y,s.compact=function(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var i=e[t];i&&r.push(i)}return r},s.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}},s.contains=cn,s.countBy=hn,s.debounce=function(e,t,n){function i(){a=r,n||(o=e.apply(u,s))}var s,o,u,a;return function(){var r=n&&!a;return s=arguments,u=this,bt(a),a=wt(i,t),r&&(o=e.apply(u,s)),o}},s.defaults=
Yt,s.defer=function(e){var n=nt.call(arguments,1);return wt(function(){return e.apply(t,n)},1)},s.delay=function(e,n){var r=nt.call(arguments,2);return wt(function(){return e.apply(t,r)},n)},s.difference=function(e){var t=[];if(!e)return t;for(var n=-1,r=e.length,i=Q.apply(_,arguments),i=o(i,r);++n<r;){var s=e[n];i(s)||t.push(s)}return t},s.escape=function(e){return e==r?"":(e+"").replace(V,h)},s.every=pn,s.extend=Zt,s.filter=dn,s.find=vn,s.first=S,s.flatten=x,s.forEach=mn,s.forIn=en,s.forOwn=tn,
s.functions=nn,s.groupBy=gn,s.has=function(e,t){return e?Z.call(e,t):i},s.identity=A,s.indexOf=T,s.initial=function(e,t,n){return e?nt.call(e,0,-(t==r||n?1:t)):[]},s.intersection=function(e){var t=arguments.length,n=[],r=-1,i=e?e.length:0,s=[];e:for(;++r<i;){var u=e[r];if(0>T(s,u)){for(var a=1;a<t;a++)if(!(n[a]||(n[a]=o(arguments[a])))(u))continue e;s.push(u)}}return s},s.invert=Vt,s.invoke=yn,s.isArguments=v,s.isArray=$t,s.isBoolean=function(e){return e===n||e===i||rt.call(e)==pt},s.isDate=function(
e){return rt.call(e)==dt},s.isElement=function(e){return e?1===e.nodeType:i},s.isEmpty=rn,s.isEqual=b,s.isFinite=function(e){return ot(e)&&rt.call(e)==vt},s.isFunction=m,s.isNaN=function(e){return rt.call(e)==vt&&e!=+e},s.isNull=function(e){return e===r},s.isNumber=function(e){return rt.call(e)==vt},s.isObject=function(e){return e?Ht[typeof e]:i},s.isPlainObject=Jt,s.isRegExp=function(e){return rt.call(e)==gt},s.isString=function(e){return rt.call(e)==yt},s.isUndefined=function(e){return e===t},s
.keys=sn,s.last=function(e,t,n){if(e){var i=e.length;return t==r||n?e[i-1]:nt.call(e,-t||i)}},s.lastIndexOf=function(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(0>n?at(0,r+n):ft(n,r-1))+1);r--;)if(e[r]===t)return r;return-1},s.lateBind=function(e,t){return a(t,e,nt.call(arguments,2))},s.map=bn,s.max=w,s.memoize=function(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return Z.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}},s.merge=on,s.min=function(e,t,n){var r=
Infinity,i=-1,s=e?e.length:0,o=r;if(t||s!==+s)t=f(t,n),mn(e,function(e,n,i){n=t(e,n,i),n<r&&(r=n,o=e)});else for(;++i<s;)e[i]<o&&(o=e[i]);return o},s.mixin=O,s.noConflict=function(){return e._=B,this},s.object=function(e,t){for(var n=-1,r=e?e.length:0,i={};++n<r;){var s=e[n];t?i[s]=t[n]:i[s[0]]=s[1]}return i},s.omit=un,s.once=function(e){var t,s=i;return function(){return s?t:(s=n,t=e.apply(this,arguments),e=r,t)}},s.pairs=an,s.partial=function(e){return a(e,nt.call(arguments,1))},s.pick=fn,s.pluck=
wn,s.random=function(e,t){return e==r&&t==r&&(t=1),e=+e||0,t==r&&(t=e,e=0),e+G(lt()*((+t||0)-e+1))},s.range=function(e,t,n){e=+e||0,n=+n||1,t==r&&(t=e,e=0);for(var i=-1,t=at(0,K((t-e)/n)),s=Array(t);++i<t;)s[i]=e,e+=n;return s},s.reduce=En,s.reduceRight=E,s.reject=Sn,s.rest=N,s.result=function(e,t){var n=e?e[t]:r;return m(n)?e[t]():n},s.shuffle=function(e){var t=-1,n=Array(e?e.length:0);return mn(e,function(e){var r=G(lt()*(++t+1));n[t]=n[r],n[r]=e}),n},s.size=function(e){var t=e?e.length:0;return t===+
t?t:sn(e).length},s.some=xn,s.sortBy=Tn,s.sortedIndex=C,s.tap=function(e,t){return t(e),e},s.template=function(e,t,n){e||(e=""),n||(n={});var r,i,o=0,u=s.templateSettings,a="__p += '",f=n.variable||u.variable,l=f;e.replace(RegExp((n.escape||u.escape||X).source+"|"+(n.interpolate||u.interpolate||X).source+"|"+(n.evaluate||u.evaluate||X).source+"|$","g"),function(t,n,i,s,u){a+=e.slice(o,u).replace($,c),a+=n?"'+__e("+n+")+'":s?"';"+s+";__p+='":i?"'+((__t=("+i+"))==null?'':__t)+'":"",r||(r=s||j.test(
n||i)),o=u+t.length}),a+="';",l||(f="obj",r?a="with("+f+"){"+a+"}":(n=RegExp("(\\(\\s*)"+f+"\\."+f+"\\b","g"),a=a.replace(z,"$&"+f+".").replace(n,"$1__d"))),a=(r?a.replace(I,""):a).replace(q,"$1").replace(R,"$1;"),a="function("+f+"){"+(l?"":f+"||("+f+"={});")+"var __t,__p='',__e=_.escape"+(r?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":(l?"":",__d="+f+"."+f+"||"+f)+";")+a+"return __p}";try{i=Function("_","return "+a)(s)}catch(h){throw h.source=a,h}return t?i(t):(i.source=
a,i)},s.throttle=function(e,t){function n(){a=new Date,u=r,s=e.apply(o,i)}var i,s,o,u,a=0;return function(){var r=new Date,f=t-(r-a);return i=arguments,o=this,0>=f?(bt(u),a=r,s=e.apply(o,i)):u||(u=wt(n,f)),s}},s.times=function(e,t,n){for(var e=+e||0,r=-1,i=Array(e);++r<e;)i[r]=t.call(n,r);return i},s.toArray=function(e){if(!e)return[];var t=e.length;return t===+t?(Ct?rt.call(e)==yt:"string"==typeof e)?e.split(""):nt.call(e):ln(e)},s.unescape=function(e){return e==r?"":(e+"").replace(F,d)},s.union=
function(){for(var e=-1,t=Q.apply(_,arguments),n=t.length,r=[];++e<n;){var i=t[e];0>T(r,i)&&r.push(i)}return r},s.uniq=k,s.uniqueId=function(e){var t=P++;return e?e+t:t},s.values=ln,s.where=Nn,s.without=function(e){for(var t=-1,n=e?e.length:0,r=o(arguments,1,20),i=[];++t<n;){var s=e[t];r(s)||i.push(s)}return i},s.wrap=function(e,t){return function(){var n=[e];return arguments.length&&et.apply(n,arguments),t.apply(this,n)}},s.zip=function(e){for(var t=-1,n=e?w(wn(arguments,"length")):0,r=Array(n);++
t<n;)r[t]=wn(arguments,t);return r},s.all=pn,s.any=xn,s.collect=bn,s.detect=vn,s.drop=N,s.each=mn,s.foldl=En,s.foldr=E,s.head=S,s.include=cn,s.inject=En,s.methods=nn,s.select=dn,s.tail=N,s.take=S,s.unique=k,O(s),s.prototype.chain=function(){return this.__chain__=n,this},s.prototype.value=function(){return this.__wrapped__},mn("pop push reverse shift sort splice unshift".split(" "),function(e){var t=_[e];s.prototype[e]=function(){var e=this.__wrapped__;return t.apply(e,arguments),St&&e.length===0&&delete
e[0],this.__chain__&&(e=new s(e),e.__chain__=n),e}}),mn(["concat","join","slice"],function(e){var t=_[e];s.prototype[e]=function(){var e=t.apply(this.__wrapped__,arguments);return this.__chain__&&(e=new s(e),e.__chain__=n),e}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(e._=s,define(function(){return s})):M?"object"==typeof module&&module&&module.exports==M?(module.exports=s)._=s:M._=s:e._=s})(this);
;(function(n,t){function r(n){return n&&n.__wrapped__?n:this instanceof r?(this.__wrapped__=n,void 0):new r(n)}function e(n,t,r){t||(t=0);var e=n.length,u=e-t>=(r||Y),o=u?{}:n;if(u)for(r=t-1;++r<e;){var a=n[r]+"";(_t.call(o,a)?o[a]:o[a]=[]).push(n[r])}return function(n){if(u){var r=n+"";return _t.call(o,r)&&-1<T(o[r],n)}return-1<T(o,n,t)}}function u(n,r){var e=n.b,u=r.b,n=n.a,r=r.a;if(n!==r){if(n>r||n===t)return 1;if(n<r||r===t)return-1}return e<u?-1:1}function o(n,t,r){function e(){var i=arguments,c=o?this:t;
return u||(n=t[a]),r.length&&(i=i.length?r.concat(bt.call(i)):r),this instanceof e?(l.prototype=n.prototype,c=new l,(i=n.apply(c,i))&&Ht[typeof i]?i:c):n.apply(c,i)}var u=b(n),o=!r,a=n;return o&&(r=t),e}function a(n,r){return n?typeof n!="function"?function(t){return t[n]}:r!==t?function(t,e,u){return n.call(r,t,e,u)}:n:P}function i(){for(var n,t={b:"",c:"",e:H,f:Vt,g:"",h:Dt,i:zt,j:pt,k:"",l:C},r=0;n=arguments[r];r++)for(var e in n)t[e]=n[e];if(n=t.a,t.d=/^[^,]+/.exec(n)[0],r="var h,w,j="+t.d+",r="+t.d+";if(!"+t.d+")return r;"+t.k+";",t.b?(r+="var k=j.length;h=-1;if(typeof k=='number'){",t.i&&(r+="if(v.call(j)==t){j=j.split('')}"),r+="while(++h<k){w=j[h];"+t.b+"}}else {"):t.h&&(r+="var k=j.length;h=-1;if(k&&i(j)){while(++h<k){w=j[h+=''];"+t.g+"}}else {"),t.e||(r+="var s=typeof j=='function'&&q.call(j,'prototype');"),t.f&&t.l?(r+="var o=-1,p=n[typeof j]?l(j):[],k=p.length;while(++o<k){h=p[o];",t.e||(r+="if(!(s&&h=='prototype')){"),r+="w=j[h];"+t.g,t.e||(r+="}")):(r+="for(h in j){",(!t.e||t.l)&&(r+="if(",t.e||(r+="!(s&&h=='prototype')"),!t.e&&t.l&&(r+="&&"),t.l&&(r+="g.call(j,h)"),r+="){"),r+="w=j[h];"+t.g+";",(!t.e||t.l)&&(r+="}")),r+="}",t.e)for(r+="var f=j.constructor;",e=0;7>e;e++)r+="h='"+t.j[e]+"';if(","constructor"==t.j[e]&&(r+="!(f&&f.prototype===j)&&"),r+="g.call(j,h)){w=j[h];"+t.g+"}";
return(t.b||t.h)&&(r+="}"),r+=t.c+";return r",Function("e,g,i,n,l,q,t,v","return function("+n+"){"+r+"}")(a,_t,s,Ht,Ot,mt,Bt,dt)}function c(n){return"\\"+Jt[n]}function f(n){return Zt[n]}function l(){}function p(n){return nr[n]}function s(n){return dt.call(n)==Et}function h(n){var t=U;if(!n||typeof n!="object"||s(n))return t;var r=n.constructor;return Ct&&typeof n.toString!="function"&&typeof(n+"")=="string"||b(r)&&!(r instanceof r)?t:J?(Xt(n,function(n,r,e){return t=!_t.call(e,r),U}),t===U):(Xt(n,function(n,r){t=r
}),t===U||_t.call(n,t))}function v(n){var t=[];return Yt(n,function(n,r){t.push(r)}),t}function g(n,t,r,e,u){if(n==L)return n;if(r&&(t=U),r=Ht[typeof n]){var o=dt.call(n);if(!Gt[o]||Mt&&s(n))return n;var a=o==$t,r=a||(o==Rt?ur(n):r)}if(!r||!t)return r?a?bt.call(n):rr({},n):n;switch(r=n.constructor,o){case qt:case Ft:return new r(+n);case It:case Bt:return new r(n);case Tt:return r(n.source,ot.exec(n))}for(e||(e=[]),u||(u=[]),o=e.length;o--;)if(e[o]==n)return u[o];var i=a?r(n.length):{};return e.push(n),u.push(i),(a?ar:Yt)(n,function(n,r){i[r]=g(n,t,L,e,u)
}),i}function _(n){var t=[];return Xt(n,function(n,r){b(n)&&t.push(r)}),t.sort()}function y(n){var t={};return Yt(n,function(n,r){t[n]=r}),t}function m(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(n==L||t==L)return n===t;var u=dt.call(n);if(u!=dt.call(t))return U;switch(u){case qt:case Ft:return+n==+t;case It:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case Tt:case Bt:return n==t+""}var o=u==$t||u==Et;if(Mt&&!o&&(o=s(n))&&!s(t))return U;if(!o){if(n.__wrapped__||t.__wrapped__)return m(n.__wrapped__||n,t.__wrapped__||t);
if(u!=Rt||Ct&&(typeof n.toString!="function"&&typeof(n+"")=="string"||typeof t.toString!="function"&&typeof(t+"")=="string"))return U;var u=n.constructor,a=t.constructor;if(u!=a&&(!b(u)||!(u instanceof u&&b(a)&&a instanceof a)))return U}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;var u=-1,a=C,i=0;if(r.push(n),e.push(t),o){if(i=n.length,a=i==t.length)for(;i--&&(a=m(n[i],t[i],r,e)););return a}for(var c in n)if(_t.call(n,c)&&(i++,!_t.call(t,c)||!m(n[c],t[c],r,e)))return U;for(c in t)if(_t.call(t,c)&&!i--)return U;
if(H)for(;7>++u;)if(c=pt[u],_t.call(n,c)&&(!_t.call(t,c)||!m(n[c],t[c],r,e)))return U;return C}function b(n){return typeof n=="function"}function d(n,t,r){var e=arguments,u=0,o=2,a=e[3],i=e[4];for(r!==X&&(a=[],i=[],o=e.length);++u<o;)Yt(e[u],function(t,r){var e,u,o;if(t&&((u=er(t))||ur(t))){for(var c=a.length;c--&&!(e=a[c]==t););e?n[r]=i[c]:(a.push(t),i.push((o=n[r],o=u?er(o)?o:[]:ur(o)?o:{})),n[r]=d(o,t,X,a,i))}else t!=L&&(n[r]=t)});return n}function j(n){var t=[];return Yt(n,function(n){t.push(n)
}),t}function w(n,t){return typeof(n?n.length:0)=="number"?-1<(dt.call(n)==Bt?n.indexOf(t):T(n,t)):F(n,function(n){return n===t})}function x(n,t,r){var e=C,t=a(t,r);return ar(n,function(n,r,u){return e=t(n,r,u)}),!!e}function O(n,t,r){var e=[],t=a(t,r);return ar(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e}function k(n,t,r){var e,t=a(t,r);return F(n,function(n,r,u){return t(n,r,u)&&(e=n,C)}),e}function A(n,t,r){var e=-1,u=n?n.length:0,o=Array(typeof u=="number"?u:0),t=a(t,r);if(er(n))for(;++e<u;)o[e]=t(n[e],e,n);
else ar(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function S(n,t,r){var e=-1/0,u=-1,o=n?n.length:0,i=e;if(t||typeof o!="number")t=a(t,r),ar(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,i=n)});else for(;++u<o;)n[u]>i&&(i=n[u]);return i}function E(n,t){var r=[];return ar(n,function(n){r.push(n[t])}),r}function $(n,t,r,e){var u=3>arguments.length,t=a(t,e);return ar(n,function(n,e,o){r=u?(u=U,n):t(r,n,e,o)}),r}function q(n,t,r,e){var u=n,o=n?n.length:0,a=3>arguments.length;if(typeof o!="number")var i=or(n),o=i.length;
else zt&&dt.call(n)==Bt&&(u=n.split(""));return ar(n,function(n,c,f){c=i?i[--o]:--o,r=a?(a=U,u[c]):t.call(e,r,u[c],c,f)}),r}function F(n,t,r){var e,t=a(t,r);return ar(n,function(n,r,u){return!(e=t(n,r,u))}),!!e}function I(n,t,r){return n?t==L||r?n[0]:bt.call(n,0,t):void 0}function R(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var o=n[r];er(o)?yt.apply(u,t?o:R(o)):u.push(o)}return u}function T(n,t,r){var e=-1,u=n?n.length:0;if(typeof r=="number")e=(0>r?kt(0,u+r):r||0)-1;else if(r)return e=N(n,t),n[e]===t?e:-1;
for(;++e<u;)if(n[e]===t)return e;return-1}function B(n,t,r){return n?bt.call(n,t==L||r?1:t):[]}function N(n,t,r,e){for(var u=0,o=n?n.length:u,r=r?a(r,e):P,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function D(n,t,r,e){var u=-1,o=n?n.length:0,i=[],c=[];for(typeof t=="function"&&(e=r,r=t,t=U),r=a(r,e);++u<o;)e=r(n[u],u,n),(t?!u||c[c.length-1]!==e:0>T(c,e))&&(c.push(e),i.push(n[u]));return i}function M(n,t){return Ut||jt&&2<arguments.length?jt.call.apply(jt,arguments):o(n,t,bt.call(arguments,2))
}function P(n){return n}function z(n){ar(_(n),function(t){var e=r[t]=n[t];r.prototype[t]=function(){var n=[this.__wrapped__];return yt.apply(n,arguments),n=e.apply(r,n),this.__chain__&&(n=new r(n),n.__chain__=C),n}})}var C=!0,L=null,U=!1,V=typeof exports=="object"&&exports,G=typeof global=="object"&&global;G.global===G&&(n=G);var H,J,K=[],Q={},W=0,X={},Y=30,Z=n._,nt=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,tt=/&(?:amp|lt|gt|quot|#x27);/g,rt=/\b__p\+='';/g,et=/\b(__p\+=)''\+/g,ut=/(__e\(.*?\)|\b__t\))\+'';/g,ot=/\w*$/,at=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g,it=RegExp("^"+(Q.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ct=/($^)/,ft=/[&<>"']/g,lt=/['\n\r\t\u2028\u2029\\]/g,pt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),st=Math.ceil,ht=K.concat,vt=Math.floor,gt=it.test(gt=Object.getPrototypeOf)&&gt,_t=Q.hasOwnProperty,yt=K.push,mt=Q.propertyIsEnumerable,bt=K.slice,dt=Q.toString,jt=it.test(jt=bt.bind)&&jt,wt=it.test(wt=Array.isArray)&&wt,xt=n.isFinite,Ot=it.test(Ot=Object.keys)&&Ot,kt=Math.max,At=Math.min,St=Math.random,Et="[object Arguments]",$t="[object Array]",qt="[object Boolean]",Ft="[object Date]",It="[object Number]",Rt="[object Object]",Tt="[object RegExp]",Bt="[object String]",Nt=(Nt={0:1,length:1},K.splice.call(Nt,0,1),Nt[0]),Dt=C;
(function(){function n(){this.x=1}var t=[];n.prototype={valueOf:1,y:1};for(var r in new n)t.push(r);for(r in arguments)Dt=!r;H=!/valueOf/.test(t),J="x"!=t[0]})(1);var Mt=!s(arguments),Pt="x"!=bt.call("x")[0],zt="xx"!="x"[0]+Object("x")[0];try{var Ct=dt.call(n.document||0)==Rt}catch(Lt){}var Ut=jt&&/\n|Opera/.test(jt+dt.call(n.opera)),Vt=Ot&&/^.+$|true/.test(Ot+!!n.attachEvent),Gt={};Gt[Et]=Gt["[object Function]"]=U,Gt[$t]=Gt[qt]=Gt[Ft]=Gt[It]=Gt[Rt]=Gt[Tt]=Gt[Bt]=C;var Ht={"boolean":U,"function":C,object:C,number:U,string:U,undefined:U},Jt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};
r.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""};var Kt={a:"d,c,u",k:"c=e(c,u)",b:"if(c(w,h,d)===false)return r",g:"if(c(w,h,d)===false)return r"},Qt={l:U,a:"m",k:"for(var a=1,b=arguments.length;a<b;a++){if(j=arguments[a]){",g:"r[h]=w",c:"}}"},Wt={b:L};Mt&&(s=function(n){return n?_t.call(n,"callee"):U});var Xt=i(Kt,Wt,{l:U}),Yt=i(Kt,Wt),Zt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},nr=y(Zt),tr=i(Qt,{g:"if(r[h]==null)"+Qt.g}),rr=i(Qt),er=wt||function(n){return dt.call(n)==$t
};b(/x/)&&(b=function(n){return"[object Function]"==dt.call(n)});var ur=gt?function(n){if(!n||typeof n!="object")return U;var t=n.valueOf,r=typeof t=="function"&&(r=gt(t))&&gt(r);return r?n==r||gt(n)==r&&!s(n):h(n)}:h,or=Ot?function(n){var t=typeof n;return"function"==t&&mt.call(n,"prototype")?v(n):n&&Ht[t]?Ot(n):[]}:v,ar=i(Kt);r.VERSION="0.9.0",r.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},r.bind=M,r.bindAll=function(n){for(var t=arguments,r=1<t.length?0:(t=_(n),-1),e=t.length;++r<e;){var u=t[r];
n[u]=M(n[u],n)}return n},r.chain=function(n){return n=new r(n),n.__chain__=C,n},r.clone=g,r.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},r.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},r.contains=w,r.countBy=function(n,t,r){var e={},t=a(t,r);return ar(n,function(n,r,u){r=t(n,r,u),_t.call(e,r)?e[r]++:e[r]=1}),e},r.debounce=function(n,t,r){function e(){i=L,r||(o=n.apply(a,u))
}var u,o,a,i;return function(){var c=r&&!i;return u=arguments,a=this,clearTimeout(i),i=setTimeout(e,t),c&&(o=n.apply(a,u)),o}},r.defaults=tr,r.defer=function(n){var r=bt.call(arguments,1);return setTimeout(function(){n.apply(t,r)},1)},r.delay=function(n,r){var e=bt.call(arguments,2);return setTimeout(function(){n.apply(t,e)},r)},r.difference=function(n){for(var t=-1,r=n?n.length:0,u=ht.apply(K,arguments),u=e(u,r),o=[];++t<r;){var a=n[t];u(a)||o.push(a)}return o},r.escape=function(n){return n==L?"":(n+"").replace(ft,f)
},r.every=x,r.extend=rr,r.filter=O,r.find=k,r.first=I,r.flatten=R,r.forEach=ar,r.forIn=Xt,r.forOwn=Yt,r.functions=_,r.groupBy=function(n,t,r){var e={},t=a(t,r);return ar(n,function(n,r,u){r=t(n,r,u),(_t.call(e,r)?e[r]:e[r]=[]).push(n)}),e},r.has=function(n,t){return n?_t.call(n,t):U},r.identity=P,r.indexOf=T,r.initial=function(n,t,r){return n?bt.call(n,0,-(t==L||r?1:t)):[]},r.intersection=function(n){var t=arguments,r=t.length,u={},o=[];return ar(n,function(n){if(0>T(o,n)){for(var a=r;--a;)if(!(u[a]||(u[a]=e(t[a])))(n))return;
o.push(n)}}),o},r.invert=y,r.invoke=function(n,t){var r=bt.call(arguments,2),e=typeof t=="function",u=[];return ar(n,function(n){u.push((e?t:n[t]).apply(n,r))}),u},r.isArguments=s,r.isArray=er,r.isBoolean=function(n){return n===C||n===U||dt.call(n)==qt},r.isDate=function(n){return dt.call(n)==Ft},r.isElement=function(n){return n?1===n.nodeType:U},r.isEmpty=function(n){var t=C;if(!n)return t;var r=dt.call(n),e=n.length;return r==$t||r==Bt||r==Et||Mt&&s(n)||r==Rt&&typeof e=="number"&&b(n.splice)?!e:(Yt(n,function(){return t=U
}),t)},r.isEqual=m,r.isFinite=function(n){return xt(n?+n:parseFloat(n))},r.isFunction=b,r.isNaN=function(n){return dt.call(n)==It&&n!=+n},r.isNull=function(n){return n===L},r.isNumber=function(n){return dt.call(n)==It},r.isObject=function(n){return n?Ht[typeof n]:U},r.isPlainObject=ur,r.isRegExp=function(n){return dt.call(n)==Tt},r.isString=function(n){return dt.call(n)==Bt},r.isUndefined=function(n){return n===t},r.keys=or,r.last=function(n,t,r){if(n){var e=n.length;return t==L||r?n[e-1]:bt.call(n,-t||e)
}},r.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?kt(0,e+r):At(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},r.lateBind=function(n,t){return o(t,n,bt.call(arguments,2))},r.map=A,r.max=S,r.memoize=function(n,t){var r={};return function(){var e=t?t.apply(this,arguments):arguments[0];return _t.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},r.merge=d,r.min=function(n,t,r){var e=1/0,u=-1,o=n?n.length:0,i=e;if(t||typeof o!="number")t=a(t,r),ar(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,i=n)
});else for(;++u<o;)n[u]<i&&(i=n[u]);return i},r.mixin=z,r.noConflict=function(){return n._=Z,this},r.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var o=n[r];t?u[o]=t[r]:u[o[0]]=o[1]}return u},r.omit=function(n,t,r){var e=typeof t=="function",u={};if(e)t=a(t,r);else var o=ht.apply(K,arguments);return Xt(n,function(n,r,a){(e?!t(n,r,a):0>T(o,r,1))&&(u[r]=n)}),u},r.once=function(n){var t,r=U;return function(){return r?t:(r=C,t=n.apply(this,arguments),n=L,t)}},r.pairs=function(n){var t=[];
return Yt(n,function(n,r){t.push([r,n])}),t},r.partial=function(n){return o(n,bt.call(arguments,1))},r.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=0,o=ht.apply(K,arguments),i=o.length;++u<i;){var c=o[u];c in n&&(e[c]=n[c])}else t=a(t,r),Xt(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},r.pluck=E,r.random=function(n,t){return n==L&&t==L&&(t=1),n=+n||0,t==L&&(t=n,n=0),n+vt(St()*((+t||0)-n+1))},r.range=function(n,t,r){n=+n||0,r=+r||1,t==L&&(t=n,n=0);for(var e=-1,t=kt(0,st((t-n)/r)),u=Array(t);++e<t;)u[e]=n,n+=r;
return u},r.reduce=$,r.reduceRight=q,r.reject=function(n,t,r){return t=a(t,r),O(n,function(n,r,e){return!t(n,r,e)})},r.rest=B,r.result=function(n,t){var r=n?n[t]:L;return b(r)?n[t]():r},r.shuffle=function(n){var t=-1,r=Array(n?n.length:0);return ar(n,function(n){var e=vt(St()*(++t+1));r[t]=r[e],r[e]=n}),r},r.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:or(n).length},r.some=F,r.sortBy=function(n,t,r){var e=[],t=a(t,r);for(ar(n,function(n,r,u){e.push({a:t(n,r,u),b:r,c:n})}),n=e.length,e.sort(u);n--;)e[n]=e[n].c;
return e},r.sortedIndex=N,r.tap=function(n,t){return t(n),n},r.template=function(n,t,e){n||(n=""),e||(e={});var u,o,a=0,i=r.templateSettings,f="__p += '",l=e.variable||i.variable,p=l;n.replace(RegExp((e.escape||i.escape||ct).source+"|"+(e.interpolate||i.interpolate||ct).source+"|"+(e.evaluate||i.evaluate||ct).source+"|$","g"),function(t,r,e,o,i){f+=n.slice(a,i).replace(lt,c),f+=r?"'+__e("+r+")+'":o?"';"+o+";__p+='":e?"'+((__t=("+e+"))==null?'':__t)+'":"",u||(u=o||nt.test(r||e)),a=i+t.length}),f+="';",p||(l="obj",u?f="with("+l+"){"+f+"}":(e=RegExp("(\\(\\s*)"+l+"\\."+l+"\\b","g"),f=f.replace(at,"$&"+l+".").replace(e,"$1__d"))),f=(u?f.replace(rt,""):f).replace(et,"$1").replace(ut,"$1;"),f="function("+l+"){"+(p?"":l+"||("+l+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=[].join;function print(){__p+=__j.call(arguments,'')}":(p?"":",__d="+l+"."+l+"||"+l)+";")+f+"return __p}";
try{o=Function("_","return "+f)(r)}catch(s){throw s.source=f,s}return t?o(t):(o.source=f,o)},r.throttle=function(n,t){function r(){i=new Date,a=L,u=n.apply(o,e)}var e,u,o,a,i=0;return function(){var c=new Date,f=t-(c-i);return e=arguments,o=this,0<f?a||(a=setTimeout(r,f)):(clearTimeout(a),i=c,u=n.apply(o,e)),u}},r.times=function(n,t,r){for(var n=+n||0,e=-1,u=Array(n);++e<n;)u[e]=t.call(r,e);return u},r.toArray=function(n){return n&&typeof n.length=="number"?(Pt?dt.call(n)==Bt:typeof n=="string")?n.split(""):bt.call(n):j(n)
},r.unescape=function(n){return n==L?"":(n+"").replace(tt,p)},r.union=function(){for(var n=-1,t=ht.apply(K,arguments),r=t.length,e=[];++n<r;){var u=t[n];0>T(e,u)&&e.push(u)}return e},r.uniq=D,r.uniqueId=function(n){var t=W++;return n?n+t:t},r.values=j,r.where=function(n,t){var r=[];return Xt(t,function(n,t){r.push(t)}),O(n,function(n){for(var e=r.length;e--;){var u=n[r[e]]===t[r[e]];if(!u)break}return!!u})},r.without=function(n){for(var t=-1,r=n?n.length:0,u=e(arguments,1,20),o=[];++t<r;){var a=n[t];
u(a)||o.push(a)}return o},r.wrap=function(n,t){return function(){var r=[n];return yt.apply(r,arguments),t.apply(this,r)}},r.zip=function(n){for(var t=-1,r=n?S(E(arguments,"length")):0,e=Array(r);++t<r;)e[t]=E(arguments,t);return e},r.all=x,r.any=F,r.collect=A,r.detect=k,r.drop=B,r.each=ar,r.foldl=$,r.foldr=q,r.head=I,r.include=w,r.inject=$,r.methods=_,r.select=O,r.tail=B,r.take=I,r.unique=D,z(r),r.prototype.chain=function(){return this.__chain__=C,this},r.prototype.value=function(){return this.__wrapped__
},ar("pop push reverse shift sort splice unshift".split(" "),function(n){var t=K[n];r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),Nt&&0===n.length&&delete n[0],this.__chain__&&(n=new r(n),n.__chain__=C),n}}),ar(["concat","join","slice"],function(n){var t=K[n];r.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new r(n),n.__chain__=C),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=r,define(function(){return r
})):V?typeof module=="object"&&module&&module.exports==V?(module.exports=r)._=r:V._=r:n._=r})(this);
/*!
Lo-Dash 0.8.2 lodash.com/license
Lo-Dash 0.9.0 lodash.com/license
Underscore.js 1.4.2 underscorejs.org/LICENSE
*/
;(function(e,t){function s(e,t,r){var s;if(!e)return i;var t=x(t,r),o=e.length,r=-1;if(o===+o){for(;++r<o;)if(s=e[r],t(s,r,e))return n}else for(r in e)if(it.call(e,r)&&(s=e[r],t(s,r,e)))return n;return i}function o(e,t,n,r){var s,o,u=n;if(!e)return u;var a=3>arguments.length,t=x(t,r),f=e.length;s=-1;if(f===+f)for(a&&(u=e[++s]);++s<f;)o=e[s],u=t(u,o,s,e);else for(s in e)it.call(e,s)&&(o=e[s],u=a?(a=i,o):t(u,o,s,e));return u}function u(e,t){var n,r,i=e||[];if(!e)return i;var s=e.length;n=-1;if(s===+
s)for(i=Array(s);++n<s;)r=e[n],i[n]=r[t];else for(n in i=[],e)it.call(e,n)&&(r=e[n],i.push(r[t]));return i}function a(e,t,n){var r,i=e||[];if(!e)return i;var t=x(t,n),s=e.length,n=-1;if(s===+s)for(i=Array(s);++n<s;)r=e[n],i[n]=t(r,n,e);else for(n in i=[],e)it.call(e,n)&&(r=e[n],i.push(t(r,n,e)));return i}function f(e,t,n){var r;if(!e)return e;var t=x(t,n),i=e.length,n=-1;if(i===+i)for(;++n<i;)r=e[n],t(r,n,e);else for(n in e)it.call(e,n)&&(r=e[n],t(r,n,e));return e}function l(e,n,r){var i,s=t;if(!
e)return s;var n=x(n,r),o=e.length,r=-1;if(o===+o){for(;++r<o;)if(i=e[r],n(i,r,e))return i}else for(r in e)if(it.call(e,r)&&(i=e[r],n(i,r,e)))return i;return s}function c(e,t,n){var r,i=[];if(!e)return i;var t=x(t,n),s=e.length,n=-1;if(s===+s)for(;++n<s;)r=e[n],t(r,n,e)&&i.push(r);else for(n in e)it.call(e,n)&&(r=e[n],t(r,n,e)&&i.push(r));return i}function h(e,t,r){var s;if(!e)return n;var t=x(t,r),o=e.length,r=-1;if(o===+o){for(;++r<o;)if(s=e[r],!t(s,r,e))return i}else for(r in e)if(it.call(e,r)&&
(s=e[r],!t(s,r,e)))return i;return n}function p(e,t){var r,s;if(!e)return i;var o=e.length;r=-1;if(o===+o){if(ut.call(e)==wt)return-1<e.indexOf(t);for(;++r<o;)if(s=e[r],s===t)return n}else for(r in e)if(it.call(e,r)&&(s=e[r],s===t))return n;return i}function d(e){var t,n,r=[];if(!e)return r;for(t in e)it.call(e,t)&&(n=e[t],r.push(n));return r}function v(e){var t,n,r=[];if(!e)return r;for(t in e)n=e[t],L(n)&&r.push(t);return r.sort(),r}function m(e,t,n){var r;if(!e)return e;t=x(t,n);for(r in e)n=e
[r],t(n,r,e);return e}function g(e){var t,n,r=e;if(!e)return e;for(var i=1,s=arguments.length;i<s;i++)if(r=arguments[i])for(t in r)n=r[t],e[t]=n;return e}function y(e){var t,n=[];if(!e)return n;for(t in e)it.call(e,t)&&n.push(t);return n}function b(e){var t,n,r={};if(!e)return r;for(t in e)it.call(e,t)&&(n=e[t],r[n]=t);return r}function w(e){if(e&&e.__wrapped__)return e;if(!(this instanceof w))return new w(e);this.__wrapped__=e}function E(e,n){var r=e.b,i=n.b,e=e.a,n=n.a;if(e!==n){if(e>n||e===t)return 1
;if(e<n||n===t)return-1}return r<i?-1:1}function S(e,t,n){function r(){var i=arguments,s=t;return n.length&&(i=i.length?n.concat(ot.call(i)):n),this instanceof r?(C.prototype=e.prototype,s=new C,(i=e.apply(s,i))&&Tt[typeof i]?i:s):e.apply(s,i)}return r}function x(e,n){return e?"function"!=typeof e?function(t){return t[e]}:n!==t?function(t,r,i){return e.call(n,t,r,i)}:e:q}function T(e){return"\\"+Nt[e]}function N(e){return kt[e]}function C(){}function k(e){return Lt[e]}function L(e){return"function"==typeof
e}function A(e){var t=i;if(!e||"object"!=typeof e||isArguments(e))return t;var n=e.constructor;return!L(n)||n instanceof n?(m(e,function(e,n){t=n}),t===i||it.call(e,t)):t}function O(e,t,s,o){if(e==r||t==r)return e===t;if(e===t)return 0!==e||1/e==1/t;if(Tt[typeof e]||Tt[typeof t])e=e.__wrapped__||e,t=t.__wrapped__||t;var u=ut.call(e);if(u!=ut.call(t))return i;switch(u){case vt:case mt:return+e==+t;case gt:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case bt:case wt:return e==t+""}var a=Ct(e);if(!a&&u!=yt
)return i;s||(s=[]),o||(o=[]);for(u=s.length;u--;)if(s[u]==e)return o[u]==t;var f=n,u=0;s.push(e),o.push(t);if(a){u=e.length;if(f=u==t.length)for(;u--&&(f=O(e[u],t[u],s,o)););return f}a=e.constructor,f=t.constructor;if(a!=f&&(!L(a)||!(a instanceof a&&L(f)&&f instanceof f)))return i;for(var l in e)if(it.call(e,l)&&(u++,!it.call(t,l)||!O(e[l],t[l],s,o)))return i;for(l in t)if(it.call(t,l)&&!(u--))return i;return n}function M(e,t,n){var r=-Infinity,i=-1,s=e?e.length:0,o=r;if(t||s!==+s)t=x(t,n),f(e,function(
e,n,i){n=t(e,n,i),n>r&&(r=n,o=e)});else for(;++i<s;)e[i]>o&&(o=e[i]);return o}function _(e,t,n,r){var s=e?e.length:0,o=3>arguments.length;if(s!==+s)var u=At(e),s=u.length;return f(e,function(a,f,l){f=u?u[--s]:--s,n=o?(o=i,e[f]):t.call(r,n,e[f],f,l)}),n}function D(e,t,n){if(e)return t==r||n?e[0]:ot.call(e,0,t)}function P(e,t){for(var n=-1,r=e?e.length:0,i=[];++n<r;){var s=e[n];Ct(s)?st.apply(i,t?s:P(s)):i.push(s)}return i}function H(e,t,n){var r=-1,i=e?e.length:0;if("number"==typeof n)r=(0>n?ht(0,
i+n):n||0)-1;else if(n)return r=j(e,t),e[r]===t?r:-1;for(;++r<i;)if(e[r]===t)return r;return-1}function B(e,t,n){return e?ot.call(e,t==r||n?1:t):[]}function j(e,t,n,r){var i=0,s=e?e.length:i;if(n){n=x(n,r);for(t=n(t);i<s;)r=i+s>>>1,n(e[r])<t?i=r+1:s=r}else for(;i<s;)r=i+s>>>1,e[r]<t?i=r+1:s=r;return i}function F(e,t,n,r){var s=-1,o=e?e.length:0,u=[],a=[];"function"==typeof t&&(r=n,n=t,t=i);for(n=x(n,r);++s<o;)if(r=n(e[s],s,e),t?!s||a[a.length-1]!==r:0>H(a,r))a.push(r),u.push(e[s]);return u}function I
(e,t){return xt||at&&2<arguments.length?at.call.apply(at,arguments):S(e,t,ot.call(arguments,2))}function q(e){return e}function R(e){f(v(e),function(t){var r=w[t]=e[t];w.prototype[t]=function(){var e=[this.__wrapped__];return arguments.length&&st.apply(e,arguments),e=r.apply(w,e),this.__chain__&&(e=new w(e),e.__chain__=n),e}})}var n=!0,r=null,i=!1,U="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(e=global),exports),z=Array.prototype,W=Object.prototype,
X=0,V=e._,$=/[-?+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,J=/&(?:amp|lt|gt|quot|#x27);/g,K=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g,Q=RegExp("^"+(W.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),G=/($^)/,Y=/[&<>"']/g,Z=/['\n\r\t\u2028\u2029\\]/g,et=Math.ceil,tt=z.concat,nt=Math.floor,rt=Q.test(rt=Object.getPrototypeOf)&&rt,it=W.hasOwnProperty,st=z.push,ot=z.slice,ut=W.toString,at=Q.test(at=ot.bind)&&at,ft=Q.test(ft=Array.isArray
)&&ft,lt=e.isFinite,ct=Q.test(ct=Object.keys)&&ct,ht=Math.max,pt=Math.min,dt=Math.random,vt="[object Boolean]",mt="[object Date]",gt="[object Number]",yt="[object Object]",bt="[object RegExp]",wt="[object String]",Et=e.clearTimeout,St=e.setTimeout,xt=at&&/\n|Opera/.test(at+ut.call(e.opera)),Tt={"boolean":i,"function":n,object:n,number:i,string:i,"undefined":i,unknown:n},Nt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};w.templateSettings={escape:/<%-([\s\S]+?)%>/g
,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},w.isArguments=function(e){return"[object Arguments]"==ut.call(e)},w.isArguments(arguments)||(w.isArguments=function(e){return e?it.call(e,"callee"):i});var Ct=ft||function(e){return"[object Array]"==ut.call(e)};L(/x/)&&(L=function(e){return"[object Function]"==ut.call(e)});var W=rt?function(e){if(!e||"object"!=typeof e)return i;var t=e.valueOf,n="function"==typeof t&&(n=rt(t))&&rt(n);return n?e==n||rt(e)==n&&!isArguments(e):A
(e)}:A,kt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},Lt=b(kt),At=ct?function(e){return e&&Tt[typeof e]?ct(e):[]}:y;w.VERSION="0.8.2",w.after=function(e,t){return 1>e?t():function(){if(1>--e)return t.apply(this,arguments)}},w.bind=I,w.bindAll=function(e){var t,n,r=e,i=e;if(!e)return i;n=arguments,t=0;var s=n.length;if(1<s){for(;++t<s;)i[n[t]]=I(i[n[t]],i);return i}for(t in r)n=r[t],L(n)&&(i[t]=I(n,i));return i},w.chain=function(e){return e=new w(e),e.__chain__=n,e},w.clone=function(
e){return e&&Tt[typeof e]?Ct(e)?ot.call(e):g({},e):e},w.compact=function(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var i=e[t];i&&r.push(i)}return r},w.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}},w.contains=p,w.countBy=function(e,t,n){var r,i={};if(!e)return i;var t=x(t,n),s=e.length,n=-1;if(s===+s)for(;++n<s;)r=e[n],r=t(r,n,e),it.call(i,r)?i[r]++:i[r]=1;else for(n in e)it.call(e,n)&&(r=e[n],r=t(r,n,e),it.call(i,r)?
i[r]++:i[r]=1);return i},w.debounce=function(e,t,n){function i(){a=r,n||(o=e.apply(u,s))}var s,o,u,a;return function(){var r=n&&!a;return s=arguments,u=this,Et(a),a=St(i,t),r&&(o=e.apply(u,s)),o}},w.defaults=function(e){var t,n,i=e;if(!e)return e;for(var s=1,o=arguments.length;s<o;s++)if(i=arguments[s])for(t in i)n=i[t],e[t]==r&&(e[t]=n);return e},w.defer=function(e){var n=ot.call(arguments,1);return St(function(){return e.apply(t,n)},1)},w.delay=function(e,n){var r=ot.call(arguments,2);return St
(function(){return e.apply(t,r)},n)},w.difference=function(e){for(var t=-1,n=e.length,r=tt.apply(z,arguments),i=[];++t<n;){var s=e[t];0>H(r,s,n)&&i.push(s)}return i},w.escape=function(e){return e==r?"":(e+"").replace(Y,N)},w.every=h,w.extend=g,w.filter=c,w.find=l,w.first=D,w.flatten=P,w.forEach=f,w.forIn=m,w.forOwn=function(e,t,n){var r;if(!e)return e;t=x(t,n);for(r in e)it.call(e,r)&&(n=e[r],t(n,r,e));return e},w.functions=v,w.groupBy=function(e,t,n){var r,i={};if(!e)return i;var t=x(t,n),s=e.length
,n=-1;if(s===+s)for(;++n<s;){r=e[n];var o=t(r,n,e);(it.call(i,o)?i[o]:i[o]=[]).push(r)}else for(n in e)it.call(e,n)&&(r=e[n],o=t(r,n,e),(it.call(i,o)?i[o]:i[o]=[]).push(r));return i},w.has=function(e,t){return e?it.call(e,t):i},w.identity=q,w.indexOf=H,w.initial=function(e,t,n){return e?ot.call(e,0,-(t==r||n?1:t)):[]},w.intersection=function(e){var t=arguments.length,n=-1,r=e.length,i=[];e:for(;++n<r;){var s=e[n];if(0>H(i,s)){for(var o=1;o<t;o++)if(0>H(arguments[o],s))continue e;i.push(s)}}return i
},w.invert=b,w.invoke=function(e,t){var n,r,i=e,s=e||[];if(!e)return s;var o=ot.call(arguments,2),u="function"==typeof t,a=i.length;n=-1;if(a===+a)for(s=Array(a);++n<a;)r=i[n],s[n]=(u?t:r[t]).apply(r,o);else for(n in s=[],i)it.call(i,n)&&(r=i[n],s.push((u?t:r[t]).apply(r,o)));return s},w.isArray=Ct,w.isBoolean=function(e){return e===n||e===i||ut.call(e)==vt},w.isDate=function(e){return ut.call(e)==mt},w.isElement=function(e){return e?1===e.nodeType:i},w.isEmpty=function(e){var t;if(!e)return n;var r=
ut.call(e),s=e.length;if(Ct(e)||r==wt||r==yt&&s===+s&&L(e.splice))return!s;for(t in e)if(it.call(e,t))return i;return n},w.isEqual=O,w.isFinite=function(e){return lt(e)&&ut.call(e)==gt},w.isFunction=L,w.isNaN=function(e){return ut.call(e)==gt&&e!=+e},w.isNull=function(e){return e===r},w.isNumber=function(e){return ut.call(e)==gt},w.isObject=function(e){return e?Tt[typeof e]:i},w.isPlainObject=W,w.isRegExp=function(e){return ut.call(e)==bt},w.isString=function(e){return ut.call(e)==wt},w.isUndefined=
function(e){return e===t},w.keys=At,w.last=function(e,t,n){if(e){var i=e.length;return t==r||n?e[i-1]:ot.call(e,-t||i)}},w.lastIndexOf=function(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(0>n?ht(0,r+n):pt(n,r-1))+1);r--;)if(e[r]===t)return r;return-1},w.map=a,w.max=M,w.memoize=function(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return it.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}},w.min=function(e,t,n){var r=Infinity,i=-1,s=e?e.length:0,o=r;if(t||s!==+
s)t=x(t,n),f(e,function(e,n,i){n=t(e,n,i),n<r&&(r=n,o=e)});else for(;++i<s;)e[i]<o&&(o=e[i]);return o},w.mixin=R,w.noConflict=function(){return e._=V,this},w.object=function(e,t){for(var n=-1,r=e?e.length:0,i={};++n<r;){var s=e[n];t?i[s]=t[n]:i[s[0]]=s[1]}return i},w.omit=function(e,t,n){var r,i,s=e,o={};if(!e)return o;var u="function"==typeof t;if(u)t=x(t,n);else var a=tt.apply(z,arguments);for(r in s)if(i=s[r],u?!t(i,r,e):0>H(a,r))o[r]=i;return o},w.once=function(e){var t,s=i;return function(){
return s?t:(s=n,t=e.apply(this,arguments),e=r,t)}},w.pairs=function(e){var t,n,r=[];if(!e)return r;for(t in e)it.call(e,t)&&(n=e[t],r.push([t,n]));return r},w.pick=function(e,t,n){var r,i,s=e,o={};if(!e)return o;if("function"!=typeof t){r=0,i=tt.apply(z,arguments);for(s=i.length;++r<s;){var u=i[r];u in e&&(o[u]=e[u])}}else for(r in t=x(t,n),s)i=s[r],t(i,r,e)&&(o[r]=i);return o},w.pluck=u,w.random=function(e,t){return e==r&&t==r&&(t=1),e=+e||0,t==r&&(t=e,e=0),e+nt(dt()*((+t||0)-e+1))},w.range=function(
e,t,n){e=+e||0,n=+n||1,t==r&&(t=e,e=0);for(var i=-1,t=ht(0,et((t-e)/n)),s=Array(t);++i<t;)s[i]=e,e+=n;return s},w.reduce=o,w.reduceRight=_,w.reject=function(e,t,n){var r,i=[];if(!e)return i;var t=x(t,n),s=e.length,n=-1;if(s===+s)for(;++n<s;)r=e[n],!t(r,n,e)&&i.push(r);else for(n in e)it.call(e,n)&&(r=e[n],!t(r,n,e)&&i.push(r));return i},w.rest=B,w.result=function(e,t){var n=e?e[t]:r;return L(n)?e[t]():n},w.shuffle=function(e){var t=-1,n=Array(e?e.length:0);return f(e,function(e){var r=nt(dt()*(++
t+1));n[t]=n[r],n[r]=e}),n},w.size=function(e){var t=e?e.length:0;return t===+t?t:At(e).length},w.some=s,w.sortBy=function(e,t,n){var r,i=e||[];if(!e)return i;var t=x(t,n),s=e.length,n=-1;if(s===+s)for(i=Array(s);++n<s;)r=e[n],i[n]={a:t(r,n,e),b:n,c:r};else for(n in i=[],e)it.call(e,n)&&(r=e[n],i.push({a:t(r,n,e),b:n,c:r}));i.sort(E);for(s=i.length;s--;)i[s]=i[s].c;return i},w.sortedIndex=j,w.tap=function(e,t){return t(e),e},w.template=function(e,t,n){e||(e=""),n||(n={});var r,i,s=0,o=w.templateSettings
,u="__p += '",a=n.variable||o.variable,f=a;e.replace(RegExp((n.escape||o.escape||G).source+"|"+(n.interpolate||o.interpolate||G).source+"|"+(n.evaluate||o.evaluate||G).source+"|$","g"),function(t,n,i,o,a){u+=e.slice(s,a).replace(Z,T),u+=n?"'+__e("+n+")+'":o?"';"+o+";__p+='":i?"'+((__t=("+i+"))==null?'':__t)+'":"",r||(r=o||$.test(n||i)),s=a+t.length}),u+="';",f||(a="obj",r?u="with("+a+"){"+u+"}":(n=RegExp("(\\(\\s*)"+a+"\\."+a+"\\b","g"),u=u.replace(K,"$&"+a+".").replace(n,"$1__d"))),u="function("+
a+"){"+(f?"":a+"||("+a+"={});")+"var __t,__p='',__e=_.escape"+(r?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":(f?"":",__d="+a+"."+a+"||"+a)+";")+u+"return __p}";try{i=Function("_","return "+u)(w)}catch(l){throw l.source=u,l}return t?i(t):(i.source=u,i)},w.throttle=function(e,t){function n(){a=new Date,u=r,s=e.apply(o,i)}var i,s,o,u,a=0;return function(){var r=new Date,f=t-(r-a);return i=arguments,o=this,0>=f?(Et(u),a=r,s=e.apply(o,i)):u||(u=St(n,f)),s}},w.times=function(
e,t,n){for(var e=+e||0,r=-1,i=Array(e);++r<e;)i[r]=t.call(n,r);return i},w.toArray=function(e){if(!e)return[];var t=e.length;return t===+t?"string"==typeof e?e.split(""):ot.call(e):d(e)},w.unescape=function(e){return e==r?"":(e+"").replace(J,k)},w.union=function(){for(var e=-1,t=tt.apply(z,arguments),n=t.length,r=[];++e<n;){var i=t[e];0>H(r,i)&&r.push(i)}return r},w.uniq=F,w.uniqueId=function(e){var t=X++;return e?e+t:t},w.values=d,w.where=function(e,t){var r,i,s=[];if(!e)return s;var o=[];m(t,function(
e,t){o.push(t)});var u=o.length,a=e.length;r=-1;if(a===+a)for(;++r<a;){i=e[r];for(var f=n,l=0;l<u&&(f=o[l],f=i[f]===t[f]);l++);f&&s.push(i)}else for(r in e)if(it.call(e,r)){i=e[r],f=n;for(l=0;l<u&&(f=o[l],f=i[f]===t[f]);l++);f&&s.push(i)}return s},w.without=function(e){for(var t=-1,n=e.length,r=[];++t<n;){var i=e[t];0>H(arguments,i,1)&&r.push(i)}return r},w.wrap=function(e,t){return function(){var n=[e];return arguments.length&&st.apply(n,arguments),t.apply(this,n)}},w.zip=function(e){for(var t=-1
,n=e?M(u(arguments,"length")):0,r=Array(n);++t<n;)r[t]=u(arguments,t);return r},w.all=h,w.any=s,w.collect=a,w.detect=l,w.drop=B,w.each=f,w.foldl=o,w.foldr=_,w.head=D,w.include=p,w.inject=o,w.methods=v,w.select=c,w.tail=B,w.take=D,w.unique=F,R(w),w.prototype.chain=function(){return this.__chain__=n,this},w.prototype.value=function(){return this.__wrapped__},f("pop push reverse shift sort splice unshift".split(" "),function(e){var t=z[e];w.prototype[e]=function(){var e=this.__wrapped__;return t.apply
(e,arguments),this.__chain__&&(e=new w(e),e.__chain__=n),e}}),f(["concat","join","slice"],function(e){var t=z[e];w.prototype[e]=function(){var e=t.apply(this.__wrapped__,arguments);return this.__chain__&&(e=new w(e),e.__chain__=n),e}}),U?"object"==typeof module&&module&&module.exports==U?(module.exports=w)._=w:U._=w:e._=w})(this);
;(function(n,t){function r(n){return n&&n.__wrapped__?n:this instanceof r?(this.__wrapped__=n,void 0):new r(n)}function e(n,r){var e=n.b,u=r.b,n=n.a,r=r.a;if(n!==r){if(n>r||n===t)return 1;if(n<r||r===t)return-1}return e<u?-1:1}function u(n,t,r){function e(){var u=arguments,i=t;return r.length&&(u=u.length?r.concat(Y.call(u)):r),this instanceof e?(c.prototype=n.prototype,i=new c,(u=n.apply(i,u))&&_t[typeof u]?u:i):n.apply(i,u)}return e}function i(n,r){return n?typeof n!="function"?function(t){return t[n]
}:r!==t?function(t,e,u){return n.call(r,t,e,u)}:n:B}function o(n){return"\\"+mt[n]}function a(n){return bt[n]}function c(){}function f(n){return wt[n]}function l(n){var t=[];return dt(n,function(n,r){t.push(r)}),t}function s(n){var t=[];return yt(n,function(n,r){v(n)&&t.push(r)}),t.sort()}function p(n){var t={};return dt(n,function(n,r){t[n]=r}),t}function h(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;var u=Z.call(n);if(u!=Z.call(t))return!1;switch(u){case ct:case ft:return+n==+t;
case lt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case pt:case ht:return n==t+""}var i=u==at;if(!i){if(n.__wrapped__||t.__wrapped__)return h(n.__wrapped__||n,t.__wrapped__||t);if(u!=st)return!1;var u=n.constructor,o=t.constructor;if(u!=o&&(!v(u)||!(u instanceof u&&v(o)&&o instanceof o)))return!1}for(r||(r=[]),e||(e=[]),u=r.length;u--;)if(r[u]==n)return e[u]==t;if(u=!0,o=0,r.push(n),e.push(t),i){if(o=n.length,u=o==t.length)for(;o--&&(u=h(n[o],t[o],r,e)););return u}for(var a in n)if(W.call(n,a)&&(o++,!W.call(t,a)||!h(n[a],t[a],r,e)))return!1;
for(a in t)if(W.call(t,a)&&!o--)return!1;return!0}function v(n){return typeof n=="function"}function g(n){return Z.call(n)==ht}function _(n){var t=[];return dt(n,function(n){t.push(n)}),t}function m(n,t){return typeof(n?n.length:0)=="number"?-1<T(n,t):E(n,function(n){return n===t})}function y(n,t,r){var e=!0,t=i(t,r);return Et(n,function(n,r,u){return!(e=t(n,r,u))&&C}),!!e}function d(n,t,r){var e=[],t=i(t,r);return Et(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e}function b(n,t,r){var e,t=i(t,r);return E(n,function(n,r,u){return t(n,r,u)&&(e=n,!0)
}),e}function w(n,t,r){var e=-1,u=n?n.length:0,o=Array(typeof u=="number"?u:0),t=i(t,r);if(At(n))for(;++e<u;)o[e]=t(n[e],e,n);else Et(n,function(n,r,u){o[++e]=t(n,r,u)});return o}function j(n,t,r){var e=-1/0,u=-1,o=n?n.length:0,a=e;if(t||typeof o!="number")t=i(t,r),Et(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});else for(;++u<o;)n[u]>a&&(a=n[u]);return a}function x(n,t){var r=[];return Et(n,function(n){r.push(n[t])}),r}function A(n,t,r,e){var u=3>arguments.length,t=i(t,e);return Et(n,function(n,e,i){r=u?(u=!1,n):t(r,n,e,i)
}),r}function O(n,t,r,e){var u=n?n.length:0,i=3>arguments.length;if(typeof u!="number")var o=Ot(n),u=o.length;return Et(n,function(a,c,f){c=o?o[--u]:--u,r=i?(i=!1,n[c]):t.call(e,r,n[c],c,f)}),r}function E(n,t,r){var e,t=i(t,r);return Et(n,function(n,r,u){return(e=t(n,r,u))&&C}),!!e}function S(n,t,r){return n?null==t||r?n[0]:Y.call(n,0,t):void 0}function k(n,t){for(var r=-1,e=n?n.length:0,u=[];++r<e;){var i=n[r];At(i)?X.apply(u,t?i:k(i)):u.push(i)}return u}function T(n,t,r){var e=-1,u=n?n.length:0;
if(typeof r=="number")e=(0>r?ut(0,u+r):r||0)-1;else if(r)return e=F(n,t),n[e]===t?e:-1;for(;++e<u;)if(n[e]===t)return e;return-1}function q(n,t,r){return n?Y.call(n,null==t||r?1:t):[]}function F(n,t,r,e){for(var u=0,o=n?n.length:u,r=r?i(r,e):B,t=r(t);u<o;)e=u+o>>>1,r(n[e])<t?u=e+1:o=e;return u}function N(n,t,r,e){for(var u=-1,o=n?n.length:0,a=[],c=[],r=i(r,e);++u<o;)e=r(n[u],u,n),(t?!u||c[c.length-1]!==e:0>T(c,e))&&(c.push(e),a.push(n[u]));return a}function R(n,t){return gt||nt&&2<arguments.length?nt.call.apply(nt,arguments):u(n,t,Y.call(arguments,2))
}function B(n){return n}function M(n){Et(s(n),function(t){var e=r[t]=n[t];r.prototype[t]=function(){var n=[this.__wrapped__];return X.apply(n,arguments),n=e.apply(r,n),this.__chain__&&(n=new r(n),n.__chain__=!0),n}})}var $=typeof exports=="object"&&exports,I=typeof global=="object"&&global;I.global===I&&(n=I);var D=[],I={},z=0,C={},P=n._,U=/&(?:amp|lt|gt|quot|#x27);/g,V=RegExp("^"+(I.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),G=/($^)/,H=/[&<>"']/g,J=/['\n\r\t\u2028\u2029\\]/g,K=Math.ceil,L=D.concat,Q=Math.floor,W=I.hasOwnProperty,X=D.push,Y=D.slice,Z=I.toString,nt=V.test(nt=Y.bind)&&nt,tt=V.test(tt=Array.isArray)&&tt,rt=n.isFinite,et=V.test(et=Object.keys)&&et,ut=Math.max,it=Math.min,ot=Math.random,at="[object Array]",ct="[object Boolean]",ft="[object Date]",lt="[object Number]",st="[object Object]",pt="[object RegExp]",ht="[object String]",vt=(vt={0:1,length:1},D.splice.call(vt,0,1),vt[0]),gt=nt&&/\n|Opera/.test(nt+Z.call(n.opera)),_t={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},mt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};
r.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:""},r.isArguments=function(n){return"[object Arguments]"==Z.call(n)},r.isArguments(arguments)||(r.isArguments=function(n){return n?W.call(n,"callee"):!1});var yt=function(n,t){var r,e;if(!n)return n;t=i(t);for(r in n)if(e=n[r],t(e,r,n)===C)break;return n},dt=function(n,t){var r,e;if(!n)return n;t=i(t);for(r in n)if(W.call(n,r)&&(e=n[r],t(e,r,n)===C))break;return n},bt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"},wt=p(bt),jt=function(n){var t,r,e=n;
if(!n)return n;for(var u=1,i=arguments.length;u<i;u++)if(e=arguments[u])for(t in e)r=e[t],null==n[t]&&(n[t]=r);return n},xt=function(n){var t,r,e=n;if(!n)return n;for(var u=1,i=arguments.length;u<i;u++)if(e=arguments[u])for(t in e)r=e[t],n[t]=r;return n},At=tt||function(n){return Z.call(n)==at};v(/x/)&&(v=function(n){return"[object Function]"==Z.call(n)});var Ot=et?function(n){return n&&_t[typeof n]?et(n):[]}:l,Et=function(n,t,r){var e;if(!n)return n;var t=i(t,r),u=n.length,r=-1;if(typeof u=="number")for(;++r<u&&(e=n[r],!(t(e,r,n)===C)););else for(r in n)if(W.call(n,r)&&(e=n[r],t(e,r,n)===C))break;
return n};r.VERSION="0.9.0",r.after=function(n,t){return 1>n?t():function(){return 1>--n?t.apply(this,arguments):void 0}},r.bind=R,r.bindAll=function(n){for(var t=arguments,r=1<t.length?0:(t=s(n),-1),e=t.length;++r<e;){var u=t[r];n[u]=R(n[u],n)}return n},r.chain=function(n){return n=new r(n),n.__chain__=!0,n},r.clone=function(n){return n&&_t[typeof n]?At(n)?Y.call(n):xt({},n):n},r.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},r.compose=function(){var n=arguments;
return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)];return t[0]}},r.contains=m,r.countBy=function(n,t,r){var e={},t=i(t,r);return Et(n,function(n,r,u){r=t(n,r,u),W.call(e,r)?e[r]++:e[r]=1}),e},r.debounce=function(n,t,r){function e(){a=null,r||(i=n.apply(o,u))}var u,i,o,a;return function(){var c=r&&!a;return u=arguments,o=this,clearTimeout(a),a=setTimeout(e,t),c&&(i=n.apply(o,u)),i}},r.defaults=jt,r.defer=function(n){var r=Y.call(arguments,1);return setTimeout(function(){n.apply(t,r)
},1)},r.delay=function(n,r){var e=Y.call(arguments,2);return setTimeout(function(){n.apply(t,e)},r)},r.difference=function(n){for(var t=-1,r=n.length,e=L.apply(D,arguments),u=[];++t<r;){var i=n[t];0>T(e,i,r)&&u.push(i)}return u},r.escape=function(n){return null==n?"":(n+"").replace(H,a)},r.every=y,r.extend=xt,r.filter=d,r.find=b,r.first=S,r.flatten=k,r.forEach=Et,r.functions=s,r.groupBy=function(n,t,r){var e={},t=i(t,r);return Et(n,function(n,r,u){r=t(n,r,u),(W.call(e,r)?e[r]:e[r]=[]).push(n)}),e
},r.has=function(n,t){return n?W.call(n,t):!1},r.identity=B,r.indexOf=T,r.initial=function(n,t,r){return n?Y.call(n,0,-(null==t||r?1:t)):[]},r.intersection=function(n){var t=arguments,r=t.length,e=[];return Et(n,function(n){if(0>T(e,n)){for(var u=r;--u;)if(0>T(t[u],n))return;e.push(n)}}),e},r.invert=p,r.invoke=function(n,t){var r=Y.call(arguments,2),e=typeof t=="function",u=[];return Et(n,function(n){u.push((e?t:n[t]).apply(n,r))}),u},r.isArray=At,r.isBoolean=function(n){return!0===n||!1===n||Z.call(n)==ct
},r.isDate=function(n){return Z.call(n)==ft},r.isElement=function(n){return n?1===n.nodeType:!1},r.isEmpty=function(n){if(!n)return!0;if(At(n)||g(n))return!n.length;for(var t in n)if(W.call(n,t))return!1;return!0},r.isEqual=h,r.isFinite=function(n){return rt(n?+n:parseFloat(n))},r.isFunction=v,r.isNaN=function(n){return Z.call(n)==lt&&n!=+n},r.isNull=function(n){return null===n},r.isNumber=function(n){return Z.call(n)==lt},r.isObject=function(n){return n?_t[typeof n]:!1},r.isRegExp=function(n){return Z.call(n)==pt
},r.isString=g,r.isUndefined=function(n){return n===t},r.keys=Ot,r.last=function(n,t,r){if(n){var e=n.length;return null==t||r?n[e-1]:Y.call(n,-t||e)}},r.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?ut(0,e+r):it(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},r.map=w,r.max=j,r.memoize=function(n,t){var r={};return function(){var e=t?t.apply(this,arguments):arguments[0];return W.call(r,e)?r[e]:r[e]=n.apply(this,arguments)}},r.min=function(n,t,r){var e=1/0,u=-1,o=n?n.length:0,a=e;
if(t||typeof o!="number")t=i(t,r),Et(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n)});else for(;++u<o;)n[u]<a&&(a=n[u]);return a},r.mixin=M,r.noConflict=function(){return n._=P,this},r.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},r.omit=function(n){var t=L.apply(D,arguments),r={};return yt(n,function(n,e){0>T(t,e,1)&&(r[e]=n)}),r},r.once=function(n){var t,r=!1;return function(){return r?t:(r=!0,t=n.apply(this,arguments),n=null,t)}},r.pairs=function(n){var t=[];
return dt(n,function(n,r){t.push([r,n])}),t},r.pick=function(n){for(var t=0,r=L.apply(D,arguments),e=r.length,u={};++t<e;){var i=r[t];i in n&&(u[i]=n[i])}return u},r.pluck=x,r.random=function(n,t){return null==n&&null==t&&(t=1),n=+n||0,null==t&&(t=n,n=0),n+Q(ot()*((+t||0)-n+1))},r.range=function(n,t,r){n=+n||0,r=+r||1,null==t&&(t=n,n=0);for(var e=-1,t=ut(0,K((t-n)/r)),u=Array(t);++e<t;)u[e]=n,n+=r;return u},r.reduce=A,r.reduceRight=O,r.reject=function(n,t,r){return t=i(t,r),d(n,function(n,r,e){return!t(n,r,e)
})},r.rest=q,r.result=function(n,t){var r=n?n[t]:null;return v(r)?n[t]():r},r.shuffle=function(n){var t=-1,r=Array(n?n.length:0);return Et(n,function(n){var e=Q(ot()*(++t+1));r[t]=r[e],r[e]=n}),r},r.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Ot(n).length},r.some=E,r.sortBy=function(n,t,r){var u=[],t=i(t,r);for(Et(n,function(n,r,e){u.push({a:t(n,r,e),b:r,c:n})}),n=u.length,u.sort(e);n--;)u[n]=u[n].c;return u},r.sortedIndex=F,r.tap=function(n,t){return t(n),n},r.template=function(n,t,e){n||(n="");
var e=jt({},e,r.templateSettings),u=0,i="__p += '",a=e.variable;n.replace(RegExp((e.escape||G).source+"|"+(e.interpolate||G).source+"|"+(e.evaluate||G).source+"|$","g"),function(t,r,e,a,c){i+=n.slice(u,c).replace(J,o),i+=r?"'+_['escape']("+r+")+'":a?"';"+a+";__p+='":e?"'+((__t=("+e+"))==null?'':__t)+'":"",u=c+t.length}),i+="';",a||(a="obj",i="with("+a+"||{}){"+i+"}"),i="function("+a+"){var __t,__p='',__j=[].join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}";try{var c=Function("_","return "+i)(r)
}catch(f){throw f.source=i,f}return t?c(t):(c.source=i,c)},r.throttle=function(n,t){function r(){a=new Date,o=null,u=n.apply(i,e)}var e,u,i,o,a=0;return function(){var c=new Date,f=t-(c-a);return e=arguments,i=this,0<f?o||(o=setTimeout(r,f)):(clearTimeout(o),a=c,u=n.apply(i,e)),u}},r.times=function(n,t,r){for(var n=+n||0,e=-1,u=Array(n);++e<n;)u[e]=t.call(r,e);return u},r.toArray=function(n){return n&&typeof n.length=="number"?typeof n=="string"?n.split(""):Y.call(n):_(n)},r.unescape=function(n){return null==n?"":(n+"").replace(U,f)
},r.union=function(){for(var n=-1,t=L.apply(D,arguments),r=t.length,e=[];++n<r;){var u=t[n];0>T(e,u)&&e.push(u)}return e},r.uniq=N,r.uniqueId=function(n){var t=z++;return n?n+t:t},r.values=_,r.where=function(n,t){var r=[];return yt(t,function(n,t){r.push(t)}),d(n,function(n){for(var e=r.length;e--;){var u=n[r[e]]===t[r[e]];if(!u)break}return!!u})},r.without=function(n){for(var t=-1,r=n.length,e=[];++t<r;){var u=n[t];0>T(arguments,u,1)&&e.push(u)}return e},r.wrap=function(n,t){return function(){var r=[n];
return X.apply(r,arguments),t.apply(this,r)}},r.zip=function(n){for(var t=-1,r=n?j(x(arguments,"length")):0,e=Array(r);++t<r;)e[t]=x(arguments,t);return e},r.all=y,r.any=E,r.collect=w,r.detect=b,r.drop=q,r.each=Et,r.foldl=A,r.foldr=O,r.head=S,r.include=m,r.inject=A,r.methods=s,r.select=d,r.tail=q,r.take=S,r.unique=N,M(r),r.prototype.chain=function(){return this.__chain__=!0,this},r.prototype.value=function(){return this.__wrapped__},Et("pop push reverse shift sort splice unshift".split(" "),function(n){var t=D[n];
r.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),vt&&0===n.length&&delete n[0],this.__chain__&&(n=new r(n),n.__chain__=!0),n}}),Et(["concat","join","slice"],function(n){var t=D[n];r.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new r(n),n.__chain__=!0),n}}),$?typeof module=="object"&&module&&module.exports==$?(module.exports=r)._=r:$._=r:n._=r})(this);
{
"name": "lodash",
"version": "0.8.2",
"description": "A drop-in replacement for Underscore.js delivering performance, bug fixes, and additional features.",
"version": "0.9.0",
"description": "A utility library delivering consistency, customization, performance, and extras.",
"homepage": "http://lodash.com",
"main": "./lodash",
"license": "MIT",
"main": "./lodash.js",
"keywords": [

@@ -16,8 +17,2 @@ "browser",

],
"licenses": [
{
"type": "MIT",
"url": "http://lodash.com/license"
}
],
"author": {

@@ -28,16 +23,31 @@ "name": "John-David Dalton",

},
"contributors": [
{
"name": "John-David Dalton",
"email": "john.david.dalton@gmail.com",
"url": "http://allyoucanleet.com/"
},
{
"name": "Blaine Bublitz",
"email": "blaine@iceddev.com",
"url": "http://iceddev.com/"
},
{
"name": "Kit Cambridge",
"email": "github@kitcambridge.be",
"url": "http://kitcambridge.be/"
},
{
"name": "Mathias Bynens",
"email": "mathias@qiwi.be",
"url": "http://mathiasbynens.be/"
}
],
"bugs": {
"url": "https://github.com/bestiejs/lodash/issues"
"url": "https://github.com/lodash/lodash/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/bestiejs/lodash.git"
"url": "https://github.com/lodash/lodash.git"
},
"bin": {
"lodash": "./build.js"
},
"directories": {
"doc": "./doc",
"test": "./test"
},
"engines": [

@@ -49,7 +59,3 @@ "node",

"main": "./lodash.js"
},
"scripts": {
"build": "node build",
"test": "node test/test && node test/test-build"
}
}

@@ -1,15 +0,12 @@

# Lo-Dash <sup>v0.8.2</sup>
[![build status](https://secure.travis-ci.org/bestiejs/lodash.png)](http://travis-ci.org/bestiejs/lodash)
# Lo-Dash v0.9.0
A drop-in replacement<sup>[*](https://github.com/bestiejs/lodash/wiki/Drop-in-Disclaimer)</sup> for Underscore.js, from the devs behind [jsPerf.com](http://jsperf.com), delivering [performance](http://lodash.com/benchmarks), [bug fixes](https://github.com/bestiejs/lodash#resolved-underscorejs-issues), and [additional features](http://lodash.com/#features).
A utility library delivering consistency, [customization](http://lodash.com/custom-builds), [performance](http://lodash.com/benchmarks), & [extras](http://lodash.com/#features).
Lo-Dash’s performance is gained by avoiding slower native methods, instead opting for simplified non-ES5 compliant methods optimized for common usage, and by leveraging function compilation to reduce the number of overall function calls.
## Download
* [Development build](https://raw.github.com/bestiejs/lodash/v0.8.2/lodash.js)
* [Production build](https://raw.github.com/bestiejs/lodash/v0.8.2/lodash.min.js)
* [Underscore build](https://raw.github.com/bestiejs/lodash/v0.8.2/lodash.underscore.min.js) tailored for projects already using Underscore
* CDN copies of ≤ [v0.8.2](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.8.2/lodash.min.js) are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/)
* For optimal file size, [create a custom build](https://github.com/bestiejs/lodash#custom-builds) with only the features you need
* [Development build](https://raw.github.com/lodash/lodash/0.9.0/lodash.js)
* [Production build](https://raw.github.com/lodash/lodash/0.9.0/lodash.min.js)
* [Underscore build](https://raw.github.com/lodash/lodash/0.9.0/lodash.underscore.min.js) tailored for projects already using Underscore
* CDN copies of ≤ [v0.9.0](http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.9.0/lodash.min.js) are available on [cdnjs](http://cdnjs.com/) thanks to [CloudFlare](http://www.cloudflare.com/)
* For optimal file size, [create a custom build](http://lodash.com/custom-builds) with only the features you need

@@ -22,3 +19,3 @@ ## Dive in

For a list of upcoming features, check out our [roadmap](https://github.com/bestiejs/lodash/wiki/Roadmap).
For a list of upcoming features, check out our [roadmap](https://github.com/lodash/lodash/wiki/Roadmap).

@@ -53,103 +50,4 @@ ## Screencasts

Lo-Dash has been tested in at least Chrome 5~22, Firefox 1~16, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.11, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5.
Lo-Dash has been tested in at least Chrome 5~22, Firefox 1~16, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.12, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5.
## Custom builds
Custom builds make it easy to create lightweight versions of Lo-Dash containing only the methods you need.
To top it off, we handle all method dependency and alias mapping for you.
* Backbone builds, with only methods required by Backbone, may be created using the `backbone` modifier argument.
```bash
lodash backbone
```
* CSP builds, supporting default Content Security Policy restrictions, may be created using the `csp` modifier argument.
```bash
lodash csp
```
* Legacy builds, tailored for older browsers without [ES5 support](http://es5.github.com/), may be created using the `legacy` modifier argument.
```bash
lodash legacy
```
* Mobile builds, with IE < 9 bug fixes and method compilation removed, may be created using the `mobile` modifier argument.
```bash
lodash mobile
```
* Strict builds, with `_.bindAll`, `_.defaults`, and `_.extend` in [strict mode](http://es5.github.com/#C), may be created using the `strict` modifier argument.
```bash
lodash strict
```
* Underscore builds, tailored for projects already using Underscore, may be created using the `underscore` modifier argument.
```bash
lodash underscore
```
Custom builds may be created using the following commands:
* Use the `category` argument to pass comma separated categories of methods to include in the build.<br>
Valid categories (case-insensitive) are *“arrays”*, *“chaining”*, *“collections”*, *“functions”*, *“objects”*, and *“utilities”*.
```bash
lodash category=collections,functions
lodash category="collections, functions"
```
* Use the `exports` argument to pass comma separated names of ways to export the `LoDash` function.<br>
Valid exports are *“amd”*, *“commonjs”*, *“global”*, *“node”*, and *“none”*.
```bash
lodash exports=amd,commonjs,node
lodash exports="amd, commonjs, node"
```
* Use the `iife` argument to specify code to replace the immediately-invoked function expression that wraps Lo-Dash.
```bash
lodash iife="!function(window,undefined){%output%}(this)"
```
* Use the `include` argument to pass comma separated method/category names to include in the build.
```bash
lodash include=each,filter,map
lodash include="each, filter, map"
```
* Use the `minus` argument to pass comma separated method/category names to remove from those included in the build.
```bash
lodash underscore minus=result,shuffle
lodash underscore minus="result, shuffle"
```
* Use the `plus` argument to pass comma separated method/category names to add to those included in the build.
```bash
lodash backbone plus=random,template
lodash backbone plus="random, template"
```
* Use the `template` argument to pass the file path pattern used to match template files to precompile
```bash
lodash template="./*.jst"
```
* Use the `settings` argument to pass the template settings used when precompiling templates
```bash
lodash settings="{interpolate:/\\{\\{([\\s\\S]+?)\\}\\}/g}"
```
All arguments, except `legacy` with `csp` or `mobile`, may be combined.<br>
Unless specified by `-o` or `--output`, all files created are saved to the current working directory.
The following options are also supported:
* `-c`, `--stdout`&nbsp;&nbsp;&nbsp;&nbsp; Write output to standard output
* `-d`, `--debug`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Write only the debug output
* `-h`, `--help`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Display help information
* `-m`, `--minify`&nbsp;&nbsp;&nbsp;&nbsp; Write only the minified output
* `-o`, `--output`&nbsp;&nbsp;&nbsp;&nbsp; Write output to a given path/filename
* `-s`, `--silent`&nbsp;&nbsp;&nbsp;&nbsp; Skip status updates normally logged to the console
* `-V`, `--version`&nbsp;&nbsp; Output current version of Lo-Dash
The `lodash` command-line utility is available when Lo-Dash is installed as a global package (i.e. `npm install -g lodash`).
## Installation and usage

@@ -207,102 +105,49 @@

* Add AMD loader support [[#431](https://github.com/documentcloud/underscore/pull/431), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L118-140)]
* Allow iteration of objects with a `length` property [[#799](https://github.com/documentcloud/underscore/pull/799), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L510-516)]
* Ensure *“Collections”* methods allow string `collection` arguments [[#247](https://github.com/documentcloud/underscore/issues/247), [#276](https://github.com/documentcloud/underscore/issues/276), [#561](https://github.com/documentcloud/underscore/pull/561), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L470-487)]
* Fix cross-browser object iteration bugs [[#60](https://github.com/documentcloud/underscore/issues/60), [#376](https://github.com/documentcloud/underscore/issues/376), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L523-547)]
* Methods should work on pages with incorrectly shimmed native methods [[#7](https://github.com/documentcloud/underscore/issues/7), [#742](https://github.com/documentcloud/underscore/issues/742), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L142-148)]
* `_.clone` should allow `deep` cloning [[#595](https://github.com/documentcloud/underscore/pull/595), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L214-225)]
* `_.contains` should work with strings [[#667](https://github.com/documentcloud/underscore/pull/667), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L267-276)]
* `_.extend` should recursively extend objects [[#379](https://github.com/documentcloud/underscore/pull/379), [#718](https://github.com/documentcloud/underscore/issues/718), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L968-990)]
* `_.forEach` should be chainable [[#142](https://github.com/documentcloud/underscore/issues/142), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L465-468)]
* `_.forEach` should allow exiting iteration early [[#211](https://github.com/documentcloud/underscore/issues/211), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L553-571)]
* `_.isEmpty` should support jQuery/MooTools DOM query collections [[#690](https://github.com/documentcloud/underscore/pull/690), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L712-717)]
* `_.isObject` should avoid V8 bug [#2291](http://code.google.com/p/v8/issues/detail?id=2291) [[#605](https://github.com/documentcloud/underscore/issues/605), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L772-784)]
* `_.keys` should work with `arguments` objects cross-browser [[#396](https://github.com/documentcloud/underscore/issues/396), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L865-867)]
* `_.range` should coerce arguments to numbers [[#634](https://github.com/documentcloud/underscore/issues/634), [#683](https://github.com/documentcloud/underscore/issues/683), [test](https://github.com/bestiejs/lodash/blob/v0.8.2/test/test.js#L1243-1246)]
* Add AMD loader support [[#431](https://github.com/documentcloud/underscore/pull/431), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L116-138)]
* Allow iteration of objects with a `length` property [[#799](https://github.com/documentcloud/underscore/pull/799), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L508-514)]
* Ensure *“Collections”* methods allow string `collection` arguments [[#247](https://github.com/documentcloud/underscore/issues/247), [#276](https://github.com/documentcloud/underscore/issues/276), [#561](https://github.com/documentcloud/underscore/pull/561), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L468-485)]
* Fix cross-browser object iteration bugs [[#60](https://github.com/documentcloud/underscore/issues/60), [#376](https://github.com/documentcloud/underscore/issues/376), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L521-545)]
* Methods should work on pages with incorrectly shimmed native methods [[#7](https://github.com/documentcloud/underscore/issues/7), [#742](https://github.com/documentcloud/underscore/issues/742), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L140-146)]
* `_.clone` should allow `deep` cloning [[#595](https://github.com/documentcloud/underscore/pull/595), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L212-223)]
* `_.contains` should work with strings [[#667](https://github.com/documentcloud/underscore/pull/667), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L265-274)]
* `_.extend` should recursively extend objects [[#379](https://github.com/documentcloud/underscore/pull/379), [#718](https://github.com/documentcloud/underscore/issues/718), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L989-1011)]
* `_.forEach` should be chainable [[#142](https://github.com/documentcloud/underscore/issues/142), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L463-466)]
* `_.forEach` should allow exiting iteration early [[#211](https://github.com/documentcloud/underscore/issues/211), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L551-569)]
* `_.isEmpty` should support jQuery/MooTools DOM query collections [[#690](https://github.com/documentcloud/underscore/pull/690), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L710-715)]
* `_.isObject` should avoid V8 bug [#2291](http://code.google.com/p/8/issues/detail?id=2291) [[#605](https://github.com/documentcloud/underscore/issues/605), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L770-782)]
* `_.keys` should work with `arguments` objects cross-browser [[#396](https://github.com/documentcloud/underscore/issues/396), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L863-865)]
* `_.range` should coerce arguments to numbers [[#634](https://github.com/documentcloud/underscore/issues/634), [#683](https://github.com/documentcloud/underscore/issues/683), [test](https://github.com/lodash/lodash/blob/0.9.0/test/test.js#L1264-1267)]
## Optimized methods <sup>(50+)</sup>
* `_.bind`
* `_.bindAll`
* `_.compact`
* `_.contains`, `_.include`
* `_.defaults`
* `_.difference`
* `_.each`
* `_.every`, `_.all`
* `_.extend`
* `_.filter`, `_.select`
* `_.find`, `_.detect`
* `_.flatten`
* `_.forEach`, `_.each`
* `_.functions`, `_.methods`
* `_.groupBy`
* `_.indexOf`
* `_.intersection`
* `_.invert`
* `_.invoke`
* `_.isArguments`
* `_.isDate`
* `_.isFinite`
* `_.isFunction`
* `_.isObject`
* `_.isNumber`
* `_.isRegExp`
* `_.isString`
* `_.keys`
* `_.lastIndexOf`
* `_.map`, `_.collect`
* `_.max`
* `_.memoize`
* `_.min`
* `_.mixin`
* `_.omit`
* `_.pairs`
* `_.pick`
* `_.pluck`
* `_.reduce`, `_.foldl`, `_.inject`
* `_.reject`
* `_.result`
* `_.shuffle`
* `_.some`, `_.any`
* `_.sortBy`
* `_.sortedIndex`
* `_.template`
* `_.throttle`
* `_.toArray`
* `_.union`
* `_.uniq`, `_.unique`
* `_.values`
* `_.where`
* `_.without`
* `_.wrap`
* `_.zip`
* plus all `_(…)` method wrappers
## Release Notes
### <sup>v0.8.2</sup>
### <sup>v0.9.0</sup>
* Ensured `_.map` returns an array when passed a falsey collection
* Ensured `_.throttle` clears its timeout when `func` is called
* Made `_.max`, `_.min`, `_.shuffle` support iterating objects
* Reduced `createIterator`, `_.clone`, and `_.compact`
* Re-optimized `_.max`, `_.min`, and `_.sortedIndex`
* Added a `sourceURL` option to `_.template`
* Ensured `_.where` returns an empty array if passed an empty `properties` object
* Expanded `_.isFinite` to return `true` for numeric strings
* Reduced `_.intersection`, `_.omit`, `_.pick`, `_.sortedIndex`, and `_.where`
* Reduced the `npm` package file size by only downloading the minifiers for global installs
* Reduced Lo-Dash's file size
* Removed compilation from `_.bindAll`, `_.contains`, `_.countBy`, `_.every`,
`_.filter`, `_.find`, `_.functions`, `_.groupBy`, `_.invert`, `_.invoke`,
`_.isEmpty`, `_.map`, `_.merge`, `_.omit`, `_.pairs`, `_.pick`, `_.pluck`,
`_.reduce`, `_.reject`, `_.some`, `_.sortBy`, `_.values`, `_.where`, and
internal `shimKeys`
The full changelog is available [here](https://github.com/bestiejs/lodash/wiki/Changelog).
The full changelog is available [here](https://github.com/lodash/lodash/wiki/Changelog).
## BestieJS
Lo-Dash is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
Lo-Dash is part of the [BestieJS](https://github.com/bestiejs) *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
## Author
* [John-David Dalton](http://allyoucanleet.com/)
[![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter")
| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](http://twitter.com/jdalton "Follow @jdalton on Twitter") |
|---|
| [John-David Dalton](http://allyoucanleet.com/) |
## Contributors
* [Kit Cambridge](http://kitcambridge.github.com/)
[![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter")
* [Mathias Bynens](http://mathiasbynens.be/)
[![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter")
| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](http://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](http://twitter.com/mathias "Follow @mathias on Twitter") |
|---|---|---|
| [Blaine Bublitz](http://iceddev.com/) | [Kit Cambridge](http://kitcambridge.github.io/) | [Mathias Bynens](http://mathiasbynens.be/) |

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc