!function(e){function t(t){for(var n,s,o=t[0],a=t[1],i=0,c=[];i({type:"palette",name:t.name})}}let i;!function(e){e.Blues="Blues",e.Greens="Greens",e.Greys="Greys",e.Reds="Reds",e.YellowToRed="Yellow to Red",e.GreenToRed="Green to Red"}(i||(i={}));const l={[i.Blues]:{id:i.Blues,label:r.i18n.translate("charts.colormaps.bluesText",{defaultMessage:"Blues"}),value:[[0,[.969,.984,1]],[.114,[.879,.927,.971]],[.227,[.793,.87,.943]],[.341,[.662,.81,.897]],[.454,[.492,.722,.855]],[.568,[.331,.622,.805]],[.681,[.199,.513,.746]],[.795,[.093,.397,.674]],[.908,[.031,.282,.558]],[1,[.031,.188,.42]]]},[i.Greens]:{id:i.Greens,label:r.i18n.translate("charts.colormaps.greensText",{defaultMessage:"Greens"}),value:[[0,[.969,.988,.961]],[.114,[.904,.963,.886]],[.227,[.802,.922,.776]],[.341,[.672,.868,.647]],[.454,[.519,.798,.515]],[.568,[.345,.715,.409]],[.681,[.201,.613,.322]],[.795,[.087,.502,.234]],[.908,[0,.383,.154]],[1,[0,.267,.106]]]},[i.Greys]:{id:i.Greys,label:r.i18n.translate("charts.colormaps.greysText",{defaultMessage:"Greys"}),value:[[0,[1,1,1]],[.114,[.946,.946,.946]],[.227,[.867,.867,.867]],[.341,[.771,.771,.771]],[.454,[.643,.643,.643]],[.568,[.513,.513,.513]],[.681,[.392,.392,.392]],[.795,[.257,.257,.257]],[.908,[.105,.105,.105]],[1,[0,0,0]]]},[i.Reds]:{id:i.Reds,label:r.i18n.translate("charts.colormaps.redsText",{defaultMessage:"Reds"}),value:[[0,[1,.961,.941]],[.114,[.996,.886,.834]],[.227,[.99,.76,.666]],[.341,[.988,.616,.497]],[.454,[.986,.472,.347]],[.568,[.958,.314,.226]],[.681,[.872,.168,.146]],[.795,[.741,.081,.102]],[.908,[.579,.042,.074]],[1,[.404,0,.051]]]},[i.YellowToRed]:{id:i.YellowToRed,label:r.i18n.translate("charts.colormaps.yellowToRedText",{defaultMessage:"Yellow to Red"}),value:[[0,[1,1,.8]],[.114,[1,.936,.643]],[.227,[.997,.865,.492]],[.341,[.996,.739,.343]],[.454,[.994,.605,.258]],[.568,[.99,.417,.197]],[.681,[.943,.212,.14]],[.795,[.835,.064,.124]],[.908,[.675,0,.149]],[1,[.502,0,.149]]]},[i.GreenToRed]:{id:i.GreenToRed,label:r.i18n.translate("charts.colormaps.greenToRedText",{defaultMessage:"Green to Red"}),value:[[0,[0,.408,.216]],[.029,[.028,.46,.243]],[.059,[.06,.519,.273]],[.088,[.088,.57,.3]],[.117,[.155,.622,.327]],[.147,[.236,.662,.347]],[.176,[.33,.707,.371]],[.205,[.41,.745,.389]],[.235,[.489,.78,.398]],[.264,[.557,.81,.405]],[.294,[.636,.845,.414]],[.323,[.694,.87,.444]],[.352,[.757,.897,.484]],[.382,[.812,.92,.52]],[.411,[.869,.945,.569]],[.44,[.909,.962,.625]],[.47,[.956,.982,.689]],[.499,[.997,.999,.745]],[.528,[.999,.964,.689]],[.558,[.998,.931,.633]],[.587,[.997,.893,.569]],[.616,[.995,.848,.519]],[.646,[.994,.786,.468]],[.675,[.993,.732,.422]],[.705,[.99,.667,.373]],[.734,[.98,.597,.341]],[.763,[.969,.517,.304]],[.793,[.96,.447,.272]],[.822,[.93,.371,.237]],[.851,[.899,.305,.207]],[.881,[.863,.23,.172]],[.91,[.824,.17,.153]],[.939,[.762,.111,.151]],[.969,[.709,.059,.15]],[.998,[.647,0,.149]],[1,[.647,0,.149]]]}},c=Object.values(l).map((({id:e,label:t})=>({value:e,text:t})));var u=n(2);function h(e,t){var n;if(!Object(u.isNumber)(e)||e<0||e>1)throw new Error("heatmap_color expects a number from 0 to 1 as first parameter");const r=null===(n=l[t])||void 0===n?void 0:n.value;if(!r)throw new Error("invalid colorSchemaName provided");const s=function(e,t){const n=[],r=[],s=[],o=[];t.forEach((e=>{n.push(e[0]),r.push(e[1][0]),s.push(e[1][1]),o.push(e[1][2])}));let a=1;for(;n[a]r.length?t(2*e+(r.pop()?1:-1),2*n,r):e/n,n=(e+2).toString(2).split("").map((function(e){return parseInt(e,10)}));return n.shift(),t(1,2,n)};function c(e){if(!s.a.isNumber(e))throw new TypeError("ColorPaletteUtilService expects a number");const t=a,n=a.length;return s.a.times(e-n,(function(e){t.push(Object(o.hsl)((360*l(e+n+1)+i)%360,50,50).hex())})),t}},function(e,t,n){const r=n(27),s=n(30),o=["keyword","gray","hex"],a={};for(const e of Object.keys(s))a[[...s[e].labels].sort().join("")]=e;const i={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in o&&(t=null),t&&!(t in s))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=s[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=s[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=d(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:o}=s[this.model],i=[];for(n=0;n(e%360+360)%360)),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):s[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),s=void 0===t?.5:t,o=2*s-1,a=n.alpha()-r.alpha(),i=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,c=1-i;return l.rgb(i*n.red()+c*r.red(),i*n.green()+c*r.green(),i*n.blue()+c*r.blue(),n.alpha()*s+r.alpha()*(1-s))}};for(const e of Object.keys(s)){if(o.includes(e))continue;const{channels:t}=s[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=s[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=d(n,t)),new l(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(i[r]||(i[r]=[]))[t]=n;return e=e[0],function(r){let s;return void 0!==r?(n&&(r=n(r)),s=this[e](),s.color[t]=r,s):(s=this[e]().color[t],n&&(s=n(s)),s)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function d(e,t){for(let n=0;n1&&(s-=1)),[360*s,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const s=o.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[s,100*a,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,s=Math.min(1-t,1-n,1-r);return[100*((1-t-s)/(1-s)||0),100*((1-n-s)/(1-s)||0),100*((1-r-s)/(1-s)||0),100*s]},o.rgb.keyword=function(e){const t=s[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(r)){const s=(i=r[t],((a=e)[0]-i[0])**2+(a[1]-i[1])**2+(a[2]-i[2])**2);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],s=t[2];return n/=95.047,r/=100,s/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,[116*r-16,500*(n-r),200*(r-s)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let s,o,a;if(0===n)return a=255*r,[a,a,a];s=r<.5?r*(1+n):r+n-r*n;const i=2*r-s,l=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,a=6*o<1?i+6*(s-i)*o:2*o<1?s:3*o<2?i+(s-i)*(2/3-o)*6:i,l[e]=255*a;return l},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,s=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,s*=o<=1?o:2-o,[t,100*(0===r?2*s/(o+s):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const s=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),i=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,s){case 0:return[r,l,a];case 1:return[i,r,a];case 2:return[a,r,l];case 3:return[a,i,r];case 4:return[l,a,r];case 5:return[r,a,i]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,s=Math.max(r,.01);let o,a;a=(2-n)*r;const i=(2-n)*s;return o=n*s,o/=i<=1?i:2-i,o=o||0,a/=2,[t,100*o,100*a]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const s=n+r;let o;s>1&&(n/=s,r/=s);const a=Math.floor(6*t),i=1-r;o=6*t-a,0!=(1&a)&&(o=1-o);const l=n+o*(i-n);let c,u,h;switch(a){default:case 6:case 0:c=i,u=l,h=n;break;case 1:c=l,u=i,h=n;break;case 2:c=n,u=i,h=l;break;case 3:c=n,u=l,h=i;break;case 4:c=l,u=n,h=i;break;case 5:c=i,u=n,h=l}return[255*c,255*u,255*h]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,s=e[3]/100;return[255*(1-Math.min(1,t*(1-s)+s)),255*(1-Math.min(1,n*(1-s)+s)),255*(1-Math.min(1,r*(1-s)+s))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let s,o,a;return s=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*s,255*o,255*a]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const s=n**3,o=t**3,a=r**3;return n=s>.008856?s:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let s;return s=360*Math.atan2(r,n)/2/Math.PI,s<0&&(s+=360),[t,Math.sqrt(n*n+r*r),s]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){const[n,r,s]=e;let a=null===t?o.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let i=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,s=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=s-o;let i,l;return i=a<1?o/(1-a):0,l=a<=0?0:s===t?(n-r)/a%6:s===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*i]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let s=0;return r<1&&(s=(n-.5*r)/(1-r)),[e[0],100*r,100*s]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let s=0;return r<1&&(s=(n-r)/(1-r)),[e[0],100*r,100*s]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const s=[0,0,0],o=t%1*6,a=o%1,i=1-a;let l=0;switch(Math.floor(o)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=i,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=i,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=i}return l=(1-n)*r,[255*(n*s[0]+l),255*(n*s[1]+l),255*(n*s[2]+l)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let s=0;return r<1&&(s=(n-r)/(1-r)),[e[0],100*r,100*s]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t,n){"use strict";n.d(t,"a",(function(){return mapped_colors_MappedColors}));var r=n(3),s=n.n(r),o=n(2),a=n.n(o),i=n(12),l=n.n(i),c=n(6),u=n(11);const h=e=>new l.a(e).hex().toLowerCase();class mapped_colors_MappedColors{constructor(e,t=u.a){s()(this,"_oldMap",void 0),s()(this,"_mapping",void 0),this.uiSettings=e,this.colorPaletteFn=t,this._oldMap={},this._mapping={}}getConfigColorMapping(){var e;return a.a.mapValues((null===(e=this.uiSettings)||void 0===e?void 0:e.get(c.COLOR_MAPPING_SETTING))||{},h)}get oldMap(){return this._oldMap}get mapping(){return this._mapping}get(e){return this.getConfigColorMapping()[e]||this._mapping[e]}getColorFromConfig(e){return this.getConfigColorMapping()[e]}flush(){this._oldMap=a.a.clone(this._mapping),this._mapping={}}purge(){this._oldMap={},this._mapping={}}mapKeys(e){const t=this.getConfigColorMapping(),n=a.a.values(t),r=a.a.values(this._oldMap),s=[];a.a.each(e,(e=>{t[e]&&delete this._mapping[e],a.a.includes(n,this._mapping[e])&&s.push(e),this._oldMap[e]&&(this._mapping[e]=this._oldMap[e]),null==this.get(e)&&s.push(e)}));const o=a()(this._mapping).values().union(n).union(r).value(),i=this.colorPaletteFn(o.length+s.length);let l=a.a.difference(i,o);for(;s.length>l.length;)l=l.concat(a.a.sampleSize(o,s.length-l.length));a.a.merge(this._mapping,a.a.zipObject(s,l))}}},function(e,t,n){e.exports=n(18)(1466)},function(e,t,n){"use strict";n.r(t),n.d(t,"plugin",(function(){return V})),n.d(t,"createColorPalette",(function(){return c.a})),n.d(t,"seedColors",(function(){return c.b})),n.d(t,"CurrentTime",(function(){return O})),n.d(t,"EmptyPlaceholder",(function(){return S})),n.d(t,"useCommonChartStyles",(function(){return z})),n.d(t,"Endzones",(function(){return L})),n.d(t,"getAdjustedInterval",(function(){return D})),n.d(t,"renderEndzoneTooltip",(function(){return I})),n.d(t,"Warnings",(function(){return F})),n.d(t,"ColorPickerLazy",(function(){return $})),n.d(t,"ColorPicker",(function(){return B})),n.d(t,"LegendToggleLazy",(function(){return H})),n.d(t,"LegendToggle",(function(){return G})),n.d(t,"MULTILAYER_TIME_AXIS_STYLE",(function(){return N.a})),n.d(t,"lightenColor",(function(){return q.a})),n.d(t,"useActiveCursor",(function(){return g})),n.d(t,"paletteIds",(function(){return o.paletteIds})),n.d(t,"ColorSchemas",(function(){return o.ColorSchemas})),n.d(t,"vislibColorMaps",(function(){return o.vislibColorMaps})),n.d(t,"colorSchemas",(function(){return o.colorSchemas})),n.d(t,"getHeatmapColors",(function(){return o.getHeatmapColors})),n.d(t,"ColorMode",(function(){return o.ColorMode})),n.d(t,"LabelRotation",(function(){return o.LabelRotation})),n.d(t,"defaultCountLabel",(function(){return o.defaultCountLabel}));var r=n(3),s=n.n(r),o=n(6),a=n(2),i=n.n(a),l=n(22),c=n(11);class colors_LegacyColorsService{constructor(){s()(this,"_mappedColors",void 0),s()(this,"seedColors",c.b)}get mappedColors(){if(!this._mappedColors)throw new Error("ColorService not yet initialized");return this._mappedColors}init(e){this._mappedColors=new l.a(e)}createColorLookupFunction(e,t={}){if(!Array.isArray(e))throw new Error("createColorLookupFunction expects an array but recived: "+typeof e);return e.forEach((function(e){if(!i.a.isString(e)&&!i.a.isNumber(e)&&!i.a.isUndefined(e))throw new TypeError("createColorLookupFunction expects an array of strings, numbers, or undefined values")})),this.mappedColors.mapKeys(e),e=>t[e]||this.mappedColors.get(e)}}var u=n(1),h=n.n(u),d=n(10),p=n(7),f=n(15);class theme_ThemeService{constructor(){s()(this,"chartsDefaultTheme",f.EUI_CHARTS_THEME_LIGHT.theme),s()(this,"chartsDefaultBaseTheme",p.LIGHT_THEME),s()(this,"theme$",void 0),s()(this,"_chartsTheme$",new d.BehaviorSubject(this.chartsDefaultTheme)),s()(this,"_chartsBaseTheme$",new d.BehaviorSubject(this.chartsDefaultBaseTheme)),s()(this,"chartsTheme$",this._chartsTheme$.asObservable()),s()(this,"chartsBaseTheme$",this._chartsBaseTheme$.asObservable()),s()(this,"useDarkMode",(()=>{const[e,t]=Object(u.useState)(!1);return Object(u.useEffect)((()=>{const e=this.darkModeEnabled$.subscribe((e=>{t(e.darkMode)}));return()=>e.unsubscribe()}),[]),e})),s()(this,"useChartsTheme",(()=>{const[e,t]=Object(u.useState)(this._chartsTheme$.getValue()),n=Object(u.useRef)(e);return Object(u.useEffect)((()=>{const e=this.chartsTheme$.subscribe((e=>{e!==n.current&&(n.current=e,t(e))}));return()=>e.unsubscribe()}),[]),e})),s()(this,"useChartsBaseTheme",(()=>{const[e,t]=Object(u.useState)(this._chartsBaseTheme$.getValue()),n=Object(u.useRef)(e);return Object(u.useEffect)((()=>{const e=this.chartsBaseTheme$.subscribe((e=>{e!==n.current&&(n.current=e,t(e))}));return()=>e.unsubscribe()}),[]),e}))}get darkModeEnabled$(){if(!this.theme$)throw new Error("ThemeService not initialized");return this.theme$}init(e){this.theme$=e.theme$,this.theme$.subscribe((({darkMode:e})=>{const t=e?f.EUI_CHARTS_THEME_DARK.theme:f.EUI_CHARTS_THEME_LIGHT.theme;this._chartsTheme$.next(t),this._chartsBaseTheme$.next(e?p.DARK_THEME:p.LIGHT_THEME)}))}}class active_cursor_ActiveCursor{constructor(){s()(this,"activeCursor$",void 0)}setup(){this.activeCursor$=new d.Subject}}var b=n(16);const g=(e,t,n)=>{const{accessors:r,isDateHistogram:s}=(e=>{return n=e,Boolean(n&&"isDateHistogram"in n)?{isDateHistogram:e.isDateHistogram}:(t=e.datatables,{isDateHistogram:Boolean(t.length)&&t.every((e=>e.columns.some((e=>{var t;return Boolean(null===(t=e.meta.sourceParams)||void 0===t?void 0:t.appliedTimeRange)})))),accessors:Object(a.uniq)(t.map((e=>{const t=e.columns.find((e=>e.meta.index&&e.meta.field));if(null!=t&&t.meta.index)return`${t.meta.index}:${t.meta.field}`})).filter(Boolean))});var t,n})(n),o=Object(u.useCallback)((t=>{var n;null===(n=e.activeCursor$)||void 0===n||n.next({cursor:t,isDateHistogram:s,accessors:r})}),[e.activeCursor$,r,s]);return Object(u.useEffect)((()=>{var o,i;const l=null===(o=e.activeCursor$)||void 0===o?void 0:o.pipe(Object(b.debounceTime)(null!==(i=n.debounce)&&void 0!==i?i:40,d.animationFrameScheduler),Object(b.filter)((e=>!(!e.isDateHistogram||!s)||Object(a.intersection)(r,e.accessors).length>0))).subscribe((({cursor:e})=>{var n;null==t||null===(n=t.current)||void 0===n||n.dispatchExternalPointerEvent(e)}));return()=>{null==l||l.unsubscribe()}}),[e.activeCursor$,n.debounce,t,r,s]),o};class service_PaletteService{constructor(){s()(this,"palettes",void 0)}setup(e){return{getPalettes:async()=>{if(!this.palettes){const{buildPalettes:t}=await n.e(1).then(n.bind(null,38));this.palettes=t(e)}return{get:e=>this.palettes[e],getAll:()=>Object.values(this.palettes)}}}}}class plugin_ChartsPlugin{constructor(){s()(this,"themeService",new theme_ThemeService),s()(this,"legacyColorsService",new colors_LegacyColorsService),s()(this,"paletteService",new service_PaletteService),s()(this,"activeCursor",new active_cursor_ActiveCursor),s()(this,"palettes",void 0)}setup(e,t){return t.expressions.registerFunction(o.palette),t.expressions.registerFunction(o.systemPalette),this.themeService.init(e.theme),this.legacyColorsService.init(e.uiSettings),this.palettes=this.paletteService.setup(this.legacyColorsService),this.activeCursor.setup(),{legacyColors:this.legacyColorsService,theme:this.themeService,palettes:this.palettes}}start(){return{legacyColors:this.legacyColorsService,theme:this.themeService,palettes:this.palettes,activeCursor:this.activeCursor}}}var m=n(4),v=n(0),y={name:"1azakc",styles:"text-align:center"};const x=()=>{const e=y;return Object(v.jsx)("div",{css:e},Object(v.jsx)(m.EuiLoadingSpinner,null))};var _=n(23),w=n.n(_);const j=(e,t=Object(v.jsx)(x,null))=>h.a.forwardRef(((n,r)=>Object(v.jsx)(m.EuiErrorBoundary,null,Object(v.jsx)(u.Suspense,{fallback:t},Object(v.jsx)(e,w()({},n,{ref:r}))))));var M=n(9),k=n.n(M),C=n(8);const O=({isDarkMode:e,domainEnd:t})=>{const n={line:{strokeWidth:2,stroke:e?C.euiDarkVars.euiColorDanger:C.euiLightVars.euiColorDanger,opacity:.7}},r=k()(),s=[{dataValue:t&&k()(t).add(1,"m").isAfter(r)&&r.isAfter(t)?t:r.valueOf()}];return Object(v.jsx)(p.LineAnnotation,{id:"__current-time__",hideTooltips:!0,domainType:p.AnnotationDomainType.XDomain,dataValues:s,style:n})};var T=n(21);const E={name:"bqbi5a",styles:"height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center"},S=({icon:e,iconColor:t="subdued",message:n=Object(v.jsx)(T.FormattedMessage,{id:"charts.noDataLabel",defaultMessage:"No results found"}),dataTestSubj:r="emptyPlaceholder",className:s,renderComplete:o})=>(Object(u.useEffect)((()=>{null==o||o()}),[o]),Object(v.jsx)("div",{className:s,css:E},Object(v.jsx)(m.EuiText,{"data-test-subj":r,textAlign:"center",color:"subdued",size:"xs"},Object(v.jsx)(m.EuiIcon,{type:e,color:t,size:"l"}),Object(v.jsx)(m.EuiSpacer,{size:"s"}),Object(v.jsx)("p",null,n)))),z=()=>{const{euiTheme:e}=Object(m.useEuiTheme)();return{chartIcon:{subdued:Object(u.useMemo)((()=>Object(v.css)("fill:",e.colors.subduedText,";","")),[e.colors.subduedText]),accent:Object(v.css)("fill:",C.euiThemeVars.euiColorVis0,";","")}}};var A=n(5);const L=({isDarkMode:e,domainStart:t,domainEnd:n,interval:r,domainMin:s,domainMax:o,hideTooltips:a=!0,isFullBin:i=!1})=>{const l={stroke:e?C.euiDarkVars.euiColorLightShade:C.euiLightVars.euiColorDarkShade,strokeWidth:0,opacity:e?.6:.2,fill:e?C.euiDarkVars.euiColorLightShade:C.euiLightVars.euiColorDarkShade},c=[];return t>s&&c.push({coordinates:{x1:i?s:t}}),n-r{const s=e.reduce(((s,o,a)=>{let i=s;a>0&&(i=Math.abs(e[a-1]-o));const l=((e,t,n,r)=>{switch(n){case"s":return 1e3*t;case"ms":return 1*t;default:return((e,t,n,r)=>{const s=k.a.tz(e,r),o=k.a.tz(s,r).startOf(n);return k.a.tz(s,r).startOf(n).add(t,n).valueOf()-o.valueOf()})(e,t,n,r)}})(o,t,n,r);return Math.min(s,l,i)}),Number.MAX_SAFE_INTEGER);return s>0?s:k.a.duration(t,n).asMilliseconds()},P=A.i18n.translate("charts.partialData.bucketTooltipText",{defaultMessage:"The selected time range does not include this entire bucket. It might contain partial data."}),R=()=>{const{euiTheme:e}=Object(m.useEuiTheme)(),t=Object(v.css)("font-weight:",e.font.weight.regular,";min-width:",12*e.base,";","");return Object(v.jsx)(m.EuiFlexGroup,{alignItems:"center",responsive:!1,gutterSize:"xs",css:t},Object(v.jsx)(m.EuiFlexItem,{grow:!1},Object(v.jsx)(m.EuiIcon,{type:"iInCircle"})),Object(v.jsx)(m.EuiFlexItem,null,P))},I=(e,t,n,r,s=!0)=>o=>{const a=o.value,i=r?r(a):a;return void 0!==t&&t>a||void 0!==n&&void 0!==e&&n-e{o(!s)}),[s]);return 0===e.length?null:Object(v.jsx)(h.a.Fragment,null,Object(v.jsx)(m.EuiPopover,{isOpen:s,panelPaddingSize:"none",closePopover:()=>o(!1),button:t?Object(v.jsx)(m.EuiButton,{color:"warning",css:Object(v.css)("block-size:",r.size.l,";border-radius:0 ",r.border.radius.medium," 0 ",r.border.radius.small,";font-size:",a,";padding:0 ",r.size.xs,";&>*{gap:",r.size.xs,";}",""),iconSize:"s",iconType:"warning",minWidth:0,onClick:i,size:"s","data-test-subj":n},e.length):Object(v.jsx)(m.EuiButtonEmpty,{color:"warning",iconType:"warning",onClick:i,size:"xs","data-test-subj":n},A.i18n.translate("charts.warning.warningLabel",{defaultMessage:"{numberWarnings, number} {numberWarnings, plural, one {warning} other {warnings}}",values:{numberWarnings:e.length}}))},Object(v.jsx)("div",{style:{maxWidth:512}},e.map(((t,n)=>Object(v.jsx)(h.a.Fragment,{key:n},Object(v.jsx)("div",{css:Object(v.css)({padding:r.size.s},"",""),"data-test-subj":"chart-inline-warning"},Object(v.jsx)(m.EuiText,{size:"s"},t)),nn.e(3).then(n.bind(null,36)).then((({ColorPicker:e})=>({default:e}))))),B=j($),H=h.a.lazy((()=>n.e(4).then(n.bind(null,37)).then((({LegendToggle:e})=>({default:e}))))),G=j(H);var N=n(14),q=n(17);const V=()=>new plugin_ChartsPlugin},function(e,t,n){n(26),__kbnBundles__.define("plugin/charts/public",n,24),__kbnBundles__.define("plugin/charts/common",n,6)},function(e,t,n){n.p=window.__kbnPublicPath__.charts},function(e,t,n){var r=n(19),s=n(28),o=Object.hasOwnProperty,a={};for(var i in r)o.call(r,i)&&(a[r[i]]=i);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,s,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(s=t[2],t=t[1],n=0;n<3;n++){var i=2*n;a[n]=parseInt(t.slice(i,i+2),16)}s&&(a[3]=parseInt(s,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(s=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);s&&(a[3]=parseInt(s+s,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=s(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=s(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=s(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=s(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=s(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},function(e,t,n){"use strict";var r=n(29),s=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},function(e,t,n){const r=n(20),s=n(31),o={};Object.keys(r).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=s(e);Object.keys(t).forEach((n=>{const r=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},function(e,t,n){const r=n(20);function s(e,t){return function(n){return t(e(n))}}function o(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),o=s(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r