/** * @license * lodash 4.0.0-pre (Custom Build) lodash.com/license | Underscore.js 1.8.3 underscorejs.org/LICENSE * Build: `lodash core -o dist/lodash.core.js exports="amd,global"` */ ;(function(){function n(n,t){for(var r=-1,e=t.length,u=n.length;++r-1&&0==n%1&&(null==t?9007199254740991:t)>n}function l(n){if(W(n)&&!Mn(n)){if(n instanceof p)return n;if(dn.call(n,"__wrapped__")){var t=new p(n.__wrapped__,n.__chain__);return t.__actions__=Rn(n.__actions__), t}}return new p(n)}function p(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t}function s(n,t,r){return n===cn||n===jn[r]?t:n}function h(n,t,r){if(typeof n!="function")throw new TypeError("Expected a function");return setTimeout(function(){n.apply(cn,r)},t)}function v(n,t){var r=true;return Bn(n,function(n,e,u){return r=!!t(n,e,u)}),r}function y(n,t){var r=[];return Bn(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function _(t,r,e,u){u||(u=[]);for(var o=-1,i=t.length;++ot&&(t=-t>u?0:u+t),r=r===cn||r>u?u:Pn(r),0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e1?r[u-1]:cn,o=typeof o=="function"?(u--,o):cn;for(t=Object(t);++ef))return false;for(;++i=n&&(t=cn),r}}function P(n){var t;if(typeof n!="function")throw new TypeError("Expected a function");return t=kn(t===cn?n.length-1:Pn(t),0),function(){for(var r=arguments,e=-1,u=kn(r.length-t,0),o=Array(u);++et}function V(n){return W(n)&&H(n)&&dn.call(n,"callee")&&(!Nn.call(n,"callee")||"[object Arguments]"==On.call(n))}function H(n){ return null!=n&&!(typeof n=="function"&&K(n))&&L(In(n))}function K(n){return n=Q(n)?On.call(n):"","[object Function]"==n||"[object GeneratorFunction]"==n}function L(n){return typeof n=="number"&&n>-1&&0==n%1&&9007199254740991>=n}function Q(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function W(n){return!!n&&typeof n=="object"}function X(n){return typeof n=="number"||W(n)&&"[object Number]"==On.call(n)}function Y(n){return typeof n=="string"||!Mn(n)&&W(n)&&"[object String]"==On.call(n)} function Z(n,t){return t>n}function nn(n){var t=q(n);if(!t&&!H(n))return Tn(Object(n));var r,e=$(n),u=e.length,o=!!u;for(r in n)!dn.call(n,r)||o&&a(r,u)||t&&"constructor"==r||e.push(r);return e}function tn(n){for(var t=-1,r=q(n),e=w(n),u=e.length,o=$(n),i=o.length,c=!!i;++t"'`]/g,an=RegExp(fn.source),ln=/^(?:0|[1-9]\d*)$/,pn={"&":"&","<":"<", ">":">",'"':""","'":"'","`":"`"},sn={"function":true,object:true},hn=sn[typeof module]&&module&&!module.nodeType?module:null,vn=o(sn[typeof self]&&self),yn=o(sn[typeof window]&&window),_n=o(sn[typeof this]&&this),gn=o((sn[typeof exports]&&exports&&!exports.nodeType?exports:null)&&hn&&typeof global=="object"&&global)||yn!==(_n&&_n.window)&&yn||vn||_n||Function("return this")(),bn=Array.prototype,jn=Object.prototype,mn=String.prototype,dn=jn.hasOwnProperty,wn=0,On=jn.toString,En=gn._,xn=gn.f,An=xn?xn.g:cn,Nn=jn.propertyIsEnumerable,Sn=gn.isFinite,Tn=Object.keys,kn=Math.max,Fn=function(){ function n(){}return function(t){if(Q(t)){n.prototype=t;var r=new n;n.prototype=cn}return r||{}}}(),Bn=function(n,t){return function(r,e){if(null==r)return r;if(!H(r))return n(r,e);for(var u=r.length,o=t?u:-1,i=Object(r);(t?o--:++oe&&!c||!i||u&&!f&&a||o&&a){r=1;break n}if(e>r&&!u||!a||c&&!o&&i||f&&i){r=-1;break n}}r=0}return r||n.b-t.b}),A("c"))},l.tap=function(n,t){return t(n),n},l.thru=function(n,t){return t(n)},l.toArray=function(n){return H(n)?n.length?Rn(n):[]:en(n)},l.values=en,l.each=G,l.extend=Hn,on(l,l),l.clone=function(n){if(Q(n))if(Mn(n))n=Rn(n);else{var t=nn(n);n=i(n,t,void 0); }return n},l.escape=function(n){return(n=null==n?"":n+"")&&an.test(n)?n.replace(fn,c):n},l.every=function(n,t,r){return t=r?cn:t,v(n,d(t))},l.find=C,l.forEach=G,l.has=function(n,t){return null!=n&&dn.call(n,t)},l.head=z,l.identity=un,l.indexOf=function(n,t,r){var e=n?n.length:0;r=typeof r=="number"?0>r?kn(e+r,0):r:0,r=(r||0)-1;for(var u=t===t;++rarguments.length,Bn)},l.result=rn,l.size=J,l.some=function(n,t,r){return t=r?cn:t,S(n,d(t))},l.uniqueId=function(n){var t=++wn;return(null==n?"":n+"")+t},l.first=z,on(l,function(){var n={};return g(l,function(t,r){dn.call(l.prototype,r)||(n[r]=t); }),n}(),{chain:false}),l.VERSION="4.0.0-pre",Bn("join pop push replace reverse shift sort splice split unshift".split(" "),function(n){var t=(/^(?:replace|split)$/.test(n)?mn:bn)[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:join|pop|replace|shift)$/.test(n);l.prototype[n]=function(){var n=arguments;return e&&!this.__chain__?t.apply(this.value(),n):this[r](function(r){return t.apply(r,n)})}}),l.prototype.run=l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=function(){return T(this.__wrapped__,this.__actions__); },(yn||vn||{})._=l,typeof define=="function"&&typeof define.amd=="object"&&define.amd? define(function(){return l}):gn._=l}).call(this);