>>1,Ut=[["ary",Ct],["bind",mt],["bindKey",yt],["curry",_t],["curryRight",xt],["flip",Mt],["partial",wt],["partialRight",Et],["rearg",kt]],Wt="[object Arguments]",zt="[object Array]",Vt="[object AsyncFunction]",qt="[object Boolean]",Yt="[object Date]",Kt="[object DOMException]",Xt="[object Error]",Gt="[object Function]",$t="[object GeneratorFunction]",Zt="[object Map]",Qt="[object Number]",Jt="[object Null]",te="[object Object]",ee="[object Promise]",ne="[object Proxy]",re="[object RegExp]",oe="[object Set]",ie="[object String]",ae="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",fe="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",ve="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",_e="[object Uint32Array]",xe=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Me=RegExp(Ce.source),Oe=RegExp(ke.source),Te=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,Pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Re=/^\w*$/,De=/^\./,Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(je.source),Le=/^\s+|\s+$/g,Ie=/^\s+/,He=/\s+$/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ye=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,$e=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,tn=/['\n\r\u2028\u2029\\]/g,en="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",an=nn+rn+on,un="\\u2700-\\u27bf",sn="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",cn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fn="\\u2000-\\u206f",dn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pn="A-Z\\xc0-\\xd6\\xd8-\\xde",hn="\\ufe0e\\ufe0f",vn=ln+cn+fn+dn,gn="['’]",mn="["+en+"]",yn="["+vn+"]",bn="["+an+"]",_n="\\d+",xn="["+un+"]",wn="["+sn+"]",En="[^"+en+vn+_n+un+sn+pn+"]",Cn="\\ud83c[\\udffb-\\udfff]",kn="(?:"+bn+"|"+Cn+")",Mn="[^"+en+"]",On="(?:\\ud83c[\\udde6-\\uddff]){2}",Tn="[\\ud800-\\udbff][\\udc00-\\udfff]",An="["+pn+"]",Sn="\\u200d",Pn="(?:"+wn+"|"+En+")",Rn="(?:"+An+"|"+En+")",Dn="(?:"+gn+"(?:d|ll|m|re|s|t|ve))?",Nn="(?:"+gn+"(?:D|LL|M|RE|S|T|VE))?",jn=kn+"?",Fn="["+hn+"]?",Ln="(?:"+Sn+"(?:"+[Mn,On,Tn].join("|")+")"+Fn+jn+")*",In="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Hn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Bn=Fn+jn+Ln,Un="(?:"+[xn,On,Tn].join("|")+")"+Bn,Wn="(?:"+[Mn+bn+"?",bn,On,Tn,mn].join("|")+")",zn=RegExp(gn,"g"),Vn=RegExp(bn,"g"),qn=RegExp(Cn+"(?="+Cn+")|"+Wn+Bn,"g"),Yn=RegExp([An+"?"+wn+"+"+Dn+"(?="+[yn,An,"$"].join("|")+")",Rn+"+"+Nn+"(?="+[yn,An+Pn,"$"].join("|")+")",An+"?"+Pn+"+"+Dn,An+"+"+Nn,Hn,In,_n,Un].join("|"),"g"),Kn=RegExp("["+Sn+en+an+hn+"]"),Xn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Gn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$n=-1,Zn={};Zn[de]=Zn[pe]=Zn[he]=Zn[ve]=Zn[ge]=Zn[me]=Zn[ye]=Zn[be]=Zn[_e]=!0,Zn[Wt]=Zn[zt]=Zn[ce]=Zn[qt]=Zn[fe]=Zn[Yt]=Zn[Xt]=Zn[Gt]=Zn[Zt]=Zn[Qt]=Zn[te]=Zn[re]=Zn[oe]=Zn[ie]=Zn[se]=!1;var Qn={};Qn[Wt]=Qn[zt]=Qn[ce]=Qn[fe]=Qn[qt]=Qn[Yt]=Qn[de]=Qn[pe]=Qn[he]=Qn[ve]=Qn[ge]=Qn[Zt]=Qn[Qt]=Qn[te]=Qn[re]=Qn[oe]=Qn[ie]=Qn[ae]=Qn[me]=Qn[ye]=Qn[be]=Qn[_e]=!0,Qn[Xt]=Qn[Gt]=Qn[se]=!1;var Jn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},tr={"&":"&","<":"<",">":">",'"':""","'":"'"},er={"&":"&","<":"<",">":">",""":'"',"'":"'"},nr={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rr=parseFloat,or=parseInt,ir="object"==typeof t&&t&&t.Object===Object&&t,ar="object"==typeof self&&self&&self.Object===Object&&self,ur=ir||ar||Function("return this")(),sr="object"==typeof e&&e&&!e.nodeType&&e,lr=sr&&"object"==typeof o&&o&&!o.nodeType&&o,cr=lr&&lr.exports===sr,fr=cr&&ir.process,dr=function(){try{return fr&&fr.binding&&fr.binding("util")}catch(t){}}(),pr=dr&&dr.isArrayBuffer,hr=dr&&dr.isDate,vr=dr&&dr.isMap,gr=dr&&dr.isRegExp,mr=dr&&dr.isSet,yr=dr&&dr.isTypedArray,br=T("length"),_r=A(Jn),xr=A(tr),wr=A(er),Er=function t(e){function n(t){if(ls(t)&&!xd(t)&&!(t instanceof _)){if(t instanceof o)return t;if(_c.call(t,"__wrapped__"))return aa(t)}return new o(t)}function r(){}function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=ot}function _(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function A(){var t=new _(this.__wrapped__);return t.__actions__=Uo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Uo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Uo(this.__views__),t}function Z(){if(this.__filtered__){var t=new _(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function et(){var t=this.__wrapped__.value(),e=this.__dir__,n=xd(t),r=e<0,o=n?t.length:0,i=Si(0,o,this.__views__),a=i.start,u=i.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,d=0,p=$c(s,this.__takeCount__);if(!n||!r&&o==s&&p==s)return wo(t,this.__actions__);var h=[];t:for(;s--&&d-1}function fn(t,e){var n=this.__data__,r=Dn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Bn(t,e,n,r,o,i){var a,u=e&dt,s=e&pt,c=e&ht;if(n&&(a=o?n(t,r,o,i):n(t)),a!==ot)return a;if(!ss(t))return t;var f=xd(t);if(f){if(a=Di(t),!u)return Uo(t,a)}else{var d=Pf(t),p=d==Gt||d==$t;if(Ed(t))return Ao(t,u);if(d==te||d==Wt||p&&!o){if(a=s||p?{}:Ni(t),!u)return s?Vo(t,Fn(a,t)):zo(t,jn(a,t))}else{if(!Qn[d])return o?t:{};a=ji(t,d,Bn,u)}}i||(i=new xn);var h=i.get(t);if(h)return h;i.set(t,a);var v=c?s?wi:xi:s?qs:Vs,g=f?ot:v(t);return l(g||t,function(r,o){g&&(o=r,r=t[o]),Rn(a,o,Bn(r,e,n,o,t,i))}),a}function Un(t){var e=Vs(t);return function(n){return Wn(n,t,e)}}function Wn(t,e,n){var r=n.length;if(null==t)return!r;for(t=fc(t);r--;){var o=n[r],i=e[o],a=t[o];if(a===ot&&!(o in t)||!i(a))return!1}return!0}function qn(t,e,n){if("function"!=typeof t)throw new hc(st);return Nf(function(){t.apply(ot,n)},e)}function Yn(t,e,n,r){var o=-1,i=p,a=!0,u=t.length,s=[],l=e.length;if(!u)return s;n&&(e=v(e,j(n))),r?(i=h,a=!1):e.length>=at&&(i=L,a=!1,e=new yn(e));t:for(;++oo?0:o+n),r=r===ot||r>o?o:Ms(r),r<0&&(r+=o),r=n>r?0:Os(r);n0&&n(u)?e>1?er(u,e-1,n,r,o):g(o,u):r||(o[o.length]=u)}return o}function nr(t,e){return t&&xf(t,e,Vs)}function ir(t,e){return t&&wf(t,e,Vs)}function ar(t,e){return d(e,function(e){return is(t[e])})}function sr(t,e){e=Oo(e,t);for(var n=0,r=e.length;null!=t&&ne}function br(t,e){return null!=t&&_c.call(t,e)}function Er(t,e){return null!=t&&e in fc(t)}function kr(t,e,n){return t>=$c(e,n)&&t=120&&c.length>=120)?new yn(a&&c):ot}c=t[0];var f=-1,d=u[0];t:for(;++f-1;)u!==t&&Nc.call(u,s,1),Nc.call(t,s,1);return t}function eo(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Ii(o)?Nc.call(t,o,1):bo(t,o)}}return t}function no(t,e){return t+zc(Jc()*(e-t+1))}function ro(t,e,n,r){for(var o=-1,i=Gc(Wc((e-t)/(n||1)),0),a=ac(i);i--;)a[r?i:++o]=t,t+=n;return a}function oo(t,e){var n="";if(!t||e<1||e>jt)return n;do e%2&&(n+=t),e=zc(e/2),e&&(t+=t);while(e);return n}function io(t,e){return jf(Zi(t,e,Nl),t+"")}function ao(t){return Tn(rl(t))}function uo(t,e){var n=rl(t);return na(n,Hn(e,0,n.length))}function so(t,e,n,r){if(!ss(t))return t;e=Oo(e,t);for(var o=-1,i=e.length,a=i-1,u=t;null!=u&&++oo?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=ac(o);++r>>1,a=t[i];null!==a&&!_s(a)&&(n?a<=e:a=at){var l=e?null:Of(t);if(l)return G(l);a=!1,o=L,s=new yn}else s=e?[]:u;t:for(;++r=r?t:co(t,e,n)}function Ao(t,e){if(e)return t.slice();var n=t.length,r=Sc?Sc(n):new t.constructor(n);return t.copy(r),r}function So(t){var e=new t.constructor(t.byteLength);return new Ac(e).set(new Ac(t)),e}function Po(t,e){var n=e?So(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Ro(t,e,n){var r=e?n(Y(t),dt):Y(t);return m(r,i,new t.constructor)}function Do(t){var e=new t.constructor(t.source,Ye.exec(t));return e.lastIndex=t.lastIndex,e}function No(t,e,n){var r=e?n(G(t),dt):G(t);return m(r,a,new t.constructor)}function jo(t){return gf?fc(gf.call(t)):{}}function Fo(t,e){var n=e?So(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Lo(t,e){if(t!==e){var n=t!==ot,r=null===t,o=t===t,i=_s(t),a=e!==ot,u=null===e,s=e===e,l=_s(e);if(!u&&!l&&!i&&t>e||i&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!l&&t=u)return s;var l=n[r];return s*("desc"==l?-1:1)}}return t.index-e.index}function Ho(t,e,n,r){for(var o=-1,i=t.length,a=n.length,u=-1,s=e.length,l=Gc(i-a,0),c=ac(s+l),f=!r;++u1?n[o-1]:ot,a=o>2?n[2]:ot;for(i=t.length>3&&"function"==typeof i?(o--,i):ot,a&&Hi(n[0],n[1],a)&&(i=o<3?ot:i,o=1),e=fc(e);++r-1?o[i?e[a]:a]:ot}}function ei(t){return _i(function(e){var n=e.length,r=n,i=o.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new hc(st);if(i&&!u&&"wrapper"==Ei(a))var u=new o([],!0)}for(r=u?r:n;++r1&&y.reverse(),f&&su))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var c=-1,f=!0,d=n>?new yn:ot;for(i.set(t,e),i.set(e,t);++c1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Be,"{\n/* [wrapped with "+e+"] */\n")}function Li(t){return xd(t)||_d(t)||!!(jc&&t&&t[jc])}function Ii(t,e){return e=null==e?jt:e,!!e&&("number"==typeof t||Ze.test(t))&&t>-1&&t%1==0&&t0){if(++e>=At)return arguments[0]}else e=0;return t.apply(ot,arguments)}}function na(t,e){var n=-1,r=t.length,o=r-1;for(e=e===ot?r:e;++n=this.__values__.length,e=t?ot:this.__values__[this.__index__++];return{done:t,value:e}}function au(){return this}function uu(t){for(var e,n=this;n instanceof r;){var o=aa(n);o.__index__=0,o.__values__=ot,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e}function su(){var t=this.__wrapped__;if(t instanceof _){var e=t;return this.__actions__.length&&(e=new _(this)),e=e.reverse(),e.__actions__.push({func:nu,args:[Ra],thisArg:ot}),new o(e,this.__chain__)}return this.thru(Ra)}function lu(){return wo(this.__wrapped__,this.__actions__)}function cu(t,e,n){var r=xd(t)?f:Kn;return n&&Hi(t,e,n)&&(e=ot),r(t,ki(e,3))}function fu(t,e){var n=xd(t)?d:tr;return n(t,ki(e,3))}function du(t,e){return er(yu(t,e),1)}function pu(t,e){return er(yu(t,e),Nt)}function hu(t,e,n){return n=n===ot?1:Ms(n),er(yu(t,e),n)}function vu(t,e){var n=xd(t)?l:bf;return n(t,ki(e,3))}function gu(t,e){var n=xd(t)?c:_f;return n(t,ki(e,3))}function mu(t,e,n,r){t=$u(t)?t:rl(t),n=n&&!r?Ms(n):0;var o=t.length;return n<0&&(n=Gc(o+n,0)),bs(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&C(t,e,n)>-1}function yu(t,e){var n=xd(t)?v:Vr;return n(t,ki(e,3))}function bu(t,e,n,r){return null==t?[]:(xd(e)||(e=null==e?[]:[e]),n=r?ot:n,xd(n)||(n=null==n?[]:[n]),$r(t,e,n))}function _u(t,e,n){var r=xd(t)?m:S,o=arguments.length<3;return r(t,ki(e,4),n,o,bf)}function xu(t,e,n){var r=xd(t)?y:S,o=arguments.length<3;return r(t,ki(e,4),n,o,_f)}function wu(t,e){var n=xd(t)?d:tr;return n(t,Fu(ki(e,3)))}function Eu(t){var e=xd(t)?Tn:ao;return e(t)}function Cu(t,e,n){e=(n?Hi(t,e,n):e===ot)?1:Ms(e);var r=xd(t)?An:uo;return r(t,e)}function ku(t){var e=xd(t)?Sn:lo;return e(t)}function Mu(t){if(null==t)return 0;if($u(t))return bs(t)?J(t):t.length;var e=Pf(t);return e==Zt||e==oe?t.size:Ur(t).length}function Ou(t,e,n){var r=xd(t)?b:fo;return n&&Hi(t,e,n)&&(e=ot),r(t,ki(e,3))}function Tu(t,e){if("function"!=typeof e)throw new hc(st);return t=Ms(t),function(){if(--t<1)return e.apply(this,arguments)}}function Au(t,e,n){return e=n?ot:e,e=t&&null==e?t.length:e,pi(t,Ct,ot,ot,ot,ot,e)}function Su(t,e){var n;if("function"!=typeof e)throw new hc(st);return t=Ms(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=ot),n}}function Pu(t,e,n){e=n?ot:e;var r=pi(t,_t,ot,ot,ot,ot,ot,e);return r.placeholder=Pu.placeholder,r}function Ru(t,e,n){e=n?ot:e;var r=pi(t,xt,ot,ot,ot,ot,ot,e);return r.placeholder=Ru.placeholder,r}function Du(t,e,n){function r(e){var n=d,r=p;return d=p=ot,y=e,v=t.apply(r,n)}function o(t){return y=t,g=Nf(u,e),b?r(t):v}function i(t){var n=t-m,r=t-y,o=e-n;return _?$c(o,h-r):o}function a(t){var n=t-m,r=t-y;return m===ot||n>=e||n<0||_&&r>=h}function u(){var t=ld();return a(t)?s(t):void(g=Nf(u,i(t)))}function s(t){return g=ot,x&&d?r(t):(d=p=ot,v)}function l(){g!==ot&&Mf(g),y=0,d=m=p=g=ot}function c(){return g===ot?v:s(ld())}function f(){var t=ld(),n=a(t);if(d=arguments,p=this,m=t,n){if(g===ot)return o(m);
-if(_)return g=Nf(u,e),r(m)}return g===ot&&(g=Nf(u,e)),v}var d,p,h,v,g,m,y=0,b=!1,_=!1,x=!0;if("function"!=typeof t)throw new hc(st);return e=Ts(e)||0,ss(n)&&(b=!!n.leading,_="maxWait"in n,h=_?Gc(Ts(n.maxWait)||0,e):h,x="trailing"in n?!!n.trailing:x),f.cancel=l,f.flush=c,f}function Nu(t){return pi(t,Mt)}function ju(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new hc(st);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ju.Cache||dn),n}function Fu(t){if("function"!=typeof t)throw new hc(st);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Lu(t){return Su(2,t)}function Iu(t,e){if("function"!=typeof t)throw new hc(st);return e=e===ot?e:Ms(e),io(t,e)}function Hu(t,e){if("function"!=typeof t)throw new hc(st);return e=null==e?0:Gc(Ms(e),0),io(function(n){var r=n[e],o=To(n,0,e);return r&&g(o,r),u(t,this,o)})}function Bu(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new hc(st);return ss(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Du(t,e,{leading:r,maxWait:e,trailing:o})}function Uu(t){return Au(t,1)}function Wu(t,e){return vd(Mo(e),t)}function zu(){if(!arguments.length)return[];var t=arguments[0];return xd(t)?t:[t]}function Vu(t){return Bn(t,ht)}function qu(t,e){return e="function"==typeof e?e:ot,Bn(t,ht,e)}function Yu(t){return Bn(t,dt|ht)}function Ku(t,e){return e="function"==typeof e?e:ot,Bn(t,dt|ht,e)}function Xu(t,e){return null==e||Wn(t,e,Vs(e))}function Gu(t,e){return t===e||t!==t&&e!==e}function $u(t){return null!=t&&us(t.length)&&!is(t)}function Zu(t){return ls(t)&&$u(t)}function Qu(t){return t===!0||t===!1||ls(t)&&fr(t)==qt}function Ju(t){return ls(t)&&1===t.nodeType&&!ms(t)}function ts(t){if(null==t)return!0;if($u(t)&&(xd(t)||"string"==typeof t||"function"==typeof t.splice||Ed(t)||Td(t)||_d(t)))return!t.length;var e=Pf(t);if(e==Zt||e==oe)return!t.size;if(Vi(t))return!Ur(t).length;for(var n in t)if(_c.call(t,n))return!1;return!0}function es(t,e){return Rr(t,e)}function ns(t,e,n){n="function"==typeof n?n:ot;var r=n?n(t,e):ot;return r===ot?Rr(t,e,ot,n):!!r}function rs(t){if(!ls(t))return!1;var e=fr(t);return e==Xt||e==Kt||"string"==typeof t.message&&"string"==typeof t.name&&!ms(t)}function os(t){return"number"==typeof t&&Yc(t)}function is(t){if(!ss(t))return!1;var e=fr(t);return e==Gt||e==$t||e==Vt||e==ne}function as(t){return"number"==typeof t&&t==Ms(t)}function us(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=jt}function ss(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ls(t){return null!=t&&"object"==typeof t}function cs(t,e){return t===e||jr(t,e,Oi(e))}function fs(t,e,n){return n="function"==typeof n?n:ot,jr(t,e,Oi(e),n)}function ds(t){return gs(t)&&t!=+t}function ps(t){if(Rf(t))throw new sc(ut);return Fr(t)}function hs(t){return null===t}function vs(t){return null==t}function gs(t){return"number"==typeof t||ls(t)&&fr(t)==Qt}function ms(t){if(!ls(t)||fr(t)!=te)return!1;var e=Pc(t);if(null===e)return!0;var n=_c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&bc.call(n)==Cc}function ys(t){return as(t)&&t>=-jt&&t<=jt}function bs(t){return"string"==typeof t||!xd(t)&&ls(t)&&fr(t)==ie}function _s(t){return"symbol"==typeof t||ls(t)&&fr(t)==ae}function xs(t){return t===ot}function ws(t){return ls(t)&&Pf(t)==se}function Es(t){return ls(t)&&fr(t)==le}function Cs(t){if(!t)return[];if($u(t))return bs(t)?tt(t):Uo(t);if(Fc&&t[Fc])return q(t[Fc]());var e=Pf(t),n=e==Zt?Y:e==oe?G:rl;return n(t)}function ks(t){if(!t)return 0===t?t:0;if(t=Ts(t),t===Nt||t===-Nt){var e=t<0?-1:1;return e*Ft}return t===t?t:0}function Ms(t){var e=ks(t),n=e%1;return e===e?n?e-n:e:0}function Os(t){return t?Hn(Ms(t),0,It):0}function Ts(t){if("number"==typeof t)return t;if(_s(t))return Lt;if(ss(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ss(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Le,"");var n=Xe.test(t);return n||$e.test(t)?or(t.slice(2),n?2:8):Ke.test(t)?Lt:+t}function As(t){return Wo(t,qs(t))}function Ss(t){return t?Hn(Ms(t),-jt,jt):0===t?t:0}function Ps(t){return null==t?"":mo(t)}function Rs(t,e){var n=yf(t);return null==e?n:jn(n,e)}function Ds(t,e){return w(t,ki(e,3),nr)}function Ns(t,e){return w(t,ki(e,3),ir)}function js(t,e){return null==t?t:xf(t,ki(e,3),qs)}function Fs(t,e){return null==t?t:wf(t,ki(e,3),qs)}function Ls(t,e){return t&&nr(t,ki(e,3))}function Is(t,e){return t&&ir(t,ki(e,3))}function Hs(t){return null==t?[]:ar(t,Vs(t))}function Bs(t){return null==t?[]:ar(t,qs(t))}function Us(t,e,n){var r=null==t?ot:sr(t,e);return r===ot?n:r}function Ws(t,e){return null!=t&&Ri(t,e,br)}function zs(t,e){return null!=t&&Ri(t,e,Er)}function Vs(t){return $u(t)?On(t):Ur(t)}function qs(t){return $u(t)?On(t,!0):Wr(t)}function Ys(t,e){var n={};return e=ki(e,3),nr(t,function(t,r,o){Ln(n,e(t,r,o),t)}),n}function Ks(t,e){var n={};return e=ki(e,3),nr(t,function(t,r,o){Ln(n,r,e(t,r,o))}),n}function Xs(t,e){return Gs(t,Fu(ki(e)))}function Gs(t,e){if(null==t)return{};var n=v(wi(t),function(t){return[t]});return e=ki(e),Qr(t,n,function(t,n){return e(t,n[0])})}function $s(t,e,n){e=Oo(e,t);var r=-1,o=e.length;for(o||(o=1,t=ot);++re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=Jc();return $c(t+o*(e-t+rr("1e-"+((o+"").length-1))),e)}return no(t,e)}function sl(t){return tp(Ps(t).toLowerCase())}function ll(t){return t=Ps(t),t&&t.replace(Qe,_r).replace(Vn,"")}function cl(t,e,n){t=Ps(t),e=mo(e);var r=t.length;n=n===ot?r:Hn(Ms(n),0,r);var o=n;return n-=e.length,n>=0&&t.slice(n,o)==e}function fl(t){return t=Ps(t),t&&Oe.test(t)?t.replace(ke,xr):t}function dl(t){return t=Ps(t),t&&Fe.test(t)?t.replace(je,"\\$&"):t}function pl(t,e,n){t=Ps(t),e=Ms(e);var r=e?J(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return ai(zc(o),n)+t+ai(Wc(o),n)}function hl(t,e,n){t=Ps(t),e=Ms(e);var r=e?J(t):0;return e&&r>>0)?(t=Ps(t),t&&("string"==typeof e||null!=e&&!Md(e))&&(e=mo(e),!e&&z(t))?To(tt(t),0,n):t.split(e,n)):[]}function _l(t,e,n){return t=Ps(t),n=null==n?0:Hn(Ms(n),0,t.length),e=mo(e),t.slice(n,n+e.length)==e}function xl(t,e,r){var o=n.templateSettings;r&&Hi(t,e,r)&&(e=ot),t=Ps(t),e=Dd({},e,o,hi);var i,a,u=Dd({},e.imports,o.imports,hi),s=Vs(u),l=F(u,s),c=0,f=e.interpolate||Je,d="__p += '",p=dc((e.escape||Je).source+"|"+f.source+"|"+(f===Se?qe:Je).source+"|"+(e.evaluate||Je).source+"|$","g"),h="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++$n+"]")+"\n";t.replace(p,function(e,n,r,o,u,s){return r||(r=o),d+=t.slice(c,s).replace(tn,U),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),u&&(a=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e}),d+="';\n";var v=e.variable;v||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(xe,""):d).replace(we,"$1").replace(Ee,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=ep(function(){return lc(s,h+"return "+d).apply(ot,l)});if(g.source=d,rs(g))throw g;return g}function wl(t){return Ps(t).toLowerCase()}function El(t){return Ps(t).toUpperCase()}function Cl(t,e,n){if(t=Ps(t),t&&(n||e===ot))return t.replace(Le,"");if(!t||!(e=mo(e)))return t;var r=tt(t),o=tt(e),i=I(r,o),a=H(r,o)+1;return To(r,i,a).join("")}function kl(t,e,n){if(t=Ps(t),t&&(n||e===ot))return t.replace(He,"");if(!t||!(e=mo(e)))return t;var r=tt(t),o=H(r,tt(e))+1;return To(r,0,o).join("")}function Ml(t,e,n){if(t=Ps(t),t&&(n||e===ot))return t.replace(Ie,"");if(!t||!(e=mo(e)))return t;var r=tt(t),o=I(r,tt(e));return To(r,o).join("")}function Ol(t,e){var n=Ot,r=Tt;if(ss(e)){var o="separator"in e?e.separator:o;n="length"in e?Ms(e.length):n,r="omission"in e?mo(e.omission):r}t=Ps(t);var i=t.length;if(z(t)){var a=tt(t);i=a.length}if(n>=i)return t;var u=n-J(r);if(u<1)return r;var s=a?To(a,0,u).join(""):t.slice(0,u);if(o===ot)return s+r;if(a&&(u+=s.length-u),Md(o)){if(t.slice(u).search(o)){var l,c=s;for(o.global||(o=dc(o.source,Ps(Ye.exec(o))+"g")),o.lastIndex=0;l=o.exec(c);)var f=l.index;s=s.slice(0,f===ot?u:f)}}else if(t.indexOf(mo(o),u)!=u){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r}function Tl(t){return t=Ps(t),t&&Me.test(t)?t.replace(Ce,wr):t}function Al(t,e,n){return t=Ps(t),e=n?ot:e,e===ot?V(t)?rt(t):x(t):t.match(e)||[]}function Sl(t){var e=null==t?0:t.length,n=ki();return t=e?v(t,function(t){if("function"!=typeof t[1])throw new hc(st);return[n(t[0]),t[1]]}):[],io(function(n){for(var r=-1;++rjt)return[];var n=It,r=$c(t,It);e=ki(e),t-=It;for(var o=D(r,e);++n1?t[e-1]:ot;return n="function"==typeof n?(t.pop(),n):ot,Za(t,n)}),td=_i(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return In(e,t)};return!(e>1||this.__actions__.length)&&r instanceof _&&Ii(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:nu,args:[i],thisArg:ot}),new o(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(ot),t})):this.thru(i)}),ed=qo(function(t,e,n){_c.call(t,n)?++t[n]:Ln(t,n,1)}),nd=ti(va),rd=ti(ga),od=qo(function(t,e,n){_c.call(t,n)?t[n].push(e):Ln(t,n,[e])}),id=io(function(t,e,n){var r=-1,o="function"==typeof e,i=$u(t)?ac(t.length):[];return bf(t,function(t){i[++r]=o?u(e,t,n):Tr(t,e,n)}),i}),ad=qo(function(t,e,n){Ln(t,n,e)}),ud=qo(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),sd=io(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Hi(t,e[0],e[1])?e=[]:n>2&&Hi(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,er(e,1),[])}),ld=Bc||function(){return ur.Date.now()},cd=io(function(t,e,n){var r=mt;if(n.length){var o=X(n,Ci(cd));r|=wt}return pi(t,r,e,n,o)}),fd=io(function(t,e,n){var r=mt|yt;if(n.length){var o=X(n,Ci(fd));r|=wt}return pi(e,r,t,n,o)}),dd=io(function(t,e){return qn(t,1,e)}),pd=io(function(t,e,n){return qn(t,Ts(e)||0,n)});ju.Cache=dn;var hd=kf(function(t,e){e=1==e.length&&xd(e[0])?v(e[0],j(ki())):v(er(e,1),j(ki()));var n=e.length;return io(function(r){for(var o=-1,i=$c(r.length,n);++o=e}),_d=Ar(function(){return arguments}())?Ar:function(t){return ls(t)&&_c.call(t,"callee")&&!Dc.call(t,"callee")},xd=ac.isArray,wd=pr?j(pr):Sr,Ed=qc||ql,Cd=hr?j(hr):Pr,kd=vr?j(vr):Nr,Md=gr?j(gr):Lr,Od=mr?j(mr):Ir,Td=yr?j(yr):Hr,Ad=li(zr),Sd=li(function(t,e){return t<=e}),Pd=Yo(function(t,e){if(Vi(e)||$u(e))return void Wo(e,Vs(e),t);for(var n in e)_c.call(e,n)&&Rn(t,n,e[n])}),Rd=Yo(function(t,e){Wo(e,qs(e),t)}),Dd=Yo(function(t,e,n,r){Wo(e,qs(e),t,r)}),Nd=Yo(function(t,e,n,r){Wo(e,Vs(e),t,r)}),jd=_i(In),Fd=io(function(t){return t.push(ot,hi),u(Dd,ot,t)}),Ld=io(function(t){return t.push(ot,vi),u(Wd,ot,t)}),Id=ri(function(t,e,n){t[e]=n},Rl(Nl)),Hd=ri(function(t,e,n){_c.call(t,e)?t[e].push(n):t[e]=[n]},ki),Bd=io(Tr),Ud=Yo(function(t,e,n){Kr(t,e,n)}),Wd=Yo(function(t,e,n,r){Kr(t,e,n,r)}),zd=_i(function(t,e){var n={};if(null==t)return n;var r=!1;e=v(e,function(e){return e=Oo(e,t),r||(r=e.length>1),e}),Wo(t,wi(t),n),r&&(n=Bn(n,dt|pt|ht,gi));for(var o=e.length;o--;)bo(n,e[o]);return n}),Vd=_i(function(t,e){return null==t?{}:Zr(t,e)}),qd=di(Vs),Yd=di(qs),Kd=Zo(function(t,e,n){return e=e.toLowerCase(),t+(n?sl(e):e)}),Xd=Zo(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Gd=Zo(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),$d=$o("toLowerCase"),Zd=Zo(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Qd=Zo(function(t,e,n){return t+(n?" ":"")+tp(e)}),Jd=Zo(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),tp=$o("toUpperCase"),ep=io(function(t,e){try{return u(t,ot,e)}catch(t){return rs(t)?t:new sc(t)}}),np=_i(function(t,e){return l(e,function(e){e=ra(e),Ln(t,e,cd(t[e],t))}),t}),rp=ei(),op=ei(!0),ip=io(function(t,e){return function(n){return Tr(n,t,e)}}),ap=io(function(t,e){return function(n){return Tr(t,n,e)}}),up=ii(v),sp=ii(f),lp=ii(b),cp=si(),fp=si(!0),dp=oi(function(t,e){return t+e},0),pp=fi("ceil"),hp=oi(function(t,e){return t/e},1),vp=fi("floor"),gp=oi(function(t,e){return t*e},1),mp=fi("round"),yp=oi(function(t,e){return t-e},0);return n.after=Tu,n.ary=Au,n.assign=Pd,n.assignIn=Rd,n.assignInWith=Dd,n.assignWith=Nd,n.at=jd,n.before=Su,n.bind=cd,n.bindAll=np,n.bindKey=fd,n.castArray=zu,n.chain=tu,n.chunk=ua,n.compact=sa,n.concat=la,n.cond=Sl,n.conforms=Pl,n.constant=Rl,n.countBy=ed,n.create=Rs,n.curry=Pu,n.curryRight=Ru,n.debounce=Du,n.defaults=Fd,n.defaultsDeep=Ld,n.defer=dd,n.delay=pd,n.difference=Lf,n.differenceBy=If,n.differenceWith=Hf,n.drop=ca,n.dropRight=fa,n.dropRightWhile=da,n.dropWhile=pa,n.fill=ha,n.filter=fu,n.flatMap=du,n.flatMapDeep=pu,n.flatMapDepth=hu,n.flatten=ma,n.flattenDeep=ya,n.flattenDepth=ba,n.flip=Nu,n.flow=rp,n.flowRight=op,n.fromPairs=_a,n.functions=Hs,n.functionsIn=Bs,n.groupBy=od,n.initial=Ea,n.intersection=Bf,n.intersectionBy=Uf,n.intersectionWith=Wf,n.invert=Id,n.invertBy=Hd,n.invokeMap=id,n.iteratee=jl,n.keyBy=ad,n.keys=Vs,n.keysIn=qs,n.map=yu,n.mapKeys=Ys,n.mapValues=Ks,n.matches=Fl,n.matchesProperty=Ll,n.memoize=ju,n.merge=Ud,n.mergeWith=Wd,n.method=ip,n.methodOf=ap,n.mixin=Il,n.negate=Fu,n.nthArg=Ul,n.omit=zd,n.omitBy=Xs,n.once=Lu,n.orderBy=bu,n.over=up,n.overArgs=hd,n.overEvery=sp,n.overSome=lp,n.partial=vd,n.partialRight=gd,n.partition=ud,n.pick=Vd,n.pickBy=Gs,n.property=Wl,n.propertyOf=zl,n.pull=zf,n.pullAll=Ta,n.pullAllBy=Aa,n.pullAllWith=Sa,n.pullAt=Vf,n.range=cp,n.rangeRight=fp,n.rearg=md,n.reject=wu,n.remove=Pa,n.rest=Iu,n.reverse=Ra,n.sampleSize=Cu,n.set=Zs,n.setWith=Qs,n.shuffle=ku,n.slice=Da,n.sortBy=sd,n.sortedUniq=Ba,n.sortedUniqBy=Ua,n.split=bl,n.spread=Hu,n.tail=Wa,n.take=za,n.takeRight=Va,n.takeRightWhile=qa,n.takeWhile=Ya,n.tap=eu,n.throttle=Bu,n.thru=nu,n.toArray=Cs,n.toPairs=qd,n.toPairsIn=Yd,n.toPath=$l,n.toPlainObject=As,n.transform=Js,n.unary=Uu,n.union=qf,n.unionBy=Yf,n.unionWith=Kf,n.uniq=Ka,n.uniqBy=Xa,n.uniqWith=Ga,n.unset=tl,n.unzip=$a,n.unzipWith=Za,n.update=el,n.updateWith=nl,n.values=rl,n.valuesIn=ol,n.without=Xf,n.words=Al,n.wrap=Wu,n.xor=Gf,n.xorBy=$f,n.xorWith=Zf,n.zip=Qf,n.zipObject=Qa,n.zipObjectDeep=Ja,n.zipWith=Jf,n.entries=qd,n.entriesIn=Yd,n.extend=Rd,n.extendWith=Dd,Il(n,n),n.add=dp,n.attempt=ep,n.camelCase=Kd,n.capitalize=sl,n.ceil=pp,n.clamp=il,n.clone=Vu,n.cloneDeep=Yu,n.cloneDeepWith=Ku,n.cloneWith=qu,n.conformsTo=Xu,n.deburr=ll,n.defaultTo=Dl,n.divide=hp,n.endsWith=cl,n.eq=Gu,n.escape=fl,n.escapeRegExp=dl,n.every=cu,n.find=nd,n.findIndex=va,n.findKey=Ds,n.findLast=rd,n.findLastIndex=ga,n.findLastKey=Ns,n.floor=vp,n.forEach=vu,n.forEachRight=gu,n.forIn=js,n.forInRight=Fs,n.forOwn=Ls,n.forOwnRight=Is,n.get=Us,n.gt=yd,n.gte=bd,n.has=Ws,n.hasIn=zs,n.head=xa,n.identity=Nl,n.includes=mu,n.indexOf=wa,n.inRange=al,n.invoke=Bd,n.isArguments=_d,n.isArray=xd,n.isArrayBuffer=wd,n.isArrayLike=$u,n.isArrayLikeObject=Zu,n.isBoolean=Qu,n.isBuffer=Ed,n.isDate=Cd,n.isElement=Ju,n.isEmpty=ts,n.isEqual=es,n.isEqualWith=ns,n.isError=rs,n.isFinite=os,n.isFunction=is,n.isInteger=as,n.isLength=us,n.isMap=kd,n.isMatch=cs,n.isMatchWith=fs,n.isNaN=ds,n.isNative=ps,n.isNil=vs,n.isNull=hs,n.isNumber=gs,n.isObject=ss,n.isObjectLike=ls,n.isPlainObject=ms,n.isRegExp=Md,n.isSafeInteger=ys,n.isSet=Od,n.isString=bs,n.isSymbol=_s,n.isTypedArray=Td,n.isUndefined=xs,n.isWeakMap=ws,n.isWeakSet=Es,n.join=Ca,n.kebabCase=Xd,n.last=ka,n.lastIndexOf=Ma,n.lowerCase=Gd,n.lowerFirst=$d,n.lt=Ad,n.lte=Sd,n.max=Ql,n.maxBy=Jl,n.mean=tc,n.meanBy=ec,n.min=nc,n.minBy=rc,n.stubArray=Vl,n.stubFalse=ql,n.stubObject=Yl,n.stubString=Kl,n.stubTrue=Xl,n.multiply=gp,n.nth=Oa,n.noConflict=Hl,n.noop=Bl,n.now=ld,n.pad=pl,n.padEnd=hl,n.padStart=vl,n.parseInt=gl,n.random=ul,n.reduce=_u,n.reduceRight=xu,n.repeat=ml,n.replace=yl,n.result=$s,n.round=mp,n.runInContext=t,n.sample=Eu,n.size=Mu,n.snakeCase=Zd,n.some=Ou,n.sortedIndex=Na,n.sortedIndexBy=ja,n.sortedIndexOf=Fa,n.sortedLastIndex=La,n.sortedLastIndexBy=Ia,n.sortedLastIndexOf=Ha,n.startCase=Qd,n.startsWith=_l,n.subtract=yp,n.sum=oc,n.sumBy=ic,n.template=xl,n.times=Gl,n.toFinite=ks,n.toInteger=Ms,n.toLength=Os,n.toLower=wl,n.toNumber=Ts,n.toSafeInteger=Ss,n.toString=Ps,n.toUpper=El,n.trim=Cl,n.trimEnd=kl,n.trimStart=Ml,n.truncate=Ol,n.unescape=Tl,n.uniqueId=Zl,n.upperCase=Jd,n.upperFirst=tp,n.each=vu,n.eachRight=gu,n.first=xa,Il(n,function(){var t={};return nr(n,function(e,r){_c.call(n.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),n.VERSION=it,l(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){n[t].placeholder=n}),l(["drop","take"],function(t,e){_.prototype[t]=function(n){n=n===ot?1:Gc(Ms(n),0);var r=this.__filtered__&&!e?new _(this):this.clone();return r.__filtered__?r.__takeCount__=$c(n,r.__takeCount__):r.__views__.push({size:$c(n,It),type:t+(r.__dir__<0?"Right":"")}),r},_.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),l(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==Pt||n==Dt;_.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),l(["head","last"],function(t,e){var n="take"+(e?"Right":"");_.prototype[t]=function(){return this[n](1).value()[0]}}),l(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");_.prototype[t]=function(){return this.__filtered__?new _(this):this[n](1)}}),_.prototype.compact=function(){return this.filter(Nl)},_.prototype.find=function(t){return this.filter(t).head()},_.prototype.findLast=function(t){return this.reverse().find(t)},_.prototype.invokeMap=io(function(t,e){return"function"==typeof t?new _(this):this.map(function(n){return Tr(n,t,e)})}),_.prototype.reject=function(t){return this.filter(Fu(ki(t)))},_.prototype.slice=function(t,e){t=Ms(t);var n=this;return n.__filtered__&&(t>0||e<0)?new _(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==ot&&(e=Ms(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},_.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},_.prototype.toArray=function(){return this.take(It)},nr(_.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),a=n[i?"take"+("last"==e?"Right":""):e],u=i||/^find/.test(e);a&&(n.prototype[e]=function(){var e=this.__wrapped__,s=i?[1]:arguments,l=e instanceof _,c=s[0],f=l||xd(e),d=function(t){var e=a.apply(n,g([t],s));return i&&p?e[0]:e};f&&r&&"function"==typeof c&&1!=c.length&&(l=f=!1);var p=this.__chain__,h=!!this.__actions__.length,v=u&&!p,m=l&&!h;if(!u&&f){e=m?e:new _(this);var y=t.apply(e,s);return y.__actions__.push({func:nu,args:[d],thisArg:ot}),new o(y,p)}return v&&m?t.apply(this,s):(y=this.thru(d),v?i?y.value()[0]:y.value():y)})}),l(["pop","push","shift","sort","splice","unshift"],function(t){var e=vc[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",o=/^(?:pop|shift)$/.test(t);n.prototype[t]=function(){var t=arguments;if(o&&!this.__chain__){var n=this.value();return e.apply(xd(n)?n:[],t)}return this[r](function(n){return e.apply(xd(n)?n:[],t)})}}),nr(_.prototype,function(t,e){var r=n[e];if(r){var o=r.name+"",i=lf[o]||(lf[o]=[]);i.push({name:e,func:r})}}),lf[ni(ot,yt).name]=[{name:"wrapper",func:ot}],_.prototype.clone=A,_.prototype.reverse=Z,_.prototype.value=et,n.prototype.at=td,n.prototype.chain=ru,n.prototype.commit=ou,n.prototype.next=iu,n.prototype.plant=uu,n.prototype.reverse=su,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=lu,n.prototype.first=n.prototype.head,Fc&&(n.prototype[Fc]=au),n},Cr=Er();ur._=Cr,r=function(){return Cr}.call(e,n,e,o),!(r!==ot&&(o.exports=r))}).call(this)}).call(e,function(){return this}(),n(315)(t))},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,v)||(t[v]=p++,f[t[v]]={}),f[t[v]]}var o,i=n(5),a=n(66),u=n(239),s=n(122),l=n(271),c=n(77),f={},d=!1,p=0,h={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),g=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=t}},setEnabled:function(t){g.ReactEventListener&&g.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],u=0;u]/;t.exports=r},function(t,e,n){"use strict";var r,o=n(9),i=n(65),a=/^[ \r\n\t\f]/,u=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,s=n(73),l=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML=""+e+" ";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&u.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return"string"==typeof t?t:"object"==typeof t?JSON.stringify(t):t||0===t?String(t):""}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;eu.bottom||a.tope.offsetHeight&&!(e.scrollHeight-e.offsetHeight-e.scrollTop)&&this.props.onMenuScrollToBottom()}},handleRequired:function(t,e){return!t||(e?0===t.length:0===Object.keys(t).length)},getOptionLabel:function(t){return t[this.props.labelKey]},getValueArray:function(t,e){var n=this,r="object"==typeof e?e:this.props;if(r.multi){if("string"==typeof t&&(t=t.split(r.delimiter)),!Array.isArray(t)){if(null===t||void 0===t)return[];t=[t]}return t.map(function(t){return n.expandValue(t,r)}).filter(function(t){return t})}var o=this.expandValue(t,r);return o?[o]:[]},expandValue:function(t,e){if("string"!=typeof t&&"number"!=typeof t)return t;var n=e.options,r=e.valueKey;if(n)for(var o=0;o0?n-=1:n=e.length-1;else if("start"===t)n=0;else if("end"===t)n=e.length-1;else if("page_up"===t){var o=n-this.props.pageSize;n=o<0?0:o}else if("page_down"===t){var o=n+this.props.pageSize;n=o>e.length-1?e.length-1:o}n===-1&&(n=0),this.setState({focusedIndex:e[n].index,focusedOption:e[n].option})}},getFocusedOption:function(){return this._focusedOption},getInputValue:function(){return this.state.inputValue},selectFocusedOption:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)},renderLoading:function(){if(this.props.isLoading)return l.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},l.default.createElement("span",{className:"Select-loading"}))},renderValue:function(t,e){var n=this,r=this.props.valueRenderer||this.getOptionLabel,o=this.props.valueComponent;if(!t.length)return this.state.inputValue?null:l.default.createElement("div",{className:"Select-placeholder"},this.props.placeholder);var i=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?t.map(function(t,e){return l.default.createElement(o,{id:n._instancePrefix+"-value-"+e,instancePrefix:n._instancePrefix,disabled:n.props.disabled||t.clearableValue===!1,key:"value-"+e+"-"+t[n.props.valueKey],onClick:i,onRemove:n.removeValue,value:t},r(t,e),l.default.createElement("span",{className:"Select-aria-only"}," "))}):this.state.inputValue?void 0:(e&&(i=null),l.default.createElement(o,{id:this._instancePrefix+"-value-item",disabled:this.props.disabled,instancePrefix:this._instancePrefix,onClick:i,value:t[0]},r(t[0])))},renderInput:function(t,e){var n=this;if(this.props.inputRenderer)return this.props.inputRenderer();var r,a=(0,v.default)("Select-input",this.props.inputProps.className),s=!!this.state.isOpen,c=(0,v.default)((r={},i(r,this._instancePrefix+"-list",s),i(r,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),r)),f=u({},this.props.inputProps,{role:"combobox","aria-expanded":""+s,"aria-owns":c,"aria-haspopup":""+s,"aria-activedescendant":s?this._instancePrefix+"-option-"+e:this._instancePrefix+"-value","aria-labelledby":this.props["aria-labelledby"],"aria-label":this.props["aria-label"],className:a,tabIndex:this.props.tabIndex,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(t){return n.input=t},required:this.state.required,value:this.state.inputValue});if(this.props.disabled||!this.props.searchable){var d=this.props.inputProps,h=(d.inputClassName,o(d,["inputClassName"]));return l.default.createElement("div",u({},h,{role:"combobox","aria-expanded":s,"aria-owns":s?this._instancePrefix+"-list":this._instancePrefix+"-value","aria-activedescendant":s?this._instancePrefix+"-option-"+e:this._instancePrefix+"-value",className:a,tabIndex:this.props.tabIndex||0,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(t){return n.input=t},"aria-readonly":""+!!this.props.disabled,style:{border:0,width:1,display:"inline-block"}}))}return this.props.autosize?l.default.createElement(p.default,u({},f,{minWidth:"5px"})):l.default.createElement("div",{className:a},l.default.createElement("input",f))},renderClear:function(){if(this.props.clearable&&this.props.value&&0!==this.props.value&&(!this.props.multi||this.props.value.length)&&!this.props.disabled&&!this.props.isLoading)return l.default.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEndClearValue},l.default.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}}))},renderArrow:function(){return l.default.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},l.default.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}))},filterOptions:function t(e){var n=this.state.inputValue,r=this.props.options||[];if(this.props.filterOptions){var t="function"==typeof this.props.filterOptions?this.props.filterOptions:m.default;return t(r,n,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,valueKey:this.props.valueKey})}return r},renderMenu:function(t,e,n){return t&&t.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:t,selectValue:this.selectValue,valueArray:e,valueKey:this.props.valueKey}):this.props.noResultsText?l.default.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null},renderHiddenField:function(t){var e=this;if(this.props.name){if(this.props.joinValues){var n=t.map(function(t){return a(t[e.props.valueKey])}).join(this.props.delimiter);return l.default.createElement("input",{type:"hidden",ref:function(t){return e.value=t},name:this.props.name,value:n,disabled:this.props.disabled})}return t.map(function(t,n){return l.default.createElement("input",{key:"hidden."+n,type:"hidden",ref:"value"+n,name:e.props.name,value:a(t[e.props.valueKey]),disabled:e.props.disabled})})}},getFocusableOptionIndex:function(t){var e=this._visibleOptions;if(!e.length)return null;var n=this.state.focusedOption||t;if(n&&!n.disabled){var r=e.indexOf(n);if(r!==-1)return r}for(var o=0;o-1?void 0:a("96",t),!l.plugins[n]){e.extractEvents?void 0:a("97",t),l.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:a("98",i,t)}}}function o(t,e,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){l.registrationNameModules[t]?a("100",t):void 0,l.registrationNameModules[t]=e,l.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(4),u=(n(1),null),s={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){u?a("101"):void 0,u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]?a("102",n):void 0,s[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null;
-if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){u=null;for(var t in s)s.hasOwnProperty(t)&&delete s[t];l.plugins.length=0;var e=l.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=m.getNodeFromInstance(r),e?v.invokeGuardedCallbackWithCatch(o,n,t):v.invokeGuardedCallback(o,n,t),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=u.get(t);if(!n){return null}return n}var a=n(4),u=(n(18),n(40)),s=(n(13),n(15)),l=(n(1),n(2),{isMounted:function(t){var e=u.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){l.validateCallback(e,n);var o=i(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],void r(o)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e,n){var o=i(t,"replaceState");o&&(o._pendingStateQueue=[e],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t?a("122",e,o(t)):void 0}});t.exports=l},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t};t.exports=n},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function r(t){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e,n){"use strict";function r(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(9);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var o=typeof t,i=typeof e;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){"use strict";var r=(n(5),n(11)),o=(n(2),r);t.exports=o},function(t,e){"use strict";function n(t,e,n){function r(){return a=!0,u?void(l=[].concat(Array.prototype.slice.call(arguments))):void n.apply(this,arguments)}function o(){if(!a&&(s=!0,!u)){for(u=!0;!a&&i=t&&s&&(a=!0,n()))}}var i=0,a=!1,u=!1,s=!1,l=void 0;o()}function r(t,e,n){function r(t,e,r){a||(e?(a=!0,n(e)):(i[t]=r,a=++u===o,a&&n(null,i)))}var o=t.length,i=[];if(0===o)return n(null,i);var a=!1,u=0;t.forEach(function(t,n){e(t,n,function(t,e){r(n,t,e)})})}e.__esModule=!0,e.loopAsync=n,e.mapAsync=r},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.router=e.routes=e.route=e.components=e.component=e.location=e.history=e.falsy=e.locationShape=e.routerShape=void 0;var i=n(3),a=n(55),u=(o(a),n(24)),s=r(u),l=n(7),c=(o(l),i.PropTypes.func),f=i.PropTypes.object,d=i.PropTypes.shape,p=i.PropTypes.string,h=e.routerShape=d({push:c.isRequired,replace:c.isRequired,go:c.isRequired,goBack:c.isRequired,goForward:c.isRequired,setRouteLeaveHook:c.isRequired,isActive:c.isRequired}),v=e.locationShape=d({pathname:p.isRequired,search:p.isRequired,state:f,action:p.isRequired,key:p}),g=e.falsy=s.falsy,m=e.history=s.history,y=e.location=v,b=e.component=s.component,_=e.components=s.components,x=e.route=s.route,w=(e.routes=s.routes,e.router=h),E={falsy:g,history:m,location:y,component:b,components:_,route:x,router:w};e.default=E},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!0;return!1}function i(t,e){function n(e){var n=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=void 0;return n&&n!==!0||null!==r?(e={pathname:e,query:n},o=r||!1):(e=t.createLocation(e),o=n),(0,d.default)(e,o,b.location,b.routes,b.params)}function r(t,n){_&&_.location===t?i(_,n):(0,g.default)(e,t,function(e,r){e?n(e):r?i(a({},r,{location:t}),n):n()})}function i(t,e){function n(n,o){return n||o?r(n,o):void(0,h.default)(t,function(n,r){n?e(n):e(null,null,b=a({},t,{components:r}))})}function r(t,n){t?e(t):e(null,n)}var o=(0,l.default)(b,t),i=o.leaveRoutes,u=o.changeRoutes,s=o.enterRoutes;(0,c.runLeaveHooks)(i,b),i.filter(function(t){return s.indexOf(t)===-1}).forEach(v),(0,c.runChangeHooks)(u,b,t,function(e,o){return e||o?r(e,o):void(0,c.runEnterHooks)(s,t,n)})}function u(t){var e=arguments.length<=1||void 0===arguments[1]||arguments[1];return t.__id__||e&&(t.__id__=x++)}function s(t){return t.reduce(function(t,e){return t.push.apply(t,w[u(e)]),t},[])}function f(t,n){(0,g.default)(e,t,function(e,r){if(null==r)return void n();_=a({},r,{location:t});for(var o=s((0,l.default)(b,_).leaveRoutes),i=void 0,u=0,c=o.length;null==i&&u=0&&e._disposeHandlers.splice(n,1)},check:u,apply:f,status:function(t){return t?void x.push(t):w},addStatusHandler:function(t){x.push(t)},removeStatusHandler:function(t){var e=x.indexOf(t);e>=0&&x.splice(e,1)},data:b[t]};return e}function i(t){w=t;for(var e=0;e0;){var i=r.pop(),t=T[i];if(t&&!t.hot._selfAccepted){if(t.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var a=0;a=0||(s.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),o(n[u],[i])):(delete n[u],e.push(u),r.push(u)))}}}return[e,n]}function o(t,e){for(var n=0;n0;){var f=x.pop(),E=T[f];if(E){for(var C={},k=E.hot._disposeHandlers,M=0;M=0&&A.parents.splice(S,1)}}}}for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f))for(var E=T[f],P=u[f],M=0;M=0&&E.children.splice(S,1)}i("apply"),y=g;for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(t[f]=l[f]);var D=null;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){for(var E=T[f],P=u[f],N=[],m=0;m=0||N.push(O)}for(var m=0;m 0) {\n var _ret = function () {\n var fields = rows[0];\n var records = rows.slice(1).map(function (row) {\n return zip(fields, row);\n });\n\n return {\n v: {\n fields: fields,\n records: records\n }\n };\n }();\n\n if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === \"object\") return _ret.v;\n } else {\n return {\n records: rows\n };\n }\n};\n\nCSV.normalizeDialectOptions = function (options) {\n // note lower case compared to CSV DDF\n var out = {\n delimiter: ',',\n doublequote: true,\n lineterminator: '\\n',\n quotechar: '\"',\n skipinitialspace: true,\n skipinitialrows: 0\n };\n for (var key in options) {\n if (key === 'trim') {\n out.skipinitialspace = options.trim;\n } else {\n out[key.toLowerCase()] = options[key];\n }\n }\n return out;\n};\n\n// ## parse\n//\n// For docs see the README\n//\n// Heavily based on uselesscode's JS CSV parser (MIT Licensed):\n// http://www.uselesscode.org/javascript/csv/\nCSV.parse = function (s, dialect) {\n // Get rid of any trailing \\n\n s = chomp(s);\n\n var options = CSV.normalizeDialectOptions(dialect);\n\n var cur = '',\n // The character we are currently processing.\n inQuote = false,\n fieldQuoted = false,\n field = '',\n // Buffer for building up the current field\n row = [],\n out = [],\n i,\n processField;\n\n processField = function processField(field) {\n if (fieldQuoted !== true) {\n // If field is empty set to null\n if (field === '') {\n field = null;\n // If the field was not quoted and we are trimming fields, trim it\n } else if (options.skipinitialspace === true) {\n field = trim(field);\n }\n\n // Convert unquoted numbers to their appropriate types\n if (rxIsInt.test(field)) {\n field = parseInt(field, 10);\n } else if (rxIsFloat.test(field)) {\n field = parseFloat(field, 10);\n }\n }\n return field;\n };\n\n for (i = 0; i < s.length; i += 1) {\n cur = s.charAt(i);\n\n // If we are at a EOF or EOR\n if (inQuote === false && (cur === options.delimiter || cur === '\\n')) {\n field = processField(field);\n // Add the current field to the current row\n row.push(field);\n // If this is EOR append row to output and flush row\n if (cur === '\\n') {\n out.push(row);\n row = [];\n }\n // Flush the field buffer\n field = '';\n fieldQuoted = false;\n } else {\n // If it's not a quotechar, add it to the field buffer\n if (cur !== options.quotechar) {\n field += cur;\n } else {\n if (!inQuote) {\n // We are not in a quote, start a quote\n inQuote = true;\n fieldQuoted = true;\n } else {\n // Next char is quotechar, this is an escaped quotechar\n if (s.charAt(i + 1) === options.quotechar) {\n field += options.quotechar;\n // Skip the next char\n i += 1;\n } else {\n // It's not escaping, so end quote\n inQuote = false;\n }\n }\n }\n }\n }\n\n // Add the last field\n field = processField(field);\n row.push(field);\n out.push(row);\n\n // Expose the ability to discard initial rows\n if (options.skipinitialrows) out = out.slice(options.skipinitialrows);\n\n return out;\n};\n\nCSV.objectToArray = function (dataToSerialize) {\n var a = [];\n var fieldNames = [];\n var ii;\n var jj;\n\n for (ii = 0; ii < dataToSerialize.fields.length; ii++) {\n fieldNames.push(dataToSerialize.fields[ii].id);\n }\n a.push(fieldNames);\n for (ii = 0; ii < dataToSerialize.records.length; ii++) {\n var tmp = [];\n var record = dataToSerialize.records[ii];\n for (jj = 0; jj < fieldNames.length; jj++) {\n tmp.push(record[fieldNames[jj]]);\n }\n a.push(tmp);\n }\n return a;\n};\n\n// ## serialize\n//\n// See README for docs\n//\n// Heavily based on uselesscode's JS CSV serializer (MIT Licensed):\n// http://www.uselesscode.org/javascript/csv/\nCSV.serialize = function (dataToSerialize, dialect) {\n var a = null;\n if (dataToSerialize instanceof Array) {\n a = dataToSerialize;\n } else {\n a = CSV.objectToArray(dataToSerialize);\n }\n var options = CSV.normalizeDialectOptions(dialect);\n\n var cur = '',\n // The character we are currently processing.\n field = '',\n // Buffer for building up the current field\n row = '',\n out = '',\n i,\n j,\n processField;\n\n processField = function processField(field) {\n if (field === null) {\n // If field is null set to empty string\n field = '';\n } else if (typeof field === 'string' && rxNeedsQuoting.test(field)) {\n if (options.doublequote) {\n field = field.replace(/\"/g, '\"\"');\n }\n // Convert string to delimited string\n field = options.quotechar + field + options.quotechar;\n } else if (typeof field === 'number') {\n // Convert number to string\n field = field.toString(10);\n }\n\n return field;\n };\n\n for (i = 0; i < a.length; i += 1) {\n cur = a[i];\n\n for (j = 0; j < cur.length; j += 1) {\n field = processField(cur[j]);\n // If this is EOR append row to output and flush row\n if (j === cur.length - 1) {\n row += field;\n out += row + '\\n';\n row = '';\n } else {\n // Add the current field to the current row\n row += field + options.delimiter;\n }\n // Flush the field buffer\n field = '';\n }\n }\n\n return out;\n};\n\nvar rxIsInt = /^\\d+$/,\n rxIsFloat = /^\\d*\\.\\d+$|^\\d+\\.\\d*$/,\n\n// If a string has leading or trailing space,\n// contains a comma double quote or a newline\n// it needs to be quoted in CSV output\nrxNeedsQuoting = /^\\s|\\s$|,|\"|\\n/,\n trim = function () {\n // Fx 3.1 has a native trim function, it's about 10x faster, use it if it exists\n if (String.prototype.trim) {\n return function (s) {\n return s.trim();\n };\n } else {\n return function (s) {\n return s.replace(/^\\s*/, '').replace(/\\s*$/, '');\n };\n }\n}();\n\nfunction chomp(s) {\n if (s.charAt(s.length - 1) !== '\\n') {\n // Does not end with \\n, just return string\n return s;\n } else {\n // Remove the \\n\n return s.substring(0, s.length - 1);\n }\n}\n\nfunction zip(list, values) {\n if (list == null) return {};\n var result = {};\n for (var i = 0, l = list.length; i < l; i++) {\n if (values) {\n result[list[i]] = values[i];\n } else {\n result[list[i][0]] = list[i][1];\n }\n }\n return result;\n}\n\nexports.default = CSV;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/csv.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/csv.js?")}])})},function(module,exports,__webpack_require__){!function(t,e){module.exports=e()}(this,function(){return function(t){function e(t){var e=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.src=d.p+""+t+"."+y+".hot-update.js",e.appendChild(n)}function n(t){if("undefined"==typeof XMLHttpRequest)return t(new Error("No browser support"));try{var e=new XMLHttpRequest,n=d.p+""+y+".hot-update.json";e.open("GET",n,!0),e.timeout=1e4,e.send(null)}catch(e){return t(e)}e.onreadystatechange=function(){if(4===e.readyState)if(0===e.status)t(new Error("Manifest request to "+n+" timed out."));else if(404===e.status)t();else if(200!==e.status&&304!==e.status)t(new Error("Manifest request to "+n+" failed."));else{try{var r=JSON.parse(e.responseText)}catch(e){return void t(e)}t(null,r)}}}function r(t){function e(t,e){"ready"===w&&i("prepare"),C++,d.e(t,function(){function n(){C--,"prepare"===w&&(k[t]||l(t),0===C&&0===E&&c())}try{e.call(null,r)}finally{n()}})}var n=T[t];if(!n)return d;var r=function(e){return n.hot.active?T[e]?(T[e].parents.indexOf(t)<0&&T[e].parents.push(t),n.children.indexOf(e)<0&&n.children.push(e)):_=[t]:(console.warn("[HMR] unexpected require("+e+") from disposed module "+t),_=[]),d(e)};for(var o in d)Object.prototype.hasOwnProperty.call(d,o)&&(Object.defineProperty?Object.defineProperty(r,o,function(t){return{configurable:!0,enumerable:!0,get:function(){return d[t]},set:function(e){d[t]=e}}}(o)):r[o]=d[o]);return Object.defineProperty?Object.defineProperty(r,"e",{enumerable:!0,value:e}):r.e=e,r}function o(t){var e={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],active:!0,accept:function(t,n){if("undefined"==typeof t)e._selfAccepted=!0;else if("function"==typeof t)e._selfAccepted=t;else if("object"==typeof t)for(var r=0;r=0&&e._disposeHandlers.splice(n,1)},check:u,apply:f,status:function(t){return t?void x.push(t):w},addStatusHandler:function(t){x.push(t)},removeStatusHandler:function(t){var e=x.indexOf(t);e>=0&&x.splice(e,1)},data:b[t]};return e}function i(t){w=t;for(var e=0;e0;){var i=r.pop(),t=T[i];if(t&&!t.hot._selfAccepted){if(t.hot._selfDeclined)return new Error("Aborted because of self decline: "+i);if(0===i)return;for(var a=0;a=0||(s.hot._acceptedDependencies[i]?(n[u]||(n[u]=[]),o(n[u],[i])):(delete n[u],e.push(u),r.push(u)))}}}return[e,n]}function o(t,e){for(var n=0;n0;){var f=x.pop(),E=T[f];if(E){for(var C={},k=E.hot._disposeHandlers,M=0;M=0&&A.parents.splice(S,1)}}}}for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f))for(var E=T[f],P=u[f],M=0;M=0&&E.children.splice(S,1)}i("apply"),y=g;for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(t[f]=l[f]);var D=null;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){for(var E=T[f],P=u[f],N=[],m=0;m=0||N.push(O)}for(var m=0;m 0) {\n var _tmp = queryObj.sort.map(function (sortObj) {\n return sortObj.field + ' ' + (sortObj.order || '');\n });\n actualQuery.sort = _tmp.join(',');\n }\n\n if (queryObj.filters && queryObj.filters.length > 0) {\n _.each(queryObj.filters, function (filter) {\n if (filter.type === \"term\") {\n actualQuery.filters[filter.field] = filter.term;\n }\n });\n }\n return actualQuery;\n};\n\nDKAN.query = function (queryObj, dataset) {\n return new Promise(function (resolve, reject) {\n var wrapper = void 0;\n var out = void 0;\n if (dataset.endpoint) {\n wrapper = new DataStore(dataset.endpoint);\n } else {\n out = DKAN._parseCkanResourceUrl(dataset.url);\n dataset.id = out.resource_id;\n wrapper = DKAN.DataStore(out.endpoint);\n }\n var actualQuery = DKAN._normalizeQuery(queryObj, dataset);\n var request = wrapper.search(actualQuery);\n request.then(function (response) {\n return response.json();\n }).then(function (results) {\n out = {\n total: results.result.total,\n hits: results.result.records\n };\n resolve(out);\n }).catch(function (err) {\n reject(err);\n });\n });\n};\n\nDKAN._parseCkanResourceUrl = function (url) {\n var parts = url.split('/');\n var len = parts.length;\n return {\n resource_id: parts[len - 1],\n endpoint: parts.slice(0, [len - 4]).join('/') + '/api'\n };\n};\n\nvar DataStore = function () {\n function DataStore(endpoint) {\n _classCallCheck(this, DataStore);\n\n this.endpoint = endpoint || API_ENDPOINT;\n }\n\n _createClass(DataStore, [{\n key: 'search',\n value: function search(data) {\n var filters = '';\n if (data.filters) {\n for (var filter in data.filters) {\n filters += '&filters[' + filter + ']=' + data.filters[filter];\n }\n }\n var searchUrl = this.endpoint + '/3/action/datastore_search?=' + this._objToQuery(data) + filters;\n return fetch(searchUrl);\n }\n }, {\n key: '_objToQuery',\n value: function _objToQuery(obj) {\n var str = '';\n for (var p in obj) {\n if (obj.hasOwnProperty(p)) {\n if (_typeof(obj[p]) !== 'object') {\n str += '&' + p + '=' + obj[p];\n }\n }\n }\n return str;\n }\n }]);\n\n return DataStore;\n}();\n\nexports.default = DKAN;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/dkan.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/dkan.js?")}])})},function(t,e,n){"use strict";var r=n(11),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},function(t,e){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e){"use strict";function n(t){if(t=t||("undefined"!=typeof document?document:void 0),"undefined"==typeof t)return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=n},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(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}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=Object.assign||function(t){for(var e=1;e0,"fixedDataTableRowLayout/columnsShadow":r.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":t>0,"public/fixedDataTableRow/columnsShadow":r.props.scrollLeft>0}),n={left:t,height:r.props.height};return c.default.createElement("div",{className:e,style:n})},r._renderColumnsRightShadow=function(t){if(Math.ceil(r.props.scrollLeft+r.props.width)=0&&0===window.sessionStorage.length)return;throw t}}function a(t){var e=void 0;try{e=window.sessionStorage.getItem(o(t))}catch(t){if(t.name===c)return null}if(e)try{return JSON.parse(e)}catch(t){}return null}e.__esModule=!0,e.saveState=i,e.readState=a;var u=n(14),s=(r(u),"@@History/"),l=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],c="SecurityError"},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){function e(t){return s.canUseDOM?void 0:u.default(!1),n.listen(t)}var n=f.default(i({getUserConfirmation:l.getUserConfirmation},t,{go:l.go}));return i({},n,{listen:e})}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e1?e-1:0),i=1;i1)for(var n=1;n=0?e:(0,i.get)(t.root,e)}}]),t}(),s=u;e.default=s,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(a,"reactEls","/Users/Mariano/Proyectos/docker/react-dash/src/utils/Registry.js"),__REACT_HOT_LOADER__.register(u,"Registry","/Users/Mariano/Proyectos/docker/react-dash/src/utils/Registry.js"),__REACT_HOT_LOADER__.register(s,"default","/Users/Mariano/Proyectos/docker/react-dash/src/utils/Registry.js"))}()},function(t,e){t.exports=n(48)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e0){var e=g.default.handle(this.props.stateHandlers,this.props.data,this.state.dashboardData);t=u(t,e)}return t}},{key:"getCardVariables",value:function(){var t=this,e={};return b.forEach(function(n){e[n]=t.state[n]||t.props[n]}),e}},{key:"addResizeListener",value:function(){var t=this;this._resizeHandler=function(e){var n=(0,c.findDOMNode)(t).getBoundingClientRect().width;t.setState({componentWidth:n}),t.onResize(e)},window.addEventListener("resize",this._resizeHandler)}},{key:"onResize",value:function(){}},{key:"onAction",value:function(){}}]),e}(l.Component),x=_;e.default=x,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(b,"CARD_VARS","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseComponent.js"),__REACT_HOT_LOADER__.register(_,"BaseComponent","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseComponent.js"),__REACT_HOT_LOADER__.register(x,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseComponent.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:5,e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",r=0;r=0)&&t.replace("fid","")}Object.defineProperty(e,"__esModule",{value:!0});var f=Object.assign||function(t){for(var e=1;e=0&&(t=!0)}),t}},{key:"loadOptions",value:function(t){var e=/\{\{(.+)\}\}/;if(this.props.url)return fetch(this.props.url.replace(e,t)).then(function(t){return t.json()}).then(function(t){return{options:t}});if(this.props.options)return Promise.resolve({options:this.props.options,isLoading:!1});if(this.props.data&&this.props.data[0]){var n=this.props.data[0];return Promise.resolve({options:n,isLoading:!1})}return Promise.resolve({options:[],isLoading:!1})}}]),e}(p.default)),v=h;e.default=v,f.default.set("BaseFilter",h),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(h,"BaseFilter","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseFilter.js"),__REACT_HOT_LOADER__.register(v,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/BaseFilter.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),i=r(o),a=n(54),u=r(a),s=u.default,l=s;e.default=l,i.default.set("ReactSelect",u.default),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(s,"ReactSelect","/Users/Mariano/Proyectos/docker/react-dash/src/components/ReactSelect.js"),__REACT_HOT_LOADER__.register(l,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/ReactSelect.js"))}()},function(t,e){t.exports=n(83)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[],n=t,r=this.state.appliedFilters||{},o=p.DataHandler.handle.call(this,n,e,this.state.data,{e:"foo"},r);return o}},{key:"getUrlFilters",value:function(){var t=this,e=this.props.location.query,n={};return Object.keys(e).forEach(function(r){var o={};o.field=r,o.value=e[r].split(","),o.vals=o.value.map(function(t){return isNaN(t)||parseInt(t),t}),n=t.getUpdatedAppliedFilters(o,n)}),n}},{key:"getDashboardData",value:function(){console.log("Warning. getDashboardData should be defined in your application which extends this dashboard component. getDashboardData should return an object with dataKeys. See @@LINK")}},{key:"getChildData",value:function(t){var e=[];return t.dataHandlers?e=this._applyDataHandlers(t.dataHandlers,t.data):t.data&&t.data.length>0&&(e=t.data),e}},{key:"getFilters",value:function(t,e){return Object.keys(e).map(function(n){var r=e[n];if(r&&r.willFilter&&r.willFilter.length>0){var o=r.willFilter.indexOf(t);if(o>=0)return e[n]}})}},{key:"getFilterByField",value:function(t){var e=void 0;return this.props.regions.forEach(function(n){return n.children?n.children.forEach(function(n){n.field===t&&(e=n)}):void(n.elements&&Object.keys(n.elements).forEach(function(r){n.elements[r].forEach(function(n){n.field===t&&(e=n)})}))}),e}},{key:"onAction",value:function(t){switch(t.actionType){case"AUTOCOMPLETE_CHANGE":var e=u({},this.state.appliedFilters),n=this.getUpdatedAppliedFilters(t,e),r=(0,v.appliedFiltersToQueryString)(n),o=this.props.basePath||"";this.props.doFilterRouting!==!1&&d.browserHistory.push(o+"?"+r),this.setState({appliedFilters:n,isFetching:!0}),this.getDashboardData(n);break;case"MULTICHECKBOX_CHANGE":break;default:console.warn("Actions should define an actionType. See docs @@LINK")}}},{key:"getUpdatedAppliedFilters",value:function(t,e){var n=t.field,r=this.getFilterByField(n),o=u(t,r);return(0,h.isArray)(o.value)&&o.value.length>0?(o.vals=o.value.map(function(t){return isNaN(t)?isNaN(t.value)?t.value:parseInt(t.value):parseInt(t)}),e[n]=o):o.value&&o.value.value?(isNaN(o.value.value)||(o.value.value=parseInt(o.value.value)),o.value=[o.value],e[n]=o):o.value&&"string"==typeof o.value||"number"==typeof o.value?(o.value=[o.value],e[n]=o):delete e[n],e}},{key:"updateProps",value:function(t){var e=f.default.isValidElement(t)?t.props:t,n=[];return this.props.doFilterRouting&&(n=(0,h.pick)(this.props,["history","location","params","route","routeParams","routes"])),e.data=this.getChildData(t)||[],e.globalData=u({},this.state.data||{}),e.appliedFilters=u({},this.state.appliedFilters||{}),e.vars=u({},this.props.vars||{}),e.routeParams=n,e}},{key:"getRegion",value:function(t){var e=this;return f.default.createElement("div",{id:t.id,className:t.className},t.children.map(function(t,n){var r=e.updateProps(t);t.isFetching=e.state.isFetching;var o=f.default.isValidElement(t)?t:f.default.createElement(p.Registry.get(t.type),r);return o}))}},{key:"getAccordionRegion",value:function(t){var e=this;return f.default.createElement("div",{id:t.id,className:t.className,key:(0,v.makeKey)()},f.default.createElement(m.default,{key:(0,v.makeKey)()},t.children.map(function(t,n){var r=e.updateProps(t),o=f.default.isValidElement(t)?t:f.default.createElement(p.Registry.get(t.type),r);return f.default.createElement("div",{"data-trigger":t.dataTrigger,key:"wrap_"+n},o)})))}},{key:"getRegions",value:function(){var t=this,e=void 0;return e=this.props.regions?this.props.regions.map(function(e,n){if(e.multi){var r=t.getChildData(e);e.key=n,e.children=e.elements[r]}return e.accordion?t.getAccordionRegion(e):t.getRegion(e)}):this.props.children}},{key:"render",value:function(){return f.default.createElement("div",{className:"container-fluid",key:"dashboard-container"},f.default.createElement("link",{rel:"stylesheet",type:"text/css",href:this.props.faPath}),f.default.createElement("h1",{className:"dashboard-title"},this.props.title),this.getRegions())}}]),e}(p.BaseComponent),b=y;e.default=b,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(y,"Dashboard","/Users/Mariano/Proyectos/docker/react-dash/src/components/Dashboard.js"),__REACT_HOT_LOADER__.register(b,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Dashboard.js"))}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51),o=new r.Dispatcher,i=o;e.default=i,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(o,"EventDispatcher","/Users/Mariano/Proyectos/docker/react-dash/src/dispatcher/EventDispatcher.js"),__REACT_HOT_LOADER__.register(i,"default","/Users/Mariano/Proyectos/docker/react-dash/src/dispatcher/EventDispatcher.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(n,r){var o=e.size||t.records.length,i=e.from||0,a=t.records;a=t._applyFilters(a,e),a=t._applyFreeTextQuery(a,e);var u={total:a.length,hits:a.slice(i,i+o)};n(u)})}},{key:"_applyFreeTextQuery",value:function(t,e){var n=this;if(e.q){var r=e.q.split(" "),o=r.map(function(t){return new RegExp(t.toLowerCase())});t=t.filter(function(t){var e=!0;return o.forEach(function(r){var o=!1;n.fields.forEach(function(e){var n=t[e.id];n=null!==n&&void 0!==n?n.toString():"",o=o||r.test(n.toLowerCase())}),e=e&&o}),e})}return t}},{key:"_applyFilters",value:function(t,e){function n(t){var e=c[t.field].type||"string";return l[e]}function r(t,e){var r=n(e),o=r(t[e.field]),i=r(e.term);return o===i}function o(t,e){var r=n(e),o=r(t[e.field]),i=r(e.terms).split(",");return i.indexOf(o)>=0}function a(t,e){var r=(0,i.isUndefined)(e.from)||null===e.from||""===e.from,o=(0,i.isUndefined)(e.to)||null===e.to||""===e.to,a=n(e),u=a(t[e.field]),s=a(r?"":e.from),l=a(o?"":e.to);return!!(r&&o||""!==u)&&(r||u>=s)&&(o||u<=l)}var u=e.filters||[],s={term:r,terms:o,range:a},l={integer:function(t){return parseFloat(t,10)},float:function(t){return parseFloat(t,10)},number:function(t){return parseFloat(t,10)},string:function(t){return t.toString()},date:function(t){return Date.parse(t)},datetime:function(t){return new Date(t).valueOf()}},c=this.fields.reduce(function(t,e){return t[e.id]=e,t},{});return t.filter(function(t){var e=u.map(function(e){return s[e.type](t,e)});return(0,i.every)(e,i.identity)})}}]),t}(),u=a;e.default=u,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(a,"MemoryStore","/Users/Mariano/Proyectos/docker/react-dash/src/models/MemoryStore.js"),__REACT_HOT_LOADER__.register(u,"default","/Users/Mariano/Proyectos/docker/react-dash/src/models/MemoryStore.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],"string"==typeof t?(0,E.format)(t):(0,w.isFunction)(t)?t:void 0}},{key:"getFormattedSettings",value:function(){var t=this,e=u({},this.props.settings);if(e.color&&!Array.isArray(e.color)){var n=void 0;n=this.props.data.length&&this.props.data[0].values?(0,w.map)((0,w.flatten)((0,w.map)(this.props.data,"values")),e.x):(0,w.uniq)((0,w.map)(this.props.data,e.x)),e.color=(0,w.values)((0,w.pick)(e.color,n))}return Object.keys(e).forEach(function(n){e[n].tickFormat&&(e[n].tickFormat=t.getFormatter(e[n].tickFormat))}),e}},{key:"render",value:function(){var t=u({},this.props),e=u({datum:this.props.data,key:this.state.key},this.getFormattedSettings());return t.header=this.state.header||t.header,t.footer=this.state.footer||t.footer,c.default.createElement(y.default,u({key:"card_"+this.state.key},this.state.cardVariables),c.default.createElement(h.default,e))}}]),e}(g.default),k=C;e.default=k,d.default.set("Chart",C),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(C,"Chart","/Users/Mariano/Proyectos/docker/react-dash/src/components/Chart.js"),__REACT_HOT_LOADER__.register(k,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Chart.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;nr?(a=Math.max(r-o,1),u=n+i>r?r:n+i):(a=n-i,u=n+i),(0,x.range)(a,u+1)}},{key:"getPageNumbers",value:function(t,e,n){var r=this;if(this.getTotalPages()&&!(this.getTotalPages()<2))return this.getPages(t,e,n).map(function(t){return h.default.createElement("li",{className:t==r.state.currentPage?"active":"",key:"page-"+t},h.default.createElement("a",{onClick:(0,x.partialRight)(r._onPageChange,t).bind(r),href:"#"},t))})}},{key:"getLastPage",value:function(t,e){var n=getTotalPages(t,e);return n[n.length-1]}},{key:"getTotalPages",value:function(t,e){return Math.ceil(e/t)}},{key:"onResize",value:function(){var t=this.table,e=t.offsetWidth,n=t.offsetHeight;this.setState({gridWidth:e,gridHeight:n})}},{key:"_onPageChange",value:function(t,e,n,r){t.preventDefault();var o=this.state.rowsPerPage,i=u({},this.state.queryObj,{size:o,from:r*o-o});this.query(i),this.setState({currentPage:r,queryObj:i})}},{key:"_onFilterChange",value:function(t){var e=this.state.rowsPerPage,n=u({},this.state.queryObj,{size:e,from:this.state.currentPage*e-e,q:t.target.value});this.query(n),this.setState({currentPage:1})}},{key:"_onRowsPerPageChange",value:function(t){var e=u({},this.state.queryObj);e.size=Number(t.target.value),e.from=0,this.query(e),this.setState({rowsPerPage:Number(t.target.value),currentPage:1})}},{key:"render",value:function(){var t=this,e=this.state,n=e.gridWidth,r=(e.gridHeight,this.props.data[0]||[]),o=(0,d.getProp)("settings.table",this.props),i=(0,d.getProp)("settings.columns",this.props),a=(0,d.getProp)("settings.rows",this.props),s=Object.keys(r[0]||{}),c=this.getTotalPages(this.state.rowsPerPage,this.state.total),f=s.map(function(e,n){var o=(0,d.getProp)("columns."+e,t.props.overrides);return h.default.createElement(l.Column,u({header:h.default.createElement(l.Cell,null,e),key:e+n,columnKey:e,flexGrow:1,cell:function(n){var i=(0,d.getProp)("rows."+n.rowIndex,t.props.overrides),s=(0,d.getProp)("cells."+e+"_"+n.rowIndex,t.props.overrides);return h.default.createElement(l.Cell,u({},n,o,a,i,s),r[n.rowIndex][n.columnKey])}},i,o))}),p="",v="";return this.props.hideFilterHeader||(p=h.default.createElement("div",{className:"col-md-10"},h.default.createElement("div",{className:"form-group"},h.default.createElement("input",{onChange:this._onFilterChange.bind(this),placeholder:"Filter",className:"form-control"})))),this.props.hideControls||(v=h.default.createElement("div",{className:"col-md-2"},h.default.createElement("div",{onChange:this._onRowsPerPageChange.bind(this),className:"form-group"},h.default.createElement("select",{className:"form-control"},h.default.createElement("option",{value:"10"},"10"),h.default.createElement("option",{value:"25"},"25"),h.default.createElement("option",{value:"50"},"50"),h.default.createElement("option",{value:"100"},"100"),h.default.createElement("option",{value:"500"},"500"))))),h.default.createElement(y.default,u({key:"card_"+this.state.key},this.state.cardVariables),h.default.createElement("div",{ref:function(e){return t.table=e},className:"table-wrapper"},h.default.createElement("div",{className:"row"},p,v),h.default.createElement(_.default,{isFetching:this.props.isFetching||!r.length},h.default.createElement("div",{className:"table-container"},h.default.createElement(l.Table,u({rowsCount:r.length},o,{width:n,rowHeightGetter:this.rowHeightGetter}),f)),h.default.createElement("nav",null,h.default.createElement("ul",{className:"pagination"},h.default.createElement("li",{className:1===this.state.currentPage?"hide":""},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,1).bind(this),href:"#","aria-label":"Previous"},h.default.createElement("span",{"aria-hidden":"true"},"«"))),h.default.createElement("li",{className:1===this.state.currentPage?"hide":""},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,this.state.currentPage-1).bind(this),href:"#","aria-label":"Previous"},h.default.createElement("span",{"aria-hidden":"true"},"«"))),this.getPageNumbers(this.state.rowsPerPage,this.state.total,this.state.currentPage),h.default.createElement("li",{className:c&&this.state.currentPage!==c?"":"hide"},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,this.state.currentPage+1).bind(this),href:"#","aria-label":"Next"},h.default.createElement("span",{"aria-hidden":"true"},"»"))),h.default.createElement("li",{className:c&&this.state.currentPage!==c?"":"hide"},h.default.createElement("a",{onClick:(0,x.partialRight)(this._onPageChange,c).bind(this),href:"#","aria-label":"Next"},h.default.createElement("span",{"aria-hidden":"true"},"»"))))))))}}]),e}(g.default);w.defaultProps={rowsPerPage:10,queryObj:{size:10,from:0}};var E=w;e.default=E,f.default.set("DataTable",w),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(w,"DataTable","/Users/Mariano/Proyectos/docker/react-dash/src/components/DataTable.js"),__REACT_HOT_LOADER__.register(E,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/DataTable.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;nt.from&&r<=t.to})}},{key:"trackStatus",value:function(){var t=Date.parse(this.props.startDate),e=Date.parse(this.props.endDate),n=Number(this.props.startNumber),r=Number(this.props.endNumber),o=this.getTracker(t,e,n,r),i=o(Date.now()),a=i-this.getMetric(this.state.data),u={increase:a<=0,decrease:a>=0,maintain_above:a<=0,maintain_below:a>=0,maintain:!0,mesure:!0};return this.getTolerance(a,u[this.props.action])}},{key:"getTracker",value:function(t,e,n,r){return function(o){var i=(r-n)/(e-t),a=i*(o-t);return a}}},{key:"formatActionName",value:function(t){return(0,b.capitalize)(this.props.action.replace("_"," "))}},{key:"getCaption",value:function(){var t={action:this.formatActionName(this.props.action),caption:this.props.caption,startNumber:(0,C.formatNumber)(this.props.startNumber,this.state.numberFormat),endNumber:(0,C.formatNumber)(this.props.endNumber,this.state.numberFormat),startDate:(0,C.formatDate)(new Date(this.props.startDate),this.state.dateFormat),endDate:(0,C.formatDate)(new Date(this.props.endDate),this.state.dateFormat)},e=(0,b.template)(this.props.captionTemplates[this.props.action]);return e(t)}},{key:"render",value:function(){var t=u({},(0,b.head)(this.trackStatus())),e={background:this.props.background},n=void 0,r=void 0;if(e=u({},e,this.props.style),this.props.spline){var o=u({},this.props.spline);n=c.default.createElement(x.default,u({type:"sparklinePlus",datum:this.state.data,showLastValue:!1,color:["#333333"]},o))}return this.state.showEndNumber&&(r=c.default.createElement("span",{className:"card-goal-end-number"}," ",this.props.divider," ",(0,C.formatNumber)(this.props.endNumber,this.state.numberFormat))),c.default.createElement(g.default,this.state.cardVariables,c.default.createElement(y.default,{isFetching:this.props.isFetching},c.default.createElement("div",{className:"goal",style:e},c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-md-4"},c.default.createElement("div",{className:"card-goal-icon"},c.default.createElement("span",{className:(0,E.default)("glyphicon",this.props.icon)}))),c.default.createElement("div",{className:"col-md-8"},c.default.createElement("div",{className:"card-goal-caption"},this.getCaption()))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-md-4"},c.default.createElement("div",{className:"card-goal-progress"},c.default.createElement("span",{className:"card-goal-metric"},(0,C.formatNumber)(this.getMetric(this.state.data),this.state.numberFormat)),r)),c.default.createElement("div",{className:"col-md-8"},c.default.createElement("div",{className:"card-goal-status"},c.default.createElement("a",{style:{color:t.color},href:this.props.link},t.label)),c.default.createElement("div",{className:"card-goal-end-date"},(0,C.formatDate)(new Date(this.props.endDate),this.state.dateFormat)))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-md-12"},c.default.createElement("div",{className:"spline"},n))))))}}]),e}(h.default);O.defaultProps={captionTemplates:{increase:"${action} ${caption} ${endNumber} by ${endDate}",decrease:"${action} ${caption} ${endNumber} by ${endDate}",maintain:"${action} at ${endNumber} ${caption} by ${endDate}",maintain_above:"${action} ${endNumber} ${caption} by ${endDate}",maintain_below:"${action} ${endNumber} ${caption} by ${endDate}",mesure:"${caption}"},divider:" / ",style:{color:"black",background:"white"}};var T=O;e.default=T,d.default.set("Goal",O),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(O,"Goal","/Users/Mariano/Proyectos/docker/react-dash/src/components/Goal.js"),__REACT_HOT_LOADER__.register(T,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Goal.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n0?this.props.data[0]:this.props.data&&!(0,g.isArray)(this.props.data)?this.props.data:this.props.content?this.props.content:""}},{key:"render",value:function(){return l.default.createElement(v.default,this.state.cardVariables,l.default.createElement("div",{dangerouslySetInnerHTML:{__html:this.getContent()}}))}}]),e}(p.default),y=m;e.default=y,f.default.set("Markup",m),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(m,"Markup","/Users/Mariano/Proyectos/docker/react-dash/src/components/Markup.js"),__REACT_HOT_LOADER__.register(y,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Markup.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:[];return p.DataHandler.handle.call(this,t,n,this.props.globalData,{},e)}},{key:"getChildren",value:function(){var t=this,e=void 0;return this.props.children&&(e=this.props.children.map(function(e,n){var r=u(e,{globalData:t.props.globalData,appliedFilters:t.props.appliedFilters});return e.dataHandlers?r.data=t._applyDataHandlers(e.dataHandlers,e.appliedFilters,e.data):e.data&&e.data.length>0&&(r.data=e.data),c.default.createElement(d.default.get(e.type),r)})),e}},{key:"render",value:function(){var t=this.getChildren();return c.default.createElement("div",{className:this.props.className},t)}}]),e}(l.Component)),g=v;e.default=g,d.default.set("Region",v),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(v,"Region","/Users/Mariano/Proyectos/docker/react-dash/src/components/Region.js"),__REACT_HOT_LOADER__.register(g,"default","/Users/Mariano/Proyectos/docker/react-dash/src/components/Region.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e0?a[0]:[]}};i.default.setLib("NVD3",u),function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(a,"LibName","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/NVD3DataHandlers.js"),__REACT_HOT_LOADER__.register(u,"dataHandlers","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/NVD3DataHandlers.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{
-default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),i=r(o),a=n(7),u="common",s={fieldsToXYSeries:function(t,e,n,r,o,i){var a=i||t;if(!a.length)return[];Array.isArray(a[1])||(a=[a]);var u=a.map(function(t){var e=n.xField||"x";return n.field,t.map(function(t){return{y:t[n.field],x:t[e]}})});return u},fieldToD3Format:function(t,e,n,r,o,i){var u=i||t||[],s=(0,a.format)(n.format);return u.map(function(t){return t.map(function(t){return t[n.field]=s(t[n.field]),t})}),u},filterDashboardDataByParamEquals:function(t,e,n,r,o,i){var a=e,u=a.filter(function(t){return t[n.field]===n.value});return[u]},parseDateField:function(t,e,n,r,o,i){var a=i||t;return a.map(function(t){return t[n.field]=Date.parse(t[n.field]),t})},getEventReturn:function(t,e,n,r,o,i){return r?r.value:t},getXYByQueryData:function(t,e,n,r,o,i){if(e&&e[n.dataKey]&&e[n.dataKey][n.queryKey]){var a=e[n.dataKey][n.queryKey].result.records,u=a.map(function(t){var e={};return e[n.xField]=t[n.xField],e[n.yField]=t[n.yField],e});return[u]}return[]},getXYByQueryDataWhere:function(t,e,n,r,o,i){if(e&&e[n.dataKey]&&e[n.dataKey][n.queryKey]){var a=e[n.dataKey][n.queryKey].result.records,u=a.filter(function(t){var e=n.whereFieldValueIn.indexOf(t[n.whereField])>=0;return e}),s=u.map(function(t){var e={};return e[n.xField]=t[n.xField],e[n.yField]=t[n.yField],e});return[s]}return[]},getXYByQueryDataWhereFieldsIn:function(t,e,n,r,o,i){if(e&&e[n.dataKey]&&e[n.dataKey][n.queryKey]){var a=e[n.dataKey][n.queryKey].result.records,u=a.filter(function(t){var e=void 0;return n.whereField.forEach(function(r){e=n.whereFieldValueIn.indexOf(t[r])>=0}),e}),s=u.map(function(t){var e={};return e[n.xField]=t[n.xField],e[n.yField]=t[n.yField],e});return[s]}return[]},getPercentileSeries:function(t,e,n,r,o,i){},groupByRange:function(t,e,n,r,o,i){var a=i||t,u=[];return a.forEach(function(t){var e=[],r=function(r){var o=n.ranges[r][0],i=n.ranges[r][1],a=o+" - "+i,u=0,s={};t.forEach(function(t){t[n.xField]>=o&&t[n.xField]<=i&&(u+=parseInt(t[n.yField]))}),s[n.xField]=a,s[n.yField]=u,e.push(s)};for(var o in n.ranges)r(o);u.push(e)}),u},seriesFromRanges:function(t,e,n,r,o,i){var a=i||t;if(a.length>0){var u=a[0].map(function(t,e){var r={},o=[],i={};return r.key=t[n.xField],r.color=n.colors[e],i.label=n.xLabel,i.value=t[n.yField],o.push(i),r.values=o,r});return u}return a},rekeySeries:function(t,e,n,r,o,i){var a=i||t;if(a.length>0){var u=a[0].map(function(t){var e={};return Object.keys(t).forEach(function(r,o){e[n.newKeys[o]]=t[r]}),e});return[u]}return[]},parseInts:function(t,e,n,r,o,i){var a=i||t;return a.forEach(function(t){t.forEach(function(t){n.fields.forEach(function(e){t[e]=parseInt(t[e])})})}),a},toPieChartSeries:function(t,e,n,r,o,i){var a=i||t;return a.length>0?a[0]:[]},changeFieldNames:function(t,e,n,r,o,i){var a=i||t,u=[];return a.forEach(function(t){var e=void 0;e=t.map(function(t){return t[n.xField]=n.fields[t[n.xField]],t}),u.push(e)}),u},whitelistValues:function(t,e,n,r,o,i){var a=i||t,u=void 0;return a.length>0?u=a.map(function(t){return t.filter(function(t){if(n.whiteList.indexOf(t[n.field])>=0)return!0})}):a},inspect:function(t,e,n,r,o,i){var a=i||t;return console.log("INSPECT>>",this,a,arguments),a}};i.default.setLib("common",s);var l=s;e.default=l,function(){"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(u,"libName","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/common.js"),__REACT_HOT_LOADER__.register(s,"dataHandlers","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/common.js"),__REACT_HOT_LOADER__.register(l,"default","/Users/Mariano/Proyectos/docker/react-dash/src/datahandlers/common.js"))}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(43);Object.defineProperty(e,"NVD3DataHandlers",{enumerable:!0,get:function(){return r(o).default}});var i=n(44);Object.defineProperty(e,"common",{enumerable:!0,get:function(){return r(i).default}}),function(){"undefined"==typeof __REACT_HOT_LOADER__}()},function(t,e,n){"use strict";function r(t){var e=[];for(var n in t)e.push(n+"="+t[n]);return"?"+e.join("&")}function o(t){return!!(t.indexOf&&t.indexOf("fid")>=0)&&t.replace("fid","")}function i(t){return JSON.parse('{"'+decodeURI(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}function a(t,e,n){var r={};if(Object.keys(t).forEach(function(o){if(o===e)if("object"===c(t[o]))n?r=t[o]:t[o].forEach(function(t){var e=t.split("__");if(r[e[0]]&&"object"===c(r[e[0]]))r[e[0]].push(e[1]);else if(r[e[0]]&&"string"==typeof r[e[0]]){var n={},o=[];o.push(r[e[0]]),o.push(e[1]),n[e[0]]=o,r=l(r,n)}else r[e[0]]=e[1]});else if(t[o].indexOf("__")<0)console.log("gop",t[o],r),r[o]=t[o];else{var i=t[o].split("__");r[i[0]]=i[1]}}),!(0,f.isEmpty)(r))return r}function u(t){var e,n,r,o,i,a;if(n=[],i=/%20/g,r=function(t,e){e="function"==typeof e?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)},t instanceof Array)for(o in t)r(o,t[o]);else for(e in t)s(e,t[e],r);return a=n.join("&").replace(i,"+")}function s(t,e,n){var r,o,i,a;if(a=/\[\]$/,e instanceof Array)for(o=0,i=e.length;o .":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,u=g.createElement(I,{child:e});if(t){var s=w.get(t);a=s._processChildContext(s._context)}else a=O;var c=d(n);if(c){var f=c._currentElement,h=f.props.child;if(S(h,e)){var v=c._renderedComponent.getPublicInstance(),m=r&&function(){r.call(v)};return H._updateRootComponent(c,u,a,n,m),v}H.unmountComponentAtNode(n)}var y=o(n),b=y&&!!i(y),_=l(n),x=b&&!c&&!_,E=H._renderNewRootComponent(u,n,x,a)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(t,e,n){return H._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){c(t)?void 0:p("40");var e=d(t);if(!e){l(t),1===t.nodeType&&t.hasAttribute(R);return!1}return delete F[e._instance.rootID],M.batchedUpdates(s,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(c(e)?void 0:p("41"),i){var u=o(e);if(E.canReuseMarkup(t,u))return void y.precacheNode(n,u);var s=u.getAttribute(E.CHECKSUM_ATTR_NAME);u.removeAttribute(E.CHECKSUM_ATTR_NAME);var l=u.outerHTML;u.setAttribute(E.CHECKSUM_ATTR_NAME,s);var f=t,d=r(f,l),v=" (client) "+f.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);e.nodeType===N?p("42",v):void 0}if(e.nodeType===N?p("43"):void 0,a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);h.insertTreeBefore(e,t,null)}else A(e,t),y.precacheNode(n,e.firstChild)}};t.exports=H},function(t,e,n){"use strict";var r=n(4),o=n(32),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||t===!1?i.EMPTY:o.isValidElement(t)?"function"==typeof t.type?i.COMPOSITE:i.HOST:void r("26",t)}});t.exports=i},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){"use strict";function r(t,e){return null==e?o("30"):void 0,null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var o=n(4);n(1);t.exports=r},function(t,e){"use strict";function n(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=n},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=n(121);t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(9),i=null;t.exports=r},function(t,e,n){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t,e){var n;if(null===t||t===!1)n=l.create(i);else if("object"==typeof t){var u=t,s=u.type;if("function"!=typeof s&&"string"!=typeof s){var d="";d+=r(u._owner),a("130",null==s?s:typeof s,d)}"string"==typeof u.type?n=c.createInternalComponent(u):o(u.type)?(n=new u.type(u),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new f(u)}else"string"==typeof t||"number"==typeof t?n=c.createInstanceForText(t):a("131",typeof t);return n._mountIndex=0,n._mountImage=null,n}var a=n(4),u=n(5),s=n(223),l=n(116),c=n(118),f=(n(310),n(1),n(2),function(t){this.construct(t)});u(f.prototype,s,{_instantiateReactComponent:i}),t.exports=i},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!r[t.type]:"textarea"===e}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},function(t,e,n){"use strict";var r=n(9),o=n(52),i=n(53),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void i(t,o(e))})),t.exports=a},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?l.escape(t.key):e.toString(36)}function o(t,e,n,i){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===u)return n(i,t,""===e?c+r(t,0):e),1;var p,h,v=0,g=""===e?c:e+f;if(Array.isArray(t))for(var m=0;ms;)for(var d,p=i(a[s++]),h=c?l(p).concat(c(p)):l(p),v=h.length,g=0;v>g;)f.call(p,d=h[g++])&&(n[d]=p[d]);return n}:Object.assign},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){var r=n(13);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(15);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports={default:n(18),__esModule:!0}},function(t,e,n){n(19),t.exports=n(7).Object.getPrototypeOf},function(t,e,n){var r=n(12);n(20)("getPrototypeOf",function(t){return function(e){return t(r(e))}})},function(t,e,n){var r=n(5),o=n(7),i=n(16);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(23),i=r(o);e.default=function(){function t(t,e){for(var n=0;no;)I(t,n=r[o++],e[n]);return t},B=function(t,e){return void 0===e?E(t):H(E(t),e)},U=function(t){var e=S.call(this,t);return!(e||!i(this,t)||!i(R,t)||i(this,A)&&this[A][t])||e},W=function(t,e){var n=x(t=b(t),e);return!n||!i(R,e)||i(t,A)&&t[A][e]||(n.enumerable=!0),n},z=function(t){for(var e,n=C(b(t)),r=[],o=0;n.length>o;)i(R,e=n[o++])||e==A||r.push(e);return r},V=function(t){for(var e,n=C(b(t)),r=[],o=0;n.length>o;)i(R,e=n[o++])&&r.push(R[e]);return r},q=function(t){if(void 0!==t&&!L(t)){
-for(var e,n,r=[t],o=1,i=arguments;i.length>o;)r.push(i[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&m(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!L(e))return e}),r[1]=e,O.apply(M,r)}},Y=l(function(){var t=k();return"[null]"!=O([t])||"{}"!=O({a:t})||"{}"!=O(Object(t))});D||(k=function(){if(L(this))throw TypeError("Symbol is not a constructor");return F(d(arguments.length>0?arguments[0]:void 0))},s(k.prototype,"toString",function(){return this._k}),L=function(t){return t instanceof k},r.create=B,r.isEnum=U,r.getDesc=W,r.setDesc=I,r.setDescs=H,r.getNames=v.get=z,r.getSymbols=V,a&&!n(46)&&s(N,"propertyIsEnumerable",U,!0));var K={for:function(t){return i(P,t+="")?P[t]:P[t]=k(t)},keyFor:function(t){return h(P,t)},useSetter:function(){T=!0},useSimple:function(){T=!1}};r.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=p(t);K[t]=D?e:F(e)}),T=!0,u(u.G+u.W,{Symbol:k}),u(u.S,"Symbol",K),u(u.S+u.F*!D,"Object",{create:B,defineProperty:I,defineProperties:H,getOwnPropertyDescriptor:W,getOwnPropertyNames:z,getOwnPropertySymbols:V}),M&&u(u.S+u.F*(!D||Y),"JSON",{stringify:q}),f(k,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(16)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=n(33)},function(t,e,n){var r=n(11),o=n(34);t.exports=n(31)?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(6),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e,n){var r=n(11).setDesc,o=n(30),i=n(37)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(35)("wks"),o=n(38),i=n(6).Symbol;t.exports=function(t){return r[t]||(r[t]=i&&i[t]||(i||o)("Symbol."+t))}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(11),o=n(40);t.exports=function(t,e){for(var n,i=o(t),a=r.getKeys(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===e)return n}},function(t,e,n){var r=n(14),o=n(13);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(40),o=n(11).getNames,i={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(r(t))}},function(t,e,n){var r=n(11);t.exports=function(t){var e=r.getKeys(t),n=r.getSymbols;if(n)for(var o,i=n(t),a=r.isEnum,u=0;i.length>u;)a.call(t,o=i[u++])&&e.push(o);return e}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(45);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=!0},function(t,e){},function(t,e,n){"use strict";var r=n(49).default,o=n(51).default;e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=r(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o?o(t,e):t.__proto__=e)},e.__esModule=!0},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){var r=n(11);t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){t.exports={default:n(52),__esModule:!0}},function(t,e,n){n(53),t.exports=n(7).Object.setPrototypeOf},function(t,e,n){var r=n(5);r(r.S,"Object",{setPrototypeOf:n(54).set})},function(t,e,n){var r=n(11).getDesc,o=n(45),i=n(44),a=function(t,e){if(i(t),!o(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,o){try{o=n(8)(Function.call,r(Object.prototype,"__proto__").set,2),o(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:o(t,n),t}}({},!1):void 0),check:a}},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return t.indexOf(e)>=0}function i(t){return function(){return!t.apply(this,arguments)}}function a(t,e,n){for(var r={},o=(0,b.default)(t),i=0,a=o.length;i=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t){return 0===t.button}function a(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function u(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function s(t,e){var n=e.query,r=e.hash,o=e.state;return n||r||o?{pathname:t,query:n,hash:r,state:o}:t}e.__esModule=!0;var l=Object.assign||function(t){for(var e=1;e=0;r--){var o=t[r],i=o.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:p,state:p,onEnter:c.falsy,children:c.falsy},render:function(){(0,u.default)(!1)}});e.default=h,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return a({},t,{setRouteLeaveHook:e.listenBeforeLeavingRoute,isActive:e.isActive})}function i(t,e){return t=a({},t,e)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e-1)return!1;if(r.filterOption)return r.filterOption.call(o,t,e);if(!e)return!0;var i=String(t[r.valueKey]),u=String(t[r.labelKey]);return r.ignoreAccents&&("label"!==r.matchProp&&(i=(0,a.default)(i)),"value"!==r.matchProp&&(u=(0,a.default)(u))),r.ignoreCase&&("label"!==r.matchProp&&(i=i.toLowerCase()),"value"!==r.matchProp&&(u=u.toLowerCase())),"start"===r.matchPos?"label"!==r.matchProp&&i.substr(0,e.length)===e||"value"!==r.matchProp&&u.substr(0,e.length)===e:"label"!==r.matchProp&&i.indexOf(e)>=0||"value"!==r.matchProp&&u.indexOf(e)>=0})}var i=n(142),a=r(i);t.exports=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=t.focusedOption,n=t.instancePrefix,r=(t.labelKey,t.onFocus),o=t.onSelect,i=t.optionClassName,u=t.optionComponent,l=t.optionRenderer,c=t.options,f=t.valueArray,d=t.valueKey,p=u;return c.map(function(t,u){var c=f&&f.indexOf(t)>-1,h=t===e,v=h?"focused":null,g=(0,a.default)(i,{"Select-option":!0,"is-selected":c,"is-focused":h,"is-disabled":t.disabled});return s.default.createElement(p,{className:g,instancePrefix:n,isDisabled:t.disabled,isFocused:h,isSelected:c,key:"option-"+u+"-"+t[d],onFocus:r,onSelect:o,option:t,optionIndex:u,ref:v},l(t,u))})}var i=n(25),a=r(i),u=n(3),s=r(u);t.exports=o},function(t,e){"use strict";var n=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}];t.exports=function(t){for(var e=0;e>>1;t[o]1){var s,c=[],f={LineString:o,MultiLineString:i,Polygon:i,MultiPolygon:function(t){t.forEach(i)}};a(e),c.forEach(arguments.length<3?function(t){u.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&u.push(t[0].i)})}else for(var d=0,p=t.arcs.length;d1)for(var a,u,s=1,c=r(i[0]);sc&&(u=i[0],i[0]=i[s],i[s]=u,c=a);return i})}}function g(t){function e(t,e){t.forEach(function(t){t<0&&(t=~t);var n=o[t];n?n.push(e):o[t]=[e]})}function n(t,n){t.forEach(function(t){e(t,n)})}function r(t,e){"GeometryCollection"===t.type?t.geometries.forEach(function(t){r(t,e)}):t.type in u&&u[t.type](t.arcs,e)}var o={},a=t.map(function(){return[]}),u={LineString:e,MultiLineString:n,Polygon:n,MultiPolygon:function(t,e){t.forEach(function(t){n(t,e)})}};t.forEach(r);for(var s in o)for(var l=o[s],c=l.length,f=0;f0;){var n=(e+1>>1)-1,o=r[n];if(m(t,o)>=0)break;r[o._=e]=o,r[t._=e=n]=t}}function e(t,e){for(;;){var n=e+1<<1,i=n-1,a=e,u=r[a];if(i0&&(t=r[o],e(r[t._=0]=t,0)),n}},n.remove=function(n){var i,a=n._;if(r[a]===n)return a!==--o&&(i=r[o],(m(i,n)<0?t:e)(r[i._=a]=i,a)),a},n}function b(t,e){function o(t){u.remove(t),t[1][2]=e(t),u.push(t)}var i=n(t.transform),a=r(t.transform),u=y();return e||(e=d),t.arcs.forEach(function(t){var n,r,s,l,c=[],f=0;for(r=0,s=t.length;r2&&void 0!==arguments[2]&&arguments[2];if(l.indexOf(e)>=0)if(n){if("object"===i(t[e]))return!0}else{if("string"==typeof t[e])return!0;if((0,u.isArray)(t[e]))return!0}return!1}},{key:"getJoinQuery",value:function(t){var e=o({},this.dataResources),n={},r={},i={};return t.forEach(function(t){var o={},i=Object.keys(t.joins);i.forEach(function(i){n[i]?o[i]?(o[i]++,n[i+o[i]]=e[i].uuid,r[i+o[i]]=t.joins[i]):(o[i]=1,n[i+o[i]]=e[i].uuid,r[i]=t.joins[i]):(n[i]=e[i].uuid,r[i]=t.joins[i])})}),i.ids=n,i.joinFields=r,i}},{key:"mapQueries",value:function(t,e,n,r,o){var i=this,a=[],u=[];r.forEach(function(t){t.table?a.push(t):u.push(t)});var s=function(r){var u=i.getJoinQuery(a);a.length>0?(e[r].resource_id=u.ids,e[r].join=u.joinFields,Object.keys(e[r]).forEach(function(n){if(i.checkRewriteAggregateField(e[r],n)){var o=e[r][n];e[r][n]={},e[r][n][t]={},e[r][n][t]=o}})):(e[r].resource_id=n,Object.keys(e[r]).forEach(function(n){if(i.checkRewriteAggregateField(e[r],n,!0)){var o=i.dataResources[t].queries[r][n][t]||i.dataResources[t].queries[r][n];e[r][n]=o}})),e[r].limit=i.queryLimit,e[r].filters=o};for(var l in e)s(l);return e}}]),t}();e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[],n=t,r=this.state.appliedFilters||{},o=c.DataHandler.handle.call(this,n,e,this.state.data,{},r);return o}},{key:"getDashboardData",value:function(t){var e=this,n=u({},this.state.data),r=Object.keys(this.props.dataResources||{}),o=0;t=t||u({},this.state.appliedFilters),r.forEach(function(r){var i=u({},e.props.dataResources[r]),a=e.getAppliedFiltersByDataKey(r,t),s=e.getFilterQueries(a),l=e.Datastore.mapQueries(r,i.queries,i.uuid,a,s);e.Datastore.fetchResource(l).then(function(t){o++,n[r]=t,e.setState({data:n,isFetching:!1})}).catch(function(t){console.error("Error fetching resource",r,i,t)})})}},{key:"getFilterQueries",value:function(t){var e=this,n={};return t.forEach(function(t){var r=e.normalizeFilterValues(t.value);r.value&&(r=r.value),t.table?(n[t.table]={},n[t.table][t.field]=r):n[t.field]=r}),n}},{key:"getConstantAppliedFilters",value:function(){var t=this.props.dataResources||{},e={};return Object.keys(t).forEach(function(n){Object.keys(t[n].queries).forEach(function(r){t[n].queries[r].filters&&t[n].queries[r].filters.forEach(function(t){t.willFilter=n,e[t.field]=t})})}),e}},{key:"normalizeFilterValues",value:function(t){var e=[];return t.forEach(function(t){t.value&&(0,p.isArray)(t.value)?e=e.concat(t.value):t.value&&!(0,p.isArray)(t.value)?e.push(t.value):e.push(t)}),e}},{key:"getChildData",value:function(t){var e=[];return t.dataHandlers?e=this.applyDataHandlers(t.dataHandlers,t.data):t.data&&t.data.length>0&&(e=t.data),e}},{key:"filterDisabled",value:function(t){var e=Object.keys(t);return(0,p.reduce)(t,function(t,n,r){return(0,p.intersection)(e,n.disabledBy).length||(t[r]=n),t},{})}},{key:"getAppliedFiltersByDataKey",value:function(t,e){var n=[];return e=this.filterDisabled(e),Object.keys(e).map(function(r){var o=e[r];o&&o.willFilter&&o.willFilter.length>0&&o.willFilter.indexOf(t)>=0&&n.push(o)}),n}}]),e}(c.Dashboard);e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(){function t(t,e){for(var n=0;n0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=a.call(t),e=a.call(e),l(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=d[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!l(t[c],e[c],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,u=n(153),s=n(152),l=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=o?n:r,e.supported=n,e.unsupported=r},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(158),i=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(168);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?a(!1):void 0,"number"!=typeof e?a(!1):void 0,0===e||e-1 in t?void 0:a(!1),"function"==typeof t.callee?a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r ":a.innerHTML="<"+t+">"+t+">",u[t]=!a.firstChild),u[t]?d[t]:null}var o=n(9),i=n(1),a=o.canUseDOM?document.createElement("div"):null,u={},s=[1,''," "],l=[1,""],c=[3,""],f=[1,''," "],d={"*":[1,"?","
"],area:[1,""," "],col:[2,""],legend:[1,""," "],param:[1,""," "],tr:[2,""],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(t){d[t]=f,u[t]=!0}),t.exports=r},function(t,e){"use strict";function n(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(165),i=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(167);t.exports=r},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(98),i=r(o),a={hasCSSAnimations:function(){return!!(0,i.default)("animationName")},hasCSSTransforms:function(){return!!(0,i.default)("transform")},hasCSS3DTransforms:function(){return!!(0,i.default)("perspective")},hasCSSTransitions:function(){return!!(0,i.default)("transition")}};t.exports=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(21),i=r(o),a={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:i.default}},registerDefault:function(){}};t.exports=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=Object.assign||function(t){for(var e=1;e0||t>=0&&this.state.scrollX0||t>=0&&this.state.scrollYr?r:this.state.height>r&&this.props.ownerHeight?Math.max(r,this.props.ownerHeight):this.state.height+this.state.maxScrollY,t!==this._contentHeight&&this.props.onContentHeightChange&&this.props.onContentHeightChange(t),this._contentHeight=t},componentDidMount:function(){this._reportContentHeight()},componentWillReceiveProps:function(t){t.overflowX,t.overflowY;this.props.ownerHeight===t.ownerHeight&&this.props.scrollTop===t.scrollTop&&this.props.scrollLeft===t.scrollLeft||this._didScrollStart(),this._didScrollStop(),this.setState(this._calculateState(t,this.state))},componentDidUpdate:function(){this._reportContentHeight()},render:function(){var t,e=this.state,n=this.props,r=n.onColumnReorderEndCallback?this._onColumnReorder:null;e.useGroupHeader&&(t=a.default.createElement(C.default,{key:"group_header",isScrolling:this._isScrolling,className:(0,I.default)((0,S.default)("fixedDataTableLayout/header"),(0,S.default)("public/fixedDataTable/header")),width:e.width,height:e.groupHeaderHeight,index:0,zIndex:1,offsetTop:0,scrollLeft:e.scrollX,fixedColumns:e.groupHeaderFixedColumns,scrollableColumns:e.groupHeaderScrollableColumns,onColumnResize:this._onColumnResize,onColumnReorder:r,onColumnReorderMove:this._onColumnReorderMove}));var o=this.state.maxScrollY,i=e.maxScrollX>0&&"hidden"!==e.overflowX&&e.showScrollbarX!==!1,u=o>0&&"hidden"!==e.overflowY&&e.showScrollbarY!==!1,s=i?y.default.SIZE:0,l=e.height-s-2*q-e.footerHeight,c=e.useGroupHeader?e.groupHeaderHeight:0,f=c+e.headerHeight;l-=f;var d=0,p=null!=n.maxHeight?f+e.bodyHeight:f+l,h=p+e.footerHeight;void 0!==n.ownerHeight&&n.ownerHeighte.ownerHeight||e.scrollYu-$?r=Math.min(r+G,this.state.maxScrollX):i<=$&&(r=Math.max(r-G,0)),e.dragDistance+=this.state.scrollX-e.scrollStart}this.setState({scrollX:r,columnReorderingData:e})},_onColumnReorderEnd:function(t,e){var n=this.state.columnReorderingData.columnBefore,r=this.state.columnReorderingData.columnAfter,o=this.state.columnReorderingData.columnKey,i=this.state.columnReorderingData.cancelReorder;if(this.setState({isColumnReordering:!1,columnReorderingData:{}}),!i){this.props.onColumnReorderEndCallback({columnBefore:n,columnAfter:r,reorderColumn:o});var a=this.props.onHorizontalScroll;this.state.columnReorderingData.scrollStart!==this.state.scrollX&&a&&a(this.state.scrollX)}},_areColumnSettingsIdentical:function(t,e){if(t.length!==e.length)return!1;for(var n=0;n or "),n.push(t))});var r=!1;n.length&&n[0].type.__TableColumnGroup__&&(r=!0);var i,a=e&&e.firstRowIndex||0,u=e&&e.firstRowOffset||0,s=e?e.scrollY:0,l=e?e.scrollX:0,c=e?e.scrollLeft:0;void 0!==t.scrollLeft&&t.scrollLeft!==c&&(l=t.scrollLeft);var f=r?t.groupHeaderHeight:0;if(!e||t.rowsCount===e.rowsCount&&t.rowHeight===e.rowHeight&&t.height===e.height)e&&t.rowHeightGetter!==e.rowHeightGetter&&this._scrollHelper.setRowHeightGetter(t.rowHeightGetter);else{var d=(void 0===t.height?t.maxHeight:t.height)-(t.headerHeight||0)-(t.footerHeight||0)-(t.groupHeaderHeight||0),p=this._scrollHelper._viewportHeight;this._scrollHelper=new M.default(t.rowsCount,t.rowHeight,d,t.rowHeightGetter),i=this._scrollHelper.scrollToRow(a,u),a=i.index,u=i.offset,s=i.position}var h=e?e.scrollToRow:void 0;null==t.scrollToRow||t.scrollToRow===h&&d===p||(i=this._scrollHelper.scrollRowIntoView(t.scrollToRow),a=i.index,u=i.offset,s=i.position);var v=e?e.scrollTop:void 0;null!=t.scrollTop&&t.scrollTop!==v&&(i=this._scrollHelper.scrollTo(t.scrollTop),a=i.index,u=i.offset,s=i.position);var g;g=t.isColumnResizing?e&&e.columnResizingData:V;var m,b;if(r){var _=T.default.adjustColumnGroupWidths(n,t.width);m=_.columns,b=_.columnGroups}else m=T.default.adjustColumnWidths(n,t.width);var x=this._populateColumnsAndColumnData(m,b,e),w=e?e.scrollToColumn:void 0;if(null!==t.scrollToColumn&&t.scrollToColumn!==w){var E=x.bodyFixedColumns.length;if(t.scrollToColumn>=E){var C,k,O=0;for(C=0;CS&&(l=S)}}var N=void 0===t.height,j=Math.round(N?t.maxHeight:t.height),L=t.footerHeight+t.headerHeight+f+2*q,I=j-L,H=this._scrollHelper.getContentHeight(),B=H+L,U=T.default.getTotalWidth(m),W=U>t.width&&"hidden"!==t.overflowX&&t.showScrollbarX!==!1;
-W&&(I-=y.default.SIZE,B+=y.default.SIZE,L+=y.default.SIZE);var Y=Math.max(0,U-t.width),K=Math.max(0,H-I);l=Math.min(l,Y),s=Math.min(s,K),K||(N&&(j=B),I=B-L),this._scrollHelper.setViewportHeight(I);var X=Math.abs(u-this._scrollHelper.getRowPosition(a));X!==s&&(X=K,i=this._scrollHelper.scrollTo(X),a=i.index,u=i.offset,s=i.position);var G=o({isColumnResizing:e&&e.isColumnResizing},x,t,{columns:m,columnGroups:b,columnResizingData:g,firstRowIndex:a,firstRowOffset:u,horizontalScrollbarVisible:W,maxScrollX:Y,maxScrollY:K,reservedHeight:L,scrollContentHeight:H,scrollX:l,scrollY:s,bodyHeight:I,height:j,groupHeaderHeight:f,useGroupHeader:r});return G},_selectColumnElement:function(t,e){for(var n=[],r=0;rMath.abs(t)&&"hidden"!==this.props.overflowY){var r=this._scrollHelper.scrollBy(Math.round(e)),o=this.props.onVerticalScroll;if(!o||o(r.position)){var i=Math.max(0,r.contentHeight-this.state.bodyHeight);this.setState({firstRowIndex:r.index,firstRowOffset:r.offset,scrollY:r.position,scrollContentHeight:r.contentHeight,maxScrollY:i})}}else if(t&&"hidden"!==this.props.overflowX){n+=t,n=n<0?0:n,n=n>this.state.maxScrollX?this.state.maxScrollX:n;var a=this.props.onHorizontalScroll;a&&!a(n)||this.setState({scrollX:n})}this._didScrollStop()},_onHorizontalScroll:function(t){if(t!==this.state.scrollX){this._isScrolling||this._didScrollStart();var e=this.props.onHorizontalScroll;e&&!e(t)||this.setState({scrollX:t}),this._didScrollStop()}},_onVerticalScroll:function(t){if(t!==this.state.scrollY){this._isScrolling||this._didScrollStart();var e=this._scrollHelper.scrollTo(Math.round(t)),n=this.props.onVerticalScroll;n&&!n(e.position)||(this.setState({firstRowIndex:e.index,firstRowOffset:e.offset,scrollY:e.position,scrollContentHeight:e.contentHeight}),this._didScrollStop())}},_didScrollStart:function(){this._isScrolling||(this._isScrolling=!0,this.props.onScrollStart&&this.props.onScrollStart(this.state.scrollX,this.state.scrollY,this.state.firstRowIndex))},_didScrollStop:function(){this._isScrolling&&(this._isScrolling=!1,this.setState({redraw:!0}),this.props.onScrollEnd&&this.props.onScrollEnd(this.state.scrollX,this.state.scrollY,this.state.firstRowIndex))}}),Q=(0,s.default)({displayName:"HorizontalScrollbar",mixins:[d.default],propTypes:{contentSize:c.default.number.isRequired,offset:c.default.number.isRequired,onScroll:c.default.func.isRequired,position:c.default.number.isRequired,size:c.default.number.isRequired},componentWillMount:function(){this._initialRender=!0},componentDidMount:function(){this._initialRender=!1},render:function(){var t={height:y.default.SIZE,width:this.props.size},e={height:y.default.SIZE,position:"absolute",overflow:"hidden",width:this.props.size};return(0,W.default)(e,0,this.props.offset,this._initialRender),a.default.createElement("div",{className:(0,I.default)((0,S.default)("fixedDataTableLayout/horizontalScrollbar"),(0,S.default)("public/fixedDataTable/horizontalScrollbar")),style:t},a.default.createElement("div",{style:e},a.default.createElement(y.default,o({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}});t.exports=Z},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(10),i=r(o),a=n(20),u=r(a),s=n(12),l=r(s),c=n(179),f=r(c),d=n(96),p=r(d),h=n(16),v=r(h),g=n(21),m=r(g),y=n(36),b=r(y),_=(0,u.default)({displayName:"FixedDataTableBufferedRows",propTypes:{bufferRowCount:l.default.number,isScrolling:l.default.bool,defaultRowHeight:l.default.number.isRequired,firstRowIndex:l.default.number.isRequired,firstRowOffset:l.default.number.isRequired,fixedColumns:l.default.array.isRequired,height:l.default.number.isRequired,offsetTop:l.default.number.isRequired,onRowClick:l.default.func,onRowDoubleClick:l.default.func,onRowMouseDown:l.default.func,onRowMouseEnter:l.default.func,onRowMouseLeave:l.default.func,rowClassNameGetter:l.default.func,rowsCount:l.default.number.isRequired,rowHeightGetter:l.default.func,rowKeyGetter:l.default.func,rowPositionGetter:l.default.func.isRequired,scrollLeft:l.default.number.isRequired,scrollableColumns:l.default.array.isRequired,showLastRowBorder:l.default.bool,width:l.default.number.isRequired},getInitialState:function(){return this._rowBuffer=new f.default(this.props.rowsCount,this.props.defaultRowHeight,this.props.height,this._getRowHeight,this.props.bufferRowCount),{rowsToRender:this._rowBuffer.getRows(this.props.firstRowIndex,this.props.firstRowOffset)}},componentWillMount:function(){this._staticRowArray=[],this._initialRender=!0},componentDidMount:function(){setTimeout(this._updateBuffer,1e3),this._initialRender=!1},componentWillReceiveProps:function(t){t.rowsCount===this.props.rowsCount&&t.defaultRowHeight===this.props.defaultRowHeight&&t.height===this.props.height||(this._rowBuffer=new f.default(t.rowsCount,t.defaultRowHeight,t.height,this._getRowHeight,this.props.bufferRowCount)),this.props.isScrolling&&!t.isScrolling?this._updateBuffer():this.setState({rowsToRender:this._rowBuffer.getRows(t.firstRowIndex,t.firstRowOffset)})},_updateBuffer:function(){this._rowBuffer&&this.setState({rowsToRender:this._rowBuffer.getRowsWithUpdatedBuffer()})},shouldComponentUpdate:function(){return!0},componentWillUnmount:function(){this._rowBuffer=null,this._staticRowArray.length=0},render:function(){var t=this.props,e=t.rowClassNameGetter||m.default,n=t.rowPositionGetter,r=this.state.rowsToRender,o=r.slice().sort(function(t,e){return t-e}),a={};o.forEach(function(t){a[t]=n(t)}),this._staticRowArray.length=r.length;for(var u=t.firstRowOffset-t.rowPositionGetter(t.firstRowIndex)+t.offsetTop,s=0;s=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var i=Object.assign||function(t){for(var e=1;es,c=r>t.left,f=!1;l?os&&(f=!0,c?n.displacement=0:n.displacement=t.columnReorderingData.columnWidth*-1),f?l?t.columnReorderingData.columnAfter||(t.columnReorderingData.columnAfter=t.columnKey):t.columnReorderingData.columnBefore=t.columnKey:l?t.columnReorderingData.columnBefore=t.columnKey:t.columnReorderingData.columnAfter||(t.columnReorderingData.columnAfter=t.columnKey)}}else n.displacement=0;this.setState(n)},getDefaultProps:function(){return k},render:function(){var t=this.props,e=t.height,n=t.width,r=t.columnKey,a=o(t,["height","width","columnKey"]),s={height:e,width:n};1===C?s.left=a.left:s.right=a.left,this.state.isReorderingThisColumn&&(s.transform="translateX("+this.state.displacement+"px) translateZ(0)",s.zIndex=1);var c,f=(0,x.default)((0,b.default)({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":a.lastChild,"fixedDataTableCellLayout/alignRight":"right"===a.align,"fixedDataTableCellLayout/alignCenter":"center"===a.align,"public/fixedDataTableCell/alignRight":"right"===a.align,"public/fixedDataTableCell/highlighted":a.highlighted,"public/fixedDataTableCell/main":!0,"public/fixedDataTableCell/hasReorderHandle":!!a.onColumnReorder,"public/fixedDataTableCell/reordering":this.state.isReorderingThisColumn}),a.className);if(a.onColumnResize){var d={height:e};c=p.default.createElement("div",{className:(0,b.default)("fixedDataTableCellLayout/columnResizerContainer"),style:d,onMouseDown:this._onColumnResizerMouseDown},p.default.createElement("div",{className:(0,x.default)((0,b.default)("fixedDataTableCellLayout/columnResizerKnob"),(0,b.default)("public/fixedDataTableCell/columnResizerKnob")),style:d}))}var h;a.onColumnReorder&&(h=p.default.createElement(l.default,i({columnKey:this.columnKey,onMouseDown:this._onColumnReorderMouseDown,height:e},this.props)));var v={columnKey:r,height:e,width:n};a.rowIndex>=0&&(v.rowIndex=a.rowIndex);var g;return g=p.default.isValidElement(a.cell)?p.default.cloneElement(a.cell,v):"function"==typeof a.cell?a.cell(v):p.default.createElement(u.default,v,a.cell),p.default.createElement("div",{className:f,style:s},c,h,g)},_onColumnResizerMouseDown:function(t){this.props.onColumnResize(this.props.left,this.props.width,this.props.minWidth,this.props.maxWidth,this.props.columnKey,t)},_onColumnReorderMouseDown:function(t){this.props.onColumnReorder(this.props.columnKey,this.props.width,this.props.left,t)}});t.exports=M},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(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}var i=Object.assign||function(t){for(var e=1;e=0){var f=s.columnKey||"cell_"+a;n[a]=this._renderCell(t.rowIndex,t.rowHeight,s,i,f,r,o)}i+=s.width}var d={height:t.height,position:"absolute",width:r,zIndex:t.zIndex};return(0,b.default)(d,-1*_*t.left,0,this._initialRender),l.default.createElement("div",{className:(0,m.default)("fixedDataTableCellGroupLayout/cellGroup"),style:d},n)},_renderCell:function(t,e,n,r,o,i,a){var u=n.isResizable&&this.props.onColumnResize,s=u?this.props.onColumnResize:null,c=n.isReorderable&&this.props.onColumnReorder&&t===-1&&i!==n.width,f=c?this.props.onColumnReorder:null,d=n.cellClassName,p=n.pureRendering||!1;return l.default.createElement(v.default,{isScrolling:this.props.isScrolling,align:n.align,className:d,height:e,key:o,maxWidth:n.maxWidth,minWidth:n.minWidth,onColumnResize:s,onColumnReorder:f,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:a,columnReorderingData:this.props.columnReorderingData,rowIndex:t,columnKey:n.columnKey,width:n.width,left:r,cell:n.cell,columnGroupWidth:i,pureRendering:p})},_getColumnsWidth:function(t){for(var e=0,n=0;n0;)this._addRowToBuffer(e,this._viewportRowsBegin,this._viewportRowsEnd-1),e++,t--;return this._rows}},{key:"getRows",value:function(t,e){var n=e,r=n,o=t,i=Math.min(t+this._maxVisibleRowCount,this._rowsCount);for(this._viewportRowsBegin=t;o=i&&(r=this._bufferSet.replaceFurthestValuePosition(e,n,t)),null===r?(r=this._bufferSet.getNewPositionForValue(t),this._rows[r]=t):this._rows[r]=t}}]),t}();t.exports=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var n=0;n=0&&e>=t-c;){var n=this._updateRowHeight(e);this._position+=n,e--}}},{key:"_updateRowHeight",value:function(t){if(t<0||t>=this._rowCount)return 0;var e=this._rowHeightGetter(t);if(e!==this._storedHeights[t]){var n=e-this._storedHeights[t];return this._rowOffsets.set(t,e),this._storedHeights[t]=e,this._contentHeight+=n,n}return 0}},{key:"getRowPosition",value:function(t){return this._updateRowHeight(t),this._rowOffsets.sumUntil(t)}},{key:"scrollBy",value:function(t){if(0===this._rowCount)return f;var e=this._rowOffsets.greatestLowerBound(this._position);e=(0,l.default)(e,0,Math.max(this._rowCount-1,0));var n=this._rowOffsets.sumUntil(e),r=e,o=this._position,i=this._updateRowHeight(r);0!==n&&(o+=i);var a=this._storedHeights[r]-(o-n);if(t>=0)for(;t>0&&r0&&r>=0;)if(t=0){var s=this._updateRowHeight(r);u=this._storedHeights[r],o+=s}}var c=this._contentHeight-this._viewportHeight;o=(0,l.default)(o,0,c),this._position=o;var d=this._rowOffsets.greatestLowerBound(o);d=(0,l.default)(d,0,Math.max(this._rowCount-1,0)),n=this._rowOffsets.sumUntil(d);var p=n-o;return this._updateHeightsInViewport(d,p),this._updateHeightsAboveViewport(d),{index:d,offset:p,position:this._position,contentHeight:this._contentHeight}}},{key:"_getRowAtEndPosition",value:function(t){this._updateRowHeight(t);for(var e=t,n=this._storedHeights[e];n=0;)e--,e>=0&&(this._updateRowHeight(e),n+=this._storedHeights[e]);var r=this._rowOffsets.sumTo(t)-this._viewportHeight;return r<0&&(r=0),r}},{key:"scrollTo",value:function(t){if(0===this._rowCount)return f;if(t<=0)return this._position=0,this._updateHeightsInViewport(0,0),{index:0,offset:0,position:this._position,contentHeight:this._contentHeight};if(t>=this._contentHeight-this._viewportHeight){var e=this._rowCount-1;t=this._getRowAtEndPosition(e)}this._position=t;var n=this._rowOffsets.greatestLowerBound(t);n=(0,l.default)(n,0,Math.max(this._rowCount-1,0));var r=this._rowOffsets.sumUntil(n),o=r-t;return this._updateHeightsInViewport(n,o),this._updateHeightsAboveViewport(n),{index:n,offset:o,position:this._position,contentHeight:this._contentHeight}}},{key:"scrollToRow",value:function(t,e){t=(0,l.default)(t,0,Math.max(this._rowCount-1,0)),e=(0,l.default)(e,-this._storedHeights[t],0);var n=this._rowOffsets.sumUntil(t);return this.scrollTo(n-e)}},{key:"scrollRowIntoView",value:function(t){t=(0,l.default)(t,0,Math.max(this._rowCount-1,0));var e=this._rowOffsets.sumUntil(t),n=e+this._storedHeights[t];if(e0&&(this._items[0]=e,this._sinkDown(0)),t}}},{key:"push",value:function(t){this._items[this._size++]=t,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(0!==this._size)return this._items[0]}},{key:"_heapify",value:function(){for(var t=Math.floor((this._size+1)/2);t>=0;t--)this._sinkDown(t)}},{key:"_bubbleUp",value:function(t){for(var e=this._items[t];t>0;){var n=Math.floor((t+1)/2)-1,r=this._items[n];if(this._comparator(r,e))return;this._items[n]=e,this._items[t]=r,t=n}}},{key:"_sinkDown",value:function(t){for(var e=this._items[t];;){var n=2*(t+1)-1,r=2*(t+1),o=-1;if(n=t&&o<=e)return null;var i;t-r>o-e?(i=r,this._smallValues.pop()):(i=o,this._largeValues.pop());var a=this._valueToPositionMap[i];return delete this._valueToPositionMap[i],this._valueToPositionMap[n]=a,this._pushToHeaps(a,n),a}},{key:"_pushToHeaps",value:function(t,e){var n={position:t,value:e};this._smallValues.push(n),this._largeValues.push(n)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var t=Math.min(this._smallValues.size(),this._largeValues.size()),e=Math.max(this._smallValues.size(),this._largeValues.size());e>10*t&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var t=this._smallValues.size()e.value}}]),t}();t.exports=c},function(t,e){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(t,e,n){(function(e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");
-}function i(t){for(var e=1;e=0;--n)e[n]=0;return e},f=function(){function t(e){o(this,t),this._size=e.length,this._half=i(this._size),this._heap=new c(2*this._half);var n;for(n=0;n0;--n)this._heap[n]=this._heap[2*n]+this._heap[2*n+1]}return a(t,[{key:"set",value:function(t,e){(0,s.default)(0<=t&&t=0;--o)r[o]=n;return new t(r)}},{key:"empty",value:function(e){return t.uniform(e,0)}}]),t}();t.exports=f}).call(e,function(){return this}())},function(t,e,n){"use strict";t.exports=n(37)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(t,e){for(var n=0;n2||Math.abs(this._deltaY)>2)&&(this._stopPropagation()&&t.stopPropagation(),i=!0),i===!0&&null===this._dragAnimationId&&(this._dragAnimationId=(0,l.default)(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var t=Date.now(),e=t-this._lastFrameTimestamp,n=this._velocityX,r=this._velocityY,o=.8;e0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var t=Date.now()-this._autoScrollTimestamp,e=f*Math.exp(-t/d),n=e*this._velocityX,r=e*this._velocityY;(Math.abs(n)<=5||!this._handleScrollX(n,r))&&(n=0),(Math.abs(r)<=5||!this._handleScrollY(r,n))&&(r=0),0===n&&0===r||(this._onTouchScrollCallback(n,r),(0,l.default)(this._autoScroll))}}]),t}();t.exports=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(58),i=r(o),a=n(184),u=r(a),s=n(10),l=r(s),c=n(20),f=r(c),d=n(12),p=r(d),h=n(186),v=r(h),g=n(44),m=r(g),y=n(97),b=r(y),_=n(192),x=r(_),w=n(16),E=r(w),C=n(21),k=r(C),M=n(43),O=r(M),T={position:0,scrollable:!1},A=parseInt((0,x.default)("scrollbar-face-margin"),10),S=2*A,P=30,R=40,D=null,N=(0,f.default)({displayName:"Scrollbar",mixins:[m.default],propTypes:{contentSize:p.default.number.isRequired,defaultPosition:p.default.number,isOpaque:p.default.bool,orientation:p.default.oneOf(["vertical","horizontal"]),onScroll:p.default.func,position:p.default.number,size:p.default.number.isRequired,trackColor:p.default.oneOf(["gray"]),zIndex:p.default.number,verticalTop:p.default.number},getInitialState:function(){var t=this.props;return this._calculateState(t.position||t.defaultPosition||0,t.size,t.contentSize,t.orientation)},componentWillReceiveProps:function(t){var e=t.position;void 0===e?this._setNextState(this._calculateState(this.state.position,t.size,t.contentSize,t.orientation)):this._setNextState(this._calculateState(e,t.size,t.contentSize,t.orientation),t)},getDefaultProps:function(){return{defaultPosition:0,isOpaque:!1,onScroll:k.default,orientation:"vertical",zIndex:99}},render:function(){if(!this.state.scrollable)return null;var t,e,n=this.props.size,r=this.state.isHorizontal,o=!r,i=this.state.focused||this.state.isDragging,a=this.state.faceSize,u=this.props.isOpaque,s=this.props.verticalTop||0,c=(0,E.default)({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":o,"ScrollbarLayout/mainHorizontal":r,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":u,"public/Scrollbar/mainActive":i}),f=(0,E.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":r,"ScrollbarLayout/faceVertical":o,"public/Scrollbar/faceActive":i,"public/Scrollbar/face":!0}),d=this.state.position*this.state.scale+A;return r?(t={width:n},e={width:a-S},(0,O.default)(e,d,0,this._initialRender)):(t={top:s,height:n},e={height:a-S},(0,O.default)(e,0,d,this._initialRender)),t.zIndex=this.props.zIndex,"gray"===this.props.trackColor&&(t.backgroundColor=(0,x.default)("fbui-desktop-background-light")),l.default.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onWheel:this._wheelHandler.onWheel,className:c,style:t,tabIndex:0},l.default.createElement("div",{ref:"face",className:f,style:e}))},componentWillMount:function(){var t="horizontal"===this.props.orientation,e=t?this._onWheelX:this._onWheelY;this._wheelHandler=new b.default(e,this._shouldHandleX,this._shouldHandleY),this._initialRender=!0},componentDidMount:function(){this._mouseMoveTracker=new i.default(this._onMouseMove,this._onMouseMoveEnd,document.documentElement),void 0!==this.props.position&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1},componentWillUnmount:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),D===this&&(D=null),delete this._mouseMoveTracker},scrollBy:function(t){this._onWheel(t)},_shouldHandleX:function(t){return"horizontal"===this.props.orientation&&this._shouldHandleChange(t)},_shouldHandleY:function(t){return"horizontal"!==this.props.orientation&&this._shouldHandleChange(t)},_shouldHandleChange:function(t){var e=this._calculateState(this.state.position+t,this.props.size,this.props.contentSize,this.props.orientation);return e.position!==this.state.position},_calculateState:function(t,e,n,r){if(e<1||n<=e)return T;var o=t+"_"+e+"_"+n+"_"+r;if(this._stateKey===o)return this._stateForKey;var i="horizontal"===r,a=e/n,u=e*a;u
l&&(t=l);var c=!!this._mouseMoveTracker&&this._mouseMoveTracker.isDragging(),f={faceSize:u,isDragging:c,isHorizontal:i,position:t,scale:a,scrollable:s};return this._stateKey=o,this._stateForKey=f,f},_onWheelY:function(t,e){this._onWheel(e)},_onWheelX:function(t,e){this._onWheel(t)},_onWheel:function(t){var e=this.props;this._setNextState(this._calculateState(this.state.position+t,e.size,e.contentSize,e.orientation))},_onMouseDown:function(t){var e;if(t.target!==v.default.findDOMNode(this.refs.face)){var n=t.nativeEvent,r=this.state.isHorizontal?n.offsetX||n.layerX:n.offsetY||n.layerY,o=this.props;r/=this.state.scale,e=this._calculateState(r-.5*this.state.faceSize/this.state.scale,o.size,o.contentSize,o.orientation)}else e={};e.focused=!0,this._setNextState(e),this._mouseMoveTracker.captureMouseMoves(t),v.default.findDOMNode(this).focus()},_onMouseMove:function(t,e){var n=this.props,r=this.state.isHorizontal?t:e;r/=this.state.scale,this._setNextState(this._calculateState(this.state.position+r,n.size,n.contentSize,n.orientation))},_onMouseMoveEnd:function(){this._nextState=null,this._mouseMoveTracker.releaseMouseMoves(),this.setState({isDragging:!1})},_onKeyDown:function(t){var e=t.keyCode;if(e!==u.default.TAB){var n=R,r=0;if(this.state.isHorizontal)switch(e){case u.default.HOME:r=-1,n=this.props.contentSize;break;case u.default.LEFT:r=-1;break;case u.default.RIGHT:r=1;break;default:return}if(!this.state.isHorizontal)switch(e){case u.default.SPACE:r=t.shiftKey?-1:1;break;case u.default.HOME:r=-1,n=this.props.contentSize;break;case u.default.UP:r=-1;break;case u.default.DOWN:r=1;break;case u.default.PAGE_UP:r=-1,n=this.props.size;break;case u.default.PAGE_DOWN:r=1,n=this.props.size;break;default:return}t.preventDefault();var o=this.props;this._setNextState(this._calculateState(this.state.position+n*r,o.size,o.contentSize,o.orientation))}},_onFocus:function(){this.setState({focused:!0})},_onBlur:function(){this.setState({focused:!1})},_blur:function(){var t=v.default.findDOMNode(this);if(t)try{this._onBlur(),t.blur()}catch(t){}},_setNextState:function(t,e){e=e||this.props;var n=e.position,r=this.state.position!==t.position;if(void 0===n){var o=r?this._didScroll:void 0;this.setState(t,o)}else{if(n!==t.position)return void(void 0!==t.position&&t.position!==this.state.position&&this.props.onScroll(t.position));this.setState(t)}r&&D!==this&&(D&&D._blur(),D=this)},_didScroll:function(){this.props.onScroll(this.state.position)}});N.KEYBOARD_SCROLL_AMOUNT=R,N.SIZE=parseInt((0,x.default)("scrollbar-size"),10),t.exports=N},function(t,e){"use strict";function n(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(h=/\b(iPhone|iP[ao]d)/.exec(t),v=/\b(iP[ao]d)/.exec(t),d=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),m=/Mobile/i.exec(t),p=!!/Win64/.exec(t),e){r=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:r,o=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,a=e[4]?parseFloat(e[4]):NaN,a?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),u=e&&e[1]?parseFloat(e[1]):NaN):u=NaN}else r=o=i=u=a=NaN;if(n){if(n[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;c=!!n[2],f=!!n[3]}else l=c=f=!1}}var r,o,i,a,u,s,l,c,f,d,p,h,v,g,m,y=!1,b={ie:function(){return n()||r},ieCompatibilityMode:function(){return n()||s>r},ie64:function(){return b.ie()&&p},firefox:function(){return n()||o},opera:function(){return n()||i},webkit:function(){return n()||a},safari:function(){return b.webkit()},chrome:function(){return n()||u},windows:function(){return n()||c},osx:function(){return n()||l},linux:function(){return n()||f},iphone:function(){return n()||h},mobile:function(){return n()||h||v||d||m},nativeApp:function(){return n()||g},android:function(){return n()||d},ipad:function(){return n()||v}};t.exports=b},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e){(function(e){"use strict";var n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||e.msCancelAnimationFrame||e.clearTimeout;t.exports=n}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){if(r.hasOwnProperty(t))return r[t];throw new Error('cssVar("'+t+'"): Unexpected class transformation.')}var r={"scrollbar-face-active-color":"#7d7d7d","scrollbar-face-color":"#c2c2c2","scrollbar-face-margin":"4px","scrollbar-face-radius":"6px","scrollbar-size":"15px","scrollbar-size-large":"17px","scrollbar-track-color":"rgba(255, 255, 255, 0.8)","fbui-white":"#fff","fbui-desktop-background-light":"#f6f7f8"};n.CSS_VARS=r,t.exports=n},function(t,e){"use strict";function n(t,e,n,r,o){function i(){for(var o=arguments.length,u=Array(o),s=0;s=t&&l&&(u=!0,n()))}}var a=0,u=!1,s=!1,l=!1,c=void 0;i()}e.__esModule=!0;var r=Array.prototype.slice;e.loopAsync=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){function t(t){try{t=t||window.history.state||{}}catch(e){t={}}var e=f.getWindowPath(),n=t,r=n.key,o=void 0;r?o=d.readState(r):(o=null,r=b.createKey(),m&&window.history.replaceState(i({},t,{key:r}),null));var a=l.parsePath(e);return b.createLocation(i({},a,{state:o}),void 0,r)}function e(e){function n(e){void 0!==e.state&&r(t(e.state))}var r=e.transitionTo;return f.addEventListener(window,"popstate",n),function(){f.removeEventListener(window,"popstate",n)}}function n(t){var e=t.basename,n=t.pathname,r=t.search,o=t.hash,i=t.state,a=t.action,u=t.key;if(a!==s.POP){d.saveState(u,i);var l=(e||"")+n+r+o,c={key:u};if(a===s.PUSH){if(y)return window.location.href=l,!1;window.history.pushState(c,null,l)}else{if(y)return window.location.replace(l),!1;window.history.replaceState(c,null,l)}}}function r(t){1===++_&&(x=e(b));var n=b.listenBefore(t);return function(){n(),0===--_&&x()}}function o(t){1===++_&&(x=e(b));var n=b.listen(t);return function(){n(),0===--_&&x()}}function a(t){1===++_&&(x=e(b)),b.registerTransitionHook(t)}function p(t){b.unregisterTransitionHook(t),0===--_&&x()}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:u.default(!1);var g=v.forceRefresh,m=f.supportsHistory(),y=!m||g,b=h.default(i({},v,{getCurrentLocation:t,finishTransition:n,saveState:d.saveState})),_=0,x=void 0;return i({},b,{listenBefore:r,listen:o,registerTransitionHook:a,unregisterTransitionHook:p})}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e=0&&e=0&&gh||o>v||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||s){if(c&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&(void 0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(l.nvPointerEventsClass)))return;return a.elementMouseout({mouseX:r,mouseY:o}),t.renderGuideLine(null),void l.hidden(!0)}l.hidden(!1);var f="function"==typeof i.rangeBands,d=void 0;if(f){var p=d3.bisect(i.range(),r)-1;if(!(i.range()[p]+i.rangeBand()>=r))return a.elementMouseout({mouseX:r,mouseY:o}),t.renderGuideLine(null),void l.hidden(!0);d=i.domain()[d3.bisect(i.range(),r)-1]}else d=i.invert(r);a.elementMousemove({mouseX:r,mouseY:o,pointXValue:d}),"dblclick"===d3.event.type&&a.elementDblclick({mouseX:r,mouseY:o,pointXValue:d}),"click"===d3.event.type&&a.elementClick({mouseX:r,mouseY:o,pointXValue:d}),"mousedown"===d3.event.type&&a.elementMouseDown({mouseX:r,mouseY:o,pointXValue:d}),"mouseup"===d3.event.type&&a.elementMouseUp({mouseX:r,mouseY:o,pointXValue:d})}var p=d3.select(this),h=n||960,v=o||400,g=p.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([f]),m=g.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");m.append("g").attr("class","nv-interactiveGuideLine"),s&&(s.on("touchmove",d).on("mousemove",d,!0).on("mouseout",d,!0).on("mousedown",d,!0).on("mouseup",d,!0).on("dblclick",d).on("click",d),t.guideLine=null,t.renderGuideLine=function(e){u&&(t.guideLine&&t.guideLine.attr("x1")===e||r.dom.write(function(){var t=g.select(".nv-interactiveGuideLine").selectAll("line").data(null!=e?[r.utils.NaNtoZero(e)]:[],String);t.enter().append("line").attr("class","nv-guideline").attr("x1",function(t){return t}).attr("x2",function(t){return t}).attr("y1",v).attr("y2",0),t.exit().remove()}))})})}var e={left:0,top:0},n=null,o=null,i=d3.scale.linear(),a=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick","elementMouseDown","elementMouseUp"),u=!0,s=null,l=r.models.tooltip(),c=window.ActiveXObject;return l.duration(0).hideDelay(0).hidden(!1),t.dispatch=a,t.tooltip=l,t.margin=function(n){return arguments.length?(e.top="undefined"!=typeof n.top?n.top:e.top,e.left="undefined"!=typeof n.left?n.left:e.left,t):e},t.width=function(e){return arguments.length?(n=e,t):n},t.height=function(e){return arguments.length?(o=e,t):o},t.xScale=function(e){return arguments.length?(i=e,t):i},t.showGuideLine=function(e){return arguments.length?(u=e,t):u},t.svgContainer=function(e){return arguments.length?(s=e,t):s},t},r.interactiveBisect=function(t,e,n){"use strict";if(!(t instanceof Array))return null;var r;r="function"!=typeof n?function(t){return t.x}:n;var o=function(t,e){return r(t)-e},i=d3.bisector(o).left,a=d3.max([0,i(t,e)-1]),u=r(t[a]);if("undefined"==typeof u&&(u=a),u===e)return a;var s=d3.min([a+1,t.length-1]),l=r(t[s]);return"undefined"==typeof l&&(l=s),Math.abs(l-e)>=Math.abs(u-e)?a:s},r.nearestValueIndex=function(t,e,n){"use strict";var r=1/0,o=null;return t.forEach(function(t,i){var a=Math.abs(e-t);null!=t&&a<=r&&a