=r:"horizontal"===a&&"number"==typeof n&&l>=n)&&(c=c.reverse());var f=b(c,t);if(o&&f.length)return O("Collision prevented on "+t.i+", reverting."),t.x=l,t.y=u,t.moved=!1,e;for(var d=0,p=f.length;dt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function S(e){return[].concat(e).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,i=e.length;rn?n:e},t={},n=0,r=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];n255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},limit:e,type:o,unpack:function(e,t){return void 0===t&&(t=null),e.length>=3?Array.prototype.slice.call(e):"object"==o(e[0])&&t?t.split("").filter(function(t){return void 0!==e[0][t]}).map(function(t){return e[0][t]}):e[0]},last:function(e){if(e.length<2)return null;var t=e.length-1;return"string"==o(e[t])?e[t].toLowerCase():null},PI:a,TWOPI:2*a,PITHIRD:a/3,DEG2RAD:a/180,RAD2DEG:180/a},l={format:{},autodetect:[]},u=s.last,c=s.clip_rgb,f=s.type,d=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===f(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=u(e),i=!1;if(!r){i=!0,l.sorted||(l.autodetect=l.autodetect.sort(function(e,t){return t.p-e.p}),l.sorted=!0);for(var o=0,a=l.autodetect;o4?e[4]:1;return 1===o?[0,0,0,a]:[n>=1?0:255*(1-n)*(1-o),r>=1?0:255*(1-r)*(1-o),i>=1?0:255*(1-i)*(1-o),a]},_=s.unpack,x=s.type;p.prototype.cmyk=function(){return b(this._rgb)},m.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["cmyk"])))},l.format.cmyk=w,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=_(e,"cmyk"),"array"===x(e)&&4===e.length)return"cmyk"}});var E=s.unpack,S=s.last,C=function(e){return Math.round(100*e)/100},O=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=E(e,"hsla"),r=S(e)||"lsa";return n[0]=C(n[0]||0),n[1]=C(100*n[1])+"%",n[2]=C(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},k=s.unpack,M=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=k(e,"rgba"))[0],r=e[1],i=e[2];n/=255,r/=255,i/=255;var o,a,s=Math.min(n,r,i),l=Math.max(n,r,i),u=(l+s)/2;return l===s?(o=0,a=Number.NaN):o=u<.5?(l-s)/(l+s):(l-s)/(2-l-s),n==l?a=(r-i)/(l-s):r==l?a=2+(i-n)/(l-s):i==l&&(a=4+(n-r)/(l-s)),(a*=60)<0&&(a+=360),e.length>3&&void 0!==e[3]?[a,o,u,e[3]]:[a,o,u]},A=s.unpack,T=s.last,P=Math.round,j=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=A(e,"rgba"),r=T(e)||"rgb";return"hsl"==r.substr(0,3)?O(M(n),r):(n[0]=P(n[0]),n[1]=P(n[1]),n[2]=P(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},R=s.unpack,D=Math.round,F=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,o,a=(t=R(t,"hsl"))[0],s=t[1],l=t[2];if(0===s)r=i=o=255*l;else{var u=[0,0,0],c=[0,0,0],f=l<.5?l*(1+s):l+s-l*s,d=2*l-f,p=a/360;u[0]=p+1/3,u[1]=p,u[2]=p-1/3;for(var h=0;h<3;h++)u[h]<0&&(u[h]+=1),u[h]>1&&(u[h]-=1),6*u[h]<1?c[h]=d+6*(f-d)*u[h]:2*u[h]<1?c[h]=f:3*u[h]<2?c[h]=d+(f-d)*(2/3-u[h])*6:c[h]=d;r=(e=[D(255*c[0]),D(255*c[1]),D(255*c[2])])[0],i=e[1],o=e[2]}return t.length>3?[r,i,o,t[3]]:[r,i,o,1]},I=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,L=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,N=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,z=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,B=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,H=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,U=Math.round,W=function(e){var t;if(e=e.toLowerCase().trim(),l.format.named)try{return l.format.named(e)}catch(e){}if(t=e.match(I)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(L)){for(var i=t.slice(1,5),o=0;o<4;o++)i[o]=+i[o];return i}if(t=e.match(N)){for(var a=t.slice(1,4),s=0;s<3;s++)a[s]=U(2.55*a[s]);return a[3]=1,a}if(t=e.match(z)){for(var u=t.slice(1,5),c=0;c<3;c++)u[c]=U(2.55*u[c]);return u[3]=+u[3],u}if(t=e.match(B)){var f=t.slice(1,4);f[1]*=.01,f[2]*=.01;var d=F(f);return d[3]=1,d}if(t=e.match(H)){var p=t.slice(1,4);p[1]*=.01,p[2]*=.01;var h=F(p);return h[3]=+t[4],h}};W.test=function(e){return I.test(e)||L.test(e)||N.test(e)||z.test(e)||B.test(e)||H.test(e)};var G=W,q=s.type;p.prototype.css=function(e){return j(this._rgb,e)},m.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["css"])))},l.format.css=G,l.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===q(e)&&G.test(e))return"css"}});var V=s.unpack;l.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=V(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},m.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["gl"])))},p.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var K=s.unpack,Q=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=K(e,"rgb"),i=r[0],o=r[1],a=r[2],s=Math.min(i,o,a),l=Math.max(i,o,a),u=l-s,c=100*u/255,f=s/(255-u)*100;return 0===u?n=Number.NaN:(i===l&&(n=(o-a)/u),o===l&&(n=2+(a-i)/u),a===l&&(n=4+(i-o)/u),(n*=60)<0&&(n+=360)),[n,c,f]},Y=s.unpack,X=Math.floor,Z=function(){for(var e,t,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var l,u,c,f=(a=Y(a,"hcg"))[0],d=a[1],p=a[2];p*=255;var h=255*d;if(0===d)l=u=c=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var m=X(f/=60),g=f-m,v=p*(1-d),b=v+h*(1-g),y=v+h*g,w=v+h;switch(m){case 0:l=(e=[w,y,v])[0],u=e[1],c=e[2];break;case 1:l=(t=[b,w,v])[0],u=t[1],c=t[2];break;case 2:l=(n=[v,w,y])[0],u=n[1],c=n[2];break;case 3:l=(r=[v,b,w])[0],u=r[1],c=r[2];break;case 4:l=(i=[y,v,w])[0],u=i[1],c=i[2];break;case 5:l=(o=[w,v,b])[0],u=o[1],c=o[2]}}return[l,u,c,a.length>3?a[3]:1]},J=s.unpack,ee=s.type;p.prototype.hcg=function(){return Q(this._rgb)},m.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcg"])))},l.format.hcg=Z,l.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=J(e,"hcg"),"array"===ee(e)&&3===e.length)return"hcg"}});var te=s.unpack,ne=s.last,re=Math.round,ie=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=te(e,"rgba"),r=n[0],i=n[1],o=n[2],a=n[3],s=ne(e)||"auto";void 0===a&&(a=1),"auto"===s&&(s=a<1?"rgba":"rgb");var l=(r=re(r))<<16|(i=re(i))<<8|(o=re(o)),u="000000"+l.toString(16);u=u.substr(u.length-6);var c="0"+re(255*a).toString(16);switch(c=c.substr(c.length-2),s.toLowerCase()){case"rgba":return"#"+u+c;case"argb":return"#"+c+u;default:return"#"+u}},oe=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ae=/^#?([A-Fa-f0-9]{8})$/,se=function(e){if(e.match(oe)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(ae)){9===e.length&&(e=e.substr(1));var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},le=s.type;p.prototype.hex=function(e){return ie(this._rgb,e)},m.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hex"])))},l.format.hex=se,l.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===le(e)&&[3,4,6,7,8,9].includes(e.length))return"hex"}});var ue=s.unpack,ce=s.TWOPI,fe=Math.min,de=Math.sqrt,pe=Math.acos,he=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=ue(e,"rgb"),i=r[0],o=r[1],a=r[2],s=fe(i/=255,o/=255,a/=255),l=(i+o+a)/3,u=l>0?1-s/l:0;return 0===u?n=NaN:(n=(i-o+(i-a))/2,n/=de((i-o)*(i-o)+(i-a)*(o-a)),n=pe(n),a>o&&(n=ce-n),n/=ce),[360*n,u,l]},me=s.unpack,ge=s.limit,ve=s.TWOPI,be=s.PITHIRD,ye=Math.cos,we=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=me(e,"hsi"))[0],a=e[1],s=e[2];return isNaN(o)&&(o=0),isNaN(a)&&(a=0),o>360&&(o-=360),o<0&&(o+=360),(o/=360)<1/3?r=1-((i=(1-a)/3)+(n=(1+a*ye(ve*o)/ye(be-ve*o))/3)):o<2/3?i=1-((n=(1-a)/3)+(r=(1+a*ye(ve*(o-=1/3))/ye(be-ve*o))/3)):n=1-((r=(1-a)/3)+(i=(1+a*ye(ve*(o-=2/3))/ye(be-ve*o))/3)),[255*(n=ge(s*n*3)),255*(r=ge(s*r*3)),255*(i=ge(s*i*3)),e.length>3?e[3]:1]},_e=s.unpack,xe=s.type;p.prototype.hsi=function(){return he(this._rgb)},m.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsi"])))},l.format.hsi=we,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=_e(e,"hsi"),"array"===xe(e)&&3===e.length)return"hsi"}});var Ee=s.unpack,Se=s.type;p.prototype.hsl=function(){return M(this._rgb)},m.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsl"])))},l.format.hsl=F,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ee(e,"hsl"),"array"===Se(e)&&3===e.length)return"hsl"}});var Ce=s.unpack,Oe=Math.min,ke=Math.max,Me=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=Ce(e,"rgb"))[0],a=e[1],s=e[2],l=Oe(o,a,s),u=ke(o,a,s),c=u-l;return i=u/255,0===u?(n=Number.NaN,r=0):(r=c/u,o===u&&(n=(a-s)/c),a===u&&(n=2+(s-o)/c),s===u&&(n=4+(o-a)/c),(n*=60)<0&&(n+=360)),[n,r,i]},Ae=s.unpack,Te=Math.floor,Pe=function(){for(var e,t,n,r,i,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];var l,u,c,f=(a=Ae(a,"hsv"))[0],d=a[1],p=a[2];if(p*=255,0===d)l=u=c=p;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var h=Te(f/=60),m=f-h,g=p*(1-d),v=p*(1-d*m),b=p*(1-d*(1-m));switch(h){case 0:l=(e=[p,b,g])[0],u=e[1],c=e[2];break;case 1:l=(t=[v,p,g])[0],u=t[1],c=t[2];break;case 2:l=(n=[g,p,b])[0],u=n[1],c=n[2];break;case 3:l=(r=[g,v,p])[0],u=r[1],c=r[2];break;case 4:l=(i=[b,g,p])[0],u=i[1],c=i[2];break;case 5:l=(o=[p,g,v])[0],u=o[1],c=o[2]}}return[l,u,c,a.length>3?a[3]:1]},je=s.unpack,Re=s.type;p.prototype.hsv=function(){return Me(this._rgb)},m.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hsv"])))},l.format.hsv=Pe,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=je(e,"hsv"),"array"===Re(e)&&3===e.length)return"hsv"}});var De=18,Fe=.95047,Ie=1,Le=1.08883,Ne=.137931034,ze=.206896552,Be=.12841855,He=.008856452,Ue=s.unpack,$e=Math.pow,We=function(e){return(e/=255)<=.04045?e/12.92:$e((e+.055)/1.055,2.4)},Ge=function(e){return e>He?$e(e,1/3):e/Be+Ne},qe=function(e,t,n){return e=We(e),t=We(t),n=We(n),[Ge((.4124564*e+.3575761*t+.1804375*n)/Fe),Ge((.2126729*e+.7151522*t+.072175*n)/Ie),Ge((.0193339*e+.119192*t+.9503041*n)/Le)]},Ve=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ue(e,"rgb"),r=n[0],i=n[1],o=n[2],a=qe(r,i,o),s=a[0],l=a[1],u=a[2],c=116*l-16;return[c<0?0:c,500*(s-l),200*(l-u)]},Ke=s.unpack,Qe=Math.pow,Ye=function(e){return 255*(e<=.00304?12.92*e:1.055*Qe(e,1/2.4)-.055)},Xe=function(e){return e>ze?e*e*e:Be*(e-Ne)},Ze=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,i,o=(e=Ke(e,"lab"))[0],a=e[1],s=e[2];return r=(o+16)/116,n=isNaN(a)?r:r+a/500,i=isNaN(s)?r:r-s/200,r=Ie*Xe(r),n=Fe*Xe(n),i=Le*Xe(i),[Ye(3.2404542*n-1.5371385*r-.4985314*i),Ye(-.969266*n+1.8760108*r+.041556*i),Ye(.0556434*n-.2040259*r+1.0572252*i),e.length>3?e[3]:1]},Je=s.unpack,et=s.type;p.prototype.lab=function(){return Ve(this._rgb)},m.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lab"])))},l.format.lab=Ze,l.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Je(e,"lab"),"array"===et(e)&&3===e.length)return"lab"}});var tt=s.unpack,nt=s.RAD2DEG,rt=Math.sqrt,it=Math.atan2,ot=Math.round,at=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=tt(e,"lab"),r=n[0],i=n[1],o=n[2],a=rt(i*i+o*o),s=(it(o,i)*nt+360)%360;return 0===ot(1e4*a)&&(s=Number.NaN),[r,a,s]},st=s.unpack,lt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=st(e,"rgb"),r=n[0],i=n[1],o=n[2],a=Ve(r,i,o),s=a[0],l=a[1],u=a[2];return at(s,l,u)},ut=s.unpack,ct=s.DEG2RAD,ft=Math.sin,dt=Math.cos,pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ut(e,"lch"),r=n[0],i=n[1],o=n[2];return isNaN(o)&&(o=0),[r,dt(o*=ct)*i,ft(o)*i]},ht=s.unpack,mt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=ht(e,"lch"))[0],r=e[1],i=e[2],o=pt(n,r,i),a=o[0],s=o[1],l=o[2],u=Ze(a,s,l),c=u[0],f=u[1],d=u[2];return[c,f,d,e.length>3?e[3]:1]},gt=s.unpack,vt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=gt(e,"hcl").reverse();return mt.apply(void 0,n)},bt=s.unpack,yt=s.type;p.prototype.lch=function(){return lt(this._rgb)},p.prototype.hcl=function(){return lt(this._rgb).reverse()},m.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["lch"])))},m.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["hcl"])))},l.format.lch=mt,l.format.hcl=vt,["lch","hcl"].forEach(function(e){return l.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=bt(t,e),"array"===yt(t)&&3===t.length)return e}})});var wt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_t=s.type;p.prototype.name=function(){for(var e=ie(this._rgb,"rgb"),t=0,n=Object.keys(wt);t0;)t[n]=arguments[n+1];if(!t.length&&"string"===_t(e)&&wt[e.toLowerCase()])return"named"}});var xt=s.unpack,Et=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=xt(e,"rgb"),r=n[0],i=n[1],o=n[2];return(r<<16)+(i<<8)+o},St=s.type,Ct=function(e){if("number"==St(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},Ot=s.type;p.prototype.num=function(){return Et(this._rgb)},m.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["num"])))},l.format.num=Ct,l.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===Ot(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var kt=s.unpack,Mt=s.type,At=Math.round;p.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(At)},p.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map(function(t,n){return n<3?!1===e?t:At(t):t})},m.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["rgb"])))},l.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=kt(e,"rgba");return void 0===n[3]&&(n[3]=1),n},l.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=kt(e,"rgba"),"array"===Mt(e)&&(3===e.length||4===e.length&&"number"==Mt(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var Tt=Math.log,Pt=function(e){var t,n,r,i=e/100;return i<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*Tt(n),r=i<20?0:.8274096064007395*(r=i-10)-254.76935184120902+115.67994401066147*Tt(r)):(t=351.97690566805693+.114206453784165*(t=i-55)-40.25366309332127*Tt(t),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*Tt(n),r=255),[t,n,r,1]},jt=s.unpack,Rt=Math.round,Dt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=jt(e,"rgb"),i=r[0],o=r[2],a=1e3,s=4e4,l=.4;s-a>l;){var u=Pt(n=.5*(s+a));u[2]/u[0]>=o/i?s=n:a=n}return Rt(n)};p.prototype.temp=p.prototype.kelvin=p.prototype.temperature=function(){return Dt(this._rgb)},m.temp=m.kelvin=m.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(p,[null].concat(e,["temp"])))},l.format.temp=l.format.kelvin=l.format.temperature=Pt;var Ft=s.type;p.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Ft(e)?t?(this._rgb[3]=e,this):new p([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},p.prototype.clipped=function(){return this._rgb._clipped||!1},p.prototype.darken=function(e){void 0===e&&(e=1);var t=this.lab();return t[0]-=De*e,new p(t,"lab").alpha(this.alpha(),!0)},p.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},p.prototype.darker=p.prototype.darken,p.prototype.brighter=p.prototype.brighten,p.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],i=this[n]();if(r){var o=n.indexOf(r);if(o>-1)return i[o];throw new Error("unknown channel "+r+" in mode "+n)}return i};var It=s.type,Lt=Math.pow;p.prototype.luminance=function(e){if(void 0!==e&&"number"===It(e)){if(0===e)return new p([0,0,0,this._rgb[3]],"rgb");if(1===e)return new p([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n=20,r=function(t,i){var o=t.interpolate(i,.5,"rgb"),a=o.luminance();return Math.abs(e-a)<1e-7||!n--?o:a>e?r(t,o):r(o,i)},i=(t>e?r(new p([0,0,0]),this):r(this,new p([255,255,255]))).rgb();return new p(i.concat([this._rgb[3]]))}return Nt.apply(void 0,this._rgb.slice(0,3))};var Nt=function(e,t,n){return.2126*(e=zt(e))+.7152*(t=zt(t))+.0722*(n=zt(n))},zt=function(e){return(e/=255)<=.03928?e/12.92:Lt((e+.055)/1.055,2.4)},Bt={},Ht=s.type,Ut=function(e,t,n){void 0===n&&(n=.5);for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=r[0]||"lrgb";if(Bt[o]||r.length||(o=Object.keys(Bt)[0]),!Bt[o])throw new Error("interpolation mode "+o+" is not defined");return"object"!==Ht(e)&&(e=new p(e)),"object"!==Ht(t)&&(t=new p(t)),Bt[o](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};p.prototype.mix=p.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Ut.apply(void 0,[this,e,t].concat(n))},p.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new p([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},p.prototype.saturate=function(e){void 0===e&&(e=1);var t=this.lch();return t[1]+=De*e,t[1]<0&&(t[1]=0),new p(t,"lch").alpha(this.alpha(),!0)},p.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var $t=s.type;p.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),i=r[0],o=r[1],a=this[i]();if(o){var s=i.indexOf(o);if(s>-1){if("string"==$t(t))switch(t.charAt(0)){case"+":case"-":a[s]+=+t;break;case"*":a[s]*=+t.substr(1);break;case"/":a[s]/=+t.substr(1);break;default:a[s]=+t}else{if("number"!==$t(t))throw new Error("unsupported value for Color.set");a[s]=t}var l=new p(a,i);return n?(this._rgb=l._rgb,this):l}throw new Error("unknown channel "+o+" in mode "+i)}return a},Bt.rgb=function(e,t,n){var r=e._rgb,i=t._rgb;return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"rgb")};var Wt=Math.sqrt,Gt=Math.pow;Bt.lrgb=function(e,t,n){var r=e._rgb,i=r[0],o=r[1],a=r[2],s=t._rgb,l=s[0],u=s[1],c=s[2];return new p(Wt(Gt(i,2)*(1-n)+Gt(l,2)*n),Wt(Gt(o,2)*(1-n)+Gt(u,2)*n),Wt(Gt(a,2)*(1-n)+Gt(c,2)*n),"rgb")},Bt.lab=function(e,t,n){var r=e.lab(),i=t.lab();return new p(r[0]+n*(i[0]-r[0]),r[1]+n*(i[1]-r[1]),r[2]+n*(i[2]-r[2]),"lab")};var qt=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,h,m,g;return"hsl"===r?(a=e.hsl(),s=t.hsl()):"hsv"===r?(a=e.hsv(),s=t.hsv()):"hcg"===r?(a=e.hcg(),s=t.hcg()):"hsi"===r?(a=e.hsi(),s=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",a=e.hcl(),s=t.hcl()),"h"===r.substr(0,1)&&(l=(i=a)[0],c=i[1],d=i[2],u=(o=s)[0],f=o[1],h=o[2]),isNaN(l)||isNaN(u)?isNaN(l)?isNaN(u)?g=Number.NaN:(g=u,1!=d&&0!=d||"hsv"==r||(m=f)):(g=l,1!=h&&0!=h||"hsv"==r||(m=c)):g=l+n*(u>l&&u-l>180?u-(l+360):u180?u+360-l:u-l),void 0===m&&(m=c+n*(f-c)),new p([g,m,d+n*(h-d)],r)},Vt=function(e,t,n){return qt(e,t,n,"lch")};Bt.lch=Vt,Bt.hcl=Vt,Bt.num=function(e,t,n){var r=e.num(),i=t.num();return new p(r+n*(i-r),"num")},Bt.hcg=function(e,t,n){return qt(e,t,n,"hcg")},Bt.hsi=function(e,t,n){return qt(e,t,n,"hsi")},Bt.hsl=function(e,t,n){return qt(e,t,n,"hsl")},Bt.hsv=function(e,t,n){return qt(e,t,n,"hsv")};var Kt=s.clip_rgb,Qt=Math.pow,Yt=Math.sqrt,Xt=Math.PI,Zt=Math.cos,Jt=Math.sin,en=Math.atan2,tn=function(e){for(var t=1/e.length,n=[0,0,0,0],r=0,i=e;r.9999999&&(n[3]=1),new p(Kt(n))},nn=s.type,rn=Math.pow,on=function(e){var t="rgb",n=m("#ccc"),r=0,i=[0,1],o=[],a=[0,0],s=!1,l=[],u=!1,c=0,f=1,d=!1,p={},h=!0,g=1,v=function(e){if((e=e||["#fff","#000"])&&"string"===nn(e)&&m.brewer&&m.brewer[e.toLowerCase()]&&(e=m.brewer[e.toLowerCase()]),"array"===nn(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t2?function(e){if(null!=s){for(var t=s.length-1,n=0;n=s[n];)n++;return n-1}return 0}(e)/(s.length-2):f!==c?(e-c)/(f-c):1,u=y(u),r||(u=b(u)),1!==g&&(u=rn(u,g)),u=a[0]+u*(1-a[0]-a[1]),u=Math.min(1,Math.max(0,u));var d=Math.floor(1e4*u);if(h&&p[d])i=p[d];else{if("array"===nn(l))for(var v=0;v=w&&v===o.length-1){i=l[v];break}if(u>w&&u2){var u=e.map(function(t,n){return n/(e.length-1)}),d=e.map(function(e){return(e-c)/(f-c)});d.every(function(e,t){return u[t]===e})||(y=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=d[t+1];)t++;var n=(e-d[t])/(d[t+1]-d[t]);return u[t]+n*(u[t+1]-u[t])})}}return i=[c,f],x},x.mode=function(e){return arguments.length?(t=e,_(),x):t},x.range=function(e,t){return v(e),x},x.out=function(e){return u=e,x},x.spread=function(e){return arguments.length?(r=e,x):r},x.correctLightness=function(e){return null==e&&(e=!0),d=e,_(),b=d?function(e){for(var t=w(0,!0).lab()[0],n=w(1,!0).lab()[0],r=t>n,i=w(e,!0).lab()[0],o=t+(n-t)*e,a=i-o,s=0,l=1,u=20;Math.abs(a)>.01&&u-- >0;)r&&(a*=-1),a<0?(s=e,e+=.5*(l-e)):(l=e,e+=.5*(s-e)),i=w(e,!0).lab()[0],a=i-o;return e}:function(e){return e},x},x.padding=function(e){return null!=e?("number"===nn(e)&&(e=[e,e]),a=e,x):a},x.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=l.slice(0);else if(1===t)r=[x(.5)];else if(t>1){var o=i[0],a=i[1]-o;r=an(0,t,!1).map(function(e){return x(o+e/(t-1)*a)})}else{e=[];var u=[];if(s&&s.length>2)for(var c=1,f=s.length,d=1<=f;d?cf;d?c++:c--)u.push(.5*(s[c-1]+s[c]));else u=i;r=u.map(function(e){return x(e)})}return m[n]&&(r=r.map(function(e){return e[n]()})),r},x.cache=function(e){return null!=e?(h=e,x):h},x.gamma=function(e){return null!=e?(g=e,x):g},x.nodata=function(e){return null!=e?(n=m(e),x):n},x};function an(e,t,n){for(var r=[],i=eo;i?a++:a--)r.push(a);return r}var sn=function(e){var t,n,r,i,o,a,s;if(2===(e=e.map(function(e){return new p(e)})).length)t=e.map(function(e){return e.lab()}),o=t[0],a=t[1],i=function(e){var t=[0,1,2].map(function(t){return o[t]+e*(a[t]-o[t])});return new p(t,"lab")};else if(3===e.length)n=e.map(function(e){return e.lab()}),o=n[0],a=n[1],s=n[2],i=function(e){var t=[0,1,2].map(function(t){return(1-e)*(1-e)*o[t]+2*(1-e)*e*a[t]+e*e*s[t]});return new p(t,"lab")};else if(4===e.length){var l;r=e.map(function(e){return e.lab()}),o=r[0],a=r[1],s=r[2],l=r[3],i=function(e){var t=[0,1,2].map(function(t){return(1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*s[t]+e*e*e*l[t]});return new p(t,"lab")}}else if(5===e.length){var u=sn(e.slice(0,3)),c=sn(e.slice(2,5));i=function(e){return e<.5?u(2*e):c(2*(e-.5))}}return i},ln=function(e,t,n){if(!ln[n])throw new Error("unknown blend mode "+n);return ln[n](e,t)},un=function(e){return function(t,n){var r=m(n).rgb(),i=m(t).rgb();return m.rgb(e(r,i))}},cn=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}};ln.normal=un(cn(function(e){return e})),ln.multiply=un(cn(function(e,t){return e*t/255})),ln.screen=un(cn(function(e,t){return 255*(1-(1-e/255)*(1-t/255))})),ln.overlay=un(cn(function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))})),ln.darken=un(cn(function(e,t){return e>t?t:e})),ln.lighten=un(cn(function(e,t){return e>t?e:t})),ln.dodge=un(cn(function(e,t){return 255===e?255:(e=t/255*255/(1-e/255))>255?255:e})),ln.burn=un(cn(function(e,t){return 255*(1-(1-t/255)/(e/255))}));for(var fn=ln,dn=s.type,pn=s.clip_rgb,hn=s.TWOPI,mn=Math.pow,gn=Math.sin,vn=Math.cos,bn=Math.floor,yn=Math.random,wn=Math.log,_n=Math.pow,xn=Math.floor,En=Math.abs,Sn=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===o(e)&&(e=Object.values(e)),e.forEach(function(e){t&&"object"===o(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,en.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=function(e,t){return Cn(n,e,t)},n},Cn=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==o(e)&&(e=Sn(e));var r=e.min,i=e.max,a=e.values.sort(function(e,t){return e-t});if(1===n)return[r,i];var s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(i)),"e"===t.substr(0,1)){s.push(r);for(var l=1;l 0");var u=Math.LOG10E*wn(r),c=Math.LOG10E*wn(i);s.push(r);for(var f=1;f200&&(w=!1)}for(var I={},L=0;L=360;)d-=360;i[f]=d}else i[f]=i[f]/o[f];return c/=n,new p(i,t).alpha(c>.99999?1:c,!0)},m.bezier=function(e){var t=sn(e);return t.scale=function(){return on(t)},t},m.blend=fn,m.cubehelix=function(e,t,n,r,i){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===i&&(i=[0,1]);var o,a=0;"array"===dn(i)?o=i[1]-i[0]:(o=0,i=[i,i]);var s=function(s){var l=hn*((e+120)/360+t*s),u=mn(i[0]+o*s,r),c=(0!==a?n[0]+s*a:n)*u*(1-u)/2,f=vn(l),d=gn(l);return m(pn([255*(u+c*(-.14861*f+1.78277*d)),255*(u+c*(-.29227*f-.90649*d)),255*(u+c*(1.97294*f)),1]))};return s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:("array"===dn(n=e)?0==(a=n[1]-n[0])&&(n=n[1]):a=0,s)},s.lightness=function(e){return null==e?i:("array"===dn(e)?(i=e,o=e[1]-e[0]):(i=[e,e],o=0),s)},s.scale=function(){return m.scale(s)},s.hue(n),s},m.mix=m.interpolate=Ut,m.random=function(){for(var e="#",t=0;t<6;t++)e+="0123456789abcdef".charAt(bn(16*yn()));return new p(e,"hex")},m.scale=on,m.analyze=On.analyze,m.contrast=function(e,t){e=new p(e),t=new p(t);var n=e.luminance(),r=t.luminance();return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},m.deltaE=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new p(e),t=new p(t);for(var i=Array.from(e.lab()),o=i[0],a=i[1],s=i[2],l=Array.from(t.lab()),u=l[0],c=l[1],f=l[2],d=kn(a*a+s*s),h=kn(c*c+f*f),m=o<16?.511:.040975*o/(1+.01765*o),g=.0638*d/(1+.0131*d)+.638,v=d<1e-6?0:180*Mn(s,a)/Pn;v<0;)v+=360;for(;v>=360;)v-=360;var b=v>=164&&v<=345?.56+An(.2*Tn(Pn*(v+168)/180)):.36+An(.4*Tn(Pn*(v+35)/180)),y=d*d*d*d,w=kn(y/(y+1900)),_=g*(w*b+1-w),x=d-h,E=a-c,S=s-f,C=(o-u)/(n*m),O=x/(r*g);return kn(C*C+O*O+(E*E+S*S-x*x)/(_*_))},m.distance=function(e,t,n){void 0===n&&(n="lab"),e=new p(e),t=new p(t);var r=e.get(n),i=t.get(n),o=0;for(var a in r){var s=(r[a]||0)-(i[a]||0);o+=s*s}return Math.sqrt(o)},m.limits=On.limits,m.valid=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(p,[null].concat(e))),!0}catch(e){return!1}},m.scales=jn,m.colors=wt,m.brewer=Ln,m}()},ZQUmsjBA:function(e,exports,t){e.exports=t.p+"575de34923c2ff17f16538c6bf9c74b5.js"},ZVafN81z:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("PK8ZLj9Z"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?r[0]:n._UNCLASSIFIED_AREA,o=r.length>1?r[1]:r[0];e[i]||(e[i]=[]),e[i].push(o)});var t=[];return Object.keys(e).sort().forEach(function(r){t.push({label:r,disabled:!0,value:r});var i=o.default.uniq(e[r]).sort().map(function(e){return{value:r===n._UNCLASSIFIED_AREA?e:"".concat(r,"/").concat(e),label:e.replace("_"," ")}});t.push.apply(t,f(i))}),t}),g(h(n),"_renderOption",function(e){return e.disabled?r.default.createElement("span",{key:e.value,title:e.value},e.label):r.default.createElement("span",{key:e.value,title:e.value}," ",e.label)}),n}var n,s,v;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,r["default"].Component),n=t,(s=[{key:"render",value:function(){var e=this,t=this._formatTimezones(),n=this.props,i=n.onChange,o=c(n,["onChange"]);return r.default.createElement(a.default,u({ref:function(t){e.timezone=t}},o,{onChange:i,placeholder:"Pick a time zone",options:t,optionRenderer:this._renderOption}))}}])&&d(n.prototype,s),v&&d(n,v),t}();g(v,"propTypes",{onChange:n.default.func});var b=v;exports.default=b,e.exports=exports.default},ZZUtB8B6:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=d(t("ii0bleBb")),r=d(t("ivGQtwpr")),i=d(t("PcYM+wZ7")),o=d(t("4KF7VOU5")),a=t("os2pWP01"),s=t("DlhHh5IY"),l=t("qOZsORvD"),u=t("mGX5yrPY"),c=d(t("1SPPmkhJ")),f=d(t("7QAbkgSv"));function d(e){return e&&e.__esModule?e:{default:e}}var p=c.default.getActions("Messages"),h=c.default.getActions("CodecTypes"),m=c.default.getActions("Inputs"),g=(f.default.getStore("Messages"),f.default.getStore("CodecTypes")),v=f.default.getStore("Inputs"),b=(0,i.default)({displayName:"RawMessageLoader",propTypes:{onMessageLoaded:n.default.func.isRequired,inputIdSelector:n.default.bool},mixins:[o.default.connect(g),o.default.connect(v)],getDefaultProps:function(){return{inputIdSelector:!1}},getInitialState:function(){return{loading:!1,message:"",remoteAddress:"",codec:"",codecConfiguration:{},inputId:void 0}},componentDidMount:function(){h.list(),this.props.inputIdSelector&&m.list()},DEFAULT_REMOTE_ADDRESS:"127.0.0.1",_loadMessage:function(e){var t=this;e.preventDefault();var n=this.state,r=n.message,i=n.remoteAddress,o=n.codec,a=n.codecConfiguration,s=n.inputId;this.setState({loading:!0});var l=p.loadRawMessage.triggerPromise(r,i||this.DEFAULT_REMOTE_ADDRESS,o,a);l.then(function(e){t.props.onMessageLoaded(e,{message:r,remoteAddress:i,codec:o,codecConfiguration:a,inputId:s})}),l.finally(function(){return t.setState({loading:!1})})},_bindValue:function(e){var t={};t[e.target.name]=e.target.value,this.setState(t)},_formatSelectOptions:function(){var e=this;if(!this.state.codecTypes)return[{value:"none",label:"Loading codec types...",disabled:!0}];var t=Object.keys(this.state.codecTypes);return 0===t.length?[{value:"none",label:"No codecs available"}]:t.filter(function(e){return"random-http-msg"!==e}).map(function(t){var n=e.state.codecTypes[t].name;return{value:t,label:""===n?t:n}}).sort(function(e,t){return e.label.toLowerCase().localeCompare(t.label.toLowerCase())})},_formatInputSelectOptions:function(){var e=this;if(!this.state.inputs)return[{value:"none",label:"Loading inputs...",disabled:!0}];var t=Object.keys(this.state.inputs);return 0===t.length?[{value:"none",label:"No inputs available"}]:t.map(function(t){var n=e.state.inputs[t].id;return{value:n,label:"".concat(n," / ").concat(e.state.inputs[t].title," / ").concat(e.state.inputs[t].name)}}).sort(function(e,t){return e.label.toLowerCase().localeCompare(t.label.toLowerCase())})},_onCodecSelect:function(e){this._bindValue({target:{name:"codec",value:e}}),this.setState({codecConfiguration:{}})},_onInputSelect:function(e){this.setState({inputId:e})},_onCodecConfigurationChange:function(e,t){var n=Object.assign(this.state.codecConfiguration);n[e]=t,this._bindValue({target:{name:"codecConfiguration",value:n}})},_formatConfigField:function(e,t){var n=this.state.codecConfiguration[e],i="RawMessageLoader",o="".concat(i,"-").concat(e);switch(t.type){case"text":return r.default.createElement(u.TextField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});case"number":return r.default.createElement(u.NumberField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});case"boolean":return r.default.createElement(u.BooleanField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});case"dropdown":return r.default.createElement(u.DropdownField,{key:o,typeName:i,title:e,field:t,value:n,onChange:this._onCodecConfigurationChange});default:return null}},_isSubmitDisabled:function(){return!this.state.message||!this.state.codec||this.state.loading},render:function(){var e,t,n=this;if(this.state.codecTypes&&this.state.codec){var i=this.state.codecTypes[this.state.codec].requested_configuration;e=Object.keys(i).sort(function(e,t){return i[e].is_optional-i[t].is_optional}).map(function(e){return n._formatConfigField(e,i[e])})}return this.props.inputIdSelector&&(t=r.default.createElement(s.Input,{id:"input",name:"input",label:r.default.createElement("span",null,"Message input ",r.default.createElement("small",null,"(optional)")),help:"Select the message input ID that should be assigned to the parsed message."},r.default.createElement(l.Select,{id:"input",placeholder:"Select input",options:this._formatInputSelectOptions(),matchProp:"label",onChange:this._onInputSelect,value:this.state.inputId}))),r.default.createElement(a.Row,null,r.default.createElement(a.Col,{md:7},r.default.createElement("form",{onSubmit:this._loadMessage},r.default.createElement("fieldset",null,r.default.createElement(s.Input,{id:"message",name:"message",type:"textarea",label:"Raw message",value:this.state.message,onChange:this._bindValue,rows:3,required:!0}),r.default.createElement(s.Input,{id:"remoteAddress",name:"remoteAddress",type:"text",label:r.default.createElement("span",null,"Source IP address ",r.default.createElement("small",null,"(optional)")),help:"Remote IP address to use as message source. Graylog will use ".concat(this.DEFAULT_REMOTE_ADDRESS," by default."),value:this.state.remoteAddress,onChange:this._bindValue})),t,r.default.createElement("fieldset",null,r.default.createElement("legend",null,"Codec configuration"),r.default.createElement(s.Input,{id:"codec",name:"codec",label:"Message codec",help:"Select the codec that should be used to decode the message.",required:!0},r.default.createElement(l.Select,{id:"codec",placeholder:"Select codec",options:this._formatSelectOptions(),matchProp:"label",onChange:this._onCodecSelect,value:this.state.codec})),e),r.default.createElement(a.Button,{type:"submit",bsStyle:"info",disabled:this._isSubmitDisabled()},this.state.loading?"Loading message...":"Load message"))))}});exports.default=b,e.exports=exports.default},"Ze/ig24s":function(e,exports,t){e.exports=t.p+"75d68f98f81d9fd92bb6a951dad8d465.js"},"Zeu+hqEU":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("HnBp4QXq"),r=t("ak+cODeF");exports.default=function(e){return function(){var t=e.getMonitor(),i=e.getRegistry();!function(e){r(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var o=t.getSourceId();return i.getSource(o,!0).endDrag(t,o),i.unpinSource(),{type:n.END_DRAG}}}},"ZhFGqF+H":function(e,exports,t){(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",g="[object Number]",v="[object Null]",b="[object Object]",y="[object Proxy]",w="[object RegExp]",_="[object Set]",x="[object String]",E="[object Symbol]",S="[object Undefined]",C="[object ArrayBuffer]",O="[object DataView]",k=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[s]=A[l]=A[C]=A[c]=A[O]=A[f]=A[d]=A[p]=A[m]=A[g]=A[b]=A[w]=A[_]=A[x]=A["[object WeakMap]"]=!1;var T="object"==typeof e&&e&&e.Object===Object&&e,P="object"==typeof self&&self&&self.Object===Object&&self,j=T||P||Function("return this")(),R=exports&&!exports.nodeType&&exports,D=R&&"object"==typeof t&&t&&!t.nodeType&&t,F=D&&D.exports===R,I=F&&T.process,L=function(){try{return I&&I.binding&&I.binding("util")}catch(e){}}(),N=L&&L.isTypedArray;function z(e,t){for(var n=-1,r=null==e?0:e.length;++nu))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var d=-1,p=!0,h=n&o?new Oe:void 0;for(s.set(e,t),s.set(t,e);++d-1},Se.prototype.set=function(e,t){var n=this.__data__,r=Ae(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ce.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(fe||Se),string:new Ee}},Ce.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},Ce.prototype.get=function(e){return Le(this,e).get(e)},Ce.prototype.has=function(e){return Le(this,e).has(e)},Ce.prototype.set=function(e,t){var n=Le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,r),this},Oe.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.clear=function(){this.__data__=new Se,this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Se){var i=r.__data__;if(!fe||i.length-1&&e%1==0&&e-1&&e%1==0&&e<=a}function Qe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ye(e){return null!=e&&"object"==typeof e}var Xe=N?function(e){return function(t){return e(t)}}(N):function(e){return Ye(e)&&Ke(e.length)&&!!A[Te(e)]};function Ze(e){return null!=(t=e)&&Ke(t.length)&&!Ve(t)?Me(e):De(e);var t}t.exports=function(e,t){return je(e,t)}}).call(this,t("aY11sVfy"),t("9YbPW59L")(e))},ZiE7XXL5:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ii0bleBb")),r=o(t("ivGQtwpr")),i=o(t("IWoTIbq3"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n=0;--i){var o,a=e[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[])[l]=r:o[s]=r}r=o}return r}(l,t,n)}};e.exports=function(e,t){var a=t?n.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&"function"!=typeof a.decoder)throw new TypeError("Decoder has to be a function.");if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter="string"==typeof a.delimiter||n.isRegExp(a.delimiter)?a.delimiter:i.delimiter,a.depth="number"==typeof a.depth?a.depth:i.depth,a.arrayLimit="number"==typeof a.arrayLimit?a.arrayLimit:i.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder="function"==typeof a.decoder?a.decoder:i.decoder,a.allowDots="boolean"==typeof a.allowDots?a.allowDots:i.allowDots,a.plainObjects="boolean"==typeof a.plainObjects?a.plainObjects:i.plainObjects,a.allowPrototypes="boolean"==typeof a.allowPrototypes?a.allowPrototypes:i.allowPrototypes,a.parameterLimit="number"==typeof a.parameterLimit?a.parameterLimit:i.parameterLimit,a.strictNullHandling="boolean"==typeof a.strictNullHandling?a.strictNullHandling:i.strictNullHandling,""===e||null==e)return a.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=o.split(t.delimiter,a),l=0;l-1},e.prototype.getItemType=function(){return this.store.getState().dragOperation.itemType},e.prototype.getItem=function(){return this.store.getState().dragOperation.item},e.prototype.getSourceId=function(){return this.store.getState().dragOperation.sourceId},e.prototype.getTargetIds=function(){return this.store.getState().dragOperation.targetIds},e.prototype.getDropResult=function(){return this.store.getState().dragOperation.dropResult},e.prototype.didDrop=function(){return this.store.getState().dragOperation.didDrop},e.prototype.isSourcePublic=function(){return this.store.getState().dragOperation.isSourcePublic},e.prototype.getInitialClientOffset=function(){return this.store.getState().dragOffset.initialClientOffset},e.prototype.getInitialSourceClientOffset=function(){return this.store.getState().dragOffset.initialSourceClientOffset},e.prototype.getClientOffset=function(){return this.store.getState().dragOffset.clientOffset},e.prototype.getSourceClientOffset=function(){return r.getSourceClientOffset(this.store.getState().dragOffset)},e.prototype.getDifferenceFromInitialOffset=function(){return r.getDifferenceFromInitialOffset(this.store.getState().dragOffset)},e}();exports.default=a},bARGMa9X:function(e,exports,t){"use strict";(function(n){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=c(t("ii0bleBb")),i=c(t("ivGQtwpr")),o=c(t("vU3dbCc2")),a=t("os2pWP01"),s=c(t("tEFgrcgr")),l=c(t("7QAbkgSv")),u=c(t("nXSFNspX"));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;nthis._numberOfPages())return e;var t=10*Math.ceil((e+1)/10);return Math.min(this._numberOfPages(),t)}},{key:"_onPageChanged",value:function(e){var t=this.props,n=t.currentPage;(0,t.onPageChange)("Previous"===e?n-1:"Next"===e?n+1:Number(e))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.children,o=n.currentPage,s=n.position,l=this.state.paginationWidth,u=[];u.push(i.default.createElement(a.Pager.Item,{href:"#",disabled:1===o,onSelect:function(){return t._onPageChanged("Previous")},key:"previous"},"Previous"));for(var c=function(e){u.push(i.default.createElement(a.Pager.Item,{href:"#",className:e===o&&"active",onSelect:function(){return t._onPageChanged(e)},key:"page".concat(e)},e))},f=this._minPage();f<=this._maxPage();f+=1)c(f);u.push(i.default.createElement(a.Pager.Item,{href:"#",onSelect:function(){return t._onPageChanged("Next")},disabled:o>=this._maxPage(),key:"next"},"Next"));var d=i.default.createElement("ul",{className:"pagination"},u);return e="bottom"===s?i.default.createElement("div",{ref:function(e){t.paginatorAffix=e}},r,i.default.createElement("nav",{className:"text-center",style:{width:l+20}},d)):i.default.createElement("nav",{className:"text-center"},d),i.default.createElement("div",{ref:function(e){t.paginatorContainer=e},id:"message-table-paginator-".concat(s)},e)}}])&&d(n.prototype,r),l&&d(n,l),t}();g(b,"propTypes",{resultCount:r.default.number.isRequired,currentPage:r.default.number.isRequired,children:r.default.oneOfType([r.default.arrayOf(r.default.element),r.default.element]),onPageChange:r.default.func.isRequired,pageSize:r.default.number,position:r.default.string}),g(b,"defaultProps",{pageSize:v.DEFAULT_LIMIT,children:void 0,position:""});var y=b;exports.default=y,e.exports=exports.default}).call(this,t("aY11sVfy"))},bAkv9MOw:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n={},r=exports.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};exports.get=function(e,t,i,o){var a=e+"-"+t+"-"+i+(o?"-server":"");if(n[a])return n[a];var s=r(e,t,i,o);return n[a]=s,s}},bDBSvNud:function(e,exports,t){var n=t("u2mgHbaT");e.exports=function(e){return e==e&&!n(e)}},bJ0ANVZW:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("/RLM/Xkt"),r=t("ak+cODeF"),i=t("u2mgHbaT"),o=t("HnBp4QXq"),a={type:o.INIT_COORDS,payload:{clientOffset:null,sourceClientOffset:null}};exports.default=function(e){return function(t,s){void 0===t&&(t=[]),void 0===s&&(s={publishSource:!0});var l=s.publishSource,u=void 0===l||l,c=s.clientOffset,f=s.getSourceClientOffset,d=e.getMonitor(),p=e.getRegistry();e.dispatch(n.setClientOffset(c)),function(e,t,n){r(!t.isDragging(),"Cannot call beginDrag while dragging.");for(var i=0,o=e;i=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,d);if(null!==h){var m=null;c&&(!function(e){r("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(f),m=f(h)),e.dispatch(n.setClientOffset(c,m));var g=p.getSource(h).beginDrag(d,h);!function(e){r(i(e),"Item must be an object.")}(g),p.pinSource(h);var v=p.getSourceType(h);return{type:o.BEGIN_DRAG,payload:{itemType:v,item:g,sourceId:h,clientOffset:c||null,sourceClientOffset:m||null,isSourcePublic:!!u}}}e.dispatch(a)}}},"bO+NFsu2":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ADD_SOURCE="dnd-core/ADD_SOURCE",exports.ADD_TARGET="dnd-core/ADD_TARGET",exports.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",exports.REMOVE_TARGET="dnd-core/REMOVE_TARGET",exports.addSource=function(e){return{type:exports.ADD_SOURCE,payload:{sourceId:e}}},exports.addTarget=function(e){return{type:exports.ADD_TARGET,payload:{targetId:e}}},exports.removeSource=function(e){return{type:exports.REMOVE_SOURCE,payload:{sourceId:e}}},exports.removeTarget=function(e){return{type:exports.REMOVE_TARGET,payload:{targetId:e}}}},bRH0spL1:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.singletonStore=exports.singletonActions=exports.singleton=void 0;var n=function(e,t){return window.singletons[e]||(window.singletons[e]=t()),window.singletons[e]};exports.singleton=n;exports.singletonActions=function(e,t){return n("".concat(e,"Actions"),t)};exports.singletonStore=function(e,t){return n("".concat(e,"Store"),t)},void 0===window.singletons&&(window.singletons={})},bTNLy28q:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=s(t("ii0bleBb")),r=s(t("ivGQtwpr")),i=t("os2pWP01"),o=t("qOZsORvD"),a=s(t("fZ4OAAo6"));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;nu.getPositionTopMax()?"bottom"===u.state.affixed?u.updateStateAtBottom():u.setState({affixed:"bottom",position:"absolute",top:null},function(){u._isMounted&&u.updateStateAtBottom()}):u.updateState("affix","fixed",n)}},u.getPositionTopMax=function(){return(0,p.default)((0,h.default)(u))-(0,i.default)(f.default.findDOMNode(u))-u.props.offsetBottom},u.updateState=function(e,t,n){if(e!==u.state.affixed||t!==u.state.position||n!==u.state.top){var r="affix"===e?"":e.charAt(0).toUpperCase()+e.substr(1);u.props["onAffix"+r]&&u.props["onAffix"+r](),u.setState({affixed:e,position:t,top:n},function(){u.props["onAffixed"+r]&&u.props["onAffixed"+r]()})}},u.updateStateAtBottom=function(){var e=u.getPositionTopMax(),t=(0,a.default)(f.default.findDOMNode(u)),n=(0,o.default)(t).top;u.updateState("bottom","absolute",e-n)},u.state={affixed:"top",position:null,top:null},u._needPositionUpdate=!1,u}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){var e=this;this._isMounted=!0,this._windowScrollListener=(0,d.default)((0,m.default)(this),"scroll",function(){return e.onWindowScroll()}),this._documentClickListener=(0,d.default)((0,h.default)(this),"click",function(){return e.onDocumentClick()}),this.onUpdate()},t.prototype.componentWillReceiveProps=function(){this._needPositionUpdate=!0},t.prototype.componentDidUpdate=function(){this._needPositionUpdate&&(this._needPositionUpdate=!1,this.onUpdate())},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._windowScrollListener&&this._windowScrollListener.remove(),this._documentClickListener&&this._documentClickListener.remove()},t.prototype.render=function(){var e=c.default.Children.only(this.props.children),t=e.props,i=t.className,o=t.style,a=this.state,s=a.affixed,l={position:a.position,top:a.top},u=void 0,f=void 0;return"top"===s?(u=this.props.topClassName,f=this.props.topStyle):"bottom"===s?(u=this.props.bottomClassName,f=this.props.bottomStyle):(u=this.props.affixClassName,f=this.props.affixStyle),c.default.cloneElement(e,{className:(0,r.default)(u,i),style:n({},l,f,o)})},t}(c.default.Component);v.propTypes={offsetTop:u.default.number,viewportOffsetTop:u.default.number,offsetBottom:u.default.number,topClassName:u.default.string,topStyle:u.default.object,affixClassName:u.default.string,affixStyle:u.default.object,bottomClassName:u.default.string,bottomStyle:u.default.object,onAffix:u.default.func,onAffixed:u.default.func,onAffixTop:u.default.func,onAffixedTop:u.default.func,onAffixBottom:u.default.func,onAffixedBottom:u.default.func},v.defaultProps={offsetTop:0,viewportOffsetTop:null,offsetBottom:0},exports.default=v,e.exports=exports.default},bpwPG6jG:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Widget",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"WidgetConfigModal",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"WidgetCreationModal",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"WidgetEditConfigModal",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"WidgetFooter",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"WidgetHeader",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(exports,"WidgetVisualizationNotFound",{enumerable:!0,get:function(){return l.default}}),t("/xvO5NNp");var n=u(t("pIh2mMl0")),r=u(t("p+rVAM8X")),i=u(t("O2pRYafI")),o=u(t("t+SflOfx")),a=u(t("xwgAz7Xn")),s=u(t("t77z7czl")),l=u(t("jlZGV32V"));function u(e){return e&&e.__esModule?e:{default:e}}},brdXRh1o:function(e,exports,t){e.exports=t.p+"18eda77a98656fccead1ba601a10d759.js"},bxGYHeFD:function(e,exports,t){e.exports=t.p+"ac9180844f3e81f574b9129c7d3de15b.js"},"c59+uKGP":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;tt?r=1:e=n.state.previousNumber&&t!==h.HIGHER||n.state.currentNumber<=n.state.previousNumber&&t!==h.LOWER)&&(t===h.HIGHER&&(e=Math.abs(e-(n.NUMBER_OF_INDICATORS-1))),Math.abs(n.state.percentage)>=n.PERCENTAGE_PER_INDICATOR*e)}),p(f(n),"_getStrokeColor",function(e,t){if(!n._isIndicatorActive(e,t))return m;var r=n.props.config.lower_is_better?g:v,i=n.props.config.lower_is_better?v:g;return t===h.HIGHER?i:r}),p(f(n),"_getHigherStrokeColor",function(e){return n._getStrokeColor(e,h.HIGHER)}),p(f(n),"_getLowerStrokeColor",function(e){return n._getStrokeColor(e,h.LOWER)}),p(f(n),"_setAttribute",function(e,t){return function(n){n&&n.setAttribute(e,t)}}),n}var n,s,b;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,r["default"].Component),n=t,(s=[{key:"componentDidMount",value:function(){this._updateData(this.props.data,this.props.onRenderComplete)}},{key:"componentWillReceiveProps",value:function(e){(0,i.default)(this.props,e)||this._updateData(e.data,this.props.onRenderComplete)}},{key:"render",value:function(){var e,t=this.props,n=t.id,i=t.config,o=t.width,s=t.height;return i.trend&&(e=r.default.createElement("g",{transform:"translate(270,45)"},r.default.createElement("g",{transform:"translate(0,-17)"},r.default.createElement("path",{d:"M0 5 L5 0 L10 5",fill:"none",stroke:this._getHigherStrokeColor(0)}),r.default.createElement("path",{d:"M0 10 L5 5 L10 10",fill:"none",stroke:this._getHigherStrokeColor(1)}),r.default.createElement("path",{d:"M0 15 L5 10 L10 15",fill:"none",stroke:this._getHigherStrokeColor(2)})),r.default.createElement("g",{transform:"translate(0, 2) rotate(180,5,7.5)"},r.default.createElement("path",{d:"M0 5 L5 0 L10 5",fill:"none",stroke:this._getLowerStrokeColor(2)}),r.default.createElement("path",{d:"M0 10 L5 5 L10 10",fill:"none",stroke:this._getLowerStrokeColor(1)}),r.default.createElement("path",{d:"M0 15 L5 10 L10 15",fill:"none",stroke:this._getLowerStrokeColor(0)})))),r.default.createElement("div",{id:"visualization-".concat(n),className:a.default.container},r.default.createElement("svg",{viewBox:"0 0 300 100",className:a.default.number,width:"100%",height:"100%",style:{height:s,width:o}},r.default.createElement("text",{x:"150",y:"45",className:a.default.value,style:{fontSize:this._calculateFontSize()}},this._formatData()),e))}}])&&u(n.prototype,s),b&&u(n,b),t}();p(b,"propTypes",{id:n.default.string.isRequired,config:n.default.object.isRequired,data:n.default.oneOfType([n.default.object,n.default.number]).isRequired,height:n.default.number,width:n.default.number,onRenderComplete:n.default.func}),p(b,"defaultProps",{onRenderComplete:function(){}});var y=b;exports.default=y,e.exports=exports.default},cBp5vKSn:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=c(t("ii0bleBb")),r=c(t("ivGQtwpr")),i=c(t("H/eHg5XM")),o=t("os2pWP01"),a=t("qOZsORvD"),s=c(t("7QAbkgSv")),l=c(t("1SPPmkhJ")),u=t("J6m01YZl");function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n1?{width:180}:{}}),g(h(n),"expandAll",function(){var e=(n.props.messages.length-n.state.expandedMessages.size)/100>.3,t=i.default.Set(n.props.messages.map(function(e){return"".concat(e.index,"-").concat(e.id)}));n.setState({expandedMessages:t,expandAllRenderAsync:e})}),g(h(n),"collapseAll",function(){n.setState({expandedMessages:i.default.Set()})}),g(h(n),"_handleSort",function(e,t,n){e.preventDefault(),b.sort(t,n)}),g(h(n),"_sortIcons",function(e){var t=null,i="sort-order-desc sort-order-item";return t=0===n.props.sortField.toLowerCase().localeCompare(e.toLowerCase())?0===n.props.sortOrder.toLowerCase().localeCompare("desc")?r.default.createElement("span",null,r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"".concat(i," sort-order-active"),flip:"vertical"}),r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"asc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"sort-order-item"}))):r.default.createElement("span",null,r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"".concat("sort-order-item"," sort-order-active")}),r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"desc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:i,flip:"vertical"}))):r.default.createElement("span",{className:"sort-order"},r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"asc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:"sort-order-item"})),r.default.createElement("a",{href:"#",onClick:function(t){return n._handleSort(t,e,"desc")}},r.default.createElement(a.Icon,{name:"sort-amount-asc",className:i,flip:"vertical"}))),r.default.createElement("span",null,t)}),n}var n,s,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(t,r["default"].Component),n=t,(s=[{key:"componentDidMount",value:function(){var e=this;this.state.allStreamsLoaded||v.listStreams().done(function(t){return e._onStreamsLoaded(t)})}},{key:"componentDidUpdate",value:function(){var e=this;this.state.expandAllRenderAsync&&setTimeout(function(){return e.setState({expandAllRenderAsync:!1})},this.EXPAND_ALL_RENDER_ASYNC_DELAY)}},{key:"render",value:function(){var e=this,t=this._fieldColumns();return r.default.createElement("div",{className:"content-col"},r.default.createElement("h1",{className:"pull-left"},"Messages"),r.default.createElement(o.ButtonGroup,{bsSize:"small",className:"pull-right"},r.default.createElement(o.Button,{title:"Expand all messages",onClick:this.expandAll},r.default.createElement(a.Icon,{name:"expand"})),r.default.createElement(o.Button,{title:"Collapse all messages",onClick:this.collapseAll,disabled:0===this.state.expandedMessages.size},r.default.createElement(a.Icon,{name:"compress"}))),r.default.createElement(u.MessageTablePaginator,{currentPage:Number(this.props.page),onPageChange:this.props.onPageChange,pageSize:this.props.pageSize,position:"top",resultCount:this.props.resultCount}),r.default.createElement("div",{className:"search-results-table"},r.default.createElement("div",{className:"table-responsive"},r.default.createElement("div",{className:"messages-container"},r.default.createElement("table",{className:"table table-condensed messages"},r.default.createElement("thead",null,r.default.createElement("tr",null,r.default.createElement("th",{style:{width:180}},"Timestamp ",this._sortIcons("timestamp")),t.toSeq().map(function(t){return r.default.createElement("th",{key:t,style:e._columnStyle(t)},t," ",e._sortIcons(t))}))),this.props.messages.map(function(n){return r.default.createElement(u.MessageTableEntry,{key:"".concat(n.index,"-").concat(n.id),disableSurroundingSearch:e.props.disableSurroundingSearch,message:n,showMessageRow:e.props.selectedFields.contains("message"),selectedFields:t,expanded:e.state.expandedMessages.contains("".concat(n.index,"-").concat(n.id)),toggleDetail:e._toggleMessageDetail,inputs:e.props.inputs,streams:e.props.streams,allStreams:e.state.allStreams,allStreamsLoaded:e.state.allStreamsLoaded,nodes:e.props.nodes,highlight:e.props.highlight,highlightMessage:b.highlightMessage,expandAllRenderAsync:e.state.expandAllRenderAsync,searchConfig:e.props.searchConfig})}))))),r.default.createElement(u.MessageTablePaginator,{currentPage:Number(this.props.page),onPageChange:this.props.onPageChange,pageSize:this.props.pageSize,position:"bottom",resultCount:this.props.resultCount},r.default.createElement(o.ButtonGroup,{bsSize:"small",className:"pull-right",style:{position:"absolute",marginTop:20,right:10}},r.default.createElement(o.Button,{title:"Expand all messages",onClick:this.expandAll},r.default.createElement(a.Icon,{name:"expand"})),r.default.createElement(o.Button,{title:"Collapse all messages",onClick:this.collapseAll,disabled:0===this.state.expandedMessages.size},r.default.createElement(a.Icon,{name:"compress"})))))}}])&&d(n.prototype,s),l&&d(n,l),t}();g(w,"propTypes",{disableSurroundingSearch:n.default.bool,highlight:n.default.bool.isRequired,inputs:n.default.object.isRequired,messages:n.default.array.isRequired,nodes:n.default.object.isRequired,onPageChange:n.default.func,page:n.default.number.isRequired,pageSize:n.default.number,resultCount:n.default.number.isRequired,selectedFields:n.default.object.isRequired,sortField:n.default.string.isRequired,sortOrder:n.default.string.isRequired,streams:n.default.object.isRequired,searchConfig:n.default.object.isRequired}),g(w,"defaultProps",{disableSurroundingSearch:!1,onPageChange:function(e){b.page=e}});var _=w;exports.default=_,e.exports=exports.default},cCRmAcOk:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"FieldStatistics",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"FieldQuickValues",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(exports,"FieldGraphs",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(exports,"LegacyFieldGraph",{enumerable:!0,get:function(){return s.default}});var n=t("IQgAPhpj"),r=l(t("WquURH+Q")),i=l(t("NtfrhZUN")),o=l(t("zc7VLnfk")),a=l(t("KN5KfcWY")),s=l(t("PBqaqikg"));function l(e){return e&&e.__esModule?e:{default:e}}var u=new n.PluginManifest({},{fieldAnalyzers:[{refId:"fieldStatisticsComponent",displayName:"Statistics",component:i.default,displayPriority:2},{refId:"fieldQuickValuesComponent",displayName:"Quick values",component:o.default,displayPriority:1},{refId:"fieldGraphsComponent",displayName:"Generate chart",component:a.default,displayPriority:0},{refId:"fieldAnalyzerMapComponent",displayName:"World Map",component:r.default,displayPriority:100}]}),c=n.PluginStore.exports("fieldAnalyzers").map(function(e){return e.refId});u.exports.fieldAnalyzers.every(function(e){return c.includes(e.refId)})||n.PluginStore.register(u)},"cHkQCe+v":function(e,exports,t){var n=t("oPTuas+D"),r=t("BhV0e01c");e.exports=function(e){return n(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++iNumber(l)?l:S})}if(_||this.props.lockAspectRatio&&!w){S=b+(g-p)/r;this.setState({maxWidth:S>Number(l)?l:S})}if(x&&this.resizable){S=(h-v)/r+this.resizable.size.height;this.setState({maxHeight:S>Number(u)?u:S})}if(E||this.props.lockAspectRatio&&!x){S=y+(v-h)/r;this.setState({maxHeight:S>Number(u)?u:S})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(e,t,n)},t.prototype.onResize=function(e,t,n,r){var i,o,a=this.getOffsetFromParent();/left/i.test(t)&&(i=this.state.original.x-r.width,this.draggable.setState({x:i}),i+=a.left),/top/i.test(t)&&(o=this.state.original.y-r.height,this.draggable.setState({y:o}),o+=a.top),void 0===i&&(i=this.getDraggablePosition().x+a.left),void 0===o&&(o=this.getDraggablePosition().y+a.top),this.resizingPosition={x:i,y:o},this.props.onResize&&this.props.onResize(e,t,n,r,{x:i,y:o})},t.prototype.onResizeStop=function(e,t,n,r){this.resizing=!1;var i=this.getMaxSizesFromProps(),o=i.maxWidth,a=i.maxHeight;this.setState({maxWidth:o,maxHeight:a}),this.props.onResizeStop&&this.props.onResizeStop(e,t,n,r,this.resizingPosition)},t.prototype.updateSize=function(e){this.resizable&&this.resizable.updateSize({width:e.width,height:e.height})},t.prototype.updatePosition=function(e){this.draggable.setState(e)},t.prototype.getOffsetFromParent=function(){var e=this.props.scale,t=this.getParent(),n=this.getSelfElement();if(!t||null===n)return{top:0,left:0};var r=t.getBoundingClientRect(),i=r.left,o=r.top,a=n.getBoundingClientRect(),s=this.getDraggablePosition();return{left:a.left-i-s.x*e,top:a.top-o-s.y*e}},t.prototype.render=function(){var e=this.props,t=e.disableDragging,n=e.style,o=e.dragHandleClassName,u=e.position,c=e.onMouseDown,f=e.onMouseUp,d=e.dragAxis,p=e.dragGrid,h=e.bounds,m=e.enableUserSelectHack,g=e.cancel,v=e.children,b=(e.onResizeStart,e.onResize,e.onResizeStop,e.onDragStart,e.onDrag,e.onDragStop,e.resizeHandleStyles),y=e.resizeHandleClasses,w=e.resizeHandleComponent,_=e.enableResizing,x=e.resizeGrid,E=e.resizeHandleWrapperClass,S=e.resizeHandleWrapperStyle,C=e.scale,O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i= 5"),n.default.createElement(o.Row,null,n.default.createElement(o.Col,{md:6},n.default.createElement("form",{className:"form",onSubmit:this._onSave},n.default.createElement("fieldset",{className:c.default.optionsFieldSet},n.default.createElement(a.Input,{type:"number",id:"limit",name:"limit",label:"Number of top/bottom values",autoFocus:!0,required:!0,onChange:this._onChange,value:this.state.limit}),r,n.default.createElement(o.FormGroup,null,n.default.createElement(o.ControlLabel,null,"Sort options"),n.default.createElement(a.Input,{type:"radio",id:"top-values-desc-option",name:"order",label:"Top values",checked:"desc"===this.state.order,value:"desc",onChange:this._onChange}),n.default.createElement(a.Input,{type:"radio",id:"top-values-asc-option",name:"order",label:"Bottom values",checked:"asc"===this.state.order,value:"asc",onChange:this._onChange})),n.default.createElement(o.FormGroup,null,n.default.createElement(o.ControlLabel,null,"Stacked fields"),n.default.createElement(s.MultiSelect,{options:t,value:this.state.stackedFields,disabled:this.props.disableStackedFields,placeholder:f,onChange:this._onStackedFieldChange})),i,n.default.createElement(o.ButtonToolbar,null,n.default.createElement(o.Button,{type:"submit",bsStyle:"success",bsSize:"small"},"Update"),n.default.createElement(o.Button,{bsSize:"small",onClick:this._onCancel},"Cancel"))))))}}])&&p(r.prototype,f),b&&p(r,b),t}();v(b,"propTypes",{limit:r.default.number.isRequired,tableSize:r.default.number.isRequired,order:r.default.string.isRequired,field:r.default.string.isRequired,stackedFields:r.default.string,stackedFieldsOptions:r.default.arrayOf(r.default.object).isRequired,disableStackedFields:r.default.bool,interval:r.default.string,isHistogram:r.default.bool.isRequired,onSave:r.default.func.isRequired,onCancel:r.default.func.isRequired}),v(b,"defaultProps",{disableStackedFields:!1});var y=b;exports.default=y,e.exports=exports.default},cWz9qwug:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ContactUs",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(exports,"DocumentationLink",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(exports,"SmallSupportLink",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(exports,"SupportLink",{enumerable:!0,get:function(){return o.default}});var n=a(t("I/k3khEC")),r=a(t("956JmyQG")),i=a(t("SREsqpJO")),o=a(t("RPVB9KNm"));function a(e){return e&&e.__esModule?e:{default:e}}},cjIFmnMQ:function(e,exports){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},"cmJ2C+I6":function(e,exports,t){e.exports=t.p+"56a36d379a0969374b751b74d1fe5436.js"},cpQ7ef1b:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=a(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=a(t("wNbjxLFG")),o=t("os2pWP01");function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.sibling,n=void 0!==t&&t;return(0,r.css)([""," .dropdown-menu{> li > a{color:",";:hover,:focus{color:",";background-color:",";}}> .active > a{background-color:",";color:",";:hover,:focus{background-color:",";color:",";}}> .disabled > a{color:",";:hover,:focus{background-color:",";color:",";}}}"],n&&"& ~",i.default.primary.tre,o.util.contrastingColor(i.default.secondary.due),i.default.secondary.due,i.default.tertiary.due,o.util.contrastingColor(i.default.tertiary.due),i.default.tertiary.uno,o.util.contrastingColor(i.default.tertiary.uno),o.util.contrastingColor(i.default.primary.tre,"AA"),i.default.secondary.due,o.util.contrastingColor(i.default.primary.tre,"AAA"))};exports.default=a,e.exports=exports.default},e9JqUn9W:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("1SPPmkhJ")),r=o(t("7QAbkgSv")),i=o(t("Mcd/Xly4"));function o(e){return e&&e.__esModule?e:{default:e}}var a=n.default.getActions("Alerts"),s=r.default.getStore("Streams"),l={streams:[],initialize:function(){var e=this;s.listStreams().then(function(t){e.streams=t})},fillAlertAnnotator:function(e,t,n,r){var i=this;if(e&&e[0]&&e[0].x){var o=e[0].x;(t?a.list.triggerPromise(t,o):a.listAllStreams.triggerPromise(o)).then(function(e){i._addAnnotations(e.alerts,n),"function"==typeof r&&r()})}},_addAnnotations:function(e,t){var n=this;e.length>0&&!this.streams&&console.warn("Could not resolve stream names on alert annotations: stream list was not loaded."),e.forEach(function(e){var r=i.default.fromUTCDateTime(e.triggered_at).toMoment().unix();t.add(r,n._getAlertAnnotation(e)),t.update()})},_getAlertAnnotation:function(e){var t;return this.streams&&(t=this.streams.filter(function(t){return t.id===e.stream_id})[0])," Stream \"".concat((t=t||{title:"Undefined"}).title,'" triggered an alert: ').concat(e.description)}};l.initialize();var u=l;exports.default=u,e.exports=exports.default},eCP9gG8B:function(e,exports){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r0?k+O:""}},ej3mU2x1:function(e,exports,t){e.exports=t.p+"59ee52f1f4039ec528f2204c77117956.js"},enBdM1XB:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=o(t("ivGQtwpr")),r=o(t("ii0bleBb")),i=t("os2pWP01");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n"):Array.isArray(e)?e.join(", "):String(e),n.default.createElement("li",{key:"".concat(o,"-").concat(t)},n.default.createElement("div",{className:"key"},t,":")," ",n.default.createElement("div",{className:"value"},i))}),f(u(r),"_formatPasswordField",function(e,t){var i=r.props.id;return n.default.createElement("li",{key:"".concat(i,"-").concat(t)},n.default.createElement("div",{className:"key"},t,":"),n.default.createElement("div",{className:"value"},r.PASSWORD_PLACEHOLDER))}),f(u(r),"_formatConfiguration",function(e,t,i){if(!t)return"";var o=Object.keys(t).sort().map(function(e){var n=t[e],o=i&&i.requested_configuration?i.requested_configuration[e]:void 0;return o&&o.attributes.indexOf("is_password")>-1?r._formatPasswordField(n,e):r._formatRegularField(n,e)});return o.length<1&&o.push(n.default.createElement("li",{key:"placeholder"},"-- no configuration --")),n.default.createElement("ul",null,o)}),r}var r,o,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,n["default"].Component),r=t,(o=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.configuration,o=e.typeDefinition;return n.default.createElement(i.Well,{bsSize:"small",className:"configuration-well react-configuration-well"},this._formatConfiguration(t,r,o))}}])&&s(r.prototype,o),d&&s(r,d),t}();f(d,"propTypes",{id:r.default.string.isRequired,configuration:r.default.any,typeDefinition:r.default.object}),f(d,"defaultProps",{configuration:void 0,typeDefinition:{}});var p=d;exports.default=p,e.exports=exports.default},enjB4QzD:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChromePointer=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.ChromePointer=function(){var e=(0,r.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return n.default.createElement("div",{style:e.picker})};exports.default=o},eor5MVfv:function(e,exports,t){var n=t("wZCk8eAc");e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},"erY/L2X9":function(e,exports,t){var n=t("OZDaeQRv");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},esOzjksv:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=t("ak+cODeF"),r=!1,i=function(){function e(e){this.internalMonitor=e.getMonitor()}return e.prototype.receiveHandlerId=function(e){this.targetId=e},e.prototype.canDrop=function(){n(!r,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return r=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{r=!1}},e.prototype.isOver=function(e){return this.internalMonitor.isOverTarget(this.targetId,e)},e.prototype.getItemType=function(){return this.internalMonitor.getItemType()},e.prototype.getItem=function(){return this.internalMonitor.getItem()},e.prototype.getDropResult=function(){return this.internalMonitor.getDropResult()},e.prototype.didDrop=function(){return this.internalMonitor.didDrop()},e.prototype.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},e.prototype.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},e.prototype.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},e.prototype.getClientOffset=function(){return this.internalMonitor.getClientOffset()},e.prototype.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();exports.TargetMonitor=i,exports.default=function(e){return new i(e)}},et3biX5x:function(e,exports,t){e.exports=t.p+"17af9478fec68703338004d5d3763199.js"},eyc2cEAy:function(e,exports,t){e.exports=t.p+"35b142b2ed7e122864e44a2d1d5fb28d.js"},"f//VuARZ":function(e,exports,t){e.exports=t.p+"98adfb0e6de1309dc4fccc43167bd6f2.js"},fD2cps9S:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=u(t("ii0bleBb")),r=u(t("ivGQtwpr")),i=u(t("PcYM+wZ7")),o=u(t("DJcN75oM")),a=u(t("y6gqf0G9")),s=t("DlhHh5IY"),l=t("qwOa7NSh");function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,i.default)({displayName:"AlertForm",propTypes:{onSubmit:n.default.func.isRequired},contextTypes:{intl:n.default.object.isRequired},mixins:[o.default],componentWillMount:function(){var e={placeholderTitle:this.context.intl.formatMessage({id:"wizard.placeholderCloneTitle",defaultMessage:"A descriptive name of the new alert rule"})};this.setState({messages:e})},getInitialState:function(){return{title:"",description:""}},_resetValues:function(){this.setState({title:""}),this.setState({description:""})},_onSubmit:function(){this.props.onSubmit(this.state.origTitle,this.state.title,this.state.description),this.refs.modal.close()},open:function(e){this.setState({origTitle:e}),this._resetValues(),this.refs.modal.open()},close:function(){this.refs.modal.close()},_onValueChanged:function(e){var t,n,r;this.setState((t={},n=e.target.name,r=e.target.value,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))},render:function(){return r.default.createElement(a.default,{ref:"modal",title:r.default.createElement(l.FormattedMessage,{id:"wizard.cloneAlertRule",defaultMessage:'Cloning Alert Rule "{title}"',values:{title:this.state.origTitle}}),onSubmitForm:this._onSubmit,cancelButtonText:r.default.createElement(l.FormattedMessage,{id:"wizard.cancel",defaultMessage:"Cancel"}),submitButtonText:r.default.createElement(l.FormattedMessage,{id:"wizard.save",defaultMessage:"Save"})},r.default.createElement(s.Input,{id:"title",type:"text",required:!0,label:r.default.createElement(l.FormattedMessage,{id:"wizard.title",defaultMessage:"Title"}),name:"title",placeholder:this.state.messages.placeholderTitle,onChange:this._onValueChanged,autoFocus:!0}),r.default.createElement(s.Input,{id:"description",type:"text",label:r.default.createElement(l.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),name:"description",onChange:this._onValueChanged}))}});exports.default=c,e.exports=exports.default},"fT+KanPF":function(e,exports,t){e.exports=t.p+"f1cba92ba013e9c7c1b5d8d890acc6f3.js"},fTtZer2A:function(e,exports,t){"use strict";exports.__esModule=!0,exports.default=exports.EXITING=exports.ENTERED=exports.ENTERING=exports.EXITED=exports.UNMOUNTED=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ii0bleBb")),r=a(t("ivGQtwpr")),i=a(t("vU3dbCc2")),o=t("NxirUgr1");t("e122pN7r");function a(e){return e&&e.__esModule?e:{default:e}}var s="unmounted";exports.UNMOUNTED=s;var l="exited";exports.EXITED=l;var u="entering";exports.ENTERING=u;var c="entered";exports.ENTERED=c;exports.EXITING="exiting";var f=function(e){var t,n;function o(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=l,r.appearStatus=u):i=c:i=t.unmountOnExit||t.mountOnEnter?s:l,r.state={status:i},r.nextCallback=null,r}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.getChildContext=function(){return{transitionGroup:null}},o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==c&&(t=u):n!==u&&n!==c||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:s})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:u},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,function(){n.safeSetState({status:c},function(){n.props.onEntered(e,i)})})})):this.safeSetState({status:c},function(){n.props.onEntered(e)})},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:l},function(){t.props.onExited(e)})})})):this.safeSetState({status:l},function(){t.props.onExited(e)})},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,"function"==typeof n)return n(e,i);var o=r.default.Children.only(n);return r.default.cloneElement(o,i)},o}(r.default.Component);function d(){}f.contextTypes={transitionGroup:n.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var p=(0,o.polyfill)(f);exports.default=p},fZ4OAAo6:function(e,exports,t){var n=t("4n0j/lOJ");"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t("5omYMvbi")(n,r);n.locals&&(e.exports=n.locals)},fa5q4Bq7:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=m(t("ivGQtwpr")),r=m(t("NV2C8ebe")),i=t("ii0bleBb"),o=t("/H8ohJ6c"),a=m(t("6HZFg4d4")),s=m(t("nWIS8De6")),l=m(t("/LO7rk3x")),u=m(t("cIusrLvy")),c=t("os2pWP01"),f=m(t("P7iCYbBy")),d=m(t("cpQ7ef1b")),p=m(t("B0I5DBk0")),h=m(t("6VM4uOSz"));function m(e){return e&&e.__esModule?e:{default:e}}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n-1}},"gS+o5XrU":function(e,exports,t){e.exports=t.p+"14f102a63e9d6f0187e8e822099d2f16.js"},gf8Vy4wu:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=t("KX2Ezx4E"),i=t("tUPJ+u4I"),o=t("SMGljI5q"),a=(n=t("PV/MXHm+"))&&n.__esModule?n:{default:n};var s=function(e){var t=e.bsStyle,n=function(e){var n="link"===t,a=function(e){return n?e:o.util.contrastingColor(e)},s=function(e,t){return n?t:(e<0?i.lighten:i.darken)(Math.abs(e),t)},l=(0,i.getLuminance)(e)>.5?i.darken:i.lighten,u=n?"transparent":e,c=n?"transparent":l(.05,e),f=a(e),d=n?"transparent":l(.1,e),p=n?"transparent":l(.15,e),h=a(l(.1,e)),m=n?"transparent":l(.2,e),g=n?"transparent":l(.15,e),v=a(l(.2,e));return(0,r.css)(["background-color:",";border-color:",";color:",";transition:background-color 150ms ease-in-out,border 150ms ease-in-out,color 150ms ease-in-out;:hover{background-color:",";border-color:",";color:",";}&.active{background-color:",";border-color:",";color:",";:hover{background-color:",";border-color:",";color:",";}}&[disabled],&.disabled{background-color:",";border-color:",";color:",";:hover{background-color:",";border-color:",";color:",";}}"],u,c,f,s(.05,u),s(.05,c),s(.05,f),d,p,h,s(.05,d),s(.05,p),s(.05,h),m,g,v,s(-.05,m),s(-.05,g),s(-.05,v))};return(0,a.default)(n,{link:{teinte:n(o.teinte.tertiary.quattro)}})};exports.default=s,e.exports=exports.default},"gnVokHG/":function(e,exports,t){e.exports=t.p+"b06871f281fee6b241d60582ae9369b9.ttf"},gnucK2Fx:function(e,exports,t){e.exports=t.p+"c7d3041669874ef8ad71f336ae87e32a.js"},grghezTV:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ivGQtwpr")),r=h(t("PcYM+wZ7")),i=h(t("7wHi4ydR")),o=t("qwOa7NSh"),a=h(t("z/eN47+5")),s=t("os2pWP01"),l=h(t("a4RCL6F0")),u=t("qOZsORvD"),c=t("wkvtUUMm"),f=h(t("TSSCj36W")),d=h(t("6H5fCDEz")),p=h(t("Mcd/Xly4"));function h(e){return e&&e.__esModule?e:{default:e}}var m=t("5mip0w5Y"),g=navigator.language.split(/[-_]/)[0];(0,o.addLocaleData)(m);var v={fr:a.default},b=(0,r.default)({displayName:"ExportListPage",getInitialState:function(){return{}},componentDidMount:function(){var e=this;l.default.list().then(function(t){e.setState({alertLists:t})})},isEmpty:function(e){return void 0===e||("function"==typeof e.count?0===e.count():0===e.length)},selectAllAlertLists:function(){var e=this;Object.keys(this.refs).forEach(function(t){0===t.indexOf("alertLists")&&(e.refs[t].checked=!0)})},formatAlertList:function(e){return n.default.createElement("div",{className:"checkbox",key:"alertList_checkbox-".concat(e.title)},n.default.createElement("label",{className:"checkbox"},n.default.createElement("input",{ref:"alertLists.".concat(e.title),type:"checkbox",name:"alertLists",id:"alertList_".concat(e.title),value:e.title}),e.title),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldDescription",defaultMessage:"Description"}),": ",n.default.createElement("tt",null,e.description)),n.default.createElement("span",{className:"help-inline"},n.default.createElement(o.FormattedMessage,{id:"wizard.fieldLists",defaultMessage:"Lists"}),": ",n.default.createElement("tt",null,e.lists)))},onSubmit:function(e){var t=this;e.preventDefault();var n={titles:[]};Object.keys(this.refs).forEach(function(e){0===e.indexOf("alertLists")&&!0===t.refs[e].checked&&n.titles.push(t.refs[e].value)}),l.default.exportAlertLists(n).then(function(e){d.default.success("Successfully export alert lists. Starting download...","Success!");var t=p.default.ignoreTZ(p.default.now()).toString(p.default.Formats.DATETIME).replace(/:/g,"").replace(/ /g,"_");f.default.save(e,t+"_alert_lists.json","application/json","utf-8")})},render:function(){return n.default.createElement(o.IntlProvider,{locale:g,messages:v[g]},n.default.createElement(u.DocumentTitle,{title:"Export list"},n.default.createElement("div",null,n.default.createElement(u.PageHeader,{title:n.default.createElement(o.FormattedMessage,{id:"wizard.exportWizardList",defaultMessage:"Wizard: Export lists"})},n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.exportAlertList",defaultMessage:"You can export a list."})),n.default.createElement("span",null,n.default.createElement(o.FormattedMessage,{id:"wizard.documentationlist",defaultMessage:"Read more about Wizard lists in the documentation."})),n.default.createElement("span",null,n.default.createElement(c.LinkContainer,{to:i.default.pluginRoute("WIZARD_LISTS")},n.default.createElement(s.Button,{bsStyle:"info"},n.default.createElement(o.FormattedMessage,{id:"wizard.backlist",defaultMessage:"Back to lists"})))," ")),n.default.createElement(s.Row,{className:"content"},n.default.createElement(s.Col,{md:6},n.default.createElement("form",{className:"form-horizontal build-content-pack",onSubmit:this.onSubmit},n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{sm:2},n.default.createElement("label",{className:"control-label",htmlFor:"name"},n.default.createElement(o.FormattedMessage,{id:"wizard.alertsLists",defaultMessage:"Lists"}))),n.default.createElement(s.Col,{sm:10},this.isEmpty(this.state.alertLists)?n.default.createElement("span",{className:"help-block help-standalone"},n.default.createElement(o.FormattedMessage,{id:"wizard.noListsToExport",defaultMessage:"There is no lists to export."})):n.default.createElement("span",null,n.default.createElement(s.Button,{className:"btn btn-sm btn-link select-all",onClick:this.selectAllAlertLists},n.default.createElement(o.FormattedMessage,{id:"wizard.selectAll",defaultMessage:"Select all"})),this.state.alertLists.sort(function(e,t){return e.title.localeCompare(t.title)}).map(this.formatAlertList)))),n.default.createElement("div",{className:"form-group"},n.default.createElement(s.Col,{smOffset:2,sm:10},n.default.createElement(s.Button,{bsStyle:"success",type:"submit"},n.default.createElement("i",{className:"fa fa-cloud-download"}),n.default.createElement(o.FormattedMessage,{id:"wizard.downloadContentPack",defaultMessage:"Download my content pack"}))))))))))}});exports.default=b,e.exports=exports.default},gwZH8cpA:function(e,exports,t){e.exports=t.p+"f7829c4f04f5f0384db6dd037c8835fd.js"},gwvofwM5:function(e,exports,t){e.exports=t.p+"9565ba96fc7434d4ebe12064592cf416.js"},h4y7VvKK:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=h(t("ivGQtwpr")),r=h(t("KX2Ezx4E")),i=t("tUPJ+u4I"),o=p(t("wNbjxLFG")),a=p(t("vQSmUFCW")),s=t("os2pWP01"),l=t("DlhHh5IY"),u=t("INV8sDNi"),c=p(t("/STJr0I1")),f=p(t("B0I5DBk0")),d=p(t("T5tT1uSg"));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var v=r.default.div.withConfig({displayName:"Scratchpad__ContentArea",componentId:"sc-1jcqem9-0"})(["display:flex;flex-direction:column;height:100%;"]),b=r.default.p.withConfig({displayName:"Scratchpad__Description",componentId:"sc-1jcqem9-1"})(["color:",";margin:9px 0 6px;"],a.default.primary.due),y=r.default.textarea.withConfig({displayName:"Scratchpad__Textarea",componentId:"sc-1jcqem9-2"})(function(e){return(0,r.css)(["width:100%;padding:3px;resize:none;flex:1;margin-bottom:15px;border:1px solid ",";box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px ",';transition:border 150ms ease-in-out,box-shadow 150ms ease-in-out;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14px;:focus{border-color:',";outline:none;}"],e.copied?a.default.tertiary.tre:a.default.secondary.tre,(0,i.rgba)(e.copied?a.default.tertiary.tre:a.default.secondary.tre,.6),a.default.tertiary.due)}),w=(0,r.default)(s.Alert).withConfig({displayName:"Scratchpad__StyledAlert",componentId:"sc-1jcqem9-3"})(["&&{padding:6px 12px;margin-bottom:9px;display:flex;align-items:center;}"]),_=r.default.em.withConfig({displayName:"Scratchpad__AlertNote",componentId:"sc-1jcqem9-4"})(["margin-left:6px;flex:1;"]),x=r.default.footer.withConfig({displayName:"Scratchpad__Footer",componentId:"sc-1jcqem9-5"})(["display:flex;align-items:center;padding-bottom:9px;"]),E=r.default.span.withConfig({displayName:"Scratchpad__SavingMessage",componentId:"sc-1jcqem9-6"})(function(e){var t=e.visible;return"\n flex: 1;\n color: ".concat(a.default.tertiary.tre,";\n font-style: italic;\n opacity: ").concat(t?"1":"0",";\n transition: opacity 150ms ease-in-out;\n")}),S=function(){var e,t=(0,n.useRef)(),r=(0,n.useRef)(),i=(0,n.useContext)(u.ScratchpadContext),a=i.isScratchpadVisible,p=i.setScratchpadVisibility,h=i.localStorageItem,S=d.default.get(h)||{},C=g((0,n.useState)(S.securityConfirmed||!1),2),O=C[0],k=C[1],M=g((0,n.useState)(S.value||""),2),A=M[0],T=M[1],P=g((0,n.useState)(S.size||void 0),2),j=P[0],R=P[1],D=g((0,n.useState)(!1),2),F=D[0],I=D[1],L=g((0,n.useState)(!1),2),N=L[0],z=L[1],B=g((0,n.useState)(!1),2),H=B[0],U=B[1],W=g((0,n.useState)(S.position||void 0),2),G=W[0],q=W[1],V=function(e){var t=d.default.get(h);d.default.set(h,function(e){for(var t=1;t=400){var s="cannot "+t.method+" "+t.url+" ("+a.status+")";(e=new o(s)).status=a.status,e.body=a.body,e.res=a,r(e)}else i?r(new o(i.message,i)):n(a)}),"function"==typeof i&&i(function(){t.abort()})})},i.prototype.then=function(){var e=this.promise();return e.then.apply(e,arguments)},i.prototype.catch=function(){var e=this.promise();return e.catch.apply(e,arguments)}},hdQHfdSM:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function e(t,n){return"string"==typeof t||"symbol"==typeof t||!!n&&Array.isArray(t)&&t.every(function(t){return e(t,!1)})}},hdcso7KI:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SwatchesColor=void 0;var n=s(t("ivGQtwpr")),r=s(t("zGS59GCK")),i=s(t("kOI9bxm6")),o=t("50Juodil"),a=s(t("FIH0PMrk"));function s(e){return e&&e.__esModule?e:{default:e}}var l=exports.SwatchesColor=function(e){var t=e.color,s=e.onClick,l=void 0===s?function(){}:s,u=e.onSwatchHover,c=e.first,f=e.last,d=e.active,p=(0,r.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:i.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:c,last:f,active:d,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return n.default.createElement(o.Swatch,{color:t,style:p.color,onClick:l,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},n.default.createElement("div",{style:p.check},n.default.createElement(a.default,null)))};exports.default=l},hgg5N7gh:function(e,exports,t){var n=t("O+YxuZGn"),r=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}},hjJtbEt7:function(e,exports,t){e.exports=t.p+"f2acd1aab459563bc17a2d4c6839455e.js"},hkBRTQ1C:function(e,exports,t){e.exports=t.p+"157d3a341b3d1602f9dc029331bf4643.js"},hkYW3t1d:function(e,exports,t){var n=t("CupN+4mD"),r=t("U1UKruUk"),i=t("IF7lHyDi"),o=t("Eom51AvC"),a=t("bYbldQND"),s=t("yRXRscZV"),l=t("owiykrTV"),u=l(n),c=l(r),f=l(i),d=l(o),p=l(a),h=s;(n&&"[object DataView]"!=h(new n(new ArrayBuffer(1)))||r&&"[object Map]"!=h(new r)||i&&"[object Promise]"!=h(i.resolve())||o&&"[object Set]"!=h(new o)||a&&"[object WeakMap]"!=h(new a))&&(h=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case c:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=h},hkmbQdkX:function(e,exports){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII="},hlVUI3ji:function(e,exports,t){var n=t("yiYgn92r"),r=t("Dd9klwgo");e.exports=function(e,t){return e&&n(t,r(t),e)}},hroej4vc:function(e,exports,t){"use strict";exports.__esModule=!0;var n=Object.assign||function(e){for(var t=1;te.w||n>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxWidth not Number"):ne.h||n>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxHeight not Number"):n-1},c=function(e){return Number(String(e).replace(/%/g,""))},f=exports.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=c(e.target.value);if(!isNaN(t)&&u(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===s?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.PureComponent||r.Component),n(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=null!==this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t);var r,i=function(e){return String(e).indexOf("%")>-1}(t.target.value);this.setState({value:i?(r=e,r+"%"):e})}},{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return i.default.createElement("div",{style:t.wrap},i.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}();exports.default=f},iG1AjSQm:function(e,exports,t){var n=t("SzBuSUKx"),r=1,i=4;e.exports=function(e){return n(e,r|i)}},iHmf1uM0:function(e,exports,t){e.exports=t.p+"674f50d287a8c48dc19ba404d20fe713.eot"},iLnaOEZx:function(e,exports,t){e.exports=t("jaIgFIJB")(298)},iQdEDQ35:function(e,exports,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2&&void 0!==arguments[2]?arguments[2]:0,i=n.join("-");return r&&(i+="-"+r),f[i]?e(t,n,r+1):(f[i]=t,i)},p=function(e){return f[e]},h=function(){return l({},f)},m="__LOADABLE_STATE__",g="@@loadable-components/loadable";function v(){if("undefined"==typeof window)return Promise.reject(new Error("loadable-components: `loadComponents` must be called client-side: `window` is undefined"));var e=window[m];return e?function e(t){return t.children?Promise.all(t.children.map(function(t){var n=p(t.id);if(!n)return console.warn("loadable-component client modules:",h()),console.warn("loadable-component server modules:",window[m]),Promise.reject(new Error('loadable-components: module "'+t.id+'" is not found, client and server modules are not sync. You are probably not using the same resolver on server and client.'));var r=n[g];return"function"!=typeof r?Promise.reject(new Error('loadable-components: module "'+t.id+'" is not a loadable component, please verify your SSR setup')):r().load().then(function(){return e(t)})})):Promise.resolve(null)}(e):Promise.reject(new Error("loadable-components state not found. You have a problem server-side. Please verify that you have called `loadableState.getScriptTag()` server-side."))}function b(){var e,t=h(),n=Object.keys(t).reduce(function(e,n){var r=t[n];return r.loadingPromise?[].concat(e,[{id:r.componentId}]):e},[]);return(e={})[m]={children:n},e}var y=function(e){return e.default||e},w=function(){return null};var _=Object.freeze({track:d,get:p,getAll:h,reset:function(){f={}}});t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ErrorComponent,r=void 0===n?w:n,o=t.LoadingComponent,f=void 0===o?w:o,p=t.render,h=t.modules,m=t.asyncMode,v=function(t){function n(e){s(this,n);var r=c(this,t.call(this,e));return r.state={Component:n.Component,error:null,loading:!n.Component},r.mounted=!1,r.loadingPromise=null,"undefined"!=typeof window&&null===r.state.Component&&null===r.loadingPromise&&(r.loadingPromise=n.load().then(function(e){r.safeSetState({Component:e,loading:!1})}).catch(function(e){r.safeSetState({error:e,loading:!1})})),r}return u(n,t),n.load=function(){return n.loadingPromise||(n.loadingPromise=e().then(function(e){var t,r=y(e);return n.Component=r,a()(n,r,((t={Component:!0,loadingPromise:!0,load:!0})[g]=!0,t.componentId=!0,t)),r}).catch(function(e){throw n.loadingPromise=null,e})),n.loadingPromise},n.prototype.componentDidMount=function(){this.mounted=!0},n.prototype.componentWillUnmount=function(){this.mounted=!1},n.prototype.safeSetState=function(e){this.mounted&&this.setState(e)},n.prototype.render=function(){var e=this.state,t=e.Component,n=e.error;if("function"==typeof p)return p(l({},this.state,{ownProps:this.props}));if(null!==t)return i.a.createElement(t,this.props);if(null!==n)return i.a.createElement(r,{error:n,ownProps:this.props});if(m)throw this.loadingPromise;return i.a.createElement(f,this.props)},n}(i.a.Component);if(v.Component=null,v.loadingPromise=null,v[g]=function(){return v},h){var b=d(v,h);v.componentId=b}return v}},ii0bleBb:function(e,exports,t){e.exports=t("jaIgFIJB")(9)},ikzlDpcK:function(e,exports,t){var n=t("eXnMMeS9");e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},iqTv9aq3:function(e,exports,t){"use strict";function n(e){return new Date(e.getTime())}function r(e,t){var r=n(e);return r.setMonth(e.getMonth()+t),r}function i(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function o(e,t){return n(e).setHours(0,0,0,0)n(t).setHours(0,0,0,0)}function s(e){var t=new Date;return t.setHours(0,0,0,0),o(e,t)}function l(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function u(e,t,r){var i=n(e);return i.setHours(0,0,0,0),a(i,t)&&o(i,r)||a(i,r)&&o(i,t)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&i(n,r)&&i(e,n)?(n=null,r=null):r&&o(e,n)?n=e:r&&i(e,r)?(n=e,r=e):o(r=e,n)&&(r=n,n=e):n=e,{from:n,to:r}}function f(e,t){var n=t.from,r=t.to;return n&&i(e,n)||r&&i(e,r)||n&&r&&u(e,n,r)}function d(e){var t=n(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.clone=n,exports.addMonths=r,exports.isSameDay=i,exports.isDayBefore=o,exports.isDayAfter=a,exports.isPastDay=s,exports.isFutureDay=l,exports.isDayBetween=u,exports.addDayToRange=c,exports.isDayInRange=f,exports.getWeekNumber=d,exports.default={addDayToRange:c,addMonths:r,clone:n,getWeekNumber:d,isDayAfter:a,isDayBefore:o,isDayBetween:u,isDayInRange:f,isFutureDay:l,isPastDay:s,isSameDay:i}},ivGQtwpr:function(e,exports,t){e.exports=t("jaIgFIJB")(0)},"ixmX+3Tv":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("ivGQtwpr")),r=f(t("ii0bleBb")),i=f(t("bcEkMz+H")),o=f(t("KWzh15eC")),a=f(t("45N4IsJL")),s=f(t("7wHi4ydR")),l=t("os2pWP01"),u=t("C96fpu2F"),c=f(t("a6scfHpn"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e){for(var t=1;t0?d({},l,{streams:a.join(",")}):l;return"".concat(s.default.SEARCH,"?").concat(i.default.stringify(c))}(n,(0,o.default)(t).subtract(Number(e),"seconds").toISOString(),(0,o.default)(t).add(Number(e),"seconds").toISOString(),[],function(e,t){var n=t.surrounding_filter_fields;return(void 0===n?[]:n).reduce(function(t,n){return d({},t,p({},n,e[n]))},{})}(r,a),l)},g=function(e){var t,r,i=e.searchConfig,s=e.timestamp,u=e.id,f=e.messageFields,g=(0,n.useContext)(c.default).streams,v=(t=i.surrounding_timerange_options,r=void 0===t?{}:t,Object.entries(r).reduce(function(e,t){var n=h(t,2),r=n[0],i=n[1];return d({},e,p({},o.default.duration(r).asSeconds(),i))},{})),b=Object.keys(v).sort(function(e,t){return(0,a.default)(e,t)}).map(function(e){return n.createElement(l.MenuItem,{key:e,href:m(e,s,u,f,i,g),target:"_blank",rel:"noopener noreferrer"},v[e])});return n.createElement(l.DropdownButton,{title:"Show surrounding messages",bsSize:"small",id:"surrounding-search-dropdown"},b)};g.propTypes={id:r.default.string.isRequired,timestamp:r.default.string.isRequired,searchConfig:r.default.object.isRequired,messageFields:r.default.object.isRequired};var v=g;exports.default=v,e.exports=exports.default},iz46sUwP:function(e,exports){e.exports=function(e,t){return null!=e&&t in Object(e)}},j4xtFCjZ:function(e,exports,t){e.exports=t.p+"d86cc6d49f658806bd73214df8d339b3.js"},j6rLq9rU:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){var i=(0,r.default)(e);return i?i.innerHeight:t?e.clientHeight:(0,n.default)(e).height};var n=i(t("uFFaJ7o2")),r=i(t("PoZw58Gy"));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=exports.default},"jBfUYu/J":function(e,exports,t){var n=t("36gvFkyC"),r=t("PIvmiIaU"),i=t("RNZ0AJ6u"),o=t("ujvxbrYf"),a=t("eor5MVfv");function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&new r.default.Graph.Axis.Time({graph:t,ticksTreatment:"glow",timeFixture:new r.default.Fixtures.Graylog2Time}),new r.default.Graph.HoverDetail({graph:t,formatter:function(e,t,n){var r=new i.default(1e3*t).toString(i.default.Formats.COMPLETE),o=''.concat(r,"");return"".concat((0,a.default)(parseInt(n)).format("0,0")," messages
").concat(o)},xFormatter:function(e){return new Date(1e3*e).toDateString()}}),new r.default.Graph.Graylog2Selector({graph:t}),this._annotator=new r.default.Graph.Annotate({graph:t,element:this._graphTimeline[0]}),o.default.fillAlertAnnotator(this._histogram,this._stream,this._annotator),t.render(),this._resultHistogramGraph=t}},updateData:function(e){void 0!==this._resultHistogramGraph&&(this._histogram=e,this._resultHistogramGraph.series[0].data=e,this._resetAlertAnnotator(),this._resultHistogramGraph.update())},_resetAlertAnnotator:function(){var e=(0,n.default)(".content",this._graphTimeline);o.default.fillAlertAnnotator(this._histogram,this._stream,this._annotator,function(){e.remove()})},redrawResultGraph:function(){this._histogram.length>0&&void 0!==this._resultHistogramGraph&&(this._resultHistogramGraph.configure({width:this._getHistogramContainerWidth()}),this._resultHistogramGraph.render())}};exports.default=l,e.exports=exports.default},jpvNhKcR:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=t("4bh9nC3d"),r=a(t("KX2Ezx4E")),i=t("tUPJ+u4I"),o=a(t("vQSmUFCW"));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)(n.Pagination).withConfig({displayName:"Pagination",componentId:"sc-1u3exqe-0"})(["> li{> a,> span{color:",";background-color:",";border-color:",";&:hover,&:focus{color:",";background-color:",";border-color:",";}}}> .active > a,> .active > span{&,&:hover,&:focus{color:",";background-color:",";border-color:",";}}> .disabled{> span,> span:hover,> span:focus,> a,> a:hover,> a:focus{color:",";background-color:",";border-color:",";}}"],o.default.tertiary.quattro,o.default.primary.due,o.default.secondary.tre,(0,i.darken)(.15,o.default.tertiary.quattro),o.default.secondary.due,o.default.secondary.tre,o.default.primary.due,o.default.tertiary.quattro,o.default.tertiary.quattro,(0,i.darken)(.25,o.default.secondary.tre),o.default.primary.due,o.default.secondary.tre);exports.default=s,e.exports=exports.default},jswCRRRc:function(e,exports,t){var n,r,i,o,a;
/*! Moment Duration Format v2.2.2
* https://github.com/jsmreese/moment-duration-format
* Date: 2018-02-16
*
* Duration format plugin function for the Moment.js library
* http://momentjs.com/
*
* Copyright 2018 John Madhavan-Reese
* Released under the MIT license
*/o=this,a=function(e){var t=!1,n=!1,r="escape years months weeks days hours minutes seconds milliseconds general".split(" "),i=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function o(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function a(e){for(var t="";e;)t+="0",e-=1;return t}function s(e,t,r){var i,o,l,u=t.useToLocaleString,c=t.useGrouping,f=c&&t.grouping.slice(),d=t.maximumSignificantDigits,p=t.minimumIntegerDigits||1,h=t.fractionDigits||0,m=t.groupingSeparator,g=t.decimalSeparator;if(u&&r){var v={minimumIntegerDigits:p,useGrouping:c};if(h&&(v.maximumFractionDigits=h,v.minimumFractionDigits=h),d&&e>0&&(v.maximumSignificantDigits=d),!n){var b=_({},t);b.useGrouping=!1,b.decimalSeparator=".",e=parseFloat(s(e,b),10)}return e.toLocaleString(r,v)}var y=(d?e.toPrecision(d+1):e.toFixed(h+1)).split("e");l=y[1]||"",o=(y=y[0].split("."))[1]||"";var w=(i=y[0]||"").length,x=o.length,E=w+x,S=i+o;(d&&E===d+1||!d&&x===h+1)&&((S=function(e){for(var t=e.split("").reverse(),n=0,r=!0;r&&n0?o.length<=C?(i+=o+=a(C-o.length),o=""):(i+=o.slice(0,C),o=o.slice(C)):C<0&&(o=a(Math.abs(C)-i.length)+i+o,i="0"),d||((o=o.slice(0,h)).lengtht.label.length?-1:e.label.length0,V=q?a.precision:0,K=V,Q=a.minValue,Y=!1,X=a.maxValue,Z=!1,J=a.useToLocaleString,ee=a.groupingSeparator,te=a.decimalSeparator,ne=a.grouping;J=J&&t;var re=a.trim;f(re)&&(re=re.join(" ")),null===re&&(F||X||q)&&(re="all"),null!==re&&!0!==re&&"left"!==re&&"right"!==re||(re="large"),!1===re&&(re="");var ie=function(e){return e.test(re)},oe=/both/,ae=/^all|[^sm]all/,se=F>0||E([/large/,oe,ae],ie),le=E([/small/,oe,ae],ie),ue=E([/mid/,ae],ie),ce=E([/final/,ae],ie),fe=m(j.match(P),function(e,t){var n=T(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==n&&"general"!==n&&I.push(n)),{index:t,length:e.length,text:"",token:"escape"===n?e.replace(A.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}}),de={index:0,length:0,token:"",text:"",type:null},pe=[];z&&fe.reverse(),h(fe,function(e){if(e.type)return(de.type||de.text)&&pe.push(de),void(de=e);z?de.text=e.token+de.text:de.text+=e.token}),(de.type||de.text)&&pe.push(de),z&&pe.reverse();var he=y(r,b(v(g(pe,"type"))));if(!he.length)return g(pe,"text").join("");he=m(he,function(e,t){var n,r=t+1===he.length,i=!t;n="years"===e||"months"===e?k.as(e):O.as(e);var o=Math.floor(n),s=n-o,l=p(pe,function(t){return e===t.type});return i&&X&&n>X&&(Z=!0),r&&Q&&Math.abs(a.duration.as(e))1&&(U=!0),O.subtract(o,e),k.subtract(o,e),{rawValue:n,wholeValue:o,decimalValue:r?s:0,isSmallest:r,isLargest:i,type:e,tokenLength:l.length}});var me,ge=G?Math.floor:Math.round,ve=function(e,t){var n=Math.pow(10,t);return ge(e*n)/n},be=!1,ye=!1,we=function(e,t){var n={useGrouping:W,groupingSeparator:ee,decimalSeparator:te,grouping:ne,useToLocaleString:J};return q&&(V<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(n.maximumSignificantDigits=V,e.significantDigits=V)),Z&&!ye&&(e.isLargest?(e.wholeValue=X,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),Y&&!ye&&(e.isSmallest?(e.wholeValue=Q,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?H<0?e.value=ve(e.wholeValue,H):0===H?e.value=ge(e.wholeValue+e.decimalValue):q?(e.value=G?ve(e.rawValue,V-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(V-=e.wholeValue.toString().length)):(n.fractionDigits=H,e.value=G?e.wholeValue+ve(e.decimalValue,H):e.wholeValue+e.decimalValue):q&&e.wholeValue?(e.value=Math.round(ve(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),V-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(U||be)&&(n.minimumIntegerDigits=e.tokenLength,ye&&n.maximumSignificantDigits0||""===re||p(I,e.type)||p(R,e.type))&&(be=!0),e.formattedValue=s(e.value,n,N),n.useGrouping=!1,n.decimalSeparator=".",e.formattedValueEn=s(e.value,n,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=s(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((he=v(he=m(he,we))).length>1){var _e=function(e){return p(he,function(t){return t.type===e})};h(i,function(e){var t=_e(e.type);t&&h(e.targets,function(e){var n=_e(e.type);n&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,n.rawValue+=1,n.wholeValue+=1,n.decimalValue=0,n.formattedValueEn=n.wholeValue.toString(),ye=!0)})})}return ye&&(be=!1,V=K,he=v(he=m(he,we))),!R||Z&&!a.trim?(se&&(he=w(he,function(e){return!e.isSmallest&&!e.wholeValue&&!p(I,e.type)})),F&&he.length&&(he=he.slice(0,F)),le&&he.length>1&&(me=function(e){return!e.wholeValue&&!p(I,e.type)&&!e.isLargest},he=w(he.slice().reverse(),me).reverse()),ue&&(he=v(he=m(he,function(e,t){return t>0&&t ",Z=!1,Y=!1),C&&(t.value>0||""===re||p(I,t.type)||p(R,t.type))&&(n+="-",C=!1),"milliseconds"===e.type&&t.formattedValueMS?n+=t.formattedValueMS:n+=t.formattedValue,z||(n+=e.text),n})).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function O(){var e=this.duration,t=function(t){return e._data[t]},n=p(this.types,t),r=function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(this.types,t);switch(n){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(n===r)return"d __";case"weeks":return n===r?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(n===r)return"M __";case"years":return n===r?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function k(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=S,e.duration.fn.format=C,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:O,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",c)}return t=!!((u=(u=!0)&&function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}())&&(u=(u=(u=u&&"1"===1..toLocaleString("en",{minimumIntegerDigits:1}))&&"01"===1..toLocaleString("en",{minimumIntegerDigits:2}))&&"001"===1..toLocaleString("en",{minimumIntegerDigits:3}))&&(u=(u=(u=(u=u&&"100"===99.99.toLocaleString("en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===99.99.toLocaleString("en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===99.99.toLocaleString("en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===99.99.toLocaleString("en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(u=(u=(u=(u=(u=u&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:1}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:2}))&&"100"===99.99.toLocaleString("en",{maximumSignificantDigits:3}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:4}))&&"99.99"===99.99.toLocaleString("en",{maximumSignificantDigits:5}))&&(u=(u=u&&"1,000"===1e3.toLocaleString("en",{useGrouping:!0}))&&"1000"===1e3.toLocaleString("en",{useGrouping:!1}))),n=t&&"3.6"===3.55.toLocaleString("en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1}),k(e),k},r=[t("KWzh15eC")],void 0===(i="function"==typeof(n=a)?n.apply(exports,r):n)||(e.exports=i),o&&(o.momentDurationFormatSetup=o.moment?a(o.moment):a)},jwcVOobq:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),o=(!i&&Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,r){"get"in r&&e.__defineGetter__?e.__defineGetter__(t,r.get):(!n.call(e,t)||"value"in r)&&(e[t]=r.value)});exports.defineProperty=o;var a=Object.create||function(e,t){var r,i;function a(){}for(i in a.prototype=e,r=new a,t)n.call(t,i)&&o(r,i,t[i]);return r};exports.objCreate=a;var s=Array.prototype.indexOf||function(e,t){if(!this.length)return-1;for(var n=t||0,r=this.length;n=128?"#000":"#fff"},exports.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};exports.default=exports},kVtgjVzv:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(t("KX2Ezx4E")),i=t("4bh9nC3d"),o=t("tUPJ+u4I"),a=t("SMGljI5q"),s=(n=t("PV/MXHm+"))&&n.__esModule?n:{default:n};var l=(0,r.default)(i.Panel).withConfig({displayName:"Panel__StyledPanel",componentId:"niu1uf-0"})(["background-color:",";.panel-footer{background-color:",";border-top-color:",";}.panel-group{.panel-heading{+ .panel-collapse > .panel-body,+ .panel-collapse > .list-group{border-top-color:",";}}.panel-footer{+ .panel-collapse .panel-body{border-bottom-color:",";}}}",""],a.teinte.primary.due,a.teinte.secondary.tre,a.teinte.secondary.due,a.teinte.secondary.due,a.teinte.secondary.due,(0,s.default)(function(e){var t=a.util.colorLevel(e,-9),n=(0,o.darken)(.05,(0,o.adjustHue)(-10,e));return(0,r.css)(["border-color:",";& > .panel-heading{color:",";background-color:",";border-color:",";+ .panel-collapse > .panel-body{border-top-color:",";}.badge{color:",";background-color:",";}}& > .panel-footer{+ .panel-collapse > .panel-body{border-bottom-color:",";}}"],n,a.util.colorLevel(t,9),t,n,n,t,e,n)}));exports.default=l,e.exports=exports.default},kY6sTFvr:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e){return void 0===e&&(e=0),e+1}},"keG7qm/e":function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(e,t){for(var n=[],r=2;r0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:f.startOfMonth(e)},function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)})}},{key:"showNextMonth",value:function(e){if(this.allowNextMonth()){var t=this.props.pagedNavigation?this.props.numberOfMonths:1,n=d.addMonths(this.state.currentMonth,t);this.showMonth(n,e)}}},{key:"showPreviousMonth",value:function(e){if(this.allowPreviousMonth()){var t=this.props.pagedNavigation?this.props.numberOfMonths:1,n=d.addMonths(this.state.currentMonth,-t);this.showMonth(n,e)}}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=d.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=d.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focusFirstDayOfMonth",value:function(){this.getDayNodes()[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=this.getDayNodes();e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);0===r?this.showPreviousMonth(function(){return t.focusLastDayOfMonth()}):n[r-1].focus()}},{key:"focusNextDay",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);r===n.length-1?this.showNextMonth(function(){return t.focusFirstDayOfMonth()}):n[r+1].focus()}},{key:"focusNextWeek",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);r>n.length-8?this.showNextMonth(function(){var e=7-(n.length-r);t.getDayNodes()[e].focus()}):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=this.getDayNodes(),r=[].concat(_(n)).indexOf(e);r<=6?this.showPreviousMonth(function(){var e=t.getDayNodes();e[e.length-7+r].focus()}):n[r-7].focus()}},{key:"handleKeyDown",value:function(e){switch(e.persist(),e.keyCode){case g.default.LEFT:this.showPreviousMonth();break;case g.default.RIGHT:this.showNextMonth();break;case g.default.UP:this.showPreviousYear();break;case g.default.DOWN:this.showNextYear()}this.props.onKeyDown&&this.props.onKeyDown(e)}},{key:"handleDayKeyDown",value:function(e,t,n){switch(n.persist(),n.keyCode){case g.default.LEFT:f.cancelEvent(n),this.focusPreviousDay(n.target);break;case g.default.RIGHT:f.cancelEvent(n),this.focusNextDay(n.target);break;case g.default.UP:f.cancelEvent(n),this.focusPreviousWeek(n.target);break;case g.default.DOWN:f.cancelEvent(n),this.focusNextWeek(n.target);break;case g.default.ENTER:case g.default.SPACE:f.cancelEvent(n),this.props.onDayClick&&this.handleDayClick(e,t,n)}this.props.onDayKeyDown&&this.props.onDayKeyDown(e,t,n)}},{key:"handleDayClick",value:function(e,t,n){n.persist(),t.outside&&this.handleOutsideDayClick(e),this.props.onDayClick(e,t,n)}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=f.getMonthsDiff(t,e);r>0&&r>=n?this.showNextMonth():r<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,i=e.canChangeMonth,a=e.navbarElement,s=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!i)return null;var l={classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:s.dir,labels:t,locale:n,localeUtils:r};return o.default.isValidElement(a)?o.default.cloneElement(a,l):o.default.createElement(a,l)}},{key:"renderDayInMonth",value:function(e,t){var n=f.getModifiersFromProps(this.props),r=h.getModifiersForDay(e,n);d.isSameDay(e,new Date)&&!Object.prototype.hasOwnProperty.call(n,this.props.classNames.today)&&r.push(this.props.classNames.today),e.getMonth()!==t.getMonth()&&r.push(this.props.classNames.outside);var i=e.getMonth()!==t.getMonth(),a=null;this.props.onDayClick&&!i&&(a=-1,1===e.getDate()&&(a=this.props.tabIndex));var s=""+e.getFullYear()+e.getMonth()+e.getDate(),l={};return r.forEach(function(e){l[e]=!0}),o.default.createElement(u.default,{key:(i?"outside-":"")+s,classNames:this.props.classNames,day:e,modifiers:l,modifiersStyles:this.props.modifiersStyles,empty:i&&!this.props.enableOutsideDays&&!this.props.fixedWeeks,tabIndex:a,ariaLabel:this.props.localeUtils.formatDay(e,this.props.locale),ariaDisabled:i||r.indexOf("disabled")>-1,ariaSelected:r.indexOf("selected")>-1,onMouseEnter:this.props.onDayMouseEnter,onMouseLeave:this.props.onDayMouseLeave,onKeyDown:this.handleDayKeyDown,onTouchStart:this.props.onDayTouchStart,onTouchEnd:this.props.onDayTouchEnd,onFocus:this.props.onDayFocus,onClick:this.props.onDayClick?this.handleDayClick:void 0},this.props.renderDay(e,l))}},{key:"renderMonths",value:function(){for(var e=[],t=f.getFirstDayOfWeekFromProps(this.props),n=0;n1&&e.fromMonth){var n=f.getMonthsDiff(e.fromMonth,t);t=d.addMonths(e.fromMonth,Math.floor(n/e.numberOfMonths)*e.numberOfMonths)}return{currentMonth:t}},this.dayPicker=null,this.handleTodayButtonClick=function(t){e.showMonth(new Date),t.target.blur()}};exports.default=x},lAxVS0uB:function(e,exports,t){var n=t("Eom51AvC"),r=t("PNF6DnrT"),i=t("lC7W8rzW"),o=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r;e.exports=o},lC7W8rzW:function(e,exports){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},"lDA9+fNM":function(e,exports,t){(function(e){var n=t("RMa3hR3V"),r=exports&&!exports.nodeType&&exports,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}).call(this,t("9YbPW59L")(e))},lOXTQv9i:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=d(t("ii0bleBb")),r=d(t("ivGQtwpr")),i=d(t("PcYM+wZ7")),o=t("os2pWP01"),a=t("DlhHh5IY"),s=t("qOZsORvD"),l=d(t("SIdPoB4K")),u=t("qwOa7NSh"),c=d(t("7QAbkgSv")),f=d(t("8FtKQWAV"));function d(e){return e&&e.__esModule?e:{default:e}}var p=c.default.getStore("Fields"),h=(0,i.default)({displayName:"StatisticalCondition",propTypes:{onUpdate:n.default.func.isRequired},getInitialState:function(){return{type:this.props.type,field:this.props.field,threshold:this.props.threshold,threshold_type:this.props.threshold_type}},componentDidMount:function(){var e=this;p.loadFields().then(function(t){e.state.field&&""!==e.state.field&&t.indexOf(e.state.field)<0&&t.push(e.state.field),e.setState({fields:t})})},_availableAggregationTypes:function(){return[{value:"AVG",label:r.default.createElement(u.FormattedMessage,{id:"wizard.meanValue",defaultMessage:"average value"})},{value:"STDDEV",label:r.default.createElement(u.FormattedMessage,{id:"wizard.standardDeviation",defaultMessage:"standard deviation"})},{value:"MIN",label:r.default.createElement(u.FormattedMessage,{id:"wizard.minValue",defaultMessage:"min value"})},{value:"MAX",label:r.default.createElement(u.FormattedMessage,{id:"wizard.maxValue",defaultMessage:"max value"})},{value:"SUM",label:r.default.createElement(u.FormattedMessage,{id:"wizard.sum",defaultMessage:"sum"})},{value:"CARD",label:r.default.createElement(u.FormattedMessage,{id:"wizard.card",defaultMessage:"cardinality"})},{value:"COUNT",label:r.default.createElement(u.FormattedMessage,{id:"wizard.count",defaultMessage:"count"})},{value:"SUMOFSQUARES",label:r.default.createElement(u.FormattedMessage,{id:"wizard.sum",defaultMessage:"sum of squares"})},{value:"VARIANCE",label:r.default.createElement(u.FormattedMessage,{id:"wizard.variance",defaultMessage:"variance"})}]},_onAggregationTypeSelect:function(e){this.setState({type:e}),this.props.onUpdate("type",e)},_availableThresholdTypes:function(){return[{value:">",label:r.default.createElement(u.FormattedMessage,{id:"wizard.higher",defaultMessage:"higher than"})},{value:">=",label:r.default.createElement(u.FormattedMessage,{id:"wizard.higherEqual",defaultMessage:"higher or equal than"})},{value:"<",label:r.default.createElement(u.FormattedMessage,{id:"wizard.lower",defaultMessage:"lower than"})},{value:"<=",label:r.default.createElement(u.FormattedMessage,{id:"wizard.lowerEqual",defaultMessage:"lower or equal than"})},{value:"==",label:r.default.createElement(u.FormattedMessage,{id:"wizard.equal",defaultMessage:"equal"})}]},_onThresholdTypeSelect:function(e){this.setState({threshold_type:e}),this.props.onUpdate("threshold_type",e)},_updateAlertField:function(e,t){var n=l.default.clone(this.state);n[e]=t,this.setState({parameters:n}),this.props.onUpdate(e,t)},_onThresholdChanged:function(){var e=this;return function(t){e.setState({threshold:t.target.value}),e.props.onUpdate("threshold",t.target.value)}},_onParameterFieldSelect:function(e){if(this.setState({field:e}),this.props.onUpdate("field",e),""!==e&&this.state.fields.indexOf(e)<0){var t=l.default.clone(this.state.fields);t.push(e),this.setState({fields:t})}},_formatOption:function(e,t){return{value:t,label:e}},_isLoading:function(){return!this.state.fields},render:function(){var e=this;if(this._isLoading())return r.default.createElement("div",{style:{marginLeft:10}},r.default.createElement(s.Spinner,null));var t=Object.keys(this.state.fields).map(function(t){return e._formatOption(e.state.fields[t],e.state.fields[t])}).sort(function(e,t){return(0,f.default)(e.label.toLowerCase(),t.label.toLowerCase())});return r.default.createElement(o.Row,null,r.default.createElement(o.Col,{md:2,style:{marginTop:5,marginBottom:0}},r.default.createElement("label",{className:"pull-right"},r.default.createElement(u.FormattedMessage,{id:"wizard.statisticalCondition",defaultMessage:"Statistical Condition"}))),r.default.createElement(o.Col,{md:10},r.default.createElement("label",null,r.default.createElement(u.FormattedMessage,{id:"wizard.the",defaultMessage:"The"})),r.default.createElement(a.Input,{ref:"type",id:"type",name:"type",required:!0},r.default.createElement("div",{style:{width:"200px"}},r.default.createElement(s.Select,{required:!0,value:this.state.type,options:this._availableAggregationTypes(),matchProp:"value",onChange:this._onAggregationTypeSelect,placeholder:r.default.createElement(u.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})}))),r.default.createElement("label",null," "),r.default.createElement("label",null,r.default.createElement(u.FormattedMessage,{id:"wizard.of",defaultMessage:"of"})),r.default.createElement(a.Input,{ref:"field",id:"field",name:"field"},r.default.createElement("div",{style:{width:"200px"}},r.default.createElement(s.Select,{required:!0,value:this.state.field,options:t,matchProp:"value",onChange:this._onParameterFieldSelect,allowCreate:!0,placeholder:r.default.createElement(u.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})}))),r.default.createElement("label",null," "),r.default.createElement("label",null,r.default.createElement(u.FormattedMessage,{id:"wizard.mustBe",defaultMessage:"must be"})),r.default.createElement(a.Input,{ref:"threshold_type",id:"threshold_type",name:"threshold_type",required:!0},r.default.createElement("div",{style:{width:"200px"}},r.default.createElement(s.Select,{required:!0,value:this.state.threshold_type,options:this._availableThresholdTypes(),matchProp:"value",onChange:this._onThresholdTypeSelect,placeholder:r.default.createElement(u.FormattedMessage,{id:"wizard.select",defaultMessage:"Select..."})}))),r.default.createElement(a.Input,{ref:"threshold",id:"threshold",name:"threshold",type:"number",min:"0",onChange:this._onThresholdChanged(),value:this.state.threshold,style:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",height:"36px",width:"100px"}})))}});exports.default=h,e.exports=exports.default},lObuJAOx:function(e,exports,t){"use strict";var n,r=Object.assign||function(e){for(var t=1;t li{> a{&:hover,&:focus{background-color:",";}}&.disabled > a{color:",";&:hover,&:focus{color:",";}}}.open > a{&,&:hover,&:focus{background-color:",";border-color:",";}}}&.nav-pills{> li{&.active > a{&,&:hover,&:focus{color:",";background-color:",";}}}}&",""],o.util.colorLevel(o.teinte.secondary.due,-3),o.teinte.secondary.tre,o.teinte.secondary.tre,o.util.colorLevel(o.teinte.secondary.due,-3),e,o.teinte.primary.due,e,(0,a.default)())});exports.default=s,e.exports=exports.default},mKUXduhk:function(e,exports,t){var n=t("Qf0Q7TmK"),r=t("gI5LzRMl"),i=t("eCP9gG8B"),o=t("REt7egjG"),a=t("VX7NnWTC"),s=t("CPEza9Tj"),l=200;e.exports=function(e,t,u,c){var f=-1,d=r,p=!0,h=e.length,m=[],g=t.length;if(!h)return m;u&&(t=o(t,a(u))),c?(d=i,p=!1):t.length>=l&&(d=s,p=!1,t=new n(t));e:for(;++f, or turn it into a drag source or a drop target itself.")}}(o);var a=i?function(t){return e(t,i)}:e;return r.default(o,a)}e(t,i)}}exports.default=function(e){var t={};return Object.keys(e).forEach(function(n){var r=i(e[n]);t[n]=function(){return r}}),t}},mezkKiZX:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var n=i(t("ivGQtwpr")),r=i(t("M01PpR+7"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(){return(a=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=function(e){var t=e.iconClass,r=e.children,a=s(e,["iconClass","children"]);return n.default.createElement(i.Button,a,n.default.createElement(o.default,{iconClass:t},r))};l.propTypes={href:r.default.string.isRequired,children:r.default.node.isRequired,bsStyle:r.default.string,bsSize:r.default.string,target:r.default.string,iconClass:r.default.string,className:r.default.string,disabled:r.default.bool},l.defaultProps={bsStyle:"default",bsSize:void 0,target:"_blank",iconClass:"fa-external-link",className:"",disabled:!1};var u=l;exports.default=u,e.exports=exports.default},mqdqrxWG:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ChromeFields=void 0;var n=function(){function e(e,t){for(var n=0;n1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),r.props.onChange({h:e.h||r.props.hsl.h,s:Number(e.s&&e.s||r.props.hsl.s),l:Number(e.l&&e.l||r.props.hsl.l),source:"hsl"},t))},r.showHighlight=function(e){e.currentTarget.style.background="#eee"},r.hideHighlight=function(e){e.currentTarget.style.background="transparent"},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Component),n(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=(0,i.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=r.default.createElement("div",{style:t.fields,className:"flexbox-fix"},r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=r.default.createElement("div",{style:t.fields,className:"flexbox-fix"},r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),r.default.createElement("div",{style:t.alpha},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=r.default.createElement("div",{style:t.fields,className:"flexbox-fix"},r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),r.default.createElement("div",{style:t.field},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),r.default.createElement("div",{style:t.alpha},r.default.createElement(a.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),r.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,r.default.createElement("div",{style:t.toggle},r.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},r.default.createElement(s.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}]),t}();exports.default=c},mrYkOj7D:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PhotoshopPreviews=void 0;var n=i(t("ivGQtwpr")),r=i(t("zGS59GCK"));function i(e){return e&&e.__esModule?e:{default:e}}var o=exports.PhotoshopPreviews=function(e){var t=e.rgb,i=e.currentColor,o=(0,r.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:i,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return n.default.createElement("div",null,n.default.createElement("div",{style:o.label},"new"),n.default.createElement("div",{style:o.swatches},n.default.createElement("div",{style:o.new}),n.default.createElement("div",{style:o.current})),n.default.createElement("div",{style:o.label},"current"))};exports.default=o},msOnkrfp:function(e,exports,t){e.exports=t.p+"bb736bb16827a36442a0f5efefc8d9f9.js"},msWzOuBO:function(e,exports,t){e.exports=t.p+"33d52a9795241693b49ab4613df88926.js"},"mw4dFkN/":function(e,exports,t){"use strict";exports.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0){var v=1/0,b=1/0;g.forEach(function(e){e.x>h.x&&(v=Math.min(v,e.x)),e.y>h.y&&(b=Math.min(b,e.y))}),Number.isFinite(v)&&(h.w=v-h.x),Number.isFinite(b)&&(h.h=b-h.y)}}m||(h.w=t,h.h=r);var y={w:h.w,h:h.h,x:h.x,y:h.y,static:!0,i:e};this.props.onResize(u,c,h,y,o,a),this.setState({layout:(0,s.compact)(u,this.compactType(),d),activeDrag:y})}},t.prototype.onResizeStop=function(e,t,n,r){var i=r.e,o=r.node,a=this.state,l=a.layout,u=a.oldResizeItem,c=this.props.cols,f=(0,s.getLayoutItem)(l,e);this.props.onResizeStop(l,u,f,null,i,o);var d=(0,s.compact)(l,this.compactType(),c),p=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,p)},t.prototype.placeholder=function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,i=t.cols,o=t.margin,a=t.containerPadding,s=t.rowHeight,u=t.maxRows,c=t.useCSSTransforms;return r.default.createElement(l.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:i,margin:o,containerPadding:a||o,maxRows:u,rowHeight:s,isDraggable:!1,isResizable:!1,useCSSTransforms:c},r.default.createElement("div",null))},t.prototype.processGridItem=function(e){if(e&&e.key){var t=(0,s.getLayoutItem)(this.state.layout,String(e.key));if(!t)return null;var n=this.props,i=n.width,o=n.cols,a=n.margin,u=n.containerPadding,c=n.rowHeight,f=n.maxRows,d=n.isDraggable,p=n.isResizable,h=n.useCSSTransforms,m=n.draggableCancel,g=n.draggableHandle,v=this.state.mounted,b=Boolean(!t.static&&d&&(t.isDraggable||null==t.isDraggable)),y=Boolean(!t.static&&p&&(t.isResizable||null==t.isResizable));return r.default.createElement(l.default,{containerWidth:i,cols:o,margin:a,containerPadding:u||a,maxRows:f,rowHeight:c,cancel:m,handle:g,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:b,isResizable:y,useCSSTransforms:h&&v,usePercentages:!v,w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minH:t.minH,minW:t.minW,maxH:t.maxH,maxW:t.maxW,static:t.static},e)}},t.prototype.render=function(){var e=this,t=this.props,i=t.className,o=t.style,s=(0,a.default)("react-grid-layout",i),l=n({height:this.containerHeight()},o);return r.default.createElement("div",{className:s,style:l},r.default.Children.map(this.props.children,function(t){return e.processGridItem(t)}),this.placeholder())},t}(r.default.Component);c.displayName="ReactGridLayout",c.propTypes={className:i.default.string,style:i.default.object,width:i.default.number,autoSize:i.default.bool,cols:i.default.number,draggableCancel:i.default.string,draggableHandle:i.default.string,verticalCompact:function(e){e.verticalCompact,0},compactType:i.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&(0,s.validateLayout)(t,"layout")},margin:i.default.arrayOf(i.default.number),containerPadding:i.default.arrayOf(i.default.number),rowHeight:i.default.number,maxRows:i.default.number,isDraggable:i.default.bool,isResizable:i.default.bool,preventCollision:i.default.bool,useCSSTransforms:i.default.bool,onLayoutChange:i.default.func,onDragStart:i.default.func,onDrag:i.default.func,onDragStop:i.default.func,onResizeStart:i.default.func,onResize:i.default.func,onResizeStop:i.default.func,children:function(e,t){var n=e[t],i={};r.default.Children.forEach(n,function(e){if(i[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');i[e.key]=!0})}},c.defaultProps={autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isDraggable:!0,isResizable:!0,useCSSTransforms:!0,verticalCompact:!0,compactType:"vertical",preventCollision:!1,onLayoutChange:s.noop,onDragStart:s.noop,onDrag:s.noop,onDragStop:s.noop,onResizeStart:s.noop,onResize:s.noop,onResizeStop:s.noop};var f=function(){this.state={activeDrag:null,layout:(0,s.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,this.compactType()),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null}};exports.default=c},mxCHE3jz:function(e,exports,t){e.exports=t.p+"04112e82e90aa011eb21161acbc1128a.js"},n3MRiktB:function(e,exports,t){var n=t("Qf0Q7TmK"),r=t("gI5LzRMl"),i=t("eCP9gG8B"),o=t("REt7egjG"),a=t("VX7NnWTC"),s=t("CPEza9Tj"),l=Math.min;e.exports=function(e,t,u){for(var c=u?i:r,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,g=[];p--;){var v=e[p];p&&t&&(v=o(v,a(t))),m=l(v.length,m),h[p]=!u&&(t||f>=120&&v.length>=120)?new n(p&&v):void 0}v=e[0];var b=-1,y=h[0];e:for(;++b1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,l,u;a(this,i);for(var c=arguments.length,f=Array(c),d=0;d1&&(r=r.substr(1,r.length-1),t=n.default.parse(r)),t},getParsedHash:function(e){var t={},r=e.hash;return r&&0===r.indexOf("#")&&r.length>1&&(r=r.substr(1,r.length-1),t=n.default.parse(r)),t},replaceHashParam:function(e,t){var r=this.getParsedHash(window.location);r[e]=t,window.location.replace("#".concat(n.default.stringify(r)))},concatURLPath:function(){for(var e=Array(arguments.length),t=0;t1&&void 0!==arguments[1]?arguments[1]:s,n=new URL(e);return t.includes(n.protocol)}};exports.default=l,e.exports=exports.default},nWroukhr:function(e,exports,t){e.exports=t.p+"01da0b465eafcfc2810bd896463ac177.js"},nXSFNspX:function(e,exports,t){e.exports=t("jaIgFIJB")(339)},nZX7QwTg:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;t