0;)s=c[i],d[s]||(a[s]=e[s],d[s]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a}function jg(e,a,r){e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;var c=e.indexOf(a,r);return c!==-1&&c===r}function Xg(e){if(!e)return null;var a=e.length;if(Mt(a))return null;for(var r=new Array(a);a-- >0;)r[a]=e[a];return r}var Wg=function(e){return function(a){return e&&a instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),D2={isArray:Zo,isArrayBuffer:_9,isBuffer:kg,isFormData:Og,isArrayBufferView:Ag,isString:Sg,isNumber:_g,isObject:E9,isPlainObject:Jl,isUndefined:Mt,isDate:Eg,isFile:zg,isBlob:Tg,isFunction:ko,isStream:Ig,isURLSearchParams:qg,isStandardBrowserEnv:Fg,forEach:Ao,merge:vr,extend:Dg,trim:Rg,stripBOM:Ng,inherits:Bg,toFlatObject:Yg,kindOf:wo,kindOfTest:ge,endsWith:jg,toArray:Xg,isTypedArray:Wg,isFileList:Pg},Ae=D2;function Q6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var z9=function(a,r,c){if(!r)return a;var i;if(c)i=c(r);else if(Ae.isURLSearchParams(r))i=r.toString();else{var s=[];Ae.forEach(r,function(y,V){y===null||typeof y>"u"||(Ae.isArray(y)?V=V+"[]":y=[y],Ae.forEach(y,function(x){Ae.isDate(x)?x=x.toISOString():Ae.isObject(x)&&(x=JSON.stringify(x)),s.push(Q6(V)+"="+Q6(x))}))}),i=s.join("&")}if(i){var d=a.indexOf("#");d!==-1&&(a=a.slice(0,d)),a+=(a.indexOf("?")===-1?"?":"&")+i}return a},$g=D2;function s4(){this.handlers=[]}s4.prototype.use=function(a,r,c){return this.handlers.push({fulfilled:a,rejected:r,synchronous:c?c.synchronous:!1,runWhen:c?c.runWhen:null}),this.handlers.length-1};s4.prototype.eject=function(a){this.handlers[a]&&(this.handlers[a]=null)};s4.prototype.forEach=function(a){$g.forEach(this.handlers,function(c){c!==null&&a(c)})};var Gg=s4,Ug=D2,Qg=function(a,r){Ug.forEach(a,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(a[r]=i,delete a[s])})},T9=D2;function $e(e,a,r,c,i){Error.call(this),this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),c&&(this.request=c),i&&(this.response=i)}T9.inherits($e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var P9=$e.prototype,I9={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){I9[e]={value:e}});Object.defineProperties($e,I9);Object.defineProperty(P9,"isAxiosError",{value:!0});$e.from=function(e,a,r,c,i,s){var d=Object.create(P9);return T9.toFlatObject(e,d,function(y){return y!==Error.prototype}),$e.call(d,e.message,a,r,c,i),d.name=e.name,s&&Object.assign(d,s),d};var c3=$e,O9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},x0=D2;function Kg(e,a){a=a||new FormData;var r=[];function c(s){return s===null?"":x0.isDate(s)?s.toISOString():x0.isArrayBuffer(s)||x0.isTypedArray(s)?typeof Blob=="function"?new Blob([s]):Buffer.from(s):s}function i(s,d){if(x0.isPlainObject(s)||x0.isArray(s)){if(r.indexOf(s)!==-1)throw Error("Circular reference detected in "+d);r.push(s),x0.forEach(s,function(y,V){if(!x0.isUndefined(y)){var C=d?d+"."+V:V,x;if(y&&!d&&typeof y=="object"){if(x0.endsWith(V,"{}"))y=JSON.stringify(y);else if(x0.endsWith(V,"[]")&&(x=x0.toArray(y))){x.forEach(function(w){!x0.isUndefined(w)&&a.append(C,c(w))});return}}i(y,C)}}),r.pop()}else a.append(d,c(s))}return i(e),a}var q9=Kg,j4,K6;function Jg(){if(K6)return j4;K6=1;var e=c3;return j4=function(r,c,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?r(i):c(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},j4}var X4,J6;function eH(){if(J6)return X4;J6=1;var e=D2;return X4=e.isStandardBrowserEnv()?function(){return{write:function(c,i,s,d,p,y){var V=[];V.push(c+"="+encodeURIComponent(i)),e.isNumber(s)&&V.push("expires="+new Date(s).toGMTString()),e.isString(d)&&V.push("path="+d),e.isString(p)&&V.push("domain="+p),y===!0&&V.push("secure"),document.cookie=V.join("; ")},read:function(c){var i=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),X4}var lH=function(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)},tH=function(a,r){return r?a.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):a},aH=lH,rH=tH,R9=function(a,r){return a&&!aH(r)?rH(a,r):r},W4,en;function oH(){if(en)return W4;en=1;var e=D2,a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return W4=function(c){var i={},s,d,p;return c&&e.forEach(c.split(`
-`),function(V){if(p=V.indexOf(":"),s=e.trim(V.substr(0,p)).toLowerCase(),d=e.trim(V.substr(p+1)),s){if(i[s]&&a.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([d]):i[s]=i[s]?i[s]+", "+d:d}}),i},W4}var $4,ln;function cH(){if(ln)return $4;ln=1;var e=D2;return $4=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),c=document.createElement("a"),i;function s(d){var p=d;return r&&(c.setAttribute("href",p),p=c.href),c.setAttribute("href",p),{href:c.href,protocol:c.protocol?c.protocol.replace(/:$/,""):"",host:c.host,search:c.search?c.search.replace(/^\?/,""):"",hash:c.hash?c.hash.replace(/^#/,""):"",hostname:c.hostname,port:c.port,pathname:c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname}}return i=s(window.location.href),function(p){var y=e.isString(p)?s(p):p;return y.protocol===i.protocol&&y.host===i.host}}():function(){return function(){return!0}}(),$4}var G4,tn;function v4(){if(tn)return G4;tn=1;var e=c3,a=D2;function r(c){e.call(this,c==null?"canceled":c,e.ERR_CANCELED),this.name="CanceledError"}return a.inherits(r,e,{__CANCEL__:!0}),G4=r,G4}var U4,an;function nH(){return an||(an=1,U4=function(a){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return r&&r[1]||""}),U4}var Q4,rn;function on(){if(rn)return Q4;rn=1;var e=D2,a=Jg(),r=eH(),c=z9,i=R9,s=oH(),d=cH(),p=O9,y=c3,V=v4(),C=nH();return Q4=function(w){return new Promise(function(P,R){var S=w.data,_=w.headers,A=w.responseType,E;function B(){w.cancelToken&&w.cancelToken.unsubscribe(E),w.signal&&w.signal.removeEventListener("abort",E)}e.isFormData(S)&&e.isStandardBrowserEnv()&&delete _["Content-Type"];var j=new XMLHttpRequest;if(w.auth){var W=w.auth.username||"",Q=w.auth.password?unescape(encodeURIComponent(w.auth.password)):"";_.Authorization="Basic "+btoa(W+":"+Q)}var G=i(w.baseURL,w.url);j.open(w.method.toUpperCase(),c(G,w.params,w.paramsSerializer),!0),j.timeout=w.timeout;function e1(){if(!!j){var a1="getAllResponseHeaders"in j?s(j.getAllResponseHeaders()):null,c1=!A||A==="text"||A==="json"?j.responseText:j.response,o1={data:c1,status:j.status,statusText:j.statusText,headers:a1,config:w,request:j};a(function(w1){P(w1),B()},function(w1){R(w1),B()},o1),j=null}}if("onloadend"in j?j.onloadend=e1:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(e1)},j.onabort=function(){!j||(R(new y("Request aborted",y.ECONNABORTED,w,j)),j=null)},j.onerror=function(){R(new y("Network Error",y.ERR_NETWORK,w,j,j)),j=null},j.ontimeout=function(){var c1=w.timeout?"timeout of "+w.timeout+"ms exceeded":"timeout exceeded",o1=w.transitional||p;w.timeoutErrorMessage&&(c1=w.timeoutErrorMessage),R(new y(c1,o1.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,w,j)),j=null},e.isStandardBrowserEnv()){var t1=(w.withCredentials||d(G))&&w.xsrfCookieName?r.read(w.xsrfCookieName):void 0;t1&&(_[w.xsrfHeaderName]=t1)}"setRequestHeader"in j&&e.forEach(_,function(c1,o1){typeof S>"u"&&o1.toLowerCase()==="content-type"?delete _[o1]:j.setRequestHeader(o1,c1)}),e.isUndefined(w.withCredentials)||(j.withCredentials=!!w.withCredentials),A&&A!=="json"&&(j.responseType=w.responseType),typeof w.onDownloadProgress=="function"&&j.addEventListener("progress",w.onDownloadProgress),typeof w.onUploadProgress=="function"&&j.upload&&j.upload.addEventListener("progress",w.onUploadProgress),(w.cancelToken||w.signal)&&(E=function(a1){!j||(R(!a1||a1&&a1.type?new V:a1),j.abort(),j=null)},w.cancelToken&&w.cancelToken.subscribe(E),w.signal&&(w.signal.aborted?E():w.signal.addEventListener("abort",E))),S||(S=null);var v1=C(G);if(v1&&["http","https","file"].indexOf(v1)===-1){R(new y("Unsupported protocol "+v1+":",y.ERR_BAD_REQUEST,w));return}j.send(S)})},Q4}var K4,cn;function iH(){return cn||(cn=1,K4=null),K4}var T2=D2,nn=Qg,hn=c3,hH=O9,sH=q9,vH={"Content-Type":"application/x-www-form-urlencoded"};function sn(e,a){!T2.isUndefined(e)&&T2.isUndefined(e["Content-Type"])&&(e["Content-Type"]=a)}function uH(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=on()),e}function dH(e,a,r){if(T2.isString(e))try{return(a||JSON.parse)(e),T2.trim(e)}catch(c){if(c.name!=="SyntaxError")throw c}return(r||JSON.stringify)(e)}var u4={transitional:hH,adapter:uH(),transformRequest:[function(a,r){if(nn(r,"Accept"),nn(r,"Content-Type"),T2.isFormData(a)||T2.isArrayBuffer(a)||T2.isBuffer(a)||T2.isStream(a)||T2.isFile(a)||T2.isBlob(a))return a;if(T2.isArrayBufferView(a))return a.buffer;if(T2.isURLSearchParams(a))return sn(r,"application/x-www-form-urlencoded;charset=utf-8"),a.toString();var c=T2.isObject(a),i=r&&r["Content-Type"],s;if((s=T2.isFileList(a))||c&&i==="multipart/form-data"){var d=this.env&&this.env.FormData;return sH(s?{"files[]":a}:a,d&&new d)}else if(c||i==="application/json")return sn(r,"application/json"),dH(a);return a}],transformResponse:[function(a){var r=this.transitional||u4.transitional,c=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!c&&this.responseType==="json";if(s||i&&T2.isString(a)&&a.length)try{return JSON.parse(a)}catch(d){if(s)throw d.name==="SyntaxError"?hn.from(d,hn.ERR_BAD_RESPONSE,this,null,this.response):d}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iH()},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};T2.forEach(["delete","get","head"],function(a){u4.headers[a]={}});T2.forEach(["post","put","patch"],function(a){u4.headers[a]=T2.merge(vH)});var So=u4,mH=D2,pH=So,fH=function(a,r,c){var i=this||pH;return mH.forEach(c,function(d){a=d.call(i,a,r)}),a},J4,vn;function F9(){return vn||(vn=1,J4=function(a){return!!(a&&a.__CANCEL__)}),J4}var un=D2,ea=fH,bH=F9(),yH=So,gH=v4();function la(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gH}var HH=function(a){la(a),a.headers=a.headers||{},a.data=ea.call(a,a.data,a.headers,a.transformRequest),a.headers=un.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),un.forEach(["delete","get","head","post","put","patch","common"],function(i){delete a.headers[i]});var r=a.adapter||yH.adapter;return r(a).then(function(i){return la(a),i.data=ea.call(a,i.data,i.headers,a.transformResponse),i},function(i){return bH(i)||(la(a),i&&i.response&&(i.response.data=ea.call(a,i.response.data,i.response.headers,a.transformResponse))),Promise.reject(i)})},i0=D2,D9=function(a,r){r=r||{};var c={};function i(C,x){return i0.isPlainObject(C)&&i0.isPlainObject(x)?i0.merge(C,x):i0.isPlainObject(x)?i0.merge({},x):i0.isArray(x)?x.slice():x}function s(C){if(i0.isUndefined(r[C])){if(!i0.isUndefined(a[C]))return i(void 0,a[C])}else return i(a[C],r[C])}function d(C){if(!i0.isUndefined(r[C]))return i(void 0,r[C])}function p(C){if(i0.isUndefined(r[C])){if(!i0.isUndefined(a[C]))return i(void 0,a[C])}else return i(void 0,r[C])}function y(C){if(C in r)return i(a[C],r[C]);if(C in a)return i(void 0,a[C])}var V={url:d,method:d,data:d,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:y};return i0.forEach(Object.keys(a).concat(Object.keys(r)),function(x){var w=V[x]||s,Z=w(x);i0.isUndefined(Z)&&w!==y||(c[x]=Z)}),c},ta,dn;function N9(){return dn||(dn=1,ta={version:"0.27.2"}),ta}var VH=N9().version,M5=c3,_o={};["object","boolean","number","function","string","symbol"].forEach(function(e,a){_o[e]=function(c){return typeof c===e||"a"+(a<1?"n ":" ")+e}});var mn={};_o.transitional=function(a,r,c){function i(s,d){return"[Axios v"+VH+"] Transitional option '"+s+"'"+d+(c?". "+c:"")}return function(s,d,p){if(a===!1)throw new M5(i(d," has been removed"+(r?" in "+r:"")),M5.ERR_DEPRECATED);return r&&!mn[d]&&(mn[d]=!0,console.warn(i(d," has been deprecated since v"+r+" and will be removed in the near future"))),a?a(s,d,p):!0}};function MH(e,a,r){if(typeof e!="object")throw new M5("options must be an object",M5.ERR_BAD_OPTION_VALUE);for(var c=Object.keys(e),i=c.length;i-- >0;){var s=c[i],d=a[s];if(d){var p=e[s],y=p===void 0||d(p,s,e);if(y!==!0)throw new M5("option "+s+" must be "+y,M5.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new M5("Unknown option "+s,M5.ERR_BAD_OPTION)}}var CH={assertOptions:MH,validators:_o},B9=D2,LH=z9,pn=Gg,fn=HH,d4=D9,xH=R9,Y9=CH,Se=Y9.validators;function Ge(e){this.defaults=e,this.interceptors={request:new pn,response:new pn}}Ge.prototype.request=function(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=d4(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var c=r.transitional;c!==void 0&&Y9.assertOptions(c,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach(function(Z){typeof Z.runWhen=="function"&&Z.runWhen(r)===!1||(s=s&&Z.synchronous,i.unshift(Z.fulfilled,Z.rejected))});var d=[];this.interceptors.response.forEach(function(Z){d.push(Z.fulfilled,Z.rejected)});var p;if(!s){var y=[fn,void 0];for(Array.prototype.unshift.apply(y,i),y=y.concat(d),p=Promise.resolve(r);y.length;)p=p.then(y.shift(),y.shift());return p}for(var V=r;i.length;){var C=i.shift(),x=i.shift();try{V=C(V)}catch(w){x(w);break}}try{p=fn(V)}catch(w){return Promise.reject(w)}for(;d.length;)p=p.then(d.shift(),d.shift());return p};Ge.prototype.getUri=function(a){a=d4(this.defaults,a);var r=xH(a.baseURL,a.url);return LH(r,a.params,a.paramsSerializer)};B9.forEach(["delete","get","head","options"],function(a){Ge.prototype[a]=function(r,c){return this.request(d4(c||{},{method:a,url:r,data:(c||{}).data}))}});B9.forEach(["post","put","patch"],function(a){function r(c){return function(s,d,p){return this.request(d4(p||{},{method:a,headers:c?{"Content-Type":"multipart/form-data"}:{},url:s,data:d}))}}Ge.prototype[a]=r(),Ge.prototype[a+"Form"]=r(!0)});var wH=Ge,aa,bn;function ZH(){if(bn)return aa;bn=1;var e=v4();function a(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var c;this.promise=new Promise(function(d){c=d});var i=this;this.promise.then(function(s){if(!!i._listeners){var d,p=i._listeners.length;for(d=0;d{var c;return q("div",{class:["v-card-actions",e.class],style:e.style},[(c=r.default)==null?void 0:c.call(r)])}),{}}}),dr=t3("v-card-subtitle"),le=t3("v-card-title"),zH=H1({appendAvatar:String,appendIcon:u2,prependAvatar:String,prependIcon:u2,subtitle:String,title:String,...X1(),...T0()},"VCardItem"),bl=z1()({name:"VCardItem",props:zH(),setup(e,a){let{slots:r}=a;return N1(()=>{var V;const c=!!(e.prependAvatar||e.prependIcon),i=!!(c||r.prepend),s=!!(e.appendAvatar||e.appendIcon),d=!!(s||r.append),p=!!(e.title||r.title),y=!!(e.subtitle||r.subtitle);return q("div",{class:["v-card-item",e.class],style:e.style},[i&&q("div",{key:"prepend",class:"v-card-item__prepend"},[r.prepend?q(E2,{key:"prepend-defaults",disabled:!c,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},r.prepend):c&&q(M0,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),q("div",{class:"v-card-item__content"},[p&&q(le,{key:"title"},{default:()=>{var C,x;return[(x=(C=r.title)==null?void 0:C.call(r))!=null?x:e.title]}}),y&&q(dr,{key:"subtitle"},{default:()=>{var C,x;return[(x=(C=r.subtitle)==null?void 0:C.call(r))!=null?x:e.subtitle]}}),(V=r.default)==null?void 0:V.call(r)]),d&&q("div",{key:"append",class:"v-card-item__append"},[r.append?q(E2,{key:"append-defaults",disabled:!s,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},r.append):s&&q(M0,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),o5=t3("v-card-text"),TH=H1({appendAvatar:String,appendIcon:u2,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:u2,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...v5(),...X1(),...T0(),...fe(),...L0(),...po(),...vl(),...vo(),...F2(),...l4(),...d2(),...M2(),...s5({variant:"elevated"})},"VCard"),x5=z1()({name:"VCard",directives:{Ripple:pl},props:TH(),setup(e,a){let{attrs:r,slots:c}=a;const{themeClasses:i}=k2(e),{borderClasses:s}=u5(e),{colorClasses:d,colorStyles:p,variantClasses:y}=r3(e),{densityClasses:V}=U0(e),{dimensionStyles:C}=be(e),{elevationClasses:x}=z0(e),{loaderClasses:w}=fo(e),{locationStyles:Z}=ul(e),{positionClasses:P}=uo(e),{roundedClasses:R}=X2(e),S=e4(e,r),_=U(()=>e.link!==!1&&S.isLink.value),A=U(()=>!e.disabled&&e.link!==!1&&(e.link||S.isClickable.value));return N1(()=>{const E=_.value?"a":e.tag,B=!!(c.title||e.title),j=!!(c.subtitle||e.subtitle),W=B||j,Q=!!(c.append||e.appendAvatar||e.appendIcon),G=!!(c.prepend||e.prependAvatar||e.prependIcon),e1=!!(c.image||e.image),t1=W||G||Q,v1=!!(c.text||e.text);return P2(q(E,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":A.value},i.value,s.value,d.value,V.value,x.value,w.value,P.value,R.value,y.value,e.class],style:[p.value,C.value,Z.value,e.style],href:S.href.value,onClick:A.value&&S.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var a1;return[e1&&q("div",{key:"image",class:"v-card__image"},[c.image?q(E2,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},c.image):q(Y0,{key:"image-img",cover:!0,src:e.image},null)]),q(I8,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:c.loader}),t1&&q(bl,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:c.item,prepend:c.prepend,title:c.title,subtitle:c.subtitle,append:c.append}),v1&&q(o5,{key:"text"},{default:()=>{var c1,o1;return[(o1=(c1=c.text)==null?void 0:c1.call(c))!=null?o1:e.text]}}),(a1=c.default)==null?void 0:a1.call(c),c.actions&&q(ur,null,{default:c.actions}),a3(A.value,"v-card")]}}),[[$0("ripple"),A.value&&e.ripple]])}),{}}}),PH={class:"text-2xl font-weight-medium text-primary"},IH={__name:"AnalyticsAward",setup(e){const a=Ut(),r=U(()=>a.global.name.value==="light"?xg:Lg),c=I5();return c.getters.runmode==="online"&&c.getters.serverApi!==""&&E3.post(`${c.getters.serverApi}verify`,{token:c.getters.userToken}).then(i=>{var s,d;(s=i.data)!=null&&s.verify||(c.dispatch("user/logout"),c.commit("app/ADD_SNACKBAR",{message:"\u5F53\u524D\u8D26\u53F7\u9A8C\u8BC1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\uFF01",color:"warning"})),c.commit("app/SET_SERVERVERSION",((d=i.data)==null?void 0:d.version)||0)}).catch(i=>{c.commit("app/SET_RUNMODE","offline"),c.commit("app/ADD_SNACKBAR",{message:`\u670D\u52A1\u5668\u8FDE\u63A5\u9519\u8BEF\uFF0C\u5DF2\u8F6C\u5165\u79BB\u7EBF\u6A21\u5F0F\uFF0C\u8BF7\u68C0\u67E5\u63D2\u4EF6\u662F\u5426\u6B63\u5E38\u8FD0\u884C\u4E14\u4E3A\u6700\u65B0\u7248\u672C\uFF01
-${i.message}`,color:"error"}),console.log(i)}),(i,s)=>(j1(),c2(x5,{title:"ChatGPT \u63D2\u4EF6\u670D\u52A1\u5668",subtitle:"\u53EF\u8FDC\u7A0B\u8FDE\u63A5\u5230chatgpt-plugin\u8FDB\u884C\u76F8\u5173\u914D\u7F6E\u64CD\u4F5C",class:"position-relative"},{default:i1(()=>[q(o5,null,{default:i1(()=>[v2("h5",PH,t2(i.$store.state.app.mode==="online"&&i.$store.state.app.api?"\u8FDE\u63A5\u6B63\u5E38":"\u79BB\u7EBF\u6A21\u5F0F"),1),v2("p",null,t2(i.$store.state.app.api||"\u672A\u77E5\u533A\u57DF"),1),q(d0,{size:"small",onClick:s[0]||(s[0]=d=>i.$router.push({path:"login"}))},{default:i1(()=>[o2(t2(i.$store.state.app.mode==="online"&&i.$store.state.app.api?"\u65AD\u5F00\u8FDE\u63A5":"\u8FDE\u63A5\u533A\u57DF"),1)]),_:1})]),_:1}),q(Y0,{src:U1(r),class:"triangle-bg flip-in-rtl"},null,8,["src"]),q(Y0,{src:U1(wg),class:"trophy"},null,8,["src"])]),_:1}))}};var OH={exports:{}};const qH=qb(Zu);var ql={exports:{}};/*!
- * ApexCharts v3.28.3
- * (c) 2018-2022 ApexCharts
- * Released under the MIT License.
- */var Vn;function RH(){return Vn||(Vn=1,function(e,a){function r(F,l){var t=Object.keys(F);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(F);l&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(F,n).enumerable})),t.push.apply(t,o)}return t}function c(F){for(var l=1;l"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,o=C(F);if(l){var n=C(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return w(this,t)}}function P(F){return function(l){if(Array.isArray(l))return R(l)}(F)||function(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}(F)||function(l,t){if(!!l){if(typeof l=="string")return R(l,t);var o=Object.prototype.toString.call(l).slice(8,-1);if(o==="Object"&&l.constructor&&(o=l.constructor.name),o==="Map"||o==="Set")return Array.from(l);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return R(l,t)}}(F)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R(F,l){(l==null||l>F.length)&&(l=F.length);for(var t=0,o=new Array(l);t>16,v=o>>8&255,m=255&o;return"#"+(16777216+65536*(Math.round((n-u)*h)+u)+256*(Math.round((n-v)*h)+v)+(Math.round((n-m)*h)+m)).toString(16).slice(1)}},{key:"shadeColor",value:function(l,t){return F.isColorHex(t)?this.shadeHexColor(l,t):this.shadeRGBColor(l,t)}}],[{key:"bind",value:function(l,t){return function(){return l.apply(t,arguments)}}},{key:"isObject",value:function(l){return l&&i(l)==="object"&&!Array.isArray(l)&&l!=null}},{key:"listToArray",value:function(l){var t,o=[];for(t=0;th.length?n:h})),t.length>o.length?t:o},0)}},{key:"hexToRgba",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;l.substring(0,1)!=="#"&&(l="#999999");var o=l.replace("#","");o=o.match(new RegExp("(.{"+o.length/3+"})","g"));for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:"x",o=l.toString().slice();return o=o.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(l){return l<0?0:l}},{key:"moveIndexInArray",value:function(l,t,o){if(o>=l.length)for(var n=o-l.length+1;n--;)l.push(void 0);return l.splice(o,0,l.splice(t,1)[0]),l}},{key:"extractNumber",value:function(l){return parseFloat(l.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(l,t){for(;(l=l.parentElement)&&!l.classList.contains(t););return l}},{key:"setELstyles",value:function(l,t){for(var o in t)t.hasOwnProperty(o)&&(l.style.key=t[o])}},{key:"isNumber",value:function(l){return!isNaN(l)&&parseFloat(Number(l))===l&&!isNaN(parseInt(l,10))}},{key:"isFloat",value:function(l){return Number(l)===l&&l%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var l=window.navigator.userAgent,t=l.indexOf("MSIE ");if(t>0)return parseInt(l.substring(t+5,l.indexOf(".",t)),10);if(l.indexOf("Trident/")>0){var o=l.indexOf("rv:");return parseInt(l.substring(o+3,l.indexOf(".",o)),10)}var n=l.indexOf("Edge/");return n>0&&parseInt(l.substring(n+5,l.indexOf(".",n)),10)}}]),F}(),_=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.setEasingFunctions()}return p(F,[{key:"setEasingFunctions",value:function(){var l;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":l="-";break;case"easein":l="<";break;case"easeout":l=">";break;case"easeinout":l="<>";break;case"swing":l=function(t){var o=1.70158;return(t-=1)*t*((o+1)*t+o)+1};break;case"bounce":l=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":l=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:l="<>"}this.w.globals.easing=l}}},{key:"animateLine",value:function(l,t,o,n){l.attr(t).animate(n).attr(o)}},{key:"animateMarker",value:function(l,t,o,n,h,u){t||(t=0),l.attr({r:t,width:t,height:t}).animate(n,h).attr({r:o,width:o.width,height:o.height}).afterAll(function(){u()})}},{key:"animateCircle",value:function(l,t,o,n,h){l.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(n,h).attr({r:o.r,cx:o.cx,cy:o.cy})}},{key:"animateRect",value:function(l,t,o,n,h){l.attr(t).animate(n).attr(o).afterAll(function(){return h()})}},{key:"animatePathsGradually",value:function(l){var t=l.el,o=l.realIndex,n=l.j,h=l.fill,u=l.pathFrom,v=l.pathTo,m=l.speed,b=l.delay,g=this.w,H=0;g.config.chart.animations.animateGradually.enabled&&(H=g.config.chart.animations.animateGradually.delay),g.config.chart.animations.dynamicAnimation.enabled&&g.globals.dataChanged&&g.config.chart.type!=="bar"&&(H=0),this.morphSVG(t,o,n,g.config.chart.type!=="line"||g.globals.comboCharts?h:"stroke",u,v,m,b*H)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(l){l.el.classList.remove("apexcharts-element-hidden")})}},{key:"animationCompleted",value:function(l){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:l,w:t}))}},{key:"morphSVG",value:function(l,t,o,n,h,u,v,m){var b=this,g=this.w;h||(h=l.attr("pathFrom")),u||(u=l.attr("pathTo"));var H=function(M){return g.config.chart.type==="radar"&&(v=1),"M 0 ".concat(g.globals.gridHeight)};(!h||h.indexOf("undefined")>-1||h.indexOf("NaN")>-1)&&(h=H()),(!u||u.indexOf("undefined")>-1||u.indexOf("NaN")>-1)&&(u=H()),g.globals.shouldAnimate||(v=1),l.plot(h).animate(1,g.globals.easing,m).plot(h).animate(v,g.globals.easing,m).plot(u).afterAll(function(){S.isNumber(o)?o===g.globals.series[g.globals.maxValsInArrayIndex].length-2&&g.globals.shouldAnimate&&b.animationCompleted(l):n!=="none"&&g.globals.shouldAnimate&&(!g.globals.comboCharts&&t===g.globals.series.length-1||g.globals.comboCharts)&&b.animationCompleted(l),b.showDelayedElements()})}}]),F}(),A=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"getDefaultFilter",value:function(l,t){var o=this.w;l.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),o.config.states.normal.filter!=="none"?this.applyFilter(l,t,o.config.states.normal.filter.type,o.config.states.normal.filter.value):o.config.chart.dropShadow.enabled&&this.dropShadow(l,o.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(l,t){var o=this.w;o.config.chart.dropShadow.enabled&&!l.node.classList.contains("apexcharts-marker")&&this.dropShadow(l,o.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(l,t,o){var n=this,h=this.w,u=o.intensity;l.unfilter(!0),new window.SVG.Filter,l.filter(function(v){var m=h.config.chart.dropShadow;(m.enabled?n.addShadow(v,t,m):v).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:u}})}),l.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(l.filterer.node)}},{key:"addDarkenFilter",value:function(l,t,o){var n=this,h=this.w,u=o.intensity;l.unfilter(!0),new window.SVG.Filter,l.filter(function(v){var m=h.config.chart.dropShadow;(m.enabled?n.addShadow(v,t,m):v).componentTransfer({rgb:{type:"linear",slope:u}})}),l.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(l.filterer.node)}},{key:"applyFilter",value:function(l,t,o){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(o){case"none":this.addNormalFilter(l,t);break;case"lighten":this.addLightenFilter(l,t,{intensity:n});break;case"darken":this.addDarkenFilter(l,t,{intensity:n})}}},{key:"addShadow",value:function(l,t,o){var n=o.blur,h=o.top,u=o.left,v=o.color,m=o.opacity,b=l.flood(Array.isArray(v)?v[t]:v,m).composite(l.sourceAlpha,"in").offset(u,h).gaussianBlur(n).merge(l.source);return l.blend(l.source,b)}},{key:"dropShadow",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=t.top,h=t.left,u=t.blur,v=t.color,m=t.opacity,b=t.noUserSpaceOnUse,g=this.w;return l.unfilter(!0),S.isIE()&&g.config.chart.type==="radialBar"||(v=Array.isArray(v)?v[o]:v,l.filter(function(H){var M=null;M=S.isSafari()||S.isFirefox()||S.isIE()?H.flood(v,m).composite(H.sourceAlpha,"in").offset(h,n).gaussianBlur(u):H.flood(v,m).composite(H.sourceAlpha,"in").offset(h,n).gaussianBlur(u).merge(H.source),H.blend(H.source,M)}),b||l.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(l.filterer.node)),l}},{key:"setSelectionFilter",value:function(l,t,o){var n=this.w;if(n.globals.selectedDataPoints[t]!==void 0&&n.globals.selectedDataPoints[t].indexOf(o)>-1){l.node.setAttribute("selected",!0);var h=n.config.states.active.filter;h!=="none"&&this.applyFilter(l,t,h.type,h.value)}}},{key:"_scaleFilterSize",value:function(l){(function(t){for(var o in t)t.hasOwnProperty(o)&&l.setAttribute(o,t[o])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),F}(),E=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"drawLine",value:function(l,t,o,n){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt",b=this.w,g=b.globals.dom.Paper.line().attr({x1:l,y1:t,x2:o,y2:n,stroke:h,"stroke-dasharray":u,"stroke-width":v,"stroke-linecap":m});return g}},{key:"drawRect",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,m=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,b=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,g=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,H=this.w,M=H.globals.dom.Paper.rect();return M.attr({x:l,y:t,width:o>0?o:0,height:n>0?n:0,rx:h,ry:h,opacity:v,"stroke-width":m!==null?m:0,stroke:b!==null?b:"none","stroke-dasharray":g}),M.node.setAttribute("fill",u),M}},{key:"drawPolygon",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none",h=this.w,u=h.globals.dom.Paper.polygon(l).attr({fill:n,stroke:t,"stroke-width":o});return u}},{key:"drawCircle",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=this.w;l<0&&(l=0);var n=o.globals.dom.Paper.circle(2*l);return t!==null&&n.attr(t),n}},{key:"drawPath",value:function(l){var t=l.d,o=t===void 0?"":t,n=l.stroke,h=n===void 0?"#a8a8a8":n,u=l.strokeWidth,v=u===void 0?1:u,m=l.fill,b=l.fillOpacity,g=b===void 0?1:b,H=l.strokeOpacity,M=H===void 0?1:H,k=l.classes,z=l.strokeLinecap,T=z===void 0?null:z,I=l.strokeDashArray,D=I===void 0?0:I,Y=this.w;return T===null&&(T=Y.config.stroke.lineCap),(o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o="M 0 ".concat(Y.globals.gridHeight)),Y.globals.dom.Paper.path(o).attr({fill:m,"fill-opacity":g,stroke:h,"stroke-opacity":M,"stroke-linecap":T,"stroke-width":v,"stroke-dasharray":D,class:k})}},{key:"group",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,o=t.globals.dom.Paper.group();return l!==null&&o.attr(l),o}},{key:"move",value:function(l,t){var o=["M",l,t].join(" ");return o}},{key:"line",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=null;return o===null?n=["L",l,t].join(" "):o==="H"?n=["H",l].join(" "):o==="V"&&(n=["V",t].join(" ")),n}},{key:"curve",value:function(l,t,o,n,h,u){var v=["C",l,t,o,n,h,u].join(" ");return v}},{key:"quadraticCurve",value:function(l,t,o,n){return["Q",l,t,o,n].join(" ")}},{key:"arc",value:function(l,t,o,n,h,u,v){var m=arguments.length>7&&arguments[7]!==void 0&&arguments[7],b="A";m&&(b="a");var g=[b,l,t,o,n,h,u,v].join(" ");return g}},{key:"renderPaths",value:function(l){var t,o=l.j,n=l.realIndex,h=l.pathFrom,u=l.pathTo,v=l.stroke,m=l.strokeWidth,b=l.strokeLinecap,g=l.fill,H=l.animationDelay,M=l.initialSpeed,k=l.dataChangeSpeed,z=l.className,T=l.shouldClipToGrid,I=T===void 0||T,D=l.bindEventsOnPaths,Y=D===void 0||D,X=l.drawShadow,f=X===void 0||X,L=this.w,O=new A(this.ctx),N=new _(this.ctx),K=this.w.config.chart.animations.enabled,n1=K&&this.w.config.chart.animations.dynamicAnimation.enabled,l1=!!(K&&!L.globals.resized||n1&&L.globals.dataChanged&&L.globals.shouldAnimate);l1?t=h:(t=u,L.globals.animationEnded=!0);var b1=L.config.stroke.dashArray,m1=0;m1=Array.isArray(b1)?b1[n]:L.config.stroke.dashArray;var C1=this.drawPath({d:t,stroke:v,strokeWidth:m,fill:g,fillOpacity:1,classes:z,strokeLinecap:b,strokeDashArray:m1});if(C1.attr("index",n),I&&C1.attr({"clip-path":"url(#gridRectMask".concat(L.globals.cuid,")")}),L.config.states.normal.filter.type!=="none")O.getDefaultFilter(C1,n);else if(L.config.chart.dropShadow.enabled&&f&&(!L.config.chart.dropShadow.enabledOnSeries||L.config.chart.dropShadow.enabledOnSeries&&L.config.chart.dropShadow.enabledOnSeries.indexOf(n)!==-1)){var F1=L.config.chart.dropShadow;O.dropShadow(C1,F1,n)}Y&&(C1.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,C1)),C1.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,C1)),C1.node.addEventListener("mousedown",this.pathMouseDown.bind(this,C1))),C1.attr({pathTo:u,pathFrom:h});var H2={el:C1,j:o,realIndex:n,pathFrom:h,pathTo:u,fill:g,strokeWidth:m,delay:H};return!K||L.globals.resized||L.globals.dataChanged?!L.globals.resized&&L.globals.dataChanged||N.showDelayedElements():N.animatePathsGradually(c(c({},H2),{},{speed:M})),L.globals.dataChanged&&n1&&l1&&N.animatePathsGradually(c(c({},H2),{},{speed:k})),C1}},{key:"drawPattern",value:function(l,t,o){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,u=this.w,v=u.globals.dom.Paper.pattern(t,o,function(m){l==="horizontalLines"?m.line(0,0,o,0).stroke({color:n,width:h+1}):l==="verticalLines"?m.line(0,0,0,t).stroke({color:n,width:h+1}):l==="slantedLines"?m.line(0,0,t,o).stroke({color:n,width:h}):l==="squares"?m.rect(t,o).fill("none").stroke({color:n,width:h}):l==="circles"&&m.circle(t).fill("none").stroke({color:n,width:h})});return v}},{key:"drawGradient",value:function(l,t,o,n,h){var u,v=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,m=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,b=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,g=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,H=this.w;t.length<9&&t.indexOf("#")===0&&(t=S.hexToRgba(t,n)),o.length<9&&o.indexOf("#")===0&&(o=S.hexToRgba(o,h));var M=0,k=1,z=1,T=null;m!==null&&(M=m[0]!==void 0?m[0]/100:0,k=m[1]!==void 0?m[1]/100:1,z=m[2]!==void 0?m[2]/100:1,T=m[3]!==void 0?m[3]/100:null);var I=!(H.config.chart.type!=="donut"&&H.config.chart.type!=="pie"&&H.config.chart.type!=="polarArea"&&H.config.chart.type!=="bubble");if(u=b===null||b.length===0?H.globals.dom.Paper.gradient(I?"radial":"linear",function(X){X.at(M,t,n),X.at(k,o,h),X.at(z,o,h),T!==null&&X.at(T,t,n)}):H.globals.dom.Paper.gradient(I?"radial":"linear",function(X){(Array.isArray(b[g])?b[g]:b).forEach(function(f){X.at(f.offset/100,f.color,f.opacity)})}),I){var D=H.globals.gridWidth/2,Y=H.globals.gridHeight/2;H.config.chart.type!=="bubble"?u.attr({gradientUnits:"userSpaceOnUse",cx:D,cy:Y,r:v}):u.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else l==="vertical"?u.from(0,0).to(0,1):l==="diagonal"?u.from(0,0).to(1,1):l==="horizontal"?u.from(0,1).to(1,1):l==="diagonal2"&&u.from(1,0).to(0,1);return u}},{key:"drawText",value:function(l){var t,o=l.x,n=l.y,h=l.text,u=l.textAnchor,v=l.fontSize,m=l.fontFamily,b=l.fontWeight,g=l.foreColor,H=l.opacity,M=l.cssClass,k=M===void 0?"":M,z=l.isPlainText,T=z===void 0||z,I=this.w;return h===void 0&&(h=""),u||(u="start"),g&&g.length||(g=I.config.chart.foreColor),m=m||I.config.chart.fontFamily,b=b||"regular",(t=Array.isArray(h)?I.globals.dom.Paper.text(function(D){for(var Y=0;Y-1){var m=o.globals.selectedDataPoints[h].indexOf(u);o.globals.selectedDataPoints[h].splice(m,1)}}else{if(!o.config.states.active.allowMultipleDataPointsSelection&&o.globals.selectedDataPoints.length>0){o.globals.selectedDataPoints=[];var b=o.globals.dom.Paper.select(".apexcharts-series path").members,g=o.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,H=function(k){Array.prototype.forEach.call(k,function(z){z.node.setAttribute("selected","false"),n.getDefaultFilter(z,h)})};H(b),H(g)}l.node.setAttribute("selected","true"),v="true",o.globals.selectedDataPoints[h]===void 0&&(o.globals.selectedDataPoints[h]=[]),o.globals.selectedDataPoints[h].push(u)}if(v==="true"){var M=o.config.states.active.filter;M!=="none"&&n.applyFilter(l,h,M.type,M.value)}else o.config.states.active.filter.type!=="none"&&n.getDefaultFilter(l,h);typeof o.config.chart.events.dataPointSelection=="function"&&o.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:o.globals.selectedDataPoints,seriesIndex:h,dataPointIndex:u,w:o}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:o.globals.selectedDataPoints,seriesIndex:h,dataPointIndex:u,w:o}])}},{key:"rotateAroundCenter",value:function(l){var t=l.getBBox();return{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(l,t,o,n){var h=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],u=this.w,v=this.drawText({x:-200,y:-200,text:l,textAnchor:"start",fontSize:t,fontFamily:o,foreColor:"#fff",opacity:0});n&&v.attr("transform",n),u.globals.dom.Paper.add(v);var m=v.bbox();return h||(m=v.node.getBoundingClientRect()),v.remove(),{width:m.width,height:m.height}}},{key:"placeTextWithEllipsis",value:function(l,t,o){if(typeof l.getComputedTextLength=="function"&&(l.textContent=t,t.length>0&&l.getComputedTextLength()>=o/1.1)){for(var n=t.length-3;n>0;n-=3)if(l.getSubStringLength(0,n)<=o/1.1)return void(l.textContent=t.substring(0,n)+"...");l.textContent="."}}}],[{key:"setAttrs",value:function(l,t){for(var o in t)t.hasOwnProperty(o)&&l.setAttribute(o,t[o])}}]),F}(),B=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l}return p(F,[{key:"setOrientations",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=this.w;if(l.label.orientation==="vertical"){var n=t!==null?t:0,h=o.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(h!==null){var u=h.getBoundingClientRect();h.setAttribute("x",parseFloat(h.getAttribute("x"))-u.height+4),l.label.position==="top"?h.setAttribute("y",parseFloat(h.getAttribute("y"))+u.width):h.setAttribute("y",parseFloat(h.getAttribute("y"))-u.width);var v=this.annoCtx.graphics.rotateAroundCenter(h),m=v.x,b=v.y;h.setAttribute("transform","rotate(-90 ".concat(m," ").concat(b,")"))}}}},{key:"addBackgroundToAnno",value:function(l,t){var o=this.w;if(!l||!t.label.text||t.label.text&&!t.label.text.trim())return null;var n=o.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),h=l.getBoundingClientRect(),u=t.label.style.padding.left,v=t.label.style.padding.right,m=t.label.style.padding.top,b=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(m=t.label.style.padding.left,b=t.label.style.padding.right,u=t.label.style.padding.top,v=t.label.style.padding.bottom);var g=h.left-n.left-u,H=h.top-n.top-m,M=this.annoCtx.graphics.drawRect(g-o.globals.barPadForNumericAxis,H,h.width+u+v,h.height+m+b,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&M.node.classList.add(t.id),M}},{key:"annotationsBackground",value:function(){var l=this,t=this.w,o=function(n,h,u){var v=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(u,"-annotations .apexcharts-").concat(u,"-annotation-label[rel='").concat(h,"']"));if(v){var m=v.parentNode,b=l.addBackgroundToAnno(v,n);b&&m.insertBefore(b.node,v)}};t.config.annotations.xaxis.map(function(n,h){o(n,h,"xaxis")}),t.config.annotations.yaxis.map(function(n,h){o(n,h,"yaxis")}),t.config.annotations.points.map(function(n,h){o(n,h,"point")})}},{key:"getStringX",value:function(l){var t=this.w,o=l;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(l=t.globals.categoryLabels.indexOf(l)+1);var n=t.globals.labels.indexOf(l),h=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return h&&(o=parseFloat(h.getAttribute("x"))),o}}]),F}(),j=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l,this.invertAxis=this.annoCtx.invertAxis}return p(F,[{key:"addXaxisAnnotation",value:function(l,t,o){var n=this.w,h=this.invertAxis?n.globals.minY:n.globals.minX,u=this.invertAxis?n.globals.maxY:n.globals.maxX,v=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,m=(l.x-h)/(v/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(m=(u-l.x)/(v/n.globals.gridWidth));var b=l.label.text;n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(m=this.annoCtx.helpers.getStringX(l.x));var g=l.strokeDashArray;if(S.isNumber(m)){if(l.x2===null||l.x2===void 0){var H=this.annoCtx.graphics.drawLine(m+l.offsetX,0+l.offsetY,m+l.offsetX,n.globals.gridHeight+l.offsetY,l.borderColor,g,l.borderWidth);t.appendChild(H.node),l.id&&H.node.classList.add(l.id)}else{var M=(l.x2-h)/(v/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(M=(u-l.x2)/(v/n.globals.gridWidth)),n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(M=this.annoCtx.helpers.getStringX(l.x2)),M0&&arguments[0]!==void 0?arguments[0]:null;return l===null?this.w.config.series.reduce(function(t,o){return t+o},0):this.w.globals.series[l].reduce(function(t,o){return t+o},0)}},{key:"isSeriesNull",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(l===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[l].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(l){return this.w.globals.series[l].every(function(t,o,n){return t===n[0]})}},{key:"getCategoryLabels",value:function(l){var t=this.w,o=l.slice();return t.config.xaxis.convertedCatToNumeric&&(o=l.map(function(n,h){return t.config.xaxis.labels.formatter(n-t.globals.minX+1)})),o}},{key:"getLargestSeries",value:function(){var l=this.w;l.globals.maxValsInArrayIndex=l.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,l.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var l=this.w,t=0;return l.globals.markers.size.forEach(function(o){t=Math.max(t,o)}),l.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var l=this.w;l.globals.seriesTotals=l.globals.series.map(function(t,o){var n=0;if(Array.isArray(t))for(var h=0;hl&&o.globals.seriesX[h][v]1&&(t=!0),{comboBarCount:o,comboCharts:t}}},{key:"extendArrayProps",value:function(l,t,o){return t.yaxis&&(t=l.extendYAxis(t,o)),t.annotations&&(t.annotations.yaxis&&(t=l.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=l.extendXAxisAnnotations(t)),t.annotations.points&&(t=l.extendPointAnnotations(t))),t}}]),F}(),Q=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l}return p(F,[{key:"addYaxisAnnotation",value:function(l,t,o){var n,h=this.w,u=l.strokeDashArray,v=this._getY1Y2("y1",l),m=l.label.text;if(l.y2===null||l.y2===void 0){var b=this.annoCtx.graphics.drawLine(0+l.offsetX,v+l.offsetY,this._getYAxisAnnotationWidth(l),v+l.offsetY,l.borderColor,u,l.borderWidth);t.appendChild(b.node),l.id&&b.node.classList.add(l.id)}else{if((n=this._getY1Y2("y2",l))>v){var g=v;v=n,n=g}var H=this.annoCtx.graphics.drawRect(0+l.offsetX,n+l.offsetY,this._getYAxisAnnotationWidth(l),v-n,0,l.fillColor,l.opacity,1,l.borderColor,u);H.node.classList.add("apexcharts-annotation-rect"),H.attr("clip-path","url(#gridRectMask".concat(h.globals.cuid,")")),t.appendChild(H.node),l.id&&H.node.classList.add(l.id)}var M=l.label.position==="right"?h.globals.gridWidth:0,k=this.annoCtx.graphics.drawText({x:M+l.label.offsetX,y:(n||v)+l.label.offsetY-3,text:m,textAnchor:l.label.textAnchor,fontSize:l.label.style.fontSize,fontFamily:l.label.style.fontFamily,fontWeight:l.label.style.fontWeight,foreColor:l.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(l.label.style.cssClass," ").concat(l.id?l.id:"")});k.attr({rel:o}),t.appendChild(k.node)}},{key:"_getY1Y2",value:function(l,t){var o,n=l==="y1"?t.y:t.y2,h=this.w;if(this.annoCtx.invertAxis){var u=h.globals.labels.indexOf(n);h.config.xaxis.convertedCatToNumeric&&(u=h.globals.categoryLabels.indexOf(n));var v=h.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(u+1)+")");v&&(o=parseFloat(v.getAttribute("y")))}else{var m;h.config.yaxis[t.yAxisIndex].logarithmic?m=(n=new W(this.annoCtx.ctx).getLogVal(n,t.yAxisIndex))/h.globals.yLogRatio[t.yAxisIndex]:m=(n-h.globals.minYArr[t.yAxisIndex])/(h.globals.yRange[t.yAxisIndex]/h.globals.gridHeight),o=h.globals.gridHeight-m,h.config.yaxis[t.yAxisIndex]&&h.config.yaxis[t.yAxisIndex].reversed&&(o=m)}return o}},{key:"_getYAxisAnnotationWidth",value:function(l){var t=this.w;return t.globals.gridWidth,(l.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(l.width,10)/100:parseInt(l.width,10))+l.offsetX}},{key:"drawYAxisAnnotations",value:function(){var l=this,t=this.w,o=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map(function(n,h){l.addYaxisAnnotation(n,o.node,h)}),o}}]),F}(),G=function(){function F(l){s(this,F),this.w=l.w,this.annoCtx=l}return p(F,[{key:"addPointAnnotation",value:function(l,t,o){var n=this.w,h=0,u=0,v=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var m=parseFloat(l.y);if(typeof l.x=="string"){var b=n.globals.labels.indexOf(l.x);n.config.xaxis.convertedCatToNumeric&&(b=n.globals.categoryLabels.indexOf(l.x)),h=this.annoCtx.helpers.getStringX(l.x),l.y===null&&(m=n.globals.series[l.seriesIndex][b])}else h=(l.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);for(var g,H=[],M=0,k=0;k<=l.seriesIndex;k++){var z=n.config.yaxis[k].seriesName;if(z)for(var T=k+1;T<=l.seriesIndex;T++)n.config.yaxis[T].seriesName===z&&H.indexOf(z)===-1&&(M++,H.push(z))}if(n.config.yaxis[l.yAxisIndex].logarithmic)g=(m=new W(this.annoCtx.ctx).getLogVal(m,l.yAxisIndex))/n.globals.yLogRatio[l.yAxisIndex];else{var I=l.yAxisIndex+M;g=(m-n.globals.minYArr[I])/(n.globals.yRange[I]/n.globals.gridHeight)}if(u=n.globals.gridHeight-g-parseFloat(l.label.style.fontSize)-l.marker.size,v=n.globals.gridHeight-g,n.config.yaxis[l.yAxisIndex]&&n.config.yaxis[l.yAxisIndex].reversed&&(u=g+parseFloat(l.label.style.fontSize)+l.marker.size,v=g),S.isNumber(h)){var D={pSize:l.marker.size,pointStrokeWidth:l.marker.strokeWidth,pointFillColor:l.marker.fillColor,pointStrokeColor:l.marker.strokeColor,shape:l.marker.shape,pRadius:l.marker.radius,class:"apexcharts-point-annotation-marker ".concat(l.marker.cssClass," ").concat(l.id?l.id:"")},Y=this.annoCtx.graphics.drawMarker(h+l.marker.offsetX,v+l.marker.offsetY,D);t.appendChild(Y.node);var X=l.label.text?l.label.text:"",f=this.annoCtx.graphics.drawText({x:h+l.label.offsetX,y:u+l.label.offsetY,text:X,textAnchor:l.label.textAnchor,fontSize:l.label.style.fontSize,fontFamily:l.label.style.fontFamily,fontWeight:l.label.style.fontWeight,foreColor:l.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(l.label.style.cssClass," ").concat(l.id?l.id:"")});if(f.attr({rel:o}),t.appendChild(f.node),l.customSVG.SVG){var L=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+l.customSVG.cssClass});L.attr({transform:"translate(".concat(h+l.customSVG.offsetX,", ").concat(u+l.customSVG.offsetY,")")}),L.node.innerHTML=l.customSVG.SVG,t.appendChild(L.node)}if(l.image.path){var O=l.image.width?l.image.width:20,N=l.image.height?l.image.height:20;this.annoCtx.addImage({x:h+l.image.offsetX-O/2,y:u+l.image.offsetY-N/2,width:O,height:N,path:l.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var l=this,t=this.w,o=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(n,h){l.addPointAnnotation(n,o.node,h)}),o}}]),F}(),e1={name:"en",options:{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"}}},t1=function(){function F(){s(this,F),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,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={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY: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}},this.yAxisAnnotation={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,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={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,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}}return p(F,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[e1],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave: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},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY: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},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(l){return new Date(l).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,startingShape:"flat",endingShape:"flat",rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",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:function(l){return l}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(l){return l+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(l){return l.globals.seriesTotals.reduce(function(t,o){return t+o},0)/l.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(l){return l}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(l){return l}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(l){return l.globals.seriesTotals.reduce(function(t,o){return t+o},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},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:function(l){return l!==null?l:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},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:[],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:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},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",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},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},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(l){return l?l+": ":""}}},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 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY: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:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),F}(),v1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.graphics=new E(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new B(this),this.xAxisAnnotations=new j(this),this.yAxisAnnotations=new Q(this),this.pointsAnnotations=new G(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return p(F,[{key:"drawAxesAnnotations",value:function(){var l=this.w;if(l.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),o=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),h=l.config.chart.animations.enabled,u=[t,o,n],v=[o.node,t.node,n.node],m=0;m<3;m++)l.globals.dom.elGraphical.add(u[m]),!h||l.globals.resized||l.globals.dataChanged||l.config.chart.type!=="scatter"&&l.config.chart.type!=="bubble"&&l.globals.dataPoints>1&&v[m].classList.add("apexcharts-element-hidden"),l.globals.delayedElements.push({el:v[m],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var l=this;this.w.config.annotations.images.map(function(t,o){l.addImage(t,o)})}},{key:"drawTextAnnos",value:function(){var l=this;this.w.config.annotations.texts.map(function(t,o){l.addText(t,o)})}},{key:"addXaxisAnnotation",value:function(l,t,o){this.xAxisAnnotations.addXaxisAnnotation(l,t,o)}},{key:"addYaxisAnnotation",value:function(l,t,o){this.yAxisAnnotations.addYaxisAnnotation(l,t,o)}},{key:"addPointAnnotation",value:function(l,t,o){this.pointsAnnotations.addPointAnnotation(l,t,o)}},{key:"addText",value:function(l,t){var o=l.x,n=l.y,h=l.text,u=l.textAnchor,v=l.foreColor,m=l.fontSize,b=l.fontFamily,g=l.fontWeight,H=l.cssClass,M=l.backgroundColor,k=l.borderWidth,z=l.strokeDashArray,T=l.borderRadius,I=l.borderColor,D=l.appendTo,Y=D===void 0?".apexcharts-annotations":D,X=l.paddingLeft,f=X===void 0?4:X,L=l.paddingRight,O=L===void 0?4:L,N=l.paddingBottom,K=N===void 0?2:N,n1=l.paddingTop,l1=n1===void 0?2:n1,b1=this.w,m1=this.graphics.drawText({x:o,y:n,text:h,textAnchor:u||"start",fontSize:m||"12px",fontWeight:g||"regular",fontFamily:b||b1.config.chart.fontFamily,foreColor:v||b1.config.chart.foreColor,cssClass:H}),C1=b1.globals.dom.baseEl.querySelector(Y);C1&&C1.appendChild(m1.node);var F1=m1.bbox();if(h){var H2=this.graphics.drawRect(F1.x-f,F1.y-l1,F1.width+f+O,F1.height+K+l1,T,M||"transparent",1,k,I,z);C1.insertBefore(H2.node,m1.node)}}},{key:"addImage",value:function(l,t){var o=this.w,n=l.path,h=l.x,u=h===void 0?0:h,v=l.y,m=v===void 0?0:v,b=l.width,g=b===void 0?20:b,H=l.height,M=H===void 0?20:H,k=l.appendTo,z=k===void 0?".apexcharts-annotations":k,T=o.globals.dom.Paper.image(n);T.size(g,M).move(u,m);var I=o.globals.dom.baseEl.querySelector(z);I&&I.appendChild(T.node)}},{key:"addXaxisAnnotationExternal",value:function(l,t,o){return this.addAnnotationExternal({params:l,pushToMemory:t,context:o,type:"xaxis",contextMethod:o.addXaxisAnnotation}),o}},{key:"addYaxisAnnotationExternal",value:function(l,t,o){return this.addAnnotationExternal({params:l,pushToMemory:t,context:o,type:"yaxis",contextMethod:o.addYaxisAnnotation}),o}},{key:"addPointAnnotationExternal",value:function(l,t,o){return this.invertAxis===void 0&&(this.invertAxis=o.w.globals.isBarHorizontal),this.addAnnotationExternal({params:l,pushToMemory:t,context:o,type:"point",contextMethod:o.addPointAnnotation}),o}},{key:"addAnnotationExternal",value:function(l){var t=l.params,o=l.pushToMemory,n=l.context,h=l.type,u=l.contextMethod,v=n,m=v.w,b=m.globals.dom.baseEl.querySelector(".apexcharts-".concat(h,"-annotations")),g=b.childNodes.length+1,H=new t1,M=Object.assign({},h==="xaxis"?H.xAxisAnnotation:h==="yaxis"?H.yAxisAnnotation:H.pointAnnotation),k=S.extend(M,t);switch(h){case"xaxis":this.addXaxisAnnotation(k,b,g);break;case"yaxis":this.addYaxisAnnotation(k,b,g);break;case"point":this.addPointAnnotation(k,b,g)}var z=m.globals.dom.baseEl.querySelector(".apexcharts-".concat(h,"-annotations .apexcharts-").concat(h,"-annotation-label[rel='").concat(g,"']")),T=this.helpers.addBackgroundToAnno(z,k);return T&&b.insertBefore(T.node,z),o&&m.globals.memory.methodsToExec.push({context:v,id:k.id?k.id:S.randomId(),method:u,label:"addAnnotation",params:t}),n}},{key:"clearAnnotations",value:function(l){var t=l.w,o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(n,h){n.label!=="addText"&&n.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(h,1)}),o=S.listToArray(o),Array.prototype.forEach.call(o,function(n){for(;n.firstChild;)n.removeChild(n.firstChild)})}},{key:"removeAnnotation",value:function(l,t){var o=l.w,n=o.globals.dom.baseEl.querySelectorAll(".".concat(t));n&&(o.globals.memory.methodsToExec.map(function(h,u){h.id===t&&o.globals.memory.methodsToExec.splice(u,1)}),Array.prototype.forEach.call(n,function(h){h.parentElement.removeChild(h)}))}}]),F}(),a1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.opts=null,this.seriesIndex=0}return p(F,[{key:"clippedImgArea",value:function(l){var t=this.w,o=t.config,n=parseInt(t.globals.gridWidth,10),h=parseInt(t.globals.gridHeight,10),u=n>h?n:h,v=l.image,m=0,b=0;l.width===void 0&&l.height===void 0?o.fill.image.width!==void 0&&o.fill.image.height!==void 0?(m=o.fill.image.width+1,b=o.fill.image.height):(m=u+1,b=u):(m=l.width,b=l.height);var g=document.createElementNS(t.globals.SVGNS,"pattern");E.setAttrs(g,{id:l.patternID,patternUnits:l.patternUnits?l.patternUnits:"userSpaceOnUse",width:m+"px",height:b+"px"});var H=document.createElementNS(t.globals.SVGNS,"image");g.appendChild(H),H.setAttributeNS(window.SVG.xlink,"href",v),E.setAttrs(H,{x:0,y:0,preserveAspectRatio:"none",width:m+"px",height:b+"px"}),H.style.opacity=l.opacity,t.globals.dom.elDefs.node.appendChild(g)}},{key:"getSeriesIndex",value:function(l){var t=this.w;return(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.chart.type==="heatmap"||t.config.chart.type==="treemap"?this.seriesIndex=l.seriesNumber:this.seriesIndex=l.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(l){var t=this.w;this.opts=l;var o,n,h,u=this.w.config;this.seriesIndex=this.getSeriesIndex(l);var v=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(v=t.globals.seriesColors[this.seriesIndex]),typeof v=="function"&&(v=v({seriesIndex:this.seriesIndex,dataPointIndex:l.dataPointIndex,value:l.value,w:t}));var m=this.getFillType(this.seriesIndex),b=Array.isArray(u.fill.opacity)?u.fill.opacity[this.seriesIndex]:u.fill.opacity;l.color&&(v=l.color);var g=v;if(v.indexOf("rgb")===-1?v.length<9&&(g=S.hexToRgba(v,b)):v.indexOf("rgba")>-1&&(b=S.getOpacityFromRGBA(v)),l.opacity&&(b=l.opacity),m==="pattern"&&(n=this.handlePatternFill(n,v,b,g)),m==="gradient"&&(h=this.handleGradientFill(v,b,this.seriesIndex)),m==="image"){var H=u.fill.image.src,M=l.patternID?l.patternID:"";this.clippedImgArea({opacity:b,image:Array.isArray(H)?l.seriesNumber-1&&(H=S.getOpacityFromRGBA(g));var M=h.fill.gradient.opacityTo===void 0?t:Array.isArray(h.fill.gradient.opacityTo)?h.fill.gradient.opacityTo[o]:h.fill.gradient.opacityTo;if(h.fill.gradient.gradientToColors===void 0||h.fill.gradient.gradientToColors.length===0)n=h.fill.gradient.shade==="dark"?m.shadeColor(-1*parseFloat(h.fill.gradient.shadeIntensity),l.indexOf("rgb")>-1?S.rgb2hex(l):l):m.shadeColor(parseFloat(h.fill.gradient.shadeIntensity),l.indexOf("rgb")>-1?S.rgb2hex(l):l);else if(h.fill.gradient.gradientToColors[u.seriesNumber]){var k=h.fill.gradient.gradientToColors[u.seriesNumber];n=k,k.indexOf("rgba")>-1&&(M=S.getOpacityFromRGBA(k))}else n=l;if(h.fill.gradient.inverseColors){var z=g;g=n,n=z}return g.indexOf("rgb")>-1&&(g=S.rgb2hex(g)),n.indexOf("rgb")>-1&&(n=S.rgb2hex(n)),v.drawGradient(b,g,n,H,M,u.size,h.fill.gradient.stops,h.fill.gradient.colorStops,o)}}]),F}(),c1=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"setGlobalMarkerSize",value:function(){var l=this.w;if(l.globals.markers.size=Array.isArray(l.config.markers.size)?l.config.markers.size:[l.config.markers.size],l.globals.markers.size.length>0){if(l.globals.markers.size.length4&&arguments[4]!==void 0&&arguments[4],v=this.w,m=t,b=l,g=null,H=new E(this.ctx);if((v.globals.markers.size[t]>0||u)&&(g=H.group({class:u?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(v.globals.cuid,")")),Array.isArray(b.x))for(var M=0;M0:v.config.markers.size>0;if(T||u){S.isNumber(b.y[M])?z+=" w".concat(S.randomId()):z="apexcharts-nullpoint";var I=this.getMarkerConfig({cssClass:z,seriesIndex:t,dataPointIndex:k});v.config.series[m].data[k]&&(v.config.series[m].data[k].fillColor&&(I.pointFillColor=v.config.series[m].data[k].fillColor),v.config.series[m].data[k].strokeColor&&(I.pointStrokeColor=v.config.series[m].data[k].strokeColor)),n&&(I.pSize=n),(h=H.drawMarker(b.x[M],b.y[M],I)).attr("rel",k),h.attr("j",k),h.attr("index",t),h.node.setAttribute("default-marker-size",I.pSize);var D=new A(this.ctx);D.setSelectionFilter(h,t,k),this.addEvents(h),g&&g.add(h)}else v.globals.pointsArray[t]===void 0&&(v.globals.pointsArray[t]=[]),v.globals.pointsArray[t].push([b.x[M],b.y[M]])}return g}},{key:"getMarkerConfig",value:function(l){var t=l.cssClass,o=l.seriesIndex,n=l.dataPointIndex,h=n===void 0?null:n,u=l.finishRadius,v=u===void 0?null:u,m=this.w,b=this.getMarkerStyle(o),g=m.globals.markers.size[o],H=m.config.markers;return h!==null&&H.discrete.length&&H.discrete.map(function(M){M.seriesIndex===o&&M.dataPointIndex===h&&(b.pointStrokeColor=M.strokeColor,b.pointFillColor=M.fillColor,g=M.size,b.pointShape=M.shape)}),{pSize:v===null?g:v,pRadius:H.radius,width:Array.isArray(H.width)?H.width[o]:H.width,height:Array.isArray(H.height)?H.height[o]:H.height,pointStrokeWidth:Array.isArray(H.strokeWidth)?H.strokeWidth[o]:H.strokeWidth,pointStrokeColor:b.pointStrokeColor,pointFillColor:b.pointFillColor,shape:b.pointShape||(Array.isArray(H.shape)?H.shape[o]:H.shape),class:t,pointStrokeOpacity:Array.isArray(H.strokeOpacity)?H.strokeOpacity[o]:H.strokeOpacity,pointStrokeDashArray:Array.isArray(H.strokeDashArray)?H.strokeDashArray[o]:H.strokeDashArray,pointFillOpacity:Array.isArray(H.fillOpacity)?H.fillOpacity[o]:H.fillOpacity,seriesIndex:o}}},{key:"addEvents",value:function(l){var t=this.w,o=new E(this.ctx);l.node.addEventListener("mouseenter",o.pathMouseEnter.bind(this.ctx,l)),l.node.addEventListener("mouseleave",o.pathMouseLeave.bind(this.ctx,l)),l.node.addEventListener("mousedown",o.pathMouseDown.bind(this.ctx,l)),l.node.addEventListener("click",t.config.markers.onClick),l.node.addEventListener("dblclick",t.config.markers.onDblClick),l.node.addEventListener("touchstart",o.pathMouseDown.bind(this.ctx,l),{passive:!0})}},{key:"getMarkerStyle",value:function(l){var t=this.w,o=t.globals.markers.colors,n=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[l]:n,pointFillColor:Array.isArray(o)?o[l]:o}}}]),F}(),o1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return p(F,[{key:"draw",value:function(l,t,o){var n=this.w,h=new E(this.ctx),u=o.realIndex,v=o.pointsPos,m=o.zRatio,b=o.elParent,g=h.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(g.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(v.x))for(var H=0;HI.maxBubbleRadius&&(T=I.maxBubbleRadius)}n.config.chart.animations.enabled||(z=T);var D=v.x[H],Y=v.y[H];if(z=z||0,Y!==null&&n.globals.series[u][M]!==void 0||(k=!1),k){var X=this.drawPoint(D,Y,z,T,u,M,t);g.add(X)}b.add(g)}}},{key:"drawPoint",value:function(l,t,o,n,h,u,v){var m=this.w,b=h,g=new _(this.ctx),H=new A(this.ctx),M=new a1(this.ctx),k=new c1(this.ctx),z=new E(this.ctx),T=k.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:b,dataPointIndex:u,finishRadius:m.config.chart.type==="bubble"||m.globals.comboCharts&&m.config.series[h]&&m.config.series[h].type==="bubble"?n:null});n=T.pSize;var I,D=M.fillPath({seriesNumber:h,dataPointIndex:u,color:T.pointFillColor,patternUnits:"objectBoundingBox",value:m.globals.series[h][v]});if(T.shape==="circle"?I=z.drawCircle(o):T.shape!=="square"&&T.shape!=="rect"||(I=z.drawRect(0,0,T.width-T.pointStrokeWidth/2,T.height-T.pointStrokeWidth/2,T.pRadius)),m.config.series[b].data[u]&&m.config.series[b].data[u].fillColor&&(D=m.config.series[b].data[u].fillColor),I.attr({x:l-T.width/2-T.pointStrokeWidth/2,y:t-T.height/2-T.pointStrokeWidth/2,cx:l,cy:t,fill:D,"fill-opacity":T.pointFillOpacity,stroke:T.pointStrokeColor,r:n,"stroke-width":T.pointStrokeWidth,"stroke-dasharray":T.pointStrokeDashArray,"stroke-opacity":T.pointStrokeOpacity}),m.config.chart.dropShadow.enabled){var Y=m.config.chart.dropShadow;H.dropShadow(I,Y,h)}if(!this.initialAnim||m.globals.dataChanged||m.globals.resized)m.globals.animationEnded=!0;else{var X=m.config.chart.animations.speed;g.animateMarker(I,0,T.shape==="circle"?n:{width:T.width,height:T.height},X,m.globals.easing,function(){window.setTimeout(function(){g.animationCompleted(I)},100)})}if(m.globals.dataChanged&&T.shape==="circle")if(this.dynamicAnim){var f,L,O,N,K=m.config.chart.animations.dynamicAnimation.speed;(N=m.globals.previousPaths[h]&&m.globals.previousPaths[h][v])!=null&&(f=N.x,L=N.y,O=N.r!==void 0?N.r:n);for(var n1=0;n1m.globals.gridHeight+M&&(t=m.globals.gridHeight+M/2),m.globals.dataLabelsRects[n]===void 0&&(m.globals.dataLabelsRects[n]=[]),m.globals.dataLabelsRects[n].push({x:l,y:t,width:H,height:M});var k=m.globals.dataLabelsRects[n].length-2,z=m.globals.lastDrawnDataLabelsIndexes[n]!==void 0?m.globals.lastDrawnDataLabelsIndexes[n][m.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(m.globals.dataLabelsRects[n][k]!==void 0){var T=m.globals.dataLabelsRects[n][z];(l>T.x+T.width+2||t>T.y+T.height+2||l+H4&&arguments[4]!==void 0?arguments[4]:2,u=this.w,v=new E(this.ctx),m=u.config.dataLabels,b=0,g=0,H=o,M=null;if(!m.enabled||!Array.isArray(l.x))return M;M=v.group({class:"apexcharts-data-labels"});for(var k=0;kt.globals.gridWidth+I.textRects.width+10)&&(m="");var D=t.globals.dataLabels.style.colors[u];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(D=t.globals.dataLabels.style.colors[v]),typeof D=="function"&&(D=D({series:t.globals.series,seriesIndex:u,dataPointIndex:v,w:t})),k&&(D=k);var Y=M.offsetX,X=M.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(Y=0,X=0),I.drawnextLabel){var f=o.drawText({width:100,height:parseInt(M.style.fontSize,10),x:n+Y,y:h+X,foreColor:D,textAnchor:b||M.textAnchor,text:m,fontSize:g||M.style.fontSize,fontFamily:M.style.fontFamily,fontWeight:M.style.fontWeight||"normal"});if(f.attr({class:"apexcharts-datalabel",cx:n,cy:h}),M.dropShadow.enabled){var L=M.dropShadow;new A(this.ctx).dropShadow(f,L)}H.add(f),t.globals.lastDrawnDataLabelsIndexes[u]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[u]=[]),t.globals.lastDrawnDataLabelsIndexes[u].push(v)}}}},{key:"addBackgroundToDataLabel",value:function(l,t){var o=this.w,n=o.config.dataLabels.background,h=n.padding,u=n.padding/2,v=t.width,m=t.height,b=new E(this.ctx).drawRect(t.x-h,t.y-u/2,v+2*h,m+u,n.borderRadius,o.config.chart.background==="transparent"?"#fff":o.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new A(this.ctx).dropShadow(b,n.dropShadow),b}},{key:"dataLabelsBackground",value:function(){var l=this.w;if(l.config.chart.type!=="bubble")for(var t=l.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),o=0;oo.globals.gridHeight&&(H=o.globals.gridHeight-k)),{bcx:v,bcy:u,dataLabelsX:t,dataLabelsY:H}}},{key:"calculateBarsDataLabelsPosition",value:function(l){var t=this.w,o=l.x,n=l.i,h=l.j,u=l.bcy,v=l.barHeight,m=l.barWidth,b=l.textRects,g=l.dataLabelsX,H=l.strokeWidth,M=l.barDataLabelsConfig,k=l.offX,z=l.offY,T=t.globals.gridHeight/t.globals.dataPoints;m=Math.abs(m);var I=u-(this.barCtx.isTimelineBar?0:T)+v/2+b.height/2+z-3,D=this.barCtx.series[n][h]<0,Y=o;switch(this.barCtx.isReversed&&(Y=o+m-(D?2*m:0),o=t.globals.gridWidth-m),M.position){case"center":g=D?Y+m/2-k:Math.max(b.width/2,Y-m/2)+k;break;case"bottom":g=D?Y+m-H-Math.round(b.width/2)-k:Y-m+H+Math.round(b.width/2)+k;break;case"top":g=D?Y-H+Math.round(b.width/2)-k:Y-H-Math.round(b.width/2)+k}return t.config.chart.stacked||(g<0?g=g+b.width+H:g+b.width/2>t.globals.gridWidth&&(g=t.globals.gridWidth-b.width-H)),{bcx:o,bcy:u,dataLabelsX:g,dataLabelsY:I}}},{key:"drawCalculatedDataLabels",value:function(l){var t=l.x,o=l.y,n=l.val,h=l.i,u=l.j,v=l.textRects,m=l.barHeight,b=l.barWidth,g=l.dataLabelsConfig,H=this.w,M="rotate(0)";H.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(M="rotate(-90, ".concat(t,", ").concat(o,")"));var k=new k1(this.barCtx.ctx),z=new E(this.barCtx.ctx),T=g.formatter,I=null,D=H.globals.collapsedSeriesIndices.indexOf(h)>-1;if(g.enabled&&!D){I=z.group({class:"apexcharts-data-labels",transform:M});var Y="";n!==void 0&&(Y=T(n,{seriesIndex:h,dataPointIndex:u,w:H}));var X=H.globals.series[h][u]<0,f=H.config.plotOptions.bar.dataLabels.position;H.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(f==="top"&&(g.textAnchor=X?"end":"start"),f==="center"&&(g.textAnchor="middle"),f==="bottom"&&(g.textAnchor=X?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&bMath.abs(b)&&(Y=""):v.height/1.6>Math.abs(m)&&(Y=""));var L=c({},g);this.barCtx.isHorizontal&&n<0&&(g.textAnchor==="start"?L.textAnchor="end":g.textAnchor==="end"&&(L.textAnchor="start")),k.plotDataLabelsText({x:t,y:o,text:Y,i:h,j:u,parent:I,dataLabelsConfig:L,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return I}}]),F}(),A1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.legendInactiveClass="legend-mouseover-inactive"}return p(F,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(l){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(S.escapeString(l),"']"))}},{key:"isSeriesHidden",value:function(l){var t=this.getSeriesByName(l),o=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:o}}},{key:"addCollapsedClassToSeries",value:function(l,t){var o=this.w;function n(h){for(var u=0;u0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=this.w,h=S.clone(n.globals.initialSeries);n.globals.previousPaths=[],o?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):h=this.emptyCollapsedSeries(h),n.config.series=h,l&&(t&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(h,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(l){for(var t=this.w,o=0;o-1&&(l[o].data=[]);return l}},{key:"toggleSeriesOnHover",value:function(l,t){var o=this.w,n=o.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if(l.type==="mousemove"){var h=parseInt(t.getAttribute("rel"),10)-1,u=null,v=null;o.globals.axisCharts||o.config.chart.type==="radialBar"?o.globals.axisCharts?(u=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(h,"']")),v=o.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(h,"']"))):u=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(h+1,"']")):u=o.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(h+1,"'] path"));for(var m=0;m=m.from&&g<=m.to&&h[b].classList.remove(o.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[v])}else l.type==="mouseout"&&u("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var l=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"asc",o=this.w,n=0;if(o.config.series.length>1){for(var h=o.config.series.map(function(v,m){var b=!1;return l&&(b=o.config.series[m].type==="bar"||o.config.series[m].type==="column"),v.data&&v.data.length>0&&!b?m:-1}),u=t==="asc"?0:h.length-1;t==="asc"?u=0;t==="asc"?u++:u--)if(h[u]!==-1){n=h[u];break}}return n}},{key:"getPreviousPaths",value:function(){var l=this.w;function t(u,v,m){for(var b=u[v].childNodes,g={type:m,paths:[],realIndex:u[v].getAttribute("data:realIndex")},H=0;H0)for(var n=function(u){for(var v=l.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(l.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(u,"'] rect")),m=[],b=function(H){var M=function(z){return v[H].getAttribute(z)},k={x:parseFloat(M("x")),y:parseFloat(M("y")),width:parseFloat(M("width")),height:parseFloat(M("height"))};m.push({rect:k,color:v[H].getAttribute("color")})},g=0;g0)for(var n=0;n0?t:[]});return l}}]),F}(),y1=function(){function F(l){s(this,F),this.w=l.w,this.barCtx=l}return p(F,[{key:"initVariables",value:function(l){var t=this.w;this.barCtx.series=l,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var o=0;o0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=l[o].length),t.globals.isXNumeric)for(var n=0;nt.globals.minX&&t.globals.seriesX[o][n]0&&(n=b.globals.minXDiff/M),(u=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(u=1)}v=b.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?b.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),l=b.globals.padHorizontal+(n-u*this.barCtx.seriesLen)/2}return{x:l,y:t,yDivision:o,xDivision:n,barHeight:h,barWidth:u,zeroH:v,zeroW:m}}},{key:"getPathFillColor",value:function(l,t,o,n){var h=this.w,u=new a1(this.barCtx.ctx),v=null,m=this.barCtx.barOptions.distributed?o:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(b){l[t][o]>=b.from&&l[t][o]<=b.to&&(v=b.color)}),h.config.series[t].data[o]&&h.config.series[t].data[o].fillColor&&(v=h.config.series[t].data[o].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?m:n,dataPointIndex:o,color:v,value:l[t][o]})}},{key:"getStrokeWidth",value:function(l,t,o){var n=0,h=this.w;return this.barCtx.series[l][t]===void 0||this.barCtx.series[l][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,h.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[o]:this.barCtx.strokeWidth)),n}},{key:"barBackground",value:function(l){var t=l.j,o=l.i,n=l.x1,h=l.x2,u=l.y1,v=l.y2,m=l.elSeries,b=this.w,g=new E(this.barCtx.ctx),H=new A1(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&H===o){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t-=this.barCtx.barOptions.colors.backgroundBarColors.length);var M=this.barCtx.barOptions.colors.backgroundBarColors[t],k=g.drawRect(n!==void 0?n:0,u!==void 0?u:0,h!==void 0?h:b.globals.gridWidth,v!==void 0?v:b.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,M,this.barCtx.barOptions.colors.backgroundBarOpacity);m.add(k),k.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(l){var t=l.barWidth,o=l.barXPosition,n=l.yRatio,h=l.y1,u=l.y2,v=l.strokeWidth,m=l.series,b=l.realIndex,g=l.i,H=l.j,M=l.w,k=new E(this.barCtx.ctx);(v=Array.isArray(v)?v[b]:v)&&m[g][H]!==0||(v=0),m[g][H]===0&&(t=0);var z={barWidth:t,strokeWidth:v,yRatio:n,barXPosition:o,y1:h,y2:u},T=this.getRoundedBars(M,z,m,g,H),I=o,D=o+t,Y=k.move(I,T.y1),X=k.move(I,T.y1),f=k.line(D-v,T.y1);return M.globals.previousPaths.length>0&&(X=this.barCtx.getPreviousPath(b,H,!1)),Y=Y+k.line(I,T.y2)+T.startingShape+k.line(D-v,T.y2)+f+T.endingShape+"z",X=X+k.line(I,T.y1)+f+f+f+f+f+k.line(I,T.y1),M.config.chart.stacked&&(this.barCtx.yArrj.push(T.y2),this.barCtx.yArrjF.push(Math.abs(h-T.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[g][H])),{pathTo:Y,pathFrom:X}}},{key:"getBarpaths",value:function(l){var t=l.barYPosition,o=l.barHeight,n=l.x1,h=l.x2,u=l.strokeWidth,v=l.series,m=l.realIndex,b=l.i,g=l.j,H=l.w,M=new E(this.barCtx.ctx);(u=Array.isArray(u)?u[m]:u)&&!v[b][g]||(u=0),v[b][g]===0&&(o=0);var k={barHeight:o,strokeWidth:u,barYPosition:t,x2:h,x1:n},z=this.getRoundedBars(H,k,v,b,g),T=M.move(z.x1,t),I=M.move(z.x1,t);H.globals.previousPaths.length>0&&(I=this.barCtx.getPreviousPath(m,g,!1));var D=t,Y=t+o,X=M.line(z.x1,Y-u);return T=T+M.line(z.x2,D)+z.startingShape+M.line(z.x2,Y-u)+X+X+z.endingShape+"z",I=I+M.line(z.x1,D)+X+X+X+X+X+M.line(z.x1,D),H.config.chart.stacked&&(this.barCtx.xArrj.push(z.x2),this.barCtx.xArrjF.push(Math.abs(z.x1-z.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[b][g])),{pathTo:T,pathFrom:I}}},{key:"getRoundedBars",value:function(l,t,o,n,h){var u=new E(this.barCtx.ctx),v=0,m=l.config.plotOptions.bar.borderRadius;if(Array.isArray(m)?v=m[n>m.length-1?m.length-1:n]:v=m,this.barCtx.isHorizontal){var b="",g="",H=v,M=v,k=t.x1,z=t.x2;if(Math.abs(t.x1-t.x2)0:o[n][h]<0;T&&(v*=-1),H=M=v,this.barCtx.barOptions.startingShape==="flat"&&(H=0),this.barCtx.barOptions.endingShape==="flat"&&(M=0),this.barCtx.barOptions.startingShape==="flat"&&this.barCtx.barOptions.endingShape==="flat"&&(v=0),l.config.chart.stacked&&o.length>1&&n!==0?this.barCtx.barOptions.endingShape==="flat"||this.barCtx.barOptions.startingShape==="flat"?k+=v:k+=2*M:(k+=M,z-=H),b=u.quadraticCurve(z+H,t.barYPosition,z+H,t.barYPosition+(T?-1*H:H))+u.line(z+H,t.barYPosition+t.barHeight-t.strokeWidth-(T?-1*H:H))+u.quadraticCurve(z+H,t.barYPosition+t.barHeight-t.strokeWidth,z,t.barYPosition+t.barHeight-t.strokeWidth),g=u.quadraticCurve(k-M,t.barYPosition+t.barHeight-t.strokeWidth,k-M,t.barYPosition+t.barHeight-t.strokeWidth-(T?-1*M:M))+u.line(k-M,t.barYPosition+(T?-1*M:M))+u.quadraticCurve(k-M,t.barYPosition,k,t.barYPosition)}return{startingShape:b,endingShape:g,x1:k,x2:z}}var I="",D="",Y=v,X=v,f=t.y2,L=t.y1;if(Math.abs(t.y1-t.y2)1&&n!==0?this.barCtx.barOptions.endingShape==="flat"||this.barCtx.barOptions.startingShape==="flat"?L-=v:L-=2*X:(L-=X,f+=Y),I=u.quadraticCurve(t.barXPosition,f-Y,t.barXPosition+(O?-1*Y:Y),f-Y)+u.line(t.barXPosition+t.barWidth-t.strokeWidth-(O?-1*Y:Y),f-Y)+u.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,f-Y,t.barXPosition+t.barWidth-t.strokeWidth,f),D=u.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,L+X,t.barXPosition+t.barWidth-t.strokeWidth-(O?-1*X:X),L+X)+u.line(t.barXPosition+(O?-1*X:X),L+X)+u.quadraticCurve(t.barXPosition,L+X,t.barXPosition,L)}return{startingShape:I,endingShape:D,y1:L,y2:f}}},{key:"checkZeroSeries",value:function(l){for(var t=l.series,o=this.w,n=0;n=0;v--)this.barCtx.zeroSerieses.indexOf(v)>-1&&v===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var m=t.length-1;m>=0;m--)o.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(l,t){var o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=o?t:null;return l!=null&&(n=t+l/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?l/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(l,t){var o=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],n=o?t:null;return l!=null&&(n=t-l/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?l/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(l,t,o,n,h){var u=this,v=this.w,m=[];return v.globals.seriesGoals[n]&&v.globals.seriesGoals[n][h]&&Array.isArray(v.globals.seriesGoals[n][h])&&v.globals.seriesGoals[n][h].forEach(function(b){var g;m.push((y(g={},l,l==="x"?u.getXForValue(b.value,t,!1):u.getYForValue(b.value,o,!1)),y(g,"attrs",b),g))}),m}},{key:"drawGoalLine",value:function(l){var t=l.barXPosition,o=l.barYPosition,n=l.goalX,h=l.goalY,u=l.barWidth,v=l.barHeight,m=new E(this.barCtx.ctx),b=m.group({className:"apexcharts-bar-goals-groups"}),g=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach(function(H){var M=H.attrs.strokeHeight!==void 0?H.attrs.strokeHeight:v/2,k=o+M+v/2;g=m.drawLine(H.x,k-2*M,H.x,k,H.attrs.strokeColor?H.attrs.strokeColor:void 0,H.attrs.strokeDashArray,H.attrs.strokeWidth?H.attrs.strokeWidth:2,H.attrs.strokeLineCap),b.add(g)}):Array.isArray(h)&&h.forEach(function(H){var M=H.attrs.strokeWidth!==void 0?H.attrs.strokeWidth:u/2,k=t+M+u/2;g=m.drawLine(k-2*M,H.y,k,H.y,H.attrs.strokeColor?H.attrs.strokeColor:void 0,H.attrs.strokeDashArray,H.attrs.strokeHeight?H.attrs.strokeHeight:2,H.attrs.strokeLineCap),b.add(g)}),b}}]),F}(),L1=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.w;var o=this.w;this.barOptions=o.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=o.config.stroke.width,this.isNullValue=!1,this.isTimelineBar=o.config.xaxis.type==="datetime"&&o.globals.seriesRangeBarTimeline.length,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.initialXRatio=t.initialXRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new y1(this)}return p(F,[{key:"draw",value:function(l,t){var o=this.w,n=new E(this.ctx),h=new W(this.ctx,o);l=h.getLogSeries(l),this.series=l,this.yRatio=h.getLogYRatios(this.yRatio),this.barHelpers.initVariables(l);var u=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});o.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var v=0,m=0;v0&&(this.visibleI=this.visibleI+1);var X=0,f=0;this.yRatio.length>1&&(this.yaxisIndex=D),this.isReversed=o.config.yaxis[this.yaxisIndex]&&o.config.yaxis[this.yaxisIndex].reversed;var L=this.barHelpers.initialPositions();z=L.y,X=L.barHeight,g=L.yDivision,M=L.zeroW,k=L.x,f=L.barWidth,b=L.xDivision,H=L.zeroH,this.horizontal||I.push(k+f/2);for(var O=n.group({class:"apexcharts-datalabels","data:realIndex":D}),N=n.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),K=0;K0&&I.push(k+f/2),T.push(z);var C1=this.barHelpers.getPathFillColor(l,v,K,D);this.renderSeries({realIndex:D,pathFill:C1,j:K,i:v,pathFrom:l1.pathFrom,pathTo:l1.pathTo,strokeWidth:n1,elSeries:Y,x:k,y:z,series:l,barHeight:X,barWidth:f,elDataLabelsWrap:O,elGoalsMarkers:N,visibleSeries:this.visibleI,type:"bar"})}o.globals.seriesXvalues[D]=I,o.globals.seriesYvalues[D]=T,u.add(Y)}return u}},{key:"renderSeries",value:function(l){var t=l.realIndex,o=l.pathFill,n=l.lineFill,h=l.j,u=l.i,v=l.pathFrom,m=l.pathTo,b=l.strokeWidth,g=l.elSeries,H=l.x,M=l.y,k=l.y1,z=l.y2,T=l.series,I=l.barHeight,D=l.barWidth,Y=l.barYPosition,X=l.elDataLabelsWrap,f=l.elGoalsMarkers,L=l.visibleSeries,O=l.type,N=this.w,K=new E(this.ctx);n||(n=this.barOptions.distributed?N.globals.stroke.colors[h]:N.globals.stroke.colors[t]),N.config.series[u].data[h]&&N.config.series[u].data[h].strokeColor&&(n=N.config.series[u].data[h].strokeColor),this.isNullValue&&(o="none");var n1=h/N.config.chart.animations.animateGradually.delay*(N.config.chart.animations.speed/N.globals.dataPoints)/2.4,l1=K.renderPaths({i:u,j:h,realIndex:t,pathFrom:v,pathTo:m,stroke:n,strokeWidth:b,strokeLineCap:N.config.stroke.lineCap,fill:o,animationDelay:n1,initialSpeed:N.config.chart.animations.speed,dataChangeSpeed:N.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(O,"-area")});l1.attr("clip-path","url(#gridRectMask".concat(N.globals.cuid,")"));var b1=N.config.forecastDataPoints;b1.count>0&&h>=N.globals.dataPoints-b1.count&&(l1.node.setAttribute("stroke-dasharray",b1.dashArray),l1.node.setAttribute("stroke-width",b1.strokeWidth),l1.node.setAttribute("fill-opacity",b1.fillOpacity)),k!==void 0&&z!==void 0&&(l1.attr("data-range-y1",k),l1.attr("data-range-y2",z)),new A(this.ctx).setSelectionFilter(l1,t,h),g.add(l1);var m1=new w1(this).handleBarDataLabels({x:H,y:M,y1:k,y2:z,i:u,j:h,series:T,realIndex:t,barHeight:I,barWidth:D,barYPosition:Y,renderedPath:l1,visibleSeries:L});return m1!==null&&X.add(m1),g.add(X),f&&g.add(f),g}},{key:"drawBarPaths",value:function(l){var t=l.indexes,o=l.barHeight,n=l.strokeWidth,h=l.zeroW,u=l.x,v=l.y,m=l.yDivision,b=l.elSeries,g=this.w,H=t.i,M=t.j;g.globals.isXNumeric&&(v=(g.globals.seriesX[H][M]-g.globals.minX)/this.invertedXRatio-o);var k=v+o*this.visibleI;u=this.barHelpers.getXForValue(this.series[H][M],h);var z=this.barHelpers.getBarpaths({barYPosition:k,barHeight:o,x1:h,x2:u,strokeWidth:n,series:this.series,realIndex:t.realIndex,i:H,j:M,w:g});return g.globals.isXNumeric||(v+=m),this.barHelpers.barBackground({j:M,i:H,y1:k-o*this.visibleI,y2:o*this.seriesLen,elSeries:b}),{pathTo:z.pathTo,pathFrom:z.pathFrom,x:u,y:v,goalX:this.barHelpers.getGoalValues("x",h,null,H,M),barYPosition:k}}},{key:"drawColumnPaths",value:function(l){var t=l.indexes,o=l.x,n=l.y,h=l.xDivision,u=l.barWidth,v=l.zeroH,m=l.strokeWidth,b=l.elSeries,g=this.w,H=t.realIndex,M=t.i,k=t.j,z=t.bc;if(g.globals.isXNumeric){var T=H;g.globals.seriesX[H].length||(T=g.globals.maxValsInArrayIndex),o=(g.globals.seriesX[T][k]-g.globals.minX)/this.xRatio-u*this.seriesLen/2}var I=o+u*this.visibleI;n=this.barHelpers.getYForValue(this.series[M][k],v);var D=this.barHelpers.getColumnPaths({barXPosition:I,barWidth:u,y1:v,y2:n,strokeWidth:m,series:this.series,realIndex:t.realIndex,i:M,j:k,w:g});return g.globals.isXNumeric||(o+=h),this.barHelpers.barBackground({bc:z,j:k,i:M,x1:I-m/2-u*this.visibleI,x2:u*this.seriesLen+m/2,elSeries:b}),{pathTo:D.pathTo,pathFrom:D.pathFrom,x:o,y:n,goalY:this.barHelpers.getGoalValues("y",null,v,M,k),barXPosition:I}}},{key:"getPreviousPath",value:function(l,t){for(var o,n=this.w,h=0;h0&&parseInt(u.realIndex,10)===parseInt(l,10)&&n.globals.previousPaths[h].paths[t]!==void 0&&(o=n.globals.previousPaths[h].paths[t].d)}return o}}]),F}(),g1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,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]}return p(F,[{key:"isValidDate",value:function(l){return!isNaN(this.parseDate(l))}},{key:"getTimeStamp",value:function(l){return Date.parse(l)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(l).toISOString().substr(0,25)).getTime():new Date(l).getTime():l}},{key:"getDate",value:function(l){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(l).toUTCString()):new Date(l)}},{key:"parseDate",value:function(l){var t=Date.parse(l);if(!isNaN(t))return this.getTimeStamp(l);var o=Date.parse(l.replace(/-/g,"/").replace(/[a-z]+/gi," "));return o=this.getTimeStamp(o)}},{key:"parseDateWithTimezone",value:function(l){return Date.parse(l.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(l,t){var o=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,h=["\0"].concat(P(o.months)),u=[""].concat(P(o.shortMonths)),v=[""].concat(P(o.days)),m=[""].concat(P(o.shortDays));function b(K,n1){var l1=K+"";for(n1=n1||2;l1.length12?k-12:k===0?12:k;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+b(k))).replace(/(^|[^\\])H/g,"$1"+k)).replace(/(^|[^\\])hh+/g,"$1"+b(z))).replace(/(^|[^\\])h/g,"$1"+z);var T=n?l.getUTCMinutes():l.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+b(T))).replace(/(^|[^\\])m/g,"$1"+T);var I=n?l.getUTCSeconds():l.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+b(I))).replace(/(^|[^\\])s/g,"$1"+I);var D=n?l.getUTCMilliseconds():l.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+b(D,3)),D=Math.round(D/10),t=t.replace(/(^|[^\\])ff/g,"$1"+b(D)),D=Math.round(D/10);var Y=k<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+D)).replace(/(^|[^\\])TT+/g,"$1"+Y)).replace(/(^|[^\\])T/g,"$1"+Y.charAt(0));var X=Y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+X)).replace(/(^|[^\\])t/g,"$1"+X.charAt(0));var f=-l.getTimezoneOffset(),L=n||!f?"Z":f>0?"+":"-";if(!n){var O=(f=Math.abs(f))%60;L+=b(Math.floor(f/60))+":"+b(O)}t=t.replace(/(^|[^\\])K/g,"$1"+L);var N=(n?l.getUTCDay():l.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(v[0],"g"),v[N])).replace(new RegExp(m[0],"g"),m[N])).replace(new RegExp(h[0],"g"),h[H])).replace(new RegExp(u[0],"g"),u[H])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(l,t,o){var n=this.w;n.config.xaxis.min!==void 0&&(l=n.config.xaxis.min),n.config.xaxis.max!==void 0&&(t=n.config.xaxis.max);var h=this.getDate(l),u=this.getDate(t),v=this.formatDate(h,"yyyy MM dd HH mm ss fff").split(" "),m=this.formatDate(u,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(v[6],10),maxMillisecond:parseInt(m[6],10),minSecond:parseInt(v[5],10),maxSecond:parseInt(m[5],10),minMinute:parseInt(v[4],10),maxMinute:parseInt(m[4],10),minHour:parseInt(v[3],10),maxHour:parseInt(m[3],10),minDate:parseInt(v[2],10),maxDate:parseInt(m[2],10),minMonth:parseInt(v[1],10)-1,maxMonth:parseInt(m[1],10)-1,minYear:parseInt(v[0],10),maxYear:parseInt(m[0],10)}}},{key:"isLeapYear",value:function(l){return l%4==0&&l%100!=0||l%400==0}},{key:"calculcateLastDaysOfMonth",value:function(l,t,o){return this.determineDaysOfMonths(l,t)-o}},{key:"determineDaysOfYear",value:function(l){var t=365;return this.isLeapYear(l)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(l,t,o){var n=this.daysCntOfYear[t]+o;return t>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(l,t){var o=30;switch(l=S.monthMod(l),!0){case this.months30.indexOf(l)>-1:l===2&&(o=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(l)>-1:default:o=31}return o}}]),F}(),E1=function(F){V(t,L1);var l=Z(t);function t(){return s(this,t),l.apply(this,arguments)}return p(t,[{key:"draw",value:function(o,n){var h=this.w,u=new E(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=o,this.seriesRangeStart=h.globals.seriesRangeStart,this.seriesRangeEnd=h.globals.seriesRangeEnd,this.barHelpers.initVariables(o);for(var v=u.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),m=0;m0&&(this.visibleI=this.visibleI+1);var D=0,Y=0;this.yRatio.length>1&&(this.yaxisIndex=T);var X=this.barHelpers.initialPositions();k=X.y,H=X.zeroW,M=X.x,Y=X.barWidth,b=X.xDivision,g=X.zeroH;for(var f=u.group({class:"apexcharts-datalabels","data:realIndex":T}),L=u.group({class:"apexcharts-rangebar-goals-markers",style:"pointer-events: none"}),O=0;O0});return u=H.config.plotOptions.bar.rangeBarGroupRows?v+b*T:v+m*this.visibleI+b*T,I>-1&&!H.config.plotOptions.bar.rangeBarOverlap&&(M=H.globals.seriesRangeBarTimeline[n][I].overlaps).indexOf(k)>-1&&(u=(m=g.barHeight/M.length)*this.visibleI+b*(100-parseInt(this.barOptions.barHeight,10))/100/2+m*(this.visibleI+M.indexOf(k))+b*T),{barYPosition:u,barHeight:m}}},{key:"drawRangeColumnPaths",value:function(o){var n=o.indexes,h=o.x;o.strokeWidth;var u=o.xDivision,v=o.barWidth,m=o.zeroH,b=this.w,g=n.i,H=n.j,M=this.yRatio[this.yaxisIndex],k=n.realIndex,z=this.getRangeValue(k,H),T=Math.min(z.start,z.end),I=Math.max(z.start,z.end);b.globals.isXNumeric&&(h=(b.globals.seriesX[g][H]-b.globals.minX)/this.xRatio-v/2);var D=h+v*this.visibleI;this.series[g][H]===void 0||this.series[g][H]===null?T=m:(T=m-T/M,I=m-I/M);var Y=Math.abs(I-T),X=this.barHelpers.getColumnPaths({barXPosition:D,barWidth:v,y1:T,y2:I,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:n.realIndex,i:k,j:H,w:b});return b.globals.isXNumeric||(h+=u),{pathTo:X.pathTo,pathFrom:X.pathFrom,barHeight:Y,x:h,y:I,goalY:this.barHelpers.getGoalValues("y",null,m,g,H),barXPosition:D}}},{key:"drawRangeBarPaths",value:function(o){var n=o.indexes,h=o.y,u=o.y1,v=o.y2,m=o.yDivision,b=o.barHeight,g=o.barYPosition,H=o.zeroW,M=this.w,k=H+u/this.invertedYRatio,z=H+v/this.invertedYRatio,T=Math.abs(z-k),I=this.barHelpers.getBarpaths({barYPosition:g,barHeight:b,x1:k,x2:z,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:n.realIndex,realIndex:n.realIndex,j:n.j,w:M});return M.globals.isXNumeric||(h+=m),{pathTo:I.pathTo,pathFrom:I.pathFrom,barWidth:T,x:z,goalX:this.barHelpers.getGoalValues("x",H,null,n.realIndex,n.j),y:h}}},{key:"getRangeValue",value:function(o,n){var h=this.w;return{start:h.globals.seriesRangeStart[o][n],end:h.globals.seriesRangeEnd[o][n]}}},{key:"getTooltipValues",value:function(o){var n=o.ctx,h=o.seriesIndex,u=o.dataPointIndex,v=o.y1,m=o.y2,b=o.w,g=b.globals.seriesRangeStart[h][u],H=b.globals.seriesRangeEnd[h][u],M=b.globals.labels[u],k=b.config.series[h].name?b.config.series[h].name:"",z=b.config.tooltip.y.formatter,T=b.config.tooltip.y.title.formatter,I={w:b,seriesIndex:h,dataPointIndex:u,start:g,end:H};typeof T=="function"&&(k=T(k,I)),Number.isFinite(v)&&Number.isFinite(m)&&(g=v,H=m,b.config.series[h].data[u].x&&(M=b.config.series[h].data[u].x+":"),typeof z=="function"&&(M=z(M,I)));var D="",Y="",X=b.globals.colors[h];if(b.config.tooltip.x.formatter===void 0)if(b.config.xaxis.type==="datetime"){var f=new g1(n);D=f.formatDate(f.getDate(g),b.config.tooltip.x.format),Y=f.formatDate(f.getDate(H),b.config.tooltip.x.format)}else D=g,Y=H;else D=b.config.tooltip.x.formatter(g),Y=b.config.tooltip.x.formatter(H);return{start:g,end:H,startVal:D,endVal:Y,ylabel:M,color:X,seriesName:k}}},{key:"buildCustomTooltipHTML",value:function(o){var n=o.color,h=o.seriesName;return'"}}]),t}(),B1=function(){function F(l){s(this,F),this.opts=l}return p(F,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(l){return 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,S.extend(l,{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}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},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}}}}}},{key:"candlestick",value:function(){var l=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var o=t.seriesIndex,n=t.dataPointIndex,h=t.w;return l._getBoxTooltip(h,o,n,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var l=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var o=t.seriesIndex,n=t.dataPointIndex,h=t.w;return l._getBoxTooltip(h,o,n,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(l,t){t.ctx;var o=t.seriesIndex,n=t.dataPointIndex,h=t.w,u=h.globals.seriesRangeStart[o][n];return h.globals.seriesRangeEnd[o][n]-u},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(l){return l.w.config.plotOptions&&l.w.config.plotOptions.bar&&l.w.config.plotOptions.bar.horizontal?function(t){var o=new E1(t.ctx,null),n=o.getTooltipValues(t),h=n.color,u=n.seriesName,v=n.ylabel,m=n.startVal,b=n.endVal;return o.buildCustomTooltipHTML({color:h,seriesName:u,ylabel:v,start:m,end:b})}(l):function(t){var o=new E1(t.ctx,null),n=o.getTooltipValues(t),h=n.color,u=n.seriesName,v=n.ylabel,m=n.start,b=n.end;return o.buildCustomTooltipHTML({color:h,seriesName:u,ylabel:v,start:m,end:b})}(l)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},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}}}},{key:"brush",value:function(l){return S.extend(l,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(l){l.dataLabels=l.dataLabels||{},l.dataLabels.formatter=l.dataLabels.formatter||void 0;var t=l.dataLabels.formatter;return l.yaxis.forEach(function(o,n){l.yaxis[n].min=0,l.yaxis[n].max=100}),l.chart.type==="bar"&&(l.dataLabels.formatter=t||function(o){return typeof o=="number"&&o?o.toFixed(0)+"%":o}),l}},{key:"convertCatToNumeric",value:function(l){return l.xaxis.convertedCatToNumeric=!0,l}},{key:"convertCatToNumericXaxis",value:function(l,t,o){l.xaxis.type="numeric",l.xaxis.labels=l.xaxis.labels||{},l.xaxis.labels.formatter=l.xaxis.labels.formatter||function(u){return S.isNumber(u)?Math.floor(u):u};var n=l.xaxis.labels.formatter,h=l.xaxis.categories&&l.xaxis.categories.length?l.xaxis.categories:l.labels;return o&&o.length&&(h=o.map(function(u){return Array.isArray(u)?u:String(u)})),h&&h.length&&(l.xaxis.labels.formatter=function(u){return S.isNumber(u)?n(h[Math.floor(u)-1]):n(u)}),l.xaxis.categories=[],l.labels=[],l.xaxis.tickAmount=l.xaxis.tickAmount||"dataPoints",l}},{key:"bubble",value:function(){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}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(l){return l.toFixed(1)+"%"},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"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(l){return l.toFixed(1)+"%"},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"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(l){return l.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){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:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(l){return l},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},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}}}},{key:"_getBoxTooltip",value:function(l,t,o,n,h){var u=l.globals.seriesCandleO[t][o],v=l.globals.seriesCandleH[t][o],m=l.globals.seriesCandleM[t][o],b=l.globals.seriesCandleL[t][o],g=l.globals.seriesCandleC[t][o];return l.config.series[t].type&&l.config.series[t].type!==h?`
- `.concat(l.config.series[t].name?l.config.series[t].name:"series-"+(t+1),": ").concat(l.globals.series[t][o],`
-
`):'"}}]),F}(),n2=function(){function F(l){s(this,F),this.opts=l}return p(F,[{key:"init",value:function(l){var t=l.responsiveOverride,o=this.opts,n=new t1,h=new B1(o);this.chartType=o.chart.type,this.chartType==="histogram"&&(o.chart.type="bar",o=S.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},o)),o=this.extendYAxis(o),o=this.extendAnnotations(o);var u=n.init(),v={};if(o&&i(o)==="object"){var m={};m=["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(o.chart.type)!==-1?h[o.chart.type]():h.line(),o.chart.brush&&o.chart.brush.enabled&&(m=h.brush(m)),o.chart.stacked&&o.chart.stackType==="100%"&&(o=h.stacked100(o)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(o),o.xaxis=o.xaxis||window.Apex.xaxis||{},t||(o.xaxis.convertedCatToNumeric=!1),((o=this.checkForCatToNumericXAxis(this.chartType,m,o)).chart.sparkline&&o.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(m=h.sparkline(m)),v=S.extend(u,m)}var b=S.extend(v,window.Apex);return u=S.extend(b,o),u=this.handleUserInputErrors(u)}},{key:"checkForCatToNumericXAxis",value:function(l,t,o){var n=new B1(o),h=l==="bar"&&o.plotOptions&&o.plotOptions.bar&&o.plotOptions.bar.horizontal,u=l==="pie"||l==="polarArea"||l==="donut"||l==="radar"||l==="radialBar"||l==="heatmap",v=o.xaxis.type!=="datetime"&&o.xaxis.type!=="numeric",m=o.xaxis.tickPlacement?o.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return h||u||!v||m==="between"||(o=n.convertCatToNumeric(o)),o}},{key:"extendYAxis",value:function(l,t){var o=new t1;(l.yaxis===void 0||!l.yaxis||Array.isArray(l.yaxis)&&l.yaxis.length===0)&&(l.yaxis={}),l.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(l.yaxis=S.extend(l.yaxis,window.Apex.yaxis)),l.yaxis.constructor!==Array?l.yaxis=[S.extend(o.yAxis,l.yaxis)]:l.yaxis=S.extendArray(l.yaxis,o.yAxis);var n=!1;l.yaxis.forEach(function(u){u.logarithmic&&(n=!0)});var h=l.series;return t&&!h&&(h=t.config.series),n&&h.length!==l.yaxis.length&&h.length&&(l.yaxis=h.map(function(u,v){if(u.name||(h[v].name="series-".concat(v+1)),l.yaxis[v])return l.yaxis[v].seriesName=h[v].name,l.yaxis[v];var m=S.extend(o.yAxis,l.yaxis[0]);return m.show=!1,m})),n&&h.length>1&&h.length!==l.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),l}},{key:"extendAnnotations",value:function(l){return l.annotations===void 0&&(l.annotations={},l.annotations.yaxis=[],l.annotations.xaxis=[],l.annotations.points=[]),l=this.extendYAxisAnnotations(l),l=this.extendXAxisAnnotations(l),l=this.extendPointAnnotations(l)}},{key:"extendYAxisAnnotations",value:function(l){var t=new t1;return l.annotations.yaxis=S.extendArray(l.annotations.yaxis!==void 0?l.annotations.yaxis:[],t.yAxisAnnotation),l}},{key:"extendXAxisAnnotations",value:function(l){var t=new t1;return l.annotations.xaxis=S.extendArray(l.annotations.xaxis!==void 0?l.annotations.xaxis:[],t.xAxisAnnotation),l}},{key:"extendPointAnnotations",value:function(l){var t=new t1;return l.annotations.points=S.extendArray(l.annotations.points!==void 0?l.annotations.points:[],t.pointAnnotation),l}},{key:"checkForDarkTheme",value:function(l){l.theme&&l.theme.mode==="dark"&&(l.tooltip||(l.tooltip={}),l.tooltip.theme!=="light"&&(l.tooltip.theme="dark"),l.chart.foreColor||(l.chart.foreColor="#f6f7f8"),l.chart.background||(l.chart.background="#424242"),l.theme.palette||(l.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(l){var t=l;if(t.tooltip.shared&&t.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(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t.chart.group&&t.yaxis[0].labels.minWidth===0&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(t.stroke.width)&&t.chart.type!=="line"&&t.chart.type!=="area"&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),t.stroke.width=t.stroke.width[0]),t}}]),F}(),b2=function(){function F(){s(this,F)}return p(F,[{key:"initGlobalVars",value:function(l){l.series=[],l.seriesCandleO=[],l.seriesCandleH=[],l.seriesCandleM=[],l.seriesCandleL=[],l.seriesCandleC=[],l.seriesRangeStart=[],l.seriesRangeEnd=[],l.seriesRangeBarTimeline=[],l.seriesPercent=[],l.seriesGoals=[],l.seriesX=[],l.seriesZ=[],l.seriesNames=[],l.seriesTotals=[],l.seriesLog=[],l.seriesColors=[],l.stackedSeriesTotals=[],l.seriesXvalues=[],l.seriesYvalues=[],l.labels=[],l.categoryLabels=[],l.timescaleLabels=[],l.noLabelsProvided=!1,l.resizeTimer=null,l.selectionResizeTimer=null,l.delayedElements=[],l.pointsArray=[],l.dataLabelsRects=[],l.isXNumeric=!1,l.xaxisLabelsCount=0,l.skipLastTimelinelabel=!1,l.skipFirstTimelinelabel=!1,l.isDataXYZ=!1,l.isMultiLineX=!1,l.isMultipleYAxis=!1,l.maxY=-Number.MAX_VALUE,l.minY=Number.MIN_VALUE,l.minYArr=[],l.maxYArr=[],l.maxX=-Number.MAX_VALUE,l.minX=Number.MAX_VALUE,l.initialMaxX=-Number.MAX_VALUE,l.initialMinX=Number.MAX_VALUE,l.maxDate=0,l.minDate=Number.MAX_VALUE,l.minZ=Number.MAX_VALUE,l.maxZ=-Number.MAX_VALUE,l.minXDiff=Number.MAX_VALUE,l.yAxisScale=[],l.xAxisScale=null,l.xAxisTicksPositions=[],l.yLabelsCoords=[],l.yTitleCoords=[],l.barPadForNumericAxis=0,l.padHorizontal=0,l.xRange=0,l.yRange=[],l.zRange=0,l.dataPoints=0,l.xTickAmount=0}},{key:"globalVars",value:function(l){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:l.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:l.chart.toolbar.autoSelected==="zoom"&&l.chart.toolbar.tools.zoom&&l.chart.zoom.enabled,panEnabled:l.chart.toolbar.autoSelected==="pan"&&l.chart.toolbar.tools.pan,selectionEnabled:l.chart.toolbar.autoSelected==="selection"&&l.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(l){var t=this.globalVars(l);return this.initGlobalVars(t),t.initialConfig=S.extend({},l),t.initialSeries=S.clone(l.series),t.lastXAxis=S.clone(t.initialConfig.xaxis),t.lastYAxis=S.clone(t.initialConfig.yaxis),t}}]),F}(),r1=function(){function F(l){s(this,F),this.opts=l}return p(F,[{key:"init",value:function(){var l=new n2(this.opts).init({responsiveOverride:!1});return{config:l,globals:new b2().init(l)}}}]),F}(),s1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new W(this.ctx)}return p(F,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var l=this.w.config.series.slice(),t=new A1(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),l[this.activeSeriesIndex].data!==void 0&&l[this.activeSeriesIndex].data.length>0&&l[this.activeSeriesIndex].data[0]!==null&&l[this.activeSeriesIndex].data[0].x!==void 0&&l[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var l=this.w.config.series.slice(),t=new A1(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),l[this.activeSeriesIndex].data!==void 0&&l[this.activeSeriesIndex].data.length>0&&l[this.activeSeriesIndex].data[0]!==void 0&&l[this.activeSeriesIndex].data[0]!==null&&l[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(l,t){for(var o=this.w.config,n=this.w.globals,h=o.chart.type==="boxPlot"||o.series[t].type==="boxPlot",u=0;u=5?this.twoDSeries.push(S.parseNumber(l[t].data[u][4])):this.twoDSeries.push(S.parseNumber(l[t].data[u][1])),n.dataFormatXNumeric=!0),o.xaxis.type==="datetime"){var v=new Date(l[t].data[u][0]);v=new Date(v).getTime(),this.twoDSeriesX.push(v)}else this.twoDSeriesX.push(l[t].data[u][0]);for(var m=0;m-1&&(u=this.activeSeriesIndex);for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:this.ctx,n=this.w.config,h=this.w.globals,u=new g1(o),v=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();h.isTimelineBar=n.chart.type==="rangeBar"&&n.xaxis.type==="datetime";for(var m=function(){for(var H=0;H0&&(this.twoDSeriesX=v,h.seriesX.push(this.twoDSeriesX))),h.labels.push(this.twoDSeriesX);var g=l[b].data.map(function(H){return S.parseNumber(H)});h.series.push(g)}h.seriesZ.push(this.threeDSeries),l[b].name!==void 0?h.seriesNames.push(l[b].name):h.seriesNames.push("series-"+parseInt(b+1,10)),l[b].color!==void 0?h.seriesColors.push(l[b].color):h.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(l){var t=this.w.globals,o=this.w.config;t.series=l.slice(),t.seriesNames=o.labels.slice();for(var n=0;n0?o.labels=t.xaxis.categories:t.labels.length>0?o.labels=t.labels.slice():this.fallbackToCategory?(o.labels=o.labels[0],o.seriesRangeBarTimeline.length&&(o.seriesRangeBarTimeline.map(function(n){n.forEach(function(h){o.labels.indexOf(h.x)<0&&h.x&&o.labels.push(h.x)})}),o.labels=o.labels.filter(function(n,h,u){return u.indexOf(n)===h})),t.xaxis.convertedCatToNumeric&&(new B1(t).convertCatToNumericXaxis(t,this.ctx,o.seriesX[0]),this._generateExternalLabels(l))):this._generateExternalLabels(l)}},{key:"_generateExternalLabels",value:function(l){var t=this.w.globals,o=this.w.config,n=[];if(t.axisCharts){if(t.series.length>0)for(var h=0;h0&&n<100?o.toFixed(1):o.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?o.toFixed(1):o.toFixed(0)}return o},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(o,n){o.labels.formatter!==void 0?t.globals.yLabelFormatters[n]=o.labels.formatter:t.globals.yLabelFormatters[n]=function(h){return t.globals.xyCharts?Array.isArray(h)?h.map(function(u){return l.defaultYFormatter(u,o,n)}):l.defaultYFormatter(h,o,n):h}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var l=this.w;if(l.config.chart.type==="heatmap"){l.globals.yAxisScale[0].result=l.globals.seriesNames.slice();var t=l.globals.seriesNames.reduce(function(o,n){return o.length>n.length?o:n},0);l.globals.yAxisScale[0].niceMax=t,l.globals.yAxisScale[0].niceMin=t}}}]),F}(),x1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"getLabel",value:function(l,t,o,n){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",v=this.w,m=l[n]===void 0?"":l[n],b=m,g=v.globals.xLabelFormatter,H=v.config.xaxis.labels.formatter,M=!1,k=new p1(this.ctx),z=m;b=k.xLabelFormat(g,m,z,{i:n,dateFormatter:new g1(this.ctx).formatDate,w:v}),H!==void 0&&(b=H(m,l[n],{i:n,dateFormatter:new g1(this.ctx).formatDate,w:v}));var T=function(X){var f=null;return t.forEach(function(L){L.unit==="month"?f="year":L.unit==="day"?f="month":L.unit==="hour"?f="day":L.unit==="minute"&&(f="hour")}),f===X};t.length>0?(M=T(t[n].unit),o=t[n].position,b=t[n].value):v.config.xaxis.type==="datetime"&&H===void 0&&(b=""),b===void 0&&(b=""),b=Array.isArray(b)?b:b.toString();var I=new E(this.ctx),D={};D=v.globals.rotateXLabels?I.getTextRects(b,parseInt(u,10),null,"rotate(".concat(v.config.xaxis.labels.rotate," 0 0)"),!1):I.getTextRects(b,parseInt(u,10));var Y=!v.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(b)&&(b.indexOf("NaN")===0||b.toLowerCase().indexOf("invalid")===0||b.toLowerCase().indexOf("infinity")>=0||h.indexOf(b)>=0&&Y)&&(b=""),{x:o,text:b,textRect:D,isBold:M}}},{key:"checkLabelBasedOnTickamount",value:function(l,t,o){var n=this.w,h=n.config.xaxis.tickAmount;return h==="dataPoints"&&(h=Math.round(n.globals.gridWidth/120)),h>o||l%Math.round(o/(h+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(l,t,o,n,h){var u=this.w;if(l===0&&u.globals.skipFirstTimelinelabel&&(t.text=""),l===o-1&&u.globals.skipLastTimelinelabel&&(t.text=""),u.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var v=h[h.length-1];t.x0){m.config.yaxis[h].opposite===!0&&(l+=n.width);for(var H=t;H>=0;H--){var M=g+t/10+m.config.yaxis[h].labels.offsetY-1;m.globals.isBarHorizontal&&(M=u*H),m.config.chart.type==="heatmap"&&(M+=u/2);var k=b.drawLine(l+o.offsetX-n.width+n.offsetX,M+n.offsetY,l+o.offsetX+n.offsetX,M+n.offsetY,n.color);v.add(k),g+=u}}}}]),F}(),K1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"scaleSvgNode",value:function(l,t){var o=parseFloat(l.getAttributeNS(null,"width")),n=parseFloat(l.getAttributeNS(null,"height"));l.setAttributeNS(null,"width",o*t),l.setAttributeNS(null,"height",n*t),l.setAttributeNS(null,"viewBox","0 0 "+o+" "+n)}},{key:"fixSvgStringForIe11",value:function(l){if(!S.isIE11())return l;var t=0,o=l.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(n){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':n});return o=(o=o.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(l){var t=this.w.globals.dom.Paper.svg();if(l!==1){var o=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(o,l),t=new XMLSerializer().serializeToString(o)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var l=this.w,t=l.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),o=l.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=l.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,function(h){h.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),o&&o[0]&&(o[0].setAttribute("y",-100),o[0].setAttribute("y1",-100),o[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var l=this.getSvgString(),t=new Blob([l],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(l){var t=this;return new Promise(function(o){var n=t.w,h=l?l.scale||l.width/n.globals.svgWidth:1;t.cleanup();var u=document.createElement("canvas");u.width=n.globals.svgWidth*h,u.height=parseInt(n.globals.dom.elWrap.style.height,10)*h;var v=n.config.chart.background==="transparent"?"#fff":n.config.chart.background,m=u.getContext("2d");m.fillStyle=v,m.fillRect(0,0,u.width*h,u.height*h);var b=t.getSvgString(h);if(window.canvg&&S.isIE11()){var g=window.canvg.Canvg.fromString(m,b,{ignoreClear:!0,ignoreDimensions:!0});g.start();var H=u.msToBlob();g.stop(),o({blob:H})}else{var M="data:image/svg+xml,"+encodeURIComponent(b),k=new Image;k.crossOrigin="anonymous",k.onload=function(){if(m.drawImage(k,0,0),u.msToBlob){var z=u.msToBlob();o({blob:z})}else{var T=u.toDataURL("image/png");o({imgURI:T})}},k.src=M}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var l=this;this.dataURI().then(function(t){var o=t.imgURI,n=t.blob;n?navigator.msSaveOrOpenBlob(n,l.w.globals.chartID+".png"):l.triggerDownload(o,l.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(l){var t=this,o=l.series,n=l.columnDelimiter,h=l.lineDelimiter,u=h===void 0?`
-`:h,v=this.w,m=[],b=[],g="data:text/csv;charset=utf-8,\uFEFF",H=new s1(this.ctx),M=new x1(this.ctx),k=function(z){var T="";if(v.globals.axisCharts){if(v.config.xaxis.type==="category"||v.config.xaxis.convertedCatToNumeric)if(v.globals.isBarHorizontal){var I=v.globals.yLabelFormatters[0],D=new A1(t.ctx).getActiveConfigSeriesIndex();T=I(v.globals.labels[z],{seriesIndex:D,dataPointIndex:z,w:v})}else T=M.getLabel(v.globals.labels,v.globals.timescaleLabels,0,z).text;v.config.xaxis.type==="datetime"&&(v.config.xaxis.categories.length?T=v.config.xaxis.categories[z]:v.config.labels.length&&(T=v.config.labels[z]))}else T=v.config.labels[z];return Array.isArray(T)&&(T=T.join(" ")),S.isNumber(T)?T:T.split(n).join("")};m.push(v.config.chart.toolbar.export.csv.headerCategory),o.map(function(z,T){var I=z.name?z.name:"series-".concat(T);v.globals.axisCharts&&m.push(I.split(n).join("")?I.split(n).join(""):"series-".concat(T))}),v.globals.axisCharts||(m.push(v.config.chart.toolbar.export.csv.headerValue),b.push(m.join(n))),o.map(function(z,T){v.globals.axisCharts?function(I,D){if(m.length&&D===0&&b.push(m.join(n)),I.data&&I.data.length)for(var Y=0;Y=10?v.config.chart.toolbar.export.csv.dateFormatter(X):S.isNumber(X)?X:X.split(n).join("")));for(var f=0;f0&&!t.globals.isBarHorizontal&&(this.xaxisLabels=t.globals.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.globals.gridHeight+1,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()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=t.globals.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]}return p(F,[{key:"drawXaxis",value:function(){var l,t=this,o=this.w,n=new E(this.ctx),h=n.group({class:"apexcharts-xaxis",transform:"translate(".concat(o.config.xaxis.offsetX,", ").concat(o.config.xaxis.offsetY,")")}),u=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(o.globals.translateXAxisX,", ").concat(o.globals.translateXAxisY,")")});h.add(u);for(var v=o.globals.padHorizontal,m=[],b=0;b1?g-1:g;l=o.globals.gridWidth/H,v=v+l/2+o.config.xaxis.labels.offsetX}else l=o.globals.gridWidth/m.length,v=v+l+o.config.xaxis.labels.offsetX;for(var M=function(Y){var X=v-l/2+o.config.xaxis.labels.offsetX;Y===0&&g===1&&l/2===v&&o.globals.dataPoints===1&&(X=o.globals.gridWidth/2);var f=t.axesUtils.getLabel(m,o.globals.timescaleLabels,X,Y,t.drawnLabels,t.xaxisFontSize),L=28;if(o.globals.rotateXLabels&&(L=22),(f=o.config.xaxis.tickAmount!==void 0&&o.config.xaxis.tickAmount!=="dataPoints"&&o.config.xaxis.type!=="datetime"?t.axesUtils.checkLabelBasedOnTickamount(Y,f,g):t.axesUtils.checkForOverflowingLabels(Y,f,g,t.drawnLabels,t.drawnLabelsRects)).text&&o.globals.xaxisLabelsCount++,o.config.xaxis.labels.show){var O=n.drawText({x:f.x,y:t.offY+o.config.xaxis.labels.offsetY+L-(o.config.xaxis.position==="top"?o.globals.xAxisHeight+o.config.xaxis.axisTicks.height-2:0),text:f.text,textAnchor:"middle",fontWeight:f.isBold?600:o.config.xaxis.labels.style.fontWeight,fontSize:t.xaxisFontSize,fontFamily:t.xaxisFontFamily,foreColor:Array.isArray(t.xaxisForeColors)?o.config.xaxis.convertedCatToNumeric?t.xaxisForeColors[o.globals.minX+Y-1]:t.xaxisForeColors[Y]:t.xaxisForeColors,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+o.config.xaxis.labels.style.cssClass});u.add(O);var N=document.createElementNS(o.globals.SVGNS,"title");N.textContent=Array.isArray(f.text)?f.text.join(" "):f.text,O.node.appendChild(N),f.text!==""&&(t.drawnLabels.push(f.text),t.drawnLabelsRects.push(f))}v+=l},k=0;k<=g-1;k++)M(k);if(o.config.xaxis.title.text!==void 0){var z=n.group({class:"apexcharts-xaxis-title"}),T=n.drawText({x:o.globals.gridWidth/2+o.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+o.globals.xAxisLabelsHeight+o.config.xaxis.title.offsetY,text:o.config.xaxis.title.text,textAnchor:"middle",fontSize:o.config.xaxis.title.style.fontSize,fontFamily:o.config.xaxis.title.style.fontFamily,fontWeight:o.config.xaxis.title.style.fontWeight,foreColor:o.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+o.config.xaxis.title.style.cssClass});z.add(T),h.add(z)}if(o.config.xaxis.axisBorder.show){var I=o.globals.barPadForNumericAxis,D=n.drawLine(o.globals.padHorizontal+o.config.xaxis.axisBorder.offsetX-I,this.offY,this.xaxisBorderWidth+I,this.offY,o.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);h.add(D)}return h}},{key:"drawXaxisInversed",value:function(l){var t,o,n=this,h=this.w,u=new E(this.ctx),v=h.config.yaxis[0].opposite?h.globals.translateYAxisX[l]:0,m=u.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:l}),b=u.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+v+", 0)"});m.add(b);var g=[];if(h.config.yaxis[l].show)for(var H=0;Ho.globals.gridWidth)){var h=this.offY+o.config.xaxis.axisTicks.offsetY,u=h+o.config.xaxis.axisTicks.height;if(o.config.xaxis.position==="top"&&(u=h-o.config.xaxis.axisTicks.height),o.config.xaxis.axisTicks.show){var v=new E(this.ctx).drawLine(l+o.config.xaxis.axisTicks.offsetX,h+o.config.xaxis.offsetY,n+o.config.xaxis.axisTicks.offsetX,u+o.config.xaxis.offsetY,o.config.xaxis.axisTicks.color);t.add(v),v.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var l=this.w,t=[],o=this.xaxisLabels.length,n=l.globals.padHorizontal;if(l.globals.timescaleLabels.length>0)for(var h=0;h0){var g=h[h.length-1].getBBox(),H=h[0].getBBox();g.x<-20&&h[h.length-1].parentNode.removeChild(h[h.length-1]),H.x+H.width>l.globals.gridWidth&&!l.globals.isBarHorizontal&&h[0].parentNode.removeChild(h[0]);for(var M=0;M0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return p(F,[{key:"drawGridArea",value:function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,o=new E(this.ctx);l===null&&(l=o.group({class:"apexcharts-grid"}));var n=o.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),h=o.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return l.add(h),l.add(n),l}},{key:"drawGrid",value:function(){var l=null;return this.w.globals.axisCharts&&(l=this.renderGrid(),this.drawGridArea(l.el)),l}},{key:"createGridMask",value:function(){var l=this.w,t=l.globals,o=new E(this.ctx),n=Array.isArray(l.config.stroke.width)?0:l.config.stroke.width;if(Array.isArray(l.config.stroke.width)){var h=0;l.config.stroke.width.forEach(function(H){h=Math.max(h,H)}),n=h}t.dom.elGridRectMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elForecastMask.setAttribute("id","forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=document.createElementNS(t.SVGNS,"clipPath"),t.dom.elNonForecastMask.setAttribute("id","nonForecastMask".concat(t.cuid));var u=l.config.chart.type,v=0,m=0;(u==="bar"||u==="rangeBar"||u==="candlestick"||u==="boxPlot"||l.globals.comboBarCount>0)&&l.globals.isXNumeric&&!l.globals.isBarHorizontal&&(v=l.config.grid.padding.left,m=l.config.grid.padding.right,t.barPadForNumericAxis>v&&(v=t.barPadForNumericAxis,m=t.barPadForNumericAxis)),t.dom.elGridRect=o.drawRect(-n/2-v-2,-n/2,t.gridWidth+n+m+v+4,t.gridHeight+n,0,"#fff"),new W(this).getLargestMarkerSize();var b=l.globals.markers.largestSize+1;t.dom.elGridRectMarker=o.drawRect(2*-b,2*-b,t.gridWidth+4*b,t.gridHeight+4*b,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var g=t.dom.baseEl.querySelector("defs");g.appendChild(t.dom.elGridRectMask),g.appendChild(t.dom.elForecastMask),g.appendChild(t.dom.elNonForecastMask),g.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(l){var t=l.i,o=l.x1,n=l.y1,h=l.x2,u=l.y2,v=l.xCount,m=l.parent,b=this.w;t===0&&b.globals.skipFirstTimelinelabel||t===v-1&&b.globals.skipLastTimelinelabel&&!b.config.xaxis.labels.formatter||b.config.chart.type==="radar"||(b.config.grid.xaxis.lines.show&&this._drawGridLine({x1:o,y1:n,x2:h,y2:u,parent:m}),new i2(this.ctx).drawXaxisTicks(o,this.elg))}},{key:"_drawGridLine",value:function(l){var t=l.x1,o=l.y1,n=l.x2,h=l.y2,u=l.parent,v=this.w,m=u.node.classList.contains("apexcharts-gridlines-horizontal"),b=v.config.grid.strokeDashArray,g=v.globals.barPadForNumericAxis,H=new E(this).drawLine(t-(m?g:0),o,n+(m?g:0),h,v.config.grid.borderColor,b);H.node.classList.add("apexcharts-gridline"),u.add(H)}},{key:"_drawGridBandRect",value:function(l){var t=l.c,o=l.x1,n=l.y1,h=l.x2,u=l.y2,v=l.type,m=this.w,b=new E(this.ctx),g=m.globals.barPadForNumericAxis;if(v!=="column"||m.config.xaxis.type!=="datetime"){var H=m.config.grid[v].colors[t],M=b.drawRect(o-(v==="row"?g:0),n,h+(v==="row"?2*g:0),u,0,H,m.config.grid[v].opacity);this.elg.add(M),M.attr("clip-path","url(#gridRectMask".concat(m.globals.cuid,")")),M.node.classList.add("apexcharts-grid-".concat(v))}}},{key:"_drawXYLines",value:function(l){var t=this,o=l.xCount,n=l.tickAmount,h=this.w;if(h.config.grid.xaxis.lines.show||h.config.xaxis.axisTicks.show){var u,v=h.globals.padHorizontal,m=h.globals.gridHeight;h.globals.timescaleLabels.length?function(z){for(var T=z.xC,I=z.x1,D=z.y1,Y=z.x2,X=z.y2,f=0;f2));h++);return!l.globals.isBarHorizontal||this.isTimelineBar?(o=this.xaxisLabels.length,this.isTimelineBar&&(n=l.globals.labels.length,l.config.xaxis.tickAmount&&l.config.xaxis.labels.formatter&&(o=l.config.xaxis.tickAmount)),this._drawXYLines({xCount:o,tickAmount:n})):(o=n,n=l.globals.xTickAmount,this._drawInvertedXYLines({xCount:o,tickAmount:n})),this.drawGridBands(o,n),{el:this.elg,xAxisTickWidth:l.globals.gridWidth/o}}},{key:"drawGridBands",value:function(l,t){var o=this.w;if(o.config.grid.row.colors!==void 0&&o.config.grid.row.colors.length>0)for(var n=0,h=o.globals.gridHeight/t,u=o.globals.gridWidth,v=0,m=0;v=o.config.grid.row.colors.length&&(m=0),this._drawGridBandRect({c:m,x1:0,y1:n,x2:u,y2:h,type:"row"}),n+=o.globals.gridHeight/t;if(o.config.grid.column.colors!==void 0&&o.config.grid.column.colors.length>0)for(var b=o.globals.isBarHorizontal||o.config.xaxis.type!=="category"&&!o.config.xaxis.convertedCatToNumeric?l:l-1,g=o.globals.padHorizontal,H=o.globals.padHorizontal+o.globals.gridWidth/b,M=o.globals.gridHeight,k=0,z=0;k=o.config.grid.column.colors.length&&(z=0),this._drawGridBandRect({c:z,x1:g,y1:0,x2:H,y2:M,type:"column"}),g+=o.globals.gridWidth/b}}]),F}(),$=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"niceScale",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,h=arguments.length>4?arguments[4]:void 0,u=this.w,v=Math.abs(t-l);if((o=this._adjustTicksForSmallRange(o,n,v))==="dataPoints"&&(o=u.globals.dataPoints-1),l===Number.MIN_VALUE&&t===0||!S.isNumber(l)&&!S.isNumber(t)||l===Number.MIN_VALUE&&t===-Number.MAX_VALUE){l=0,t=o;var m=this.linearScale(l,t,o);return m}l>t?(console.warn("axis.min cannot be greater than axis.max"),t=l+.1):l===t&&(l=l===0?0:l-.5,t=t===0?2:t+.5);var b=[];v<1&&h&&(u.config.chart.type==="candlestick"||u.config.series[n].type==="candlestick"||u.config.chart.type==="boxPlot"||u.config.series[n].type==="boxPlot"||u.globals.isRangeData)&&(t*=1.01);var g=o+1;g<2?g=2:g>2&&(g-=2);var H=v/g,M=Math.floor(S.log10(H)),k=Math.pow(10,M),z=Math.round(H/k);z<1&&(z=1);var T=z*k,I=T*Math.floor(l/T),D=T*Math.ceil(t/T),Y=I;if(h&&v>2){for(;b.push(Y),!((Y+=T)>D););return{result:b,niceMin:b[0],niceMax:b[b.length-1]}}var X=l;(b=[]).push(X);for(var f=Math.abs(t-l)/o,L=0;L<=o;L++)X+=f,b.push(X);return b[b.length-2]>=t&&b.pop(),{result:b,niceMin:b[0],niceMax:b[b.length-1]}}},{key:"linearScale",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,n=arguments.length>3?arguments[3]:void 0,h=Math.abs(t-l);(o=this._adjustTicksForSmallRange(o,n,h))==="dataPoints"&&(o=this.w.globals.dataPoints-1);var u=h/o;o===Number.MAX_VALUE&&(o=10,u=1);for(var v=[],m=l;o>=0;)v.push(m),m+=u,o-=1;return{result:v,niceMin:v[0],niceMax:v[v.length-1]}}},{key:"logarithmicScale",value:function(l){for(var t=[],o=Math.ceil(Math.log10(l))+1,n=0;n5)n.allSeriesCollapsed=!1,n.yAxisScale[l]=this.logarithmicScale(o);else if(o!==-Number.MAX_VALUE&&S.isNumber(o))if(n.allSeriesCollapsed=!1,u.min===void 0&&u.max===void 0||u.forceNiceScale){var m=h.yaxis[l].max===void 0&&h.yaxis[l].min===void 0||h.yaxis[l].forceNiceScale;n.yAxisScale[l]=this.niceScale(t,o,u.tickAmount?u.tickAmount:v<5&&v>1?v+1:5,l,m)}else n.yAxisScale[l]=this.linearScale(t,o,u.tickAmount,l);else n.yAxisScale[l]=this.linearScale(0,5,5)}},{key:"setXScale",value:function(l,t){var o=this.w,n=o.globals,h=o.config.xaxis,u=Math.abs(t-l);return t!==-Number.MAX_VALUE&&S.isNumber(t)?n.xAxisScale=this.linearScale(l,t,h.tickAmount?h.tickAmount:u<5&&u>1?u+1:5,0):n.xAxisScale=this.linearScale(0,5,5),n.xAxisScale}},{key:"setMultipleYScales",value:function(){var l=this,t=this.w.globals,o=this.w.config,n=t.minYArr.concat([]),h=t.maxYArr.concat([]),u=[];o.yaxis.forEach(function(v,m){var b=m;o.series.forEach(function(M,k){M.name===v.seriesName&&(b=k,m!==k?u.push({index:k,similarIndex:m,alreadyExists:!0}):u.push({index:k}))});var g=n[b],H=h[b];l.setYScaleForIndex(m,g,H)}),this.sameScaleInMultipleAxes(n,h,u)}},{key:"sameScaleInMultipleAxes",value:function(l,t,o){var n=this,h=this.w.config,u=this.w.globals,v=[];o.forEach(function(T){T.alreadyExists&&(v[T.index]===void 0&&(v[T.index]=[]),v[T.index].push(T.index),v[T.index].push(T.similarIndex))}),u.yAxisSameScaleIndices=v,v.forEach(function(T,I){v.forEach(function(D,Y){var X,f;I!==Y&&(X=T,f=D,X.filter(function(L){return f.indexOf(L)!==-1})).length>0&&(v[I]=v[I].concat(v[Y]))})});var m=v.map(function(T){return T.filter(function(I,D){return T.indexOf(I)===D})}).map(function(T){return T.sort()});v=v.filter(function(T){return!!T});var b=m.slice(),g=b.map(function(T){return JSON.stringify(T)});b=b.filter(function(T,I){return g.indexOf(JSON.stringify(T))===I});var H=[],M=[];l.forEach(function(T,I){b.forEach(function(D,Y){D.indexOf(I)>-1&&(H[Y]===void 0&&(H[Y]=[],M[Y]=[]),H[Y].push({key:I,value:T}),M[Y].push({key:I,value:t[I]}))})});var k=Array.apply(null,Array(b.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),z=Array.apply(null,Array(b.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);H.forEach(function(T,I){T.forEach(function(D,Y){k[I]=Math.min(D.value,k[I])})}),M.forEach(function(T,I){T.forEach(function(D,Y){z[I]=Math.max(D.value,z[I])})}),l.forEach(function(T,I){M.forEach(function(D,Y){var X=k[Y],f=z[Y];h.chart.stacked&&(f=0,D.forEach(function(L,O){L.value!==-Number.MAX_VALUE&&(f+=L.value),X!==Number.MIN_VALUE&&(X+=H[Y][O].value)})),D.forEach(function(L,O){D[O].key===I&&(h.yaxis[I].min!==void 0&&(X=typeof h.yaxis[I].min=="function"?h.yaxis[I].min(u.minY):h.yaxis[I].min),h.yaxis[I].max!==void 0&&(f=typeof h.yaxis[I].max=="function"?h.yaxis[I].max(u.maxY):h.yaxis[I].max),n.setYScaleForIndex(I,X,f))})})})}},{key:"autoScaleY",value:function(l,t,o){l||(l=this);var n=l.w;if(n.globals.isMultipleYAxis||n.globals.collapsedSeries.length)return console.warn("autoScaleYaxis is not supported in a multi-yaxis chart."),t;var h=n.globals.seriesX[0],u=n.config.chart.stacked;return t.forEach(function(v,m){for(var b=0,g=0;g=o.xaxis.min){b=g;break}var H,M,k=n.globals.minYArr[m],z=n.globals.maxYArr[m],T=n.globals.stackedSeriesTotals;n.globals.series.forEach(function(I,D){var Y=I[b];u?(Y=T[b],H=M=Y,T.forEach(function(X,f){h[f]<=o.xaxis.max&&h[f]>=o.xaxis.min&&(X>M&&X!==null&&(M=X),I[f]=o.xaxis.min){var L=X,O=X;n.globals.series.forEach(function(N,K){X!==null&&(L=Math.min(N[f],L),O=Math.max(N[f],O))}),O>M&&O!==null&&(M=O),Lk&&(H=k),t.length>1?(t[D].min=v.min===void 0?H:v.min,t[D].max=v.max===void 0?M:v.max):(t[0].min=v.min===void 0?H:v.min,t[0].max=v.max===void 0?M:v.max)})}),t}}]),F}(),J=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.scales=new $(l)}return p(F,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,h=this.w.config,u=this.w.globals,v=-Number.MAX_VALUE,m=Number.MIN_VALUE;n===null&&(n=l+1);var b=u.series,g=b,H=b;h.chart.type==="candlestick"?(g=u.seriesCandleL,H=u.seriesCandleH):h.chart.type==="boxPlot"?(g=u.seriesCandleO,H=u.seriesCandleC):u.isRangeData&&(g=u.seriesRangeStart,H=u.seriesRangeEnd);for(var M=l;Mg[M][k]&&g[M][k]<0&&(m=g[M][k])):u.hasNullValues=!0}}return h.chart.type==="rangeBar"&&u.seriesRangeStart.length&&u.isBarHorizontal&&h.xaxis.type==="datetime"&&(m=t),h.chart.type==="bar"&&(m<0&&v<0&&(v=0),m===Number.MIN_VALUE&&(m=0)),{minY:m,maxY:v,lowestY:t,highestY:o}}},{key:"setYRange",value:function(){var l=this.w.globals,t=this.w.config;l.maxY=-Number.MAX_VALUE,l.minY=Number.MIN_VALUE;var o=Number.MAX_VALUE;if(l.isMultipleYAxis)for(var n=0;n=0&&o<=10||t.yaxis[0].min!==void 0||t.yaxis[0].max!==void 0)&&(v=0),l.minY=o-5*v/100,o>0&&l.minY<0&&(l.minY=0),l.maxY=l.maxY+5*v/100}return t.yaxis.forEach(function(m,b){m.max!==void 0&&(typeof m.max=="number"?l.maxYArr[b]=m.max:typeof m.max=="function"&&(l.maxYArr[b]=m.max(l.isMultipleYAxis?l.maxYArr[b]:l.maxY)),l.maxY=l.maxYArr[b]),m.min!==void 0&&(typeof m.min=="number"?l.minYArr[b]=m.min:typeof m.min=="function"&&(l.minYArr[b]=m.min(l.isMultipleYAxis?l.minYArr[b]===Number.MIN_VALUE?0:l.minYArr[b]:l.minY)),l.minY=l.minYArr[b])}),l.isBarHorizontal&&["min","max"].forEach(function(m){t.xaxis[m]!==void 0&&typeof t.xaxis[m]=="number"&&(m==="min"?l.minY=t.xaxis[m]:l.maxY=t.xaxis[m])}),l.isMultipleYAxis?(this.scales.setMultipleYScales(),l.minY=o,l.yAxisScale.forEach(function(m,b){l.minYArr[b]=m.niceMin,l.maxYArr[b]=m.niceMax})):(this.scales.setYScaleForIndex(0,l.minY,l.maxY),l.minY=l.yAxisScale[0].niceMin,l.maxY=l.yAxisScale[0].niceMax,l.minYArr[0]=l.yAxisScale[0].niceMin,l.maxYArr[0]=l.yAxisScale[0].niceMax),{minY:l.minY,maxY:l.maxY,minYArr:l.minYArr,maxYArr:l.maxYArr,yAxisScale:l.yAxisScale}}},{key:"setXRange",value:function(){var l=this.w.globals,t=this.w.config,o=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!l.noLabelsProvided||l.noLabelsProvided||l.isXNumeric;if(l.isXNumeric&&function(){for(var v=0;vl.dataPoints&&l.dataPoints!==0&&(n=l.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(l.series.length>1&&(n=l.series[l.maxValsInArrayIndex].length-1),l.isXNumeric&&(n=l.maxX-l.minX-1)):n=t.xaxis.tickAmount,l.xTickAmount=n,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(l.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(l.minX=t.xaxis.min),t.xaxis.range!==void 0&&(l.minX=l.maxX-t.xaxis.range),l.minX!==Number.MAX_VALUE&&l.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!l.dataFormatXNumeric){for(var h=[],u=l.minX-1;u0&&(l.xAxisScale=this.scales.linearScale(1,l.labels.length,n-1),l.seriesX=l.labels.slice());o&&(l.labels=l.xAxisScale.result.slice())}return l.isBarHorizontal&&l.labels.length&&(l.xTickAmount=l.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:l.minX,maxX:l.maxX}}},{key:"setZRange",value:function(){var l=this.w.globals;if(l.isDataXYZ){for(var t=0;t0){var v=h-n[u-1];v>0&&(l.minXDiff=Math.min(v,l.minXDiff))}}),l.dataPoints===1&&l.minXDiff===Number.MAX_VALUE&&(l.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var l=this.w.globals,t=[],o=[];if(l.series.length)for(var n=0;n0?h=h+parseFloat(l.series[v][n])+1e-4:u+=parseFloat(l.series[v][n])),v===l.series.length-1&&(t.push(h),o.push(u));for(var m=0;m=0;Y--)D(Y);if(o.config.yaxis[l].title.text!==void 0){var X=n.group({class:"apexcharts-yaxis-title"}),f=0;o.config.yaxis[l].opposite&&(f=o.globals.translateYAxisX[l]);var L=n.drawText({x:f,y:o.globals.gridHeight/2+o.globals.translateY+o.config.yaxis[l].title.offsetY,text:o.config.yaxis[l].title.text,textAnchor:"end",foreColor:o.config.yaxis[l].title.style.color,fontSize:o.config.yaxis[l].title.style.fontSize,fontWeight:o.config.yaxis[l].title.style.fontWeight,fontFamily:o.config.yaxis[l].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+o.config.yaxis[l].title.style.cssClass});X.add(L),b.add(X)}var O=o.config.yaxis[l].axisBorder,N=31+O.offsetX;if(o.config.yaxis[l].opposite&&(N=-31-O.offsetX),O.show){var K=n.drawLine(N,o.globals.translateY+O.offsetY-2,N,o.globals.gridHeight+o.globals.translateY+O.offsetY+2,O.color,0,O.width);b.add(K)}return o.config.yaxis[l].axisTicks.show&&this.axesUtils.drawYAxisTicks(N,H,O,o.config.yaxis[l].axisTicks,l,M,b),b}},{key:"drawYaxisInversed",value:function(l){var t=this.w,o=new E(this.ctx),n=o.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),h=o.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});n.add(h);var u=t.globals.yAxisScale[l].result.length-1,v=t.globals.gridWidth/u+.1,m=v+t.config.xaxis.labels.offsetX,b=t.globals.xLabelFormatter,g=t.globals.yAxisScale[l].result.slice(),H=t.globals.timescaleLabels;H.length>0&&(this.xaxisLabels=H.slice(),u=(g=H.slice()).length),g=this.axesUtils.checkForReversedLabels(l,g);var M=H.length;if(t.config.xaxis.labels.show)for(var k=M?0:u;M?k=0;M?k++:k--){var z=g[k];z=b(z,k,t);var T=t.globals.gridWidth+t.globals.padHorizontal-(m-v+t.config.xaxis.labels.offsetX);if(H.length){var I=this.axesUtils.getLabel(g,H,T,k,this.drawnLabels,this.xaxisFontSize);T=I.x,z=I.text,this.drawnLabels.push(I.text),k===0&&t.globals.skipFirstTimelinelabel&&(z=""),k===g.length-1&&t.globals.skipLastTimelinelabel&&(z="")}var D=o.drawText({x:T,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:z,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[l]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label "+t.config.xaxis.labels.style.cssClass});h.add(D),D.tspan(z);var Y=document.createElementNS(t.globals.SVGNS,"title");Y.textContent=z,D.node.appendChild(Y),m+=v}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(l){var t=this.w,o=new E(this.ctx),n=t.config.xaxis.axisBorder;if(n.show){var h=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(h-=15);var u=o.drawLine(t.globals.padHorizontal+h+n.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);l.add(u)}}},{key:"inversedYAxisTitleText",value:function(l){var t=this.w,o=new E(this.ctx);if(t.config.xaxis.title.text!==void 0){var n=o.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),h=o.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,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(h),l.add(n)}}},{key:"yAxisTitleRotate",value:function(l,t){var o=this.w,n=new E(this.ctx),h={width:0,height:0},u={width:0,height:0},v=o.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(l,"'] .apexcharts-yaxis-texts-g"));v!==null&&(h=v.getBoundingClientRect());var m=o.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"'] .apexcharts-yaxis-title text"));if(m!==null&&(u=m.getBoundingClientRect()),m!==null){var b=this.xPaddingForYAxisTitle(l,h,u,t);m.setAttribute("x",b.xPos-(t?10:0))}if(m!==null){var g=n.rotateAroundCenter(m);m.setAttribute("transform","rotate(".concat(t?-1*o.config.yaxis[l].title.rotate:o.config.yaxis[l].title.rotate," ").concat(g.x," ").concat(g.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(l,t,o,n){var h=this.w,u=0,v=0,m=10;return h.config.yaxis[l].title.text===void 0||l<0?{xPos:v,padd:0}:(n?(v=t.width+h.config.yaxis[l].title.offsetX+o.width/2+m/2,(u+=1)===0&&(v-=m/2)):(v=-1*t.width+h.config.yaxis[l].title.offsetX+m/2+o.width/2,h.globals.isBarHorizontal&&(m=25,v=-1*t.width-h.config.yaxis[l].title.offsetX-m)),{xPos:v,padd:m})}},{key:"setYAxisXPosition",value:function(l,t){var o=this.w,n=0,h=0,u=18,v=1;o.config.yaxis.length>1&&(this.multipleYs=!0),o.config.yaxis.map(function(m,b){var g=o.globals.ignoreYAxisIndexes.indexOf(b)>-1||!m.show||m.floating||l[b].width===0,H=l[b].width+t[b].width;m.opposite?o.globals.isBarHorizontal?(h=o.globals.gridWidth+o.globals.translateX-1,o.globals.translateYAxisX[b]=h-m.labels.offsetX):(h=o.globals.gridWidth+o.globals.translateX+v,g||(v=v+H+20),o.globals.translateYAxisX[b]=h-m.labels.offsetX+20):(n=o.globals.translateX-u,g||(u=u+H+20),o.globals.translateYAxisX[b]=n+m.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var l=this.w,t=l.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=S.listToArray(t)).forEach(function(o,n){var h=l.config.yaxis[n];if(h&&h.labels.align!==void 0){var u=l.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),v=l.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"));v=S.listToArray(v);var m=u.getBoundingClientRect();h.labels.align==="left"?(v.forEach(function(b,g){b.setAttribute("text-anchor","start")}),h.opposite||u.setAttribute("transform","translate(-".concat(m.width,", 0)"))):h.labels.align==="center"?(v.forEach(function(b,g){b.setAttribute("text-anchor","middle")}),u.setAttribute("transform","translate(".concat(m.width/2*(h.opposite?1:-1),", 0)"))):h.labels.align==="right"&&(v.forEach(function(b,g){b.setAttribute("text-anchor","end")}),h.opposite&&u.setAttribute("transform","translate(".concat(m.width,", 0)")))}})}}]),F}(),u1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,this.documentEvent=S.bind(this.documentEvent,this)}return p(F,[{key:"addEventListener",value:function(l,t){var o=this.w;o.globals.events.hasOwnProperty(l)?o.globals.events[l].push(t):o.globals.events[l]=[t]}},{key:"removeEventListener",value:function(l,t){var o=this.w;if(o.globals.events.hasOwnProperty(l)){var n=o.globals.events[l].indexOf(t);n!==-1&&o.globals.events[l].splice(n,1)}}},{key:"fireEvent",value:function(l,t){var o=this.w;if(o.globals.events.hasOwnProperty(l)){t&&t.length||(t=[]);for(var n=o.globals.events[l],h=n.length,u=0;u0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var o=t.filter(function(h){return h.name===l})[0];if(!o)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=S.extend(e1,o);this.w.globals.locale=n.options}}]),F}(),M1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"drawAxis",value:function(l,t){var o,n,h=this.w.globals,u=this.w.config,v=new i2(this.ctx),m=new h1(this.ctx);h.axisCharts&&l!=="radar"&&(h.isBarHorizontal?(n=m.drawYaxisInversed(0),o=v.drawXaxisInversed(0),h.dom.elGraphical.add(o),h.dom.elGraphical.add(n)):(o=v.drawXaxis(),h.dom.elGraphical.add(o),u.yaxis.map(function(b,g){h.ignoreYAxisIndexes.indexOf(g)===-1&&(n=m.drawYaxis(g),h.dom.Paper.add(n))})))}}]),F}(),S1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"drawXCrosshairs",value:function(){var l=this.w,t=new E(this.ctx),o=new A(this.ctx),n=l.config.xaxis.crosshairs.fill.gradient,h=l.config.xaxis.crosshairs.dropShadow,u=l.config.xaxis.crosshairs.fill.type,v=n.colorFrom,m=n.colorTo,b=n.opacityFrom,g=n.opacityTo,H=n.stops,M=h.enabled,k=h.left,z=h.top,T=h.blur,I=h.color,D=h.opacity,Y=l.config.xaxis.crosshairs.fill.color;if(l.config.xaxis.crosshairs.show){u==="gradient"&&(Y=t.drawGradient("vertical",v,m,b,g,null,H,null));var X=t.drawRect();l.config.xaxis.crosshairs.width===1&&(X=t.drawLine());var f=l.globals.gridHeight;(!S.isNumber(f)||f<0)&&(f=0);var L=l.config.xaxis.crosshairs.width;(!S.isNumber(L)||L<0)&&(L=0),X.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:f,width:L,height:f,fill:Y,filter:"none","fill-opacity":l.config.xaxis.crosshairs.opacity,stroke:l.config.xaxis.crosshairs.stroke.color,"stroke-width":l.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":l.config.xaxis.crosshairs.stroke.dashArray}),M&&(X=o.dropShadow(X,{left:k,top:z,blur:T,color:I,opacity:D})),l.globals.dom.elGraphical.add(X)}}},{key:"drawYCrosshairs",value:function(){var l=this.w,t=new E(this.ctx),o=l.config.yaxis[0].crosshairs,n=l.globals.barPadForNumericAxis;if(l.config.yaxis[0].crosshairs.show){var h=t.drawLine(-n,0,l.globals.gridWidth+n,0,o.stroke.color,o.stroke.dashArray,o.stroke.width);h.attr({class:"apexcharts-ycrosshairs"}),l.globals.dom.elGraphical.add(h)}var u=t.drawLine(-n,0,l.globals.gridWidth+n,0,o.stroke.color,0,0);u.attr({class:"apexcharts-ycrosshairs-hidden"}),l.globals.dom.elGraphical.add(u)}}]),F}(),V1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w}return p(F,[{key:"checkResponsiveConfig",value:function(l){var t=this,o=this.w,n=o.config;if(n.responsive.length!==0){var h=n.responsive.slice();h.sort(function(b,g){return b.breakpoint>g.breakpoint?1:g.breakpoint>b.breakpoint?-1:0}).reverse();var u=new n2({}),v=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},g=h[0].breakpoint,H=window.innerWidth>0?window.innerWidth:screen.width;if(H>g){var M=W.extendArrayProps(u,o.globals.initialConfig,o);b=S.extend(M,b),b=S.extend(o.config,b),t.overrideResponsiveOptions(b)}else for(var k=0;k0&&typeof t.config.colors[0]=="function"&&(t.globals.colors=t.config.series.map(function(k,z){var T=t.config.colors[z];return T||(T=t.config.colors[0]),typeof T=="function"?(l.isColorFn=!0,T({value:t.globals.axisCharts?t.globals.series[z][0]?t.globals.series[z][0]:0:t.globals.series[z],seriesIndex:z,dataPointIndex:z,w:t})):T}))),t.globals.seriesColors.map(function(k,z){k&&(t.globals.colors[z]=k)}),t.config.theme.monochrome.enabled){var n=[],h=t.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(h=t.globals.series[0].length*t.globals.series.length);for(var u=t.config.theme.monochrome.color,v=1/(h/t.config.theme.monochrome.shadeIntensity),m=t.config.theme.monochrome.shadeTo,b=0,g=0;g2&&arguments[2]!==void 0?arguments[2]:null,n=this.w,h=t||n.globals.series.length;if(o===null&&(o=this.isBarDistributed||this.isHeatmapDistributed||n.config.chart.type==="heatmap"&&n.config.plotOptions.heatmap.colorScale.inverse),o&&n.globals.series.length&&(h=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),l.lengthl.globals.svgWidth&&(this.dCtx.lgRect.width=l.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(l,t){var o=l;if(this.w.globals.isMultiLineX){var n=t.map(function(u,v){return Array.isArray(u)?u.length:1}),h=Math.max.apply(Math,P(n));o=t[n.indexOf(h)]}return o}}]),F}(),T1=function(){function F(l){s(this,F),this.w=l.w,this.dCtx=l}return p(F,[{key:"getxAxisLabelsCoords",value:function(){var l,t=this.w,o=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&o.length===0&&(o=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();l={width:n.width,height:n.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var h=t.globals.xLabelFormatter,u=S.getLargestStringFromArr(o),v=this.dCtx.dimHelpers.getLargestStringFromMultiArr(u,o);t.globals.isBarHorizontal&&(v=u=t.globals.yAxisScale[0].result.reduce(function(z,T){return z.length>T.length?z:T},0));var m=new p1(this.dCtx.ctx),b=u;u=m.xLabelFormat(h,u,b,{i:void 0,dateFormatter:new g1(this.dCtx.ctx).formatDate,w:t}),v=m.xLabelFormat(h,v,b,{i:void 0,dateFormatter:new g1(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&u===void 0||String(u).trim()==="")&&(v=u="1");var g=new E(this.dCtx.ctx),H=g.getTextRects(u,t.config.xaxis.labels.style.fontSize),M=H;if(u!==v&&(M=g.getTextRects(v,t.config.xaxis.labels.style.fontSize)),(l={width:H.width>=M.width?H.width:M.width,height:H.height>=M.height?H.height:M.height}).width*o.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.globals.rotateXLabels=!0;var k=function(z){return g.getTextRects(z,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};H=k(u),u!==v&&(M=k(v)),l.height=(H.height>M.height?H.height:M.height)/1.5,l.width=H.width>M.width?H.width:M.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(l={width:0,height:0}),{width:l.width,height:l.height}}},{key:"getxAxisTitleCoords",value:function(){var l=this.w,t=0,o=0;if(l.config.xaxis.title.text!==void 0){var n=new E(this.dCtx.ctx).getTextRects(l.config.xaxis.title.text,l.config.xaxis.title.style.fontSize);t=n.width,o=n.height}return{width:t,height:o}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var l,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var o=this.dCtx.timescaleLabels.map(function(h){return h.value}),n=o.reduce(function(h,u){return h===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):h.length>u.length?h:u},0);return 1.05*(l=new E(this.dCtx.ctx).getTextRects(n,t.config.xaxis.labels.style.fontSize)).width*o.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),l}},{key:"additionalPaddingXLabels",value:function(l){var t=this,o=this.w,n=o.globals,h=o.config,u=h.xaxis.type,v=l.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var m=o.config.yaxis[0].opposite&&o.globals.isBarHorizontal,b=function(g,H){(function(M){return n.collapsedSeriesIndices.indexOf(M)!==-1})(H)||function(M){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var k=t.dCtx.timescaleLabels[0],z=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+v/1.75-t.dCtx.yAxisWidthRight,T=k.position-v/1.75+t.dCtx.yAxisWidthLeft,I=o.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;z>n.svgWidth-n.translateX-I&&(n.skipLastTimelinelabel=!0),T<-(M.show&&!M.floating||h.chart.type!=="bar"&&h.chart.type!=="candlestick"&&h.chart.type!=="rangeBar"&&h.chart.type!=="boxPlot"?10:v/1.75)&&(n.skipFirstTimelinelabel=!0)}else u==="datetime"?t.dCtx.gridPad.rightString(m.niceMax).length?H:m.niceMax,k=g(M,{seriesIndex:v,dataPointIndex:-1,w:t}),z=k;if(k!==void 0&&k.length!==0||(k=M),t.globals.isBarHorizontal){n=0;var T=t.globals.labels.slice();k=g(k=S.getLargestStringFromArr(T),{seriesIndex:v,dataPointIndex:-1,w:t}),z=l.dCtx.dimHelpers.getLargestStringFromMultiArr(k,T)}var I=new E(l.dCtx.ctx),D="rotate(".concat(u.labels.rotate," 0 0)"),Y=I.getTextRects(k,u.labels.style.fontSize,u.labels.style.fontFamily,D,!1),X=Y;k!==z&&(X=I.getTextRects(z,u.labels.style.fontSize,u.labels.style.fontFamily,D,!1)),o.push({width:(b>X.width||b>Y.width?b:X.width>Y.width?X.width:Y.width)+n,height:X.height>Y.height?X.height:Y.height})}else o.push({width:0,height:0})}),o}},{key:"getyAxisTitleCoords",value:function(){var l=this,t=this.w,o=[];return t.config.yaxis.map(function(n,h){if(n.show&&n.title.text!==void 0){var u=new E(l.dCtx.ctx),v="rotate(".concat(n.title.rotate," 0 0)"),m=u.getTextRects(n.title.text,n.title.style.fontSize,n.title.style.fontFamily,v,!1);o.push({width:m.width,height:m.height})}else o.push({width:0,height:0})}),o}},{key:"getTotalYAxisWidth",value:function(){var l=this.w,t=0,o=0,n=0,h=l.globals.yAxisScale.length>1?10:0,u=new x1(this.dCtx.ctx),v=function(m,b){var g=l.config.yaxis[b].floating,H=0;m.width>0&&!g?(H=m.width+h,function(M){return l.globals.ignoreYAxisIndexes.indexOf(M)>-1}(b)&&(H=H-m.width-h)):H=g||u.isYAxisHidden(b)?0:5,l.config.yaxis[b].opposite?n+=H:o+=H,t+=H};return l.globals.yLabelsCoords.map(function(m,b){v(m,b)}),l.globals.yTitleCoords.map(function(m,b){v(m,b)}),l.globals.isBarHorizontal&&!l.config.yaxis[0].floating&&(t=l.globals.yLabelsCoords[0].width+l.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=o,this.dCtx.yAxisWidthRight=n,t}}]),F}(),$1=function(){function F(l){s(this,F),this.w=l.w,this.dCtx=l}return p(F,[{key:"gridPadForColumnsInNumericAxis",value:function(l){var t=this.w;if(t.globals.noData||t.globals.allSeriesCollapsed)return 0;var o=function(g){return g==="bar"||g==="rangeBar"||g==="candlestick"||g==="boxPlot"},n=t.config.chart.type,h=0,u=o(n)?t.config.series.length:1;if(t.globals.comboBarCount>0&&(u=t.globals.comboBarCount),t.globals.collapsedSeries.forEach(function(g){o(g.type)&&(u-=1)}),t.config.chart.stacked&&(u=1),(o(n)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&u>0){var v,m,b=Math.abs(t.globals.initialMaxX-t.globals.initialMinX);b<=3&&(b=t.globals.dataPoints),v=b/l,t.globals.minXDiff&&t.globals.minXDiff/v>0&&(m=t.globals.minXDiff/v),m>l/2&&(m/=2),(h=m/u*parseInt(t.config.plotOptions.bar.columnWidth,10)/100)<1&&(h=1),h=h/(u>1?1:1.5)+5,t.globals.barPadForNumericAxis=h}return h}},{key:"gridPadFortitleSubtitle",value:function(){var l=this,t=this.w,o=t.globals,n=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(v){t.config[v].text!==void 0?n+=t.config[v].margin:n+=l.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(n+=10);var h=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),u=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");o.gridHeight=o.gridHeight-h.height-u.height-n,o.translateY=o.translateY+h.height+u.height+n}},{key:"setGridXPosForDualYAxis",value:function(l,t){var o=this.w,n=new x1(this.dCtx.ctx);o.config.yaxis.map(function(h,u){o.globals.ignoreYAxisIndexes.indexOf(u)!==-1||h.floating||n.isYAxisHidden(u)||(h.opposite&&(o.globals.translateX=o.globals.translateX-(t[u].width+l[u].width)-parseInt(o.config.yaxis[u].labels.style.fontSize,10)/1.2-12),o.globals.translateX<2&&(o.globals.translateX=2))})}}]),F}(),J1=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w,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 q1(this),this.dimYAxis=new R1(this),this.dimXAxis=new T1(this),this.dimGrid=new $1(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return p(F,[{key:"plotCoords",value:function(){var l=this.w.globals;this.lgRect=this.dimHelpers.getLegendsRect(),l.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),l.gridHeight=l.gridHeight-this.gridPad.top-this.gridPad.bottom,l.gridWidth=l.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var t=this.dimGrid.gridPadForColumnsInNumericAxis(l.gridWidth);l.gridWidth=l.gridWidth-2*t,l.translateX=l.translateX+this.gridPad.left+this.xPadLeft+(t>0?t+4:0),l.translateY=l.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var l=this,t=this.w,o=t.globals,n=this.dimYAxis.getyAxisLabelsCoords(),h=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(M,k){t.globals.yLabelsCoords.push({width:n[k].width,index:k}),t.globals.yTitleCoords.push({width:h[k].width,index:k})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var u=this.dimXAxis.getxAxisLabelsCoords(),v=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(u,v),o.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,o.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(o.rotateXLabels=!1,o.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),o.translateXAxisY=o.translateXAxisY+t.config.xaxis.labels.offsetY,o.translateXAxisX=o.translateXAxisX+t.config.xaxis.labels.offsetX;var m=this.yAxisWidth,b=this.xAxisHeight;o.xAxisLabelsHeight=this.xAxisHeight-v.height,o.xAxisLabelsWidth=this.xAxisWidth,o.xAxisHeight=this.xAxisHeight;var g=10;(t.config.chart.type==="radar"||this.isSparkline)&&(m=0,b=o.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(m=0,b=0,g=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(u);var H=function(){o.translateX=m,o.gridHeight=o.svgHeight-l.lgRect.height-b-(l.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),o.gridWidth=o.svgWidth-m};switch(t.config.xaxis.position==="top"&&(g=o.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":o.translateY=g,H();break;case"top":o.translateY=this.lgRect.height+g,H();break;case"left":o.translateY=g,o.translateX=this.lgRect.width+m,o.gridHeight=o.svgHeight-b-12,o.gridWidth=o.svgWidth-this.lgRect.width-m;break;case"right":o.translateY=g,o.translateX=m,o.gridHeight=o.svgHeight-b-12,o.gridWidth=o.svgWidth-this.lgRect.width-m-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(h,n),new h1(this.ctx).setYAxisXPosition(n,h)}},{key:"setDimensionsForNonAxisCharts",value:function(){var l=this.w,t=l.globals,o=l.config,n=0;l.config.legend.show&&!l.config.legend.floating&&(n=20);var h=o.chart.type==="pie"||o.chart.type==="polarArea"||o.chart.type==="donut"?"pie":"radialBar",u=o.plotOptions[h].offsetY,v=o.plotOptions[h].offsetX;if(!o.legend.show||o.legend.floating)return t.gridHeight=t.svgHeight-o.grid.padding.left+o.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=u,void(t.translateX=v+(t.svgWidth-t.gridWidth)/2);switch(o.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=u-10,t.translateX=v+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+u+10,t.translateX=v+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-n,t.gridHeight=o.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=u,t.translateX=v+this.lgRect.width+n;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-n-5,t.gridHeight=o.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=u,t.translateX=v+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(l,t){var o=this.w;this.xAxisHeight=(l.height+t.height)*(o.globals.isMultiLineX?1.2:o.globals.LINE_HEIGHT_RATIO)+(o.globals.rotateXLabels?22:10),this.xAxisWidth=l.width,this.xAxisHeight-t.height>o.config.xaxis.labels.maxHeight&&(this.xAxisHeight=o.config.xaxis.labels.maxHeight),o.config.xaxis.labels.minHeight&&this.xAxisHeighth&&(this.yAxisWidth=h)}}]),F}(),p2=function(){function F(l){s(this,F),this.w=l.w,this.lgCtx=l}return p(F,[{key:"getLegendStyles",value:function(){var l=document.createElement("style");l.setAttribute("type","text/css");var t=document.createTextNode(`
-
- .apexcharts-legend {
- display: flex;
- overflow: auto;
- padding: 0 10px;
- }
- .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
- flex-wrap: wrap
- }
- .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
- flex-direction: column;
- bottom: 0;
- }
- .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
- justify-content: flex-start;
- }
- .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
- justify-content: center;
- }
- .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
- justify-content: flex-end;
- }
- .apexcharts-legend-series {
- cursor: pointer;
- line-height: normal;
- }
- .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{
- display: flex;
- align-items: center;
- }
- .apexcharts-legend-text {
- position: relative;
- font-size: 14px;
- }
- .apexcharts-legend-text *, .apexcharts-legend-marker * {
- pointer-events: none;
- }
- .apexcharts-legend-marker {
- position: relative;
- display: inline-block;
- cursor: pointer;
- margin-right: 3px;
- border-style: solid;
- }
-
- .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{
- display: inline-block;
- }
- .apexcharts-legend-series.apexcharts-no-click {
- cursor: auto;
- }
- .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
- display: none !important;
- }
- .apexcharts-inactive-legend {
- opacity: 0.45;
- }`);return l.appendChild(t),l}},{key:"getLegendBBox",value:function(){var l=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=l.width;return{clwh:l.height,clww:t}}},{key:"appendToForeignObject",value:function(){var l=this.w.globals;l.dom.elLegendForeign=document.createElementNS(l.SVGNS,"foreignObject");var t=l.dom.elLegendForeign;t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("width",l.svgWidth),t.setAttribute("height",l.svgHeight),l.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.appendChild(l.dom.elLegendWrap),t.appendChild(this.getLegendStyles()),l.dom.Paper.node.insertBefore(t,l.dom.elGraphical.node)}},{key:"toggleDataSeries",value:function(l,t){var o=this,n=this.w;if(n.globals.axisCharts||n.config.chart.type==="radialBar"){n.globals.resized=!0;var h=null,u=null;n.globals.risingSeries=[],n.globals.axisCharts?(h=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(l,"']")),u=parseInt(h.getAttribute("data:realIndex"),10)):(h=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(l+1,"']")),u=parseInt(h.getAttribute("rel"),10)-1),t?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach(function(g){o.riseCollapsedSeries(g.cs,g.csi,u)}):this.hideSeries({seriesEl:h,realIndex:u})}else{var v=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(l+1,"'] path")),m=n.config.chart.type;if(m==="pie"||m==="polarArea"||m==="donut"){var b=n.config.plotOptions.pie.donut.labels;new E(this.lgCtx.ctx).pathMouseDown(v.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(v.members[0].node,b)}v.fire("click")}}},{key:"hideSeries",value:function(l){var t=l.seriesEl,o=l.realIndex,n=this.w,h=S.clone(n.config.series);if(n.globals.axisCharts){var u=!1;if(n.config.yaxis[o]&&n.config.yaxis[o].show&&n.config.yaxis[o].showAlways&&(u=!0,n.globals.ancillaryCollapsedSeriesIndices.indexOf(o)<0&&(n.globals.ancillaryCollapsedSeries.push({index:o,data:h[o].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),n.globals.ancillaryCollapsedSeriesIndices.push(o))),!u){n.globals.collapsedSeries.push({index:o,data:h[o].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),n.globals.collapsedSeriesIndices.push(o);var v=n.globals.risingSeries.indexOf(o);n.globals.risingSeries.splice(v,1)}}else n.globals.collapsedSeries.push({index:o,data:h[o]}),n.globals.collapsedSeriesIndices.push(o);for(var m=t.childNodes,b=0;b0){for(var u=0;u-1&&(l[n].data=[])}):l.forEach(function(o,n){t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(l[n]=0)}),l}}]),F}(),h2=function(){function F(l,t){s(this,F),this.ctx=l,this.w=l.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new p2(this)}return p(F,[{key:"init",value:function(){var l=this.w,t=l.globals,o=l.config;if((o.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&o.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),S.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),o.legend.position==="bottom"||o.legend.position==="top"?this.legendAlignHorizontal():o.legend.position!=="right"&&o.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var l=this,t=this.w,o=t.config.legend.fontFamily,n=t.globals.seriesNames,h=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var u=t.config.plotOptions.heatmap.colorScale.ranges;n=u.map(function(m1){return m1.name?m1.name:m1.from+" - "+m1.to}),h=u.map(function(m1){return m1.color})}else this.isBarsDistributed&&(n=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(n=t.config.legend.customLegendItems);for(var v=t.globals.legendFormatter,m=t.config.legend.inverseOrder,b=m?n.length-1:0;m?b>=0:b<=n.length-1;m?b--:b++){var g=v(n[b],{seriesIndex:b,w:t}),H=!1,M=!1;if(t.globals.collapsedSeries.length>0)for(var k=0;k0)for(var z=0;z0?b-10:0)+(g>0?g-10:0)}n.style.position="absolute",u=u+l+o.config.legend.offsetX,v=v+t+o.config.legend.offsetY,n.style.left=u+"px",n.style.top=v+"px",o.config.legend.position==="bottom"?(n.style.top="auto",n.style.bottom=5-o.config.legend.offsetY+"px"):o.config.legend.position==="right"&&(n.style.left="auto",n.style.right=25+o.config.legend.offsetX+"px"),["width","height"].forEach(function(H){n.style[H]&&(n.style[H]=parseInt(o.config.legend[H],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var l=this.w;l.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var t=this.legendHelpers.getLegendBBox(),o=new J1(this.ctx),n=o.dimHelpers.getTitleSubtitleCoords("title"),h=o.dimHelpers.getTitleSubtitleCoords("subtitle"),u=0;l.config.legend.position==="bottom"?u=-t.clwh/1.8:l.config.legend.position==="top"&&(u=n.height+h.height+l.config.title.margin+l.config.subtitle.margin-10),this.setLegendWrapXY(20,u)}},{key:"legendAlignVertical",value:function(){var l=this.w,t=this.legendHelpers.getLegendBBox(),o=0;l.config.legend.position==="left"&&(o=20),l.config.legend.position==="right"&&(o=l.globals.svgWidth-t.clww-10),this.setLegendWrapXY(o,20)}},{key:"onLegendHovered",value:function(l){var t=this.w,o=l.target.classList.contains("apexcharts-legend-text")||l.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(o){var n=parseInt(l.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new A1(this.ctx).highlightRangeInSeries(l,l.target)}}else!l.target.classList.contains("apexcharts-inactive-legend")&&o&&new A1(this.ctx).toggleSeriesOnHover(l,l.target)}},{key:"onLegendClick",value:function(l){var t=this.w;if(!t.config.legend.customLegendItems.length&&(l.target.classList.contains("apexcharts-legend-text")||l.target.classList.contains("apexcharts-legend-marker"))){var o=parseInt(l.target.getAttribute("rel"),10)-1,n=l.target.getAttribute("data:collapsed")==="true",h=this.w.config.chart.events.legendClick;typeof h=="function"&&h(this.ctx,o,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,o,this.w]);var u=this.w.config.legend.markers.onClick;typeof u=="function"&&l.target.classList.contains("apexcharts-legend-marker")&&(u(this.ctx,o,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,o,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(o,n)}}}]),F}(),C2=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w;var t=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return p(F,[{key:"createToolbar",value:function(){var l=this,t=this.w,o=function(){return document.createElement("div")},n=o();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=t.config.chart.toolbar.offsetY+"px",n.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(n),this.elZoom=o(),this.elZoomIn=o(),this.elZoomOut=o(),this.elPan=o(),this.elSelection=o(),this.elZoomReset=o(),this.elMenuIcon=o(),this.elMenu=o(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var h=0;h
-
-
-
-`),v("zoomOut",this.elZoomOut,`
-`);var m=function(H){l.t[H]&&t.config.chart[H].enabled&&u.push({el:H==="zoom"?l.elZoom:l.elSelection,icon:typeof l.t[H]=="string"?l.t[H]:H==="zoom"?``:``,title:l.localeValues[H==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(H,"-icon")})};m("zoom"),m("selection"),this.t.pan&&t.config.chart.zoom.enabled&&u.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:``,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),v("reset",this.elZoomReset,``),this.t.download&&u.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var b=0;b0&&n.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:o.globals.gridWidth,maxY:o.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var o=this.w,n=this.xyRatios;if(!o.globals.zoomEnabled){if(o.globals.selection!==void 0&&o.globals.selection!==null)this.drawSelectionRect(o.globals.selection);else if(o.config.chart.selection.xaxis.min!==void 0&&o.config.chart.selection.xaxis.max!==void 0){var h=(o.config.chart.selection.xaxis.min-o.globals.minX)/n.xRatio,u={x:h,y:0,width:o.globals.gridWidth-(o.globals.maxX-o.config.chart.selection.xaxis.max)/n.xRatio-h,height:o.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(u),this.makeSelectionRectDraggable(),typeof o.config.chart.events.selection=="function"&&o.config.chart.events.selection(this.ctx,{xaxis:{min:o.config.chart.selection.xaxis.min,max:o.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(o){var n=o.x,h=o.y,u=o.width,v=o.height,m=o.translateX,b=m===void 0?0:m,g=o.translateY,H=g===void 0?0:g,M=this.w,k=this.zoomRect,z=this.selectionRect;if(this.dragged||M.globals.selection!==null){var T={transform:"translate("+b+", "+H+")"};M.globals.zoomEnabled&&this.dragged&&(u<0&&(u=1),k.attr({x:n,y:h,width:u,height:v,fill:M.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":M.config.chart.zoom.zoomedArea.fill.opacity,stroke:M.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":M.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":M.config.chart.zoom.zoomedArea.stroke.opacity}),E.setAttrs(k.node,T)),M.globals.selectionEnabled&&(z.attr({x:n,y:h,width:u>0?u:0,height:v>0?v:0,fill:M.config.chart.selection.fill.color,"fill-opacity":M.config.chart.selection.fill.opacity,stroke:M.config.chart.selection.stroke.color,"stroke-width":M.config.chart.selection.stroke.width,"stroke-dasharray":M.config.chart.selection.stroke.dashArray,"stroke-opacity":M.config.chart.selection.stroke.opacity}),E.setAttrs(z.node,T))}}},{key:"hideSelectionRect",value:function(o){o&&o.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(o){var n=o.context,h=o.zoomtype,u=this.w,v=n,m=this.gridRect.getBoundingClientRect(),b=v.startX-1,g=v.startY,H=!1,M=!1,k=v.clientX-m.left-b,z=v.clientY-m.top-g,T={};return Math.abs(k+b)>u.globals.gridWidth?k=u.globals.gridWidth-b:v.clientX-m.left<0&&(k=b),b>v.clientX-m.left&&(H=!0,k=Math.abs(k)),g>v.clientY-m.top&&(M=!0,z=Math.abs(z)),T=h==="x"?{x:H?b-k:b,y:0,width:k,height:u.globals.gridHeight}:h==="y"?{x:0,y:M?g-z:g,width:u.globals.gridWidth,height:z}:{x:H?b-k:b,y:M?g-z:g,width:k,height:z},v.drawSelectionRect(T),v.selectionDragging("resizing"),T}},{key:"selectionDragging",value:function(o,n){var h=this,u=this.w,v=this.xyRatios,m=this.selectionRect,b=0;o==="resizing"&&(b=30);var g=function(M){return parseFloat(m.node.getAttribute(M))},H={x:g("x"),y:g("y"),width:g("width"),height:g("height")};u.globals.selection=H,typeof u.config.chart.events.selection=="function"&&u.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var M=h.gridRect.getBoundingClientRect(),k=m.node.getBoundingClientRect(),z={xaxis:{min:u.globals.xAxisScale.niceMin+(k.left-M.left)*v.xRatio,max:u.globals.xAxisScale.niceMin+(k.right-M.left)*v.xRatio},yaxis:{min:u.globals.yAxisScale[0].niceMin+(M.bottom-k.bottom)*v.yRatio[0],max:u.globals.yAxisScale[0].niceMax-(k.top-M.top)*v.yRatio[0]}};u.config.chart.events.selection(h.ctx,z),u.config.chart.brush.enabled&&u.config.chart.events.brushScrolled!==void 0&&u.config.chart.events.brushScrolled(h.ctx,z)},b))}},{key:"selectionDrawn",value:function(o){var n=o.context,h=o.zoomtype,u=this.w,v=n,m=this.xyRatios,b=this.ctx.toolbar;if(v.startX>v.endX){var g=v.startX;v.startX=v.endX,v.endX=g}if(v.startY>v.endY){var H=v.startY;v.startY=v.endY,v.endY=H}var M=void 0,k=void 0;u.globals.isTimelineBar?(M=u.globals.yAxisScale[0].niceMin+v.startX*m.invertedYRatio,k=u.globals.yAxisScale[0].niceMin+v.endX*m.invertedYRatio):(M=u.globals.xAxisScale.niceMin+v.startX*m.xRatio,k=u.globals.xAxisScale.niceMin+v.endX*m.xRatio);var z=[],T=[];if(u.config.yaxis.forEach(function(N,K){z.push(u.globals.yAxisScale[K].niceMax-m.yRatio[K]*v.startY),T.push(u.globals.yAxisScale[K].niceMax-m.yRatio[K]*v.endY)}),v.dragged&&(v.dragX>10||v.dragY>10)&&M!==k){if(u.globals.zoomEnabled){var I=S.clone(u.globals.initialConfig.yaxis),D=S.clone(u.globals.initialConfig.xaxis);if(u.globals.zoomed=!0,u.config.xaxis.convertedCatToNumeric&&(M=Math.floor(M),k=Math.floor(k),M<1&&(M=1,k=u.globals.dataPoints),k-M<2&&(k=M+1)),h!=="xy"&&h!=="x"||(D={min:M,max:k}),h!=="xy"&&h!=="y"||I.forEach(function(N,K){I[K].min=T[K],I[K].max=z[K]}),u.config.chart.zoom.autoScaleYaxis){var Y=new $(v.ctx);I=Y.autoScaleY(v.ctx,I,{xaxis:D})}if(b){var X=b.getBeforeZoomRange(D,I);X&&(D=X.xaxis?X.xaxis:D,I=X.yaxis?X.yaxis:I)}var f={xaxis:D};u.config.chart.group||(f.yaxis=I),v.ctx.updateHelpers._updateOptions(f,!1,v.w.config.chart.animations.dynamicAnimation.enabled),typeof u.config.chart.events.zoomed=="function"&&b.zoomCallback(D,I)}else if(u.globals.selectionEnabled){var L,O=null;L={min:M,max:k},h!=="xy"&&h!=="y"||(O=S.clone(u.config.yaxis)).forEach(function(N,K){O[K].min=T[K],O[K].max=z[K]}),u.globals.selection=v.selection,typeof u.config.chart.events.selection=="function"&&u.config.chart.events.selection(v.ctx,{xaxis:L,yaxis:O})}}}},{key:"panDragging",value:function(o){var n=o.context,h=this.w,u=n;if(h.globals.lastClientPosition.x!==void 0){var v=h.globals.lastClientPosition.x-u.clientX,m=h.globals.lastClientPosition.y-u.clientY;Math.abs(v)>Math.abs(m)&&v>0?this.moveDirection="left":Math.abs(v)>Math.abs(m)&&v<0?this.moveDirection="right":Math.abs(m)>Math.abs(v)&&m>0?this.moveDirection="up":Math.abs(m)>Math.abs(v)&&m<0&&(this.moveDirection="down")}h.globals.lastClientPosition={x:u.clientX,y:u.clientY};var b=h.globals.isTimelineBar?h.globals.minY:h.globals.minX,g=h.globals.isTimelineBar?h.globals.maxY:h.globals.maxX;h.config.xaxis.convertedCatToNumeric||u.panScrolled(b,g)}},{key:"delayedPanScrolled",value:function(){var o=this.w,n=o.globals.minX,h=o.globals.maxX,u=(o.globals.maxX-o.globals.minX)/2;this.moveDirection==="left"?(n=o.globals.minX+u,h=o.globals.maxX+u):this.moveDirection==="right"&&(n=o.globals.minX-u,h=o.globals.maxX-u),n=Math.floor(n),h=Math.floor(h),this.updateScrolledChart({xaxis:{min:n,max:h}},n,h)}},{key:"panScrolled",value:function(o,n){var h=this.w,u=this.xyRatios,v=S.clone(h.globals.initialConfig.yaxis),m=u.xRatio,b=h.globals.minX,g=h.globals.maxX;h.globals.isTimelineBar&&(m=u.invertedYRatio,b=h.globals.minY,g=h.globals.maxY),this.moveDirection==="left"?(o=b+h.globals.gridWidth/15*m,n=g+h.globals.gridWidth/15*m):this.moveDirection==="right"&&(o=b-h.globals.gridWidth/15*m,n=g-h.globals.gridWidth/15*m),h.globals.isTimelineBar||(oh.globals.initialMaxX)&&(o=b,n=g);var H={min:o,max:n};h.config.chart.zoom.autoScaleYaxis&&(v=new $(this.ctx).autoScaleY(this.ctx,v,{xaxis:H}));var M={xaxis:{min:o,max:n}};h.config.chart.group||(M.yaxis=v),this.updateScrolledChart(M,o,n)}},{key:"updateScrolledChart",value:function(o,n,h){var u=this.w;this.ctx.updateHelpers._updateOptions(o,!1,!1),typeof u.config.chart.events.scrolled=="function"&&u.config.chart.events.scrolled(this.ctx,{xaxis:{min:n,max:h}})}}]),t}(),Q0=function(){function F(l){s(this,F),this.w=l.w,this.ttCtx=l,this.ctx=l.ctx}return p(F,[{key:"getNearestValues",value:function(l){var t=l.hoverArea,o=l.elGrid,n=l.clientX,h=l.clientY,u=this.w,v=u.globals.gridWidth,m=u.globals.gridHeight,b=v/(u.globals.dataPoints-1),g=m/u.globals.dataPoints,H=o.getBoundingClientRect(),M=this.hasBars();!u.globals.comboCharts&&!M||u.config.xaxis.convertedCatToNumeric||(b=v/u.globals.dataPoints);var k=n-H.left-u.globals.barPadForNumericAxis,z=h-H.top;k<0||z<0||k>u.globals.gridWidth||z>u.globals.gridHeight?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):u.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):u.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var T=Math.round(k/b),I=Math.floor(z/g);M&&!u.config.xaxis.convertedCatToNumeric&&(T=Math.ceil(k/b),T-=1);for(var D,Y=null,X=null,f=[],L=0;L1?u=this.getFirstActiveXArray(o):v=0;var b=n[u][0],g=o[u][0],H=Math.abs(l-g),M=Math.abs(t-b),k=M+H;return n.map(function(z,T){z.map(function(I,D){var Y=Math.abs(t-n[T][D]),X=Math.abs(l-o[T][D]),f=X+Y;f0?u:-1}),n=0;n0)for(var n=0;n0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(l){var t=this.w,o=t.config.markers.hover.size;return o===void 0&&(o=t.globals.markers.size[l]+t.config.markers.hover.sizeOffset),o}},{key:"toggleAllTooltipSeriesGroups",value:function(l){var t=this.w,o=this.ttCtx;o.allTooltipSeriesGroups.length===0&&(o.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=o.allTooltipSeriesGroups,h=0;h";M.forEach(function(K,n1){O+=' ').concat(K.attrs.name,"
"),N+="".concat(K.val,"
")}),X.innerHTML=O+"",f.innerHTML=N+""};v?b.globals.seriesGoals[t][o]&&Array.isArray(b.globals.seriesGoals[t][o])?L():(X.innerHTML="",f.innerHTML=""):L()}else X.innerHTML="",f.innerHTML="";T!==null&&(n[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=b.config.tooltip.z.title,n[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=T!==void 0?T:""),v&&I[0]&&(H==null||b.globals.collapsedSeriesIndices.indexOf(t)>-1?I[0].parentNode.style.display="none":I[0].parentNode.style.display=b.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(l){var t=this.w;if(l)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var o=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");o&&(o.classList.add("apexcharts-active"),o.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(l){var t=l.i,o=l.j,n=this.w,h=this.ctx.series.filteredSeriesX(),u="",v="",m=null,b=null,g={series:n.globals.series,seriesIndex:t,dataPointIndex:o,w:n},H=n.globals.ttZFormatter;o===null?b=n.globals.series[t]:n.globals.isXNumeric&&n.config.chart.type!=="treemap"?(u=h[t][o],h[t].length===0&&(u=h[this.tooltipUtil.getFirstActiveXArray(h)][o])):u=n.globals.labels[o]!==void 0?n.globals.labels[o]:"";var M=u;return n.globals.isXNumeric&&n.config.xaxis.type==="datetime"?u=new p1(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,M,M,{i:void 0,dateFormatter:new g1(this.ctx).formatDate,w:this.w}):u=n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](M,g):n.globals.xLabelFormatter(M,g),n.config.tooltip.x.formatter!==void 0&&(u=n.globals.ttKeyFormatter(M,g)),n.globals.seriesZ.length>0&&n.globals.seriesZ[t].length>0&&(m=H(n.globals.seriesZ[t][o],n)),v=typeof n.config.xaxis.tooltip.formatter=="function"?n.globals.xaxisTooltipFormatter(M,g):u,{val:Array.isArray(b)?b.join(" "):b,xVal:Array.isArray(u)?u.join(" "):u,xAxisTTVal:Array.isArray(v)?v.join(" "):v,zVal:m}}},{key:"handleCustomTooltip",value:function(l){var t=l.i,o=l.j,n=l.y1,h=l.y2,u=l.w,v=this.ttCtx.getElTooltip(),m=u.config.tooltip.custom;Array.isArray(m)&&m[t]&&(m=m[t]),v.innerHTML=m({ctx:this.ctx,series:u.globals.series,seriesIndex:t,dataPointIndex:o,y1:n,y2:h,w:u})}}]),F}(),d5=function(){function F(l){s(this,F),this.ttCtx=l,this.ctx=l.ctx,this.w=l.w}return p(F,[{key:"moveXCrosshairs",value:function(l){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=this.ttCtx,n=this.w,h=o.getElXCrosshairs(),u=l-o.xcrosshairsWidth/2,v=n.globals.labels.slice().length;if(t!==null&&(u=n.globals.gridWidth/v*t),h!==null&&(h.setAttribute("x",u),h.setAttribute("x1",u),h.setAttribute("x2",u),h.setAttribute("y2",n.globals.gridHeight),h.classList.add("apexcharts-active")),u<0&&(u=0),u>n.globals.gridWidth&&(u=n.globals.gridWidth),o.blxaxisTooltip){var m=u;n.config.xaxis.crosshairs.width!=="tickWidth"&&n.config.xaxis.crosshairs.width!=="barWidth"||(m=u+o.xcrosshairsWidth/2),this.moveXAxisTooltip(m)}}},{key:"moveYCrosshairs",value:function(l){var t=this.ttCtx;t.ycrosshairs!==null&&E.setAttrs(t.ycrosshairs,{y1:l,y2:l}),t.ycrosshairsHidden!==null&&E.setAttrs(t.ycrosshairsHidden,{y1:l,y2:l})}},{key:"moveXAxisTooltip",value:function(l){var t=this.w,o=this.ttCtx;if(o.xaxisTooltip!==null){o.xaxisTooltip.classList.add("apexcharts-active");var n=o.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(l-=o.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(l)){l+=t.globals.translateX;var h;h=new E(this.ctx).getTextRects(o.xaxisTooltipText.innerHTML),o.xaxisTooltipText.style.minWidth=h.width+"px",o.xaxisTooltip.style.left=l+"px",o.xaxisTooltip.style.top=n+"px"}}}},{key:"moveYAxisTooltip",value:function(l){var t=this.w,o=this.ttCtx;o.yaxisTTEls===null&&(o.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(o.ycrosshairsHidden.getAttribute("y1"),10),h=t.globals.translateY+n,u=o.yaxisTTEls[l].getBoundingClientRect().height,v=t.globals.translateYAxisX[l]-2;t.config.yaxis[l].opposite&&(v-=26),h-=u/2,t.globals.ignoreYAxisIndexes.indexOf(l)===-1?(o.yaxisTTEls[l].classList.add("apexcharts-active"),o.yaxisTTEls[l].style.top=h+"px",o.yaxisTTEls[l].style.left=v+t.config.yaxis[l].tooltip.offsetX+"px"):o.yaxisTTEls[l].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(l,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=this.w,h=this.ttCtx,u=h.getElTooltip(),v=h.tooltipRect,m=o!==null?parseFloat(o):1,b=parseFloat(l)+m+5,g=parseFloat(t)+m/2;if(b>n.globals.gridWidth/2&&(b=b-v.ttWidth-m-15),b>n.globals.gridWidth-v.ttWidth-10&&(b=n.globals.gridWidth-v.ttWidth),b<-20&&(b=-20),n.config.tooltip.followCursor){var H=h.getElGrid(),M=H.getBoundingClientRect();g=h.e.clientY+n.globals.translateY-M.top-v.ttHeight/2}else n.globals.isBarHorizontal?g-=v.ttHeight:(v.ttHeight/2+g>n.globals.gridHeight&&(g=n.globals.gridHeight-v.ttHeight+n.globals.translateY),g<0&&(g=0));isNaN(b)||(b+=n.globals.translateX,u.style.left=b+"px",u.style.top=g+"px")}},{key:"moveMarkers",value:function(l,t){var o=this.w,n=this.ttCtx;if(o.globals.markers.size[l]>0)for(var h=o.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(l,"'] .apexcharts-marker")),u=0;u0&&(g.setAttribute("r",m),g.setAttribute("cx",o),g.setAttribute("cy",n)),this.moveXCrosshairs(o),u.fixedTooltip||this.moveTooltip(o,n,m)}}},{key:"moveDynamicPointsOnHover",value:function(l){var t,o=this.ttCtx,n=o.w,h=0,u=0,v=n.globals.pointsArray;t=new A1(this.ctx).getActiveConfigSeriesIndex(!0);var m=o.tooltipUtil.getHoverMarkerSize(t);v[t]&&(h=v[t][l][0],u=v[t][l][1]);var b=o.tooltipUtil.getAllMarkers();if(b!==null)for(var g=0;g0?(b[g]&&b[g].setAttribute("r",m),b[g]&&b[g].setAttribute("cy",M)):b[g]&&b[g].setAttribute("r",0)}}if(this.moveXCrosshairs(h),!o.fixedTooltip){var k=u||n.globals.gridHeight;this.moveTooltip(h,k,m)}}},{key:"moveStickyTooltipOverBars",value:function(l){var t=this.w,o=this.ttCtx,n=t.globals.columnSeries?t.globals.columnSeries.length:t.globals.series.length,h=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;t.globals.isBarHorizontal&&(h=new A1(this.ctx).getActiveConfigSeriesIndex(!1,"desc")+1);var u=t.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(h,"'] path[j='").concat(l,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(h,"'] path[j='").concat(l,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(h,"'] path[j='").concat(l,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(h,"'] path[j='").concat(l,"']")),v=u?parseFloat(u.getAttribute("cx")):0,m=u?parseFloat(u.getAttribute("cy")):0,b=u?parseFloat(u.getAttribute("barWidth")):0,g=u?parseFloat(u.getAttribute("barHeight")):0,H=o.getElGrid().getBoundingClientRect();if(t.globals.isXNumeric?(v-=n%2!=0?b/2:0,u&&(u.classList.contains("apexcharts-candlestick-area")||u.classList.contains("apexcharts-boxPlot-area"))&&t.globals.comboCharts&&(v-=b/2)):t.globals.isBarHorizontal||(v=o.xAxisTicksPositions[l-1]+o.dataPointsDividedWidth/2,isNaN(v)&&(v=o.xAxisTicksPositions[l]-o.dataPointsDividedWidth/2)),t.globals.isBarHorizontal?m+=g/3:m=o.e.clientY-H.top-o.tooltipRect.ttHeight/2,t.globals.isBarHorizontal||this.moveXCrosshairs(v),!o.fixedTooltip){var M=m||t.globals.gridHeight;this.moveTooltip(v,M)}}}]),F}(),gl=function(){function F(l){s(this,F),this.w=l.w,this.ttCtx=l,this.ctx=l.ctx,this.tooltipPosition=new d5(l)}return p(F,[{key:"drawDynamicPoints",value:function(){var l=this.w,t=new E(this.ctx),o=new c1(this.ctx),n=l.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=P(n),l.config.chart.stacked&&n.sort(function(H,M){return parseFloat(H.getAttribute("data:realIndex"))-parseFloat(M.getAttribute("data:realIndex"))});for(var h=0;h2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,h=this.w;h.config.chart.type!=="bubble"&&this.newPointSize(l,t);var u=t.getAttribute("cx"),v=t.getAttribute("cy");if(o!==null&&n!==null&&(u=o,v=n),this.tooltipPosition.moveXCrosshairs(u),!this.fixedTooltip){if(h.config.chart.type==="radar"){var m=this.ttCtx.getElGrid(),b=m.getBoundingClientRect();u=this.ttCtx.e.clientX-b.left}this.tooltipPosition.moveTooltip(u,v,h.config.markers.hover.size)}}},{key:"enlargePoints",value:function(l){for(var t=this.w,o=this,n=this.ttCtx,h=l,u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),v=t.config.markers.hover.size,m=0;m=0?l[t].setAttribute("r",o):l[t].setAttribute("r",0)}}}]),F}(),W2=function(){function F(l){s(this,F),this.w=l.w,this.ttCtx=l}return p(F,[{key:"getAttr",value:function(l,t){return parseFloat(l.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(l){var t=l.e,o=l.opt,n=l.x,h=l.y,u=l.type,v=this.ttCtx,m=this.w;if(t.target.classList.contains("apexcharts-".concat(u,"-rect"))){var b=this.getAttr(t,"i"),g=this.getAttr(t,"j"),H=this.getAttr(t,"cx"),M=this.getAttr(t,"cy"),k=this.getAttr(t,"width"),z=this.getAttr(t,"height");if(v.tooltipLabels.drawSeriesTexts({ttItems:o.ttItems,i:b,j:g,shared:!1,e:t}),m.globals.capturedSeriesIndex=b,m.globals.capturedDataPointIndex=g,n=H+v.tooltipRect.ttWidth/2+k,h=M+v.tooltipRect.ttHeight/2-z/2,v.tooltipPosition.moveXCrosshairs(H+k/2),n>m.globals.gridWidth/2&&(n=H-v.tooltipRect.ttWidth/2+k),v.w.config.tooltip.followCursor){var T=m.globals.dom.elWrap.getBoundingClientRect();n=m.globals.clientX-T.left-v.tooltipRect.ttWidth/2,h=m.globals.clientY-T.top-v.tooltipRect.ttHeight-5}}return{x:n,y:h}}},{key:"handleMarkerTooltip",value:function(l){var t,o,n=l.e,h=l.opt,u=l.x,v=l.y,m=this.w,b=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var g=parseInt(h.paths.getAttribute("cx"),10),H=parseInt(h.paths.getAttribute("cy"),10),M=parseFloat(h.paths.getAttribute("val"));if(o=parseInt(h.paths.getAttribute("rel"),10),t=parseInt(h.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,b.intersect){var k=S.findAncestor(h.paths,"apexcharts-series");k&&(t=parseInt(k.getAttribute("data:realIndex"),10))}if(b.tooltipLabels.drawSeriesTexts({ttItems:h.ttItems,i:t,j:o,shared:!b.showOnIntersect&&m.config.tooltip.shared,e:n}),n.type==="mouseup"&&b.markerClick(n,t,o),m.globals.capturedSeriesIndex=t,m.globals.capturedDataPointIndex=o,u=g,v=H+m.globals.translateY-1.4*b.tooltipRect.ttHeight,b.w.config.tooltip.followCursor){var z=b.getElGrid().getBoundingClientRect();v=b.e.clientY+m.globals.translateY-z.top}M<0&&(v=H),b.marker.enlargeCurrentPoint(o,h.paths,u,v)}return{x:u,y:v}}},{key:"handleBarTooltip",value:function(l){var t,o,n=l.e,h=l.opt,u=this.w,v=this.ttCtx,m=v.getElTooltip(),b=0,g=0,H=0,M=this.getBarTooltipXY({e:n,opt:h});t=M.i;var k=M.barHeight,z=M.j;u.globals.capturedSeriesIndex=t,u.globals.capturedDataPointIndex=z,u.globals.isBarHorizontal&&v.tooltipUtil.hasBars()||!u.config.tooltip.shared?(g=M.x,H=M.y,o=Array.isArray(u.config.stroke.width)?u.config.stroke.width[t]:u.config.stroke.width,b=g):u.globals.comboCharts||u.config.tooltip.shared||(b/=2),isNaN(H)?H=u.globals.svgHeight-v.tooltipRect.ttHeight:H<0&&(H=0);var T=parseInt(h.paths.parentNode.getAttribute("data:realIndex"),10),I=u.globals.isMultipleYAxis?u.config.yaxis[T]&&u.config.yaxis[T].reversed:u.config.yaxis[0].reversed;if(g+v.tooltipRect.ttWidth>u.globals.gridWidth&&!I?g-=v.tooltipRect.ttWidth:g<0&&(g=0),v.w.config.tooltip.followCursor){var D=v.getElGrid().getBoundingClientRect();H=v.e.clientY-D.top}v.tooltip===null&&(v.tooltip=u.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),u.config.tooltip.shared||(u.globals.comboBarCount>0?v.tooltipPosition.moveXCrosshairs(b+o/2):v.tooltipPosition.moveXCrosshairs(b)),!v.fixedTooltip&&(!u.config.tooltip.shared||u.globals.isBarHorizontal&&v.tooltipUtil.hasBars())&&(I&&(g-=v.tooltipRect.ttWidth)<0&&(g=0),m.style.left=g+u.globals.translateX+"px",!I||u.globals.isBarHorizontal&&v.tooltipUtil.hasBars()||(H=H+k-2*(u.globals.series[t][z]<0?k:0)),v.tooltipRect.ttHeight+H>u.globals.gridHeight?(H=u.globals.gridHeight-v.tooltipRect.ttHeight+u.globals.translateY,m.style.top=H+"px"):m.style.top=H+u.globals.translateY-v.tooltipRect.ttHeight/2+"px")}},{key:"getBarTooltipXY",value:function(l){var t=l.e,o=l.opt,n=this.w,h=null,u=this.ttCtx,v=0,m=0,b=0,g=0,H=0,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")){var k=t.target,z=k.getBoundingClientRect(),T=o.elGrid.getBoundingClientRect(),I=z.height;H=z.height;var D=z.width,Y=parseInt(k.getAttribute("cx"),10),X=parseInt(k.getAttribute("cy"),10);g=parseFloat(k.getAttribute("barWidth"));var f=t.type==="touchmove"?t.touches[0].clientX:t.clientX;h=parseInt(k.getAttribute("j"),10),v=parseInt(k.parentNode.getAttribute("rel"),10)-1;var L=k.getAttribute("data-range-y1"),O=k.getAttribute("data-range-y2");n.globals.comboCharts&&(v=parseInt(k.parentNode.getAttribute("data:realIndex"),10)),u.tooltipLabels.drawSeriesTexts({ttItems:o.ttItems,i:v,j:h,y1:L?parseInt(L,10):null,y2:O?parseInt(O,10):null,shared:!u.showOnIntersect&&n.config.tooltip.shared,e:t}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(m=f-T.left+15,b=X-u.dataPointsDividedHeight+I/2-u.tooltipRect.ttHeight/2):(m=n.globals.isXNumeric?Y-D/2:Y-u.dataPointsDividedWidth+D/2,b=t.clientY-T.top-u.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((m=Y)0&&o.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var l=this.w,t=this.ttCtx;t.ycrosshairs=l.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=l.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(l,t,o){var n=this.ttCtx,h=this.w,u=h.globals.yLabelFormatters[l];if(n.yaxisTooltips[l]){var v=n.getElGrid().getBoundingClientRect(),m=(t-v.top)*o.yRatio[l],b=h.globals.maxYArr[l]-h.globals.minYArr[l],g=h.globals.minYArr[l]+(b-m);n.tooltipPosition.moveYCrosshairs(t-v.top),n.yaxisTooltipText[l].innerHTML=u(g),n.tooltipPosition.moveYAxisTooltip(l)}}}]),F}(),Hl=function(){function F(l){s(this,F),this.ctx=l,this.w=l.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Q0(this),this.tooltipLabels=new yl(this),this.tooltipPosition=new d5(this),this.marker=new gl(this),this.intersect=new W2(this),this.axesTooltip=new g0(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared}return p(F,[{key:"getElTooltip",value:function(l){return l||(l=this),l.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(l){var t=this.w;this.xyRatios=l,this.blxaxisTooltip=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(u,v){return!!(u.show&&u.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var o=document.createElement("div");if(o.classList.add("apexcharts-tooltip"),o.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(o),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var n=new i2(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,o.appendChild(this.tooltipTitle));var h=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(h=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(h),this.addSVGEvents()}}},{key:"createTTElements",value:function(l){for(var t=this,o=this.w,n=[],h=this.getElTooltip(),u=function(m){var b=document.createElement("div");b.classList.add("apexcharts-tooltip-series-group"),b.style.order=o.config.tooltip.inverseOrder?l-m:m+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(m)<0&&b.classList.add("apexcharts-tooltip-series-group-hidden");var g=document.createElement("span");g.classList.add("apexcharts-tooltip-marker"),g.style.backgroundColor=o.globals.colors[m],b.appendChild(g);var H=document.createElement("div");H.classList.add("apexcharts-tooltip-text"),H.style.fontFamily=t.tConfig.style.fontFamily||o.config.chart.fontFamily,H.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(M){var k=document.createElement("div");k.classList.add("apexcharts-tooltip-".concat(M,"-group"));var z=document.createElement("span");z.classList.add("apexcharts-tooltip-text-".concat(M,"-label")),k.appendChild(z);var T=document.createElement("span");T.classList.add("apexcharts-tooltip-text-".concat(M,"-value")),k.appendChild(T),H.appendChild(k)}),b.appendChild(H),h.appendChild(b),n.push(b)},v=0;v0&&this.addPathsEventListeners(z,H),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(H)}}},{key:"drawFixedTooltipRect",value:function(){var l=this.w,t=this.getElTooltip(),o=t.getBoundingClientRect(),n=o.width+10,h=o.height+10,u=this.tConfig.fixed.offsetX,v=this.tConfig.fixed.offsetY,m=this.tConfig.fixed.position.toLowerCase();return m.indexOf("right")>-1&&(u=u+l.globals.svgWidth-n+10),m.indexOf("bottom")>-1&&(v=v+l.globals.svgHeight-h-10),t.style.left=u+"px",t.style.top=v+"px",{x:u,y:v,ttWidth:n,ttHeight:h}}},{key:"addDatapointEventsListeners",value:function(l){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,l)}},{key:"addPathsEventListeners",value:function(l,t){for(var o=this,n=function(u){var v={paths:l[u],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(m){return l[u].addEventListener(m,o.seriesHover.bind(o,v),{capture:!1,passive:!0})})},h=0;hv.top+v.height)this.handleMouseOut(h);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!u.config.tooltip.shared){var g=parseInt(h.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(g)<0)return void this.handleMouseOut(h)}var H=this.getElTooltip(),M=this.getElXCrosshairs(),k=u.globals.xyCharts||u.config.chart.type==="bar"&&!u.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||u.globals.comboCharts&&this.tooltipUtil.hasBars();if(n.type==="mousemove"||n.type==="touchmove"||n.type==="mouseup"){M!==null&&M.classList.add("apexcharts-active");var z=this.yaxisTooltips.filter(function(D){return D===!0});if(this.ycrosshairs!==null&&z.length&&this.ycrosshairs.classList.add("apexcharts-active"),k&&!this.showOnIntersect)this.handleStickyTooltip(n,m,b,h);else if(u.config.chart.type==="heatmap"||u.config.chart.type==="treemap"){var T=this.intersect.handleHeatTreeTooltip({e:n,opt:h,x:t,y:o,type:u.config.chart.type});t=T.x,o=T.y,H.style.left=t+"px",H.style.top=o+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:h}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:h,x:t,y:o});if(this.yaxisTooltips.length)for(var I=0;I