event-drops
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.eventDrops=e()}(this,function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e(function(e,n){var r=200,o="__lodash_hash_undefined__",u=9007199254740991,a="[object Arguments]",i="[object Array]",c="[object Boolean]",f="[object Date]",l="[object Error]",s="[object Function]",h="[object GeneratorFunction]",d="[object Map]",p="[object Number]",v="[object Object]",g="[object Promise]",y="[object RegExp]",_="[object Set]",m="[object String]",b="[object Symbol]",w="[object WeakMap]",j="[object ArrayBuffer]",T="[object DataView]",M="[object Float32Array]",x="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",U="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",F="[object Uint16Array]",S="[object Uint32Array]",Y=/\w*$/,H=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,L={};L[M]=L[x]=L[D]=L[C]=L[U]=L[A]=L[O]=L[F]=L[S]=!0,L[a]=L[i]=L[j]=L[c]=L[T]=L[f]=L[l]=L[s]=L[d]=L[p]=L[v]=L[y]=L[_]=L[m]=L[w]=!1;var I={};I[a]=I[i]=I[j]=I[T]=I[c]=I[f]=I[M]=I[x]=I[D]=I[C]=I[U]=I[d]=I[p]=I[v]=I[y]=I[_]=I[m]=I[b]=I[A]=I[O]=I[F]=I[S]=!0,I[l]=I[s]=I[w]=!1;var z="object"==typeof t&&t&&t.Object===Object&&t,E="object"==typeof self&&self&&self.Object===Object&&self,$=z||E||Function("return this")(),W=n&&!n.nodeType&&n,Z=W&&e&&!e.nodeType&&e,P=Z&&Z.exports===W,B=P&&z.process,V=function(){try{return B&&B.binding("util")}catch(t){}}(),J=V&&V.isTypedArray;function X(t,e){return t.set(e[0],e[1]),t}function Q(t,e){return t.add(e),t}function R(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function N(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););return t}function G(t,e,n,r){var o=-1,u=t?t.length:0;for(r&&u&&(n=t[++o]);++o<u;)n=e(n,t[o],o,t);return n}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function K(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function tt(t,e){return function(n){return t(e(n))}}function et(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var nt,rt=Array.prototype,ot=Function.prototype,ut=Object.prototype,at=$["__core-js_shared__"],it=(nt=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",ct=ot.toString,ft=ut.hasOwnProperty,lt=ct.call(Object),st=ut.toString,ht=RegExp("^"+ct.call(ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=P?$.Buffer:void 0,pt=$.Symbol,vt=$.Uint8Array,gt=tt(Object.getPrototypeOf,Object),yt=Object.create,_t=ut.propertyIsEnumerable,mt=rt.splice,bt=Object.getOwnPropertySymbols,wt=dt?dt.isBuffer:void 0,jt=tt(Object.keys,Object),Tt=Math.max,Mt=te($,"DataView"),xt=te($,"Map"),Dt=te($,"Promise"),Ct=te($,"Set"),Ut=te($,"WeakMap"),At=te(Object,"create"),Ot=ae(Mt),Ft=ae(xt),St=ae(Dt),Yt=ae(Ct),Ht=ae(Ut),kt=pt?pt.prototype:void 0,Lt=kt?kt.valueOf:void 0;function It(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function zt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $t(t){this.__data__=new zt(t)}function Wt(t,e){var n=fe(t)||ce(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var u in t)!e&&!ft.call(t,u)||o&&("length"==u||re(u,r))||n.push(u);return n}function Zt(t,e,n){(void 0===n||ie(t[e],n))&&("number"!=typeof e||void 0!==n||e in t)||(t[e]=n)}function Pt(t,e,n){var r=t[e];ft.call(t,e)&&ie(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Bt(t,e){for(var n=t.length;n--;)if(ie(t[n][0],e))return n;return-1}function Vt(t,e,n,r,o,u,i){var l;if(r&&(l=u?r(t,o,u,i):r(t)),void 0!==l)return l;if(!ve(t))return t;var g,w,H,k,L,z,E=fe(t);if(E){if(l=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&ft.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return Gt(t,l)}else{var $=ne(t),W=$==s||$==h;if(he(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if($==v||$==a||W&&!u){if(q(t))return u?t:{};if(l="function"!=typeof(L=W?{}:t).constructor||oe(L)?{}:ve(z=gt(L))?yt(z):{},!e)return g=t,k=t,w=(H=l)&&qt(k,be(k),H),qt(g,ee(g),w)}else{if(!I[$])return u?t:{};l=function(t,e,n,r){var o=t.constructor;switch(e){case j:return Nt(t);case c:case f:return new o(+t);case T:return g=t,w=r?Nt(g.buffer):g.buffer,new g.constructor(w,g.byteOffset,g.byteLength);case M:case x:case D:case C:case U:case A:case O:case F:case S:return h=t,v=r?Nt(h.buffer):h.buffer,new h.constructor(v,h.byteOffset,h.length);case d:return s=t,G(r?n(K(s),!0):K(s),X,new s.constructor);case p:case m:return new o(t);case y:return(l=new(i=t).constructor(i.source,Y.exec(i))).lastIndex=i.lastIndex,l;case _:return a=t,G(r?n(et(a),!0):et(a),Q,new a.constructor);case b:return u=t,Lt?Object(Lt.call(u)):{}}var u;var a;var i,l;var s;var h,v;var g,w}(t,$,Vt,e)}}i||(i=new $t);var Z,P,B,V=i.get(t);if(V)return V;if(i.set(t,l),!E)var J=n?(P=ee,B=be(Z=t),fe(Z)?B:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(B,P(Z))):be(t);return N(J||t,function(o,u){J&&(o=t[u=o]),Pt(l,u,Vt(o,e,n,r,u,t,i))}),l}function Jt(t){return!(!ve(t)||it&&it in t)&&(de(t)||q(t)?ht:H).test(ae(t))}function Xt(t){if(!ve(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=oe(t),n=[];for(var r in t)("constructor"!=r||!e&&ft.call(t,r))&&n.push(r);return n}function Qt(t,e,n,r,o){if(t!==e){if(!fe(e)&&!_e(e))var u=Xt(e);N(u||e,function(a,i){if(u&&(a=e[i=a]),ve(a))o||(o=new $t),function(t,e,n,r,o,u,a){var i=t[n],c=e[n],f=a.get(c);if(f)return void Zt(t,n,f);var l=u?u(i,c,n+"",t,e,a):void 0,s=void 0===l;s&&(l=c,fe(c)||_e(c)?fe(i)?l=i:se(i)?l=Gt(i):(s=!1,l=Vt(c,!0)):function(t){if(!ge(t)||st.call(t)!=v||q(t))return!1;var e=gt(t);if(null===e)return!0;var n=ft.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==lt}(c)||ce(c)?ce(i)?l=qt(h=i,le(d=h)?Wt(d,!0):Xt(d)):!ve(i)||r&&de(i)?(s=!1,l=Vt(c,!0)):l=i:s=!1);var h,d;s&&(a.set(c,l),o(l,c,r,u,a),a.delete(c));Zt(t,n,l)}(t,e,i,n,Qt,r,o);else{var c=r?r(t[i],a,i+"",t,e,o):void 0;void 0===c&&(c=a),Zt(t,i,c)}})}}function Rt(t,e){return e=Tt(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=Tt(n.length-e,0),u=Array(o);++r<o;)u[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=u,R(t,this,a)}}function Nt(t){var e=new t.constructor(t.byteLength);return new vt(e).set(new vt(t)),e}function Gt(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function qt(t,e,n,r){n||(n={});for(var o=-1,u=e.length;++o<u;){var a=e[o],i=r?r(n[a],t[a],a,n,t):void 0;Pt(n,a,void 0===i?t[a]:i)}return n}function Kt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function te(t,e){var n,r=null==(n=t)?void 0:n[e];return Jt(r)?r:void 0}It.prototype.clear=function(){this.__data__=At?At(null):{}},It.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},It.prototype.get=function(t){var e=this.__data__;if(At){var n=e[t];return n===o?void 0:n}return ft.call(e,t)?e[t]:void 0},It.prototype.has=function(t){var e=this.__data__;return At?void 0!==e[t]:ft.call(e,t)},It.prototype.set=function(t,e){return this.__data__[t]=At&&void 0===e?o:e,this},zt.prototype.clear=function(){this.__data__=[]},zt.prototype.delete=function(t){var e=this.__data__,n=Bt(e,t);return!(n<0||(n==e.length-1?e.pop():mt.call(e,n,1),0))},zt.prototype.get=function(t){var e=this.__data__,n=Bt(e,t);return n<0?void 0:e[n][1]},zt.prototype.has=function(t){return Bt(this.__data__,t)>-1},zt.prototype.set=function(t,e){var n=this.__data__,r=Bt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Et.prototype.clear=function(){this.__data__={hash:new It,map:new(xt||zt),string:new It}},Et.prototype.delete=function(t){return Kt(this,t).delete(t)},Et.prototype.get=function(t){return Kt(this,t).get(t)},Et.prototype.has=function(t){return Kt(this,t).has(t)},Et.prototype.set=function(t,e){return Kt(this,t).set(t,e),this},$t.prototype.clear=function(){this.__data__=new zt},$t.prototype.delete=function(t){return this.__data__.delete(t)},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof zt){var o=n.__data__;if(!xt||o.length<r-1)return o.push([t,e]),this;n=this.__data__=new Et(o)}return n.set(t,e),this};var ee=bt?tt(bt,Object):function(){return[]},ne=function(t){return st.call(t)};function re(t,e){return!!(e=null==e?u:e)&&("number"==typeof t||k.test(t))&&t>-1&&t%1==0&&t<e}function oe(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ut)}function ue(t,e,n,r,o,u){return ve(t)&&ve(e)&&(u.set(e,t),Qt(t,e,void 0,ue,u),u.delete(e)),t}function ae(t){if(null!=t){try{return ct.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ie(t,e){return t===e||t!=t&&e!=e}function ce(t){return se(t)&&ft.call(t,"callee")&&(!_t.call(t,"callee")||st.call(t)==a)}(Mt&&ne(new Mt(new ArrayBuffer(1)))!=T||xt&&ne(new xt)!=d||Dt&&ne(Dt.resolve())!=g||Ct&&ne(new Ct)!=_||Ut&&ne(new Ut)!=w)&&(ne=function(t){var e=st.call(t),n=e==v?t.constructor:void 0,r=n?ae(n):void 0;if(r)switch(r){case Ot:return T;case Ft:return d;case St:return g;case Yt:return _;case Ht:return w}return e});var fe=Array.isArray;function le(t){return null!=t&&pe(t.length)&&!de(t)}function se(t){return ge(t)&&le(t)}var he=wt||function(){return!1};function de(t){var e=ve(t)?st.call(t):"";return e==s||e==h}function pe(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function ve(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ge(t){return!!t&&"object"==typeof t}var ye,_e=J?(ye=J,function(t){return ye(t)}):function(t){return ge(t)&&pe(t.length)&&!!L[st.call(t)]};var me=Rt(function(t){return t.push(void 0,ue),R(je,void 0,t)});function be(t){return le(t)?Wt(t):function(t){if(!oe(t))return jt(t);var e=[];for(var n in Object(t))ft.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var we,je=(we=function(t,e,n,r){Qt(t,e,n,r)},Rt(function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,u=r>2?e[2]:void 0;for(o=we.length>3&&"function"==typeof o?(r--,o):void 0,u&&function(t,e,n){if(!ve(n))return!1;var r=typeof e;return!!("number"==r?le(n)&&re(e,n.length):"string"==r&&e in n)&&ie(n[e],t)}(e[0],e[1],u)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&we(t,a,n,o)}return t}));e.exports=me}),r=new Date,o=new Date;function u(t,e,n,a){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var u,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(u=new Date(+n)),e(n,o),t(n)}while(u<n&&n<r);return a},i.filter=function(n){return u(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,u){return r.setTime(+e),o.setTime(+u),t(r),t(o),Math.floor(n(r,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(a?function(e){return a(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var a=u(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):a:null};var i=1e3,c=6e4,f=36e5,l=6048e5,s=(u(function(t){t.setTime(Math.floor(t/i)*i)},function(t,e){t.setTime(+t+e*i)},function(t,e){return(e-t)/i},function(t){return t.getUTCSeconds()}),u(function(t){t.setTime(Math.floor(t/c)*c)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getMinutes()}),u(function(t){var e=t.getTimezoneOffset()*c%f;e<0&&(e+=f),t.setTime(Math.floor((+t-e)/f)*f+e)},function(t,e){t.setTime(+t+e*f)},function(t,e){return(e-t)/f},function(t){return t.getHours()}),u(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/864e5},function(t){return t.getDate()-1}));function h(t){return u(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/l})}var d=h(0),p=h(1),v=(h(2),h(3),h(4)),g=(h(5),h(6),u(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),u(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));g.every=function(t){return isFinite(t=Math.floor(t))&&t>0?u(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};u(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getUTCMinutes()}),u(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*f)},function(t,e){return(e-t)/f},function(t){return t.getUTCHours()});var y=u(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function _(t){return u(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/l})}var m=_(0),b=_(1),w=(_(2),_(3),_(4)),j=(_(5),_(6),u(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),u(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));function T(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function M(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function x(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}j.every=function(t){return isFinite(t=Math.floor(t))&&t>0?u(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var D,C,U,A={"-":"",_:" ",0:"0"},O=/^\s*\d+/,F=/^%/,S=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",u=o.length;return r+(u<n?new Array(n-u+1).join(e)+o:o)}function H(t){return t.replace(S,"\\$&")}function k(t){return new RegExp("^(?:"+t.map(H).join("|")+")","i")}function L(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function I(t,e,n){var r=O.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function z(t,e,n){var r=O.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function E(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function $(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function W(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Z(t,e,n){var r=O.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function P(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function B(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function V(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function J(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function X(t,e,n){var r=O.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Q(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function R(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function N(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function G(t,e,n){var r=O.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function q(t,e,n){var r=O.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function K(t,e,n){var r=F.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function tt(t,e,n){var r=O.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function et(t,e,n){var r=O.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function nt(t,e){return Y(t.getDate(),e,2)}function rt(t,e){return Y(t.getHours(),e,2)}function ot(t,e){return Y(t.getHours()%12||12,e,2)}function ut(t,e){return Y(1+s.count(g(t),t),e,3)}function at(t,e){return Y(t.getMilliseconds(),e,3)}function it(t,e){return at(t,e)+"000"}function ct(t,e){return Y(t.getMonth()+1,e,2)}function ft(t,e){return Y(t.getMinutes(),e,2)}function lt(t,e){return Y(t.getSeconds(),e,2)}function st(t){var e=t.getDay();return 0===e?7:e}function ht(t,e){return Y(d.count(g(t),t),e,2)}function dt(t,e){var n=t.getDay();return t=n>=4||0===n?v(t):v.ceil(t),Y(v.count(g(t),t)+(4===g(t).getDay()),e,2)}function pt(t){return t.getDay()}function vt(t,e){return Y(p.count(g(t),t),e,2)}function gt(t,e){return Y(t.getFullYear()%100,e,2)}function yt(t,e){return Y(t.getFullYear()%1e4,e,4)}function _t(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function mt(t,e){return Y(t.getUTCDate(),e,2)}function bt(t,e){return Y(t.getUTCHours(),e,2)}function wt(t,e){return Y(t.getUTCHours()%12||12,e,2)}function jt(t,e){return Y(1+y.count(j(t),t),e,3)}function Tt(t,e){return Y(t.getUTCMilliseconds(),e,3)}function Mt(t,e){return Tt(t,e)+"000"}function xt(t,e){return Y(t.getUTCMonth()+1,e,2)}function Dt(t,e){return Y(t.getUTCMinutes(),e,2)}function Ct(t,e){return Y(t.getUTCSeconds(),e,2)}function Ut(t){var e=t.getUTCDay();return 0===e?7:e}function At(t,e){return Y(m.count(j(t),t),e,2)}function Ot(t,e){var n=t.getUTCDay();return t=n>=4||0===n?w(t):w.ceil(t),Y(w.count(j(t),t)+(4===j(t).getUTCDay()),e,2)}function Ft(t){return t.getUTCDay()}function St(t,e){return Y(b.count(j(t),t),e,2)}function Yt(t,e){return Y(t.getUTCFullYear()%100,e,2)}function Ht(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function kt(){return"+0000"}function Lt(){return"%"}function It(t){return+t}function zt(t){return Math.floor(+t/1e3)}D=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,u=t.days,a=t.shortDays,i=t.months,c=t.shortMonths,f=k(o),l=L(o),h=k(u),d=L(u),v=k(a),g=L(a),_=k(i),m=L(i),w=k(c),j=L(c),D={a:function(t){return a[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return i[t.getMonth()]},c:null,d:nt,e:nt,f:it,H:rt,I:ot,j:ut,L:at,m:ct,M:ft,p:function(t){return o[+(t.getHours()>=12)]},Q:It,s:zt,S:lt,u:st,U:ht,V:dt,w:pt,W:vt,x:null,X:null,y:gt,Y:yt,Z:_t,"%":Lt},C={a:function(t){return a[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return i[t.getUTCMonth()]},c:null,d:mt,e:mt,f:Mt,H:bt,I:wt,j:jt,L:Tt,m:xt,M:Dt,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:It,s:zt,S:Ct,u:Ut,U:At,V:Ot,w:Ft,W:St,x:null,X:null,y:Yt,Y:Ht,Z:kt,"%":Lt},U={a:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=w.exec(e.slice(n));return r?(t.m=j[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=_.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:J,e:J,f:q,H:Q,I:Q,j:X,L:G,m:V,M:R,p:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:tt,s:et,S:N,u:z,U:E,V:$,w:I,W:W,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:P,Y:Z,Z:B,"%":K};function O(t,e){return function(n){var r,o,u,a=[],i=-1,c=0,f=t.length;for(n instanceof Date||(n=new Date(+n));++i<f;)37===t.charCodeAt(i)&&(a.push(t.slice(c,i)),null!=(o=A[r=t.charAt(++i)])?r=t.charAt(++i):o="e"===r?" ":"0",(u=e[r])&&(r=u(n,o)),a.push(r),c=i+1);return a.push(t.slice(c,i)),a.join("")}}function F(t,e){return function(n){var r,o,u=x(1900);if(S(u,t,n+="",0)!=n.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(r=(o=(r=M(x(u.y))).getUTCDay())>4||0===o?b.ceil(r):b(r),r=y.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(r=(o=(r=e(x(u.y))).getDay())>4||0===o?p.ceil(r):p(r),r=s.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),o="Z"in u?M(x(u.y)).getUTCDay():e(x(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(o+5)%7:u.w+7*u.U-(o+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,M(u)):e(u)}}function S(t,e,n,r){for(var o,u,a=0,i=e.length,c=n.length;a<i;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(u=U[o in A?e.charAt(a++):o])||(r=u(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return D.x=O(n,D),D.X=O(r,D),D.c=O(e,D),C.x=O(n,C),C.X=O(r,C),C.c=O(e,C),{format:function(t){var e=O(t+="",D);return e.toString=function(){return t},e},parse:function(t){var e=F(t+="",T);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=F(t,M);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),D.format,D.parse,C=D.utcFormat,U=D.utcParse;var Et="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||C(Et);+new Date("2000-01-01T00:00:00.000Z")||U(Et);var $t={dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},Wt=e(function(e,n){var r=200,o="Expected a function",u="__lodash_hash_undefined__",a=1,i=2,c=1/0,f=9007199254740991,l="[object Arguments]",s="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",v="[object Function]",g="[object GeneratorFunction]",y="[object Map]",_="[object Number]",m="[object Object]",b="[object Promise]",w="[object RegExp]",j="[object Set]",T="[object String]",M="[object Symbol]",x="[object WeakMap]",D="[object ArrayBuffer]",C="[object DataView]",U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,O=/^\./,F=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g,Y=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[l]=k[s]=k[D]=k[h]=k[C]=k[d]=k[p]=k[v]=k[y]=k[_]=k[m]=k[w]=k[j]=k[T]=k[x]=!1;var L="object"==typeof t&&t&&t.Object===Object&&t,I="object"==typeof self&&self&&self.Object===Object&&self,z=L||I||Function("return this")(),E=n&&!n.nodeType&&n,$=E&&e&&!e.nodeType&&e,W=$&&$.exports===E&&L.process,Z=function(){try{return W&&W.binding("util")}catch(t){}}(),P=Z&&Z.isTypedArray;function B(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var o=t.length,u=n+(r?1:-1);for(;r?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,X,n);var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,0)>-1}function V(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function J(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function X(t){return t!=t}function Q(t,e){return t.has(e)}function R(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function N(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function G(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var q,K,tt,et=Array.prototype,nt=Function.prototype,rt=Object.prototype,ot=z["__core-js_shared__"],ut=(q=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",at=nt.toString,it=rt.hasOwnProperty,ct=rt.toString,ft=RegExp("^"+at.call(it).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lt=z.Symbol,st=z.Uint8Array,ht=rt.propertyIsEnumerable,dt=et.splice,pt=(K=Object.keys,tt=Object,function(t){return K(tt(t))}),vt=Jt(z,"DataView"),gt=Jt(z,"Map"),yt=Jt(z,"Promise"),_t=Jt(z,"Set"),mt=Jt(z,"WeakMap"),bt=Jt(Object,"create"),wt=te(vt),jt=te(gt),Tt=te(yt),Mt=te(_t),xt=te(mt),Dt=lt?lt.prototype:void 0,Ct=Dt?Dt.valueOf:void 0,Ut=Dt?Dt.toString:void 0;function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ft(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t){var e=-1,n=t?t.length:0;for(this.__data__=new Ft;++e<n;)this.add(t[e])}function Yt(t){this.__data__=new Ot(t)}function Ht(t,e){var n=oe(t)||re(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var u in t)!e&&!it.call(t,u)||o&&("length"==u||Qt(u,r))||n.push(u);return n}function kt(t,e){for(var n=t.length;n--;)if(ne(t[n][0],e))return n;return-1}function Lt(t,e){for(var n=0,r=(e=Rt(e,t)?[e]:Zt(e)).length;null!=t&&n<r;)t=t[Kt(e[n++])];return n&&n==r?t:void 0}function It(t,e){return null!=t&&e in Object(t)}function zt(t,e,n,r,o){return t===e||(null==t||null==e||!ce(t)&&!fe(e)?t!=t&&e!=e:function(t,e,n,r,o,u){var c=oe(t),f=oe(e),v=s,g=s;c||(v=(v=Xt(t))==l?m:v);f||(g=(g=Xt(e))==l?m:g);var b=v==m&&!R(t),x=g==m&&!R(e),U=v==g;if(U&&!b)return u||(u=new Yt),c||he(t)?Bt(t,e,n,r,o,u):function(t,e,n,r,o,u,c){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case D:return!(t.byteLength!=e.byteLength||!r(new st(t),new st(e)));case h:case d:case _:return ne(+t,+e);case p:return t.name==e.name&&t.message==e.message;case w:case T:return t==e+"";case y:var f=N;case j:var l=u&i;if(f||(f=G),t.size!=e.size&&!l)return!1;var s=c.get(t);if(s)return s==e;u|=a,c.set(t,e);var v=Bt(f(t),f(e),r,o,u,c);return c.delete(t),v;case M:if(Ct)return Ct.call(t)==Ct.call(e)}return!1}(t,e,v,n,r,o,u);if(!(o&i)){var A=b&&it.call(t,"__wrapped__"),O=x&&it.call(e,"__wrapped__");if(A||O){var F=A?t.value():t,S=O?e.value():e;return u||(u=new Yt),n(F,S,r,o,u)}}if(!U)return!1;return u||(u=new Yt),function(t,e,n,r,o,u){var a=o&i,c=de(t),f=c.length,l=de(e).length;if(f!=l&&!a)return!1;for(var s=f;s--;){var h=c[s];if(!(a?h in e:it.call(e,h)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var p=!0;u.set(t,e),u.set(e,t);for(var v=a;++s<f;){h=c[s];var g=t[h],y=e[h];if(r)var _=a?r(y,g,h,e,t,u):r(g,y,h,t,e,u);if(!(void 0===_?g===y||n(g,y,r,o,u):_)){p=!1;break}v||(v="constructor"==h)}if(p&&!v){var m=t.constructor,b=e.constructor;m!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(p=!1)}return u.delete(t),u.delete(e),p}(t,e,n,r,o,u)}(t,e,zt,n,r,o))}function Et(t){return!(!ce(t)||ut&&ut in t)&&(ae(t)||R(t)?ft:Y).test(te(t))}function $t(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?oe(t)?function(t,e){if(Rt(t)&&Nt(e))return Gt(Kt(t),e);return function(n){var r,o,u,c,f=void 0===(u=null==(r=n)?void 0:Lt(r,t))?o:u;return void 0===f&&f===e?null!=(c=n)&&function(t,e,n){for(var r,o=-1,u=(e=Rt(e,t)?[e]:Zt(e)).length;++o<u;){var a=Kt(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}return r||!!(u=t?t.length:0)&&ie(u)&&Qt(a,u)&&(oe(t)||re(t))}(c,t,It):zt(e,f,void 0,a|i)}}(t[0],t[1]):function(t){var e=function(t){var e=de(t),n=e.length;for(;n--;){var r=e[n],o=t[r];e[n]=[r,o,Nt(o)]}return e}(t);if(1==e.length&&e[0][2])return Gt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var o=n.length,u=o,c=!r;if(null==t)return!u;for(t=Object(t);o--;){var f=n[o];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++o<u;){var l=(f=n[o])[0],s=t[l],h=f[1];if(c&&f[2]){if(void 0===s&&!(l in t))return!1}else{var d=new Yt;if(r)var p=r(s,h,l,t,e,d);if(!(void 0===p?zt(h,s,r,a|i,d):p))return!1}}return!0}(n,t,e)}}(t):Rt(e=t)?(r=Kt(e),function(t){return null==t?void 0:t[r]}):(n=e,function(t){return Lt(t,n)});var e,n,r}function Wt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||rt,e!==r)return pt(t);var e,n,r,o=[];for(var u in Object(t))it.call(t,u)&&"constructor"!=u&&o.push(u);return o}function Zt(t){return oe(t)?t:qt(t)}At.prototype.clear=function(){this.__data__=bt?bt(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var e=this.__data__;if(bt){var n=e[t];return n===u?void 0:n}return it.call(e,t)?e[t]:void 0},At.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:it.call(e,t)},At.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?u:e,this},Ot.prototype.clear=function(){this.__data__=[]},Ot.prototype.delete=function(t){var e=this.__data__,n=kt(e,t);return!(n<0||(n==e.length-1?e.pop():dt.call(e,n,1),0))},Ot.prototype.get=function(t){var e=this.__data__,n=kt(e,t);return n<0?void 0:e[n][1]},Ot.prototype.has=function(t){return kt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var n=this.__data__,r=kt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Ft.prototype.clear=function(){this.__data__={hash:new At,map:new(gt||Ot),string:new At}},Ft.prototype.delete=function(t){return Vt(this,t).delete(t)},Ft.prototype.get=function(t){return Vt(this,t).get(t)},Ft.prototype.has=function(t){return Vt(this,t).has(t)},Ft.prototype.set=function(t,e){return Vt(this,t).set(t,e),this},St.prototype.add=St.prototype.push=function(t){return this.__data__.set(t,u),this},St.prototype.has=function(t){return this.__data__.has(t)},Yt.prototype.clear=function(){this.__data__=new Ot},Yt.prototype.delete=function(t){return this.__data__.delete(t)},Yt.prototype.get=function(t){return this.__data__.get(t)},Yt.prototype.has=function(t){return this.__data__.has(t)},Yt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ot){var o=n.__data__;if(!gt||o.length<r-1)return o.push([t,e]),this;n=this.__data__=new Ft(o)}return n.set(t,e),this};var Pt=_t&&1/G(new _t([,-0]))[1]==c?function(t){return new _t(t)}:function(){};function Bt(t,e,n,r,o,u){var c=o&i,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var s=u.get(t);if(s&&u.get(e))return s==e;var h=-1,d=!0,p=o&a?new St:void 0;for(u.set(t,e),u.set(e,t);++h<f;){var v=t[h],g=e[h];if(r)var y=c?r(g,v,h,e,t,u):r(v,g,h,t,e,u);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!J(e,function(t,e){if(!p.has(e)&&(v===t||n(v,t,r,o,u)))return p.add(e)})){d=!1;break}}else if(v!==g&&!n(v,g,r,o,u)){d=!1;break}}return u.delete(t),u.delete(e),d}function Vt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Jt(t,e){var n,r=null==(n=t)?void 0:n[e];return Et(r)?r:void 0}var Xt=function(t){return ct.call(t)};function Qt(t,e){return!!(e=null==e?f:e)&&("number"==typeof t||H.test(t))&&t>-1&&t%1==0&&t<e}function Rt(t,e){if(oe(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!le(t))||(A.test(t)||!U.test(t)||null!=e&&t in Object(e))}function Nt(t){return t==t&&!ce(t)}function Gt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(vt&&Xt(new vt(new ArrayBuffer(1)))!=C||gt&&Xt(new gt)!=y||yt&&Xt(yt.resolve())!=b||_t&&Xt(new _t)!=j||mt&&Xt(new mt)!=x)&&(Xt=function(t){var e=ct.call(t),n=e==m?t.constructor:void 0,r=n?te(n):void 0;if(r)switch(r){case wt:return C;case jt:return y;case Tt:return b;case Mt:return j;case xt:return x}return e});var qt=ee(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(le(t))return Ut?Ut.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var n=[];return O.test(t)&&n.push(""),t.replace(F,function(t,e,r,o){n.push(r?o.replace(S,"$1"):e||t)}),n});function Kt(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function te(t){if(null!=t){try{return at.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ee(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=t.apply(this,r);return n.cache=u.set(o,a),a};return n.cache=new(ee.Cache||Ft),n}function ne(t,e){return t===e||t!=t&&e!=e}function re(t){return fe(e=t)&&ue(e)&&it.call(t,"callee")&&(!ht.call(t,"callee")||ct.call(t)==l);var e}ee.Cache=Ft;var oe=Array.isArray;function ue(t){return null!=t&&ie(t.length)&&!ae(t)}function ae(t){var e=ce(t)?ct.call(t):"";return e==v||e==g}function ie(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function ce(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fe(t){return!!t&&"object"==typeof t}function le(t){return"symbol"==typeof t||fe(t)&&ct.call(t)==M}var se,he=P?(se=P,function(t){return se(t)}):function(t){return fe(t)&&ie(t.length)&&!!k[ct.call(t)]};function de(t){return ue(t)?Ht(t):Wt(t)}function pe(t){return t}e.exports=function(t,e){return t&&t.length?function(t,e,n){var o=-1,u=B,a=t.length,i=!0,c=[],f=c;if(n)i=!1,u=V;else if(a>=r){var l=e?null:Pt(t);if(l)return G(l);i=!1,u=Q,f=new St}else f=e?[]:c;t:for(;++o<a;){var s=t[o],h=e?e(s):s;if(s=n||0!==s?s:0,i&&h==h){for(var d=f.length;d--;)if(f[d]===h)continue t;e&&f.push(h),c.push(s)}else u(f,h,n)||(f!==c&&f.push(h),c.push(s))}return c}(t,$t(e)):[]}}),Zt=function(t,e){return function(n){var r,o,u=t.drop,a=u.color,i=u.radius,c=u.date,f=u.onClick,l=u.onMouseOver,s=u.onMouseOut,h=n.selectAll(".drop").data((r=e,o=c,function(t){return Wt(t.data,function(t){return Math.round(r(o(t)))})}));h.enter().append("circle").classed("drop",!0).attr("r",i).attr("fill",a).on("click",f).on("mouseover",l).on("mouseout",s).merge(h).attr("cx",function(t){return e(c(t))}),h.exit().on("click",null).on("mouseover",null).on("mouseout",null).remove()}};return function(t){var e=t.d3,r=void 0===e?window.d3:e,o=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["d3"]),u=function t(e){var u,i=n(o||{},{locale:$t,metaballs:{blurDeviation:10,colorMatrix:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -10"},bound:{format:(u=r).timeFormat("%d %B %Y")},axis:{formats:{milliseconds:"%L",seconds:":%S",minutes:"%I:%M",hours:"%I %p",days:"%a %d",weeks:"%b %d",months:"%B",year:"%Y"}},drop:{color:null,radius:5,date:function(t){return new Date(t)},onClick:function(){},onMouseOver:function(){},onMouseOut:function(){}},label:{padding:20,text:function(t){return t.name+" ("+t.data.length+")"},width:200},line:{color:function(t,e){return u.schemeCategory10[e]},height:40},margin:{top:20,right:10,bottom:20,left:10},range:{start:new Date((new Date).getTime()-31536e6),end:new Date},zoom:{onZoomStart:null,onZoom:null,onZoomEnd:null,minimumScale:0,maximumScale:1/0}}),c=i.zoom,f=i.drop,l=(f.onClick,f.onMouseOut,f.onMouseOver,i.metaballs),s=i.label.width,h=i.line.height,d=i.range,p=d.start,v=d.end,g=i.margin,y=e.node().clientWidth-g.left-g.right,_=r.scaleTime().domain([p,v]).range([0,y-s]);t._scale=_;var m=e.selectAll("svg").data(e.data());m.exit().remove();var b,w,j,T,M,x,D,C,U,A,O,F,S,Y,H,k,L=m.enter().append("svg").attr("width",y).classed("event-drop-chart",!0);c&&L.call((b=r,j=_,T=a,M=function(){return r.event},x=(w=i).label,D=x.width,C=x.padding,U=w.zoom,A=U.onZoomStart,O=U.onZoom,F=U.onZoomEnd,S=U.minimumScale,Y=U.maximumScale,(H=b.zoom().scaleExtent([S,Y])).on("zoom.start",A).on("zoom.end",F),H.on("zoom",function(t){var e,n,r,o,u,a,i,c,f=(e=M().transform,o=b,u=(n=D)+(r=C),a=e.x,i=e.y,c=e.k,o.zoomIdentity.translate(-u,0).translate(a,i).scale(c).translate(n+r,0)).rescaleX(j);b.select("svg").call(T(w,f)),O&&O(t)}),H)),l&&L.call((k=i,function(t){var e=k.metaballs,n=e.blurDeviation,r=e.colorMatrix,o=t.append("defs").append("filter").attr("id","metaballs");o.append("feGaussianBlur").attr("in","SourceGraphic").attr("stdDeviation",n).attr("result","blur"),o.append("feColorMatrix").attr("in","blur").attr("mode","matrix").attr("values",r).attr("result","contrast"),o.append("feBlend").attr("in","SourceGraphic").attr("in2","contrast")})),L.merge(m).attr("height",function(t){return(t.length+1)*h+g.top+g.bottom}),L.append("g").classed("viewport",!0).attr("transform","translate("+g.left+","+g.top+")").call(a(i,_))};u.scale=function(){return u._scale},u.filteredData=function(){return u._filteredData};var a=function(t,e){return function(n){var o,a,i,c,f,l,s,h,d,p,v=e.domain().map(function(t){return new Date(t)}),g=n.data().map(function(t){return t.map(function(t){return t.fullData||(t.fullData=t.data),t.data=t.fullData.filter(function(t){return e=t.date,n=v,new Date(e)>=n[0]&&new Date(e)<=n[1];var e,n}),t})});u._scale=e,u._filteredData=g[0],n.data(g).call((d=t,p=e,function(t){var e=d.metaballs,n=d.label,r=n.text,o=n.padding,u=n.width,a=d.line,i=a.color,c=a.height,f=t.selectAll(".drop-line").data(function(t){return t}),l=f.enter().append("g").classed("drop-line",!0).attr("fill",i).attr("transform",function(t,e){return"translate(0, "+e*c+")"});l.append("line").classed("line-separator",!0).attr("x1",u).attr("x2","100%").attr("y1",function(){return c}).attr("y2",function(){return c}),l.append("text").attr("x",u-o).attr("y",c/2).attr("dy","0.25em").attr("text-anchor","end").text(r);var s=l.append("g").classed("drops",!0).attr("transform",function(){return"translate("+u+", "+c/2+")"}).call(Zt(d,p));s.append("rect").attr("x",0).attr("y",-d.line.height/2).attr("width",1).attr("height",d.line.height).attr("fill","transparent"),e&&s.style("filter","url(#metaballs)"),f.selectAll("text").text(r),f.selectAll(".drops").call(Zt(d,p)),f.exit().remove()})).call((s=t,h=e,function(t){var e=s.margin,n=s.bound.format,r=s.label.width,o=s.line.height,u=t.selectAll(".bound").data(function(t){return t}),a=t.data()[0].length;u.exit().remove(),u.enter().filter(function(t,e){return!e}).append("g").classed("bound",!0).classed("start",!0).attr("transform","translate("+r+", "+(o*a+e.top)+")").append("text").text(n(h.domain()[0])),u.enter().filter(function(t,e){return!e}).append("g").classed("bound",!0).classed("end",!0).attr("transform","translate("+r+", "+(o*a+e.top)+")").append("text").attr("x",h.range()[1]-e.right).attr("text-anchor","end").text(n(h.domain()[1])),u.selectAll(".bound.start text").text(n(h.domain()[0])),u.selectAll(".bound.end text").text(n(h.domain()[1]))})).call((o=r,i=e,c=(a=t).label.width,f=a.axis.formats,l=a.locale,o.timeFormatDefaultLocale(l),function(t){var e=t.selectAll(".axis").data(function(t){return t});e.exit().remove();var n=o.axisTop(i).tickFormat(function(t){return e=t,n=f,(r=o).timeSecond(e)<e?r.timeFormat(n.milliseconds)(e):r.timeMinute(e)<e?r.timeFormat(n.seconds)(e):r.timeHour(e)<e?r.timeFormat(n.minutes)(e):r.timeDay(e)<e?r.timeFormat(n.hours)(e):r.timeMonth(e)<e?r.timeWeek(e)<e?r.timeFormat(n.days)(e):r.timeFormat(n.weeks)(e):r.timeYear(e)<e?r.timeFormat(n.months)(e):r.timeFormat(n.year)(e);var e,n,r});e.enter().filter(function(t,e){return!e}).append("g").classed("axis",!0).attr("transform","translate("+c+",0)").call(n),e.call(n)}))}};return u.draw=a,u}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.eventDrops=e()}(this,function(){"use strict";var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=e(function(e,n){var r=200,o="__lodash_hash_undefined__",u=9007199254740991,a="[object Arguments]",i="[object Array]",c="[object Boolean]",f="[object Date]",l="[object Error]",s="[object Function]",h="[object GeneratorFunction]",d="[object Map]",p="[object Number]",v="[object Object]",g="[object Promise]",y="[object RegExp]",_="[object Set]",m="[object String]",b="[object Symbol]",w="[object WeakMap]",j="[object ArrayBuffer]",T="[object DataView]",M="[object Float32Array]",x="[object Float64Array]",D="[object Int8Array]",C="[object Int16Array]",U="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",F="[object Uint16Array]",S="[object Uint32Array]",Y=/\w*$/,H=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,L={};L[M]=L[x]=L[D]=L[C]=L[U]=L[A]=L[O]=L[F]=L[S]=!0,L[a]=L[i]=L[j]=L[c]=L[T]=L[f]=L[l]=L[s]=L[d]=L[p]=L[v]=L[y]=L[_]=L[m]=L[w]=!1;var I={};I[a]=I[i]=I[j]=I[T]=I[c]=I[f]=I[M]=I[x]=I[D]=I[C]=I[U]=I[d]=I[p]=I[v]=I[y]=I[_]=I[m]=I[b]=I[A]=I[O]=I[F]=I[S]=!0,I[l]=I[s]=I[w]=!1;var z="object"==typeof t&&t&&t.Object===Object&&t,E="object"==typeof self&&self&&self.Object===Object&&self,$=z||E||Function("return this")(),W=n&&!n.nodeType&&n,Z=W&&e&&!e.nodeType&&e,P=Z&&Z.exports===W,B=P&&z.process,V=function(){try{return B&&B.binding("util")}catch(t){}}(),J=V&&V.isTypedArray;function X(t,e){return t.set(e[0],e[1]),t}function Q(t,e){return t.add(e),t}function R(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function N(t,e){for(var n=-1,r=t?t.length:0;++n<r&&!1!==e(t[n],n,t););return t}function G(t,e,n,r){var o=-1,u=t?t.length:0;for(r&&u&&(n=t[++o]);++o<u;)n=e(n,t[o],o,t);return n}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function K(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function tt(t,e){return function(n){return t(e(n))}}function et(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var nt,rt=Array.prototype,ot=Function.prototype,ut=Object.prototype,at=$["__core-js_shared__"],it=(nt=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",ct=ot.toString,ft=ut.hasOwnProperty,lt=ct.call(Object),st=ut.toString,ht=RegExp("^"+ct.call(ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dt=P?$.Buffer:void 0,pt=$.Symbol,vt=$.Uint8Array,gt=tt(Object.getPrototypeOf,Object),yt=Object.create,_t=ut.propertyIsEnumerable,mt=rt.splice,bt=Object.getOwnPropertySymbols,wt=dt?dt.isBuffer:void 0,jt=tt(Object.keys,Object),Tt=Math.max,Mt=te($,"DataView"),xt=te($,"Map"),Dt=te($,"Promise"),Ct=te($,"Set"),Ut=te($,"WeakMap"),At=te(Object,"create"),Ot=ae(Mt),Ft=ae(xt),St=ae(Dt),Yt=ae(Ct),Ht=ae(Ut),kt=pt?pt.prototype:void 0,Lt=kt?kt.valueOf:void 0;function It(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function zt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $t(t){this.__data__=new zt(t)}function Wt(t,e){var n=fe(t)||ce(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var u in t)!e&&!ft.call(t,u)||o&&("length"==u||re(u,r))||n.push(u);return n}function Zt(t,e,n){(void 0===n||ie(t[e],n))&&("number"!=typeof e||void 0!==n||e in t)||(t[e]=n)}function Pt(t,e,n){var r=t[e];ft.call(t,e)&&ie(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function Bt(t,e){for(var n=t.length;n--;)if(ie(t[n][0],e))return n;return-1}function Vt(t,e,n,r,o,u,i){var l;if(r&&(l=u?r(t,o,u,i):r(t)),void 0!==l)return l;if(!ve(t))return t;var g,w,H,k,L,z,E=fe(t);if(E){if(l=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&ft.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return Gt(t,l)}else{var $=ne(t),W=$==s||$==h;if(he(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if($==v||$==a||W&&!u){if(q(t))return u?t:{};if(l="function"!=typeof(L=W?{}:t).constructor||oe(L)?{}:ve(z=gt(L))?yt(z):{},!e)return g=t,k=t,w=(H=l)&&qt(k,be(k),H),qt(g,ee(g),w)}else{if(!I[$])return u?t:{};l=function(t,e,n,r){var o=t.constructor;switch(e){case j:return Nt(t);case c:case f:return new o(+t);case T:return g=t,w=r?Nt(g.buffer):g.buffer,new g.constructor(w,g.byteOffset,g.byteLength);case M:case x:case D:case C:case U:case A:case O:case F:case S:return h=t,v=r?Nt(h.buffer):h.buffer,new h.constructor(v,h.byteOffset,h.length);case d:return s=t,G(r?n(K(s),!0):K(s),X,new s.constructor);case p:case m:return new o(t);case y:return(l=new(i=t).constructor(i.source,Y.exec(i))).lastIndex=i.lastIndex,l;case _:return a=t,G(r?n(et(a),!0):et(a),Q,new a.constructor);case b:return u=t,Lt?Object(Lt.call(u)):{}}var u;var a;var i,l;var s;var h,v;var g,w}(t,$,Vt,e)}}i||(i=new $t);var Z,P,B,V=i.get(t);if(V)return V;if(i.set(t,l),!E)var J=n?(P=ee,B=be(Z=t),fe(Z)?B:function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}(B,P(Z))):be(t);return N(J||t,function(o,u){J&&(o=t[u=o]),Pt(l,u,Vt(o,e,n,r,u,t,i))}),l}function Jt(t){return!(!ve(t)||it&&it in t)&&(de(t)||q(t)?ht:H).test(ae(t))}function Xt(t){if(!ve(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=oe(t),n=[];for(var r in t)("constructor"!=r||!e&&ft.call(t,r))&&n.push(r);return n}function Qt(t,e,n,r,o){if(t!==e){if(!fe(e)&&!_e(e))var u=Xt(e);N(u||e,function(a,i){if(u&&(a=e[i=a]),ve(a))o||(o=new $t),function(t,e,n,r,o,u,a){var i=t[n],c=e[n],f=a.get(c);if(f)return void Zt(t,n,f);var l=u?u(i,c,n+"",t,e,a):void 0,s=void 0===l;s&&(l=c,fe(c)||_e(c)?fe(i)?l=i:se(i)?l=Gt(i):(s=!1,l=Vt(c,!0)):function(t){if(!ge(t)||st.call(t)!=v||q(t))return!1;var e=gt(t);if(null===e)return!0;var n=ft.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==lt}(c)||ce(c)?ce(i)?l=qt(h=i,le(d=h)?Wt(d,!0):Xt(d)):!ve(i)||r&&de(i)?(s=!1,l=Vt(c,!0)):l=i:s=!1);var h,d;s&&(a.set(c,l),o(l,c,r,u,a),a.delete(c));Zt(t,n,l)}(t,e,i,n,Qt,r,o);else{var c=r?r(t[i],a,i+"",t,e,o):void 0;void 0===c&&(c=a),Zt(t,i,c)}})}}function Rt(t,e){return e=Tt(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=Tt(n.length-e,0),u=Array(o);++r<o;)u[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=u,R(t,this,a)}}function Nt(t){var e=new t.constructor(t.byteLength);return new vt(e).set(new vt(t)),e}function Gt(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function qt(t,e,n,r){n||(n={});for(var o=-1,u=e.length;++o<u;){var a=e[o],i=r?r(n[a],t[a],a,n,t):void 0;Pt(n,a,void 0===i?t[a]:i)}return n}function Kt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function te(t,e){var n,r=null==(n=t)?void 0:n[e];return Jt(r)?r:void 0}It.prototype.clear=function(){this.__data__=At?At(null):{}},It.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},It.prototype.get=function(t){var e=this.__data__;if(At){var n=e[t];return n===o?void 0:n}return ft.call(e,t)?e[t]:void 0},It.prototype.has=function(t){var e=this.__data__;return At?void 0!==e[t]:ft.call(e,t)},It.prototype.set=function(t,e){return this.__data__[t]=At&&void 0===e?o:e,this},zt.prototype.clear=function(){this.__data__=[]},zt.prototype.delete=function(t){var e=this.__data__,n=Bt(e,t);return!(n<0||(n==e.length-1?e.pop():mt.call(e,n,1),0))},zt.prototype.get=function(t){var e=this.__data__,n=Bt(e,t);return n<0?void 0:e[n][1]},zt.prototype.has=function(t){return Bt(this.__data__,t)>-1},zt.prototype.set=function(t,e){var n=this.__data__,r=Bt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Et.prototype.clear=function(){this.__data__={hash:new It,map:new(xt||zt),string:new It}},Et.prototype.delete=function(t){return Kt(this,t).delete(t)},Et.prototype.get=function(t){return Kt(this,t).get(t)},Et.prototype.has=function(t){return Kt(this,t).has(t)},Et.prototype.set=function(t,e){return Kt(this,t).set(t,e),this},$t.prototype.clear=function(){this.__data__=new zt},$t.prototype.delete=function(t){return this.__data__.delete(t)},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.set=function(t,e){var n=this.__data__;if(n instanceof zt){var o=n.__data__;if(!xt||o.length<r-1)return o.push([t,e]),this;n=this.__data__=new Et(o)}return n.set(t,e),this};var ee=bt?tt(bt,Object):function(){return[]},ne=function(t){return st.call(t)};function re(t,e){return!!(e=null==e?u:e)&&("number"==typeof t||k.test(t))&&t>-1&&t%1==0&&t<e}function oe(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ut)}function ue(t,e,n,r,o,u){return ve(t)&&ve(e)&&(u.set(e,t),Qt(t,e,void 0,ue,u),u.delete(e)),t}function ae(t){if(null!=t){try{return ct.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ie(t,e){return t===e||t!=t&&e!=e}function ce(t){return se(t)&&ft.call(t,"callee")&&(!_t.call(t,"callee")||st.call(t)==a)}(Mt&&ne(new Mt(new ArrayBuffer(1)))!=T||xt&&ne(new xt)!=d||Dt&&ne(Dt.resolve())!=g||Ct&&ne(new Ct)!=_||Ut&&ne(new Ut)!=w)&&(ne=function(t){var e=st.call(t),n=e==v?t.constructor:void 0,r=n?ae(n):void 0;if(r)switch(r){case Ot:return T;case Ft:return d;case St:return g;case Yt:return _;case Ht:return w}return e});var fe=Array.isArray;function le(t){return null!=t&&pe(t.length)&&!de(t)}function se(t){return ge(t)&&le(t)}var he=wt||function(){return!1};function de(t){var e=ve(t)?st.call(t):"";return e==s||e==h}function pe(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function ve(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function ge(t){return!!t&&"object"==typeof t}var ye,_e=J?(ye=J,function(t){return ye(t)}):function(t){return ge(t)&&pe(t.length)&&!!L[st.call(t)]};var me=Rt(function(t){return t.push(void 0,ue),R(je,void 0,t)});function be(t){return le(t)?Wt(t):function(t){if(!oe(t))return jt(t);var e=[];for(var n in Object(t))ft.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var we,je=(we=function(t,e,n,r){Qt(t,e,n,r)},Rt(function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,u=r>2?e[2]:void 0;for(o=we.length>3&&"function"==typeof o?(r--,o):void 0,u&&function(t,e,n){if(!ve(n))return!1;var r=typeof e;return!!("number"==r?le(n)&&re(e,n.length):"string"==r&&e in n)&&ie(n[e],t)}(e[0],e[1],u)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&we(t,a,n,o)}return t}));e.exports=me}),r=new Date,o=new Date;function u(t,e,n,a){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var u,a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(u=new Date(+n)),e(n,o),t(n)}while(u<n&&n<r);return a},i.filter=function(n){return u(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(i.count=function(e,u){return r.setTime(+e),o.setTime(+u),t(r),t(o),Math.floor(n(r,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(a?function(e){return a(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var a=u(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?u(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):a:null};var i=1e3,c=6e4,f=36e5,l=6048e5,s=(u(function(t){t.setTime(Math.floor(t/i)*i)},function(t,e){t.setTime(+t+e*i)},function(t,e){return(e-t)/i},function(t){return t.getUTCSeconds()}),u(function(t){t.setTime(Math.floor(t/c)*c)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getMinutes()}),u(function(t){var e=t.getTimezoneOffset()*c%f;e<0&&(e+=f),t.setTime(Math.floor((+t-e)/f)*f+e)},function(t,e){t.setTime(+t+e*f)},function(t,e){return(e-t)/f},function(t){return t.getHours()}),u(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/864e5},function(t){return t.getDate()-1}));function h(t){return u(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/l})}var d=h(0),p=h(1),v=(h(2),h(3),h(4)),g=(h(5),h(6),u(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}),u(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}));g.every=function(t){return isFinite(t=Math.floor(t))&&t>0?u(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};u(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*c)},function(t,e){return(e-t)/c},function(t){return t.getUTCMinutes()}),u(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*f)},function(t,e){return(e-t)/f},function(t){return t.getUTCHours()});var y=u(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/864e5},function(t){return t.getUTCDate()-1});function _(t){return u(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/l})}var m=_(0),b=_(1),w=(_(2),_(3),_(4)),j=(_(5),_(6),u(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()}),u(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()}));function T(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function M(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function x(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}j.every=function(t){return isFinite(t=Math.floor(t))&&t>0?u(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var D,C,U,A={"-":"",_:" ",0:"0"},O=/^\s*\d+/,F=/^%/,S=/[\\^$*+?|[\]().{}]/g;function Y(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",u=o.length;return r+(u<n?new Array(n-u+1).join(e)+o:o)}function H(t){return t.replace(S,"\\$&")}function k(t){return new RegExp("^(?:"+t.map(H).join("|")+")","i")}function L(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function I(t,e,n){var r=O.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function z(t,e,n){var r=O.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function E(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function $(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function W(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Z(t,e,n){var r=O.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function P(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function B(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function V(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function J(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function X(t,e,n){var r=O.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Q(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function R(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function N(t,e,n){var r=O.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function G(t,e,n){var r=O.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function q(t,e,n){var r=O.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function K(t,e,n){var r=F.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function tt(t,e,n){var r=O.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function et(t,e,n){var r=O.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function nt(t,e){return Y(t.getDate(),e,2)}function rt(t,e){return Y(t.getHours(),e,2)}function ot(t,e){return Y(t.getHours()%12||12,e,2)}function ut(t,e){return Y(1+s.count(g(t),t),e,3)}function at(t,e){return Y(t.getMilliseconds(),e,3)}function it(t,e){return at(t,e)+"000"}function ct(t,e){return Y(t.getMonth()+1,e,2)}function ft(t,e){return Y(t.getMinutes(),e,2)}function lt(t,e){return Y(t.getSeconds(),e,2)}function st(t){var e=t.getDay();return 0===e?7:e}function ht(t,e){return Y(d.count(g(t),t),e,2)}function dt(t,e){var n=t.getDay();return t=n>=4||0===n?v(t):v.ceil(t),Y(v.count(g(t),t)+(4===g(t).getDay()),e,2)}function pt(t){return t.getDay()}function vt(t,e){return Y(p.count(g(t),t),e,2)}function gt(t,e){return Y(t.getFullYear()%100,e,2)}function yt(t,e){return Y(t.getFullYear()%1e4,e,4)}function _t(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Y(e/60|0,"0",2)+Y(e%60,"0",2)}function mt(t,e){return Y(t.getUTCDate(),e,2)}function bt(t,e){return Y(t.getUTCHours(),e,2)}function wt(t,e){return Y(t.getUTCHours()%12||12,e,2)}function jt(t,e){return Y(1+y.count(j(t),t),e,3)}function Tt(t,e){return Y(t.getUTCMilliseconds(),e,3)}function Mt(t,e){return Tt(t,e)+"000"}function xt(t,e){return Y(t.getUTCMonth()+1,e,2)}function Dt(t,e){return Y(t.getUTCMinutes(),e,2)}function Ct(t,e){return Y(t.getUTCSeconds(),e,2)}function Ut(t){var e=t.getUTCDay();return 0===e?7:e}function At(t,e){return Y(m.count(j(t),t),e,2)}function Ot(t,e){var n=t.getUTCDay();return t=n>=4||0===n?w(t):w.ceil(t),Y(w.count(j(t),t)+(4===j(t).getUTCDay()),e,2)}function Ft(t){return t.getUTCDay()}function St(t,e){return Y(b.count(j(t),t),e,2)}function Yt(t,e){return Y(t.getUTCFullYear()%100,e,2)}function Ht(t,e){return Y(t.getUTCFullYear()%1e4,e,4)}function kt(){return"+0000"}function Lt(){return"%"}function It(t){return+t}function zt(t){return Math.floor(+t/1e3)}D=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,u=t.days,a=t.shortDays,i=t.months,c=t.shortMonths,f=k(o),l=L(o),h=k(u),d=L(u),v=k(a),g=L(a),_=k(i),m=L(i),w=k(c),j=L(c),D={a:function(t){return a[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return i[t.getMonth()]},c:null,d:nt,e:nt,f:it,H:rt,I:ot,j:ut,L:at,m:ct,M:ft,p:function(t){return o[+(t.getHours()>=12)]},Q:It,s:zt,S:lt,u:st,U:ht,V:dt,w:pt,W:vt,x:null,X:null,y:gt,Y:yt,Z:_t,"%":Lt},C={a:function(t){return a[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return i[t.getUTCMonth()]},c:null,d:mt,e:mt,f:Mt,H:bt,I:wt,j:jt,L:Tt,m:xt,M:Dt,p:function(t){return o[+(t.getUTCHours()>=12)]},Q:It,s:zt,S:Ct,u:Ut,U:At,V:Ot,w:Ft,W:St,x:null,X:null,y:Yt,Y:Ht,Z:kt,"%":Lt},U={a:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=w.exec(e.slice(n));return r?(t.m=j[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=_.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return S(t,e,n,r)},d:J,e:J,f:q,H:Q,I:Q,j:X,L:G,m:V,M:R,p:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:tt,s:et,S:N,u:z,U:E,V:$,w:I,W:W,x:function(t,e,r){return S(t,n,e,r)},X:function(t,e,n){return S(t,r,e,n)},y:P,Y:Z,Z:B,"%":K};function O(t,e){return function(n){var r,o,u,a=[],i=-1,c=0,f=t.length;for(n instanceof Date||(n=new Date(+n));++i<f;)37===t.charCodeAt(i)&&(a.push(t.slice(c,i)),null!=(o=A[r=t.charAt(++i)])?r=t.charAt(++i):o="e"===r?" ":"0",(u=e[r])&&(r=u(n,o)),a.push(r),c=i+1);return a.push(t.slice(c,i)),a.join("")}}function F(t,e){return function(n){var r,o,u=x(1900);if(S(u,t,n+="",0)!=n.length)return null;if("Q"in u)return new Date(u.Q);if("p"in u&&(u.H=u.H%12+12*u.p),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(r=(o=(r=M(x(u.y))).getUTCDay())>4||0===o?b.ceil(r):b(r),r=y.offset(r,7*(u.V-1)),u.y=r.getUTCFullYear(),u.m=r.getUTCMonth(),u.d=r.getUTCDate()+(u.w+6)%7):(r=(o=(r=e(x(u.y))).getDay())>4||0===o?p.ceil(r):p(r),r=s.offset(r,7*(u.V-1)),u.y=r.getFullYear(),u.m=r.getMonth(),u.d=r.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),o="Z"in u?M(x(u.y)).getUTCDay():e(x(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(o+5)%7:u.w+7*u.U-(o+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,M(u)):e(u)}}function S(t,e,n,r){for(var o,u,a=0,i=e.length,c=n.length;a<i;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(u=U[o in A?e.charAt(a++):o])||(r=u(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return D.x=O(n,D),D.X=O(r,D),D.c=O(e,D),C.x=O(n,C),C.X=O(r,C),C.c=O(e,C),{format:function(t){var e=O(t+="",D);return e.toString=function(){return t},e},parse:function(t){var e=F(t+="",T);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",C);return e.toString=function(){return t},e},utcParse:function(t){var e=F(t,M);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),D.format,D.parse,C=D.utcFormat,U=D.utcParse;var Et="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||C(Et);+new Date("2000-01-01T00:00:00.000Z")||U(Et);var $t={dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},Wt=e(function(e,n){var r=200,o="Expected a function",u="__lodash_hash_undefined__",a=1,i=2,c=1/0,f=9007199254740991,l="[object Arguments]",s="[object Array]",h="[object Boolean]",d="[object Date]",p="[object Error]",v="[object Function]",g="[object GeneratorFunction]",y="[object Map]",_="[object Number]",m="[object Object]",b="[object Promise]",w="[object RegExp]",j="[object Set]",T="[object String]",M="[object Symbol]",x="[object WeakMap]",D="[object ArrayBuffer]",C="[object DataView]",U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,O=/^\./,F=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g,Y=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[l]=k[s]=k[D]=k[h]=k[C]=k[d]=k[p]=k[v]=k[y]=k[_]=k[m]=k[w]=k[j]=k[T]=k[x]=!1;var L="object"==typeof t&&t&&t.Object===Object&&t,I="object"==typeof self&&self&&self.Object===Object&&self,z=L||I||Function("return this")(),E=n&&!n.nodeType&&n,$=E&&e&&!e.nodeType&&e,W=$&&$.exports===E&&L.process,Z=function(){try{return W&&W.binding("util")}catch(t){}}(),P=Z&&Z.isTypedArray;function B(t,e){return!!(t?t.length:0)&&function(t,e,n){if(e!=e)return function(t,e,n,r){var o=t.length,u=n+(r?1:-1);for(;r?u--:++u<o;)if(e(t[u],u,t))return u;return-1}(t,X,n);var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,0)>-1}function V(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function J(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function X(t){return t!=t}function Q(t,e){return t.has(e)}function R(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function N(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function G(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var q,K,tt,et=Array.prototype,nt=Function.prototype,rt=Object.prototype,ot=z["__core-js_shared__"],ut=(q=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||""))?"Symbol(src)_1."+q:"",at=nt.toString,it=rt.hasOwnProperty,ct=rt.toString,ft=RegExp("^"+at.call(it).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lt=z.Symbol,st=z.Uint8Array,ht=rt.propertyIsEnumerable,dt=et.splice,pt=(K=Object.keys,tt=Object,function(t){return K(tt(t))}),vt=Jt(z,"DataView"),gt=Jt(z,"Map"),yt=Jt(z,"Promise"),_t=Jt(z,"Set"),mt=Jt(z,"WeakMap"),bt=Jt(Object,"create"),wt=te(vt),jt=te(gt),Tt=te(yt),Mt=te(_t),xt=te(mt),Dt=lt?lt.prototype:void 0,Ct=Dt?Dt.valueOf:void 0,Ut=Dt?Dt.toString:void 0;function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ot(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ft(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t){var e=-1,n=t?t.length:0;for(this.__data__=new Ft;++e<n;)this.add(t[e])}function Yt(t){this.__data__=new Ot(t)}function Ht(t,e){var n=oe(t)||re(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],r=n.length,o=!!r;for(var u in t)!e&&!it.call(t,u)||o&&("length"==u||Qt(u,r))||n.push(u);return n}function kt(t,e){for(var n=t.length;n--;)if(ne(t[n][0],e))return n;return-1}function Lt(t,e){for(var n=0,r=(e=Rt(e,t)?[e]:Zt(e)).length;null!=t&&n<r;)t=t[Kt(e[n++])];return n&&n==r?t:void 0}function It(t,e){return null!=t&&e in Object(t)}function zt(t,e,n,r,o){return t===e||(null==t||null==e||!ce(t)&&!fe(e)?t!=t&&e!=e:function(t,e,n,r,o,u){var c=oe(t),f=oe(e),v=s,g=s;c||(v=(v=Xt(t))==l?m:v);f||(g=(g=Xt(e))==l?m:g);var b=v==m&&!R(t),x=g==m&&!R(e),U=v==g;if(U&&!b)return u||(u=new Yt),c||he(t)?Bt(t,e,n,r,o,u):function(t,e,n,r,o,u,c){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case D:return!(t.byteLength!=e.byteLength||!r(new st(t),new st(e)));case h:case d:case _:return ne(+t,+e);case p:return t.name==e.name&&t.message==e.message;case w:case T:return t==e+"";case y:var f=N;case j:var l=u&i;if(f||(f=G),t.size!=e.size&&!l)return!1;var s=c.get(t);if(s)return s==e;u|=a,c.set(t,e);var v=Bt(f(t),f(e),r,o,u,c);return c.delete(t),v;case M:if(Ct)return Ct.call(t)==Ct.call(e)}return!1}(t,e,v,n,r,o,u);if(!(o&i)){var A=b&&it.call(t,"__wrapped__"),O=x&&it.call(e,"__wrapped__");if(A||O){var F=A?t.value():t,S=O?e.value():e;return u||(u=new Yt),n(F,S,r,o,u)}}if(!U)return!1;return u||(u=new Yt),function(t,e,n,r,o,u){var a=o&i,c=de(t),f=c.length,l=de(e).length;if(f!=l&&!a)return!1;for(var s=f;s--;){var h=c[s];if(!(a?h in e:it.call(e,h)))return!1}var d=u.get(t);if(d&&u.get(e))return d==e;var p=!0;u.set(t,e),u.set(e,t);for(var v=a;++s<f;){h=c[s];var g=t[h],y=e[h];if(r)var _=a?r(y,g,h,e,t,u):r(g,y,h,t,e,u);if(!(void 0===_?g===y||n(g,y,r,o,u):_)){p=!1;break}v||(v="constructor"==h)}if(p&&!v){var m=t.constructor,b=e.constructor;m!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(p=!1)}return u.delete(t),u.delete(e),p}(t,e,n,r,o,u)}(t,e,zt,n,r,o))}function Et(t){return!(!ce(t)||ut&&ut in t)&&(ae(t)||R(t)?ft:Y).test(te(t))}function $t(t){return"function"==typeof t?t:null==t?pe:"object"==typeof t?oe(t)?function(t,e){if(Rt(t)&&Nt(e))return Gt(Kt(t),e);return function(n){var r,o,u,c,f=void 0===(u=null==(r=n)?void 0:Lt(r,t))?o:u;return void 0===f&&f===e?null!=(c=n)&&function(t,e,n){e=Rt(e,t)?[e]:Zt(e);for(var r,o=-1,u=e.length;++o<u;){var a=Kt(e[o]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}return r||!!(u=t?t.length:0)&&ie(u)&&Qt(a,u)&&(oe(t)||re(t))}(c,t,It):zt(e,f,void 0,a|i)}}(t[0],t[1]):function(t){var e=function(t){var e=de(t),n=e.length;for(;n--;){var r=e[n],o=t[r];e[n]=[r,o,Nt(o)]}return e}(t);if(1==e.length&&e[0][2])return Gt(e[0][0],e[0][1]);return function(n){return n===t||function(t,e,n,r){var o=n.length,u=o,c=!r;if(null==t)return!u;for(t=Object(t);o--;){var f=n[o];if(c&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++o<u;){var l=(f=n[o])[0],s=t[l],h=f[1];if(c&&f[2]){if(void 0===s&&!(l in t))return!1}else{var d=new Yt;if(r)var p=r(s,h,l,t,e,d);if(!(void 0===p?zt(h,s,r,a|i,d):p))return!1}}return!0}(n,t,e)}}(t):Rt(e=t)?(r=Kt(e),function(t){return null==t?void 0:t[r]}):(n=e,function(t){return Lt(t,n)});var e,n,r}function Wt(t){if(n=(e=t)&&e.constructor,r="function"==typeof n&&n.prototype||rt,e!==r)return pt(t);var e,n,r,o=[];for(var u in Object(t))it.call(t,u)&&"constructor"!=u&&o.push(u);return o}function Zt(t){return oe(t)?t:qt(t)}At.prototype.clear=function(){this.__data__=bt?bt(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var e=this.__data__;if(bt){var n=e[t];return n===u?void 0:n}return it.call(e,t)?e[t]:void 0},At.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:it.call(e,t)},At.prototype.set=function(t,e){return this.__data__[t]=bt&&void 0===e?u:e,this},Ot.prototype.clear=function(){this.__data__=[]},Ot.prototype.delete=function(t){var e=this.__data__,n=kt(e,t);return!(n<0||(n==e.length-1?e.pop():dt.call(e,n,1),0))},Ot.prototype.get=function(t){var e=this.__data__,n=kt(e,t);return n<0?void 0:e[n][1]},Ot.prototype.has=function(t){return kt(this.__data__,t)>-1},Ot.prototype.set=function(t,e){var n=this.__data__,r=kt(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Ft.prototype.clear=function(){this.__data__={hash:new At,map:new(gt||Ot),string:new At}},Ft.prototype.delete=function(t){return Vt(this,t).delete(t)},Ft.prototype.get=function(t){return Vt(this,t).get(t)},Ft.prototype.has=function(t){return Vt(this,t).has(t)},Ft.prototype.set=function(t,e){return Vt(this,t).set(t,e),this},St.prototype.add=St.prototype.push=function(t){return this.__data__.set(t,u),this},St.prototype.has=function(t){return this.__data__.has(t)},Yt.prototype.clear=function(){this.__data__=new Ot},Yt.prototype.delete=function(t){return this.__data__.delete(t)},Yt.prototype.get=function(t){return this.__data__.get(t)},Yt.prototype.has=function(t){return this.__data__.has(t)},Yt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ot){var o=n.__data__;if(!gt||o.length<r-1)return o.push([t,e]),this;n=this.__data__=new Ft(o)}return n.set(t,e),this};var Pt=_t&&1/G(new _t([,-0]))[1]==c?function(t){return new _t(t)}:function(){};function Bt(t,e,n,r,o,u){var c=o&i,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var s=u.get(t);if(s&&u.get(e))return s==e;var h=-1,d=!0,p=o&a?new St:void 0;for(u.set(t,e),u.set(e,t);++h<f;){var v=t[h],g=e[h];if(r)var y=c?r(g,v,h,e,t,u):r(v,g,h,t,e,u);if(void 0!==y){if(y)continue;d=!1;break}if(p){if(!J(e,function(t,e){if(!p.has(e)&&(v===t||n(v,t,r,o,u)))return p.add(e)})){d=!1;break}}else if(v!==g&&!n(v,g,r,o,u)){d=!1;break}}return u.delete(t),u.delete(e),d}function Vt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Jt(t,e){var n,r=null==(n=t)?void 0:n[e];return Et(r)?r:void 0}var Xt=function(t){return ct.call(t)};function Qt(t,e){return!!(e=null==e?f:e)&&("number"==typeof t||H.test(t))&&t>-1&&t%1==0&&t<e}function Rt(t,e){if(oe(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!le(t))||(A.test(t)||!U.test(t)||null!=e&&t in Object(e))}function Nt(t){return t==t&&!ce(t)}function Gt(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}(vt&&Xt(new vt(new ArrayBuffer(1)))!=C||gt&&Xt(new gt)!=y||yt&&Xt(yt.resolve())!=b||_t&&Xt(new _t)!=j||mt&&Xt(new mt)!=x)&&(Xt=function(t){var e=ct.call(t),n=e==m?t.constructor:void 0,r=n?te(n):void 0;if(r)switch(r){case wt:return C;case jt:return y;case Tt:return b;case Mt:return j;case xt:return x}return e});var qt=ee(function(t){var e;t=null==(e=t)?"":function(t){if("string"==typeof t)return t;if(le(t))return Ut?Ut.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}(e);var n=[];return O.test(t)&&n.push(""),t.replace(F,function(t,e,r,o){n.push(r?o.replace(S,"$1"):e||t)}),n});function Kt(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-c?"-0":e}function te(t){if(null!=t){try{return at.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function ee(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=t.apply(this,r);return n.cache=u.set(o,a),a};return n.cache=new(ee.Cache||Ft),n}function ne(t,e){return t===e||t!=t&&e!=e}function re(t){return fe(e=t)&&ue(e)&&it.call(t,"callee")&&(!ht.call(t,"callee")||ct.call(t)==l);var e}ee.Cache=Ft;var oe=Array.isArray;function ue(t){return null!=t&&ie(t.length)&&!ae(t)}function ae(t){var e=ce(t)?ct.call(t):"";return e==v||e==g}function ie(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function ce(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function fe(t){return!!t&&"object"==typeof t}function le(t){return"symbol"==typeof t||fe(t)&&ct.call(t)==M}var se,he=P?(se=P,function(t){return se(t)}):function(t){return fe(t)&&ie(t.length)&&!!k[ct.call(t)]};function de(t){return ue(t)?Ht(t):Wt(t)}function pe(t){return t}e.exports=function(t,e){return t&&t.length?function(t,e,n){var o=-1,u=B,a=t.length,i=!0,c=[],f=c;if(n)i=!1,u=V;else if(a>=r){var l=e?null:Pt(t);if(l)return G(l);i=!1,u=Q,f=new St}else f=e?[]:c;t:for(;++o<a;){var s=t[o],h=e?e(s):s;if(s=n||0!==s?s:0,i&&h==h){for(var d=f.length;d--;)if(f[d]===h)continue t;e&&f.push(h),c.push(s)}else u(f,h,n)||(f!==c&&f.push(h),c.push(s))}return c}(t,$t(e)):[]}}),Zt=function(t,e){return function(n){var r,o,u=t.drop,a=u.color,i=u.radius,c=u.date,f=u.onClick,l=u.onMouseOver,s=u.onMouseOut,h=n.selectAll(".drop").data((r=e,o=c,function(t){return Wt(t.data,function(t){return Math.round(r(o(t)))})}));h.enter().append("circle").classed("drop",!0).attr("r",i).attr("fill",a).on("click",f).on("mouseover",l).on("mouseout",s).merge(h).attr("cx",function(t){return e(c(t))}),h.exit().on("click",null).on("mouseover",null).on("mouseout",null).remove()}};return function(t){var e=t.d3,r=void 0===e?window.d3:e,o=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["d3"]),u=function t(e){var u,i=n(o||{},{locale:$t,metaballs:{blurDeviation:10,colorMatrix:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 50 -10"},bound:{format:(u=r).timeFormat("%d %B %Y")},axis:{formats:{milliseconds:"%L",seconds:":%S",minutes:"%I:%M",hours:"%I %p",days:"%a %d",weeks:"%b %d",months:"%B",year:"%Y"}},drop:{color:null,radius:5,date:function(t){return new Date(t)},onClick:function(){},onMouseOver:function(){},onMouseOut:function(){}},label:{padding:20,text:function(t){return t.name+" ("+t.data.length+")"},width:200},line:{color:function(t,e){return u.schemeCategory10[e]},height:40},margin:{top:20,right:10,bottom:20,left:10},range:{start:new Date((new Date).getTime()-31536e6),end:new Date},zoom:{onZoomStart:null,onZoom:null,onZoomEnd:null,minimumScale:0,maximumScale:1/0}}),c=i.zoom,f=i.drop,l=(f.onClick,f.onMouseOut,f.onMouseOver,i.metaballs),s=i.label.width,h=i.line.height,d=i.range,p=d.start,v=d.end,g=i.margin,y=e.node().clientWidth-g.left-g.right,_=r.scaleTime().domain([p,v]).range([0,y-s]);t._scale=_;var m=e.selectAll("svg").data(e.data());m.exit().remove();var b,w,j,T,M,x,D,C,U,A,O,F,S,Y,H,k,L,I=m.enter().append("svg").attr("width",y).classed("event-drop-chart",!0);c&&I.call((b=r,w=I,T=_,M=a,x=function(){return r.event},D=(j=i).label,C=D.width,U=D.padding,A=j.zoom,O=A.onZoomStart,F=A.onZoom,S=A.onZoomEnd,Y=A.minimumScale,H=A.maximumScale,(k=b.zoom().scaleExtent([Y,H])).on("zoom.start",O).on("zoom.end",S),k.on("zoom",function(t){var e,n,r,o,u,a,i,c,f=(e=x().transform,o=b,u=(n=C)+(r=U),a=e.x,i=e.y,c=e.k,o.zoomIdentity.translate(-u,0).translate(a,i).scale(c).translate(n+r,0)).rescaleX(T);w.call(M(j,f)),F&&F(t)}),k)),l&&I.call((L=i,function(t){var e=L.metaballs,n=e.blurDeviation,r=e.colorMatrix,o=t.append("defs").append("filter").attr("id","metaballs");o.append("feGaussianBlur").attr("in","SourceGraphic").attr("stdDeviation",n).attr("result","blur"),o.append("feColorMatrix").attr("in","blur").attr("mode","matrix").attr("values",r).attr("result","contrast"),o.append("feBlend").attr("in","SourceGraphic").attr("in2","contrast")})),I.merge(m).attr("height",function(t){return(t.length+1)*h+g.top+g.bottom}),I.append("g").classed("viewport",!0).attr("transform","translate("+g.left+","+g.top+")").call(a(i,_))};u.scale=function(){return u._scale},u.filteredData=function(){return u._filteredData};var a=function(t,e){return function(n){var o,a,i,c,f,l,s,h,d,p,v=e.domain().map(function(t){return new Date(t)}),g=n.data().map(function(t){return t.map(function(t){return t.fullData||(t.fullData=t.data),t.data=t.fullData.filter(function(t){return e=t.date,n=v,new Date(e)>=n[0]&&new Date(e)<=n[1];var e,n}),t})});u._scale=e,u._filteredData=g[0],n.data(g).call((d=t,p=e,function(t){var e=d.metaballs,n=d.label,r=n.text,o=n.padding,u=n.width,a=d.line,i=a.color,c=a.height,f=t.selectAll(".drop-line").data(function(t){return t}),l=f.enter().append("g").classed("drop-line",!0).attr("fill",i).attr("transform",function(t,e){return"translate(0, "+e*c+")"});l.append("line").classed("line-separator",!0).attr("x1",u).attr("x2","100%").attr("y1",function(){return c}).attr("y2",function(){return c}),l.append("text").attr("x",u-o).attr("y",c/2).attr("dy","0.25em").attr("text-anchor","end").text(r);var s=l.append("g").classed("drops",!0).attr("transform",function(){return"translate("+u+", "+c/2+")"}).call(Zt(d,p));s.append("rect").attr("x",0).attr("y",-d.line.height/2).attr("width",1).attr("height",d.line.height).attr("fill","transparent"),e&&s.style("filter","url(#metaballs)"),f.selectAll("text").text(r),f.selectAll(".drops").call(Zt(d,p)),f.exit().remove()})).call((s=t,h=e,function(t){var e=s.margin,n=s.bound.format,r=s.label.width,o=s.line.height,u=t.selectAll(".bound").data(function(t){return t}),a=t.data()[0].length;u.exit().remove(),u.enter().filter(function(t,e){return!e}).append("g").classed("bound",!0).classed("start",!0).attr("transform","translate("+r+", "+(o*a+e.top)+")").append("text").text(n(h.domain()[0])),u.enter().filter(function(t,e){return!e}).append("g").classed("bound",!0).classed("end",!0).attr("transform","translate("+r+", "+(o*a+e.top)+")").append("text").attr("x",h.range()[1]-e.right).attr("text-anchor","end").text(n(h.domain()[1])),u.selectAll(".bound.start text").text(n(h.domain()[0])),u.selectAll(".bound.end text").text(n(h.domain()[1]))})).call((o=r,i=e,c=(a=t).label.width,f=a.axis.formats,l=a.locale,o.timeFormatDefaultLocale(l),function(t){var e=t.selectAll(".axis").data(function(t){return t});e.exit().remove();var n=o.axisTop(i).tickFormat(function(t){return e=t,n=f,(r=o).timeSecond(e)<e?r.timeFormat(n.milliseconds)(e):r.timeMinute(e)<e?r.timeFormat(n.seconds)(e):r.timeHour(e)<e?r.timeFormat(n.minutes)(e):r.timeDay(e)<e?r.timeFormat(n.hours)(e):r.timeMonth(e)<e?r.timeWeek(e)<e?r.timeFormat(n.days)(e):r.timeFormat(n.weeks)(e):r.timeYear(e)<e?r.timeFormat(n.months)(e):r.timeFormat(n.year)(e);var e,n,r});e.enter().filter(function(t,e){return!e}).append("g").classed("axis",!0).attr("transform","translate("+c+",0)").call(n),e.call(n)}))}};return u.draw=a,u}}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "event-drops", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A time based / event series interactive visualization using d3.js. Use drag and zoom to navigate in time.", | ||
@@ -94,4 +94,4 @@ "main": "dist/index.js", | ||
"Ohad (https://github.com/osadan)", | ||
"Gildas Garcia (https://github.com/djhi)", | ||
"Robin Bressan (https://github.com/RobinBressan)", | ||
"Gildas Garcia (https://github.com/djhi)", | ||
"Tristan Newmann (https://github.com/twisty-n)", | ||
@@ -107,2 +107,3 @@ "Julien Demangeon (https://github.com/jdemangeon)", | ||
"Nathan Breit (https://github.com/nathanathan)", | ||
"Sam Lai (https://github.com/slai)", | ||
"Simon Hartcher (https://github.com/deevus)", | ||
@@ -109,0 +110,0 @@ "benmoufm (https://github.com/benmoufm)", |
@@ -40,3 +40,3 @@ # EventDrops | ||
<script src="https://unpkg.com/d3"></script> | ||
<script src="https://unpkg.com/event-drops/dist/eventDrops.js"></script> | ||
<script src="https://unpkg.com/event-drops/dist/index.js"></script> | ||
``` | ||
@@ -43,0 +43,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
296807