text: /*!
    * CoreUI Plugins - Chart.js for CoreUI 3 v2.0.0-beta.0 (https://coreui.io)
    * Copyright 2019 Łukasz Holeczek
    * Licensed under MIT (https://coreui.io/plugins/chart.js)
    */
  import"chart.js";function customTooltips(e){var t="c-above",a="c-below",o="c-chartjs-tooltip",c="c-no-transform",l="c-tooltip-body",n="c-tooltip-body-item",i="c-tooltip-body-item-color",s="c-tooltip-body-item-label",r="c-tooltip-body-item-value",d="c-tooltip-header",p="c-tooltip-header-item",m={DIV:"div",SPAN:"span",TOOLTIP:(this._chart.canvas.id||(()=>{var e=()=>{return(65536*(1+Math.random())|0).toString(16)},t="_canvas-"+(e()+e());return this._chart.canvas.id=t,t})())+"-tooltip"},h=document.getElementById(m.TOOLTIP);if(h||((h=document.createElement("div")).id=m.TOOLTIP,h.className=o,this._chart.canvas.parentNode.appendChild(h)),0!==e.opacity){if(h.classList.remove(t,a,c),e.yAlign?h.classList.add(e.yAlign):h.classList.add(c),e.body){var v=e.title||[],u=document.createElement(m.DIV);u.className=d,v.forEach(e=>{var t=document.createElement(m.DIV);t.className=p,t.innerHTML=e,u.appendChild(t)});var y=document.createElement(m.DIV);y.className=l,e.body.map(e=>e.lines).forEach((t,a)=>{var o=document.createElement(m.DIV);o.className=n;var c=e.labelColors[a],l=document.createElement(m.SPAN);if(l.className=i,l.style.backgroundColor=c.backgroundColor,o.appendChild(l),t[0].split(":").length>1){var d=document.createElement(m.SPAN);d.className=s,d.innerHTML=t[0].split(": ")[0],o.appendChild(d);var p=document.createElement(m.SPAN);p.className=r,p.innerHTML=t[0].split(": ").pop(),o.appendChild(p)}else{var h=document.createElement(m.SPAN);h.className=r,h.innerHTML=t[0],o.appendChild(h)}y.appendChild(o)}),h.innerHTML="",h.appendChild(u),h.appendChild(y)}var N=this._chart.canvas.getBoundingClientRect(),T=this._chart.canvas.offsetTop,b=this._chart.canvas.offsetLeft+e.caretX,f=T+e.caretY,C=e.width/2;b+C>N.width?b-=C:b<C&&(b+=C),h.style.opacity=1,h.style.left=b+"px",h.style.top=f+"px"}else h.style.opacity=0}export{customTooltips};
  //# sourceMappingURL=coreui-chartjs.esm.min.js.map
  