var Zo=(u,t)=>()=>{try{return t||u((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var qo=Zo((Ve,ve)=>{var Td=200,Do="__lodash_hash_undefined__",Pd=800,Rd=16,Eo=9007199254740991,To="[object Arguments]",Fd="[object Array]",Id="[object AsyncFunction]",Nd="[object Boolean]",Xd="[object Date]",Od="[object Error]",Po="[object Function]",Bd="[object GeneratorFunction]",Yd="[object Map]",zd="[object Number]",Wd="[object Null]",Ro="[object Object]",Hd="[object Proxy]",$d="[object RegExp]",Gd="[object Set]",Vd="[object String]",Ud="[object Undefined]",qd="[object WeakMap]",jd="[object ArrayBuffer]",Zd="[object DataView]",Kd="[object Float32Array]",Jd="[object Float64Array]",Qd="[object Int8Array]",tu="[object Int16Array]",eu="[object Int32Array]",su="[object Uint8Array]",iu="[object Uint8ClampedArray]",au="[object Uint16Array]",nu="[object Uint32Array]",ru=/[\\^$.*+?()[\]{}|]/g,ou=/^\[object .+?Constructor\]$/,lu=/^(?:0|[1-9]\d*)$/,nt={};nt[Kd]=nt[Jd]=nt[Qd]=nt[tu]=nt[eu]=nt[su]=nt[iu]=nt[au]=nt[nu]=!0;nt[To]=nt[Fd]=nt[jd]=nt[Nd]=nt[Zd]=nt[Xd]=nt[Od]=nt[Po]=nt[Yd]=nt[zd]=nt[Ro]=nt[$d]=nt[Gd]=nt[Vd]=nt[qd]=!1;var Fo=typeof global=="object"&&global&&global.Object===Object&&global,cu=typeof self=="object"&&self&&self.Object===Object&&self,je=Fo||cu||Function("return this")(),Io=typeof Ve=="object"&&Ve&&!Ve.nodeType&&Ve,Ue=Io&&typeof ve=="object"&&ve&&!ve.nodeType&&ve,No=Ue&&Ue.exports===Io,Za=No&&Fo.process,wo=(function(){try{var u=Ue&&Ue.require&&Ue.require("util").types;return u||Za&&Za.binding&&Za.binding("util")}catch{}})(),vo=wo&&wo.isTypedArray;function hu(u,t,e){switch(e.length){case 0:return u.call(t);case 1:return u.call(t,e[0]);case 2:return u.call(t,e[0],e[1]);case 3:return u.call(t,e[0],e[1],e[2])}return u.apply(t,e)}function du(u,t){for(var e=-1,s=Array(u);++e-1}function Ru(u,t){var e=this.__data__,s=Ns(e,u);return s<0?(++this.size,e.push([u,t])):e[s][1]=t,this}Ft.prototype.clear=Du;Ft.prototype.delete=Eu;Ft.prototype.get=Tu;Ft.prototype.has=Pu;Ft.prototype.set=Ru;function _e(u){var t=-1,e=u==null?0:u.length;for(this.clear();++t1?e[i-1]:void 0,n=i>2?e[2]:void 0;for(a=u.length>3&&typeof a=="function"?(i--,a):void 0,n&&cf(e[0],e[1],n)&&(a=i<3?void 0:a,i=1),t=Object(t);++s-1&&u%1==0&&u0){if(++t>=Pd)return arguments[0]}else t=0;return u.apply(void 0,arguments)}}function xf(u){if(u!=null){try{return Is.call(u)}catch{}try{return u+""}catch{}}return""}function Bs(u,t){return u===t||u!==u&&t!==t}var tn=Lo((function(){return arguments})())?Lo:function(u){return Ze(u)&&Rt.call(u,"callee")&&!yu.call(u,"callee")},en=Array.isArray;function nn(u){return u!=null&&$o(u.length)&&!rn(u)}function bf(u){return Ze(u)&&nn(u)}var Ho=vu||Af;function rn(u){if(!oe(u))return!1;var t=Xs(u);return t==Po||t==Bd||t==Id||t==Hd}function $o(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=Eo}function oe(u){var t=typeof u;return u!=null&&(t=="object"||t=="function")}function Ze(u){return u!=null&&typeof u=="object"}function yf(u){if(!Ze(u)||Xs(u)!=Ro)return!1;var t=Oo(u);if(t===null)return!0;var e=Rt.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Is.call(e)==xu}var Go=vo?uu(vo):qu;function wf(u){return af(u,Vo(u))}function Vo(u){return nn(u)?$u(u,!0):ju(u)}var vf=nf(function(u,t,e){Yo(u,t,e)});function _f(u){return function(){return u}}function Uo(u){return u}function Af(){return!1}ve.exports=vf});var Ko=Object.defineProperty,Jo=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,oi=(u,t,e)=>t in u?Ko(u,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[t]=e,G=(u,t)=>{for(var e in t||(t={}))wr.call(t,e)&&oi(u,e,t[e]);if(rs)for(var e of rs(t))vr.call(t,e)&&oi(u,e,t[e]);return u},j=(u,t)=>Jo(u,Qo(t)),tl=(u,t)=>{var e={};for(var s in u)wr.call(u,s)&&t.indexOf(s)<0&&(e[s]=u[s]);if(u!=null&&rs)for(var s of rs(u))t.indexOf(s)<0&&vr.call(u,s)&&(e[s]=u[s]);return e},J=(u,t,e)=>oi(u,typeof t!="symbol"?t+"":t,e),_r=(u,t,e)=>new Promise((s,i)=>{var a=o=>{try{r(e.next(o))}catch(l){i(l)}},n=o=>{try{r(e.throw(o))}catch(l){i(l)}},r=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,n);r((e=e.apply(u,t)).next())});var H=class{static isSSR(){return typeof window>"u"||typeof document>"u"}static isBrowser(){return!this.isSSR()}static hasAPI(t){return this.isSSR()?!1:typeof window[t]<"u"}static getApex(){return typeof window<"u"&&window.Apex?window.Apex:typeof global<"u"&&global.Apex?global.Apex:{}}},os=class u{constructor(t,e=null){this.nodeName=t,this.namespaceURI=e,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new li,this.parentNode=null,this._ssrWidth=void 0,this._ssrHeight=void 0,this._ssrMode=void 0}setAttribute(t,e){this.attributes.set(t,e)}getAttribute(t){return this.attributes.get(t)}removeAttribute(t){this.attributes.delete(t)}hasAttribute(t){return this.attributes.has(t)}appendChild(t){if(t&&t!==this){if(t.parentNode&&t.parentNode!==this)t.parentNode.removeChild(t);else if(t.parentNode===this){let e=this.children.indexOf(t);e!==-1&&this.children.splice(e,1)}t.parentNode=this,this.children.push(t)}return t}removeChild(t){let e=this.children.indexOf(t);return e!==-1&&(this.children.splice(e,1),t.parentNode=null),t}insertBefore(t,e){if(!e)return this.appendChild(t);if(t.parentNode&&t.parentNode!==this)t.parentNode.removeChild(t);else if(t.parentNode===this){let i=this.children.indexOf(t);i!==-1&&this.children.splice(i,1)}let s=this.children.indexOf(e);return s!==-1&&(t.parentNode=this,this.children.splice(s,0,t)),t}cloneNode(t=!1){let e=new u(this.nodeName,this.namespaceURI);return e.textContent=this.textContent,this.attributes.forEach((s,i)=>{e.attributes.set(i,s)}),Object.assign(e.style,this.style),t&&this.children.forEach(s=>{s.cloneNode&&e.appendChild(s.cloneNode(!0))}),e}getBoundingClientRect(){return{width:this._ssrWidth||0,height:this._ssrHeight||0,top:0,left:0,right:this._ssrWidth||0,bottom:this._ssrHeight||0,x:0,y:0}}getRootNode(){let t=this;for(;t.parentNode;)t=t.parentNode;return t}querySelector(){return null}querySelectorAll(){return[]}getElementsByClassName(){return[]}addEventListener(){}removeEventListener(){}get childNodes(){return this.children}toString(){let t="";if(this.attributes.forEach((s,i)=>{t+=` ${i}="${s}"`}),this.children.length===0&&!this.textContent)return`<${this.nodeName}${t}/>`;let e=this.children.map(s=>s.toString()).join("");return`<${this.nodeName}${t}>${this.textContent}${e}`}get innerHTML(){return this.children.map(t=>t.toString()).join("")}set innerHTML(t){this.children=[],this.textContent=t}get outerHTML(){return this.toString()}get isConnected(){return!0}},li=class{constructor(){this.classes=new Set}add(...t){t.forEach(e=>this.classes.add(e))}remove(...t){t.forEach(e=>this.classes.delete(e))}contains(t){return this.classes.has(t)}toggle(t,e){return e===!0?(this.classes.add(t),!0):e===!1?(this.classes.delete(t),!1):this.classes.has(t)?(this.classes.delete(t),!1):(this.classes.add(t),!0)}toString(){return Array.from(this.classes).join(" ")}},ci=class{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(t,e){return new os(e,t)}createTextNode(t){let e={nodeName:"#text",nodeType:3,textContent:t,toString(){return e.textContent}};return e}querySelector(){return null}querySelectorAll(){return[]}getComputedStyle(){return{}}getBoundingClientRect(t){return t&&t.getBoundingClientRect?t.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}createXMLSerializer(){return{serializeToString(t){return t.toString?t.toString():""}}}createDOMParser(){return{parseFromString(t,e){let s=new os("root");return s.innerHTML=t,{documentElement:s}}}}},gt=null,Gt=null,Vt=null,O=class{static init(){H.isSSR()&&!gt&&(gt=new ci)}static createElement(t){return H.isSSR()?(gt||this.init(),gt.createElementNS(null,t)):document.createElement(t)}static createElementNS(t,e){return H.isSSR()?(gt||this.init(),gt.createElementNS(t,e)):document.createElementNS(t,e)}static createTextNode(t){return H.isSSR()?(gt||this.init(),gt.createTextNode(t)):document.createTextNode(t)}static querySelector(t){return H.isSSR()?null:document.querySelector(t)}static querySelectorAll(t){return H.isSSR()?[]:document.querySelectorAll(t)}static getComputedStyle(t){return H.isSSR()?{}:window.getComputedStyle(t)}static matchMedia(t){if(H.isSSR()||typeof window.matchMedia!="function")return null;try{return window.matchMedia(t)}catch{return null}}static getBoundingClientRect(t){return H.isSSR()?(gt||this.init(),gt.getBoundingClientRect(t)):t?t.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return H.isSSR()?(gt||this.init(),Gt||(Gt=gt.createXMLSerializer()),Gt):(Gt||(Gt=new XMLSerializer),Gt)}static getDOMParser(){return H.isSSR()?(gt||this.init(),Vt||(Vt=gt.createDOMParser()),Vt):(Vt||(Vt=new DOMParser),Vt)}static addWindowEventListener(t,e,s){H.isBrowser()&&window.addEventListener(t,e,s)}static removeWindowEventListener(t,e,s){H.isBrowser()&&window.removeEventListener(t,e,s)}static requestAnimationFrame(t){return H.isBrowser()?window.requestAnimationFrame(t):(t(0),null)}static cancelAnimationFrame(t){H.isBrowser()&&t&&window.cancelAnimationFrame(t)}static elementExists(t){return t?H.isSSR()?t._ssrMode===!0||t.nodeName!==void 0:t.getRootNode?t.getRootNode({composed:!0})===document||t.isConnected:!1:!1}static getWindow(){return H.isBrowser()?window:null}static getDocument(){return H.isBrowser()?document:null}static _getShim(){return gt}static _resetShim(){gt=null,Gt=null,Vt=null}},on=new WeakMap,el=0,T=class Xt{static isObject(t){return t&&typeof t=="object"&&!Array.isArray(t)}static is(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}static isSafari(){return H.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(t,e){if(!this.isObject(t)&&this.isObject(e))return this.clone(e);let s=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(i=>{this.isObject(e[i])?i in t?s[i]=this.extend(t[i],e[i]):Object.assign(s,{[i]:e[i]}):Object.assign(s,{[i]:e[i]})}),s}static extendArray(t,e){let s=[];return t.map(i=>{s.push(Xt.extend(e,i))}),t=s,t}static monthMod(t){return t%12}static clone(t,e=new WeakMap,s=!1){if(t===null||typeof t!="object")return t;if(e.has(t))return e.get(t);let i;if(Array.isArray(t))if(s)i=t.slice();else{i=[],e.set(t,i);for(let a=0;a{if(typeof s!="function")return s;let i=on.get(s);return i===void 0&&(i=++el,on.set(s,i)),`__apx_fn_${i}`})}static shallowEqual(t,e){if(t===e)return!0;if(!t||!e)return!1;if(typeof t!="object"||typeof e!="object")return t===e;let s=Object.keys(t),i=Object.keys(e);if(s.length!==i.length)return!1;for(let a of s)if(t[a]!==e[a])return!1;return!0}static log10(t){return Math.log(t)/Math.LN10}static roundToBase10(t){return Math.pow(10,Math.floor(Math.log10(t)))}static roundToBase(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}static parseNumber(t){return typeof t=="number"||t===null?t:parseFloat(t)}static stripNumber(t,e=2){return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}static randomId(){return(Math.random()+1).toString(36).substring(4)}static noExponents(t){return t.toString().includes("e")?Math.round(t):t}static elementExists(t){return!(!t||!t.isConnected)}static getDimensions(t){if(!t)return[0,0];if(H.isSSR())return[t._ssrWidth||400,t._ssrHeight||300];let e;try{e=getComputedStyle(t,null)}catch{return[t.clientWidth||0,t.clientHeight||0]}let s=t.clientWidth,i=t.clientHeight;if(!s||!i){let a=t.getBoundingClientRect();s=s||a.width,i=i||a.height}return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),s-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),[s,i]}static getBoundingClientRect(t){if(!t)return{top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0};if(H.isSSR())return O.getBoundingClientRect(t);let e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}static getLargestStringFromArr(t){return t.reduce((e,s)=>(Array.isArray(s)&&(s=s.reduce((i,a)=>i.length>a.length?i:a)),e.length>s.length?e:s),0)}static hexToRgba(t="#999999",e=.6){t.substring(0,1)!=="#"&&(t="#999999");let s=t.replace("#",""),i=s.match(new RegExp("(.{"+s.length/3+"})","g"))||[];for(let a=0;as+s).join("")),/^[0-9a-fA-F]{6}$/.test(e)?[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]:null}static relativeLuminance([t,e,s]){let i=a=>{let n=a/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)};return .2126*i(t)+.7152*i(e)+.0722*i(s)}static getContrastRatio(t,e){let s=Xt.parseHex(t),i=Xt.parseHex(e);if(!s||!i)return 0;let a=Xt.relativeLuminance(s),n=Xt.relativeLuminance(i),r=Math.max(a,n),o=Math.min(a,n);return(r+.05)/(o+.05)}static rgb2hex(t){return t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),t&&t.length===4?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}shadeRGBColor(t,e){let s=e.split(","),i=t<0?0:255,a=t<0?t*-1:t,n=parseInt(s[0].slice(4),10),r=parseInt(s[1],10),o=parseInt(s[2],10);return"rgb("+(Math.round((i-n)*a)+n)+","+(Math.round((i-r)*a)+r)+","+(Math.round((i-o)*a)+o)+")"}shadeHexColor(t,e){let s=parseInt(e.slice(1),16),i=t<0?0:255,a=t<0?t*-1:t,n=s>>16,r=s>>8&255,o=s&255;return"#"+(16777216+(Math.round((i-n)*a)+n)*65536+(Math.round((i-r)*a)+r)*256+(Math.round((i-o)*a)+o)).toString(16).slice(1)}shadeColor(t,e){return Xt.isColorHex(e)?this.shadeHexColor(t,e):this.shadeRGBColor(t,e)}static isColorHex(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}static isCSSVariable(t){if(typeof t!="string")return!1;let e=t.trim();return e.startsWith("var(")&&e.endsWith(")")}static getThemeColor(t){if(!Xt.isCSSVariable(t)||H.isSSR())return t;let e=document.createElement("div");e.style.cssText="position:fixed; left: -9999px; visibility:hidden;",e.style.color=t,document.body.appendChild(e);let s;try{s=window.getComputedStyle(e).color}finally{e.parentNode&&e.parentNode.removeChild(e)}return s}static applyOpacityToColor(t,e){let s=Number(e);if(!Number.isFinite(s))return t;if(s<=0)return"transparent";if(s>=1)return t;let i=Math.round(s*100);return`color-mix(in srgb, ${t} ${i}%, transparent)`}static getPolygonPos(t,e){let s=[],i=Math.PI*2/e;for(let a=0;a{}[\]\\/]/gi,e),s}static negToZero(t){return t<0?0:t}static moveIndexInArray(t,e,s){if(s>=t.length){let i=s-t.length+1;for(;i--;)t.push(void 0)}return t.splice(s,0,t.splice(e,1)[0]),t}static extractNumber(t){return parseFloat(t.replace(/[^\d.]*/g,""))}static findAncestor(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}static setELstyles(t,e){for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t.style[s]=e[s])}static preciseAddition(t,e){let s=(String(t).split(".")[1]||"").length,i=(String(e).split(".")[1]||"").length,a=Math.pow(10,Math.max(s,i));return(Math.round(t*a)+Math.round(e*a))/a}static isNumber(t){return!isNaN(t)&&parseFloat(String(Number(t)))===t&&!isNaN(parseInt(t,10))}static isFloat(t){return Number(t)===t&&t%1!==0}static isMsEdge(){if(H.isSSR())return!1;let t=window.navigator.userAgent,e=t.indexOf("Edge/");return e>0?parseInt(t.substring(e+5,t.indexOf(".",e)),10):!1}static getGCD(t,e,s=7){let i=Math.pow(10,s-Math.floor(Math.log10(Math.max(t,e))));for(i>1?(t=Math.round(Math.abs(t)*i),e=Math.round(Math.abs(e)*i)):i=1;e;){let a=e;e=t%e,t=a}return t/i}static getPrimeFactors(t){let e=[],s=2;for(;t>=2;)t%s==0?(e.push(s),t=t/s):s++;return e}static mod(t,e,s=7){let i=Math.pow(10,s-Math.floor(Math.log10(Math.max(t,e))));return t=Math.round(Math.abs(t)*i),e=Math.round(Math.abs(e)*i),t%e/i}},mt=class{constructor(t){this.w=t,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}isValidDate(t){return typeof t=="number"?!1:!isNaN(this.parseDate(t))}getTimeStamp(t){return isNaN(Date.parse(t))?t:this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime()}getDate(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}parseDate(t){let e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);let s=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return s=this.getTimeStamp(s),s}parseDateWithTimezone(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}formatDate(t,e){let s=this.w.globals.locale,i=this.w.config.xaxis.labels.datetimeUTC,a=["\0",...s.months],n=["",...s.shortMonths],r=["",...s.days],o=["",...s.shortDays];function l(A,S=2){let C=A+"";for(;C.length12?f-12:f===0?12:f;e=e.replace(/(^|[^\\])hh+/g,"$1"+l(g)),e=e.replace(/(^|[^\\])h/g,"$1"+g);let p=i?t.getUTCMinutes():t.getMinutes();e=e.replace(/(^|[^\\])mm+/g,"$1"+l(p)),e=e.replace(/(^|[^\\])m/g,"$1"+p);let m=i?t.getUTCSeconds():t.getSeconds();e=e.replace(/(^|[^\\])ss+/g,"$1"+l(m)),e=e.replace(/(^|[^\\])s/g,"$1"+m);let b=i?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(b,3)),b=Math.round(b/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(b)),b=Math.round(b/10),e=e.replace(/(^|[^\\])f/g,"$1"+b);let x=f<12?"AM":"PM";e=e.replace(/(^|[^\\])TT+/g,"$1"+x),e=e.replace(/(^|[^\\])T/g,"$1"+x.charAt(0));let _=x.toLowerCase();e=e.replace(/(^|[^\\])tt+/g,"$1"+_),e=e.replace(/(^|[^\\])t/g,"$1"+_.charAt(0));let w=-t.getTimezoneOffset(),y=i||!w?"Z":w>0?"+":"-";if(!i){w=Math.abs(w);let A=Math.floor(w/60),S=w%60;y+=l(A)+":"+l(S)}e=e.replace(/(^|[^\\])K/g,"$1"+y);let v=(i?t.getUTCDay():t.getDay())+1;return e=e.replace(new RegExp(r[0],"g"),r[v]),e=e.replace(new RegExp(o[0],"g"),o[v]),e=e.replace(new RegExp(a[0],"g"),a[h]),e=e.replace(new RegExp(n[0],"g"),n[h]),e=e.replace(/\\(.)/g,"$1"),e}getTimeUnitsfromTimestamp(t,e){let s=this.w;s.config.xaxis.min!==void 0&&(t=s.config.xaxis.min),s.config.xaxis.max!==void 0&&(e=s.config.xaxis.max);let i=this.getDate(t),a=this.getDate(e),n=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),r=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(n[6],10),maxMillisecond:parseInt(r[6],10),minSecond:parseInt(n[5],10),maxSecond:parseInt(r[5],10),minMinute:parseInt(n[4],10),maxMinute:parseInt(r[4],10),minHour:parseInt(n[3],10),maxHour:parseInt(r[3],10),minDate:parseInt(n[2],10),maxDate:parseInt(r[2],10),minMonth:parseInt(n[1],10)-1,maxMonth:parseInt(r[1],10)-1,minYear:parseInt(n[0],10),maxYear:parseInt(r[0],10)}}isLeapYear(t){return t%4===0&&t%100!==0||t%400===0}calculcateLastDaysOfMonth(t,e,s){return this.determineDaysOfMonths(t,e)-s}determineDaysOfYear(t){let e=365;return this.isLeapYear(t)&&(e=366),e}determineRemainingDaysOfYear(t,e,s){let i=this.daysCntOfYear[e]+s;return e>1&&this.isLeapYear(t)&&i++,i}determineDaysOfMonths(t,e){let s=30;switch(t=T.monthMod(t),!0){case this.months30.indexOf(t)>-1:t===2&&(this.isLeapYear(e)?s=29:s=28);break;case this.months31.indexOf(t)>-1:s=31;break;default:s=31;break}return s}getDateFields(t,e){let s=new Date(t);return e?{year:s.getUTCFullYear(),month:s.getUTCMonth(),date:s.getUTCDate(),hour:s.getUTCHours(),minute:s.getUTCMinutes(),second:s.getUTCSeconds(),ms:s.getUTCMilliseconds(),weekday:s.getUTCDay()}:{year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hour:s.getHours(),minute:s.getMinutes(),second:s.getSeconds(),ms:s.getMilliseconds(),weekday:s.getDay()}}addInterval(t,e,s,i){let a=new Date(t);if(i)switch(e){case"year":a.setUTCFullYear(a.getUTCFullYear()+s);break;case"month":a.setUTCMonth(a.getUTCMonth()+s);break;case"week":a.setUTCDate(a.getUTCDate()+s*7);break;case"day":a.setUTCDate(a.getUTCDate()+s);break;case"hour":a.setUTCHours(a.getUTCHours()+s);break;case"minute":a.setUTCMinutes(a.getUTCMinutes()+s);break;case"second":a.setUTCSeconds(a.getUTCSeconds()+s);break}else switch(e){case"year":a.setFullYear(a.getFullYear()+s);break;case"month":a.setMonth(a.getMonth()+s);break;case"week":a.setDate(a.getDate()+s*7);break;case"day":a.setDate(a.getDate()+s);break;case"hour":a.setHours(a.getHours()+s);break;case"minute":a.setMinutes(a.getMinutes()+s);break;case"second":a.setSeconds(a.getSeconds()+s);break}return a.getTime()}ceilToBoundary(t,e,s,i){let a=new Date(t);if(i)switch(e){case"second":{let n=a.getUTCSeconds(),r=Math.ceil(n/s)*s;return r===n&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(r),a.getTime())}case"minute":{let n=a.getUTCMinutes(),r=Math.ceil(n/s)*s;return r===n&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(r),a.getTime())}case"hour":{let n=a.getUTCHours(),r=Math.ceil(n/s)*s;return r===n&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(r),a.getTime())}case"day":return a.getUTCHours()===0&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0),a.setUTCDate(a.getUTCDate()+1),a.getTime());case"week":{let r=Date.UTC(1970,0,5);a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0);let o=a.getTime(),l=Math.ceil((o-r)/6048e5),c=Math.ceil(l/s)*s,h=r+c*6048e5;return h>=t?h:h+s*6048e5}case"month":{let n=a.getUTCMonth(),r=Math.ceil(n/s)*s;return r===n&&a.getUTCDate()===1&&a.getUTCHours()===0&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:(a.setUTCMilliseconds(0),a.setUTCSeconds(0),a.setUTCMinutes(0),a.setUTCHours(0),a.setUTCDate(1),a.setUTCMonth(r),a.getTime())}case"year":{let n=a.getUTCFullYear(),r=Math.ceil(n/s)*s;return r===n&&a.getUTCMonth()===0&&a.getUTCDate()===1&&a.getUTCHours()===0&&a.getUTCMinutes()===0&&a.getUTCSeconds()===0&&a.getUTCMilliseconds()===0?t:Date.UTC(r,0,1)}}else switch(e){case"second":{let n=a.getSeconds(),r=Math.ceil(n/s)*s;return r===n&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(r),a.getTime())}case"minute":{let n=a.getMinutes(),r=Math.ceil(n/s)*s;return r===n&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(r),a.getTime())}case"hour":{let n=a.getHours(),r=Math.ceil(n/s)*s;return r===n&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(r),a.getTime())}case"day":return a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.setDate(a.getDate()+1),a.getTime());case"week":{let r=new Date(1970,0,5).getTime();a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0);let o=a.getTime(),l=Math.ceil((o-r)/6048e5),c=Math.ceil(l/s)*s,h=r+c*6048e5;return h>=t?h:h+s*6048e5}case"month":{let n=a.getMonth(),r=Math.ceil(n/s)*s;return r===n&&a.getDate()===1&&a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:(a.setMilliseconds(0),a.setSeconds(0),a.setMinutes(0),a.setHours(0),a.setDate(1),a.setMonth(r),a.getTime())}case"year":{let n=a.getFullYear(),r=Math.ceil(n/s)*s;return r===n&&a.getMonth()===0&&a.getDate()===1&&a.getHours()===0&&a.getMinutes()===0&&a.getSeconds()===0&&a.getMilliseconds()===0?t:new Date(r,0,1).getTime()}}return t}isAtBoundary(t,e,s){let i=this.getDateFields(t,s);switch(e){case"year":return i.month===0&&i.date===1&&i.hour===0&&i.minute===0&&i.second===0&&i.ms===0;case"month":return i.date===1&&i.hour===0&&i.minute===0&&i.second===0&&i.ms===0;case"day":return i.hour===0&&i.minute===0&&i.second===0&&i.ms===0;case"hour":return i.minute===0&&i.second===0&&i.ms===0;case"minute":return i.second===0&&i.ms===0;case"second":return i.ms===0}return!1}},ee=class{constructor(t){this.w=t,this.tooltipKeyFormat="dd MMM"}xLabelFormat(t,e,s,i){let a=this.w;if(a.config.xaxis.type==="datetime"&&a.config.xaxis.labels.formatter===void 0&&a.config.tooltip.x.formatter===void 0){let n=new mt(this.w);return n.formatDate(n.getDate(e),a.config.tooltip.x.format)}return t(e,s,i)}defaultGeneralFormatter(t){return Array.isArray(t)?t.map(e=>e):t}defaultYFormatter(t,e){let s=this.w;if(T.isNumber(t))if(s.globals.yValueDecimal!==0)t=t.toFixed(e.decimalsInFloat!==void 0?e.decimalsInFloat:s.globals.yValueDecimal);else{let i=t.toFixed(0);t=Number(i)===t?i:t.toFixed(1)}return t}setLabelFormatters(){let t=this.w,e=t.formatters;return e.xaxisTooltipFormatter=s=>this.defaultGeneralFormatter(s),e.ttKeyFormatter=s=>this.defaultGeneralFormatter(s),e.ttZFormatter=s=>s,e.legendFormatter=s=>this.defaultGeneralFormatter(s),t.config.xaxis.labels.formatter!==void 0?e.xLabelFormatter=t.config.xaxis.labels.formatter:e.xLabelFormatter=s=>{if(T.isNumber(s)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(T.isNumber(t.config.xaxis.decimalsInFloat))return s.toFixed(t.config.xaxis.decimalsInFloat);{let i=t.globals.maxX-t.globals.minX;if(i>0){let a=i/10,n=Math.max(0,-Math.floor(Math.log10(a)));return s.toFixed(n)}return s.toFixed(0)}}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minY<4?s.toFixed(1):s.toFixed(0)}return s},typeof t.config.tooltip.x.formatter=="function"?e.ttKeyFormatter=t.config.tooltip.x.formatter:e.ttKeyFormatter=e.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(e.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(e.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(e.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(e.legendFormatter=t.config.legend.formatter),e.yLabelFormatters=[],t.config.yaxis.forEach((s,i)=>{if(s.labels.formatter!==void 0)e.yLabelFormatters[i]=s.labels.formatter;else if(t.config.chart.type==="violin"){let a=n=>typeof n=="number"&&isFinite(n)?`${Math.round(n*100)/100}`:n;e.yLabelFormatters[i]=n=>t.globals.xyCharts?Array.isArray(n)?n.map(a):a(n):n}else e.yLabelFormatters[i]=a=>t.globals.xyCharts?Array.isArray(a)?a.map(n=>this.defaultYFormatter(n,s)):this.defaultYFormatter(a,s):a}),t.globals}heatmapLabelFormatters(){let t=this.w;if(t.config.chart.type==="heatmap"){t.globals.yAxisScale[0].result=t.seriesData.seriesNames.slice();let e=t.seriesData.seriesNames.reduce((s,i)=>s.length>i.length?s:i,0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}},sl="en",il={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom",measure:"Measure"}},Ar={name:sl,options:il},wt=class{constructor(){this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,alignZero:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0},tooltip:{enabled:!1,text:void 0,formatter:void 0,theme:void 0,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}init(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},plugins:[],chart:{animations:{enabled:!0,speed:800,easing:"easeInOutSine",animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350,easing:void 0},chartTypeMorph:{enabled:!0,speed:600},respectReducedMotion:!0,largeDatasetThreshold:1e3},background:"",locales:[Ar],defaultLocale:"en",perspectives:{serializeOptions:["theme","xaxis","yaxis","title","subtitle"]},history:{enabled:!1,maxDepth:100,coalesceMs:250,keyboard:!0},renderer:"svg",rendererThreshold:8e3,layers:{series:"auto",grid:"svg",annotations:"svg",dataLabels:"svg"},dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0,crossFilter:void 0,filterChange:void 0,annotationDragged:void 0,annotationEdited:void 0,annotationCreated:void 0,annotationStyled:void 0,annotationDeleted:void 0,measured:void 0,keyDown:void 0,keyUp:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,license:void 0,offsetX:0,offsetY:0,injectStyleSheet:!0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},link:{enabled:!1,mode:"highlight",dimOpacity:.2,id:void 0,dimension:void 0,reduce:void 0,type:void 0,bins:void 0,order:void 0,seriesName:void 0},ink:{enabled:!1,palette:!1,snap:!1,noteColors:void 0},measure:{enabled:!1,mode:"span",key:"m",pinOnRelease:!0,colors:{up:void 0,down:void 0,neutral:void 0,guide:void 0},band:!0,guides:!0,markers:!0,format:{x:void 0,y:void 0,percent:void 0},label:void 0},contextMenu:{enabled:!1,items:["annotate","xline","yline","measure"],labels:{annotate:void 0,xline:void 0,yline:void 0,measure:void 0},noteText:"Note",line:{text:"",strokeDashArray:4,color:void 0}},stacked:!1,stackOnlyBar:!0,stackType:"normal",streaming:{enabled:!1,maxPoints:void 0},toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,measure:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0,embedFonts:!0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:"auto",pinch:"auto",zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}},pan:{inertia:!0,friction:.92},accessibility:{enabled:!0,description:void 0,announcements:{enabled:!0},keyboard:{enabled:!0,navigation:{enabled:!0,wrapAround:!1}}},dataReducer:{enabled:!1,algorithm:"lttb",targetPoints:250,threshold:500}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},scatter:{jitter:{enabled:!1,x:0,y:0,distributed:!1,maxPoints:5e3}},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"},whiskers:"minmax",points:{show:!1,shape:"circle",size:2.5,jitter:.5,maxPoints:3e3,opacity:.9,fillColor:"series-dark",strokeColor:"#fff",strokeWidth:1}},violin:{bandwidthScale:1,kde:{bandwidth:void 0,resolution:64},normalize:"individual",points:{show:!0,shape:"circle",size:2.5,jitter:.5,constrainToViolin:!0,maxPoints:3e3,opacity:.9,fillColor:"series-dark",strokeColor:"#fff",strokeWidth:1}},histogram:{bins:"auto",binWidth:void 0,range:void 0,normalize:"count",cumulative:!1,overlap:!0},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0,gradientLegend:{enabled:!1,width:"70%",height:"70%",thickness:12,align:"center",stops:16,showLabels:!0,showHoverValue:!0,labelStyle:{fontSize:"11px",fontFamily:void 0,colors:void 0},arrow:{size:8,color:void 0},formatter:void 0}}},funnel:{shape:"rectangle",lastShape:"flat"},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale",minFontSize:4},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0,colorValue:void 0,gradient:{enabled:void 0,min:void 0,max:void 0,midpoint:void 0,symmetric:!0,colors:void 0,stops:void 0},gradientLegend:{enabled:!1,width:"70%",height:"70%",thickness:12,align:"center",stops:16,showLabels:!0,showHoverValue:!0,labelStyle:{fontSize:"11px",fontFamily:void 0,colors:void 0},arrow:{size:8,color:void 0},formatter:void 0}},nested:{enabled:void 0,drilldownAsLevels:!1},parents:{show:"auto",padding:4,fill:void 0,fillOpacity:1,borderColor:void 0,borderWidth:1,borderRadius:void 0,hover:{show:!0,color:void 0,width:2},header:{show:!0,height:22,minWidth:40,align:"left",offsetX:0,offsetY:0,showValue:!1,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,color:void 0,background:void 0,cssClass:""}},tooltip:{formatter:void 0}},levels:[],zoom:{enabled:!1,breadcrumb:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},unit:{layout:"grouped",positions:void 0,transition:"group",shape:"circle",image:{src:void 0,width:20,height:20,tint:!1},size:"auto",columns:{size:"inherit"},grid:{columns:10,total:void 0,fillFrom:"bottom",split:!1,tileColumns:void 0,max:void 0,trackColor:void 0},scatter:{y:"lanes",spread:"swarm",orientation:"horizontal",tickAmount:5,xMin:void 0,xMax:void 0,xTitle:void 0,xFormatter:void 0,yTickAmount:5,yMin:void 0,yMax:void 0,yTitle:void 0,yFormatter:void 0,sizeField:"z",sizeRange:void 0,laneLabelWidth:void 0,gridlines:!0},sizeByValue:{enabled:!1,maxRadius:"auto",minRadius:void 0,scale:"area"},spacing:1.05,borderRadius:0,gather:{motion:"auto",spring:"crisp",easing:"outCubic",overshoot:1.70158,enter:"burst"},arc:{startAngle:-90,endAngle:90,innerRadiusRatio:.4,rows:"auto"},unitValue:1,maxUnits:5e3,sortByGroup:!0,clusterLabels:{show:!0,position:"top",curved:!0,fontSize:"13px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:void 0,external:{show:!1,connector:{show:!0,width:1.5,color:void 0,gap:8,length:22},offsetX:0,offsetY:0}},tooltip:{formatter:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,shape:"arc",min:0,max:100,bands:[],bandsStyle:{strokeWidth:"40%",gap:0,hideTrackWhenPresent:!0},ticks:{show:!1,major:{count:11,length:10,width:2,color:"#666",placement:"outside"},minor:{count:4,length:5,width:1,color:"#999",placement:"outside"},labels:{show:!1,offset:6,fontSize:"11px",fontFamily:void 0,fontWeight:400,color:"#666",formatter(t){return String(t)}}},needle:{color:"#333",length:"85%",baseWidth:4,tipWidth:1,offsetY:0,showValueArc:!1,animation:{enabled:!0,duration:800,easing:"ease-out"}},hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",stroke:void 0,strokeWidth:1,strokeDasharray:void 0,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter(t){return t.globals.seriesTotals.reduce((e,s)=>e+s,0)/t.seriesData.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,expandOffset:10,hoverOutline:{show:!0,size:8,gap:0,opacity:.3,color:void 0},borderRadius:0,spacing:0,dataLabels:{offset:0,minAngleToShowLabel:10,external:{show:!1,offsetX:0,offsetY:0,fontSize:void 0,fontFamily:void 0,fontWeight:void 0,color:void 0,formatter:void 0,connector:{show:!0,width:1,color:void 0,length:16,gap:6}}},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter(t){return t.globals.seriesTotals.reduce((e,s)=>e+s,0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},sunburst:{offsetX:0,offsetY:0,startAngle:0,endAngle:360,innerSize:"15%",borderRadius:0,spacing:1,leaf:"extend",partition:"normalize",tint:.14,zoomOnClick:!0,dataLabels:{show:!0,minAngleToShow:8,style:{fontSize:"12px",fontFamily:void 0,fontWeight:400,colors:void 0}}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter(t){return t!==null?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8},animate:{enabled:!1},countUp:{enabled:!1}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],drilldown:{enabled:!1,series:[],breadcrumb:{show:!0,position:"top-left",separator:" / ",rootLabel:"All",offsetX:0,offsetY:0},animation:{enabled:!0,zoomFromPoint:!1,speed:260},loading:{show:!0},cache:!0,marker:{show:!0,size:6,strokeColor:"#fff"}},legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten",value:.15}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.35}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0,background:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM",day:"dd MMM",hour:"HH:mm",minute:"HH:mm",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!1,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",tokens:!0,follow:!1,name:"",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65},accessibility:{colorBlindMode:""}}}}},Sr="_apexOwnedByType",Se=(u,t)=>{let e=t;return e[Sr]=u,t},al=["tooltip.custom","tooltip.shared","tooltip.intersect","tooltip.followCursor","dataLabels.enabled","dataLabels.formatter","plotOptions.bar.dataLabels.position","markers.size","states.hover.filter.type","states.active.filter.type","xaxis.crosshairs.width","xaxis.tickPlacement","xaxis.tooltip.enabled","chart.zoom.enabled","chart.animations.dynamicAnimation.enabled"],Ke=(u,t)=>{let e=u;for(let s of t.split(".")){if(e==null||typeof e!="object")return;e=e[s]}return e},nl=(u,t,e)=>{let s=t.split("."),i=s.pop(),a=u;for(let n of s)(a[n]==null||typeof a[n]!="object")&&(a[n]={}),a=a[n];e===void 0?delete a[i]:a[i]=e},rl={funnel:"bar",pyramid:"bar",gauge:"radialBar",waffle:"unit",histogram:"bar"},ln=(u,t)=>{var e,s;let i=rl[u];return{chart:{type:i||u,requestedType:i?u:void 0,stacked:(e=t.chart)==null?void 0:e.stacked},plotOptions:{bar:{isFunnel:u==="funnel"||u==="pyramid"},histogram:(s=t.plotOptions)==null?void 0:s.histogram},series:t.series,yaxis:[{title:{},labels:{},axisBorder:{},axisTicks:{}}]}},ol=(u,t)=>{if(typeof u=="function")return Array.isArray(u[Sr])?!0:typeof t=="function"&&String(u)===String(t);if(typeof t=="function")return u===void 0;if(u===t)return!0;try{return JSON.stringify(u)===JSON.stringify(t)}catch{return!1}},Ys=({isTimeline:u,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a})=>{var n;let r=a.rangeData.seriesRangeStart[t][e],o=a.rangeData.seriesRangeEnd[t][e],l=a.labelData.labels[e],c=a.config.series[t].name?a.config.series[t].name:"",h=a.formatters.ttKeyFormatter,d=a.config.tooltip.y.title.formatter,f={w:a,seriesIndex:t,dataPointIndex:e,start:r,end:o};typeof d=="function"&&(c=d(c,f)),(n=a.config.series[t].data[e])!=null&&n.x&&(l=a.config.series[t].data[e].x),u||a.config.xaxis.type==="datetime"&&(l=new ee(a).xLabelFormat(a.formatters.ttKeyFormatter,l,l,{i:void 0,dateFormatter:new mt(a).formatDate,w:a})),typeof h=="function"&&(l=h(l,f)),Number.isFinite(s)&&Number.isFinite(i)&&(r=s,o=i);let g="",p="",m=a.globals.colors[t];if(a.config.tooltip.x.formatter===void 0)if(a.config.xaxis.type==="datetime"){let b=new mt(a);g=b.formatDate(b.getDate(r),a.config.tooltip.x.format),p=b.formatDate(b.getDate(o),a.config.tooltip.x.format)}else g=r,p=o;else g=a.config.tooltip.x.formatter(r),p=a.config.tooltip.x.formatter(o);return{start:r,end:o,startVal:g,endVal:p,ylabel:l,color:m,seriesName:c}},zs=u=>{let{color:t,seriesName:e,ylabel:s,start:i,end:a,seriesIndex:n,dataPointIndex:r}=u,o=u.w.globals.tooltip.tooltipLabels.getFormatters(n);i=o.yLbFormatter(i),a=o.yLbFormatter(a);let l=o.yLbFormatter(u.w.seriesData.series[n][r]),c="",h=` ${i} - ${a} `;return u.w.globals.comboCharts?u.w.config.series[n].type==="rangeArea"||u.w.config.series[n].type==="rangeBar"?c=h:c=`${l}`:c=h,'
'+(e||"")+'
'+s+": "+c+"
"},Lt=class u{constructor(t){this.opts=t}static forType(t){var e,s;let i=new u(t),a=["line","area","bar","candlestick","boxPlot","violin","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","unit","sunburst","pie","polarArea","donut","radar","radialBar"],n=t.chart.requestedType,r;return n==="funnel"||n==="pyramid"?r=i[n]():n==="gauge"?r=i.gauge():n==="histogram"?r=i.histogram():a.indexOf(t.chart.type)!==-1?r=i[t.chart.type]():r=i.line(),(s=(e=t.plotOptions)==null?void 0:e.bar)!=null&&s.isFunnel&&(r=i.funnel()),t.chart.stacked&&t.chart.type==="bar"&&(r=i.stackedBars()),r}static handOverTypeDefaults(t,e,s){let i=t.chart.requestedType||t.chart.type;if(!e||e===i)return;let a=new wt().init(),n=T.extend(a,u.forType(ln(e,t))),r=T.extend(a,u.forType(ln(i,t)));for(let o of al){if(s&&Ke(s,o)!==void 0)continue;let l=Ke(n,o),c=Ke(r,o);l===void 0&&c===void 0||ol(Ke(t,o),l)&&nl(t,o,c)}}hideYAxis(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}line(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}sparkline(t){this.hideYAxis();let e={grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}};return T.extend(t,e)}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter(t,e){let s=e.w.config.series[e.seriesIndex].name;return t!==null?s+": "+t:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}bar(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}funnel(){return this.hideYAxis(),j(G({},this.bar()),{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}pyramid(){return this.funnel()}gauge(){let t=this.radialBar();return j(G({},t),{plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:"60%"},track:{background:"#e7e7e7",strokeWidth:"100%",margin:5},dataLabels:{name:{show:!1},value:{show:!0,fontSize:"32px",fontWeight:600,offsetY:8}}}}})}histogram(){var t,e,s,i;let a=Array.isArray((t=this.opts)==null?void 0:t.series)&&this.opts.series.length>1&&((i=(s=(e=this.opts)==null?void 0:e.plotOptions)==null?void 0:s.histogram)==null?void 0:i.overlap)!==!1;return j(G({},this.bar()),{chart:{stacked:!1,zoom:{enabled:!1},animations:{animateGradually:{enabled:!1}}},plotOptions:{bar:{columnWidth:"100%",borderRadius:0,dataLabels:{position:"top"}}},dataLabels:{enabled:!1},fill:a?{opacity:.65}:{},stroke:a?{show:!1}:{show:!0,width:1,colors:["#fff"]},xaxis:{type:"numeric",tooltip:{enabled:!1}},tooltip:{shared:a,intersect:!1,x:{formatter:(n,r)=>{var o,l;let c=(l=(o=r?.w)==null?void 0:o.histogramData)==null?void 0:l.edges,h=r?.dataPointIndex;if(!Array.isArray(c)||typeof h!="number"||h<0)return String(n);let d=c[h],f=c[h+1];if(d===void 0||f===void 0)return String(n);let g=p=>Number.isInteger(p)?String(p):p.toFixed(2);return`${g(d)} to ${g(f)}`}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:Se(["candlestick"],({seriesIndex:t,dataPointIndex:e,w:s})=>this._getBoxTooltip(s,t,e,["Open","High","","Low","Close"],"candlestick"))},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}boxPlot(){return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:Se(["boxPlot"],({seriesIndex:t,dataPointIndex:e,w:s})=>this._getBoxTooltip(s,t,e,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot"))},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}violin(){return{chart:{zoom:{enabled:!1},animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},fill:{opacity:.7},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:Se(["violin"],({seriesIndex:t,dataPointIndex:e,w:s})=>this._getViolinTooltip(s,t,e))},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}rangeBar(){let t=s=>{let{color:i,seriesName:a,ylabel:n,startVal:r,endVal:o}=Ys(j(G({},s),{isTimeline:!0}));return zs(j(G({},s),{color:i,seriesName:a,ylabel:n,start:r,end:o}))},e=s=>{let{color:i,seriesName:a,ylabel:n,start:r,end:o}=Ys(s);return zs(j(G({},s),{color:i,seriesName:a,ylabel:n,start:r,end:o}))};return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter(s,{seriesIndex:i,dataPointIndex:a,w:n}){let r=()=>{let o=n.rangeData.seriesRangeStart[i][a];return n.rangeData.seriesRangeEnd[i][a]-o};return n.globals.comboCharts?n.config.series[i].type==="rangeBar"||n.config.series[i].type==="rangeArea"?r():s:r()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:Se(["rangeBar"],s=>s.w.config.plotOptions&&s.w.config.plotOptions.bar&&s.w.config.plotOptions.bar.horizontal?t(s):e(s))},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(t){var e,s;return(e=t.plotOptions.bar)!=null&&e.barHeight||(t.plotOptions.bar.barHeight=2),(s=t.plotOptions.bar)!=null&&s.columnWidth||(t.plotOptions.bar.columnWidth=2),t}area(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}rangeArea(){let t=e=>{let{color:s,seriesName:i,ylabel:a,start:n,end:r}=Ys(e);return zs(j(G({},e),{color:s,seriesName:i,ylabel:a,start:n,end:r}))};return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:Se(["rangeArea"],e=>t(e))}}}brush(t){let e={chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}};return T.extend(t,e)}stacked100(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;let e=t.dataLabels.formatter;return t.yaxis.forEach((i,a)=>{t.yaxis[a].min=0,t.yaxis[a].max=100}),t.chart.type==="bar"&&(t.dataLabels.formatter=e||function(i){return typeof i=="number"?i&&i.toFixed(0)+"%":i}),t}stackedBars(){let t=this.bar();return j(G({},t),{plotOptions:j(G({},t.plotOptions),{bar:j(G({},t.plotOptions.bar),{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}convertCatToNumeric(t){return t.xaxis.convertedCatToNumeric=!0,t}convertCatToNumericXaxis(t,e){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(a){return T.isNumber(a)?Math.floor(a):a};let s=t.xaxis.labels.formatter,i=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return e&&e.length&&(i=e.map(a=>Array.isArray(a)?a:String(a))),i&&i.length&&(t.xaxis.labels.formatter=function(a){return T.isNumber(a)?s(i[Math.floor(a)-1]):s(a)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}bubble(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}scatter(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}heatmap(){return{chart:{stacked:!1,zoom:{enabled:!1}},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!1,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}treemap(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1},axisTicks:{show:!1}}}}unit(){return{chart:{toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{show:!1,width:0},fill:{opacity:1},tooltip:{followCursor:!0,x:{show:!1}},legend:{show:!0,position:"bottom"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}sunburst(){return{chart:{toolbar:{show:!1}},dataLabels:{style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter(t){return typeof t=="number"?t.toFixed(1)+"%":t},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}donut(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter(t){return typeof t=="number"?t.toFixed(1)+"%":t},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}polarArea(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter(t){return typeof t=="number"?t.toFixed(1)+"%":t},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}radar(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:t=>t,style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}radialBar(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},stroke:{lineCap:"butt"},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}_getBoxTooltip(t,e,s,i,a){let n=t.candleData.seriesCandleO[e][s],r=t.candleData.seriesCandleH[e][s],o=t.candleData.seriesCandleM[e][s],l=t.candleData.seriesCandleL[e][s],c=t.candleData.seriesCandleC[e][s],h=t.config.series[e];return h.type&&h.type!==a?`
${h.name?h.name:"series-"+(e+1)}: ${t.seriesData.series[e][s]}
`:`
${i[0]}: `+n+`
${i[1]}: `+r+"
"+(o?`
${i[2]}: `+o+"
":"")+`
${i[3]}: `+l+`
${i[4]}: `+c+"
"}_getViolinTooltip(t,e,s){var i,a,n;let r=(i=t.violinData.seriesViolinMin[e])==null?void 0:i[s],o=(a=t.violinData.seriesViolinMax[e])==null?void 0:a[s],l=((n=t.violinData.seriesViolinPoints[e])==null?void 0:n[s])||[],c=t.config.series[e].name||"series-"+(e+1);return`
${c}
Min: ${r}
Max: ${o}
Observations: ${l.length}
`}},se=class{constructor(t){this.opts=t}init({responsiveOverride:t}){var e,s,i,a,n,r,o,l;let c=this.opts,h=new wt,d=new Lt(c);c=this.normalizeAliasedChartType(c),this.chartType=c.chart.type,c=this.extendYAxis(c),c=this.extendAnnotations(c);let f=h.init(),g={};if(c&&typeof c=="object"){let m=Lt.forType(c);(e=c.chart.brush)!=null&&e.enabled&&(m=d.brush(m)),(i=(s=c.plotOptions)==null?void 0:s.line)!=null&&i.isSlopeChart&&(m=d.slope()),c.chart.stacked&&c.chart.stackType==="100%"&&(c=d.stacked100(c)),(n=(a=c.plotOptions)==null?void 0:a.bar)!=null&&n.isDumbbell&&(c=d.dumbbell(c)),this.checkForDarkTheme(H.getApex()),this.checkForDarkTheme(c),c.xaxis=c.xaxis||H.getApex().xaxis||{},t||(c.xaxis.convertedCatToNumeric=!1),c=this.checkForCatToNumericXAxis(this.chartType,m,c),((r=c.chart.sparkline)!=null&&r.enabled||(l=(o=H.getApex().chart)==null?void 0:o.sparkline)!=null&&l.enabled)&&(m=d.sparkline(m)),g=T.extend(f,m)}let p=T.extend(g,H.getApex());return f=T.extend(p,c),f=this.handleUserInputErrors(f),f}normalizeAliasedChartType(t){if(!t||!t.chart)return t;let e=t.chart.type;return e!=="funnel"&&e!=="pyramid"&&e!=="gauge"&&e!=="waffle"&&e!=="histogram"||(t.chart.requestedType=e,e==="waffle"?(t.plotOptions=t.plotOptions||{},t.plotOptions.unit=t.plotOptions.unit||{},t.plotOptions.unit.layout==null&&(t.plotOptions.unit.layout="grid"),t.plotOptions.unit.shape==null&&(t.plotOptions.unit.shape="square"),t.chart.type="unit"):e==="funnel"||e==="pyramid"?(t.plotOptions=t.plotOptions||{},t.plotOptions.bar=t.plotOptions.bar||{},t.plotOptions.bar.isFunnel=!0,t.plotOptions.bar.horizontal=!0,t.chart.type="bar",e==="pyramid"?t.plotOptions.bar.isPyramid=!0:t.plotOptions.bar.isPyramid=!1):e==="gauge"?t.chart.type="radialBar":e==="histogram"&&(t.xaxis=t.xaxis||{},t.xaxis.type==null&&(t.xaxis.type="numeric"),t.chart.type="bar")),t}checkForCatToNumericXAxis(t,e,s){var i,a,n,r,o;let l=new Lt(s),c=(t==="bar"||t==="boxPlot"||t==="violin")&&((a=(i=s.plotOptions)==null?void 0:i.bar)==null?void 0:a.horizontal),h=t==="pie"||t==="polarArea"||t==="donut"||t==="radar"||t==="radialBar"||t==="heatmap"||t==="unit"||t==="sunburst",d=s.xaxis.type!=="datetime"&&s.xaxis.type!=="numeric",f=(t==="scatter"||t==="bubble")&&((o=(r=(n=s.plotOptions)==null?void 0:n.scatter)==null?void 0:r.jitter)==null?void 0:o.enabled),g=s.xaxis.tickPlacement?s.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return!c&&!h&&!f&&d&&g!=="between"&&(s=l.convertCatToNumeric(s)),s}extendYAxis(t,e){let s=new wt;(typeof t.yaxis>"u"||!t.yaxis||Array.isArray(t.yaxis)&&t.yaxis.length===0)&&(t.yaxis={});let i=H.getApex();t.yaxis.constructor!==Array&&i.yaxis&&i.yaxis.constructor!==Array&&(t.yaxis=T.extend(t.yaxis,i.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[T.extend(s.yAxis,t.yaxis)]:t.yaxis=T.extendArray(t.yaxis,s.yAxis);let a=!1;t.yaxis.forEach(r=>{r.logarithmic&&(a=!0)});let n=t.series;return e&&!n&&(n=e.config.series),a&&n.length!==t.yaxis.length&&n.length&&(t.yaxis=n.map((r,o)=>{if(r.name||(n[o].name=`series-${o+1}`),t.yaxis[o])return t.yaxis[o].seriesName=n[o].name,t.yaxis[o];{let l=T.extend(s.yAxis,t.yaxis[0]);return l.show=!1,l}})),a&&n.length>1&&n.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}extendAnnotations(t){return typeof t.annotations>"u"&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),t=this.extendPointAnnotations(t),t}extendYAxisAnnotations(t){let e=new wt;return t.annotations.yaxis=T.extendArray(typeof t.annotations.yaxis<"u"?t.annotations.yaxis:[],e.yAxisAnnotation),t}extendXAxisAnnotations(t){let e=new wt;return t.annotations.xaxis=T.extendArray(typeof t.annotations.xaxis<"u"?t.annotations.xaxis:[],e.xAxisAnnotation),t}extendPointAnnotations(t){let e=new wt;return t.annotations.points=T.extendArray(typeof t.annotations.points<"u"?t.annotations.points:[],e.pointAnnotation),t}checkForDarkTheme(t){t.theme&&t.theme.mode==="dark"&&(t.tooltip||(t.tooltip={}),t.tooltip.theme!=="light"&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.theme.palette||(t.theme.palette="palette4"))}handleUserInputErrors(t){let e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(e.chart.type==="bar"&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return(e.chart.type==="bar"||e.chart.type==="rangeBar")&&e.tooltip.shared&&e.xaxis.crosshairs.width==="barWidth"&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),(e.chart.type==="candlestick"||e.chart.type==="boxPlot")&&e.yaxis[0].reversed&&(console.warn(`Reversed y-axis in ${e.chart.type} chart is not supported.`),e.yaxis[0].reversed=!1),e}},hi=1.618,Cr=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],di=[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],ls=class{initGlobalVars(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.dataWasParsed=!1,t.originalSeries=null,t.maxValsInArrayIndex=0,t.yValueDecimal=0,t.allSeriesHasEqualX=!0,t.hasNullValues=!1,t.invalidLogScale=!1,t.seriesRangeName={},t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.barGroups=[],t.lineGroups=[],t.areaGroups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0,t.multiAxisTickAmount=0,t.disableZoomIn=!1,t.disableZoomOut=!1,t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.rotateXLabels=!1,t.overlappingXLabels=!1,t.radialSize=0,t.barHeight=0,t.barWidth=0,t.animationEnded=!1,t.isDestroyed=!1,t.bulkRevealScheduled=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.delayedElements=[],t.pointsArray=[],t.barCanvasCoords=null,t.activeRenderer=null,t.dataLabelsRects=[],t.lastDrawnDataLabelsIndexes=[],t.textRectsCache=new Map,t.domCache=new Map,t.dimensionCache={},t.cachedSelectors={},t.seriesNS||this._attachNamespaces(t)}_attachNamespaces(t){let e=(r,o,l=o)=>{Object.defineProperty(r,l,{get(){return t[o]},set(c){t[o]=c},enumerable:!0,configurable:!0})},s={};e(s,"series","data");for(let r of["seriesNames","seriesX","seriesZ","seriesXvalues","seriesYvalues","seriesGoals","seriesLog","seriesColors","seriesPercent","seriesTotals","stackedSeriesTotals","seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC","seriesRangeStart","seriesRangeEnd","seriesRange","seriesYAxisMap","seriesYAxisReverseMap","seriesGroups","barGroups","lineGroups","areaGroups","originalSeries","collapsedSeries","collapsedSeriesIndices","ancillaryCollapsedSeries","ancillaryCollapsedSeriesIndices","allSeriesCollapsed","risingSeries","previousPaths","ignoreYAxisIndexes","labels","categoryLabels","timescaleLabels","groups"])e(s,r);Object.defineProperty(t,"seriesNS",{value:s,writable:!1,enumerable:!1,configurable:!0});let i={};for(let r of["minX","maxX","initialMinX","initialMaxX","minY","maxY","minYArr","maxYArr","minZ","maxZ","minDate","maxDate","minXDiff","xRange","yRange","zRange","xAxisScale","yAxisScale","xAxisTicksPositions","xTickAmount","multiAxisTickAmount","dataPoints","maxValsInArrayIndex","isXNumeric","isMultipleYAxis","isMultiLineX","isDataXYZ","dataFormatXNumeric","allSeriesHasEqualX","hasNullValues","dataWasParsed","hasXaxisGroups","hasSeriesGroups","skipFirstTimelinelabel","skipLastTimelinelabel","yValueDecimal","invalidLogScale","noLabelsProvided"])e(i,r);Object.defineProperty(t,"axes",{value:i,writable:!1,enumerable:!1,configurable:!0});let a={};for(let r of["svgWidth","svgHeight","gridWidth","gridHeight","translateX","translateY","translateXAxisX","translateXAxisY","translateYAxisX","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yAxisLabelsWidth","yAxisWidths","yLabelsCoords","yTitleCoords","padHorizontal","barPadForNumericAxis","rotateXLabels","scaleX","scaleY","radialSize","defaultLabels","overlappingXLabels"])e(a,r);Object.defineProperty(t,"layout",{value:a,writable:!1,enumerable:!1,configurable:!0});let n={};for(let r of["domCache","dimensionCache","cachedSelectors","textRectsCache","pointsArray","dataLabelsRects","lastDrawnDataLabelsIndexes","delayedElements","resizeTimer","selectionResizeTimer","resizeObserver"])e(n,r);Object.defineProperty(t,"cache",{value:n,writable:!1,enumerable:!1,configurable:!0})}globalVars(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},radialNeedleRAF:null,unitGatherRAF:null,unitExitRAF:null,stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},LINE_HEIGHT_RATIO:hi,axisCharts:!0,isSlopeChart:t.plotOptions.line.isSlopeChart,comboCharts:!1,initialConfig:null,initialSeries:[],tokenSurface:void 0,lastXAxis:[],lastYAxis:[],allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],ignoreYAxisIndexes:[],isDirty:!1,isExecCalled:!1,dataChanged:!1,resized:!1,columnSeries:null,yaxis:null,total:0,shouldAnimate:!0,previousPaths:[],prevPolarAngles:null,prevStreamFrame:null,prevChromeFrame:null,svgWidth:0,svgHeight:0,lastResizeSignature:null,defaultLabels:!1,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateYAxisX:[],yAxisWidths:[],tooltip:null,resizeObserver:null,locale:{},memory:{methodsToExec:[]},niceScaleAllowedMagMsd:Cr,niceScaleDefaultTicks:di,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}defineLazyInitialSeries(t){let e=[],s=null;Object.defineProperty(t,"initialSeries",{configurable:!0,enumerable:!0,get(){return s===null&&(s=T.clone(e)),s},set(i){e=Array.isArray(i)?i.map(a=>a&&typeof a=="object"&&!Array.isArray(a)?G({},a):a):i,s=null,t._initialSeriesPeek=e}}),t._initialSeriesPeek=e}init(t){let e=this.globalVars(t);return this.initGlobalVars(e),this.defineLazyInitialSeries(e),e.initialConfig=T.extend({},t),e.initialSeries=t.series,e.lastXAxis=T.clone(e.initialConfig.xaxis),e.lastYAxis=T.clone(e.initialConfig.yaxis),e}},ui=class{constructor(t){this.opts=t}init(){let t=new se(this.opts).init({responsiveOverride:!1}),e=new ls().init(t),s={config:t,globals:e,dom:{},interact:{zoomEnabled:t.chart.toolbar.autoSelected==="zoom"&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:t.chart.toolbar.autoSelected==="pan"&&t.chart.toolbar.tools.pan,selectionEnabled:t.chart.toolbar.autoSelected==="selection"&&t.chart.toolbar.tools.selection,measureEnabled:t.chart.toolbar.autoSelected==="measure"&&!!t.chart.toolbar.tools.measure&&!!(t.chart.measure&&t.chart.measure.enabled),zoomed:!1,selection:void 0,visibleXRange:void 0,selectedDataPoints:[],mousedown:!1,clientX:null,clientY:null,lastClientPosition:{},capturedSeriesIndex:-1,capturedDataPointIndex:-1,disableZoomIn:!1,disableZoomOut:!1,isTouchDevice:H.isBrowser()?"ontouchstart"in window||navigator.maxTouchPoints>0:!1},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[],seriesBoxPoints:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},violinData:{seriesViolinDensity:[],seriesViolinPoints:[],seriesViolinMin:[],seriesViolinMax:[]},histogramData:{edges:[],binWidth:0,counts:[],rule:"",capped:!1},labelData:{labels:[],categoryLabels:[],timescaleLabels:[],hasXaxisGroups:!1,groups:[],seriesGroups:[]},axisFlags:{isXNumeric:!1,dataFormatXNumeric:!1,isDataXYZ:!1,isRangeData:!1,isRangeBar:!1,isMultiLineX:!1,noLabelsProvided:!1,dataWasParsed:!1},seriesData:{series:[],seriesNames:[],seriesX:[],seriesZ:[],seriesColors:[],seriesGoals:[],stackedSeriesTotals:[],stackedSeriesTotalsByGroups:[],unitData:[]},layout:{gridHeight:0,gridWidth:0,translateX:0,translateY:0,translateXAxisX:0,translateXAxisY:0,rotateXLabels:!1,xAxisHeight:0,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yLabelsCoords:[],yTitleCoords:[],gridPad:{top:0,right:0,bottom:0,left:0}}};Object.defineProperty(e,"dom",{get(){return s.dom},set(i){s.dom=i},enumerable:!1,configurable:!0});for(let i of["xLabelFormatter","yLabelFormatters","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","legendFormatter"])Object.defineProperty(e,i,{get(){return s.formatters[i]},set(a){s.formatters[i]=a},enumerable:!1,configurable:!0});for(let i of["zoomEnabled","panEnabled","selectionEnabled","zoomed","selection","visibleXRange","selectedDataPoints","mousedown","clientX","clientY","lastClientPosition","capturedSeriesIndex","capturedDataPointIndex","disableZoomIn","disableZoomOut","isTouchDevice"])Object.defineProperty(e,i,{get(){return s.interact[i]},set(a){s.interact[i]=a},enumerable:!1,configurable:!0});for(let i of["gridHeight","gridWidth","translateX","translateY","translateXAxisX","translateXAxisY","rotateXLabels","xAxisHeight","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yLabelsCoords","yTitleCoords","gridPad"])Object.defineProperty(e,i,{get(){return s.layout[i]},set(a){s.layout[i]=a},enumerable:!1,configurable:!0});for(let i of["series","seriesNames","seriesX","seriesZ","seriesColors","seriesGoals","stackedSeriesTotals","stackedSeriesTotalsByGroups"])Object.defineProperty(e,i,{get(){return s.seriesData[i]},set(a){s.seriesData[i]=a},enumerable:!1,configurable:!0});for(let i of["isXNumeric","dataFormatXNumeric","isDataXYZ","isRangeData","isRangeBar","isMultiLineX","noLabelsProvided","dataWasParsed"])Object.defineProperty(e,i,{get(){return s.axisFlags[i]},set(a){s.axisFlags[i]=a},enumerable:!1,configurable:!0});for(let i of["labels","categoryLabels","timescaleLabels","hasXaxisGroups","groups","seriesGroups"])Object.defineProperty(e,i,{get(){return s.labelData[i]},set(a){s.labelData[i]=a},enumerable:!1,configurable:!0});for(let i of["seriesRangeStart","seriesRangeEnd","seriesRange"])Object.defineProperty(e,i,{get(){return s.rangeData[i]},set(a){s.rangeData[i]=a},enumerable:!1,configurable:!0});for(let i of["seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC"])Object.defineProperty(e,i,{get(){return s.candleData[i]},set(a){s.candleData[i]=a},enumerable:!1,configurable:!0});for(let i of["seriesViolinDensity","seriesViolinPoints","seriesViolinMin","seriesViolinMax"])Object.defineProperty(e,i,{get(){return s.violinData[i]},set(a){s.violinData[i]=a},enumerable:!1,configurable:!0});return s}},lt=class{constructor(t){this.w=t}static checkComboSeries(t,e){let s=!1,i=0,a=0;return e===void 0&&(e="line"),t.length&&typeof t[0].type<"u"&&t.forEach(n=>{(n.type==="bar"||n.type==="column"||n.type==="candlestick"||n.type==="boxPlot"||n.type==="violin")&&i++,typeof n.type<"u"&&n.type!==e&&a++}),a>0&&(s=!0),{comboBarCount:i,comboCharts:s}}getStackedSeriesTotals(t=[]){let e=this.w,s=[];if(e.seriesData.series.length===0)return s;for(let i=0;ie+s,0);{let e=this.w.seriesData.series[t];return Array.isArray(e)?e.reduce((s,i)=>s+i,0):e??0}}getStackedSeriesTotalsByGroups(){let t=this.w,e=[];return t.labelData.seriesGroups.forEach(s=>{let i=[];t.config.series.forEach((n,r)=>{s.indexOf(t.seriesData.seriesNames[r])>-1&&i.push(r)});let a=t.seriesData.series.map((n,r)=>i.indexOf(r)===-1?r:-1).filter(n=>n!==-1);e.push(this.getStackedSeriesTotals(a))}),e}setSeriesYAxisMappings(){let t=this.w.globals,e=this.w.config,s=[],i=[],a=[],n=this.w.seriesData.series.length>e.yaxis.length||e.yaxis.some(l=>Array.isArray(l.seriesName));e.series.forEach((l,c)=>{a.push(c),i.push(null)}),e.yaxis.forEach((l,c)=>{s[c]=[]});let r=[];e.yaxis.forEach((l,c)=>{let h=!1;if(l.seriesName){let d=[];Array.isArray(l.seriesName)?d=l.seriesName:d.push(l.seriesName),d.forEach(f=>{e.series.forEach((g,p)=>{if(g.name===f){let m=p;c===p||n?!n||a.indexOf(p)>-1?s[c].push([c,p]):console.warn("Series '"+g.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(s[p].push([p,c]),m=c),h=!0,m=a.indexOf(m),m!==-1&&a.splice(m,1)}})})}h||r.push(c)}),s=s.map(l=>{let c=[];return l.forEach(h=>{i[h[1]]=h[0],c.push(h[1])}),c});let o=e.yaxis.length-1;for(let l=0;l{s[o].push(l),i[l]=o}),t.seriesYAxisMap=s.map(l=>l),t.seriesYAxisReverseMap=i.map(l=>l),t.seriesYAxisMap.forEach((l,c)=>{l.forEach(h=>{if(e.series[h]&&e.series[h].group===void 0){let d=e.series[h];d.group="apexcharts-axis-".concat(c.toString())}})})}isSeriesNull(t=null){let e=[],s=this.w.config.series;return t===null?e=s.filter(i=>i!==null):s[t]&&Array.isArray(s[t].data)?e=s[t].data.filter(i=>i!==null):e=s[t]!==null&&s[t]!==void 0?[s[t]]:[],e.length===0}seriesHaveSameValues(t){let e=this.w.seriesData.series[t];return Array.isArray(e)?e.every((s,i,a)=>s===a[0]):!0}getCategoryLabels(t){let e=this.w,s=t.slice();return e.config.xaxis.convertedCatToNumeric&&(s=t.map(i=>e.config.xaxis.labels.formatter(i-e.globals.minX+1))),s}getLargestSeries(){let t=this.w;t.globals.maxValsInArrayIndex=t.seriesData.series.map(e=>e.length).indexOf(Math.max.apply(Math,t.seriesData.series.map(e=>e.length)))}getLargestMarkerSize(){let t=this.w,e=0;return t.globals.markers.size.forEach(s=>{e=Math.max(e,s)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(s=>{e=Math.max(e,s.size)}),e>0&&(t.config.markers.hover.size>0?e=t.config.markers.hover.size:e+=t.config.markers.hover.sizeOffset),t.globals.markers.largestSize=e,e}getSeriesTotals(){let t=this.w;t.globals.seriesTotals=t.seriesData.series.map(e=>{let s=0;if(Array.isArray(e))for(let i=0;i{let r=0;for(let o=0;ot&&s.seriesData.seriesX[n][o]{let s=[];if(Array.isArray(e))for(let i=0;in+r,0),a=100*e/i;s.push(a)}return s})}getCalculatedRatios(){let t=this.w,e=t.globals,s=[],i=0,a=0,n=0,r=0,o=[],l=.1,c=0;if(e.yRange=[],e.isMultipleYAxis)for(let h=0;h0){let h=(d,f)=>{let g=t.config.yaxis[t.globals.seriesYAxisReverseMap[f]];if(!g)return 0;let p=d<0?-1:1;return d=Math.abs(d),g.logarithmic&&(d=this.getBaseLog(g.logBase,d)),-p*d/s[f]};if(e.isMultipleYAxis){o=[];for(let d=0;d{let a=e.globals.seriesYAxisReverseMap[i];return e.config.yaxis[a]&&e.config.yaxis[a].logarithmic?s.map(n=>n===null?null:this.getLogVal(e.config.yaxis[a].logBase,n,i)):s}),e.globals.invalidLogScale?t:e.globals.seriesLog}getLogValAtSeriesIndex(t,e){if(t===null)return null;let s=this.w,i=s.globals.seriesYAxisReverseMap[e];return s.config.yaxis[i]&&s.config.yaxis[i].logarithmic?this.getLogVal(s.config.yaxis[i].logBase,t,e):t}getBaseLog(t,e){return Math.log(e)/Math.log(t)}getLogVal(t,e,s){if(e<=0)return 0;let i=this.w,a=i.globals.minYArr[s]===0?-1:this.getBaseLog(t,i.globals.minYArr[s]),r=(i.globals.maxYArr[s]===0?0:this.getBaseLog(t,i.globals.maxYArr[s]))-a;return e<1?e/r:(this.getBaseLog(t,e)-a)/r}getLogYRatios(t){let e=this.w,s=this.w.globals,i=s;return i.yLogRatio=t.slice(),i.logYRange=s.yRange.map((a,n)=>{let r=e.globals.seriesYAxisReverseMap[n];if(e.config.yaxis[r]&&this.w.config.yaxis[r].logarithmic){let o=-Number.MAX_VALUE,l=Number.MIN_VALUE,c=1;return s.seriesLog.forEach((h,d)=>{h.forEach(f=>{e.config.yaxis[d]&&e.config.yaxis[d].logarithmic&&(o=Math.max(f,o),l=Math.min(f,l))})}),c=Math.pow(s.yRange[n],Math.abs(l-o)/s.yRange[n]),i.yLogRatio[n]=c/this.w.layout.gridHeight,c}}),i.invalidLogScale?t.slice():i.yLogRatio}static extendArrayProps(t,e,s){var i,a;return e?.yaxis&&(e=t.extendYAxis(e,s)),e?.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),(i=e?.annotations)!=null&&i.xaxis&&(e=t.extendXAxisAnnotations(e)),(a=e?.annotations)!=null&&a.points&&(e=t.extendPointAnnotations(e))),e}drawSeriesByGroup(t,e,s,i){let a=this.w,n=[];return t.series.length>0&&e.forEach(r=>{let o=[],l=[];t.i.forEach((c,h)=>{a.config.series[c].group===r&&(o.push(t.series[h]),l.push(c))}),o.length>0&&n.push(i.draw(o,s,l))}),n}},et="http://www.w3.org/2000/svg",vt=class u{constructor(t,e){typeof t=="object"?(this.x=t.x,this.y=t.y):(this.x=t||0,this.y=e||0)}transform(t){return t.apply(this)}clone(){return new u(this.x,this.y)}},Pe=class u{constructor(t,e,s,i,a,n){this.a=t??1,this.b=e??0,this.c=s??0,this.d=i??1,this.e=a??0,this.f=n??0}rotate(t){let e=t*Math.PI/180,s=Math.cos(e),i=Math.sin(e);return this.multiply(new u(s,i,-i,s,0,0))}scale(t,e){return this.multiply(new u(t,0,0,e??t,0,0))}multiply(t){return new u(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)}apply(t){return new vt(this.a*t.x+this.c*t.y+this.e,this.b*t.x+this.d*t.y+this.f)}},fi=class{constructor(t,e,s,i){this.x=t,this.y=e,this.w=s,this.h=i,this.width=s,this.height=i,this.x2=t+s,this.y2=e+i}};function ie(u){if(!u||typeof u!="string")return[["M",0,0]];let t=[],e=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,s=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi,i,a=[],n=[];for(;(i=e.exec(u))!==null;)a.push(i[1]),n.push(i.index);for(let r=0;r{for(let n=1;ns&&(s=r),oi&&(i=o))}}),t===1/0?{x:0,y:0,width:0,height:0}:{x:t,y:e,width:s-t,height:i-e}}function gi(u){return u.map(t=>t.join(" ")).join(" ")}function cn(u){switch(u[0]){case"z":case"Z":u[0]="L",u[1]=this.start[0],u[2]=this.start[1];break;case"H":u[0]="L",u[2]=this.pos[1];break;case"V":u[0]="L",u[2]=u[1],u[1]=this.pos[0];break;case"T":u[0]="Q",u[3]=u[1],u[4]=u[2],u[1]=this.reflection[1],u[2]=this.reflection[0];break;case"S":u[0]="C",u[6]=u[4],u[5]=u[3],u[4]=u[2],u[3]=u[1],u[2]=this.reflection[1],u[1]=this.reflection[0];break}return u}function hn(u){var t=u.length;return this.pos=[u[t-2],u[t-1]],"SCQT".indexOf(u[0])!=-1&&(this.reflection=[2*this.pos[0]-u[t-4],2*this.pos[1]-u[t-3]]),u}function dn(u){var t,e=[u];switch(u[0]){case"M":return this.pos=this.start=[u[1],u[2]],e;case"L":u[5]=u[3]=u[1],u[6]=u[4]=u[2],u[1]=this.pos[0],u[2]=this.pos[1];break;case"Q":u[6]=u[4],u[5]=u[3],u[4]=u[4]*1/3+u[2]*2/3,u[3]=u[3]*1/3+u[1]*2/3,u[2]=this.pos[1]*1/3+u[2]*2/3,u[1]=this.pos[0]*1/3+u[1]*2/3;break;case"A":e=ll((t=this.pos)!=null?t:[],u),u=e[0];break}return u[0]="C",this.pos=[u[5],u[6]],this.reflection=[2*u[5]-u[3],2*u[6]-u[4]],e}function un(u,t){if(t===!1)return!1;for(var e=t,s=u.length;e1&&(d=Math.sqrt(d),e=d*e,s=d*s),f=new Pe().rotate(i).scale(1/e,1/s).rotate(-i),l=l.transform(f),c=c.transform(f),g=[c.x-l.x,c.y-l.y],m=g[0]*g[0]+g[1]*g[1],p=Math.sqrt(m),g[0]/=p,g[1]/=p,b=m<4?Math.sqrt(1-m/4):0,a===n&&(b*=-1),x=new vt((c.x+l.x)/2+b*-g[1],(c.y+l.y)/2+b*g[0]),_=new vt(l.x-x.x,l.y-x.y),w=new vt(c.x-x.x,c.y-x.y),y=Math.acos(_.x/Math.sqrt(_.x*_.x+_.y*_.y)),_.y<0&&(y*=-1),v=Math.acos(w.x/Math.sqrt(w.x*w.x+w.y*w.y)),w.y<0&&(v*=-1),n&&y>v&&(v+=2*Math.PI),!n&&y=n)break}l>16&255,s>>8&255,s&255,1]}let t=u.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return t?[+t[1],+t[2],+t[3],t[4]!==void 0?+t[4]:1]:null}function gl(u,t,e){return`rgba(${Math.round(u[0]+(t[0]-u[0])*e)},${Math.round(u[1]+(t[1]-u[1])*e)},${Math.round(u[2]+(t[2]-u[2])*e)},${u[3]+(t[3]-u[3])*e})`}var pi=class u{constructor(t,e,s){this.el=t,this.duration=e??300,this.delay=s||0,this._attrTarget=null,this._plotTarget=null,this._plotSnap=null,this._plotAlgorithm="commands",this._afterCb=null,this._duringCb=null,this._easing=null,this._next=null,this._root=null,this._scheduled=!1}ease(t){return typeof t=="function"&&(this._easing=t),this._schedule(),this}attr(t){return this._attrTarget=t,this._schedule(),this}plot(t,e,s){return this._plotTarget=t,e&&(this._plotAlgorithm=e),this._plotSnap=s||null,this._schedule(),this}after(t){return this._afterCb=t,this._schedule(),this}during(t){return this._duringCb=t,this._schedule(),this}animate(t,e){let s=new u(this.el,t,e);return this._next=s,s._root=this._root||this,s}_schedule(){let t=this._root||this;t._scheduled||(t._scheduled=!0,queueMicrotask(()=>t._executeChain()))}_executeChain(){let t=[],e=this;for(;e;)t.push(e),e=e._next;let s=0;t.forEach(i=>{s+=i.delay,i._execute(s),s+=i.duration})}_execute(t){let e=this.el,s=this.duration;if(s<=1){let a=()=>{this._attrTarget&&e.attr(this._attrTarget),this._plotTarget&&e.plot(this._plotSnap||this._plotTarget),this._afterCb&&this._afterCb.call(e)};t>0?setTimeout(a,t):a();return}let i=()=>{let a={},n={},r={};if(this._attrTarget)for(let d of Object.keys(this._attrTarget)){let f=e.attr(d);a[d]=f;let g=gn(f),p=gn(String(this._attrTarget[d]));g&&p&&(n[d]=g,r[d]=p)}let o=null;if(this._plotTarget){let d=e.attr("d")||"";try{o=this._plotAlgorithm==="polygons"?ul(d,this._plotTarget):dl(d,this._plotTarget)}catch{o=null}}let l=performance.now(),c=this._easing||Mr,h=d=>{let f=d-l,g=Math.min(f/s,1),p=c(g);if(this._attrTarget)if(g>=1)e.attr(this._attrTarget);else{let m={};for(let b of Object.keys(this._attrTarget))if(n[b]&&r[b])m[b]=gl(n[b],r[b],p);else{let x=parseFloat(a[b]),_=parseFloat(this._attrTarget[b]);!isNaN(x)&&!isNaN(_)&&(m[b]=x+(_-x)*p)}e.attr(m)}o&&g<1&&e.attr("d",o(p)),this._duringCb&&this._duringCb(p),g<1?O.requestAnimationFrame(h):(this._plotTarget&&e.attr("d",this._plotSnap||this._plotTarget),this._afterCb&&this._afterCb.call(e))};O.requestAnimationFrame(h)};t>0?setTimeout(i,t):i()}};function pl(u){u.prototype.animate=function(t,e){return new pi(this,t,e)}}function Lr(u){return-Math.cos(u*Math.PI)/2+.5}function ml(u,t,e,s){u=Math.min(Math.max(u,0),1),e=Math.min(Math.max(e,0),1);let i=3*u,a=3*(e-u)-i,n=1-i-a,r=3*t,o=3*(s-t)-r,l=1-r-o,c=f=>((n*f+a)*f+i)*f,h=f=>((l*f+o)*f+r)*f,d=f=>{let g=0,p=1,m=f;if(mp)return p;for(;gb?g=m:p=m,m=(g+p)/2}return m};return f=>f<=0?0:f>=1?1:h(d(f))}var xt=new Map,xl=u=>u;xt.set("linear",xl);xt.set("easeInOutSine",Lr);xt.set("easeInSine",u=>1-Math.cos(u*Math.PI/2));xt.set("easeOutSine",u=>Math.sin(u*Math.PI/2));xt.set("easeInQuad",u=>u*u);xt.set("easeOutQuad",u=>1-(1-u)*(1-u));xt.set("easeInOutQuad",u=>u<.5?2*u*u:1-Math.pow(-2*u+2,2)/2);xt.set("easeInCubic",u=>u*u*u);xt.set("easeOutCubic",u=>1-Math.pow(1-u,3));xt.set("easeInOutCubic",u=>u<.5?4*u*u*u:1-Math.pow(-2*u+2,3)/2);xt.set("easeOutBack",u=>1+2.70158*Math.pow(u-1,3)+1.70158*Math.pow(u-1,2));xt.set("easeInOutBack",u=>{let e=2.5949095;return u<.5?Math.pow(2*u,2)*((e+1)*2*u-e)/2:(Math.pow(2*u-2,2)*((e+1)*(u*2-2)+e)+2)/2});function bl(u,t){typeof u=="string"&&u&&typeof t=="function"&&xt.set(u,t)}function yl(u){return Array.isArray(u)&&u.length===4&&u.every(t=>typeof t=="number")}function hs(u){return typeof u=="function"?pn(u):yl(u)?ml(u[0],u[1],u[2],u[3]):typeof u=="string"&&xt.has(u)?pn(xt.get(u)):Lr}function pn(u){return t=>{let e=u(t);return typeof e=="number"&&isFinite(e)?e:t}}var Ws="http://www.w3.org/2000/svg";function mn(u){return 1-Math.pow(1-u,3)}function wl(u){return 1+2.70158*Math.pow(u-1,3)+1.70158*Math.pow(u-1,2)}var Hs=null;function ks(){if(!H.isBrowser())return!1;try{return Hs||(Hs=window.matchMedia("(prefers-reduced-motion: reduce)")),!!Hs.matches}catch{return!1}}function Dt(u,t,e){if(!H.isBrowser()||e.globals.dataChanged||e.globals.resized)return!1;let s=e.config.chart.animations;if(!s||s.enabled===!1)return!1;let i=e.config.chart.type;if(i!=="line"&&i!=="area"&&i!=="rangeArea"||!(e.layout.gridWidth>0))return!1;let a=(s.speed||800)*2,n=Math.max(0,Math.min(1,t/e.layout.gridWidth)),o=(1-Math.cbrt(1-n))*a,c=u.node.style;c.opacity="0";let h=null,d=f=>{h===null&&(h=f),f-h>=o?c.opacity="":O.requestAnimationFrame(d)};return O.requestAnimationFrame(d),!0}function xn(u){let t=u.config.chart.animations;t&&(t.respectReducedMotion!==!1&&ks()&&(t.enabled=!1,t.dynamicAnimation&&(t.dynamicAnimation.enabled=!1)),fl(hs(t.easing)))}function Ya(u){let t=u.style,e=u.index||0,s=typeof u.baseDelay=="number"?u.baseDelay:40,i=u.row||0,a=u.col||0,n=u.groupIndex||0,r=u.perGroup||1,o=u.centerDistance||0;switch(t){case"none":return 0;case"diagonal":return(i+a)*s;case"group":return n*s+e%r*(s/4);case"centroid":return o*s*(e+1);default:return e*s}}var St=class{constructor(t,e){this.w=t,this.ctx=e}animateLine(t,e,s,i){t.attr(e).animate(i).attr(s)}animateMarker(t,e,s,i){t.attr({opacity:0}).animate(e).attr({opacity:1}).after(()=>{i()})}animatePop(t,{speed:e,delay:s=0,onComplete:i}){let a=this.w;if(!H.isBrowser()||!a.globals.shouldAnimate||e<1){i&&i();return}let r=t.node.style;r.transformBox="fill-box",r.transformOrigin="center",r.transform="scale(0)",r.opacity="0";let o=performance.now()+s,l=c=>{if(a.globals.isDestroyed)return;let h=Math.max(0,Math.min(1,(c-o)/e));r.transform=`scale(${wl(h)})`,r.opacity=String(Math.min(1,h*2)),h<1?O.requestAnimationFrame(l):(r.transform="",r.transformOrigin="",r.transformBox="",r.opacity="",i&&i())};O.requestAnimationFrame(l)}animateRect(t,e,s,i,a,n=0){t.attr(e).animate(i,n).attr(s).after(()=>a())}animatePathsGradually(t){let{el:e,realIndex:s,j:i,fill:a,pathFrom:n,pathTo:r,pathToInterp:o,speed:l,delay:c,scrollMorph:h}=t,d=this,f=this.w,g=0;f.config.chart.animations.animateGradually.enabled&&(g=f.config.chart.animations.animateGradually.delay),f.config.chart.animations.dynamicAnimation.enabled&&f.globals.dataChanged&&f.config.chart.type!=="bar"&&(g=0),d.morphSVG(e,s,i,f.config.chart.type==="line"&&!f.globals.comboCharts?"stroke":a,n,r,l,c*g,h,o)}revealBulk(t){let e=this.w;if(t.node.classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:t.node}),!H.isBrowser()||!e.globals.shouldAnimate){this.animationCompleted(t);return}e.globals.bulkRevealScheduled||(e.globals.bulkRevealScheduled=!0,O.requestAnimationFrame(()=>{e.globals.isDestroyed||(e.globals.bulkRevealScheduled=!1,this.animationCompleted(t))}))}showDelayedElements(){this.w.globals.delayedElements.forEach(t=>{if(t.holdUntilComplete&&!this.w.globals.animationEnded)return;let e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}animationCompleted(t){let e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),typeof e.config.chart.events.animationEnd=="function"&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}animateDraw(t,{realIndex:e,j:s,isFill:i,isLast:a,speed:n,delay:r,mask:o}){let l=this.w,c=this,h=()=>{a&&l.globals.shouldAnimate&&c.animationCompleted(t),c.showDelayedElements()};if(!H.isBrowser()||!l.globals.shouldAnimate||n<1){h();return}let d=t.node,f=()=>{let m=o&&o.type==="radial",b=l.layout.gridWidth+8,x=o&&o.cx||0,_=o&&o.cy||0,w=(o&&o.r||l.layout.gridWidth/2)+4,y=`apexDrawMask${l.globals.cuid}-${e}-${s??0}-${i?"f":"s"}`,v=O.createElementNS(Ws,"mask");v.setAttribute("id",y),v.setAttribute("maskUnits","userSpaceOnUse");let A;if(m){let M=w;v.setAttribute("x",String(x-M)),v.setAttribute("y",String(_-M)),v.setAttribute("width",String(M*2)),v.setAttribute("height",String(M*2)),A=O.createElementNS(Ws,"circle"),A.setAttribute("cx",String(x)),A.setAttribute("cy",String(_)),A.setAttribute("r","0"),A.setAttribute("fill","#fff")}else v.setAttribute("x",String(-4)),v.setAttribute("y",String(-4)),v.setAttribute("width",String(b)),v.setAttribute("height",String(l.layout.gridHeight+8)),A=O.createElementNS(Ws,"rect"),A.setAttribute("x",String(-4)),A.setAttribute("y",String(-4)),A.setAttribute("width","0"),A.setAttribute("height",String(l.layout.gridHeight+8)),A.setAttribute("fill","#fff");v.appendChild(A),l.dom.elDefs.node.appendChild(v),d.setAttribute("mask",`url(#${y})`);let S=performance.now()+(r||0),C=M=>{if(l.globals.isDestroyed)return;let k=Math.max(0,Math.min(1,(M-S)/n)),L=mn(k);m?A.setAttribute("r",String(L*w)):A.setAttribute("width",String(L*b)),k<1?O.requestAnimationFrame(C):(d.removeAttribute("mask"),v.parentNode&&v.parentNode.removeChild(v),h())};O.requestAnimationFrame(C)},g=p=>{d.setAttribute("stroke-dasharray",String(p)),d.setAttribute("stroke-dashoffset",String(p));let m=performance.now()+(r||0),b=x=>{if(l.globals.isDestroyed)return;let _=Math.max(0,Math.min(1,(x-m)/n));d.setAttribute("stroke-dashoffset",String(p*(1-mn(_)))),_<1?O.requestAnimationFrame(b):(d.removeAttribute("stroke-dasharray"),d.removeAttribute("stroke-dashoffset"),h())};O.requestAnimationFrame(b)};O.requestAnimationFrame(()=>{if(l.globals.isDestroyed)return;if(i){f();return}let p=d.getAttribute("stroke-dasharray");if(!!p&&p!=="0"&&p!==""){f();return}let b=0;try{typeof d.getTotalLength=="function"&&(b=d.getTotalLength())}catch{b=0}if(!b){h();return}g(b)})}morphSVG(t,e,s,i,a,n,r,o,l,c){var h,d;let f=this.w;a||(a=t.attr("pathFrom")),n||(n=t.attr("pathTo"));let g=()=>(f.config.chart.type==="radar"&&(r=1),`M 0 ${f.layout.gridHeight}`);(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=g()),(!n.trim()||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=g(),c=void 0),c&&(!c.trim()||c.indexOf("undefined")>-1||c.indexOf("NaN")>-1)&&(c=void 0),f.globals.shouldAnimate||(r=1);let m=((d=(h=this.ctx)==null?void 0:h.morphTypeChange)==null?void 0:d.isActive())===!0?"polygons":"commands",b=null;if(f.globals.dataChanged){let _=f.config.chart.animations.dynamicAnimation.easing;_!=null?b=hs(_):l&&(b=hs("linear"))}let x=t.plot(a).animate(1,o).plot(a).animate(r,o);b&&x.ease(b),x.plot(c||n,m,c?n:void 0).after(()=>{if(T.isNumber(s)){let _=f.seriesData.series[f.globals.maxValsInArrayIndex];_&&s===_.length-2&&f.globals.shouldAnimate&&this.animationCompleted(t)}else i!=="none"&&f.globals.shouldAnimate&&(!f.globals.comboCharts&&e===f.seriesData.series.length-1||f.globals.comboCharts)&&this.animationCompleted(t);this.showDelayedElements()})}},bn={lighten:.15,darken:.35},at=class u{constructor(t){this.w=t}static isSliceChart(t){let e=t.config.chart.type;return e==="pie"||e==="donut"||e==="polarArea"}static hoverOutlineOwnsHoverState(t){var e;return u.isSliceChart(t)&&t.config.states.hover.filter.type!=="none"&&((e=t.config.plotOptions.pie.hoverOutline)==null?void 0:e.show)===!0}static sliceOffsetOwnsActiveState(t){return u.isSliceChart(t)&&t.config.chart.type!=="polarArea"&&t.config.plotOptions.pie.expandOnClick===!0&&t.config.plotOptions.pie.expandOffset>0&&!u.drilldownBlocksSliceOffset(t)}static drilldownBlocksSliceOffset(t){var e;return u.isSliceChart(t)&&((e=t.config.drilldown)==null?void 0:e.enabled)===!0}getDefaultFilter(t,e){let s=this.w;t.unfilter&&t.unfilter(!0),s.config.chart.dropShadow.enabled&&this.dropShadow(t,s.config.chart.dropShadow,e)}applyFilter(t,e,s,i){var a,n,r;let o=this.w;if(t.unfilter&&t.unfilter(!0),s==="none"){this.getDefaultFilter(t,e);return}let l=o.config.chart.dropShadow,c=s==="lighten"?bn.lighten:bn.darken,h=Math.max(0,Math.min(1,typeof i=="number"?i:c)),d=1-h,f=s==="lighten"?h:0;t.filterWith&&(t.filterWith(g=>{g.colorMatrix({type:"matrix",values:` ${d} 0 0 0 ${f} 0 ${d} 0 0 ${f} 0 0 ${d} 0 ${f} 0 0 0 1 0 `,in:"SourceGraphic",result:"brightness"}),l.enabled&&this.addShadow(g,e,l,"brightness")}),l.noUserSpaceOnUse||(n=(a=t.filterer())==null?void 0:a.node)==null||n.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((r=t.filterer())==null?void 0:r.node))}addShadow(t,e,s,i){var a;let n=this.w,{blur:r,top:o,left:l,color:c,opacity:h}=s;if(c=Array.isArray(c)?c[e]:c,((a=n.config.chart.dropShadow.enabledOnSeries)==null?void 0:a.length)>0&&n.config.chart.dropShadow.enabledOnSeries.indexOf(e)===-1)return t;t.offset({in:i,dx:l,dy:o,result:"offset"}),t.gaussianBlur({in:"offset",stdDeviation:r,result:"blur"}),t.flood({"flood-color":c,"flood-opacity":h,result:"flood"}),t.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),t.merge(["shadow",i])}dropShadow(t,e,s=0){var i,a,n,r,o;let l=this.w;return t.unfilter&&t.unfilter(!0),T.isMsEdge()&&l.config.chart.type==="radialBar"||((i=l.config.chart.dropShadow.enabledOnSeries)==null?void 0:i.length)>0&&((a=l.config.chart.dropShadow.enabledOnSeries)==null?void 0:a.indexOf(s))===-1||t.filterWith&&(t.filterWith(c=>{this.addShadow(c,s,e,"SourceGraphic")}),e.noUserSpaceOnUse||(r=(n=t.filterer())==null?void 0:n.node)==null||r.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((o=t.filterer())==null?void 0:o.node)),t}setSelectionFilter(t,e,s){let i=this.w;if(typeof i.interact.selectedDataPoints[e]<"u"&&i.interact.selectedDataPoints[e].indexOf(s)>-1){if(t.node.setAttribute("selected",!0),u.sliceOffsetOwnsActiveState(i))return;let a=i.config.states.active.filter;a.type!=="none"&&this.applyFilter(t,e,a.type,a.value)}}_scaleFilterSize(t){if(!t)return;(s=>{for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&t.setAttribute(i,s[i])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}},B=class u{constructor(t,e=null){this.w=t,this.ctx=e}roundPathCorners(t,e){t.indexOf("NaN")>-1&&(t="");function s(C,M,k){var L=M.x-C.x,E=M.y-C.y,D=Math.sqrt(L*L+E*E);return i(C,M,Math.min(1,k/D))}function i(C,M,k){return{x:C.x+(M.x-C.x)*k,y:C.y+(M.y-C.y)*k}}function a(C,M){C.length>2&&(C[C.length-2]=M.x,C[C.length-1]=M.y)}function n(C){return{x:parseFloat(C[C.length-2]),y:parseFloat(C[C.length-1])}}var r=t.split(/[,\s]/).reduce(function(C,M){var k=M.match(/^([a-zA-Z])(.+)/);return k?(C.push(k[1]),C.push(k[2])):C.push(M),C},[]),o=r.reduce(function(C,M){return parseFloat(M)==M&&C.length?C[C.length-1].push(M):C.push([M]),C},[]),l=[];if(o.length>1){var c=n(o[0]),h=null;o[o.length-1][0]=="Z"&&o[0].length>2&&(h=["L",c.x,c.y],o[o.length-1]=h),l.push(o[0]);for(var d=1;d2&&g[0]=="L"&&p.length>2&&p[0]=="L"){var m=n(f),b=n(g),x=n(p),_,w;_=s(b,m,e),w=s(b,x,e),a(g,_),g.origPoint=b,l.push(g);var y=i(_,b,.5),v=i(b,w,.5),A=["C",y.x,y.y,v.x,v.y,w.x,w.y];A.origPoint=b,l.push(A)}else l.push(g)}if(h){var S=n(l[l.length-1]);l.push(["Z"]),a(l[0],S)}}else l=o;return l.reduce(function(C,M){return C+M.join(" ")+" "},"")}drawLine(t,e,s,i,a="#a8a8a8",n=0,r=null,o="butt"){return this.w.dom.Paper.line().attr({x1:t,y1:e,x2:s,y2:i,stroke:a,"stroke-dasharray":n,"stroke-width":r,"stroke-linecap":o})}drawRect(t=0,e=0,s=0,i=0,a=0,n="#fefefe",r=1,o=null,l=null,c=0){let d=this.w.dom.Paper.rect();return d.attr({x:t,y:e,width:s>0?s:0,height:i>0?i:0,rx:a,ry:a,opacity:r,"stroke-width":o!==null?o:0,stroke:l!==null?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",n),d}drawPolygon(t,e="#e1e1e1",s=1,i="none"){return this.w.dom.Paper.polygon(t).attr({fill:i,stroke:e,"stroke-width":s})}drawCircle(t,e=null){let s=this.w;t<0&&(t=0);let i=s.dom.Paper.circle(t*2);return e!==null&&i.attr(e),i}drawPath({d:t="",stroke:e="#a8a8a8",strokeWidth:s=1,fill:i,fillOpacity:a=1,strokeOpacity:n=1,classes:r,strokeLinecap:o=null,strokeDashArray:l=0}){let c=this.w;return o===null&&(o=c.config.stroke.lineCap),(t.indexOf("undefined")>-1||t.indexOf("NaN")>-1)&&(t=`M 0 ${c.layout.gridHeight}`),c.dom.Paper.path(t).attr({fill:i,"fill-opacity":a,stroke:e,"stroke-opacity":n,"stroke-linecap":o,"stroke-width":s,"stroke-dasharray":l,class:r})}group(t=null){let s=this.w.dom.Paper.group();return t!==null&&s.attr(t),s}move(t,e){return["M",t,e].join(" ")}line(t,e,s=null){return s==="H"?[" H",t].join(" "):s==="V"?[" V",e].join(" "):[" L",t,e].join(" ")}curve(t,e,s,i,a,n){return["C",t,e,s,i,a,n].join(" ")}quadraticCurve(t,e,s,i){return["Q",t,e,s,i].join(" ")}arc(t,e,s,i,a,n,r,o=!1){let l="A";return o&&(l="a"),[l,t,e,s,i,a,n,r].join(" ")}renderPaths({j:t,realIndex:e,pathFrom:s,pathTo:i,pathToInterp:a,stroke:n,strokeWidth:r,strokeLinecap:o,fill:l,animationDelay:c,initialSpeed:h,dataChangeSpeed:d,className:f,chartType:g,shouldClipToGrid:p=!0,bindEventsOnPaths:m=!0,drawShadow:b=!0,drawMask:x=null,scrollMorph:_=!1}){var w,y,v,A;let S=this.w,C=new at(this.w),M=new St(this.w,(w=this.ctx)!=null?w:void 0),k=this.w.config.chart.animations.enabled,L=k&&this.w.config.chart.animations.dynamicAnimation.enabled;if(s&&s.startsWith("M 0 0 ")&&i){let Z=i.match(/^M\s+[\d.-]+\s+[\d.-]+/);Z&&(s=s.replace(/^M\s+0\s+0/,Z[0]))}let E,D=((v=(y=this.ctx)==null?void 0:y.morphTypeChange)==null?void 0:v.isActive())===!0,P=!!(k&&!S.globals.resized||L&&S.globals.dataChanged&&S.globals.shouldAnimate||D&&k&&S.globals.shouldAnimate),F=typeof f=="string"&&(f.indexOf("apexcharts-line")>-1||f.indexOf("apexcharts-area")>-1||f.indexOf("apexcharts-rangeArea")>-1||f.indexOf("apexcharts-radar")>-1),R=!!(k&&!S.globals.resized&&!S.globals.dataChanged&&F),N=(A=S.config.chart.animations.largeDatasetThreshold)!=null?A:0,z=!!(P&&!R&&N>0&&S.globals.dataPoints>N),W=!!((g==="candlestick"||g==="boxPlot")&&P&&!R&&S.globals.dataChanged&&!D),Y=z||W;P&&!R&&!Y?E=s:(E=i,P||(S.globals.animationEnded=!0));let I=S.config.stroke.dashArray,U=0;Array.isArray(I)?U=I[e]:U=S.config.stroke.dashArray;let X=this.drawPath({d:E,stroke:n,strokeWidth:r,fill:l,fillOpacity:1,classes:f,strokeLinecap:o,strokeDashArray:U});X.attr("index",e),p&&(g==="bar"&&!S.globals.isBarHorizontal||S.globals.comboCharts?X.attr({"clip-path":`url(#gridRectBarMask${S.globals.cuid})`}):X.attr({"clip-path":`url(#gridRectMask${S.globals.cuid})`})),S.config.chart.dropShadow.enabled&&b&&C.dropShadow(X,S.config.chart.dropShadow,e),m&&(X.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,X)),X.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,X)),X.node.addEventListener("mousedown",this.pathMouseDown.bind(this,X))),X.attr({pathTo:i,pathFrom:s});let V={el:X,j:t,realIndex:e,pathFrom:s,pathTo:i,pathToInterp:a,fill:l,strokeWidth:r,delay:c,scrollMorph:_};if(k&&!S.globals.resized&&!S.globals.dataChanged)if(R){let Z=h*2,K=n==="none"||r===0,Q=S.seriesData.series.length,tt=S.globals.comboCharts?!0:e===Q-1;M.animateDraw(X,{realIndex:e,j:t,isFill:K,isLast:tt,speed:Z,delay:0,mask:x})}else Y||M.animatePathsGradually(j(G({},V),{speed:h}));else(S.globals.resized||!S.globals.dataChanged)&&!Y&&M.showDelayedElements();return P&&!Y&&(S.globals.dataChanged&&L||D)&&M.animatePathsGradually(j(G({},V),{speed:d})),Y&&M.revealBulk(X),X}drawPattern(t,e,s,i="#a8a8a8",a=0){return this.w.dom.Paper.pattern(e,s,o=>{t==="horizontalLines"?o.line(0,0,s,0).stroke({color:i,width:a+1}):t==="verticalLines"?o.line(0,0,0,e).stroke({color:i,width:a+1}):t==="slantedLines"?o.line(0,0,e,s).stroke({color:i,width:a}):t==="squares"?o.rect(e,s).fill("none").stroke({color:i,width:a}):t==="circles"&&o.circle(e).fill("none").stroke({color:i,width:a})})}drawGradient(t,e,s,i,a,n=null,r=null,o=[],l=0,c=!1){let h=this.w,d;e.length<9&&e.indexOf("#")===0&&(e=T.hexToRgba(e,i)),s.length<9&&s.indexOf("#")===0&&(s=T.hexToRgba(s,a));let f=0,g=1,p=1,m=null;r!==null&&(f=typeof r[0]<"u"?r[0]/100:0,g=typeof r[1]<"u"?r[1]/100:1,p=typeof r[2]<"u"?r[2]/100:1,m=typeof r[3]<"u"?r[3]/100:null);let b=h.config.chart.type==="donut"||h.config.chart.type==="pie"||h.config.chart.type==="polarArea"||h.config.chart.type==="bubble";if(!o||o.length===0?d=h.dom.Paper.gradient(b?"radial":"linear",x=>{x.stop(f,e,i),x.stop(g,s,a),x.stop(p,s,a),m!==null&&x.stop(m,e,i)}):d=h.dom.Paper.gradient(b?"radial":"linear",x=>{(Array.isArray(o[l])?o[l]:Array.isArray(o[0])?o[0]||[]:o).forEach(w=>{x.stop(w.offset/100,w.color,w.opacity)})}),!b)t==="vertical"?c?(d.attr({gradientUnits:"userSpaceOnUse"}),d.from(0,0).to(0,h.layout.gridHeight)):d.from(0,0).to(0,1):t==="diagonal"?d.from(0,0).to(1,1):t==="horizontal"?d.from(0,1).to(1,1):t==="diagonal2"&&d.from(1,0).to(0,1);else{let x=h.layout.gridWidth/2,_=h.layout.gridHeight/2;h.config.chart.type!=="bubble"?d.attr({gradientUnits:"userSpaceOnUse",cx:x,cy:_,r:n}):d.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}return d}getTextBasedOnMaxWidth({text:t,maxWidth:e,fontSize:s,fontFamily:i}){let a=this.getTextRects(t,s,i,""),n=a.width/t.length,r=Math.floor(e/n);return e"u"&&(s="");let p=s;i||(i="start"),(!o||!o.length)&&(o=g.config.chart.foreColor),n=n||g.config.chart.fontFamily,a=a||"11px",r=r||"regular";let m={maxWidth:c,fontSize:a,fontFamily:n},b;return Array.isArray(s)?b=g.dom.Paper.text(x=>{for(let _=0;_x.tspan(p))),b.attr({x:t,y:e,"text-anchor":i,"dominant-baseline":f,"font-size":a,"font-family":n,"font-weight":r,fill:o,class:"apexcharts-text "+h}),b.node.style.fontFamily=n,b.node.style.opacity=l,b}getMarkerPath(t,e,s,i){let f="";switch(s){case"cross":i=i/1.4,f=`M ${t-i} ${e-i} L ${t+i} ${e+i} M ${t-i} ${e+i} L ${t+i} ${e-i}`;break;case"plus":i=i/1.12,f=`M ${t-i} ${e} L ${t+i} ${e} M ${t} ${e-i} L ${t} ${e+i}`;break;case"star":case"sparkle":{let g=5;i=i*1.15,s==="sparkle"&&(i=i/1.1,g=4);let p=Math.PI/g;for(let m=0;m<=2*g;m++){let b=m*p,x=m%2===0?i:i/2,_=t+x*Math.sin(b),w=e-x*Math.cos(b);f+=(m===0?"M":"L")+_+","+w}f+="Z";break}case"triangle":f=`M ${t} ${e-i} L ${t+i} ${e+i} L ${t-i} ${e+i} Z`;break;case"square":case"rect":i=i/1.125,f=`M ${t-i} ${e-i} L ${t+i} ${e-i} L ${t+i} ${e+i} L ${t-i} ${e+i} Z`;break;case"diamond":i=i*1.05,f=`M ${t} ${e-i} L ${t+i} ${e} L ${t} ${e+i} L ${t-i} ${e} Z`;break;case"line":i=i/1.1,f=`M ${t-i} ${e} L ${t+i} ${e}`;break;default:i=i*2,f=`M ${t}, ${e} m -${i/2}, 0 a ${i/2},${i/2} 0 1,0 ${i},0 a ${i/2},${i/2} 0 1,0 -${i},0`;break}return f}drawMarkerShape(t,e,s,i,a){let n=this.drawPath({d:this.getMarkerPath(t,e,s,i),stroke:a.pointStrokeColor,strokeDashArray:a.pointStrokeDashArray,strokeWidth:a.pointStrokeWidth,fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,strokeOpacity:a.pointStrokeOpacity});return n.attr({cx:t,cy:e,shape:a.shape,class:a.class?a.class:""}),n}drawMarker(t,e,s){t=t||0;let i=s.pSize||0;return T.isNumber(e)||(i=0,e=0),this.drawMarkerShape(t,e,s?.shape,i,G(G({},s),s.shape==="line"||s.shape==="plus"||s.shape==="cross"?{pointStrokeColor:s.pointFillColor,pointStrokeOpacity:s.pointFillOpacity}:{}))}pathMouseEnter(t,e){var s,i;let a=this.w,n=new at(this.w),r=parseInt((s=t.node.getAttribute("index"))!=null?s:"",10),o=parseInt((i=t.node.getAttribute("j"))!=null?i:"",10);if(!(isNaN(r)||isNaN(o))&&(typeof a.config.chart.events.dataPointMouseEnter=="function"&&a.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:a}),u._fireEvent(a,"dataPointMouseEnter",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:a}]),!(a.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true")&&!at.hoverOutlineOwnsHoverState(a)&&a.config.states.hover.filter.type!=="none"&&!a.interact.isTouchDevice)){let l=a.config.states.hover.filter;n.applyFilter(t,r,l.type,l.value)}}pathMouseLeave(t,e){var s,i;let a=this.w,n=new at(this.w),r=parseInt((s=t.node.getAttribute("index"))!=null?s:"",10),o=parseInt((i=t.node.getAttribute("j"))!=null?i:"",10);isNaN(r)||isNaN(o)||(typeof a.config.chart.events.dataPointMouseLeave=="function"&&a.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:a}),u._fireEvent(a,"dataPointMouseLeave",[e,this.ctx,{seriesIndex:r,dataPointIndex:o,w:a}]),!(a.config.states.active.filter.type!=="none"&&t.node.getAttribute("selected")==="true")&&(at.hoverOutlineOwnsHoverState(a)||a.config.states.hover.filter.type!=="none"&&n.getDefaultFilter(t,r)))}_clearAllDataPointSelections(t,e){let s=this.w;s.interact.selectedDataPoints=[];let i=s.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),a=s.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),n=r=>{Array.prototype.forEach.call(r,o=>{o.node.setAttribute("selected","false"),t.getDefaultFilter(o,e)})};n(i),n(a)}_togglePointSelection(t,e,s,i){let a=this.w;if(t.node.getAttribute("selected")==="true"){t.node.setAttribute("selected","false");let n=a.interact.selectedDataPoints[s].indexOf(i);return n>-1&&a.interact.selectedDataPoints[s].splice(n,1),"false"}return!a.config.states.active.allowMultipleDataPointsSelection&&a.interact.selectedDataPoints.length>0&&this._clearAllDataPointSelections(e,s),t.node.setAttribute("selected","true"),typeof a.interact.selectedDataPoints[s]>"u"&&(a.interact.selectedDataPoints[s]=[]),a.interact.selectedDataPoints[s].push(i),"true"}_applyPointSelectionFilter(t,e,s,i){let a=this.w;if(!at.sliceOffsetOwnsActiveState(a)){if(i==="true"){let n=a.config.states.active.filter;if(n!=="none")e.applyFilter(t,s,n.type,n.value);else if(a.config.states.hover.filter!=="none"&&!a.interact.isTouchDevice){let r=a.config.states.hover.filter;e.applyFilter(t,s,r.type,r.value)}}else if(a.config.states.active.filter.type!=="none")if(a.config.states.hover.filter.type!=="none"&&!a.interact.isTouchDevice){let n=a.config.states.hover.filter;e.applyFilter(t,s,n.type,n.value)}else e.getDefaultFilter(t,s)}}pathMouseDown(t,e){var s,i;let a=this.w,n=new at(this.w),r=parseInt((s=t.node.getAttribute("index"))!=null?s:"",10),o=parseInt((i=t.node.getAttribute("j"))!=null?i:"",10);if(isNaN(r)||isNaN(o))return;let l=a.config.chart.link;if(!!!(l&&(typeof l.dimension=="function"||l.enabled))){let h=this._togglePointSelection(t,n,r,o);this._applyPointSelectionFilter(t,n,r,h)}typeof a.config.chart.events.dataPointSelection=="function"&&a.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:a}),e&&u._fireEvent(a,"dataPointSelection",[e,this.ctx,{selectedDataPoints:a.interact.selectedDataPoints,seriesIndex:r,dataPointIndex:o,w:a}])}rotateAroundCenter(t){let e={};t&&typeof t.getBBox=="function"&&(e=t.getBBox());let s=e.x+e.width/2,i=e.y+e.height/2;return{x:s,y:i}}setupEventDelegation(t,e){let s=null;t.node.addEventListener("mouseover",i=>{let a=u._findDelegateTarget(i.target,t.node,e);!a||a===s||(s&&s.instance&&this.pathMouseLeave(s.instance,i),s=a,a.instance&&this.pathMouseEnter(a.instance,i))}),t.node.addEventListener("mouseout",i=>{if(!s)return;(i.relatedTarget?u._findDelegateTarget(i.relatedTarget,t.node,e):null)!==s&&(s&&s.instance&&this.pathMouseLeave(s.instance,i),s=null)}),t.node.addEventListener("mousedown",i=>{let a=u._findDelegateTarget(i.target,t.node,e);a&&a.instance&&this.pathMouseDown(a.instance,i)})}static _fireEvent(t,e,s){let i=t.globals.events;if(!i||!Object.prototype.hasOwnProperty.call(i,e))return;let a=i[e];for(let n=0;n0&&t.getComputedTextLength()>=s/1.1)){for(let i=e.length-3;i>0;i-=3)if(t.getSubStringLength(0,i)<=s/1.1){t.textContent=e.substring(0,i)+"...";return}t.textContent="."}}},pt=class{constructor(t){this.w=t,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(t){let e=this.w,s=e.config,i=parseInt(String(e.layout.gridWidth),10),a=parseInt(String(e.layout.gridHeight),10),n=i>a?i:a,r=t.image,o=0,l=0;typeof t.width>"u"&&typeof t.height>"u"?s.fill.image.width!==void 0&&s.fill.image.height!==void 0?(o=s.fill.image.width+1,l=s.fill.image.height):(o=n+1,l=n):(o=t.width,l=t.height);let c=O.createElementNS(et,"pattern");B.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});let h=O.createElementNS(et,"image");c.appendChild(h);let d=H.isBrowser()?window.SVG:global.SVG;h.setAttributeNS(d.xlink,"href",r),B.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),h.style.opacity=t.opacity,e.dom.elDefs.node.appendChild(c)}getSeriesIndex(t){let e=this.w,s=e.config.chart.type;return(s==="bar"||s==="rangeBar")&&e.config.plotOptions.bar.distributed||s==="heatmap"||s==="treemap"?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.seriesData.series.length,this.seriesIndex}getSeriesAxisRange(t){var e,s,i;let a=this.w,n=(s=(e=a.globals.seriesYAxisReverseMap)==null?void 0:e[t])!=null?s:0;return{minY:T.isNumber(a.globals.minYArr[t])?a.globals.minYArr[t]:a.globals.minY,maxY:T.isNumber(a.globals.maxYArr[t])?a.globals.maxYArr[t]:a.globals.maxY,reversed:!!((i=a.config.yaxis[n])!=null&&i.reversed)}}computeColorStops(t,e){let s=this.w,{threshold:i,colorAboveThreshold:a,colorBelowThreshold:n}=e,{minY:r,maxY:o}=t,l=o-r,c=l===0?i>o?0:100:(o-i)/l*100;t.reversed&&(c=100-c),c=Math.max(0,Math.min(c,100));let h=Array.isArray(s.config.fill.opacity)?s.config.fill.opacity[this.seriesIndex]:s.config.fill.opacity,d={offset:c,color:a,opacity:h},f={offset:c,color:n,opacity:h};return t.reversed?[f,d]:[d,f]}fillPath(t){var e,s,i,a;let n=this.w;this.opts=t;let r=this.w.config,o,l,c;this.seriesIndex=this.getSeriesIndex(t);let h=r.plotOptions.line.colors.colorAboveThreshold&&r.plotOptions.line.colors.colorBelowThreshold,f=this.getFillColors()[this.seriesIndex];n.seriesData.seriesColors[this.seriesIndex]!==void 0&&(f=n.seriesData.seriesColors[this.seriesIndex]),typeof f=="function"&&(f=f({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:n}));let g=t.fillType?t.fillType:this.getFillType(this.seriesIndex),p=Array.isArray(r.fill.opacity)?r.fill.opacity[this.seriesIndex]:r.fill.opacity,m=g==="gradient"||h;t.color&&(f=t.color);let b=n.config.series[this.seriesIndex];(s=(e=b?.data)==null?void 0:e[t.dataPointIndex])!=null&&s.fillColor&&(f=(a=(i=b?.data)==null?void 0:i[t.dataPointIndex])==null?void 0:a.fillColor),f||(f="#fff",console.warn("undefined color - ApexCharts")),t.opacity!==void 0&&t.opacity!==null&&(p=t.opacity);let x=f;T.isCSSVariable(f)?x=T.applyOpacityToColor(f,p):f.indexOf("rgb")===-1?f.indexOf("#")===-1?x=f:f.length<9&&(x=T.hexToRgba(f,p)):f.indexOf("rgba")>-1?p=T.getOpacityFromRGBA(f):x=T.hexToRgba(T.rgb2hex(f),p);let _=T.isCSSVariable(f)?T.getThemeColor(f):f;if(g==="pattern"&&(l=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:l,fillColor:_,defaultColor:x})),m){let w=r.fill.gradient.colorStops?[...r.fill.gradient.colorStops]:[],y=r.fill.gradient.type;h&&(w[this.seriesIndex]=this.computeColorStops(this.getSeriesAxisRange(this.seriesIndex),r.plotOptions.line.colors),y="vertical"),c=this.handleGradientFill({type:y,fillConfig:t.fillConfig,fillColor:_,fillOpacity:p,colorStops:w,i:this.seriesIndex,verticalUserSpace:h})}if(g==="image"){let w=r.fill.image.src,y=t.patternID?t.patternID:"",v=`pattern${n.globals.cuid}${t.seriesNumber+1}${y}`;this.patternIDs.indexOf(v)===-1&&(this.clippedImgArea({opacity:p,image:Array.isArray(w)?t.seriesNumber-1&&(g=T.getOpacityFromRGBA(d));let p=o.gradient.opacityTo===void 0?s:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[n]:o.gradient.opacityTo;if(o.gradient.gradientToColors===void 0||o.gradient.gradientToColors.length===0)o.gradient.shade==="dark"?f=h.shadeColor(parseFloat(o.gradient.shadeIntensity)*-1,e.indexOf("rgb")>-1?T.rgb2hex(e):e):f=h.shadeColor(parseFloat(o.gradient.shadeIntensity),e.indexOf("rgb")>-1?T.rgb2hex(e):e);else if(o.gradient.gradientToColors[l.seriesNumber]){let m=o.gradient.gradientToColors[l.seriesNumber];f=m,m.indexOf("rgba")>-1&&(p=T.getOpacityFromRGBA(m))}else f=e;if(o.gradient.gradientFrom&&(d=o.gradient.gradientFrom),o.gradient.gradientTo&&(f=o.gradient.gradientTo),o.gradient.inverseColors){let m=d;d=f,f=m}return d.indexOf("rgb")>-1&&(d=T.rgb2hex(d)),f.indexOf("rgb")>-1&&(f=T.rgb2hex(f)),c.drawGradient(t,d,f,g,p,l.size,o.gradient.stops,a,n,r)}},yn=["none","lighten","darken"];function ae(u,t){let e=u&&u.renderer;return e&&e.kind&&e.kind!=="svg"?e:t}function vl(u){let t=u.config.series||[],e=u.config.chart.type,s=e==="scatter"||e==="bubble",i=u.config.markers&&u.config.markers.size,a=Array.isArray(i)?i.some(h=>h>0):(i||0)>0,n=!!(u.config.dataLabels&&u.config.dataLabels.enabled),r=e==="heatmap",o=0,l=0;return t.forEach(h=>{let d=Array.isArray(h.data)?h.data.length:0;d>l&&(l=d),(s||a||r)&&(o+=d),n&&(o+=d)}),l>=5e4&&(o=Math.max(o,l)),o}function wn(u){var t,e;let s=u.config.fill&&u.config.fill.type,i=l=>l==="pattern"||l==="image"||l==="gradient";if(Array.isArray(s)?s.some(i):i(s))return!0;let a=(e=(t=u.config.plotOptions)==null?void 0:t.line)==null?void 0:e.colors;if(a&&a.colorAboveThreshold&&a.colorBelowThreshold)return!0;let n=u.config.states||{},r=n.hover&&n.hover.filter&&n.hover.filter.type,o=n.active&&n.active.filter&&n.active.filter.type;return!!(r&&!yn.includes(r)||o&&!yn.includes(o))}var zt=class{constructor(t,e){this.w=t,this.ctx=e,this._filters=new at(this.w),this._graphics=new B(this.w,this.ctx),this._seriesWrap=null,this._seriesWrapIndex=-1}resetSeriesWrapCache(){this._seriesWrap=null,this._seriesWrapIndex=-1}setGlobalMarkerSize(){let t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length"u"&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(()=>t.config.markers.size)}plotChartMarkers({pointsPos:t,seriesIndex:e,j:s,pSize:i,alwaysDrawMarker:a=!1,isVirtualPoint:n=!1}){let r=this.w,o=e,l=t,c=null,h=new B(this.w),d=ae(this.ctx,h),f=r.config.markers.discrete&&r.config.markers.discrete.length;if(Array.isArray(l.x))for(let g=0;g0:r.config.markers.size>0)||a||f){d.kind==="canvas"&&(typeof r.globals.pointsArray[e]>"u"&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e][m]=[l.x[g],l.y[g]]),b||(x+=` w${T.randomId()}`);let w=this.getMarkerConfig({cssClass:x,seriesIndex:e,dataPointIndex:m}),y=r.config.series[o];if(y.data[m]&&(y.data[m].fillColor&&(w.pointFillColor=y.data[m].fillColor),y.data[m].strokeColor&&(w.pointStrokeColor=y.data[m].strokeColor)),typeof i<"u"&&(w.pSize=i),(l.x[g]<-r.globals.markers.largestSize||l.x[g]>r.layout.gridWidth+r.globals.markers.largestSize||l.y[g]<-r.globals.markers.largestSize||l.y[g]>r.layout.gridHeight+r.globals.markers.largestSize)&&(w.pSize=0),!b){if((r.globals.markers.size[e]>0||a||f)&&!c){let A=!a&&!f;A&&this._seriesWrap&&this._seriesWrapIndex===e?c=this._seriesWrap:(c=d.group({class:A?"apexcharts-series-markers":""}),c.attr("clip-path",`url(#gridRectMarkerMask${r.globals.cuid})`),this.setupMarkerDelegation(c),A&&(this._seriesWrap=c,this._seriesWrapIndex=e))}p=d.drawMarker(l.x[g],l.y[g],w),p.attr("rel",m),p.attr("j",m),p.attr("index",e),p.node.setAttribute("default-marker-size",w.pSize),Dt(p,l.x[g],r),this._filters.setSelectionFilter(p,e,m),c&&c.add(p)}}else typeof r.globals.pointsArray[e]>"u"&&(r.globals.pointsArray[e]=[]),r.globals.pointsArray[e].push([l.x[g],l.y[g]])}return c}getMarkerConfig({cssClass:t,seriesIndex:e,dataPointIndex:s=null,radius:i=null,size:a=null,strokeWidth:n=null}){let r=this.w,o=this.getMarkerStyle(e),l=a===null?r.globals.markers.size[e]:a,c=r.config.markers;return s!==null&&c.discrete.length&&c.discrete.map(h=>{h.seriesIndex===e&&h.dataPointIndex===s&&(h.strokeColor!==void 0&&(o.pointStrokeColor=h.strokeColor),h.fillColor!==void 0&&(o.pointFillColor=h.fillColor),h.size!==void 0&&(l=h.size),h.shape!==void 0&&(o.pointShape=h.shape))}),{pSize:i===null?l:i,pRadius:i!==null?i:c.radius,pointStrokeWidth:n!==null?n:Array.isArray(c.strokeWidth)?c.strokeWidth[e]:c.strokeWidth,pointStrokeColor:o.pointStrokeColor,pointFillColor:o.pointFillColor,shape:o.pointShape||(Array.isArray(c.shape)?c.shape[e]:c.shape),class:t,pointStrokeOpacity:Array.isArray(c.strokeOpacity)?c.strokeOpacity[e]:c.strokeOpacity,pointStrokeDashArray:Array.isArray(c.strokeDashArray)?c.strokeDashArray[e]:c.strokeDashArray,pointFillOpacity:Array.isArray(c.fillOpacity)?c.fillOpacity[e]:c.fillOpacity,seriesIndex:e}}setupMarkerDelegation(t){let e=this.w,s=".apexcharts-marker";this._graphics.setupEventDelegation(t,s),t.node.addEventListener("click",i=>{e.config.markers.onClick&&B._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onClick(i)}),t.node.addEventListener("dblclick",i=>{e.config.markers.onDblClick&&B._findDelegateTarget(i.target,t.node,s)&&e.config.markers.onDblClick(i)}),t.node.addEventListener("touchstart",i=>{let a=B._findDelegateTarget(i.target,t.node,s);a&&a.instance&&this._graphics.pathMouseDown(a.instance,i)},{passive:!0})}getMarkerStyle(t){let e=this.w,s=e.globals.markers.colors,i=e.config.markers.strokeColor||e.config.markers.strokeColors,a=Array.isArray(i)?i[t]:i,n=Array.isArray(s)?s[t]:s;return{pointStrokeColor:a,pointFillColor:n}}},ds=class{constructor(t,e){this.ctx=e,this.w=t,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new St(this.w),this.filters=new at(this.w),this.fill=new pt(this.w),this.markers=new zt(this.w,this.ctx),this.graphics=new B(this.w),this._elPointsWrap=null,this._elPointsWrapParent=null,this._perSeries=null}draw(t,e,s){let i=this.w,a=this.graphics,n=ae(this.ctx,a),r=s.realIndex,o=s.pointsPos,l=s.zRatio,c=s.elParent,h=this._elPointsWrap;if((!h||this._elPointsWrapParent!==c)&&(h=n.group({class:`apexcharts-series-markers apexcharts-series-${i.config.chart.type}`}),h.attr("clip-path",`url(#gridRectMarkerMask${i.globals.cuid})`),this.markers.setupMarkerDelegation(h),c.add(h),this._elPointsWrap=h,this._elPointsWrapParent=c,this._perSeries=this._buildPerSeriesCache(r,n)),Array.isArray(o.x))for(let d=0;dx.maxBubbleRadius&&(p=x.maxBubbleRadius)}let m=o.x[d],b=o.y[d];if(p=p||0,(b===null||typeof i.seriesData.series[r][f]>"u")&&(g=!1),g){let x=this.drawPoint(m,b,p,r,f,e);h.add(x),n.kind==="canvas"&&(typeof i.globals.pointsArray[r]>"u"&&(i.globals.pointsArray[r]=[]),i.globals.pointsArray[r][f]=[m,b])}}}_buildPerSeriesCache(t,e){var s;let i=this.w;return{realIndex:t,emit:e,isBubble:i.config.chart.type==="bubble"||i.globals.comboCharts&&i.config.series[t]&&i.config.series[t].type==="bubble",canCacheConfig:!i.config.markers.discrete.length,markerConfig:null,fillCacheable:void 0,fillCircle:void 0,dropShadowEnabled:i.config.chart.dropShadow.enabled,doInitialAnim:this.initialAnim&&!i.globals.dataChanged&&!i.globals.resized,jitter:(s=i.config.plotOptions.scatter)==null?void 0:s.jitter,anim:null}}drawPoint(t,e,s,i,a,n){var r;let o=this.w,l=i,c=this.anim,h=this.filters,d=this.fill,f=this.markers,g=this._perSeries;(!g||g.realIndex!==i)&&(g=this._perSeries=this._buildPerSeriesCache(i,ae(this.ctx,this.graphics)));let p=g.emit,m;g.canCacheConfig?(g.markerConfig||(g.markerConfig=f.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,radius:g.isBubble?s:null})),m=g.markerConfig,g.isBubble&&(m.pSize=s,m.pRadius=s)):m=f.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,radius:g.isBubble?s:null});let x=o.config.series[l].data[a],_;g.fillCircle!==void 0?_=g.fillCircle:(_=d.fillPath({seriesNumber:i,dataPointIndex:a,color:m.pointFillColor,patternUnits:"objectBoundingBox",value:o.seriesData.series[i][n]}),g.fillCacheable===void 0&&(g.fillCacheable=g.canCacheConfig&&d.getFillType(i)==="solid"&&typeof m.pointFillColor=="string"&&!!m.pointFillColor),g.fillCacheable&&!x?.fillColor&&(g.fillCircle=_));let w=p.drawMarker(t,e,m);x?.fillColor&&(_=x.fillColor);let y=g.jitter;if(y?.enabled&&y.distributed&&o.globals.colors.length){let v=Math.round((r=o.seriesData.seriesX[i])==null?void 0:r[a]);isNaN(v)||(_=o.globals.colors[v%o.globals.colors.length])}if(w.attr({fill:_}),g.dropShadowEnabled){let v=o.config.chart.dropShadow;h.dropShadow(w,v,i)}if(g.doInitialAnim){if(!g.anim){let A=o.config.chart.animations,S=o.globals.dataPoints||1,C=A.animateGradually,M=C&&C.enabled!==!1;g.anim={popSpeed:A.speed,baseDelay:M?Math.min(20,A.speed*.5/Math.max(1,S)):0}}let v=Ya({style:g.anim.baseDelay>0?"sequential":"none",index:a,baseDelay:g.anim.baseDelay});c.animatePop(w,{speed:g.anim.popSpeed,delay:v,onComplete:()=>c.animationCompleted(w)})}else o.globals.animationEnded=!0;return w.attr({rel:a,j:a,index:i,"default-marker-size":m.pSize}),h.setSelectionFilter(w,i,a),w}centerTextInBubble(t){let e=this.w;return t=t+parseInt(e.config.dataLabels.style.fontSize,10)/4,{y:t}}},Bt=(u,t,e,s)=>{if(typeof u!="function")return u;let i=u({series:t.seriesData.series,seriesIndex:e,dataPointIndex:s,w:t});return Number.isFinite(i)?i:0},Et=class{constructor(t,e=null){this.w=t,this.ctx=e}dataLabelsCorrection(t,e,s,i,a,n,r){let o=this.w,l=new B(this.w),c=!1,h=l.getTextRects(s,r),d=h.width,f=h.height;e<0&&(e=0),e>o.layout.gridHeight+f&&(e=o.layout.gridHeight+f/2),typeof o.globals.dataLabelsRects[i]>"u"&&(o.globals.dataLabelsRects[i]=[]),o.globals.dataLabelsRects[i].push({x:t,y:e,width:d,height:f});let g=o.globals.dataLabelsRects[i].length-2,p=typeof o.globals.lastDrawnDataLabelsIndexes[i]<"u"?o.globals.lastDrawnDataLabelsIndexes[i][o.globals.lastDrawnDataLabelsIndexes[i].length-1]:0;if(typeof o.globals.dataLabelsRects[i][g]<"u"){let m=o.globals.dataLabelsRects[i][p];(t>m.x+m.width||e>m.y+m.height||e+fr.config.dataLabels.formatter(w,{seriesIndex:s,dataPointIndex:d,w:r});r.config.chart.type==="bubble"?(m=r.seriesData.seriesZ[s][d],b=x(m),h=e.y[p],h=new ds(this.w,this.ctx).centerTextInBubble(h).y):typeof m<"u"&&(b=x(m));let _=r.config.dataLabels.textAnchor;r.globals.isSlopeChart&&(d===0?_="end":d===r.config.series[s].data.length-1?_="start":_="middle"),this.plotDataLabelsText({x:c,y:h,text:b,i:s,j:d,parent:f,offsetCorrection:!0,dataLabelsConfig:r.config.dataLabels,textAnchor:_})}return f}plotDataLabelsText(t){let e=this.w,s=new B(this.w),{x:i,y:a,i:n,j:r,text:o,textAnchor:l,fontSize:c,parent:h,dataLabelsConfig:d,color:f,alwaysDrawDataLabel:g,offsetCorrection:p,className:m,seriesIndex:b=n,dataPointIndex:x=r}=t,_=null;if(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(n)<0)return _;let w={x:i,y:a,drawnextLabel:!0,textRects:null};if(p&&(w=this.dataLabelsCorrection(i,a,o,n,r,g,parseInt(d.style.fontSize,10).toString())),e.interact.zoomed||(i=w.x,a=w.y),w.textRects){let k=e.globals.barPadForNumericAxis||0;(i<-(k+20)-w.textRects.width||i>e.layout.gridWidth+w.textRects.width+k+30)&&(o="")}let y=e.globals.dataLabels.style.colors[n];((e.config.chart.type==="bar"||e.config.chart.type==="rangeBar")&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(y=e.globals.dataLabels.style.colors[r]),typeof y=="function"&&(y=y({series:e.seriesData.series,seriesIndex:n,dataPointIndex:r,w:e})),f&&(y=f);let v=e.config.chart.type==="bar"||e.config.chart.type==="rangeBar",A=v?0:Bt(d.offsetX,e,b,x),S=v?0:Bt(d.offsetY,e,b,x),C=A,M=S;if(e.globals.isSlopeChart&&(r!==0&&(C=A*-2+5),r!==0&&r!==e.config.series[n].data.length-1&&(C=0)),w.drawnextLabel){if(l==="middle"&&i===e.layout.gridWidth&&(l="end"),_=s.drawText({x:i+C,y:a+M,foreColor:y,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"}),_.attr({class:m||"apexcharts-datalabel",cx:i,cy:a}),d.dropShadow.enabled){let k=d.dropShadow;new at(this.w).dropShadow(_,k)}h.add(_),Dt(_,i,e),typeof e.globals.lastDrawnDataLabelsIndexes[n]>"u"&&(e.globals.lastDrawnDataLabelsIndexes[n]=[]),e.globals.lastDrawnDataLabelsIndexes[n].push(r)}return _}addBackgroundToDataLabel(t,e){let s=this.w,i=s.config.dataLabels.background,a=i.padding,n=i.padding/2,r=e.width,o=e.height,c=new B(this.w).drawRect(e.x-a,e.y-n/2,r+a*2,o+n,i.borderRadius,s.config.chart.background==="transparent"||!s.config.chart.background?"#fff":s.config.chart.background,i.opacity,i.borderWidth,i.borderColor);return i.dropShadow.enabled&&new at(this.w).dropShadow(c,i.dropShadow),c}dataLabelsBackground(){var t;let e=this.w;if(e.config.chart.type==="bubble")return;let s=e.dom.baseEl.querySelectorAll(".apexcharts-datalabels text");for(let i=0;i"u"?"":t[i],c=l,h=o.formatters.xLabelFormatter,d=o.config.xaxis.labels.formatter,f=new ee(this.w),g=l;r&&(c=f.xLabelFormat(h,l,g,{i,dateFormatter:new mt(this.w).formatDate,w:o}),d!==void 0&&(c=d(l,t[i],{i,dateFormatter:new mt(this.w).formatDate,w:o}))),e.length>0?(s=e[i].position,c=e[i].value):o.config.xaxis.type==="datetime"&&d===void 0&&(c=""),typeof c>"u"&&(c=""),c=Array.isArray(c)?c:c.toString();let p=new B(this.w),m={};o.layout.rotateXLabels&&r?m=p.getTextRects(c,parseInt(n,10).toString(),null,`rotate(${o.config.xaxis.labels.rotate} 0 0)`,!1):m=p.getTextRects(c,parseInt(n,10).toString());let b=!o.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(c)&&(String(c)==="NaN"||a.indexOf(c)>=0&&b)&&(c=""),{x:s,text:c,textRect:m}}checkLabelBasedOnTickamount(t,e,s){let i=this.w,a=i.config.xaxis.tickAmount;if(a==="dataPoints"&&(a=Math.round(i.layout.gridWidth/120)),a>s)return e;let n=Math.round(s/(a+1));return t%n===0||(e.text=""),e}checkForOverflowingLabels(t,e,s,i,a){let n=this.w;if(t===0&&n.globals.skipFirstTimelinelabel&&(e.text=""),t===s-1&&n.globals.skipLastTimelinelabel&&(e.text=""),n.config.xaxis.labels.hideOverlappingLabels&&i.length>0){let r=a[a.length-1];if(n.config.xaxis.labels.trim&&n.config.xaxis.type!=="datetime")return e;e.xe.collapsedSeriesIndices.indexOf(s)===-1)}translateYAxisIndex(t){let e=this.w,s=e.globals,i=e.config.yaxis;return e.seriesData.series.length>i.length||i.some(n=>Array.isArray(n.seriesName))?t:s.seriesYAxisReverseMap[t]}isYAxisHidden(t){let e=this.w,s=e.config.yaxis[t];if(!s.show||this.yAxisAllSeriesCollapsed(t))return!0;if(!s.showForNullSeries){let i=e.globals.seriesYAxisMap[t],a=new lt(this.w);return i.every(n=>a.isSeriesNull(n))}return!1}getYAxisForeColor(t,e){var s;let i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&((s=this.theme)==null||s.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1)),t}drawYAxisTicks(t,e,s,i,a,n,r){let o=this.w,l=new B(this.w),c=o.layout.translateY+o.config.yaxis[a].labels.offsetY;if(o.globals.isBarHorizontal?c=0:o.config.chart.type==="heatmap"&&(c+=n/2),i.show&&e>0){o.config.yaxis[a].opposite===!0&&(t=t+i.width);for(let h=e;h>=0;h--){let d=l.drawLine(t+s.offsetX-i.width+i.offsetX,c+i.offsetY,t+s.offsetX+i.offsetX,c+i.offsetY,i.color);r.add(d),c+=n}}}},Wt=class{constructor(t,e,s){this.w=t,this.ctx=e,this.elgrid=s,this.axesUtils=new Ct(t,{theme:e.theme,timeScale:e.timeScale}),this.xaxisLabels=t.labelData.labels.slice(),t.labelData.timescaleLabels.length>0&&!t.globals.isBarHorizontal&&(this.xaxisLabels=t.labelData.timescaleLabels.slice()),t.config.xaxis.overwriteCategories&&(this.xaxisLabels=t.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],t.config.xaxis.position==="top"?this.offY=0:this.offY=t.layout.gridHeight,this.offY=this.offY+t.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=t.config.chart.type==="bar"&&t.config.plotOptions.bar.horizontal,this.xaxisFontSize=t.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=t.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=t.config.xaxis.labels.style.colors,this.xaxisBorderWidth=t.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=t.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=t.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=t.config.xaxis.axisBorder.height,this.yaxis=t.config.yaxis[0]}drawXaxis(){let t=this.w,e=new B(this.w),s=e.group({class:"apexcharts-xaxis",transform:`translate(${t.config.xaxis.offsetX}, ${t.config.xaxis.offsetY})`}),i=e.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});s.add(i);let a=[];for(let n=0;nr),t.labelData.hasXaxisGroups){let n=t.labelData.groups;a=[];for(let o=0;on[o].cols*l,r)}if(t.config.xaxis.title.text!==void 0){let n=e.group({class:"apexcharts-xaxis-title"}),r=e.drawText({x:t.layout.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(t.config.xaxis.position==="bottom"?t.layout.xAxisLabelsHeight:-t.layout.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});n.add(r),s.add(n)}if(t.config.xaxis.axisBorder.show){let n=t.globals.barPadForNumericAxis,r=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-n,this.offY,this.xaxisBorderWidth+n,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(r):s.add(r)}return s}drawXAxisLabelAndGroup(t,e,s,i,a,n,r={}){var o,l;let c=[],h=[],d=this.w,f=r.xaxisFontSize||this.xaxisFontSize,g=r.xaxisFontFamily||this.xaxisFontFamily,p=r.xaxisForeColors||this.xaxisForeColors,m=r.fontWeight||d.config.xaxis.labels.style.fontWeight,b=r.cssClass||d.config.xaxis.labels.style.cssClass,x,_=d.globals.padHorizontal,w=i.length,y=d.config.xaxis.type==="category"?d.globals.dataPoints:w;if(y===0&&w>y&&(y=w),a){let v=Math.max(Number(d.config.xaxis.tickAmount)||1,y>1?y-1:y);x=d.layout.gridWidth/Math.min(v,w-1),_=_+n(0,x)/2+d.config.xaxis.labels.offsetX}else x=d.layout.gridWidth/y,_=_+n(0,x)+d.config.xaxis.labels.offsetX;for(let v=0;v<=w-1;v++){let A=_-n(v,x)/2+d.config.xaxis.labels.offsetX;v===0&&w===1&&x/2===_&&y===1&&(A=d.layout.gridWidth/2);let S=this.axesUtils.getLabel(i,d.labelData.timescaleLabels,A,v,c,f,t),C=28;d.layout.rotateXLabels&&t&&(C=22),d.config.xaxis.title.text&&d.config.xaxis.position==="top"&&(C+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(C=C+parseFloat(f)+(d.layout.xAxisLabelsHeight-d.layout.xAxisGroupLabelsHeight)+(d.layout.rotateXLabels?10:0)),typeof d.config.xaxis.tickAmount<"u"&&d.config.xaxis.tickAmount!=="dataPoints"&&d.config.xaxis.type!=="datetime"?S=this.axesUtils.checkLabelBasedOnTickamount(v,S,w):S=this.axesUtils.checkForOverflowingLabels(v,S,w,c,h);let k=()=>t&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+v-1]:p[v],E=((l=(o=S.textRect)==null?void 0:o.width)!=null?l:0)/2,D=S.x+E<0;if(d.config.xaxis.labels.show&&!D){let P=e.drawText({x:S.x,y:this.offY+d.config.xaxis.labels.offsetY+C-(d.config.xaxis.position==="top"?d.layout.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:S.text,textAnchor:"middle",fontWeight:m,fontSize:f,fontFamily:g,foreColor:Array.isArray(p)?k():p,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+b});if(s.add(P),P.on("click",F=>{if(typeof d.config.chart.events.xAxisLabelClick=="function"){let R=Object.assign({},d,{labelIndex:v});d.config.chart.events.xAxisLabelClick(F,this.ctx,R)}}),t){let F=O.createElementNS(et,"title");F.textContent=Array.isArray(S.text)?S.text.join(" "):S.text,P.node.appendChild(F),S.text!==""&&(c.push(S.text),h.push(S))}}v"u"?"":r[g];p=c(p,{seriesIndex:t,dataPointIndex:g,w:e});let m=this.axesUtils.getYAxisForeColor(h.style.colors,t),b=()=>Array.isArray(m)?m[g]:m,x=0;Array.isArray(p)&&(x=p.length/2*parseInt(h.style.fontSize,10));let _=h.offsetX-15,w="end";this.yaxis.opposite&&(w="start"),e.config.yaxis[0].labels.align==="left"?(_=h.offsetX,w="start"):e.config.yaxis[0].labels.align==="center"?(_=h.offsetX,w="middle"):e.config.yaxis[0].labels.align==="right"&&(w="end");let y=s.drawText({x:_,y:l+o+h.offsetY-x,text:p,textAnchor:w,foreColor:b(),fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});n.add(y),y.on("click",A=>{if(typeof e.config.chart.events.xAxisLabelClick=="function"){let S=Object.assign({},e,{labelIndex:g});e.config.chart.events.xAxisLabelClick(A,this.ctx,S)}});let v=O.createElementNS(et,"title");if(v.textContent=Array.isArray(p)?p.join(" "):p,y.node.appendChild(v),e.config.yaxis[t].labels.rotate!==0){let A=s.rotateAroundCenter(y.node);y.node.setAttribute("transform",`rotate(${e.config.yaxis[t].labels.rotate} 0 ${A.y})`)}l=l+o}if(e.config.yaxis[0].title.text!==void 0){let g=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+i+", 0)"}),p=s.drawText({x:e.config.yaxis[0].title.offsetX,y:e.layout.gridHeight/2+e.config.yaxis[0].title.offsetY,text:e.config.yaxis[0].title.text,textAnchor:"middle",foreColor:e.config.yaxis[0].title.style.color,fontSize:e.config.yaxis[0].title.style.fontSize,fontWeight:e.config.yaxis[0].title.style.fontWeight,fontFamily:e.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+e.config.yaxis[0].title.style.cssClass});g.add(p),a.add(g)}let d=0;this.isCategoryBarHorizontal&&e.config.yaxis[0].opposite&&(d=e.layout.gridWidth);let f=e.config.xaxis.axisBorder;if(f.show){let g=s.drawLine(e.globals.padHorizontal+f.offsetX+d,1+f.offsetY,e.globals.padHorizontal+f.offsetX+d,e.layout.gridHeight+f.offsetY,f.color,0);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(g):a.add(g)}return e.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(d,r.length,e.config.yaxis[0].axisBorder,e.config.yaxis[0].axisTicks,0,o,a),a}drawXaxisTicks(t,e,s){let i=this.w,a=t;if(t<0||t-2>i.layout.gridWidth)return;let n=this.offY+i.config.xaxis.axisTicks.offsetY;if(e=e+n+i.config.xaxis.axisTicks.height,i.config.xaxis.position==="top"&&(e=n-i.config.xaxis.axisTicks.height),i.config.xaxis.axisTicks.show){let o=new B(this.w).drawLine(t+i.config.xaxis.axisTicks.offsetX,n+i.config.xaxis.offsetY,a+i.config.xaxis.axisTicks.offsetX,e+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);s.add(o),o.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){let t=this.w,e=[],s=this.xaxisLabels.length,i=t.globals.padHorizontal;if(t.labelData.timescaleLabels.length>0)for(let a=0;a{a.placeTextWithEllipsis(f,f.textContent,i.layout.xAxisLabelsHeight-(i.config.legend.position==="bottom"?20:10))})}else{let c=i.layout.gridWidth/(i.labelData.labels.length+1);for(let h=0;h{a.placeTextWithEllipsis(f,f.textContent,c)})}}if(o.length>0){let c=o[o.length-1].getBBox(),h=o[0].getBBox();c.x<-20&&((t=o[o.length-1].parentNode)==null||t.removeChild(o[o.length-1])),h.x+h.width>i.layout.gridWidth&&!i.globals.isBarHorizontal&&((e=o[0].parentNode)==null||e.removeChild(o[0]));for(let d=0;d0&&(this.xaxisLabels=t.labelData.timescaleLabels.slice())}drawGridArea(t=null){let e=this.w,s=new B(this.w);t||(t=s.group({class:"apexcharts-grid"}));let i=s.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.layout.gridHeight,"transparent"),a=s.drawLine(e.globals.padHorizontal,e.layout.gridHeight,e.layout.gridWidth,e.layout.gridHeight,"transparent");return t.add(a),t.add(i),t}drawGrid(){if(this.w.globals.axisCharts){let e=this.renderGrid();return this.drawGridArea(e.el),e}return null}createGridMask(){let t=this.w,e=t.globals,s=new B(this.w),i=Array.isArray(t.config.stroke.width)?Math.max(...t.config.stroke.width):t.config.stroke.width,a=h=>{let d=O.createElementNS(et,"clipPath");return d.setAttribute("id",h),d};t.dom.elGridRectMask=a(`gridRectMask${e.cuid}`),t.dom.elGridRectBarMask=a(`gridRectBarMask${e.cuid}`),t.dom.elGridRectMarkerMask=a(`gridRectMarkerMask${e.cuid}`),t.dom.elForecastMask=a(`forecastMask${e.cuid}`),t.dom.elNonForecastMask=a(`nonForecastMask${e.cuid}`);let n=["bar","rangeBar","candlestick","boxPlot","violin"].includes(t.config.chart.type)||t.globals.comboBarCount>0,r=0,o=0;n&&t.axisFlags.isXNumeric&&!t.globals.isBarHorizontal&&(r=Math.max(t.layout.gridPad.left,e.barPadForNumericAxis),o=Math.max(t.layout.gridPad.right,e.barPadForNumericAxis)),t.dom.elGridRect=s.drawRect(-i/2-2,-i/2-2,t.layout.gridWidth+i+4,t.layout.gridHeight+i+4,0,"#fff"),t.dom.elGridRectBar=s.drawRect(-i/2-r-2,-i/2-2,t.layout.gridWidth+i+o+r+4,t.layout.gridHeight+i+4,0,"#fff");let l=t.globals.markers.largestSize;t.dom.elGridRectMarker=s.drawRect(Math.min(-i/2-r-2,-l),-l,t.layout.gridWidth+Math.max(i+o+r+4,l*2),t.layout.gridHeight+l*2,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);let c=t.dom.elDefs.node;c.appendChild(t.dom.elGridRectMask),c.appendChild(t.dom.elGridRectBarMask),c.appendChild(t.dom.elGridRectMarkerMask),c.appendChild(t.dom.elForecastMask),c.appendChild(t.dom.elNonForecastMask)}_drawGridLines({i:t,x1:e,y1:s,x2:i,y2:a,xCount:n,parent:r}){let o=this.w;if(!(t===0&&o.globals.skipFirstTimelinelabel||t===n-1&&o.globals.skipLastTimelinelabel&&!o.config.xaxis.labels.formatter||o.config.chart.type==="radar")){o.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:e,y1:s,x2:i,y2:a,xCount:n,parent:r});let c=0;if(o.labelData.hasXaxisGroups&&o.config.xaxis.tickPlacement==="between"){let d=o.labelData.groups;if(d){let f=0;for(let g=0;f{for(let d=0;di.layout.gridWidth)&&this._drawGridLines({i:d,x1:o,y1:l,x2:c,y2:h,xCount:t,parent:this.elgridLinesV})},n=({xC:r,x1:o,y1:l,x2:c,y2:h})=>{for(let d=0;d0&&i.config.xaxis.type!=="datetime"&&(l=a.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:l,tickAmount:o})):(l=o,o=a.xTickAmount,this._drawInvertedXYLines({xCount:l,tickAmount:o})),this.drawGridBands(l,o),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.layout.gridWidth/l}}drawGridBands(t,e){var s,i,a,n,r;let o=this.w,l=(c,h,d,f,g,p)=>{for(let m=0,b=0;m=o.config.grid[c].colors.length&&(b=0),this._drawGridBandRect({c:b,x1:d,y1:f,x2:g,y2:p,type:c}),f+=o.layout.gridHeight/e};if(((s=o.config.grid.row.colors)==null?void 0:s.length)>0&&l("row",e,0,0,o.layout.gridWidth,o.layout.gridHeight/e),((i=o.config.grid.column.colors)==null?void 0:i.length)>0){let c=!o.globals.isBarHorizontal&&o.config.xaxis.tickPlacement==="on"&&(o.config.xaxis.type==="category"||o.config.xaxis.convertedCatToNumeric)?t-1:t;o.axisFlags.isXNumeric&&(c=((n=(a=o.globals.xAxisScale)==null?void 0:a.result.length)!=null?n:1)-1);let h=o.globals.padHorizontal,d=0,f=o.globals.padHorizontal+o.layout.gridWidth/c,g=o.layout.gridHeight;for(let p=0,m=0;p=o.config.grid.column.colors.length&&(m=0),o.config.xaxis.type==="datetime"&&(h=this.xaxisLabels[p].position,f=(((r=this.xaxisLabels[p+1])==null?void 0:r.position)||o.layout.gridWidth)-this.xaxisLabels[p].position),this._drawGridBandRect({c:m,x1:h,y1:d,x2:f,y2:g,type:"column"}),h+=o.layout.gridWidth/c}}},us=class{constructor(t){this.w=t,this.coreUtils=new lt(this.w)}niceScale(t,e,s=0){let a=this.w,n=a.globals,r,o,l,c;n.isBarHorizontal?(r=a.config.xaxis,o=Math.max((n.svgWidth-100)/25,2)):(r=a.config.yaxis[s],o=Math.max((n.svgHeight-100)/15,2)),T.isNumber(o)||(o=10),l=r.min!==void 0&&r.min!==null,c=r.max!==void 0&&r.max!==null;let h=r.stepSize!==void 0&&r.stepSize!==null,d=r.tickAmount!==void 0&&r.tickAmount!==null,f=d?r.tickAmount:di[Math.min(Math.round(o/2),di.length-1)];if(n.isMultipleYAxis&&!d&&n.multiAxisTickAmount>0&&(f=n.multiAxisTickAmount,d=!0),f==="dataPoints"?f=n.dataPoints-1:f=Math.abs(Math.round(f)),(t===Number.MIN_VALUE&&e===0||!T.isNumber(t)&&!T.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=T.isNumber(r.min)?r.min:0,e=T.isNumber(r.max)?r.max:t+f,n.allSeriesCollapsed=!1),t>e){console.warn("axis.min cannot be greater than axis.max: swapping min and max");let L=e;e=t,t=L}else t===e&&(t=t===0?0:t-1,e=e===0?2:e+1);let g=[];f<1&&(f=1);let p=f,m=Math.abs(e-t),b=.15;!l&&t>0&&t/m0&&to&&(t=e-x*f,t+=x*Math.floor((L-t)/x))}else if(l)if(d)e=t+x*p;else{let L=e;e=x*Math.ceil(e/x),Math.abs(e-t)/T.getGCD(m,x)>o&&(e=t+x*f,e+=x*Math.ceil((L-e)/x))}m=Math.abs(e-t),x=T.getGCD(m,x),p=Math.round(m/x)}if(!d&&!(l||c)&&(p=Math.ceil((m-1e-11)/(x+1e-11)),p>16&&T.getPrimeFactors(p).length<2&&p++),!d&&r.forceNiceScale&&n.yValueDecimal===0&&p>m&&(p=m,x=Math.round(m/p)),p>o&&(!(d||h)||r.forceNiceScale)){let L=T.getPrimeFactors(p),E=L.length-1,D=p;t:for(var A=0;Ak);return{result:g,niceMin:g[0],niceMax:g[g.length-1]}}linearScale(t,e,s=10,i=0,a=void 0){let n=Math.abs(e-t),r=[];if(t===e)return r=[t],{result:r,niceMin:r[0],niceMax:r[r.length-1]};s=this._adjustTicksForSmallRange(s,i,n),s==="dataPoints"&&(s=this.w.globals.dataPoints-1);let o=s;a||(a=n/o);let l=2;if(a!==0&&isFinite(a)){let d=Math.floor(Math.log10(Math.abs(a))),f=Math.max(l,-d+l),g=Math.pow(10,f);a=Math.round((a+Number.EPSILON)*g)/g}let c=s===Number.MAX_VALUE?5:o;s===Number.MAX_VALUE&&(a=1);let h=t;for(;c>=0;)r.push(h),h=T.preciseAddition(h,a),c-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}logarithmicScaleNice(t,e,s){e<=0&&(e=Math.max(t,s)),t<=0&&(t=Math.min(e,s));let i=[],a=Math.ceil(Math.log(e)/Math.log(s)+1),n=Math.floor(Math.log(t)/Math.log(s));for(let r=n;r"u"&&(i.yAxisScale[t]=[]);let r=Math.abs(s-e);n.logarithmic&&r<=5&&(i.invalidLogScale=!0),n.logarithmic&&r>5?(i.allSeriesCollapsed=!1,i.yAxisScale[t]=n.forceNiceScale?this.logarithmicScaleNice(e,s,n.logBase):this.logarithmicScale(e,s,n.logBase)):s===-Number.MAX_VALUE||!T.isNumber(s)||e===Number.MAX_VALUE||!T.isNumber(e)?i.yAxisScale[t]=this.niceScale(Number.MIN_VALUE,0,t):(i.allSeriesCollapsed=!1,i.yAxisScale[t]=this.niceScale(e,s,t))}setXScale(t,e){let s=this.w,i=s.globals;if(e===-Number.MAX_VALUE||!T.isNumber(e))i.xAxisScale=this.linearScale(0,10,10);else{let a=i.xTickAmount;i.xAxisScale=this.linearScale(t,e,a,0,s.config.xaxis.max===void 0?s.config.xaxis.stepSize:void 0)}return i.xAxisScale}scaleMultipleYAxes(){let t=this.w.config,e=this.w.globals;this.coreUtils.setSeriesYAxisMappings();let s=e.seriesYAxisMap,i=e.minYArr,a=e.maxYArr,n=[],r=!e.isBarHorizontal;if(e.allSeriesCollapsed=!0,e.barGroups=[],s.forEach((o,l)=>{let c=[];if(o.forEach(h=>{var d;let f=(d=t.series[h])==null?void 0:d.group;c.indexOf(f)<0&&c.push(f)}),o.length>0){let h=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=h,g=d,p,m;if(t.chart.stacked){let _=new Array(e.dataPoints).fill(0),w=[],y=[],v=[];c.forEach(()=>{w.push(_.map(()=>Number.MIN_VALUE)),y.push(_.map(()=>Number.MIN_VALUE)),v.push(_.map(()=>Number.MIN_VALUE))});for(let A=0;A{if(t.series[S].group===M)for(let L=0;L=0?y[k][L]+=E:v[k][L]+=E,w[k][L]+=E,f=Math.min(f,E),g=Math.max(g,E)}})),(p==="bar"||p==="column")&&e.barGroups.push(m)}p||(p=t.chart.type),p==="bar"||p==="column"?c.forEach((A,S)=>{h=Math.min(h,Math.min.apply(null,v[S])),d=Math.max(d,Math.max.apply(null,y[S]))}):(c.forEach((A,S)=>{f=Math.min(f,Math.min.apply(null,w[S])),g=Math.max(g,Math.max.apply(null,w[S]))}),h=f,d=g),h===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}else for(let _=0;_y.indexOf(_)===w);let b=t.yaxis[l];r&&b.alignZero===!0&&!b.logarithmic&&b.min===void 0&&b.max===void 0&&e.ignoreYAxisIndexes.indexOf(l)<0&&T.isNumber(h)&&T.isNumber(d)?n.push({ai:l,minY:h,maxY:d}):(this.setYScaleForIndex(l,h,d),o.forEach(_=>{i[_]=e.yAxisScale[l].niceMin,a[_]=e.yAxisScale[l].niceMax}))}else this.setYScaleForIndex(l,0,-Number.MAX_VALUE)}),n.length>=2){n.forEach(c=>{this.setYScaleForIndex(c.ai,c.minY,c.maxY),s[c.ai].forEach(h=>{i[h]=e.yAxisScale[c.ai].niceMin,a[h]=e.yAxisScale[c.ai].niceMax})});let o=0;n.forEach(c=>{let h=e.yAxisScale[c.ai],d=h.niceMax-h.niceMin;if(d>0){let f=-h.niceMin/d;f>o&&(o=f)}}),o>1&&(o=1),o<0&&(o=0);let l=c=>{if(c<=0)return 1;let h=Math.floor(Math.log10(c)),d=Math.pow(10,h),f=c/d,g;return f<=1+1e-9?g=1:f<=2+1e-9?g=2:f<=2.5+1e-9?g=2.5:f<=5+1e-9?g=5:g=10,g*d};n.forEach(c=>{let h=e.yAxisScale[c.ai];if(!h.result||h.result.length<2)return;let d=h.niceMax-h.niceMin;if(d<=0)return;let f=-h.niceMin/d;if(Math.abs(f-o)<=1e-9)return;let g=fo&&o>1e-9;if(!g&&!p)return;let m=g?-o*h.niceMax/(1-o):h.niceMin,b=p?-h.niceMin*(1-o)/o:h.niceMax,x=b-m;if(x<=0)return;let _=Math.max(h.result.length,5),w=l(x/Math.max(_-1,1));if(w<=0)return;let y,v;if(g){y=Math.floor(m/w+1e-9)*w;let A=o>1e-9?y*(o-1)/o:h.niceMax,S=Math.max(A,h.niceMax);v=Math.ceil(S/w-1e-9)*w}else{v=Math.ceil(b/w-1e-9)*w;let A=o<1-1e-9?-o*v/(1-o):h.niceMin,S=Math.min(A,h.niceMin);y=Math.floor(S/w+1e-9)*w}h.result=[];for(let A=y;A<=v+w*1e-9;A=T.preciseAddition(A,w))h.result.push(T.stripNumber(A,7));h.niceMin=y,h.niceMax=v,s[c.ai].forEach(A=>{i[A]=h.niceMin,a[A]=h.niceMax})})}else if(n.length===1){let o=n[0];this.setYScaleForIndex(o.ai,o.minY,o.maxY),s[o.ai].forEach(l=>{i[l]=e.yAxisScale[o.ai].niceMin,a[l]=e.yAxisScale[o.ai].niceMax})}}},Oe=class{constructor(t){this.w=t,this.scales=new us(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}_xPixelTolerance(t){let e=this.w.layout.gridWidth;if(!e||!t||!t.length)return 0;let s=this.w.config.xaxis,i=typeof s.min=="number"?s.min:t[0],a=typeof s.max=="number"?s.max:t[t.length-1];return a>i?(a-i)/e:0}getMinYMaxY(t,e=Number.MAX_VALUE,s=-Number.MAX_VALUE,i=null){var a,n,r,o,l,c,h,d,f;let g=this.w.config,p=this.w.globals,m=-Number.MAX_VALUE,b=Number.MIN_VALUE;i===null&&(i=t+1);let x=this.w.seriesData.series,_=x,w=x;g.chart.type==="candlestick"?(_=this.w.candleData.seriesCandleL,w=this.w.candleData.seriesCandleH):g.chart.type==="boxPlot"?(_=this.w.candleData.seriesCandleO,w=this.w.candleData.seriesCandleC):g.chart.type==="violin"?(_=this.w.violinData.seriesViolinMin,w=this.w.violinData.seriesViolinMax):this.w.axisFlags.isRangeData&&(_=this.w.rangeData.seriesRangeStart,w=this.w.rangeData.seriesRangeEnd);let y=!1;if(this.w.seriesData.seriesX.length>=i){let v=(a=p.brushSource)==null?void 0:a.w.config.chart.brush;(g.chart.zoom.enabled&&g.chart.zoom.autoScaleYaxis||v?.enabled&&v?.autoScaleYaxis)&&(y=!0)}for(let v=t;vtypeof k<"u").length),this.w.labelData.labels.length&&g.xaxis.type!=="datetime"&&this.w.seriesData.series.reduce((k,L)=>k+L.length,0)!==0&&(p.dataPoints=Math.max(p.dataPoints,this.w.labelData.labels.length));let S=0,C=x[v].length-1;if(y){let k=this._xPixelTolerance(this.w.seriesData.seriesX[v]);if(g.xaxis.min){let L=g.xaxis.min-k;for(;SS&&this.w.seriesData.seriesX[v][C]>L;C--);}}if(_===x&&w===x&&g.chart.type!=="boxPlot"&&A!=="candlestick"&&A!=="boxPlot"&&A!=="violin"&&A!=="rangeArea"&&A!=="rangeBar"&&!(this.w.seriesData.seriesGoals[v]&&this.w.seriesData.seriesGoals[v].length)){let k=x[v],L=Math.min(C,k.length-1),E=(n=this.w.seriesData._parsedExtrema)==null?void 0:n[v];if(E&&E.ref===k&&E.len===k.length&&S===0&&L===k.length-1)E.maxY>m&&(m=E.maxY),E.lowestYp.yValueDecimal&&(p.yValueDecimal=E.yDec),E.hasNulls&&(p.hasNullValues=!0);else{let D=p.yValueDecimal,P=!1;for(let F=S;F<=L;F++){let R=k[F];if(R!==null&&typeof R=="number"&&R===R&&R!==1/0&&R!==-1/0){if(R>m&&(m=R),RR&&R<0&&(b=R),!Number.isInteger(R)){let N=R<0?-R:R;if(N>=1e-6&&N<1e21){let z=""+R,$=z.indexOf("."),W=$===-1?0:z.length-$-1;W>D&&(D=W)}else{let z=T.noExponents(R);T.isFloat(z)&&(D=Math.max(D,z.toString().split(".")[1].length))}}}else P=!0}p.yValueDecimal=D,P&&(p.hasNullValues=!0)}s=m,(A==="bar"||A==="column")&&(b<0&&m<0&&(m=0,s=Math.max(s,0)),b===Number.MIN_VALUE&&(b=0,e=Math.min(e,0)));continue}for(let k=S;k<=C&&k{m=Math.max(m,E.value),e=Math.min(e,E.value)}),this.w.config.chart.type==="boxPlot"||A==="boxPlot"){let E=(h=(c=this.w.candleData.seriesBoxPoints)==null?void 0:c[v])==null?void 0:h[k];if(E)for(let D=0;D((d=_[v])==null?void 0:d[k])&&((f=_[v])==null?void 0:f[k])<0&&(b=_[v][k])}else p.hasNullValues=!0}(A==="bar"||A==="column")&&(b<0&&m<0&&(m=0,s=Math.max(s,0)),b===Number.MIN_VALUE&&(b=0,e=Math.min(e,0)))}return g.chart.type==="rangeBar"&&this.w.rangeData.seriesRangeStart.length&&p.isBarHorizontal&&(b=e),g.chart.type==="bar"&&(b<0&&m<0&&(m=0),b===Number.MIN_VALUE&&(b=0)),{minY:b,maxY:m,lowestY:e,highestY:s}}setYRange(){let t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;let s=Number.MAX_VALUE,i;if(t.isMultipleYAxis){s=Number.MAX_VALUE;for(let a=0;a{a.max!==void 0&&(typeof a.max=="number"?t.maxYArr[n]=a.max:typeof a.max=="function"&&(t.maxYArr[n]=a.max(t.isMultipleYAxis?t.maxYArr[n]:t.maxY)),t.maxY=t.maxYArr[n]),a.min!==void 0&&(typeof a.min=="number"?t.minYArr[n]=a.min:typeof a.min=="function"&&(t.minYArr[n]=a.min(t.isMultipleYAxis?t.minYArr[n]===Number.MIN_VALUE?0:t.minYArr[n]:t.minY)),t.minY=t.minYArr[n])}),t.isBarHorizontal&&["min","max"].forEach(n=>{e.xaxis[n]!==void 0&&typeof e.xaxis[n]=="number"&&(n==="min"?t.minY=e.xaxis[n]:t.maxY=e.xaxis[n])}),t.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),t.minY=s):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.minY,t.maxYArr[0]=t.maxY),t.barGroups=[],t.lineGroups=[],t.areaGroups=[],e.series.forEach(a=>{let n=a;switch(n.type||e.chart.type){case"bar":case"column":t.barGroups.push(n.group);break;case"line":t.lineGroups.push(n.group);break;case"area":t.areaGroups.push(n.group);break}}),t.barGroups=t.barGroups.filter((a,n,r)=>r.indexOf(a)===n),t.lineGroups=t.lineGroups.filter((a,n,r)=>r.indexOf(a)===n),t.areaGroups=t.areaGroups.filter((a,n,r)=>r.indexOf(a)===n),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}setXRange(){let t=this.w.globals,e=this.w.config,s=e.xaxis.type==="numeric"||e.xaxis.type==="datetime"||e.xaxis.type==="category"&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric,i=()=>{var a;let n=t.minX,r=t.maxX;for(let o=0;or&&(r=c.maxX),c.minXr&&(r=d),dt.dataPoints&&t.dataPoints!==0&&(a=t.dataPoints-1);else if(e.xaxis.tickAmount==="dataPoints"){if(this.w.seriesData.series.length>1&&(a=this.w.seriesData.series[t.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){let n=Math.round(t.maxX-t.minX);n<30&&(a=n)}}else a=e.xaxis.tickAmount;if(t.xTickAmount=a,e.xaxis.max!==void 0&&typeof e.xaxis.max=="number"&&(t.maxX=e.xaxis.max),e.xaxis.min!==void 0&&typeof e.xaxis.min=="number"&&(t.minX=e.xaxis.min),e.xaxis.range!==void 0&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!this.w.axisFlags.dataFormatXNumeric){let n=[];for(let r=t.minX-1;r0&&(t.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,a-1,0,e.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());s&&(this.w.labelData.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&this.w.labelData.labels.length&&(t.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}setZRange(){let t=this.w.globals;if(this.w.axisFlags.isDataXYZ){for(let e=0;e{var i;if(e.length){e.length===1&&e.push(this.w.seriesData.seriesX[t.maxValsInArrayIndex][this.w.seriesData.seriesX[t.maxValsInArrayIndex].length-1]);let a=(i=this.w.seriesData._parsedExtrema)==null?void 0:i[s];if(a&&a.xNumeric&&a.xSorted&&a.xref===e&&a.len===e.length){a.minXDiff0)cl-c),o.forEach((l,c)=>{if(c>0){let h=l-o[c-1];h>0&&(t.minXDiff=Math.min(h,t.minXDiff))}}),(t.dataPoints===1||t.minXDiff===Number.MAX_VALUE)&&(t.minXDiff=.5)}})}_setStackedMinMax(){let t=this.w.globals;if(!this.w.seriesData.series.length)return;let e=this.w.labelData.seriesGroups;e.length||(e=[this.w.seriesData.seriesNames.map(a=>a)]);let s={},i={};e.forEach(a=>{s[a]=[],i[a]=[],this.w.config.series.map((r,o)=>a.indexOf(this.w.seriesData.seriesNames[o])>-1?o:null).filter(r=>r!==null).forEach(r=>{var o,l,c,h;for(let d=0;d"u"&&(s[a][d]=0,i[a][d]=0),(this.w.config.chart.stacked&&!t.comboCharts||this.w.config.chart.stacked&&t.comboCharts&&(!this.w.config.chart.stackOnlyBar||((l=(o=this.w.config.series)==null?void 0:o[r])==null?void 0:l.type)==="bar"||((h=(c=this.w.config.series)==null?void 0:c[r])==null?void 0:h.type)==="column"))&&this.w.seriesData.series[r][d]!==null&&T.isNumber(this.w.seriesData.series[r][d])&&(this.w.seriesData.series[r][d]>0?s[a][d]+=parseFloat(String(this.w.seriesData.series[r][d]))+1e-4:i[a][d]+=parseFloat(String(this.w.seriesData.series[r][d])))})}),Object.entries(s).forEach(([a])=>{s[a].forEach((n,r)=>{t.maxY=Math.max(t.maxY,s[a][r]),t.minY=Math.min(t.minY,i[a][r])})})}};function mi(){return{palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}var be=class{constructor(t,{theme:e=null,timeScale:s=null}={},i){this.w=t,this.elgrid=i,this.xaxisFontSize=t.config.xaxis.labels.style.fontSize,this.axisFontFamily=t.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=t.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=t.config.chart.type==="bar"&&t.config.plotOptions.bar.horizontal,this.xAxisoffX=t.config.xaxis.position==="bottom"?t.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Ct(t,{theme:e,timeScale:s})}drawYaxis(t){let e=this.w,s=new B(this.w),i=e.config.yaxis[t].labels.style,{fontSize:a,fontFamily:n,fontWeight:r}=i,o=s.group({class:"apexcharts-yaxis",rel:t,transform:`translate(${e.globals.translateYAxisX[t]}, 0)`});if(this.axesUtils.isYAxisHidden(t))return o;let l=s.group({class:"apexcharts-yaxis-texts-g"});o.add(l);let c=e.globals.yAxisScale[t].result.length-1,h=e.layout.gridHeight/c,d=e.formatters.yLabelFormatters[t],f=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice()),g=1;if(e.config.chart.type==="heatmap"&&!e.config.yaxis[t].labels.formatter){let p=parseInt(a,10)||11,m=Math.max(1,Math.floor(e.layout.gridHeight/(p*1.4))),b=c+1;b>m&&(g=Math.ceil(b/m))}if(e.config.yaxis[t].labels.show){let p=e.layout.translateY+e.config.yaxis[t].labels.offsetY;e.globals.isBarHorizontal?p=0:e.config.chart.type==="heatmap"&&(p-=h/2),p+=parseInt(a,10)/3;let m=null;for(let b=c;b>=0;b--){let _=g>1&&b%g!==0?"":d(f[b],b,e),w=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&e.config.yaxis.length!==0&&(w*=-1);let y=this.getTextAnchor(e.config.yaxis[t].labels.align,e.config.yaxis[t].opposite),v=this.axesUtils.getYAxisForeColor(i.colors,t),A=Array.isArray(v)?v[b]:v,S=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-label tspan`)).map(M=>M.textContent),C=s.drawText({x:w,y:p,text:S.includes(_)&&!e.config.yaxis[t].labels.showDuplicates?"":_,textAnchor:y,fontSize:a,fontFamily:n,fontWeight:r,maxWidth:e.config.yaxis[t].labels.maxWidth,foreColor:A,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${i.cssClass}`});l.add(C),this.addTooltip(C,_),m===null&&(m=C),e.config.yaxis[t].labels.rotate!==0&&this.rotateLabel(s,C,m,e.config.yaxis[t].labels.rotate),p+=h}}return this.addYAxisTitle(s,o,t),this.addAxisBorder(s,o,t,c,h),o}getTextAnchor(t,e){return t==="left"?"start":t==="center"?"middle":t==="right"?"end":e?"start":"end"}addTooltip(t,e){let s=O.createElementNS(et,"title");s.textContent=Array.isArray(e)?e.join(" "):e,t.node.appendChild(s)}rotateLabel(t,e,s,i){let a=t.rotateAroundCenter(s.node),n=t.rotateAroundCenter(e.node);e.node.setAttribute("transform",`rotate(${i} ${a.x} ${n.y})`)}addYAxisTitle(t,e,s){let i=this.w;if(i.config.yaxis[s].title.text!==void 0){let a=t.group({class:"apexcharts-yaxis-title"}),n=i.config.yaxis[s].opposite?i.globals.translateYAxisX[s]:0,r=t.drawText({x:n,y:i.layout.gridHeight/2+i.layout.translateY+i.config.yaxis[s].title.offsetY,text:i.config.yaxis[s].title.text,textAnchor:"end",foreColor:i.config.yaxis[s].title.style.color,fontSize:i.config.yaxis[s].title.style.fontSize,fontWeight:i.config.yaxis[s].title.style.fontWeight,fontFamily:i.config.yaxis[s].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text ${i.config.yaxis[s].title.style.cssClass}`});a.add(r),e.add(a)}}addAxisBorder(t,e,s,i,a){let n=this.w,r=n.config.yaxis[s].axisBorder,o=31+r.offsetX;if(n.config.yaxis[s].opposite&&(o=-31-r.offsetX),r.show){let l=t.drawLine(o,n.layout.translateY+r.offsetY-2,o,n.layout.gridHeight+n.layout.translateY+r.offsetY+2,r.color,0,r.width);e.add(l)}n.config.yaxis[s].axisTicks.show&&this.axesUtils.drawYAxisTicks(o,i,r,n.config.yaxis[s].axisTicks,s,a,e)}drawYaxisInversed(t){let e=this.w,s=new B(this.w),i=s.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=s.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});i.add(a);let n=e.globals.yAxisScale[t].result.length-1,r=e.layout.gridWidth/n+.1,o=r+e.config.xaxis.labels.offsetX,l=e.formatters.xLabelFormatter,c=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice()),h=e.labelData.timescaleLabels;if(h.length>0&&(this.xaxisLabels=h.slice(),c=h.slice(),n=c.length),e.config.xaxis.labels.show)for(let d=h.length?0:n;h.length?d=0;h.length?d++:d--){let f=l?.(c[d],d,e),g=e.layout.gridWidth+e.globals.padHorizontal-(o-r+e.config.xaxis.labels.offsetX);if(h.length){let m=this.axesUtils.getLabel(c,h,g,d,this.drawnLabels,this.xaxisFontSize);g=m.x,f=m.text,this.drawnLabels.push(m.text),d===0&&e.globals.skipFirstTimelinelabel&&(f=""),d===c.length-1&&e.globals.skipLastTimelinelabel&&(f="")}let p=s.drawText({x:g,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-(e.config.xaxis.position==="top"?e.layout.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:f,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-xaxis-label ${e.config.xaxis.labels.style.cssClass}`});a.add(p),this.addTooltip(p,f),o+=r}return this.inversedYAxisTitleText(i),this.inversedYAxisBorder(i),i}inversedYAxisBorder(t){let e=this.w,s=new B(this.w),i=e.config.xaxis.axisBorder;if(i.show){let a=0;e.config.chart.type==="bar"&&e.axisFlags.isXNumeric&&(a-=15);let n=s.drawLine(e.globals.padHorizontal+a+i.offsetX,this.xAxisoffX,e.layout.gridWidth,this.xAxisoffX,i.color,0,i.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(n):t.add(n)}}inversedYAxisTitleText(t){let e=this.w,s=new B(this.w);if(e.config.xaxis.title.text!==void 0){let i=s.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=s.drawText({x:e.layout.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:`apexcharts-xaxis-title-text ${e.config.xaxis.title.style.cssClass}`});i.add(a),t.add(i)}}yAxisTitleRotate(t,e){let s=this.w,i=new B(this.w),a=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-texts-g`),n=a?a.getBoundingClientRect():{width:0,height:0},r=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-title text`),o=r?r.getBoundingClientRect():{width:0,height:0};if(r){let l=this.xPaddingForYAxisTitle(t,n,o,e);r.setAttribute("x",String(l.xPos-(e?10:0)));let c=i.rotateAroundCenter(r);r.setAttribute("transform",`rotate(${e?s.config.yaxis[t].title.rotate*-1:s.config.yaxis[t].title.rotate} ${c.x} ${c.y})`)}}xPaddingForYAxisTitle(t,e,s,i){let a=this.w,n=0,r=10;return a.config.yaxis[t].title.text===void 0||t<0?{xPos:n,padd:0}:(i?n=e.width+a.config.yaxis[t].title.offsetX+s.width/2+r/2:(n=e.width*-1+a.config.yaxis[t].title.offsetX+r/2+s.width/2,a.globals.isBarHorizontal&&(r=25,n=e.width*-1-a.config.yaxis[t].title.offsetX-r)),{xPos:n,padd:r})}setYAxisXPosition(t,e){let s=this.w,i=0,a=0,n=18,r=1;s.config.yaxis.length>1&&(this.multipleYs=!0),s.config.yaxis.forEach((o,l)=>{let c=s.globals.ignoreYAxisIndexes.includes(l)||!o.show||o.floating||t[l].width===0,h=t[l].width+e[l].width;o.opposite?s.globals.isBarHorizontal?(a=s.layout.gridWidth+s.layout.translateX-1,s.globals.translateYAxisX[l]=a-o.labels.offsetX):(a=s.layout.gridWidth+s.layout.translateX+r,c||(r+=h+20),s.globals.translateYAxisX[l]=a-o.labels.offsetX+20):(i=s.layout.translateX-n,c||(n+=h+20),s.globals.translateYAxisX[l]=i+o.labels.offsetX)})}setYAxisTextAlignments(){let t=this.w;Array.from(t.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((s,i)=>{let a=t.config.yaxis[i];if(a&&!a.floating&&a.labels.align!==void 0){let n=t.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${i}'] .apexcharts-yaxis-texts-g`),r=Array.from(t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${i}'] .apexcharts-yaxis-label`)),o=n.getBoundingClientRect();r.forEach(l=>{l.setAttribute("text-anchor",a.labels.align)}),a.labels.align==="left"&&!a.opposite?n.setAttribute("transform",`translate(-${o.width}, 0)`):a.labels.align==="center"?n.setAttribute("transform",`translate(${o.width/2*(a.opposite?1:-1)}, 0)`):a.labels.align==="right"&&a.opposite&&n.setAttribute("transform",`translate(${o.width}, 0)`)}})}},xi=class{constructor(t,e){this.w=t,this.ctx=e,this.documentEvent=this.documentEvent.bind(this)}addEventListener(t,e){let s=this.w;Object.prototype.hasOwnProperty.call(s.globals.events,t)?s.globals.events[t].push(e):s.globals.events[t]=[e]}removeEventListener(t,e){let s=this.w;if(!Object.prototype.hasOwnProperty.call(s.globals.events,t))return;let i=s.globals.events[t].indexOf(e);i!==-1&&s.globals.events[t].splice(i,1)}fireEvent(t,e){let s=this.w;if(!Object.prototype.hasOwnProperty.call(s.globals.events,t))return;(!e||!e.length)&&(e=[]);let i=s.globals.events[t],a=i.length;for(let n=0;n{s?.addEventListener(i,a=>{let n=a.target.getAttribute("i")===null&&t.interact.capturedSeriesIndex!==-1?t.interact.capturedSeriesIndex:a.target.getAttribute("i"),r=a.target.getAttribute("j")===null&&t.interact.capturedDataPointIndex!==-1?t.interact.capturedDataPointIndex:a.target.getAttribute("j"),o=Object.assign({},t,{seriesIndex:t.globals.axisCharts?n:0,dataPointIndex:r});a.type==="keydown"?t.config.chart.accessibility.enabled&&t.config.chart.accessibility.keyboard.enabled&&(e.ctx.keyboardNavigation&&e.ctx.keyboardNavigation.handleKey(a),typeof t.config.chart.events.keyDown=="function"&&t.config.chart.events.keyDown(a,e,o),e.ctx.events.fireEvent("keydown",[a,e,o])):a.type==="keyup"?t.config.chart.accessibility.enabled&&t.config.chart.accessibility.keyboard.enabled&&(typeof t.config.chart.events.keyUp=="function"&&t.config.chart.events.keyUp(a,e,o),e.ctx.events.fireEvent("keyup",[a,e,o])):a.type==="mousemove"||a.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(a,e,o):a.type==="mouseleave"||a.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(a,e,o):(a.type==="mouseup"&&a.which===1||a.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(a,e,o),e.ctx.events.fireEvent("click",[a,e,o]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(i=>{t.dom.baseEl.addEventListener(i,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(t){let e=this.w,s=t.target.className;if(t.type==="click"){let i=e.dom.baseEl.querySelector(".apexcharts-menu");i&&i.classList.contains("apexcharts-menu-open")&&s!=="apexcharts-menu-icon"&&i.classList.remove("apexcharts-menu-open")}e.interact.clientX=t.type==="touchmove"?t.touches[0].clientX:t.clientX,e.interact.clientY=t.type==="touchmove"?t.touches[0].clientY:t.clientY}},bi=class{constructor(t){this.w=t}setCurrentLocaleValues(t){let e=this.w.config.chart.locales,s=H.getApex();s.chart&&s.chart.locales&&s.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(s.chart.locales));let i=e.filter(a=>a.name===t)[0];if(i){let a=T.extend(Ar,i);this.w.globals.locale=a.options}else throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options")}},yi=class{constructor(t,e){this.w=t,this.ctx=e}drawAxis(t,e){let s=this.w.globals,i=this.w.config,a=new Wt(this.w,this.ctx,e),n=new be(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},e);if(s.axisCharts&&t!=="radar"){let r,o;s.isBarHorizontal?(o=n.drawYaxisInversed(0),r=a.drawXaxisInversed(0),this.w.dom.elGraphical.add(r),this.w.dom.elGraphical.add(o)):(r=a.drawXaxis(),this.w.dom.elGraphical.add(r),i.yaxis.map((l,c)=>{if(s.ignoreYAxisIndexes.indexOf(c)===-1&&(o=n.drawYaxis(c),this.w.dom.Paper.add(o),this.w.config.grid.position==="back")){let h=this.w.dom.Paper.children()[1];h&&(h.remove(),this.w.dom.Paper.add(h))}}))}}},Be=class{constructor(t){this.w=t}drawXCrosshairs(){let t=this.w;t.dom.elGraphical.node.querySelectorAll(":scope > .apexcharts-xcrosshairs").forEach(w=>w.remove());let e=new B(this.w),s=new at(this.w),i=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,n=t.config.xaxis.crosshairs.fill.type,r=i.colorFrom,o=i.colorTo,l=i.opacityFrom,c=i.opacityTo,h=i.stops,d="none",f=a.enabled,g=a.left,p=a.top,m=a.blur,b=a.color,x=a.opacity,_=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){n==="gradient"&&(_=e.drawGradient("vertical",r,o,l,c,null,h,[]));let w=t.config.xaxis.crosshairs.width===1?e.drawLine(0,0,0,0):e.drawRect(),y=t.layout.gridHeight;(!T.isNumber(y)||y<0)&&(y=0);let v=t.config.xaxis.crosshairs.width;(!T.isNumber(v)||Number(v)<0)&&(v=0),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:y,width:v,height:y,fill:_,filter:d,"fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),f&&(w=s.dropShadow(w,{left:g,top:p,blur:m,color:b,opacity:x})),t.dom.elGraphical.add(w)}}drawYCrosshairs(){let t=this.w;t.dom.elGraphical.node.querySelectorAll(":scope > .apexcharts-ycrosshairs, :scope > .apexcharts-ycrosshairs-hidden").forEach(n=>n.remove());let e=new B(this.w),s=t.config.yaxis[0].crosshairs,i=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){let n=e.drawLine(-i,0,t.layout.gridWidth+i,0,s.stroke.color,s.stroke.dashArray,s.stroke.width);n.attr({class:"apexcharts-ycrosshairs"}),t.dom.elGraphical.add(n)}let a=e.drawLine(-i,0,t.layout.gridWidth+i,0,s.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),t.dom.elGraphical.add(a)}};function Dr(u,t){if(!T.isObject(u)||!T.isObject(t))return t!==void 0?t:u;let e=G({},u);for(let s of Object.keys(t)){let i=t[s];i!==void 0&&(T.isObject(i)&&T.isObject(u[s])?e[s]=Dr(u[s],i):e[s]=i)}return e}var wi=class{constructor(t){this.w=t,this._activeBreakpoint=null}checkResponsiveConfig(t){let e=this.w,s=e.config;if(s.responsive.length===0)return;let i=s.responsive.slice();i.sort((r,o)=>r.breakpoint>o.breakpoint?1:o.breakpoint>r.breakpoint?-1:0).reverse();let a=new se({}),n=(r={})=>{var o;let l=i[0].breakpoint,c=H.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(c>l){if(this._activeBreakpoint!==null){if(!e.globals.initialConfig)return;let h=T.clone(e.globals.initialConfig);h.series=T.clone(e.config.series);let d=lt.extendArrayProps(a,h,e);r=T.extend(d,r),this.overrideResponsiveOptions(r),this._activeBreakpoint=null}}else for(let h=0;hDr(g,f[p]))})}this.overrideResponsiveOptions(r),this._activeBreakpoint=i[h].breakpoint}};if(t){let r=lt.extendArrayProps(a,t,e);r=T.extend(e.config,r),r=T.extend(r,t),n(r)}else n({})}overrideResponsiveOptions(t){let e=new se(t).init({responsiveOverride:!0});this.w.config=e}};function _l(u){var t,e,s;let i=u.globals;if(!i.axisCharts||!u.seriesData||!Array.isArray(u.seriesData.series)||u.seriesData.series.length===0){i.prevStreamFrame=null;return}let a=[];(e=(t=u.dom)==null?void 0:t.baseEl)!=null&&e.querySelectorAll&&u.dom.baseEl.querySelectorAll(".apexcharts-marker").forEach(n=>{var r,o,l,c,h;let d=parseInt((r=n.getAttribute("index"))!=null?r:"",10),f=parseInt((l=(o=n.getAttribute("j"))!=null?o:n.getAttribute("rel"))!=null?l:"",10),g=parseFloat((h=(c=n.getAttribute("r"))!=null?c:n.getAttribute("default-marker-size"))!=null?h:"");isFinite(d)&&isFinite(f)&&isFinite(g)&&((a[d]=a[d]||[])[f]=g)}),i.prevStreamFrame={seriesX:(u.seriesData.seriesX||[]).slice(),seriesY:u.seriesData.series.slice(),xPixels:(i.seriesXvalues||[]).slice(),yPixels:(i.seriesYvalues||[]).slice(),rPixels:a,labels:(i.labels||[]).slice(),isXNumeric:!!((s=u.axisFlags)!=null&&s.isXNumeric)}}function Al(u,t,e,s){var i;let a=u.globals,n=a.prevStreamFrame;if(!n||!a.dataChanged||!((i=u.axisFlags)!=null&&i.isXNumeric))return null;let r=n.seriesX[t],o=n.seriesY[t],l=u.seriesData.seriesX[t],c=u.seriesData.series[t];if(!r||!o||!l||!c||r.length<3||l.length<3)return null;let h=-1;for(let P=0;P.02||Math.abs(A)<.5)return null;let S=m,C=m;for(let P=m;P<=b;P++){let F=s[P];F==null||p[h+P]==null||(Fs[C]&&(C=P))}let M=1,k=0,L=s[S],E=s[C];if(Math.abs(E-L)>1e-6?(M=(p[h+C]-p[h+S])/(E-L),k=p[h+S]-M*L):k=p[h+S]-L,!isFinite(M)||!isFinite(k)||M<.2||M>5)return null;let D=Math.floor((m+b)/2);if(D!==m&&D!==b&&e[D]!=null&&g[h+D]!=null){let P=v*e[D]+A;if(Math.abs(P-g[h+D])>1.5)return null;if(s[D]!=null&&p[h+D]!=null){let F=M*s[D]+k;if(Math.abs(F-p[h+D])>1.5)return null}}return{ax:v,bx:A,ay:M,by:k}}var Sl=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function vn(u,t){let{ax:e,bx:s,ay:i,by:a}=t,n=[],r=/([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g,o;for(;(o=r.exec(u))!==null;){let l=o[1].toUpperCase(),c=(o[2].match(Sl)||[]).map(parseFloat);if(l==="Z"){n.push("z");continue}if(l==="H"){for(let d of c)n.push(`H ${e*d+s}`);continue}if(l==="V"){for(let d of c)n.push(`V ${i*d+a}`);continue}if(l==="A"){for(let d=0;d+6n==null?null:Array.isArray(n)?typeof n[0]=="number"?n[0]:null:typeof n=="object"&&typeof n.x=="number"?n.x:null;u.forEach(n=>{var r;let o=n?.data;if(!Array.isArray(o)||o.length<2)return;if(typeof s=="number"&&s>0){o.length>s&&(n.data=o.slice(o.length-s));return}if(!i)return;let l=a(o[o.length-1]),c=a(o[0]);if(l==null||c==null||l<=c)return;let h=(l-c)/(o.length-1),d=l-i-2*h,f=0;for(;f0&&(n.data=o.slice(f))})}function kl(u,t){let e=new Set(u.exits),s=[],i=0;for(let a=0;ao[0]==="C"?[Number(o[5]),Number(o[6])]:[Number(o[1]),Number(o[2])]);for(let o of r)if(!isFinite(o[0])||!isFinite(o[1]))return null;return{body:i,closing:a,segType:n,anchors:r}}function jt(u,t,e){return[u[0]+(t[0]-u[0])*e,u[1]+(t[1]-u[1])*e]}function Ml(u,t,e){let s=u,i=[t[1],t[2]],a=[t[3],t[4]],n=[t[5],t[6]],r=jt(s,i,e),o=jt(i,a,e),l=jt(a,n,e),c=jt(r,o,e),h=jt(o,l,e),d=jt(c,h,e);return{first:["C",r[0],r[1],c[0],c[1],d[0],d[1]],second:["C",h[0],h[1],l[0],l[1],n[0],n[1]],mid:d}}function Ll(u,t,e){let s=[t[1],t[2]],i=jt(u,s,e);return{first:["L",i[0],i[1]],second:["L",s[0],s[1]],mid:i}}function An(u,t){let{body:e,closing:s,segType:i,anchors:a}=u,n=a.length,r=t.length,o=d=>i==="C"?["C",d[0],d[1],d[0],d[1],d[0],d[1]]:["L",d[0],d[1]],l=[["M",a[0][0],a[0][1]]],c=0;for(;cl.push(d.slice())),l}function Sn(u,t,e,s,i,a){let n=_n(u,s,a);if(!n)return null;let r=_n(t,i,a);if(!r||n.segType!==r.segType||(n.closing||r.closing)&&(!n.closing||!r.closing||n.closing[0][0]!==r.closing[0][0]))return null;let o=e.map(c=>c.oldJ),l=e.map(c=>c.newJ);return{from:gi(An(n,o)),toInterp:gi(An(r,l))}}function te(u){var t;let e=u.config.chart.animations;if(!e||e.enabled===!1||!e.dynamicAnimation||e.dynamicAnimation.enabled===!1)return!1;let s=(t=e.largeDatasetThreshold)!=null?t:0;return s>0&&u.globals.dataPoints>s?!1:!!(H.isBrowser()&&u.globals.dataChanged&&u.globals.shouldAnimate)}function fe(u,t,e){var s,i,a,n;if((s=u.axisFlags)!=null&&s.isXNumeric){let o=(a=(i=u.seriesData)==null?void 0:i.seriesX)==null?void 0:a[t];if(o&&o.length&&o[e]!=null)return"x:"+o[e]}let r=(n=u.globals.labels)==null?void 0:n[e];return r!=null&&String(r)!==""?"c:"+(Array.isArray(r)?r.join(" "):String(r)):"j:"+e}function Dl(u,t,e){var s,i;if(u.isXNumeric){let n=(s=u.seriesX)==null?void 0:s[t];if(n&&n.length&&n[e]!=null)return"x:"+n[e]}let a=(i=u.labels)==null?void 0:i[e];return a!=null&&String(a)!==""?"c:"+(Array.isArray(a)?a.join(" "):String(a)):"j:"+e}function El(u,t){let e=new Map;u.forEach((l,c)=>{e.has(l)||e.set(l,c)});let s=new Array(t.length),i=new Set,a=-1,n=!0,r=u.length===t.length;t.forEach((l,c)=>{let h=e.has(l)&&!i.has(e.get(l))?e.get(l):-1;s[c]=h,h!==-1&&(i.add(h),h{let s=t.get(e)||0;return t.set(e,s+1),s===0?e:`${e}#${s}`})}function Ge(u,t,e=!1,s=!1){var i,a;if(!te(u))return null;let n=u.globals.prevStreamFrame;if(!n)return null;let r=(i=n.seriesY)==null?void 0:i[t],o=(a=u.seriesData.series)==null?void 0:a[t];if(!Array.isArray(r)||!Array.isArray(o)||!r.length||!o.length)return null;let l=Cn(r.map((d,f)=>Dl(n,t,f))),c=Cn(o.map((d,f)=>fe(u,t,f))),h=El(l,c);return!h.ordered&&!s||!h.changed&&!e?null:{join:h,oldKeys:l,newKeys:c}}function za(u){var t,e;let s=u.config.chart.animations;return hs((e=(t=s.dynamicAnimation)==null?void 0:t.easing)!=null?e:s.easing)}function Tt(u,t,e,s,i){let a=performance.now(),n=r=>{if(u.globals.isDestroyed)return;let o=Math.max(0,Math.min(1,(r-a)/t));s(e(o),o),o<1?O.requestAnimationFrame(n):i&&i()};O.requestAnimationFrame(n)}function kn(u,{elPointsMain:t,realIndex:e,speed:s}){var i,a,n,r;if(!t?.node)return!1;let o=Ge(u,e,!0);if(!o)return!1;let l=u.globals.prevStreamFrame;if(!l)return!1;let c=(i=l.xPixels)==null?void 0:i[e],h=(a=l.yPixels)==null?void 0:a[e];if(!c||!h)return!1;let d=t.node.querySelectorAll(".apexcharts-marker");if(!d.length)return!1;let f=((n=u.globals.seriesXvalues)==null?void 0:n[e])||[],g=((r=u.globals.seriesYvalues)==null?void 0:r[e])||[],p=za(u),m=Math.max(1,s||1);return t.node.classList.remove("apexcharts-element-hidden"),d.forEach(b=>{var x,_,w,y,v,A,S,C,M;let k=parseInt((_=(x=b.getAttribute("j"))!=null?x:b.getAttribute("rel"))!=null?_:"",10);if(!isFinite(k)||k<0||k>=o.join.toOld.length)return;let L=o.join.toOld[k],E=f[k]!=null&&g[k]!=null?[f[k],g[k]]:null;if(L===-1||!E){let W=b.style;W.opacity="0",Tt(u,m,p,Y=>{W.opacity=String(Y)},()=>{W.opacity=""});return}let D=((w=c[L])!=null?w:NaN)-E[0],P=((y=h[L])!=null?y:NaN)-E[1];if(!isFinite(D)||!isFinite(P))return;let F=(S=(A=(v=l.rPixels)==null?void 0:v[e])==null?void 0:A[L])!=null?S:NaN,R=parseFloat((M=(C=b.getAttribute("r"))!=null?C:b.getAttribute("default-marker-size"))!=null?M:""),N=isFinite(F)&&isFinite(R)&&R>0&&Math.abs(F-R)>.25;if(!(Math.abs(D)>=.5||Math.abs(P)>=.5)&&!N)return;let $=W=>{let Y=D*(1-W),I=P*(1-W);if(N){let U=(F+(R-F)*W)/R;b.setAttribute("transform",`translate(${Y+E[0]*(1-U)}, ${I+E[1]*(1-U)}) scale(${U})`)}else b.setAttribute("transform",`translate(${Y}, ${I})`)};$(0),Tt(u,m,p,$,()=>{b.removeAttribute("transform")})}),!0}function Tl(u,{type:t,realIndex:e,pathFromLine:s,pathFromArea:i,linePaths:a,areaPaths:n}){var r,o;let l=Ge(u,e);if(!l)return null;let{join:c,oldKeys:h,newKeys:d}=l,f=u.globals.prevStreamFrame;if(!f)return null;let g=(r=f.seriesY)==null?void 0:r[e],p=(o=u.seriesData.series)==null?void 0:o[e];if(g.length<2||p.length<2||g.some(x=>x===null)||p.some(x=>x===null))return null;let m=kl(c,h.length),b={};return Array.isArray(a)&&a.length===1&&s&&(b.line=Sn(s,a[0],m,h.length,d.length,!1)),t==="area"&&Array.isArray(n)&&n.length===1&&i&&(b.area=Sn(i,n[0],m,h.length,d.length,!0)),!b.line&&!b.area?null:b}function Pl(u){let t=/^M\s*([+-]?[\d.eE]+)[\s,]+([+-]?[\d.eE]+)/.exec(u||"");if(!t)return null;let e=parseFloat(t[1]),s=parseFloat(t[2]);return isFinite(e)&&isFinite(s)?{x:e,y:s}:null}function Rl({w:u,elSeries:t,record:e,newKeys:s,isHorizontal:i,speed:a}){var n;if(!te(u)||!e||!Array.isArray(e.paths)||!t?.node)return;let r=new Set(s),o=e.paths.filter(h=>h&&h.d&&h.key!=null&&!r.has(h.key));if(!o.length)return;let l=new B(u),c=(n=u.globals.colors)==null?void 0:n[parseInt(String(e.realIndex),10)];o.forEach(h=>{let d=h.fill||c||"#c8c8c8";String(d).indexOf("url(")===0&&(d=c||"#c8c8c8");let f=l.drawPath({d:h.d,stroke:"none",strokeWidth:0,fill:d,fillOpacity:1,classes:"apexcharts-bar-ghost"}),g=f.node;g.setAttribute("pointer-events","none"),f.attr("clip-path",`url(#gridRectBarMask${u.globals.cuid})`),t.node.insertBefore(g,t.node.firstChild);let p=Pl(h.d),m=i?"left center":"center bottom";try{let y=g.getBBox();p&&y&&(i?m=Math.abs(p.x-y.x)<=Math.abs(p.x-(y.x+y.width))?"left center":"right center":m=Math.abs(p.y-(y.y+y.height))<=Math.abs(p.y-y.y)?"center bottom":"center top")}catch{}let b=g.style;b.transformBox="fill-box",b.transformOrigin=m;let x=Math.max(1,a||1),_=performance.now(),w=y=>{if(u.globals.isDestroyed||!g.parentNode)return;let v=Math.max(0,Math.min(1,(y-_)/x)),A=1-Math.pow(1-v,3),S=1-A;b.transform=i?`scaleX(${S})`:`scaleY(${S})`,b.opacity=String(1-A),v<1?O.requestAnimationFrame(w):g.parentNode.removeChild(g)};O.requestAnimationFrame(w)})}function Mn(u,t,e){return[...u.querySelectorAll(t)].map(s=>{var i,a,n;return{text:s.textContent||"",display:(n=(a=(i=s.querySelector("tspan"))==null?void 0:i.textContent)!=null?a:s.textContent)!=null?n:"",pos:parseFloat(s.getAttribute(e)||""),transform:s.getAttribute("transform")}})}function Ln(u,t,e){return[...u.querySelectorAll(t)].map(s=>parseFloat(s.getAttribute(e)||""))}var Ms=":not(.apexcharts-tick-ghost)",Er=`.apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)${Ms}`,Tr=`.apexcharts-yaxis-texts-g text${Ms}`,Pr=`.apexcharts-gridlines-vertical line${Ms}`,Rr=`.apexcharts-gridlines-horizontal line${Ms}`;function Fr(u){var t,e;let s=u.globals;if(!((t=u.axisFlags)!=null&&t.isXNumeric)||s.isBarHorizontal||(e=u.config.xaxis)!=null&&e.reversed)return null;let i=s.minX,a=s.maxX,n=u.layout.gridWidth;return!isFinite(i)||!isFinite(a)||!(a>i)||!(n>0)?null:{min:i,max:a,width:n}}function Ir(u,t){var e;let s=u.globals;if(s.isBarHorizontal||!Array.isArray(u.config.yaxis)||u.config.yaxis.length!==1||(e=u.config.yaxis[0])!=null&&e.logarithmic)return null;let i=s.minY,a=s.maxY;if(!isFinite(i)||!isFinite(a)||!(a>i))return null;let n=t.map(r=>r.pos).filter(r=>isFinite(r));return n.length<2?null:{min:i,max:a,pLo:Math.max(...n),pHi:Math.min(...n)}}function Fl(u,t){if(!u||!t)return null;let e=u.max-u.min,s=t.max-t.min;return!(e>0)||!(s>0)||!(u.width>0)||!(t.width>0)?null:{toNew:i=>(u.min+i/u.width*e-t.min)/s*t.width,toOld:i=>(t.min+i/t.width*s-u.min)/e*u.width}}function Il(u,t){if(!u||!t)return null;let e=u.pHi-u.pLo,s=t.pHi-t.pLo,i=u.max-u.min,a=t.max-t.min;if(!e||!s||!(i>0)||!(a>0))return null;let n=o=>u.min+(o-u.pLo)/e*i,r=o=>t.min+(o-t.pLo)/s*a;return{toNew:o=>t.pLo+(n(o)-t.min)/a*s,toOld:o=>u.pLo+(r(o)-u.min)/i*e}}function Nl(u){let t=u.globals;if(t.prevChromeFrame=null,!t.axisCharts||!H.isBrowser())return;let e=u.dom.baseEl;if(T.elementExists(e))try{let s=Mn(e,Tr,"y");t.prevChromeFrame={xLabels:Mn(e,Er,"x"),yLabels:s,vGrid:Ln(e,Pr,"x1"),hGrid:Ln(e,Rr,"y1"),xScale:Fr(u),yAnchors:Ir(u,s)}}catch{t.prevChromeFrame=null}}function Dn(u,t,e,s){let i=t.style;i.opacity="0",Tt(u,e,s,a=>{i.opacity=String(a)},()=>{i.opacity=""})}function Je(u,t,e,s,i,a,n){e.forEach(r=>t.setAttribute(r,String(s))),Tt(u,a,n,r=>{let o=String(s+(i-s)*r);e.forEach(l=>t.setAttribute(l,o))},()=>{e.forEach(r=>t.setAttribute(r,String(i)))})}function En(u,{template:t,display:e,attrs:s,from:i,to:a,duration:n,ease:r}){let o=t.parentNode;if(!o)return;let l=t.cloneNode(!0);if(l.classList.add("apexcharts-tick-ghost"),l.setAttribute("pointer-events","none"),l.removeAttribute("id"),e!==void 0){let h=l.querySelector("tspan");h?h.textContent=e:l.textContent=e;let d=l.querySelector("title");d&&(d.textContent=e)}s.forEach(h=>l.setAttribute(h,String(i)));let c=l.style;c.opacity="1",o.appendChild(l),Tt(u,n,r,h=>{let d=String(i+(a-i)*h);s.forEach(f=>l.setAttribute(f,d)),c.opacity=String(1-h)},()=>{l.parentNode&&l.parentNode.removeChild(l)})}var Xl=20;function Tn(u,{newLabels:t,oldLabels:e,posAttr:s,newLines:i,oldLines:a,lineAttrs:n,duration:r,ease:o,project:l}){let c=new Map;e.forEach((y,v)=>{c.has(y.text)||c.set(y.text,j(G({},y),{i:v}))});let h=new Set,d=i.length===t.length,f=a.length===e.length,g=e.map(y=>y.pos).concat(t.map(y=>parseFloat(y.getAttribute(s)||""))).filter(y=>isFinite(y)),p=Math.min(...g),m=Math.max(...g),b=Math.max(40,(m-p)*.25),x=y=>Math.max(p-b,Math.min(m+b,y)),_=(y,v)=>{if(!y)return;let A=parseFloat(y.getAttribute(n[0])||""),S=a[v.i];isFinite(A)&&isFinite(S)&&Je(u,y,n,S,A,r,o)};if(t.forEach((y,v)=>{let A=parseFloat(y.getAttribute(s)||""),S=c.get(y.textContent||""),C=d?i[v]:null;S&&h.add(S.i);let M=y.getAttribute("transform");if(!S||!isFinite(S.pos)){if(!S){if(l&&isFinite(A)&&!M){let k=isFinite(l.toOld(A))?x(l.toOld(A)):NaN;isFinite(k)&&Math.abs(k-A)>.5&&(Je(u,y,[s],k,A,r,o),C&&Je(u,C,n,k,A,r,o))}Dn(u,y,r,o),C&&Dn(u,C,r,o)}return}if(!(!isFinite(A)||Math.abs(S.pos-A)<.5)){if(M||S.transform){let k=S.pos-A;if(isFinite(k)){let L=M||"";Tt(u,r,o,E=>{let D=k*(1-E),P=s==="x"?`translate(${D} 0)`:`translate(0 ${D})`;y.setAttribute("transform",`${P} ${L}`.trim())},()=>{L?y.setAttribute("transform",L):y.removeAttribute("transform")})}_(C,S);return}Je(u,y,[s],S.pos,A,r,o),_(C,S)}}),!l||!t.length)return;let w=0;e.forEach((y,v)=>{if(h.has(v)||!isFinite(y.pos)||y.transform||w>=Xl)return;let A=l.toNew(y.pos);!isFinite(A)||Math.abs(A-y.pos)<.5||(w++,En(u,{template:t[0],display:y.display,attrs:[s],from:y.pos,to:x(A),duration:r,ease:o}),f&&i.length&&isFinite(a[v])&&En(u,{template:i[0],attrs:n,from:a[v],to:x(l.toNew(a[v])),duration:r,ease:o}))})}function Ol(u){let t=u.globals,e=t.prevChromeFrame;if(t.prevChromeFrame=null,!e||!t.axisCharts||!H.isBrowser()||!te(u)||!(u.seriesData.series||[]).some((r,o)=>Ge(u,o,!0,!0)!==null))return;let i=u.dom.baseEl;if(!T.elementExists(i))return;let a=Math.max(1,u.config.chart.animations.dynamicAnimation.speed||1),n=za(u);try{let r=[...i.querySelectorAll(Tr)],o=Fl(e.xScale,Fr(u)),l=Il(e.yAnchors,Ir(u,r.map(c=>({pos:parseFloat(c.getAttribute("y")||"")}))));Tn(u,{newLabels:[...i.querySelectorAll(Er)],oldLabels:e.xLabels,posAttr:"x",newLines:[...i.querySelectorAll(Pr)],oldLines:e.vGrid,lineAttrs:["x1","x2"],duration:a,ease:n,project:o}),Tn(u,{newLabels:r,oldLabels:e.yLabels,posAttr:"y",newLines:[...i.querySelectorAll(Rr)],oldLines:e.hGrid,lineAttrs:["y1","y2"],duration:a,ease:n,project:l})}catch{}}var Nr=".apexcharts-data-labels[data\\:dlKey]",Xr=".apexcharts-datalabel";function Or(u){var t,e;let s=u.config.dataLabels;return!!((t=s?.animate)!=null&&t.enabled||(e=s?.countUp)!=null&&e.enabled)}function Pn(u){if(!isFinite(u))return 0;let t=String(Math.abs(u)),e=t.indexOf("e");if(e!==-1){let i=t.slice(0,e),a=parseInt(t.slice(e+1),10),n=i.indexOf("."),r=n===-1?0:i.length-n-1;return Math.min(6,Math.max(0,r-a))}let s=t.indexOf(".");return s===-1?0:Math.min(6,t.length-s-1)}function Rn(u,t){let e=u.querySelector("tspan");e?e.textContent=t:u.textContent=t}function Bl(u){let t=u.globals;if(t.prevDataLabels=null,!t.axisCharts||!H.isBrowser()||!Or(u))return;let e=u.dom.baseEl;if(T.elementExists(e))try{let s=new Map;e.querySelectorAll(Nr).forEach(i=>{let a=i.getAttribute("data:dlKey");if(!a)return;let n=i.querySelector(Xr);n&&s.set(a,{cx:parseFloat(n.getAttribute("cx")||""),cy:parseFloat(n.getAttribute("cy")||""),val:parseFloat(i.getAttribute("data:dlVal")||"")})}),t.prevDataLabels=s.size?s:null}catch{t.prevDataLabels=null}}function Yl(u,t,e,s){let i=t.style;i.opacity="0",Tt(u,e,s,a=>{i.opacity=String(a)},()=>{i.opacity=""})}function zl(u){var t,e;let s=u.globals,i=s.prevDataLabels;if(s.prevDataLabels=null,!i||!s.axisCharts||!H.isBrowser()||!Or(u)||!te(u))return;let a=u.dom.baseEl;if(!T.elementExists(a))return;let n=u.config.dataLabels,r=!!((t=n.animate)!=null&&t.enabled),o=!!((e=n.countUp)!=null&&e.enabled),l=n.formatter,c=Math.max(1,u.config.chart.animations.dynamicAnimation.speed||1),h=za(u);try{a.querySelectorAll(Nr).forEach(d=>{let f=d.getAttribute("data:dlKey");if(!f)return;let g=d.querySelector(Xr);if(!g)return;let p=i.get(f);if(r)if(p&&isFinite(p.cx)&&isFinite(p.cy)){let m=parseFloat(g.getAttribute("cx")||""),b=parseFloat(g.getAttribute("cy")||""),x=p.cx-m,_=p.cy-b;if(isFinite(x)&&isFinite(_)&&Math.abs(x)+Math.abs(_)>.5){let w=d.getAttribute("transform")||"";Tt(u,c,h,y=>{let v=1-y;d.setAttribute("transform",`translate(${x*v} ${_*v}) ${w}`.trim())},()=>{d.setAttribute("transform",w)})}}else p||Yl(u,d,c,h);if(o&&p&&isFinite(p.val)){let m=parseFloat(d.getAttribute("data:dlVal")||"");if(isFinite(m)&&Math.abs(m-p.val)>1e-9){let b=p.val,x=Math.max(Pn(b),Pn(m)),_=parseInt(f,10),w=parseInt(d.getAttribute("data:dlJ")||"",10),y=j(G({},u),{seriesIndex:_,dataPointIndex:isFinite(w)?w:0,w:u}),v=A=>{let S=Number(A.toFixed(x)),C=S;if(typeof l=="function")try{C=l(S,y)}catch{C=S}return String(C)};Tt(u,c,h,A=>{Rn(g,v(b+(m-b)*A))},()=>{Rn(g,v(m))})}}})}catch{}}var ct=class u{constructor(t,{toggleDataSeries:e=void 0,revertDefaultAxisMinMax:s=void 0,updateSeries:i=void 0}={}){this.w=t,this._toggleDataSeries=e||null,this._revertDefaultAxisMinMax=s||null,this._updateSeries=i||null,this.legendInactiveClass="legend-mouseover-inactive"}clearSeriesCache(){let t=this.w;t.globals.cachedSelectors&&(delete t.globals.cachedSelectors.allSeriesEls,delete t.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){let t=this.w,e="allSeriesEls";return t.globals.cachedSelectors[e]||(t.globals.cachedSelectors[e]=t.dom.baseEl.getElementsByClassName("apexcharts-series")),t.globals.cachedSelectors[e]}getSeriesByName(t){return this.w.dom.baseEl.querySelector(`.apexcharts-inner .apexcharts-series[seriesName='${T.escapeString(t)}']`)}isSeriesHidden(t){var e;let i=this.getSeriesByName(t),a=parseInt((e=i.getAttribute("data:realIndex"))!=null?e:"0",10);return{isHidden:i.classList.contains("apexcharts-series-collapsed"),realIndex:a}}addCollapsedClassToSeries(t,e){u.addCollapsedClassToSeries(this.w,t,e)}static addCollapsedClassToSeries(t,e,s){function i(a){for(let n=0;n-1&&(t[s]&&typeof t[s]=="object"?t[s].data=[]:t[s]=0);return t}_deriveSeriesNames(){let t=this.w,e=t.config.series||[],s=t.config.labels||[];return e.map((i,a)=>i&&typeof i=="object"&&i.name!=null?String(i.name):s[a]!=null?String(s[a]):`series-${a+1}`)}reconcileCollapsedByName(){let t=this.w,e=t.globals,s=this._deriveSeriesNames(),i=r=>{let o=[],l=[];return r.forEach(c=>{let h=c&&c.name!=null?s.indexOf(c.name):c.index;if(h==null||h<0||h>=t.config.series.length)return;let d=t.config.series[h];c.index=h,c.data=e.axisCharts?d&&d.data?d.data.slice():[]:d,o.push(c),l.push(h)}),{records:o,indices:l}},a=i(e.collapsedSeries);e.collapsedSeries=a.records,e.collapsedSeriesIndices=a.indices;let n=i(e.ancillaryCollapsedSeries);e.ancillaryCollapsedSeries=n.records,e.ancillaryCollapsedSeriesIndices=n.indices,e.allSeriesCollapsed=e.collapsedSeries.length+e.ancillaryCollapsedSeries.length===t.config.series.length,this.emptyCollapsedSeries(t.config.series)}canvasRestyle(t){let e=this.w.globals.activeRenderer;e&&e.kind==="canvas"&&typeof e.restyle=="function"&&e.restyle(t)}highlightSeries(t){var e;let s=this.w,i=this.getSeriesByName(t),a=parseInt((e=i?.getAttribute("data:realIndex"))!=null?e:"",10),n="highlightSeriesEls",r=s.globals.cachedSelectors[n];r||(r=s.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),s.globals.cachedSelectors[n]=r);let o=null,l=null,c=null;if(s.globals.axisCharts||s.config.chart.type==="radialBar")if(s.globals.axisCharts){o=s.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${a}']`),l=s.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${a}']`);let h=s.globals.seriesYAxisReverseMap[a];c=s.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${h}']`)}else o=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}']`);else o=s.dom.baseEl.querySelector(`.apexcharts-series[rel='${a+1}'] path`);for(let h=0;h{for(let l=0;l=r.from&&l<=r.to&&i[o].classList.remove(this.legendInactiveClass)}}}getActiveConfigSeriesIndex(t="asc",e=[]){let s=this.w,i=0;if(s.config.series.length>1){let a=s.config.series.map((n,r)=>{let o=()=>s.globals.comboCharts?e.length===0||e.length&&e.indexOf(s.config.series[r].type)>-1:!0;return n.data&&n.data.length>0&&s.globals.collapsedSeriesIndices.indexOf(r)===-1&&o()?r:-1});for(let n=t==="asc"?0:a.length-1;t==="asc"?n=0;t==="asc"?n++:n--)if(a[n]!==-1){i=a[n];break}}return i}getActiveConfigSeriesIndexByGroup(t=[]){let e=this.w;return(e.labelData.seriesGroups||[]).map(i=>{let a=-1;return e.config.series.forEach((n,r)=>{if(i.indexOf(e.seriesData.seriesNames[r])===-1||e.globals.comboCharts&&t.length&&t.indexOf(n.type)===-1)return;n.data&&n.data.length>0&&e.globals.collapsedSeriesIndices.indexOf(r)===-1&&(a=r)}),a})}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((e,s)=>e.type==="bar"||e.type==="column"?s:-1).filter(e=>e!==-1):this.w.config.series.map((e,s)=>s)}getPreviousPaths(){var t,e,s,i;let a=this.w;if(_l(a),Nl(a),Bl(a),!a.globals.axisCharts){a.globals.previousPaths=a.seriesData.series;return}if(!T.elementExists(a.dom.baseEl)){a.globals.previousPaths=[];return}a.globals.previousPaths=[];function n(c,h,d){let f=c[h].childNodes,g={type:d,paths:[],realIndex:c[h].getAttribute("data:realIndex")};for(let p=0;pa.dom.baseEl.querySelectorAll(`.apexcharts-${c}-series .apexcharts-series`);["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(c=>{let h=r(c);for(let d=0;d0)for(let c=0;ch[f].getAttribute(m),p={x:parseFloat((t=g("x"))!=null?t:"0"),y:parseFloat((e=g("y"))!=null?e:"0"),width:parseFloat((s=g("width"))!=null?s:"0"),height:parseFloat((i=g("height"))!=null?i:"0")};d.push({rect:p,color:h[f].getAttribute("color")})}a.globals.previousPaths.push(d)}}clearPreviousPaths(){let t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}handleNoData(){let t=this.w,e=this,s=t.config.noData,i=new B(e.w),a=t.globals.svgWidth/2,n=t.globals.svgHeight/2,r="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,s.align==="left"?(a=10,r="start"):s.align==="right"&&(a=t.globals.svgWidth-10,r="end"),s.verticalAlign==="top"?n=50:s.verticalAlign==="bottom"&&(n=t.globals.svgHeight-50),a=a+s.offsetX,n=n+parseInt(s.style.fontSize,10)+2+s.offsetY,s.text!==void 0&&s.text!==""){let o=i.drawText({x:a,y:n,text:s.text,textAnchor:r,fontSize:s.style.fontSize,fontFamily:s.style.fontFamily,foreColor:s.style.color,opacity:1,cssClass:"apexcharts-text-nodata"});t.dom.Paper.add(o)}}setNullSeriesToZeroValues(t){let e=this.w;for(let s=0;ss.length>0?s:[])}},Fn={accent:"--apx-accent",fore:"--apx-fore",grid:"--apx-grid",surface:"--apx-surface"},Wl=24;function Hl(u){if(!H.isBrowser())return{};let t=u.dom&&(u.dom.elWrap||u.dom.baseEl)||null;if(!t)return{};let e=O.getComputedStyle(t);if(!e||typeof e.getPropertyValue!="function")return{};let s=n=>{let r=e.getPropertyValue(n);return r?String(r).trim():""},i={};for(let n in Fn){let r=s(Fn[n]);r&&(i[n]=r)}let a=[];for(let n=1;n<=Wl;n++){let r=s(`--apx-series-${n}`);if(!r)break;a.push(r)}return a.length&&(i.series=a),i}var vi="__apexcharts_themes__";globalThis[vi]||(globalThis[vi]={});function Wa(){return globalThis[vi]}function $l(u,t){if(!u||typeof u!="string"){console.warn("ApexCharts: registerTheme requires a non-empty name.");return}if(t!=null&&(typeof t!="object"||Array.isArray(t))){console.warn(`ApexCharts: registerTheme("${u}") expects an object like { mode, palette, tokens, monochrome, accessibility }.`);return}Wa()[u]=t||{}}function Gl(u){return u&&Wa()[u]||null}function Vl(u){u&&delete Wa()[u]}var $s="#373d3f",Gs="#f6f7f8",Vs="#e0e0e0",_i=class{constructor(t){this.w=t,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed(),this._tokens={},this._namedTheme=null}checkHeatmapDistributed(){let{chart:t,plotOptions:e}=this.w.config;return t.type==="treemap"&&e.treemap&&e.treemap.distributed||t.type==="heatmap"&&e.heatmap&&e.heatmap.distributed}checkBarDistributed(){let{chart:t,plotOptions:e}=this.w.config;return e.bar&&e.bar.distributed&&(t.type==="bar"||t.type==="rangeBar")}init(){this.setDefaultColors()}setDefaultColors(){var t;let e=this.w,s=new T;this._namedTheme=Gl(e.config.theme.name),this._applyNamedThemeMode(),e.dom.elWrap.classList.add(`apexcharts-theme-${e.config.theme.mode||"light"}`),this._applyModeDefaults(),this._tokens=this._resolveTokens(),this.applyTokenChrome(this._tokens);let i=(t=e.config.theme.accessibility)==null?void 0:t.colorBlindMode;if(i){e.globals.colors=this.getColorBlindColors(i),this.applySeriesColors(e.seriesData.seriesColors,e.globals.colors);let r=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r),i==="highContrast"&&e.dom.elWrap.classList.add("apexcharts-high-contrast");return}let a=[...e.config.colors||e.config.fill.colors||[]];e.globals.colors=this.getColors(a),this.applySeriesColors(e.seriesData.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.seriesData.series,s));let n=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],n),this.applyDataLabelsColors(n),this.applyRadarPolygonsColors(),this.applyMarkersColors(n)}_applyModeDefaults(){let t=this.w,e=t.config.theme.mode;e==="dark"?(t.config.chart.foreColor===$s&&(t.config.chart.foreColor=Gs),t.config.theme.palette==="palette1"&&(t.config.theme.palette="palette4"),t.config.tooltip&&t.config.tooltip.theme!=="light"&&(t.config.tooltip.theme="dark")):e==="light"&&(t.config.chart.foreColor===Gs&&(t.config.chart.foreColor=$s),t.config.theme.palette==="palette4"&&(t.config.theme.palette="palette1"))}_applyNamedThemeMode(){let t=this._namedTheme;if(!t)return;let e=this.w.config.theme;t.mode&&!e.mode&&(e.mode=t.mode),t.accessibility&&t.accessibility.colorBlindMode&&!(e.accessibility&&e.accessibility.colorBlindMode)&&(e.accessibility=e.accessibility||{},e.accessibility.colorBlindMode=t.accessibility.colorBlindMode),t.monochrome&&t.monochrome.enabled&&!e.monochrome.enabled&&(e.monochrome=G(G({},e.monochrome),t.monochrome))}_resolveTokens(){let t=this._namedTheme&&this._namedTheme.tokens||{},e=this._shouldUseTokens()?Hl(this.w):{};return G(G({},t),e)}_shouldUseTokens(){return this.w.config.theme.tokens!==!1}applyTokenChrome(t){if(!t)return;let e=this.w;if(t.fore&&(e.config.chart.foreColor===$s||e.config.chart.foreColor===Gs)&&(e.config.chart.foreColor=t.fore),t.grid){e.config.grid.borderColor===Vs&&(e.config.grid.borderColor=t.grid);let n=r=>{r&&(r.axisBorder&&r.axisBorder.color===Vs&&(r.axisBorder.color=t.grid),r.axisTicks&&r.axisTicks.color===Vs&&(r.axisTicks.color=t.grid))};n(e.config.xaxis),Array.isArray(e.config.yaxis)?e.config.yaxis.forEach(n):n(e.config.yaxis)}let s=e.globals.tokenSurface,i=e.config.chart.background,a=!i||i===s;if(t.surface){if(a){e.config.chart.background=t.surface,e.globals.tokenSurface=t.surface;let n=e.dom.Paper&&e.dom.Paper.node;n&&n.style&&(n.style.background=t.surface)}}else if(s&&i===s){e.config.chart.background="",e.globals.tokenSurface=void 0;let n=e.dom.Paper&&e.dom.Paper.node;n&&n.style&&(n.style.background="")}}getColors(t){let e=this.w;return!t||t.length===0?this.predefined():Array.isArray(t)&&t.length>0&&typeof t[0]=="function"?(this.isColorFn=!0,e.config.series.map((s,i)=>{let a=t[i]||t[0];return typeof a=="function"?a({value:e.globals.axisCharts?e.seriesData.series[i][0]||0:e.seriesData.series[i],seriesIndex:i,dataPointIndex:i,w:this.w}):a})):t}applySeriesColors(t,e){t.forEach((s,i)=>{s&&(e[i]=s)})}getMonochromeColors(t,e,s){let{color:i,shadeIntensity:a,shadeTo:n}=t,r=this.isBarDistributed||this.isHeatmapDistributed?e[0].length*e.length:e.length,o=1/(r/a),l=0;return Array.from({length:r},()=>{let c=n==="dark"?s.shadeColor(l*-1,i):s.shadeColor(l,i);return l+=o,c})}applyColorTypes(t,e){let s=this.w;t.forEach(i=>{s.globals[i].colors=s.config[i].colors===void 0?this.isColorFn?s.config.colors:e:s.config[i].colors.slice(),this.pushExtraColors(s.globals[i].colors)})}applyDataLabelsColors(t){let e=this.w;e.globals.dataLabels.style.colors=e.config.dataLabels.style.colors===void 0?t:e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){let t=this.w;t.globals.radarPolygons.fill.colors=t.config.plotOptions.radar.polygons.fill.colors===void 0?[t.config.theme.mode==="dark"?"#343A3F":"none"]:t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20)}applyMarkersColors(t){let e=this.w;e.globals.markers.colors=e.config.markers.colors===void 0?t:e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}pushExtraColors(t,e,s=null){let i=this.w,a=e||i.seriesData.series.length;if(s===null&&(s=this.isBarDistributed||this.isHeatmapDistributed||i.config.chart.type==="heatmap"&&i.config.plotOptions.heatmap&&i.config.plotOptions.heatmap.colorScale.inverse),s&&i.seriesData.series.length&&(a=i.seriesData.series[i.globals.maxValsInArrayIndex].length*i.seriesData.series.length),t.lengtht.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}getDatalabelsRect(){let t=this.w,e=[];t.config.series.forEach((r,o)=>{r.data.forEach((l,c)=>{let d=(f=>t.config.dataLabels.formatter(f,{seriesIndex:o,dataPointIndex:c,w:t}))(t.seriesData.series[o][c]);e.push(d)})});let s=T.getLargestStringFromArr(e),i=new B(this.w),a=t.config.dataLabels.style,n=i.getTextRects(s,parseInt(a.fontSize).toString(),a.fontFamily);return{width:n.width*1.05,height:n.height}}getLargestStringFromMultiArr(t,e){let s=this.w,i=t;if(s.axisFlags.isMultiLineX){let a=e.map(o=>Array.isArray(o)?o.length:1),n=Math.max(...a),r=a.indexOf(n);i=e[r]}return i}getSparklineStrokeInset(){let t=this.w,e=Array.isArray(t.config.stroke.width)?Math.max(...t.config.stroke.width):t.config.stroke.width,s=e/2;if(!t.config.stroke.show||!(s>0))return{top:0,bottom:0};let i=t.globals.maxY-t.globals.minY,a=this._getSeriesYExtremes();if(!this._strokeTracesDataPoints()||!(i>0)||!a)return{top:s,bottom:s};let n=Math.max(t.globals.svgHeight-e,0),r=n*(t.globals.maxY-a.max)/i,o=n*(a.min-t.globals.minY)/i;return{top:Math.min(Math.max(s-r,0),s),bottom:Math.min(Math.max(s-o,0),s)}}_strokeTracesDataPoints(){let t=this.w;if(!t.globals.axisCharts||t.config.chart.stacked)return!1;let e=["line","area","scatter"];return t.config.series.every(s=>e.includes(s.type||t.config.chart.type))}_getSeriesYExtremes(){let t=1/0,e=-1/0;return this.w.seriesData.series.forEach(s=>{Array.isArray(s)&&s.forEach(i=>{Number.isFinite(i)&&(ie&&(e=i))})}),t===1/0?null:{min:t,max:e}}},Si=class{constructor(t){this.w=t.w,this.dCtx=t}getxAxisLabelsCoords(){let t=this.w,e=t.labelData.labels.slice();t.config.xaxis.convertedCatToNumeric&&e.length===0&&(e=t.labelData.categoryLabels);let s;if(t.labelData.timescaleLabels.length>0){let i=this.getxAxisTimeScaleLabelsCoords();s={width:i.width,height:i.height},t.layout.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=(t.config.legend.position==="left"||t.config.legend.position==="right")&&!t.config.legend.floating?this.dCtx.lgRect.width:0;let i=t.formatters.xLabelFormatter,a=T.getLargestStringFromArr(e),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,e);t.globals.isBarHorizontal&&(a=t.globals.yAxisScale[0].result.reduce((d,f)=>d.length>f.length?d:f,0),n=a);let r=new ee(this.w),o=a;a=r.xLabelFormat(i,a,o,{i:void 0,dateFormatter:new mt(this.w).formatDate,w:t}),n=r.xLabelFormat(i,n,o,{i:void 0,dateFormatter:new mt(this.w).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&typeof a>"u"||String(a).trim()==="")&&(a="1",n=a);let l=new B(this.w),c=l.getTextRects(a,t.config.xaxis.labels.style.fontSize),h=c;if(a!==n&&(h=l.getTextRects(n,t.config.xaxis.labels.style.fontSize)),s={width:c.width>=h.width?c.width:h.width,height:c.height>=h.height?c.height:h.height},s.width*e.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.layout.rotateXLabels=!0;let d=f=>l.getTextRects(f,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,`rotate(${t.config.xaxis.labels.rotate} 0 0)`,!1);c=d(a),a!==n&&(h=d(n)),s.height=(c.height>h.height?c.height:h.height)/1.5,s.width=c.width>h.width?c.width:h.width}}else t.layout.rotateXLabels=!1}return t.config.xaxis.labels.show||(s={width:0,height:0}),{width:s.width,height:s.height}}getxAxisGroupLabelsCoords(){var t;let e=this.w;if(!e.labelData.hasXaxisGroups)return{width:0,height:0};let s=((t=e.config.xaxis.group.style)==null?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,i=e.labelData.groups.map(h=>h.title),a,n=T.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i),o=new B(this.w),l=o.getTextRects(n,s),c=l;return n!==r&&(c=o.getTextRects(r,s)),a={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},e.config.xaxis.labels.show||(a={width:0,height:0}),{width:a.width,height:a.height}}getxAxisTitleCoords(){let t=this.w,e=0,s=0;if(t.config.xaxis.title.text!==void 0){let a=new B(this.w).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=a.width,s=a.height}return{width:e,height:s}}getxAxisTimeScaleLabelsCoords(){let t=this.w;this.dCtx.timescaleLabels=t.labelData.timescaleLabels.slice();let e=this.dCtx.timescaleLabels.map(r=>r.value),s=e.reduce((r,o)=>typeof r>"u"?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):r.length>o.length?r:o,0),a=new B(this.w).getTextRects(s,t.config.xaxis.labels.style.fontSize);return a.width*1.05*e.length>t.layout.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),a}additionalPaddingXLabels(t){let e=this.w,s=e.globals,i=e.config,a=i.xaxis.type,n=t.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;let r=e.config.yaxis[0].opposite&&e.globals.isBarHorizontal,o=h=>s.collapsedSeriesIndices.indexOf(h)!==-1,l=h=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){let d=this.dCtx.timescaleLabels[0],g=this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+n/1.75-this.dCtx.yAxisWidthRight,p=d.position-n/1.75+this.dCtx.yAxisWidthLeft,m=e.config.legend.position==="right"&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0;g>s.svgWidth-e.layout.translateX-m&&(s.skipLastTimelinelabel=!0),p<-((!h.show||h.floating)&&(i.chart.type==="bar"||i.chart.type==="candlestick"||i.chart.type==="rangeBar"||i.chart.type==="boxPlot"||i.chart.type==="violin")?n/1.75:10)&&(s.skipFirstTimelinelabel=!0)}else a==="datetime"?this.dCtx.gridPad.right{i.yaxis.length>1&&o(d)||l(h)};i.yaxis.forEach((h,d)=>{r?(this.dCtx.gridPad.left{let l={seriesIndex:o,dataPointIndex:-1,w:t},c=t.globals.yAxisScale[o],h=0;if(!n.isYAxisHidden(o)&&r.labels.show&&r.labels.minWidth!==void 0&&(h=r.labels.minWidth),!n.isYAxisHidden(o)&&r.labels.show&&c.result.length){let d=t.formatters.yLabelFormatters[o],f=c.niceMin===Number.MIN_VALUE?0:c.niceMin,g=c.result.reduce((w,y)=>{var v,A;return((v=String(d(w,l)))==null?void 0:v.length)>((A=String(d(y,l)))==null?void 0:A.length)?w:y},f);g=d(g,l);let p=g;if((typeof g>"u"||g.length===0)&&(g=c.niceMax),String(g).length===1&&(g=g+".0",p=g),t.globals.isBarHorizontal){a=0;let w=t.labelData.labels.slice();g=T.getLargestStringFromArr(w),g=d(g,{seriesIndex:o,dataPointIndex:-1,w:t}),p=this.dCtx.dimHelpers.getLargestStringFromMultiArr(g,w)}let m=new B(this.w),b="rotate(".concat(r.labels.rotate," 0 0)"),x=m.getTextRects(g,r.labels.style.fontSize,r.labels.style.fontFamily,b,!1),_=x;g!==p&&(_=m.getTextRects(p,r.labels.style.fontSize,r.labels.style.fontFamily,b,!1)),i.push({width:(h>_.width||h>x.width?h:_.width>x.width?_.width:x.width)+a,height:_.height>x.height?_.height:x.height})}else i.push({width:e,height:s})}),i}getyAxisTitleCoords(){let t=this.w,e=[];return t.config.yaxis.map(s=>{if(s.show&&s.title.text!==void 0){let i=new B(this.w),a="rotate(".concat(s.title.rotate," 0 0)"),n=i.getTextRects(s.title.text,s.title.style.fontSize,s.title.style.fontFamily,a,!1);e.push({width:n.width,height:n.height})}else e.push({width:0,height:0})}),e}getTotalYAxisWidth(){let t=this.w,e=0,s=0,i=0,a=t.globals.yAxisScale.length>1?10:0,n=new Ct(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),r=function(l){return t.globals.ignoreYAxisIndexes.indexOf(l)>-1},o=(l,c)=>{let h=t.config.yaxis[c].floating,d=0;l.width>0&&!h?(d=l.width+a,r(c)&&(d=d-l.width-a)):d=h||n.isYAxisHidden(c)?0:5,t.config.yaxis[c].opposite?i=i+d:s=s+d,e=e+d};return t.layout.yLabelsCoords.map((l,c)=>{o(l,c)}),t.layout.yTitleCoords.map((l,c)=>{o(l,c)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.layout.yLabelsCoords[0].width+t.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=s,this.dCtx.yAxisWidthRight=i,e}},ki=class{constructor(t){this.w=t.w,this.dCtx=t}gridPadForColumnsInNumericAxis(t){let{w:e}=this,{config:s,globals:i}=e;if(i.noData||i.collapsedSeries.length+i.ancillaryCollapsedSeries.length===s.series.length)return 0;let a=h=>["bar","rangeBar","candlestick","boxPlot","violin"].includes(h),n=s.chart.type,r=0,o=a(n)?s.series.length:1;i.comboBarCount>0&&(o=i.comboBarCount),i.collapsedSeries.forEach(h=>{a(h.type)&&(o-=1)}),s.chart.stacked&&(o=1);let l=a(n)||i.comboBarCount>0,c=Math.abs(i.initialMaxX-i.initialMinX);if(l&&e.axisFlags.isXNumeric&&!i.isBarHorizontal&&o>0&&c!==0){c<=3&&(c=i.dataPoints);let h=c/t,d=i.minXDiff&&i.minXDiff/h>0?i.minXDiff/h:0;d>t/2&&(d/=2),r=d*parseInt(s.plotOptions.bar.columnWidth,10)/100,r<1&&(r=1),i.barPadForNumericAxis=r}return r}gridPadForStackedTotalDataLabels(){let{w:t}=this,e=t.config.plotOptions.bar.dataLabels.total;if(!t.globals.isBarHorizontal||!t.config.chart.stacked||t.config.chart.stackType!=="100%"||!e.enabled)return;let s=t.seriesData.stackedSeriesTotals||[];if(!s.length)return;let i=e.formatter||t.config.dataLabels.formatter,a=s.map((l,c)=>String(i?i(l,j(G({},t),{seriesIndex:0,dataPointIndex:c,w:t})):l)),o=new B(t).getTextRects(T.getLargestStringFromArr(a),parseFloat(e.style.fontSize).toString(),e.style.fontFamily).width+Math.abs(e.offsetX||0)+2;this.dCtx.xPadRight=Math.max(this.dCtx.xPadRight,o)}gridPadFortitleSubtitle(){let{w:t}=this,{globals:e}=t,s=this.dCtx.isSparkline||!e.axisCharts?0:10;["title","subtitle"].forEach(r=>{t.config[r].text!==void 0?s+=t.config[r].margin:s+=this.dCtx.isSparkline||!e.axisCharts?0:5}),t.config.legend.show&&t.config.legend.position==="bottom"&&!t.config.legend.floating&&!e.axisCharts&&(s+=10);let a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");this.dCtx.titleBlockPad=s,t.layout.gridHeight-=a.height+n.height+s,t.layout.translateY+=a.height+n.height+s}setGridXPosForDualYAxis(t,e){let{w:s}=this,i=new Ct(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});s.config.yaxis.forEach((a,n)=>{s.globals.ignoreYAxisIndexes.indexOf(n)===-1&&!a.floating&&!i.isYAxisHidden(n)&&(a.opposite&&(s.layout.translateX-=e[n].width+t[n].width+parseInt(a.labels.style.fontSize,10)/1.2+12),s.layout.translateX<2&&(s.layout.translateX=2))})}},le="http://www.w3.org/1999/xhtml",Ha=18,ql=23;function fs(u,t){let e=u.config.drilldown&&u.config.drilldown.breadcrumb||{};return G(G({show:!0,position:"top-left",separator:" / ",rootLabel:"All",offsetX:0,offsetY:0,formatter:void 0},e),t||{})}function Br(u,t){let e=[".apexcharts-title-text",".apexcharts-subtitle-text"].map(i=>u.dom.baseEl.querySelector(i)).filter(i=>i!==null);if(!e.length)return;let s=u.dom.elWrap.getBoundingClientRect().top;for(let i=0;i{let o=r.getBoundingClientRect();return a.lefto.left&&a.topo.top});if(!n)break;t.style.top=`${n.getBoundingClientRect().bottom-s+4}px`}}function jl(u,t){let e=u.layout.translateY||0,s=u.dom.elWrap;if(!s)return e;let i=u.dom.baseEl.querySelectorAll(".apexcharts-yaxis-label");if(!i.length)return e;let a=s.getBoundingClientRect().top,n=t.getBoundingClientRect(),r=e;for(let o=0;o=n.right||l.right<=n.left||(r=Math.min(r,l.top-a)))}return r}function Zl(u,t,e,s){var i;let a=(i=t?.dimensions)==null?void 0:i.dimHelpers,n=a?a.getTitleSubtitleCoords("title").height+a.getTitleSubtitleCoords("subtitle").height:0,r=e.getBoundingClientRect().height||Ha,o=s&&s.offsetY||0,l=jl(u,e);if(l-n>=r+1)return e.style.top=`${l-r-1+o}px`,!0;e.style.top=`${n+o}px`;let c=u.config.theme.mode==="dark";return e.style.background=c?"rgba(20,24,30,0.82)":"rgba(255,255,255,0.86)",e.style.borderRadius="4px",!1}function Yr(u){let t=u.dom.elWrap;if(!t)return;let e=t.querySelector(".apexcharts-breadcrumb");e&&e.parentNode&&e.parentNode.removeChild(e)}function Kl(u,t){if(!H.isBrowser())return null;let e=u.dom.elWrap;if(!e)return null;Yr(u);let s=t.config||fs(u);if(s.show===!1)return null;let i=t.crumbs||[];if(i.length<2)return null;let a=O.createElementNS(le,"nav");a.setAttribute("class","apexcharts-breadcrumb"),a.setAttribute("aria-label",t.ariaLabel||"Breadcrumb"),Jl(a,s),t.compact&&(a.style.fontSize="11px",a.style.padding="0 2px");let n=s.separator!=null?s.separator:" / ";return i.forEach((r,o)=>{var l;if(o>0){let f=O.createElementNS(le,"span");f.setAttribute("class","apexcharts-breadcrumb-separator"),f.setAttribute("aria-hidden","true"),f.textContent=n,a.appendChild(f)}let c=o===0?(l=s.rootLabel)!=null?l:"All":r.label;if(typeof s.formatter=="function"&&(c=s.formatter(c,{index:o,depth:i.length-1,data:r.data})),o===i.length-1){let f=O.createElementNS(le,"span");f.setAttribute("class","apexcharts-breadcrumb-item apexcharts-breadcrumb-current"),f.setAttribute("aria-current","page"),f.textContent=String(c),a.appendChild(f);return}let h=O.createElementNS(le,"button");if(h.setAttribute("type","button"),h.setAttribute("class","apexcharts-breadcrumb-item"),o===0){let f=O.createElementNS(le,"span");f.setAttribute("class","apexcharts-breadcrumb-arrow"),f.setAttribute("aria-hidden","true"),f.textContent="\u2190",h.appendChild(f)}let d=O.createElementNS(le,"span");d.setAttribute("class","apexcharts-breadcrumb-label"),d.textContent=String(c),h.appendChild(d),h.addEventListener("click",()=>t.onNavigate(o,r)),a.appendChild(h)}),e.appendChild(a),a}function Jl(u,t){let e=t.offsetX||0,s=t.offsetY||0;u.style.position="absolute",u.style.top=s+"px",t.position==="top-right"?u.style.right=-e+3+"px":u.style.left=e+"px"}var ye=class{constructor(t,e){this.w=t,this.ctx=e,this.theme=e.theme,this.timeScale=e.timeScale,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new Ul(this),this.dimYAxis=new Ci(this),this.dimXAxis=new Si(this),this.dimGrid=new ki(this),this.lgWidthForSideLegends=0,this.gridPad=G({},this.w.config.grid.padding),this.xPadRight=0,this.titleBlockPad=0,this.xPadLeft=0,this.datalabelsCoords={width:0,height:0},this.xAxisWidth=0,this.timescaleLabels=[]}plotCoords(){let t=this.w,e=t.globals;if(this.gridPad=G({},t.config.grid.padding),this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0},this.isSparkline){this.w.globals.markers.largestSize>0&&Object.entries(this.gridPad).forEach(([a,n])=>{this.gridPad[a]=Math.max(n,this.w.globals.markers.largestSize/1.5)});let i=this.dimHelpers.getSparklineStrokeInset();this.gridPad.top=Math.max(i.top,this.gridPad.top),this.gridPad.bottom=Math.max(i.bottom,this.gridPad.bottom)}e.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),this.gridPadForBreadcrumb(),this.dimGrid.gridPadForStackedTotalDataLabels(),t.layout.gridHeight=t.layout.gridHeight-this.gridPad.top-this.gridPad.bottom,t.layout.gridWidth=t.layout.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;let s=this.dimGrid.gridPadForColumnsInNumericAxis(t.layout.gridWidth);return t.layout.gridWidth=t.layout.gridWidth-s*2,t.layout.translateX=t.layout.translateX+this.gridPad.left+this.xPadLeft+(s>0?s:0),t.layout.translateY=t.layout.translateY+this.gridPad.top,{layout:{gridHeight:t.layout.gridHeight,gridWidth:t.layout.gridWidth,translateX:t.layout.translateX,translateY:t.layout.translateY,translateXAxisX:t.layout.translateXAxisX,translateXAxisY:t.layout.translateXAxisY,rotateXLabels:t.layout.rotateXLabels,xAxisHeight:t.layout.xAxisHeight,xAxisLabelsHeight:t.layout.xAxisLabelsHeight,xAxisGroupLabelsHeight:t.layout.xAxisGroupLabelsHeight,xAxisLabelsWidth:t.layout.xAxisLabelsWidth,yLabelsCoords:t.layout.yLabelsCoords,yTitleCoords:t.layout.yTitleCoords,gridPad:G({},this.gridPad)}}}gridPadForBreadcrumb(){var t,e,s,i,a,n;let r=this.w,o=r.config.chart.type==="treemap";if(o){let f=(e=(t=r.config.plotOptions)==null?void 0:t.treemap)==null?void 0:e.zoom;if(f&&f.enabled){if(fs(r,f.breadcrumb).show===!1)return;this.gridPad.top+=Ha+4;return}}if(!r.globals.axisCharts||!this.ctx.drilldown||!r.config.drilldown||!r.config.drilldown.enabled||fs(r).show===!1)return;let l=parseFloat(String((n=(a=(i=(s=r.config.yaxis)==null?void 0:s[0])==null?void 0:i.labels)==null?void 0:a.style)==null?void 0:n.fontSize))||11,c=o?0:Math.ceil(l*hi/2),h=ql+1+c,d=o?0:this.titleBlockPad||0;this.gridPad.top+=Math.max(0,h-d)}setDimensionsForAxisCharts(){let t=this.w,e=t.globals,s=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();e.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.layout.yLabelsCoords=[],t.layout.yTitleCoords=[],t.config.yaxis.map((f,g)=>{t.layout.yLabelsCoords.push({width:s[g].width,index:g}),t.layout.yTitleCoords.push({width:i[g].width,index:g})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();let a=this.dimXAxis.getxAxisLabelsCoords(),n=this.dimXAxis.getxAxisGroupLabelsCoords(),r=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,r,n),t.layout.translateXAxisY=t.layout.rotateXLabels?this.xAxisHeight/8:-4,t.layout.translateXAxisX=t.layout.rotateXLabels&&t.axisFlags.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(t.layout.rotateXLabels=!1,t.layout.translateXAxisY=-1*((parseInt(t.config.xaxis.labels.style.fontSize,10)||12)/1.5)),t.layout.translateXAxisY=t.layout.translateXAxisY+t.config.xaxis.labels.offsetY,t.layout.translateXAxisX=t.layout.translateXAxisX+t.config.xaxis.labels.offsetX;let o=this.yAxisWidth,l=this.xAxisHeight;t.layout.xAxisLabelsHeight=this.xAxisHeight-r.height,t.layout.xAxisGroupLabelsHeight=t.layout.xAxisLabelsHeight-a.height,t.layout.xAxisLabelsWidth=this.xAxisWidth,t.layout.xAxisHeight=this.xAxisHeight;let c=10;(t.config.chart.type==="radar"||this.isSparkline)&&(o=0,l=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(o=0,l=0,c=0),!this.isSparkline&&t.config.chart.type!=="treemap"&&this.dimXAxis.additionalPaddingXLabels(a);let h=()=>{t.layout.translateX=o+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-this.lgRect.height-l-(!this.isSparkline&&t.config.chart.type!=="treemap"?t.layout.rotateXLabels?10:15:0),t.layout.gridWidth=e.svgWidth-o-this.datalabelsCoords.width*2};switch(t.config.xaxis.position==="top"&&(c=t.layout.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":t.layout.translateY=c,h();break;case"top":t.layout.translateY=this.lgRect.height+c,h();break;case"left":t.layout.translateY=c,t.layout.translateX=this.lgRect.width+o+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-l-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-o-this.datalabelsCoords.width*2;break;case"right":t.layout.translateY=c,t.layout.translateX=o+this.datalabelsCoords.width,t.layout.gridHeight=e.svgHeight-l-12,t.layout.gridWidth=e.svgWidth-this.lgRect.width-o-this.datalabelsCoords.width*2-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,s),new be(this.w,{theme:this.theme,timeScale:this.timeScale}).setYAxisXPosition(s,i)}setDimensionsForNonAxisCharts(){let t=this.w,e=t.globals,s=t.config,i=0;if(t.config.legend.show&&!t.config.legend.floating&&(i=20),s.chart.type==="unit"){let o=s.legend.show&&!s.legend.floating,l=s.legend.position,c=0,h=0;o&&(l==="bottom"||l==="top"?c=this.lgRect.height:h=this.lgRect.width+i),t.layout.gridWidth=e.svgWidth-h,t.layout.gridHeight=e.svgHeight-c,t.layout.translateX=l==="left"?h:0,t.layout.translateY=l==="top"?c:0;return}let a=s.chart.type==="sunburst"?"sunburst":s.chart.type==="pie"||s.chart.type==="polarArea"||s.chart.type==="donut"?"pie":"radialBar",n=s.plotOptions[a].offsetY,r=s.plotOptions[a].offsetX;if(!s.legend.show||s.legend.floating){t.layout.gridHeight=e.svgHeight;let o=t.dom.elWrap.getBoundingClientRect().width;t.layout.gridWidth=Math.min(o,t.layout.gridHeight),t.layout.translateY=n,t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2;return}switch(s.legend.position){case"bottom":t.layout.gridHeight=e.svgHeight-this.lgRect.height,t.layout.gridWidth=e.svgWidth,t.layout.translateY=n-10,t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2;break;case"top":t.layout.gridHeight=e.svgHeight-this.lgRect.height,t.layout.gridWidth=e.svgWidth,t.layout.translateY=this.lgRect.height+n+10,t.layout.translateX=r+(e.svgWidth-t.layout.gridWidth)/2;break;case"left":t.layout.gridWidth=e.svgWidth-this.lgRect.width-i,t.layout.gridHeight=s.chart.height!=="auto"?e.svgHeight:t.layout.gridWidth,t.layout.translateY=n,t.layout.translateX=r+this.lgRect.width+i;break;case"right":t.layout.gridWidth=e.svgWidth-this.lgRect.width-i-5,t.layout.gridHeight=s.chart.height!=="auto"?e.svgHeight:t.layout.gridWidth,t.layout.translateY=n,t.layout.translateX=r+10;break;default:throw new Error("Legend position not supported")}}conditionalChecksForAxisCoords(t,e,s){let i=this.w,a=i.labelData.hasXaxisGroups?2:1,n=s.height+t.height+e.height,r=i.axisFlags.isMultiLineX?1.2:hi,o=i.layout.rotateXLabels?22:10,c=i.layout.rotateXLabels&&i.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*r+a*o+c,this.xAxisWidth=t.width,this.xAxisHeight-e.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeight{h+=f.labels.minWidth,d+=f.labels.maxWidth}),this.yAxisWidthd&&(this.yAxisWidth=d)}},De=1e3,Ee=60*De,Te=60*Ee,we=24*Te,In=7*we,Us=30*we,qt=365*we,Ql=10/(1440*60),qs=[{unit:"second",step:1,approxMs:De},{unit:"second",step:5,approxMs:5*De},{unit:"second",step:15,approxMs:15*De},{unit:"second",step:30,approxMs:30*De},{unit:"minute",step:1,approxMs:Ee},{unit:"minute",step:5,approxMs:5*Ee},{unit:"minute",step:15,approxMs:15*Ee},{unit:"minute",step:30,approxMs:30*Ee},{unit:"hour",step:1,approxMs:Te},{unit:"hour",step:3,approxMs:3*Te},{unit:"hour",step:6,approxMs:6*Te},{unit:"hour",step:12,approxMs:12*Te},{unit:"day",step:1,approxMs:we},{unit:"day",step:2,approxMs:2*we},{unit:"week",step:1,approxMs:In},{unit:"week",step:2,approxMs:2*In},{unit:"month",step:1,approxMs:Us},{unit:"month",step:3,approxMs:3*Us},{unit:"month",step:6,approxMs:6*Us},{unit:"year",step:1,approxMs:qt},{unit:"year",step:2,approxMs:2*qt},{unit:"year",step:5,approxMs:5*qt},{unit:"year",step:10,approxMs:10*qt},{unit:"year",step:25,approxMs:25*qt},{unit:"year",step:50,approxMs:50*qt},{unit:"year",step:100,approxMs:100*qt}],zr=10,Mi=class{constructor(t,e){this.w=t,this.ctx=e,this.tickInterval=null,this.timeScaleArray=[],this.utc=t.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(t,e){let s=this.w;if(s.globals.allSeriesCollapsed)return s.labelData.labels=[],s.labelData.timescaleLabels=[],this.timeScaleArray=[],[];let i=e-t,a=i/we;s.interact.disableZoomIn=!1,s.interact.disableZoomOut=!1,a5e4&&(s.interact.disableZoomOut=!0);let n=Number.isFinite(s.config.xaxis.tickAmount)?s.config.xaxis.tickAmount:zr;this.tickInterval=tc(i,n);let r=this.generateBaseTicks(t,e,this.tickInterval);return this.timeScaleArray=r,r}generateBaseTicks(t,e,s){let i=this.w,a=new mt(i),n=this.utc,r=i.layout.gridWidth,o=e-t,l=[],c=a.ceilToBoundary(t,s.unit,s.step,n),h=0,d=5e3;for(;c<=e&&h0?(c-t)/o*r:0;l.push({timestamp:c,position:g,unit:s.unit,year:f.year,month:f.month+1,day:f.date,hour:f.hour,minute:f.minute,second:f.second,value:c}),c=a.addInterval(c,s.unit,s.step,n),h++}return l}recalcDimensionsBasedOnFormat(t){let e=this.w,s=this.formatDates(t),i=this.removeOverlappingTS(s);e.labelData.timescaleLabels=i.slice();let n=new ye(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(n.layout)}formatDates(t){let e=this.w,s=new mt(e),i=e.config.xaxis.labels.format,a=e.config.xaxis.labels.datetimeFormatter,n=this.utc,r=(l,c=2)=>String(l).padStart(c,"0"),o=i||this._effectiveFormat(t,a);return t.map(l=>{let c=s.getDate(l.timestamp),h=s.formatDate(c,o);return{dateString:`${l.year}-${r(l.month)}-${r(l.day)}T${r(l.hour)}:${r(l.minute)}:${r(l.second)}.000${n?"Z":""}`,position:l.position,value:h,unit:l.unit,year:l.year,month:l.month}})}_effectiveFormat(t,e){if(t.length===0)return e.day||"dd MMM";let s=this.tickInterval&&this.tickInterval.unit||t[0].unit,i=e[s==="week"?"day":s]||e.day||"dd MMM",a=t[0],n=t[t.length-1],r=a.year!==n.year,l=r||a.month!==n.month||a.day!==n.day,c=/y/i.test(i),h=/M/.test(i),d=/d/i.test(i);return s==="month"||s==="week"||s==="day"?r&&!c?i+" yyyy":i:(s==="hour"||s==="minute"||s==="second")&&l&&!d&&!h?(r?"dd MMM yyyy":"dd MMM")+" "+i:i}removeOverlappingTS(t){if(t.length===0)return[];let e=this.w,s=new B(e),i=!1,a;t[0].value&&t.every(o=>o.value.length===t[0].value.length)&&(i=!0,a=s.getTextRects(t[0].value,e.config.xaxis.labels.style.fontSize).width);let n=0;return t.map((o,l)=>{if(l===0||!e.config.xaxis.labels.hideOverlappingLabels)return o;let c=i?a:s.getTextRects(t[n].value,e.config.xaxis.labels.style.fontSize).width,h=t[n].position;return o.position>h+c+10?(n=l,o):null}).filter(o=>o!==null)}};function tc(u,t){if((!Number.isFinite(t)||t<=0)&&(t=zr),u<=0)return qs[0];let e=u/t,s=qs[0],i=1/0;for(let a of qs){let n=Math.abs(Math.log(a.approxMs/e));n{var d,f;let g=((d=t[h])==null?void 0:d.type)==="column"?"bar":((f=t[h])==null?void 0:f.type)||(r==="column"?"bar":r),p=a;p[g]?(g==="rangeArea"?(p[g].series.push(this.w.rangeData.seriesRangeStart[h]),p[g].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[h])):p[g].series.push(c),p[g].i.push(h),g==="bar"&&(e.globals.columnSeries=a.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar","unit","sunburst"].includes(g)?o=g:Yt(g)?(n[g]||(n[g]={series:[],i:[]}),n[g].series.push(c),n[g].i.push(h)):console.warn(`You have specified an unrecognized series type (${g}).`),r!==g&&g!=="scatter"&&l++}),l>0&&(o&&console.warn(`Chart or series type ${o} cannot appear with other chart or series types.`),a.bar.series.length>0&&s.plotOptions.bar.horizontal&&(l-=a.bar.series.length,a.bar={series:[],i:[]},e.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),i.comboCharts||(i.comboCharts=l>0),{seriesTypes:a,customBuckets:n}}plotChartType(t,e){let{w:s,ctx:i}=this,a=i.renderer&&i.renderer.kind==="canvas";a&&i.renderer.beginSeries();let{seriesTypes:n,customBuckets:r}=this._classifySeriesByType(t),o=this._instantiateSeriesRenderers(n,e),l=this._assembleSeriesGraphics(n,r,o,e);if(a){let c=i.renderer;if(c&&c._repaintHostInPlace){c._repaintHostInPlace=!1;let d=this.w.dom.elGraphical.node.querySelector(".apexcharts-canvas-series-wrap");if(d&&c.canRepaintInPlace&&c.canRepaintInPlace())return c.repaintInPlace(),(Array.isArray(l)?l:[l]).forEach(g=>{g&&g.node&&d.appendChild(g.node)}),[]}let h=i.renderer.present();if(h){let d=new B(s).group({class:"apexcharts-canvas-series-wrap"});return d.add(h),(Array.isArray(l)?l:[l]).forEach(g=>{g&&d.add(g)}),d}}return l}_instantiateSeriesRenderers(t,e){let{w:s,ctx:i}=this,{config:a,globals:n}=s,o=t.line.series.length>0||t.area.series.length>0||t.scatter.series.length>0||t.bubble.series.length>0||t.rangeArea.series.length>0||!n.comboCharts&&["line","area","scatter","bubble","rangeArea"].includes(a.chart.type)?new(ut("line"))(i.w,i,e):null,c=t.candlestick.series.length>0||t.boxPlot.series.length>0||!n.comboCharts&&["candlestick","boxPlot"].includes(a.chart.type)?new(ut("candlestick"))(i.w,i,e):null,d=t.violin.series.length>0||!n.comboCharts&&a.chart.type==="violin"?new(ut("violin"))(i.w,i,e):null,f=!n.comboCharts&&["pie","donut","polarArea"].includes(a.chart.type);i.pie=f?new(ut("pie"))(i.w,i):null;let g=t.rangeBar.series.length>0||!n.comboCharts&&a.chart.type==="rangeBar";return i.rangeBar=g?new(ut("rangeBar"))(i.w,i,e):null,{line:o,boxCandlestick:c,violin:d}}_assembleSeriesGraphics(t,e,s,i){let{w:a,ctx:n}=this,{config:r,globals:o}=a,{line:l,boxCandlestick:c,violin:h}=s,d=[];if(o.comboCharts){let f=new lt(this.w);if(t.area.series.length>0&&d.push(...f.drawSeriesByGroup(t.area,o.areaGroups,"area",l)),t.bar.series.length>0)if(r.chart.stacked){let g=new(ut("barStacked"))(n.w,n,i);d.push(g.draw(t.bar.series,t.bar.i))}else n.bar=new(ut("bar"))(n.w,n,i),d.push(n.bar.draw(t.bar.series,t.bar.i));if(t.rangeArea.series.length>0&&d.push(l.draw(t.rangeArea.series,"rangeArea",t.rangeArea.i,t.rangeArea.seriesRangeEnd)),t.line.series.length>0&&d.push(...f.drawSeriesByGroup(t.line,o.lineGroups,"line",l)),t.candlestick.series.length>0&&d.push(c.draw(t.candlestick.series,"candlestick",t.candlestick.i)),t.boxPlot.series.length>0&&d.push(c.draw(t.boxPlot.series,"boxPlot",t.boxPlot.i)),t.violin.series.length>0&&d.push(h.draw(t.violin.series,"violin",t.violin.i)),t.rangeBar.series.length>0&&d.push(n.rangeBar.draw(t.rangeBar.series,t.rangeBar.i)),t.scatter.series.length>0){let g=new(ut("line"))(n.w,n,i,!0);d.push(g.draw(t.scatter.series,"scatter",t.scatter.i))}if(t.bubble.series.length>0){let g=new(ut("line"))(n.w,n,i,!0);d.push(g.draw(t.bubble.series,"bubble",t.bubble.i))}Object.keys(e).forEach(g=>{let p=e[g];if(p.series.length>0){let m=new(ut(g))(n.w,n,i);d.push(m.draw(p.series,g,p.i))}})}else{let f=r.chart.type;switch(f){case"line":d=l.draw(this.w.seriesData.series,"line");break;case"area":d=l.draw(this.w.seriesData.series,"area");break;case"bar":r.chart.stacked?d=new(ut("barStacked"))(n.w,n,i).draw(this.w.seriesData.series):(n.bar=new(ut("bar"))(n.w,n,i),d=n.bar.draw(this.w.seriesData.series));break;case"candlestick":d=c.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":d=c.draw(this.w.seriesData.series,f);break;case"violin":d=h.draw(this.w.seriesData.series,"violin");break;case"rangeBar":d=n.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":d=l.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":{d=new(ut("heatmap"))(n.w,n,i).draw(this.w.seriesData.series);break}case"treemap":{d=new(ut("treemap"))(n.w,n).draw(this.w.seriesData.series);break}case"unit":{d=new(ut("unit"))(n.w,n).draw(this.w.seriesData.series);break}case"sunburst":{d=new(ut("sunburst"))(n.w,n).draw(this.w.seriesData.series);break}case"pie":case"donut":case"polarArea":d=n.pie.draw(this.w.seriesData.series);break;case"radialBar":{d=new(ut("radialBar"))(n.w,n).draw(this.w.seriesData.series);break}case"radar":{d=new(ut("radar"))(n.w,n).draw(this.w.seriesData.series);break}default:Yt(f)?d=new(ut(f))(n.w,n,i).draw(this.w.seriesData.series,f):d=l.draw(this.w.seriesData.series)}}return d}_extractDimensionUnit(t){return String(t).split(/[0-9]+/g).pop()}setSVGDimensions(){var t;let{globals:e,config:s}=this.w;s.chart.width=s.chart.width||"100%",s.chart.height=s.chart.height||"auto";let i=s.chart.width,a=s.chart.height;e.svgWidth=NaN,e.svgHeight=NaN;let n=T.getDimensions(this.el),r=this._extractDimensionUnit(i);r==="%"?T.isNumber(n[0])&&(n[0].width===0&&(n=T.getDimensions(this.el.parentNode)),e.svgWidth=n[0]*parseInt(i,10)/100):(r==="px"||r==="")&&(e.svgWidth=parseInt(i,10));let o=this._extractDimensionUnit(a);if(a!=="auto"&&a!=="")if(o==="%"){let l=T.getDimensions(this.el.parentNode);e.svgHeight=l[1]*parseInt(a,10)/100}else e.svgHeight=parseInt(a,10);else e.svgHeight=e.axisCharts?e.svgWidth/1.61:e.svgWidth/1.2;if(e.svgWidth=Math.max(e.svgWidth,0),e.svgHeight=Math.max(e.svgHeight,0),B.setAttrs(this.w.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),o!=="%"&&H.isBrowser()){let l=e.axisCharts&&(s.grid.show||s.dataLabels.enabled||s.xaxis.labels.show||s.xaxis.axisBorder.show||s.xaxis.axisTicks.show||s.yaxis.some(d=>d.show&&(d.labels.show||d.axisBorder.show||d.axisTicks.show))),c=s.chart.sparkline.enabled||!l?0:s.chart.parentHeightOffset,h=this.w.dom.Paper.node;(t=h.parentNode)!=null&&t.parentNode&&(h.parentNode.parentNode.style.minHeight=`${e.svgHeight+c}px`)}this.w.dom.elWrap.style.width=`${e.svgWidth}px`,this.w.dom.elWrap.style.height=`${e.svgHeight}px`,e.lastResizeSignature=this.getResizeSignature()}getResizeSignature(){let{config:t}=this.w,e=(t.chart.width||"100%").toString().trim(),s=(t.chart.height||"auto").toString().trim(),i=0,a=0;if(e.endsWith("%")){let r=T.getDimensions(this.el);r[0]||(r=T.getDimensions(this.el.parentNode)),i=r[0]||0}s.endsWith("%")&&(a=T.getDimensions(this.el.parentNode)[1]||0);let n={w:Math.round(i),h:Math.round(a)};return t.responsive&&t.responsive.length&&H.isBrowser()&&(n.iw=window.innerWidth),n}shiftGraphPosition(){let{globals:t}=this.w,{translateY:e,translateX:s}=t;B.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${s}, ${e})`})}resizeNonAxisCharts(){var t,e,s,i,a,n,r,o,l;let{w:c}=this,h=c.config.chart.height?String(c.config.chart.height):"",d=h!==""&&h!=="auto",f=h.includes("%"),g=0,p=c.config.chart.sparkline.enabled?1:15;p+=c.layout.gridPad.bottom,["top","bottom"].includes(c.config.legend.position)&&c.config.legend.show&&!c.config.legend.floating&&(g=((e=(t=this.ctx.legend)==null?void 0:t.legendHelpers.getLegendDimensions().clwh)!=null?e:0)+7);let m=c.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie, .apexcharts-sunburst"),b=c.globals.pieExternalLabelMarginY||0,x=b>0?c.globals.radialSize*2+b*2:c.globals.radialSize*2.05,_=c.config.chart.type==="sunburst"?"sunburst":c.config.chart.type==="pie"||c.config.chart.type==="donut"||c.config.chart.type==="polarArea"?"pie":"radialBar",w=Math.abs(c.config.plotOptions[_].endAngle-c.config.plotOptions[_].startAngle);if(m&&!c.config.chart.sparkline.enabled&&w<360){let v=T.getBoundingClientRect(this.w.dom.Paper.node),A=1/0,S=-1/0,C=F=>{var R,N,z,$;if((R=F.classList)!=null&&R.contains("apexcharts-radialbar-hollow"))return;let W=(z=(N=F.tagName)==null?void 0:N.toLowerCase)==null?void 0:z.call(N);if(W==="text"||W==="tspan")return;let Y=Array.from(($=F.children)!=null?$:[]);if(Y.length>0){Y.forEach(X=>C(X));return}let I=T.getBoundingClientRect(F);if(I.bottom-I.top>0){let X=I.top-v.top,V=I.bottom-v.top;XS&&(S=V)}};Array.from((s=m.children)!=null?s:[]).forEach(F=>C(F)),Number.isFinite(A)||(A=0),Number.isFinite(S)||(S=T.getBoundingClientRect(m).bottom-v.top);let M=Math.max(p,c.globals.radialSize*.2),k=Math.max(M-A,0);k!==0&&(c.layout.translateY=((i=c.layout.translateY)!=null?i:0)+k,B.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${(a=c.layout.translateX)!=null?a:0}, ${c.layout.translateY})`}),S+=k),x=S>0?S:c.globals.radialSize*2.05;let L=Math.max(M,A),E=Math.ceil(x+g+L),D=(n=c.config.chart.offsetY)!=null?n:0,P=E+Math.max(D,0);if(!f){if(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(P)),this.w.dom.elWrap.style.height=`${P}px`,B.setAttrs(this.w.dom.Paper.node,{height:E}),H.isBrowser()){let F=(r=this.w.dom.Paper.node.parentNode)==null?void 0:r.parentNode;F&&(F.style.minHeight=`${P}px`)}c.globals.svgHeight=E,c.config.legend.position==="bottom"&&c.config.legend.show&&!c.config.legend.floating&&((o=this.ctx.legend)==null||o.setLegendWrapXY(20,0))}return}let y=Math.ceil(x+this.w.layout.translateY+g+p);if(!d&&(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(y)),this.w.dom.elWrap.style.height=`${y}px`,B.setAttrs(this.w.dom.Paper.node,{height:y}),H.isBrowser())){let v=(l=this.w.dom.Paper.node.parentNode)==null?void 0:l.parentNode;v&&(v.style.minHeight=`${y}px`)}}coreCalculations(){new Oe(this.w).init()}resetGlobals(){let t=()=>this.w.config.series.map(()=>[]),e=new ls,{globals:s}=this.w,i={dataWasParsed:this.w.axisFlags.dataWasParsed,originalSeries:s.originalSeries};e.initGlobalVars(s),s.seriesXvalues=t(),s.seriesYvalues=t(),i.dataWasParsed&&(this.w.axisFlags.dataWasParsed=i.dataWasParsed,s.originalSeries=i.originalSeries)}isMultipleY(){return Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1?(this.w.globals.isMultipleYAxis=!0,!0):!1}xySettings(){let{w:t}=this,e=null;if(t.globals.axisCharts){if(t.config.xaxis.crosshairs.position==="back"&&new Be(this.w).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new Be(this.w).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Mi(this.w,this.ctx);let i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new lt(this.w).getCalculatedRatios()}return e}updateSourceChart(t){this.ctx.w.interact.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}setupBrushHandler(){let{ctx:t,w:e}=this;if(e.config.chart.brush.enabled&&typeof e.config.chart.events.selection!="function"){let s=Array.isArray(e.config.chart.brush.targets)?e.config.chart.brush.targets:[e.config.chart.brush.target];s.forEach(i=>{let a=t.constructor.getChartByID(i);if(!a){console.warn(`ApexCharts: brush target "${i}" was not found. Ensure the target chart is rendered (and its chart.id matches) before the brush chart.`);return}a.w.globals.brushSource=this.ctx,typeof a.w.config.chart.events.zoomed!="function"&&(a.w.config.chart.events.zoomed=()=>this.updateSourceChart(a)),typeof a.w.config.chart.events.scrolled!="function"&&(a.w.config.chart.events.scrolled=()=>this.updateSourceChart(a))}),e.config.chart.events.selection=(i,a)=>{s.forEach(n=>{let r=t.constructor.getChartByID(n);r&&r.ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max}},!1,!1,!1,!1)})}}}getAccessibleChartLabel(){let t=this.w,e=t.config;if(e.chart.accessibility&&e.chart.accessibility.description)return e.chart.accessibility.description;let s=e.chart.type,i=[];if(e.title.text)i.push(`${e.title.text}. ${s} chart`),e.subtitle.text&&i.push(e.subtitle.text);else{let a=Array.isArray(t.seriesData.seriesNames)&&t.seriesData.seriesNames.length?t.seriesData.seriesNames.filter(Boolean):Array.isArray(e.series)?e.series.map(r=>typeof r=="object"&&r!==null?r.name:null).filter(Boolean):[],n=t.seriesData.series.length||(e.series?e.series.length:0);a.length?i.push(`${s} chart with ${n} data series: ${a.join(", ")}`):i.push(`${s} chart with ${n} data series`)}return i.join(". ")}},Ti="__apexcharts_series_transforms__";globalThis[Ti]||(globalThis[Ti]={});function Wr(){return globalThis[Ti]}function Ga(u,t){if(!u||typeof u!="string"){console.warn("ApexCharts: registerSeriesTransform requires a non-empty name.");return}if(typeof t!="function"){console.warn(`ApexCharts: registerSeriesTransform("${u}") expects a function (series, w) => series.`);return}Wr()[u]=t}function ac(u){return u&&Wr()[u]||null}function nc(u,t){let e=u.config.drilldown;return(e&&Array.isArray(e.series)?e.series:[]).find(i=>i&&i.id===t)}function gs(u,t,e,s,i,a=null,n={}){var r,o,l;let c=t&&typeof t=="object",h=c&&(o=(r=t.x)!=null?r:t.name)!=null?o:"",d=Number(c?(l=t.y)!=null?l:t.value:t),f={name:String(h),value:isNaN(d)?null:d,color:c&&t.color?t.color:void 0,_key:`${i}/${e}:${h}`};if(s&&!f.color&&(f.color=s[e%s.length]),n.keepDatum&&(f._datum=t),c&&Array.isArray(t.children)&&t.children.length)f.children=t.children.map((g,p)=>gs(u,g,p,null,f._key,a,n));else if(c&&t.drilldown!=null&&n.expandDrilldown!==!1){let g=a||new Set;if(!g.has(t.drilldown)){let p=nc(u,t.drilldown);if(p&&Array.isArray(p.data)&&p.data.length){let m=new Set(g);m.add(t.drilldown);let b=Array.isArray(p.colors)?p.colors:null;f.children=p.data.map((x,_)=>gs(u,x,_,b,f._key,m,n))}}}return f}function rc(u,t={}){let e=u.config.series,s=e&&e[0],i=s&&Array.isArray(s.data)?s.data:e;return Array.isArray(i)?i.map((a,n)=>gs(u,a,n,null,"",null,t)):[]}function Hr(u,t,e={}){let s=t||u.config.series;return Array.isArray(s)?s.map((i,a)=>{var n,r;let o=i&&Array.isArray(i.data)?i.data:[],l=`${a}:${(n=i?.name)!=null?n:""}`;return{name:String((r=i?.name)!=null?r:""),value:null,color:i?.color||void 0,_key:l,_seriesIndex:a,children:o.map((h,d)=>gs(u,h,d,null,l,null,e))}}):[]}function Ds(u){u.children&&u.children.length&&(u.children.forEach(t=>Ds(t)),(u.value==null||isNaN(u.value))&&(u.value=u.children.reduce((t,e)=>t+Math.max(0,e.value||0),0))),(u.value==null||isNaN(u.value))&&(u.value=0)}function oc(u,t={}){if(!Array.isArray(u))return!1;let e=t.drilldown!==!1;for(let s=0;s{let a=[],n=(r,o,l)=>{r._parent=l,r._depth=o,r._si=i,r._leaf=!(r.children&&r.children.length),o>e&&(e=o),r._leaf?(r._di=a.length,a.push(r)):(r._di=-1,r.children.forEach(c=>n(c,o+1,r)))};n(s,0,null),t.push(a)}),{leaves:t,maxDepth:e}}function cc(u){let t=u._datum;if(t&&typeof t=="object"){let e=j(G({},t),{x:u.name,y:u.value});return delete e.children,e}return{x:u.name,y:u.value}}function hc(u,t){let e=Hr(u,t,{keepDatum:!0,expandDrilldown:$r(u)});e.forEach(Ds);let{leaves:s,maxDepth:i}=Gr(e),a=t.map((n,r)=>j(G({},n),{data:(s[r]||[]).map(cc)}));return{roots:e,leafSeries:a,maxDepth:i}}function dc(u){let t=u.globals.treemapRoots;if(t&&t.length)return{roots:t,maxDepth:u.globals.treemapMaxDepth||1,nested:!0};let e=Hr(u,u.config.series,{keepDatum:!0,expandDrilldown:!1});e.forEach(Ds);let{maxDepth:s}=Gr(e);return{roots:e,maxDepth:s,nested:!1}}var uc=["histogram"],Ye=class u{constructor(t,{resetGlobals:e=()=>{},isMultipleY:s=()=>{}}={}){this.w=t,this.resetGlobals=e,this.isMultipleY=s,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this._warnedMissingTransform=!1,this.coreUtils=new lt(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){let t=this.w.config.series,e=new ct(this.w);this.activeSeriesIndex=e.getActiveConfigSeriesIndex();let s=t[this.activeSeriesIndex];return s&&s.data&&s.data.length>0&&s.data[0]!==null&&typeof s.data[0]<"u"?s.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var t;let e=this.getFirstDataPoint();if(!e||typeof e.x>"u")return!1;let s=(t=this.w.config.series[this.activeSeriesIndex])==null?void 0:t.data;if(s){let i=a=>a&&typeof a.x<"u";for(let a=1;a2)return!1;let v=y[0],A=y[1];if(f)if(typeof v=="number"){v===v&&(vp&&(p=v));let S=v-x;S>0?So&&(o=A),A=1e-6&&S<1e21){let C=""+A,M=C.indexOf("."),k=M===-1?0:C.length-M-1;k>d&&(d=k)}else{let C=T.noExponents(A);T.isFloat(C)&&(d=Math.max(d,C.toString().split(".")[1].length))}}}else h=!0;else if(A===null)h=!0;else return!1;n[w]=A,r[w]=v}this.twoDSeries=n,this.twoDSeriesX=r,this.w.axisFlags.dataFormatXNumeric=!0;let _=(i=(s=this.w.seriesData)._parsedExtrema)!=null?i:s._parsedExtrema=[];return _[e]={ref:n,len:a,maxY:o,lowestY:l,negMinY:c,hasNulls:h,yDec:d,xref:r,xNumeric:f,minX:g,maxX:p,xSorted:m,minXDiff:b},!0}handleFormat2DArray(t,e){let s=this.w.config,i=t[e].data,a=s.chart.type==="boxPlot"||s.series[e].type==="boxPlot";if(!(!a&&s.xaxis.type!=="datetime"&&this._fast2DArrayParse(i,e)))for(let n=0;n=5?this.twoDSeries.push(T.parseNumber(r[4])):this.twoDSeries.push(T.parseNumber(l)),this.w.axisFlags.dataFormatXNumeric=!0),s.xaxis.type==="datetime"){let h=new Date(o).getTime();this.twoDSeriesX.push(h)}else this.twoDSeriesX.push(o);typeof c<"u"&&(this.threeDSeries.push(c),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(t,e){let s=this.w.config,i=this.w.globals,a=new mt(this.w),n=t[e].data,r=e;i.collapsedSeriesIndices.indexOf(e)>-1&&(r=this.activeSeriesIndex);let o=t[r].data;for(let l=0;l"u"&&(this.seriesGoals[e]=[]),typeof c.goals<"u"&&Array.isArray(c.goals)?this.seriesGoals[e].push(c.goals):this.seriesGoals[e].push(null),typeof c.z<"u"&&(this.threeDSeries.push(c.z),this.w.axisFlags.isDataXYZ=!0)}for(let l=0;l{i&&i.forEach(a=>{let n=a.y,r=n.length;if(!(r<=1))for(let o=0;oT.parseNumber(f)).filter(f=>f!==null&&!isNaN(f));l=d.length?Math.min(...d):null,c=d.length?Math.max(...d):null}else{let h=o==null?null:o.y;Array.isArray(h)?(l=T.parseNumber(h[0]),c=T.parseNumber(h[h.length-1])):l=c=T.parseNumber(h)}a.push(l),n.push(c)}this.w.rangeData.seriesRangeStart[e]=a,this.w.rangeData.seriesRangeEnd[e]=n}handleCandleStickBoxData(t,e){let s={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",t,e)),this.w.candleData.seriesCandleO[e]=s.o,this.w.candleData.seriesCandleH[e]=s.h,this.w.candleData.seriesCandleM[e]=s.m,this.w.candleData.seriesCandleL[e]=s.l,this.w.candleData.seriesCandleC[e]=s.c,this.w.candleData.seriesBoxPoints[e]=s.points||[],s}handleViolinData(t,e){var s,i,a,n,r,o;let l=this.w,c=t[e].data,h=[],d=[],f=[],g=[],p=[];for(let m=0;mv&&(v=E,A=L),LC&&(C=L))}let M=[];for(let k=0;k<_.length;k++){let L=T.parseNumber(_[k]);L!==null&&(M.push(L),LC&&(C=L))}h.push({values:w,weights:y,maxWeight:v}),d.push(M),f.push(S===1/0?0:S),g.push(C===-1/0?0:C),p.push(A!==null?A:M.length?M[Math.floor(M.length/2)]:0)}l.violinData.seriesViolinDensity[e]=h,l.violinData.seriesViolinPoints[e]=d,l.violinData.seriesViolinMin[e]=f,l.violinData.seriesViolinMax[e]=g,this.twoDSeries=p}handleRangeDataFormat(t,e,s){let i=[],a=[],n=new Map,r=[];if(e[s].data.forEach(o=>{if(!n.has(o.x)){let l={x:o.x,overlaps:new Set,y:[]};n.set(o.x,l),r.push(l)}}),t==="array")for(let o=0;om.slice(1):f=m=>Array.isArray(m[1])?m[1]:[]}else f=g=>Array.isArray(g.y)?g.y:[];for(let g=0;g=2&&(n.push(p[0]),r.push(p[1]),a?(o.push(p[2]),l.push(p[3]),c.push(p[4])):(l.push(p[2]),c.push(p[3])));let m=d[g]&&d[g].points;h.push(Array.isArray(m)?m:[])}return{o:n,h:r,m:o,l,c,points:h}}parseDataAxisCharts(t){var e,s,i,a,n,r;let o=this.w.config,l=this.w.globals,c=new mt(this.w);this.w.seriesData._parsedExtrema=[];let h=o.labels.length>0?o.labels.slice():o.xaxis.categories.slice();this.w.axisFlags.isRangeBar=o.chart.type==="rangeBar"&&l.isBarHorizontal,this.w.labelData.hasXaxisGroups=o.xaxis.type==="category"&&o.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=o.xaxis.group.groups),t.forEach((p,m)=>{p.name!==void 0?this.w.seriesData.seriesNames.push(p.name):this.w.seriesData.seriesNames.push("series-"+parseInt(String(m+1),10))}),this.coreUtils.setSeriesYAxisMappings();let d=[],f=[...new Set(o.series.map(p=>p.group))];o.series.forEach((p,m)=>{let b=f.indexOf(p.group);d[b]||(d[b]=[]),d[b].push(this.w.seriesData.seriesNames[m])}),this.w.labelData.seriesGroups=d;let g=()=>{for(let p=0;p"u"&&(console.error("It is a possibility that you may have not included 'data' property in series."),t[p]=j(G({},t[p]),{data:[]}));let m=o.chart.dataReducer,b=(s=(e=l.dataReducerRawSeries)==null?void 0:e[p])==null?void 0:s.data;if(m?.enabled&&this.isMultiFormat()&&Array.isArray(b)&&b.length>((i=m.threshold)!=null?i:500)){let _=(a=m.targetPoints)!=null?a:250,w=o.xaxis.min,y=o.xaxis.max,v=w==null&&y==null?b:u.sliceByXRange(b,w,y),A=v;if(v.length>_){let S=Array.isArray(v[0])?(r=v[0])==null?void 0:r[1]:(n=v[0])==null?void 0:n.y;Array.isArray(S)?S.length===4?A=u.ohlcAggregate(v,_):S.length===2&&(A=u.rangeAggregate(v,_)):A=u.lttbDownsample(v,_)}t[p]=j(G({},t[p]),{data:A})}(o.chart.type==="rangeBar"||o.chart.type==="rangeArea"||t[p].type==="rangeBar"||t[p].type==="rangeArea")&&(this.w.axisFlags.isRangeData=!0,this.handleRangeData(t,p));let x=t[p].type||o.chart.type;if(Yt(x)){let _=ut(x),w=_&&_.yExtent;(_&&_.dataType==="rangeXY"||typeof w=="function")&&(this.w.axisFlags.isRangeData=!0,this.handleCustomRangeData(t,p,w))}if(this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,p):this.isFormatXY()&&this.handleFormatXY(t,p),(o.chart.type==="candlestick"||t[p].type==="candlestick"||o.chart.type==="boxPlot"||t[p].type==="boxPlot")&&this.handleCandleStickBoxData(t,p),(o.chart.type==="violin"||t[p].type==="violin")&&this.handleViolinData(t,p),this.w.seriesData.series.push(this.twoDSeries),this.w.labelData.labels.push(this.twoDSeriesX),this.w.seriesData.seriesX.push(this.twoDSeriesX),this.w.seriesData.seriesGoals=this.seriesGoals,p===this.activeSeriesIndex&&!this.fallbackToCategory&&(this.w.axisFlags.isXNumeric=!0);else{o.xaxis.type==="datetime"?(this.w.axisFlags.isXNumeric=!0,g(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):o.xaxis.type==="numeric"&&(this.w.axisFlags.isXNumeric=!0,h.length>0&&(this.twoDSeriesX=h,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);let _=t[p].data.map(w=>T.parseNumber(w));this.w.seriesData.series.push(_)}this.w.seriesData.seriesZ.push(this.threeDSeries),t[p].color!==void 0?this.w.seriesData.seriesColors.push(t[p].color):this.w.seriesData.seriesColors.push(void 0)}return this.w}parseDataNonAxisCharts(t){let e=this.w.config;this.w.seriesData.unitData=[];let s=Array.isArray(t)&&t.every(n=>typeof n=="number")&&e.labels.length>0,i=Array.isArray(t)&&t.some(n=>n&&typeof n=="object"&&n.data||n&&typeof n=="object"&&n.parsing);if(e.chart.type==="unit"&&i&&!s)return this.parseUnitSeries(t);if(s&&i&&console.warn("ApexCharts: Both old format (numeric series + labels) and new format (series objects with data/parsing) detected. Using old format for backward compatibility."),s){this.w.seriesData.series=t.slice(),this.w.seriesData.seriesNames=e.labels.slice();for(let n=0;ntypeof n=="number")){this.w.seriesData.series=t.slice(),this.w.seriesData.seriesNames=[];for(let n=0;n{let r=T.parseNumber(n);return r>100&&console.warn(`ApexCharts: RadialBar value ${r} > 100, consider using percentage values (0-100)`),r}));for(let n=0;n{var o;let l=n&&Array.isArray(n.data)?n.data:[];s.push(l.length);let c=n&&n.name!==void 0&&n.name!==null?n.name:void 0;i.push((o=c??e.labels[r])!=null?o:`series-${r+1}`),a.push(l.slice())}),this.w.seriesData.series=s,this.w.seriesData.seriesNames=i,this.w.seriesData.unitData=a,this.w}resetParsingFlags(){let t=this.w;t.axisFlags.dataWasParsed=!1,t.globals.originalSeries=null,t.config.series&&t.config.series.forEach(e=>{e.__apexParsed&&delete e.__apexParsed})}extractPieDataFromSeries(t){let e=[],s=[];if(!Array.isArray(t))return console.warn("ApexCharts: Expected array for series data"),{values:[],labels:[]};if(t.length===0)return console.warn("ApexCharts: Empty series array"),{values:[],labels:[]};let i=t[0];if(typeof i=="object"&&i!==null&&i.data)this.extractPieDataFromSeriesObjects(t,e,s);else return console.warn("ApexCharts: Unsupported series format for pie/donut/radialBar. Expected series objects with data property."),{values:[],labels:[]};return{values:e,labels:s}}extractPieDataFromSeriesObjects(t,e,s){t.forEach((i,a)=>{if(!i.data||!Array.isArray(i.data)){console.warn(`ApexCharts: Series ${a} has no valid data array`);return}i.data.forEach(n=>{typeof n=="object"&&n!==null?n.x!==void 0&&n.y!==void 0?(s.push(String(n.x)),e.push(T.parseNumber(n.y))):console.warn("ApexCharts: Invalid data point format for pie chart. Expected {x, y} format:",n):console.warn("ApexCharts: Expected object data point, got:",typeof n)})})}handleExternalLabelsData(t){let e=this.w.config;if(e.xaxis.categories.length>0)this.w.labelData.labels=e.xaxis.categories;else if(e.labels.length>0)this.w.labelData.labels=e.labels.slice();else if(this.fallbackToCategory){if(this.w.labelData.labels=this.w.labelData.labels[0],this.w.rangeData.seriesRange.length){this.w.rangeData.seriesRange.map(i=>{i.forEach(a=>{this.w.labelData.labels.indexOf(a.x)<0&&a.x&&this.w.labelData.labels.push(a.x)})});let s=this.w.labelData.labels;if(s.length>0&&(typeof s[0]=="number"||typeof s[0]=="string"))this.w.labelData.labels=[...new Set(s)];else{let i=new Map;for(let a of s){let n=JSON.stringify(a);i.has(n)||i.set(n,a)}this.w.labelData.labels=Array.from(i.values())}}e.xaxis.convertedCatToNumeric&&(new Lt(e).convertCatToNumericXaxis(e,this.w.seriesData.seriesX[0]),this._generateExternalLabels(t))}else this._generateExternalLabels(t)}_generateExternalLabels(t){let e=this.w.globals,s=this.w.config,i=[];if(e.axisCharts){if(this.w.seriesData.series.length>0)if(this.isFormatXY()){let a=s.series.map(r=>{let o=new Map;for(let l of r.data)o.has(l.x)||o.set(l.x,l);return Array.from(o.values())}),n=a.reduce((r,o,l,c)=>c[r].length>o.length?r:l,0);for(let r=0;rn+1);for(let a=0;as.xaxis.labels.formatter(a))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(t){let e=this.w.config,s=this.w.globals,i=e.parsing;if(this.w.axisFlags.dataWasParsed)return t;let a=!!(i&&(i.x||i.y||i.z)),n=t.some(o=>o.parsing&&(o.parsing.x||o.parsing.y||o.parsing.z));if(!a&&!n)return t;let r=t.map((o,l)=>{var c,h,d,f,g;if(!o.data||!Array.isArray(o.data)||o.data.length===0)return o;let p={x:((c=o.parsing)==null?void 0:c.x)||i?.x,y:((h=o.parsing)==null?void 0:h.y)||i?.y,z:((d=o.parsing)==null?void 0:d.z)||i?.z};if(!p.x&&!p.y)return o;let m=o.data[0];if(typeof m=="object"&&m!==null&&(Object.prototype.hasOwnProperty.call(m,"x")||Object.prototype.hasOwnProperty.call(m,"y"))||Array.isArray(m))return o;if(!p.x||!p.y||Array.isArray(p.y)&&p.y.length===0){let x=[];p.x||x.push("x"),(!p.y||Array.isArray(p.y)&&p.y.length===0)&&x.push("y");let _=(f=o.name)!=null?f:`series[${l}]`;return console.warn(`ApexCharts [${this.w.globals.chartID}]: "${_}" has a parseData config but is missing the '${x.join("', '")}' field specification.`,{parsing:(g=o.parsing)!=null?g:i}),o}let b=o.data.map((x,_)=>{if(typeof x!="object"||x===null)return console.warn(`ApexCharts: Series ${l}, data point ${_} is not an object, skipping parsing`),x;let w=this.getNestedValue(x,p.x),y,v;if(Array.isArray(p.y)){let S=p.y.map(C=>this.getNestedValue(x,C));this.w.config.chart.type==="bubble"?(S.length<2&&console.warn(`ApexCharts: series[${l}] bubble chart requires parseData.y to have at least 2 fields (y and z). Got: ${JSON.stringify(p.y)}`),y=S[0]):y=S}else y=this.getNestedValue(x,p.y);p.z&&(v=this.getNestedValue(x,p.z)),w===void 0&&console.warn(`ApexCharts: Series ${l}, data point ${_} missing field '${p.x}'`),y===void 0&&console.warn(`ApexCharts: Series ${l}, data point ${_} missing field '${p.y}'`);let A={x:w,y,z:void 0};if(this.w.config.chart.type==="bubble"&&Array.isArray(p.y)&&p.y.length===2){let S=this.getNestedValue(x,p.y[1]);S!==void 0&&(A.z=S)}return v!==void 0&&(A.z=v),A});return j(G({},o),{data:b,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,s.originalSeries||(s.originalSeries=T.clone(t)),r}getNestedValue(t,e){if(!t||typeof t!="object"||!e)return;if(e.indexOf(".")===-1)return t[e];let s=e.split("."),i=t;for(let a=0;aj(G({},a),{data:[]})))}flattenTreemapHierarchy(t){let e=this.w,s=e.globals;if(e.config.chart.type!=="treemap"||!Array.isArray(t))return t;if(!s.treemapRawSeries){if(!lc(e,t))return s.treemapRoots=null,t;s.treemapRawSeries=t.map(r=>j(G({},r),{data:Array.isArray(r?.data)?r.data.slice():r?.data}))}let{roots:i,leafSeries:a,maxDepth:n}=hc(e,s.treemapRawSeries);return s.treemapRoots=i,s.treemapMaxDepth=n,a}expandScatterJitterData(t){var e,s;let i=this.w.config,a=i.chart.type==="scatter"||i.chart.type==="bubble",n=(s=(e=i.plotOptions)==null?void 0:e.scatter)==null?void 0:s.jitter;if(!a||!n||!n.enabled||!Array.isArray(t))return t;if(!t.some(d=>Array.isArray(d?.data)&&d.data.some(f=>f&&!Array.isArray(f)&&Array.isArray(f.y))))return i.xaxis.type!=="datetime"&&(Array.isArray(i.xaxis.categories)&&i.xaxis.categories.length?this._applyBandAxis(i.xaxis.categories.slice()):Array.isArray(i.xaxis._scatterBandLabels)&&i.xaxis._scatterBandLabels.length&&this._applyBandAxis(i.xaxis._scatterBandLabels)),t;let o=[],l=new Map;t.forEach(d=>{Array.isArray(d?.data)&&d.data.forEach(f=>{if(f&&Array.isArray(f.y)){let g=String(f.x);l.has(g)||(l.set(g,o.length),o.push(f.x))}})});let c=n.maxPoints||5e3,h=t.map(d=>{if(!Array.isArray(d?.data))return d;let f=[];return d.data.forEach(g=>{if(g&&Array.isArray(g.y)){let p=l.get(String(g.x)),m=g.y,b=m.length>c?Math.ceil(m.length/c):1;for(let x=0;xMath.max(0,Math.min(i-1,c)),o=r(Math.round(s.min+.49)),l=r(Math.round(s.max-.49));l{let l=Math.round(o);return Math.abs(o-l)<1e-6&&t[l]!==void 0?t[l]:""});r._scatterBand=!0,s.labels.formatter=r}}parseData(t){var e,s,i,a,n,r,o;let l=this.w,c=l.config,h=l.globals;if(t=this.parseRawDataIfNeeded(t),t=this.applySeriesTransform(t),t=this.expandScatterJitterData(t),t=this.flattenTreemapHierarchy(t),(e=c.chart.dataReducer)!=null&&e.enabled&&h.axisCharts&&!h.dataReducerRawSeries){h.dataReducerRawSeries=t.map(p=>({data:Array.isArray(p?.data)?p.data.slice():p?.data}));let f=1/0,g=-1/0;for(let p of t){let m=p?.data;if(!Array.isArray(m)||m.length===0)continue;let b=!Array.isArray(m[0]),x=b?(s=m[0])==null?void 0:s.x:(i=m[0])==null?void 0:i[0],_=b?(a=m[m.length-1])==null?void 0:a.x:(n=m[m.length-1])==null?void 0:n[0];typeof x=="number"&&(f=Math.min(f,x)),typeof _=="number"&&(g=Math.max(g,_))}f!==1/0&&(h.dataReducerRawMinX=f,h.dataReducerRawMaxX=g)}if(h.dataReducerRawSeries&&((r=c.chart.dataReducer)!=null&&r.enabled)&&(t=t.map(f=>G({},f))),c.series=t,h.dataReducerRawSeries&&((o=c.chart.dataReducer)!=null&&o.enabled)){let f=h.dataReducerRawSeries;h.initialSeries=t.map((g,p)=>{var m,b,x;return j(G({},g),{data:(x=(b=(m=f[p])==null?void 0:m.data)==null?void 0:b.slice())!=null?x:g.data})})}else h.histogramRawSeries?h.initialSeries=h.histogramRawSeries:h.treemapRawSeries?h.initialSeries=h.treemapRawSeries:h.initialSeries=t;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),h.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),c.chart.stacked){let f=new ct(this.w);this.w.seriesData.series=f.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),h.axisCharts?(u._defineLazyResult(this.w.seriesData,"stackedSeriesTotals",()=>this.coreUtils.getStackedSeriesTotals()),u._defineLazyResult(this.w.seriesData,"stackedSeriesTotalsByGroups",()=>this.coreUtils.getStackedSeriesTotalsByGroups()),u._defineLazyResult(h,"seriesPercent",()=>(this.coreUtils.getPercentSeries(),h.seriesPercent))):this.coreUtils.getPercentSeries(),!this.w.axisFlags.dataFormatXNumeric&&(!this.w.axisFlags.isXNumeric||c.xaxis.type==="numeric"&&c.labels.length===0&&c.xaxis.categories.length===0)&&this.handleExternalLabelsData(t);let d=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let f=0;fl.x:l=>l[0],r=0;if(e!=null){let l=0,c=i-1;for(;l<=c;){let h=l+c>>1;n(t[h])>1;n(t[h])>s?c=h-1:l=h+1}o=Math.min(i,l+1)}return r===0&&o===i?t.slice():t.slice(r,o)}static lttbDownsample(t,e){let s=t.length;if(e>=s||e<3)return t;let i=!Array.isArray(t[0]),a=i?c=>c.x:c=>c[0],n=i?c=>c.y:c=>c[1],r=[];r.push(t[0]);let o=(s-2)/(e-2),l=0;for(let c=0;cw&&(w=A,y=v)}r.push(t[y]),l=y}return r.push(t[s-1]),r}static ohlcAggregate(t,e){let s=t.length;if(e>=s||e<1)return t;let i=!Array.isArray(t[0]),a=i?c=>c.x:c=>c[0],n=i?c=>c.y:c=>c[1],r=i?(c,h)=>({x:c,y:h}):(c,h)=>[c,h],o=[],l=s/e;for(let c=0;cp&&(p=_[1]),_[2]=s||e<1)return t;let i=!Array.isArray(t[0]),a=i?c=>c.x:c=>c[0],n=i?c=>c.y:c=>c[1],r=i?(c,h)=>({x:c,y:h}):(c,h)=>[c,h],o=[],l=s/e;for(let c=0;cg&&(g=x))}}o.push(r(a(t[h]),f===1/0?[null,null]:[f,g]))}return o}excludeCollapsedSeriesInYAxis(){let t=this.w,e=[];t.globals.seriesYAxisMap.forEach((s,i)=>{let a=0;s.forEach(n=>{t.globals.collapsedSeriesIndices.indexOf(n)!==-1&&a++}),a>0&&a==s.length&&e.push(i)}),t.globals.ignoreYAxisIndexes=e.map(s=>s)}},Pi=class{constructor(t,e){this.w=t,this.ctx=e}_updateOptions(t,e=!1,s=!0,i=!0,a=!1){return new Promise((n,r)=>{let o=[this.ctx];i&&(o=this.ctx.getSyncedCharts()),this.w.globals.isExecCalled&&(o=[this.ctx],this.w.globals.isExecCalled=!1),o.forEach((l,c)=>{var h,d;let f=l.w;f.globals.shouldAnimate=s,e||(f.globals.resized=!0,f.globals.dataChanged=!0,s&&f.config.chart.animations.enabled&&l.series.getPreviousPaths());let g=f.config.chart.requestedType||f.config.chart.type;if(s&&t&&typeof t=="object"){let p=(h=t?.chart)==null?void 0:h.type;p&&p!==g&&((d=l.morphTypeChange)==null||d.captureBeforeDestroy({fromType:g,toType:p,newSeries:t.series||f.config.series}))}if(t&&typeof t=="object"){l.config=new se(t);let p=t.chart&&t.chart.type,m=p==="funnel"||p==="pyramid"||p==="gauge",b=!!f.config.chart.requestedType;if(p&&!m&&b){t.chart=t.chart||{},t.chart.requestedType=p;let x=f.config.chart.requestedType;(x==="funnel"||x==="pyramid")&&(t.plotOptions=t.plotOptions||{},t.plotOptions.bar=t.plotOptions.bar||{},t.plotOptions.bar.isFunnel===void 0&&(t.plotOptions.bar.isFunnel=!1),t.plotOptions.bar.isPyramid===void 0&&(t.plotOptions.bar.isPyramid=!1))}l.config.normalizeAliasedChartType(t),t=lt.extendArrayProps(l.config,t,f),l.w.globals.chartID!==this.w.globals.chartID&&(delete t.series,delete t.yaxis),f.config=T.extend(f.config,t),Lt.handOverTypeDefaults(f.config,g,t),a&&(f.globals.lastXAxis=t.xaxis?T.clone(t.xaxis):[],f.globals.lastYAxis=t.yaxis?T.clone(t.yaxis):[],f.globals.initialConfig=T.extend({},f.config),f.globals.initialSeries=f.config.series),t.series&&(f.globals.collapsedSeriesIndices.length>0||f.globals.ancillaryCollapsedSeriesIndices.length>0)&&l.series.reconcileCollapsedByName()}return l.update(t).then(()=>{c===o.length-1&&n(l)}).catch(r)})})}_updateSeries(t,e,s=!1){return new Promise((i,a)=>{let n=this.w;n.globals.shouldAnimate=e,n.globals.dataChanged=!0;let r=JSON.stringify({y:(n.globals.yAxisScale||[]).map(h=>h?h.result:null),xMin:n.globals.minX,xMax:n.globals.maxX});Ne.invalidateSelectors(n),e&&n.config.chart.animations.enabled&&this.ctx.series.getPreviousPaths();let o=n.config.series.length,l=n.config.series.map(h=>{var d,f;return(f=(d=h?.data)==null?void 0:d.length)!=null?f:0});s&&(n.globals.dataReducerRawSeries=null,n.globals.histogramRawSeries=null,n.globals.treemapRawSeries=null),this.ctx.data.resetParsingFlags();let c=this.ctx.data.parseData(t);return this.ctx._writeParsedSeriesData(c.seriesData),this.ctx._writeParsedRangeData(c.rangeData),this.ctx._writeParsedCandleData(c.candleData),this.ctx._writeParsedLabelData(c.labelData),this.ctx._writeParsedAxisFlags(c.axisFlags),s&&(n.globals.initialConfig&&(n.globals.initialConfig.series=n.config.series),n.globals.initialSeries=n.config.series),this._canUseFastPath(t,o,l,n)?this.ctx.fastUpdate(e,r).then(()=>{i(this.ctx)}).catch(a):(this.ctx._updateStats&&this.ctx._updateStats.full++,this.ctx.update().then(()=>{i(this.ctx)}).catch(a))})}_canUseFastPath(t,e,s,i){return!(!i.dom.elGraphical||!i.globals.axisCharts||t.length!==e||t.some((a,n)=>{var r,o;return((o=(r=a?.data)==null?void 0:r.length)!=null?o:0)!==s[n]})||i.globals.collapsedSeries.length>0||i.globals.ancillaryCollapsedSeries.length>0||i.globals.risingSeries.length>0||i.globals.comboCharts||i.interact.zoomed)}_extendSeries(t,e){let s=this.w,i=s.config.series[e];return j(G({},s.config.series[e]),{name:t.name?t.name:i?.name,color:t.color?t.color:i?.color,type:t.type?t.type:i?.type,group:t.group?t.group:i?.group,hidden:typeof t.hidden<"u"?t.hidden:i?.hidden,data:t.data?t.data:i?.data,zIndex:typeof t.zIndex<"u"?t.zIndex:e})}toggleDataPointSelection(t,e){let s=this.w,i=null,a=`.apexcharts-series[data\\:realIndex='${t}']`;if(s.globals.axisCharts?i=s.dom.Paper.findOne(`${a} path[j='${e}'], ${a} circle[j='${e}'], ${a} rect[j='${e}']`):typeof e>"u"&&(i=s.dom.Paper.findOne(`${a} path[j='${t}']`),(s.config.chart.type==="pie"||s.config.chart.type==="polarArea"||s.config.chart.type==="donut")&&this.ctx.pie.pieClicked(t)),i)new B(this.w).pathMouseDown(i,null);else return console.warn("toggleDataPointSelection: Element not found"),null;return i.node?i.node:null}forceXAxisUpdate(t){let e=this.w;return["min","max"].forEach(i=>{typeof t.xaxis[i]<"u"&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric&&(t=new Lt(t).convertCatToNumericXaxis(t,this.ctx)),t}forceYAxisUpdate(t){return t.chart&&t.chart.stacked&&t.chart.stackType==="100%"&&(Array.isArray(t.yaxis)?t.yaxis.forEach((e,s)=>{t.yaxis[s].min=0,t.yaxis[s].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}revertDefaultAxisMinMax(t){let e=this.w,s=e.globals.lastXAxis,i=e.globals.lastYAxis;t&&t.xaxis&&(s=t.xaxis),t&&t.yaxis&&(i=t.yaxis);let a=s;e.config.xaxis.min=a.min,e.config.xaxis.max=a.max;let n=r=>{if(typeof i[r]<"u"){let o=i[r];e.config.yaxis[r].min=o.min,e.config.yaxis[r].max=o.max}};e.config.yaxis.map((r,o)=>{e.interact.zoomed||typeof i[o]<"u"?n(o):typeof this.ctx.opts.yaxis[o]<"u"&&(r.min=this.ctx.opts.yaxis[o].min,r.max=this.ctx.opts.yaxis[o].max)})}},_t=class u{static xRatio(t){let e=t.layout.gridWidth||1;return(t.globals.maxX-t.globals.minX)/e}static dataXToPx(t,e){return(e-t.globals.minX)/u.xRatio(t)}static pxToDataX(t,e){return t.globals.minX+e*u.xRatio(t)}static screenXToPlotPx(t,e){let s=t.dom.baseEl,i=s&&s.querySelector(".apexcharts-svg");if(!i)return e-t.layout.translateX;let a=i.getBoundingClientRect(),n=t.globals.svgWidth?a.width/t.globals.svgWidth:1;return(e-a.left)/(n||1)-t.layout.translateX}},ps=class{constructor(t){this.w=t.w,this.ttCtx=t}getNearestValues({hoverArea:t,elGrid:e,clientX:s,clientY:i}){var a,n;let r=this.w,o=e.getBoundingClientRect(),l=r.layout.gridWidth,c=o.height,h=l/(r.globals.dataPoints-1),d=c/r.globals.dataPoints,f=this.hasBars();(r.globals.comboCharts||f)&&!r.config.xaxis.convertedCatToNumeric&&(h=l/r.globals.dataPoints);let g=_t.screenXToPlotPx(r,s),p=i-o.top,m=r.globals.barPadForNumericAxis||0;g<-m||p<0||g>l+m||p>c?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):r.interact.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):r.interact.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));let x=Math.round(g/h),_=Math.floor(p/d);f&&!r.config.xaxis.convertedCatToNumeric&&(x=Math.ceil(g/h),x=x-1);let w=null,y=null,v=r.globals.seriesXvalues.map(S=>S.filter(C=>T.isNumber(C))),A=r.globals.seriesYvalues.map(S=>S.filter(C=>T.isNumber(C)));return r.axisFlags.isXNumeric&&(y=this.closestInMultiArray(g,p,v,A),w=y.index,x=(a=y.j)!=null?a:0,w!==null&&r.globals.hasNullValues&&(v=r.globals.seriesXvalues[w],y=this.closestInArray(g,v),x=(n=y.j)!=null?n:0)),r.interact.capturedSeriesIndex=w===null?-1:w,(!x||x<1)&&(x=0),r.globals.isBarHorizontal?r.interact.capturedDataPointIndex=_:r.interact.capturedDataPointIndex=x,{capturedSeries:w,j:r.globals.isBarHorizontal?_:x,hoverX:g,hoverY:p}}getFirstActiveXArray(t){let e=this.w,s=0,i=t.map((a,n)=>a.length>0?n:-1);for(let a=0;aa.globals.collapsedSeriesIndices.indexOf(d)===-1&&a.globals.ancillaryCollapsedSeriesIndices.indexOf(d)===-1,r=a.config.chart.type,o=!a.globals.comboCharts&&(r==="line"||r==="area"),l=1/0,c=null,h=null;if(a.globals.allSeriesHasEqualX){let d=1/0;for(let f=0;f=2){for(let m=0;m1&&(c=1);let h=s+c*r,d=i+c*o,f=t-h,g=e-d;return{dist:Math.sqrt(f*f+g*g),t:c}}closestInArray(t,e){let s=e[0],i=null,a=Math.abs(t-s);for(let n=0;ntypeof a[0]<"u");if(i.length>0)for(let a=0;a{var l;return!((l=this.w.globals.collapsedSeriesIndices)!=null&&l.includes(o))}))||[];for(let r=0;ri+a.getBBox().height,0)}getElMarkers(t){return typeof t=="number"?this.w.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers-wrap > *`):this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}getAllMarkers(t=!1){let e=[...this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap")];t&&(e=e.filter(i=>{let a=Number(i.getAttribute("data:realIndex"));return this.w.globals.collapsedSeriesIndices.indexOf(a)===-1})),e.sort((i,a)=>{var n=Number(i.getAttribute("data:realIndex")),r=Number(a.getAttribute("data:realIndex"));return rn?-1:0});let s=[];return e.forEach(i=>{s.push(i.querySelector(".apexcharts-marker"))}),s}hasMarkers(t){return this.getElMarkers(t).length>0}getPathFromPoint(t,e){let s=Number(t.getAttribute("cx")),i=Number(t.getAttribute("cy")),a=t.getAttribute("shape");return new B(this.w).getMarkerPath(s,i,a,e)}getElBars(){return this.w.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-violin-series, .apexcharts-rangebar-series")}hasBars(){return this.getElBars().length>0}getHoverMarkerSize(t){let e=this.w,s=e.config.markers.hover.size;return s===void 0&&(s=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),s}toggleAllTooltipSeriesGroups(t){let e=this.w,s=this.ttCtx;s.allTooltipSeriesGroups.length===0&&(s.allTooltipSeriesGroups=e.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));let i=s.allTooltipSeriesGroups;for(let a=0;a({attrs:r,val:t.yLbFormatter(r.value,{seriesIndex:e,dataPointIndex:s,w:a})})):[]}resolvePatternColor(t,e){var s,i,a;let n=this.w,r=(s=t?.target)==null?void 0:s.getAttribute("fill");if(!r)return e;if(r.indexOf("url")===-1)return r;if(r.indexOf("Pattern")===-1)return e;let o=n.dom.baseEl.querySelector(r.substr(4).slice(0,-1));return(a=(i=o?.childNodes[0])==null?void 0:i.getAttribute("stroke"))!=null?a:e}getFormatters(t){let e=this.w,s=e.formatters.yLabelFormatters[t],i;return e.formatters.ttVal!==void 0?Array.isArray(e.formatters.ttVal)?(s=e.formatters.ttVal[t]&&e.formatters.ttVal[t].formatter,i=e.formatters.ttVal[t]&&e.formatters.ttVal[t].title&&e.formatters.ttVal[t].title.formatter):(s=e.formatters.ttVal.formatter,typeof e.formatters.ttVal.title.formatter=="function"&&(i=e.formatters.ttVal.title.formatter)):i=e.config.tooltip.y.title.formatter,typeof s!="function"&&(e.formatters.yLabelFormatters[0]?s=e.formatters.yLabelFormatters[0]:s=function(a){return a}),typeof i!="function"&&(i=function(a){return a?a+": ":""}),{yLbFormatter:s,yLbTitleFormatter:i}}getSeriesName({fn:t,index:e,seriesIndex:s,j:i}){let a=this.w;return t(String(a.seriesData.seriesNames[e]),{series:a.seriesData.series,seriesIndex:s,dataPointIndex:i,w:a})}DOMHandling({t,j:e,ttItems:s,values:i,seriesName:a,shared:n,pColor:r}){let o=this.w,l=this.ttCtx,{val:c,goalVals:h,xVal:d,xAxisTTVal:f,zVal:g}=i;if(!s||!s[t])return;let p=null;p=s[t].children,o.config.tooltip.fillSeriesColor&&(s[t].style.backgroundColor=r,p[0].style.display="none"),l.showTooltipTitle&&(l.tooltipTitle===null&&(l.tooltipTitle=o.dom.baseEl.querySelector(".apexcharts-tooltip-title")),l.tooltipTitle&&(l.tooltipTitle.innerHTML=d)),l.isXAxisTooltipEnabled&&l.xaxisTooltipText&&(l.xaxisTooltipText.innerHTML=f!==""?f:d);let m=s[t].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=a||"");let b=s[t].querySelector(".apexcharts-tooltip-text-y-value");b&&(b.innerHTML=typeof c<"u"?c:""),p[0]&&p[0].classList.contains("apexcharts-tooltip-marker")&&(o.config.tooltip.marker.fillColors&&Array.isArray(o.config.tooltip.marker.fillColors)&&(r=o.config.tooltip.marker.fillColors[t]),o.config.tooltip.fillSeriesColor?p[0].style.backgroundColor=r:p[0].style.color=r),o.config.tooltip.marker.show||(p[0].style.display="none");let x=s[t].querySelector(".apexcharts-tooltip-text-goals-label"),_=s[t].querySelector(".apexcharts-tooltip-text-goals-value");if(h.length&&o.seriesData.seriesGoals[t]){let w=()=>{let y="
",v="
";h.forEach(A=>{y+=`
${A.attrs.name}
`,v+=`
${A.val}
`}),x.innerHTML=y+"
",_.innerHTML=v+"
"};n?o.seriesData.seriesGoals[t][e]&&Array.isArray(o.seriesData.seriesGoals[t][e])?w():(x.innerHTML="",_.innerHTML=""):w()}else x.innerHTML="",_.innerHTML="";if(g!==null){let w=s[t].querySelector(".apexcharts-tooltip-text-z-label");w.innerHTML=o.config.tooltip.z.title;let y=s[t].querySelector(".apexcharts-tooltip-text-z-value");y.innerHTML=typeof g<"u"?g:""}if(n&&p[0]){if(o.config.tooltip.hideEmptySeries){let w=s[t].querySelector(".apexcharts-tooltip-marker"),y=s[t].querySelector(".apexcharts-tooltip-text");parseFloat(c)==0?(w.style.display="none",y.style.display="none"):(w.style.display="block",y.style.display="block")}typeof c>"u"||c===null||o.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||o.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(l.tConfig.enabledOnSeries)&&l.tConfig.enabledOnSeries.indexOf(t)===-1?p[0].parentNode.style.display="none":p[0].parentNode.style.display=o.config.tooltip.items.display}else Array.isArray(l.tConfig.enabledOnSeries)&&l.tConfig.enabledOnSeries.indexOf(t)===-1&&(p[0].parentNode.style.display="none")}toggleActiveInactiveSeries(t,e){let s=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");let i=s.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${e}`);if(i){let a=i;a.classList.add("apexcharts-active"),a.style.display=s.config.tooltip.items.display}}}getValuesToPrint({i:t,j:e}){var s,i,a,n,r,o,l,c;let h=this.w,d=h.seriesData.seriesX.map(w=>w.length>0?w:[]),f="",g="",p=null,m=null,b={series:h.seriesData.series,seriesIndex:t,dataPointIndex:e,w:h},x=h.formatters.ttZFormatter;if(e===null)m=h.seriesData.series[t];else if(h.axisFlags.isXNumeric&&h.config.chart.type!=="treemap"){if(f=d[t][e],d[t].length===0){let w=this.tooltipUtil.getFirstActiveXArray(d);f=d[w][e]}}else new Ye(this.w).isFormatXY()?f=typeof h.config.series[t].data[e]<"u"?h.config.series[t].data[e].x:"":f=typeof h.labelData.labels[e]<"u"?h.labelData.labels[e]:"";let _=f;return h.axisFlags.isXNumeric&&h.config.xaxis.type==="datetime"?f=new ee(this.w).xLabelFormat(h.formatters.ttKeyFormatter,_,_,{i:void 0,dateFormatter:new mt(this.w).formatDate,w:this.w}):h.globals.isBarHorizontal?f=h.formatters.yLabelFormatters[0](_,b):f=(a=(i=(s=h.formatters).xLabelFormatter)==null?void 0:i.call(s,_,b))!=null?a:_,h.config.tooltip.x.formatter!==void 0&&(f=(o=(r=(n=h.formatters).ttKeyFormatter)==null?void 0:r.call(n,_,b))!=null?o:_),h.seriesData.seriesZ.length>0&&h.seriesData.seriesZ[t].length>0&&(p=x?.(h.seriesData.seriesZ[t][e],h)),typeof h.config.xaxis.tooltip.formatter=="function"?g=(c=(l=h.formatters).xaxisTooltipFormatter)==null?void 0:c.call(l,_,b):g=f,{val:Array.isArray(m)?m.join(" "):m,xVal:Array.isArray(f)?f.join(" "):f,xAxisTTVal:Array.isArray(g)?g.join(" "):g,zVal:p}}handleCustomTooltip({i:t,j:e,y1:s,y2:i,w:a}){let n=this.ttCtx.getElTooltip(),r=a.config.tooltip.custom;if(Array.isArray(r)&&(r=r[t]),typeof r!="function")return;let o=r({series:a.seriesData.series,seriesIndex:t,dataPointIndex:e,y1:s,y2:i,w:a});if(n){let l=n.querySelector(".apexcharts-tooltip-arrow");typeof o=="string"||typeof o=="number"?n.innerHTML=String(o):o!=null&&(o instanceof Element||typeof o.nodeName=="string")&&(n.innerHTML="",n.appendChild(o.cloneNode(!0))),l&&n.appendChild(l)}}},kt=7,fc=0,ms=class{constructor(t){this.ttCtx=t,this.w=t.w}moveXCrosshairs(t,e=null){let s=this.ttCtx,i=this.w,a=s.getElXCrosshairs(),n=t-s.xcrosshairsWidth/2,r=i.labelData.labels.slice().length;if(e!==null&&(n=i.layout.gridWidth/r*e),a!==null&&!i.globals.isBarHorizontal&&(a.setAttribute("x",String(n)),a.setAttribute("x1",String(n)),a.setAttribute("x2",String(n)),a.setAttribute("y2",String(i.layout.gridHeight)),a.classList.add("apexcharts-active")),n<0&&(n=0),n>i.layout.gridWidth&&(n=i.layout.gridWidth),s.isXAxisTooltipEnabled){let o=n;(i.config.xaxis.crosshairs.width==="tickWidth"||i.config.xaxis.crosshairs.width==="barWidth")&&(o=n+s.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}moveYCrosshairs(t){let e=this.ttCtx;e.ycrosshairs!==null&&B.setAttrs(e.ycrosshairs,{y1:t,y2:t}),e.ycrosshairsHidden!==null&&B.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}moveXAxisTooltip(t){var e,s;let i=this.w,a=this.ttCtx;if(a.xaxisTooltip!==null&&a.xcrosshairsWidth!==0){a.xaxisTooltip.classList.add("apexcharts-active");let n=a.xaxisOffY+i.config.xaxis.tooltip.offsetY+i.layout.translateY+5+i.config.xaxis.offsetY,o=a.xaxisTooltip.getBoundingClientRect().width;if(t=t-o/2,!isNaN(t)){t=t+i.layout.translateX;let c=new B(this.w).getTextRects((s=(e=a.xaxisTooltipText)==null?void 0:e.innerHTML)!=null?s:"",i.config.xaxis.labels.style.fontSize);a.xaxisTooltipText&&(a.xaxisTooltipText.style.minWidth=c.width+"px"),a.xaxisTooltip.style.left=t+"px",a.xaxisTooltip.style.top=n+"px"}}}moveYAxisTooltip(t){var e,s;let i=this.w,a=this.ttCtx;a.yaxisTTEls===null&&(a.yaxisTTEls=[...i.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);let n=parseInt((s=(e=a.ycrosshairsHidden)==null?void 0:e.getAttribute("y1"))!=null?s:"0",10),r=i.layout.translateY+n;if(a.yaxisTTEls){let o=a.yaxisTTEls[t].getBoundingClientRect(),l=o.height,c,h=i.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${t}'] .apexcharts-yaxis-texts-g`),d=i.dom.elWrap.getBoundingClientRect();if(h){let f=h.getBoundingClientRect();f.width>0&&(c=f.left+f.width/2-d.left-o.width/2)}c==null&&(c=i.config.yaxis[t].opposite?i.globals.translateYAxisX[t]+4:i.globals.translateYAxisX[t]-o.width-4),r=r-l/2,i.globals.ignoreYAxisIndexes.indexOf(t)===-1&&r>0&&rh.layout.gridWidth/2&&(y=x-b-w,S="left"),y>h.layout.gridWidth-b-10&&(y=S==="left"?Math.min(h.layout.gridWidth-b,y):h.layout.gridWidth-b),y<-20&&(y=-20),h.config.tooltip.followCursor){let k=d.getElGrid();if(!k)return null;let L=k.getBoundingClientRect();y=d.e.clientX-L.left,y>h.layout.gridWidth/2?(y=y-b,S="left"):S="right",A=d.e.clientY+h.layout.translateY-L.top,A>h.layout.gridHeight/2&&(A=A-m)}else if(!h.globals.isBarHorizontal)if(g){let k=h.layout.translateY,L=h.layout.translateY+h.layout.gridHeight;A+m>L&&(A=L-m),Ah.layout.gridHeight&&(A=h.layout.gridHeight-m+h.layout.translateY);if(isNaN(y))return null;y=y+h.layout.translateX;let C=(a=(i=h.config)==null?void 0:i.chart)==null?void 0:a.accessibility;if(C?.enabled&&((r=(n=C?.keyboard)==null?void 0:n.navigation)!=null&&r.enabled)&&((c=(l=(o=h.dom)==null?void 0:o.baseEl)==null?void 0:l.querySelector)!=null&&c.call(l,".apexcharts-keyboard-focused"))){let k=g?v:_,L=(p||1)+12,E=A,D=A+m;!isNaN(k)&&m>0&&Ek-L&&(A=k-m-L,A<0&&(A=k+L))}let M=null;if(g&&m>0){let k=v-A,L=10,E=m-10;M=Math.max(L,Math.min(E,k))}return{x:y,y:A,placement:S,arrowY:M}}applyTooltipPosition(t,e){if(!t)return;let s=t.dataset.positioned!=="true";s&&(t.style.transitionProperty="none"),t.style.left=e.x+"px",t.style.top=e.y+"px",e.placement&&(t.dataset.placement=e.placement),e.arrowY!=null&&t.style.setProperty("--apx-tt-arrow-y",e.arrowY+"px"),e.arrowX!=null&&t.style.setProperty("--apx-tt-arrow-x",e.arrowX+"px"),s&&(t.offsetWidth,t.dataset.positioned="true",requestAnimationFrame(()=>{t.style.transitionProperty=""}))}moveMarkers(t,e){var s;let i=this.w,a=this.ttCtx;if(i.globals.markers.size[t]>0){let n=i.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${t}'] .apexcharts-marker`);for(let r=0;r0){let b=(r=m.getAttribute("shape"))!=null?r:"circle",x=d.getMarkerPath(c,h,b,g*1.5);m.setAttribute("d",x)}this.moveXCrosshairs(c),l.fixedTooltip||this.moveTooltip(c,h,g)}moveDynamicPointsOnHover(t){var e,s;let i=this.ttCtx,a=i.w,n=0,r=0,o=0,l=a.globals.pointsArray,c=new ct(this.w),h=new B(this.w);o=c.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);let d=i.tooltipUtil.getHoverMarkerSize(o);if((e=l[o])!=null&&e[t]&&(n=l[o][t][0],r=l[o][t][1]),isNaN(n))return;let f=i.tooltipUtil.getAllMarkers();if(f.length)for(let g=0;g"u"&&f.splice(g,0,null),f[g]&&p&&p.length){let m=l[g][t][1],b;f[g].setAttribute("cx",n);let x=(s=f[g].getAttribute("shape"))!=null?s:"circle";if(a.config.chart.type==="rangeArea"&&!a.globals.comboCharts){let _=t+a.seriesData.series[g].length;b=l[g][_][1];let w=Math.abs(m-b)/2;m=m-w}if(m!==null&&!isNaN(m)&&m0){let _=h.getMarkerPath(n,m,x,d);f[g].setAttribute("d",_)}else f[g].setAttribute("d","")}}this.moveXCrosshairs(n),i.fixedTooltip||this.moveTooltip(n,r||a.layout.gridHeight,d)}moveStickyTooltipOverBars(t,e){var s,i,a,n,r;let o=this.w,l=this.ttCtx,c=o.globals.columnSeries?o.globals.columnSeries.length:o.seriesData.series.length;o.config.chart.stacked&&(c=o.globals.barGroups.length);let h=c>=2&&c%2===0?Math.floor(c/2):Math.floor(c/2)+1;o.globals.isBarHorizontal&&(h=new ct(this.w).getActiveConfigSeriesIndex("desc")+1);let d=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-candlestick-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-violin-series .apexcharts-series[rel='${h}'] path[j='${t}'], .apexcharts-rangebar-series .apexcharts-series[rel='${h}'] path[j='${t}']`);!d&&typeof e=="number"&&(d=o.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'], .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'], .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'], .apexcharts-violin-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}'], .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`));let f=null,g=o.globals.barCanvasCoords;if(!d&&g&&(f=typeof e=="number"&&((s=g[e])==null?void 0:s[t])||null,!f)){for(let y in g)if((i=g[y])!=null&&i[t]){f=g[y][t];break}}let p=d?parseFloat((a=d.getAttribute("cx"))!=null?a:"0"):f?f.cx:0,m=d?parseFloat((n=d.getAttribute("cy"))!=null?n:"0"):f?f.cy:0,b=d?parseFloat((r=d.getAttribute("barWidth"))!=null?r:"0"):f?f.barWidth:0,x=l.getElGrid();if(!x)return;let _=x.getBoundingClientRect(),w=d&&(d.classList.contains("apexcharts-candlestick-area")||d.classList.contains("apexcharts-boxPlot-area"));if(o.axisFlags.isXNumeric){if(d&&!w){let y=this._datapointCenterXFromBars(t);y!=null?p=y:p=p-(c%2!==0?b/2:0)}d&&w&&(p=p-b/2)}else!o.globals.isBarHorizontal&&!f&&(p=l.xAxisTicksPositions[t-1]+l.dataPointsDividedWidth/2,isNaN(p)&&(p=l.xAxisTicksPositions[t]-l.dataPointsDividedWidth/2));if(o.globals.isBarHorizontal?m=m-l.tooltipRect.ttHeight:o.config.tooltip.followCursor?m=l.e.clientY-_.top-l.tooltipRect.ttHeight/2:m+l.tooltipRect.ttHeight+15>o.layout.gridHeight&&(m=o.layout.gridHeight),o.globals.isBarHorizontal||this.moveXCrosshairs(p),!l.fixedTooltip){if(o.globals.isBarHorizontal&&!o.config.tooltip.followCursor&&this.placeHorizontalSharedTooltip(t))return;this.moveTooltip(p,m||o.layout.gridHeight)}}_datapointCenterXFromBars(t){var e,s;let i=this.w,a=i.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${t}'],.apexcharts-rangebar-series path[j='${t}']`);if(!a.length)return null;let n=1/0,r=-1/0;for(let o of a){let l=o.parentNode;if((s=(e=l?.classList)==null?void 0:e.contains)!=null&&s.call(e,"apexcharts-series-collapsed"))continue;let c=o.getBoundingClientRect();c.width===0&&c.height===0||(c.leftr&&(r=c.right))}return isFinite(n)?_t.screenXToPlotPx(i,(n+r)/2):null}placeHorizontalSharedTooltip(t){var e,s;let i=this.w,a=this.ttCtx,n=a.getElTooltip();if(!n)return!1;let r=a.getElGrid();if(!r)return!1;let o=r.getBoundingClientRect(),l=i.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${t}'],.apexcharts-rangebar-series path[j='${t}'],.apexcharts-boxPlot-series path[j='${t}']`);if(!l.length)return!1;let c=1/0,h=-1/0,d=1/0,f=-1/0;for(let k of l){let L=k.parentNode;if((s=(e=L?.classList)==null?void 0:e.contains)!=null&&s.call(e,"apexcharts-series-collapsed"))continue;let E=k.getBoundingClientRect();E.width===0&&E.height===0||(E.lefth&&(h=E.right),E.topf&&(f=E.bottom))}if(!isFinite(c))return!1;let g=a.tooltipRect.ttWidth||0,p=a.tooltipRect.ttHeight||0,m=(c+h)/2-o.left+i.layout.translateX,b=d-o.top+i.layout.translateY,x=f-o.top+i.layout.translateY,_=i.layout.translateY,w=i.layout.translateY+i.layout.gridHeight,y=i.layout.translateX,v=i.layout.translateX+i.layout.gridWidth,A="top",S=b-p-kt;if(S<_){let k=x+kt;k+p<=w&&(A="bottom",S=k)}let C=m-g/2;Cv&&(C=v-g);let M=Math.max(10,Math.min(g-10,m-C));return this.applyTooltipPosition(n,{x:C,y:S,placement:A,arrowY:null,arrowX:M}),!0}};function gc(u){let t=e=>``;switch(u){case"square":case"rect":return t('');case"line":return t('');case"diamond":return t('');case"triangle":return t('');case"cross":return t('');case"plus":return t('');case"star":return t('');case"sparkle":return t('');default:return t('')}}var Fi=class{constructor(t){this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ms(t)}drawDynamicPoints(){let t=this.w,e=new B(this.w),s=new zt(this.w,this.ctx),i=[...t.dom.baseEl.querySelectorAll(".apexcharts-series")];t.config.chart.stacked&&i.sort((a,n)=>parseFloat(a.getAttribute("data:realIndex"))-parseFloat(n.getAttribute("data:realIndex")));for(let a=0;a0){let n=this.ttCtx.tooltipUtil.getPathFromPoint(s[i],a);s[i].setAttribute("d",n)}else s[i].setAttribute("d","M0,0")}}},Ii=class{constructor(t){this.w=t.w;let e=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.config.chart.type==="rangeBar"&&e.config.plotOptions.bar.rangeBarGroupRows}getAttr(t,e){var s;return parseFloat((s=t.target.getAttribute(e))!=null?s:"")}handleHeatTreeTooltip({e:t,opt:e,x:s,y:i,type:a}){var n,r;let o=this.ttCtx,l=this.w,c=l.globals.activeRenderer,h=a==="heatmap"&&c&&c.kind==="canvas"&&typeof c.hitTest=="function",d,f,g,p,m,b;if(h){let _=e.elGrid.getBoundingClientRect(),w=t.type==="touchmove"?t.touches[0].clientX:t.clientX,y=t.type==="touchmove"?t.touches[0].clientY:t.clientY,v=c.hitTest(w-_.left,y-_.top);if(!v)return{x:s,y:i,noHit:!0};d=v.seriesIndex,f=v.dataPointIndex,g=v.x,p=v.y,m=v.width,b=v.height}else if(t.target.classList.contains(`apexcharts-${a}-rect`))d=this.getAttr(t,"i"),f=this.getAttr(t,"j"),g=this.getAttr(t,"cx"),p=this.getAttr(t,"cy"),m=this.getAttr(t,"width"),b=this.getAttr(t,"height");else return{x:s,y:i};o.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:d,j:f,shared:!1,e:t}),l.interact.capturedSeriesIndex=d,l.interact.capturedDataPointIndex=f,o.tooltipPosition.moveXCrosshairs(g+m/2);let x=o.getElTooltip();if(a==="heatmap"&&l.config.tooltip.arrow&&!l.config.tooltip.followCursor&&x){let _=e.elGrid.getBoundingClientRect(),w=l.dom.elWrap.getBoundingClientRect(),y=_.left-w.left,v,A,S,C;if(h)v=g,A=p,S=g+m,C=p+b;else{let I=t.target.getBoundingClientRect();v=I.left-_.left,A=I.top-_.top,S=I.right-_.left,C=I.bottom-_.top}let M=o.tooltipRect.ttWidth||0,k=o.tooltipRect.ttHeight||0,L=(v+S)/2+y,E=A+l.layout.translateY,D=C+l.layout.translateY,P=l.layout.translateY,F=l.layout.translateY+l.layout.gridHeight,R=y,N=y+l.layout.gridWidth,z="top",$=E-k-kt;if($N&&(W=N-M);let Y=Math.max(10,Math.min(M-10,L-W));return o.tooltipPosition.applyTooltipPosition(x,{x:W,y:$,placement:z,arrowY:null,arrowX:Y}),{x:W,y:$,positioned:!0}}if(s=g+o.tooltipRect.ttWidth/2+m,i=p+o.tooltipRect.ttHeight/2-b/2,s>l.layout.gridWidth/2&&(s=g-o.tooltipRect.ttWidth/2+m),o.w.config.tooltip.followCursor){let _=l.dom.elWrap.getBoundingClientRect();s=((n=l.interact.clientX)!=null?n:0)-_.left-(s>l.layout.gridWidth/2?o.tooltipRect.ttWidth:0),i=((r=l.interact.clientY)!=null?r:0)-_.top-(i>l.layout.gridHeight/2?o.tooltipRect.ttHeight:0)}return{x:s,y:i}}handleMarkerTooltip({e:t,opt:e,x:s,y:i}){let a=this.w,n=this.ttCtx,r,o;if(t.target.classList.contains("apexcharts-marker")){let l=parseInt(e.paths.getAttribute("cx"),10),c=parseInt(e.paths.getAttribute("cy"),10),h=parseFloat(e.paths.getAttribute("val"));if(o=parseInt(e.paths.getAttribute("rel"),10),r=parseInt(e.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,n.intersect){let f=T.findAncestor(e.paths,"apexcharts-series");f&&(r=parseInt(f.getAttribute("data:realIndex"),10))}n.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:r,j:o,shared:n.showOnIntersect?!1:a.config.tooltip.shared,e:t}),t.type==="mouseup"&&n.markerClick(t,r,o),a.interact.capturedSeriesIndex=r,a.interact.capturedDataPointIndex=o;let d=!!a.config.tooltip.arrow;if(s=l,d?i=c:(i=c+a.layout.translateY-n.tooltipRect.ttHeight*1.4,h<0&&(i=c)),n.w.config.tooltip.followCursor){let f=n.getElGrid();if(!f)return{x:s,y:i};let g=f.getBoundingClientRect();i=n.e.clientY+a.layout.translateY-g.top}n.marker.enlargeCurrentPoint(o,e.paths,s,i)}return{x:s,y:i}}handleBarTooltip({e:t,opt:e}){var s,i,a;let n=this.w,r=this.ttCtx,o=r.getElTooltip(),l=0,c=0,h=0,d=0,f,g=this.getBarTooltipXY({e:t,opt:e});if(g.j===null&&g.barHeight===0&&g.barWidth===0)return;d=g.i;let p=g.j;if(n.interact.capturedSeriesIndex=d,n.interact.capturedDataPointIndex=p!==null?p:n.interact.capturedDataPointIndex,n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!n.config.tooltip.shared?(c=g.x,h=g.y,f=Array.isArray(n.config.stroke.width)?n.config.stroke.width[d]:n.config.stroke.width,l=c):!n.globals.comboCharts&&!n.config.tooltip.shared&&(l=l/2),isNaN(h)&&(h=n.globals.svgHeight-r.tooltipRect.ttHeight),c+r.tooltipRect.ttWidth>n.layout.gridWidth?c=c-r.tooltipRect.ttWidth:c<0&&(c=0),!(r.w.config.tooltip.followCursor&&!r.getElGrid())&&(r.tooltip===null&&(r.tooltip=n.dom.baseEl.querySelector(".apexcharts-tooltip:not(.apexcharts-annotation-tooltip)")),n.config.tooltip.shared||(n.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(l+f/2):r.tooltipPosition.moveXCrosshairs(l)),!r.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(h=h+n.layout.translateY-r.tooltipRect.ttHeight/2,o))){let m=r.tooltipRect.ttWidth||0,b=r.tooltipRect.ttHeight||0,x=!!n.config.tooltip.arrow,{barAnchorXInGrid:_,barAnchorYInGrid:w,barRectInGrid:y}=g,v=(s=r.getElGrid())==null?void 0:s.getBoundingClientRect(),A=n.dom.elWrap.getBoundingClientRect(),S=v?v.left-A.left:n.layout.translateX,C,M=null,k=null,L=c+S,E=h;if(x&&n.globals.isBarHorizontal&&y!=null){let D=n.layout.translateY,P=n.layout.translateY+n.layout.gridHeight,F=S,R=S+n.layout.gridWidth,N=(y.left+y.right)/2+S,z=y.top+n.layout.translateY,$=y.bottom+n.layout.translateY,W=z-b-kt;if(C="top",WR&&(L=R-m),k=Math.max(10,Math.min(m-10,N-L))}else if(x&&_!=null&&w!=null){let D=_+S,P=S+n.layout.gridWidth/2,F=((i=y?.left)!=null?i:_)+S,R=((a=y?.right)!=null?a:_)+S;if(D$&&(E=$-b)}if(b>0&&y){let N=(y.top+y.bottom)/2+n.layout.translateY;M=Math.max(10,Math.min(b-10,N-E))}}r.tooltipPosition.applyTooltipPosition(o,{x:L,y:E,placement:C,arrowY:M,arrowX:k})}}getBarTooltipXY({e:t,opt:e}){let s=this.w,i=null,a=this.ttCtx,n=0,r=0,o=0,l=0,c=0,h=null,d=null,f=null,g=null,p=null,m=t.target.classList;if(m.contains("apexcharts-bar-area")||m.contains("apexcharts-candlestick-area")||m.contains("apexcharts-boxPlot-area")||m.contains("apexcharts-rangebar-area")){let b=t.target,x=b.getBoundingClientRect(),_=e.elGrid.getBoundingClientRect(),w=x.height;c=x.height;let y=x.width,v=parseInt(b.getAttribute("cx"),10),A=parseInt(b.getAttribute("cy"),10);h=v,d=A,l=parseFloat(b.getAttribute("barWidth"));let S=x.left-_.left,C=x.top-_.top,M=S+y/2,k=C+w/2;f=M,g=s.globals.isBarHorizontal?k:C,p={left:S,top:C,right:S+y,bottom:C+w};let L=t.type==="touchmove"?t.touches[0].clientX:t.clientX;i=parseInt(b.getAttribute("j"),10),n=parseInt(b.parentNode.getAttribute("rel"),10)-1;let E=b.getAttribute("data-range-y1"),D=b.getAttribute("data-range-y2");s.globals.comboCharts&&(n=parseInt(b.parentNode.getAttribute("data:realIndex"),10));let P=R=>(s.axisFlags.isXNumeric?R=v-y/2:this.isVerticalGroupedRangeBar?R=v+y/2:R=v-a.dataPointsDividedWidth+y/2,R),F=()=>A-a.dataPointsDividedHeight+w/2-a.tooltipRect.ttHeight/2;a.tooltipLabels.drawSeriesTexts({ttItems:e.ttItems,i:n,j:i,y1:E?parseInt(E,10):null,y2:D?parseInt(D,10):null,shared:a.showOnIntersect?!1:s.config.tooltip.shared,e:t}),s.config.tooltip.followCursor?s.globals.isBarHorizontal?(r=L-_.left+15,o=F()):(r=P(r),o=t.clientY-_.top-a.tooltipRect.ttHeight/2-15):s.globals.isBarHorizontal?(r=v,a.xyRatios&&r0&&a.setAttribute("width",String(i.xcrosshairsWidth))}handleYCrosshair(){let t=this.w,e=this.ttCtx;e.ycrosshairs=t.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}drawYaxisTooltipText(t,e,s){let i=this.ttCtx,a=this.w,n=a.globals,r=n.seriesYAxisMap[t];if(i.yaxisTooltips[t]&&r.length>0){let o=a.formatters.yLabelFormatters[t],l=i.getElGrid();if(!l)return;let c=l.getBoundingClientRect(),h=r[0],d=0;s.yRatio.length>1&&(d=h);let f=(e-c.top)*s.yRatio[d],g=n.maxYArr[h]-n.minYArr[h],p=n.minYArr[h]+(g-f);a.config.yaxis[t].reversed&&(p=n.maxYArr[h]-(g-f)),i.tooltipPosition.moveYCrosshairs(e-c.top),i.yaxisTooltipText[t].innerHTML=o(p),i.tooltipPosition.moveYAxisTooltip(t)}}},Xi=class{constructor(t,e){this.w=t,this.ctx=e,this.tConfig=t.config.tooltip,this.tooltipUtil=new ps(this),this.tooltipLabels=new Ri(this),this.tooltipPosition=new ms(this),this.marker=new Fi(this),this.intersect=new Ii(this),this.axesTooltip=new Ni(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.xaxisTooltipText=null,this.yaxisTooltip=null,this.yaxisTooltipText=null,this.yaxisTTEls=null,this.xaxisOffY=0,this.yaxisOffX=0,this.xcrosshairsWidth=0,this.ycrosshairs=null,this.ycrosshairsHidden=null,this.tooltip=null,this.e=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now(),this.dimensionUpdateScheduled=!1,this.xyRatios=null,this.isXAxisTooltipEnabled=!1,this.yaxisTooltips=[],this.allTooltipSeriesGroups=[],this.xAxisTicksPositions=null,this.dataPointsDividedHeight=0,this.dataPointsDividedWidth=0,this.tooltipTitle=null,this.legendLabels=null,this.ttItems=null,this.seriesBound=null,this.seriesHoverTimeout=void 0,this.clientX=0,this.clientY=0,this.barSeriesHeight=0,this.tooltipRect={x:0,y:0,ttWidth:0,ttHeight:0}}setupDimensionCache(){let t=this.w,e=this.getElTooltip();e&&(this.updateDimensionCache(),typeof ResizeObserver<"u"&&!t.globals.resizeObserver&&(t.globals.resizeObserver=new ResizeObserver(()=>{this.dimensionUpdateScheduled||(this.dimensionUpdateScheduled=!0,requestAnimationFrame(()=>{this.updateDimensionCache(),this.dimensionUpdateScheduled=!1}))}),t.globals.resizeObserver.observe(e)))}updateDimensionCache(){let t=this.w,e=this.getElTooltip();if(!e)return;let s=e.getBoundingClientRect();t.globals.dimensionCache.tooltip={width:s.width,height:s.height,lastUpdate:Date.now()}}getCachedDimensions(){let t=this.w;if(t.globals.dimensionCache.tooltip){let s=t.globals.dimensionCache.tooltip;if(Date.now()-s.lastUpdate<1e3)return{ttWidth:s.width,ttHeight:s.height}}this.updateDimensionCache();let e=t.globals.dimensionCache.tooltip;return e?{ttWidth:e.width,ttHeight:e.height}:{ttWidth:0,ttHeight:0}}getElTooltip(t){return t||(t=this),t.w.dom.baseEl?t.w.dom.baseEl.querySelector(".apexcharts-tooltip:not(.apexcharts-annotation-tooltip)"):null}getElXCrosshairs(){return this.w.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}getElGrid(){return this.w.dom.baseEl.querySelector(".apexcharts-grid")}drawTooltip(t){let e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(o=>!!(o.show&&o.tooltip.enabled&&e.globals.axisCharts)),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);let s=this.getElTooltip();s?.parentNode&&s.parentNode.removeChild(s),this.tooltipTitle=null;let i=O.createElementNS("http://www.w3.org/1999/xhtml","div");i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add(`apexcharts-theme-${this.tConfig.theme||"light"}`),this.tConfig.fillSeriesColor&&i.classList.add("apexcharts-tooltip-fill-series"),this.tConfig.style&&this.tConfig.style.background&&i.style.setProperty("--apx-tt-bg",this.tConfig.style.background);let a=this.tConfig.shared&&e.config.series.length>1&&!e.globals.isBarHorizontal&&e.config.chart.type!=="heatmap";if(this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&!a&&!this.tConfig.fillSeriesColor&&e.globals.axisCharts){let o=O.createElementNS("http://www.w3.org/1999/xhtml","div");o.classList.add("apexcharts-tooltip-arrow"),i.appendChild(o)}if(e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&(i.setAttribute("role","tooltip"),i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-hidden","true")),e.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();let o=new Wt(this.w,this.ctx,void 0);this.xAxisTicksPositions=o.getXAxisTicksPositions()}if((e.globals.comboCharts||this.tConfig.intersect||e.config.chart.type==="rangeBar")&&!this.tConfig.shared&&(this.showOnIntersect=!0),(e.config.markers.size===0||e.globals.markers.largestSize===0)&&this.marker.drawDynamicPoints(),e.globals.collapsedSeries.length===e.seriesData.series.length)return;this.dataPointsDividedHeight=e.layout.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.layout.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=O.createElementNS("http://www.w3.org/1999/xhtml","div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));let r=e.seriesData.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(this.showOnIntersect?r=1:r=e.seriesData.series.length),this.legendLabels=e.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(r),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(t){let e=this.w,s=[],i=this.getElTooltip();if(!i)return s;for(let a=0;a{let d=O.createElementNS("http://www.w3.org/1999/xhtml","div");d.classList.add(`apexcharts-tooltip-${h}-group`);let f=O.createElementNS("http://www.w3.org/1999/xhtml","span");f.classList.add(`apexcharts-tooltip-text-${h}-label`),d.appendChild(f);let g=O.createElementNS("http://www.w3.org/1999/xhtml","span");g.classList.add(`apexcharts-tooltip-text-${h}-value`),d.appendChild(g),c.appendChild(d)}),n.appendChild(c),i.appendChild(n),s.push(n)}return s}addSVGEvents(){let t=this.w,e=t.config.chart.type,s=this.getElTooltip();if(!s)return;let i=e==="bar"||e==="candlestick"||e==="boxPlot"||e==="violin"||e==="rangeBar",a=e==="area"||e==="line"||e==="scatter"||e==="bubble"||e==="radar",n=a&&!t.globals.xyCharts,r=t.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());let l=[],c=[],h={hoverArea:r,elGrid:o,tooltipEl:s,tooltipY:l,tooltipX:c,ttItems:this.ttItems},d;if(t.globals.axisCharts&&(a?d=t.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):i?d=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-violin-area, .apexcharts-series .apexcharts-rangebar-area"):(e==="heatmap"||e==="treemap")&&(d=t.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),d&&d.length))for(let g=0;g0&&this.addPathsEventListeners(g,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}drawFixedTooltipRect(){let t=this.w,e=this.getElTooltip();if(!e)return{x:0,y:0,ttWidth:0,ttHeight:0};let s=e.getBoundingClientRect(),i=s.width+10,a=s.height+10,n=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(n=n+t.globals.svgWidth-i+10),o.indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-a-10),this.tooltipPosition.applyTooltipPosition(e,{x:n,y:r}),{x:n,y:r,ttWidth:i,ttHeight:a}}addDatapointEventsListeners(t){let s=this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(s,t)}addPathsEventListeners(t,e){let s=this;for(let i=0;it[i].addEventListener(r,s.onSeriesHover.bind(s,a),{capture:!1,passive:!0}))}}onSeriesHover(t,e){let i=Date.now()-this.lastHoverTime;i>=20?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(()=>{this.seriesHover(t,e)},20-i))}seriesHover(t,e){if(this.w.globals.isDestroyed)return;this.lastHoverTime=Date.now();let s=[],i=this.w,a=n=>{var r,o,l;let c=(l=(o=(r=n?.w)==null?void 0:r.config)==null?void 0:o.chart)==null?void 0:l.link;return!!(c&&typeof c.dimension=="function")};i.config.chart.group&&!a(this.ctx)&&(s=this.ctx.getSyncedCharts().filter(n=>!a(n))),!(i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||i.globals.dataPoints===0))&&(s.length?s.forEach(n=>{let r=this.getElTooltip(n),o={paths:t.paths,tooltipEl:r,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===this.w.globals.minX&&n.w.globals.maxX===this.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:o,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}seriesHoverByContext({chartCtx:t,ttCtx:e,opt:s,e:i}){let a=t.w;if(!this.getElTooltip(t))return;let r=e.getCachedDimensions();e.tooltipRect={x:0,y:0,ttWidth:r.ttWidth,ttHeight:r.ttHeight},e.e=i,e.tooltipUtil.hasBars()&&!a.globals.comboCharts&&!e.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new ct(t.w).toggleSeriesOnHover(i,i.target.parentNode),a.globals.axisCharts?e.axisChartsTooltips({e:i,opt:s,tooltipRect:e.tooltipRect}):e.nonAxisChartsTooltips({e:i,opt:s,tooltipRect:e.tooltipRect}),e.fixedTooltip&&e.drawFixedTooltipRect()}axisChartsTooltips({e:t,opt:e}){var s;let i=this.w,a,n;if(!e.elGrid)return;let r=e.elGrid.getBoundingClientRect(),o=t.type==="touchmove"?t.touches[0].clientX:t.clientX,l=t.type==="touchmove"?t.touches[0].clientY:t.clientY;if(this.clientY=l,this.clientX=o,i.interact.capturedSeriesIndex=-1,i.interact.capturedDataPointIndex=-1,lr.top+r.height){this.handleMouseOut(e);return}if(i.dom.elWrap.querySelector(".apexcharts-annotation-tooltip.apexcharts-active")){this.handleMouseOut(e);return}if(Array.isArray(this.tConfig.enabledOnSeries)&&!i.config.tooltip.shared){let g=parseInt(e.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0){this.handleMouseOut(e);return}}let c=this.getElTooltip();if(!c)return;let h=this.getElXCrosshairs(),d=[];i.config.chart.group&&(d=this.ctx.getSyncedCharts());let f=i.globals.xyCharts||i.config.chart.type==="bar"&&!i.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||i.globals.comboCharts&&this.tooltipUtil.hasBars();if(t.type==="mousemove"||t.type==="touchmove"||t.type==="mouseup"){if(i.globals.collapsedSeries.length+i.globals.ancillaryCollapsedSeries.length===i.seriesData.series.length)return;h!==null&&h.classList.add("apexcharts-active");let g=(s=this.yaxisTooltips)==null?void 0:s.filter(m=>m===!0),p=this.ycrosshairs;if(p!==null&&g?.length&&p.classList.add("apexcharts-active"),f&&!this.showOnIntersect||d.length>1)this.handleStickyTooltip(t,o,l,e);else if(i.config.chart.type==="heatmap"||i.config.chart.type==="treemap"){let m=this.intersect.handleHeatTreeTooltip({e:t,opt:e,x:a,y:n,type:i.config.chart.type});if(m.noHit){this.handleMouseOut(e);return}a=m.x,n=m.y,m.positioned||(c.style.left=a+"px",c.style.top=n+"px")}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:t,opt:e}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e:t,opt:e,x:a,y:n});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let m=0;m{let f=d.getAttribute("data:default-text");d.innerHTML=decodeURIComponent(f??"")})))}renderUnitTooltip(t){var e,s,i,a,n;let r=this.w,o=this.getElTooltip();if(!o)return;let l=parseInt(t.getAttribute("i")||"0",10),c=parseInt(t.getAttribute("j")||"0",10);if(typeof r.config.tooltip.custom=="function"){this.tooltipLabels.handleCustomTooltip({i:l,j:c,y1:null,y2:null,w:r});return}let h=r.seriesData.seriesNames[l]||`series-${l+1}`,d=Math.round(Number(r.seriesData.series[l])||0),f=t.parentNode,g=f&&f.querySelectorAll?f.querySelectorAll(".apexcharts-unit-area").length:d,p=r.config.plotOptions.unit||{},m=p.unitValue>0?p.unitValue:1,b=r.seriesData.unitData&&r.seriesData.unitData[l],x=b?b[c]:void 0,_=x&&typeof x=="object"?x:null,w=_&&_.fillColor||r.globals.colors&&r.globals.colors[l]||"#008FFB",y,v=p.tooltip&&p.tooltip.formatter;if(typeof v=="function")y=v({seriesName:h,seriesIndex:l,dataPointIndex:c,count:g,value:d,unitValue:m,datum:x,color:w,w:r});else if(x!=null){let k=_&&(i=(s=(e=_.name)!=null?e:_.label)!=null?s:_.x)!=null?i:null,L=_?(n=(a=_.value)!=null?a:_.y)!=null?n:null:x;y=k!=null&&L!=null?`${k}: ${L}`:k!=null?String(k):L!=null?String(L):`#${(c+1).toLocaleString()} of ${g.toLocaleString()}`}else y=`#${(c+1).toLocaleString()} of ${g.toLocaleString()}`,m!==1&&(y+=` · ${m.toLocaleString()} per dot`);let A=r.config.chart.fontFamily||"inherit",S=r.config.tooltip.style&&r.config.tooltip.style.fontSize||"12px",C=o.querySelector(".apexcharts-tooltip-arrow");o.innerHTML=`
${h}
${y}
`,C&&o.appendChild(C);let M=o.getBoundingClientRect();this.tooltipRect.ttWidth=M.width,this.tooltipRect.ttHeight=M.height}handleStickyTooltip(t,e,s,i){let a=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:i.hoverArea,elGrid:i.elGrid,clientX:e,clientY:s}),r=n.j,o=n.capturedSeries;o!==null&&a.globals.collapsedSeriesIndices.includes(o??-1)&&(o=null);let l=a.globals.barPadForNumericAxis||0;if(n.hoverX<-l||n.hoverX>a.layout.gridWidth+l){this.handleMouseOut(i);return}if(o!==null)this.handleStickyCapturedSeries(t,o??-1,i,r??0);else if(this.tooltipUtil.isXoverlap(r??0)||a.globals.isBarHorizontal){let c=a.seriesData.series.findIndex((h,d)=>!a.globals.collapsedSeriesIndices.includes(d));this.create(t,this,c,r??0,i.ttItems)}}handleStickyCapturedSeries(t,e,s,i){let a=this.w;if(!this.tConfig.shared&&a.seriesData.series[e][i]===null){this.handleMouseOut(s);return}if(typeof a.seriesData.series[e][i]<"u")this.tConfig.shared&&this.tooltipUtil.isXoverlap(i)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,i,s.ttItems):this.create(t,this,e,i,s.ttItems,!1);else if(this.tooltipUtil.isXoverlap(i)){let n=a.seriesData.series.findIndex((r,o)=>!a.globals.collapsedSeriesIndices.includes(o));this.create(t,this,n,i,s.ttItems)}}deactivateHoverFilter(){let t=this.w,e=new B(this.w,this.ctx),s=t.dom.Paper.find(".apexcharts-bar-area");for(let i=0;i{let o=r.getAttribute("data:default-text");r.innerHTML=decodeURIComponent(o??"")}))}markerClick(t,e,s){let i=this.w;typeof i.config.chart.events.markerClick=="function"&&i.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:s,w:i}])}_hasCustomSeries(){let t=this.w;return Yt(t.config.chart.type)?!0:(t.config.series||[]).some(s=>s&&s.type&&Yt(s.type))}create(t,e,s,i,a,n=null){var r,o,l,c,h,d,f,g,p,m,b,x,_,w,y,v,A,S,C,M,k;let L=this.w,E=e;t.type==="mouseup"&&this.markerClick(t,s,i),n===null&&(n=this.tConfig.shared);let D=this.tooltipUtil.hasMarkers(s),P=((o=(r=this.ctx)==null?void 0:r.renderer)==null?void 0:o.kind)==="canvas",F=P&&!this.tooltipUtil.hasBars(),R=!P&&!D&&!this.tooltipUtil.hasBars()&&this._hasCustomSeries(),N=F||R,z=this.tooltipUtil.getElBars(),$=()=>{L.globals.markers.largestSize>0&&!P?E.marker.enlargePoints(i):E.tooltipPosition.moveDynamicPointsOnHover(i)};if(L.config.legend.tooltipHoverFormatter){let I=L.config.legend.tooltipHoverFormatter,U=Array.from((l=this.legendLabels)!=null?l:[]);U.forEach(X=>{let V=X.getAttribute("data:default-text");X.innerHTML=decodeURIComponent(V??"")});for(let X=0;X0)){let I=new B(this.w,this.ctx),U=L.dom.Paper.find(`.apexcharts-bar-area[j='${i}']`);this.deactivateHoverFilter(),E.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&$(),E.tooltipPosition.moveStickyTooltipOverBars(i,s);for(let V=0;V=i?"canvas":"svg"}resolve(){let t=this.w.config.chart.renderer||"svg",e=this._desiredKind();if(e!=="svg"){let s=Qe().get(e);if(s)return this._instances[e]||(this._instances[e]=s(this.w,this.ctx)),this.active=this._instances[e],this._activeKind=e,this.ctx.renderer=this.active,this.w.globals.activeRenderer=this.active,this._activeKind;t===e&&console.warn(`[apexcharts] renderer:"${e}" requested but that renderer is not bundled (import 'apexcharts/features/renderer-${e}'); falling back to SVG.`)}else t==="canvas"&&wn(this.w)&&console.warn('[apexcharts] renderer:"canvas" requested but this chart uses a feature the canvas renderer does not render yet (gradient/pattern/image fill or a state color-matrix filter); falling back to SVG.');return this.active=this.svg,this._activeKind="svg",this.ctx.renderer=this.active,this.w.globals.activeRenderer=this.active,this._activeKind}getActiveKind(){return this._activeKind}teardown(){for(let t in this._instances){let e=this._instances[t];e&&typeof e.destroy=="function"&&e.destroy()}this._instances={},this.active=this.svg,this._activeKind="svg"}},ft=class u{constructor(t){this.node=t,t&&(t.instance=this),this._listeners=[],this._filter=null}attr(t,e){if(typeof t=="string"&&e===void 0)return this.node.getAttribute(t);let s=typeof t=="string"?{[t]:e}:t;for(let i in s){let a=s[i];a===null?this.node.removeAttribute(i):a!==void 0&&(typeof a=="number"&&isNaN(a)&&(a=0),this.node.setAttribute(i,a))}if(this.node.nodeName==="text"&&s.x!=null){let i=this.node.querySelectorAll("tspan[data-newline]");for(let a=0;ae.instance||new u(e))}findOne(t){let e=this.node.querySelector(t);return e?e.instance||new u(e):null}on(t,e){let s=t.split(".")[0];return this._listeners.push({event:t,eventType:s,handler:e}),this.node.addEventListener(s,e),this}off(t,e){if(!t&&!e)this._listeners.forEach(s=>{this.node.removeEventListener(s.eventType,s.handler)}),this._listeners=[];else if(t&&!e){let s=t.split(".")[0];this._listeners=this._listeners.filter(i=>i.eventType===s?(this.node.removeEventListener(i.eventType,i.handler),!1):!0)}else{let s=t.split(".")[0];this._listeners=this._listeners.filter(i=>i.eventType===s&&i.handler===e?(this.node.removeEventListener(i.eventType,i.handler),!1):!0)}return this}each(t,e){return Array.from(this.node.children).forEach(i=>{let a=i.instance||new u(i);t.call(a),e&&a.each(t,e)}),this}removeClass(t){return t==="*"?this.node.removeAttribute("class"):this.node.classList.remove(t),this}children(){return Array.from(this.node.childNodes).filter(t=>t.nodeType===1).map(t=>t.instance||new u(t))}hide(){return this.node.style.display="none",this}show(){return this.node.style.display="",this}bbox(){if(typeof this.node.getBBox=="function")try{return this.node.getBBox()}catch{}return{x:0,y:0,width:0,height:0}}tspan(t){let e=O.createElementNS("http://www.w3.org/2000/svg","tspan");return e.textContent=t,this.node.appendChild(e),new u(e)}plot(t){return typeof t=="string"&&this.attr("d",t),this}animate(){throw new Error("Animation module not loaded")}filterWith(){throw new Error("Filter module not loaded")}},pc=0,Bi=class extends ft{constructor(t,e,s){let i=e==="radial"?"radialGradient":"linearGradient",a=O.createElementNS(et,i);super(a),this._id="SvgjsGradient"+ ++pc,this.attr("id",this._id),typeof s=="function"&&s(new Yi(this));let n=t.node.querySelector("defs");n||(n=O.createElementNS(et,"defs"),t.node.appendChild(n)),n.appendChild(this.node)}stop(t,e,s){let i=O.createElementNS(et,"stop");return i.setAttribute("offset",t),i.setAttribute("stop-color",e),s!==void 0&&i.setAttribute("stop-opacity",String(s)),this.node.appendChild(i),this}from(t,e){return this.attr({x1:t,y1:e})}to(t,e){return this.attr({x2:t,y2:e})}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}},Yi=class{constructor(t){this.gradient=t}stop(t,e,s){return this.gradient.stop(t,e,s),this}},mc=0,zi=class extends ft{constructor(t,e,s,i){let a=O.createElementNS(et,"pattern");if(super(a),this._id="SvgjsPattern"+ ++mc,this.attr({id:this._id,width:e,height:s,patternUnits:"userSpaceOnUse"}),typeof i=="function"){let r=new ze(this.node);i(r)}let n=t.node.querySelector("defs");n||(n=O.createElementNS(et,"defs"),t.node.appendChild(n)),n.appendChild(this.node)}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}},ze=class u extends ft{line(t,e,s,i){let a=this._make("line");return t!==void 0&&a.attr({x1:t,y1:e,x2:s,y2:i}),a}rect(t,e){let s=this._make("rect");return t!==void 0&&s.attr({width:t,height:e}),s}circle(t){let e=this._make("circle");return t!==void 0&&e.attr({r:t/2,cx:t/2,cy:t/2}),e}path(t){let e=this._make("path");return t&&e.attr("d",t),e}polygon(t){let e=this._make("polygon");return t&&e.attr("points",t),e}group(){return this._makeContainer("g")}defs(){return this._makeContainer("defs")}plain(t){let e=O.createElementNS(et,"text");e.textContent=t;let s=new ft(e);return this.node.appendChild(e),s}text(t){let e=O.createElementNS(et,"text"),s=new ft(e);return this.node.appendChild(e),typeof t=="function"&&t(new Wi(e)),s}image(t,e){let s=O.createElementNS(et,"image");s.setAttributeNS("http://www.w3.org/1999/xlink","href",t);let i=new ft(s);if(this.node.appendChild(s),typeof e=="function"&&H.isBrowser()){let a=new Image;a.onload=function(){i.size(a.width,a.height),e.call(i,{width:a.width,height:a.height})},a.src=t}return i}gradient(t,e){return new Bi(this,t,e)}pattern(t,e,s){return new zi(this,t,e,s)}_make(t){let e=O.createElementNS(et,t);return this.node.appendChild(e),new ft(e)}_makeContainer(t){let e=O.createElementNS(et,t);return this.node.appendChild(e),new u(e)}},Wi=class{constructor(t){this.textNode=t}tspan(t){let e=O.createElementNS(et,"tspan");return e.textContent=t,this.textNode.appendChild(e),new Hi(e,this.textNode)}},Hi=class{constructor(t,e){this.node=t,this.textNode=e}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}},xc=0,$i=class extends ft{constructor(){let t=O.createElementNS(et,"filter");super(t),this._id="SvgjsFilter"+ ++xc,this.attr("id",this._id)}},Gi=class{constructor(t){this.filter=t}colorMatrix(t){return this._primitive("feColorMatrix",t)}offset(t){return this._primitive("feOffset",t)}gaussianBlur(t){return this._primitive("feGaussianBlur",t)}flood(t){return this._primitive("feFlood",t)}composite(t){return this._primitive("feComposite",t)}merge(t){let e=O.createElementNS(et,"feMerge");return t.forEach(s=>{let i=O.createElementNS(et,"feMergeNode");i.setAttribute("in",s),e.appendChild(i)}),this.filter.node.appendChild(e),new ft(e)}_primitive(t,e){let s=O.createElementNS(et,t);for(let i in e)s.setAttribute(i,e[i]);return this.filter.node.appendChild(s),new ft(s)}};function bc(u){u.prototype.filterWith=function(t){let e=new $i;this._filter=e;let s=this.node;for(;s&&s.nodeName!=="svg";)s=s.parentNode;if(s){let i=s.querySelector("defs");i||(i=O.createElementNS(et,"defs"),s.insertBefore(i,s.firstChild)),i.appendChild(e.node)}return t(new Gi(e)),this.attr("filter","url(#"+e._id+")"),this},u.prototype.unfilter=function(t){return this._filter&&(this.node.removeAttribute("filter"),t&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this},u.prototype.filterer=function(){return this._filter}}function yc(u){u.prototype.draggable=function(t){if(t===!1)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;let e=this,s=t||{},i=a=>{if(a.button&&a.button!==0)return;a.stopPropagation();let r=a.type==="touchstart"?a.touches[0]:a,o=e.node,l=parseFloat(o.getAttribute("x"))||0,c=parseFloat(o.getAttribute("y"))||0,h=r.clientX,d=r.clientY,f=o.ownerSVGElement,g=null;f&&(g=f.getScreenCTM());let p=b=>{let x=b.type==="touchmove"?b.touches[0]:b,_=x.clientX-h,w=x.clientY-d;g&&(_=_/g.a,w=w/g.d);let y=l+_,v=c+w,A=parseFloat(o.getAttribute("width"))||0,S=parseFloat(o.getAttribute("height"))||0;s.minX!==void 0&&ys.maxX&&(y=s.maxX-A),s.maxY!==void 0&&v+S>s.maxY&&(v=s.maxY-S);let C={x:y,y:v,w:A,h:S,x2:y+A,y2:v+S},M=new CustomEvent("dragmove",{detail:{handler:{move:function(k,L){o.setAttribute("x",k),o.setAttribute("y",L)}},box:C}});o.dispatchEvent(M)},m=()=>{H.isBrowser()&&(document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p),document.removeEventListener("mouseup",m),document.removeEventListener("touchend",m)),e._activeDrag=null};H.isBrowser()&&(document.addEventListener("mousemove",p),document.addEventListener("touchmove",p),document.addEventListener("mouseup",m),document.addEventListener("touchend",m),e._activeDrag={onMove:p,onUp:m})};return e.node.addEventListener("mousedown",i),e.node.addEventListener("touchstart",i),e._dragCleanup=()=>{e.node.removeEventListener("mousedown",i),e.node.removeEventListener("touchstart",i),e._activeDrag&&H.isBrowser()&&(document.removeEventListener("mousemove",e._activeDrag.onMove),document.removeEventListener("touchmove",e._activeDrag.onMove),document.removeEventListener("mouseup",e._activeDrag.onUp),document.removeEventListener("touchend",e._activeDrag.onUp),e._activeDrag=null)},e}}function wc(u){u.prototype.select=function(t){if(t===!1)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;let e=this,{createHandle:s,updateHandle:i}=t,a=document.createElementNS(et,"g");a.setAttribute("class","svg_select_points");let n=e.node.parentNode;n&&n.appendChild(a);let r={},o=["t","b","l","r","lt","rt","lb","rb"];o.forEach((c,h)=>{let d=new ze(document.createElementNS(et,"g"));a.appendChild(d.node);let f=s(d,[0,0],h,[],c);r[c]={group:d,handle:f}});let l=()=>{let c=parseFloat(e.attr("x"))||0,h=parseFloat(e.attr("y"))||0,d=parseFloat(e.attr("width"))||0,f=parseFloat(e.attr("height"))||0,g=e.node.getAttribute("transform");g?a.setAttribute("transform",g):a.removeAttribute("transform");let p={t:[c+d/2,h],b:[c+d/2,h+f],l:[c,h+f/2],r:[c+d,h+f/2],lt:[c,h],rt:[c+d,h],lb:[c,h+f],rb:[c+d,h+f]};o.forEach(m=>{r[m]&&p[m]&&i(r[m].group,p[m])})};return l(),e._selectHandles=a,e._selectHandlesMap=r,e._updateSelectPositions=l,e._selectCleanup=()=>{a.parentNode&&a.parentNode.removeChild(a),e._selectHandles=null,e._selectHandlesMap=null,e._updateSelectPositions=null},e},u.prototype.resize=function(t){if(t===!1)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;let e=this,s=e._selectHandlesMap;if(!s)return e;let i=[],a=n=>{let r=s[n];if(!r||!r.group||!r.group.node)return;let o=r.group.node,l=c=>{if(c.button&&c.button!==0)return;c.stopPropagation();let f=(c.type==="touchstart"?c.touches[0]:c).clientX,g=e.node.ownerSVGElement,p=null;g&&(p=g.getScreenCTM());let m=parseFloat(e.attr("x"))||0,b=parseFloat(e.attr("width"))||0,x=w=>{let v=(w.type==="touchmove"?w.touches[0]:w).clientX-f;p&&(v=v/p.a);let A=m,S=b;n==="l"?(A=m+v,S=b-v):n==="r"&&(S=b+v),S<0&&(S=0),e.attr({x:A,width:S}),e._updateSelectPositions&&e._updateSelectPositions();let C=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(C)},_=()=>{H.isBrowser()&&(document.removeEventListener("mousemove",x),document.removeEventListener("touchmove",x),document.removeEventListener("mouseup",_),document.removeEventListener("touchend",_));let w=new CustomEvent("resize",{detail:{el:e}});e.node.dispatchEvent(w)};H.isBrowser()&&(document.addEventListener("mousemove",x),document.addEventListener("touchmove",x),document.addEventListener("mouseup",_),document.addEventListener("touchend",_))};o.addEventListener("mousedown",l),o.addEventListener("touchstart",l),i.push(()=>{o.removeEventListener("mousedown",l),o.removeEventListener("touchstart",l)})};return a("l"),a("r"),e._resizeCleanup=()=>{i.forEach(n=>n())},e}}bc(ft);pl(ft);yc(ft);wc(ft);function bs(){let u=O.createElementNS(et,"svg"),t=new ze(u);return t.attr({xmlns:et}),t}bs.xlink="http://www.w3.org/1999/xlink";H.isBrowser()&&typeof window.SVG>"u"&&(window.SVG=bs);H.isBrowser()?(typeof window.SVG>"u"&&(window.SVG=bs),typeof window.Apex>"u"&&(window.Apex={})):typeof global<"u"&&(typeof global.Apex>"u"&&(global.Apex={}),typeof global.SVG>"u"&&(global.SVG=bs));var Vr=class Vi{static registerFeatures(t){for(let[e,s]of Object.entries(t))Vi._featureRegistry.set(e,s)}constructor(t){this.ctx=t,this.w=t.w}initModules(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","drillDown","drillUp","drillToRoot","clearDrilldownCache","paper","getActiveRenderer","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend","keydown","keyup"],this.ctx.animations=new St(this.w,this.ctx),this.ctx.axes=new yi(this.w,this.ctx),this.ctx.core=new Ei(this.ctx.el,this.w,this.ctx),this.ctx.config=new se({}),this.ctx.data=new Ye(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new Xe(this.w,this.ctx),this.ctx.graphics=new B(this.w,this.ctx),this.ctx.coreUtils=new lt(this.w),this.ctx.crosshairs=new Be(this.w),this.ctx.events=new xi(this.w,this.ctx),this.ctx.fill=new pt(this.w),this.ctx.localization=new bi(this.w),this.ctx.options=new wt,this.ctx.responsive=new wi(this.w),this.ctx.series=new ct(this.w,{toggleDataSeries:(...e)=>{var s;return(s=this.ctx.legend)==null?void 0:s.legendHelpers.toggleDataSeries(...e)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...e)=>this.ctx.updateHelpers._updateSeries(...e)}),this.ctx.theme=new _i(this.w),this.ctx.formatters=new ee(this.w),this.ctx.titleSubtitle=new Ai(this.w),this.ctx.dimensions=new ye(this.w,this.ctx),this.ctx.updateHelpers=new Pi(this.w,this.ctx),this.ctx.rendererController=new xs(this.w,this.ctx),this.ctx.renderer=this.ctx.rendererController.active;let t=new Xi(this.w,this.ctx);this.w.globals.tooltip=t,Object.defineProperty(this.ctx,"tooltip",{get(){return this.w.globals.tooltip},configurable:!0}),this._initOptionalModules()}_initOptionalModules(){let t=Vi._featureRegistry,e=this.w,s=this.ctx,i=t.get("exports");s.exports=i?new i(e,s):null;let a=t.get("legend");s.legend=a?new a(e,s):null;let n=t.get("morphTypeChange");s.morphTypeChange=n?new n(e,s):null;let r=t.get("drilldown");s.drilldown=r?new r(e,s):null;let o=t.get("perspectives");s.perspectives=o?new o(e,s):null;let l=t.get("storyboard");s.storyboard=l?new l(e,s):null;let c=t.get("history");s.history=c?new c(e,s):null;let h=t.get("linkedViews");s.linkedViews=h?new h(e,s):null;let d=t.get("ink");s.ink=d?new d(e,s):null;let f=t.get("measure");s.measure=f?new f(e,s):null;let g=t.get("contextMenu");s.contextMenu=g?new g(e,s):null;let p=t.get("weave");s.weave=p?new p(e,s):null;let m=t.get("osThemeWatcher");s.osThemeWatcher=m?new m(e,s):null;let b=t.get("toolbar");Object.defineProperty(s,"toolbar",{get(){var w;return!this._toolbar&&b&&(this._toolbar=new b(e,this)),(w=this._toolbar)!=null?w:null},configurable:!0});let x=t.get("zoomPanSelection");Object.defineProperty(s,"zoomPanSelection",{get(){var w;return!this._zoomPanSelection&&x&&(this._zoomPanSelection=new x(e,this)),(w=this._zoomPanSelection)!=null?w:null},configurable:!0});let _=t.get("keyboardNavigation");Object.defineProperty(s,"keyboardNavigation",{get(){var w;return!this._keyboardNavigation&&_&&(this._keyboardNavigation=new _(e,this)),(w=this._keyboardNavigation)!=null?w:null},configurable:!0})}};J(Vr,"_featureRegistry",new Map);var ts=Vr,ys=class{constructor(t){this.ctx=t,this.w=t.w}clear({isUpdating:t}){var e,s,i,a,n,r,o,l,c,h,d,f;(e=this.ctx.weave)==null||e.teardown(t),t||(this.w.globals.isDestroyed=!0),this.ctx._zoomPanSelection&&this.ctx._zoomPanSelection.destroy(),this.ctx._toolbar&&this.ctx._toolbar.destroy(),this.w.globals.resizeObserver&&typeof this.w.globals.resizeObserver.disconnect=="function"&&(this.w.globals.resizeObserver.disconnect(),this.w.globals.resizeObserver=null),Ne.invalidateAll(this.w),t?(this.ctx._zoomPanSelection=null,this.ctx._toolbar=null,(s=this.ctx._keyboardNavigation)==null||s.destroy(),this.ctx._keyboardNavigation=null):((i=this.ctx.perspectives)==null||i.teardown(),this.ctx.perspectives=null,(a=this.ctx.storyboard)==null||a.teardown(),this.ctx.storyboard=null,(n=this.ctx.history)==null||n.teardown(),this.ctx.history=null,(r=this.ctx.linkedViews)==null||r.teardown(),this.ctx.linkedViews=null,(o=this.ctx.ink)==null||o.teardown(),this.ctx.ink=null,(l=this.ctx.measure)==null||l.teardown(),this.ctx.measure=null,(c=this.ctx.contextMenu)==null||c.teardown(),this.ctx.contextMenu=null,(h=this.ctx.osThemeWatcher)==null||h.teardown(),this.ctx.osThemeWatcher=null,this.ctx.weave=null,(f=(d=this.ctx.rendererController)==null?void 0:d.teardown)==null||f.call(d),this.ctx.rendererController=null,this.ctx.renderer=null,this.ctx.drilldown=null,this.ctx.morphTypeChange=null,this.ctx.exports=null,this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx._zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx._toolbar=null,this.ctx.localization=null,this.ctx._keyboardNavigation=null,this.ctx.w.globals.tooltip=null),this.clearDomElements({isUpdating:t})}killSVG(t){t.each(function(){this.removeClass("*"),this.off()},!0),t.clear()}clearDomElements({isUpdating:t}){let e=this.w.dom;if(H.isBrowser()&&e.Paper){let s=e.Paper.node;s.parentNode&&s.parentNode.parentNode&&!t&&(s.parentNode.parentNode.style.minHeight="unset");let i=e.baseEl;if(i&&this.ctx.eventList.forEach(a=>{i.removeEventListener(a,this.ctx.events.documentEvent)}),this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(e.Paper),e.Paper.remove()}e.Paper=null,e.elWrap=null,e.elGraphical=null,e.elLegendWrap=null,e.elLegendForeign=null,e.baseEl=null,e.elGridRect=null,e.elGridRectMask=null,e.elGridRectBarMask=null,e.elGridRectMarkerMask=null,e.elForecastMask=null,e.elNonForecastMask=null,e.elDefs=null}},Ui="__apexcharts_unit_layouts__";globalThis[Ui]||(globalThis[Ui]={});function Va(){return globalThis[Ui]}function vc(u,t){if(!u||typeof u!="string"){console.warn("ApexCharts: registerUnitLayout requires a non-empty name.");return}if(typeof t!="function"){console.warn(`ApexCharts: registerUnitLayout("${u}") expects a function (objects, rect) => [{id, x, y}].`);return}Va()[u]=t}function _c(u){return u&&Va()[u]||null}function Ac(u){delete Va()[u]}var qi="__apexcharts_row_sources__";globalThis[qi]||(globalThis[qi]={});function Ua(){return globalThis[qi]}function Es(u,t){if(!u||typeof u!="string"){console.warn("ApexCharts: registerRowSource requires a non-empty name.");return}if(typeof t!="function"){console.warn(`ApexCharts: registerRowSource("${u}") expects a function (w, opts) => series.`);return}Ua()[u]=t}function Xn(u){return u&&Ua()[u]||null}function Sc(u){delete Ua()[u]}function Cc(u){let t=u&&u.config&&u.config.chart;return t?Xn(t.requestedType)||Xn(t.type):null}var Zs="__apexcharts_plugins__";function qa(){let u=globalThis;return u[Zs]||(u[Zs]={}),u[Zs]}function kc(u){if(!u||typeof u.name!="string"||typeof u.setup!="function"){console.error("[apexcharts] registerPlugin: a plugin needs a { name, setup } shape.");return}qa()[u.name]=u}function Mc(u){return qa()[u]||null}function Lc(u){delete qa()[u]}var ji=new WeakMap;function Dc(u,t){if(H.isSSR())return;let e=!1;if(u.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){let i=u.getBoundingClientRect();(u.style.display==="none"||i.width===0)&&(e=!0)}let s=new ResizeObserver(i=>{e&&t.call(u,i),e=!0});u.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(u.children).forEach(i=>s.observe(i)):s.observe(u),ji.set(t,s)}function Ec(u,t){if(H.isSSR())return;let e=ji.get(t);e&&(e.disconnect(),ji.delete(t))}var Tc=`@keyframes opaque { 0% { opacity: 0 } to { opacity: 1 } } @keyframes resizeanim { 0%, to { opacity: 0 } } .apexcharts-canvas { position: relative; direction: ltr !important; user-select: none; /* Focus indicator colour. Themes override below. */ --apexcharts-focus-color: #008FFB; } /* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */ .apexcharts-canvas .apexcharts-theme-dark, .apexcharts-theme-dark.apexcharts-canvas { --apexcharts-focus-color: #FFD500; } .apexcharts-canvas.apexcharts-high-contrast, .apexcharts-high-contrast.apexcharts-canvas { --apexcharts-focus-color: #FFFF00; } /* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */ .apexcharts-sr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* Respect OS-level reduced-motion preference (WCAG 2.3.3). */ @media (prefers-reduced-motion: reduce) { .apexcharts-canvas *, .apexcharts-canvas *::before, .apexcharts-canvas *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } .apexcharts-canvas ::-webkit-scrollbar { -webkit-appearance: none; width: 6px } .apexcharts-canvas ::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0, 0, 0, .5); box-shadow: 0 0 1px rgba(255, 255, 255, .5); -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5) } .apexcharts-inner { position: relative } .apexcharts-text tspan { font-family: inherit } rect.legend-mouseover-inactive, .legend-mouseover-inactive rect, .legend-mouseover-inactive path, .legend-mouseover-inactive circle, .legend-mouseover-inactive line, .legend-mouseover-inactive text.apexcharts-yaxis-title-text, .legend-mouseover-inactive text.apexcharts-yaxis-label { transition: .15s ease all; opacity: .2 } /* Linked Views (#4): per-mark crossfilter dim. Applied to individual data marks (not whole series) whose x is outside the brushed range. Opacity is overridable per chart via the --apx-cf-dim custom property. */ .apexcharts-crossfilter-dimmed { transition: opacity .25s ease; opacity: var(--apx-cf-dim, .2) } /* Linked Views (#4): default styling for the built-in crossfilter data table (cf.dataTable). Deliberately light so host styles can override. */ .apexcharts-cf-table { border-collapse: collapse; width: 100%; font-size: 13px; } .apexcharts-cf-table caption { caption-side: bottom; text-align: right; padding: 6px 2px; font-size: 12px; opacity: .7 } .apexcharts-cf-table th, .apexcharts-cf-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid rgba(0, 0, 0, .08) } .apexcharts-cf-table th { font-weight: 600; border-bottom-width: 2px } .apexcharts-cf-table tbody tr:hover { background: rgba(99, 102, 241, .06) } /* Measure ruler (#18): measure / delta ruler. Theme via these classes or the --apx-measure-* custom properties below (config \`chart.measure.colors\` overrides both). The ruler group also carries a direction class: apexcharts-measure-up | -down | -flat. Element classes: .apexcharts-measure-band shaded span band .apexcharts-measure-vline vertical guide lines .apexcharts-measure-line free-mode diagonal line .apexcharts-measure-label-bg readout box .apexcharts-measure-label text Colors are applied as SVG presentation attributes, so any rule you write on these classes overrides them. */ .apexcharts-canvas { --apx-measure-up: #16a34a; --apx-measure-down: #dc2626; --apx-measure-neutral: #64748b; --apx-measure-guide: #94a3b8; } .apexcharts-measure-capture { cursor: crosshair; } /* Radial Actions (#chrome): right-click context menu. Theme via these classes or the --apx-menu-* custom properties. */ .apexcharts-canvas { --apx-menu-bg: #ffffff; --apx-menu-fg: #1e293b; --apx-menu-border: #e2e8f0; --apx-menu-hover: #f1f5f9; --apx-menu-shadow: rgba(15, 23, 42, 0.18); } .apexcharts-context-menu { min-width: 168px; padding: 4px; border-radius: 8px; background: var(--apx-menu-bg); border: 1px solid var(--apx-menu-border); box-shadow: 0 6px 22px var(--apx-menu-shadow); font-family: Helvetica, Arial, sans-serif; font-size: 13px; z-index: 20; user-select: none; } .apexcharts-context-menu-item { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 7px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--apx-menu-fg); font: inherit; cursor: pointer; } .apexcharts-context-menu-item:hover, .apexcharts-context-menu-item--active { background: var(--apx-menu-hover); } .apexcharts-context-menu-item:focus { outline: none; } /* Ink Layer (#7): the floating note editor card, opened by clicking an ink-managed annotation. Theme via these classes or the --apx-ink-* vars. */ .apexcharts-canvas { --apx-ink-card-bg: #ffffff; --apx-ink-card-fg: #1e293b; --apx-ink-card-border: #e2e8f0; --apx-ink-card-hover: #f1f5f9; --apx-ink-card-accent: #6366f1; --apx-ink-card-shadow: rgba(15, 23, 42, 0.18); } .apexcharts-ink-card { position: absolute; z-index: 25; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 8px; background: var(--apx-ink-card-bg); border: 1px solid var(--apx-ink-card-border); box-shadow: 0 6px 22px var(--apx-ink-card-shadow); font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: var(--apx-ink-card-fg); user-select: none; } .apexcharts-ink-card-row { display: flex; align-items: center; gap: 4px; } .apexcharts-ink-card input.apexcharts-ink-editor { flex: 1 1 auto; width: 150px; min-width: 0; box-sizing: border-box; padding: 4px 6px; font: inherit; color: inherit; background: transparent; border: 1px solid var(--apx-ink-card-border); border-radius: 5px; } .apexcharts-ink-card input.apexcharts-ink-editor:focus { outline: none; border-color: var(--apx-ink-card-accent); } .apexcharts-ink-btn { flex: 0 0 auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; } .apexcharts-ink-btn:hover, .apexcharts-ink-btn--active { background: var(--apx-ink-card-hover); } .apexcharts-ink-btn:focus-visible, .apexcharts-ink-swatch:focus-visible { outline: 2px solid var(--apx-ink-card-accent); outline-offset: 1px; } .apexcharts-ink-btn--bold { font-weight: 700; } .apexcharts-ink-btn--delete:hover { color: #dc2626; } .apexcharts-ink-swatch { flex: 0 0 auto; width: 16px; height: 16px; padding: 0; border: 1px solid rgba(100, 116, 139, 0.45); border-radius: 50%; cursor: pointer; } .apexcharts-ink-swatch--active { box-shadow: 0 0 0 2px var(--apx-ink-card-bg), 0 0 0 4px var(--apx-ink-card-accent); } .apexcharts-ink-sep { flex: 0 0 auto; width: 1px; height: 16px; margin: 0 2px; background: var(--apx-ink-card-border); } .apexcharts-ink-cardlabel { flex: 0 0 auto; font-size: 10px; letter-spacing: 0.4px; text-transform: uppercase; opacity: 0.65; margin-right: 2px; } .apexcharts-ink-marker-size { flex: 0 0 auto; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; } .apexcharts-legend-text { padding-left: 15px; margin-left: -15px; } .apexcharts-legend-series[role="button"]:focus { outline: 2px solid var(--apexcharts-focus-color, #008FFB); outline-offset: 2px; } .apexcharts-legend-series[role="button"]:focus:not(:focus-visible) { outline: none; } .apexcharts-legend-series[role="button"]:focus-visible { outline: 2px solid var(--apexcharts-focus-color, #008FFB); outline-offset: 2px; } .apexcharts-series-collapsed { opacity: 0 } .apexcharts-canvas svg:focus:not(:focus-visible) { outline: none; } /* Keyboard navigation focus indicator on SVG data elements. SVG elements don't support CSS outline, so we use stroke. */ .apexcharts-bar-area.apexcharts-keyboard-focused, .apexcharts-candlestick-area.apexcharts-keyboard-focused, .apexcharts-boxPlot-area.apexcharts-keyboard-focused, .apexcharts-rangebar-area.apexcharts-keyboard-focused, .apexcharts-pie-area.apexcharts-keyboard-focused, .apexcharts-heatmap-rect.apexcharts-keyboard-focused, .apexcharts-treemap-rect.apexcharts-keyboard-focused { stroke: var(--apexcharts-focus-color, #008FFB); stroke-width: 2; stroke-opacity: 1; } .apexcharts-tooltip { --apx-tt-bg: #ffffff; /* Shared by the body and the arrow's two outward facets, so the * hairline reads as one continuous outline around the whole shape. * Keep it strong enough to survive on its own: the shadow below is * elevation, not edge definition. */ --apx-tt-border: rgba(15, 23, 42, 0.12); /* Elevation, in three layers: a tight contact shadow that anchors the * bottom edge, a directional key shadow for the lift, and a wide * ambient one that grounds the whole box. Each is weaker and more * diffuse than the last. * * A tooltip is unusual in that it floats over *data*, so reach costs * more than it does on a page: every pixel the shadow travels tints a * bar or a line the reader is trying to compare. These numbers are * tuned to keep the near-edge contrast that reads as elevation while * dropping the long low haze that only muddies the plot. * * Note there is deliberately no \`0 0 0 1px\` ring layer. That used to * stand in for edge definition back when --apx-tt-border was barely * visible; now that the border is a real hairline (and the arrow * shares it) a ring only double-draws the outline, and being spread * rather than offset it leaked ink upward too, flattening the lift. * * \`--apx-tt-shadow-dir\` flips the whole stack's Y in one place \u2014 see * the \`[data-placement="bottom"]\` rule further down. */ --apx-tt-shadow-dir: 1; --apx-tt-shadow: 0 calc(var(--apx-tt-shadow-dir) * 1px) 2px rgba(15, 23, 42, 0.06), 0 calc(var(--apx-tt-shadow-dir) * 4px) 8px -2px rgba(15, 23, 42, 0.10), 0 calc(var(--apx-tt-shadow-dir) * 12px) 20px -8px rgba(15, 23, 42, 0.14); --apx-tt-arrow-bg: var(--apx-tt-bg); --apx-tt-color: #0f172a; --apx-tt-color-muted: rgba(15, 23, 42, 0.55); border-radius: 8px; background: var(--apx-tt-bg); border: 1px solid var(--apx-tt-border); box-shadow: var(--apx-tt-shadow); color: var(--apx-tt-color); cursor: default; font-size: 13px; left: 0; top: 0; opacity: 0; pointer-events: none; position: absolute; display: flex; flex-direction: column; padding: 2px 0; white-space: nowrap; z-index: 12; transition: opacity .12s ease } /* While the tooltip is visible, smoothly animate position changes * between data points. Kept short (160 ms) and ease-out so it stays * responsive \u2014 too long would feel laggy when sweeping across many * points fast. The position transition is only attached after the * first paint (Position.applyTooltipPosition flips \`data-positioned\` * once the tooltip has been placed) so the *first* show doesn't slide * the tooltip in from the previously-stale (0,0) coordinates. */ .apexcharts-tooltip.apexcharts-active { opacity: 1; transition: opacity .12s ease } .apexcharts-tooltip.apexcharts-active[data-positioned="true"] { transition: opacity .12s ease, left .16s ease-out, top .16s ease-out } .apexcharts-tooltip.apexcharts-theme-light { /* defaults already set above; class kept for backward-compat selectors */ } .apexcharts-tooltip.apexcharts-theme-dark { --apx-tt-bg: #1c1c1f; --apx-tt-border: rgba(255, 255, 255, 0.16); /* Dark needs more alpha than light to register at all, but not as much * as it used to: the light rim above now carries the edge, so the * shadow is free to be pure elevation instead of doubling as an * outline. Same geometry as light, heavier ink. */ --apx-tt-shadow: 0 calc(var(--apx-tt-shadow-dir) * 1px) 2px rgba(0, 0, 0, 0.24), 0 calc(var(--apx-tt-shadow-dir) * 4px) 8px -2px rgba(0, 0, 0, 0.30), 0 calc(var(--apx-tt-shadow-dir) * 12px) 20px -8px rgba(0, 0, 0, 0.38); --apx-tt-color: #f3f4f6; --apx-tt-color-muted: rgba(243, 244, 246, 0.55); } .apexcharts-tooltip * { font-family: inherit } /* Point-annotation hover tooltip (apexcharts/apexcharts.js#2424). Reuses the * glass body/border/shadow from \`.apexcharts-tooltip\` but holds free-form * content, so it needs its own padding, wrapping and a sane max width. */ .apexcharts-tooltip.apexcharts-annotation-tooltip { padding: 6px 10px; max-width: 240px; white-space: normal; line-height: 1.4; pointer-events: none; z-index: 13 } .apexcharts-tooltip-title { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; color: var(--apx-tt-color-muted); background: transparent; border-bottom: none; margin-bottom: 0 } .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title, .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title { background: transparent; border-bottom: none } /* \`fillSeriesColor\`: each series-group already paints itself with the * series colour. Drop the glass body entirely (transparent bg, no * border, no backdrop-filter, no padding) and clip the coloured * series-group(s) to the tooltip's rounded corners so they fill the * shell edge-to-edge. Text inside the coloured group is forced to * white for contrast. */ .apexcharts-tooltip.apexcharts-tooltip-fill-series { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: none; padding: 0; overflow: hidden; color: #fff } .apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title { background: rgba(0, 0, 0, 0.22); color: #fff; opacity: 1; padding: 6px 12px } .apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group { color: #fff } /* Arrow connector \u2014 a 45\xB0-rotated square straddling the body's edge, so * the body's 1px border runs continuously out across the arrow and back. * The two facets that face away from the tooltip carry the border; the * two that face into it carry none, and the square's opaque fill covers * the segment of the body's own border it sits on, hiding the seam. * * This is why it's a rotated square and not a triangle: \`clip-path\` * erases \`border\` and \`box-shadow\` along with everything outside the * polygon, which left \`filter: drop-shadow\` as the only way to suggest * an edge \u2014 and a drop-shadow can only ever blur one, never draw a * hairline. Nothing here needs a filter. * * Geometry: a square of side S rotated 45\xB0 reaches S/\u221A2 from its centre * to each corner, so S = 10px gives the ~7px tip overhang that * ARROW_TIP_OVERHANG assumes (tooltip/constants.js) over a ~14px base. * The offsets park the square's *centre* 1px outside the padding box * (-6px = -1px border - 10px/2), i.e. exactly on the body's border line, * so the two borders meet end to end instead of overlapping or gapping. * \`box-sizing\` must be border-box or the bordered sides would grow the * square asymmetrically and knock its centre off that line. */ .apexcharts-tooltip-arrow { position: absolute; box-sizing: border-box; width: 10px; height: 10px; background: var(--apx-tt-arrow-bg); transform: rotate(45deg); pointer-events: none; top: calc(var(--apx-tt-arrow-y, 50%) - 5px) } /* Which two sides face outward depends on the placement. Under * \`rotate(45deg)\` the square's bottom-left corner swings to the left, * top-right to the right, top-left to the top and bottom-right to the * bottom \u2014 so the pair of borders below is always the two sharing the * corner that ends up as the tip. */ .apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow { left: -6px; border-left: 1px solid var(--apx-tt-border); border-bottom: 1px solid var(--apx-tt-border) } .apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow { right: -6px; border-top: 1px solid var(--apx-tt-border); border-right: 1px solid var(--apx-tt-border) } /* Vertical arrow variants: tooltip is above/below the data point and the * arrow points down/up. The base rule above uses \`--apx-tt-arrow-y\` for * left/right placement; for top/bottom we centre on \`--apx-tt-arrow-x\` * instead (set by applyTooltipPosition). */ .apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow, .apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow { top: auto; left: calc(var(--apx-tt-arrow-x, 50%) - 5px) } .apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow { bottom: -6px; border-right: 1px solid var(--apx-tt-border); border-bottom: 1px solid var(--apx-tt-border) } .apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow { top: -6px; border-top: 1px solid var(--apx-tt-border); border-left: 1px solid var(--apx-tt-border) } /* When the tooltip is flipped below the data point, the default * downward-biased shadow leaves its top edge undefined. Negating the * direction casts the whole elevation upward instead, so the shadow * falls between the tooltip and the mark above it. One multiplier flips * all three layers together; the arrow needs no counterpart, since its * border doesn't depend on light direction. */ .apexcharts-tooltip[data-placement="bottom"] { --apx-tt-shadow-dir: -1 } .apexcharts-tooltip-text-goals-value, .apexcharts-tooltip-text-y-value, .apexcharts-tooltip-text-z-value { display: inline-block; margin-left: 5px; font-weight: 600 } .apexcharts-tooltip-text-goals-label:empty, .apexcharts-tooltip-text-goals-value:empty, .apexcharts-tooltip-text-y-label:empty, .apexcharts-tooltip-text-y-value:empty, .apexcharts-tooltip-text-z-value:empty, .apexcharts-tooltip-title:empty { display: none } .apexcharts-tooltip-text-goals-label, .apexcharts-tooltip-text-goals-value { padding: 6px 0 5px } .apexcharts-tooltip-goals-group, .apexcharts-tooltip-text-goals-label, .apexcharts-tooltip-text-goals-value { display: flex } .apexcharts-tooltip-text-goals-label:not(:empty), .apexcharts-tooltip-text-goals-value:not(:empty) { margin-top: -6px } .apexcharts-tooltip-marker { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 12px; height: 12px; margin-right: 6px; vertical-align: middle; color: inherit; } .apexcharts-tooltip-marker svg { width: 100%; height: 100%; display: block; } .apexcharts-tooltip-series-group { padding: 4px 12px; display: none; gap: 8px; text-align: left; justify-content: left; align-items: center } .apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker { opacity: 1 } .apexcharts-tooltip-series-group.apexcharts-active:last-child, .apexcharts-tooltip-series-group:last-child { padding-bottom: 8px } .apexcharts-tooltip-y-group { padding: 6px 0 5px } .apexcharts-custom-tooltip, .apexcharts-tooltip-box { padding: 4px 8px } .apexcharts-tooltip-boxPlot { display: flex; flex-direction: column-reverse } .apexcharts-tooltip-box>div { margin: 4px 0 } .apexcharts-tooltip-box span.value { font-weight: 700 } .apexcharts-tooltip-rangebar { padding: 5px 8px } .apexcharts-tooltip-rangebar .category { font-weight: 600; color: #777 } .apexcharts-tooltip-rangebar .series-name { font-weight: 700; display: block; margin-bottom: 5px } /* X/Y axis tooltips \u2014 small popovers that label the crosshair on the * axes. Restyled to match the modern data-tooltip palette: solid white * body with a subtle border + soft drop-shadow, smaller font, rounded * corners. The arrows still use the CSS border-triangle technique * (cheap, crisp at small sizes); their colours flow from CSS variables * so light/dark themes only need one override per axis. */ .apexcharts-xaxistooltip, .apexcharts-yaxistooltip { --apx-axt-bg: #ffffff; --apx-axt-border: rgba(15, 23, 42, 0.08); --apx-axt-color: #0f172a; --apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12); opacity: 0; pointer-events: none; color: var(--apx-axt-color); font-size: 12px; font-weight: 500; text-align: center; border-radius: 6px; position: absolute; z-index: 10; background: var(--apx-axt-bg); border: 1px solid var(--apx-axt-border); box-shadow: var(--apx-axt-shadow) } .apexcharts-xaxistooltip.apexcharts-theme-dark, .apexcharts-yaxistooltip.apexcharts-theme-dark { --apx-axt-bg: #1c1c1f; --apx-axt-border: rgba(255, 255, 255, 0.1); --apx-axt-color: #f3f4f6; --apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45) } .apexcharts-xaxistooltip { padding: 4px 8px; transition: .15s ease all } .apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before { left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } /* :before paints the 1px border outline of the triangle (slightly larger * than :after); :after sits inside and paints the fill \u2014 leaves a 1px * ring of :before visible at the edges. */ .apexcharts-xaxistooltip:after { border-color: transparent; border-width: 5px; margin-left: -5px } .apexcharts-xaxistooltip:before { border-color: transparent; border-width: 6px; margin-left: -6px } .apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before { bottom: 100% } .apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before { top: 100% } .apexcharts-xaxistooltip-bottom:after { border-bottom-color: var(--apx-axt-bg) } .apexcharts-xaxistooltip-bottom:before { border-bottom-color: var(--apx-axt-border) } .apexcharts-xaxistooltip-top:after { border-top-color: var(--apx-axt-bg) } .apexcharts-xaxistooltip-top:before { border-top-color: var(--apx-axt-border) } .apexcharts-xaxistooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-yaxistooltip { padding: 3px 8px } .apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before { top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-yaxistooltip:after { border-color: transparent; border-width: 5px; margin-top: -5px } .apexcharts-yaxistooltip:before { border-color: transparent; border-width: 6px; margin-top: -6px } .apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before { left: 100% } .apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before { right: 100% } .apexcharts-yaxistooltip-left:after { border-left-color: var(--apx-axt-bg) } .apexcharts-yaxistooltip-left:before { border-left-color: var(--apx-axt-border) } .apexcharts-yaxistooltip-right:after { border-right-color: var(--apx-axt-bg) } .apexcharts-yaxistooltip-right:before { border-right-color: var(--apx-axt-border) } .apexcharts-yaxistooltip.apexcharts-active { opacity: 1 } .apexcharts-yaxistooltip-hidden { display: none } .apexcharts-xcrosshairs, .apexcharts-ycrosshairs { pointer-events: none; opacity: 0; transition: .15s ease all } .apexcharts-xcrosshairs.apexcharts-active, .apexcharts-ycrosshairs.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-ycrosshairs-hidden { opacity: 0 } .apexcharts-selection-rect { cursor: move } .svg_select_shape { stroke-width: 1; stroke-dasharray: 10 10; stroke: black; stroke-opacity: 0.1; pointer-events: none; fill: none; } .svg_select_handle { stroke-width: 3; stroke: black; fill: none; } .svg_select_handle_r { cursor: e-resize; } .svg_select_handle_l { cursor: w-resize; } .apexcharts-svg.apexcharts-zoomable.hovering-zoom { cursor: crosshair } .apexcharts-svg.apexcharts-zoomable.hovering-pan { cursor: move } .apexcharts-menu-icon, .apexcharts-measure-icon, .apexcharts-pan-icon, .apexcharts-reset-icon, .apexcharts-selection-icon, .apexcharts-toolbar-custom-icon, .apexcharts-zoom-icon, .apexcharts-zoomin-icon, .apexcharts-zoomout-icon { cursor: pointer; /* WCAG 2.5.8 Target Size (Minimum): 24\xD724 CSS px hit target. */ width: 26px; height: 24px; line-height: 24px; color: #6e8192; text-align: center; /* Reset native