vendor: 3,071 bytes, line 1
1!function(J,Z){"object"==typeof exports&&typeof module<"u"?module.exports=Z(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],Z):(J=typeof globalThis<"u"?globalThis:J||self).bootstrap=Z(J.Popper)}(this,function(J){"use strict";const x=function Z(G){const v=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(G)for(const z in G)if("default"!==z){const $=Object.getOwnPropertyDescriptor(G,z);Object.defineProperty(v,z,$.get?$:{enumerable:!0,get:()=>G[z]})}return v.default=G,Object.freeze(v)}(J),E=new Map,V={set(G,v,z){E.has(G)||E.set(G,new Map);const $=E.get(G);$.has(v)||0===$.size?$.set(v,z):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from($.keys())[0]}.`)},get:(G,v)=>E.has(G)&&E.get(G).get(v)||null,remove(G,v){if(!E.has(G))return;const z=E.get(G);z.delete(v),0===z.size&&E.delete(G)}},O="transitionend",q=G=>(G&&window.CSS&&window.CSS.escape&&(G=G.replace(/#([^\s"#']+)/g,(v,z)=>`#${CSS.escape(z)}`)),G),R=G=>{G.dispatchEvent(new Event(O))},fe=G=>!(!G||"object"!=typeof G)&&(void 0!==G.jquery&&(G=G[0]),void 0!==G.nodeType),ge=G=>fe(G)?G.jquery?G[0]:G:"string"==typeof G&&G.length>0?document.querySelector(q(G)):null,et=G=>{if(!fe(G)||0===G.getClientRects().length)return!1;const v="visible"===getComputedStyle(G).getPropertyValue("visibility"),z=G.closest("details:not([open])");if(!z)return v;if(z!==G){const $=G.closest("summary");if($&&$.parentNode!==z||null===$)return!1}return v},xe=G=>!G||G.nodeType!==Node.ELEMENT_NODE||!!G.classList.contains("disabled")||(void 0!==G.disabled?G.disabled:G.hasAttribute("disabled")&&"false"!==G.getAttribute("disabled")),kt=G=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof G.getRootNode){const v=G.getRootNode();return v instanceof ShadowRoot?v:null}return G instanceof ShadowRoot?G:G.parentNode?kt(G.parentNode):null},ke=()=>{},_t=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,W=[],gt=()=>"rtl"===document.documentElement.dir,Qe=G=>{var v;v=()=>{const z=_t();if(z){const $=G.NAME,ue=z.fn[$];z.fn[$]=G.jQueryInterface,z.fn[$].Constructor=G,z.fn[$].noConflict=()=>(z.fn[$]=ue,G.jQueryInterface)}},"loading"===document.readyState?(W.length||document.addEventListener("DOMContentLoaded",()=>{for(const z of W)z()}),W.push(v)):v()},ne=(G,v=[],z=G)=>"function"==typeof G?G(...v):z,st=(G,v,z=!0)=>{if(!z)return void ne(G);const $=(Le=>{if(!Le)return 0;let{transitionDuration:$e,transitionDelay:ut}=window.getComputedStyle(Le);const Jt=Number.parseFloat($e),ri=Number.parseFloat(ut);return Jt||ri?($e=$e.split(",")[0],ut=ut.split(",")[0],1e3*(Number.parseFloat($e)+Number.parseFloat(ut))):0})(v)+5;let ue=!1;const me=({target:Le})=>{Le===v&&(ue=!0,v.removeEventListener(O,me),ne(G))};v.addEventListener(O,me),setTimeout(()=>{ue||R(v)},$)},Li=(G,v,z,$)=>{const ue=G.length;let me=G.indexOf(v);return-1===me?!z&&$?G[ue-1]:G[0]:(me+=z?1:-1,$&&(me=(me+ue)%ue),G[Math.max(0,Math.min(me,ue-1))])},S=/[^.]*(?=\..*)\.|.*/,ct=/\..*/,Ue=/::\d+$/,Yt={};let vs=1;
vendor: 6,443 bytes, line 1
1const bs={mouseenter:"mouseover",mouseleave:"mouseout"},Ze=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function It(G,v){return v&&`${v}::${vs++}`||G.uidEvent||vs++}function ys(G){const v=It(G);return G.uidEvent=v,Yt[v]=Yt[v]||{},Yt[v]}function $i(G,v,z=null){return Object.values(G).find($=>$.callable===v&&$.delegationSelector===z)}function zt(G,v,z){const $="string"==typeof v,ue=$?z:v||z;let me=as(G);return Ze.has(me)||(me=G),[$,ue,me]}function oi(G,v,z,$,ue){if("string"!=typeof v||!G)return;let[me,Le,$e]=zt(v,z,$);var xs;v in bs&&(xs=Le,Le=function(Ti){if(!Ti.relatedTarget||Ti.relatedTarget!==Ti.delegateTarget&&!Ti.delegateTarget.contains(Ti.relatedTarget))return xs.call(this,Ti)});const ut=ys(G),Jt=ut[$e]||(ut[$e]={}),ri=$i(Jt,Le,me?z:null);if(ri)return void(ri.oneOff=ri.oneOff&&ue);const Ci=It(Le,v.replace(S,"")),ji=me?function(Gi,xs,Ti){return function js(Us){const Qs=Gi.querySelectorAll(xs);for(let{target:ms}=Us;ms&&ms!==this;ms=ms.parentNode)for(const Ks of Qs)if(Ks===ms)return Wt(Us,{delegateTarget:ms}),js.oneOff&&he.off(Gi,Us.type,xs,Ti),Ti.apply(ms,[Us])}}(G,z,Le):function(Gi,xs){return function Ti(js){return Wt(js,{delegateTarget:Gi}),Ti.oneOff&&he.off(Gi,js.type,xs),xs.apply(Gi,[js])}}(G,Le);ji.delegationSelector=me?z:null,ji.callable=Le,ji.oneOff=ue,ji.uidEvent=Ci,Jt[Ci]=ji,G.addEventListener($e,ji,me)}function Dt(G,v,z,$,ue){const me=$i(v[z],$,ue);me&&(G.removeEventListener(z,me,!!ue),delete v[z][me.uidEvent])}function ss(G,v,z,$){const ue=v[z]||{};for(const[me,Le]of Object.entries(ue))me.includes($)&&Dt(G,v,z,Le.callable,Le.delegationSelector)}function as(G){return G=G.replace(ct,""),bs[G]||G}const he={on(G,v,z,$){oi(G,v,z,$,!1)},one(G,v,z,$){oi(G,v,z,$,!0)},off(G,v,z,$){if("string"!=typeof v||!G)return;const[ue,me,Le]=zt(v,z,$),$e=Le!==v,ut=ys(G),Jt=ut[Le]||{},ri=v.startsWith(".");if(void 0===me){if(ri)for(const Ci of Object.keys(ut))ss(G,ut,Ci,v.slice(1));for(const[Ci,ji]of Object.entries(Jt)){const Gi=Ci.replace(Ue,"");$e&&!v.includes(Gi)||Dt(G,ut,Le,ji.callable,ji.delegationSelector)}}else{if(!Object.keys(Jt).length)return;Dt(G,ut,Le,me,ue?z:null)}},trigger(G,v,z){if("string"!=typeof v||!G)return null;const $=_t();let ue=null,me=!0,Le=!0,$e=!1;v!==as(v)&&$&&(ue=$.Event(v,z),$(G).trigger(ue),me=!ue.isPropagationStopped(),Le=!ue.isImmediatePropagationStopped(),$e=ue.isDefaultPrevented());const ut=Wt(new Event(v,{bubbles:me,cancelable:!0}),z);return $e&&ut.preventDefault(),Le&&G.dispatchEvent(ut),ut.defaultPrevented&&ue&&ue.preventDefault(),ut}};function Wt(G,v={}){for(const[z,$]of Object.entries(v))try{G[z]=$}catch{Object.defineProperty(G,z,{configurable:!0,get:()=>$})}return G}function Vi(G){if("true"===G)return!0;if("false"===G)return!1;if(G===Number(G).toString())return Number(G);if(""===G||"null"===G)return null;if("string"!=typeof G)return G;try{return JSON.parse(decodeURIComponent(G))}catch{return G}}function li(G){return G.replace(/[A-Z]/g,v=>`-${v.toLowerCase()}`)}const rt={setDataAttribute(G,v,z){G.setAttribute(`data-bs-${li(v)}`,z)},removeDataAttribute(G,v){G.removeAttribute(`data-bs-${li(v)}`)},getDataAttributes(G){if(!G)return{};const v={},z=Object.keys(G.dataset).filter($=>$.startsWith("bs")&&!$.startsWith("bsConfig"));for(const $ of z){let ue=$.replace(/^bs/,"");ue=ue.charAt(0).toLowerCase()+ue.slice(1,ue.length),v[ue]=Vi(G.dataset[$])}return v},getDataAttribute:(G,v)=>Vi(G.getAttribute(`data-bs-${li(v)}`))};class Pi{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(v){return v=this._mergeConfigObj(v),v=this._configAfterMerge(v),this._typeCheckConfig(v),v}_configAfterMerge(v){return v}_mergeConfigObj(v,z){const $=fe(z)?rt.getDataAttribute(z,"config"):{};return{...this.constructor.Default,..."object"==typeof $?$:{},...fe(z)?rt.getDataAttributes(z):{},..."object"==typeof v?v:{}}}_typeCheckConfig(v,z=this.constructor.DefaultType){for(const[ue,me]of Object.entries(z)){const Le=v[ue],$e=fe(Le)?"element":null==($=Le)?`${$}`:Object.prototype.toString.call($).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(me).test($e))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${ue}" provided type "${$e}" but expected type "${me}".`)}var $}}class At extends Pi{constructor(v,z){super(),(v=ge(v))&&(this._element=v,this._config=this._getConfig(z),V.set(this._element,this.constructor.DATA_KEY,this))}dispose(){V.remove(this._element,this.constructor.DATA_KEY),he.off(this._element,this.constructor.EVENT_KEY);for(const v of Object.getOwnPropertyNames(this))this[v]=null}_queueCallback(v,z,$=!0){st(v,z,$)}_getConfig(v){return v=this._mergeConfigObj(v,this._element),v=this._configAfterMerge(v),this._typeCheckConfig(v),v}static getInstance(v){return V.get(ge(v),this.DATA_KEY)}static getOrCreateInstance(v,z={}){return this.getInstance(v)||new this(v,"object"==typeof z?z:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(v){return`${v}${this.EVENT_KEY}`}}const xt=G=>{let v=G.getAttribute("data-bs-target");if(!v||"#"===v){let z=G.getAttribute("href");if(!z||!z.includes("#")&&!z.startsWith("."))return null;z.includes("#")&&!z.startsWith("#")&&(z=`#${z.split("#")[1]}`),v=z&&"#"!==z?z.trim():null}return v?v.split(",").map(z=>q(z)).join(","):null},Ce={find:(G,v=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(v,G)),findOne:(G,v=document.documentElement)=>Element.prototype.querySelector.call(v,G),children:(G,v)=>[].concat(...G.children).filter(z=>z.matches(v)),parents(G,v){const z=[];let $=G.parentNode.closest(v);for(;$;)z.push($),$=$.parentNode.closest(v);return z},prev(G,v){let z=G.previousElementSibling;for(;z;){if(z.matches(v))return[z];z=z.previousElementSibling}return[]},next(G,v){let z=G.nextElementSibling;for(;z;){if(z.matches(v))return[z];
vendor: 9,478 bytes, line 1
1z=z.nextElementSibling}return[]},focusableChildren(G){const v=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(z=>`${z}:not([tabindex^="-"])`).join(",");return this.find(v,G).filter(z=>!xe(z)&&et(z))},getSelectorFromElement(G){const v=xt(G);return v&&Ce.findOne(v)?v:null},getElementFromSelector(G){const v=xt(G);return v?Ce.findOne(v):null},getMultipleElementsFromSelector(G){const v=xt(G);return v?Ce.find(v):[]}},ci=(G,v="hide")=>{const $=G.NAME;he.on(document,`click.dismiss${G.EVENT_KEY}`,`[data-bs-dismiss="${$}"]`,function(ue){if(["A","AREA"].includes(this.tagName)&&ue.preventDefault(),xe(this))return;const me=Ce.getElementFromSelector(this)||this.closest(`.${$}`);G.getOrCreateInstance(me)[v]()})},Fi=".bs.alert",ns=`close${Fi}`,rs=`closed${Fi}`;class hi extends At{static get NAME(){return"alert"}close(){if(he.trigger(this._element,ns).defaultPrevented)return;this._element.classList.remove("show");const v=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,v)}_destroyElement(){this._element.remove(),he.trigger(this._element,rs),this.dispose()}static jQueryInterface(v){return this.each(function(){const z=hi.getOrCreateInstance(this);if("string"==typeof v){if(void 0===z[v]||v.startsWith("_")||"constructor"===v)throw new TypeError(`No method named "${v}"`);z[v](this)}})}}ci(hi,"close"),Qe(hi);const Bt='[data-bs-toggle="button"]';class yi extends At{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(v){return this.each(function(){const z=yi.getOrCreateInstance(this);"toggle"===v&&z[v]()})}}he.on(document,"click.bs.button.data-api",Bt,G=>{G.preventDefault();const v=G.target.closest(Bt);yi.getOrCreateInstance(v).toggle()}),Qe(yi);const Ei=".bs.swipe",Ds=`touchstart${Ei}`,jt=`touchmove${Ei}`,Ri=`touchend${Ei}`,Yi=`pointerdown${Ei}`,Pe=`pointerup${Ei}`,Tt={endCallback:null,leftCallback:null,rightCallback:null},qi={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ui extends Pi{constructor(v,z){super(),this._element=v,v&&Ui.isSupported()&&(this._config=this._getConfig(z),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Tt}static get DefaultType(){return qi}static get NAME(){return"swipe"}dispose(){he.off(this._element,Ei)}_start(v){this._supportPointerEvents?this._eventIsPointerPenTouch(v)&&(this._deltaX=v.clientX):this._deltaX=v.touches[0].clientX}_end(v){this._eventIsPointerPenTouch(v)&&(this._deltaX=v.clientX-this._deltaX),this._handleSwipe(),ne(this._config.endCallback)}_move(v){this._deltaX=v.touches&&v.touches.length>1?0:v.touches[0].clientX-this._deltaX}_handleSwipe(){const v=Math.abs(this._deltaX);if(v<=40)return;const z=v/this._deltaX;this._deltaX=0,z&&ne(z>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(he.on(this._element,Yi,v=>this._start(v)),he.on(this._element,Pe,v=>this._end(v)),this._element.classList.add("pointer-event")):(he.on(this._element,Ds,v=>this._start(v)),he.on(this._element,jt,v=>this._move(v)),he.on(this._element,Ri,v=>this._end(v)))}_eventIsPointerPenTouch(v){return this._supportPointerEvents&&("pen"===v.pointerType||"touch"===v.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Gt=".bs.carousel",Zi=".data-api",ei="next",St="prev",Ot="left",$t="right",Os=`slide${Gt}`,Mi=`slid${Gt}`,ws=`keydown${Gt}`,os=`mouseenter${Gt}`,_i=`mouseleave${Gt}`,wi=`dragstart${Gt}`,ti=`load${Gt}${Zi}`,Ii=`click${Gt}${Zi}`,Wi="carousel",zi="active",Pt=".active",mt=".carousel-item",Qi=Pt+mt,Ns={ArrowLeft:$t,ArrowRight:Ot},ks={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},As={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xt extends At{constructor(v,z){super(v,z),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ce.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Wi&&this.cycle()}static get Default(){return ks}static get DefaultType(){return As}static get NAME(){return"carousel"}next(){this._slide(ei)}nextWhenVisible(){!document.hidden&&et(this._element)&&this.next()}prev(){this._slide(St)}pause(){this._isSliding&&R(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?he.one(this._element,Mi,()=>this.cycle()):this.cycle())}to(v){const z=this._getItems();if(v>z.length-1||v<0)return;if(this._isSliding)return void he.one(this._element,Mi,()=>this.to(v));const $=this._getItemIndex(this._getActive());$!==v&&this._slide(v>$?ei:St,z[v])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(v){return v.defaultInterval=v.interval,v}_addEventListeners(){this._config.keyboard&&he.on(this._element,ws,v=>this._keydown(v)),"hover"===this._config.pause&&(he.on(this._element,os,()=>this.pause()),he.on(this._element,_i,()=>this._maybeEnableCycle())),this._config.touch&&Ui.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const z of Ce.find(".carousel-item img",this._element))he.on(z,wi,$=>$.preventDefault());this._swipeHelper=new Ui(this._element,{leftCallback:()=>this._slide(this._directionToOrder(Ot)),rightCallback:()=>this._slide(this._directionToOrder($t)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}})}_keydown(v){if(/input|textarea/i.test(v.target.tagName))return;const z=Ns[v.key];z&&(v.preventDefault(),this._slide(this._directionToOrder(z)))}_getItemIndex(v){return this._getItems().indexOf(v)}_setActiveIndicatorElement(v){if(!this._indicatorsElement)return;const z=Ce.findOne(Pt,this._indicatorsElement);z.classList.remove(zi),z.removeAttribute("aria-current");const $=Ce.findOne(`[data-bs-slide-to="${v}"]`,this._indicatorsElement);$&&($.classList.add(zi),$.setAttribute("aria-current","true"))}_updateInterval(){const v=this._activeElement||this._getActive();if(!v)return;const z=Number.parseInt(v.getAttribute("data-bs-interval"),10);this._config.interval=z||this._config.defaultInterval}_slide(v,z=null){if(this._isSliding)return;const $=this._getActive(),ue=v===ei,me=z||Li(this._getItems(),$,ue,this._config.wrap);if(me===$)return;const Le=this._getItemIndex(me),$e=Ci=>he.trigger(this._element,Ci,{relatedTarget:me,direction:this._orderToDirection(v),from:this._getItemIndex($),to:Le});if($e(Os).defaultPrevented||!$||!me)return;const ut=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(Le),this._activeElement=me;const Jt=ue?"carousel-item-start":"carousel-item-end",ri=ue?"carousel-item-next":"carousel-item-prev";me.classList.add(ri),$.classList.add(Jt),me.classList.add(Jt),this._queueCallback(()=>{me.classList.remove(Jt,ri),me.classList.add(zi),$.classList.remove(zi,ri,Jt),this._isSliding=!1,$e(Mi)},$,this._isAnimated()),ut&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Ce.findOne(Qi,this._element)}_getItems(){return Ce.find(mt,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(v){return gt()?v===Ot?St:ei:v===Ot?ei:St}_orderToDirection(v){return gt()?v===St?Ot:$t:v===St?$t:Ot}static jQueryInterface(v){return this.each(function(){const z=Xt.getOrCreateInstance(this,v);if("number"!=typeof v){if("string"==typeof v){if(void 0===z[v]||v.startsWith("_")||"constructor"===v)throw new TypeError(`No method named "${v}"`);z[v]()}}else z.to(v)})}}he.on(document,Ii,"[data-bs-slide], [data-bs-slide-to]",function(G){const v=Ce.getElementFromSelector(this);if(!v||!v.classList.contains(Wi))return;G.preventDefault();const z=Xt.getOrCreateInstance(v),$=this.getAttribute("data-bs-slide-to");return $?(z.to($),void z._maybeEnableCycle()):"next"===rt.getDataAttribute(this,"slide")?(z.next(),void z._maybeEnableCycle()):(z.prev(),void z._maybeEnableCycle())}),he.on(window,ti,()=>{const G=Ce.find('[data-bs-ride="carousel"]');for(const v of G)Xt.getOrCreateInstance(v)}),Qe(Xt);const Vt=".bs.collapse",ls=`show${Vt}`,Ki=`shown${Vt}`,cs=`hide${Vt}`,hs=`hidden${Vt}`,ii=`click${Vt}.data-api`,di="show",Di="collapse",Bi="collapsing",Ss=`:scope .${Di} .${Di}`,ui='[data-bs-toggle="collapse"]',Cs={parent:null,toggle:!0},ds={parent:"(null|element)",toggle:"boolean"};class si extends At{constructor(v,z){super(v,z),this._isTransitioning=!1,this._triggerArray=[];const $=Ce.find(ui);for(const ue of $){const me=Ce.getSelectorFromElement(ue),Le=Ce.find(me).filter($e=>$e===this._element);null!==me&&Le.length&&this._triggerArray.push(ue)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Cs}static get DefaultType(){return ds}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let v=[];
vendor: 4,000 bytes, line 1
1if(this._config.parent&&(v=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(ue=>ue!==this._element).map(ue=>si.getOrCreateInstance(ue,{toggle:!1}))),v.length&&v[0]._isTransitioning||he.trigger(this._element,ls).defaultPrevented)return;for(const ue of v)ue.hide();const z=this._getDimension();this._element.classList.remove(Di),this._element.classList.add(Bi),this._element.style[z]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const $=`scroll${z[0].toUpperCase()+z.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Bi),this._element.classList.add(Di,di),this._element.style[z]="",he.trigger(this._element,Ki)},this._element,!0),this._element.style[z]=`${this._element[$]}px`}hide(){if(this._isTransitioning||!this._isShown()||he.trigger(this._element,cs).defaultPrevented)return;const v=this._getDimension();this._element.style[v]=`${this._element.getBoundingClientRect()[v]}px`,this._element.classList.add(Bi),this._element.classList.remove(Di,di);for(const z of this._triggerArray){const $=Ce.getElementFromSelector(z);$&&!this._isShown($)&&this._addAriaAndCollapsedClass([z],!1)}this._isTransitioning=!0,this._element.style[v]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Bi),this._element.classList.add(Di),he.trigger(this._element,hs)},this._element,!0)}_isShown(v=this._element){return v.classList.contains(di)}_configAfterMerge(v){return v.toggle=!!v.toggle,v.parent=ge(v.parent),v}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const v=this._getFirstLevelChildren(ui);for(const z of v){const $=Ce.getElementFromSelector(z);$&&this._addAriaAndCollapsedClass([z],this._isShown($))}}_getFirstLevelChildren(v){const z=Ce.find(Ss,this._config.parent);return Ce.find(v,this._config.parent).filter($=>!z.includes($))}_addAriaAndCollapsedClass(v,z){if(v.length)for(const $ of v)$.classList.toggle("collapsed",!z),$.setAttribute("aria-expanded",z)}static jQueryInterface(v){const z={};return"string"==typeof v&&/show|hide/.test(v)&&(z.toggle=!1),this.each(function(){const $=si.getOrCreateInstance(this,z);if("string"==typeof v){if(void 0===$[v])throw new TypeError(`No method named "${v}"`);$[v]()}})}}he.on(document,ii,ui,function(G){("A"===G.target.tagName||G.delegateTarget&&"A"===G.delegateTarget.tagName)&&G.preventDefault();for(const v of Ce.getMultipleElementsFromSelector(this))si.getOrCreateInstance(v,{toggle:!1}).toggle()}),Qe(si);const Oi="dropdown",qt=".bs.dropdown",us=".data-api",L="ArrowUp",e="ArrowDown",t=`hide${qt}`,i=`hidden${qt}`,s=`show${qt}`,a=`shown${qt}`,n=`click${qt}${us}`,r=`keydown${qt}${us}`,o=`keyup${qt}${us}`,h="show",d='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',u=`${d}.${h}`,g=".dropdown-menu",m=gt()?"top-end":"top-start",b=gt()?"top-start":"top-end",w=gt()?"bottom-end":"bottom-start",C=gt()?"bottom-start":"bottom-end",T=gt()?"left-start":"right-start",_=gt()?"right-start":"left-start",l={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},f={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class k extends At{constructor(v,z){super(v,z),this._popper=null,this._parent=this._element.parentNode,this._menu=Ce.next(this._element,g)[0]||Ce.prev(this._element,g)[0]||Ce.findOne(g,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return l}static get DefaultType(){return f}static get NAME(){return Oi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(xe(this._element)||this._isShown())return;const v={relatedTarget:this._element};if(!he.trigger(this._element,s,v).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
1navbar-nav"))for(const z of[].concat(...document.body.children))he.on(z,"mouseover",ke);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(h),this._element.classList.add(h),he.trigger(this._element,a,v)}}hide(){!xe(this._element)&&this._isShown()&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(v){if(!he.trigger(this._element,t,v).defaultPrevented){if("ontouchstart"in document.documentElement)for(const z of[].concat(...document.body.children))he.off(z,"mouseover",ke);this._popper&&this._popper.destroy(),this._menu.classList.remove(h),this._element.classList.remove(h),this._element.setAttribute("aria-expanded","false"),rt.removeDataAttribute(this._menu,"popper"),he.trigger(this._element,i,v)}}_getConfig(v){if("object"==typeof(v=super._getConfig(v)).reference&&!fe(v.reference)&&"function"!=typeof v.reference.getBoundingClientRect)throw new TypeError(`${Oi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return v}_createPopper(){if(void 0===x)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let v=this._element;"parent"===this._config.reference?v=this._parent:fe(this._config.reference)?v=ge(this._config.reference):"object"==typeof this._config.reference&&(v=this._config.reference);const z=this._getPopperConfig();this._popper=x.createPopper(v,this._menu,z)}_isShown(){return this._menu.classList.contains(h)}_getPlacement(){const v=this._parent;if(v.classList.contains("dropend"))return T;if(v.classList.contains("dropstart"))return _;if(v.classList.contains("dropup-center"))return"top";if(v.classList.contains("dropdown-center"))return"bottom";const z="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return v.classList.contains("dropup")?z?b:m:z?C:w}
vendor: 10,174 bytes, line 1
1_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:v}=this._config;return"string"==typeof v?v.split(",").map(z=>Number.parseInt(z,10)):"function"==typeof v?z=>v(z,this._element):v}_getPopperConfig(){const v={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(rt.setDataAttribute(this._menu,"popper","static"),v.modifiers=[{name:"applyStyles",enabled:!1}]),{...v,...ne(this._config.popperConfig,[v])}}_selectMenuItem({key:v,target:z}){const $=Ce.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(ue=>et(ue));$.length&&Li($,z,v===e,!$.includes(z)).focus()}static jQueryInterface(v){return this.each(function(){const z=k.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===z[v])throw new TypeError(`No method named "${v}"`);z[v]()}})}static clearMenus(v){if(2===v.button||"keyup"===v.type&&"Tab"!==v.key)return;const z=Ce.find(u);for(const $ of z){const ue=k.getInstance($);if(!ue||!1===ue._config.autoClose)continue;const me=v.composedPath(),Le=me.includes(ue._menu);if(me.includes(ue._element)||"inside"===ue._config.autoClose&&!Le||"outside"===ue._config.autoClose&&Le||ue._menu.contains(v.target)&&("keyup"===v.type&&"Tab"===v.key||/input|select|option|textarea|form/i.test(v.target.tagName)))continue;const $e={relatedTarget:ue._element};"click"===v.type&&($e.clickEvent=v),ue._completeHide($e)}}static dataApiKeydownHandler(v){const z=/input|textarea/i.test(v.target.tagName),$="Escape"===v.key,ue=[L,e].includes(v.key);if(!ue&&!$||z&&!$)return;v.preventDefault();const me=this.matches(d)?this:Ce.prev(this,d)[0]||Ce.next(this,d)[0]||Ce.findOne(d,v.delegateTarget.parentNode),Le=k.getOrCreateInstance(me);if(ue)return v.stopPropagation(),Le.show(),void Le._selectMenuItem(v);Le._isShown()&&(v.stopPropagation(),Le.hide(),me.focus())}}he.on(document,r,d,k.dataApiKeydownHandler),he.on(document,r,g,k.dataApiKeydownHandler),he.on(document,n,k.clearMenus),he.on(document,o,k.clearMenus),he.on(document,n,d,function(G){G.preventDefault(),k.getOrCreateInstance(this).toggle()}),Qe(k);const I="backdrop",M="show",N=`mousedown.bs.${I}`,Y={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},F={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class te extends Pi{constructor(v){super(),this._config=this._getConfig(v),this._isAppended=!1,this._element=null}static get Default(){return Y}static get DefaultType(){return F}static get NAME(){return I}show(v){if(!this._config.isVisible)return void ne(v);this._append();this._getElement().classList.add(M),this._emulateAnimation(()=>{ne(v)})}hide(v){this._config.isVisible?(this._getElement().classList.remove(M),this._emulateAnimation(()=>{this.dispose(),ne(v)})):ne(v)}dispose(){this._isAppended&&(he.off(this._element,N),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const v=document.createElement("div");v.className=this._config.className,this._config.isAnimated&&v.classList.add("fade"),this._element=v}return this._element}_configAfterMerge(v){return v.rootElement=ge(v.rootElement),v}_append(){if(this._isAppended)return;const v=this._getElement();this._config.rootElement.append(v),he.on(v,N,()=>{ne(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(v){st(v,this._getElement(),this._config.isAnimated)}}const oe=".bs.focustrap",K=`focusin${oe}`,le=`keydown.tab${oe}`,pe="backward",ve={autofocus:!0,trapElement:null},Ae={autofocus:"boolean",trapElement:"element"};class Te extends Pi{constructor(v){super(),this._config=this._getConfig(v),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ve}static get DefaultType(){return Ae}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),he.off(document,oe),he.on(document,K,v=>this._handleFocusin(v)),he.on(document,le,v=>this._handleKeydown(v)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,he.off(document,oe))}_handleFocusin(v){const{trapElement:z}=this._config;if(v.target===document||v.target===z||z.contains(v.target))return;const $=Ce.focusableChildren(z);0===$.length?z.focus():this._lastTabNavDirection===pe?$[$.length-1].focus():$[0].focus()}_handleKeydown(v){"Tab"===v.key&&(this._lastTabNavDirection=v.shiftKey?pe:"forward")}}const De=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ze=".sticky-top",Xe="padding-right",Ke="margin-right";class tt{constructor(){this._element=document.body}getWidth(){const v=document.documentElement.clientWidth;return Math.abs(window.innerWidth-v)}hide(){const v=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Xe,z=>z+v),this._setElementAttributes(De,Xe,z=>z+v),this._setElementAttributes(ze,Ke,z=>z-v)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Xe),this._resetElementAttributes(De,Xe),this._resetElementAttributes(ze,Ke)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(v,z,$){const ue=this.getWidth();this._applyManipulationCallback(v,me=>{if(me!==this._element&&window.innerWidth>me.clientWidth+ue)return;this._saveInitialAttribute(me,z);const Le=window.getComputedStyle(me).getPropertyValue(z);me.style.setProperty(z,`${$(Number.parseFloat(Le))}px`)})}_saveInitialAttribute(v,z){const $=v.style.getPropertyValue(z);$&&rt.setDataAttribute(v,z,$)}_resetElementAttributes(v,z){this._applyManipulationCallback(v,$=>{const ue=rt.getDataAttribute($,z);null!==ue?(rt.removeDataAttribute($,z),$.style.setProperty(z,ue)):$.style.removeProperty(z)})}_applyManipulationCallback(v,z){if(fe(v))z(v);else for(const $ of Ce.find(v,this._element))z($)}}const Re=".bs.modal",Ct=`hide${Re}`,Ve=`hidePrevented${Re}`,Be=`hidden${Re}`,qe=`show${Re}`,vt=`shown${Re}`,bt=`resize${Re}`,Ut=`click.dismiss${Re}`,Ni=`mousedown.dismiss${Re}`,pt=`keydown.dismiss${Re}`,Zt=`click${Re}.data-api`,Ji="modal-open",Ts="modal-static",Xs={backdrop:!0,focus:!0,keyboard:!0},Zs={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ai extends At{constructor(v,z){super(v,z),this._dialog=Ce.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new tt,this._addEventListeners()}static get Default(){return Xs}static get DefaultType(){return Zs}static get NAME(){return"modal"}toggle(v){return this._isShown?this.hide():this.show(v)}show(v){this._isShown||this._isTransitioning||he.trigger(this._element,qe,{relatedTarget:v}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ji),this._adjustDialog(),this._backdrop.show(()=>this._showElement(v)))}hide(){this._isShown&&!this._isTransitioning&&(he.trigger(this._element,Ct).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){he.off(window,Re),he.off(this._dialog,Re),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new te({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Te({trapElement:this._element})}_showElement(v){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const z=Ce.findOne(".modal-body",this._dialog);z&&(z.scrollTop=0),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,he.trigger(this._element,vt,{relatedTarget:v})},this._dialog,this._isAnimated())}_addEventListeners(){he.on(this._element,pt,v=>{"Escape"===v.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),he.on(window,bt,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),he.on(this._element,Ni,v=>{he.one(this._element,Ut,z=>{this._element===v.target&&this._element===z.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ji),this._resetAdjustments(),this._scrollBar.reset(),he.trigger(this._element,Be)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(he.trigger(this._element,Ve).defaultPrevented)return;const v=this._element.scrollHeight>document.documentElement.clientHeight,z=this._element.style.overflowY;"hidden"===z||this._element.classList.contains(Ts)||(v||(this._element.style.overflowY="hidden"),this._element.classList.add(Ts),this._queueCallback(()=>{this._element.classList.remove(Ts),this._queueCallback(()=>{this._element.style.overflowY=z},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const v=this._element.scrollHeight>document.documentElement.clientHeight,z=this._scrollBar.getWidth(),$=z>0;if($&&!v){const ue=gt()?"paddingLeft":"paddingRight";this._element.style[ue]=`${z}px`}if(!$&&v){const ue=gt()?"paddingRight":"paddingLeft";this._element.style[ue]=`${z}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(v,z){return this.each(function(){const $=ai.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===$[v])throw new TypeError(`No method n
1amed "${v}"`);$[v](z)}})}}he.on(document,Zt,'[data-bs-toggle="modal"]',function(G){const v=Ce.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&G.preventDefault(),he.one(v,qe,$=>{$.defaultPrevented||he.one(v,Be,()=>{et(this)&&this.focus()})});const z=Ce.findOne(".modal.show");z&&ai.getInstance(z).hide(),ai.getOrCreateInstance(v).toggle(this)}),ci(ai),Qe(ai);const gi=".bs.offcanvas",Fs=".data-api",Rs=`load${gi}${Fs}`,$s="showing",c=".offcanvas.show",p=`show${gi}`,y=`shown${gi}`,A=`hide${gi}`,P=`hidePrevented${gi}`,D=`hidden${gi}`,H=`resize${gi}`,j=`click${gi}${Fs}`,B=`keydown.dismiss${gi}`,Q={backdrop:!0,keyboard:!0,scroll:!1},se={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class re extends At{constructor(v,z){super(v,z),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Q}static get DefaultType(){return se}static get NAME(){return"offcanvas"}toggle(v){return this._isShown?this.hide():this.show(v)}show(v){this._isShown||he.trigger(this._element,p,{relatedTarget:v}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new tt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($s),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove($s),he.trigger(this._element,y,{relatedTarget:v})},this._element,!0))}hide(){this._isShown&&(he.trigger(this._element,A).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new tt).reset(),he.trigger(this._element,D)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const v=!!this._config.backdrop;return new te({className:"offcanvas-backdrop",isVisible:v,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:v?()=>{"static"!==this._config.backdrop?this.hide():he.trigger(this._element,P)}:null})}_initializeFocusTrap(){return new Te({trapElement:this._element})}_addEventListeners(){he.on(this._element,B,v=>{"Escape"===v.key&&(this._config.keyboard?this.hide():he.trigger(this._element,P))})}static jQueryInterface(v){return this.each(function(){const z=re.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===z[v]||v.startsWith("_")||"constructor"===v)throw new TypeError(`No method named "${v}"`);z[v](this)}})}}he.on(document,j,'[data-bs-toggle="offcanvas"]',function(G){const v=Ce.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&G.preventDefault(),xe(this))return;he.one(v,D,()=>{et(this)&&this.focus()});const z=Ce.findOne(c);z&&z!==v&&re.getInstance(z).hide(),re.getOrCreateInstance(v).toggle(this)}),he.on(window,Rs,()=>{for(const G of Ce.find(c))re.getOrCreateInstance(G).show()}),he.on(window,H,()=>{for(const G of Ce.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(G).position&&re.getOrCreateInstance(G).hide()}),ci(re),Qe(re);const ee={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},de=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ee=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ne=(G,v)=>{const z=G.nodeName.toLowerCase();return v.includes(z)?!de.has(z)||!!Ee.test(G.nodeValue):v.filter($=>$ instanceof RegExp).some($=>$.test(z))},He={allowList:ee,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},ht={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},yt={entry:"(string|element|function|null)",selector:"(string|element)"};class pi extends Pi{constructor(v){super(),this._config=this._getConfig(v)}static get Default(){return He}static get DefaultType(){return ht}static get NAME(){return"TemplateFactory"}
vendor: 4,712 bytes, line 1
1getContent(){return Object.values(this._config.content).map(v=>this._resolvePossibleFunction(v)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(v){return this._checkContent(v),this._config.content={...this._config.content,...v},this}toHtml(){const v=document.createElement("div");v.innerHTML=this._maybeSanitize(this._config.template);for(const[ue,me]of Object.entries(this._config.content))this._setContent(v,me,ue);const z=v.children[0],$=this._resolvePossibleFunction(this._config.extraClass);return $&&z.classList.add(...$.split(" ")),z}_typeCheckConfig(v){super._typeCheckConfig(v),this._checkContent(v.content)}_checkContent(v){for(const[z,$]of Object.entries(v))super._typeCheckConfig({selector:z,entry:$},yt)}_setContent(v,z,$){const ue=Ce.findOne($,v);ue&&((z=this._resolvePossibleFunction(z))?fe(z)?this._putElementInTemplate(ge(z),ue):this._config.html?ue.innerHTML=this._maybeSanitize(z):ue.textContent=z:ue.remove())}_maybeSanitize(v){return this._config.sanitize?function(z,$,ue){if(!z.length)return z;if(ue&&"function"==typeof ue)return ue(z);const me=(new window.DOMParser).parseFromString(z,"text/html"),Le=[].concat(...me.body.querySelectorAll("*"));for(const $e of Le){const ut=$e.nodeName.toLowerCase();if(!Object.keys($).includes(ut)){$e.remove();continue}const Jt=[].concat(...$e.attributes),ri=[].concat($["*"]||[],$[ut]||[]);for(const Ci of Jt)Ne(Ci,ri)||$e.removeAttribute(Ci.nodeName)}return me.body.innerHTML}(v,this._config.allowList,this._config.sanitizeFn):v}_resolvePossibleFunction(v){return ne(v,[this])}_putElementInTemplate(v,z){if(this._config.html)return z.innerHTML="",void z.append(v);z.textContent=v.textContent}}const fi=new Set(["sanitize","allowList","sanitizeFn"]),Ye="fade",xi="show",at="hide.bs.modal",ki="hover",gs="focus",mi={AUTO:"auto",TOP:"top",RIGHT:gt()?"left":"right",BOTTOM:"bottom",LEFT:gt()?"right":"left"},ps={allowList:ee,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Ai={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Nt extends At{constructor(v,z){if(void 0===x)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(v,z),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ps}static get DefaultType(){return Ai}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),he.off(this._element.closest(".modal"),at,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const v=he.trigger(this._element,this.constructor.eventName("show")),z=(kt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(v.defaultPrevented||!z)return;this._disposePopper();const $=this._getTipElement();this._element.setAttribute("aria-describedby",$.getAttribute("id"));const{container:ue}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(ue.append($),he.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper($),$.classList.add(xi),"ontouchstart"in document.documentElement)for(const me of[].concat(...document.body.children))he.on(me,"mouseover",ke);this._queueCallback(()=>{he.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}
vendor: 4,803 bytes, line 1
1hide(){if(this._isShown()&&!he.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(xi),"ontouchstart"in document.documentElement)for(const v of[].concat(...document.body.children))he.off(v,"mouseover",ke);this._activeTrigger.click=!1,this._activeTrigger[gs]=!1,this._activeTrigger[ki]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),he.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(v){const z=this._getTemplateFactory(v).toHtml();if(!z)return null;z.classList.remove(Ye,xi),z.classList.add(`bs-${this.constructor.NAME}-auto`);const $=(ue=>{do{ue+=Math.floor(1e6*Math.random())}while(document.getElementById(ue));return ue})(this.constructor.NAME).toString();return z.setAttribute("id",$),this._isAnimated()&&z.classList.add(Ye),z}setContent(v){this._newContent=v,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(v){return this._templateFactory?this._templateFactory.changeContent(v):this._templateFactory=new pi({...this._config,content:v,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(v){return this.constructor.getOrCreateInstance(v.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ye)}_isShown(){return this.tip&&this.tip.classList.contains(xi)}_createPopper(v){const z=ne(this._config.placement,[this,v,this._element]),$=mi[z.toUpperCase()];return x.createPopper(this._element,v,this._getPopperConfig($))}_getOffset(){const{offset:v}=this._config;return"string"==typeof v?v.split(",").map(z=>Number.parseInt(z,10)):"function"==typeof v?z=>v(z,this._element):v}_resolvePossibleFunction(v){return ne(v,[this._element])}_getPopperConfig(v){const z={placement:v,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:$=>{this._getTipElement().setAttribute("data-popper-placement",$.state.placement)}}]};return{...z,...ne(this._config.popperConfig,[z])}}_setListeners(){const v=this._config.trigger.split(" ");for(const z of v)if("click"===z)he.on(this._element,this.constructor.eventName("click"),this._config.selector,$=>{this._initializeOnDelegatedTarget($).toggle()});else if("manual"!==z){const $=this.constructor.eventName(z===ki?"mouseenter":"focusin"),ue=this.constructor.eventName(z===ki?"mouseleave":"focusout");he.on(this._element,$,this._config.selector,me=>{const Le=this._initializeOnDelegatedTarget(me);Le._activeTrigger["focusin"===me.type?gs:ki]=!0,Le._enter()}),he.on(this._element,ue,this._config.selector,me=>{const Le=this._initializeOnDelegatedTarget(me);Le._activeTrigger["focusout"===me.type?gs:ki]=Le._element.contains(me.relatedTarget),Le._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},he.on(this._element.closest(".modal"),at,this._hideModalHandler)}_fixTitle(){const v=this._element.getAttribute("title");v&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",v),this._element.setAttribute("data-bs-original-title",v),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(v,z){clearTimeout(this._timeout),this._timeout=setTimeout(v,z)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(v){const z=rt.getDataAttributes(this._element);for(const $ of Object.keys(z))fi.has($)&&delete z[$];return v={...z,..."object"==typeof v&&v?v:{}},v=this._mergeConfigObj(v),v=this._configAfterMerge(v),this._typeCheckConfig(v),v}_configAfterMerge(v){return v.container=!1===v.container?document.body:ge(v.container),"number"==typeof v.delay&&(v.delay={show:v.delay,hide:v.delay}
vendor: 4,900 bytes, line 1
1),"number"==typeof v.title&&(v.title=v.title.toString()),"number"==typeof v.content&&(v.content=v.content.toString()),v}_getDelegateConfig(){const v={};for(const[z,$]of Object.entries(this._config))this.constructor.Default[z]!==$&&(v[z]=$);return v.selector=!1,v.trigger="manual",v}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(v){return this.each(function(){const z=Nt.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===z[v])throw new TypeError(`No method named "${v}"`);z[v]()}})}}Qe(Nt);const es={...Nt.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Qt={...Nt.DefaultType,content:"(null|string|element|function)"};class dt extends Nt{static get Default(){return es}static get DefaultType(){return Qt}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(v){return this.each(function(){const z=dt.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===z[v])throw new TypeError(`No method named "${v}"`);z[v]()}})}}Qe(dt);const ot=".bs.scrollspy",Et=`activate${ot}`,Si=`click${ot}`,Mt=`load${ot}.data-api`,Me="active",nt="[href]",lt=".nav-link",it=`${lt}, .nav-item > ${lt}, .list-group-item`,vi={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ts={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Hi extends At{constructor(v,z){super(v,z),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return vi}static get DefaultType(){return ts}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const v of this._observableSections.values())this._observer.observe(v)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(v){return v.target=ge(v.target)||document.body,v.rootMargin=v.offset?`${v.offset}px 0px -30%`:v.rootMargin,"string"==typeof v.threshold&&(v.threshold=v.threshold.split(",").map(z=>Number.parseFloat(z))),v}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(he.off(this._config.target,Si),he.on(this._config.target,Si,nt,v=>{const z=this._observableSections.get(v.target.hash);if(z){v.preventDefault();const $=this._rootElement||window,ue=z.offsetTop-this._element.offsetTop;if($.scrollTo)return void $.scrollTo({top:ue,behavior:"smooth"});$.scrollTop=ue}}))}_getNewObserver(){return new IntersectionObserver(z=>this._observerCallback(z),{root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin})}_observerCallback(v){const z=Le=>this._targetLinks.get(`#${Le.target.id}`),$=Le=>{this._previousScrollData.visibleEntryTop=Le.target.offsetTop,this._process(z(Le))},ue=(this._rootElement||document.documentElement).scrollTop,me=ue>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=ue;for(const Le of v){if(!Le.isIntersecting){this._activeTarget=null,this._clearActiveClass(z(Le));continue}const $e=Le.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(me&&$e){if($(Le),!ue)return}else me||$e||$(Le)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const v=Ce.find(nt,this._config.target);for(const z of v){if(!z.hash||xe(z))continue;const $=Ce.findOne(decodeURI(z.hash),this._element);et($)&&(this._targetLinks.set(decodeURI(z.hash),z),this._observableSections.set(z.hash,$))}}_process(v){this._activeTarget!==v&&(this._clearActiveClass(this._config.target),this._activeTarget=v,v.classList.add(Me),this._activateParents(v),he.trigger(this._element,Et,{relatedTarget:v}))}_activateParents(v){if(v.classList.contains("dropdown-item"))Ce.findOne(".dropdown-toggle",v.closest(".dropdown")).classList.add(Me);else for(const z of Ce.parents(v,".nav, .list-group"))for(const $ of Ce.prev(z,it))$.classList.add(Me)}_clearActiveClass(v){v.classList.remove(Me);const z=Ce.find(`${nt}.${Me}`,v);for(const $ of z)$.classList.remove(Me)}static jQueryInterface(v){return this.each(function(){const z=Hi.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===z[v]||v.startsWith("_")||"constructor"===v)throw new TypeError(`No method n
1amed "${v}"`);z[v]()}})}}he.on(window,Mt,()=>{for(const G of Ce.find('[data-bs-spy="scroll"]'))Hi.getOrCreateInstance(G)}),Qe(Hi);const Ft=".bs.tab",Ys=`hide${Ft}`,Xi=`hidden${Ft}`,qs=`show${Ft}`,fs=`shown${Ft}`,Ls=`click${Ft}`,Ps=`keydown${Ft}`,Ws=`load${Ft}`,Es="ArrowLeft",Ms="ArrowRight",Bs="ArrowUp",_s="ArrowDown",Is="Home",X="End",U="active",ae="show",ce=".dropdown-toggle",be=`:not(${ce})`,ye='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Se=`.nav-link${be}, .list-group-item${be}, [role="tab"]${be}, ${ye}`,we=`.${U}[data-bs-toggle="tab"], .${U}[data-bs-toggle="pill"], .${U}[data-bs-toggle="list"]`;class We extends At{constructor(v){super(v),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),he.on(this._element,Ps,z=>this._keydown(z)))}static get NAME(){return"tab"}show(){const v=this._element;if(this._elemIsActive(v))return;const z=this._getActiveElem(),$=z?he.trigger(z,Ys,{relatedTarget:v}):null;he.trigger(v,qs,{relatedTarget:z}).defaultPrevented||$&&$.defaultPrevented||(this._deactivate(z,v),this._activate(v,z))}_activate(v,z){v&&(v.classList.add(U),this._activate(Ce.getElementFromSelector(v)),this._queueCallback(()=>{"tab"===v.getAttribute("role")?(v.removeAttribute("tabindex"),v.setAttribute("aria-selected",!0),this._toggleDropDown(v,!0),he.trigger(v,fs,{relatedTarget:z})):v.classList.add(ae)},v,v.classList.contains("fade")))}_deactivate(v,z){v&&(v.classList.remove(U),v.blur(),this._deactivate(Ce.getElementFromSelector(v)),this._queueCallback(()=>{"tab"===v.getAttribute("role")?(v.setAttribute("aria-selected",!1),v.setAttribute("tabindex","-1"),this._toggleDropDown(v,!1),he.trigger(v,Xi,{relatedTarget:z})):v.classList.remove(ae)},v,v.classList.contains("fade")))}_keydown(v){if(![Es,Ms,Bs,_s,Is,X].includes(v.key))return;v.stopPropagation(),v.preventDefault();const z=this._getChildren().filter(ue=>!xe(ue));let $;if([Is,X].includes(v.key))$=z[v.key===Is?0:z.length-1];else{const ue=[Ms,_s].includes(v.key);$=Li(z,v.target,ue,!0)}$&&($.focus({preventScroll:!0}),We.getOrCreateInstance($).show())}_getChildren(){return Ce.find(Se,this._parent)}_getActiveElem(){return this._getChildren().find(v=>this._elemIsActive(v))||null}_setInitialAttributes(v,z){this._setAttributeIfNotExists(v,"role","tablist");for(const $ of z)this._setInitialAttributesOnChild($)}_setInitialAttributesOnChild(v){v=this._getInnerElement(v);const z=this._elemIsActive(v),$=this._getOuterElement(v);v.setAttribute("aria-selected",z),$!==v&&this._setAttributeIfNotExists($,"role","presentation"),z||v.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(v,"role","tab"),this._setInitialAttributesOnTargetPanel(v)}_setInitialAttributesOnTargetPanel(v){const z=Ce.getElementFromSelector(v);z&&(this._setAttributeIfNotExists(z,"role","tabpanel"),v.id&&this._setAttributeIfNotExists(z,"aria-labelledby",`${v.id}`))}_toggleDropDown(v,z){const $=this._getOuterElement(v);if(!$.classList.contains("dropdown"))return;const ue=(me,Le)=>{const $e=Ce.findOne(me,$);$e&&$e.classList.toggle(Le,z)};ue(ce,U),ue(".dropdown-menu",ae),$.setAttribute("aria-expanded",z)}_setAttributeIfNotExists(v,z,$){v.hasAttribute(z)||v.setAttribute(z,$)}_elemIsActive(v){return v.classList.contains(U)}_getInnerElement(v){return v.matches(Se)?v:Ce.findOne(Se,v)}
1_getOuterElement(v){return v.closest(".nav-item, .list-group-item")||v}static jQueryInterface(v){return this.each(function(){const z=We.getOrCreateInstance(this);if("string"==typeof v){if(void 0===z[v]||v.startsWith("_")||"constructor"===v)throw new TypeError(`No method named "${v}"`);z[v]()}})}}he.on(document,Ls,ye,function(G){["A","AREA"].includes(this.tagName)&&G.preventDefault(),xe(this)||We.getOrCreateInstance(this).show()}),he.on(window,Ws,()=>{for(const G of Ce.find(we))We.getOrCreateInstance(G)}),Qe(We);const _e=".bs.toast",Fe=`mouseover${_e}`,Ge=`mouseout${_e}`,Oe=`focusin${_e}`,ft=`focusout${_e}`,Lt=`hide${_e}`,wt=`hidden${_e}`,Ht=`show${_e}`,Rt=`shown${_e}`,Je="show",bi="showing",ni={animation:"boolean",autohide:"boolean",delay:"number"},zs={animation:!0,autohide:!0,delay:5e3};class is extends At{constructor(v,z){super(v,z),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return zs}static get DefaultType(){return ni}static get NAME(){return"toast"}show(){he.trigger(this._element,Ht).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),this._element.classList.add(Je,bi),this._queueCallback(()=>{this._element.classList.remove(bi),he.trigger(this._element,Rt),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(he.trigger(this._element,Lt).defaultPrevented||(this._element.classList.add(bi),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(bi,Je),he.trigger(this._element,wt)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Je),super.dispose()}isShown(){return this._element.classList.contains(Je)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(v,z){switch(v.type){case"mouseover":case"mouseout":this._hasMouseInteraction=z;break;case"focusin":case"focusout":this._hasKeyboardInteraction=z}if(z)return void this._clearTimeout();const $=v.relatedTarget;this._element===$||this._element.contains($)||this._maybeScheduleHide()}_setListeners(){he.on(this._element,Fe,v=>this._onInteraction(v,!0)),he.on(this._element,Ge,v=>this._onInteraction(v,!1)),he.on(this._element,Oe,v=>this._onInteraction(v,!0)),he.on(this._element,ft,v=>this._onInteraction(v,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(v){return this.each(function(){const z=is.getOrCreateInstance(this,v);if("string"==typeof v){if(void 0===z[v])throw new TypeError(`No method named "${v}"`);z[v](this)}})}}return ci(is),Qe(is),{Alert:hi,Button:yi,Carousel:Xt,Collapse:si,Dropdown:k,Modal:ai,Offcanvas:re,Popover:dt,ScrollSpy:Hi,Tab:We,Toast:is,Tooltip:Nt}}),function(J,Z){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=J.document?Z(J,!0):function(x){if(!x.document)throw new Error("jQuery requires a window with a document");return Z(x)}:Z(J)}(typeof window<"u"?window:this,function(J,Z){"use strict";var x=[],E=Object.getPrototypeOf,V=x.slice,O=x.flat?function(c){return x.flat.call(c)}:function(c){return x.concat.apply([],c)},q=x.push,R=x.indexOf,fe={},ge=fe.toString,et=fe.hasOwnProperty,xe=et.toString,kt=xe.call(Object),ke={},Ie=function(c){return"function"==typeof c&&"number"!=typeof c.nodeType&&"function"!=typeof c.item},_t=function(c){return null!=c&&c===c.window},W=J.document,gt={type:!0,src:!0,nonce:!0,noModule:!0};function Qe(c,p,y){var A,P,D=(y=y||W).createElement("script");if(D.text=c,p)for(A in gt)(P=p[A]||p.getAttribute&&p.getAttribute(A))&&D.setAttribute(A,P);y.head.appendChild(D).parentNode.removeChild(D)}function ne(c){return null==c?c+"":"object"==typeof c||"function"==typeof c?fe[ge.call(c)]||"object":typeof c}var Li=/HTML$/i,S=function(c,p){return new S.fn.init(c,p)};function ct(c){var p=!!c&&"length"in c&&c.length,y=ne(c);return!Ie(c)&&!_t(c)&&("array"===y||0===p||"number"==typeof p&&0<p&&p-1 in c)}function Ue(c,p){return c.nodeName&&c.nodeName.toLowerCase()===p.toLowerCase()}S.fn=S.prototype={jquery:"3.7.1",constructor:S,length:0,toArray:function(){return V.call(this)},get:function(c){return null==c?V.call(this):c<0?this[c+this.length]:this[c]}
vendor: 13,959 bytes, line 1
1,pushStack:function(c){var p=S.merge(this.constructor(),c);return p.prevObject=this,p},each:function(c){return S.each(this,c)},map:function(c){return this.pushStack(S.map(this,function(p,y){return c.call(p,y,p)}))},slice:function(){return this.pushStack(V.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(c,p){return(p+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(c,p){return p%2}))},eq:function(c){var p=this.length,y=+c+(c<0?p:0);return this.pushStack(0<=y&&y<p?[this[y]]:[])},end:function(){return this.prevObject||this.constructor()},push:q,sort:x.sort,splice:x.splice},S.extend=S.fn.extend=function(){var c,p,y,A,P,D,H=arguments[0]||{},j=1,B=arguments.length,Q=!1;for("boolean"==typeof H&&(Q=H,H=arguments[j]||{},j++),"object"==typeof H||Ie(H)||(H={}),j===B&&(H=this,j--);j<B;j++)if(null!=(c=arguments[j]))for(p in c)A=c[p],"__proto__"!==p&&H!==A&&(Q&&A&&(S.isPlainObject(A)||(P=Array.isArray(A)))?(y=H[p],D=P&&!Array.isArray(y)?[]:P||S.isPlainObject(y)?y:{},P=!1,H[p]=S.extend(Q,D,A)):void 0!==A&&(H[p]=A));return H},S.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(c){throw new Error(c)},noop:function(){},isPlainObject:function(c){var p,y;return!(!c||"[object Object]"!==ge.call(c)||(p=E(c))&&("function"!=typeof(y=et.call(p,"constructor")&&p.constructor)||xe.call(y)!==kt))},isEmptyObject:function(c){var p;for(p in c)return!1;return!0},globalEval:function(c,p,y){Qe(c,{nonce:p&&p.nonce},y)},each:function(c,p){var y,A=0;if(ct(c))for(y=c.length;A<y&&!1!==p.call(c[A],A,c[A]);A++);else for(A in c)if(!1===p.call(c[A],A,c[A]))break;return c},text:function(c){var p,y="",A=0,P=c.nodeType;if(!P)for(;p=c[A++];)y+=S.text(p);return 1===P||11===P?c.textContent:9===P?c.documentElement.textContent:3===P||4===P?c.nodeValue:y},makeArray:function(c,p){var y=p||[];return null!=c&&(ct(Object(c))?S.merge(y,"string"==typeof c?[c]:c):q.call(y,c)),y},inArray:function(c,p,y){return null==p?-1:R.call(p,c,y)},isXMLDoc:function(c){var y=c&&(c.ownerDocument||c).documentElement;return!Li.test(c&&c.namespaceURI||y&&y.nodeName||"HTML")},merge:function(c,p){for(var y=+p.length,A=0,P=c.length;A<y;A++)c[P++]=p[A];return c.length=P,c},grep:function(c,p,y){for(var A=[],P=0,D=c.length,H=!y;P<D;P++)!p(c[P],P)!==H&&A.push(c[P]);return A},map:function(c,p,y){var A,P,D=0,H=[];if(ct(c))for(A=c.length;D<A;D++)null!=(P=p(c[D],D,y))&&H.push(P);else for(D in c)null!=(P=p(c[D],D,y))&&H.push(P);return O(H)},guid:1,support:ke}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=x[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(c,p){fe["[object "+p+"]"]=p.toLowerCase()});var Yt=x.pop,vs=x.sort,bs=x.splice,Ze="[\\x20\\t\\r\\n\\f]",It=new RegExp("^"+Ze+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ze+"+$","g");S.contains=function(c,p){var y=p&&p.parentNode;return c===y||!(!y||1!==y.nodeType||!(c.contains?c.contains(y):c.compareDocumentPosition&&16&c.compareDocumentPosition(y)))};var ys=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function $i(c,p){return p?"\0"===c?"\ufffd":c.slice(0,-1)+"\\"+c.charCodeAt(c.length-1).toString(16)+" ":"\\"+c}S.escapeSelector=function(c){return(c+"").replace(ys,$i)};var zt=W,oi=q;!function(){var c,p,y,A,P,D,H,j,B,Q,se=oi,re=S.expando,ee=0,de=0,Ee=nt(),Ne=nt(),He=nt(),ht=nt(),yt=function(X,U){return X===U&&(P=!0),0},pi="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",fi="(?:\\\\[\\da-fA-F]{1,6}"+Ze+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ye="\\["+Ze+"*("+fi+")(?:"+Ze+"*([*^$|!~]?=)"+Ze+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+fi+"))|)"+Ze+"*\\]",xi=":("+fi+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Ye+")*)|.*)\\)|)",je=new RegExp(Ze+"+","g"),at=new RegExp("^"+Ze+"*,"+Ze+"*"),ki=new RegExp("^"+Ze+"*([>+~]|"+Ze+")"+Ze+"*"),gs=new RegExp(Ze+"|>"),mi=new RegExp(xi),ps=new RegExp("^"+fi+"$"),Ai={ID:new RegExp("^#("+fi+")"),CLASS:new RegExp("^\\.("+fi+")"),TAG:new RegExp("^("+fi+"|[*])"),ATTR:new RegExp("^"+Ye),PSEUDO:new RegExp("^"+xi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ze+"*(even|odd|(([+-]|)(\\d*)n|)"+Ze+"*(?:([+-]|)"+Ze+"*(\\d+)|))"+Ze+"*\\)|)","i"),bool:new RegExp("^(?:"+pi+")$","i"),needsContext:new RegExp("^"+Ze+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ze+"*((?:-\\d)?\\d*)"+Ze+"*\\)|)(?=[^-]|$)","i")},Nt=/^(?:input|select|textarea|button)$/i,es=/^h\d$/i,Qt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dt=/[+~]/,ot=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ze+"?|\\\\([^\\r\\n\\f])","g"),Et=function(X,U){var ie="0x"+X.slice(1)-65536;return U||(ie<0?String.fromCharCode(ie+65536):String.fromCharCode(ie>>10|55296,1023&ie|56320))},Si=function(){Xi()},Mt=Ps(function(X){return!0===X.disabled&&Ue(X,"fieldset")},{dir:"parentNode",next:"legend"});try{se.apply(x=V.call(zt.childNodes),zt.childNodes)}catch{se={apply:function(U,ie){oi.apply(U,V.call(ie))},call:function(U){oi.apply(U,V.call(arguments,1))}}}function Me(X,U,ie,ae){var ce,be,ye,Se,we,We,_e,Fe=U&&U.ownerDocument,Ge=U?U.nodeType:9;if(ie=ie||[],"string"!=typeof X||!X||1!==Ge&&9!==Ge&&11!==Ge)return ie;if(!ae&&(Xi(U),U=U||D,j)){if(11!==Ge&&(we=Qt.exec(X)))if(ce=we[1]){if(9===Ge){if(!(ye=U.getElementById(ce)))return ie;if(ye.id===ce)return se.call(ie,ye),ie}else if(Fe&&(ye=Fe.getElementById(ce))&&Me.contains(U,ye)&&ye.id===ce)return se.call(ie,ye),ie}else{if(we[2])return se.apply(ie,U.getElementsByTagName(X)),ie;if((ce=we[3])&&U.getElementsByClassName)return se.apply(ie,U.getElementsByClassName(ce)),ie}if(!(ht[X+" "]||B&&B.test(X))){if(_e=X,Fe=U,1===Ge&&(gs.test(X)||ki.test(X))){for((Fe=dt.test(X)&&Ys(U.parentNode)||U)==U&&ke.scope||((Se=U.getAttribute("id"))?Se=S.escapeSelector(Se):U.setAttribute("id",Se=re)),be=(We=fs(X)).length;be--;)We[be]=(Se?"#"+Se:":scope")+" "+Ls(We[be]);_e=We.join(",")}try{return se.apply(ie,Fe.querySelectorAll(_e)),ie}catch{ht(X,!0)}finally{Se===re&&U.removeAttribute("id")}}}return Is(X.replace(It,"$1"),U,ie,ae)}function nt(){var X=[];return function U(ie,ae){return X.push(ie+" ")>p.cacheLength&&delete U[X.shift()],U[ie+" "]=ae}}function lt(X){return X[re]=!0,X}function it(X){var U=D.createElement("fieldset");try{return!!X(U)}catch{return!1}finally{U.parentNode&&U.parentNode.removeChild(U),U=null}}function vi(X){return function(U){return Ue(U,"input")&&U.type===X}}function ts(X){return function(U){return(Ue(U,"input")||Ue(U,"button"))&&U.type===X}}function Hi(X){return function(U){return"form"in U?U.parentNode&&!1===U.disabled?"label"in U?"label"in U.parentNode?U.parentNode.disabled===X:U.disabled===X:U.isDisabled===X||U.isDisabled!==!X&&Mt(U)===X:U.disabled===X:"label"in U&&U.disabled===X}}function Ft(X){return lt(function(U){return U=+U,lt(function(ie,ae){for(var ce,be=X([],ie.length,U),ye=be.length;ye--;)ie[ce=be[ye]]&&(ie[ce]=!(ae[ce]=ie[ce]))})})}function Ys(X){return X&&typeof X.getElementsByTagName<"u"&&X}function Xi(X){var U,ie=X?X.ownerDocument||X:zt;return ie!=D&&9===ie.nodeType&&ie.documentElement&&(H=(D=ie).documentElement,j=!S.isXMLDoc(D),Q=H.matches||H.webkitMatchesSelector||H.msMatchesSelector,H.msMatchesSelector&&zt!=D&&(U=D.defaultView)&&U.top!==U&&U.addEventListener("unload",Si),ke.getById=it(function(ae){return H.appendChild(ae).id=S.expando,!D.getElementsByName||!D.getElementsByName(S.expando).length}),ke.disconnectedMatch=it(function(ae){return Q.call(ae,"*")}),ke.scope=it(function(){return D.querySelectorAll(":scope")}),ke.cssHas=it(function(){try{return D.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),ke.getById?(p.filter.ID=function(ae){var ce=ae.replace(ot,Et);return function(be){return be.getAttribute("id")===ce}},p.find.ID=function(ae,ce){if(typeof ce.getElementById<"u"&&j){var be=ce.getElementById(ae);return be?[be]:[]}}):(p.filter.ID=function(ae){var ce=ae.replace(ot,Et);return function(be){var ye=typeof be.getAttributeNode<"u"&&be.getAttributeNode("id");return ye&&ye.value===ce}},p.find.ID=function(ae,ce){if(typeof ce.getElementById<"u"&&j){var be,ye,Se,we=ce.getElementById(ae);if(we){if((be=we.getAttributeNode("id"))&&be.value===ae)return[we];for(Se=ce.getElementsByName(ae),ye=0;we=Se[ye++];)if((be=we.getAttributeNode("id"))&&be.value===ae)return[we]}return[]}}),p.find.TAG=function(ae,ce){return typeof ce.getElementsByTagName<"u"?ce.getElementsByTagName(ae):ce.querySelectorAll(ae)},p.find.CLASS=function(ae,ce){if(typeof ce.getElementsByClassName<"u"&&j)return ce.getElementsByClassName(ae)},B=[],it(function(ae){var ce;H.appendChild(ae).innerHTML="<a id='"+re+"' href='' disabled='disabled'></a><select id='"+re+"-\r\\' disabled='disabled'><option selected=''></option></select>",ae.querySelectorAll("[selected]").length||B.push("\\["+Ze+"*(?:value|"+pi+")"),ae.querySelectorAll("[id~="+re+"-]").length||B.push("~="),ae.querySelectorAll("a#"+re+"+*").length||B.push(".#.+[+~]"),ae.querySelectorAll(":checked").length||B.push(":checked"),(ce=D.createElement("input")).setAttribute("type","hidden"),ae.appendChild(ce).setAttribute("name","D"),H.appendChild(ae).disabled=!0,2!==ae.querySelectorAll(":disabled").length&&B.push(":enabled",":disabled"),(ce=D.createElement("input")).setAttribute("name",""),ae.appendChild(ce),ae.querySelectorAll("[name='']").length||B.push("\\["+Ze+"*name"+Ze+"*="+Ze+"*(?:''|\"\")")}),ke.cssHas||B.push(":has"),B=B.length&&new RegExp(B.join("|")),yt=function(ae,ce){if(ae===ce)return P=!0,0;var be=!ae.compareDocumentPosition-!ce.compareDocumentPosition;return be||(1&(be=(ae.ownerDocument||ae)==(ce.ownerDocument||ce)?ae.compareDocumentPosition(ce):1)||!ke.sortDetached&&ce.compareDocumentPosition(ae)===be?ae===D||ae.ownerDocument==zt&&Me.contains(zt,ae)?-1:ce===D||ce.ownerDocument==zt&&Me.contains(zt,ce)?1:A?R.call(A,ae)-R.call(A,ce):0:4&be?-1:1)}),D}for(c in Me.matches=function(X,U){return Me(X,null,null,U)},Me.matchesSelector=function(X,U){if(Xi(X),j&&!ht[U+" "]&&(!B||!B.test(U)))try{var ie=Q.call(X,U);if(ie||ke.disconnectedMatch||X.document&&11!==X.document.nodeType)return ie}catch{ht(U,!0)}return 0<Me(U,D,null,[X]).length},Me.contains=function(X,U){return(X.ownerDocument||X)!=D&&Xi(X),S.contains(X,U)},Me.attr=function(X,U){(X.ownerDocument||X)!=D&&Xi(X);var ie=p.attrHandle[U.toLowerCase()],ae=ie&&et.call(p.attrHandle,U.toLowerCase())?ie(X,U,!j):void 0;return void 0!==ae?ae:X.getAttribute(U)},Me.error=function(X){throw new Error("Syntax error, unrecognized expression: "+X)},S.uniqueSort=function(X){var U,ie=[],ae=0,ce=0;if(P=!ke.sortStable,A=!ke.sortStable&&V.call(X,0),vs.call(X,yt),P){for(;U=X[ce++];)U===X[ce]&&(ae=ie.push(ce));for(;ae--;)bs.call(X,ie[ae],1)}return A=null,X},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(V.apply(this)))},(p=S.expr={cacheLength:50,createPseudo:lt,match:Ai,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(X){return X[1]=X[1].replace(ot,Et),X[3]=(X[3]||X[4]||X[5]||"").replace(ot,Et),"~="===X[2]&&(X[3]=" "+X[3]+" "),X.slice(0,4)},CHILD:function(X){return X[1]=X[1].toLowerCase(),"nth"===X[1].slice(0,3)?(X[3]||Me.error(X[0]),X[4]=+(X[4]?X[5]+(X[6]||1):2*("even"===X[3]||"odd"===X[3])),X[5]=+(X[7]+X[8]||"odd"===X[3])):X[3]&&Me.error(X[0]),X},PSEUDO:function(X){var U,ie=!X[6]&&X[2];return Ai.CHILD.test(X[0])?null:(X[3]?X[2]=X[4]||X[5]||"":ie&&mi.test(ie)&&(U=fs(ie,!0))&&(U=ie.indexOf(")",ie.length-U)-ie.length)&&(X[0]=X[0].slice(0,U),X[2]=ie.slice(0,U)),X.slice(0,3))}},filter:{TAG:function(X){var U=X.replace(ot,Et).toLowerCase();return"*"===X?function(){return!0}:function(ie){return Ue(ie,U)}},CLASS:function(X){var U=Ee[X+" "];return U||(U=new RegExp("(^|"+Ze+")"+X+"("+Ze+"|$)"))&&Ee(X,function(ie){return U.test("string"==typeof ie.className&&ie.className||typeof ie.getAttribute<"u"&&ie.getAttribute("class")||"")})},ATTR:function(X,U,ie){return function(ae){var ce=Me.attr(ae,X);return null==ce?"!="===U:!U||(ce+="","="===U?ce===ie:"!="===U?ce!==ie:"^="===U?ie&&0===ce.indexOf(ie):"*="===U?ie&&-1<ce.indexOf(ie):"$="===U?ie&&ce.slice(-ie.length)===ie:"~="===U?-1<(" "+ce.replace(je," ")+" ").indexOf(ie):"|="===U&&(ce===ie||ce.slice(0,ie.length+1)===ie+"-"))}},CHILD:function(X,U,ie,ae,ce){var be="nth"!==X.slice(0,3),ye="last"!==X.slice(-4),Se="of-type"===U;return 1===ae&&0===ce?function(we){return!!we.parentNode}:function(we,We,_e){var Fe,Ge,Oe,ft,Lt,wt=be!==ye?"nextSibling":"previousSibling",Ht=we.parentNode,Rt=Se&&we.nodeName.toLowerCase(),Kt=!_e&&!Se,Je=!1;if(Ht){if(be){for(;wt;){for(Oe=we;Oe=Oe[wt];)if(Se?Ue(Oe,Rt):1===Oe.nodeType)return!1;Lt=wt="only"===X&&!Lt&&"nextSibling"}return!0}if(Lt=[ye?Ht.firstChild:Ht.lastChild],ye&&Kt){for(Je=(ft=(Fe=(Ge=Ht[re]||(Ht[re]={}))[X]||[])[0]===ee&&Fe[1])&&Fe[2],Oe=ft&&Ht.childNodes[ft];Oe=++ft&&Oe&&Oe[wt]||(Je=ft=0)||Lt.pop();)if(1===Oe.nodeType&&++Je&&Oe===we){Ge[X]=[ee,ft,Je];break}}else if(Kt&&(Je=ft=(Fe=(Ge=we[re]||(we[re]={}))[X]||[])[0]===ee&&Fe[1]),!1===Je)for(;(Oe=++ft&&Oe&&Oe[wt]||(Je=ft=0)||Lt.pop())&&(!(Se?Ue(Oe,Rt):1===Oe.nodeType)||!++Je||(Kt&&((Ge=Oe[re]||(Oe[re]={}))[X]=[ee,Je]),Oe!==we)););return(Je-=ce)===ae||Je%ae==0&&0<=Je/ae}}},PSEUDO:function(X,U){var ie,ae=p.pseudos[X]||p.setFilters[X.toLowerCase()]||Me.error("unsupported pseudo: "+X);return ae[re]?ae(U):1<ae.length?(ie=[X,X,"",U],p.setFilters.hasOwnProperty(X.toLowerCase())?lt(function(ce,be){for(var ye,Se=ae(ce,U),we=Se.length;we--;)ce[ye=R.call(ce,Se[we])]=!(be[ye]=Se[we])}):function(ce){return ae(ce,0,ie)}):ae}},pseudos:{not:lt(function(X){var U=[],ie=[],ae=_s(X.replace(It,"$1"));return ae[re]?lt(function(ce,be,ye,Se){for(var we,We=ae(ce,null,Se,[]),_e=ce.length;_e--;)(we=We[_e])&&(ce[_e]=!(be[_e]=we))}):function(ce,be,ye){return U[0]=ce,ae(U,null,ye,ie),U[0]=null,!ie.pop()}}),has:lt(function(X){return function(U){return 0<Me(X,U).length}}
vendor: 19,503 bytes, line 1
1),contains:lt(function(X){return X=X.replace(ot,Et),function(U){return-1<(U.textContent||S.text(U)).indexOf(X)}}),lang:lt(function(X){return ps.test(X||"")||Me.error("unsupported lang: "+X),X=X.replace(ot,Et).toLowerCase(),function(U){var ie;do{if(ie=j?U.lang:U.getAttribute("xml:lang")||U.getAttribute("lang"))return(ie=ie.toLowerCase())===X||0===ie.indexOf(X+"-")}while((U=U.parentNode)&&1===U.nodeType);return!1}}),target:function(X){var U=J.location&&J.location.hash;return U&&U.slice(1)===X.id},root:function(X){return X===H},focus:function(X){return X===function(){try{return D.activeElement}catch{}}()&&D.hasFocus()&&!!(X.type||X.href||~X.tabIndex)},enabled:Hi(!1),disabled:Hi(!0),checked:function(X){return Ue(X,"input")&&!!X.checked||Ue(X,"option")&&!!X.selected},selected:function(X){return!0===X.selected},empty:function(X){for(X=X.firstChild;X;X=X.nextSibling)if(X.nodeType<6)return!1;return!0},parent:function(X){return!p.pseudos.empty(X)},header:function(X){return es.test(X.nodeName)},input:function(X){return Nt.test(X.nodeName)},button:function(X){return Ue(X,"input")&&"button"===X.type||Ue(X,"button")},text:function(X){var U;return Ue(X,"input")&&"text"===X.type&&(null==(U=X.getAttribute("type"))||"text"===U.toLowerCase())},first:Ft(function(){return[0]}),last:Ft(function(X,U){return[U-1]}),eq:Ft(function(X,U,ie){return[ie<0?ie+U:ie]}),even:Ft(function(X,U){for(var ie=0;ie<U;ie+=2)X.push(ie);return X}),odd:Ft(function(X,U){for(var ie=1;ie<U;ie+=2)X.push(ie);return X}),lt:Ft(function(X,U,ie){var ae;for(ae=ie<0?ie+U:U<ie?U:ie;0<=--ae;)X.push(ae);return X}),gt:Ft(function(X,U,ie){for(var ae=ie<0?ie+U:ie;++ae<U;)X.push(ae);return X})}}).pseudos.nth=p.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})p.pseudos[c]=vi(c);for(c in{submit:!0,reset:!0})p.pseudos[c]=ts(c);function qs(){}function fs(X,U){var ie,ae,ce,be,ye,Se,we,We=Ne[X+" "];if(We)return U?0:We.slice(0);for(ye=X,Se=[],we=p.preFilter;ye;){for(be in ie&&!(ae=at.exec(ye))||(ae&&(ye=ye.slice(ae[0].length)||ye),Se.push(ce=[])),ie=!1,(ae=ki.exec(ye))&&(ie=ae.shift(),ce.push({value:ie,type:ae[0].replace(It," ")}),ye=ye.slice(ie.length)),p.filter)!(ae=Ai[be].exec(ye))||we[be]&&!(ae=we[be](ae))||(ie=ae.shift(),ce.push({value:ie,type:be,matches:ae}),ye=ye.slice(ie.length));if(!ie)break}return U?ye.length:ye?Me.error(X):Ne(X,Se).slice(0)}function Ls(X){for(var U=0,ie=X.length,ae="";U<ie;U++)ae+=X[U].value;return ae}function Ps(X,U,ie){var ae=U.dir,ce=U.next,be=ce||ae,ye=ie&&"parentNode"===be,Se=de++;return U.first?function(we,We,_e){for(;we=we[ae];)if(1===we.nodeType||ye)return X(we,We,_e);return!1}:function(we,We,_e){var Fe,Ge,Oe=[ee,Se];if(_e){for(;we=we[ae];)if((1===we.nodeType||ye)&&X(we,We,_e))return!0}else for(;we=we[ae];)if(1===we.nodeType||ye)if(Ge=we[re]||(we[re]={}),ce&&Ue(we,ce))we=we[ae]||we;else{if((Fe=Ge[be])&&Fe[0]===ee&&Fe[1]===Se)return Oe[2]=Fe[2];if((Ge[be]=Oe)[2]=X(we,We,_e))return!0}return!1}}function Ws(X){return 1<X.length?function(U,ie,ae){for(var ce=X.length;ce--;)if(!X[ce](U,ie,ae))return!1;return!0}:X[0]}function Es(X,U,ie,ae,ce){for(var be,ye=[],Se=0,we=X.length,We=null!=U;Se<we;Se++)(be=X[Se])&&(ie&&!ie(be,ae,ce)||(ye.push(be),We&&U.push(Se)));return ye}function Ms(X,U,ie,ae,ce,be){return ae&&!ae[re]&&(ae=Ms(ae)),ce&&!ce[re]&&(ce=Ms(ce,be)),lt(function(ye,Se,we,We){var _e,Fe,Ge,Oe,ft=[],Lt=[],wt=Se.length,Ht=ye||function(Kt,Je,bi){for(var ni=0,zs=Je.length;ni<zs;ni++)Me(Kt,Je[ni],bi);return bi}(U||"*",we.nodeType?[we]:we,[]),Rt=!X||!ye&&U?Ht:Es(Ht,ft,X,we,We);if(ie?ie(Rt,Oe=ce||(ye?X:wt||ae)?[]:Se,we,We):Oe=Rt,ae)for(_e=Es(Oe,Lt),ae(_e,[],we,We),Fe=_e.length;Fe--;)(Ge=_e[Fe])&&(Oe[Lt[Fe]]=!(Rt[Lt[Fe]]=Ge));if(ye){if(ce||X){if(ce){for(_e=[],Fe=Oe.length;Fe--;)(Ge=Oe[Fe])&&_e.push(Rt[Fe]=Ge);ce(null,Oe=[],_e,We)}for(Fe=Oe.length;Fe--;)(Ge=Oe[Fe])&&-1<(_e=ce?R.call(ye,Ge):ft[Fe])&&(ye[_e]=!(Se[_e]=Ge))}}else Oe=Es(Oe===Se?Oe.splice(wt,Oe.length):Oe),ce?ce(null,Se,Oe,We):se.apply(Se,Oe)})}function Bs(X){for(var U,ie,ae,ce=X.length,be=p.relative[X[0].type],ye=be||p.relative[" "],Se=be?1:0,we=Ps(function(Fe){return Fe===U},ye,!0),We=Ps(function(Fe){return-1<R.call(U,Fe)},ye,!0),_e=[function(Fe,Ge,Oe){var ft=!be&&(Oe||Ge!=y)||((U=Ge).nodeType?we(Fe,Ge,Oe):We(Fe,Ge,Oe));return U=null,ft}];Se<ce;Se++)if(ie=p.relative[X[Se].type])_e=[Ps(Ws(_e),ie)];else{if((ie=p.filter[X[Se].type].apply(null,X[Se].matches))[re]){for(ae=++Se;ae<ce&&!p.relative[X[ae].type];ae++);return Ms(1<Se&&Ws(_e),1<Se&&Ls(X.slice(0,Se-1).concat({value:" "===X[Se-2].type?"*":""})).replace(It,"$1"),ie,Se<ae&&Bs(X.slice(Se,ae)),ae<ce&&Bs(X=X.slice(ae)),ae<ce&&Ls(X))}_e.push(ie)}return Ws(_e)}function _s(X,U){var ie,ae,ce,be,ye,Se,we=[],We=[],_e=He[X+" "];if(!_e){for(U||(U=fs(X)),ie=U.length;ie--;)(_e=Bs(U[ie]))[re]?we.push(_e):We.push(_e);(_e=He(X,(ae=We,be=0<(ce=we).length,ye=0<ae.length,Se=function(Fe,Ge,Oe,ft,Lt){var wt,Ht,Rt,Kt=0,Je="0",bi=Fe&&[],ni=[],zs=y,is=Fe||ye&&p.find.TAG("*",Lt),G=ee+=null==zs?1:Math.random()||.1,v=is.length;for(Lt&&(y=Ge==D||Ge||Lt);Je!==v&&null!=(wt=is[Je]);Je++){if(ye&&wt){for(Ht=0,Ge||wt.ownerDocument==D||(Xi(wt),Oe=!j);Rt=ae[Ht++];)if(Rt(wt,Ge||D,Oe)){se.call(ft,wt);break}Lt&&(ee=G)}be&&((wt=!Rt&&wt)&&Kt--,Fe&&bi.push(wt))}if(Kt+=Je,be&&Je!==Kt){for(Ht=0;Rt=ce[Ht++];)Rt(bi,ni,Ge,Oe);if(Fe){if(0<Kt)for(;Je--;)bi[Je]||ni[Je]||(ni[Je]=Yt.call(ft));ni=Es(ni)}se.apply(ft,ni),Lt&&!Fe&&0<ni.length&&1<Kt+ce.length&&S.uniqueSort(ft)}return Lt&&(ee=G,y=zs),bi},be?lt(Se):Se))).selector=X}return _e}function Is(X,U,ie,ae){var ce,be,ye,Se,we,We="function"==typeof X&&X,_e=!ae&&fs(X=We.selector||X);if(ie=ie||[],1===_e.length){if(2<(be=_e[0]=_e[0].slice(0)).length&&"ID"===(ye=be[0]).type&&9===U.nodeType&&j&&p.relative[be[1].type]){if(!(U=(p.find.ID(ye.matches[0].replace(ot,Et),U)||[])[0]))return ie;We&&(U=U.parentNode),X=X.slice(be.shift().value.length)}for(ce=Ai.needsContext.test(X)?0:be.length;ce--&&!p.relative[Se=(ye=be[ce]).type];)if((we=p.find[Se])&&(ae=we(ye.matches[0].replace(ot,Et),dt.test(be[0].type)&&Ys(U.parentNode)||U))){if(be.splice(ce,1),!(X=ae.length&&Ls(be)))return se.apply(ie,ae),ie;break}}return(We||_s(X,_e))(ae,U,!j,ie,!U||dt.test(X)&&Ys(U.parentNode)||U),ie}qs.prototype=p.filters=p.pseudos,p.setFilters=new qs,ke.sortStable=re.split("").sort(yt).join("")===re,Xi(),ke.sortDetached=it(function(X){return 1&X.compareDocumentPosition(D.createElement("fieldset"))}),S.find=Me,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Me.compile=_s,Me.select=Is,Me.setDocument=Xi,Me.tokenize=fs,Me.escape=S.escapeSelector,Me.getText=S.text,Me.isXML=S.isXMLDoc,Me.selectors=S.expr,Me.support=S.support,Me.uniqueSort=S.uniqueSort}();var Dt=function(c,p,y){for(var A=[],P=void 0!==y;(c=c[p])&&9!==c.nodeType;)if(1===c.nodeType){if(P&&S(c).is(y))break;A.push(c)}return A},ss=function(c,p){for(var y=[];c;c=c.nextSibling)1===c.nodeType&&c!==p&&y.push(c);return y},as=S.expr.match.needsContext,he=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Wt(c,p,y){return Ie(p)?S.grep(c,function(A,P){return!!p.call(A,P,A)!==y}):p.nodeType?S.grep(c,function(A){return A===p!==y}):"string"!=typeof p?S.grep(c,function(A){return-1<R.call(p,A)!==y}):S.filter(p,c,y)}S.filter=function(c,p,y){var A=p[0];return y&&(c=":not("+c+")"),1===p.length&&1===A.nodeType?S.find.matchesSelector(A,c)?[A]:[]:S.find.matches(c,S.grep(p,function(P){return 1===P.nodeType}))},S.fn.extend({find:function(c){var p,y,A=this.length,P=this;if("string"!=typeof c)return this.pushStack(S(c).filter(function(){for(p=0;p<A;p++)if(S.contains(P[p],this))return!0}));for(y=this.pushStack([]),p=0;p<A;p++)S.find(c,P[p],y);return 1<A?S.uniqueSort(y):y},filter:function(c){return this.pushStack(Wt(this,c||[],!1))},not:function(c){return this.pushStack(Wt(this,c||[],!0))},is:function(c){return!!Wt(this,"string"==typeof c&&as.test(c)?S(c):c||[],!1).length}});var Vi,li=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(c,p,y){var A,P;if(!c)return this;if(y=y||Vi,"string"==typeof c){if(!(A="<"===c[0]&&">"===c[c.length-1]&&3<=c.length?[null,c,null]:li.exec(c))||!A[1]&&p)return!p||p.jquery?(p||y).find(c):this.constructor(p).find(c);if(A[1]){if(S.merge(this,S.parseHTML(A[1],(p=p instanceof S?p[0]:p)&&p.nodeType?p.ownerDocument||p:W,!0)),he.test(A[1])&&S.isPlainObject(p))for(A in p)Ie(this[A])?this[A](p[A]):this.attr(A,p[A]);return this}return(P=W.getElementById(A[2]))&&(this[0]=P,this.length=1),this}return c.nodeType?(this[0]=c,this.length=1,this):Ie(c)?void 0!==y.ready?y.ready(c):c(S):S.makeArray(c,this)}).prototype=S.fn,Vi=S(W);var rt=/^(?:parents|prev(?:Until|All))/,Pi={children:!0,contents:!0,next:!0,prev:!0};function At(c,p){for(;(c=c[p])&&1!==c.nodeType;);return c}S.fn.extend({has:function(c){var p=S(c,this),y=p.length;return this.filter(function(){for(var A=0;A<y;A++)if(S.contains(this,p[A]))return!0})},closest:function(c,p){var y,A=0,P=this.length,D=[],H="string"!=typeof c&&S(c);if(!as.test(c))for(;A<P;A++)for(y=this[A];y&&y!==p;y=y.parentNode)if(y.nodeType<11&&(H?-1<H.index(y):1===y.nodeType&&S.find.matchesSelector(y,c))){D.push(y);break}return this.pushStack(1<D.length?S.uniqueSort(D):D)},index:function(c){return c?"string"==typeof c?R.call(S(c),this[0]):R.call(this,c.jquery?c[0]:c):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(c,p){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(c,p))))},addBack:function(c){return this.add(null==c?this.prevObject:this.prevObject.filter(c))}}),S.each({parent:function(c){var p=c.parentNode;return p&&11!==p.nodeType?p:null},parents:function(c){return Dt(c,"parentNode")},parentsUntil:function(c,p,y){return Dt(c,"parentNode",y)},next:function(c){return At(c,"nextSibling")},prev:function(c){return At(c,"previousSibling")},nextAll:function(c){return Dt(c,"nextSibling")},prevAll:function(c){return Dt(c,"previousSibling")},nextUntil:function(c,p,y){return Dt(c,"nextSibling",y)},prevUntil:function(c,p,y){return Dt(c,"previousSibling",y)},siblings:function(c){return ss((c.parentNode||{}).firstChild,c)},children:function(c){return ss(c.firstChild)},contents:function(c){return null!=c.contentDocument&&E(c.contentDocument)?c.contentDocument:(Ue(c,"template")&&(c=c.content||c),S.merge([],c.childNodes))}},function(c,p){S.fn[c]=function(y,A){var P=S.map(this,p,y);return"Until"!==c.slice(-5)&&(A=y),A&&"string"==typeof A&&(P=S.filter(A,P)),1<this.length&&(Pi[c]||S.uniqueSort(P),rt.test(c)&&P.reverse()),this.pushStack(P)}});var xt=/[^\x20\t\r\n\f]+/g;function Ce(c){return c}function ci(c){throw c}function Fi(c,p,y,A){var P;try{c&&Ie(P=c.promise)?P.call(c).done(p).fail(y):c&&Ie(P=c.then)?P.call(c,p,y):p.apply(void 0,[c].slice(A))}catch(D){y.apply(void 0,[D])}}S.Callbacks=function(c){var y;c="string"==typeof c?(y={},S.each(c.match(xt)||[],function(ee,de){y[de]=!0}),y):S.extend({},c);var A,P,D,H,j=[],B=[],Q=-1,se=function(){for(H=H||c.once,D=A=!0;B.length;Q=-1)for(P=B.shift();++Q<j.length;)!1===j[Q].apply(P[0],P[1])&&c.stopOnFalse&&(Q=j.length,P=!1);c.memory||(P=!1),A=!1,H&&(j=P?[]:"")},re={add:function(){return j&&(P&&!A&&(Q=j.length-1,B.push(P)),function ee(de){S.each(de,function(Ee,Ne){Ie(Ne)?c.unique&&re.has(Ne)||j.push(Ne):Ne&&Ne.length&&"string"!==ne(Ne)&&ee(Ne)})}(arguments),P&&!A&&se()),this},remove:function(){return S.each(arguments,function(ee,de){for(var Ee;-1<(Ee=S.inArray(de,j,Ee));)j.splice(Ee,1),Ee<=Q&&Q--}),this},has:function(ee){return ee?-1<S.inArray(ee,j):0<j.length},empty:function(){return j&&(j=[]),this},disable:function(){return H=B=[],j=P="",this},disabled:function(){return!j},lock:function(){return H=B=[],P||A||(j=P=""),this},locked:function(){return!!H},fireWith:function(ee,de){return H||(de=[ee,(de=de||[]).slice?de.slice():de],B.push(de),A||se()),this},fire:function(){return re.fireWith(this,arguments),this},fired:function(){return!!D}};return re},S.extend({Deferred:function(c){var p=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],y="pending",A={state:function(){return y},always:function(){return P.done(arguments).fail(arguments),this},catch:function(D){return A.then(null,D)},pipe:function(){var D=arguments;return S.Deferred(function(H){S.each(p,function(j,B){var Q=Ie(D[B[4]])&&D[B[4]];P[B[1]](function(){var se=Q&&Q.apply(this,arguments);se&&Ie(se.promise)?se.promise().progress(H.notify).done(H.resolve).fail(H.reject):H[B[0]+"With"](this,Q?[se]:arguments)})}),D=null}).promise()},then:function(D,H,j){var B=0;function Q(se,re,ee,de){return function(){var Ee=this,Ne=arguments,He=function(){var yt,pi;if(!(se<B)){if((yt=ee.apply(Ee,Ne))===re.promise())throw new TypeError("Thenable self-resolution");Ie(pi=yt&&("object"==typeof yt||"function"==typeof yt)&&yt.then)?de?pi.call(yt,Q(B,re,Ce,de),Q(B,re,ci,de)):(B++,pi.call(yt,Q(B,re,Ce,de),Q(B,re,ci,de),Q(B,re,Ce,re.notifyWith))):(ee!==Ce&&(Ee=void 0,Ne=[yt]),(de||re.resolveWith)(Ee,Ne))}},ht=de?He:function(){try{He()}catch(yt){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(yt,ht.error),B<=se+1&&(ee!==ci&&(Ee=void 0,Ne=[yt]),re.rejectWith(Ee,Ne))}};se?ht():(S.Deferred.getErrorHook?ht.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(ht.error=S.Deferred.getStackHook()),J.setTimeout(ht))}}return S.Deferred(function(se){p[0][3].add(Q(0,se,Ie(j)?j:Ce,se.notifyWith)),p[1][3].add(Q(0,se,Ie(D)?D:Ce)),p[2][3].add(Q(0,se,Ie(H)?H:ci))}).promise()},promise:function(D){return null!=D?S.extend(D,A):A}},P={};return S.each(p,function(D,H){var j=H[2],B=H[5];A[H[1]]=j.add,B&&j.add(function(){y=B},p[3-D][2].disable,p[3-D][3].disable,p[0][2].lock,p[0][3].lock),j.add(H[3].fire),P[H[0]]=function(){return P[H[0]+"With"](this===P?void 0:this,arguments),this},P[H[0]+"With"]=j.fireWith}),A.promise(P),c&&c.call(P,P),P},when:function(c){var p=arguments.length,y=p,A=Array(y),P=V.call(arguments),D=S.Deferred(),H=function(j){return function(B){A[j]=this,P[j]=1<arguments.length?V.call(arguments):B,--p||D.resolveWith(A,P)}};if(p<=1&&(Fi(c,D.done(H(y)).resolve,D.reject,!p),"pending"===D.state()||Ie(P[y]&&P[y].then)))return D.then();for(;y--;)Fi(P[y],H(y),D.reject);return D.promise()}});var ns=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(c,p){J.console&&J.console.warn&&c&&ns.test(c.name)&&J.console.warn("jQuery.Deferred exception: "+c.message,c.stack,p)},S.readyException=function(c){J.setTimeout(function(){throw c})};var rs=S.Deferred();function hi(){W.removeEventListener("DOMContentLoaded",hi),J.removeEventListener("load",hi),S.ready()}S.fn.ready=function(c){return rs.then(c).catch(function(p){S.readyException(p)}),this},S.extend({isReady:!1,readyWait:1,ready:function(c){(!0===c?--S.readyWait:S.isReady)||(S.isReady=!0)!==c&&0<--S.readyWait||rs.resolveWith(W,[S])}}),S.ready.then=rs.then,"complete"===W.readyState||"loading"!==W.readyState&&!W.documentElement.doScroll?J.setTimeout(S.ready):(W.addEventListener("DOMContentLoaded",hi),J.addEventListener("load",hi));var Bt=function(c,p,y,A,P,D,H){var j=0,B=c.length,Q=null==y;if("object"===ne(y))for(j in P=!0,y)Bt(c,p,j,y[j],!0,D,H);else if(void 0!==A&&(P=!0,Ie(A)||(H=!0),Q&&(H?(p.call(c,A),p=null):(Q=p,p=function(se,re,ee){return Q.call(S(se),ee)})),p))for(;j<B;j++)p(c[j],y,H?A:A.call(c[j],j,p(c[j],y)));return P?c:Q?p.call(c):B?p(c[0],y):D},yi=/^-ms-/,Ei=/-([a-z])/g;function Ds(c,p){return p.toUpperCase()}function jt(c){return c.replace(yi,"ms-").replace(Ei,Ds)}var Ri=function(c){return 1===c.nodeType||9===c.nodeType||!+c.nodeType};function Yi(){this.expando=S.expando+Yi.uid++}Yi.uid=1,Yi.prototype={cache:function(c){var p=c[this.expando];return p||(p={},Ri(c)&&(c.nodeType?c[this.expando]=p:Object.defineProperty(c,this.expando,{value:p,configurable:!0}))),p},set:function(c,p,y){var A,P=this.cache(c);if("string"==typeof p)P[jt(p)]=y;else for(A in p)P[jt(A)]=p[A];return P},get:function(c,p){return void 0===p?this.cache(c):c[this.expando]&&c[this.expando][jt(p)]},access:function(c,p,y){return void 0===p||p&&"string"==typeof p&&void 0===y?this.get(c,p):(this.set(c,p,y),void 0!==y?y:p)},remove:function(c,p){var y,A=c[this.expando];if(void 0!==A){if(void 0!==p)for((y=(p=Array.isArray(p)?p.map(jt):(p=jt(p))in A?[p]:p.match(xt)||[]).length);y--;)delete A[p[y]];(void 0===p||S.isEmptyObject(A))&&(c.nodeType?c[this.expando]=void 0:delete c[this.expando])}},hasData:function(c){var p=c[this.expando];return void 0!==p&&!S.isEmptyObject(p)}};var Pe=new Yi,Tt=new Yi,qi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ui=/[A-Z]/g;function Gt(c,p,y){var A,P;if(void 0===y&&1===c.nodeType)if(A="data-"+p.replace(Ui,"-$&").toLowerCase(),"string"==typeof(y=c.getAttribute(A))){try{y="true"===(P=y)||"false"!==P&&("null"===P?null:P===+P+""?+P:qi.test(P)?JSON.parse(P):P)}catch{}Tt.set(c,p,y)}else y=void 0;return y}S.extend({hasData:function(c){return Tt.hasData(c)||Pe.hasData(c)},data:function(c,p,y){return Tt.access(c,p,y)},removeData:function(c,p){Tt.remove(c,p)},_data:function(c,p,y){return Pe.access(c,p,y)},_removeData:function(c,p){Pe.remove(c,p)}}),S.fn.extend({data:function(c,p){var y,A,P,D=this[0],H=D&&D.attributes;if(void 0===c){if(this.length&&(P=Tt.get(D),1===D.nodeType&&!Pe.get(D,"hasDataAttrs"))){for(y=H.length;y--;)H[y]&&0===(A=H[y].name).indexOf("data-")&&(A=jt(A.slice(5)),Gt(D,A,P[A]));Pe.set(D,"hasDataAttrs",!0)}return P}return"object"==typeof c?this.each(function(){Tt.set(this,c)}):Bt(this,function(j){var B;if(D&&void 0===j)return void 0!==(B=Tt.get(D,c))||void 0!==(B=Gt(D,c))?B:void 0;this.each(function(){Tt.set(this,c,j)})},null,p,1<arguments.length,null,!0)},removeData:function(c){return this.each(function(){Tt.remove(this,c)})}}),S.extend({queue:function(c,p,y){var A;if(c)return A=Pe.get(c,p=(p||"fx")+"queue"),y&&(!A||Array.isArray(y)?A=Pe.access(c,p,S.makeArray(y)):A.push(y)),A||[]},dequeue:function(c,p){var y=S.queue(c,p=p||"fx"),A=y.length,P=y.shift(),D=S._queueHooks(c,p);"inprogress"===P&&(P=y.shift(),A--),P&&("fx"===p&&y.unshift("inprogress"),delete D.stop,P.call(c,function(){S.dequeue(c,p)},D)),!A&&D&&D.empty.fire()},_queueHooks:function(c,p){var y=p+"queueHooks";return Pe.get(c,y)||Pe.access(c,y,{empty:S.Callbacks("once memory").add(function(){Pe.remove(c,[p+"queue",y])})})}}),S.fn.extend({queue:function(c,p){var y=2;return"string"!=typeof c&&(p=c,c="fx",y--),arguments.length<y?S.queue(this[0],c):void 0===p?this:this.each(function(){var A=S.queue(this,c,p);S._queueHooks(this,c),"fx"===c&&"inprogress"!==A[0]&&S.dequeue(this,c)})},dequeue:function(c){return this.each(function(){S.dequeue(this,c)})},clearQueue:function(c){return this.queue(c||"fx",[])},promise:function(c,p){var y,A=1,P=S.Deferred(),D=this,H=this.length,j=function(){--A||P.resolveWith(D,[D])};for("string"!=typeof c&&(p=c,c=void 0),c=c||"fx";H--;)(y=Pe.get(D[H],c+"queueHooks"))&&y.empty&&(A++,y.empty.add(j));return j(),P.promise(p)}});var Zi=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ei=new RegExp("^(?:([+-])=|)("+Zi+")([a-z%]*)$","i"),St=["Top","Right","Bottom","Left"],Ot=W.documentElement,$t=function(c){return S.contains(c.ownerDocument,c)},Os={composed:!0};Ot.getRootNode&&($t=function(c){return S.contains(c.ownerDocument,c)||c.getRootNode(Os)===c.ownerDocument});var Mi=function(c,p){return"none"===(c=p||c).style.display||""===c.style.display&&$t(c)&&"none"===S.css(c,"display")};function ws(c,p,y,A){var P,D,H=20,j=A?function(){return A.cur()}:function(){return S.css(c,p,"")},B=j(),Q=y&&y[3]||(S.cssNumber[p]?"":"px"),se=c.nodeType&&(S.cssNumber[p]||"px"!==Q&&+B)&&ei.exec(S.css(c,p));
vendor: 4,395 bytes, line 1
1if(se&&se[3]!==Q){for(Q=Q||se[3],se=+(B/=2)||1;H--;)S.style(c,p,se+Q),(1-D)*(1-(D=j()/B||.5))<=0&&(H=0),se/=D;S.style(c,p,(se*=2)+Q),y=y||[]}return y&&(se=+se||+B||0,P=y[1]?se+(y[1]+1)*y[2]:+y[2],A&&(A.unit=Q,A.start=se,A.end=P)),P}var os={};function _i(c,p){for(var y,A,P,D,H,j,B,Q=[],se=0,re=c.length;se<re;se++)(A=c[se]).style&&(y=A.style.display,p?("none"===y&&(Q[se]=Pe.get(A,"display")||null,Q[se]||(A.style.display="")),""===A.style.display&&Mi(A)&&(Q[se]=(B=H=D=void 0,H=(P=A).ownerDocument,(B=os[j=P.nodeName])||(D=H.body.appendChild(H.createElement(j)),B=S.css(D,"display"),D.parentNode.removeChild(D),"none"===B&&(B="block"),os[j]=B)))):"none"!==y&&(Q[se]="none",Pe.set(A,"display",y)));for(se=0;se<re;se++)null!=Q[se]&&(c[se].style.display=Q[se]);return c}S.fn.extend({show:function(){return _i(this,!0)},hide:function(){return _i(this)},toggle:function(c){return"boolean"==typeof c?c?this.show():this.hide():this.each(function(){Mi(this)?S(this).show():S(this).hide()})}});var wi,ti,Ii=/^(?:checkbox|radio)$/i,Wi=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,zi=/^$|^module$|\/(?:java|ecma)script/i;wi=W.createDocumentFragment().appendChild(W.createElement("div")),(ti=W.createElement("input")).setAttribute("type","radio"),ti.setAttribute("checked","checked"),ti.setAttribute("name","t"),wi.appendChild(ti),ke.checkClone=wi.cloneNode(!0).cloneNode(!0).lastChild.checked,wi.innerHTML="<textarea>x</textarea>",ke.noCloneChecked=!!wi.cloneNode(!0).lastChild.defaultValue,wi.innerHTML="<option></option>",ke.option=!!wi.lastChild;var Pt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function mt(c,p){var y;return y=typeof c.getElementsByTagName<"u"?c.getElementsByTagName(p||"*"):typeof c.querySelectorAll<"u"?c.querySelectorAll(p||"*"):[],void 0===p||p&&Ue(c,p)?S.merge([c],y):y}function Qi(c,p){for(var y=0,A=c.length;y<A;y++)Pe.set(c[y],"globalEval",!p||Pe.get(p[y],"globalEval"))}Pt.tbody=Pt.tfoot=Pt.colgroup=Pt.caption=Pt.thead,Pt.th=Pt.td,ke.option||(Pt.optgroup=Pt.option=[1,"<select multiple='multiple'>","</select>"]);var Ns=/<|&#?\w+;/;function ks(c,p,y,A,P){for(var D,H,j,B,Q,se,re=p.createDocumentFragment(),ee=[],de=0,Ee=c.length;de<Ee;de++)if((D=c[de])||0===D)if("object"===ne(D))S.merge(ee,D.nodeType?[D]:D);else if(Ns.test(D)){for(H=H||re.appendChild(p.createElement("div")),j=(Wi.exec(D)||["",""])[1].toLowerCase(),H.innerHTML=(B=Pt[j]||Pt._default)[1]+S.htmlPrefilter(D)+B[2],se=B[0];se--;)H=H.lastChild;S.merge(ee,H.childNodes),(H=re.firstChild).textContent=""}else ee.push(p.createTextNode(D));for(re.textContent="",de=0;D=ee[de++];)if(A&&-1<S.inArray(D,A))P&&P.push(D);else if(Q=$t(D),H=mt(re.appendChild(D),"script"),Q&&Qi(H),y)for(se=0;D=H[se++];)zi.test(D.type||"")&&y.push(D);return re}var As=/^([^.]*)(?:\.(.+)|)/;function Xt(){return!0}function Vt(){return!1}function ls(c,p,y,A,P,D){var H,j;if("object"==typeof p){for(j in"string"!=typeof y&&(A=A||y,y=void 0),p)ls(c,j,y,A,p[j],D);return c}if(null==A&&null==P?(P=y,A=y=void 0):null==P&&("string"==typeof y?(P=A,A=void 0):(P=A,A=y,y=void 0)),!1===P)P=Vt;else if(!P)return c;return 1===D&&(H=P,(P=function(B){return S().off(B),H.apply(this,arguments)}).guid=H.guid||(H.guid=S.guid++)),c.each(function(){S.event.add(this,p,P,A,y)})}function Ki(c,p,y){y?(Pe.set(c,p,!1),S.event.add(c,p,{namespace:!1,handler:function(A){var P,D=Pe.get(this,p);if(1&A.isTrigger&&this[p]){if(D)(S.event.special[p]||{}).delegateType&&A.stopPropagation();else if(D=V.call(arguments),Pe.set(this,p,D),this[p](),P=Pe.get(this,p),Pe.set(this,p,!1),D!==P)return A.stopImmediatePropagation(),A.preventDefault(),P}else D&&(Pe.set(this,p,S.event.trigger(D[0],D.slice(1),this)),A.stopPropagation(),A.isImmediatePropagationStopped=Xt)}})):void 0===Pe.get(c,p)&&S.event.add(c,p,Xt)}S.event={global:{},add:function(c,p,y,A,P){var D,H,j,B,Q,se,re,ee,de,Ee,Ne,He=Pe.get(c);if(Ri(c))for(y.handler&&(y=(D=y).handler,P=D.selector),P&&S.find.matchesSelector(Ot,P),y.guid||(y.guid=S.guid++),(B=He.events)||(B=He.events=Object.create(null)),(H=He.handle)||(H=He.handle=function(ht){return typeof S<"u"&&S.event.triggered!==ht.type?S.event.dispatch.apply(c,arguments):void 0}),Q=(p=(p||"").match(xt)||[""]).length;Q--;)de=Ne=(j=As.exec(p[Q])||[])[1],Ee=(j[2]||"").split(".").sort(),de&&(re=S.event.special[de]||{}
vendor: 4,999 bytes, line 1
1,re=S.event.special[de=(P?re.delegateType:re.bindType)||de]||{},se=S.extend({type:de,origType:Ne,data:A,handler:y,guid:y.guid,selector:P,needsContext:P&&S.expr.match.needsContext.test(P),namespace:Ee.join(".")},D),(ee=B[de])||((ee=B[de]=[]).delegateCount=0,re.setup&&!1!==re.setup.call(c,A,Ee,H)||c.addEventListener&&c.addEventListener(de,H)),re.add&&(re.add.call(c,se),se.handler.guid||(se.handler.guid=y.guid)),P?ee.splice(ee.delegateCount++,0,se):ee.push(se),S.event.global[de]=!0)},remove:function(c,p,y,A,P){var D,H,j,B,Q,se,re,ee,de,Ee,Ne,He=Pe.hasData(c)&&Pe.get(c);if(He&&(B=He.events)){for(Q=(p=(p||"").match(xt)||[""]).length;Q--;)if(de=Ne=(j=As.exec(p[Q])||[])[1],Ee=(j[2]||"").split(".").sort(),de){for(re=S.event.special[de]||{},ee=B[de=(A?re.delegateType:re.bindType)||de]||[],j=j[2]&&new RegExp("(^|\\.)"+Ee.join("\\.(?:.*\\.|)")+"(\\.|$)"),H=D=ee.length;D--;)se=ee[D],!P&&Ne!==se.origType||y&&y.guid!==se.guid||j&&!j.test(se.namespace)||A&&A!==se.selector&&("**"!==A||!se.selector)||(ee.splice(D,1),se.selector&&ee.delegateCount--,re.remove&&re.remove.call(c,se));H&&!ee.length&&(re.teardown&&!1!==re.teardown.call(c,Ee,He.handle)||S.removeEvent(c,de,He.handle),delete B[de])}else for(de in B)S.event.remove(c,de+p[Q],y,A,!0);S.isEmptyObject(B)&&Pe.remove(c,"handle events")}},dispatch:function(c){var p,y,A,P,D,H,j=new Array(arguments.length),B=S.event.fix(c),Q=(Pe.get(this,"events")||Object.create(null))[B.type]||[],se=S.event.special[B.type]||{};for(j[0]=B,p=1;p<arguments.length;p++)j[p]=arguments[p];if(B.delegateTarget=this,!se.preDispatch||!1!==se.preDispatch.call(this,B)){for(H=S.event.handlers.call(this,B,Q),p=0;(P=H[p++])&&!B.isPropagationStopped();)for(B.currentTarget=P.elem,y=0;(D=P.handlers[y++])&&!B.isImmediatePropagationStopped();)B.rnamespace&&!1!==D.namespace&&!B.rnamespace.test(D.namespace)||(B.handleObj=D,B.data=D.data,void 0!==(A=((S.event.special[D.origType]||{}).handle||D.handler).apply(P.elem,j))&&!1===(B.result=A)&&(B.preventDefault(),B.stopPropagation()));return se.postDispatch&&se.postDispatch.call(this,B),B.result}},handlers:function(c,p){var y,A,P,D,H,j=[],B=p.delegateCount,Q=c.target;if(B&&Q.nodeType&&!("click"===c.type&&1<=c.button))for(;Q!==this;Q=Q.parentNode||this)if(1===Q.nodeType&&("click"!==c.type||!0!==Q.disabled)){for(D=[],H={},y=0;y<B;y++)void 0===H[P=(A=p[y]).selector+" "]&&(H[P]=A.needsContext?-1<S(P,this).index(Q):S.find(P,this,null,[Q]).length),H[P]&&D.push(A);D.length&&j.push({elem:Q,handlers:D})}return Q=this,B<p.length&&j.push({elem:Q,handlers:p.slice(B)}),j},addProp:function(c,p){Object.defineProperty(S.Event.prototype,c,{enumerable:!0,configurable:!0,get:Ie(p)?function(){if(this.originalEvent)return p(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[c]},set:function(y){Object.defineProperty(this,c,{enumerable:!0,configurable:!0,writable:!0,value:y})}})},fix:function(c){return c[S.expando]?c:new S.Event(c)},special:{load:{noBubble:!0},click:{setup:function(c){var p=this||c;return Ii.test(p.type)&&p.click&&Ue(p,"input")&&Ki(p,"click",!0),!1},trigger:function(c){var p=this||c;return Ii.test(p.type)&&p.click&&Ue(p,"input")&&Ki(p,"click"),!0},_default:function(c){var p=c.target;return Ii.test(p.type)&&p.click&&Ue(p,"input")&&Pe.get(p,"click")||Ue(p,"a")}},beforeunload:{postDispatch:function(c){void 0!==c.result&&c.originalEvent&&(c.originalEvent.returnValue=c.result)}}}},S.removeEvent=function(c,p,y){c.removeEventListener&&c.removeEventListener(p,y)},S.Event=function(c,p){if(!(this instanceof S.Event))return new S.Event(c,p);c&&c.type?(this.originalEvent=c,this.type=c.type,this.isDefaultPrevented=c.defaultPrevented||void 0===c.defaultPrevented&&!1===c.returnValue?Xt:Vt,this.target=c.target&&3===c.target.nodeType?c.target.parentNode:c.target,this.currentTarget=c.currentTarget,this.relatedTarget=c.relatedTarget):this.type=c,p&&S.extend(this,p),this.timeStamp=c&&c.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Vt,isPropagationStopped:Vt,isImmediatePropagationStopped:Vt,isSimulated:!1,preventDefault:function(){var c=this.originalEvent;this.isDefaultPrevented=Xt,c&&!this.isSimulated&&c.preventDefault()},stopPropagation:function(){var c=this.originalEvent;this.isPropagationStopped=Xt,c&&!this.isSimulated&&c.stopPropagation()},stopImmediatePropagation:function(){var c=this.originalEvent;this.isImmediatePropagationStopped=Xt,c&&!this.isSimulated&&c.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(c,p){function y(A){if(W.documentMode){var P=Pe.get(this,"handle"),D=S.event.fix(A);
vendor: 6,955 bytes, line 1
1D.type="focusin"===A.type?"focus":"blur",D.isSimulated=!0,P(A),D.target===D.currentTarget&&P(D)}else S.event.simulate(p,A.target,S.event.fix(A))}S.event.special[c]={setup:function(){var A;if(Ki(this,c,!0),!W.documentMode)return!1;(A=Pe.get(this,p))||this.addEventListener(p,y),Pe.set(this,p,(A||0)+1)},trigger:function(){return Ki(this,c),!0},teardown:function(){var A;if(!W.documentMode)return!1;(A=Pe.get(this,p)-1)?Pe.set(this,p,A):(this.removeEventListener(p,y),Pe.remove(this,p))},_default:function(A){return Pe.get(A.target,c)},delegateType:p},S.event.special[p]={setup:function(){var A=this.ownerDocument||this.document||this,P=W.documentMode?this:A,D=Pe.get(P,p);D||(W.documentMode?this.addEventListener(p,y):A.addEventListener(c,y,!0)),Pe.set(P,p,(D||0)+1)},teardown:function(){var A=this.ownerDocument||this.document||this,P=W.documentMode?this:A,D=Pe.get(P,p)-1;D?Pe.set(P,p,D):(W.documentMode?this.removeEventListener(p,y):A.removeEventListener(c,y,!0),Pe.remove(P,p))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(c,p){S.event.special[c]={delegateType:p,bindType:p,handle:function(y){var A,P=y.relatedTarget,D=y.handleObj;return P&&(P===this||S.contains(this,P))||(y.type=D.origType,A=D.handler.apply(this,arguments),y.type=p),A}}}),S.fn.extend({on:function(c,p,y,A){return ls(this,c,p,y,A)},one:function(c,p,y,A){return ls(this,c,p,y,A,1)},off:function(c,p,y){var A,P;if(c&&c.preventDefault&&c.handleObj)return A=c.handleObj,S(c.delegateTarget).off(A.namespace?A.origType+"."+A.namespace:A.origType,A.selector,A.handler),this;if("object"==typeof c){for(P in c)this.off(P,p,c[P]);return this}return!1!==p&&"function"!=typeof p||(y=p,p=void 0),!1===y&&(y=Vt),this.each(function(){S.event.remove(this,c,y,p)})}});var cs=/<script|<style|<link/i,hs=/checked\s*(?:[^=]|=\s*.checked.)/i,ii=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function di(c,p){return Ue(c,"table")&&Ue(11!==p.nodeType?p:p.firstChild,"tr")&&S(c).children("tbody")[0]||c}function Di(c){return c.type=(null!==c.getAttribute("type"))+"/"+c.type,c}function Bi(c){return"true/"===(c.type||"").slice(0,5)?c.type=c.type.slice(5):c.removeAttribute("type"),c}function Ss(c,p){var y,A,P,D,H,j;if(1===p.nodeType){if(Pe.hasData(c)&&(j=Pe.get(c).events))for(P in Pe.remove(p,"handle events"),j)for(y=0,A=j[P].length;y<A;y++)S.event.add(p,P,j[P][y]);Tt.hasData(c)&&(D=Tt.access(c),H=S.extend({},D),Tt.set(p,H))}}function ui(c,p,y,A){p=O(p);var P,D,H,j,B,Q,se=0,re=c.length,ee=re-1,de=p[0],Ee=Ie(de);if(Ee||1<re&&"string"==typeof de&&!ke.checkClone&&hs.test(de))return c.each(function(Ne){var He=c.eq(Ne);Ee&&(p[0]=de.call(this,Ne,He.html())),ui(He,p,y,A)});if(re&&(D=(P=ks(p,c[0].ownerDocument,!1,c,A)).firstChild,1===P.childNodes.length&&(P=D),D||A)){for(j=(H=S.map(mt(P,"script"),Di)).length;se<re;se++)B=P,se!==ee&&(B=S.clone(B,!0,!0),j&&S.merge(H,mt(B,"script"))),y.call(c[se],B,se);if(j)for(Q=H[H.length-1].ownerDocument,S.map(H,Bi),se=0;se<j;se++)zi.test((B=H[se]).type||"")&&!Pe.access(B,"globalEval")&&S.contains(Q,B)&&(B.src&&"module"!==(B.type||"").toLowerCase()?S._evalUrl&&!B.noModule&&S._evalUrl(B.src,{nonce:B.nonce||B.getAttribute("nonce")},Q):Qe(B.textContent.replace(ii,""),B,Q))}return c}function Cs(c,p,y){for(var A,P=p?S.filter(p,c):c,D=0;null!=(A=P[D]);D++)y||1!==A.nodeType||S.cleanData(mt(A)),A.parentNode&&(y&&$t(A)&&Qi(mt(A,"script")),A.parentNode.removeChild(A));return c}S.extend({htmlPrefilter:function(c){return c},clone:function(c,p,y){var A,P,D,H,j,B,Q,se=c.cloneNode(!0),re=$t(c);if(!(ke.noCloneChecked||1!==c.nodeType&&11!==c.nodeType||S.isXMLDoc(c)))for(H=mt(se),A=0,P=(D=mt(c)).length;A<P;A++)j=D[A],"input"===(Q=(B=H[A]).nodeName.toLowerCase())&&Ii.test(j.type)?B.checked=j.checked:"input"!==Q&&"textarea"!==Q||(B.defaultValue=j.defaultValue);if(p)if(y)for(D=D||mt(c),H=H||mt(se),A=0,P=D.length;A<P;A++)Ss(D[A],H[A]);else Ss(c,se);return 0<(H=mt(se,"script")).length&&Qi(H,!re&&mt(c,"script")),se},cleanData:function(c){for(var p,y,A,P=S.event.special,D=0;void 0!==(y=c[D]);D++)if(Ri(y)){if(p=y[Pe.expando]){if(p.events)for(A in p.events)P[A]?S.event.remove(y,A):S.removeEvent(y,A,p.handle);y[Pe.expando]=void 0}y[Tt.expando]&&(y[Tt.expando]=void 0)}}}),S.fn.extend({detach:function(c){return Cs(this,c,!0)},remove:function(c){return Cs(this,c)},text:function(c){return Bt(this,function(p){return void 0===p?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=p)})},null,c,arguments.length)},append:function(){return ui(this,arguments,function(c){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||di(this,c).appendChild(c)})},prepend:function(){return ui(this,arguments,function(c){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var p=di(this,c);p.insertBefore(c,p.firstChild)}})},before:function(){return ui(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this)})},after:function(){return ui(this,arguments,function(c){this.parentNode&&this.parentNode.insertBefore(c,this.nextSibling)})},empty:function(){for(var c,p=0;null!=(c=this[p]);p++)1===c.nodeType&&(S.cleanData(mt(c,!1)),c.textContent="");return this},clone:function(c,p){return c=null!=c&&c,p=p??c,this.map(function(){return S.clone(this,c,p)})},html:function(c){return Bt(this,function(p){var y=this[0]||{},A=0,P=this.length;if(void 0===p&&1===y.nodeType)return y.innerHTML;if("string"==typeof p&&!cs.test(p)&&!Pt[(Wi.exec(p)||["",""])[1].toLowerCase()]){p=S.htmlPrefilter(p);try{for(;A<P;A++)1===(y=this[A]||{}).nodeType&&(S.cleanData(mt(y,!1)),y.innerHTML=p);y=0}catch{}}y&&this.empty().append(p)},null,c,arguments.length)},replaceWith:function(){var c=[];return ui(this,arguments,function(p){var y=this.parentNode;S.inArray(this,c)<0&&(S.cleanData(mt(this)),y&&y.replaceChild(p,this))},c)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,p){S.fn[c]=function(y){for(var A,P=[],D=S(y),H=D.length-1,j=0;j<=H;j++)A=j===H?this:this.clone(!0),S(D[j])[p](A),q.apply(P,A.get());return this.pushStack(P)}});var ds=new RegExp("^("+Zi+")(?!px)[a-z%]+$","i"),si=/^--/,Oi=function(c){var p=c.ownerDocument.defaultView;return p&&p.opener||(p=J),p.getComputedStyle(c)},qt=function(c,p,y){var A,P,D={};for(P in p)D[P]=c.style[P],c.style[P]=p[P];for(P in A=y.call(c),p)c.style[P]=D[P];return A},us=new RegExp(St.join("|"),"i");function L(c,p,y){var A,P,D,H,j=si.test(p),B=c.style;return(y=y||Oi(c))&&(H=y.getPropertyValue(p)||y[p],j&&H&&(H=H.replace(It,"$1")||void 0),""!==H||$t(c)||(H=S.style(c,p)),!ke.pixelBoxStyles()&&ds.test(H)&&us.test(p)&&(A=B.width,P=B.minWidth,D=B.maxWidth,B.minWidth=B.maxWidth=B.width=H,H=y.width,B.width=A,B.minWidth=P,B.maxWidth=D)),void 0!==H?H+"":H}function e(c,p){return{get:function(){if(!c())return(this.get=p).apply(this,arguments);delete this.get}}}!function(){function c(){if(Q){B.style.cssText="position:absolute;
1left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Q.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ot.appendChild(B).appendChild(Q);var se=J.getComputedStyle(Q);y="1%"!==se.top,j=12===p(se.marginLeft),Q.style.right="60%",D=36===p(se.right),A=36===p(se.width),Q.style.position="absolute",P=12===p(Q.offsetWidth/3),Ot.removeChild(B),Q=null}}function p(se){return Math.round(parseFloat(se))}var y,A,P,D,H,j,B=W.createElement("div"),Q=W.createElement("div");Q.style&&(Q.style.backgroundClip="content-box",Q.cloneNode(!0).style.backgroundClip="",ke.clearCloneStyle="content-box"===Q.style.backgroundClip,S.extend(ke,{boxSizingReliable:function(){return c(),A},pixelBoxStyles:function(){return c(),D},pixelPosition:function(){return c(),y},reliableMarginLeft:function(){return c(),j},scrollboxSize:function(){return c(),P},reliableTrDimensions:function(){var se,re,ee,de;return null==H&&(se=W.createElement("table"),re=W.createElement("tr"),ee=W.createElement("div"),se.style.cssText="position:absolute;left:-11111px;border-collapse:separate",re.style.cssText="box-sizing:content-box;border:1px solid",re.style.height="1px",ee.style.height="9px",ee.style.display="block",Ot.appendChild(se).appendChild(re).appendChild(ee),de=J.getComputedStyle(re),H=parseInt(de.height,10)+parseInt(de.borderTopWidth,10)+parseInt(de.borderBottomWidth,10)===re.offsetHeight,Ot.removeChild(se)),H}}))}();var t=["Webkit","Moz","ms"],i=W.createElement("div").style,s={};function a(c){return S.cssProps[c]||s[c]||(c in i?c:s[c]=function(y){for(var A=y[0].toUpperCase()+y.slice(1),P=t.length;P--;)if((y=t[P]+A)in i)return y}(c)||c)}var n=/^(none|table(?!-c[ea]).+)/,r={position:"absolute",visibility:"hidden",display:"block"},o={letterSpacing:"0",fontWeight:"400"};function h(c,p,y){var A=ei.exec(p);
vendor: 6,460 bytes, line 1
1return A?Math.max(0,A[2]-(y||0))+(A[3]||"px"):p}function d(c,p,y,A,P,D){var H="width"===p?1:0,j=0,B=0,Q=0;if(y===(A?"border":"content"))return 0;for(;H<4;H+=2)"margin"===y&&(Q+=S.css(c,y+St[H],!0,P)),A?("content"===y&&(B-=S.css(c,"padding"+St[H],!0,P)),"margin"!==y&&(B-=S.css(c,"border"+St[H]+"Width",!0,P))):(B+=S.css(c,"padding"+St[H],!0,P),"padding"!==y?B+=S.css(c,"border"+St[H]+"Width",!0,P):j+=S.css(c,"border"+St[H]+"Width",!0,P));return!A&&0<=D&&(B+=Math.max(0,Math.ceil(c["offset"+p[0].toUpperCase()+p.slice(1)]-D-B-j-.5))||0),B+Q}function u(c,p,y){var A=Oi(c),P=(!ke.boxSizingReliable()||y)&&"border-box"===S.css(c,"boxSizing",!1,A),D=P,H=L(c,p,A),j="offset"+p[0].toUpperCase()+p.slice(1);if(ds.test(H)){if(!y)return H;H="auto"}return(!ke.boxSizingReliable()&&P||!ke.reliableTrDimensions()&&Ue(c,"tr")||"auto"===H||!parseFloat(H)&&"inline"===S.css(c,"display",!1,A))&&c.getClientRects().length&&(P="border-box"===S.css(c,"boxSizing",!1,A),(D=j in c)&&(H=c[j])),(H=parseFloat(H)||0)+d(c,p,y||(P?"border":"content"),D,A,H)+"px"}function g(c,p,y,A,P){return new g.prototype.init(c,p,y,A,P)}S.extend({cssHooks:{opacity:{get:function(c,p){if(p){var y=L(c,"opacity");return""===y?"1":y}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(c,p,y,A){if(c&&3!==c.nodeType&&8!==c.nodeType&&c.style){var P,D,H,j=jt(p),B=si.test(p),Q=c.style;if(B||(p=a(j)),H=S.cssHooks[p]||S.cssHooks[j],void 0===y)return H&&"get"in H&&void 0!==(P=H.get(c,!1,A))?P:Q[p];"string"==(D=typeof y)&&(P=ei.exec(y))&&P[1]&&(y=ws(c,p,P),D="number"),null!=y&&y==y&&("number"!==D||B||(y+=P&&P[3]||(S.cssNumber[j]?"":"px")),ke.clearCloneStyle||""!==y||0!==p.indexOf("background")||(Q[p]="inherit"),H&&"set"in H&&void 0===(y=H.set(c,y,A))||(B?Q.setProperty(p,y):Q[p]=y))}},css:function(c,p,y,A){var P,D,H,j=jt(p);return si.test(p)||(p=a(j)),(H=S.cssHooks[p]||S.cssHooks[j])&&"get"in H&&(P=H.get(c,!0,y)),void 0===P&&(P=L(c,p,A)),"normal"===P&&p in o&&(P=o[p]),""===y||y?(D=parseFloat(P),!0===y||isFinite(D)?D||0:P):P}}),S.each(["height","width"],function(c,p){S.cssHooks[p]={get:function(y,A,P){if(A)return!n.test(S.css(y,"display"))||y.getClientRects().length&&y.getBoundingClientRect().width?u(y,p,P):qt(y,r,function(){return u(y,p,P)})},set:function(y,A,P){var D,H=Oi(y),j=!ke.scrollboxSize()&&"absolute"===H.position,B=(j||P)&&"border-box"===S.css(y,"boxSizing",!1,H),Q=P?d(y,p,P,B,H):0;return B&&j&&(Q-=Math.ceil(y["offset"+p[0].toUpperCase()+p.slice(1)]-parseFloat(H[p])-d(y,p,"border",!1,H)-.5)),Q&&(D=ei.exec(A))&&"px"!==(D[3]||"px")&&(y.style[p]=A,A=S.css(y,p)),h(0,A,Q)}}}),S.cssHooks.marginLeft=e(ke.reliableMarginLeft,function(c,p){if(p)return(parseFloat(L(c,"marginLeft"))||c.getBoundingClientRect().left-qt(c,{marginLeft:0},function(){return c.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(c,p){S.cssHooks[c+p]={expand:function(y){for(var A=0,P={},D="string"==typeof y?y.split(" "):[y];A<4;A++)P[c+St[A]+p]=D[A]||D[A-2]||D[0];return P}},"margin"!==c&&(S.cssHooks[c+p].set=h)}),S.fn.extend({css:function(c,p){return Bt(this,function(y,A,P){var D,H,j={},B=0;if(Array.isArray(A)){for(D=Oi(y),H=A.length;B<H;B++)j[A[B]]=S.css(y,A[B],!1,D);return j}return void 0!==P?S.style(y,A,P):S.css(y,A)},c,p,1<arguments.length)}}),((S.Tween=g).prototype={constructor:g,init:function(c,p,y,A,P,D){this.elem=c,this.prop=y,this.easing=P||S.easing._default,this.options=p,this.start=this.now=this.cur(),this.end=A,this.unit=D||(S.cssNumber[y]?"":"px")},cur:function(){var c=g.propHooks[this.prop];return c&&c.get?c.get(this):g.propHooks._default.get(this)},run:function(c){var p,y=g.propHooks[this.prop];return this.pos=p=this.options.duration?S.easing[this.easing](c,this.options.duration*c,0,1,this.options.duration):c,this.now=(this.end-this.start)*p+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),y&&y.set?y.set(this):g.propHooks._default.set(this),this}}).init.prototype=g.prototype,(g.propHooks={_default:{get:function(c){var p;return 1!==c.elem.nodeType||null!=c.elem[c.prop]&&null==c.elem.style[c.prop]?c.elem[c.prop]:(p=S.css(c.elem,c.prop,""))&&"auto"!==p?p:0},set:function(c){S.fx.step[c.prop]?S.fx.step[c.prop](c):1!==c.elem.nodeType||!S.cssHooks[c.prop]&&null==c.elem.style[a(c.prop)]?c.elem[c.prop]=c.now:S.style(c.elem,c.prop,c.now+c.unit)}}}).scrollTop=g.propHooks.scrollLeft={set:function(c){c.elem.nodeType&&c.elem.parentNode&&(c.elem[c.prop]=c.now)}},S.easing={linear:function(c){return c},swing:function(c){return.5-Math.cos(c*Math.PI)/2},_default:"swing"},S.fx=g.prototype.init,S.fx.step={};var m,b,w,C,T=/^(?:toggle|show|hide)$/,_=/queueHooks$/;function l(){b&&(!1===W.hidden&&J.requestAnimationFrame?J.requestAnimationFrame(l):J.setTimeout(l,S.fx.interval),S.fx.tick())}function f(){return J.setTimeout(function(){m=void 0}),m=Date.now()}function k(c,p){var y,A=0,P={height:c};for(p=p?1:0;A<4;A+=2-p)P["margin"+(y=St[A])]=P["padding"+y]=c;return p&&(P.opacity=P.width=c),P}function I(c,p,y){for(var A,P=(M.tweeners[p]||[]).concat(M.tweeners["*"]),D=0,H=P.length;D<H;D++)if(A=P[D].call(y,p,c))return A}function M(c,p,y){var A,P,D=0,H=M.prefilters.length,j=S.Deferred().always(function(){delete B.elem}),B=function(){if(P)return!1;for(var re=m||f(),ee=Math.max(0,Q.startTime+Q.duration-re),de=1-(ee/Q.duration||0),Ee=0,Ne=Q.tweens.length;Ee<Ne;Ee++)Q.tweens[Ee].run(de);return j.notifyWith(c,[Q,de,ee]),de<1&&Ne?ee:(Ne||j.notifyWith(c,[Q,1,0]),j.resolveWith(c,[Q]),!1)},Q=j.promise({elem:c,props:S.extend({},p),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},y),originalProperties:p,originalOptions:y,startTime:m||f(),duration:y.duration,tweens:[],createTween:function(re,ee){var de=S.Tween(c,Q.opts,re,ee,Q.opts.specialEasing[re]||Q.opts.easing);return Q.tweens.push(de),de},stop:function(re){var ee=0,de=re?Q.tweens.length:0;if(P)return this;for(P=!0;ee<de;ee++)Q.tweens[ee].run(1);return re?(j.notifyWith(c,[Q,1,0]),j.resolveWith(c,[Q,re])):j.rejectWith(c,[Q,re]),this}}),se=Q.props;for(function(re,ee){var de,Ee,Ne,He,ht;for(de in re)if(Ne=ee[Ee=jt(de)],He=re[de],Array.isArray(He)&&(Ne=He[1],He=re[de]=
vendor: 4,754 bytes, line 1
1He[0]),de!==Ee&&(re[Ee]=He,delete re[de]),(ht=S.cssHooks[Ee])&&"expand"in ht)for(de in He=ht.expand(He),delete re[Ee],He)de in re||(re[de]=He[de],ee[de]=Ne);else ee[Ee]=Ne}(se,Q.opts.specialEasing);D<H;D++)if(A=M.prefilters[D].call(Q,c,se,Q.opts))return Ie(A.stop)&&(S._queueHooks(Q.elem,Q.opts.queue).stop=A.stop.bind(A)),A;return S.map(se,I,Q),Ie(Q.opts.start)&&Q.opts.start.call(c,Q),Q.progress(Q.opts.progress).done(Q.opts.done,Q.opts.complete).fail(Q.opts.fail).always(Q.opts.always),S.fx.timer(S.extend(B,{elem:c,anim:Q,queue:Q.opts.queue})),Q}S.Animation=S.extend(M,{tweeners:{"*":[function(c,p){var y=this.createTween(c,p);return ws(y.elem,c,ei.exec(p),y),y}]},tweener:function(c,p){Ie(c)?(p=c,c=["*"]):c=c.match(xt);for(var y,A=0,P=c.length;A<P;A++)(M.tweeners[y=c[A]]=M.tweeners[y]||[]).unshift(p)},prefilters:[function(c,p,y){var A,P,D,H,j,B,Q,se,re="width"in p||"height"in p,ee=this,de={},Ee=c.style,Ne=c.nodeType&&Mi(c),He=Pe.get(c,"fxshow");for(A in y.queue||(null==(H=S._queueHooks(c,"fx")).unqueued&&(H.unqueued=0,j=H.empty.fire,H.empty.fire=function(){H.unqueued||j()}),H.unqueued++,ee.always(function(){ee.always(function(){H.unqueued--,S.queue(c,"fx").length||H.empty.fire()})})),p)if(T.test(P=p[A])){if(delete p[A],D=D||"toggle"===P,P===(Ne?"hide":"show")){if("show"!==P||!He||void 0===He[A])continue;Ne=!0}de[A]=He&&He[A]||S.style(c,A)}if((B=!S.isEmptyObject(p))||!S.isEmptyObject(de))for(A in re&&1===c.nodeType&&(y.overflow=[Ee.overflow,Ee.overflowX,Ee.overflowY],null==(Q=He&&He.display)&&(Q=Pe.get(c,"display")),"none"===(se=S.css(c,"display"))&&(Q?se=Q:(_i([c],!0),Q=c.style.display||Q,se=S.css(c,"display"),_i([c]))),("inline"===se||"inline-block"===se&&null!=Q)&&"none"===S.css(c,"float")&&(B||(ee.done(function(){Ee.display=Q}),null==Q&&(Q="none"===(se=Ee.display)?"":se)),Ee.display="inline-block")),y.overflow&&(Ee.overflow="hidden",ee.always(function(){Ee.overflow=y.overflow[0],Ee.overflowX=y.overflow[1],Ee.overflowY=y.overflow[2]})),B=!1,de)B||(He?"hidden"in He&&(Ne=He.hidden):He=Pe.access(c,"fxshow",{display:Q}),D&&(He.hidden=!Ne),Ne&&_i([c],!0),ee.done(function(){for(A in Ne||_i([c]),Pe.remove(c,"fxshow"),de)S.style(c,A,de[A])})),B=I(Ne?He[A]:0,A,ee),A in He||(He[A]=B.start,Ne&&(B.end=B.start,B.start=0))}],prefilter:function(c,p){p?M.prefilters.unshift(c):M.prefilters.push(c)}}),S.speed=function(c,p,y){var A=c&&"object"==typeof c?S.extend({},c):{complete:y||!y&&p||Ie(c)&&c,duration:c,easing:y&&p||p&&!Ie(p)&&p};return S.fx.off?A.duration=0:"number"!=typeof A.duration&&(A.duration=A.duration in S.fx.speeds?S.fx.speeds[A.duration]:S.fx.speeds._default),null!=A.queue&&!0!==A.queue||(A.queue="fx"),A.old=A.complete,A.complete=function(){Ie(A.old)&&A.old.call(this),A.queue&&S.dequeue(this,A.queue)},A},S.fn.extend({fadeTo:function(c,p,y,A){return this.filter(Mi).css("opacity",0).show().end().animate({opacity:p},c,y,A)},animate:function(c,p,y,A){var P=S.isEmptyObject(c),D=S.speed(p,y,A),H=function(){var j=M(this,S.extend({},c),D);(P||Pe.get(this,"finish"))&&j.stop(!0)};return H.finish=H,P||!1===D.queue?this.each(H):this.queue(D.queue,H)},stop:function(c,p,y){var A=function(P){var D=P.stop;delete P.stop,D(y)};return"string"!=typeof c&&(y=p,p=c,c=void 0),p&&this.queue(c||"fx",[]),this.each(function(){var P=!0,D=null!=c&&c+"queueHooks",H=S.timers,j=Pe.get(this);if(D)j[D]&&j[D].stop&&A(j[D]);else for(D in j)j[D]&&j[D].stop&&_.test(D)&&A(j[D]);for(D=H.length;D--;)H[D].elem!==this||null!=c&&H[D].queue!==c||(H[D].anim.stop(y),P=!1,H.splice(D,1));!P&&y||S.dequeue(this,c)})},finish:function(c){return!1!==c&&(c=c||"fx"),this.each(function(){var p,y=Pe.get(this),A=y[c+"queue"],P=y[c+"queueHooks"],D=S.timers,H=A?A.length:0;for(y.finish=!0,S.queue(this,c,[]),P&&P.stop&&P.stop.call(this,!0),p=D.length;p--;)D[p].elem===this&&D[p].queue===c&&(D[p].anim.stop(!0),D.splice(p,1));for(p=0;p<H;p++)A[p]&&A[p].finish&&A[p].finish.call(this);delete y.finish})}}),S.each(["toggle","show","hide"],function(c,p){var y=S.fn[p];S.fn[p]=function(A,P,D){return null==A||"boolean"==typeof A?y.apply(this,arguments):this.animate(k(p,!0),A,P,D)}}),S.each({slideDown:k("show"),slideUp:k("hide"),slideToggle:k("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(c,p){S.fn[c]=function(y,A,P){return this.animate(p,y,A,P)}}),S.timers=[],S.fx.tick=function(){var c,p=0,y=S.timers;for(m=Date.now();p<y.length;p++)(c=y[p])()||y[p]!==c||y.splice(p--,1);y.length||S.fx.stop(),m=void 0},S.fx.timer=function(c){S.timers.push(c),S.fx.start()},S.fx.interval=13,S.fx.start=function(){b||(b=!0,l())},S.fx.stop=function(){b=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(c,p){return c=S.fx&&S.fx.speeds[c]||c,this.queue(p=p||"fx",function(y,A){var P=J.setTimeout(y,c);
vendor: 9,216 bytes, line 1
1A.stop=function(){J.clearTimeout(P)}})},w=W.createElement("input"),C=W.createElement("select").appendChild(W.createElement("option")),w.type="checkbox",ke.checkOn=""!==w.value,ke.optSelected=C.selected,(w=W.createElement("input")).value="t",w.type="radio",ke.radioValue="t"===w.value;var N,Y=S.expr.attrHandle;S.fn.extend({attr:function(c,p){return Bt(this,S.attr,c,p,1<arguments.length)},removeAttr:function(c){return this.each(function(){S.removeAttr(this,c)})}}),S.extend({attr:function(c,p,y){var A,P,D=c.nodeType;if(3!==D&&8!==D&&2!==D)return typeof c.getAttribute>"u"?S.prop(c,p,y):(1===D&&S.isXMLDoc(c)||(P=S.attrHooks[p.toLowerCase()]||(S.expr.match.bool.test(p)?N:void 0)),void 0!==y?null===y?void S.removeAttr(c,p):P&&"set"in P&&void 0!==(A=P.set(c,y,p))?A:(c.setAttribute(p,y+""),y):P&&"get"in P&&null!==(A=P.get(c,p))?A:null==(A=S.find.attr(c,p))?void 0:A)},attrHooks:{type:{set:function(c,p){if(!ke.radioValue&&"radio"===p&&Ue(c,"input")){var y=c.value;return c.setAttribute("type",p),y&&(c.value=y),p}}}},removeAttr:function(c,p){var y,A=0,P=p&&p.match(xt);if(P&&1===c.nodeType)for(;y=P[A++];)c.removeAttribute(y)}}),N={set:function(c,p,y){return!1===p?S.removeAttr(c,y):c.setAttribute(y,y),y}},S.each(S.expr.match.bool.source.match(/\w+/g),function(c,p){var y=Y[p]||S.find.attr;Y[p]=function(A,P,D){var H,j,B=P.toLowerCase();return D||(j=Y[B],Y[B]=H,H=null!=y(A,P,D)?B:null,Y[B]=j),H}});var F=/^(?:input|select|textarea|button)$/i,te=/^(?:a|area)$/i;function oe(c){return(c.match(xt)||[]).join(" ")}function K(c){return c.getAttribute&&c.getAttribute("class")||""}function le(c){return Array.isArray(c)?c:"string"==typeof c&&c.match(xt)||[]}S.fn.extend({prop:function(c,p){return Bt(this,S.prop,c,p,1<arguments.length)},removeProp:function(c){return this.each(function(){delete this[S.propFix[c]||c]})}}),S.extend({prop:function(c,p,y){var A,P,D=c.nodeType;if(3!==D&&8!==D&&2!==D)return 1===D&&S.isXMLDoc(c)||(P=S.propHooks[p=S.propFix[p]||p]),void 0!==y?P&&"set"in P&&void 0!==(A=P.set(c,y,p))?A:c[p]=y:P&&"get"in P&&null!==(A=P.get(c,p))?A:c[p]},propHooks:{tabIndex:{get:function(c){var p=S.find.attr(c,"tabindex");return p?parseInt(p,10):F.test(c.nodeName)||te.test(c.nodeName)&&c.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ke.optSelected||(S.propHooks.selected={get:function(c){return null},set:function(c){}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(c){var p,y,A,P,D,H;return Ie(c)?this.each(function(j){S(this).addClass(c.call(this,j,K(this)))}):(p=le(c)).length?this.each(function(){if(A=K(this),y=1===this.nodeType&&" "+oe(A)+" "){for(D=0;D<p.length;D++)y.indexOf(" "+(P=p[D])+" ")<0&&(y+=P+" ");H=oe(y),A!==H&&this.setAttribute("class",H)}}):this},removeClass:function(c){var p,y,A,P,D,H;return Ie(c)?this.each(function(j){S(this).removeClass(c.call(this,j,K(this)))}):arguments.length?(p=le(c)).length?this.each(function(){if(A=K(this),y=1===this.nodeType&&" "+oe(A)+" "){for(D=0;D<p.length;D++)for(P=p[D];-1<y.indexOf(" "+P+" ");)y=y.replace(" "+P+" "," ");H=oe(y),A!==H&&this.setAttribute("class",H)}}):this:this.attr("class","")},toggleClass:function(c,p){var y,A,P,D,H=typeof c,j="string"===H||Array.isArray(c);return Ie(c)?this.each(function(B){S(this).toggleClass(c.call(this,B,K(this),p),p)}):"boolean"==typeof p&&j?p?this.addClass(c):this.removeClass(c):(y=le(c),this.each(function(){if(j)for(D=S(this),P=0;P<y.length;P++)D.hasClass(A=y[P])?D.removeClass(A):D.addClass(A);else void 0!==c&&"boolean"!==H||((A=K(this))&&Pe.set(this,"__className__",A),this.setAttribute&&this.setAttribute("class",A||!1===c?"":Pe.get(this,"__className__")||""))}))},hasClass:function(c){var p,y,A=0;for(p=" "+c+" ";y=this[A++];)if(1===y.nodeType&&-1<(" "+oe(K(y))+" ").indexOf(p))return!0;return!1}});var pe=/\r/g;S.fn.extend({val:function(c){var p,y,A,P=this[0];return arguments.length?(A=Ie(c),this.each(function(D){var H;1===this.nodeType&&(null==(H=A?c.call(this,D,S(this).val()):c)?H="":"number"==typeof H?H+="":Array.isArray(H)&&(H=S.map(H,function(j){return null==j?"":j+""})),(p=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in p&&void 0!==p.set(this,H,"value")||(this.value=H))})):P?(p=S.valHooks[P.type]||S.valHooks[P.nodeName.toLowerCase()])&&"get"in p&&void 0!==(y=p.get(P,"value"))?y:"string"==typeof(y=P.value)?y.replace(pe,""):y??"":void 0}}),S.extend({valHooks:{option:{get:function(c){return S.find.attr(c,"value")??oe(S.text(c))}},select:{get:function(c){var p,y,A,P=c.options,D=c.selectedIndex,H="select-one"===c.type,j=H?null:[],B=H?D+1:P.length;for(A=D<0?B:H?D:0;A<B;A++)if(((y=P[A]).selected||A===D)&&!y.disabled&&(!y.parentNode.disabled||!Ue(y.parentNode,"optgroup"))){if(p=S(y).val(),H)return p;j.push(p)}return j},set:function(c,p){for(var y,A,P=c.options,D=S.makeArray(p),H=P.length;H--;)((A=P[H]).selected=-1<S.inArray(S.valHooks.option.get(A),D))&&(y=!0);return y||(c.selectedIndex=-1),D}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(c,p){if(Array.isArray(p))return c.checked=-1<S.inArray(S(c).val(),p)}},ke.checkOn||(S.valHooks[this].get=function(c){return null===c.getAttribute("value")?"on":c.value})});var ve=J.location,Ae={guid:Date.now()},Te=/\?/;S.parseXML=function(c){var p,y;if(!c||"string"!=typeof c)return null;try{p=(new J.DOMParser).parseFromString(c,"text/xml")}catch{}return y=p&&p.getElementsByTagName("parsererror")[0],p&&!y||S.error("Invalid XML: "+(y?S.map(y.childNodes,function(A){return A.textContent}).join("\n"):c)),p};var De=/^(?:focusinfocus|focusoutblur)$/,ze=function(c){c.stopPropagation()};S.extend(S.event,{trigger:function(c,p,y,A){var P,D,H,j,B,Q,se,re,ee=[y||W],de=et.call(c,"type")?c.type:c,Ee=et.call(c,"namespace")?c.namespace.split("."):[];if(D=re=H=y=y||W,3!==y.nodeType&&8!==y.nodeType&&!De.test(de+S.event.triggered)&&(-1<de.indexOf(".")&&(de=(Ee=de.split(".")).shift(),Ee.sort()),B=de.indexOf(":")<0&&"on"+de,(c=c[S.expando]?c:new S.Event(de,"object"==typeof c&&c)).isTrigger=A?2:3,c.namespace=Ee.join("."),c.rnamespace=c.namespace?new RegExp("(^|\\.)"+Ee.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,c.result=void 0,c.target||(c.target=y),p=null==p?[c]:S.makeArray(p,[c]),se=S.event.special[de]||{},A||!se.trigger||!1!==se.trigger.apply(y,p))){if(!A&&!se.noBubble&&!_t(y)){for(De.test((j=se.delegateType||de)+de)||(D=D.parentNode);D;D=D.parentNode)ee.push(D),H=D;H===(y.ownerDocument||W)&&ee.push(H.defaultView||H.parentWindow||J)}for(P=0;(D=ee[P++])&&!c.isPropagationStopped();)re=D,c.type=1<P?j:se.bindType||de,(Q=(Pe.get(D,"events")||Object.create(null))[c.type]&&Pe.get(D,"handle"))&&Q.apply(D,p),(Q=B&&D[B])&&Q.apply&&Ri(D)&&(c.result=Q.apply(D,p),!1===c.result&&c.preventDefault());return c.type=de,A||c.isDefaultPrevented()||se._default&&!1!==se._default.apply(ee.pop(),p)||!Ri(y)||B&&Ie(y[de])&&!_t(y)&&((H=y[B])&&(y[B]=null),S.event.triggered=de,c.isPropagationStopped()&&re.addEventListener(de,ze),y[de](),c.isPropagationStopped()&&re.removeEventListener(de,ze),S.event.triggered=void 0,H&&(y[B]=H)),c.result}},simulate:function(c,p,y){var A=S.extend(new S.Event,y,{type:c,isSimulated:!0});S.event.trigger(A,null,p)}}),S.fn.extend({trigger:function(c,p){return this.each(function(){S.event.trigger(c,p,this)})},triggerHandler:function(c,p){var y=this[0];if(y)return S.event.trigger(c,p,y,!0)}});var Xe=/\[\]$/,Ke=/\r?\n/g,tt=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;function Ct(c,p,y,A){var P;if(Array.isArray(p))S.each(p,function(D,H){y||Xe.test(c)?A(c,H):Ct(c+"["+("object"==typeof H&&null!=H?D:"")+"]",H,y,A)});else if(y||"object"!==ne(p))A(c,p);else for(P in p)Ct(c+"["+P+"]",p[P],y,A)}S.param=function(c,p){var y,A=[],P=function(D,H){var j=Ie(H)?H():H;A[A.length]=encodeURIComponent(D)+"="+encodeURIComponent(j??"")};if(null==c)return"";if(Array.isArray(c)||c.jquery&&!S.isPlainObject(c))S.each(c,function(){P(this.name,this.value)});else for(y in c)Ct(y,c[y],p,P);return A.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var c=S.prop(this,"elements");return c?S.makeArray(c):this}).filter(function(){var c=this.type;return this.name&&!S(this).is(":disabled")&&Re.test(this.nodeName)&&!tt.test(c)&&(this.checked||!Ii.test(c))}).map(function(c,p){var y=S(this).val();return null==y?null:Array.isArray(y)?S.map(y,function(A){return{name:p.name,value:A.replace(Ke,"\r\n")}}):{name:p.name,value:y.replace(Ke,"\r\n")}}).get()}});var Ve=/%20/g,Be=/#.*$/,qe=/([?&])_=[^&]*/,vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,bt=/^(?:GET|HEAD)$/,Ut=/^\/\//,Ni={},pt={},Zt="*/".concat("*"),Ji=W.createElement("a");function Hs(c){return function(p,y){"string"!=typeof p&&(y=p,p="*");var A,P=0,D=p.toLowerCase().match(xt)||[];if(Ie(y))for(;A=D[P++];)"+"===A[0]?(A=A.slice(1)||"*",(c[A]=c[A]||[]).unshift(y)):(c[A]=c[A]||[]).push(y)}}function Ts(c,p,y,A){var P={},D=c===pt;function H(j){var B;return P[j]=!0,S.each(c[j]||[],function(Q,se){var re=se(p,y,A);return"string"!=typeof re||D||P[re]?D?!(B=re):void 0:(p.dataTypes.unshift(re),H(re),!1)}),B}return H(p.dataTypes[0])||!P["*"]&&H("*")}
vendor: 2,643 bytes, line 1
1function Xs(c,p){var y,A,P=S.ajaxSettings.flatOptions||{};for(y in p)void 0!==p[y]&&((P[y]?c:A||(A={}))[y]=p[y]);return A&&S.extend(!0,c,A),c}Ji.href=ve.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ve.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ve.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(c,p){return p?Xs(Xs(c,S.ajaxSettings),p):Xs(S.ajaxSettings,c)},ajaxPrefilter:Hs(Ni),ajaxTransport:Hs(pt),ajax:function(c,p){"object"==typeof c&&(p=c,c=void 0);var y,A,P,D,H,j,B,Q,se,re,ee=S.ajaxSetup({},p=p||{}),de=ee.context||ee,Ee=ee.context&&(de.nodeType||de.jquery)?S(de):S.event,Ne=S.Deferred(),He=S.Callbacks("once memory"),ht=ee.statusCode||{},yt={},pi={},fi="canceled",Ye={readyState:0,getResponseHeader:function(je){var at;if(B){if(!D)for(D={};at=vt.exec(P);)D[at[1].toLowerCase()+" "]=(D[at[1].toLowerCase()+" "]||[]).concat(at[2]);at=D[je.toLowerCase()+" "]}return null==at?null:at.join(", ")},getAllResponseHeaders:function(){return B?P:null},setRequestHeader:function(je,at){return null==B&&(je=pi[je.toLowerCase()]=pi[je.toLowerCase()]||je,yt[je]=at),this},overrideMimeType:function(je){return null==B&&(ee.mimeType=je),this},statusCode:function(je){var at;if(je)if(B)Ye.always(je[Ye.status]);else for(at in je)ht[at]=[ht[at],je[at]];return this},abort:function(je){var at=je||fi;return y&&y.abort(at),xi(0,at),this}};if(Ne.promise(Ye),ee.url=((c||ee.url||ve.href)+"").replace(Ut,ve.protocol+"//"),ee.type=p.method||p.type||ee.method||ee.type,ee.dataTypes=(ee.dataType||"*").toLowerCase().match(xt)||[""],null==ee.crossDomain){j=W.createElement("a");try{j.href=ee.url,j.href=j.href,ee.crossDomain=Ji.protocol+"//"+Ji.host!=j.protocol+"//"+j.host}catch{ee.crossDomain=!0}}if(ee.data&&ee.processData&&"string"!=typeof ee.data&&(ee.data=S.param(ee.data,ee.traditional)),Ts(Ni,ee,p,Ye),B)return Ye;for(se in(Q=S.event&&ee.global)&&0==S.active++&&S.event.trigger("ajaxStart"),ee.type=ee.type.toUpperCase(),ee.hasContent=!bt.test(ee.type),A=ee.url.replace(Be,""),ee.hasContent?ee.data&&ee.processData&&0===(ee.contentType||"").indexOf("application/x-www-form-urlencoded")&&(ee.data=ee.data.replace(Ve,"+")):(re=ee.url.
vendor: 11,779 bytes, line 1
1slice(A.length),ee.data&&(ee.processData||"string"==typeof ee.data)&&(A+=(Te.test(A)?"&":"?")+ee.data,delete ee.data),!1===ee.cache&&(A=A.replace(qe,"$1"),re=(Te.test(A)?"&":"?")+"_="+Ae.guid+++re),ee.url=A+re),ee.ifModified&&(S.lastModified[A]&&Ye.setRequestHeader("If-Modified-Since",S.lastModified[A]),S.etag[A]&&Ye.setRequestHeader("If-None-Match",S.etag[A])),(ee.data&&ee.hasContent&&!1!==ee.contentType||p.contentType)&&Ye.setRequestHeader("Content-Type",ee.contentType),Ye.setRequestHeader("Accept",ee.dataTypes[0]&&ee.accepts[ee.dataTypes[0]]?ee.accepts[ee.dataTypes[0]]+("*"!==ee.dataTypes[0]?", "+Zt+"; q=0.01":""):ee.accepts["*"]),ee.headers)Ye.setRequestHeader(se,ee.headers[se]);if(ee.beforeSend&&(!1===ee.beforeSend.call(de,Ye,ee)||B))return Ye.abort();if(fi="abort",He.add(ee.complete),Ye.done(ee.success),Ye.fail(ee.error),y=Ts(pt,ee,p,Ye)){if(Ye.readyState=1,Q&&Ee.trigger("ajaxSend",[Ye,ee]),B)return Ye;ee.async&&0<ee.timeout&&(H=J.setTimeout(function(){Ye.abort("timeout")},ee.timeout));try{B=!1,y.send(yt,xi)}catch(je){if(B)throw je;xi(-1,je)}}else xi(-1,"No Transport");function xi(je,at,ki,gs){var mi,ps,Ai,Nt,es,Qt=at;B||(B=!0,H&&J.clearTimeout(H),y=void 0,P=gs||"",Ye.readyState=0<je?4:0,mi=200<=je&&je<300||304===je,ki&&(Nt=function(dt,ot,Et){for(var Si,Mt,Me,nt,lt=dt.contents,it=dt.dataTypes;"*"===it[0];)it.shift(),void 0===Si&&(Si=dt.mimeType||ot.getResponseHeader("Content-Type"));if(Si)for(Mt in lt)if(lt[Mt]&<[Mt].test(Si)){it.unshift(Mt);break}if(it[0]in Et)Me=it[0];else{for(Mt in Et){if(!it[0]||dt.converters[Mt+" "+it[0]]){Me=Mt;break}nt||(nt=Mt)}Me=Me||nt}if(Me)return Me!==it[0]&&it.unshift(Me),Et[Me]}(ee,Ye,ki)),!mi&&-1<S.inArray("script",ee.dataTypes)&&S.inArray("json",ee.dataTypes)<0&&(ee.converters["text script"]=function(){}),Nt=function(dt,ot,Et,Si){var Mt,Me,nt,lt,it,vi={},ts=dt.dataTypes.slice();if(ts[1])for(nt in dt.converters)vi[nt.toLowerCase()]=dt.converters[nt];for(Me=ts.shift();Me;)if(dt.responseFields[Me]&&(Et[dt.responseFields[Me]]=ot),!it&&Si&&dt.dataFilter&&(ot=dt.dataFilter(ot,dt.dataType)),it=Me,Me=ts.shift())if("*"===Me)Me=it;else if("*"!==it&&it!==Me){if(!(nt=vi[it+" "+Me]||vi["* "+Me]))for(Mt in vi)if((lt=Mt.split(" "))[1]===Me&&(nt=vi[it+" "+lt[0]]||vi["* "+lt[0]])){!0===nt?nt=vi[Mt]:!0!==vi[Mt]&&(Me=lt[0],ts.unshift(lt[1]));break}if(!0!==nt)if(nt&&dt.throws)ot=nt(ot);else try{ot=nt(ot)}catch(Hi){return{state:"parsererror",error:nt?Hi:"No conversion from "+it+" to "+Me}}}return{state:"success",data:ot}}(ee,Nt,Ye,mi),mi?(ee.ifModified&&((es=Ye.getResponseHeader("Last-Modified"))&&(S.lastModified[A]=es),(es=Ye.getResponseHeader("etag"))&&(S.etag[A]=es)),204===je||"HEAD"===ee.type?Qt="nocontent":304===je?Qt="notmodified":(Qt=Nt.state,ps=Nt.data,mi=!(Ai=Nt.error))):(Ai=Qt,!je&&Qt||(Qt="error",je<0&&(je=0))),Ye.status=je,Ye.statusText=(at||Qt)+"",mi?Ne.resolveWith(de,[ps,Qt,Ye]):Ne.rejectWith(de,[Ye,Qt,Ai]),Ye.statusCode(ht),ht=void 0,Q&&Ee.trigger(mi?"ajaxSuccess":"ajaxError",[Ye,ee,mi?ps:Ai]),He.fireWith(de,[Ye,Qt]),Q&&(Ee.trigger("ajaxComplete",[Ye,ee]),--S.active||S.event.trigger("ajaxStop")))}return Ye},getJSON:function(c,p,y){return S.get(c,p,y,"json")},getScript:function(c,p){return S.get(c,void 0,p,"script")}}),S.each(["get","post"],function(c,p){S[p]=function(y,A,P,D){return Ie(A)&&(D=D||P,P=A,A=void 0),S.ajax(S.extend({url:y,type:p,dataType:D,data:A,success:P},S.isPlainObject(y)&&y))}}),S.ajaxPrefilter(function(c){var p;for(p in c.headers)"content-type"===p.toLowerCase()&&(c.contentType=c.headers[p]||"")}),S._evalUrl=function(c,p,y){return S.ajax({url:c,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(A){S.globalEval(A,p,y)}})},S.fn.extend({wrapAll:function(c){var p;return this[0]&&(Ie(c)&&(c=c.call(this[0])),p=S(c,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&p.insertBefore(this[0]),p.map(function(){for(var y=this;y.firstElementChild;)y=y.firstElementChild;return y}).append(this)),this},wrapInner:function(c){return Ie(c)?this.each(function(p){S(this).wrapInner(c.call(this,p))}):this.each(function(){var p=S(this),y=p.contents();y.length?y.wrapAll(c):p.append(c)})},wrap:function(c){var p=Ie(c);return this.each(function(y){S(this).wrapAll(p?c.call(this,y):c)})},unwrap:function(c){return this.parent(c).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(c){return!S.expr.pseudos.visible(c)},S.expr.pseudos.visible=function(c){return!!(c.offsetWidth||c.offsetHeight||c.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new J.XMLHttpRequest}catch{}};var Zs={0:200,1223:204},ai=S.ajaxSettings.xhr();ke.cors=!!ai&&"withCredentials"in ai,ke.ajax=ai=!!ai,S.ajaxTransport(function(c){var p,y;if(ke.cors||ai&&!c.crossDomain)return{send:function(A,P){var D,H=c.xhr();if(H.open(c.type,c.url,c.async,c.username,c.password),c.xhrFields)for(D in c.xhrFields)H[D]=c.xhrFields[D];for(D in c.mimeType&&H.overrideMimeType&&H.overrideMimeType(c.mimeType),c.crossDomain||A["X-Requested-With"]||(A["X-Requested-With"]="XMLHttpRequest"),A)H.setRequestHeader(D,A[D]);p=function(j){return function(){p&&(p=y=H.onload=H.onerror=H.onabort=H.ontimeout=H.onreadystatechange=null,"abort"===j?H.abort():"error"===j?"number"!=typeof H.status?P(0,"error"):P(H.status,H.statusText):P(Zs[H.status]||H.status,H.statusText,"text"!==(H.responseType||"text")||"string"!=typeof H.responseText?{binary:H.response}:{text:H.responseText},H.getAllResponseHeaders()))}},H.onload=p(),y=H.onerror=H.ontimeout=p("error"),void 0!==H.onabort?H.onabort=y:H.onreadystatechange=function(){4===H.readyState&&J.setTimeout(function(){p&&y()})},p=p("abort");try{H.send(c.hasContent&&c.data||null)}catch(j){if(p)throw j}},abort:function(){p&&p()}}}),S.ajaxPrefilter(function(c){c.crossDomain&&(c.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(c){return S.globalEval(c),c}}}),S.ajaxPrefilter("script",function(c){void 0===c.cache&&(c.cache=!1),c.crossDomain&&(c.type="GET")}),S.ajaxTransport("script",function(c){var p,y;if(c.crossDomain||c.scriptAttrs)return{send:function(A,P){p=S("<script>").attr(c.scriptAttrs||{}).prop({charset:c.scriptCharset,src:c.url}).on("load error",y=function(D){p.remove(),y=null,D&&P("error"===D.type?404:200,D.type)}),W.head.appendChild(p[0])},abort:function(){y&&y()}}});var gi,Fs=[],Rs=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var c=Fs.pop()||S.expando+"_"+Ae.guid++;return this[c]=!0,c}}),S.ajaxPrefilter("json jsonp",function(c,p,y){var A,P,D,H=!1!==c.jsonp&&(Rs.test(c.url)?"url":"string"==typeof c.data&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rs.test(c.data)&&"data");if(H||"jsonp"===c.dataTypes[0])return A=c.jsonpCallback=Ie(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,H?c[H]=c[H].replace(Rs,"$1"+A):!1!==c.jsonp&&(c.url+=(Te.test(c.url)?"&":"?")+c.jsonp+"="+A),c.converters["script json"]=function(){return D||S.error(A+" was not called"),D[0]},c.dataTypes[0]="json",P=J[A],J[A]=function(){D=arguments},y.always(function(){void 0===P?S(J).removeProp(A):J[A]=P,c[A]&&(c.jsonpCallback=p.jsonpCallback,Fs.push(A)),D&&Ie(P)&&P(D[0]),D=P=void 0}),"script"}),ke.createHTMLDocument=((gi=W.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===gi.childNodes.length),S.parseHTML=function(c,p,y){return"string"!=typeof c?[]:("boolean"==typeof p&&(y=p,p=!1),p||(ke.createHTMLDocument?((A=(p=W.implementation.createHTMLDocument("")).createElement("base")).href=W.location.href,p.head.appendChild(A)):p=W),D=!y&&[],(P=he.exec(c))?[p.createElement(P[1])]:(P=ks([c],p,D),D&&D.length&&S(D).remove(),S.merge([],P.childNodes)));var A,P,D},S.fn.load=function(c,p,y){var A,P,D,H=this,j=c.indexOf(" ");return-1<j&&(A=oe(c.slice(j)),c=c.slice(0,j)),Ie(p)?(y=p,p=void 0):p&&"object"==typeof p&&(P="POST"),0<H.length&&S.ajax({url:c,type:P||"GET",dataType:"html",data:p}).done(function(B){D=arguments,H.html(A?S("<div>").append(S.parseHTML(B)).find(A):B)}).always(y&&function(B,Q){H.each(function(){y.apply(this,D||[B.responseText,Q,B])})}),this},S.expr.pseudos.animated=function(c){return S.grep(S.timers,function(p){return c===p.elem}).length},S.offset={setOffset:function(c,p,y){var A,P,D,H,j,B,Q=S.css(c,"position"),se=S(c),re={};"static"===Q&&(c.style.position="relative"),j=se.offset(),D=S.css(c,"top"),B=S.css(c,"left"),("absolute"===Q||"fixed"===Q)&&-1<(D+B).indexOf("auto")?(H=(A=se.position()).top,P=A.left):(H=parseFloat(D)||0,P=parseFloat(B)||0),Ie(p)&&(p=p.call(c,y,S.extend({},j))),null!=p.top&&(re.top=p.top-j.top+H),null!=p.left&&(re.left=p.left-j.left+P),"using"in p?p.using.call(c,re):se.css(re)}},S.fn.extend({offset:function(c){if(arguments.length)return void 0===c?this:this.each(function(P){S.offset.setOffset(this,c,P)});var p,y,A=this[0];return A?A.getClientRects().length?{top:(p=A.getBoundingClientRect()).top+(y=A.ownerDocument.defaultView).pageYOffset,left:p.left+y.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var c,p,y,A=this[0],P={top:0,left:0};if("fixed"===S.css(A,"position"))p=A.getBoundingClientRect();else{for(p=this.offset(),y=A.ownerDocument,c=A.offsetParent||y.documentElement;c&&(c===y.body||c===y.documentElement)&&"static"===S.css(c,"position");)c=c.parentNode;c&&c!==A&&1===c.nodeType&&((P=S(c).offset()).top+=S.css(c,"borderTopWidth",!0),P.left+=S.css(c,"borderLeftWidth",!0))}return{top:p.top-P.top-S.css(A,"marginTop",!0),left:p.left-P.left-S.css(A,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent;c&&"static"===S.css(c,"position");)c=c.offsetParent;return c||Ot})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(c,p){var y="pageYOffset"===p;S.fn[c]=function(A){return Bt(this,function(P,D,H){var j;if(_t(P)?j=P:9===P.nodeType&&(j=P.defaultView),void 0===H)return j?j[p]:P[D];j?j.scrollTo(y?j.pageXOffset:H,y?H:j.pageYOffset):P[D]=H},c,A,arguments.length)}}),S.each(["top","left"],function(c,p){S.cssHooks[p]=e(ke.pixelPosition,function(y,A){if(A)return A=L(y,p),ds.test(A)?S(y).position()[p]+"px":A})}),S.each({Height:"height",Width:"width"},function(c,p){S.each({padding:"inner"+c,content:p,"":"outer"+c},function(y,A){S.fn[A]=function(P,D){var H=arguments.length&&(y||"boolean"!=typeof P),j=y||(!0===P||!0===D?"margin":"border");return Bt(this,function(B,Q,se){var re;return _t(B)?0===A.indexOf("outer")?B["inner"+c]:B.document.documentElement["client"+c]:9===B.nodeType?(re=B.documentElement,Math.max(B.body["scroll"+c],re["scroll"+c],B.body["offset"+c],re["offset"+c],re["client"+c])):void 0===se?S.css(B,Q,j):S.style(B,Q,se,j)},p,H?P:void 0,H)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(c,p){S.fn[p]=function(y){return this.on(p,y)}}),S.fn.extend({bind:function(c,p,y){return this.on(c,null,p,y)},unbind:function(c,p){return this.off(c,null,p)},delegate:function(c,p,y,A){return this.on(p,c,y,A)},undelegate:function(c,p,y){return 1===arguments.length?this.off(c,"**"):this.off(p,c||"**",y)},hover:function(c,p){return this.on("mouseenter",c).on("mouseleave",p||c)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(c,p){S.fn[p]=function(y,A){return 0<arguments.length?this.on(p,null,y,A):this.trigger(p)}});var Gs=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(c,p){var y,A,P;if("string"==typeof p&&(y=c[p],p=c,c=y),Ie(c))return A=V.call(arguments,2),(P=function(){return c.apply(
1p||this,A.concat(V.call(arguments)))}).guid=c.guid=c.guid||S.guid++,P},S.holdReady=function(c){c?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=Ue,S.isFunction=Ie,S.isWindow=_t,S.camelCase=jt,S.type=ne,S.now=Date.now,S.isNumeric=function(c){var p=S.type(c);return("number"===p||"string"===p)&&!isNaN(c-parseFloat(c))},S.trim=function(c){return null==c?"":(c+"").replace(Gs,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var $s=J.jQuery,Vs=J.$;return S.noConflict=function(c){return J.$===S&&(J.$=Vs),c&&J.jQuery===S&&(J.jQuery=$s),S},typeof Z>"u"&&(J.jQuery=J.$=S),S}),function(J){"use strict";"function"==typeof define&&define.amd?define(["jquery"],J):typeof exports<"u"?module.exports=J(require("jquery")):J(jQuery)}(function(J){"use strict";var Z=window.Slick||{};(Z=function(){var x=0;return function(E,V){var O,q=this;q.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:J(E),appendDots:J(E),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(R,fe){return J('<button type="button" />').text(fe+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},q.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},J.extend(q,q.initials),q.activeBreakpoint=null,q.animType=null,q.animProp=null,q.breakpoints=[],q.breakpointSettings=[],q.cssTransitions=!1,q.focussed=!1,q.interrupted=!1,q.hidden="hidden",q.paused=!0,q.positionProp=null,q.respondTo=null,q.rowCount=1,q.shouldClick=!0,q.$slider=J(E),q.$slidesCache=null,q.transformType=null,q.transitionType=null,q.visibilityChange="visibilitychange",q.windowWidth=0,q.windowTimer=null,O=J(E).data("slick")||{},q.options=J.extend({},q.defaults,V,O),q.currentSlide=q.options.initialSlide,q.originalSettings=q.options,void 0!==document.mozHidden?(q.hidden="mozHidden",q.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(q.hidden="webkitHidden",q.visibilityChange="webkitvisibilitychange"),q.autoPlay=J.proxy(q.autoPlay,q),q.autoPlayClear=J.proxy(q.autoPlayClear,q),q.autoPlayIterator=J.proxy(q.autoPlayIterator,q),q.changeSlide=J.proxy(q.changeSlide,q),q.clickHandler=J.proxy(q.clickHandler,q),q.selectHandler=J.proxy(q.selectHandler,q),q.setPosition=J.proxy(q.setPosition,q),q.swipeHandler=J.proxy(q.swipeHandler,q),q.dragHandler=J.proxy(q.dragHandler,q),q.keyHandler=J.proxy(q.keyHandler,q),q.instanceUid=x++,q.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,q.registerBreakpoints(),q.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},Z.prototype.addSlide=Z.prototype.slickAdd=function(x,E,V){var O=this;if("boolean"==typeof E)V=E,E=null;else if(E<0||E>=O.slideCount)return!1;O.unload(),"number"==typeof E?0===E&&0===O.$slides.length?J(x).appendTo(O.$slideTrack):V?J(x).insertBefore(O.$slides.eq(E)):J(x).insertAfter(O.$slides.eq(E)):!0===V?J(x).prependTo(O.$slideTrack):J(x).appendTo(O.$slideTrack),O.$slides=O.$slideTrack.children(this.options.slide),O.$slideTrack.children(this.options.slide).detach(),O.$slideTrack.append(O.$slides),O.$slides.each(function(q,R){J(R).attr("data-slick-index",q)}),O.$slidesCache=O.$slides,O.reinit()},Z.prototype.animateHeight=function(){var x=this;if(1===x.options.slidesToShow&&!0===x.options.adaptiveHeight&&!1===x.options.vertical){var E=x.$slides.eq(x.currentSlide).outerHeight(!0);x.$list.animate({height:E},x.options.speed)}},Z.prototype.animateSlide=function(x,E){var V={},O=this;O.animateHeight(),!0===O.options.rtl&&!1===O.options.vertical&&(x=-x),!1===O.transformsEnabled?O.$slideTrack.animate(!1===O.options.vertical?{left:x}:{top:x},O.options.speed,O.options.easing,E):!1===O.cssTransitions?(!0===O.options.rtl&&(O.currentLeft=-O.currentLeft),J({animStart:O.currentLeft}).animate({animStart:x},{duration:O.options.speed,easing:O.options.easing,step:function(q){q=Math.ceil(q),!1===O.options.vertical?(V[O.animType]="translate("+q+"px, 0px)",O.$slideTrack.css(V)):(V[O.animType]="translate(0px,"+q+"px)",O.$slideTrack.css(V))},complete:function(){E&&E.call()}})):(O.applyTransition(),x=Math.ceil(x),V[O.animType]=!1===O.options.vertical?"translate3d("+x+"px, 0px, 0px)":"translate3d(0px,"+x+"px, 0px)",O.$slideTrack.css(V),E&&setTimeout(function(){O.disableTransition(),E.call()},O.options.speed))},Z.prototype.getNavTarget=function(){var E=this.options.asNavFor;return E&&null!==E&&(E=J(E).not(this.$slider)),E},Z.prototype.asNavFor=function(x){var E=this.getNavTarget();null!==E&&"object"==typeof E&&E.each(function(){var V=J(this).slick("getSlick");V.unslicked||V.slideHandler(x,!0)})},Z.prototype.applyTransition=function(x){var E=this,V={};V[E.transitionType]=!1===E.options.fade?E.transformType+" "+E.options.speed+"ms "+E.options.cssEase:"opacity "+E.options.speed+"ms "+E.options.cssEase,!1===E.options.fade?E.$slideTrack.css(V):E.$slides.eq(x).css(V)},Z.prototype.autoPlay=function(){var x=this;x.autoPlayClear(),x.slideCount>x.options.slidesToShow&&(x.autoPlayTimer=setInterval(x.autoPlayIterator,x.options.autoplaySpeed))},Z.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},Z.prototype.autoPlayIterator=function(){var x=this,E=x.currentSlide+x.options.slidesToScroll;x.paused||x.interrupted||x.focussed||(!1===x.options.infinite&&(1===x.direction&&x.currentSlide+1===x.slideCount-1?x.direction=0:0===x.direction&&(E=x.currentSlide-x.options.slidesToScroll,x.currentSlide-1==0&&(x.direction=1))),x.slideHandler(E))},Z.prototype.buildArrows=function(){var x=this;!0===x.options.arrows&&(x.$prevArrow=J(x.options.prevArrow).addClass("slick-arrow"),x.$nextArrow=J(x.options.nextArrow).addClass("slick-arrow"),x.slideCount>x.options.slidesToShow?(x.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),x.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),x.htmlExpr.test(x.options.prevArrow)&&x.$prevArrow.prependTo(x.options.appendArrows),x.htmlExpr.test(x.options.nextArrow)&&x.$nextArrow.appendTo(x.options.appendArrows),!0!==x.options.infinite&&x.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):x.$prevArrow.add(x.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},Z.prototype.buildDots=function(){var x,E,V=this;if(!0===V.options.dots){for(V.$slider.addClass("slick-dotted"),E=J("<ul />").addClass(V.options.dotsClass),x=0;x<=V.getDotCount();x+=1)E.append(J("<li />").append(V.options.customPaging.call(this,V,x)));V.$dots=E.appendTo(V.options.appendDots),V.$dots.find("li").first().addClass("slick-active")}},Z.prototype.buildOut=function(){var x=this;x.$slides=x.$slider.children(x.options.slide+":not(.slick-cloned)").addClass("slick-slide"),x.slideCount=x.$slides.length,x.$slides.each(function(E,V){J(V).attr("data-slick-index",E).data("originalStyling",J(V).attr("style")||"")}),x.$slider.addClass("slick-slider"),x.$slideTrack=0===x.slideCount?J('
1<div class="slick-track"/>').appendTo(x.$slider):x.$slides.wrapAll('<div class="slick-track"/>').parent(),x.$list=x.$slideTrack.wrap('<div class="slick-list"/>').parent(),x.$slideTrack.css("opacity",0),!0!==x.options.centerMode&&!0!==x.options.swipeToSlide||(x.options.slidesToScroll=1),J("img[data-lazy]",x.$slider).not("[src]").addClass("slick-loading"),x.setupInfinite(),x.buildArrows(),x.buildDots(),x.updateDots(),x.setSlideClasses("number"==typeof x.currentSlide?x.currentSlide:0),!0===x.options.draggable&&x.$list.addClass("draggable")},Z.prototype.buildRows=function(){var x,E,V,O,q,R,fe,ge=this;if(O=document.createDocumentFragment(),R=ge.$slider.children(),ge.options.rows>1){for(fe=ge.options.slidesPerRow*ge.options.rows,q=Math.ceil(R.length/fe),x=0;x<q;x++){var et=document.createElement("div");for(E=0;E<ge.options.rows;E++){var xe=document.createElement("div");for(V=0;V<ge.options.slidesPerRow;V++){var kt=x*fe+(E*ge.options.slidesPerRow+V);R.get(kt)&&xe.appendChild(R.get(kt))}et.appendChild(xe)}O.appendChild(et)}ge.$slider.empty().append(O),ge.$slider.children().children().children().css({width:100/ge.options.slidesPerRow+"%",display:"inline-block"})}},Z.prototype.checkResponsive=function(x,E){var V,O,q,R=this,fe=!1,ge=R.$slider.width(),et=window.innerWidth||J(window).width();if("window"===R.respondTo?q=et:"slider"===R.respondTo?q=ge:"min"===R.respondTo&&(q=Math.min(et,ge)),R.options.responsive&&R.options.responsive.length&&null!==R.options.responsive){for(V in O=null,R.breakpoints)R.breakpoints.hasOwnProperty(V)&&(!1===R.originalSettings.mobileFirst?q<R.breakpoints[V]&&(O=R.breakpoints[V]):q>R.breakpoints[V]&&(O=R.breakpoints[V]));null!==O?null!==R.activeBreakpoint?(O!==R.activeBreakpoint||E)&&(R.activeBreakpoint=O,"unslick"===R.breakpointSettings[O]?R.unslick(O):(R.options=J.extend({},R.originalSettings,R.breakpointSettings[O]),!0===x&&(R.currentSlide=R.options.initialSlide),R.refresh(x)),fe=O):(R.activeBreakpoint=O,"unslick"===R.breakpointSettings[O]?R.unslick(O):(R.options=J.extend({},R.originalSettings,R.breakpointSettings[O]),!0===x&&(R.currentSlide=R.options.initialSlide),R.refresh(x)),fe=O):null!==R.activeBreakpoint&&(R.activeBreakpoint=null,R.options=R.originalSettings,!0===x&&(R.currentSlide=R.options.initialSlide),R.refresh(x),fe=O),x||!1===fe||R.$slider.trigger("breakpoint",[R,fe])}},Z.prototype.changeSlide=function(x,E){var V,O,R=this,fe=J(x.currentTarget);switch(fe.is("a")&&x.preventDefault(),fe.is("li")||(fe=fe.closest("li")),V=R.slideCount%R.options.slidesToScroll!=0?0:(R.slideCount-R.currentSlide)%R.options.slidesToScroll,x.data.message){case"previous":O=0===V?R.options.slidesToScroll:R.options.slidesToShow-V,R.slideCount>R.options.slidesToShow&&R.slideHandler(R.currentSlide-O,!1,E);break;case"next":O=0===V?R.options.slidesToScroll:V,R.slideCount>R.options.slidesToShow&&R.slideHandler(R.currentSlide+O,!1,E);break;case"index":var ge=0===x.data.index?0:x.data.index||fe.index()*R.options.slidesToScroll;R.slideHandler(R.checkNavigable(ge),!1,E),fe.children().trigger("focus");break;default:return}},Z.prototype.checkNavigable=function(x){var E,V;if(V=0,x>(E=this.getNavigableIndexes())[E.length-1])x=E[E.length-1];else for(var O in E){if(x<E[O]){x=V;break}V=E[O]}return x},Z.prototype.cleanUpEvents=function(){var x=this;x.options.dots&&null!==x.$dots&&(J("li",x.$dots).off("click.slick",x.changeSlide).off("mouseenter.slick",J.proxy(x.interrupt,x,!0)).off("mouseleave.slick",J.proxy(x.interrupt,x,!1)),!0===x.options.accessibility&&x.$dots.off("keydown.slick",x.keyHandler)),x.$slider.off("focus.slick blur.slick"),!0===x.options.arrows&&x.slideCount>x.options.slidesToShow&&(x.$prevArrow&&x.$prevArrow.off("click.slick",x.changeSlide),x.$nextArrow&&x.$nextArrow.off("click.slick",x.changeSlide),!0===x.options.accessibility&&(x.$prevArrow&&x.$prevArrow.off("keydown.slick",x.keyHandler),x.$nextArrow&&x.$nextArrow.off("keydown.slick",x.keyHandler))),x.$list.off("touchstart.slick mousedown.slick",x.swipeHandler),x.$list.off("touchmove.slick mousemove.slick",x.swipeHandler),x.$list.off("touchend.slick mouseup.slick",x.swipeHandler),x.$list.off("touchcancel.
1slick mouseleave.slick",x.swipeHandler),x.$list.off("click.slick",x.clickHandler),J(document).off(x.visibilityChange,x.visibility),x.cleanUpSlideEvents(),!0===x.options.accessibility&&x.$list.off("keydown.slick",x.keyHandler),!0===x.options.focusOnSelect&&J(x.$slideTrack).children().off("click.slick",x.selectHandler),J(window).off("orientationchange.slick.slick-"+x.instanceUid,x.orientationChange),J(window).off("resize.slick.slick-"+x.instanceUid,x.resize),J("[draggable!=true]",x.$slideTrack).off("dragstart",x.preventDefault),J(window).off("load.slick.slick-"+x.instanceUid,x.setPosition)},Z.prototype.cleanUpSlideEvents=function(){var x=this;x.$list.off("mouseenter.slick",J.proxy(x.interrupt,x,!0)),x.$list.off("mouseleave.slick",J.proxy(x.interrupt,x,!1))},Z.prototype.cleanUpRows=function(){var x,E=this;E.options.rows>1&&((x=E.$slides.children().children()).removeAttr("style"),E.$slider.empty().append(x))},Z.prototype.clickHandler=function(x){!1===this.shouldClick&&(x.stopImmediatePropagation(),x.stopPropagation(),x.preventDefault())},Z.prototype.destroy=function(x){var E=this;E.autoPlayClear(),E.touchObject={},E.cleanUpEvents(),J(".slick-cloned",E.$slider).detach(),E.$dots&&E.$dots.remove(),E.$prevArrow&&E.$prevArrow.length&&(E.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),E.htmlExpr.test(E.options.prevArrow)&&E.$prevArrow.remove()),E.$nextArrow&&E.$nextArrow.length&&(E.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),E.htmlExpr.test(E.options.nextArrow)&&E.$nextArrow.remove()),E.$slides&&(E.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){J(this).attr("style",J(this).data("originalStyling"))}),E.$slideTrack.children(this.options.slide).detach(),E.$slideTrack.detach(),E.$list.detach(),E.$slider.append(E.$slides)),E.cleanUpRows(),E.$slider.removeClass("slick-slider"),E.$slider.removeClass("slick-initialized"),E.$slider.removeClass("slick-dotted"),E.unslicked=!0,x||E.$slider.trigger("destroy",[E])},Z.prototype.disableTransition=function(x){var E=this,V={};V[E.transitionType]="",!1===E.options.fade?E.$slideTrack.css(V):E.$slides.eq(x).css(V)},Z.prototype.fadeSlide=function(x,E){var V=this;!1===V.cssTransitions?(V.$slides.eq(x).css({zIndex:V.options.zIndex}),V.$slides.eq(x).animate({opacity:1},V.options.speed,V.options.easing,E)):(V.applyTransition(x),V.$slides.eq(x).css({opacity:1,zIndex:V.options.zIndex}),E&&setTimeout(function(){V.disableTransition(x),E.call()},V.options.speed))},Z.prototype.fadeSlideOut=function(x){var E=this;!1===E.cssTransitions?E.$slides.eq(x).animate({opacity:0,zIndex:E.options.zIndex-2},E.options.speed,E.options.easing):(E.applyTransition(x),E.$slides.eq(x).css({opacity:0,zIndex:E.options.zIndex-2}))},Z.prototype.filterSlides=Z.prototype.slickFilter=function(x){var E=this;null!==x&&(E.$slidesCache=E.$slides,E.unload(),E.$slideTrack.children(this.options.slide).detach(),E.$slidesCache.filter(x).appendTo(E.$slideTrack),E.reinit())},Z.prototype.focusHandler=function(){var x=this;x.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(E){E.stopImmediatePropagation();var V=J(this);setTimeout(function(){x.options.pauseOnFocus&&(x.focussed=V.is(":focus"),x.autoPlay())},0)})},Z.prototype.getCurrent=Z.prototype.slickCurrentSlide=function(){return this.currentSlide},Z.prototype.getDotCount=function(){var x=this,E=0,V=0,O=0;if(!0===x.options.infinite)if(x.slideCount<=x.options.slidesToShow)++O;else for(;E<x.slideCount;)++O,E=V+x.options.slidesToScroll,V+=x.options.slidesToScroll<=x.options.slidesToShow?x.options.slidesToScroll:x.options.slidesToShow;else if(!0===x.options.centerMode)O=x.slideCount;else if(x.options.asNavFor)for(;E<x.slideCount;)++O,E=V+x.options.slidesToScroll,V+=x.options.slidesToScroll<=x.options.slidesToShow?x.options.slidesToScroll:x.options.slidesToShow;else O=1+Math.ceil((x.slideCount-x.options.slidesToShow)/x.options.slidesToScroll);return O-1},Z.prototype.getLeft=function(x){var E,V,O,q,R=this,fe=0;return R.slideOffset=0,V=R.$slides.first().outerHeight(!0),!0===R.options.infinite?(R.slideCount>R.options.slidesToShow&&(R.slideOffset=R.slideWidth*R.options.slidesToShow*-1,q=-1,!0===R.options.vertical&&!0===R.options.centerMode&&(2===R.options.slidesToShow?q=-1.5:1===R.options.slidesToShow&&(q=-2)),fe=V*R.options.slidesToShow*q),R.slideCount%R.options.slidesToScroll!=0&&x+R.options.slidesToScroll>R.slideCount&&R.slideCount>R.options.slidesToShow&&(x>R.slideCount?(R.slideOffset=(R.options.slidesToShow-(x-R.slideCount))*R.slideWidth*-1,fe=(R.options.slidesToShow-(x-R.slideCount))*V*-1):(R.slideOffset=R.slideCount%R.options.slidesToScroll*R.slideWidth*-1,fe=R.slideCount%R.options.slidesToScroll*V*-1))):x+R.options.slidesToShow>R.slideCount&&(R.slideOffset=(x+R.options.slidesToShow-R.slideCount)*R.slideWidth,fe=(x+R.options.slidesToShow-R.slideCount)*V),R.slideCount<=R.options.slidesToShow&&(R.slideOffset=0,fe=0),!0===R.options.centerMode&&R.slideCount<=R.options.slidesToShow?R.slideOffset=R.slideWidth*Math.floor(R.options.slidesToShow)/2-R.slideWidth*R.slideCount/2:!0===R.options.centerMode&&!0===R.options.infinite?R.slideOffset+=R.slideWidth*Math.floor(R.options.slidesToShow/2)-R.slideWidth:!0===R.options.centerMode&&(R.slideOffset=0,R.slideOffset+=R.slideWidth*Math.floor(R.options.slidesToShow/2)),E=!1===R.options.vertical?x*R.slideWidth*-1+R.slideOffset:x*V*-1+fe,!0===R.options.variableWidth&&(O=R.slideCount<=R.options.slidesToShow||!1===R.options.infinite?R.$slideTrack.children(".slick-slide").eq(x):R.$slideTrack.children(".slick-slide").eq(x+R.options.slidesToShow),E=!0===R.options.rtl?O[0]?-1*(R.$slideTrack.width()-O[0].offsetLeft-O.width()):0:O[0]?-1*O[0].offsetLeft:0,!0===R.options.centerMode&&(O=R.slideCount<=R.options.slidesToShow||!1===R.options.infinite?R.$slideTrack.children(".slick-slide").eq(x):R.$slideTrack.children(".slick-slide").eq(x+R.options.slidesToShow+1),E=!0===R.options.rtl?O[0]?-1*(R.$slideTrack.width()-O[0].offsetLeft-O.width()):0:O[0]?-1*O[0].offsetLeft:0,E+=(R.$list.width()-O.outerWidth())/2)),E},Z.prototype.getOption=Z.prototype.slickGetOption=function(x){return this.options[x]},Z.prototype.getNavigableIndexes=function(){var x,E=this,V=0,O=0,q=[];for(!1===E.options.infinite?x=E.slideCount:(V=-1*E.options.slidesToScroll,O=-1*E.options.slidesToScroll,x=2*E.slideCount);V<x;
1)q.push(V),V=O+E.options.slidesToScroll,O+=E.options.slidesToScroll<=E.options.slidesToShow?E.options.slidesToScroll:E.options.slidesToShow;return q},Z.prototype.getSlick=function(){return this},Z.prototype.getSlideCount=function(){var x,E,V=this;return E=!0===V.options.centerMode?V.slideWidth*Math.floor(V.options.slidesToShow/2):0,!0===V.options.swipeToSlide?(V.$slideTrack.find(".slick-slide").each(function(O,q){if(q.offsetLeft-E+J(q).outerWidth()/2>-1*V.swipeLeft)return x=q,!1}),Math.abs(J(x).attr("data-slick-index")-V.currentSlide)||1):V.options.slidesToScroll},Z.prototype.goTo=Z.prototype.slickGoTo=function(x,E){this.changeSlide({data:{message:"index",index:parseInt(x)}},E)},Z.prototype.init=function(x){var E=this;J(E.$slider).hasClass("slick-initialized")||(J(E.$slider).addClass("slick-initialized"),E.buildRows(),E.buildOut(),E.setProps(),E.startLoad(),E.loadSlider(),E.initializeEvents(),E.updateArrows(),E.updateDots(),E.checkResponsive(!0),E.focusHandler()),x&&E.$slider.trigger("init",[E]),!0===E.options.accessibility&&E.initADA(),E.options.autoplay&&(E.paused=!1,E.autoPlay())},Z.prototype.initADA=function(){var x=this,E=Math.ceil(x.slideCount/x.options.slidesToShow),V=x.getNavigableIndexes().filter(function(R){return R>=0&&R<x.slideCount});x.$slides.add(x.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==x.$dots&&(x.$slides.not(x.$slideTrack.find(".slick-cloned")).each(function(R){var fe=V.indexOf(R);J(this).attr({role:"tabpanel",id:"slick-slide"+x.instanceUid+R,tabindex:-1}),-1!==fe&&J(this).attr({"aria-describedby":"slick-slide-control"+x.instanceUid+fe})}),x.$dots.attr("role","tablist").find("li").each(function(R){var fe=V[R];J(this).attr({role:"presentation"}),J(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+x.instanceUid+R,"aria-controls":"slick-slide"+x.instanceUid+fe,"aria-label":R+1+" of "+E,"aria-selected":null,tabindex:"-1"})}).eq(x.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var O=x.currentSlide,q=O+x.options.slidesToShow;O<q;O++)x.$slides.eq(O).attr("tabindex",0);x.activateADA()},Z.prototype.initArrowEvents=function(){var x=this;!0===x.options.arrows&&x.slideCount>x.options.slidesToShow&&(x.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},x.changeSlide),x.$nextArrow.off("click.slick").on("click.slick",{message:"next"},x.changeSlide),!0===x.options.accessibility&&(x.$prevArrow.on("keydown.slick",x.keyHandler),x.$nextArrow.on("keydown.slick",x.keyHandler)))},Z.prototype.initDotEvents=function(){var x=this;!0===x.options.dots&&(J("li",x.$dots).on("click.slick",{message:"index"},x.changeSlide),!0===x.options.accessibility&&x.$dots.on("keydown.slick",x.keyHandler)),!0===x.options.dots&&!0===x.options.pauseOnDotsHover&&J("li",x.$dots).on("mouseenter.slick",J.proxy(x.interrupt,x,!0)).on("mouseleave.slick",J.proxy(x.interrupt,x,!1))},Z.prototype.initSlideEvents=function(){var x=this;x.options.pauseOnHover&&(x.$list.on("mouseenter.slick",J.proxy(x.interrupt,x,!0)),x.$list.on("mouseleave.slick",J.proxy(x.interrupt,x,!1)))},Z.prototype.initializeEvents=function(){var x=this;x.initArrowEvents(),x.initDotEvents(),x.initSlideEvents(),x.$list.on("touchstart.slick mousedown.slick",{action:"start"},x.swipeHandler),x.$list.on("touchmove.slick mousemove.slick",{action:"move"},x.swipeHandler),x.$list.on("touchend.slick mouseup.slick",{action:"end"}
1,x.swipeHandler),x.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},x.swipeHandler),x.$list.on("click.slick",x.clickHandler),J(document).on(x.visibilityChange,J.proxy(x.visibility,x)),!0===x.options.accessibility&&x.$list.on("keydown.slick",x.keyHandler),!0===x.options.focusOnSelect&&J(x.$slideTrack).children().on("click.slick",x.selectHandler),J(window).on("orientationchange.slick.slick-"+x.instanceUid,J.proxy(x.orientationChange,x)),J(window).on("resize.slick.slick-"+x.instanceUid,J.proxy(x.resize,x)),J("[draggable!=true]",x.$slideTrack).on("dragstart",x.preventDefault),J(window).on("load.slick.slick-"+x.instanceUid,x.setPosition),J(x.setPosition)},Z.prototype.initUI=function(){var x=this;!0===x.options.arrows&&x.slideCount>x.options.slidesToShow&&(x.$prevArrow.show(),x.$nextArrow.show()),!0===x.options.dots&&x.slideCount>x.options.slidesToShow&&x.$dots.show()},Z.prototype.keyHandler=function(x){var E=this;x.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===x.keyCode&&!0===E.options.accessibility?E.changeSlide({data:{message:!0===E.options.rtl?"next":"previous"}}):39===x.keyCode&&!0===E.options.accessibility&&E.changeSlide({data:{message:!0===E.options.rtl?"previous":"next"}}))},Z.prototype.lazyLoad=function(){function x(xe){J("img[data-lazy]",xe).each(function(){var kt=J(this),ke=J(this).attr("data-lazy"),Ie=J(this).attr("data-srcset"),_t=J(this).attr("data-sizes")||q.$slider.attr("data-sizes"),W=document.createElement("img");W.onload=function(){kt.animate({opacity:0}
vendor: 7,146 bytes, line 1
1,100,function(){Ie&&(kt.attr("srcset",Ie),_t&&kt.attr("sizes",_t)),kt.attr("src",ke).animate({opacity:1},200,function(){kt.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),q.$slider.trigger("lazyLoaded",[q,kt,ke])})},W.onerror=function(){kt.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),q.$slider.trigger("lazyLoadError",[q,kt,ke])},W.src=ke})}var E,V,O,q=this;if(!0===q.options.centerMode?!0===q.options.infinite?O=(V=q.currentSlide+(q.options.slidesToShow/2+1))+q.options.slidesToShow+2:(V=Math.max(0,q.currentSlide-(q.options.slidesToShow/2+1)),O=q.options.slidesToShow/2+1+2+q.currentSlide):(V=q.options.infinite?q.options.slidesToShow+q.currentSlide:q.currentSlide,O=Math.ceil(V+q.options.slidesToShow),!0===q.options.fade&&(V>0&&V--,O<=q.slideCount&&O++)),E=q.$slider.find(".slick-slide").slice(V,O),"anticipated"===q.options.lazyLoad)for(var R=V-1,fe=O,ge=q.$slider.find(".slick-slide"),et=0;et<q.options.slidesToScroll;et++)R<0&&(R=q.slideCount-1),E=(E=E.add(ge.eq(R))).add(ge.eq(fe)),R--,fe++;x(E),q.slideCount<=q.options.slidesToShow?x(q.$slider.find(".slick-slide")):q.currentSlide>=q.slideCount-q.options.slidesToShow?x(q.$slider.find(".slick-cloned").slice(0,q.options.slidesToShow)):0===q.currentSlide&&x(q.$slider.find(".slick-cloned").slice(-1*q.options.slidesToShow))},Z.prototype.loadSlider=function(){var x=this;x.setPosition(),x.$slideTrack.css({opacity:1}),x.$slider.removeClass("slick-loading"),x.initUI(),"progressive"===x.options.lazyLoad&&x.progressiveLazyLoad()},Z.prototype.next=Z.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},Z.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},Z.prototype.pause=Z.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},Z.prototype.play=Z.prototype.slickPlay=function(){var x=this;x.autoPlay(),x.options.autoplay=!0,x.paused=!1,x.focussed=!1,x.interrupted=!1},Z.prototype.postSlide=function(x){var E=this;E.unslicked||(E.$slider.trigger("afterChange",[E,x]),E.animating=!1,E.slideCount>E.options.slidesToShow&&E.setPosition(),E.swipeLeft=null,E.options.autoplay&&E.autoPlay(),!0===E.options.accessibility&&(E.initADA(),E.options.focusOnChange&&J(E.$slides.get(E.currentSlide)).attr("tabindex",0).focus()))},Z.prototype.prev=Z.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},Z.prototype.preventDefault=function(x){x.preventDefault()},Z.prototype.progressiveLazyLoad=function(x){x=x||1;var E,V,O,q,R,fe=this,ge=J("img[data-lazy]",fe.$slider);ge.length?(E=ge.first(),V=E.attr("data-lazy"),O=E.attr("data-srcset"),q=E.attr("data-sizes")||fe.$slider.attr("data-sizes"),(R=document.createElement("img")).onload=function(){O&&(E.attr("srcset",O),q&&E.attr("sizes",q)),E.attr("src",V).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===fe.options.adaptiveHeight&&fe.setPosition(),fe.$slider.trigger("lazyLoaded",[fe,E,V]),fe.progressiveLazyLoad()},R.onerror=function(){x<3?setTimeout(function(){fe.progressiveLazyLoad(x+1)},500):(E.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),fe.$slider.trigger("lazyLoadError",[fe,E,V]),fe.progressiveLazyLoad())},R.src=V):fe.$slider.trigger("allImagesLoaded",[fe])},Z.prototype.refresh=function(x){var E,V,O=this;V=O.slideCount-O.options.slidesToShow,!O.options.infinite&&O.currentSlide>V&&(O.currentSlide=V),O.slideCount<=O.options.slidesToShow&&(O.currentSlide=0),E=O.currentSlide,O.destroy(!0),J.extend(O,O.initials,{currentSlide:E}),O.init(),x||O.changeSlide({data:{message:"index",index:E}},!1)},Z.prototype.registerBreakpoints=function(){var x,E,V,O=this,q=O.options.responsive||null;if("array"===J.type(q)&&q.length){for(x in O.respondTo=O.options.respondTo||"window",q)if(V=O.breakpoints.length-1,q.hasOwnProperty(x)){for(E=q[x].breakpoint;V>=0;)O.breakpoints[V]&&O.breakpoints[V]===E&&O.breakpoints.splice(V,1),V--;O.breakpoints.push(E),O.breakpointSettings[E]=q[x].settings}O.breakpoints.sort(function(R,fe){return O.options.mobileFirst?R-fe:fe-R})}},Z.prototype.reinit=function(){var x=this;x.$slides=x.$slideTrack.children(x.options.slide).addClass("slick-slide"),x.slideCount=x.$slides.length,x.currentSlide>=x.slideCount&&0!==x.currentSlide&&(x.currentSlide=x.currentSlide-x.options.slidesToScroll),x.slideCount<=x.options.slidesToShow&&(x.currentSlide=0),x.registerBreakpoints(),x.setProps(),x.setupInfinite(),x.buildArrows(),x.updateArrows(),x.initArrowEvents(),x.buildDots(),x.updateDots(),x.initDotEvents(),x.cleanUpSlideEvents(),x.initSlideEvents(),x.checkResponsive(!1,!0),!0===x.options.focusOnSelect&&J(x.$slideTrack).children().on("click.slick",x.selectHandler),x.setSlideClasses("number"==typeof x.currentSlide?x.currentSlide:0),x.setPosition(),x.focusHandler(),x.paused=!x.options.autoplay,x.autoPlay(),x.$slider.trigger("reInit",[x])},Z.prototype.resize=function(){var x=this;J(window).width()!==x.windowWidth&&(clearTimeout(x.windowDelay),x.windowDelay=window.setTimeout(function(){x.windowWidth=J(window).width(),x.checkResponsive(),x.unslicked||x.setPosition()},50))},Z.prototype.removeSlide=Z.prototype.slickRemove=function(x,E,V){var O=this;if(x="boolean"==typeof x?!0===(E=x)?0:O.slideCount-1:!0===E?--x:x,O.slideCount<1||x<0||x>O.slideCount-1)return!1;O.unload(),!0===V?O.$slideTrack.children().remove():O.$slideTrack.children(this.options.slide).eq(x).remove(),O.$slides=O.$slideTrack.children(this.options.slide),O.$slideTrack.children(this.options.slide).detach(),O.$slideTrack.append(O.$slides),O.$slidesCache=O.$slides,O.reinit()},Z.prototype.setCSS=function(x){var E,V,O=this,q={};!0===O.options.rtl&&(x=-x),E="left"==O.positionProp?Math.ceil(x)+"px":"0px",V="top"==O.positionProp?Math.ceil(x)+"px":"0px",q[O.positionProp]=x,!1===O.transformsEnabled?O.$slideTrack.css(q):(q={},!1===O.cssTransitions?(q[O.animType]="translate("+E+", "+V+")",O.$slideTrack.css(q)):(q[O.animType]="translate3d("+E+", "+V+", 0px)",O.$slideTrack.css(q)))},Z.prototype.setDimensions=function(){var x=this;!1===x.options.vertical?!0===x.options.centerMode&&x.$list.css({padding:"0px "+x.options.centerPadding}):(x.$list.height(x.$slides.first().outerHeight(!0)*x.options.slidesToShow),!0===x.options.centerMode&&x.$list.css({padding:x.options.centerPadding+" 0px"})),x.listWidth=x.$list.width(),x.listHeight=x.$list.height(),!1===x.options.vertical&&!1===x.options.variableWidth?(x.slideWidth=Math.ceil(x.listWidth/x.options.slidesToShow),x.$slideTrack.width(Math.ceil(x.slideWidth*x.$slideTrack.children(".slick-slide").length))):!0===x.options.variableWidth?x.$slideTrack.width(5e3*x.slideCount):(x.slideWidth=Math.ceil(x.listWidth),x.$slideTrack.height(Math.ceil(x.$slides.first().outerHeight(!0)*x.$slideTrack.children(".slick-slide").length)));var E=x.$slides.first().outerWidth(!0)-x.$slides.first().width();!1===x.options.variableWidth&&x.$slideTrack.children(".slick-slide").width(x.slideWidth-E)},Z.prototype.setFade=function(){var x,E=this;E.$slides.each(function(V,O){x=E.slideWidth*V*-1,!0===E.options.rtl?J(O).css({position:"relative",right:x,top:0,zIndex:E.options.zIndex-2,opacity:0}
1):J(O).css({position:"relative",left:x,top:0,zIndex:E.options.zIndex-2,opacity:0})}),E.$slides.eq(E.currentSlide).css({zIndex:E.options.zIndex-1,opacity:1})},Z.prototype.setHeight=function(){var x=this;if(1===x.options.slidesToShow&&!0===x.options.adaptiveHeight&&!1===x.options.vertical){var E=x.$slides.eq(x.currentSlide).outerHeight(!0);x.$list.css("height",E)}},Z.prototype.setOption=Z.prototype.slickSetOption=function(){var x,E,V,O,q,R=this,fe=!1;if("object"===J.type(arguments[0])?(V=arguments[0],fe=arguments[1],q="multiple"):"string"===J.type(arguments[0])&&(V=arguments[0],O=arguments[1],fe=arguments[2],"responsive"===arguments[0]&&"array"===J.type(arguments[1])?q="responsive":void 0!==arguments[1]&&(q="single")),"single"===q)R.options[V]=O;else if("multiple"===q)J.each(V,function(ge,et){R.options[ge]=et});else if("responsive"===q)for(E in O)if("array"!==J.type(R.options.responsive))R.options.responsive=[O[E]];else{for(x=R.options.responsive.length-1;x>=0;)R.options.responsive[x].breakpoint===O[E].breakpoint&&R.options.responsive.splice(x,1),x--;R.options.responsive.push(O[E])}fe&&(R.unload(),R.reinit())},Z.prototype.setPosition=function(){var x=this;x.setDimensions(),x.setHeight(),!1===x.options.fade?x.setCSS(x.getLeft(x.currentSlide)):x.setFade(),x.$slider.trigger("setPosition",[x])},Z.prototype.setProps=function(){var x=this,E=document.body.style;x.positionProp=!0===x.options.vertical?"top":"left","top"===x.positionProp?x.$slider.addClass("slick-vertical"):x.$slider.removeClass("slick-vertical"),void 0===E.WebkitTransition&&void 0===E.MozTransition&&void 0===E.msTransition||!0===x.options.useCSS&&(x.cssTransitions=!0),x.options.fade&&("number"==typeof x.options.zIndex?x.options.zIndex<3&&(x.options.zIndex=3):x.options.zIndex=x.defaults.zIndex),void 0!==E.OTransform&&(x.animType="OTransform",x.transformType="-o-transform",x.transitionType="OTransition",void 0===E.perspectiveProperty&&void 0===E.webkitPerspective&&(x.animType=!1)),void 0!==E.MozTransform&&(x.animType="MozTransform",x.transformType="-moz-transform",x.transitionType="MozTransition",void 0===E.perspectiveProperty&&void 0===E.MozPerspective&&(x.animType=!1)),void 0!==E.webkitTransform&&(x.animType="webkitTransform",x.transformType="-webkit-transform",x.transitionType="webkitTransition",void 0===E.perspectiveProperty&&void 0===E.webkitPerspective&&(x.animType=!1)),void 0!==E.msTransform&&(x.animType="msTransform",x.transformType="-ms-transform",x.transitionType="msTransition",void 0===E.msTransform&&(x.animType=!1)),void 0!==E.transform&&!1!==x.animType&&(x.animType="transform",x.transformType="transform",x.transitionType="transition"),x.transformsEnabled=x.options.useTransform&&null!==x.animType&&!1!==x.animType},Z.prototype.setSlideClasses=function(x){var E,V,O,q,R=this;if(V=R.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),R.$slides.eq(x).addClass("slick-current"),!0===R.options.centerMode){var fe=R.options.slidesToShow%2==0?1:0;E=Math.floor(R.options.slidesToShow/2),!0===R.options.infinite&&(x>=E&&x<=R.slideCount-1-E?R.$slides.slice(x-E+fe,x+E+1).addClass("slick-active").attr("aria-hidden","false"):V.slice((O=R.options.slidesToShow+x)-E+1+fe,O+E+2).addClass("slick-active").attr("aria-hidden","false"),0===x?V.eq(V.length-1-R.options.slidesToShow).addClass("slick-center"):x===R.slideCount-1&&V.eq(R.options.slidesToShow).addClass("slick-center")),R.$slides.eq(x).addClass("slick-center")}else x>=0&&x<=R.slideCount-R.options.slidesToShow?R.$slides.slice(x,x+R.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):V.length<=R.options.slidesToShow?V.addClass("slick-active").attr("aria-hidden","false"):(q=R.slideCount%R.options.slidesToShow,O=!0===R.options.infinite?R.options.slidesToShow+x:x,R.options.slidesToShow==R.options.slidesToScroll&&R.slideCount-x<R.options.slidesToShow?V.slice(O-(R.options.slidesToShow-q),O+q).addClass("slick-active").attr("aria-hidden","false"):V.slice(O,O+R.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==R.options.lazyLoad&&"anticipated"!==R.options.lazyLoad||R.lazyLoad()},Z.prototype.setupInfinite=function(){var x,E,V,O=this;if(!0===O.options.fade&&(O.options.centerMode=!1),!0===O.options.infinite&&!1===O.options.fade&&(E=null,O.slideCount>O.options.slidesToShow)){for(V=!0===O.options.centerMode?O.options.slidesToShow+1:O.options.slidesToShow,x=O.
1slideCount;x>O.slideCount-V;x-=1)J(O.$slides[E=x-1]).clone(!0).attr("id","").attr("data-slick-index",E-O.slideCount).prependTo(O.$slideTrack).addClass("slick-cloned");for(x=0;x<V+O.slideCount;x+=1)J(O.$slides[E=x]).clone(!0).attr("id","").attr("data-slick-index",E+O.slideCount).appendTo(O.$slideTrack).addClass("slick-cloned");O.$slideTrack.find(".slick-cloned").find("[id]").each(function(){J(this).attr("id","")})}},Z.prototype.interrupt=function(x){x||this.autoPlay(),this.interrupted=x},Z.prototype.selectHandler=function(x){var E=this,V=J(x.target).is(".slick-slide")?J(x.target):J(x.target).parents(".slick-slide"),O=parseInt(V.attr("data-slick-index"));O||(O=0),E.slideCount<=E.options.slidesToShow?E.slideHandler(O,!1,!0):E.slideHandler(O)},Z.prototype.slideHandler=function(x,E,V){var O,q,R,fe,ge,et=null,xe=this;if(E=E||!1,!(!0===xe.animating&&!0===xe.options.waitForAnimate||!0===xe.options.fade&&xe.currentSlide===x))if(!1===E&&xe.asNavFor(x),et=xe.getLeft(O=x),fe=xe.getLeft(xe.currentSlide),xe.currentLeft=null===xe.swipeLeft?fe:xe.swipeLeft,!1===xe.options.infinite&&!1===xe.options.centerMode&&(x<0||x>xe.getDotCount()*xe.options.slidesToScroll))!1===xe.options.fade&&(O=xe.currentSlide,!0!==V?xe.animateSlide(fe,function(){xe.postSlide(O)}):xe.postSlide(O));else if(!1===xe.options.infinite&&!0===xe.options.centerMode&&(x<0||x>xe.slideCount-xe.options.slidesToScroll))!1===xe.options.fade&&(O=xe.currentSlide,!0!==V?xe.animateSlide(fe,function(){xe.postSlide(O)}):xe.postSlide(O));else{if(xe.options.autoplay&&clearInterval(xe.autoPlayTimer),q=O<0?xe.slideCount%xe.options.slidesToScroll!=0?xe.slideCount-xe.slideCount%xe.options.slidesToScroll:xe.slideCount+O:O>=xe.slideCount?xe.slideCount%xe.options.slidesToScroll!=0?0:O-xe.slideCount:O,xe.animating=!0,xe.$slider.trigger("beforeChange",[xe,xe.currentSlide,q]),R=xe.currentSlide,xe.currentSlide=q,xe.setSlideClasses(xe.currentSlide),xe.options.asNavFor&&(ge=(ge=xe.getNavTarget()).slick("getSlick")).slideCount<=ge.options.slidesToShow&&ge.setSlideClasses(xe.currentSlide),xe.updateDots(),xe.updateArrows(),!0===xe.options.fade)return!0!==V?(xe.fadeSlideOut(R),xe.fadeSlide(q,function(){xe.postSlide(q)})):xe.postSlide(q),void xe.animateHeight();!0!==V?xe.animateSlide(et,function(){xe.postSlide(q)}):xe.postSlide(q)}},Z.prototype.startLoad=function(){var x=this;!0===x.options.arrows&&x.slideCount>x.options.slidesToShow&&(x.$prevArrow.hide(),x.$nextArrow.hide()),!0===x.options.dots&&x.slideCount>x.options.slidesToShow&&x.$dots.hide(),x.$slider.addClass("slick-loading")},Z.prototype.swipeDirection=function(){var V,O,q=this;return V=Math.atan2(q.touchObject.startY-q.touchObject.curY,q.touchObject.startX-q.touchObject.curX),(O=Math.round(180*V/Math.PI))<0&&(O=360-Math.abs(O)),O<=45&&O>=0||O<=360&&O>=315?!1===q.options.rtl?"left":"right":O>=135&&O<=225?!1===q.options.rtl?"right":"left":!0===q.options.verticalSwiping?O>=35&&O<=135?"down":"up":"vertical"},Z.prototype.swipeEnd=function(x){var E,V,O=this;if(O.dragging=!1,O.swiping=!1,O.scrolling)return O.scrolling=!1,!1;if(O.interrupted=!1,O.shouldClick=!(O.touchObject.swipeLength>10),void 0===O.touchObject.curX)return!1;if(!0===O.touchObject.edgeHit&&O.$slider.trigger("edge",[O,O.swipeDirection()]),O.touchObject.swipeLength>=O.touchObject.minSwipe){switch(V=O.swipeDirection()){case"left":case"down":E=O.options.swipeToSlide?O.checkNavigable(O.currentSlide+O.getSlideCount()):O.currentSlide+O.getSlideCount(),O.currentDirection=0;break;case"right":case"up":E=O.options.swipeToSlide?O.checkNavigable(O.currentSlide-O.getSlideCount()):O.currentSlide-O.getSlideCount(),O.currentDirection=1}"vertical"!=V&&(O.slideHandler(E),O.touchObject={},O.$slider.trigger("swipe",[O,V]))}else O.touchObject.startX!==O.touchObject.curX&&(O.slideHandler(O.currentSlide),O.touchObject={})},Z.prototype.swipeHandler=function(x){var E=this;if(!(!1===E.options.swipe||"ontouchend"in document&&!1===E.options.swipe||!1===E.options.draggable&&-1!==x.type.indexOf("mouse")))switch(E.touchObject.fingerCount=x.originalEvent&&void 0!==x.originalEvent.touches?x.originalEvent.touches.length:1,E.touchObject.minSwipe=E.listWidth/E.options.touchThreshold,!0===E.options.verticalSwiping&&(E.touchObject.minSwipe=E.listHeight/E.options.touchThreshold),x.data.action){case"start":E.swipeStart(x);break;
1case"move":E.swipeMove(x);break;case"end":E.swipeEnd(x)}},Z.prototype.swipeMove=function(x){var E,V,O,q,R,fe,ge=this;return R=void 0!==x.originalEvent?x.originalEvent.touches:null,!(!ge.dragging||ge.scrolling||R&&1!==R.length)&&(E=ge.getLeft(ge.currentSlide),ge.touchObject.curX=void 0!==R?R[0].pageX:x.clientX,ge.touchObject.curY=void 0!==R?R[0].pageY:x.clientY,ge.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(ge.touchObject.curX-ge.touchObject.startX,2))),fe=Math.round(Math.sqrt(Math.pow(ge.touchObject.curY-ge.touchObject.startY,2))),!ge.options.verticalSwiping&&!ge.swiping&&fe>4?(ge.scrolling=!0,!1):(!0===ge.options.verticalSwiping&&(ge.touchObject.swipeLength=fe),V=ge.swipeDirection(),void 0!==x.originalEvent&&ge.touchObject.swipeLength>4&&(ge.swiping=!0,x.preventDefault()),q=(!1===ge.options.rtl?1:-1)*(ge.touchObject.curX>ge.touchObject.startX?1:-1),!0===ge.options.verticalSwiping&&(q=ge.touchObject.curY>ge.touchObject.startY?1:-1),O=ge.touchObject.swipeLength,ge.touchObject.edgeHit=!1,!1===ge.options.infinite&&(0===ge.currentSlide&&"right"===V||ge.currentSlide>=ge.getDotCount()&&"left"===V)&&(O=ge.touchObject.swipeLength*ge.options.edgeFriction,ge.touchObject.edgeHit=!0),ge.swipeLeft=!1===ge.options.vertical?E+O*q:E+O*(ge.$list.height()/ge.listWidth)*q,!0===ge.options.verticalSwiping&&(ge.swipeLeft=E+O*q),!0!==ge.options.fade&&!1!==ge.options.touchMove&&(!0===ge.animating?(ge.swipeLeft=null,!1):void ge.setCSS(ge.swipeLeft))))},Z.prototype.swipeStart=function(x){var E,V=this;if(V.interrupted=!0,1!==V.touchObject.fingerCount||V.slideCount<=V.options.slidesToShow)return V.touchObject={},!1;void 0!==x.originalEvent&&void 0!==x.originalEvent.touches&&(E=x.originalEvent.touches[0]),V.touchObject.startX=V.touchObject.curX=void 0!==E?E.pageX:x.clientX,V.touchObject.startY=V.touchObject.curY=void 0!==E?E.pageY:x.clientY,V.dragging=!0},Z.prototype.unfilterSlides=Z.prototype.slickUnfilter=function(){var x=this;null!==x.$slidesCache&&(x.unload(),x.$slideTrack.children(this.options.slide).detach(),x.$slidesCache.appendTo(x.$slideTrack),x.reinit())},Z.prototype.unload=function(){var x=this;J(".slick-cloned",x.$slider).remove(),x.$dots&&x.$dots.remove(),x.$prevArrow&&x.htmlExpr.test(x.options.prevArrow)&&x.$prevArrow.remove(),x.$nextArrow&&x.htmlExpr.test(x.options.nextArrow)&&x.$nextArrow.remove(),x.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},Z.prototype.unslick=function(x){var E=this;E.$slider.trigger("unslick",[E,x]),E.destroy()},Z.prototype.updateArrows=function(){var x=this;Math.floor(x.options.slidesToShow/2),!0===x.options.arrows&&x.slideCount>x.options.slidesToShow&&!x.options.infinite&&(x.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),x.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===x.currentSlide?(x.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),x.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(x.currentSlide>=x.slideCount-x.options.slidesToShow&&!1===x.options.centerMode||x.currentSlide>=x.slideCount-1&&!0===x.options.centerMode)&&(x.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),x.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},Z.prototype.updateDots=function(){var x=this;null!==x.$dots&&(x.$dots.find("li").removeClass("slick-active").end(),x.$dots.find("li").eq(Math.floor(x.currentSlide/x.options.slidesToScroll)).addClass("slick-active"))},Z.prototype.visibility=function(){var x=this;x.options.autoplay&&(x.interrupted=!!document[x.hidden])},J.fn.slick=function(){var x,E,V=this,O=arguments[0],q=Array.prototype.slice.call(arguments,1),R=V.length;for(x=0;x<R;x++)if("object"==typeof O||void 0===O?V[x].slick=new Z(V[x],O):E=V[x].slick[O].apply(V[x].slick,q),void 0!==E)return E;return V}}),function(J,Z){"object"==typeof exports&&typeof module<"u"?module.exports=Z():"function"==typeof define&&define.amd?define(Z):(J=typeof globalThis<"u"?globalThis:J||self).ApexCharts=Z()}(this,function(){"use strict";function J(L,e){var t=Object.keys(L);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(L);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(L,s).enumerable})),t.push.apply(t,i)}return t}function Z(L){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};
1e%2?J(Object(t),!0).forEach(function(i){q(L,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(L,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach(function(i){Object.defineProperty(L,i,Object.getOwnPropertyDescriptor(t,i))})}return L}function x(L){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(L)}function E(L,e){if(!(L instanceof e))throw new TypeError("Cannot call a class as a function")}function V(L,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(L,i.key,i)}}function O(L,e,t){return e&&V(L.prototype,e),t&&V(L,t),L}function q(L,e,t){return e in L?Object.defineProperty(L,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):L[e]=t,L}function R(L,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(e&&e.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),e&&ge(L,e)}function fe(L){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(L)}function ge(L,e){return(ge=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(L,e)}function et(L){if(void 0===L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}function xe(L){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,i=fe(L);if(e){var s=fe(this).constructor;t=Reflect.construct(i,arguments,s)}else t=i.apply(this,arguments);return function(a,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return et(a)}(this,t)}}function kt(L,e){return function(t){if(Array.isArray(t))return t}(L)||function(t,i){var s=null==t?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(null!=s){var a,n,r=[],o=!0,h=!1;try{for(s=s.call(t);!(o=(a=s.next()).done)&&(r.push(a.value),!i||r.length!==i);o=!0);}catch(d){h=!0,n=d}finally{try{o||null==s.return||s.return()}finally{if(h)throw n}}return r}}(L,e)||Ie(L,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(L){return function(e){if(Array.isArray(e))return _t(e)}(L)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(L)||Ie(L)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(L,e){if(L){if("string"==typeof L)return _t(L,e);var t=Object.prototype.toString.call(L).slice(8,-1);return"Object"===t&&L.constructor&&(t=L.constructor.name),"Map"===t||"Set"===t?Array.from(L):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_t(L,e):void 0}}function _t(L,e){(null==e||e>L.length)&&(e=L.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=L[t];return i}var W=function(){function L(){E(this,L)}return O(L,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),s=e<0?0:255,a=e<0?-1*e:e,n=parseInt(i[0].slice(4),10),r=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((s-n)*a)+n)+","+(Math.round((s-r)*a)+r)+","+(Math.round((s-o)*a)+o)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),s=e<0?0:255,a=e<0?-1*e:e,n=i>>16,r=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((s-n)*a)+n)+256*(Math.round((s-r)*a)+r)+(Math.round((s-o)*a)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return L.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===x(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}},{key:"extend",value:function(e,t){var i=this;
vendor: 6,625 bytes, line 1
1"function"!=typeof Object.assign&&(Object.assign=function(a){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(a),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var h in o)o.hasOwnProperty(h)&&(n[h]=o[h])}return n});var s=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(a){i.isObject(t[a])&&a in e?s[a]=i.extend(e[a],t[a]):Object.assign(s,q({},a,t[a]))}),s}},{key:"extendArray",value:function(e,t){var i=[];return e.map(function(s){i.push(L.extend(t,s))}),i}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){if(L.is("Array",e)){for(var t=[],i=0;i<e.length;i++)t[i]=this.clone(e[i]);return t}if(L.is("Null",e))return null;if(L.is("Date",e))return e;if("object"===x(e)){var s={};for(var a in e)e.hasOwnProperty(a)&&(s[a]=this.clone(e[a]));return s}return e}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var i="",s=e<0?"-":"",a=t[0].replace(".",""),n=Number(t[1])+1;if(n<0){for(i=s+"0.";n++;)i+="0";return i+a.replace(/^-/,"")}for(n-=a.length;n--;)i+="0";return a+i}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),i=e.clientHeight,s=e.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[s-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(t,i){return Array.isArray(i)&&(i=i.reduce(function(s,a){return s.length>a.length?s:a})),t.length>i.length?t:i},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var i=e.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var s=0;s<i.length;s++)i[s]=parseInt(1===i[s].length?i[s]+i[s]:i[s],16);return void 0!==t&&i.push(t),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var i=[],s=2*Math.PI/t,a=0;a<t;a++){var n={};n.x=e*Math.sin(a*s),n.y=-e*Math.cos(a*s),i.push(n)}return i}},{key:"polarToCartesian",value:function(e,t,i,s){var a=(s-90)*Math.PI/180;return{x:e+i*Math.cos(a),y:t+i*Math.sin(a)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";return e.toString().slice().replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var s=i-e.length+1;s--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"preciseAddition",value:function(e,t){var i=(String(e).split(".")[1]||"").length,s=(String(t).split(".")[1]||"").length,a=Math.pow(10,Math.max(i,s));return(Math.round(e*a)+Math.round(t*a))/a}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%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(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var s=e.indexOf("Edge/");return s>0&&parseInt(e.substring(s+5,e.indexOf(".",s)),10)}},{key:"getGCD",value:function(e,t){var s=Math.pow(10,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:7)-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*s),t=Math.round(Math.abs(t)*s);t;){var a=t;t=e%t,e=a}return e/s}},{key:"getPrimeFactors",value:function(e){for(var t=[],i=2;e>=2;)e%i==0?(t.push(i),e/=i):i++;return t}},{key:"mod",value:function(e,t){var s=Math.pow(10,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:7)-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*s))%(t=Math.round(Math.abs(t)*s))/s}}]),L}(),gt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return O(L,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(t){var i=1.70158;return(t-=1)*t*((i+1)*t+i)+1};break;case"bounce":e=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":e=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,s){e.attr(t).animate(s).attr(i)}},{key:"animateMarker",value:function(e,t,i,s){e.attr({opacity:0}
1).animate(t,i).attr({opacity:1}).afterAll(function(){s()})}},{key:"animateRect",value:function(e,t,i,s,a){e.attr(t).animate(s).attr(i).afterAll(function(){return a()})}},{key:"animatePathsGradually",value:function(e){var d=this.w,u=0;d.config.chart.animations.animateGradually.enabled&&(u=d.config.chart.animations.animateGradually.delay),d.config.chart.animations.dynamicAnimation.enabled&&d.globals.dataChanged&&"bar"!==d.config.chart.type&&(u=0),this.morphSVG(e.el,e.realIndex,e.j,"line"!==d.config.chart.type||d.globals.comboCharts?e.fill:"stroke",e.pathFrom,e.pathTo,e.speed,e.delay*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,s,a,n,r,o){var h=this,d=this.w;a||(a=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var u=function(g){return"radar"===d.config.chart.type&&(r=1),"M 0 ".concat(d.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=u()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=u()),d.globals.shouldAnimate||(r=1),e.plot(a).animate(1,d.globals.easing,o).plot(a).animate(r,d.globals.easing,o).plot(n).afterAll(function(){W.isNumber(i)?i===d.globals.series[d.globals.maxValsInArrayIndex].length-2&&d.globals.shouldAnimate&&h.animationCompleted(e):"none"!==s&&d.globals.shouldAnimate&&(!d.globals.comboCharts&&t===d.globals.series.length-1||d.globals.comboCharts)&&h.animationCompleted(e),h.showDelayedElements()})}}]),L}(),Qe=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var s=this,a=this.w,n=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var o=a.config.chart.dropShadow;(o.enabled?s.addShadow(r,t,o):r).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var s=this,a=this.w,n=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(r){var o=a.config.chart.dropShadow;(o.enabled?s.addShadow(r,t,o):r).componentTransfer({rgb:{type:"linear",slope:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:s});break;case"darken":this.addDarkenFilter(e,t,{intensity:s})}}},{key:"addShadow",value:function(e,t,i){var s,a=this.w,n=i.blur,r=i.top,o=i.left,h=i.color,d=i.opacity;if((null===(s=a.config.chart.dropShadow.enabledOnSeries)||void 0===s?void 0:s.length)>0&&-1===a.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;var u=e.flood(Array.isArray(h)?h[t]:h,d).composite(e.sourceAlpha,"in").offset(o,r).gaussianBlur(n).merge(e.source);return e.blend(e.source,u)}},{key:"dropShadow",value:function(e,t){var i,s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=t.top,r=t.left,o=t.blur,h=t.color,d=t.opacity,u=t.noUserSpaceOnUse,g=this.w;return e.unfilter(!0),W.isIE()&&"radialBar"===g.config.chart.type||(null===(i=g.config.chart.dropShadow.enabledOnSeries)||void 0===i?void 0:i.length)>0&&-1===(null===(s=g.config.chart.dropShadow.enabledOnSeries)||void 0===s?void 0:s.indexOf(a))||(h=Array.isArray(h)?h[a]:h,e.filter(function(m){var b;b=W.isSafari()||W.isFirefox()||W.isIE()?m.flood(h,d).composite(m.sourceAlpha,"in").offset(r,n).gaussianBlur(o):m.flood(h,d).composite(m.sourceAlpha,"in").offset(r,n).gaussianBlur(o).merge(m.source),m.blend(m.source,b)}),u||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var s=this.w;if(void 0!==s.globals.selectedDataPoints[t]&&s.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var a=s.config.states.active.filter;"none"!==a&&this.applyFilter(e,t,a.type,a.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),L}(),ne=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}
vendor: 5,798 bytes, line 1
1return O(L,[{key:"roundPathCorners",value:function(e,t){function i(N,Y,F){var te=Y.x-N.x,oe=Y.y-N.y,K=Math.sqrt(te*te+oe*oe);return s(N,Y,Math.min(1,F/K))}function s(N,Y,F){return{x:N.x+(Y.x-N.x)*F,y:N.y+(Y.y-N.y)*F}}function a(N,Y){N.length>2&&(N[N.length-2]=Y.x,N[N.length-1]=Y.y)}function n(N){return{x:parseFloat(N[N.length-2]),y:parseFloat(N[N.length-1])}}e.indexOf("NaN")>-1&&(e="");var r=e.split(/[,\s]/).reduce(function(N,Y){var F=Y.match("([a-zA-Z])(.+)");return F?(N.push(F[1]),N.push(F[2])):N.push(Y),N},[]).reduce(function(N,Y){return parseFloat(Y)==Y&&N.length?N[N.length-1].push(Y):N.push([Y]),N},[]),o=[];if(r.length>1){var h=n(r[0]),d=null;"Z"==r[r.length-1][0]&&r[0].length>2&&(r[r.length-1]=d=["L",h.x,h.y]),o.push(r[0]);for(var u=1;u<r.length;u++){var g=o[o.length-1],m=r[u],b=m==d?r[1]:r[u+1];if(b&&g&&g.length>2&&"L"==m[0]&&b.length>2&&"L"==b[0]){var w,C,T=n(g),_=n(m),l=n(b);w=i(_,T,t),C=i(_,l,t),a(m,w),m.origPoint=_,o.push(m);var f=s(w,_,.5),k=s(_,C,.5),I=["C",f.x,f.y,k.x,k.y,C.x,C.y];I.origPoint=_,o.push(I)}else o.push(m)}if(d){var M=n(o[o.length-1]);o.push(["Z"]),a(o[0],M)}}else o=r;return o.reduce(function(N,Y){return N+Y.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,i,s){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:s,stroke:a,"stroke-dasharray":n,"stroke-width":r,"stroke-linecap":o})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w.globals.dom.Paper.rect();return u.attr({x:e,y:t,width:i>0?i:0,height:s>0?s:0,rx:a,ry:a,opacity:r,"stroke-width":null!==o?o:0,stroke:null!==h?h:"none","stroke-dasharray":d}),u.node.setAttribute("fill",n),u}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:s,stroke:t,"stroke-width":i})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var i=this.w.globals.dom.Paper.circle(2*e);return null!==t&&i.attr(t),i}},{key:"drawPath",value:function(e){var t=e.d,i=void 0===t?"":t,s=e.stroke,a=void 0===s?"#a8a8a8":s,n=e.strokeWidth,r=void 0===n?1:n,o=e.fill,h=e.fillOpacity,d=void 0===h?1:h,u=e.strokeOpacity,g=void 0===u?1:u,m=e.classes,b=e.strokeLinecap,w=void 0===b?null:b,C=e.strokeDashArray,T=void 0===C?0:C,_=this.w;return null===w&&(w=_.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(_.globals.gridHeight)),_.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":d,stroke:a,"stroke-opacity":g,"stroke-linecap":w,"stroke-width":r,"stroke-dasharray":T,class:m})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=null;return null===i?s=[" L",e,t].join(" "):"H"===i?s=[" H",e].join(" "):"V"===i&&(s=[" V",t].join(" ")),s}},{key:"curve",value:function(e,t,i,s,a,n){return["C",e,t,i,s,a,n].join(" ")}},{key:"quadraticCurve",value:function(e,t,i,s){return["Q",e,t,i,s].join(" ")}},{key:"arc",value:function(e,t,i,s,a,n,r){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,e,t,i,s,a,n,r].join(" ")}},{key:"renderPaths",value:function(e){var t,i=e.j,s=e.realIndex,a=e.pathFrom,n=e.pathTo,r=e.stroke,o=e.strokeWidth,h=e.strokeLinecap,d=e.fill,u=e.animationDelay,g=e.initialSpeed,m=e.dataChangeSpeed,b=e.className,w=e.shouldClipToGrid,C=void 0===w||w,T=e.bindEventsOnPaths,_=void 0===T||T,l=e.drawShadow,f=void 0===l||l,k=this.w,I=new Qe(this.ctx),M=new gt(this.ctx),N=this.w.config.chart.animations.enabled,Y=N&&this.w.config.chart.animations.dynamicAnimation.enabled,F=!!(N&&!k.globals.resized||Y&&k.globals.dataChanged&&k.globals.shouldAnimate);F?t=a:(t=n,k.globals.animationEnded=!0);var oe,te=k.config.stroke.dashArray;oe=Array.isArray(te)?te[s]:k.config.stroke.dashArray;var K=this.drawPath({d:t,stroke:r,strokeWidth:o,fill:d,fillOpacity:1,classes:b,strokeLinecap:h,strokeDashArray:oe});K.attr("index",s),C&&K.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")}),"none"!==k.config.states.normal.filter.type?I.getDefaultFilter(K,s):k.config.chart.dropShadow.enabled&&f&&I.dropShadow(K,k.config.chart.dropShadow,s),_&&(K.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,K)),K.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,K)),K.node.addEventListener("mousedown",this.pathMouseDown.bind(this,K))),K.attr({pathTo:n,pathFrom:a});var pe={el:K,j:i,realIndex:s,pathFrom:a,pathTo:n,fill:d,strokeWidth:o,delay:u};return!N||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||M.showDelayedElements():M.animatePathsGradually(Z(
1Z({},pe),{},{speed:g})),k.globals.dataChanged&&Y&&F&&M.animatePathsGradually(Z(Z({},pe),{},{speed:m})),K}},{key:"drawPattern",value:function(e,t,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,i,function(n){"horizontalLines"===e?n.line(0,0,i,0).stroke({color:s,width:a+1}):"verticalLines"===e?n.line(0,0,0,t).stroke({color:s,width:a+1}):"slantedLines"===e?n.line(0,0,t,i).stroke({color:s,width:a}):"squares"===e?n.rect(t,i).fill("none").stroke({color:s,width:a}):"circles"===e&&n.circle(t).fill("none").stroke({color:s,width:a})})}},{key:"drawGradient",value:function(e,t,i,s,a){var n,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,h=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,d=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=W.hexToRgba(t,s)),i.length<9&&0===i.indexOf("#")&&(i=W.hexToRgba(i,a));var g=0,m=1,b=1,w=null;null!==o&&(g=void 0!==o[0]?o[0]/100:0,m=void 0!==o[1]?o[1]/100:1,b=void 0!==o[2]?o[2]/100:1,w=void 0!==o[3]?o[3]/100:null);var C=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);return n=u.globals.dom.Paper.gradient(C?"radial":"linear",null===h||0===h.length?function(l){l.at(g,t,s),l.at(m,i,a),l.at(b,i,a),null!==w&&l.at(w,t,s)}:function(l){(Array.isArray(h[d])?h[d]:h).forEach(function(f){l.at(f.offset/100,f.color,f.opacity)})}),C?n.attr("bubble"!==u.config.chart.type?{gradientUnits:"userSpaceOnUse",cx:u.globals.gridWidth/2,cy:u.globals.gridHeight/2,r}:{cx:.5,cy:.5,r:.8,fx:.2,fy:.2}):"vertical"===e?n.from(0,0).to(0,1):"diagonal"===e?n.from(0,0).to(1,1):"horizontal"===e?n.from(0,1).to(1,1):"diagonal2"===e&&n.from(1,0).to(0,1),n}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,n=this.getTextRects(t,e.fontSize,e.fontFamily),o=Math.floor(i/(n.width/t.length));return i<n.width?t.slice(0,o-3)+"...":t}},{key:"drawText",value:function(e){var t=this,i=e.x,s=e.y,a=e.text,n=e.textAnchor,r=e.fontSize,o=e.fontFamily,h=e.fontWeight,d=e.foreColor,u=e.opacity,g=e.maxWidth,m=e.cssClass,b=void 0===m?"":m,w=e.isPlainText,C=void 0===w||w,T=e.dominantBaseline,_=void 0===T?"auto":T,l=this.w;void 0===a&&(a="");var f=a;n||(n="start"),d&&d.length||(d=l.config.chart.foreColor),h=h||"regular";var k,I={maxWidth:g,fontSize:r=r||"11px",fontFamily:o=o||l.config.chart.fontFamily};return Array.isArray(a)?k=l.globals.dom.Paper.text(function(M){for(var N=0;N<a.length;N++)f=a[N],g&&(f=t.getTextBasedOnMaxWidth(Z({text:a[N]},I))),0===N?M.tspan(f):M.tspan(f).newLine()}):(g&&(f=this.getTextBasedOnMaxWidth(Z({text:a},I))),k=C?l.globals.dom.Paper.plain(a):l.globals.dom.Paper.text(function(M){return M.tspan(f)})),k.attr({x:i,y:s,"text-anchor":n,"dominant-baseline":_,"font-size":r,"font-family":o,"font-weight":h,fill:d,class:"apexcharts-text "+b}),k.node.style.fontFamily=o,k.node.style.opacity=u,k}},{key:"getMarkerPath",value:function(e,t,i,s){var a="";switch(i){case"cross":a="M ".concat(e-(s/=1.4)," ").concat(t-s," L ").concat(e+s," ").concat(t+s," M ").concat(e-s," ").concat(t+s," L ").concat(e+s," ").concat(t-s);break;case"plus":a="M ".concat(e-(s/=1.12)," ").concat(t," L ").concat(e+s," ").concat(t," M ").concat(e," ").concat(t-s," L ").concat(e," ").concat(t+s);break;case"star":case"sparkle":var n=5;s*=1.15,"sparkle"===i&&(s/=1.1,n=4);for(var r=Math.PI/n,o=0;o<=2*n;o++){var h=o*r,d=o%2==0?s:s/2;a+=(0===o?"M":"L")+(e+d*Math.sin(h))+","+(t-d*Math.cos(h))}a+="Z";break;case"triangle":a="M ".concat(e," ").concat(t-s," \n L ").concat(e+s," ").concat(t+s," \n L ").concat(e-s," ").concat(t+s," \n Z");break;case"square":case"rect":a="M ".concat(e-(s/=1.125)," ").concat(t-s," \n L ").concat(e+s," ").concat(t-s," \n L ").concat(e+s," ").concat(t+s," \n L ").concat(e-s," ").concat(t+s," \n Z");break;case"diamond":s*=1.05,a="M ".concat(e," ").concat(t-s," \n L ").concat(e+s," ").concat(t," \n L ").concat(e," ").concat(t+s," \n L ").concat(e-s," ").concat(t," \n Z");break;case"line":a="M ".concat(e-(s/=1.1)," ").concat(t," \n L ").concat(e+s," ").concat(t);break;default:s*=2,a="M ".concat(e,", ").concat(t," \n m -").concat(s/2,", 0 \n a ").concat(s/2,",").concat(s/2," 0 1,0 ").concat(s,",0 \n a ").concat(s/2,",").concat(s/2," 0 1,0 -").concat(s,",0")}return a}},{key:"drawMarkerShape",value:function(e,t,i,s,a){var n=this.drawPath({d:this.getMarkerPath(e,t,i,s,a),stroke:a.pointStrokeColor,strokeDashArray:a.pointStrokeDashArray,strokeWidth:a.pointStrokeWidth,fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,strokeOpacity:a.pointStrokeOpacity});return n.attr({cx:e,cy:t,shape:a.shape,class:a.class?a.class:""}),n}},{key:"drawMarker",value:function(e,t,i){e=e||0;var s=i.pSize||0;return W.isNumber(t)||(s=0,t=0),this.drawMarkerShape(e,t,i?.shape,s,Z(Z({},i),"line"===i.shape||"plus"===i.shape||"cross"===i.shape?{pointStrokeColor:i.pointFillColor,pointStrokeOpacity:i.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var i=this.w,s=new Qe(this.ctx),a=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:i}]),("none"===i.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==i.config.states.hover.f
vendor: 4,251 bytes, line 1
1ilter.type&&!i.globals.isTouchDevice){var r=i.config.states.hover.filter;s.applyFilter(e,a,r.type,r.value)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,s=new Qe(this.ctx),a=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:a,dataPointIndex:n,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&s.getDefaultFilter(e,a)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,s=new Qe(this.ctx),a=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10),r="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[a].indexOf(n)>-1){var o=i.globals.selectedDataPoints[a].indexOf(n);i.globals.selectedDataPoints[a].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var h=i.globals.dom.Paper.select(".apexcharts-series path").members,d=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(b){Array.prototype.forEach.call(b,function(w){w.node.setAttribute("selected","false"),s.getDefaultFilter(w,a)})};u(h),u(d)}e.node.setAttribute("selected","true"),r="true",void 0===i.globals.selectedDataPoints[a]&&(i.globals.selectedDataPoints[a]=[]),i.globals.selectedDataPoints[a].push(n)}if("true"===r){var g=i.config.states.active.filter;if("none"!==g)s.applyFilter(e,a,g.type,g.value);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var m=i.config.states.hover.filter;s.applyFilter(e,a,m.type,m.value)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?s.getDefaultFilter(e,a):s.applyFilter(e,a,(m=i.config.states.hover.filter).type,m.value));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:n,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:n,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,s){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this.w,r=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});s&&r.attr("transform",s),n.globals.dom.Paper.add(r);var o=r.bbox();return a||(o=r.node.getBoundingClientRect()),r.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var s=t.length-3;s>0;s-=3)if(e.getSubStringLength(0,s)<=i/1.1)return void(e.textContent=t.substring(0,s)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),L}(),st=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,i=[];if(0===t.globals.series.length)return i;for(var s=0;s<t.globals.series[t.globals.maxValsInArrayIndex].length;s++){for(var a=0,n=0;n<t.globals.series.length;n++)void 0!==t.globals.series[n][s]&&-1===e.indexOf(n)&&(a+=t.globals.series[n][s]);i.push(a)}return i}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce(function(t,i){return t+i},0):this.w.globals.series[e].reduce(function(t,i){return t+i},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,i=[];return t.globals.seriesGroups.forEach(function(s){var a=[];
vendor: 5,928 bytes, line 1
1t.config.series.forEach(function(r,o){s.indexOf(t.globals.seriesNames[o])>-1&&a.push(o)});var n=t.globals.series.map(function(r,o){return-1===a.indexOf(o)?o:-1}).filter(function(r){return-1!==r});i.push(e.getStackedSeriesTotals(n))}),i}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,i=[],s=[],a=[],n=e.series.length>t.yaxis.length||t.yaxis.some(function(u){return Array.isArray(u.seriesName)});t.series.forEach(function(u,g){a.push(g),s.push(null)}),t.yaxis.forEach(function(u,g){i[g]=[]});var r=[];t.yaxis.forEach(function(u,g){var m=!1;if(u.seriesName){var b=[];Array.isArray(u.seriesName)?b=u.seriesName:b.push(u.seriesName),b.forEach(function(w){t.series.forEach(function(C,T){if(C.name===w){var _=T;g===T||n?!n||a.indexOf(T)>-1?i[g].push([g,T]):console.warn("Series '"+C.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(i[T].push([T,g]),_=g),m=!0,-1!==(_=a.indexOf(_))&&a.splice(_,1)}})})}m||r.push(g)}),i=i.map(function(u,g){var m=[];return u.forEach(function(b){s[b[1]]=b[0],m.push(b[1])}),m});for(var o=t.yaxis.length-1,h=0;h<r.length&&(i[o=r[h]]=[],a);h++){var d=a[0];a.shift(),i[o].push(d),s[d]=o}a.forEach(function(u){i[o].push(u),s[u]=o}),e.seriesYAxisMap=i.map(function(u){return u}),e.seriesYAxisReverseMap=s.map(function(u){return u}),e.seriesYAxisMap.forEach(function(u,g){u.forEach(function(m){t.series[m]&&void 0===t.series[m].group&&(t.series[m].group="apexcharts-axis-".concat(g.toString()))})})}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter(function(t){return null!==t}):this.w.config.series[e].data.filter(function(t){return null!==t})).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,i,s){return t===s[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map(function(s,a){return t.config.xaxis.labels.formatter(s-t.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(i){t=Math.max(t,i)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(i){t=Math.max(t,i.size)}),t>0&&(t+=e.config.markers.hover.sizeOffset+1),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(t,i){var s=0;if(Array.isArray(t))for(var a=0;a<t.length;a++)s+=t[a];else s+=t;return s})}},{key:"getSeriesTotalsXRange",value:function(e,t){var i=this.w;return i.globals.series.map(function(s,a){for(var n=0,r=0;r<s.length;r++)i.globals.seriesX[a][r]>e&&i.globals.seriesX[a][r]<t&&(n+=s[r]);return n})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,i){var s=[];if(Array.isArray(t))for(var a=0;a<t.length;a++){var n=e.globals.stackedSeriesTotals[a],r=0;n&&(r=100*t[a]/n),s.push(r)}else{var o=100*t/e.globals.seriesTotals.reduce(function(h,d){return h+d},0);s.push(o)}return s})}},{key:"getCalculatedRatios",value:function(){var e,t,i,s=this,a=this.w,n=a.globals,r=[],o=0,h=[],d=.1,u=0;if(n.yRange=[],n.isMultipleYAxis)for(var g=0;g<n.minYArr.length;g++)n.yRange.push(Math.abs(n.minYArr[g]-n.maxYArr[g])),h.push(0);else n.yRange.push(Math.abs(n.minY-n.maxY));n.xRange=Math.abs(n.maxX-n.minX),n.zRange=Math.abs(n.maxZ-n.minZ);for(var m=0;m<n.yRange.length;m++)r.push(n.yRange[m]/n.gridHeight);if(t=n.xRange/n.gridWidth,e=n.yRange/n.gridWidth,i=n.xRange/n.gridHeight,(o=n.zRange/n.gridHeight*16)||(o=1),n.minY!==Number.MIN_VALUE&&0!==Math.abs(n.minY)&&(n.hasNegs=!0),a.globals.seriesYAxisReverseMap.length>0){var b=function(C,T){var _=a.config.yaxis[a.globals.seriesYAxisReverseMap[T]],l=C<0?-1:1;return C=Math.abs(C),_.logarithmic&&(C=s.getBaseLog(_.logBase,C)),-l*C/r[T]};if(n.isMultipleYAxis){h=[];for(var w=0;w<r.length;w++)h.push(b(n.minYArr[w],w))}else(h=[]).push(b(n.minY,0)),n.minY!==Number.MIN_VALUE&&0!==Math.abs(n.minY)&&(d=-n.minY/e,u=n.minX/t)}else(h=[]).push(0),d=0,u=0;return{yRatio:r,invertedYRatio:e,zRatio:o,xRatio:t,invertedXRatio:i,baseLineInvertedY:d,baseLineY:h,baseLineX:u}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map(function(s,a){var n=i.globals.seriesYAxisReverseMap[a];return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?s.map(function(r){return null===r?null:t.getLogVal(i.config.yaxis[n].logBase,r,a)}):s}),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,i){if(t<=0)return 0;var s=this.w,a=0===s.globals.minYArr[i]?-1:this.getBaseLog(e,s.globals.minYArr[i]),n=(0===s.globals.maxYArr[i]?0:this.getBaseLog(e,s.globals.maxYArr[i]))-a;return t<1?t/n:(this.getBaseLog(e,t)-a)/n}},{key:"getLogYRatios",value:function(e){var t=this,i=this.w,s=this.w.globals;return s.yLogRatio=e.slice(),s.logYRange=s.yRange.map(function(a,n){var r=i.globals.seriesYAxisReverseMap[n];if(i.config.yaxis[r]&&t.w.config.yaxis[r].logarithmic){var o,h=-Number.MAX_VALUE,d=Number.MIN_VALUE;return s.seriesLog.forEach(function(u,g){u.forEach(function(m){i.config.yaxis[g]&&i.config.yaxis[g].logarithmic&&(h=Math.max(m,h),d=Math.min(m,d))})}),o=Math.pow(s.yRange[n],Math.abs(d-h)/s.yRange[n]),s.yLogRatio[n]=o/s.gridHeight,o}}),s.invalidLogScale?e.slice():s.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,i,s){var a=this.w,n=[];return e.series.length>0&&t.forEach(function(r){var o=[],h=[];
1e.i.forEach(function(d,u){a.config.series[d].group===r&&(o.push(e.series[u]),h.push(d))}),o.length>0&&n.push(s.draw(o,i,h))}),n}}],[{key:"checkComboSeries",value:function(e,t){var i=!1,s=0,a=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach(function(n){"bar"!==n.type&&"column"!==n.type&&"candlestick"!==n.type&&"boxPlot"!==n.type||s++,void 0!==n.type&&n.type!==t&&a++}),a>0&&(i=!0),{comboBarCount:s,comboCharts:i}}},{key:"extendArrayProps",value:function(e,t,i){var s,a,n,r,o,h;return null!==(s=t)&&void 0!==s&&s.yaxis&&(t=e.extendYAxis(t,i)),null!==(a=t)&&void 0!==a&&a.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(n=t)&&void 0!==n&&null!==(r=n.annotations)&&void 0!==r&&r.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(o=t)&&void 0!==o&&null!==(h=o.annotations)&&void 0!==h&&h.points&&(t=e.extendPointAnnotations(t))),t}}]),L}(),Li=function(){function L(e){E(this,L),this.w=e.w,this.annoCtx=e}return O(L,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("vertical"===e.label.orientation){var a=this.w.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(null!==t?t:0,"']"));if(null!==a){var n=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-n.height+4),a.setAttribute("y","top"===e.label.position?parseFloat(a.getAttribute("y"))+n.width:parseFloat(a.getAttribute("y"))-n.width);var r=this.annoCtx.graphics.rotateAroundCenter(a),h=r.y;a.setAttribute("transform","rotate(-90 ".concat(r.x," ").concat(h,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||void 0===t.label.text||void 0!==t.label.text&&!String(t.label.text).trim())return null;var s=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=e.getBoundingClientRect(),n=t.label.style.padding.left,r=t.label.style.padding.right,o=t.label.style.padding.top,h=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(o=t.label.style.padding.left,h=t.label.style.padding.right,n=t.label.style.padding.top,r=t.label.style.padding.bottom);var g=this.annoCtx.graphics.drawRect(a.left-s.left-n-i.globals.barPadForNumericAxis,a.top-s.top-o,a.width+n+r,a.height+o+h,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(s,a,n){var r=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(a,"']"));if(r){var o=r.parentNode,h=e.addBackgroundToAnno(r,s);h&&(o.insertBefore(h.node,r),s.label.mouseEnter&&h.node.addEventListener("mouseenter",s.label.mouseEnter.bind(e,s)),s.label.mouseLeave&&h.node.addEventListener("mouseleave",s.label.mouseLeave.bind(e,s)),s.label.click&&h.node.addEventListener("click",s.label.click.bind(e,s)))}};t.config.annotations.xaxis.map(function(s,a){i(s,a,"xaxis")}),t.config.annotations.yaxis.map(function(s,a){i(s,a,"yaxis")}),t.config.annotations.points.map(function(s,a){i(s,a,"point")})}},{key:"getY1Y2",value:function(e,t){var i,s="y1"===e?t.y:t.y2,a=!1,n=this.w;if(this.annoCtx.invertAxis){var r=n.globals.labels;n.config.xaxis.convertedCatToNumeric&&(r=n.globals.categoryLabels);var o=r.indexOf(s),h=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(o+1)+")");i=h?parseFloat(h.getAttribute("y")):(n.globals.gridHeight/r.length-1)*(o+1)-n.globals.barHeight,void 0!==t.seriesIndex&&n.globals.barHeight&&(i=i-n.globals.barHeight/2*(n.globals.series.length-1)+n.globals.barHeight*t.seriesIndex)}else{var d,u=n.globals.seriesYAxisMap[t.yAxisIndex][0];(d=n.config.yaxis[t.yAxisIndex].logarithmic?(s=new st(this.annoCtx.ctx).getLogVal(n.config.yaxis[t.yAxisIndex].logBase,s,u))/n.globals.yLogRatio[u]:(s-n.globals.minYArr[u])/(n.globals.yRange[u]/n.globals.gridHeight))>n.globals.gridHeight?(d=n.globals.gridHeight,a=!0):d<0&&(d=0,a=!0),i=n.globals.gridHeight-d,!t.marker||null!=t.y||(i=0),n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(i=d)}return"string"==typeof s&&s.indexOf("px")>-1&&(i=parseFloat(s)),{yP:i,clipped:a}}},{key:"getX1X2",value:function(e,t){var i,s="x1"===e?t.x:t.x2,a=this.w,o=this.annoCtx.invertAxis?a.globals.yRange[0]:a.globals.xRange,h=!1;return i=this.annoCtx.inversedReversedAxis?((this.annoCtx.invertAxis?a.globals.maxY:a.globals.maxX)-s)/(o/a.globals.gridWidth):(s-(this.annoCtx.invertAxis?a.globals.minY:a.globals.minX))/(o/a.globals.gridWidth),"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||a.globals.dataFormatXNumeric||a.config.chart.sparkline.enabled||(i=this.getStringX(s)),"string"==typeof s&&s.indexOf("px")>-1&&(i=parseFloat(s)),null==s&&t.marker&&(i=a.globals.gridWidth),void 0!==t.seriesIndex&&a.globals.barWidth&&!this.annoCtx.invertAxis&&(i=i-a.globals.barWidth/2*(a.globals.series.length-1)+a.globals.barWidth*t.seriesIndex),i>a.globals.gridWidth?(i=a.globals.gridWidth,h=!0):i<0&&(i=0,h=!0),{x:i,clipped:h}}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var s=t.globals.labels.indexOf(e),a=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(s+1)+")");return a&&(i=parseFloat(a.getAttribute("x"))),i}}]),L}(),S=function(){function L(e){E(this,L),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Li(this.annoCtx)}return O(L,[{key:"addXaxisAnnotation",value:function(e,t,i){var s,a=this.w,n=this.helpers.getX1X2("x1",e),r=n.x,o=n.clipped,h=!0,d=e.label.text,u=e.strokeDashArray;if(W.isNumber(r)){if(null==e.x2){if(!o){var g=this.annoCtx.graphics.drawLine(r+e.offsetX,0+e.offsetY,r+e.offsetX,a.globals.gridHeight+e.offsetY,e.borderColor,u,e.borderWidth);t.appendChild(g.node),e.id&&g.node.classList.add(e.id)}}else{var m=this.helpers.getX1X2("x2",e);if(s=m.x,h=m.clipped,!o||!h){if(s<r){var b=r;r=s,s=b}var w=this.annoCtx.graphics.drawRect(r+e.offsetX,0+e.offsetY,s-r,a.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,u);w.node.classList.add("apexcharts-annotation-rect"),w.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(w.node),e.id&&w.node.classList.add(e.id)}}if(!o||!h){var C=this.annoCtx.graphics.getTextRects(d,parseFloat(e.label.style.fontSize)),_=this.annoCtx.graphics.drawText({x:r+e.label.offsetX,y:("top"===e.label.position?4:"center"===e.label.position?a.globals.gridHeight/2+("vertical"===e.label.orientation?C.width/2:0):a.globals.gridHeight)+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?C.width/2-12:-C.width/2:0),text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});_.attr({rel:i}),t.appendChild(_.node),this.annoCtx.helpers.setOrientations(e,i)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(s,a){e.addXaxisAnnotation(s,i.node,a)}),i}}]),L}(),ct=function(){function L(e){E(this,L),this.ctx=e,this.w=e.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 O(L,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,s=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(ke(i.months)),n=["\x01"].concat(ke(i.shortMonths)),r=["\x02"].concat(ke(i.days)),o=["\x03"].concat(ke(i.shortDays));function h(N,Y){var F=N+"";for(Y=Y||2;F.length<Y;)F="0"+F;return F}var d=s?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+d)).replace(/(^|[^\\])yy/g,"$1"+d.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+d);var u=(s?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+h(u))).replace(/(^|[^\\])M/g,"$1"+u);var g=s?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+
vendor: 1,915 bytes, line 1
1o[0])).replace(/(^|[^\\])dd/g,"$1"+h(g))).replace(/(^|[^\\])d/g,"$1"+g);var m=s?e.getUTCHours():e.getHours(),b=m>12?m-12:0===m?12:m;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+h(m))).replace(/(^|[^\\])H/g,"$1"+m)).replace(/(^|[^\\])hh+/g,"$1"+h(b))).replace(/(^|[^\\])h/g,"$1"+b);var w=s?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+h(w))).replace(/(^|[^\\])m/g,"$1"+w);var C=s?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+h(C))).replace(/(^|[^\\])s/g,"$1"+C);var T=s?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+h(T,3)),T=Math.round(T/10),t=t.replace(/(^|[^\\])ff/g,"$1"+h(T)),T=Math.round(T/10);var _=m<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+T)).replace(/(^|[^\\])TT+/g,"$1"+_)).replace(/(^|[^\\])T/g,"$1"+_.charAt(0));var l=_.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+l)).replace(/(^|[^\\])t/g,"$1"+l.charAt(0));var f=-e.getTimezoneOffset(),k=s||!f?"Z":f>0?"+":"-";if(!s){var I=(f=Math.abs(f))%60;k+=h(Math.floor(f/60))+":"+h(I)}t=t.replace(/(^|[^\\])K/g,"$1"+k);var M=(s?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(r[0],"g"),r[M])).replace(new RegExp(o[0],"g"),o[M])).replace(new RegExp(a[0],"g"),a[u])).replace(new RegExp(n[0],"g"),n[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var s=this.w;void 0!==s.config.xaxis.min&&(e=s.config.xaxis.min),void 0!==s.config.xaxis.max&&(t=s.config.xaxis.max);var a=this.getDate(e),n=this.getDate(t),r=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(o[2],10),minMonth:
1parseInt(r[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(r[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var s=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&s++,s}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=W.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),L}(),Ue=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return O(L,[{key:"xLabelFormat",value:function(e,t,i,s){var a=this.w;if("datetime"===a.config.xaxis.type&&void 0===a.config.xaxis.labels.formatter&&void 0===a.config.tooltip.x.formatter){var n=new ct(this.ctx);return n.formatDate(n.getDate(t),a.config.tooltip.x.format)}return e(t,i,s)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,i){var s=this.w;if(W.isNumber(e))if(0!==s.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:s.globals.yValueDecimal);else{var a=e.toFixed(0);e=e==a?a:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttKeyFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.ttZFormatter=function(i){return i},t.globals.legendFormatter=function(i){return e.defaultGeneralFormatter(i)},t.globals.xLabelFormatter=void 0!==t.config.xaxis.labels.formatter?t.config.xaxis.labels.formatter:function(i){if(W.isNumber(i)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(W.isNumber(t.config.xaxis.decimalsInFloat))return i.toFixed(t.config.xaxis.decimalsInFloat);var s=t.globals.maxX-t.globals.minX;return i.toFixed(s>0&&s<100?1:0)}return i.toFixed(t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?1:0)}return i},t.globals.ttKeyFormatter="function"==typeof t.config.tooltip.x.formatter?t.config.tooltip.x.formatter:t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(i,s){t.globals.yLabelFormatters[s]=void 0!==i.labels.formatter?i.labels.formatter:function(a){return t.globals.xyCharts?Array.isArray(a)?a.map(function(n){return e.defaultYFormatter(n,i,s)}):e.defaultYFormatter(a,i,s):a}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(i,s){return i.length>s.length?i:s},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),L}(),Yt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"getLabel",value:function(e,t,i,s){var C,T,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",r=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],o=this.w,h=void 0===e[s]?"":e[s],d=h,u=o.globals.xLabelFormatter,g=o.config.xaxis.labels.formatter,m=!1,b=new Ue(this.ctx);r&&(d=b.xLabelFormat(u,h,h,{i:s,dateFormatter:new ct(this.ctx).formatDate,w:o}),void 0!==g&&(d=g(h,e[s],{i:s,dateFormatter:new ct(this.ctx).formatDate,w:o}))),t.length>0?(C=t[s].unit,T=null,t.forEach(function(k){"month"===k.unit?T="year":"day"===k.unit?T="month":"hour"===k.unit?T="day":"minute"===k.unit&&(T="hour")}),m=T===C,i=t[s].position,d=t[s].value):"datetime"===o.config.xaxis.type&&void 0===g&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var l,_=new ne(this.ctx);l=o.globals.rotateXLabels&&r?_.getTextRects(d,parseInt(n,10),null,"rotate(".concat(o.config.xaxis.labels.rotate," 0 0)"),!1):_.getTextRects(d,parseInt(n,10));var f=!o.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||a.indexOf(d)>=0&&f)&&(d=""),{x:i,text:d,textRect:l,isBold:m}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var s=this.w,a=s.config.xaxis.tickAmount;return"dataPoints"===a&&(a=Math.round(s.globals.gridWidth/120)),a>i||e%Math.round(i/(a+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,s,a){var n=this.w;if(0===e&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&s.length>0){var r=a[a.length-1];t.x<r.textRect.width/(n.globals.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+r.x&&(t.text="")}return t}}
vendor: 5,856 bytes, line 1
1,{key:"checkForReversedLabels",value:function(e,t){var i=this.w;return i.config.yaxis[e]&&i.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some(function(i){return-1===t.collapsedSeriesIndices.indexOf(i)})}},{key:"translateYAxisIndex",value:function(e){var t=this.w,i=t.globals,s=t.config.yaxis;return i.series.length>s.length||s.some(function(a){return Array.isArray(a.seriesName)})?e:i.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,i=t.config.yaxis[e];if(!i.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!i.showForNullSeries){var s=t.globals.seriesYAxisMap[e],a=new st(this.ctx);return s.every(function(n){return a.isSeriesNull(n)})}return!1}},{key:"getYAxisForeColor",value:function(e,t){var i=this.w;return Array.isArray(e)&&i.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,i.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,i,s,a,n,r){var o=this.w,h=new ne(this.ctx),d=o.globals.translateY+o.config.yaxis[a].labels.offsetY;if(o.globals.isBarHorizontal?d=0:"heatmap"===o.config.chart.type&&(d+=n/2),s.show&&t>0){!0===o.config.yaxis[a].opposite&&(e+=s.width);for(var u=t;u>=0;u--){var g=h.drawLine(e+i.offsetX-s.width+s.offsetX,d+s.offsetY,e+i.offsetX+s.offsetX,d+s.offsetY,s.color);r.add(g),d+=n}}}}]),L}(),vs=function(){function L(e){E(this,L),this.w=e.w,this.annoCtx=e,this.helpers=new Li(this.annoCtx),this.axesUtils=new Yt(this.annoCtx)}return O(L,[{key:"addYaxisAnnotation",value:function(e,t,i){var s,a=this.w,n=e.strokeDashArray,r=this.helpers.getY1Y2("y1",e),o=r.yP,h=r.clipped,u=!1,g=e.label.text;if(null==e.y2){if(!h){u=!0;var m=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(m.node),e.id&&m.node.classList.add(e.id)}}else{if((s=(r=this.helpers.getY1Y2("y2",e)).yP)>o){var b=o;o=s,s=b}if(!h||!r.clipped){u=!0;var w=this.annoCtx.graphics.drawRect(0+e.offsetX,s+e.offsetY,this._getYAxisAnnotationWidth(e),o-s,0,e.fillColor,e.opacity,1,e.borderColor,n);w.node.classList.add("apexcharts-annotation-rect"),w.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(w.node),e.id&&w.node.classList.add(e.id)}}if(u){var T=this.annoCtx.graphics.drawText({x:("right"===e.label.position?a.globals.gridWidth:"center"===e.label.position?a.globals.gridWidth/2:0)+e.label.offsetX,y:(s??o)+e.label.offsetY-3,text:g,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});T.attr({rel:i}),t.appendChild(T.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach(function(s,a){s.yAxisIndex=e.axesUtils.translateYAxisIndex(s.yAxisIndex),e.axesUtils.isYAxisHidden(s.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(s.yAxisIndex)||e.addYaxisAnnotation(s,i.node,a)}),i}}]),L}(),bs=function(){function L(e){E(this,L),this.w=e.w,this.annoCtx=e,this.helpers=new Li(this.annoCtx)}return O(L,[{key:"addPointAnnotation",value:function(e,t,i){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var s=this.helpers.getX1X2("x1",e),a=s.x,n=s.clipped,r=(s=this.helpers.getY1Y2("y1",e)).yP,o=s.clipped;if(W.isNumber(a)&&!o&&!n){var h={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},d=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,r+e.marker.offsetY,h);t.appendChild(d.node);var u=e.label.text?e.label.text:"",g=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:r+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:u,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(g.attr({rel:i}),t.appendChild(g.node),e.customSVG.SVG){var m=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});m.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(r+e.customSVG.offsetY,")")}),m.node.innerHTML=e.customSVG.SVG,t.appendChild(m.node)}if(e.image.path){var b=e.image.width?e.image.width:20,w=e.image.height?e.image.height:20;d=this.annoCtx.addImage({x:a+e.image.offsetX-b/2,y:r+e.image.offsetY-w/2,width:b,height:w,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&d.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&d.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&d.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(s,a){e.addPointAnnotation(s,i.node,a)}),i}}]),L}(),Ze={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","Frid
1ay","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"}}},It=function(){function L(){E(this,L),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,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={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return O(L,[{key:"init",value:function(){return{annotations:{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:"",locales:[Ze],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,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce: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,targets:void 0},stacked:!1,stackOnlyBar:!0,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",categoryFormatter:void 0,valueFormatter:void 0},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:{line:{isSlopeChart:!1},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}}
vendor: 4,281 bytes, line 1
1,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,borderRadius:4,dataLabels:{format:"scale"},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(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},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(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,i){return t+i},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(e){return null!==e?e:""},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:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}}
vendor: 6,718 bytes, line 1
1,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,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",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(e){return e?e+": ":""}}},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"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),L}(),ys=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.graphics=new ne(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Li(this),this.xAxisAnnotations=new S(this),this.yAxisAnnotations=new vs(this),this.pointsAnnotations=new bs(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 O(L,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),s=this.pointsAnnotations.drawPointAnnotations(),a=e.config.chart.animations.enabled,n=[t,i,s],r=[i.node,t.node,s.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(n[o]),!a||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&r[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:r[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,i){e.addImage(t,i)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,i){e.addText(t,i)})}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var a=e.text,g=e.backgroundColor,m=e.borderWidth,b=e.strokeDashArray,w=e.borderRadius,C=e.borderColor,T=e.appendTo,_=void 0===T?".apexcharts-svg":T,l=e.paddingLeft,f=void 0===l?4:l,k=e.paddingRight,I=void 0===k?4:k,M=e.paddingBottom,N=void 0===M?2:M,Y=e.paddingTop,F=void 0===Y?2:Y,te=this.w,oe=this.graphics.drawText({x:e.x,y:e.y,text:a,textAnchor:e.textAnchor||"start",fontSize:e.fontSize||"12px",fontWeight:e.fontWeight||"regular",fontFamily:e.fontFamily||te.config.chart.fontFamily,foreColor:e.foreColor||te.config.chart.foreColor,cssClass:e.cssClass}),K=te.globals.dom.baseEl.querySelector(_);K&&K.appendChild(oe.node);var le=oe.bbox();if(a){var pe=this.graphics.drawRect(le.x-f,le.y-F,le.width+f+I,le.height+N+F,w,g||"transparent",1,m,C,b);K.insertBefore(pe.node,oe.node)}}},{key:"addImage",value:function(e,t){var i=this.w,a=e.x,n=void 0===a?0:a,r=e.y,o=void 0===r?0:r,h=e.width,d=void 0===h?20:h,u=e.height,g=void 0===u?20:u,m=e.appendTo,b=void 0===m?".apexcharts-svg":m,w=i.globals.dom.Paper.image(e.path);w.size(d,g).move(n,o);var C=i.globals.dom.baseEl.querySelector(b);return C&&C.appendChild(w.node),w}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,s=e.context,a=e.type,n=e.contextMethod,r=s,o=r.w,h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),d=h.childNodes.length+1,u=new It,g=Object.assign({},"xaxis"===a?u.xAxisAnnotation:"yaxis"===a?u.yAxisAnnotation:u.pointAnnotation),m=W.extend(g,t);switch(a){case"xaxis":this.addXaxisAnnotation(m,h,d);break;
1case"yaxis":this.addYaxisAnnotation(m,h,d);break;case"point":this.addPointAnnotation(m,h,d)}var b=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(d,"']")),w=this.helpers.addBackgroundToAnno(b,m);return w&&h.insertBefore(w.node,b),i&&o.globals.memory.methodsToExec.push({context:r,id:m.id?m.id:W.randomId(),method:n,label:"addAnnotation",params:t}),s}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(s,a){"addText"!==s.label&&"addAnnotation"!==s.label||t.globals.memory.methodsToExec.splice(a,1)}),i=W.listToArray(i),Array.prototype.forEach.call(i,function(s){for(;s.firstChild;)s.removeChild(s.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var i=e.w,s=i.globals.dom.baseEl.querySelectorAll(".".concat(t));s&&(i.globals.memory.methodsToExec.map(function(a,n){a.id===t&&i.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(s,function(a){a.parentElement.removeChild(a)}))}}]),L}(),$i=function(L){var e,t=L.isTimeline,i=L.ctx,s=L.seriesIndex,a=L.dataPointIndex,n=L.y1,r=L.y2,o=L.w,h=o.globals.seriesRangeStart[s][a],d=o.globals.seriesRangeEnd[s][a],u=o.globals.labels[a],g=o.config.series[s].name?o.config.series[s].name:"",m=o.globals.ttKeyFormatter,b=o.config.tooltip.y.title.formatter,w={w:o,seriesIndex:s,dataPointIndex:a,start:h,end:d};"function"==typeof b&&(g=b(g,w)),null!==(e=o.config.series[s].data[a])&&void 0!==e&&e.x&&(u=o.config.series[s].data[a].x),t||"datetime"===o.config.xaxis.type&&(u=new Ue(i).xLabelFormat(o.globals.ttKeyFormatter,u,u,{i:void 0,dateFormatter:new ct(i).formatDate,w:o})),"function"==typeof m&&(u=m(u,w)),Number.isFinite(n)&&Number.isFinite(r)&&(h=n,d=r);var C="",T="",_=o.globals.colors[s];if(void 0===o.config.tooltip.x.formatter)if("datetime"===o.config.xaxis.type){var l=new ct(i);C=l.formatDate(l.getDate(h),o.config.tooltip.x.format),T=l.formatDate(l.getDate(d),o.config.tooltip.x.format)}else C=h,T=d;else C=o.config.tooltip.x.formatter(h),T=o.config.tooltip.x.formatter(d);return{start:h,end:d,startVal:C,endVal:T,ylabel:u,color:_,seriesName:g}},zt=function(L){var e=L.color,t=L.seriesName,i=L.ylabel,s=L.start,a=L.end,n=L.seriesIndex,r=L.dataPointIndex,o=L.ctx.tooltip.tooltipLabels.getFormatters(n);s=o.yLbFormatter(s),a=o.yLbFormatter(a);var h=o.yLbFormatter(L.w.globals.series[n][r]),d='<span class="value start-value">\n '.concat(s,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(a,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+i+": </span> "+(L.w.globals.comboCharts?"rangeArea"===L.w.config.series[n].type||"rangeBar"===L.w.config.series[n].type?d:"<span>".concat(h,"</span>"):d)+" </div></div>"},oi=function(){function L(e){E(this,L),this.opts=e}return O(L,[{key:"hideYAxis",value:function(){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}},{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(e){return this.hideYAxis(),W.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){return null!==e?t.w.config.series[t.seriesIndex].name+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}}
1,markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{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"}},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:"funnel",value:function(){return this.hideYAxis(),Z(Z({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){return e._getBoxTooltip(t.w,t.seriesIndex,t.dataPointIndex,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){return e._getBoxTooltip(t.w,t.seriesIndex,t.dataPointIndex,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){var i=t.seriesIndex,s=t.dataPointIndex,a=t.w,n=function(){return a.globals.seriesRangeEnd[i][s]-a.globals.seriesRangeStart[i][s]};return a.globals.comboCharts?"rangeBar"===a.config.series[i].type||"rangeArea"===a.config.series[i].type?n():e:n()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?(s=(i=$i(Z(Z({},t=e),{},{isTimeline:!0}))).color,a=i.seriesName,n=i.ylabel,r=i.startVal,o=i.endVal,zt(Z(Z({},t),{},{color:s,seriesName:a,ylabel:n,start:r,end:o}))):function(t){var i=$i(t),s=i.color,a=i.seriesName,n=i.ylabel,r=i.start,o=i.end;return zt(Z(Z({},t),{},{color:s,seriesName:a,ylabel:n,start:r,end:o}))}(e);var t,i,s,a,n,r,o}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,i;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(i=e.plotOptions.bar)&&void 0!==i&&i.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return s=(i=$i(t=e)).color,a=i.seriesName,n=i.ylabel,r=i.start,o=i.end,zt(Z(Z({},t),{},{color:s,seriesName:a,ylabel:n,start:r,end:o}));var t,i,s,a,n,r,o}}}}},{key:"brush",value:function(e){return W.extend(e,{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(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(i,s){e.yaxis[s].min=0,e.yaxis[s].max=100}),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(i){return"number"==typeof i&&i?i.toFixed(0)+"%":i}),e}},{key:"stackedBars",value:function(){var e=this.bar();return Z(Z({},e),{},{plotOptions:Z(Z({},e.plotOptions),{},{bar:Z(Z({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}}
vendor: 25,602 bytes, line 1
1,{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(n){return W.isNumber(n)?Math.floor(n):n};var s=e.xaxis.labels.formatter,a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(a=i.map(function(n){return Array.isArray(n)?n:String(n)})),a&&a.length&&(e.xaxis.labels.formatter=function(n){return W.isNumber(n)?s(a[Math.floor(n)-1]):s(n)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{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"}},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:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.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(e){return e.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{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.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:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},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(e,t,i,s,a){var n=e.globals.seriesCandleO[t][i],r=e.globals.seriesCandleH[t][i],o=e.globals.seriesCandleM[t][i],h=e.globals.seriesCandleL[t][i],d=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==a?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(s[0],': <span class="value">')+n+"</span></div>"+"<div>".concat(s[1],': <span class="value">')+r+"</span></div>"+(o?"<div>".concat(s[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(s[3],': <span class="value">')+h+"</span></div>"+"<div>".concat(s[4],': <span class="value">')+d+"</span></div></div>"}}]),L}(),Dt=function(){function L(e){E(this,L),this.opts=e}return O(L,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,s=new It,a=new oi(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var n=s.init(),r={};if(i&&"object"===x(i)){var o,h,d,u,g,m,b,w,C,T,_={};_=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?a[i.chart.type]():a.line(),null!==(o=i.plotOptions)&&void 0!==o&&null!==(h=o.bar)&&void 0!==h&&h.isFunnel&&(_=a.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(_=a.stackedBars()),null!==(d=i.chart.brush)&&void 0!==d&&d.enabled&&(_=a.brush(_)),null!==(u=i.plotOptions)&&void 0!==u&&null!==(g=u.line)&&void 0!==g&&g.isSlopeChart&&(_=a.slope()),i.chart.stacked&&"100%"===i.chart.stackType&&(i=a.stacked100(i)),null!==(m=i.plotOptions)&&void 0!==m&&null!==(b=m.bar)&&void 0!==b&&b.isDumbbell&&(i=a.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),(null!==(w=(i=this.checkForCatToNumericXAxis(this.chartType,_,i)).chart.sparkline)&&void 0!==w&&w.enabled||null!==(C=window.Apex.chart)&&void 0!==C&&null!==(T=C.sparkline)&&void 0!==T&&T.enabled)&&(_=a.sparkline(_)),r=W.extend(n,_)}var l=W.extend(r,window.Apex);return n=W.extend(l,i),this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var s,a,n=new oi(i);return("bar"===e||"boxPlot"===e)&&(null===(s=i.plotOptions)||void 0===s||null===(a=s.bar)||void 0===a?void 0:a.horizontal)||"pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e||!("datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type)||"between"===(i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement)||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new It;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=W.extend(e.yaxis,window.Apex.yaxis)),e.yaxis=e.yaxis.constructor!==Array?[W.extend(i.yAxis,e.yaxis)]:W.extendArray(e.yaxis,i.yAxis);var s=!1;e.yaxis.forEach(function(n){n.logarithmic&&(s=!0)});var a=e.series;return t&&!a&&(a=t.config.series),s&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map(function(n,r){if(n.name||(a[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=a[r].name,e.yaxis[r];var o=W.extend(i.yAxis,e.yaxis[0]);return o.show=!1,o})),s&&a.length>1&&a.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new It;return e.annotations.yaxis=W.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new It;return e.annotations.xaxis=W.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new It;return e.annotations.points=W.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;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("bar"===t.chart.type&&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"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),L}(),ss=function(){function L(){E(this,L)}return O(L,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){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:e.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:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.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,isSlopeChart:e.plotOptions.line.isSlopeChart,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,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=W.extend({},e),t.initialSeries=W.clone(e.series),t.lastXAxis=W.clone(t.initialConfig.xaxis),t.lastYAxis=W.clone(t.initialConfig.yaxis),t}}]),L}(),as=function(){function L(e){E(this,L),this.opts=e}return O(L,[{key:"init",value:function(){var e=new Dt(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new ss).init(e)}}}]),L}(),he=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return O(L,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,s=parseInt(t.globals.gridWidth,10),a=parseInt(t.globals.gridHeight,10),n=s>a?s:a,r=e.image,o=0,h=0;void 0===e.width&&void 0===e.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,h=i.fill.image.height):(o=n+1,h=n):(o=e.width,h=e.height);var d=document.createElementNS(t.globals.SVGNS,"pattern");ne.setAttrs(d,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:h+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");d.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",r),ne.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:h+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(d)}},{key:"getSeriesIndex",value:function(e){var t=this.w,i=t.config.chart.type;return this.seriesIndex=("bar"===i||"rangeBar"===i)&&t.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?e.seriesNumber:e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,s,a,n=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var r=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(r=t.globals.seriesColors[this.seriesIndex]),"function"==typeof r&&(r=r({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var o=e.fillType?e.fillType:this.getFillType(this.seriesIndex),h=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;e.color&&(r=e.color),r||(r="#fff",console.warn("undefined color - ApexCharts"));var d=r;if(-1===r.indexOf("rgb")?r.length<9&&(d=W.hexToRgba(r,h)):r.indexOf("rgba")>-1&&(h=W.getOpacityFromRGBA(r)),e.opacity&&(h=e.opacity),"pattern"===o&&(s=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:s,fillColor:r,fillOpacity:h,defaultColor:d})),"gradient"===o&&(a=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:r,fillOpacity:h,i:this.seriesIndex})),"image"===o){var u=n.fill.image.src,g=e.patternID?e.patternID:"";this.clippedImgArea({opacity:h,image:Array.isArray(u)?e.seriesNumber<u.length?u[e.seriesNumber]:u[0]:u,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(g)}),i="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(g,")")}else i="gradient"===o?a:"pattern"===o?s:d;return e.solid&&(i=d),i}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,i=this.opts,s=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?s=e.globals.stroke.colors:s.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?s=e.globals.fill.colors:s.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?s=e.globals.stroke.colors:s.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?s=e.globals.fill.colors:s.push(e.globals.fill.colors),void 0!==i.fillColors&&(s=[],Array.isArray(i.fillColors)?s=i.fillColors.slice():s.push(i.fillColors)),s}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,s=e.fillColor,a=e.fillOpacity,n=e.defaultColor,r=this.w.config.fill;t&&(r=t);var o=this.opts,h=new ne(this.ctx),d=Array.isArray(r.pattern.strokeWidth)?r.pattern.strokeWidth[this.seriesIndex]:r.pattern.strokeWidth,u=s;return Array.isArray(r.pattern.style)?void 0!==r.pattern.style[o.seriesNumber]?h.drawPattern(r.pattern.style[o.seriesNumber],r.pattern.width,r.pattern.height,u,d,a):n:h.drawPattern(r.pattern.style,r.pattern.width,r.pattern.height,u,d,a)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,i=e.fillOpacity,s=e.fillConfig,a=e.i,n=this.w.config.fill;s&&(n=Z(Z({},n),s));var r,o=this.opts,h=new ne(this.ctx),d=new W,u=n.gradient.type,g=t,m=void 0===n.gradient.opacityFrom?i:Array.isArray(n.gradient.opacityFrom)?n.gradient.opacityFrom[a]:n.gradient.opacityFrom;g.indexOf("rgba")>-1&&(m=W.getOpacityFromRGBA(g));var b=void 0===n.gradient.opacityTo?i:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[a]:n.gradient.opacityTo;if(void 0===n.gradient.gradientToColors||0===n.gradient.gradientToColors.length)r=d.shadeColor("dark"===n.gradient.shade?-1*parseFloat(n.gradient.shadeIntensity):parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?W.rgb2hex(t):t);else if(n.gradient.gradientToColors[o.seriesNumber]){var w=n.gradient.gradientToColors[o.seriesNumber];r=w,w.indexOf("rgba")>-1&&(b=W.getOpacityFromRGBA(w))}else r=t;if(n.gradient.gradientFrom&&(g=n.gradient.gradientFrom),n.gradient.gradientTo&&(r=n.gradient.gradientTo),n.gradient.inverseColors){var C=g;g=r,r=C}return g.indexOf("rgb")>-1&&(g=W.rgb2hex(g)),r.indexOf("rgb")>-1&&(r=W.rgb2hex(r)),h.drawGradient(u,g,r,m,b,o.size,n.gradient.stops,n.gradient.colorStops,a)}}]),L}(),Wt=function(){function L(e,t){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(i){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e,t,i,s){var a,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this.w,o=t,h=e,d=null,u=new ne(this.ctx),g=r.config.markers.discrete&&r.config.markers.discrete.length;if((r.globals.markers.size[t]>0||n||g)&&(d=u.group({class:n||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(h.x))for(var m=0;m<h.x.length;m++){var b=i;1===i&&0===m&&(b=0),1===i&&1===m&&(b=1);var w="apexcharts-marker";if("line"!==r.config.chart.type&&"area"!==r.config.chart.type||r.globals.comboCharts||r.config.tooltip.intersect||(w+=" no-pointer-events"),(Array.isArray(r.config.markers.size)?r.globals.markers.size[t]>0:r.config.markers.size>0)||n||g){W.isNumber(h.y[m])?w+=" w".concat(W.randomId()):w="apexcharts-nullpoint";var C=this.getMarkerConfig({cssClass:w,seriesIndex:t,dataPointIndex:b});r.config.series[o].data[b]&&(r.config.series[o].data[b].fillColor&&(C.pointFillColor=r.config.series[o].data[b].fillColor),r.config.series[o].data[b].strokeColor&&(C.pointStrokeColor=r.config.series[o].data[b].strokeColor)),void 0!==s&&(C.pSize=s),(h.x[m]<-r.globals.markers.largestSize||h.x[m]>r.globals.gridWidth+r.globals.markers.largestSize||h.y[m]<-r.globals.markers.largestSize||h.y[m]>r.globals.gridHeight+r.globals.markers.largestSize)&&(C.pSize=0),(a=u.drawMarker(h.x[m],h.y[m],C)).attr("rel",b),a.attr("j",b),a.attr("index",t),a.node.setAttribute("default-marker-size",C.pSize),new Qe(this.ctx).setSelectionFilter(a,t,b),this.addEvents(a),d&&d.add(a)}else void 0===r.globals.pointsArray[t]&&(r.globals.pointsArray[t]=[]),r.globals.pointsArray[t].push([h.x[m],h.y[m]])}return d}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,s=e.dataPointIndex,a=void 0===s?null:s,n=e.radius,r=void 0===n?null:n,o=e.size,h=void 0===o?null:o,d=e.strokeWidth,u=void 0===d?null:d,g=this.w,m=this.getMarkerStyle(i),b=null===h?g.globals.markers.size[i]:h,w=g.config.markers;return null!==a&&w.discrete.length&&w.discrete.map(function(C){C.seriesIndex===i&&C.dataPointIndex===a&&(m.pointStrokeColor=C.strokeColor,m.pointFillColor=C.fillColor,b=C.size,m.pointShape=C.shape)}),{pSize:null===r?b:r,pRadius:null!==r?r:w.radius,pointStrokeWidth:null!==u?u:Array.isArray(w.strokeWidth)?w.strokeWidth[i]:w.strokeWidth,pointStrokeColor:m.pointStrokeColor,pointFillColor:m.pointFillColor,shape:m.pointShape||(Array.isArray(w.shape)?w.shape[i]:w.shape),class:t,pointStrokeOpacity:Array.isArray(w.strokeOpacity)?w.strokeOpacity[i]:w.strokeOpacity,pointStrokeDashArray:Array.isArray(w.strokeDashArray)?w.strokeDashArray[i]:w.strokeDashArray,pointFillOpacity:Array.isArray(w.fillOpacity)?w.fillOpacity[i]:w.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new ne(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,s=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(s)?s[e]:s,pointFillColor:Array.isArray(i)?i[e]:i}}}]),L}(),Vi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled}return O(L,[{key:"draw",value:function(e,t,i){var s=this.w,a=new ne(this.ctx),n=i.realIndex,r=i.pointsPos,o=i.zRatio,h=i.elParent,d=a.group({class:"apexcharts-series-markers apexcharts-series-".concat(s.config.chart.type)});if(d.attr("clip-path","url(#gridRectMarkerMask".concat(s.globals.cuid,")")),Array.isArray(r.x))for(var u=0;u<r.x.length;u++){var g=t+1,m=!0;0===t&&0===u&&(g=0),0===t&&1===u&&(g=1);var b=s.globals.markers.size[n];if(o!==1/0){var w=s.config.plotOptions.bubble;b=s.globals.seriesZ[n][g],w.zScaling&&(b/=o),w.minBubbleRadius&&b<w.minBubbleRadius&&(b=w.minBubbleRadius),w.maxBubbleRadius&&b>w.maxBubbleRadius&&(b=w.maxBubbleRadius)}var T=r.y[u];if(b=b||0,null!==T&&void 0!==s.globals.series[n][g]||(m=!1),m){var _=this.drawPoint(r.x[u],T,b,n,g,t);d.add(_)}h.add(d)}}},{key:"drawPoint",value:function(e,t,i,s,a,n){var r=this.w,o=s,h=new gt(this.ctx),d=new Qe(this.ctx),u=new he(this.ctx),g=new Wt(this.ctx),m=new ne(this.ctx),b=g.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:a,radius:"bubble"===r.config.chart.type||r.globals.comboCharts&&r.config.series[s]&&"bubble"===r.config.series[s].type?i:null}),w=u.fillPath({seriesNumber:s,dataPointIndex:a,color:b.pointFillColor,patternUnits:"objectBoundingBox",value:r.globals.series[s][n]}),C=m.drawMarker(e,t,b);return r.config.series[o].data[a]&&r.config.series[o].data[a].fillColor&&(w=r.config.series[o].data[a].fillColor),C.attr({fill:w}),r.config.chart.dropShadow.enabled&&d.dropShadow(C,r.config.chart.dropShadow,s),!this.initialAnim||r.globals.dataChanged||r.globals.resized?r.globals.animationEnded=!0:h.animateMarker(C,r.config.chart.animations.speed,r.globals.easing,function(){window.setTimeout(function(){h.animationCompleted(C)},100)}),C.attr({rel:a,j:a,index:s,"default-marker-size":b.pSize}),d.setSelectionFilter(C,s,a),g.addEvents(C),C.node.classList.add("apexcharts-marker"),C}},{key:"centerTextInBubble",value:function(e){return{y:e+=parseInt(this.w.config.dataLabels.style.fontSize,10)/4}}}]),L}(),li=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"dataLabelsCorrection",value:function(e,t,i,s,a,n,r){var o=this.w,h=!1,d=new ne(this.ctx).getTextRects(i,r),u=d.width,g=d.height;if(t<0&&(t=0),t>o.globals.gridHeight+g&&(t=o.globals.gridHeight+g/2),void 0===o.globals.dataLabelsRects[s]&&(o.globals.dataLabelsRects[s]=[]),o.globals.dataLabelsRects[s].push({x:e,y:t,width:u,height:g}),void 0!==o.globals.dataLabelsRects[s][o.globals.dataLabelsRects[s].length-2]){var w=o.globals.dataLabelsRects[s][void 0!==o.globals.lastDrawnDataLabelsIndexes[s]?o.globals.lastDrawnDataLabelsIndexes[s][o.globals.lastDrawnDataLabelsIndexes[s].length-1]:0];(e>w.x+w.width||t>w.y+w.height||t+g<w.y||e+u<w.x)&&(h=!0)}return(0===a||n)&&(h=!0),{x:e,y:t,textRects:d,drawnextLabel:h}}},{key:"drawDataLabel",value:function(e){var t=this,i=e.type,s=e.pos,a=e.i,n=e.j,r
vendor: 11,168 bytes, line 1
1=e.isRangeStart,o=e.strokeWidth,h=void 0===o?2:o,d=this.w,u=new ne(this.ctx),g=d.config.dataLabels,m=0,b=0,w=n,C=null;if(-1!==d.globals.collapsedSeriesIndices.indexOf(a)||!g.enabled||!Array.isArray(s.x))return C;C=u.group({class:"apexcharts-data-labels"});for(var T=0;T<s.x.length;T++)if(m=s.x[T]+g.offsetX,b=s.y[T]+g.offsetY+h,!isNaN(m)){1===n&&0===T&&(w=0),1===n&&1===T&&(w=1);var _=d.globals.series[a][w];"rangeArea"===i&&(_=r?d.globals.seriesRangeStart[a][w]:d.globals.seriesRangeEnd[a][w]);var l="",f=function(I){return d.config.dataLabels.formatter(I,{ctx:t.ctx,seriesIndex:a,dataPointIndex:w,w:d})};"bubble"===d.config.chart.type?(l=f(_=d.globals.seriesZ[a][w]),b=s.y[T],b=new Vi(this.ctx).centerTextInBubble(b,a,w).y):void 0!==_&&(l=f(_));var k=d.config.dataLabels.textAnchor;d.globals.isSlopeChart&&(k=0===w?"end":w===d.config.series[a].data.length-1?"start":"middle"),this.plotDataLabelsText({x:m,y:b,text:l,i:a,j:w,parent:C,offsetCorrection:!0,dataLabelsConfig:d.config.dataLabels,textAnchor:k})}return C}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new ne(this.ctx),s=e.x,a=e.y,n=e.i,r=e.j,o=e.text,h=e.textAnchor,d=e.fontSize,u=e.parent,g=e.dataLabelsConfig,m=e.color,b=e.alwaysDrawDataLabel,w=e.offsetCorrection,C=e.className,T=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(n)<0)return T;var _={x:s,y:a,drawnextLabel:!0,textRects:null};w&&(_=this.dataLabelsCorrection(s,a,o,n,r,b,parseInt(g.style.fontSize,10))),t.globals.zoomed||(s=_.x,a=_.y),_.textRects&&(s<-20-_.textRects.width||s>t.globals.gridWidth+_.textRects.width+30)&&(o="");var l=t.globals.dataLabels.style.colors[n];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(l=t.globals.dataLabels.style.colors[r]),"function"==typeof l&&(l=l({series:t.globals.series,seriesIndex:n,dataPointIndex:r,w:t})),m&&(l=m);var f=g.offsetX,k=g.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(f=0,k=0),t.globals.isSlopeChart&&(0!==r&&(f=-2*g.offsetX+5),0!==r&&r!==t.config.series[n].data.length-1&&(f=0)),_.drawnextLabel){if((T=i.drawText({width:100,height:parseInt(g.style.fontSize,10),x:s+f,y:a+k,foreColor:l,textAnchor:h||g.textAnchor,text:o,fontSize:d||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"})).attr({class:C||"apexcharts-datalabel",cx:s,cy:a}),g.dropShadow.enabled){var I=g.dropShadow;new Qe(this.ctx).dropShadow(T,I)}u.add(T),void 0===t.globals.lastDrawnDataLabelsIndexes[n]&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(r)}return T}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,s=i.config.dataLabels.background,a=s.padding,n=s.padding/2,r=t.width,o=t.height,h=new ne(this.ctx).drawRect(t.x-a,t.y-n/2,r+2*a,o+n,s.borderRadius,"transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",s.opacity,s.borderWidth,s.borderColor);return s.dropShadow.enabled&&new Qe(this.ctx).dropShadow(h,s.dropShadow),h}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<t.length;i++){var s=t[i],a=s.getBBox(),n=null;if(a.width&&a.height&&(n=this.addBackgroundToDataLabel(s,a)),n){s.parentNode.insertBefore(n.node,s);var r=s.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?n.attr({fill:r}):n.animate().attr({fill:r}),s.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),s=0;s<t.length;s++)i&&i.insertBefore(t[s],i.nextSibling)}}]),L}(),rt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return O(L,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(W.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(e,t){var i=this.w;function s(a){for(var n=0;n<a.length;n++)a[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}s(i.globals.collapsedSeries),s(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.w,a=W.clone(s.globals.initialSeries);s.globals.previousPaths=[],i?(s.globals.collapsedSeries=[],s.globals.ancillaryCollapsedSeries=[],s.globals.collapsedSeriesIndices=[],s.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),s.config.series=a,e&&(t&&(s.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,s.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var s=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){var a=parseInt(t.getAttribute("rel"),10)-1,n=null,r=null,o=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(n=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(a,"']")),r=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(a,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i.globals.seriesYAxisReverseMap[a],"']"))):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"']")):n=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(a+1,"'] path"));for(var d=0;d<s.length;d++)s[d].classList.add(this.legendInactiveClass);null!==n&&(i.globals.axisCharts||n.parentNode.classList.remove(this.legendInactiveClass),n.classList.remove(this.legendInactiveClass),null!==r&&r.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass))}else if("mouseout"===e.type)for(var u=0;u<s.length;u++)s[u].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,s=this.w,a=s.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=function(o){for(var h=0;h<a.length;h++)a[h].classList[o](i.legendInactiveClass)};if("mousemove"===e.type){var r=parseInt(t.getAttribute("rel"),10)-1;n("add"),function(o){for(var h=0;h<a.length;h++){var d=parseInt(a[h].getAttribute("val"),10);d>=o.from&&d<=o.to&&a[h].classList.remove(i.legendInactiveClass)}}(s.config.plotOptions.heatmap.colorScale.ranges[r])}else"mouseout"===e.type&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,s=0;if(i.config.series.length>1)for(var a=i.config.series.map(function(r,o){return r.data&&r.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(o)&&(!i.globals.comboCharts||0===t.length||t.length&&t.indexOf(i.config.series[o].type)>-1)?o:-1}),n="asc"===e?0:a.length-1;"asc"===e?n<a.length:n>=0;"asc"===e?n++:n--)if(-1!==a[n]){s=a[n];break}return s}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return"bar"===e.type||"column"===e.type?t:-1}).filter(function(e){return-1!==e}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(n,r,o){for(var h=n[r].childNodes,d={type:o,paths:[],realIndex:n[r].getAttribute("data:realIndex")},u=0;u<h.length;u++)if(h[u].hasAttribute("pathTo")){var g=h[u].getAttribute("pathTo");d.paths.push({d:g})}e.globals.previousPaths.push(d)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(n){for(var o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series")),h=0;h<o.length;h++)t(o,h,n)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var s=function(n){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),o=[],h=function(u){var g=function(b){return r[u].getAttribute(b)},m={x:parseFloat(g("x")),y:parseFloat(g("y")),width:parseFloat(g("width")),height:parseFloat(g("height"))};o.push({rect:m,color:r[u].getAttribute("color")})},d=0;d<r.length;d++)h(d);e.globals.previousPaths.push(o)},a=0;a<i.length;a++)s(a);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(i.length>0)for(var s=0;s<i.length;s++){for(var a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(s,"'] circle")),n=[],r=0;r<a.length;r++)n.push({x:a[r].getAttribute("cx"),y:a[r].getAttribute("cy"),r:a[r].getAttribute("r")});t.globals.previousPaths.push(n)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,i=new ne(this.ctx),s=e.globals.svgWidth/2,a=e.globals.svgHeight/2,n="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(s=10,n="start"):"right"===t.align&&(s=e.globals.svgWidth-10,n="end"),"top"===t.verticalAlign?a=50:"bottom"===t.verticalAlign&&(a=e.globals.svgHeight-50),s+=t.offsetX,a=a+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var r=i.drawText({x:s,y:a,text:t.text,textAnchor:n,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nod
1ata"});e.globals.dom.Paper.add(r)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,i=0;i<e.length;i++)if(0===e[i].length)for(var s=0;s<e[t.globals.maxValsInArrayIndex].length;s++)e[i].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,i=this.filteredSeriesX(),s=0;s<i.length-1;s++)if(i[s][0]!==i[s+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(t){return t.length>0?t:[]})}}]),L}(),Pi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new st(this.ctx)}return O(L,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new rt(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new rt(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!=e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,s=this.w.globals,a="boxPlot"===i.chart.type||"boxPlot"===i.series[t].type,n=0;n<e[t].data.length;n++)if(void 0!==e[t].data[n][1]&&(Array.isArray(e[t].data[n][1])&&4===e[t].data[n][1].length&&!a?this.twoDSeries.push(W.parseNumber(e[t].data[n][1][3])):this.twoDSeries.push(W.parseNumber(e[t].data[n].length>=5?e[t].data[n][4]:e[t].data[n][1])),s.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var r=new Date(e[t].data[n][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o][2]&&(this.threeDSeries.push(e[t].data[o][2]),s.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,s=this.w.globals,a=new ct(this.ctx),n=t;s.collapsedSeriesIndices.indexOf(t)>-1&&(n=this.activeSeriesIndex);for(var r=0;r<e[t].data.length;r++)void 0!==e[t].data[r].y&&(Array.isArray(e[t].data[r].y)?this.twoDSeries.push(W.parseNumber(e[t].data[r].y[e[t].data[r].y.length-1])):this.twoDSeries.push(W.parseNumber(e[t].data[r].y))),void 0!==e[t].data[r].goals&&Array.isArray(e[t].data[r].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[r].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var o=0;o<e[n].data.length;o++){var h="string"==typeof e[n].data[o].x,d=Array.isArray(e[n].data[o].x),u=!d&&!!a.isValidDate(e[n].data[o].x);h||u?h||i.xaxis.convertedCatToNumeric?"datetime"!==i.xaxis.type||s.isBarHorizontal&&s.isRangeData?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[o].x),isNaN(e[n].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[n].data[o].x||(s.isXNumeric=!0)):this.twoDSeriesX.push(a.parseDate(e[n].data[o].x)):"datetime"===i.xaxis.type?this.twoDSeriesX.push(a.parseDate(e[n].data[o].x.toString())):(s.dataFormatXNumeric=!0,s.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[n].data[o].x))):d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[o].x)):(s.isXNumeric=!0,s.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[n].data[o].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var m=0;m<e[t].data.length;m++)this.threeDSeries.push(e[t].data[m].z);s.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",e,t)),i.seriesRangeStart.push(void 0===s.start?[]:s.start),i.seriesRangeEnd.push(void 0===s.end?[]:s.end),i.seriesRange.push(s.rangeUniques),i.seriesRange.forEach(function(a,n){a&&a.forEach(function(r,o){r.y.forEac
1h(function(h,d){for(var u=0;u<r.y.length;u++)d!==u&&h.y1<=r.y[u].y2&&r.y[u].y1<=h.y2&&(r.overlaps.indexOf(h.rangeName)<0&&r.overlaps.push(h.rangeName),r.overlaps.indexOf(r.y[u].rangeName)<0&&r.overlaps.push(r.y[u].rangeName))})})}),s}},{key:"handleCandleStickBoxData",value:function(e,t){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",e,t)),i.seriesCandleO[t]=s.o,i.seriesCandleH[t]=s.h,i.seriesCandleM[t]=s.m,i.seriesCandleL[t]=s.l,i.seriesCandleC[t]=s.c,s}},{key:"handleRangeDataFormat",value:function(e,t,i){var s=[],a=[],n=t[i].data.filter(function(d,u,g){return u===g.findIndex(function(m){return m.x===d.x})}).map(function(d,u){return{x:d.x,overlaps:[],y:[]}});if("array"===e)for(var r=0;r<t[i].data.length;r++)Array.isArray(t[i].data[r])?(s.push(t[i].data[r][1][0]),a.push(t[i].data[r][1][1])):(s.push(t[i].data[r]),a.push(t[i].data[r]));else if("xy"===e)for(var o=function(d){var u=Array.isArray(t[i].data[d].y),g=W.randomId(),m=t[i].data[d].x,b={y1:u?t[i].data[d].y[0]:t[i].data[d].y,y2:u?t[i].data[d].y[1]:t[i].data[d].y,rangeName:g};t[i].data[d].rangeName=g;var w=n.findIndex(function(C){return C.x===m});n[w].y.push(b),s.push(b.y1),a.push(b.y2)},h=0;h<t[i].data.length;h++)o(h);return{start:s,end:a,rangeUniques:n}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,i){var s=this.w,a="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[i].type,n=[],r=[],o=[],h=[],d=[];if("array"===e)if(a&&6===t[i].data[0].length||!a&&5===t[i].data[0].length)for(var u=0;u<t[i].data.length;u++)n.push(t[i].data[u][1]),r.push(t[i].data[u][2]),a?(o.push(t[i].data[u][3]),h.push(t[i].data[u][4]),d.push(t[i].data[u][5])):(h.push(t[i].data[u][3]),d.push(t[i].data[u][4]));else for(var g=0;g<t[i].data.length;g++)Array.isArray(t[i].data[g][1])&&(n.push(t[i].data[g][1][0]),r.push(t[i].data[g][1][1]),a?(o.push(t[i].data[g][1][2]),h.push(t[i].data[g][1][3]),d.push(t[i].data[g][1][4])):(h.push(t[i].data[g][1][2]),d.push(t[i].data[g][1][3])));else if("xy"===e)for(var m=0;m<t[i].data.length;m++)Array.isArray(t[i].data[m].y)&&(n.push(t[i].data[m].y[0]),r.push(t[i].data[m].y[1]),a?(o.push(t[i].data[m].y[2]),h.push(t[i].data[m].y[3]),d.push(t[i].data[m].y[4])):(h.push(t[i].data[m].y[2]),d.push(t[i].data[m].y[3])));return{o:n,h:r,m:o,l:h,c:d}}},{key:"parseDataAxisCharts",value:function(e){var t=this,s=this.w.config,a=this.w.globals,n=new ct(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx),r=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();a.isRangeBar="rangeBar"===s.chart.type&&a.isBarHorizontal,a.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,a.hasXaxisGroups&&(a.groups=s.xaxis.group.groups),e.forEach(function(m,b){a.seriesNames.push(void 0!==m.name?m.name:"series-"+parseInt(b+1,10))}),this.coreUtils.setSeriesYAxisMappings();var o=[],h=ke(new Set(s.series.map(function(m){return m.group})));s.series.forEach(function(m,b){var w=h.indexOf(m.group);o[w]||(o[w]=[]),o[w].push(a.seriesNames[b])}),a.seriesGroups=o;for(var d=function(){for(var m=0;m<r.length;m++)if("string"==typeof r[m]){if(!n.isValidDate(r[m]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(n.parseDate(r[m]))}else t.twoDSeriesX.push(r[m])},u=0;u<e.length;u++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[u].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type&&"rangeBar"!==e[u].type&&"rangeArea"!==e[u].type||(a.isRangeData=!0,"rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type||this.handleRangeData(e,u)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,u):this.isFormatXY()&&this.handleFormatXY(e,u),"candlestick"!==s.chart.type&&"candlestick"!==e[u].type&&"boxPlot"!==s.chart.type&&"boxPlot"!==e[u].type||this.handleCandleStickBoxData(e,u),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),a.seriesGoals=this.seriesGoals,u!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{"datetime"===s.xaxis.type?(a.isXNumeric=!0,d(),a.seriesX.push(this.twoDSeriesX)):"numeric"===s.xaxis.type&&(a.isXNumeric=!0,r.length>0&&(this.twoDSeriesX=r,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var g=e[u].data.map(function(m){return W.parseNumber(m)}
1);a.series.push(g)}a.seriesZ.push(this.threeDSeries),a.seriesColors.push(void 0!==e[u].color?e[u].color:void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config;t.series=e.slice(),t.seriesNames=i.labels.slice();for(var s=0;s<t.series.length;s++)void 0===t.seriesNames[s]&&t.seriesNames.push("series-"+(s+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,i=this.w.globals;t.xaxis.categories.length>0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(s){s.forEach(function(a){i.labels.indexOf(a.x)<0&&a.x&&i.labels.push(a.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new oi(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,s=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var a=i.series.map(function(u,g){return u.data.filter(function(m,b,w){return w.findIndex(function(C){return C.x===m.x})===b})}),n=a.reduce(function(u,g,m,b){return b[u].length>g.length?u:m},0),r=0;r<a[n].length;r++)s.push(r+1);else for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++)s.push(o+1);t.seriesX=[];for(var h=0;h<e.length;h++)t.seriesX.push(s);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===s.length){s=t.axisCharts?[]:t.series.map(function(u,g){return g+1});for(var d=0;d<e.length;d++)t.seriesX.push(s)}t.labels=s,i.xaxis.convertedCatToNumeric&&(t.categoryLabels=s.map(function(u){return i.xaxis.labels.formatter(u)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,i=t.config,s=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),s.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),i.chart.stacked){var a=new rt(this.ctx);s.series=a.setNullSeriesToZeroValues(s.series)}this.coreUtils.getSeriesTotals(),s.axisCharts&&(s.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),s.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),s.dataFormatXNumeric||s.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var n=this.coreUtils.getCategoryLabels(s.labels),r=0;r<n.length;r++)if(Array.isArray(n[r])){s.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach(function(i,s){var a=0;i.forEach(function(n){-1!==e.globals.collapsedSeriesIndices.indexOf(n)&&a++}),a>0&&a==i.length&&t.push(s)}),e.globals.ignoreYAxisIndexes=t.map(function(i){return i})}}]),L}(),At=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),s=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",s*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+s)}},{key:"fixSvgStringForIe11",value:function(e){if(!W.isIE11())return e.replace(/ /g," ");var t=0,i=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(s){return 2==++t?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':s});return(i=i.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){null==e&&(e=1);var t=this.w.globals.dom.Paper.svg();if(1!==e){var i=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(i,e),t=(new XMLSerializer).serializeToString(i)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),i=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(s,function(a){a.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),i&&i[0]&&(i[0].setAttribute("y",-100),i[0].setAttribute("y1",-100),i[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){this.cleanup();var e=this.getSvgString(),t=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(t)}},{key:"dataURI",value:function(e){var t=this;
1return new Promise(function(i){var s=t.w,a=e?e.scale||e.width/s.globals.svgWidth:1;t.cleanup();var n=document.createElement("canvas");n.width=s.globals.svgWidth*a,n.height=parseInt(s.globals.dom.elWrap.style.height,10)*a;var r="transparent"!==s.config.chart.background&&s.config.chart.background?s.config.chart.background:"#fff",o=n.getContext("2d");o.fillStyle=r,o.fillRect(0,0,n.width*a,n.height*a);var h=t.getSvgString(a);if(window.canvg&&W.isIE11()){var d=window.canvg.Canvg.fromString(o,h,{ignoreClear:!0,ignoreDimensions:!0});d.start();var u=n.msToBlob();d.stop(),i({blob:u})}else{var g="data:image/svg+xml,"+encodeURIComponent(h),m=new Image;m.crossOrigin="anonymous",m.onload=function(){if(o.drawImage(m,0,0),n.msToBlob){var b=n.msToBlob();i({blob:b})}else{var w=n.toDataURL("image/png");i({imgURI:w})}},m.src=g}})}},{key:"exportToSVG",value:function(){this.triggerDownload(this.svgUrl(),this.w.config.chart.toolbar.export.svg.filename,".svg")}},{key:"exportToPng",value:function(){var e=this;this.dataURI().then(function(t){var i=t.imgURI,s=t.blob;s?navigator.msSaveOrOpenBlob(s,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,s=e.fileName,a=e.columnDelimiter,n=void 0===a?",":a,r=e.lineDelimiter,o=void 0===r?"\n":r,h=this.w;i||(i=h.config.series);var d,u,g=[],m=[],b="",w=h.globals.series.map(function(M,N){return-1===h.globals.collapsedSeriesIndices.indexOf(N)?M:[]}),C=function(M){return"function"==typeof h.config.chart.toolbar.export.csv.categoryFormatter?h.config.chart.toolbar.export.csv.categoryFormatter(M):"datetime"===h.config.xaxis.type&&String(M).length>=10?new Date(M).toDateString():W.isNumber(M)?M:M.split(n).join("")},T=function(M){return"function"==typeof h.config.chart.toolbar.export.csv.valueFormatter?h.config.chart.toolbar.export.csv.valueFormatter(M):M},_=Math.max.apply(Math,ke(i.map(function(M){return M.data?M.data.length:0}))),l=new Pi(this.ctx),f=new Yt(this.ctx),k=function(M){var N="";if(h.globals.axisCharts){if("category"===h.config.xaxis.type||h.config.xaxis.convertedCatToNumeric)if(h.globals.isBarHorizontal){var Y=h.globals.yLabelFormatters[0],F=new rt(t.ctx).getActiveConfigSeriesIndex();N=Y(h.globals.labels[M],{seriesIndex:F,dataPointIndex:M,w:h})}else N=f.getLabel(h.globals.labels,h.globals.timescaleLabels,0,M).text;"datetime"===h.config.xaxis.type&&(h.config.xaxis.categories.length?N=h.config.xaxis.categories[M]:h.config.labels.length&&(N=h.config.labels[M]))}else N=h.config.labels[M];return null===N?"nullvalue":(Array.isArray(N)&&(N=N.join(" ")),W.isNumber(N)?N:N.split(n).join(""))};g.push(h.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===h.config.chart.type?(g.push("minimum"),g.push("q1"),g.push("median"),g.push("q3"),g.push("maximum")):"candlestick"===h.config.chart.type?(g.push("open"),g.push("high"),g.push("low"),g.push("close")):"rangeBar"===h.config.chart.type?(g.push("minimum"),g.push("maximum")):i.map(function(M,N){var Y=(M.name?M.name:"series-".concat(N))+"";h.globals.axisCharts&&g.push(Y.split(n).join("")?Y.split(n).join(""):"series-".concat(N))}),h.globals.axisCharts||(g.push(h.config.chart.toolbar.export.csv.headerValue),m.push(g.join(n))),h.globals.allSeriesHasEqualX||!h.globals.axisCharts||h.config.xaxis.categories.length||h.config.labels.length?i.map(function(M,N){h.globals.axisCharts?function(M,N){if(g.length&&0===N&&m.push(g.join(n)),M.data){M.data=M.data.length&&M.data||ke(Array(_)).map(function(){return""});for(var Y=0;Y<M.data.length;Y++){g=[];var F=k(Y);if("nullvalue"!==F){if(F||(l.isFormatXY()?F=i[N].data[Y].x:l.isFormat2DArray()&&(F=i[N].data[Y]?i[N].data[Y][0]:"")),0===N){g.push(C(F));for(var te=0;te<h.globals.series.length;te++){var oe,K=l.isFormatXY()?null===(oe=i[te].data[Y])||void 0===oe?void 0:oe.y:w[te][Y];g.push(T(K))}}("candlestick"===h.config.chart.type||M.type&&"candlestick"===M.type)&&(g.pop(),g.push(h.globals.seriesCandleO[N][Y]),g.push(h.globals.seriesCandleH[N][Y]),g.push(h.globals.seriesCandleL[N][Y]),g.push(h.globals.seriesCandleC[N][Y])),("boxPlot"===h.config.chart.type||M.type&&"boxPlot"===M.type)&&(g.pop(),g.push(h.globals.seriesCandleO[N][Y]),g.push(h.globals.seriesCandleH[N][Y]),g.push(h.globals.seriesCandleM[N][Y]),g.push(h.globals.seriesCandleL[N][Y]),g.push(h.globals.seriesCandleC[N][Y])),"rangeBar"===h.config.chart.type&&(g.pop(),g.push(h.globals.seriesRangeStart[N][Y]),g.push(h.globals.seriesRangeEnd[N][Y])),g.length&&m.push(g.join(n))}}}}(M,N):((g=[]).push(C(h.globals.labels[N])),g.push(T(w[N])),m.push(g.join(n))
1)}):(d=new Set,u={},i.forEach(function(M,N){M?.data.forEach(function(Y){var F,te;if(l.isFormatXY())F=Y.x,te=Y.y;else{if(!l.isFormat2DArray())return;F=Y[0],te=Y[1]}u[F]||(u[F]=Array(i.length).fill("")),u[F][N]=T(te),d.add(F)})}),g.length&&m.push(g.join(n)),Array.from(d).sort().forEach(function(M){m.push([C(M),u[M].join(n)])})),b+=m.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+b),s||h.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,i){var s=document.createElement("a");s.href=e,s.download=(t||this.w.globals.chartID)+i,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}]),L}(),xt=function(){function L(e,t){E(this,L),this.ctx=e,this.elgrid=t,this.w=e.w;var i=this.w;this.axesUtils=new Yt(e),this.xaxisLabels=i.globals.labels.slice(),i.globals.timescaleLabels.length>0&&!i.globals.isBarHorizontal&&(this.xaxisLabels=i.globals.timescaleLabels.slice()),i.config.xaxis.overwriteCategories&&(this.xaxisLabels=i.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],this.offY="top"===i.config.xaxis.position?0:i.globals.gridHeight,this.offY=this.offY+i.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.xaxisBorderWidth=i.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=i.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth=this.xaxisBorderWidth.indexOf("%")>-1?i.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=i.config.xaxis.axisBorder.height,this.yaxis=i.config.yaxis[0]}return O(L,[{key:"drawXaxis",value:function(){var e=this.w,t=new ne(this.ctx),i=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),s=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});i.add(s);for(var a=[],n=0;n<this.xaxisLabels.length;n++)a.push(this.xaxisLabels[n]);if(this.drawXAxisLabelAndGroup(!0,t,s,a,e.globals.isXNumeric,function(b,w){return w}),e.globals.hasXaxisGroups){var r=e.globals.groups;a=[];for(var o=0;o<r.length;o++)a.push(r[o].title);var h={};e.config.xaxis.group.style&&(h.xaxisFontSize=e.config.xaxis.group.style.fontSize,h.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,h.xaxisForeColors=e.config.xaxis.group.style.colors,h.fontWeight=e.config.xaxis.group.style.fontWeight,h.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,s,a,!1,function(b,w){return r[b].cols*w},h)}if(void 0!==e.config.xaxis.title.text){var d=t.group({class:"apexcharts-xaxis-title"}),u=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});d.add(u),i.add(d)}if(e.config.xaxis.axisBorder.show){var g=e.globals.barPadForNumericAxis,m=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-g,this.offY,this.xaxisBorderWidth+g,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(m):i.add(m)}return i}},{key:"drawXAxisLabelAndGroup",value:function(e,t,i,s,a,n){var r,o=this,h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},d=[],u=[],g=this.w,m=h.xaxisFontSize||this.xaxisFontSize,b=h.xaxisFontFamily||this.xaxisFontFamily,w=h.xaxisForeColors||this.xaxisForeColors,C=h.fontWeight||g.config.xaxis.labels.style.fontWeight,T=h.cssClass||g.config.xaxis.labels.style.cssClass,_=g.globals.padHorizontal,l=s.length,f="category"===g.config.xaxis.type?g.globals.dataPoints:l;0===f&&l>f&&(f=l),a?(r=g.globals.gridWidth/Math.min(f>1?f-1:f,l-1),_=_+n(0,r)/2+g.config.xaxis.labels.offsetX):_=_+n(0,r=g.globals.gridWidth/f)+g.config.xaxis.labels.offsetX;for(var I=function(N){var Y=_-n(N,r)/2+g.config.xaxis.labels.offsetX;0===N&&1===l&&r/2===_&&1===f&&(Y=g.globals.gridWidth/2);var F=o.axesUtils.getLabel(s,g.globals.timescaleLabels,Y,N,d,m,e),te=28;if(g.globals.rotateXLabels&&e&&(te=22),g.config.xaxis.title.text&&"top"===g.config.xaxis.position&&(te+=parseFloat(g.config.xaxis.title.style.fontSize)+2),e||(te=te+parseFloat(m)+(g.globals.xAxisLabelsHeight-g.globals.xAxisGroupLabelsHeight)+(g.globals.rotateXLabels?10:0)),F=void 0!==g.config.xaxis.tickAmount&&"dataPoints"!==g.config.xaxis.tickAmount&&"datetime"!==g.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(N,F,l):o.axesUtils.checkForOverflowingLabels(N,F,l,d,u),g.config.xaxis.labels.show){var oe=t.drawText({x:F.x,y:o.offY+g.config.xaxis.labels.offsetY+te-("top"===g.config.xaxis.position?g.globals.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:F.text,textAnchor:"middle",fontWeight:F.isBold?600:C,fontSize:m,fontFamily:b,foreColor:Array.isArray(w)?e&&g.config.xaxis.convertedCatToNumeric?w[g.globals.minX+N-1]:w[N]:w,isPlainText:!1,
vendor: 4,842 bytes, line 1
1cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+T});if(i.add(oe),oe.on("click",function(le){if("function"==typeof g.config.chart.events.xAxisLabelClick){var pe=Object.assign({},g,{labelIndex:N});g.config.chart.events.xAxisLabelClick(le,o.ctx,pe)}}),e){var K=document.createElementNS(g.globals.SVGNS,"title");K.textContent=Array.isArray(F.text)?F.text.join(" "):F.text,oe.node.appendChild(K),""!==F.text&&(d.push(F.text),u.push(F))}}N<l-1&&(_+=n(N+1,r))},M=0;M<=l-1;M++)I(M)}},{key:"drawXaxisInversed",value:function(e){var t,i,s=this,a=this.w,n=new ne(this.ctx),r=a.config.yaxis[0].opposite?a.globals.translateYAxisX[e]:0,o=n.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),h=n.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+r+", 0)"});o.add(h);var d=[];if(a.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)d.push(this.xaxisLabels[u]);i=-(t=a.globals.gridHeight/d.length)/2.2;var g=a.globals.yLabelFormatters[0],m=a.config.yaxis[0].labels;if(m.show)for(var b=function(k){var I=void 0===d[k]?"":d[k];I=g(I,{seriesIndex:e,dataPointIndex:k,w:a});var M=s.axesUtils.getYAxisForeColor(m.style.colors,e),N=0;Array.isArray(I)&&(N=I.length/2*parseInt(m.style.fontSize,10));var Y=m.offsetX-15,F="end";s.yaxis.opposite&&(F="start"),"left"===a.config.yaxis[0].labels.align?(Y=m.offsetX,F="start"):"center"===a.config.yaxis[0].labels.align?(Y=m.offsetX,F="middle"):"right"===a.config.yaxis[0].labels.align&&(F="end");var te=n.drawText({x:Y,y:i+t+m.offsetY-N,text:I,textAnchor:F,foreColor:Array.isArray(M)?M[k]:M,fontSize:m.style.fontSize,fontFamily:m.style.fontFamily,fontWeight:m.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+m.style.cssClass,maxWidth:m.maxWidth});h.add(te),te.on("click",function(le){if("function"==typeof a.config.chart.events.xAxisLabelClick){var pe=Object.assign({},a,{labelIndex:k});a.config.chart.events.xAxisLabelClick(le,s.ctx,pe)}});var oe=document.createElementNS(a.globals.SVGNS,"title");if(oe.textContent=Array.isArray(I)?I.join(" "):I,te.node.appendChild(oe),0!==a.config.yaxis[e].labels.rotate){var K=n.rotateAroundCenter(te.node);te.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," 0 ").concat(K.y,")"))}i+=t},w=0;w<=d.length-1;w++)b(w);if(void 0!==a.config.yaxis[0].title.text){var C=n.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+r+", 0)"}),T=n.drawText({x:a.config.yaxis[0].title.offsetX,y:a.globals.gridHeight/2+a.config.yaxis[0].title.offsetY,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});C.add(T),o.add(C)}var _=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(_=a.globals.gridWidth);var l=a.config.xaxis.axisBorder;if(l.show){var f=n.drawLine(a.globals.padHorizontal+l.offsetX+_,1+l.offsetY,a.globals.padHorizontal+l.offsetX+_,a.globals.gridHeight+l.offsetY,l.color,0);this.elgrid&&this.elgrid.elGridBorders&&a.config.grid.show?this.elgrid.elGridBorders.add(f):o.add(f)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(_,d.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,t,o),o}},{key:"drawXaxisTicks",value:function(e,t,i){var s=this.w,a=e;if(!(e<0||e-2>s.globals.gridWidth)){var n=this.offY+s.config.xaxis.axisTicks.offsetY;if(t=t+n+s.config.xaxis.axisTicks.height,"top"===s.config.xaxis.position&&(t=n-s.config.xaxis.axisTicks.height),s.config.xaxis.axisTicks.show){var r=new ne(this.ctx).drawLine(e+s.config.xaxis.axisTicks.offsetX,n+s.config.xaxis.offsetY,a+s.config.xaxis.axisTicks.offsetX,t+s.config.xaxis.offsetY,s.config.xaxis.axisTicks.color);i.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,s=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var a=0;a<i;a++)t.push(s=this.xaxisLabels[a].position);else for(var n=i,r=0;r<n;r++){var o=n;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),t.push(s+=e.globals.gridWidth/o)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new ne(this.ctx),i=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var r=0;r<s.length;
vendor: 2,973 bytes, line 1
1r++){var o=t.rotateAroundCenter(s[r]);o.y=o.y-1,o.x=o.x+1,s[r].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),s[r].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")")),e.config.xaxis.labels.trim&&Array.prototype.forEach.call(s[r].childNodes,function(m){t.placeTextWithEllipsis(m,m.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))})}else!function(){for(var m=e.globals.gridWidth/(e.globals.labels.length+1),b=0;b<s.length;b++)e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(s[b].childNodes,function(C){t.placeTextWithEllipsis(C,C.textContent,m)})}();if(a.length>0){var d=a[a.length-1].getBBox(),u=a[0].getBBox();d.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var g=0;g<n.length;g++)t.placeTextWithEllipsis(n[g],n[g].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),L}(),Ce=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new Yt(e),this.isRangeBar=t.globals.seriesRange.length&&t.globals.isBarHorizontal,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return O(L,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,i=new ne(this.ctx);null===e&&(e=i.group({class:"apexcharts-grid"}));var s=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),a=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(a),e.add(s),e}},{key:"drawGrid",value:function(){var e=null;return this.w.globals.axisCharts&&(e=this.renderGrid(),this.drawGridArea(e.el)),e}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new ne(this.ctx),s=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var a=0;e.config.stroke.width.forEach(function(u){a=Math.max(a,u)}),s=a}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 n=e.config.chart.type,r=0,o=0;("bar"===n||"rangeBar"===n||"candlestick"===n||"boxPlot"===n||e.globals.comboBarCount>
vendor: 2,650 bytes, line 1
10)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=e.config.grid.padding.right,t.barPadForNumericAxis>(r=e.config.grid.padding.left)&&(r=t.barPadForNumericAxis,o=t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-s/2-r-2,-s/2-2,t.gridWidth+s+o+r+4,t.gridHeight+s+4,0,"#fff");var h=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=i.drawRect(2*-h,2*-h,t.gridWidth+4*h,t.gridHeight+4*h,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var d=t.dom.baseEl.querySelector("defs");d.appendChild(t.dom.elGridRectMask),d.appendChild(t.dom.elForecastMask),d.appendChild(t.dom.elNonForecastMask),d.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,r=e.xCount,h=this.w;if(!(0===t&&h.globals.skipFirstTimelinelabel||t===r-1&&h.globals.skipLastTimelinelabel&&!h.config.xaxis.labels.formatter||"radar"===h.config.chart.type)){h.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:i,y1:e.y1,x2:e.x2,y2:e.y2,xCount:r,parent:e.parent});var d=0;if(h.globals.hasXaxisGroups&&"between"===h.config.xaxis.tickPlacement){var u=h.globals.groups;if(u){for(var g=0,m=0;g<t&&m<u.length;m++)g+=u[m].cols;g===t&&(d=.6*h.globals.xAxisLabelsHeight)}}new xt(this.ctx).drawXaxisTicks(i,d,h.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,i=e.x1,s=e.y1,a=e.x2,n=e.y2,r=e.xCount,o=e.parent,h=this.w,d=!1,u=o.node.classList.contains("apexcharts-gridlines-horizontal"),g=h.config.grid.strokeDashArray,m=h.globals.barPadForNumericAxis;(0===s&&0===n||0===i&&0===a)&&(d=!0),s===h.globals.gridHeight&&n===h.globals.gridHeight&&(d=!0),!h.globals.isBarHorizontal||0!==t&&t!==r-1||(d=!0);var b=new ne(this).drawLine(i-(u?m:0),s,a+(u?m:0),n,h.config.grid.borderColor,g);b.node.classList.add("apexcharts-gridline"),d&&h.config.grid.show?this.elGridBorders.add(b):o.add(b)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,i=e.x1,s=e.y1,a=e.x2,n=e.y2,r=e.type,o=this.w,h=new ne(this.ctx),d=o.globals.barPadForNumericAxis;if("column"!==r||"datetime"!==o.config.xaxis.type){var g=h.drawRect(i-("row"===r?d:0),s,a+("row"===r?2*d:0),n,0,o.config.grid[r].colors[t],o.config.grid[r].opacity);this.elg.add(g),g.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),g.node.classList.add("apexcharts-grid-".concat(r))}}},{key:"_drawXYLines",value:function(e){var t=this,i=e.xCount,s=e.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var n,r=a.globals.padHorizontal,o=a.globals.gridHeight;a.globals.timescaleLabels.length?function(b){for(var w=b.xC,T=b.y1,l=b.y2,f=0;f<w;
1f++)t._drawGridLines({i:f,x1:t.xaxisLabels[f].position,y1:T,x2:t.xaxisLabels[f].position,y2:l,xCount:i,parent:t.elgridLinesV})}({xC:i,x1:r,y1:0,x2:n,y2:o}):(a.globals.isXNumeric&&(i=a.globals.xAxisScale.result.length),function(b){for(var w=b.xC,C=b.x1,T=b.y1,_=b.x2,l=b.y2,f=0;f<w+(a.globals.isXNumeric?0:1);f++)0===f&&1===w&&1===a.globals.dataPoints&&(_=C=a.globals.gridWidth/2),t._drawGridLines({i:f,x1:C,y1:T,x2:_,y2:l,xCount:i,parent:t.elgridLinesV}),_=C+=a.globals.gridWidth/(a.globals.isXNumeric?w-1:w)}({xC:i,x1:r,y1:0,x2:n,y2:o}))}if(a.config.grid.yaxis.lines.show){var h=0,d=0,u=a.globals.gridWidth,g=s+1;this.isRangeBar&&(g=a.globals.labels.length);for(var m=0;m<g+(this.isRangeBar?1:0);m++)this._drawGridLine({i:m,xCount:g+(this.isRangeBar?1:0),x1:0,y1:h,x2:u,y2:d,parent:this.elgridLinesH}),d=h+=a.globals.gridHeight/(this.isRangeBar?g:s)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var s,a=i.globals.padHorizontal,n=i.globals.gridHeight,r=0;r<t+1;r++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:r,xCount:t+1,x1:a,y1:0,x2:s,y2:n,parent:this.elgridLinesV}),new xt(this.ctx).drawXaxisTicks(a,0,i.globals.dom.elGraphical),s=a+=i.globals.gridWidth/t;if(i.config.grid.yaxis.lines.show)for(var o=0,h=0,d=i.globals.gridWidth,u=0;u<i.globals.dataPoints+1;u++)this._drawGridLine({i:u,xCount:i.globals.dataPoints+1,x1:0,y1:o,x2:d,y2:h,parent:this.elgridLinesH}),h=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,i=new ne(this.ctx);this.elg=i.group({class:"apexcharts-grid"}),this.elgridLinesH=i.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=i.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=i.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var s=0;s<t.seriesYAxisMap.length&&-1!==t.ignoreYAxisIndexes.indexOf(s);)s++;s===t.seriesYAxisMap.length&&(s=0);var a,r,o,h,n=t.yAxisScale[s].result.length-1;return!t.isBarHorizontal||this.isRangeBar?(a=this.xaxisLabels.length,this.isRangeBar&&(n=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(a=e.config.xaxis.tickAmount),(null===(r=t.yAxisScale)||void 0===r||null===(o=r[s])||void 0===o||null===(h=o.result)||void 0===h?void 0:h.length)>0&&"datetime"!==e.config.xaxis.type&&(a=t.yAxisScale[s].result.length-1)),this._drawXYLines({xCount:a,tickAmount:n})):this._drawInvertedXYLines({xCount:a=n,tickAmount:n=t.xTickAmount}),this.drawGridBands(a,n),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/a}}},{key:"drawGridBands",value:function(e,t){var i=this.w;if(void 0!==i.config.grid.row.colors&&i.config.grid.row.colors.length>0)for(var s=0,a=i.globals.gridHeight/t,n=i.globals.gridWidth,r=0,o=0;r<t;r++,o++)o>=i.config.grid.row.colors.length&&(o=0),this._drawGridBandRect({c:o,x1:0,y1:s,x2:n,y2:a,type:"row"}),s+=i.globals.gridHeight/t;if(void 0!==i.config.grid.column.colors&&i.config.grid.column.colors.length>0)for(var h=i.globals.isBarHorizontal||"on"!==i.config.xaxis.tickPlacement||"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric?e:e-1,d=i.globals.padHorizontal,u=i.globals.padHorizontal+i.globals.gridWidth/h,g=i.globals.gridHeight,m=0,b=0;m<e;m++,b++)b>=i.config.grid.column.colors.length&&(b=0),this._drawGridBandRect({c:b,x1:d,y1:0,x2:u,y2:g,type:"column"}),d+=i.globals.gridWidth/h}}]),L}(),ci=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"niceScale",value:function(e,t){var i,s,a,n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=1e-11,h=this.w,d=h.globals;d.isBarHorizontal?(i=h.config.xaxis,s=Math.max((d.svgWidth-100)/25,2)):(i=h.config.yaxis[r],s=Math.max((d.svgHeight-100)/15,2)),a=null!=i.min,n=void 0!==i.max&&null!==i.min;var u=null!=i.stepSize,g=null!=i.tickAmount,m=g?i.tickAmount:i.forceNiceScale?d.niceScaleDefaultTicks[Math.min(Math.round(s/2),d.niceScaleDefaultTicks.length-1)]:10;if(d.isMultipleYAxis&&!g&&d.multiAxisTickAmount>0&&(m=d.multiAxisTickAmount,g=!0),m="dataPoints"===m?d.dataPoints-1:Math.abs(Math.round(m)),(e===Number.MIN_VALUE&&0===t||!W.isNumber(e)&&!W.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=W.isNumber(i.min)?i.min:0,t=W.isNumber(i.max)?i.max:e+m,d.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var b=t;t=e,e=b}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var w=[];m<1&&(m=1);
1var C=m,T=Math.abs(t-e);i.forceNiceScale&&(!a&&e>0&&e/T<.15&&(e=0,a=!0),!n&&t<0&&-t/T<.15&&(t=0,n=!0),T=Math.abs(t-e));var _=T/C,l=_,f=Math.floor(Math.log10(l)),k=Math.pow(10,f),I=Math.ceil(l/k);if(_=l=(I=d.niceScaleAllowedMagMsd[0===d.yValueDecimal?0:1][I])*k,d.isBarHorizontal&&i.stepSize&&"datetime"!==i.type?(_=i.stepSize,u=!0):u&&(_=i.stepSize),u&&i.forceNiceScale){var M=Math.floor(Math.log10(_));_*=Math.pow(10,f-M)}if(a&&n){var N=T/C;if(g)if(u)if(0!=W.mod(T,_)){var Y=W.getGCD(_,N);_=N/Y<10?Y:N}else 0==W.mod(_,N)?_=N:(N=_,g=!1);else _=N;else if(u)0==W.mod(T,_)?N=_:_=N;else if(0==W.mod(T,_))N=_;else{N=T/(C=Math.ceil(T/_));var F=W.getGCD(T,_);T/F<s&&(N=F),_=N}C=Math.round(T/_)}else{if(a||n){if(n)if(g)e=t-_*C;else{var te=e;e=_*Math.floor(e/_),Math.abs(t-e)/W.getGCD(T,_)>s&&(e=t-_*m,e+=_*Math.floor((te-e)/_))}else if(a)if(g)t=e+_*C;else{var oe=t;t=_*Math.ceil(t/_),Math.abs(t-e)/W.getGCD(T,_)>s&&(t=e+_*m,t+=_*Math.ceil((oe-t)/_))}}else if(g){var K=_/(t-e>t?1:2),le=K*Math.floor(e/K);Math.abs(le-e)<=K/2?t=(e=le)+_*C:e=(t=K*Math.ceil(t/K))-_*C}else e=_*Math.floor(e/_),t=_*Math.ceil(t/_);T=Math.abs(t-e),_=W.getGCD(T,_),C=Math.round(T/_)}if(g||a||n||(C=Math.ceil((T-o)/(_+o)))>16&&W.getPrimeFactors(C).length<2&&C++,!g&&i.forceNiceScale&&0===d.yValueDecimal&&C>T&&(C=T,_=Math.round(T/C)),C>s&&(!g&&!u||i.forceNiceScale)){var pe=W.getPrimeFactors(C),ve=pe.length-1,Ae=C;e:for(var Te=0;Te<ve;Te++)for(var De=0;De<=ve-Te;De++){for(var ze=Math.min(De+Te,ve),Xe=Ae,Ke=1,tt=De;tt<=ze;tt++)Ke*=pe[tt];if((Xe/=Ke)<s){Ae=Xe;break e}}_=Ae===C?T:T/Ae,C=Math.round(T/_)}d.isMultipleYAxis&&0==d.multiAxisTickAmount&&d.ignoreYAxisIndexes.indexOf(r)<0&&(d.multiAxisTickAmount=C);var Re=e-_,Ct=_*o;do{w.push(W.stripNumber(Re+=_,7))}while(t-Re>Ct);return{result:w,niceMin:w[0],niceMax:w[w.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,n=Math.abs(t-e),r=[];if(e===t)return{result:r=[e],niceMin:r[0],niceMax:r[r.length-1]};"dataPoints"===(i=this._adjustTicksForSmallRange(i,s,n))&&(i=this.w.globals.dataPoints-1),a||(a=n/i),a=Math.round(10*(a+Number.EPSILON))/10,i===Number.MAX_VALUE&&(i=5,a=1);for(var o=e;i>=0;)r.push(o),o=W.preciseAddition(o,a),i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var s=[],a=Math.ceil(Math.log(t)/Math.log(i)+1),n=Math.floor(Math.log(e)/Math.log(i));n<a;n++)s.push(Math.pow(i,n));return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"logarithmicScale",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var s=[],a=Math.log(t)/Math.log(i),n=Math.log(e)/Math.log(i),r=a-n,o=Math.round(r),h=r/o,d=0,u=n;d<o;d++,u+=h)s.push(Math.pow(i,u));return s.push(Math.pow(i,a)),{result:s,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,i){var s=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var a=Number(this.w.config.yaxis[t].labels.formatter(1));W.isNumber(a)&&0===this.w.globals.yValueDecimal&&(s=Math.ceil(i))}return s<e?s:e}},{key:"setYScaleForIndex",value:function(e,t,i){var s=this.w.globals,a=this.w.config,n=s.isBarHorizontal?a.xaxis:a.yaxis[e];void 0===s.yAxisScale[e]&&(s.yAxisScale[e]=[]);var r=Math.abs(i-t);n.logarithmic&&r<=5&&(s.invalidLogScale=!0),n.logarithmic&&r>5?(s.allSeriesCollapsed=!1,s.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,i,n.logBase):this.logarithmicScale(t,i,n.logBase)):i!==-Number.MAX_VALUE&&W.isNumber(i)&&t!==Number.MAX_VALUE&&W.isNumber(t)?(s.allSeriesCollapsed=!1,s.yAxisScale[e]=this.niceScale(t,i,e)):s.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var i=this.w,s=i.globals,a=Math.abs(t-e);if(t!==-Number.MAX_VALUE&&W.isNumber(t)){var n=s.xTickAmount+1;a<10&&a>1&&(n=a),s.xAxisScale=this.linearScale(e,t,n,0,i.config.xaxis.stepSize)}else s.xAxisScale=this.linearScale(0,10,10);return s.xAxisScale}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,i=[],s=[],a=[],n=e.series.length>t.yaxis.length||t.yaxis.some(function(u){return Array.isArray(u.seriesName)});
1t.series.forEach(function(u,g){a.push(g),s.push(null)}),t.yaxis.forEach(function(u,g){i[g]=[]});var r=[];t.yaxis.forEach(function(u,g){var m=!1;if(u.seriesName){var b=[];Array.isArray(u.seriesName)?b=u.seriesName:b.push(u.seriesName),b.forEach(function(w){t.series.forEach(function(C,T){if(C.name===w){var _=T;g===T||n?!n||a.indexOf(T)>-1?i[g].push([g,T]):console.warn("Series '"+C.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(i[T].push([T,g]),_=g),m=!0,-1!==(_=a.indexOf(_))&&a.splice(_,1)}})})}m||r.push(g)}),i=i.map(function(u,g){var m=[];return u.forEach(function(b){s[b[1]]=b[0],m.push(b[1])}),m});for(var o=t.yaxis.length-1,h=0;h<r.length&&(i[o=r[h]]=[],a);h++){var d=a[0];a.shift(),i[o].push(d),s[d]=o}a.forEach(function(u){i[o].push(u),s[u]=o}),e.seriesYAxisMap=i.map(function(u){return u}),e.seriesYAxisReverseMap=s.map(function(u){return u})}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,i=this.w.globals;this.setSeriesYAxisMappings();var s=i.seriesYAxisMap,a=i.minYArr,n=i.maxYArr;i.allSeriesCollapsed=!0,i.barGroups=[],s.forEach(function(r,o){var h=[];r.forEach(function(d){var u=t.series[d].group;h.indexOf(u)<0&&h.push(u)}),r.length>0?function(){var d,u,g=Number.MAX_VALUE,m=-Number.MAX_VALUE,b=g,w=m;if(t.chart.stacked)!function(){var _=i.seriesX[r[0]],l=[],f=[],k=[];h.forEach(function(){l.push(_.map(function(){return Number.MIN_VALUE})),f.push(_.map(function(){return Number.MIN_VALUE})),k.push(_.map(function(){return Number.MIN_VALUE}))});for(var I=function(N){!d&&t.series[r[N]].type&&(d=t.series[r[N]].type);var Y=r[N];u=t.series[Y].group?t.series[Y].group:"axis-".concat(o),!(i.collapsedSeriesIndices.indexOf(Y)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(Y)<0)||(i.allSeriesCollapsed=!1,h.forEach(function(F,te){if(t.series[Y].group===F)for(var oe=0;oe<i.series[Y].length;oe++){var K=i.series[Y][oe];K>=0?f[te][oe]+=K:k[te][oe]+=K,l[te][oe]+=K,b=Math.min(b,K),w=Math.max(w,K)}})),"bar"!==d&&"column"!==d||i.barGroups.push(u)},M=0;M<r.length;M++)I(M);d||(d=t.chart.type),"bar"===d||"column"===d?h.forEach(function(N,Y){g=Math.min(g,Math.min.apply(null,k[Y])),m=Math.max(m,Math.max.apply(null,f[Y]))}):(h.forEach(function(N,Y){b=Math.min(b,Math.min.apply(null,l[Y])),w=Math.max(w,Math.max.apply(null,l[Y]))}),g=b,m=w),g===Number.MIN_VALUE&&m===Number.MIN_VALUE&&(m=-Number.MAX_VALUE)}();else for(var C=0;C<r.length;C++){var T=r[C];g=Math.min(g,a[T]),m=Math.max(m,n[T]),!(i.collapsedSeriesIndices.indexOf(T)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(T)<0)||(i.allSeriesCollapsed=!1)}void 0!==t.yaxis[o].min&&(g="function"==typeof t.yaxis[o].min?t.yaxis[o].min(g):t.yaxis[o].min),void 0!==t.yaxis[o].max&&(m="function"==typeof t.yaxis[o].max?t.yaxis[o].max(m):t.yaxis[o].max),i.barGroups=i.barGroups.filter(function(_,l,f){return f.indexOf(_)===l}),e.setYScaleForIndex(o,g,m),r.forEach(function(_){a[_]=i.yAxisScale[o].niceMin,n[_]=i.yAxisScale[o].niceMax})}():e.setYScaleForIndex(o,0,-Number.MAX_VALUE)})}}]),L}(),Fi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.scales=new ci(e)}return O(L,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w.config,n=this.w.globals,r=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===s&&(s=e+1);var h=n.series,d=h,u=h;"candlestick"===a.chart.type?(d=n.seriesCandleL,u=n.seriesCandleH):"boxPlot"===a.chart.type?(d=n.seriesCandleO,u=n.seriesCandleC):n.isRangeData&&(d=n.seriesRangeStart,u=n.seriesRangeEnd);var g=!1;if(n.seriesX.length>=s){var m,b=null===(m=n.brushSource)||void 0===m?void 0:m.w.config.chart.brush;(a.chart.zoom.enabled&&a.chart.zoom.autoScaleYaxis||null!=b&&b.enabled&&null!=b&&b.autoScaleYaxis)&&(g=!0)}for(var w=e;w<s;w++){n.dataPoints=Math.max(n.dataPoints,h[w].length);var C=a.series[w].type;n.categoryLabels.length&&(n.dataPoints=n.categoryLabels.filter(function(k){return void 0!==k}).length),n.labels.length&&"datetime"!==a.xaxis.type&&0!==n.series.reduce(function(k,I){return k+I.length},0)&&(n.dataPoints=Math.max(n.dataPoints,n.labels.length));var T=0,_=h[w].length-1;if(g){if(a.xaxis.min)for(;T<_&&n.seriesX[w][T]<a.xaxis.min;T++);if(a.xaxis.max)for(;_>T&&n.seriesX[w][_]>a.xaxis.max;_--);}for(var l=T;l<=_&&l<n.series[w].length;l++){var f=h[w][l];if(null!==f&&W.isNumber(f)){switch(void 0!==u[w][l]&&(r=Math.max(r,u[w][l]),t=Math.min(t,u[w][l])),void 0!==d[w][l]&&(t=Math.min(t,d[w][l]),i=Math.max(i,d[w][l])),C){case"candlestick":void 0!==n.seriesCandleC[w][l]&&(r=Math.max(r,n.seriesCandleH[w][l]),t=Math.min(t,n.seriesCandleL[w][l]));break;case"boxPlot":void 0!==n.seriesCandleC[w][l]&&(r=Math.max(r,n.seriesCandleC[w][l]),t=Math.min(t,n.seriesCandleO[w][l]))}C&&"candlestick"!==C&&"boxPlot"!==C&&"rangeArea"!==C&&"rangeBar"!==C&&(r=Math.max(r,n.series[w][l]),t=Math.min(t,n.series[w][l])),i=r,n.seriesGoals[w]&&n.seriesGoals[w][l]&&Array.isArray(n.seriesGoals[w][l])&&n.seriesGoals[w][l].forEach(function(k){o!==Number.MIN_VALUE&&(o=Math.min(o,k.value),t=o),r=Math.max(r,k.value),i=r}),W.isFloat(f)&&(f=W.noExponents(f),n.yValueDecimal=Math.max(n.yValueDecimal,f.toString().split(".")[1].length)),o>d[w][l]&&d[w][l]<0&&(o=d[w][l])}else n.hasNullValues=!0}"bar"!==C&&"column"!==C||(o<0&&r<0&&(r=0,i=Math.max(i,0)),o===Number.MIN_VALUE&&(o=0,t=Math.min(t,0)))}return"rangeBar"===a.chart.type&&n.seriesRangeStart.length&&n.isBarHorizontal&&(
1o=t),"bar"===a.chart.type&&(o<0&&r<0&&(r=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:r,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i,s=Number.MAX_VALUE;if(e.isMultipleYAxis){s=Number.MAX_VALUE;for(var a=0;a<e.series.length;a++)i=this.getMinYMaxY(a),e.minYArr[a]=i.lowestY,e.maxYArr[a]=i.highestY,s=Math.min(s,i.lowestY)}return i=this.getMinYMaxY(0,s,null,e.series.length),"bar"===t.chart.type?(e.minY=i.minY,e.maxY=i.maxY):(e.minY=i.lowestY,e.maxY=i.highestY),s=i.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&s!==-Number.MAX_VALUE&&s!==e.maxY&&(e.minY=s):e.minY=i.minY,t.yaxis.forEach(function(n,r){void 0!==n.max&&("number"==typeof n.max?e.maxYArr[r]=n.max:"function"==typeof n.max&&(e.maxYArr[r]=n.max(e.isMultipleYAxis?e.maxYArr[r]:e.maxY)),e.maxY=e.maxYArr[r]),void 0!==n.min&&("number"==typeof n.min?e.minYArr[r]=n.min:"function"==typeof n.min&&(e.minYArr[r]=n.min(e.isMultipleYAxis?e.minYArr[r]===Number.MIN_VALUE?0:e.minYArr[r]:e.minY)),e.minY=e.minYArr[r])}),e.isBarHorizontal&&["min","max"].forEach(function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=s):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(function(n){switch(n.type||t.chart.type){case"bar":case"column":e.barGroups.push(n.group);break;case"line":e.lineGroups.push(n.group);break;case"area":e.areaGroups.push(n.group)}}),e.barGroups=e.barGroups.filter(function(n,r,o){return o.indexOf(n)===r}),e.lineGroups=e.lineGroups.filter(function(n,r,o){return o.indexOf(n)===r}),e.areaGroups=e.areaGroups.filter(function(n,r,o){return o.indexOf(n)===r}),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var r=0;r<e.series.length;r++)if(e.labels[r])for(var o=0;o<e.labels[r].length;o++)null!==e.labels[r][o]&&W.isNumber(e.labels[r][o])&&(e.maxX=Math.max(e.maxX,e.labels[r][o]),e.initialMaxX=Math.max(e.maxX,e.labels[r][o]),e.minX=Math.min(e.minX,e.labels[r][o]),e.initialMinX=Math.min(e.minX,e.labels[r][o]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var s;if(void 0===t.xaxis.tickAmount?(s=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(s=e.dataPoints-1),s>e.dataPoints&&0!==e.dataPoints&&(s=e.dataPoints-1)):"dataPoints"===t.xaxis.tickAmount?(e.series.length>1&&(s=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(s=e.maxX-e.minX-1)):s=t.xaxis.tickAmount,e.xTickAmount=s,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var a=[],n=e.minX-1;n<e.maxX;n++)a.push(n+1);e.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,s,s,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,s-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var i=0;i<e.seriesZ[t].length;i++)null!==e.seriesZ[t][i]&&W.isNumber(e.seriesZ[t][i])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][i]),e.minZ=Math.min(e.minZ,e.seriesZ[t][i]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var i=new ct(this.ctx);if("datetime"===t.xaxis.type){var s=i.getDate(e.minX);t.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()-2):s.setDate(s.getDate()-2),e.minX=new Date(s).getTime();var a=i.getDate(e.maxX);
1t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),e.maxX=new Date(a).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(t,i){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var s=t.slice();s.sort(function(a,n){return a-n}),s.forEach(function(a,n){if(n>0){var r=a-s[n-1];r>0&&(e.minXDiff=Math.min(r,e.minXDiff))}}),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var i=t.seriesGroups;i.length||(i=[this.w.globals.seriesNames.map(function(n){return n})]);var s={},a={};i.forEach(function(n){s[n]=[],a[n]=[],e.w.config.series.map(function(r,o){return n.indexOf(t.seriesNames[o])>-1?o:null}).filter(function(r){return null!==r}).forEach(function(r){for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++){var h,d,u,g;void 0===s[n][o]&&(s[n][o]=0,a[n][o]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(h=e.w.config.series)||void 0===h||null===(d=h[r])||void 0===d?void 0:d.type)||"column"===(null===(u=e.w.config.series)||void 0===u||null===(g=u[r])||void 0===g?void 0:g.type)))&&null!==t.series[r][o]&&W.isNumber(t.series[r][o])&&(t.series[r][o]>0?s[n][o]+=parseFloat(t.series[r][o])+1e-4:a[n][o]+=parseFloat(t.series[r][o]))}})}),Object.entries(s).forEach(function(n){var r=kt(n,1)[0];s[r].forEach(function(o,h){t.maxY=Math.max(t.maxY,s[r][h]),t.minY=Math.min(t.minY,a[r][h])})})}}}]),L}(),ns=function(){function L(e,t){E(this,L),this.ctx=e,this.elgrid=t,this.w=e.w;var i=this.w;this.xaxisFontSize=i.config.xaxis.labels.style.fontSize,this.axisFontFamily=i.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=i.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===i.config.chart.type&&i.config.plotOptions.bar.horizontal,this.xAxisoffX=0,"bottom"===i.config.xaxis.position&&(this.xAxisoffX=i.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new Yt(e)}return O(L,[{key:"drawYaxis",value:function(e){var t=this,i=this.w,s=new ne(this.ctx),a=i.config.yaxis[e].labels.style,n=a.fontSize,r=a.fontFamily,o=a.fontWeight,h=s.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+i.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return h;var d=s.group({class:"apexcharts-yaxis-texts-g"});h.add(d);var u=i.globals.yAxisScale[e].result.length-1,g=i.globals.gridHeight/u,m=i.globals.yLabelFormatters[e],b=i.globals.yAxisScale[e].result.slice();b=this.axesUtils.checkForReversedLabels(e,b);var w="";if(i.config.yaxis[e].labels.show){var C=i.globals.translateY+i.config.yaxis[e].labels.offsetY;i.globals.isBarHorizontal?C=0:"heatmap"===i.config.chart.type&&(C-=g/2),C+=parseInt(i.config.yaxis[e].labels.style.fontSize,10)/3;for(var T=function(Y){var F=b[Y];F=m(F,Y,i);var te=i.config.yaxis[e].labels.padding;i.config.yaxis[e].opposite&&0!==i.config.yaxis.length&&(te*=-1);var oe="end";i.config.yaxis[e].opposite&&(oe="start"),"left"===i.config.yaxis[e].labels.align?oe="start":"center"===i.config.yaxis[e].labels.align?oe="middle":"right"===i.config.yaxis[e].labels.align&&(oe="end");var K=t.axesUtils.getYAxisForeColor(a.colors,e),le=W.listToArray(i.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map(function(De){return De.textContent}),pe=s.drawText({x:te,y:C,text:le.indexOf(F)>=0?"":F,textAnchor:oe,fontSize:n,fontFamily:r,fontWeight:o,maxWidth:i.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(K)?K[Y]:K,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+a.cssClass});Y===u&&(w=pe),d.add(pe);var ve=document.createElementNS(i.globals.SVGNS,"title");if(ve.textContent=Array.isArray(F)?F.join(" "):F,pe.node.appendChild(ve),0!==i.config.yaxis[e].labels.rotate){var Ae=s.rotateAroun
vendor: 4,509 bytes, line 1
1dCenter(w.node),Te=s.rotateAroundCenter(pe.node);pe.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," ").concat(Ae.x," ").concat(Te.y,")"))}C+=g},_=u;_>=0;_--)T(_)}if(void 0!==i.config.yaxis[e].title.text){var l=s.group({class:"apexcharts-yaxis-title"}),f=0;i.config.yaxis[e].opposite&&(f=i.globals.translateYAxisX[e]);var k=s.drawText({x:f,y:i.globals.gridHeight/2+i.globals.translateY+i.config.yaxis[e].title.offsetY,text:i.config.yaxis[e].title.text,textAnchor:"end",foreColor:i.config.yaxis[e].title.style.color,fontSize:i.config.yaxis[e].title.style.fontSize,fontWeight:i.config.yaxis[e].title.style.fontWeight,fontFamily:i.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[e].title.style.cssClass});l.add(k),h.add(l)}var I=i.config.yaxis[e].axisBorder,M=31+I.offsetX;if(i.config.yaxis[e].opposite&&(M=-31-I.offsetX),I.show){var N=s.drawLine(M,i.globals.translateY+I.offsetY-2,M,i.globals.gridHeight+i.globals.translateY+I.offsetY+2,I.color,0,I.width);h.add(N)}return i.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(M,u,I,i.config.yaxis[e].axisTicks,e,g,h),h}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new ne(this.ctx),s=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});s.add(a);var n=t.globals.yAxisScale[e].result.length-1,r=t.globals.gridWidth/n+.1,o=r+t.config.xaxis.labels.offsetX,h=t.globals.xLabelFormatter,d=t.globals.yAxisScale[e].result.slice(),u=t.globals.timescaleLabels;u.length>0&&(this.xaxisLabels=u.slice(),n=(d=u.slice()).length),d=this.axesUtils.checkForReversedLabels(e,d);var g=u.length;if(t.config.xaxis.labels.show)for(var m=g?0:n;g?m<g:m>=0;g?m++:m--){var b=d[m];b=h(b,m,t);var w=t.globals.gridWidth+t.globals.padHorizontal-(o-r+t.config.xaxis.labels.offsetX);if(u.length){var C=this.axesUtils.getLabel(d,u,w,m,this.drawnLabels,this.xaxisFontSize);w=C.x,b=C.text,this.drawnLabels.push(C.text),0===m&&t.globals.skipFirstTimelinelabel&&(b=""),m===d.length-1&&t.globals.skipLastTimelinelabel&&(b="")}var T=i.drawText({x:w,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:b,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]: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});a.add(T),T.tspan(b);var _=document.createElementNS(t.globals.SVGNS,"title");_.textContent=b,T.node.appendChild(_),o+=r}return this.inversedYAxisTitleText(s),this.inversedYAxisBorder(s),s}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new ne(this.ctx),s=t.config.xaxis.axisBorder;if(s.show){var a=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(a-=15);var n=i.drawLine(t.globals.padHorizontal+a+s.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,s.color,0,s.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(n):e.add(n)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new ne(this.ctx);if(void 0!==t.config.xaxis.title.text){var s=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=i.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});s.add(a),e.add(s)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,s=new ne(this.ctx),a={width:0,height:0},n={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));null!==r&&(a=r.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(null!==o&&(n=o.getBoundingClientRect()),null!==o){var h=this.xPaddingForYAxisTitle(e,a,n,t);o.setAttribute("x",h.xPos-(t?10:0))}
vendor: 6,726 bytes, line 1
1if(null!==o){var d=s.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(d.x," ").concat(d.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,s){var a=this.w,n=0,r=0,o=10;return void 0===a.config.yaxis[e].title.text||e<0?{xPos:r,padd:0}:(s?(r=t.width+a.config.yaxis[e].title.offsetX+i.width/2+o/2,0===(n+=1)&&(r-=o/2)):(r=-1*t.width+a.config.yaxis[e].title.offsetX+o/2+i.width/2,a.globals.isBarHorizontal&&(r=-1*t.width-a.config.yaxis[e].title.offsetX-(o=25))),{xPos:r,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,s=0,a=0,n=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.map(function(o,h){var d=i.globals.ignoreYAxisIndexes.indexOf(h)>-1||!o.show||o.floating||0===e[h].width,u=e[h].width+t[h].width;o.opposite?i.globals.isBarHorizontal?i.globals.translateYAxisX[h]=(a=i.globals.gridWidth+i.globals.translateX-1)-o.labels.offsetX:(a=i.globals.gridWidth+i.globals.translateX+r,d||(r=r+u+20),i.globals.translateYAxisX[h]=a-o.labels.offsetX+20):(s=i.globals.translateX-n,d||(n=n+u+20),i.globals.translateYAxisX[h]=s+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=W.listToArray(t)).forEach(function(i,s){var a=e.config.yaxis[s];if(a&&!a.floating&&void 0!==a.labels.align){var n=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(s,"'] .apexcharts-yaxis-texts-g")),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(s,"'] .apexcharts-yaxis-label"));r=W.listToArray(r);var o=n.getBoundingClientRect();"left"===a.labels.align?(r.forEach(function(h,d){h.setAttribute("text-anchor","start")}),a.opposite||n.setAttribute("transform","translate(-".concat(o.width,", 0)"))):"center"===a.labels.align?(r.forEach(function(h,d){h.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(o.width/2*(a.opposite?1:-1),", 0)"))):"right"===a.labels.align&&(r.forEach(function(h,d){h.setAttribute("text-anchor","end")}),a.opposite&&n.setAttribute("transform","translate(".concat(o.width,", 0)")))}})}}]),L}(),rs=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.documentEvent=W.bind(this.documentEvent,this)}return O(L,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var s=i.globals.events[e].indexOf(t);-1!==s&&i.globals.events[e].splice(s,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var s=i.globals.events[e],a=s.length,n=0;n<a;n++)s[n].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,i=this.ctx,s=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(a){s.addEventListener(a,function(n){var r=Object.assign({},t,{seriesIndex:t.globals.axisCharts?t.globals.capturedSeriesIndex:0,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===n.type||"touchmove"===n.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(n,i,r):"mouseleave"===n.type||"touchleave"===n.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(n,i,r):("mouseup"===n.type&&1===n.which||"touchend"===n.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(n,i,r),i.ctx.events.fireEvent("click",[n,i,r]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(a){t.globals.dom.baseEl.addEventListener(a,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,i=e.target.className;if("click"===e.type){var s=t.globals.dom.baseEl.querySelector(".apexcharts-menu");s&&s.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&s.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),L}(),hi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter(function(a){return a.name===e})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var s=W.extend(Ze,i);this.w.globals.locale=s.options}}]),L}(),Bt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"drawAxis",value:function(e,t){var i,s,a=this,n=this.w.globals,r=this.w.config,o=new xt(this.ctx,t),h=new ns(this.ctx,t);n.axisCharts&&"radar"!==e&&(n.isBarHorizontal?(s=h.drawYaxisInversed(0),i=o.drawXaxisInversed(0),n.dom.elGraphical.add(i),n.dom.elGraphical.add(s)):(i=o.drawXaxis(),n.dom.elGraphical.add(i),r.yaxis.map(function(d,u){if(-1===n.ignoreYAxisIndexes.indexOf(u)&&(s=h.drawYaxis(u),n.dom.Paper.add(s),"back"===a.w.config.grid.position)){var g=n.dom.Paper.children()[1];g.remove(),n.dom.Paper.add(g)}})))}}]),L}(),yi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new ne(this.ctx),i=new Qe(this.ctx),s=e.config.xaxis.crosshairs.fill.gradient,a=e.config.xaxis.crosshairs.dropShadow,g=a.enabled,m=a.left,b=a.top,w=a.blur,C=a.color,T=a.opacity,_=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===e.config.xaxis.crosshairs.fill.type&&(_=t.drawGradient("vertical",s.colorFrom,s.colorTo,s.opacityFrom,s.opacityTo,null,s.stops,null));var l=t.drawRect();1===e.config.xaxis.crosshairs.width&&(l=t.drawLine());var f=e.globals.gridHeight;(!W.isNumber(f)||f<0)&&(f=0);var k=e.config.xaxis.crosshairs.width;(!W.isNumber(k)||k<0)&&(k=0),l.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:f,width:k,height:f,fill:_,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),g&&(l=i.dropShadow(l,{left:m,top:b,blur:w,color:C,opacity:T})),e.globals.dom.elGraphical.add(l)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new ne(this.ctx),i=e.config.yaxis[0].crosshairs,s=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var a=t.drawLine(-s,0,e.globals.gridWidth+s,0,i.stroke.color,
1i.stroke.dashArray,i.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(a)}var n=t.drawLine(-s,0,e.globals.gridWidth+s,0,i.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),L}(),Ei=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,s=i.config;if(0!==s.responsive.length){var a=s.responsive.slice();a.sort(function(h,d){return h.breakpoint>d.breakpoint?1:d.breakpoint>h.breakpoint?-1:0}).reverse();var n=new Dt({}),r=function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=window.innerWidth>0?window.innerWidth:screen.width;if(u>a[0].breakpoint){var g=W.clone(i.globals.initialConfig);g.series=W.clone(i.config.series);var m=st.extendArrayProps(n,g,i);h=W.extend(m,h),h=W.extend(i.config,h),t.overrideResponsiveOptions(h)}else for(var b=0;b<a.length;b++)u<a[b].breakpoint&&(h=st.extendArrayProps(n,a[b].options,i),h=W.extend(i.config,h),t.overrideResponsiveOptions(h))};if(e){var o=st.extendArrayProps(n,e,i);o=W.extend(i.config,o),r(o=W.extend(o,e))}else r({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new Dt(e).init({responsiveOverride:!0});this.w.config=t}}]),L}(),Ds=function(){function L(e){E(this,L),this.ctx=e,this.colors=[],this.w=e.w;var t=this.w;this.isColorFn=!1,this.isHeatmapDistributed="treemap"===t.config.chart.type&&t.config.plotOptions.treemap.distributed||"heatmap"===t.config.chart.type&&t.config.plotOptions.heatmap.distributed,this.isBarDistributed=t.config.plotOptions.bar.distributed&&("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)}return O(L,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,i=this.w,s=new W;if(i.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(i.config.theme.mode)),void 0===i.config.colors||0===(null===(e=i.config.colors)||void 0===e?void 0:e.length)?i.globals.colors=this.predefined():(i.globals.colors=i.config.colors,Array.isArray(i.config.colors)&&i.config.colors.length>0&&"function"==typeof i.config.colors[0]&&(i.globals.colors=i.config.series.map(function(b,w){var C=i.config.colors[w];return C||(C=i.config.colors[0]),"function"==typeof C?(t.isColorFn=!0,C({value:i.globals.axisCharts?i.globals.series[w][0]?i.globals.series[w][0]:0:i.globals.series[w],seriesIndex:w,dataPointIndex:w,w:i})):C}))),i.globals.seriesColors.map(function(b,w){b&&(i.globals.colors[w]=b)}),i.config.theme.monochrome.enabled){var a=[],n=i.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(n=i.globals.series[0].length*i.globals.series.length);for(var r=i.config.theme.monochrome.color,o=1/(n/i.config.theme.monochrome.shadeIntensity),h=i.config.theme.monochrome.shadeTo,d=0,u=0;u<n;u++){var g=void 0;"dark"===h?(g=s.shadeColor(-1*d,r),d+=o):(g=s.shadeColor(d,r),d+=o),a.push(g)}i.globals.colors=a.slice()}var m=i.globals.colors.slice();this.pushExtraColors(i.globals.colors),["fill","stroke"].forEach(function(b){i.globals[b].colors=void 0===i.config[b].colors?t.isColorFn?i.config.colors:m:i.config[b].colors.slice(),t.pushExtraColors(i.globals[b].colors)}),i.globals.dataLabels.style.colors=void 0===i.config.dataLabels.style.colors?m:i.config.dataLabels.style.colors.slice(),this.pushExtraColors(i.globals.dataLabels.style.colors,50),i.globals.radarPolygons.fill.colors=void 0===i.config.plotOptions.radar.polygons.fill.colors?["dark"===i.config.theme.mode?"#424242":"none"]:i.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(i.globals.radarPolygons.fill.colors,20),i.globals.markers.colors=void 0===i.config.markers.colors?m:i.config.markers.colors.slice(),this.pushExtraColors(i.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,a=t||s.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===s.config.chart.type&&s.config.plotOptions.heatmap.colorScale.inverse),i&&s.globals.series.length&&(a=s.globals.series[s.globals.maxValsInArrayIndex].length*s.globals.series.length),e.length<a)for(var n=a-e.length,r=0;r<n;r++)e.push(e[r])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,i="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",s="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=s,e.theme.palette=i,e}},{key:"predefined",value:function(){switch(this.w.config.theme.palette){case"palette1":default:this.colors=["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"];break;case"palette2":this.colors=["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#F
1F9800"];break;case"palette3":this.colors=["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"];break;case"palette4":this.colors=["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"];break;case"palette5":this.colors=["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"];break;case"palette6":this.colors=["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"];break;case"palette7":this.colors=["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"];break;case"palette8":this.colors=["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"];break;case"palette9":this.colors=["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"];break;case"palette10":this.colors=["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}return this.colors}}]),L}(),jt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,i="title"===e?t.config.title:t.config.subtitle,s=t.globals.svgWidth/2,a=i.offsetY,n="middle";if("left"===i.align?(s=10,n="start"):"right"===i.align&&(s=t.globals.svgWidth-10,n="end"),s+=i.offsetX,a=a+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var r=new ne(this.ctx).drawText({x:s,y:a,text:i.text,textAnchor:n,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});r.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(r)}}}]),L}(),Ri=function(){function L(e){E(this,L),this.w=e.w,this.dCtx=e}return O(L,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,i=0,s=0,a="title"===e?t.config.title.floating:t.config.subtitle.floating,n=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==n&&!a){var r=n.getBoundingClientRect();i=r.width,s=t.globals.axisCharts?r.height+5:r.height}return{width:i,height:s}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var i=Object.assign({},W.getBoundingClientRect(t));return this.dCtx.lgRect=null!==t&&!e.config.legend.floating&&e.config.legend.show?{x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:{x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,i=[];t.config.series.forEach(function(o,h){o.data.forEach(function(d,u){s=t.config.dataLabels.formatter(t.globals.series[h][u],{ctx:e.dCtx.ctx,seriesIndex:h,dataPointIndex:u,w:t}),i.push(s)})});var s=W.getLargestStringFromArr(i),a=new ne(this.dCtx.ctx),n=t.config.dataLabels.style,r=a.getTextRects(s,parseInt(n.fontSize),n.fontFamily);return{width:1.05*r.width,height:r.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var s=t.map(function(n,r){return Array.isArray(n)?n.length:1}),a=Math.max.apply(Math,ke(s));i=t[s.indexOf(a)]}return i}}]),L}(),Yi=function(){function L(e){E(this,L),this.w=e.w,this.dCtx=e}return O(L,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var s=this.getxAxisTimeScaleLabelsCoords();e={width:s.width,height:s.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var a=t.globals.xLabelFormatter,n=W.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,i);t.globals.isBarHorizontal&&(r=n=t.globals.yAxisScale[0].result.reduce(function(b,w){return b.length>w.length?b:w},0));var o=new Ue(this.dCtx.ctx),h=n;n=o.xLabelFormat(a,n,h,{i:void 0,dateFormatter:new ct(this.dCtx.ctx).formatDate,w:t}),r=o.xLabelFormat(a,r,h,{i:void 0,dateFormatter:new ct(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===n||""===String(n).trim())&&(r=n="1");var d=new ne(this.dCtx.ctx),u=d.getTextRects(n,t.config.xaxis.labels.style.fontSize),g=u;if(n!==r&&(g=d.getTextRects(r,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=g.width?u.width:g.width,height:u.height>=g.height?u.height:g.height}).width*i.length>
1t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var m=function(b){return d.getTextRects(b,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=m(n),n!==r&&(g=m(r)),e.height=(u.height>g.height?u.height:g.height)/1.5,e.width=u.width>g.width?u.width:g.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var i,s=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,a=t.globals.groups.map(function(u){return u.title}),n=W.getLargestStringFromArr(a),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,a),o=new ne(this.dCtx.ctx),h=o.getTextRects(n,s),d=h;return n!==r&&(d=o.getTextRects(r,s)),i={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(void 0!==e.config.xaxis.title.text){var s=new ne(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=s.width,i=s.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(a){return a.value}),s=i.reduce(function(a,n){return void 0===a?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):a.length>n.length?a:n},0);return 1.05*(e=new ne(this.dCtx.ctx).getTextRects(s,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,s=i.globals,a=i.config,n=a.xaxis.type,r=e.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal;a.yaxis.forEach(function(d,u){o?(t.dCtx.gridPad.left<r&&(t.dCtx.xPadLeft=r/2+1),t.dCtx.xPadRight=r/2+1):function(d,u){a.yaxis.length>1&&-1!==s.collapsedSeriesIndices.indexOf(u)||function(g){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var w=t.dCtx.timescaleLabels[0].position-r/1.75+t.dCtx.yAxisWidthLeft;t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+r/1.75-t.dCtx.yAxisWidthRight>s.svgWidth-s.translateX-("right"===i.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0)&&(s.skipLastTimelinelabel=!0),w<-(g.show&&!g.floating||"bar"!==a.chart.type&&"candlestick"!==a.chart.type&&"rangeBar"!==a.chart.type&&"boxPlot"!==a.chart.type?10:r/1.75)&&(s.skipFirstTimelinelabel=!0)}else"datetime"===n?t.dCtx.gridPad.right<r&&!s.rotateXLabels&&(s.skipLastTimelinelabel=!0):"datetime"!==n&&t.dCtx.gridPad.right<r/2-t.dCtx.yAxisWidthRight&&!s.rotateXLabels&&!i.config.xaxis.labels.trim&&(t.dCtx.xPadRight=r/2+1)}(d)}(d,u)})}}]),L}(),Pe=function(){function L(e){E(this,L),this.w=e.w,this.dCtx=e}
1return O(L,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,i=[],s=10,a=new Yt(this.dCtx.ctx);return t.config.yaxis.map(function(n,r){var o={seriesIndex:r,dataPointIndex:-1,w:t},h=t.globals.yAxisScale[r],d=0;if(!a.isYAxisHidden(r)&&n.labels.show&&void 0!==n.labels.minWidth&&(d=n.labels.minWidth),!a.isYAxisHidden(r)&&n.labels.show&&h.result.length){var u=t.globals.yLabelFormatters[r],m=h.result.reduce(function(f,k){var I,M;return(null===(I=String(u(f,o)))||void 0===I?void 0:I.length)>(null===(M=String(u(k,o)))||void 0===M?void 0:M.length)?f:k},h.niceMin===Number.MIN_VALUE?0:h.niceMin),b=m=u(m,o);if(void 0!==m&&0!==m.length||(m=h.niceMax),t.globals.isBarHorizontal){s=0;var w=t.globals.labels.slice();m=W.getLargestStringFromArr(w),m=u(m,{seriesIndex:r,dataPointIndex:-1,w:t}),b=e.dCtx.dimHelpers.getLargestStringFromMultiArr(m,w)}var C=new ne(e.dCtx.ctx),T="rotate(".concat(n.labels.rotate," 0 0)"),_=C.getTextRects(m,n.labels.style.fontSize,n.labels.style.fontFamily,T,!1),l=_;m!==b&&(l=C.getTextRects(b,n.labels.style.fontSize,n.labels.style.fontFamily,T,!1)),i.push({width:(d>l.width||d>_.width?d:l.width>_.width?l.width:_.width)+s,height:l.height>_.height?l.height:_.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,i=[];return this.w.config.yaxis.map(function(s,a){if(s.show&&void 0!==s.title.text){var n=new ne(e.dCtx.ctx),r="rotate(".concat(s.title.rotate," 0 0)"),o=n.getTextRects(s.title.text,s.title.style.fontSize,s.title.style.fontFamily,r,!1);i.push({width:o.width,height:o.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,s=0,a=e.globals.yAxisScale.length>1?10:0,n=new Yt(this.dCtx.ctx),r=function(o,h){var d=e.config.yaxis[h].floating,u=0;o.width>0&&!d?(u=o.width+a,e.globals.ignoreYAxisIndexes.indexOf(h)>-1&&(u=u-o.width-a)):u=d||n.isYAxisHidden(h)?0:5,e.config.yaxis[h].opposite?s+=u:i+=u,t+=u};return e.globals.yLabelsCoords.map(function(o,h){r(o,h)}),e.globals.yTitleCoords.map(function(o,h){r(o,h)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=s,t}}]),L}(),Tt=function(){function L(e){E(this,L),this.w=e.w,this.dCtx=e}return O(L,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,i=t.config,s=t.globals;if(s.noData||s.collapsedSeries.length+s.ancillaryCollapsedSeries.length===i.series.length)return 0;var a=function(m){return"bar"===m||"rangeBar"===m||"candlestick"===m||"boxPlot"===m},n=i.chart.type,r=0,o=a(n)?i.series.length:1;s.comboBarCount>0&&(o=s.comboBarCount),s.collapsedSeries.forEach(function(m){a(m.type)&&(o-=1)}),i.chart.stacked&&(o=1);var u,g,h=a(n)||s.comboBarCount>0,d=Math.abs(s.initialMaxX-s.initialMinX);return h&&s.isXNumeric&&!s.isBarHorizontal&&o>0&&0!==d&&(d<=3&&(d=s.dataPoints),u=d/e,s.minXDiff&&s.minXDiff/u>0&&(g=s.minXDiff/u),g>e/2&&(g/=2),(r=g*parseInt(i.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),s.barPadForNumericAxis=r),r}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,s=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(r){s+=void 0!==t.config[r].text?t.config[r].margin:e.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||t.globals.axisCharts||(s+=10);var a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight=i.gridHeight-a.height-n.height-s,i.translateY=i.translateY+a.height+n.height+s}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,s=new Yt(this.dCtx.ctx);i.config.yaxis.map(function(a,n){-1!==i.globals.ignoreYAxisIndexes.indexOf(n)||a.floating||s.isYAxisHidden(n)||(a.opposite&&(i.globals.translateX=i.globals.translateX-(t[n].width+e[n].width)-parseInt(i.config.yaxis[n].labels.style.fontSize,10)/1.2-12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),L}(),qi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.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 Ri(this),this.dimYAxis=new Pe
1(this),this.dimXAxis=new Yi(this),this.dimGrid=new Tt(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return O(L,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var s=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,ke(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(n){var r=kt(n,2);e.gridPad[r[0]]=Math.max(r[1],e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(s/2,this.gridPad.top),this.gridPad.bottom=Math.max(s/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,s=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();i.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(m,b){t.globals.yLabelsCoords.push({width:s[b].width,index:b}),t.globals.yTitleCoords.push({width:a[b].width,index:b})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,o,r),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var h=this.yAxisWidth,d=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-n.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(h=0,d=i.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(h=0,d=0,u=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var g=function(){i.translateX=h+e.datalabelsCoords.width,i.gridHeight=i.svgHeight-e.lgRect.height-d-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-h-2*e.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(u=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=u,g();break;case"top":i.translateY=this.lgRect.height+u,g();break;case"left":i.translateY=u,i.translateX=this.lgRect.width+h+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-d-12,i.gridWidth=i.svgWidth-this.lgRect.width-h-2*this.datalabelsCoords.width;break;case"right":i.translateY=u,i.translateX=h+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-d-12,i.gridWidth=i.svgWidth-this.lgRect.width-h-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,s),new ns(this.ctx).setYAxisXPosition(s,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,s=0;e.config.legend.show&&!e.config.legend.floating&&(s=20);var a="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",n=i.plotOptions[a].offsetY,r=i.plotOptions[a].offsetX;if(!i.legend.show||i.legend.floating){t.gridHeight=t.svgHeight-i.grid.padding.top-i.grid.padding.bottom;var o=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(o,t.gridHeight)-i.grid.padding.left-i.grid.padding.right,t.translateY=n,void(t.translateX=r+(t.svgWidth-t.gridWidth)/2)}switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=r+(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+n+10,t.translateX=r+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-s,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=r+this.lgRect.width+s;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-s-5,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=r+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var s=this.w;this.xAxisHeight=(i.height+e.height+t.height)*(s.globals.isMultiLineX?1.2:s.globals.LINE_HEIGHT_RATIO)+(s.globals.hasXaxisGroups?2:1)*(s.globals.rotateXLabels?22:10)+(s.globals.rotateXLabels&&"bottom"===s.config.legend.position?10:0),this.xAxisWidth=e.width,this.xAxisHeight-t.height>s.config.xaxis.labels.maxHeight&&(this.xAxisHeight=s.config.xaxis.labels.maxHeight),s.c
1onfig.xaxis.labels.minHeight&&this.xAxisHeight<s.config.xaxis.labels.minHeight&&(this.xAxisHeight=s.config.xaxis.labels.minHeight),s.config.xaxis.floating&&(this.xAxisHeight=0);var d=0,u=0;s.config.yaxis.forEach(function(g){d+=g.labels.minWidth,u+=g.labels.maxWidth}),this.yAxisWidth<d&&(this.yAxisWidth=d),this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),L}(),Ui=function(){function L(e){E(this,L),this.w=e.w,this.lgCtx=e}return O(L,[{key:"getLegendStyles",value:function(){var e,t,i,s=document.createElement("style");s.setAttribute("type","text/css");var a=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(i=t.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;a&&s.setAttribute("nonce",a);var n=document.createTextNode("\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .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 {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n }\n\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return s.appendChild(n),s}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend");return{clwh:e.offsetHeight,clww:e.offsetWidth}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var i=this,s=this.w;if(s.globals.axisCharts||"radialBar"===s.config.chart.type){s.globals.resized=!0;var a=null,n=null;s.globals.risingSeries=[],s.globals.axisCharts?(a=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(a.getAttribute("data:realIndex"),10)):(a=s.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(a.getAttribute("rel"),10)-1),t?[{cs:s.globals.collapsedSeries,csi:s.globals.collapsedSeriesIndices},{cs:s.globals.ancillaryCollapsedSeries,csi:s.globals.ancillaryCollapsedSeriesIndices}].forEach(function(d){i.riseCollapsedSeries(d.cs,d.csi,n)}):this.hideSeries({seriesEl:a,realIndex:n})}else{var r=s.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=s.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var h=s.config.plotOptions.pie.donut.labels;new ne(this.lgCtx.ctx).pathMouseDown(r.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(r.members[0].node,h)}r.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,i=e.realIndex,s=this.w,a=s.globals,n=W.clone(s.config.series);if(a.axisCharts){var r=s.config.yaxis[a.seriesYAxisReverseMap[i]];if(r&&r.show&&r.showAlways)a.ancillaryCollapsedSeriesIndices.indexOf(i)<0&&(a.ancillaryCollapsedSeries.push({index:i,data:n[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.ancillaryCollapsedSeriesIndices.push(i));else if(a.collapsedSeriesIndices.indexOf(i)<0){a.collapsedSeries.push({index:i,data:n[i].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),a.collapsedSeriesIndices.push(i);var o=a.risingSeries.indexOf(i);a.risingSeries.splice(o,1)}}else a.collapsedSeries.push({index:i,data:n[i]}),a.collapsedSeriesIndices.push(i);for(var h=t.childNodes,d=0;d<h.length;d++)h[d].classList.contains("apexcharts-series-markers-wrap")&&(h[d].classList.contains("apexcharts-hide")?h[d].classList.remove("apexcharts-hide"):h[d].classList.add("apexcharts-hide"));a.allSeriesCollapsed=a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===s.config.series.length,n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,i){var s=this.w,a=W.clone(s.config.series);if(e.length>0){for(var n=0;n<e.length;n++)e[n].index===i&&(s.globals.axisCharts?(a[i].data=e[n].data.slice(),e.splice(n,1),t.splice(n,1),s.globals.risingSeries.push(i)):(a[i]=e[n].data,e.splice(n,1),t.splice(n,1),s.globals.risingSeries.push(i)));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,s.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,i=0;return e.forEach(t.globals.axisCharts?function(s,a){t.globals.collapsedSeriesIndices.indexOf(a)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)<0||(e[a].data=[],i++)}:function(s,a){!t.globals.collapsedSeriesIndices.indexOf(a)<0&&(e[a]=0,i++)}),t.globals.allSeriesCollapsed=i===e.length,e}}]),L}(),Gt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new Ui(this)}return O(L,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config;if((i.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),W.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,i=e.fillcolor,s=this.w,a=document.createElement("span");a.classList.add("apexcharts-legend-marker");var n=s.config.legend.markers.shape||s.config.markers.shape,r=n;Array.isArray(n)&&(r=n[t]);var o=Array.isArray(s.config.legend.markers.size)?parseFloat(s.config.legend.markers.size[t]):parseFloat(s.config.legend.markers.size),h=Array.isArray(s.config.legend.markers.offsetX)?parseFloat(s.config.legend.markers.offsetX[t]):parseFloat(s.config.legend.markers.offsetX),d=Array.isArray(s.config.legend.markers.offsetY)?parseFloat(s.config.legend.markers.offsetY[t]):parseFloat(s.config.legend.markers.offsetY),u=Array.isArray(s.config.legend.markers.strokeWidth)?parseFloat(s.config.legend.markers.strokeWidth[t]):parseFloat(s.config.legend.markers.strokeWidth),g=a.style;if(g.height=2*(o+u)+"px",g.width=2*(o+u)+"px",g.left=h+"px",g.top=d+"px",s.config.legend.markers.customHTML)g.background="transparent",g.color=i[t],Array.isArray(s.config.legend.markers.customHTML)?s.config.legend.markers.customHTML[t]&&(a.innerHTML=s.config.legend.markers.customHTML[t]()):a.innerHTML=s.config.legend.markers.customHTML();else{var m=new Wt(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(r),seriesIndex:t,strokeWidth:u,size:o}),b=SVG(a).size("100%","100%"),w=new ne(this.ctx).drawMarker(0,0,Z(Z({},m),{},{pointFillColor:Array.isArray(i)?i[t]:m.pointFillColor,shape:r}));SVG.select(".apexcharts-legend-marker.apexcharts-marker").members.forEac
vendor: 10,090 bytes, line 1
1h(function(C){C.node.style.transform=C.node.classList.contains("apexcharts-marker-triangle")?"translate(50%, 45%)":"translate(50%, 50%)"}),b.add(w)}return a}},{key:"drawLegends",value:function(){var e=this,t=this.w,i=t.config.legend.fontFamily,s=t.globals.seriesNames,a=t.config.legend.markers.fillColors?t.config.legend.markers.fillColors.slice():t.globals.colors.slice();if("heatmap"===t.config.chart.type){var n=t.config.plotOptions.heatmap.colorScale.ranges;s=n.map(function(k){return k.name?k.name:k.from+" - "+k.to}),a=n.map(function(k){return k.color})}else this.isBarsDistributed&&(s=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(s=t.config.legend.customLegendItems);for(var r=t.globals.legendFormatter,o=t.config.legend.inverseOrder,h=o?s.length-1:0;o?h>=0:h<=s.length-1;o?h--:h++){var d,u=r(s[h],{seriesIndex:h,w:t}),g=!1,m=!1;if(t.globals.collapsedSeries.length>0)for(var b=0;b<t.globals.collapsedSeries.length;b++)t.globals.collapsedSeries[b].index===h&&(g=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var w=0;w<t.globals.ancillaryCollapsedSeriesIndices.length;w++)t.globals.ancillaryCollapsedSeriesIndices[w]===h&&(m=!0);var C=this.createLegendMarker({i:h,fillcolor:a});ne.setAttrs(C,{rel:h+1,"data:collapsed":g||m}),(g||m)&&C.classList.add("apexcharts-inactive-legend");var T=document.createElement("div"),_=document.createElement("span");_.classList.add("apexcharts-legend-text"),_.innerHTML=Array.isArray(u)?u.join(" "):u;var l=t.config.legend.labels.useSeriesColors?t.globals.colors[h]:Array.isArray(t.config.legend.labels.colors)?null===(d=t.config.legend.labels.colors)||void 0===d?void 0:d[h]:t.config.legend.labels.colors;l||(l=t.config.chart.foreColor),_.style.color=l,_.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",_.style.fontWeight=t.config.legend.fontWeight,_.style.fontFamily=i||t.config.chart.fontFamily,ne.setAttrs(_,{rel:h+1,i:h,"data:default-text":encodeURIComponent(u),"data:collapsed":g||m}),T.appendChild(C),T.appendChild(_);var f=new st(this.ctx);t.config.legend.showForZeroSeries||0===f.getSeriesTotalByIndex(h)&&f.seriesHaveSameValues(h)&&!f.isSeriesNull(h)&&-1===t.globals.collapsedSeriesIndices.indexOf(h)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(h)&&T.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||f.isSeriesNull(h)&&-1===t.globals.collapsedSeriesIndices.indexOf(h)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(h)&&T.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(T),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),T.classList.add("apexcharts-legend-series"),T.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",ne.setAttrs(T,{rel:h+1,seriesName:W.escapeString(s[h]),"data:collapsed":g||m}),(g||m)&&T.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||T.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var i=this.w,s=i.globals.dom.elLegendWrap,a=s.getBoundingClientRect(),n=0,r=0;if("bottom"===i.config.legend.position)r+=i.globals.svgHeight-a.height/2;else if("top"===i.config.legend.position){var o=new qi(this.ctx),h=o.dimHelpers.getTitleSubtitleCoords("title").height,d=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;r=r+(h>0?h-10:0)+(d>0?d-10:0)}s.style.position="absolute",r=r+t+i.config.legend.offsetY,s.style.left=(n=n+e+i.config.legend.offsetX)+"px",s.style.top=r+"px","bottom"===i.config.legend.position?(s.style.top="auto",s.style.bottom=5-i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(s.style.left="auto",s.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(u){s.style[u]&&(s.style[u]=parseInt(i.config.legend[u],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendDimensions(),i=new qi(this.ctx),s=i.dimHelpers.getTitleSubtitleCoords("title"),a=i.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;"bottom"===e.config.legend.position?n=-t.clwh/1.8:"top"===e.config.legend.position&&(n=s.height+a.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),i=0;"left"===e.config.legend.position&&(i=20),"right"===e.config.legend.position&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(i){var s=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,s,this.w]),new rt(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new rt(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,s="true"===e.target.getAttribute("data:collapsed"),a=this.w.config.chart.events.legendClick;"function"==typeof a&&a(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var n=this.w.config.legend.markers.onClick;"function"==typeof n&&e.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,s)}}}]),L}(),Zi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.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 O(L,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},s=i();if(s.setAttribute("class","apexcharts-toolbar"),s.style.top=t.config.chart.toolbar.offsetY+"px",s.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(s),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(i());var n=[],r=function(u,g,m){var b=u.toLowerCase();e.t[b]&&t.config.chart.zoom.enabled&&n.push({el:g,icon:"string"==typeof e.t[b]?e.t[b]:m,title:e.localeValues[u],class:"apexcharts-".concat(b,"-icon")})};r("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),r("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(u){e.t[u]&&t.config.chart[u].enabled&&n.push({el:"zoom"===u?e.elZoom:e.elSelection,icon:"string"==typeof e.t[u]?e.t[u]:"zoom"===u?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===u?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(u,"-icon")})};o("zoom"),o("selection"),this.t.pan&&t.config.chart.zoom.enabled&&n.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08
10-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),r("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&n.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var h=0;h<this.elCustomIcons.length;h++)n.push({el:this.elCustomIcons[h],icon:this.t.customIcons[h].icon,title:this.t.customIcons[h].title,index:this.t.customIcons[h].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[h].class});n.forEach(function(u,g){u.index&&W.moveIndexInArray(n,g,u.index)});for(var d=0;d<n.length;d++)ne.setAttrs(n[d].el,{class:n[d].class,title:n[d].title}),n[d].el.innerHTML=n[d].icon,s.appendChild(n[d].el);this._createHamburgerMenu(s),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),ne.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<t.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=t[i].title,ne.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(t[i].name),title:t[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(i){i.classList.contains("exportSVG")?i.addEventListener("click",e.handleDownload.bind(e,"svg")):i.classList.contains("exportPNG")?i.addEventListener("click",e.handleDownload.bind(e,"png")):i.classList.contains("exportCSV")&&i.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var i="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,s="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[s]=!t.w.globals[s],i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,i="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEac
vendor: 6,147 bytes, line 1
1h(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(i){i&&i.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,a=this._getNewMinXMaxX((this.minX+t)/2,(this.maxX+t)/2);e.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,a=this._getNewMinXMaxX(this.minX-(t-this.minX),this.maxX-(t-this.maxX));e.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(e):e,maxX:i?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var i=this.w;if(void 0!==e||void 0!==t){if(!(i.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=i.globals.dataPoints),t-e<2))){var s={min:e,max:t},a=this.getBeforeZoomRange(s);a&&(s=a.xaxis);var n={xaxis:s},r=W.clone(i.globals.initialConfig.yaxis);i.config.chart.group||(n.yaxis=r),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(s,r)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),i}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var t=this.w,i=new At(this.ctx);switch(e){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){var i=t.w;if(i.globals.lastXAxis.min=i.globals.initialConfig.xaxis.min,i.globals.lastXAxis.max=i.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof i.config.chart.events.beforeResetZoom){var s=i.config.chart.events.beforeResetZoom(t,i);s&&t.updateHelpers.revertDefaultAxisMinMax(s)}"function"==typeof i.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:i.config.xaxis.min,max:i.config.xaxis.max}),i.globals.zoomed=!1;var a=t.ctx.series.emptyCollapsedSeries(W.clone(i.globals.initialSeries));t.updateHelpers._updateSeries(a,i.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),L}(),ei=function(L){R(t,L);var e=xe(t);function t(i){var s;return E(this,t),(s=e.call(this,i)).ctx=i,s.w=i.w,s.dragged=!1,s.graphics=new ne(s.ctx),s.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],s.clientX=0,s.clientY=0,s.startX=0,s.endX=0,s.dragX=0,s.startY=0,s.endY=0,s.dragY=0,s.moveDirection="none",s}return O(t,[{key:"init",value:function(i){var s=this,a=i.xyRatios,n=this.w,r=this;this.xyRatios=a,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.elGraphical.add(this.zoomRect),n.globals.dom.elGraphical.add(this.selectionRect),this.slDraggableRect="x"===n.config.chart.selection.type?this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===n.config.chart.selection.type?this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(o){s.hoverArea.addEventListener(o,r.svgMouseEvents.bind(r,a),{capture:!1,passive:!0})})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(i,s){var a=this.w,n=this,r=this.ctx.toolbar,o=a.globals.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type,h=a.config.chart.toolbar.autoSelected;if(s.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar("pan"===h?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(h),this.shiftWasPressed=!1),s.target){var d,u=s.target.classList;if(s.target.parentNode&&null!==s.target.parentNode&&(d=s.target.parentNode.classList),!(u.contains("apexcharts-selection-rect")||u.contains("apexcharts-legend-marker")||u.contains("apexcharts-legend-text")||d&&d.contains("apexcharts-toolbar"))){if(n.clientX="touchmove"===s.type||"touchstart"===s.type?s.touches[0].clientX:"touchend"===s.type?s.changedTouches[0].clientX:s.
1clientX,n.clientY="touchmove"===s.type||"touchstart"===s.type?s.touches[0].clientY:"touchend"===s.type?s.changedTouches[0].clientY:s.clientY,"mousedown"===s.type&&1===s.which){var g=n.gridRect.getBoundingClientRect();n.startX=n.clientX-g.left,n.startY=n.clientY-g.top,n.dragged=!1,n.w.globals.mousedown=!0}if(("mousemove"===s.type&&1===s.which||"touchmove"===s.type)&&(n.dragged=!0,a.globals.panEnabled?(a.globals.selection=null,n.w.globals.mousedown&&n.panDragging({context:n,zoomtype:o,xyRatios:i})):(n.w.globals.mousedown&&a.globals.zoomEnabled||n.w.globals.mousedown&&a.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:o}))),"mouseup"===s.type||"touchend"===s.type||"mouseleave"===s.type){var m,b=null===(m=n.gridRect)||void 0===m?void 0:m.getBoundingClientRect();b&&n.w.globals.mousedown&&(n.endX=n.clientX-b.left,n.endY=n.clientY-b.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(a.globals.zoomEnabled||a.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:o}),a.globals.panEnabled&&a.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),a.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var i=this.w;if(this.selectionRect){var s=this.selectionRect.node.getBoundingClientRect();s.width>0&&s.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:i.globals.gridWidth,maxY:i.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var i=this.w,s=this.xyRatios;if(!i.globals.zoomEnabled)if(null!=i.globals.selection)this.drawSelectionRect(i.globals.selection);else if(void 0!==i.config.chart.selection.xaxis.min&&void 0!==i.config.chart.selection.xaxis.max){var a=(i.config.chart.selection.xaxis.min-i.globals.minX)/s.xRatio,n=i.globals.gridWidth-(i.globals.maxX-i.config.chart.selection.xaxis.max)/s.xRatio-a;i.globals.isRangeBar&&(a=(i.config.chart.selection.xaxis.min-i.globals.yAxisScale[0].niceMin)/s.invertedYRatio,n=(i.config.chart.selection.xaxis.max-i.config.chart.selection.xaxis.min)/s.invertedYRatio),this.drawSelectionRect({x:a,y:0,width:n,height:i.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0}),this.makeSelectionRectDraggable(),"function"==typeof i.config.chart.events.selection&&i.config.chart.events.selection(this.ctx,{xaxis:{min:i.config.chart.selection.xaxis.min,max:i.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(i){var s=i.x,a=i.y,n=i.width,r=i.height,o=i.translateX,d=i.translateY,g=this.w,m=this.zoomRect,b=this.selectionRect;if(this.dragged||null!==g.globals.selection){var w={transform:"translate("+(void 0===o?0:o)+", "+(void 0===d?0:d)+")"};g.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),m.attr({x:s,y:a,width:n,height:r,fill:g.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":g.config.chart.zoom.zoomedArea.fill.opacity,stroke:g.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":g.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":g.config.chart.zoom.zoomedArea.stroke.opacity}),ne.setAttrs(m.node,w)),g.globals.selectionEnabled&&(b.attr({x:s,y:a,width:n>0?n:0,height:r>0?r:0,fill:g.config.chart.selection.fill.color,"fill-opacity":g.config.chart.selection.fill.opacity,stroke:g.config.chart.selection.stroke.color,"stroke-width":g.config.chart.selection.stroke.width,"stroke-dasharray":g.config.chart.selection.stroke.dashArray,"stroke-opacity":g.config.chart.selection.stroke.opacity}),ne.setAttrs(b.node,w))}}},{key:"hideSelectionRect",value:function(i){i&&i.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(i){var w,a=i.zoomtype,n=this.w,r=i.context,o=this.gridRect.getBoundingClientRect(),h=r.startX-1,d=r.startY,u=!1,g=!1,m=r.clientX-o.left-h,b=r.clientY-o.top-d;return Math.abs(m+h)>n.globals.gridWidth?m=n.globals.gridWidth-h:r.clientX-o.left<0&&(m=h),h>r.clientX-o.left&&(u=!0,m=Math.abs(m)),d>
1r.clientY-o.top&&(g=!0,b=Math.abs(b)),r.drawSelectionRect(w="x"===a?{x:u?h-m:h,y:0,width:m,height:n.globals.gridHeight}:"y"===a?{x:0,y:g?d-b:d,width:n.globals.gridWidth,height:b}:{x:u?h-m:h,y:g?d-b:d,width:m,height:b}),r.selectionDragging("resizing"),w}},{key:"selectionDragging",value:function(i,s){var a=this,n=this.w,r=this.xyRatios,o=this.selectionRect,h=0;"resizing"===i&&(h=30);var d=function(g){return parseFloat(o.node.getAttribute(g))},u={x:d("x"),y:d("y"),width:d("width"),height:d("height")};n.globals.selection=u,"function"==typeof n.config.chart.events.selection&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var g,m,b,w,C=a.gridRect.getBoundingClientRect(),T=o.node.getBoundingClientRect();n.globals.isRangeBar?(g=n.globals.yAxisScale[0].niceMin+(T.left-C.left)*r.invertedYRatio,m=n.globals.yAxisScale[0].niceMin+(T.right-C.left)*r.invertedYRatio,b=0,w=1):(g=n.globals.xAxisScale.niceMin+(T.left-C.left)*r.xRatio,m=n.globals.xAxisScale.niceMin+(T.right-C.left)*r.xRatio,b=n.globals.yAxisScale[0].niceMin+(C.bottom-T.bottom)*r.yRatio[0],w=n.globals.yAxisScale[0].niceMax-(T.top-C.top)*r.yRatio[0]);var _={xaxis:{min:g,max:m},yaxis:{min:b,max:w}};n.config.chart.events.selection(a.ctx,_),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(a.ctx,_)},h))}},{key:"selectionDrawn",value:function(i){var a=i.zoomtype,n=this.w,r=i.context,o=this.xyRatios,h=this.ctx.toolbar;if(r.startX>r.endX){var d=r.startX;r.startX=r.endX,r.endX=d}if(r.startY>r.endY){var u=r.startY;r.startY=r.endY,r.endY=u}var g=void 0,m=void 0;n.globals.isRangeBar?(g=n.globals.yAxisScale[0].niceMin+r.startX*o.invertedYRatio,m=n.globals.yAxisScale[0].niceMin+r.endX*o.invertedYRatio):(g=n.globals.xAxisScale.niceMin+r.startX*o.xRatio,m=n.globals.xAxisScale.niceMin+r.endX*o.xRatio);var b=[],w=[];if(n.config.yaxis.forEach(function(I,M){var N=n.globals.seriesYAxisMap[M][0];b.push(n.globals.yAxisScale[M].niceMax-o.yRatio[N]*r.startY),w.push(n.globals.yAxisScale[M].niceMax-o.yRatio[N]*r.endY)}),r.dragged&&(r.dragX>10||r.dragY>10)&&g!==m)if(n.globals.zoomEnabled){var C=W.clone(n.globals.initialConfig.yaxis),T=W.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(g=Math.floor(g),m=Math.floor(m),g<1&&(g=1,m=n.globals.dataPoints),m-g<2&&(m=g+1)),"xy"!==a&&"x"!==a||(T={min:g,max:m}),"xy"!==a&&"y"!==a||C.forEach(function(I,M){C[M].min=w[M],C[M].max=b[M]}),h){var _=h.getBeforeZoomRange(T,C);_&&(T=_.xaxis?_.xaxis:T,C=_.yaxis?_.yaxis:C)}var l={xaxis:T};n.config.chart.group||(l.yaxis=C),r.ctx.updateHelpers._updateOptions(l,!1,r.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&h.zoomCallback(T,C)}else if(n.globals.selectionEnabled){var f,k=null;f={min:g,max:m},"xy"!==a&&"y"!==a||(k=W.clone(n.config.yaxis)).forEach(function(I,M){k[M].min=w[M],k[M].max=b[M]}),n.globals.selection=r.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(r.ctx,{xaxis:f,yaxis:k})}}},{key:"panDragging",value:function(i){var a=this.w,n=i.context;if(void 0!==a.globals.lastClientPosition.x){var r=a.globals.lastClientPosition.x-n.clientX,o=a.globals.lastClientPosition.y-n.clientY;Math.abs(r)>Math.abs(o)&&r>0?this.moveDirection="left":Math.abs(r)>Math.abs(o)&&r<0?this.moveDirection="right":Math.abs(o)>Math.abs(r)&&o>0?this.moveDirection="up":Math.abs(o)>Math.abs(r)&&o<0&&(this.moveDirection="down")}a.globals.lastClientPosition={x:n.clientX,y:n.clientY},a.config.xaxis.convertedCatToNumeric||n.panScrolled(a.globals.isRangeBar?a.globals.minY:a.globals.minX,a.globals.isRangeBar?a.globals.maxY:a.globals.maxX)}},{key:"delayedPanScrolled",value:function(){var i=this.w,s=i.globals.minX,a=i.globals.maxX,n=(i.globals.maxX-i.globals.minX)/2;"left"===this.moveDirection?(s=i.globals.minX+n,a=i.globals.maxX+n):"right"===this.moveDirection&&(s=i.globals.minX-n,a=i.globals.maxX-n),s=Math.floor(s),a=Math.floor(a),this.updateScrolledChart({xaxis:{min:s,max:a}},s,a)}},{key:"panScrolled",value:function(i,s){var a=this.w,n=this.xyRatios,r=W.clone(a.globals.initialConfig.yaxis),o=n.xRatio,h=a.globals.minX,d=a.globals.maxX;a.globals.isRangeBar&&(o=n.invertedYRatio,h=a.globals.minY,d=a.globals.maxY),"left"===this.moveDirection?(i=h+a.globals.gridWidth/15*o,s=d+a.globals.gridWidth/15*o):"right"===this.moveDirection&&(i=h-a.globals.gridWidth/15*o,s=d-a.globals.gridWidth/15*o),a.globals.isRangeBar||(i<a.globals.initialMinX||s>a.globals.initialMaxX)&&(i=h,s=d);var u={xaxis:{min:i,max:s}};a.config.chart.group||(u.yaxis=r),this.updateScrolledChart(u,i,s)}},{key:"updateScrolledChart",value:function(i,s,a){var n=this.w;this.ctx.updateHelpers._updateOptions(i,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:s,max:a}})}}]),t}(Zi),St=function(){function L(e){E(this,L),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return O(L,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,s=e.clientX,a=e.clientY,n=this.w,r=e.elGrid.getBoundingClientRect(),o=r.width,h=r.height,d=o/(n.globals.dataPoints-1),u=h/n.globals.dataPoints,g=this.hasBars();!n.globals.comboCharts&&!g||n.config.xaxis.convertedCatToNumeric||(d=o/n.globals.dataPoints);var m=s-r.left-n.globals.barPadForNumericAxis,b=a-r.top;m<0||b<0||m>o||b>h?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):n.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):n.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var w=Math.round(m/d),C=Math.floor(b/u);g&&!n.config.xaxis.convertedCatToNumeric&&(w=Math.ceil(m/d),w-=1);var T=null,_=null,l=n.globals.seriesXvalues.map(function(N){return N.filter(function(Y){return W.isNumber(Y)})}),f=n.globals.seriesYvalues.map(function(N){return N.filter(function(Y){return W.isNumber(Y)})});if(n.globals.isXNumeric){var k=this.ttCtx.getElGrid().getBoundingClientRect(),I=m*(k.width/o);T=(_=this.closestInMultiArray(I,b*(k.height/h),l,f)).index,w=_.j,null!==T&&(w=(_=this.closestInArray(I,l=n.globals.seriesXvalues[T])).index)}return n.globals.capturedSeriesIndex=null===T?-1:T,(!w||w<1)&&(w=0),n.globals.capturedDataPointIndex=n.globals.isBarHorizontal?C:w,{capturedSeries:T,j:n.globals.isBarHorizontal?C:w,hoverX:m,hoverY:b}}},{key:"closestInMultiArray",value:function(e,t,i,s){var n=0,r=null,o=-1;this.w.globals.series.length>1?n=this.getFirstActiveXArray(i):r=0;var d=Math.abs(e-i[n][0]);if(i.forEach(function(m){m.forEach(function(b,w){var C=Math.abs(e-b);C<=d&&(d=C,o=w)})}),-1!==o){var g=Math.abs(t-s[n][o]);
vendor: 4,710 bytes, line 1
1r=n,s.forEach(function(m,b){var w=Math.abs(t-m[o]);w<=g&&(g=w,r=b)})}return{index:r,j:o}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,i=0,s=e.map(function(n,r){return n.length>0?r:-1}),a=0;a<s.length;a++)if(-1!==s[a]&&-1===t.globals.collapsedSeriesIndices.indexOf(a)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)){i=s[a];break}return i}},{key:"closestInArray",value:function(e,t){for(var s=null,a=Math.abs(e-t[0]),n=0;n<t.length;n++){var r=Math.abs(e-t[n]);r<a&&(a=r,s=n)}return{index:s}}},{key:"isXoverlap",value:function(e){var t=[],i=this.w.globals.seriesX.filter(function(a){return void 0!==a[0]});if(i.length>0)for(var s=0;s<i.length-1;s++)void 0!==i[s][e]&&void 0!==i[s+1][e]&&i[s][e]!==i[s+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,i=0;i<t.length-1;i++)if(t[i].data.length!==t[i+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return ke(e).reduce(function(t,i){return t+i.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return this.w.globals.dom.baseEl.querySelectorAll("number"==typeof e?".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *"):".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=ke(e)).sort(function(i,s){var a=Number(i.getAttribute("data:realIndex")),n=Number(s.getAttribute("data:realIndex"));return n<a?1:n>a?-1:0});var t=[];return e.forEach(function(i){t.push(i.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var i=Number(e.getAttribute("cx")),s=Number(e.getAttribute("cy")),a=e.getAttribute("shape");return new ne(this.ctx).getMarkerPath(i,s,a,t)}},{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(e){var t=this.w,i=t.config.markers.hover.size;return void 0===i&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var s=i.allTooltipSeriesGroups,a=0;a<s.length;a++)"enable"===e?(s[a].classList.add("apexcharts-active"),s[a].style.display=t.config.tooltip.items.display):(s[a].classList.remove("apexcharts-active"),s[a].style.display="none")}}]),L}(),Ot=function(){function L(e){E(this,L),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new St(e)}return O(L,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,i=void 0===t||t,s=e.ttItems,a=e.i,n=void 0===a?0:a,r=e.j,o=void 0===r?null:r,u=e.e,g=this.w;void 0!==g.config.tooltip.custom?this.handleCustomTooltip({i:n,j:o,y1:e.y1,y2:e.y2,w:g}):this.toggleActiveInactiveSeries(i,n);var m=this.getValuesToPrint({i:n,j:o});this.printLabels({i:n,j:o,values:m,ttItems:s,shared:i,e:u});var b=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=b.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=b.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,i=this,s=e.i,a=e.j,n=e.values,r=e.ttItems,o=e.shared,h=e.e,d=this.w,u=[],g=function(k){return d.globals.seriesGoals[k]&&d.globals.seriesGoals[k][a]&&Array.isArray(d.globals.seriesGoals[k][a])},m=n.xVal,b=n.zVal,w=n.xAxisTTVal,C="",T=d.globals.colors[s];null!==a&&d.config.plotOptions.bar.distributed&&(T=d.globals.colors[a]);for(var _=function(k,I){var M=i.getFormatters(s);C=i.getSeriesName({fn:M.yLbTitleFormatter,index:s,seriesIndex:s,j:a}),"treemap"===d.config.chart.type&&(C=M.yLbTitleFormatter(String(d.config.series[s].data[a].x),{series:d.globals.series,seriesIndex:s,dataPointIndex:a,w:d}));var N=d.config.tooltip.inverseOrder?I:k;if(d.globals.axisCharts){var Y=function(oe){var K,le,pe,ve;return d.globals.isRangeData?M.yLbFormatter(null===(K=d.globals.seriesRangeStart)||void 0===K||null===(le=K[oe])||void 0===le?void 0:le[a],{series:d.globals.seriesRangeStart,seriesIndex:oe,dataPointIndex:a,w:d})+" - "+M.yLbFormatter(null===(pe=d.globals.seriesRangeEnd)||void 0===pe||null===(ve=pe[oe])||void 0===ve?void 0:ve[a],{series:d.globals.seriesRangeEnd,seriesIndex:oe,dataPointIndex:a,w:d}):M.yLbFormatter(d.globals.series[oe][a],{series:d.globals.series,seriesIndex:oe,dataPointIndex:a,w:d})};
vendor: 10,547 bytes, line 1
1if(o)M=i.getFormatters(N),C=i.getSeriesName({fn:M.yLbTitleFormatter,index:N,seriesIndex:s,j:a}),T=d.globals.colors[N],t=Y(N),g(N)&&(u=d.globals.seriesGoals[N][a].map(function(oe){return{attrs:oe,val:M.yLbFormatter(oe.value,{seriesIndex:N,dataPointIndex:a,w:d})}}));else{var F,te=null==h||null===(F=h.target)||void 0===F?void 0:F.getAttribute("fill");te&&(T=-1!==te.indexOf("url")?document.querySelector(te.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):te),t=Y(s),g(s)&&Array.isArray(d.globals.seriesGoals[s][a])&&(u=d.globals.seriesGoals[s][a].map(function(oe){return{attrs:oe,val:M.yLbFormatter(oe.value,{seriesIndex:s,dataPointIndex:a,w:d})}}))}}null===a&&(t=M.yLbFormatter(d.globals.series[s],Z(Z({},d),{},{seriesIndex:s,dataPointIndex:s}))),i.DOMHandling({i:s,t:N,j:a,ttItems:r,values:{val:t,goalVals:u,xVal:m,xAxisTTVal:w,zVal:b},seriesName:C,shared:o,pColor:T})},l=0,f=d.globals.series.length-1;l<d.globals.series.length;l++,f--)_(l,f)}},{key:"getFormatters",value:function(e){var t,i=this.w,s=i.globals.yLabelFormatters[e];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(s=i.globals.ttVal[e]&&i.globals.ttVal[e].formatter,t=i.globals.ttVal[e]&&i.globals.ttVal[e].title&&i.globals.ttVal[e].title.formatter):(s=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(t=i.globals.ttVal.title.formatter)):t=i.config.tooltip.y.title.formatter,"function"!=typeof s&&(s=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(a){return a}),"function"!=typeof t&&(t=function(a){return a}),{yLbFormatter:s,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var s=e.seriesIndex,a=e.j,n=this.w;return(0,e.fn)(String(n.globals.seriesNames[e.index]),{series:n.globals.series,seriesIndex:s,dataPointIndex:a,w:n})}},{key:"DOMHandling",value:function(e){var t=e.t,i=e.j,s=e.ttItems,a=e.values,n=e.seriesName,r=e.shared,o=e.pColor,h=this.w,d=this.ttCtx,u=a.val,g=a.goalVals,m=a.xVal,b=a.xAxisTTVal,w=a.zVal,C=null;C=s[t].children,h.config.tooltip.fillSeriesColor&&(s[t].style.backgroundColor=o,C[0].style.display="none"),d.showTooltipTitle&&(null===d.tooltipTitle&&(d.tooltipTitle=h.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),d.tooltipTitle.innerHTML=m),d.isXAxisTooltipEnabled&&(d.xaxisTooltipText.innerHTML=""!==b?b:m);var T=s[t].querySelector(".apexcharts-tooltip-text-y-label");T&&(T.innerHTML=n||"");var _=s[t].querySelector(".apexcharts-tooltip-text-y-value");_&&(_.innerHTML=void 0!==u?u:""),C[0]&&C[0].classList.contains("apexcharts-tooltip-marker")&&(h.config.tooltip.marker.fillColors&&Array.isArray(h.config.tooltip.marker.fillColors)&&(o=h.config.tooltip.marker.fillColors[t]),C[0].style.backgroundColor=o),h.config.tooltip.marker.show||(C[0].style.display="none");var l=s[t].querySelector(".apexcharts-tooltip-text-goals-label"),f=s[t].querySelector(".apexcharts-tooltip-text-goals-value");if(g.length&&h.globals.seriesGoals[t]){var k=function(){var N="<div >",Y="<div>";g.forEach(function(F,te){N+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(F.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(F.attrs.name,"</div>"),Y+="<div>".concat(F.val,"</div>")}),l.innerHTML=N+"</div>",f.innerHTML=Y+"</div>"};r?h.globals.seriesGoals[t][i]&&Array.isArray(h.globals.seriesGoals[t][i])?k():(l.innerHTML="",f.innerHTML=""):k()}else l.innerHTML="",f.innerHTML="";if(null!==w&&(s[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title,s[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==w?w:""),r&&C[0]){if(h.config.tooltip.hideEmptySeries){var I=s[t].querySelector(".apexcharts-tooltip-marker"),M=s[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(u)?(I.style.display="none",M.style.display="none"):(I.style.display="block",M.style.display="block")}C[0].parentNode.style.display=null==u||h.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||h.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(d.tConfig.enabledOnSeries)&&-1===d.tConfig.enabledOnSeries.indexOf(t)?"none":h.config.tooltip.items.display}else Array.isArray(d.tConfig.enabledOnSeries)&&-1===d.tConfig.enabledOnSeries.indexOf(t)&&(C[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var i=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var s=i.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));s&&(s.classList.add("apexcharts-active"),s.style.display=i.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,s=this.w,a=this.ctx.series.filteredSeriesX(),n="",r="",o=null,h=null,d={series:s.globals.series,seriesIndex:t,dataPointIndex:i,w:s},u=s.globals.ttZFormatter;null===i?h=s.globals.series[t]:s.globals.isXNumeric&&"treemap"!==s.config.chart.type?(n=a[t][i],0===a[t].length&&(n=a[this.tooltipUtil.getFirstActiveXArray(a)][i])):n=void 0!==s.globals.labels[i]?s.globals.labels[i]:"";var g=n;return n=s.globals.isXNumeric&&"datetime"===s.config.xaxis.type?new Ue(this.ctx).xLabelFormat(s.globals.ttKeyFormatter,g,g,{i:void 0,dateFormatter:new ct(this.ctx).formatDate,w:this.w}):s.globals.isBarHorizontal?s.globals.yLabelFormatters[0](g,d):s.globals.xLabelFormatter(g,d),void 0!==s.config.tooltip.x.formatter&&(n=s.globals.ttKeyFormatter(g,d)),s.globals.seriesZ.length>0&&s.globals.seriesZ[t].length>0&&(o=u(s.globals.seriesZ[t][i],s)),r="function"==typeof s.config.xaxis.tooltip.formatter?s.globals.xaxisTooltipFormatter(g,d):n,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,s=e.y1,a=e.y2,n=e.w,r=this.ttCtx.getElTooltip(),o=n.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]),r.innerHTML=o({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:i,y1:s,y2:a,w:n})}}]),L}(),$t=function(){function L(e){E(this,L),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return O(L,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,s=this.w,a=i.getElXCrosshairs(),n=e-i.xcrosshairsWidth/2,r=s.globals.labels.slice().length;if(null!==t&&(n=s.globals.gridWidth/r*t),null===a||s.globals.isBarHorizontal||(a.setAttribute("x",n),a.setAttribute("x1",n),a.setAttribute("x2",n),a.setAttribute("y2",s.globals.gridHeight),a.classList.add("apexcharts-active")),n<0&&(n=0),n>s.globals.gridWidth&&(n=s.globals.gridWidth),i.isXAxisTooltipEnabled){var o=n;"tickWidth"!==s.config.xaxis.crosshairs.width&&"barWidth"!==s.config.xaxis.crosshairs.width||(o=n+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&ne.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&ne.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var a,s=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;e-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(e)||(e+=t.globals.translateX,a=new ne(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=s+"px")}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var s=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),a=t.globals.translateY+s,n=i.yaxisTTEls[e].getBoundingClientRect().height,r=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(r-=26),a-=n/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=a+"px",i.yaxisTTEls[e].style.left=r+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,a=this.ttCtx,n=a.getElTooltip(),r=a.tooltipRect,o=null!==i?parseFloat(i):1,h=parseFloat(e)+o+5,d=parseFloat(t)+o/2;if(h>s.globals.gridWidth/2&&(h=h-r.ttWidth-o-10),h>s.globals.gridWidth-r.ttWidth-10&&(h=s.globals.gridWidth-r.ttWidth),h<-20&&(h=-20),s.config.tooltip.followCursor){var u=a.getElGrid().getBoundingClientRect();(h=a.e.clientX-u.left)>s.globals.gridWidth/2&&(h-=a.tooltipRect.ttWidth),(d=a.e.clientY+s.globals.translateY-u.top)>s.globals.gridHeight/2&&(d-=a.tooltipRect.ttHeight)}else s.globals.isBarHorizontal||r.ttHeight/2+d>s.globals.gridHeight&&(d=s.globals.gridHeight-r.ttHeight+s.globals.translateY);isNaN(h)||(n.style.left=(h+=s.globals.translateX)+"px",n.style.top=d+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,s=this.ttCtx;if(i.globals.markers.size[e]>0)for(var a=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n<a.length;n++)parseInt(a[n].getAttribute("rel"),10)===t&&(s.marker.resetPointsSize(),s.marker.enlargeCurrentPoint(t,a[n]));else s.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var i,s,a,n,r=this.w,o=this.ttCtx,h=new ne(this.ctx),d=r.globals.pointsArray,u=o.tooltipUtil.getHoverMarkerSize(t),g=r.config.series[t].type;if(!g||"column"!==g&&"candlestick"!==g&&"boxPlot"!==g){a=null===(i=d[t][e])||void 0===i?void 0:i[0],n=(null===(s=d[t][e])||void 0===s?void 0:s[1])||0;var m=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(m&&n<r.globals.gridHeight&&n>0){var b=m.getAttribute("shape"),w=h.getMarkerPath(a,n,b,1.5*u);m.setAttribute("d",w)}this.moveXCrosshairs(a),o.fixedTooltip||this.moveTooltip(a,n,u)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,s=i.w,a=0,n=0,r=s.globals.pointsArray,o=new rt(this.ctx),h=new ne(this.ctx);t=o.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var d=i.tooltipUtil.getHoverMarkerSize(t);r[t]&&(a=r[t][e][0],n=r[t][e][1]);var u=i.tooltipUtil.getAllMarkers();if(null!==u)for(var g=0;g<s.globals.series.length;g++){var m=r[g];if(s.globals.comboCharts&&void 0===m&&u.splice(g,0,null),m&&m.length){var b=r[g][e][1];u[g].setAttribute("cx",a);
vendor: 12,649 bytes, line 1
1var C=u[g].getAttribute("shape");if("rangeArea"!==s.config.chart.type||s.globals.comboCharts||(b-=Math.abs(b-r[g][e+s.globals.series[g].length][1])/2),null!==b&&!isNaN(b)&&b<s.globals.gridHeight+d&&b+d>0){var _=h.getMarkerPath(a,b,C,d);u[g].setAttribute("d",_)}else u[g].setAttribute("d","")}}this.moveXCrosshairs(a),i.fixedTooltip||this.moveTooltip(a,n||s.globals.gridHeight,d)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var i=this.w,s=this.ttCtx,a=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length,n=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;i.globals.isBarHorizontal&&(n=new rt(this.ctx).getActiveConfigSeriesIndex("desc")+1);var r=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(n,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(n,"'] path[j='").concat(e,"']"));r||"number"!=typeof t||(r=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var o=r?parseFloat(r.getAttribute("cx")):0,h=r?parseFloat(r.getAttribute("cy")):0,d=r?parseFloat(r.getAttribute("barWidth")):0,u=s.getElGrid().getBoundingClientRect(),g=r&&(r.classList.contains("apexcharts-candlestick-area")||r.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(r&&!g&&(o-=a%2!=0?d/2:0),r&&g&&i.globals.comboCharts&&(o-=d/2)):i.globals.isBarHorizontal||(o=s.xAxisTicksPositions[e-1]+s.dataPointsDividedWidth/2,isNaN(o)&&(o=s.xAxisTicksPositions[e]-s.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?h-=s.tooltipRect.ttHeight:i.config.tooltip.followCursor?h=s.e.clientY-u.top-s.tooltipRect.ttHeight/2:h+s.tooltipRect.ttHeight+15>i.globals.gridHeight&&(h=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(o),s.fixedTooltip||this.moveTooltip(o,h||i.globals.gridHeight)}}]),L}(),Os=function(){function L(e){E(this,L),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new $t(e)}return O(L,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new ne(this.ctx),i=new Wt(this.ctx),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");s=ke(s),e.config.chart.stacked&&s.sort(function(u,g){return parseFloat(u.getAttribute("data:realIndex"))-parseFloat(g.getAttribute("data:realIndex"))});for(var a=0;a<s.length;a++){var n=s[a].querySelector(".apexcharts-series-markers-wrap");if(null!==n){var r=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(o+=" no-pointer-events");var h=i.getMarkerConfig({cssClass:o,seriesIndex:Number(n.getAttribute("data:realIndex"))});(r=t.drawMarker(0,0,h)).node.setAttribute("default-marker-size",0);var d=document.createElementNS(e.globals.SVGNS,"g");d.classList.add("apexcharts-series-markers"),d.appendChild(r.node),n.appendChild(d)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w;"bubble"!==a.config.chart.type&&this.newPointSize(e,t);var n=t.getAttribute("cx"),r=t.getAttribute("cy");if(null!==i&&null!==s&&(n=i,r=s),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if("radar"===a.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();n=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(n,r,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,s=this.ttCtx,a=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=t.config.markers.hover.size,o=0;o<n.length;o++){var h=n[o].getAttribute("rel"),d=n[o].getAttribute("index");if(void 0===r&&(r=t.globals.markers.size[d]+t.config.markers.hover.sizeOffset),a===parseInt(h,10)){i.newPointSize(a,n[o]);var u=n[o].getAttribute("cx"),g=n[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(u),s.fixedTooltip||i.tooltipPosition.moveTooltip(u,g,r)}else i.oldPointSize(n[o])}}},{key:"newPointSize",value:function(e,t){var i=this.w,s=i.config.markers.hover.size,a=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==a.getAttribute("default-marker-size")){var n=parseInt(a.getAttribute("index"),10);void 0===s&&(s=i.globals.markers.size[n]+i.config.markers.hover.sizeOffset),s<0&&(s=0);var r=this.ttCtx.tooltipUtil.getPathFromPoint(t,s);t.setAttribute("d",r)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),i=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",i)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var i=parseFloat(e[t].getAttribute("default-marker-size"));if(W.isNumber(i)&&i>=0){var s=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],i);e[t].setAttribute("d",s)}else e[t].setAttribute("d","M0,0")}}}]),L}(),Mi=function(){function L(e){E(this,L),this.w=e.w;var t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&"rangeBar"===t.config.chart.type&&t.config.plotOptions.bar.rangeBarGroupRows}return O(L,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,s=e.x,a=e.y,r=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(e.type,"-rect"))){var h=this.getAttr(t,"i"),d=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),g=this.getAttr(t,"cy"),m=this.getAttr(t,"width"),b=this.getAttr(t,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:h,j:d,shared:!1,e:t}),o.globals.capturedSeriesIndex=h,o.globals.capturedDataPointIndex=d,s=u+r.tooltipRect.ttWidth/2+m,a=g+r.tooltipRect.ttHeight/2-b/2,r.tooltipPosition.moveXCrosshairs(u+m/2),s>o.globals.gridWidth/2&&(s=u-r.tooltipRect.ttWidth/2+m),r.w.config.tooltip.followCursor){var w=o.globals.dom.elWrap.getBoundingClientRect();s=o.globals.clientX-w.left-(s>o.globals.gridWidth/2?r.tooltipRect.ttWidth:0),a=o.globals.clientY-w.top-(a>o.globals.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:s,y:a}}},{key:"handleMarkerTooltip",value:function(e){var t,i,s=e.e,a=e.opt,n=e.x,r=e.y,o=this.w,h=this.ttCtx;if(s.target.classList.contains("apexcharts-marker")){var d=parseInt(a.paths.getAttribute("cx"),10),u=parseInt(a.paths.getAttribute("cy"),10),g=parseFloat(a.paths.getAttribute("val"));if(i=parseInt(a.paths.getAttribute("rel"),10),t=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,h.intersect){var m=W.findAncestor(a.paths,"apexcharts-series");m&&(t=parseInt(m.getAttribute("data:realIndex"),10))}if(h.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:t,j:i,shared:!h.showOnIntersect&&o.config.tooltip.shared,e:s}),"mouseup"===s.type&&h.markerClick(s,t,i),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=i,n=d,r=u+o.globals.translateY-1.4*h.tooltipRect.ttHeight,h.w.config.tooltip.followCursor){var b=h.getElGrid().getBoundingClientRect();r=h.e.clientY+o.globals.translateY-b.top}g<0&&(r=u),h.marker.enlargeCurrentPoint(i,a.paths,n,r)}return{x:n,y:r}}},{key:"handleBarTooltip",value:function(e){var t,i,s=e.e,a=e.opt,n=this.w,r=this.ttCtx,o=r.getElTooltip(),h=0,d=0,u=0,g=this.getBarTooltipXY({e:s,opt:a}),m=g.j;if(n.globals.capturedSeriesIndex=t=g.i,n.globals.capturedDataPointIndex=m,n.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!n.config.tooltip.shared?(d=g.x,u=g.y,i=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,h=d):n.globals.comboCharts||n.config.tooltip.shared||(h/=2),isNaN(u)&&(u=n.globals.svgHeight-r.tooltipRect.ttHeight),parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),d+r.tooltipRect.ttWidth>n.globals.gridWidth?d-=r.tooltipRect.ttWidth:d<0&&(d=0),r.w.config.tooltip.followCursor){var w=r.getElGrid().getBoundingClientRect();u=r.e.clientY-w.top}null===r.tooltip&&(r.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||r.tooltipPosition.moveXCrosshairs(n.globals.comboBarCount>0?h+i/2:h),!r.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(u=u+n.globals.translateY-r.tooltipRect.ttHeight/2,o.style.left=d+n.globals.translateX+"px",o.style.top=u+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,i=e.e,s=e.opt,a=this.w,n=null,r=this.ttCtx,o=0,h=0,d=0,u=0,g=0,m=i.target.classList;if(m.contains("apexcharts-bar-area")||m.contains("apexcharts-candlestick-area")||m.contains("apexcharts-boxPlot-area")||m.contains("apexcharts-rangebar-area")){var b=i.target,w=b.getBoundingClientRect(),C=s.elGrid.getBoundingClientRect(),T=w.height;g=w.height;var _=w.width,l=parseInt(b.getAttribute("cx"),10),f=parseInt(b.getAttribute("cy"),10);u=parseFloat(b.getAttribute("barWidth"));var k="touchmove"===i.type?i.touches[0].clientX:i.clientX;n=parseInt(b.getAttribute("j"),10),o=parseInt(b.parentNode.getAttribute("rel"),10)-1;var I=b.getAttribute("data-range-y1"),M=b.getAttribute("data-range-y2");a.globals.comboCharts&&(o=parseInt(b.parentNode.getAttribute("data:realIndex"),10));var N=function(F){return a.globals.isXNumeric?l-_/2:t.isVerticalGroupedRangeBar?l+_/2:l-r.dataPointsDividedWidth+_/2},Y=function(){return f-r.dataPointsDividedHeight+T/2-r.tooltipRect.ttHeight/2};r.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:o,j:n,y1:I?parseInt(I,10):null,y2:M?parseInt(M,10):null,shared:!r.showOnIntersect&&a.config.tooltip.shared,e:i}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(h=k-C.left+15,d=Y()):(h=N(),d=i.clientY-C.top-r.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((h=l)<r.xyRatios.baseLineInvertedY&&(h=l-r.tooltipRect.ttWidth),d=Y()):(h=N(),d=f)}return{x:h,y:d,barHeight:g,barWidth:u,i:o,j:n}}}]),L}(),ws=function(){function L(e){E(this,L),this.w=e.w,this.ttCtx=e}return O(L,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,i="bottom"===e.config.xaxis.position;t.xaxisOffY=i?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var s=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,i=0;i<e.config.yaxis.length;i++){var s=e.config.yaxis[i].opposite||e.config.yaxis[i].crosshairs.opposite;t.yaxisOffX=s?e.globals.gridWidth+1:1;var a="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,s?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),n=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.yaxisTooltip),0===i&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=document.createElement("div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,i=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var s=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s&&"barWidth"===e.config.xaxis.crosshairs.width){var a=parseFloat(s.getAttribute("barWidth"));t.xcrosshairsWidth=a}
vendor: 4,686 bytes, line 1
1else"tickWidth"===e.config.xaxis.crosshairs.width&&(t.xcrosshairsWidth=e.globals.gridWidth/e.globals.labels.length)}else if("tickWidth"===e.config.xaxis.crosshairs.width)t.xcrosshairsWidth=e.globals.gridWidth/e.globals.labels.length;else if("barWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var h=parseFloat(o.getAttribute("barWidth"));t.xcrosshairsWidth=h}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==i&&t.xcrosshairsWidth>0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var s=this.ttCtx,a=this.w,n=a.globals,r=n.seriesYAxisMap[e];if(s.yaxisTooltips[e]&&r.length>0){var o=n.yLabelFormatters[e],h=s.getElGrid().getBoundingClientRect(),d=r[0],u=0;i.yRatio.length>1&&(u=d);var g=(t-h.top)*i.yRatio[u],m=n.maxYArr[d]-n.minYArr[d],b=n.minYArr[d]+(m-g);a.config.yaxis[e].reversed&&(b=n.maxYArr[d]-(m-g)),s.tooltipPosition.moveYCrosshairs(t-h.top),s.yaxisTooltipText[e].innerHTML=o(b),s.tooltipPosition.moveYAxisTooltip(e)}}}]),L}(),os=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new St(this),this.tooltipLabels=new Ot(this),this.tooltipPosition=new $t(this),this.marker=new Os(this),this.intersect=new Mi(this),this.axesTooltip=new ws(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,this.lastHoverTime=Date.now()}return O(L,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{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(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(n,r){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var s=new xt(this.ctx);this.xAxisTicksPositions=s.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||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,i.appendChild(this.tooltipTitle));var a=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,s=[],a=this.getElTooltip(),n=function(o){var h=document.createElement("div");h.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(o)),h.style.order=i.config.tooltip.inverseOrder?e-o:o+1;var d=document.createElement("span");d.classList.add("apexcharts-tooltip-marker"),d.style.backgroundColor=i.globals.colors[o],h.appendChild(d);var u=document.createElement("div");u.classList.add("apexcharts-tooltip-text"),u.style.fontFamily=t.tConfig.style.fontFamily||i.c
vendor: 9,978 bytes, line 1
1onfig.chart.fontFamily,u.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(g){var m=document.createElement("div");m.classList.add("apexcharts-tooltip-".concat(g,"-group"));var b=document.createElement("span");b.classList.add("apexcharts-tooltip-text-".concat(g,"-label")),m.appendChild(b);var w=document.createElement("span");w.classList.add("apexcharts-tooltip-text-".concat(g,"-value")),m.appendChild(w),u.appendChild(m)}),h.appendChild(u),a.appendChild(h),s.push(h)},r=0;r<e;r++)n(r);return s}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,i=this.getElTooltip(),s=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),a="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,n=e.globals.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());var o,h=[],d=[],u={hoverArea:n,elGrid:r,tooltipEl:i,tooltipY:h,tooltipX:d,ttItems:this.ttItems};if(e.globals.axisCharts&&(a?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):s?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var g=0;g<o.length;g++)h.push(o[g].getAttribute("cy")),d.push(o[g].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||s&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],u);else if(s&&!e.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var m=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(m,u)}if(this.showOnIntersect){var b=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");b.length>0&&this.addPathsEventListeners(b,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),s=i.width+10,a=i.height+10,n=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(n=n+e.globals.svgWidth-s+10),o.indexOf("bottom")>-1&&(r=r+e.globals.svgHeight-a-10),t.style.left=n+"px",t.style.top=r+"px",{x:n,y:r,ttWidth:s,ttHeight:a}}},{key:"addDatapointEventsListeners",value:function(e){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,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,s=function(n){var r={paths:e[n],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(o){return e[n].addEventListener(o,i.onSeriesHover.bind(i,r),{capture:!1,passive:!0})})},a=0;a<e.length;a++)s(a)}},{key:"onSeriesHover",value:function(e,t){var i=this,s=Date.now()-this.lastHoverTime;s>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(e,t)},100-s))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var s=[],a=this.w;a.config.chart.group&&(s=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||0===a.globals.dataPoints)||(s.length?s.forEach(function(n){var r=i.getElTooltip(n);n.w.globals.minX===i.w.globals.minX&&n.w.globals.maxX===i.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:{paths:e.paths,tooltipEl:r,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems},e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,s=e.opt,a=e.e,n=t.w,r=this.getElTooltip();r&&(i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=a,i.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!i.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new rt(t).toggleSeriesOnHover(a,a.target.parentNode),i.fixedTooltip&&i.drawFixedTooltipRect(),n.globals.axisCharts?i.axisChartsTooltips({e:a,opt:s,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:a,opt:s,tooltipRect:i.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,i,s=e.e,a=e.opt,n=this.w,r=a.elGrid.getBoundingClientRect(),o="touchmove"===s.type?s.touches[0].clientX:s.clientX,h="touchmove"===s.type?s.touches[0].clientY:s.clientY;if(this.clientY=h,this.clientX=o,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,h<r.top||h>r.top+r.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var d=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(d)<0)return void this.handleMouseOut(a)}var u=this.getElTooltip(),g=this.getElXCrosshairs(),m=n.globals.xyCharts||"bar"===n.config.chart.type&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===s.type||"touchmove"===s.type||"mouseup"===s.type){if(n.globals.collapsedSeries.length+n.globals.ancillaryCollapsedSeries.length===n.globals.series.length)return;null!==g&&g.classList.add("apexcharts-active");var b=this.yaxisTooltips.filter(function(T){return!0===T});if(null!==this.ycrosshairs&&b.length&&this.ycrosshairs.classList.add("apexcharts-active"),m&&!this.showOnIntersect)this.handleStickyTooltip(s,o,h,a);else if("heatmap"===n.config.chart.type||"treemap"===n.config.chart.type){var w=this.intersect.handleHeatTreeTooltip({e:s,opt:a,x:t,y:i,type:n.config.chart.type});i=w.y,u.style.left=(t=w.x)+"px",u.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:s,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:s,opt:a,x:t,y:i});if(this.yaxisTooltips.length)for(var C=0;C<n.config.yaxis.length;C++)this.axesTooltip.drawYaxisTooltipText(C,h,this.xyRatios);n.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),a.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==s.type&&"touchend"!==s.type||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,i=e.opt,s=e.tooltipRect,a=this.w,n=i.paths.getAttribute("rel"),r=this.getElTooltip(),o=a.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),r.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(n,10)-1,shared:!1});var d=a.globals.clientY-o.top-s.ttHeight-10;if(r.style.left=a.globals.clientX-o.left-s.ttWidth/2+"px",r.style.top=d+"px",a.config.legend.tooltipHoverFormatter){var u=n-1,g=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:a});this.legendLabels[u].innerHTML=g}}else"mouseout"!==t.type&&"touchend"!==t.type||(r.classList.remove("apexcharts-active"),a.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(m){var b=m.getAttribute("data:default-text");m.innerHTML=decodeURIComponent(b)}))}},{key:"handleStickyTooltip",value:function(e,t,i,s){var a=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:s.hoverArea,elGrid:s.elGrid,clientX:t,clientY:i}),r=n.j,o=n.capturedSeries;a.globals.collapsedSeriesIndices.includes(o)&&(o=null);var h=s.elGrid.getBoundingClientRect();if(n.hoverX<0||n.hoverX>h.width)this.handleMouseOut(s);else if(null!==o)this.handleStickyCapturedSeries(e,o,s,r);else if(this.tooltipUtil.isXoverlap(r)||a.globals.isBarHorizontal){var d=a.globals.series.findIndex(function(u,g){return!a.globals.collapsedSeriesIndices.includes(g)});this.create(e,this,d,r,s.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,i,s){var a=this.w;if(this.tConfig.shared||null!==a.globals.series[t][s]){if(void 0!==a.globals.series[t][s])this.tConfig.shared&&this.tooltipUtil.isXoverlap(s)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,s,i.ttItems):this.create(e,this,t,s,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(s)){var n=a.globals.series.findIndex(function(r,o){return!a.globals.collapsedSeriesIndices.includes(o)});this.create(e,this,n,s,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new ne(this.ctx),i=e.globals.dom.Paper.select(".apexcharts-bar-area"),s=0;s<i.length;s++)t.pathMouseLeave(i[s])}},{key:"handleMouseOut",value:function(e){var t=this.w,i=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var s=0;s<this.yaxisTTEls.length;s++)this.yaxisTTEls[s].classList.remove("apexcharts-active")}
1t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(a){var n=a.getAttribute("data:default-text");a.innerHTML=decodeURIComponent(n)})}},{key:"markerClick",value:function(e,t,i){var s=this.w;"function"==typeof s.config.chart.events.markerClick&&s.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:s}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:s}])}},{key:"create",value:function(e,t,i,s,a){var n,r,o,h,d,u,g,m,b,w,C,T,_,l,f,k,I=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,M=this.w,N=t;"mouseup"===e.type&&this.markerClick(e,i,s),null===I&&(I=this.tConfig.shared);var Y=this.tooltipUtil.hasMarkers(i),F=this.tooltipUtil.getElBars();if(M.config.legend.tooltipHoverFormatter){var te=M.config.legend.tooltipHoverFormatter,oe=Array.from(this.legendLabels);oe.forEach(function(Ke){var tt=Ke.getAttribute("data:default-text");Ke.innerHTML=decodeURIComponent(tt)});for(var K=0;K<oe.length;K++){var le=oe[K],pe=parseInt(le.getAttribute("i"),10),ve=decodeURIComponent(le.getAttribute("data:default-text")),Ae=te(ve,{seriesIndex:I?pe:i,dataPointIndex:s,w:M});if(I)le.innerHTML=M.globals.collapsedSeriesIndices.indexOf(pe)<0?Ae:ve;else if(le.innerHTML=pe===i?Ae:ve,i===pe)break}}var Te=Z(Z({ttItems:a,i,j:s},void 0!==(null===(n=M.globals.seriesRange)||void 0===n||null===(r=n[i])||void 0===r||null===(o=r[s])||void 0===o||null===(h=o.y[0])||void 0===h?void 0:h.y1)&&{y1:null===(d=M.globals.seriesRange)||void 0===d||null===(u=d[i])||void 0===u||null===(g=u[s])||void 0===g||null===(m=g.y[0])||void 0===m?void 0:m.y1}),void 0!==(null===(b=M.globals.seriesRange)||void 0===b||null===(w=b[i])||void 0===w||null===(C=w[s])||void 0===C||null===(T=C.y[0])||void 0===T?void 0:T.y2)&&{y2:null===(_=M.globals.seriesRange)||void 0===_||null===(l=_[i])||void 0===l||null===(f=l[s])||void 0===f||null===(k=f.y[0])||void 0===k?void 0:k.y2});if(I){if(N.tooltipLabels.drawSeriesTexts(Z(Z({},Te),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),Y)M.globals.markers.largestSize>0?N.marker.enlargePoints(s):N.tooltipPosition.moveDynamicPointsOnHover(s);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(F),this.barSeriesHeight>0)){var De=new ne(this.ctx),ze=M.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(s,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(s,i);for(var Xe=0;Xe<ze.length;Xe++)De.pathMouseEnter(ze[Xe])}}else N.tooltipLabels.drawSeriesTexts(Z({shared:!1},Te)),this.tooltipUtil.hasBars()&&N.tooltipPosition.moveStickyTooltipOverBars(s,i),Y&&N.tooltipPosition.moveMarkers(i,s)}}]),L}(),_i=function(){function L(e){E(this,L),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return O(L,[{key:"handleBarDataLabels",value:function(e){var t,i,s=e.x,a=e.y,n=e.y1,r=e.y2,o=e.i,h=e.j,d=e.realIndex,u=e.columnGroupIndex,g=e.series,m=e.barHeight,b=e.barWidth,w=e.barXPosition,C=e.barYPosition,T=e.visibleSeries,_=e.renderedPath,l=this.w,f=new ne(this.barCtx.ctx),k=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[d]:this.barCtx.strokeWidth;l.globals.isXNumeric&&!l.globals.isBarHorizontal?(t=s+parseFloat(b*(T+1)),i=a+parseFloat(m*(T+1))-k):(t=s+parseFloat(b*T),i=a+parseFloat(m*T));var I,F,M=null,N=s,Y=a,te=l.config.dataLabels,oe=this.barCtx.barOptions.dataLabels,K=this.barCtx.barOptions.dataLabels.total;void 0!==C&&this.barCtx.isRangeBar&&(i=C,Y=C),void 0!==w&&this.barCtx.isVerticalGroupedRangeBar&&(t=w,N=w);var le=te.offsetX,pe=te.offsetY,ve={width:0,height:0};l.config.dataLabels.enabled&&(ve=f.getTextRects(l.globals.yLabelFormatters[0](l.globals.series[o][h]),parseFloat(te.style.fontSize)));var Te={x:s,y:a,i:o,j:h,realIndex:d,columnGroupIndex:u,renderedPath:_,bcx:t,bcy:i,barHeight:m,barWidth:b,textRects:ve,strokeWidth:k,dataLabelsX:N,dataLabelsY:Y,dataLabelsConfig:te,barDataLabelsConfig:oe,barTotalDataLabelsConfig:K,offX:le,offY:pe};return F=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(Te):this.calculateColumnsDataLabelsPosition(Te),_.attr({cy:F.bcy,cx:F.bcx,j:h,val:l.globals.series[o][h],barHeight:m,barWidth:b}),I=this.drawCalculatedDataLabels({x:F.dataLabelsX,y:F.dataLabelsY,val:this.barCtx.isRangeBar?[n,r]:"100%"===l.config.chart.stackType?g[o][h]:l.globals.series[o][h],i:d,j:h,barWidth:b,barHeight:m,textRects:ve,dataLabelsConfig:te}),l.config.chart.stacked&&K.enabled&&(M=this.drawTotalDataLabels({x:F.totalDataLabelsX,y:F.totalDataLabelsY,barWidth:b,barHeight:m,realIndex:d,textAnchor:F.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:d,j:h}),dataLabelsConfig:te,barTotalDataLabelsConfig:K})),{dataLabels:I,totalDataLabels:M}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,i=e.j,s=this.w,a=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(a=this.totalFormatter(a,Z(Z({},s),{},{seriesIndex:t,dataPointIndex:i,w:s}))),a}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var n,r,t=this.w,i=e.i,s=e.j,a=e.realIndex,o=e.y,h=e.bcx,d=e.barWidth,u=e.barHeight,g=e.textRects,m=e.dataLabelsX,b=e.dataLabelsY,w=e.dataLabelsConfig,C=e.barDataLabelsConfig,T=e.barTotalDataLabelsConfig,_=e.strokeWidth,l=e.offX,f=e.offY,k=h;u=Math.abs(u);var I="vertical"===t.config.plotOptions.bar.dataLabels.orientation,M=this.barCtx.barHelpers.getZeroValueEncounters({i,j:s}).zeroEncounters;h-=_/2;var N=t.globals.gridWidth/t.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?m+=d/2:(m=t.globals.isXNumeric?h-d/2+l:h-N+d/2+l,M>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(m-=d*M)),I&&(m=m+g.height/2-_/2-2);var Y=t.globals.series[i][s]<0,F=o;switch(this.barCtx.isReversed&&(F=o+(Y?u:-u)),C.position){case"center":b=I?Y?F-u/2+f:F+u/2-f:Y?F-u/2+g.height/2+f:F+u/2+g.height/2-f;break;case"bottom":b=I?Y?F-u+f:F+u-f:Y?F-u+g.height+_+f:F+u-g.height/2+_-f;break;case"top":b=I?Y?F+f:F-f:Y?F-g.height/2-f:F+g.height+f}if(this.barCtx.lastActiveBarSerieIndex===a&&T.enabled){var te=new ne(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:s}),w.fontSize);n=Y?F-te.height/2-f-T.offsetY+18:F+te.height+f+T.offsetY-18,r=k+(t.globals.isXNumeric?-d*t.globals.barGroups.length/2:t.globals.barGroups.length*d/2-(t.globals.barGroups.length-1)*d-N)+T.offsetX}return t.config.chart.stacked||(b<0?b=0+_:b+g.height/3>t.globals.gridHeight&&(b=t.globals.gridHeight-_)),{bcx:h,bcy:o,dataLabelsX:m,dataLabelsY:b,totalDataLabelsX:r,totalDataLabelsY:n,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,s=e.i,a=e.j,n=e.realIndex,r=e.bcy,o=e.barHeight,h=e.barWidth,d=e.textRects,u=e.dataLabelsX,g=e.strokeWidth,m=e.dataLabelsConfig,b=e.barDataLabelsConfig,w=e.barTotalDataLabelsConfig,C=e.offX,T=e.offY,_=t.globals.gridHeight/t.globals.dataPoints;h=Math.abs(h);var l,f,k=r-(this.barCtx.isRangeBar?0:_)+o/2+d.height/2+T-3,I="start",M=t.globals.series[s][a]<0,N=i;switch(this.barCtx.isReversed&&(N=i+(M?-h:h),I=M?"start":"end"),b.position){case"center":u=M?N+h/2-C:Math.max(d.width/2,N-h/2)+C;break;
vendor: 11,413 bytes, line 1
1case"bottom":u=M?N+h-g-Math.round(d.width/2)-C:N-h+g+Math.round(d.width/2)+C;break;case"top":u=M?N-g+Math.round(d.width/2)-C:N-g-Math.round(d.width/2)+C}if(this.barCtx.lastActiveBarSerieIndex===n&&w.enabled){var Y=new ne(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:a}),m.fontSize);M?(l=N-g-C-w.offsetX,I="end"):l=N+C+w.offsetX+(this.barCtx.isReversed?-(h+g):g),f=k-d.height/2+Y.height/2+w.offsetY+g}return t.config.chart.stacked||(u<0?u=u+d.width+g:u+d.width/2>t.globals.gridWidth&&(u=t.globals.gridWidth-d.width-g)),{bcx:i,bcy:r,dataLabelsX:u,dataLabelsY:k,totalDataLabelsX:l,totalDataLabelsY:f,totalDataLabelsAnchor:I}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,s=e.val,a=e.i,n=e.j,r=e.textRects,o=e.barHeight,h=e.barWidth,d=e.dataLabelsConfig,u=this.w,g="rotate(0)";"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&(g="rotate(-90, ".concat(t,", ").concat(i,")"));var m=new li(this.barCtx.ctx),b=new ne(this.barCtx.ctx),w=d.formatter,C=null,T=u.globals.collapsedSeriesIndices.indexOf(a)>-1;if(d.enabled&&!T){C=b.group({class:"apexcharts-data-labels",transform:g});var _="";void 0!==s&&(_=w(s,Z(Z({},u),{},{seriesIndex:a,dataPointIndex:n,w:u}))),!s&&u.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(_="");var l=u.globals.series[a][n]<0,f=u.config.plotOptions.bar.dataLabels.position;"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&("top"===f&&(d.textAnchor=l?"end":"start"),"center"===f&&(d.textAnchor="middle"),"bottom"===f&&(d.textAnchor=l?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&h<b.getTextRects(_,parseFloat(d.style.fontSize)).width&&(_=""),u.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?r.width/1.6>Math.abs(h)&&(_=""):r.height/1.6>Math.abs(o)&&(_=""));var k=Z({},d);this.barCtx.isHorizontal&&s<0&&("start"===d.textAnchor?k.textAnchor="end":"end"===d.textAnchor&&(k.textAnchor="start")),m.plotDataLabelsText({x:t,y:i,text:_,i:a,j:n,parent:C,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return C}},{key:"drawTotalDataLabels",value:function(e){var o,t=e.x,i=e.y,s=e.val,a=e.realIndex,n=e.textAnchor,r=e.barTotalDataLabelsConfig,h=new ne(this.barCtx.ctx);return r.enabled&&void 0!==t&&void 0!==i&&this.barCtx.lastActiveBarSerieIndex===a&&(o=h.drawText({x:t,y:i,foreColor:r.style.color,text:s,textAnchor:n,fontFamily:r.style.fontFamily,fontSize:r.style.fontSize,fontWeight:r.style.fontWeight})),o}}]),L}(),wi=function(){function L(e){E(this,L),this.w=e.w,this.barCtx=e}return O(L,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var s=0;s<e[i].length;s++)t.globals.seriesX[i][s]>t.globals.minX&&t.globals.seriesX[i][s]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,i,s,a,n,r,o,h=this.w,d=h.globals.dataPoints;this.barCtx.isRangeBar&&(d=h.globals.labels.length);var u=this.barCtx.seriesLen;if(h.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)a=(i=h.globals.gridHeight/d)/u,h.globals.isXNumeric&&(a=(i=h.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),a=a*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(a=parseInt(this.barCtx.barOptions.barHeight,10)),o=this.barCtx.baseLineInvertedY+h.globals.padHorizontal+(this.barCtx.isReversed?h.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(o=h.globals.gridWidth/2),t=(i-a*this.barCtx.seriesLen)/2;else{if(s=h.globals.gridWidth/this.barCtx.visibleItems,h.config.xaxis.convertedCatToNumeric&&(s=h.globals.gridWidth/h.globals.dataPoints),n=s/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,h.globals.isXNumeric){var g=this.barCtx.xRatio;h.globals.minXDiff&&.5!==h.globals.minXDiff&&h.globals.minXDiff/g>0&&(s=h.globals.minXDiff/g),(n=s/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(n=parseInt(this.barCtx.barOptions.columnWidth,10)),r=h.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?h.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=h.globals.padHorizontal+(s-n*this.barCtx.seriesLen)/2}return h.globals.barHeight=a,h.globals.barWidth=n,{x:e,y:t,yDivision:i,xDivision:s,barHeight:a,barWidth:n,zeroH:r,zeroW:o}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}},{key:"getPathFillColor",value:function(e,t,i,s){var a,n,r,o,h,d=this.w,u=new he(this.barCtx.ctx),g=null,m=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(b){e[t][i]>=b.from&&e[t][i]<=b.to&&(g=b.color)}),null!==(a=d.config.series[t].data[i])&&void 0!==a&&a.fillColor&&(g=d.config.series[t].data[i].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?m:s,dataPointIndex:i,color:g,value:e[t][i],fillConfig:null===(n=d.config.series[t].data[i])||void 0===n?void 0:n.fill,fillType:null!==(r=d.config.series[t].data[i])&&void 0!==r&&null!==(o=r.fill)&&void 0!==o&&o.type?null===(h=d.config.series[t].data[i])||void 0===h?void 0:h.fill.type:Array.isArray(d.config.fill.type)?d.config.fill.type[s]:d.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,i){var s=0,a=this.w;return this.barCtx.isNullValue=null==this.barCtx.series[e][t],a.config.stroke.show&&(this.barCtx.isNullValue||(s=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),s}},{key:"shouldApplyRadius",value:function(e){var t=this.w,i=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&"last"===t.config.plotOptions.bar.borderRadiusWhenStacked?this.barCtx.lastActiveBarSerieIndex===e&&(i=!0):i=!0),i}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,s=e.x1,a=e.x2,n=e.y1,r=e.y2,o=e.elSeries,h=this.w,d=new ne(this.barCtx.ctx),u=new rt(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var m=d.drawRect(void 0!==s?s:0,void 0!==n?n:0,void 0!==a?a:h.globals.gridWidth,void 0!==r?r:h.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,this.barCtx.barOptions.colors.backgroundBarColors[t],this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(m),m.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,i=e.barWidth,s=e.barXPosition,a=e.y1,n=e.y2,r=e.strokeWidth,o=e.seriesGroup,h=e.realIndex,d=e.i,u=e.j,g=e.w,m=new ne(this.barCtx.ctx);(r=Array.isArray(r)?r[h]:r)||(r=0);var b=i,w=s;null!==(t=g.config.series[h].data[u])&&void 0!==t&&t.columnWidthOffset&&(w=s-g.config.series[h].data[u].columnWidthOffset/2,b=i+g.config.series[h].data[u].columnWidthOffset);var C=r/2,T=w+C,_=w+b-C;n+=.001+C;var l=m.move(T,a+=.001-C),f=m.move(T,a),k=m.line(_,a);if(g.globals.previousPaths.length>0&&(f=this.barCtx.getPreviousPath(h,u,!1)),l=l+m.line(T,n)+m.line(_,n)+m.line(_,a)+("around"===g.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),f=f+m.line(T,a)+k+k+k+k+k+m.line(T,a)+("around"===g.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(h)&&(l=m.roundPathCorners(l,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var I=this.barCtx;(I=this.barCtx[o]).yArrj.push(n-C),I.yArrjF.push(Math.abs(a-n+r)),I.yArrjVal.push(this.barCtx.series[d][u])}return{pathTo:l,pathFrom:f}}},{key:"getBarpaths",value:function(e){var t,i=e.barYPosition,s=e.barHeight,a=e.x1,n=e.x2,r=e.strokeWidth,o=e.seriesGroup,h=e.realIndex,d=e.i,u=e.j,g=e.w,m=new ne(this.barCtx.ctx);(r=Array.isArray(r)?r[h]:r)||(r=0);var b=i,w=s;null!==(t=g.config.series[h].data[u])&&void 0!==t&&t.barHeightOffset&&(b=i-g.config.series[h].data[u].barHeightOffset/2,w=s+g.config.series[h].data[u].barHeightOffset);var C=r/2,T=b+C,_=b+w-C;n+=.001+C;var l=m.move(a+=.001-C,T),f=m.move(a,T);g.globals.previousPaths.length>0&&(f=this.barCtx.getPreviousPath(h,u,!1));var k=m.line(a,_);if(l=l+m.line(n,T)+m.line(n,_)+k+("around"===g.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),f=f+m.line(a,T)+k+k+k+k+k+m.line(a,T)+("around"===g.config.plotOptions.bar.borderRadiusApplication?" Z":" z"),this.shouldApplyRadius(h)&&(l=m.roundPathCorners(l,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var I=this.barCtx;(I=this.barCtx[o]).xArrj.push(n+C),I.xArrjF.push(Math.abs(a-n)),I.xArrjVal.push(this.barCtx.series[d][u])}return{pathTo:l,pathFrom:f}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,s=0;s<t.length;s++){for(var a=0,n=0;n<t[i.globals.maxValsInArrayIndex].length;n++)a+=t[s][n];0===a&&this.barCtx.zeroSerieses.push(s)}}},{key:"getXForValue",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(i=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(e,t,i){var s=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:t;return null!=e&&(s=t-e/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[i]:0)),s}},{key:"getGoalValues",value:function(e,t,i,s,a,n){var r=this,o=this.w,h=[],d=function(m,b){var w;h.push((q(w={},e,"x"===e?r.getXForValue(m,t,!1):r.getYForValue(m,i,n,!1)),q(w,"attrs",b),w))};if(o.globals.seriesGoals[s]&&o.globals.seriesGoals[s][a]&&Array.isArray(o.globals.seriesGoals[s][a])&&o.globals.seriesGoals[s][a].forEach(function(m){d(m.value,m)}),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var u=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,g={strokeHeight:"x"===e?0:o.globals.markers.size[s],strokeWidth:"x"===e?o.globals.markers.size[s]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(u[s])?u[s][0]:u[s]};d(o.globals.seriesRangeStart[s][a],g),d(o.globals.seriesRangeEnd[s][a],Z(Z({},g),{},{strokeColor:Array.isArray(u[s])?u[s][1]:u[s]}))}return h}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,s=e.goalX,a=e.goalY,n=e.barWidth,r=e.barHeight,o=new ne(this.barCtx.ctx),h=o.group({className:"apexcharts-bar-goals-groups"});h.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:h.node}),h.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var d=null;
vendor: 4,159 bytes, line 1
1return this.barCtx.isHorizontal?Array.isArray(s)&&s.forEach(function(u){if(u.x>=-1&&u.x<=o.w.globals.gridWidth+1){var g=void 0!==u.attrs.strokeHeight?u.attrs.strokeHeight:r/2,m=i+g+r/2;d=o.drawLine(u.x,m-2*g,u.x,m,u.attrs.strokeColor?u.attrs.strokeColor:void 0,u.attrs.strokeDashArray,u.attrs.strokeWidth?u.attrs.strokeWidth:2,u.attrs.strokeLineCap),h.add(d)}}):Array.isArray(a)&&a.forEach(function(u){if(u.y>=-1&&u.y<=o.w.globals.gridHeight+1){var g=void 0!==u.attrs.strokeWidth?u.attrs.strokeWidth:n/2,m=t+g+n/2;d=o.drawLine(m-2*g,u.y,m,u.y,u.attrs.strokeColor?u.attrs.strokeColor:void 0,u.attrs.strokeDashArray,u.attrs.strokeHeight?u.attrs.strokeHeight:2,u.attrs.strokeLineCap),h.add(d)}}),h}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,i=e.currPaths,s=e.color,a=this.w,n=t.x,r=t.x1,h=i.x,d=i.x1,u=i.barYPosition,g=t.barYPosition+i.barHeight,m=new ne(this.barCtx.ctx),b=new W,w=m.move(r,g)+m.line(n,g)+m.line(h,u)+m.line(d,u)+m.line(r,g)+("around"===a.config.plotOptions.bar.borderRadiusApplication?" Z":" z");return m.drawPath({d:w,fill:b.shadeColor(.5,W.rgb2hex(s)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t,i=e.i,s=e.j,a=this.w,n=0,r=0;return(a.config.plotOptions.bar.horizontal?a.globals.series.map(function(o,h){return h}):(null===(t=a.globals.columnSeries)||void 0===t?void 0:t.i.map(function(o){return o}))||[]).forEach(function(o){var h=a.globals.seriesPercent[o][s];h&&n++,o<i&&0===h&&r++}),{nonZeroColumns:n,zeroEncounters:r}}},{key:"getGroupIndex",value:function(e){var t=this.w,i=t.globals.seriesGroups.findIndex(function(n){return n.indexOf(t.globals.seriesNames[e])>-1}),s=this.barCtx.columnGroupIndices,a=s.indexOf(i);return a<0&&(s.push(i),a=s.length-1),{groupIndex:i,columnGroupIndex:a}}}]),L}(),ti=function(){function L(e,t){E(this,L),this.ctx=e,this.w=e.w;var i=this.w;this.barOptions=i.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=i.config.stroke.width,this.isNullValue=!1,this.isRangeBar=i.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&i.globals.seriesRange.length&&i.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=t,null!==this.xyRatios&&(this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var s=new rt(this.ctx);this.lastActiveBarSerieIndex=s.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=s.getBarSeriesIndices(),n=new st(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(r,o){return-1===a.indexOf(o)?o:-1}).filter(function(r){return-1!==r})),this.barHelpers=new wi(this)}return O(L,[{key:"draw",value:function(e,t){var i=this.w,s=new ne(this.ctx),a=new st(this.ctx,i);e=a.getLogSeries(e),this.series=e,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=s.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.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 - ApexCharts");for(var r=0,o=0;r<e.length;r++,o++){var h,d,u,g,m=void 0,b=void 0,w=[],C=[],T=i.globals.comboCharts?t[r]:r,_=this.barHelpers.getGroupIndex(T).columnGroupIndex,l=s.group({class:"apexcharts-series",rel:r+1,seriesName:W.escapeString(i.globals.seriesNames[T]),"data:realIndex":T});this.ctx.series.addCollapsedClassToSeries(l,T),e[r].length>0&&(this.visibleI=this.visibleI+1);var f=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[T],this.translationsIndex=T);var I=this.translationsIndex;this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var M=this.barHelpers.initialPositions();b=M.y,f=M.barHeight,d=M.yDivision,g=M.zeroW,m=M.x,k=M.barWidth,h=M.xDiv
1ision,u=M.zeroH,this.horizontal||C.push(m+k/2);var N=s.group({class:"apexcharts-datalabels","data:realIndex":T});i.globals.delayedElements.push({el:N.node}),N.node.classList.add("apexcharts-element-hidden");var Y=s.group({class:"apexcharts-bar-goals-markers"}),F=s.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:F.node}),F.node.classList.add("apexcharts-element-hidden");for(var te=0;te<e[r].length;te++){var oe=this.barHelpers.getStrokeWidth(r,te,T),K=null,le={indexes:{i:r,j:te,realIndex:T,translationsIndex:I,bc:o},x:m,y:b,strokeWidth:oe,elSeries:l};this.isHorizontal?(K=this.drawBarPaths(Z(Z({},le),{},{barHeight:f,zeroW:g,yDivision:d})),k=this.series[r][te]/this.invertedYRatio):(K=this.drawColumnPaths(Z(Z({},le),{},{xDivision:h,barWidth:k,zeroH:u})),f=this.series[r][te]/this.yRatio[I]);var pe=this.barHelpers.getPathFillColor(e,r,te,T);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&te>0){var ve=this.barHelpers.drawBarShadow({color:"string"==typeof pe&&-1===pe?.indexOf("url")?pe:W.hexToRgba(i.globals.colors[r]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:K});ve&&F.add(ve)}this.pathArr.push(K);var Ae=this.barHelpers.drawGoalLine({barXPosition:K.barXPosition,barYPosition:K.barYPosition,goalX:K.goalX,goalY:K.goalY,barHeight:f,barWidth:k});Ae&&Y.add(Ae),b=K.y,m=K.x,te>0&&C.push(m+k/2),w.push(b),this.renderSeries({realIndex:T,pathFill:pe,j:te,i:r,columnGroupIndex:_,pathFrom:K.pathFrom,pathTo:K.pathTo,strokeWidth:oe,elSeries:l,x:m,y:b,series:e,barHeight:Math.abs(K.barHeight?K.barHeight:f),barWidth:Math.abs(K.barWidth?K.barWidth:k),elDataLabelsWrap:N,elGoalsMarkers:Y,elBarShadows:F,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[T]=C,i.globals.seriesYvalues[T]=w,n.add(l)}return n}},{key:"renderSeries",value:function(e){var Ae,Te,De,t=e.realIndex,i=e.pathFill,s=e.lineFill,a=e.j,n=e.i,r=e.columnGroupIndex,o=e.pathFrom,h=e.pathTo,d=e.strokeWidth,u=e.elSeries,g=e.x,m=e.y,b=e.y1,w=e.y2,C=e.series,T=e.barHeight,_=e.barWidth,l=e.barXPosition,f=e.barYPosition,k=e.elDataLabelsWrap,I=e.elGoalsMarkers,M=e.elBarShadows,N=e.visibleSeries,Y=e.type,F=this.w,te=new ne(this.ctx);if(!s){var oe="function"==typeof F.globals.stroke.colors[t]?(Ae=t,De=F.config.stroke.colors,Array.isArray(De)&&De.length>0&&((Te=De[Ae])||(Te=""),"function"==typeof Te)?Te({value:F.globals.series[Ae][a],dataPointIndex:a,w:F}):Te):F.globals.stroke.colors[t];s=this.barOptions.distributed?F.globals.stroke.colors[a]:oe}F.config.series[n].data[a]&&F.config.series[n].data[a].strokeColor&&(s=F.config.series[n].data[a].strokeColor),this.isNullValue&&(i="none");var le=te.renderPaths({i:n,j:a,realIndex:t,pathFrom:o,pathTo:h,stroke:s,strokeWidth:d,strokeLineCap:F.config.stroke.lineCap,fill:i,animationDelay:a/F.config.chart.animations.animateGradually.delay*(F.config.chart.animations.speed/F.globals.dataPoints)/2.4,initialSpeed:F.config.chart.animations.speed,dataChangeSpeed:F.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(Y,"-area")});le.attr("clip-path","url(#gridRectMask".concat(F.globals.cuid,")"));var pe=F.config.forecastDataPoints;pe.count>0&&a>=F.globals.dataPoints-pe.count&&(le.node.setAttribute("stroke-dasharray",pe.dashArray),le.node.setAttribute("stroke-width",pe.strokeWidth),le.node.setAttribute("fill-opacity",pe.fillOpacity)),void 0!==b&&void 0!==w&&(le.attr("data-range-y1",b),le.attr("data-range-y2",w)),new Qe(this.ctx).setSelectionFilter(le,t,a),u.add(le);var ve=new _i(this).handleBarDataLabels({x:g,y:m,y1:b,y2:w,i:n,j:a,series:C,realIndex:t,columnGroupIndex:r,barHeight:T,barWidth:_,barXPosition:l,barYPosition:f,renderedPath:le,visibleSeries:N});return null!==ve.dataLabels&&k.add(ve.dataLabels),ve.totalDataLabels&&k.add(ve.totalDataLabels),u.add(k),I&&u.add(I),M&&u.add(M),u}},{key:"drawBarPaths",value:function(e){var t,r,i=e.indexes,s=e.barHeight,a=e.strokeWidth,n=e.zeroW,o=e.y,h=e.yDivision,d=e.elSeries,u=this.w,g=i.i,m=i.j;if(u.globals.isXNumeric)t=(o=(u.globals.seriesX[g][m]-u.globals.minX)/this.invertedXRatio-s)+s*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var b=0,w=0;u.globals.seriesPercent.forEach(function(T,_){T[m]&&b++,_<g&&0===T[m]&&w++}),b>0&&(s=this.seriesLen*s/b),t=o+s*this.visibleI,t-=s*w}else t=o+s*this.visibleI;this.isFunnel&&(n-=(this.barHelpers.getXForValue(this.series[g][m],n)-n)/2),r=this.barHelpers.getXForValue(this.series[g][m],n);var C=this.barHelpers.getBarpaths({barYPosition:t,barHeight:s,x1:n,x2:r,strokeWidth:a,series:this.series,realIndex:i.realIndex,i:g,j:m,w:u});return u.globals.isXNumeric||(o+=h),this.barHelpers.barBackgroun
vendor: 6,774 bytes, line 1
1d({j:m,i:g,y1:t-s*this.visibleI,y2:s*this.seriesLen,elSeries:d}),{pathTo:C.pathTo,pathFrom:C.pathFrom,x1:n,x:r,y:o,goalX:this.barHelpers.getGoalValues("x",n,null,g,m),barYPosition:t,barHeight:s}}},{key:"drawColumnPaths",value:function(e){var t,a,i=e.indexes,s=e.x,n=e.xDivision,r=e.barWidth,o=e.zeroH,h=e.strokeWidth,d=e.elSeries,u=this.w,g=i.realIndex,m=i.translationsIndex,b=i.i,w=i.j,C=i.bc;if(u.globals.isXNumeric){var T=this.getBarXForNumericXAxis({x:s,j:w,realIndex:g,barWidth:r});s=T.x,t=T.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var _=this.barHelpers.getZeroValueEncounters({i:b,j:w}),l=_.nonZeroColumns;l>0&&(r=this.seriesLen*r/l),t=s+r*this.visibleI,t-=r*_.zeroEncounters}else t=s+r*this.visibleI;a=this.barHelpers.getYForValue(this.series[b][w],o,m);var k=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:r,y1:o,y2:a,strokeWidth:h,series:this.series,realIndex:g,i:b,j:w,w:u});return u.globals.isXNumeric||(s+=n),this.barHelpers.barBackground({bc:C,j:w,i:b,x1:t-h/2-r*this.visibleI,x2:r*this.seriesLen+h/2,elSeries:d}),{pathTo:k.pathTo,pathFrom:k.pathFrom,x:s,y:a,goalY:this.barHelpers.getGoalValues("y",null,o,b,w,m),barXPosition:t,barWidth:r}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,i=e.barWidth,s=e.realIndex,a=e.j,n=this.w,r=s;return n.globals.seriesX[s].length||(r=n.globals.maxValsInArrayIndex),n.globals.seriesX[r][a]&&(t=(n.globals.seriesX[r][a]-n.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:t+i*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var i,s=this.w,a=0;a<s.globals.previousPaths.length;a++){var n=s.globals.previousPaths[a];n.paths&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(e,10)&&void 0!==s.globals.previousPaths[a].paths[t]&&(i=s.globals.previousPaths[a].paths[t].d)}return i}}]),L}(),Ii=function(L){R(t,L);var e=xe(t);function t(){return E(this,t),e.apply(this,arguments)}return O(t,[{key:"draw",value:function(i,s){var a=this,n=this.w;this.graphics=new ne(this.ctx),this.bar=new ti(this.ctx,this.xyRatios);var r=new st(this.ctx,n);i=r.getLogSeries(i),this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i),"100%"===n.config.chart.stackType&&(i=n.globals.comboCharts?s.map(function(b){return n.globals.seriesPercent[b]}):n.globals.seriesPercent.slice()),this.series=i,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),h=0,d=0,u=function(b,w){var C=void 0,T=void 0,_=void 0,l=void 0,f=n.globals.comboCharts?s[b]:b,k=a.barHelpers.getGroupIndex(f),I=k.groupIndex,M=k.columnGroupIndex;a.groupCtx=a[n.globals.seriesGroups[I]];var N=[],Y=[],F=0;a.yRatio.length>1&&(a.yaxisIndex=n.globals.seriesYAxisReverseMap[f][0],F=f),a.isReversed=n.config.yaxis[a.yaxisIndex]&&n.config.yaxis[a.yaxisIndex].reversed;var te=a.graphics.group({class:"apexcharts-series",seriesName:W.escapeString(n.globals.seriesNames[f]),rel:b+1,"data:realIndex":f});a.ctx.series.addCollapsedClassToSeries(te,f);var oe=a.graphics.group({class:"apexcharts-datalabels","data:realIndex":f}),K=a.graphics.group({class:"apexcharts-bar-goals-markers"}),le=0,pe=0,ve=a.initialPositions(h,d,C,T,_,l,F);d=ve.y,T=ve.yDivision,l=ve.zeroW,h=ve.x,pe=ve.barWidth,C=ve.xDivision,_=ve.zeroH,n.globals.barHeight=le=ve.barHeight,n.globals.barWidth=pe,a.barHelpers.initializeStackedXYVars(a),1===a.groupCtx.prevY.length&&a.groupCtx.prevY[0].every(function(tt){return isNaN(tt)})&&(a.groupCtx.prevY[0]=a.groupCtx.prevY[0].map(function(){return _}),a.groupCtx.prevYF[0]=a.groupCtx.prevYF[0].map(function(){return 0}));for(var Ae=0;Ae<n.globals.dataPoints;Ae++){var Te=a.barHelpers.getStrokeWidth(b,Ae,f),De={indexes:{i:b,j:Ae,realIndex:f,translationsIndex:F,bc:w},strokeWidth:Te,x:h,y:d,elSeries:te,columnGroupIndex:M,seriesGroup:n.globals.seriesGroups[I]},ze=null;a.isHorizontal?(ze=a.drawStackedBarPaths(Z(Z({},De),{},{zeroW:l,barHeight:le,yDivision:T})),pe=a.series[b][Ae]/a.invertedYRatio):(ze=a.drawStackedColumnPaths(Z(Z({},De),{},{xDivision:C,barWidth:pe,zeroH:_})),le=a.series[b][Ae]/a.yRatio[F]);var Xe=a.barHelpers.drawGoalLine({barXPosition:ze.barXPosition,barYPosition:ze.barYPosition,goalX:ze.goalX,goalY:ze.goalY,barHeight:le,barWidth:pe});Xe&&K.add(Xe),d=ze.y,N.push(h=ze.x),Y.push(d);var Ke=a.barHelpers.getPathFillColor(i,b,Ae,f);te=a.renderSeries({realIndex:f,pathFill:Ke,j:Ae,i:b,columnGroupIndex:M,pathFrom:ze.pathFrom,pathTo:ze.pathTo,strokeWidth:Te,elSeries:te,x:h,y:d,series:i,barHeight:le,barWidth:pe,elDataLabelsWrap:oe,elGoalsMarkers:K,type:"bar",visibleSeries:M})}n.globals.seriesXvalues[f]=N,n.globals.seriesYvalues[f]=Y,a.groupCtx.prevY.push(a.groupCtx.yArrj),a.groupCtx.prevYF.push(a.groupCtx.yArrjF),a.groupCtx.prevYVal.push(a.groupCtx.yArrjVal),a.groupCtx.prevX.push(a.groupCtx.xArrj),a.groupCtx.prevXF.push(a.groupCtx.xArrjF),a.groupCtx.prevXVal.push(a.groupCtx.xArrjVal),o.add(te)},g=0,m=0;g<i.length;g++,m++)u(g,m);return o}},{key:"initialPositions",value:function(i,s,a,n,r,o,h){var d,u,g=this.w;if(this.isHorizontal){n=g.globals.gridHeight/g.globals.dataPoints;var m=g.config.plotOptions.bar.barHeight;d=-1===String(m).indexOf("%")?parseInt(m,10):n*parseInt(m,10)/100,o=g.globals.padHorizontal+(this.isReversed?g.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),s=(n-d)/2}else{u=a=g.globals.gridWidth/g.globals.dataPoints;var b=g.config.plotOptions.bar.columnWidth;g.globals.isXNumeric&&g.globals.dataPoints>1?u=(a=g.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(b).indexOf("%")?u=parseInt(b,10):u*=parseInt(b,10)/100,r=g.globals.gridHeight-this.baseLineY[h]-(this.isReversed?g.globals.gridHeight:0),i=g.globals.padHorizontal+(a-u)/2}var w=g.globals.barGroups.length||1;return{x:i,y:s,yDivision:n,xDivision:a,barHeight:d/w,barWidth:u/w,zeroH:r,zeroW:o}}},{key:"drawStackedBarPaths",value:function(i){for(var s,h,a=i.indexes,n=i.barHeight,r=i.strokeWidth,o=i.zeroW,d=i.y,g=i.seriesGroup,m=i.yDivision,b=i.elSeries,w=this.w,C=d+i.columnGroupIndex*n,T=a.i,_=a.j,l=a.realIndex,f=a.translationsIndex,k=0,I=0;I<this.groupCtx.prevXF.length;I++)k+=this.groupCtx.prevXF[I][_];var M;if((M=g.indexOf(w.config.series[l].name))>0){var N=o;this.groupCtx.prevXVal[M-1][_]<0?N=this.series[T][_]>=0?this.groupCtx.prevX[M-1][_]+k-2*(this.isReversed?k:0):this.groupCtx.prevX[M-1][_]:this.groupCtx.prevXVal[M-1][_]>=0&&(N=this.series[T][_]>=0?this.groupCtx.prevX[M-1][_]:this.groupCtx.prevX[M-1][_]-k+2*(this.isReversed?k:0)),s=N}else s=o;var Y=this.barHelpers.getBarpaths({barYPosition:C,barHeight:n,x1:s,x2:h=null===this.series[T][_]?s:s+this.series[T][_]/this.invertedYRatio-2*(this.isReversed?this.series[T][_]/this.invertedYRatio:0),strokeWidth:r,series:this.series,realIndex:a.realIndex,seriesGroup:g,i:T,j:_,w});
1return this.barHelpers.barBackground({j:_,i:T,y1:C,y2:n,elSeries:b}),d+=m,{pathTo:Y.pathTo,pathFrom:Y.pathFrom,goalX:this.barHelpers.getGoalValues("x",o,null,T,_,f),barXPosition:s,barYPosition:C,x:h,y:d}}},{key:"drawStackedColumnPaths",value:function(i){var n,s=i.indexes,a=i.x,r=i.xDivision,o=i.barWidth,h=i.zeroH,u=i.seriesGroup,g=i.elSeries,m=this.w,b=s.i,w=s.j,C=s.bc,T=s.realIndex,_=s.translationsIndex;if(m.globals.isXNumeric){var l=m.globals.seriesX[T][w];l||(l=0),a=(l-m.globals.minX)/this.xRatio-o/2*m.globals.barGroups.length}for(var f,k=a+i.columnGroupIndex*o,I=0,M=0;M<this.groupCtx.prevYF.length;M++)I+=isNaN(this.groupCtx.prevYF[M][w])?0:this.groupCtx.prevYF[M][w];var N=b;if(u&&(N=u.indexOf(m.globals.seriesNames[T])),N>0&&!m.globals.isXNumeric||N>0&&m.globals.isXNumeric&&m.globals.seriesX[T-1][w]===m.globals.seriesX[T][w]){var Y,F,te,oe=Math.min(this.yRatio.length+1,T+1);if(void 0!==this.groupCtx.prevY[N-1]&&this.groupCtx.prevY[N-1].length)for(var K=1;K<oe;K++){var le;if(!isNaN(null===(le=this.groupCtx.prevY[N-K])||void 0===le?void 0:le[w])){te=this.groupCtx.prevY[N-K][w];break}}for(var pe=1;pe<oe;pe++){var ve,Ae;if((null===(ve=this.groupCtx.prevYVal[N-pe])||void 0===ve?void 0:ve[w])<0){F=this.series[b][w]>=0?te-I+2*(this.isReversed?I:0):te;break}if((null===(Ae=this.groupCtx.prevYVal[N-pe])||void 0===Ae?void 0:Ae[w])>=0){F=this.series[b][w]>=0?te:te+I-2*(this.isReversed?I:0);break}}void 0===F&&(F=m.globals.gridHeight),f=null!==(Y=this.groupCtx.prevYF[0])&&void 0!==Y&&Y.every(function(De){return 0===De})&&this.groupCtx.prevYF.slice(1,N).every(function(De){return De.every(function(ze){return isNaN(ze)})})?h:F}else f=h;var Te=this.barHelpers.getColumnPaths({barXPosition:k,barWidth:o,y1:f,y2:n=this.series[b][w]?f-this.series[b][w]/this.yRatio[_]+2*(this.isReversed?this.series[b][w]/this.yRatio[_]:0):f,yRatio:this.yRatio[_],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:u,realIndex:s.realIndex,i:b,j:w,w:m});return this.barHelpers.barBackground({bc:C,j:w,i:b,x1:k,x2:o,elSeries:g}),{pathTo:Te.pathTo,pathFrom:Te.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,h,b,w),barXPosition:k,x:m.globals.isXNumeric?a:a+r,y:n}}}]),t}(ti),Wi=function(L){R(t,L);var e=xe(t);function t(){return E(this,t),e.apply(this,arguments)}return O(t,[{key:"draw",value:function(i,s,a){var n=this,r=this.w,o=new ne(this.ctx),h=r.globals.comboCharts?s:r.config.chart.type,d=new he(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=r.config.plotOptions.bar.horizontal;var u=new st(this.ctx,r);i=u.getLogSeries(i),this.series=i,this.yRatio=u.getLogYRatios(this.yRatio),this.barHelpers.initVariables(i);for(var g=o.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),m=function(w){n.isBoxPlot="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[w].type;var C,T,_,l,f=void 0,k=void 0,I=[],M=[],N=r.globals.comboCharts?a[w]:w,Y=n.barHelpers.getGroupIndex(N).columnGroupIndex,F=o.group({class:"apexcharts-series",seriesName:W.escapeString(r.globals.seriesNames[N]),rel:w+1,"data:realIndex":N});n.ctx.series.addCollapsedClassToSeries(F,N),i[w].length>0&&(n.visibleI=n.visibleI+1);var te,oe,K=0;n.yRatio.length>1&&(n.yaxisIndex=r.globals.seriesYAxisReverseMap[N][0],K=N);var le=n.barHelpers.initialPositions();k=le.y,te=le.barHeight,T=le.yDivision,l=le.zeroW,C=le.xDivision,_=le.zeroH,M.push((f=le.x)+(oe=le.barWidth)/2);for(var pe=o.group({class:"apexcharts-datalabels","data:realIndex":N}),ve=function(Te){var De=n.barHelpers.getStrokeWidth(w,Te,N),ze=null,Xe={indexes:{i:w,j:Te,realIndex:N,translationsIndex:K},x:f,y:k,strokeWidth:De,elSeries:F};ze=n.isHorizontal?n.drawHorizontalBoxPaths(Z(Z({},Xe),{},{yDivision:T,barHeight:te,zeroW:l})):n.drawVerticalBoxPaths(Z(Z({},Xe),{},{xDivision:C,barWidth:oe,zeroH:_})),k=ze.y,f=ze.x,Te>0&&M.push(f+oe/2),I.push(k),ze.pathTo.forEach(function(Ke,tt){var Re=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?ze.color[tt]:r.globals.stroke.colors[w],Ct=d.fillPath({seriesNumber:N,dataPointIndex:Te,color:ze.color[tt],value:i[w][Te]});
vendor: 4,658 bytes, line 1
1n.renderSeries({realIndex:N,pathFill:Ct,lineFill:Re,j:Te,i:w,pathFrom:ze.pathFrom,pathTo:Ke,strokeWidth:De,elSeries:F,x:f,y:k,series:i,columnGroupIndex:Y,barHeight:te,barWidth:oe,elDataLabelsWrap:pe,visibleSeries:n.visibleI,type:r.config.chart.type})})},Ae=0;Ae<r.globals.dataPoints;Ae++)ve(Ae);r.globals.seriesXvalues[N]=M,r.globals.seriesYvalues[N]=I,g.add(F)},b=0;b<i.length;b++)m(b);return g}},{key:"drawVerticalBoxPaths",value:function(i){var s=i.indexes,a=i.x,n=i.xDivision,r=i.barWidth,o=i.zeroH,h=i.strokeWidth,d=this.w,u=new ne(this.ctx),g=s.i,m=s.j,b=!0,w=d.config.plotOptions.candlestick.colors.upward,C=d.config.plotOptions.candlestick.colors.downward,T="";this.isBoxPlot&&(T=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var _=this.yRatio[s.translationsIndex],l=s.realIndex,f=this.getOHLCValue(l,m),k=o,I=o;f.o>f.c&&(b=!1);var M=Math.min(f.o,f.c),N=Math.max(f.o,f.c),Y=f.m;d.globals.isXNumeric&&(a=(d.globals.seriesX[l][m]-d.globals.minX)/this.xRatio-r/2);var F=a+r*this.visibleI;null==this.series[g][m]?(M=o,N=o):(M=o-M/_,N=o-N/_,k=o-f.h/_,I=o-f.l/_,Y=o-f.m/_);var te=u.move(F,o),oe=u.move(F+r/2,M);return d.globals.previousPaths.length>0&&(oe=this.getPreviousPath(l,m,!0)),te=this.isBoxPlot?[u.move(F,M)+u.line(F+r/2,M)+u.line(F+r/2,k)+u.line(F+r/4,k)+u.line(F+r-r/4,k)+u.line(F+r/2,k)+u.line(F+r/2,M)+u.line(F+r,M)+u.line(F+r,Y)+u.line(F,Y)+u.line(F,M+h/2),u.move(F,Y)+u.line(F+r,Y)+u.line(F+r,N)+u.line(F+r/2,N)+u.line(F+r/2,I)+u.line(F+r-r/4,I)+u.line(F+r/4,I)+u.line(F+r/2,I)+u.line(F+r/2,N)+u.line(F,N)+u.line(F,Y)+"z"]:[u.move(F,N)+u.line(F+r/2,N)+u.line(F+r/2,k)+u.line(F+r/2,N)+u.line(F+r,N)+u.line(F+r,M)+u.line(F+r/2,M)+u.line(F+r/2,I)+u.line(F+r/2,M)+u.line(F,M)+u.line(F,N-h/2)],oe+=u.move(F,M),d.globals.isXNumeric||(a+=n),{pathTo:te,pathFrom:oe,x:a,y:N,barXPosition:F,color:this.isBoxPlot?T:b?[w]:[C]}}},{key:"drawHorizontalBoxPaths",value:function(i){var s=i.indexes,a=i.y,n=i.yDivision,r=i.barHeight,o=i.zeroW,h=i.strokeWidth,d=this.w,u=new ne(this.ctx),g=s.i,m=s.j,b=this.boxOptions.colors.lower;this.isBoxPlot&&(b=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var w=this.invertedYRatio,C=s.realIndex,T=this.getOHLCValue(C,m),_=o,l=o,f=Math.min(T.o,T.c),k=Math.max(T.o,T.c),I=T.m;d.globals.isXNumeric&&(a=(d.globals.seriesX[C][m]-d.globals.minX)/this.invertedXRatio-r/2);var M=a+r*this.visibleI;null==this.series[g][m]?(f=o,k=o):(f=o+f/w,k=o+k/w,_=o+T.h/w,l=o+T.l/w,I=o+T.m/w);var N=u.move(o,M),Y=u.move(f,M+r/2);return d.globals.previousPaths.length>0&&(Y=this.getPreviousPath(C,m,!0)),N=[u.move(f,M)+u.line(f,M+r/2)+u.line(_,M+r/2)+u.line(_,M+r/2-r/4)+u.line(_,M+r/2+r/4)+u.line(_,M+r/2)+u.line(f,M+r/2)+u.line(f,M+r)+u.line(I,M+r)+u.line(I,M)+u.line(f+h/2,M),u.move(I,M)+u.line(I,M+r)+u.line(k,M+r)+u.line(k,M+r/2)+u.line(l,M+r/2)+u.line(l,M+r-r/4)+u.line(l,M+r/4)+u.line(l,M+r/2)+u.line(k,M+r/2)+u.line(k,M)+u.line(I,M)+"z"],Y+=u.move(f,M),d.globals.isXNumeric||(a+=n),{pathTo:N,pathFrom:Y,x:k,y:a,barYPosition:M,color:b}}},{key:"getOHLCValue",value:function(i,s){var a=this.w;return{o:this.isBoxPlot?a.globals.seriesCandleH[i][s]:a.globals.seriesCandleO[i][s],h:this.isBoxPlot?a.globals.seriesCandleO[i][s]:a.globals.seriesCandleH[i][s],m:a.globals.seriesCandleM[i][s],l:this.isBoxPlot?a.globals.seriesCandleC[i][s]:a.globals.seriesCandleL[i][s],c:this.isBoxPlot?a.globals.seriesCandleL[i][s]:a.globals.seriesCandleC[i][s]}}}]),t}(ti),zi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(s,a){s.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,i,s){var a=this.w,n=1,r=a.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,i);a.globals.hasNegs||s?n=a.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*r):1.25*r*(1-o.percent/100):o.percent<=0?1-(1+o.percent/100)*r:(1-o.percent/100)*r:(n=1-o.percent/100,"treemap"===e&&(n=1.25*r*(1-o.percent/100)));var h=o.color,d=new W;return a.config.plotOptions[e].enableShades&&(h=W.hexToRgba(d.shadeColor("dark"===this.w.config.theme.mode?-1*n:n,o.color),a.config.fill.opacity)),{color:h,colorProps:o}}},{key:"determineColor",value:function(e,t,i){var s=this.w,a=s.globals.series[t][i],n=s.config.plotOptions[e],r=n.colorScale.inverse?i:t;n.distributed&&"treemap"===s.config.chart.type&&(r=i);var o=s.globals.colors[r],h=null,d=Math.min.apply(Math,ke(s.globals.series[t])),u=Math.max.apply(Math,ke(s.globals.series[t]));n.distributed||"heatmap"!==e||(d=s.globals.minY,u=s.globals.maxY),void 0!==n.colorScale.min&&(
vendor: 7,299 bytes, line 1
1d=n.colorScale.min<s.globals.minY?n.colorScale.min:s.globals.minY,u=n.colorScale.max>s.globals.maxY?n.colorScale.max:s.globals.maxY);var g=Math.abs(u)+Math.abs(d),m=100*a/(0===g?g-1e-6:g);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(b,w){if(a>=b.from&&a<=b.to){o=b.color,h=b.foreColor?b.foreColor:null,d=b.from,u=b.to;var C=Math.abs(u)+Math.abs(d);m=100*a/(0===C?C-1e-6:C)}}),{color:o,foreColor:h,percent:m}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,s=e.y,a=e.i,n=e.j,r=e.colorProps,o=e.fontSize,h=this.w.config.dataLabels,d=new ne(this.ctx),u=new li(this.ctx),g=null;if(h.enabled){g=d.group({class:"apexcharts-data-labels"});var b=h.offsetY,w=i+h.offsetX,C=s+parseFloat(h.style.fontSize)/3+b;u.plotDataLabelsText({x:w,y:C,text:t,i:a,j:n,color:r.foreColor,parent:g,fontSize:o,dataLabelsConfig:h})}return g}},{key:"addListeners",value:function(e){var t=new ne(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),L}(),Pt=function(){function L(e,t){E(this,L),this.ctx=e,this.w=e.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new zi(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return O(L,[{key:"draw",value:function(e){var t=this.w,i=new ne(this.ctx),s=i.group({class:"apexcharts-heatmap"});s.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var a=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,r=0,o=!1;this.negRange=this.helpers.checkColorRange();var h=e.slice();t.config.yaxis[0].reversed&&(o=!0,h.reverse());for(var d=o?0:h.length-1;o?d<h.length:d>=0;o?d++:d--){var u=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:W.escapeString(t.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});if(this.ctx.series.addCollapsedClassToSeries(u,d),t.config.chart.dropShadow.enabled){var g=t.config.chart.dropShadow;new Qe(this.ctx).dropShadow(u,g,d)}for(var m=0,b=t.config.plotOptions.heatmap.shadeIntensity,w=0;w<h[d].length;w++){var C=this.helpers.getShadeColor(t.config.chart.type,d,w,this.negRange),T=C.color,_=C.colorProps;"image"===t.config.fill.type&&(T=new he(this.ctx).fillPath({seriesNumber:d,dataPointIndex:w,opacity:t.globals.hasNegs?_.percent<0?1-(1+_.percent/100):b+_.percent/100:_.percent/100,patternID:W.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:a,height:t.config.fill.image.height?t.config.fill.image.height:n}));var f=i.drawRect(m,r,a,n,this.rectRadius);if(f.attr({cx:m,cy:r}),f.node.classList.add("apexcharts-heatmap-rect"),u.add(f),f.attr({fill:T,i:d,index:d,j:w,val:e[d][w],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?T:t.globals.stroke.colors[0],color:T}),this.helpers.addListeners(f),t.config.chart.animations.enabled&&!t.globals.dataChanged){var k=1;t.globals.resized||(k=t.config.chart.animations.speed),this.animateHeatMap(f,m,r,a,n,k)}if(t.globals.dataChanged){var I=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){I=this.dynamicAnim.speed;var M=t.globals.previousPaths[d]&&t.globals.previousPaths[d][w]&&t.globals.previousPaths[d][w].color;M||(M="rgba(255, 255, 255, 0)"),this.animateHeatColor(f,W.isColorHex(M)?M:W.rgb2hex(M),W.isColorHex(T)?T:W.rgb2hex(T),I)}}var N=(0,t.config.dataLabels.formatter)(t.globals.series[d][w],{value:t.globals.series[d][w],seriesIndex:d,dataPointIndex:w,w:t}),Y=this.helpers.calculateDataLabels({text:N,x:m+a/2,y:r+n/2,i:d,j:w,colorProps:_,series:h});null!==Y&&u.add(Y),m+=a}r+=n,s.add(u)}var F=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?F.unshift(""):F.push(""),t.globals.yAxisScale[0].result=F,s}},{key:"animateHeatMap",value:function(e,t,i,s,a,n){var r=new gt(this.ctx);r.animateRect(e,{x:t+s/2,y:i+a/2,width:0,height:0},{x:t,y:i,width:s,height:a},n,function(){r.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,i,s){e.attr({fill:t}).animate(s).attr({fill:i})}}]),L}(),mt=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"drawYAxisTexts",value:function(e,t,i,s){var a=this.w,n=a.config.yaxis[0],r=a.globals.yLabelFormatters[0];return new ne(this.ctx).drawText({x:e+n.labels.offsetX,y:t+n.labels.offsetY,text:r(s,i),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[i]:n.labels.style.colors})}}]),L}(),Qi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w;var t=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==t.globals.stroke.colors?t.globals.stroke.colors:t.globals.colors,this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=t.globals.gridWidth/2,this.fullAngle="radialBar"===t.config.chart.type?360:Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle),this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle,t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100;var i=t.config.plotOptions.pie.customScale,s=t.globals.gridWidth/2,a=t.globals.gridHeight/2;this.translateX=s-s*i,this.translateY=a-a*i,this.dataLabelsGroup=new ne(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return O(L,[{key:"draw",value:function(e){var t=this,i=this.w,s=new ne(this.ctx),a=s.group({class:"apexcharts-pie"});if(i.globals.noData)return a;for(var n=0,r=0;r<e.length;r++)n+=W.negToZero(e[r]);var o=[],h=s.group();0===n&&(n=1e-5),e.forEach(function(l){t.maxY=Math.max(t.maxY,l)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(a);for(var d=0;d<e.length;d++){var u=this.fullAngle*W.negToZero(e[d])/n;o.push(u),"polarArea"===this.chartType?(o[d]=this.fullAngle/e.length,this.sliceSizes.push(i.globals.radialSize*e[d]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var g,m=0,b=0;b<i.globals.previousPaths.length;b++)m+=W.negToZero(i.globals.previousPaths[b]);for(var w=0;w<i.globals.previousPaths.length;w++)g=this.fullAngle*W.negToZero(i.globals.previousPaths[w])/m,this.prevSectorAngleArr.push(g)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var C=s.drawCircle(this.donutSize);C.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),h.add(C)}var T=this.drawArcs(o,e);
1if(this.sliceLabels.forEach(function(l){T.add(l)}),h.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),h.add(T),a.add(h),this.donutDataLabels.show){var _=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});a.add(_)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(a),a}},{key:"drawArcs",value:function(e,t){var i=this.w,s=new Qe(this.ctx),a=new ne(this.ctx),n=new he(this.ctx),r=a.group({class:"apexcharts-slices"}),o=this.initialAngle,h=this.initialAngle,d=this.initialAngle,u=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var g=0;g<e.length;g++){var m=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:W.escapeString(i.globals.seriesNames[g]),rel:g+1,"data:realIndex":g});r.add(m),d=(o=d)+e[g],u=(h=u)+this.prevSectorAngleArr[g];var b=d<o?this.fullAngle+d-o:d-o,w=n.fillPath({seriesNumber:g,size:this.sliceSizes[g],value:t[g]}),C=this.getChangedPath(h,u),T=a.drawPath({d:C,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[g]:this.lineColorArr,strokeWidth:0,fill:w,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(g)});T.attr({index:0,j:g}),s.setSelectionFilter(T,0,g),i.config.chart.dropShadow.enabled&&s.dropShadow(T,i.config.chart.dropShadow,g),this.addListeners(T,this.donutDataLabels),ne.setAttrs(T.node,{"data:angle":b,"data:startAngle":
vendor: 1,957 bytes, line 1
1o,"data:strokeWidth":this.strokeWidth,"data:value":t[g]});var l={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?l=W.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+b/2)%this.fullAngle):"donut"===this.chartType&&(l=W.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+b/2)%this.fullAngle)),m.add(T);var f=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0==(f=b/this.fullAngle*i.config.chart.animations.speed)&&(f=1),this.animDur=f+this.animDur,this.animBeginArr.push(this.animDur)),this.animatePaths(T,this.dynamicAnim&&i.globals.dataChanged?{size:this.sliceSizes[g],endAngle:d,startAngle:o,prevStartAngle:h,prevEndAngle:u,animateStartingPos:!0,i:g,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}:{size:this.sliceSizes[g],endAngle:d,startAngle:o,i:g,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:f}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&T.node.addEventListener("mouseup",this.pieClicked.bind(this,g)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(g)>-1&&this.pieClicked(g),i.config.dataLabels.enabled){var k=l.x,I=l.y,M=100*b/this.fullAngle+"%";if(0!==b&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[g]){var N=i.config.dataLabels.formatter;void 0!==N&&(M=N(i.globals.seriesPercent[g][0],{seriesIndex:g,w:i}));var Y=i.globals.dataLabels.style.colors[g],F=a.group({class:"apexcharts-datalabels"}),te=a.drawText({x:k,y:I,text:M,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:Y});F.add(te),i.config.dataLabels.dropShadow.enabled&&s.dropShadow(te,i.config.dataLabels.dropShadow),te.no
vendor: 4,879 bytes, line 1
1de.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(te.node.classList.add("apexcharts-pie-label-delay"),te.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(F)}}}return r}},{key:"addListeners",value:function(e,t){var i=new ne(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var s=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,a=s,n=t.startAngle,r=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(n=t.prevEndAngle,a=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===this.w.config.series.length-1&&(s+r>this.fullAngle?t.endAngle=t.endAngle-(s+r):s+r<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(s+r)))),s===this.fullAngle&&(s=this.fullAngle-.01),this.animateArc(e,n,r,s,a,t)}},{key:"animateArc",value:function(e,t,i,s,a,n){var r,o=this,h=this.w,d=new gt(this.ctx),u=n.size;(isNaN(t)||isNaN(a))&&(t=i,a=s,n.dur=0);var g=s,m=i,b=t<i?this.fullAngle+t-i:t-i;h.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(r=o.getPiePath({me:o,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:u}),e.attr({d:r})),0!==n.dur?e.animate(n.dur,h.globals.easing,n.animBeginArr[n.i]).afterAll(function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(h.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),n.i===h.config.series.length-1&&d.animationCompleted(e)}).during(function(w){g=b+(s-b)*w,n.animateStartingPos&&(g=a+(s-a)*w,m=t-a+(i-(t-a))*w),r=o.getPiePath({me:o,startAngle:m,angle:g,size:u}),e.node.setAttribute("data:pathOrig",r),e.attr({d:r})}):(r=o.getPiePath({me:o,startAngle:m,angle:s,size:u}),n.isTrack||(h.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",r),e.attr({d:r,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,i=this.w,s=this,a=s.sliceSizes[e]+(i.config.plotOptions.pie.expandOnClick?4:0),n=i.globals.dom.Paper.select(".apexcharts-".concat(s.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==n.attr("data:pieClicked")){var r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(r,function(u){u.setAttribute("data:pieClicked","false");var g=u.getAttribute("data:pathOrig");g&&u.setAttribute("d",g)}),i.globals.capturedDataPointIndex=e,n.attr("data:pieClicked","true");var o=parseInt(n.attr("data:startAngle"),10),h=parseInt(n.attr("data:angle"),10);t=s.getPiePath({me:s,startAngle:o,angle:h,size:a}),360!==h&&n.plot(t)}else{n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(n.node,this.donutDataLabels);var d=n.attr("data:pathOrig");n.attr({d})}}},{key:"getChangedPath",value:function(e,t){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),i}},{key:"getPiePath",value:function(e){var t,i=e.me,s=e.startAngle,a=e.angle,n=e.size,r=new ne(this.ctx),o=s,h=Math.PI*(o-90)/180,d=a+s;Math.ceil(d)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(d=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(d)>this.fullAngle&&(d-=this.fullAngle);var u=Math.PI*(d-90)/180,g=i.centerX+n*Math.cos(h),m=i.centerY+n*Math.sin(h),b=i.centerX+n*Math.cos(u),w=i.centerY+n*Math.sin(u),C=W.polarToCartesian(i.centerX,i.centerY,i.donutSize,d),T=W.polarToCartesian(i.centerX,i.centerY,i.donutSize,o),_=a>180?1:0,l=["M",g,m,"A",n,n,0,_,1,b,w];return t="donut"===i.chartType?[].concat(l,["L",C.x,C.y,"A",i.donutSize,i.donutSize,0,_,0,T.x,T.y,"L",g,m,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(l,["L",i.centerX,i.centerY,"L",g,m]).join(" "):[].concat(l).join(" "),r.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new ci(this.ctx),s=new ne(this.ctx),a=new mt(this.ctx),n=s.group(),r=s.group(),o=i.niceScale(0,Math.ceil(this.maxY),0),h=o.result.reverse(),d=o.result.length;this.maxY=o.niceMax;for(var u=t.globals.radialSize,g=u/(d-1),m=0;m<d-1;m++){var b=s.drawCircle(u);if(b.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.r
vendor: 5,389 bytes, line 1
1ings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var w=a.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,m,h[m]);r.add(w)}n.add(b),u-=g}this.drawSpokes(e),e.add(n),e.add(r)}},{key:"renderInnerDataLabels",value:function(e,t,i){var s=this.w,a=new ne(this.ctx),n=t.total.show;e.node.innerHTML="",e.node.style.opacity=i.opacity;var r,o,h=i.centerX,d=i.centerY;r=void 0===t.name.color?s.globals.colors[0]:t.name.color;var u=t.name.fontSize,g=t.name.fontFamily,m=t.name.fontWeight;o=void 0===t.value.color?s.config.chart.foreColor:t.value.color;var b=t.value.formatter,w="",C="";if(n?(r=t.total.color,u=t.total.fontSize,g=t.total.fontFamily,m=t.total.fontWeight,C=t.total.label,w=t.total.formatter(s)):1===s.globals.series.length&&(w=b(s.globals.series[0],s),C=s.globals.seriesNames[0]),C&&(C=t.name.formatter(C,t.total.show,s)),t.name.show){var T=a.drawText({x:h,y:d+parseFloat(t.name.offsetY),text:C,textAnchor:"middle",foreColor:r,fontSize:u,fontWeight:m,fontFamily:g});T.node.classList.add("apexcharts-datalabel-label"),e.add(T)}if(t.value.show){var _=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,l=a.drawText({x:h,y:d+_,text:w,textAnchor:"middle",foreColor:o,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});l.node.classList.add("apexcharts-datalabel-value"),e.add(l)}return e}},{key:"printInnerLabels",value:function(e,t,i,s){var a,n=this.w;s?a=void 0===e.name.color?n.globals.colors[parseInt(s.parentNode.getAttribute("rel"),10)-1]:e.name.color:n.globals.series.length>1&&e.total.show&&(a=e.total.color);var r=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,n),s||"function"!=typeof e.total.formatter||(i=e.total.formatter(n)),t=e.name.formatter(t,t===e.total.label,n),null!==r&&(r.textContent=t),null!==o&&(o.textContent=i),null!==r&&(r.style.fill=a)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,s=e.getAttribute("data:value"),a=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,a,s,e);var n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==n&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,s=new ne(this.ctx),a=i.config.plotOptions.polarArea.spokes;if(0!==a.strokeWidth){for(var n=[],r=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)n.push(W.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+r*o));n.forEach(function(h,d){var u=s.drawLine(h.x,h.y,t.centerX,t.centerY,Array.isArray(a.connectorColors)?a.connectorColors[d]:a.connectorColors);e.add(u)})}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0],i=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.select(".apexcharts-radialbar, .apexcharts-pie").members[0].add(i)}}}]),L}(),Ns=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var t=this.w;this.graphics=new ne(this.ctx),this.lineColorArr=void 0!==t.globals.stroke.colors?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight<t.globals.svgWidth?t.globals.gridHeight+1.5*t.globals.goldenPadding:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.logBase=t.config.yaxis[0].logBase,this.coreUtils=new st(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):t.globals.minY,this.polygons=t.config.plotOptions.radar.polygons,this.strokeWidth=t.config.stroke.show?t.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-t.config.chart.dropShadow.blur,t.config.xaxis.labels.show&&(this.size=this.size-t.globals.xAxisLabelsWidth/1.75),void 0!==t.config.plotOptions.radar.size&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return O(L,[{key:"draw",value:function(e){var t=this,i=this.w,s=new he(this.ctx),a=[],n=new li(this.ctx);e.length&&(this.dataPointsLen=e[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var d=i.globals.gridHeight/2+i.config.plotOptions.radar.offsetY,u=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(i.globals.gridWidth/2+i.config.plotOptions.radar.offsetX||0,", ").concat(d||0,")")}),g=[],m=null,b=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(C,T){var _=C.length===i.globals.dataPoints,l=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":_,seriesName:W.escapeString(i.globals.seriesNames[T]),rel:T+1,"data:realIndex":T});t.dataRadiusOfPercent[T]=[],t.dataRadius[T]=[],t.angleArr[T]=[],C.forEac
vendor: 19,478 bytes, line 1
1h(function(K,le){var pe=Math.abs(t.maxValue-t.minValue);K-=t.minValue,t.isLog&&(K=t.coreUtils.getLogVal(t.logBase,K,0)),t.dataRadiusOfPercent[T][le]=K/pe,t.dataRadius[T][le]=t.dataRadiusOfPercent[T][le]*t.size,t.angleArr[T][le]=le*t.disAngle}),g=t.getDataPointsPos(t.dataRadius[T],t.angleArr[T]);var f=t.createPaths(g,{x:0,y:0});m=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),b=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":T}),i.globals.delayedElements.push({el:m.node,index:T});var k={i:T,realIndex:T,animationDelay:T,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[T],strokeLineCap:i.config.stroke.lineCap},I=null;i.globals.previousPaths.length>0&&(I=t.getPreviousPath(T));for(var M=0;M<f.linePathsTo.length;M++){var N=t.graphics.renderPaths(Z(Z({},k),{},{pathFrom:null===I?f.linePathsFrom[M]:I,pathTo:f.linePathsTo[M],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[T]:t.strokeWidth,fill:"none",drawShadow:!1}));l.add(N);var Y=s.fillPath({seriesNumber:T}),F=t.graphics.renderPaths(Z(Z({},k),{},{pathFrom:null===I?f.areaPathsFrom[M]:I,pathTo:f.areaPathsTo[M],strokeWidth:0,fill:Y,drawShadow:!1}));i.config.chart.dropShadow.enabled&&new Qe(t.ctx).dropShadow(F,Object.assign({},i.config.chart.dropShadow,{noUserSpaceOnUse:!0}),T),l.add(F)}C.forEach(function(K,le){var pe=new Wt(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:T,dataPointIndex:le}),ve=t.graphics.drawMarker(g[le].x,g[le].y,pe);ve.attr("rel",le),ve.attr("j",le),ve.attr("index",T),ve.node.setAttribute("default-marker-size",pe.pSize);var Ae=t.graphics.group({class:"apexcharts-series-markers"});Ae&&Ae.add(ve),m.add(Ae),l.add(m);var Te=i.config.dataLabels;if(Te.enabled){var De=Te.formatter(i.globals.series[T][le],{seriesIndex:T,dataPointIndex:le,w:i});n.plotDataLabelsText({x:g[le].x,y:g[le].y,text:De,textAnchor:"middle",i:T,j:T,parent:b,offsetCorrection:!1,dataLabelsConfig:Z({},Te)})}l.add(b)}),a.push(l)}),this.drawPolygons({parent:u}),i.config.xaxis.labels.show){var w=this.drawXAxisTexts();u.add(w)}return a.forEach(function(C){u.add(C)}),u.add(this.yaxisLabels),u}},{key:"drawPolygons",value:function(e){for(var t=this,i=this.w,s=e.parent,a=new mt(this.ctx),n=i.globals.yAxisScale[0].result.reverse(),r=n.length,o=[],h=this.size/(r-1),d=0;d<r;d++)o[d]=h*d;o.reverse();var u=[],g=[];o.forEach(function(m,b){var w=W.getPolygonPos(m,t.dataPointsLen),C="";w.forEach(function(T,_){if(0===b){var l=t.graphics.drawLine(T.x,T.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[_]:t.polygons.connectorColors);g.push(l)}0===_&&t.yaxisLabelsTextsPos.push({x:T.x,y:T.y}),C+=T.x+","+T.y+" "}),u.push(C)}),u.forEach(function(m,b){var w=t.polygons.strokeColors,C=t.polygons.strokeWidth,T=t.graphics.drawPolygon(m,Array.isArray(w)?w[b]:w,Array.isArray(C)?C[b]:C,i.globals.radarPolygons.fill.colors[b]);s.add(T)}),g.forEach(function(m){s.add(m)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(m,b){var w=a.drawYAxisTexts(m.x,m.y,b,n[b]);t.yaxisLabels.add(w)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,i=t.config.xaxis.labels,s=this.graphics.group({class:"apexcharts-xaxis"}),a=W.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(n,r){var o=t.config.xaxis.labels.formatter,h=new li(e.ctx);if(a[r]){var d=e.getTextPos(a[r],e.size),u=o(n,{seriesIndex:-1,dataPointIndex:r,w:t});h.plotDataLabelsText({x:d.newX,y:d.newY,text:u,textAnchor:d.textAnchor,i:r,j:r,parent:s,className:"apexcharts-xaxis-label",color:Array.isArray(i.style.colors)&&i.style.colors[r]?i.style.colors[r]:"#a8a8a8",dataLabelsConfig:Z({textAnchor:d.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1}).on("click",function(g){if("function"==typeof t.config.chart.events.xAxisLabelClick){var m=Object.assign({},t,{labelIndex:r});t.config.chart.events.xAxisLabelClick(g,e.ctx,m)}})}}),s}},{key:"createPaths",value:function(e,t){var i=this,s=[],a=[],n=[],r=[];if(e.length){a=[this.graphics.move(t.x,t.y)],r=[this.graphics.move(t.x,t.y)];var o=this.graphics.move(e[0].x,e[0].y),h=this.graphics.move(e[0].x,e[0].y);e.forEach(function(d,u){o+=i.graphics.line(d.x,d.y),h+=i.graphics.line(d.x,d.y),u===e.length-1&&(o+="Z",h+="Z")}),s.push(o),n.push(h)}return{linePathsFrom:a,linePathsTo:s,areaPathsFrom:r,areaPathsTo:n}}},{key:"getTextPos",value:function(e,t){var i="middle",s=e.x,a=e.y;return Math.abs(e.x)>=10?e.x>0?(i="start",s+=10):e.x<0&&(i="end",s-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?a-=10:e.y>0&&(a+=10)),{textAnchor:i,newX:s,newY:a}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,s=0;s<t.globals.previousPaths.length;s++){var a=t.globals.previousPaths[s];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[s].paths[0]&&(i=t.globals.previousPaths[s].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var s=[],a=0;a<i;a++){var n={};n.x=e[a]*Math.sin(t[a]),n.y=-e[a]*Math.cos(t[a]),s.push(n)}return s}}]),L}(),ks=function(L){R(t,L);var e=xe(t);function t(i){var s;E(this,t),(s=e.call(this,i)).ctx=i,s.w=i.w,s.animBeginArr=[0],s.animDur=0;var a=s.w;return s.startAngle=a.config.plotOptions.radialBar.startAngle,s.endAngle=a.config.plotOptions.radialBar.endAngle,s.totalAngle=Math.abs(a.config.plotOptions.radialBar.endAngle-a.config.plotOptions.radialBar.startAngle),s.trackStartAngle=a.config.plotOptions.radialBar.track.startAngle,s.trackEndAngle=a.config.plotOptions.radialBar.track.endAngle,s.barLabels=s.w.config.plotOptions.radialBar.barLabels,s.donutDataLabels=s.w.config.plotOptions.radialBar.dataLabels,s.radialDataLabels=s.donutDataLabels,s.trackStartAngle||(s.trackStartAngle=s.startAngle),s.trackEndAngle||(s.trackEndAngle=s.endAngle),360===s.endAngle&&(s.endAngle=359.99),s.margin=parseInt(a.config.plotOptions.radialBar.track.margin,10),s.onBarLabelClick=s.onBarLabelClick.bind(et(s)),s}return O(t,[{key:"draw",value:function(i){var s=this.w,a=new ne(this.ctx),n=a.group({class:"apexcharts-radialbar"});if(s.globals.noData)return n;var r=a.group(),o=this.defaultSize/2,h=s.globals.gridWidth/2,d=this.defaultSize/2.05;s.config.chart.sparkline.enabled||(d=d-s.config.stroke.width-s.config.chart.dropShadow.blur);var u=s.globals.fill.colors;if(s.config.plotOptions.radialBar.track.show){var g=this.drawTracks({size:d,centerX:h,centerY:o,colorArr:u,series:i});r.add(g)}var m=this.drawArcs({size:d,centerX:h,centerY:o,colorArr:u,series:i}),b=360;s.config.plotOptions.radialBar.startAngle<0&&(b=this.totalAngle);var w=(360-b)/360;if(s.globals.radialSize=d-d*w,this.radialDataLabels.value.show){var C=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);s.globals.radialSize+=C*w}return r.add(m.g),"front"===s.config.plotOptions.radialBar.hollow.position&&(m.g.add(m.elHollow),m.dataLabels&&m.g.add(m.dataLabels)),n.add(r),n}},{key:"drawTracks",value:function(i){var s=this.w,a=new ne(this.ctx),n=a.group({class:"apexcharts-tracks"}),r=new Qe(this.ctx),o=new he(this.ctx),h=this.getStrokeWidth(i);i.size=i.size-h/2;for(var d=0;d<i.series.length;d++){var u=a.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(u),u.attr({rel:d+1}),i.size=i.size-h-this.margin;var g=s.config.plotOptions.radialBar.track,m=o.fillPath({seriesNumber:0,size:i.size,fillColors:Array.isArray(g.background)?g.background[d]:g.background,solid:!0}),b=this.trackStartAngle,w=this.trackEndAngle;Math.abs(w)+Math.abs(b)>=360&&(w=360-Math.abs(this.startAngle)-.1);var C=a.drawPath({d:"",stroke:m,strokeWidth:h*parseInt(g.strokeWidth,10)/100,fill:"none",strokeOpacity:g.opacity,classes:"apexcharts-radialbar-area"});g.dropShadow.enabled&&r.dropShadow(C,g.dropShadow),u.add(C),C.attr("id","apexcharts-radialbarTrack-"+d),this.animatePaths(C,{centerX:i.centerX,centerY:i.centerY,endAngle:w,startAngle:b,size:i.size,i:d,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:s.globals.easing})}return n}},{key:"drawArcs",value:function(i){var s=this.w,a=new ne(this.ctx),n=new he(this.ctx),r=new Qe(this.ctx),o=a.group(),h=this.getStrokeWidth(i);i.size=i.size-h/2;var d=s.config.plotOptions.radialBar.hollow.background,u=i.size-h*i.series.length-this.margin*i.series.length-h*parseInt(s.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,g=u-s.config.plotOptions.radialBar.hollow.margin;void 0!==s.config.plotOptions.radialBar.hollow.image&&(d=this.drawHollowImage(i,o,u,d));var m=this.drawHollow({size:g,centerX:i.centerX,centerY:i.centerY,fill:d||"transparent"});s.config.plotOptions.radialBar.hollow.dropShadow.enabled&&r.dropShadow(m,s.config.plotOptions.radialBar.hollow.dropShadow);var w=1;!this.radialDataLabels.total.show&&s.globals.series.length>1&&(w=0);var C=null;if(this.radialDataLabels.show){var T=s.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0];C=this.renderInnerDataLabels(T,this.radialDataLabels,{hollowSize:u,centerX:i.centerX,centerY:i.centerY,opacity:w})}"back"===s.config.plotOptions.radialBar.hollow.position&&(o.add(m),C&&o.add(C));var _=!1;s.config.plotOptions.radialBar.inverseOrder&&(_=!0);for(var l=_?i.series.length-1:0;_?l>=0:l<i.series.length;_?l--:l++){var f=a.group({class:"apexcharts-series apexcharts-radial-series",seriesName:W.escapeString(s.globals.seriesNames[l])});o.add(f),f.attr({rel:l+1,"data:realIndex":l}),this.ctx.series.addCollapsedClassToSeries(f,l),i.size=i.size-h-this.margin;var k=n.fillPath({seriesNumber:l,size:i.size,value:i.series[l]}),I=this.startAngle,M=void 0,N=W.negToZero(i.series[l]>100?100:i.series[l])/100,Y=Math.round(this.totalAngle*N)+this.startAngle,F=void 0;s.globals.dataChanged&&(M=this.startAngle,F=Math.round(this.totalAngle*W.negToZero(s.globals.previousPaths[l])/100)+M),Math.abs(Y)+Math.abs(I)>=360&&(Y-=.01),Math.abs(F)+Math.abs(M)>=360&&(F-=.01);var te=Y-I,oe=Array.isArray(s.config.stroke.dashArray)?s.config.stroke.dashArray[l]:s.config.stroke.dashArray,K=a.drawPath({d:"",stroke:k,strokeWidth:h,fill:"none",fillOpacity:s.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+l,strokeDashArray:oe});if(ne.setAttrs(K.node,{"data:angle":te,"data:value":i.series[l]}),s.config.chart.dropShadow.enabled&&r.dropShadow(K,s.config.chart.dropShadow,l),r.setSelectionFilter(K,0,l),this.addListeners(K,this.radialDataLabels),f.add(K),K.attr({index:0,j:l}),this.barLabels.enabled){var pe=W.polarToCartesian(i.centerX,i.centerY,i.size,I),ve=this.barLabels.formatter(s.globals.seriesNames[l],{seriesIndex:l,w:s}),Ae=["apexcharts-radialbar-label"];this.barLabels.onClick||Ae.push("apexcharts-no-click");var Te=this.barLabels.useSeriesColors?s.globals.colors[l]:s.config.chart.foreColor;Te||(Te=s.config.chart.foreColor);var De=pe.x+this.barLabels.offsetX,ze=pe.y+this.barLabels.offsetY,Xe=a.drawText({x:De,y:ze,text:ve,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:Te,cssClass:Ae.join(" ")});Xe.on("click",this.onBarLabelClick),Xe.attr({rel:l+1}),0!==I&&Xe.attr({"transform-origin":"".concat(De," ").concat(ze),transform:"rotate(".concat(I," 0 0)")}),f.add(Xe)}var Ke=0;!this.initialAnim||s.globals.resized||s.globals.dataChanged||(Ke=s.config.chart.animations.speed),s.globals.dataChanged&&(Ke=s.config.chart.animations.dynamicAnimation.speed),this.animDur=Ke/(1.2*i.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(K,{centerX:i.centerX,centerY:i.centerY,endAngle:Y,startAngle:I,prevEndAngle:F,prevStartAngle:M,size:i.size,i:l,totalItems:2,animBeginArr:this.animBeginArr,dur:Ke,shouldSetPrevPaths:!0,easing:s.globals.easing})}return{g:o,elHollow:m,dataLabels:C}}},{key:"drawHollow",value:function(i){var s=new ne(this.ctx).drawCircle(2*i.size);return s.attr({class:"apexcharts-radialbar-hollow",cx:i.centerX,cy:i.centerY,r:i.size,fill:i.fill}),s}},{key:"drawHollowImage",value:function(i,s,a,n){var r=this.w,o=new he(this.ctx),h=W.randomId(),d=r.config.plotOptions.radialBar.hollow.image;if(r.config.plotOptions.radialBar.hollow.imageClipped)o.clippedImgArea({width:a,height:a,image:d,patternID:"pattern".concat(r.globals.cuid).concat(h)}),n="url(#pattern".concat(r.globals.cuid).concat(h,")");else{var u=r.config.plotOptions.radialBar.hollow.imageWidth,g=r.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===u&&void 0===g){var m=r.globals.dom.Paper.image(d).loaded(function(w){this.move(i.centerX-w.width/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-w.height/2+r.config.plotOptions.radialBar.hollow.imageOffsetY)});s.add(m)}else{var b=r.globals.dom.Paper.image(d).loaded(function(w){this.move(i.centerX-u/2+r.config.plotOptions.radialBar.hollow.imageOffsetX,i.centerY-g/2+r.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(u,g)});s.add(b)}}return n}},{key:"getStrokeWidth",value:function(i){return i.size*(100-parseInt(this.w.config.plotOptions.radialBar.hollow.size,10))/100/(i.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(i){var s=parseInt(i.target.getAttribute("rel"),10)-1,a=this.barLabels.onClick,n=this.w;a&&a(n.globals.seriesNames[s],{w:n,seriesIndex:s})}}]),t}(Qi),As=function(L){R(t,L);var e=xe(t);function t(){return E(this,t),e.apply(this,arguments)}return O(t,[{key:"draw",value:function(i,s){var a=this.w,n=new ne(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=i,this.seriesRangeStart=a.globals.seriesRangeStart,this.seriesRangeEnd=a.globals.seriesRangeEnd,this.barHelpers.initVariables(i);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o<i.length;o++){var h,d,u,g,m=void 0,b=void 0,w=a.globals.comboCharts?s[o]:o,C=this.barHelpers.getGroupIndex(w).columnGroupIndex,T=n.group({class:"apexcharts-series",seriesName:W.escapeString(a.globals.seriesNames[w]),rel:o+1,"data:realIndex":w});this.ctx.series.addCollapsedClassToSeries(T,w),i[o].length>0&&(this.visibleI=this.visibleI+1);var _=0,l=0,f=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[w][0],f=w);var k=this.barHelpers.initialPositions();b=k.y,g=k.zeroW,m=k.x,l=k.barWidth,_=k.barHeight,h=k.xDivision,d=k.yDivision,u=k.zeroH;for(var I=n.group({class:"apexcharts-datalabels","data:realIndex":w}),M=n.group({class:"apexcharts-rangebar-goals-markers"}),N=0;N<a.globals.dataPoints;N++){var Y=this.barHelpers.getStrokeWidth(o,N,w),F=this.seriesRangeStart[o][N],te=this.seriesRangeEnd[o][N],oe=null,K=null,le=null,pe={x:m,y:b,strokeWidth:Y,elSeries:T},ve=this.seriesLen;if(a.config.plotOptions.bar.rangeBarGroupRows&&(ve=1),void 0===a.config.series[o].data[N])break;if(this.isHorizontal){if(le=b+_*this.visibleI,a.config.series[o].data[N].x){var Te=this.detectOverlappingBars({i:o,j:N,barYPosition:le,srty:(d-_*ve)/2,barHeight:_,yDivision:d,initPositions:k});_=Te.barHeight,le=Te.barYPosition}l=(oe=this.drawRangeBarPaths(Z({indexes:{i:o,j:N,realIndex:w},barHeight:_,barYPosition:le,zeroW:g,yDivision:d,y1:F,y2:te},pe))).barWidth}else{if(a.globals.isXNumeric&&(m=(a.globals.seriesX[o][N]-a.globals.minX)/this.xRatio-l/2),K=m+l*this.visibleI,a.config.series[o].data[N].x){var ze=this.detectOverlappingBars({i:o,j:N,barXPosition:K,srtx:(h-l*ve)/2,barWidth:l,xDivision:h,initPositions:k});l=ze.barWidth,K=ze.barXPosition}_=(oe=this.drawRangeColumnPaths(Z({indexes:{i:o,j:N,realIndex:w,translationsIndex:f},barWidth:l,barXPosition:K,zeroH:u,xDivision:h},pe))).barHeight}var Xe=this.barHelpers.drawGoalLine({barXPosition:oe.barXPosition,barYPosition:le,goalX:oe.goalX,goalY:oe.goalY,barHeight:_,barWidth:l});Xe&&M.add(Xe),b=oe.y,m=oe.x;var Ke=this.barHelpers.getPathFillColor(i,o,N,w);this.renderSeries({realIndex:w,pathFill:Ke,lineFill:a.globals.stroke.colors[w],j:N,i:o,x:m,y:b,y1:F,y2:te,pathFrom:oe.pathFrom,pathTo:oe.pathTo,strokeWidth:Y,elSeries:T,series:i,barHeight:_,barWidth:l,barXPosition:K,barYPosition:le,columnGroupIndex:C,elDataLabelsWrap:I,elGoalsMarkers:M,visibleSeries:this.visibleI,type:"rangebar"})}r.add(T)}return r}},{key:"detectOverlappingBars",value:function(i){var s=i.i,a=i.j,n=i.barYPosition,r=i.barXPosition,o=i.srty,h=i.srtx,d=i.barHeight,u=i.barWidth,g=i.yDivision,m=i.xDivision,b=i.initPositions,w=this.w,C=[],T=w.config.series[s].data[a].rangeName,_=w.config.series[s].data[a].x,l=Array.isArray(_)?_.join(" "):_,f=w.globals.labels.map(function(I){return Array.isArray(I)?I.join(" "):I}).indexOf(l),k=w.globals.seriesRange[s].findIndex(function(I){return I.x===l&&I.overlaps.length>0});return this.isHorizontal?(n=w.config.plotOptions.bar.rangeBarGroupRows?o+g*f:o+d*this.visibleI+g*f,k>-1&&!w.config.plotOptions.bar.rangeBarOverlap&&(C=w.globals.seriesRange[s][k].overlaps).indexOf(T)>-1&&(n=(d=b.barHeight/C.length)*this.visibleI+g*(100-parseInt(this.barOptions.barHeight,10))/100/2+d*(this.visibleI+C.indexOf(T))+g*f)):(f>-1&&!w.globals.timescaleLabels.length&&(r=w.config.plotOptions.bar.rangeBarGroupRows?h+m*f:h+u*this.visibleI+m*f),k>-1&&!w.config.plotOptions.bar.rangeBarOverlap&&(C=w.globals.seriesRange[s][k].overlaps).indexOf(T)>-1&&(r=(u=b.barWidth/C.length)*this.visibleI+m*(100-parseInt(this.barOptions.barWidth,10))/100/2+u*(this.visibleI+C.indexOf(T))+m*f)),{barYPosition:n,barXPosition:r,barHeight:d,barWidth:u}}},{key:"drawRangeColumnPaths",value:function(i){var s=i.indexes,a=i.x,n=i.xDivision,r=i.barWidth,o=i.barXPosition,h=i.zeroH,d=this.w,u=s.i,g=s.j,m=s.realIndex,b=s.translationsIndex,w=this.yRatio[b],C=this.getRangeValue(m,g),T=Math.min(C.start,C.end),_=Math.max(C.start,C.end);null==this.series[u][g]?T=h:(T=h-T/w,_=h-_/w);var l=Math.abs(_-T),f=this.barHelpers.getColumnPaths({barXPosition:o,barWidth:r,y1:T,y2:_,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:m,i:m,j:g,w:d});if(d.globals.isXNumeric){var k=this.getBarXForNumericXAxis({x:a,j:g,realIndex:m,barWidth:r});a=k.x,o=k.barXPosition}else a+=n;return{pathTo:f.pathTo,pathFrom:f.pathFrom,barHeight:l,x:a,y:C.start<0&&C.end<0?T:_,goalY:this.barHelpers.getGoalValues("y",null,h,u,g,b),barXPosition:o}}},{key:"preventBarOverflow",value:function(i){var s=this.w;return i<0&&(i=0),i>s.globals.gridWidth&&(i=s.globals.gridWidth),i}},{key:"drawRangeBarPaths",value:function(i){var s=i.indexes,a=i.y,r=i.y2,o=i.yDivision,h=i.barHeight,d=i.barYPosition,u=i.zeroW,g=this.w,m=s.realIndex,b=s.j,w=this.preventBarOverflow(u+i.y1/this.invertedYRatio),C=this.preventBarOverflow(u+r/this.invertedYRatio),T=this.getRangeValue(m,b),_=Math.abs(C-w),l=this.barHelpers.getBarpaths({barYPosition:d,barHeight:h,x1:w,x2:C,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:m,realIndex:m,j:b,w:g});return g.globals.isXNumeric||(a+=o),{pathTo:l.pathTo,pathFrom:l.pathFrom,barWidth:_,x:T.start<0&&T.end<0?w:C,goalX:this.barHelpers.getGoalValues("x",u,null,m,b),y:a}}},{key:"getRangeValue",value:function(i,s){var a=this.w;return{start:a.globals.seriesRangeStart[i][s],end:a.globals.seriesRangeEnd[i][s]}}}]),t}(ti),Xt=function(){function L(e){E(this,L),this.w=e.w,this.lineCtx=e}return O(L,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[e])&&new st(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var s=t[e].slice();s[s.length-1]=s[s.length-1]+1e-6,t[e]=s}return t}},{key:"calculatePoints",value:function(e){var t=e.series,s=e.x,a=e.
1y,n=e.i,r=e.j,o=e.prevY,h=this.w,d=[],u=[];if(0===r){var g=this.lineCtx.categoryAxisCorrection+h.config.markers.offsetX;h.globals.isXNumeric&&(g=(h.globals.seriesX[e.realIndex][0]-h.globals.minX)/this.lineCtx.xRatio+h.config.markers.offsetX),d.push(g),u.push(W.isNumber(t[n][0])?o+h.config.markers.offsetY:null),d.push(s+h.config.markers.offsetX),u.push(W.isNumber(t[n][r+1])?a+h.config.markers.offsetY:null)}else d.push(s+h.config.markers.offsetX),u.push(W.isNumber(t[n][r+1])?a+h.config.markers.offsetY:null);return{x:d,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,s=e.realIndex,a=this.w,n=0;n<a.globals.previousPaths.length;n++){var r=a.globals.previousPaths[n];("line"===r.type||"area"===r.type)&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(s,10)&&("line"===r.type?(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[n].paths[0].d):"area"===r.type&&(this.lineCtx.appendPathFrom=!1,i=a.globals.previousPaths[n].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[n].paths[1]&&(t=a.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t,i,s,a=e.i,n=e.realIndex,r=e.series,o=e.prevY,h=e.lineYPosition,d=e.translationsIndex,u=this.w,g=u.config.chart.stacked&&!u.globals.comboCharts||u.config.chart.stacked&&u.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[n])||void 0===t?void 0:t.type)||"column"===(null===(i=this.w.config.series[n])||void 0===i?void 0:i.type));if(void 0!==(null===(s=r[a])||void 0===s?void 0:s[0]))o=(h=g&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-r[a][0]/this.lineCtx.yRatio[d]+2*(this.lineCtx.isReversed?r[a][0]/this.lineCtx.yRatio[d]:0);else if(g&&a>0&&void 0===r[a][0])for(var m=a-1;m>=0;m--)if(null!=r[m][0]){o=h=this.lineCtx.prevSeriesY[m][0];break}return{prevY:o,lineYPosition:h}}}]),L}(),Ki=function(L,e,t){var i=L.slice(e,t);if(e){if(t-e>1&&i[1].length<6){var s=i[0].length;i[1]=[2*i[0][s-2]-i[0][s-4],2*i[0][s-1]-i[0][s-3]].concat(i[1])}i[0]=i[0].slice(-2)}return i};function cs(L,e){return(e[1]-L[1])/(e[0]-L[0])}var hs=function(){function L(e,t,i){E(this,L),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new Vi(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Xt(this),this.markers=new Wt(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return O(L,[{key:"draw",value:function(e,t,i,s){var a,n=this.w,r=new ne(this.ctx),o=n.globals.comboCharts?t:n.config.chart.type,h=r.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),d=new st(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=d.getLogSeries(e),this.yRatio=d.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var u=[],g=0;g<e.length;g++){e=this.lineHelpers.sameValueSeriesFix(g,e);var m=n.globals.comboCharts?i[g]:g,b=this.yRatio.length>1?m:0;this._initSerieVariables(e,g,m);var w=[],C=[],T=[],_=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,m),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(_=(n.globals.seriesX[m][0]-n.globals.minX)/this.xRatio),T.push(_);var l,f=_,k=void 0,I=f,M=this.zeroY,N=this.zeroY;M=this.lineHelpers.determineFirstPrevY({i:g,realIndex:m,series:e,prevY:M,lineYPosition:0,translationsIndex:b}).prevY,w.push("monotoneCubic"===n.config.stroke.curve&&null===e[g][0]?null:M),l=M,"rangeArea"===o&&(k=N=this.lineHelpers.determineFirstPrevY({i:g,realIndex:m,series:s,prevY:N,lineYPosition:0,translationsIndex:b}).prevY,C.push(null!==w[0]?N:null));var Y=this._calculatePathsFrom({type:o,series:e,i:g,realIndex:m,translationsIndex:b,prevX:I,prevY:M,prevY2:N}),F=[w[0]],te=[C[0]],oe={type:o,series:e,realIndex:m,translationsIndex:b,i:g,x:_,y:1,pX:f,pY:l,pathsFrom:Y,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:T,yArrj:w,y2Arrj:C,seriesRangeEnd:s}
1,K=this._iterateOverDataPoints(Z(Z({},oe),{},{iterations:"rangeArea"===o?e[g].length-1:void 0,isRangeStart:!0}));if("rangeArea"===o){for(var le=this._calculatePathsFrom({series:s,i:g,realIndex:m,prevX:I,prevY:N}),pe=this._iterateOverDataPoints(Z(Z({},oe),{},{series:s,xArrj:[_],yArrj:F,y2Arrj:te,pY:k,areaPaths:K.areaPaths,pathsFrom:le,iterations:s[g].length-1,isRangeStart:!1})),ve=K.linePaths.length/2,Ae=0;Ae<ve;Ae++)K.linePaths[Ae]=pe.linePaths[Ae+ve]+K.linePaths[Ae];K.linePaths.splice(ve),K.pathFromLine=pe.pathFromLine+K.pathFromLine}else K.pathFromArea+="z";this._handlePaths({type:o,realIndex:m,i:g,paths:K}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),u.push(this.elSeries)}if(void 0!==(null===(a=n.config.series[0])||void 0===a?void 0:a.zIndex)&&u.sort(function(ze,Xe){return Number(ze.node.getAttribute("zIndex"))-Number(Xe.node.getAttribute("zIndex"))}),n.config.chart.stacked)for(var Te=u.length-1;Te>=0;Te--)h.add(u[Te]);else for(var De=0;De<u.length;De++)h.add(u[De]);return h}},{key:"_initSerieVariables",value:function(e,t,i){var s=this.w,a=new ne(this.ctx);this.xDivision=s.globals.gridWidth/(s.globals.dataPoints-("on"===s.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(s.config.stroke.width)?s.config.stroke.width[i]:s.config.stroke.width;var n=0;this.yRatio.length>1&&(this.yaxisIndex=s.globals.seriesYAxisReverseMap[i],n=i),this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed,this.zeroY=s.globals.gridHeight-this.baseLineY[n]-(this.isReversed?s.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[n]:0),this.areaBottomY=this.zeroY,(this.zeroY>s.globals.gridHeight||"end"===s.config.plotOptions.area.fillTo)&&(this.areaBottomY=s.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=a.group({class:"apexcharts-series",zIndex:void 0!==s.config.series[i].zIndex?s.config.series[i].zIndex:i,seriesName:W.escapeString(s.globals.seriesNames[i])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),this.elDataLabelsWrap=a.group({class:"apexcharts-datalabels","data:realIndex":i}),this.elSeries.attr({"data:longestSeries":e[t].length===s.globals.dataPoints,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,s,a,n=e.type,r=e.series,o=e.i,h=e.realIndex,d=e.translationsIndex,u=e.prevX,g=e.prevY,m=e.prevY2,b=this.w,w=new ne(this.ctx);if(null===r[o][0]){for(var C=0;C<r[o].length;C++)if(null!==r[o][C]){t=w.move(u=this.xDivision*C,g=this.zeroY-r[o][C]/this.yRatio[d]),i=w.move(u,this.areaBottomY);break}}else t=w.move(u,g),"rangeArea"===n&&(t=w.move(u,m)+w.line(u,g)),i=w.move(u,this.areaBottomY)+w.line(u,g);if(s=w.move(0,this.zeroY)+w.line(0,this.zeroY),a=w.move(0,this.zeroY)+w.line(0,this.zeroY),b.globals.previousPaths.length>0){var T=this.lineHelpers.checkPreviousPaths({pathFromLine:s,pathFromArea:a,realIndex:h});s=T.pathFromLine,a=T.pathFromArea}return{prevX:u,prevY:g,linePath:t,areaPath:i,pathFromLine:s,pathFromArea:a}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,s=e.i,a=e.paths,n=this.w,r=new ne(this.ctx),o=new he(this.ctx);this.prevSeriesY.push(a.yArrj),n.globals.seriesXvalues[i]=a.xArrj,n.globals.seriesYvalues[i]=a.yArrj;var h=n.config.forecastDataPoints;if(h.count>0&&"rangeArea"!==t){var d=n.globals.seriesXvalues[i][n.globals.seriesXvalues[i].length-h.count-1],u=r.drawRect(d,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(u.node);var g=r.drawRect(0,0,d,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var m={i:s,realIndex:i,animationDelay:s,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var b=o.fillPath({seriesNumber:i}),w=0;w<a.areaPaths.length;w++){var C=r.renderPaths(Z(Z({},m),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[w],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:b}));this.elSeries.add(C)}if(n.config.stroke.show&&!this.pointsChart){var T=null;if("line"===t)T=o.fillPath({seriesNumber:i,i:s});else if("solid"===n.config.stroke.fill.type)T=n.globals.stroke.colors[i];else{var _=n.config.fill;n.config.fill=n.config.stroke.fill,T=o.fillPath({seriesNumber:i,i:s}),n.config.fill=_}for(var l=0;l<a.linePaths.length;l++){var f=T;"rangeArea"===t&&(f=o.fillPath({seriesNumber:i}));var k=Z(Z({},m),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[l],stroke:T,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:"rangeArea"===t?f:"none"}),I=r.renderPaths(k);if(this.elSeries.add(I),I.attr("fill-rule","evenodd"),h.count>0&&"rangeArea"!==t){var M=r.renderPaths(k);M.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&M.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(M),M.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),I.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,i,s=this,a=e.type,n=e.series,r=e.iterations,o=e.realIndex,h=e.translationsIndex,d=e.i,u=e.x,g=e.y,m=e.pX,b=e.pY,w=e.pathsFrom,C=e.linePaths,T=e.areaPaths,_=e.seriesIndex,l=e.lineYPosition,f=e.xArrj,k=e.yArrj,I=e.y2Arrj,M=e.isRangeStart,N=e.seriesRangeEnd,Y=this.w,F=new ne(this.ctx),te=this.yRatio,oe=w.prevY,K=w.linePath,le=w.areaPath,pe=w.pathFromLine,ve=w.pathFromArea,Ae=W.isNumber(Y.globals.minYArr[o])?Y.globals.minYArr[o]:Y.globals.minY;r||(r=Y.globals.dataPoints>1?Y.globals.dataPoints-1:Y.globals.dataPoints);var Te=function(vt,bt){return bt-vt/te[h]+2*(s.isReversed?vt/te[h]:0)},De=g,ze=Y.config.chart.stacked&&!Y.globals.comboCharts||Y.config.chart.stacked&&Y.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[o])||void 0===t?void 0:t.type)||"column"===(null===(i=this.w.config.series[o])||void 0===i?void 0:i.type)),Xe=Y.config.stroke.curve;Array.isArray(Xe)&&(Xe=Array.isArray(_)?Xe[_[d]]:Xe[d]);for(var Ke,tt=0,Re=0;Re<r;Re++){var Ct=null==n[d][Re+1];if(Y.globals.isXNumeric){var Ve=Y.globals.seriesX[o][Re+1];void 0===Y.globals.seriesX[o][Re+1]&&(Ve=Y.globals.seriesX[o][r-1]),u=(Ve-Y.globals.minX)/this.xRatio}else u+=this.xDivision;l=ze&&d>0&&Y.globals.collapsedSeries.length<Y.config.series.length-1?this.prevSeriesY[function(vt){for(var bt=vt;bt>0;bt--){if(!(Y.globals.collapsedSeriesIndices.indexOf(_?.[bt]||bt)>-1))return bt;bt--}return 0}(d-1)][Re+1]:this.zeroY,Ct?g=Te(Ae,l):(g=Te(n[d][Re+1],l),"rangeArea"===a&&(De=Te(N[d][Re+1],l))),f.push(u),!Ct||"smooth"!==Y.config.stroke.curve&&"monotoneCubic"!==Y.config.stroke.curve?(k.push(g),I.push(De)):(k.push(null),I.push(null));var Be=this.lineHelpers.calculatePoints({series:n,x:u,y:g,realIndex:o,i:d,j:Re,prevY:oe}),qe=this._createPaths({type:a,series:n,i:d,realIndex:o,j:Re,x:u,y:g,y2:De,xArrj:f,yArrj:k,y2Arrj:I,pX:m,pY:b,pathState:tt,segmentStartX:Ke,linePath:K,areaPath:le,linePaths:C,areaPaths:T,curve:Xe,isRangeStart:M});T=qe.areaPaths,C=qe.linePaths,m=qe.pX,b=qe.pY,tt=qe.pathState,Ke=qe.segmentStartX,le=qe.areaPath,K=qe.linePath,!this.appendPathFrom||"monotoneCubic"===Xe&&"rangeArea"===a||(pe+=F.line(u,this.zeroY),ve+=F.line(u,this.zeroY)),this.handleNullDataPoints(n,Be,d,Re,o),this._handleMarkersAndLabels({type:a,pointsPos:Be,i:d,j:Re,realIndex:o,isRangeStart:M})}return{yArrj:k,xArrj:f,pathFromArea:ve,areaPaths:T,pathFromLine:pe,linePaths:C,linePath:K,areaPath:le}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,i=e.pointsPos,s=e.isRangeStart,a=e.i,n=e.j,r
1=e.realIndex,o=this.w,h=new li(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:r,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var d=this.markers.plotChartMarkers(i,r,n+1);null!==d&&this.elPointsMain.add(d)}var u=h.drawDataLabel({type:t,isRangeStart:s,pos:i,i:r,j:n+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var I,t=e.type,i=e.series,s=e.i,a=e.j,n=e.x,r=e.y,o=e.xArrj,h=e.yArrj,d=e.y2,u=e.y2Arrj,g=e.pX,m=e.pY,b=e.pathState,w=e.segmentStartX,C=e.linePath,T=e.areaPath,_=e.linePaths,l=e.areaPaths,f=e.curve,k=e.isRangeStart,M=new ne(this.ctx),N=this.areaBottomY,Y="rangeArea"===t,F="rangeArea"===t&&k;switch(f){case"monotoneCubic":var te=k?h:u;switch(b){case 0:if(null===te[a+1])break;b=1;case 1:if(!(Y?o.length===i[s].length:a===i[s].length-2))break;case 2:var oe=k?o:o.slice().reverse(),K=k?te:te.slice().reverse(),le=(I=K,oe.map(function(Ve,Be){return[Ve,I[Be]]}).filter(function(Ve){return null!==Ve[1]})),pe=le.length>1?function(L){var e=function(L){for(var e,t,i,s,a=function(d){for(var u=[],g=d[0],m=d[1],b=u[0]=cs(g,m),w=1,C=d.length-1;w<C;w++)u[w]=.5*(b+(b=cs(g=m,m=d[w+1])));return u[w]=b,u}(L),n=L.length-1,r=[],o=0;o<n;o++)i=cs(L[o],L[o+1]),Math.abs(i)<1e-6?a[o]=a[o+1]=0:(s=(e=a[o]/i)*e+(t=a[o+1]/i)*t)>9&&(s=3*i/Math.sqrt(s),a[o]=s*e,a[o+1]=s*t);for(var h=0;h<=n;h++)s=(L[Math.min(n,h+1)][0]-L[Math.max(0,h-1)][0])/(6*(1+a[h]*a[h])),r.push([s||0,a[h]*s||0]);return r}(L),t=L[1],i=L[0],s=[],a=e[1],n=e[0];s.push(i,[i[0]+n[0],i[1]+n[1],t[0]-a[0],t[1]-a[1],t[0],t[1]]);for(var r=2,o=e.length;r<o;r++){var h=L[r],d=e[r];s.push([h[0]-d[0],h[1]-d[1],h[0],h[1]])}return s}(le):le,ve=[];Y&&(F?l=le:ve=l.reverse());var Ae=0,Te=0;if(function(Ve,Be){for(var qe=function(Ni){var pt=[],Zt=0;return Ni.forEach(function(Ji){null!==Ji?Zt++:Zt>0&&(pt.push(Zt),Zt=0)}),Zt>0&&pt.push(Zt),pt}(Ve),vt=[],bt=0,Ut=0;bt<qe.length;Ut+=qe[bt++])vt[bt]=Ki(Be,Ut,Ut+qe[bt]);return vt}(K,pe).forEach(function(Ve){Ae++;var Be=function(bt){for(var Ut="",Ni=0;Ni<bt.length;Ni++){var pt=bt[Ni],Zt=pt.length;Zt>4?(Ut+="C".concat(pt[0],", ").concat(pt[1]),Ut+=", ".concat(pt[2],", ").concat(pt[3]),Ut+=", ".concat(pt[4],", ").concat(pt[5])):Zt>2&&(Ut+="S".concat(pt[0],", ").concat(pt[1]),Ut+=", ".concat(pt[2],", ").concat(pt[3]))}return Ut}(Ve),qe=Te,vt=(Te+=Ve.length)-1;F?C=M.move(le[qe][0],le[qe][1])+Be:Y?C=M.move(ve[qe][0],ve[qe][1])+M.line(le[qe][0],le[qe][1])+Be+M.line(ve[vt][0],ve[vt][1]):(C=M.move(le[qe][0],le[qe][1])+Be,T=C+M.line(le[vt][0],N)+M.line(le[qe][0],N)+"z",l.push(T)),_.push(C)}),Y&&Ae>1&&!F){var De=_.slice(Ae).reverse();_.splice(Ae),De.forEach(function(Ve){return _.push(Ve)})}b=0}break;case"smooth":var ze=.35*(n-g);if(null===i[s][a])b=0;else switch(b){case 0:if(w=g,C=F?M.move(g,u[a])+M.line(g,m):M.move(g,m),T=M.move(g,m),b=1,a<i[s].length-2){var Xe=M.curve(g+ze,m,n-ze,r,n,r);C+=Xe,T+=Xe;break}case 1:if(null===i[s][a+1])C+=F?M.line(g,d):M.move(g,m),T+=M.line(g,N)+M.line(w,N)+"z",_.push(C),l.push(T),b=-1;else{var Ke=M.curve(g+ze,m,n-ze,r,n,r);C+=Ke,T+=Ke,a>=i[s].length-2&&(F&&(C+=M.curve(n,r,n,r,n,d)+M.move(n,d)),T+=M.curve(n,r,n,r,n,N)+M.line(w,N)+"z",_.push(C),l.push(T),b=-1)}}g=n,m=r;break;default:var tt=function(Ve,Be,qe){var vt=[];switch(Ve){case"stepline":vt=M.line(Be,null,"H")+M.line(null,qe,"V");break;case"linestep":vt=M.line(null,qe,"V")+M.line(Be,null,"H");break;case"straight":vt=M.line(Be,qe)}return vt};if(null===i[s][a])b=0;else switch(b){case 0:if(w=g,C=F?M.move(g,u[a])+M.line(g,m):M.move(g,m),T=M.move(g,m),b=1,a<i[s].length-2){var Re=tt(f,n,r);C+=Re,T+=Re;break}case 1:if(null===i[s][a+1])C+=F?M.line(g,d):M.move(g,m),T+=M.line(g,N)+M.line(w,N)+"z",_.push(C),l.push(T),b=-1;else{var Ct=tt(f,n,r);C+=Ct,T+=Ct,a>=i[s].length-2&&(F&&(C+=M.line(n,d)),T+=M.line(n,N)+M.line(w,N)+"z",_.push(C),l.push(T),b=-1)}}g=n,m=r}return{linePaths:_,areaPaths:l,pX:g,pY:m,pathState:b,segmentStartX:w,linePath:C,areaPath:T}}},{key:"handleNullDataPoints",value:function(e,t,i,s,a){var n=this.w;if(null===e[i][s]&&n.config.markers.showNullDataPoints||1===e[i].length){var r=this.strokeWidth-n.config.markers.strokeWidth/2;r>0||(r=0);var o=this.markers.plotChartMarkers(t,a,s+1,r,!0);null!==o&&this.elPointsMain.add(o)}}}]),L}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function L(r,o,h,d){this.xoffset=r,this.yoffset=o,this.height=d,this.width=h,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(u){var g,m=[],b=this.xoffset,w=this.yoffset,C=a(u)/this.height,T=a(u)/this.width;if(this.width>=this.height)for(g=0;g<u.length;g++)m.push([b,w,b+C,w+u[g]/C]),w+=u[g]/C;else for(g=0;g<u.length;g++)m.push([b,w,b+u[g]/T,w+T]),b+=u[g]/T;return m},this.cutArea=function(u){var g;if(this.width>=this.height){var m=u/this.height;g=new L(this.xoffset+m,this.yoffset,this.width-m,this.height)}else{var w=u/this.width;g=new L(this.xoffset,this.yoffset+w,this.width,this.height-w)}return g}}function e(r,o,h,d,u){return d=void 0===d?0:d,u=void 0===u?0:u,function(m){var b,w,C=[];for(b=0;b<m.length;b++)for(w=0;w<m[b].length;w++)C.push(m[b][w]);return C}(t(function(m,b){var w,C=[],T=b/a(m);for(w=0;w<m.length;w++)C[w]=m[w]*T;return C}(r,o*h),[],new L(d,u,o,h),[]))}function t(r,o,h,d){var u,g,m,b,w,C,T;if(0!==r.length)return u=h.shortestEdge(),w=g=r[0],C=u,0===(b=o).length||((T=b.slice()).push(w),i(b,C)>=i(T,C))?(o.push(g),t(r.slice(1),o,h,d)):(m=h.cutArea(a(o),d),d.push(h.getCoordinates(o)),t(r,[],m,d)),d;d.push(h.getCoordinates(o))}function i(r,o){var h=Math.min.apply(Math,r),d=Math.max.apply(Math,r),u=a(r);return Math.max(Math.pow(o,2)*d/Math.pow(u,2),Math.pow(u,2)/(Math.pow(o,2)*h))}function s(r){return r&&r.constructor===Array}function a(r){var o,h=0;for(o=0;o<r.length;o++)h+=r[o];return h}function n(r){var o,h=0;
vendor: 3,626 bytes, line 1
1if(s(r[0]))for(o=0;o<r.length;o++)h+=n(r[o]);else h=a(r);return h}return function r(o,h,d,u,g){u=void 0===u?0:u,g=void 0===g?0:g;var m,b,w=[],C=[];if(s(o[0])){for(b=0;b<o.length;b++)w[b]=n(o[b]);for(m=e(w,h,d,u,g),b=0;b<o.length;b++)C.push(r(o[b],m[b][2]-m[b][0],m[b][3]-m[b][1],m[b][0],m[b][1]))}else C=e(o,h,d,u,g);return C}}();var ii,di,Di=function(){function L(e,t){E(this,L),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new zi(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return O(L,[{key:"draw",value:function(e){var t=this,i=this.w,s=new ne(this.ctx),a=new he(this.ctx),n=s.group({class:"apexcharts-treemap"});if(i.globals.noData)return n;var r=[];return e.forEach(function(o){var h=o.map(function(d){return Math.abs(d)});r.push(h)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(o,h){o.data.forEach(function(d){Array.isArray(t.labels[h])||(t.labels[h]=[]),t.labels[h].push(d.x)})}),window.TreemapSquared.generate(r,i.globals.gridWidth,i.globals.gridHeight).forEach(function(o,h){var d=s.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:W.escapeString(i.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(i.config.chart.dropShadow.enabled){var u=i.config.chart.dropShadow;new Qe(t.ctx).dropShadow(n,u,h)}var g=s.group({class:"apexcharts-data-labels"});o.forEach(function(m,b){var w=m[0],C=m[1],T=m[2],_=m[3],l=s.drawRect(w,C,T-w,_-C,i.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?k:i.globals.stroke.colors[h]);l.attr({cx:w,cy:C,index:h,i:h,j:b,width:T-w,height:_-C});var f=t.helpers.getShadeColor(i.config.chart.type,h,b,t.negRange),k=f.color;void 0!==i.config.series[h].data[b]&&i.config.series[h].data[b].fillColor&&(k=i.config.series[h].data[b].fillColor);var I=a.fillPath({color:k,seriesNumber:h,dataPointIndex:b});l.node.classList.add("apexcharts-treemap-rect"),l.attr({fill:I}),t.helpers.addListeners(l);var M={x:w+(T-w)/2,y:C+(_-C)/2,width:0,height:0},N={x:w,y:C,width:T-w,height:_-C};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var Y=1;i.globals.resized||(Y=i.config.chart.animations.speed),t.animateTreemap(l,M,N,Y)}i.globals.dataChanged&&t.dynamicAnim.enabled&&i.globals.shouldAnimate&&(i.globals.previousPaths[h]&&i.globals.previousPaths[h][b]&&i.globals.previousPaths[h][b].rect&&(M=i.globals.previousPaths[h][b].rect),t.animateTreemap(l,M,N,t.dynamicAnim.speed));var te=t.getFontSize(m),oe=i.config.dataLabels.formatter(t.labels[h][b],{value:i.globals.series[h][b],seriesIndex:h,dataPointIndex:b,w:i});"truncate"===i.config.plotOptions.treemap.dataLabels.format&&(te=parseInt(i.config.dataLabels.style.fontSize,10),oe=t.truncateLabels(oe,te,w,C,T,_));var K=t.helpers.calculateDataLabels({text:oe,x:(w+T)/2,y:(C+_)/2+t.strokeWidth/2+te/3,i:h,j:b,colorProps:f,fontSize:te,series:e});i.config.dataLabels.enabled&&K&&t.rotateToFitLabel(K,te,oe,w,C,T,_),d.add(l),null!==K&&d.add(K)}),d.add(g),n.add(d)}),n}},{key:"getFontSize",value:function(e){var n,t=this.w,r=function o(h){var d,u=0;if(Array.isArray(h[0]))for(d=0;d<h.length;d++)u+=o(h[d]);else for(d=0;d<h.length;d++)u+=h[d].length;return u}(this.labels)/function o(h){var d,u=0;if(Array.isArray(h[0]))for(d=0;d<h.length;d++)u+=o(h[d]);else for(d=0;d<h.length;d++)u+=1;return u}(this.labels);return n=Math.pow((e[2]-e[0])*(e[3]-e[1]),.5),Math.min(n/r,parseInt(t.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,i,s,a,n,r){var o=new ne(this.ctx),h=o.getTextRects(i,t);if(h.width+this.w.config.stroke.width+5>
1n-s&&h.width<=r-a){var d=o.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(d.x," ").concat(d.y,") translate(").concat(h.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,i,s,a,n){var r=new ne(this.ctx),o=r.getTextRects(e,t).width+this.w.config.stroke.width+5>a-i&&n-s>a-i?n-s:a-i,h=r.getTextBasedOnMaxWidth({text:e,maxWidth:o,fontSize:t});return e.length!==h.length&&o/t<5?"":h}},{key:"animateTreemap",value:function(e,t,i,s){var a=new gt(this.ctx);a.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:i.x,y:i.y,width:i.width,height:i.height},s,function(){a.animationCompleted(e)})}}]),L}(),ui=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return O(L,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,s=this.w;if(s.globals.allSeriesCollapsed)return s.globals.labels=[],s.globals.timescaleLabels=[],[];var a=new ct(this.ctx),n=(t-e)/864e5;this.determineInterval(n),s.globals.disableZoomIn=!1,s.globals.disableZoomOut=!1,n<.00011574074074074075?s.globals.disableZoomIn=!0:n>5e4&&(s.globals.disableZoomOut=!0);var r=a.getTimeUnitsfromTimestamp(e,t,this.utc),o=s.globals.gridWidth/n,h=o/24,d=h/60,u=d/60,g=Math.floor(24*n),m=Math.floor(1440*n),b=Math.floor(86400*n),w=Math.floor(n),C=Math.floor(n/30),T=Math.floor(n/365),_={minMillisecond:r.minMillisecond,minSecond:r.minSecond,minMinute:r.minMinute,minHour:r.minHour,minDate:r.minDate,minMonth:r.minMonth,minYear:r.minYear},l={firstVal:_,currentMillisecond:_.minMillisecond,currentSecond:_.minSecond,currentMinute:_.minMinute,currentHour:_.minHour,currentMonthDate:_.minDate,currentDate:_.minDate,currentMonth:_.minMonth,currentYear:_.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:h,minutesWidthOnXAxis:d,secondsWidthOnXAxis:u,numberOfSeconds:b,numberOfMinutes:m,numberOfHours:g,numberOfDays:w,numberOfMonths:C,numberOfYears:T};switch(this.tickInterval){case"years":this.generateYearScale(l);break;case"months":case"half_year":this.generateMonthScale(l);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(l);break;case"hours":this.generateHourScale(l);break;case"minutes_fives":case"minutes":this.generateMinuteScale(l);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(l)}var f=this.timeScaleArray.map(function(k){var I={position:k.position,unit:k.unit,year:k.year,day:k.day?k.day:1,hour:k.hour?k.hour:0,month:k.month+1};return"month"===k.unit?Z(Z({},I),{},{day:1,value:k.value+1}):"day"===k.unit||"hour"===k.unit?Z(Z({},I),{},{value:k.value}):"minute"===k.unit?Z(Z({},I),{},{value:k.value,minute:k.value}):"second"===k.unit?Z(Z({},I),{},{value:k.value,minute:k.minute,second:k.second}):k});return f.filter(function(k){var I=1,M=Math.ceil(s.globals.gridWidth/120),N=k.value;void 0!==s.config.xaxis.tickAmount&&(M=s.config.xaxis.tickAmount),f.length>M&&(I=Math.floor(f.length/M));var Y=!1,F=!1;switch(i.tickInterval){case"years":"year"===k.unit&&(Y=!0);break;case"half_year":I=7,"year"===k.unit&&(Y=!0);break;case"months":I=1,"year"===k.unit&&(Y=!0);break;case"months_fortnight":I=15,"year"!==k.unit&&"month"!==k.unit||(Y=!0),30===N&&(F=!0);break;case"months_days":I=10,"month"===k.unit&&(Y=!0),30===N&&(F=!0);break;case"week_days":I=8,"month"===k.unit&&(Y=!0);break;case"days":I=1,"month"===k.unit&&(Y=!0);break;case"hours":"day"===k.unit&&(Y=!0);break;case"minutes_fives":case"seconds_fives":N%5!=0&&(F=!0);break;case"seconds_tens":N%10!=0&&(F=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!F)return!0}else if((N%I==0||Y)&&!F)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,s=this.formatDates(e),a=this.removeOverlappingTS(s);i.globals.timescaleLabels=a.slice(),new qi(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,i=e.currentMonth,s=e.currentYear,a=e.daysWidthOnXAxis,n=e.numberOfYears,r=t.minYear,o=0,h=new ct(this.ctx),d="year";if(t.minDate>1||t.minMonth>0){var u=h.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(h.determineDaysOfYear(t.minYear)-u+1)*a,this.timeScaleArray.push({position:o,value:r=t.minYear+1,unit:d,year:r,month:W.monthMod(i+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:o,value:r,unit:d,year:s,month:W.monthMod(i+1)});for(var g=r,m=o,b=0;b<n;b++)g++,m=h.determineDaysOfYear(g-1)*a+m,this.timeScaleArray.push({position:m,value:g,unit:d,year:g,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,i=e.currentMonthDate,s=e.currentMonth,a=e.currentYear,n=e.daysWidthOnXAxis,r=e.numberOfMonths,o=s,h=0,d=new ct(this.ctx),u="month",g=0;if(t.minDate>1){h=(d.determineDaysOfMonths(s+1,t.minYear)-i+1)*n,o=W.monthMod(s+1);var m=a+g,b=W.monthMod(o),w=o;0===o&&(u="year",w=m,b=1,m+=g+=1),this.timeScaleArray.push({position:h,value:w,unit:u,year:m,month:b})}else this.timeScaleArray.push({position:h,value:o,unit:u,year:a,month:W.monthMod(s)});for(var C=o+1,T=h,_=0,l=1;_<r;_++,l++){0===(C=W.monthMod(C))?(u="year",g+=1):u="month";var f=this._getYear(a,C,g);T=d.determineDaysOfMonths(C,f)*n+T,this.timeScaleArray.push({position:T,value:0===C?f:C,unit:u,year:f,month:0===C?1:C}),C++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,i=e.currentMonth,s=e.currentYear,a=e.hoursWidthOnXAxis,n=e.numberOfDays,r=new ct(this.ctx),o="day",h=t.minDate+1,d=h,u=function(l,f,k){return l>r.determineDaysOfMonths(f+1,k)&&(d=1,o="month",m=f+=1),f},g=(24-t.minHour)*a,m=h,b=u(d,i,s);0===t.minHour&&1===t.minDate?(g=0,m=W.monthMod(t.minMonth),o="month",d=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(g=0,m=h=t.minDate,b=u(d=h,i,s)),this.timeScaleArray.push({position:g,value:m,unit:o,year:this._getYear(s,b,0),month:W.monthMod(b),day:d});for(var w=g,C=0;C<n;C++){o="day",b=u(d+=1,b,this._getYear(s,b,0));var T=this._getYear(s,b,0);w=24*a+w;var _=1===d?W.monthMod(b):d;this.timeScaleArray.push({position:w,value:_,unit:o,year:T,month:W.monthMod(b),day:_})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,i=e.currentDate,s=e.currentMonth,a=e.currentYear,n=e.minutesWidthOnXAxis,r=e.numberOfHours,o=new ct(this.ctx),h="hour",d=function(I,M){return I>o.determineDaysOfMonths(M+1,a)&&(C=1,M+=1),{month:M,date:C}},u=function(I,M){return I>o.determineDaysOfMonths(M+1,a)?M+=1:M},g=60-(t.minMinute+t.minSecond/60),m=g*n,b=t.minHour+1,w=b;60===g&&(m=0,w=b=t.minHour);var C=i;w>=24&&(w=0,C+=1,h="day");var T=d(C,s).month;T=u(C,T),this.timeScaleArray.push({position:m,value:b,unit:h,day:C,hour:w,year:a,month:W.monthMod(T)}),w++;for(var _=m,l=0;l<r;l++){h="hour",w>=24&&(w=0,h="day",T=d(C+=1,T).month,T=u(C,T));var f=this._getYear(a,T,0);this.timeScaleArray.push({position:_=60*n+_,value:0===w?C:w,unit:h,hour:w,day:C,year:f,month:W.monthMod(T)}),w++}}},{key:"generateMinuteScale",value:function(e){for(var h=e.minutesWidthOnXAxis,u=e.numberOfMinutes,g=e.currentMinute+1,m=e.currentDate,b=e.currentMonth,w=e.currentYear,C=e.currentHour,T=(60-e.currentSecond-e.currentMillisecond/1e3)*e.secondsWidthOnXAxis,_=0;_<u;_++)g>=60&&(g=0,24===(C+=1)&&(C=0)),this.timeScaleArray.push({position:T,value:g,unit:"minute",hour:C,minute:g,day:m,year:this._getYear(w,b,0),month:W.monthMod(b)}),T+=h,g++}},{key:"generateSecondScale",value:function(e){for(var h=e.secondsWidthOnXAxis,d=e.numberOfSeconds,u=e.currentSecond+1,g=e.currentMinute,m=e.currentDate,b=e.currentMonth,w=e.currentYear,C=e.currentHour,T=(1e3-e.currentMillisecond)/1e3*h,_=0;_<d;_++)u>=60&&(u=0,++g>=60&&(g=0,24==++C&&(C=0))),this.timeScaleArray.push({position:T,value:u,unit:"second",hour:C,minute:g,second:u,day:m,year:this._getYear(w,b,0),month:W.monthMod(b)}),T+=h,u++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return 0===e.month&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),i+="day"===e.unit?"day"===e.unit?"-"+("0"+t).slice(-2):"-01":"-"+("0"+(e.day?e.day:"1")).slice(-2),i+="hour"===e.unit?"hour"===e.unit?"T"+("0"+t).slice(-2):"T00":"T"+("0"+(e.hour?e.hour:"0")).slice(-2),i+="minute"===e.unit?":"+("0"+t).slice(-2):":"+(e.minute?("0"+e.minute).slice(-2):"00"),i+="second"===e.unit?":"+("0"+t).slice(-2):":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map(function(s){var a=s.value.toString(),n=new ct(t.ctx),r=t.createRawDateString(s,a),o=n.getDate(n.parseDate(r));if(t.utc||(o=n.getDate(n.parseDateWithTimezone(r))),void 0===i.config.xaxis.labels.format){var h="dd MMM",d=i.config.xaxis.labels.datetimeFormatter;"year"===s.unit&&(h=d.year),"month"===s.unit&&(h=d.month),"day"===s.unit&&(h=d.day),"hour"===s.unit&&(h=d.hour),"minute"===s.unit&&(h=d.minute),"second"===s.unit&&(h=d.second),a=n.formatDate(o,h)}else a=n.formatDate(o,i.config.xaxis.labels.format);return{dateString:r,position:s.position,value:a,unit:s.unit,year:s.year,month:s.month}})}},{key:"removeOverlappingTS",value:function(e){var t,i=this,s=new ne(this.ctx),a=!1;e.length>0&&e[0].value&&e.every(function(o){return o.value.length===e[0].value.length})&&(a=!0,t=s.getTextRects(e[0].value).width);var n=0;
1return e.map(function(o,h){if(h>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var d=a?t:s.getTextRects(e[n].value).width;return o.position>e[n].position+d+10?(n=h,o):null}return o}).filter(function(o){return null!==o})}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),L}(),Cs=function(){function L(e,t){E(this,L),this.ctx=t,this.w=t.w,this.el=e}return O(L,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,i=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(i)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(i)>-1,e.isBarHorizontal=("bar"===t.chart.type||"rangeBar"===t.chart.type||"boxPlot"===t.chart.type)&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),ne.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas "+e.chartClass.substring(1)}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=new window.SVG.Doc(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(t.chart.offsetX,", ").concat(t.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==t.theme.mode||t.chart.background?"light"!==t.theme.mode||t.chart.background?t.chart.background:"#fff":"#424242",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),ne.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.dom.elLegendForeign.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,s=i.config,a=i.globals,n={series:[],i:[]},r={series:[],i:[]},o={series:[],i:[]},h={series:[],i:[]},d={series:[],i:[]},u={series:[],i:[]},g={series:[],i:[]},m={series:[],i:[]},b={series:[],seriesRangeEnd:[],i:[]},w=void 0!==s.chart.type?s.chart.type:"line",C=null,T=0;a.series.forEach(function(K,le){var pe=e[le].type||w;switch(pe){case"column":case"bar":d.series.push(K),d.i.push(le),i.globals.columnSeries=d;break;case"area":r.series.push(K),r.i.push(le);break;case"line":n.series.push(K),n.i.push(le);break;case"scatter":o.series.push(K),o.i.push(le);break;case"bubble":h.series.push(K),h.i.push(le);break;case"candlestick":u.series.push(K),u.i.push(le);break;case"boxPlot":g.series.push(K),g.i.push(le);break;case"rangeBar":m.series.push(K),m.i.push(le);break;case"rangeArea":b.series.push(a.seriesRangeStart[le]),b.seriesRangeEnd.push(a.seriesRangeEnd[le]),b.i.push(le);break;case"heatmap":case"treemap":case"pie":case"donut":case"polarArea":case"radialBar":case"radar":C=pe;break;default:console.warn("You have specified an unrecognized series type (",pe,").")}w!==pe&&"scatter"!==pe&&T++}),T>0&&(null!==C&&console.warn("Chart or series type ",C," can not appear with other chart or series types."),d.series.length>0&&s.plotOptions.bar.horizontal&&(T-=d.length,d={series:[],i:[]},i.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),a.comboCharts||(a.comboCharts=T>0);var _=new hs(this.ctx,t),l=new Wi(this.ctx,t);this.ctx.pie=new Qi(this.ctx);var f=new ks(this.ctx);this.ctx.rangeBar=new As(this.ctx,t);var k=new Ns(this.ctx),I=[];if(a.comboCharts){var M,N,Y=new st(this.ctx);if(r.series.length>0&&(M=I).push.apply(M,ke(Y.drawSeriesByGroup(r,a.areaGroups,"area",_))),d.series.length>0)if(i.config.chart.stacked){var F=new Ii(this.ctx,t);I.push(F.draw(d.series,d.i))}else this.ctx.bar=new ti(this.ctx,t),I.push(this.ctx.bar.draw(d.series,d.i));if(b.series.length>0&&I.push(_.draw(b.series,"rangeArea",b.i,b.seriesRangeEnd)),n.series.length>0&&(N=I).push.apply(N,ke(Y.drawSeriesByGroup(n,a.lineGroups,"line",_))),u.series.length>0&&I.push(l.draw(u.series,"candlestick",u.i)),g.series.length>0&&I.push(l.draw(g.series,"boxPlot",g.i)),m.series.length>0&&I.push(this.ctx.rangeBar.draw(m.series,m.i)),o.series.length>0){var te=new hs(this.ctx,t,!0);I.push(te.draw(o.series,"scatter",o.i))}if(h.series.length>0){var oe=new hs(this.ctx,t,!0);I.push(oe.draw(h.series,"bubble",h.i))}}else switch(s.chart.type){case"line":I=_.draw(a.series,"line");break;case"area":I=_.draw(a.series,"area");break;case"bar":s.chart.stacked?I=new Ii(this.ctx,t).draw(a.series):(this.ctx.bar=new ti(this.ctx,t),I=this.ctx.bar.draw(a.series));break;case"candlestick":I=new Wi(this.ctx,t).draw(a.series,"candlestick");break;case"boxPlot":I=new Wi(this.ctx,t).draw(a.series,s.chart.type);break;case"rangeBar":I=this.ctx.rangeBar.draw(a.series);break;case"rangeArea":I=_.draw(a.seriesRangeStart,"rangeArea",void 0,a.seriesRangeEnd);break;case"heatmap":I=new Pt(this.ctx,t).draw(a.series);break;case"treemap":I=new Di(this.ctx,t).draw(a.series);break;case"pie":case"donut":case"polarArea":I=this.ctx.pie.draw(a.series);break;case"radialBar":I=f.draw(a.series);break;case"radar":I=k.draw(a.series);break;default:I=_.draw(a.series)}return I}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;t.chart.width||(t.chart.width="100%"),t.chart.height||(t.chart.height="auto"),e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var i=W.getDimensions(this.el),s=t.chart.width.toString().split(/[0-9]+/g).pop();"%"===s?W.isNumber(i[0])&&(0===i[0].width&&(i=W.getDimensions(this.el.parentNode)),e.svgWidth=i[0]*parseInt(t.chart.width,10)/100):"px"!==s&&""!==s||(e.svgWidth=parseInt(t.chart.width,10));var a=String(t.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===a){var n=W.getDimensions(this.el.parentNode);e.svgHeight=n[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.svgHeight=e.axisCharts?e.svgWidth/1.61:e.svgWidth/1.2;e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),ne.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==a&&(e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+(t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0)+"px"),e.dom.elWrap.style.width=e.svgWidth+"px",e.dom.elWrap.style.height=e.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals;ne.setAttrs(e.dom.elGraphical.node,{transform:"translate("+e.translateX+", "+e.translateY+")"})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,s=e.config.chart.sparkline.enabled?1:15;s+=e.config.grid.padding.bottom,"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||!e.config.legend.show||e.config.legend.floating||(i=new Gt(this.ctx).legendHelpers.getLegendDimensions().clwh+10);var a=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(a&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var r=W.getBoundingClientRect(a);n=r.bottom,n=Math.max(2.05*e.globals.radialSize,r.bottom-r.top)}var h=n+t.translateY+i+s;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",h),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=h+"px",ne.setAttrs(t.dom.Paper.node,{height:h}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=h+"px")}},{key:"coreCalculations",value:function(){new Fi(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(a){return[]})},i=new ss,s=this.w.globals;i.initGlobalVars(s),s.seriesXvalues=t(),s.seriesYvalues=t()}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.globals.isMultipleYAxis=!0,!0}},{key:"xySettings",value:function(){var e=null,t=this.w;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new yi(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new yi(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new ui(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new st(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var i=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];
1i.forEach(function(s){var a=ApexCharts.getChartByID(s);a.w.globals.brushSource=e.ctx,"function"!=typeof a.w.config.chart.events.zoomed&&(a.w.config.chart.events.zoomed=function(){e.updateSourceChart(a)}),"function"!=typeof a.w.config.chart.events.scrolled&&(a.w.config.chart.events.scrolled=function(){e.updateSourceChart(a)})}),t.config.chart.events.selection=function(s,a){i.forEach(function(n){ApexCharts.getChartByID(n).ctx.updateHelpers._updateOptions({xaxis:{min:a.xaxis.min,max:a.xaxis.max}},!1,!1,!1,!1)})}}}}]),L}(),ds=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"_updateOptions",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(r){var o=[t.ctx];a&&(o=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(o=[t.ctx],t.ctx.w.globals.isExecCalled=!1),o.forEach(function(h,d){var u=h.w;if(u.globals.shouldAnimate=s,i||(u.globals.resized=!0,u.globals.dataChanged=!0,s&&h.series.getPreviousPaths()),e&&"object"===x(e)&&(h.config=new Dt(e),e=st.extendArrayProps(h.config,e,u),h.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,u.config=W.extend(u.config,e),n&&(u.globals.lastXAxis=e.xaxis?W.clone(e.xaxis):[],u.globals.lastYAxis=e.yaxis?W.clone(e.yaxis):[],u.globals.initialConfig=W.extend({},u.config),u.globals.initialSeries=W.clone(u.config.series),e.series))){for(var g=0;g<u.globals.collapsedSeriesIndices.length;g++){var m=u.config.series[u.globals.collapsedSeriesIndices[g]];u.globals.collapsedSeries[g].data=u.globals.axisCharts?m.data.slice():m}for(var b=0;b<u.globals.ancillaryCollapsedSeriesIndices.length;b++){var w=u.config.series[u.globals.ancillaryCollapsedSeriesIndices[b]];u.globals.ancillaryCollapsedSeries[b].data=u.globals.axisCharts?w.data.slice():w}h.series.emptyCollapsedSeries(u.config.series)}return h.update(e).then(function(){d===o.length-1&&r(h)})})})}},{key:"_updateSeries",value:function(e,t){var i=this,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(a){var n,r=i.w;return r.globals.shouldAnimate=t,r.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),r.globals.axisCharts?(0===(n=e.map(function(o,h){return i._extendSeries(o,h)})).length&&(n=[{data:[]}]),r.config.series=n):r.config.series=e.slice(),s&&(r.globals.initialConfig.series=W.clone(r.config.series),r.globals.initialSeries=W.clone(r.config.series)),i.ctx.update().then(function(){a(i.ctx)})})}},{key:"_extendSeries",value:function(e,t){var i=this.w,s=i.config.series[t];return Z(Z({},i.config.series[t]),{},{name:e.name?e.name:s?.name,color:e.color?e.color:s?.color,type:e.type?e.type:s?.type,group:e.group?e.group:s?.group,data:e.data?e.data:s?.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,s=null,a=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?s=i.globals.dom.Paper.select("".concat(a," path[j='").concat(t,"'], ").concat(a," circle[j='").concat(t,"'], ").concat(a," rect[j='").concat(t,"']")).members[0]:void 0===t&&(s=i.globals.dom.Paper.select("".concat(a," path[j='").concat(e,"']")).members[0],"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(e)),s?(new ne(this.ctx).pathMouseDown(s,null),s.node?s.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(s){void 0!==e.xaxis[s]&&(t.config.xaxis[s]=e.xaxis[s],t.globals.lastXAxis[s]=e.xaxis[s])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new oi(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,s=i.globals.lastXAxis,a=i.globals.lastYAxis;e&&e.xaxis&&(s=e.xaxis),e&&e.yaxis&&(a=e.yaxis),i.config.xaxis.min=s.min,i.config.xaxis.max=s.max,i.config.yaxis.map(function(r,o){i.globals.zoomed||void 0!==a[o]?function(r){void 0!==a[r]&&(i.config.yaxis[r].min=a[r].min,i.config.yaxis[r].max=a[r].max)}(o):void 0!==t.ctx.opts.yaxis[o]&&(r.min=t.ctx.opts.yaxis[o].min,r.max=t.ctx.opts.yaxis[o].max)})}}]),L}();ii=typeof window<"u"?window:void 0,di=function(L,e){var t=(void 0!==this?this:L).SVG=function(l){if(t.supp
vendor: 18,415 bytes, line 1
1orted)return l=new t.Doc(l),t.parser.draw||t.prepare(),l};if(t.ns="http://www.w3.org/2000/svg",t.xmlns="http://www.w3.org/2000/xmlns/",t.xlink="http://www.w3.org/1999/xlink",t.svgjs="http://svgjs.dev",t.supported=!0,!t.supported)return!1;t.did=1e3,t.eid=function(l){return"Svgjs"+d(l)+t.did++},t.create=function(l){var f=e.createElementNS(this.ns,l);return f.setAttribute("id",this.eid(l)),f},t.extend=function(){var l,f;f=(l=[].slice.call(arguments)).pop();for(var k=l.length-1;k>=0;k--)if(l[k])for(var I in f)l[k].prototype[I]=f[I];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(l){var f="function"==typeof l.create?l.create:function(){this.constructor.call(this,t.create(l.create))};return l.inherit&&(f.prototype=new l.inherit),l.extend&&t.extend(f,l.extend),l.construct&&t.extend(l.parent||t.Container,l.construct),f},t.adopt=function(l){return l?l.instance?l.instance:((f="svg"==l.nodeName?l.parentNode instanceof L.SVGElement?new t.Nested:new t.Doc:"linearGradient"==l.nodeName?new t.Gradient("linear"):"radialGradient"==l.nodeName?new t.Gradient("radial"):t[d(l.nodeName)]?new(t[d(l.nodeName)]):new t.Element(l)).type=l.nodeName,f.node=l,l.instance=f,f instanceof t.Doc&&f.namespace().defs(),f.setData(JSON.parse(l.getAttribute("svgjs:data"))||{}),f):null;var f},t.prepare=function(){var l=e.getElementsByTagName("body")[0],f=(l?new t.Doc(l):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:l||e.documentElement,draw:f.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:f.polyline().node,path:f.path().node,native:t.create("svg")}},t.parser={native:t.create("svg")},e.addEventListener("DOMContentLoaded",function(){t.parser.draw||t.prepare()},!1),t.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},t.utils={map:function(l,f){for(var k=l.length,I=[],M=0;M<k;M++)I.push(f(l[M]));return I},filter:function(l,f){for(var k=l.length,I=[],M=0;M<k;M++)f(l[M])&&I.push(l[M]);return I},filterSVGElements:function(l){return this.filter(l,function(f){return f instanceof L.SVGElement})}},t.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},t.Color=function(l){var f,k;this.r=0,this.g=0,this.b=0,l&&("string"==typeof l?t.regex.isRgb.test(l)?(f=t.regex.rgb.exec(l.replace(t.regex.whitespace,"")),this.r=parseInt(f[1]),this.g=parseInt(f[2]),this.b=parseInt(f[3])):t.regex.isHex.test(l)&&(f=t.regex.hex.exec(4==(k=l).length?["#",k.substring(1,2),k.substring(1,2),k.substring(2,3),k.substring(2,3),k.substring(3,4),k.substring(3,4)].join(""):k),this.r=parseInt(f[1],16),this.g=parseInt(f[2],16),this.b=parseInt(f[3],16)):"object"===x(l)&&(this.r=l.r,this.g=l.g,this.b=l.b))},t.extend(t.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+u(this.r)+u(this.g)+u(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(l){return this.destination=new t.Color(l),this},at:function(l){return this.destination?new t.Color({r:~~(this.r+(this.destination.r-this.r)*(l=l<0?0:l>1?1:l)),g:~~(this.g+(this.destination.g-this.g)*l),b:~~(this.b+(this.destination.b-this.b)*l)}):this}}),t.Color.test=function(l){return t.regex.isHex.test(l+="")||t.regex.isRgb.test(l)},t.Color.isRgb=function(l){return l&&"number"==typeof l.r&&"number"==typeof l.g&&"number"==typeof l.b},t.Color.isColor=function(l){return t.Color.isRgb(l)||t.Color.test(l)},t.Array=function(l,f){0==(l=(l||[]).valueOf()).length&&f&&(l=f.valueOf()),this.value=this.parse(l)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(l){return l=l.valueOf(),Array.isArray(l)?l:this.split(l)}}),t.PointArray=function(l,f){t.Array.call(this,l,f||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var i={M:function(l,f,k){return f.x=k.x=l[0],f.y=k.y=l[1],["M",f.x,f.y]},L:function(l,f){return f.x=l[0],f.y=l[1],["L",l[0],l[1]]},H:function(l,f){return f.x=l[0],["H",l[0]]},V:function(l,f){return f.y=l[0],["V",l[0]]},C:function(l,f){return f.x=l[4],f.y=l[5],["C",l[0],l[1],l[2],l[3],l[4],l[5]]},Q:function(l,f){return f.x=l[2],f.y=l[3],["Q",l[0],l[1],l[2],l[3]]},S:function(l,f){return f.x=l[2],f.y=l[3],["S",l[0],l[1],l[2],l[3]]},Z:function(l,f,k){return f.x=k.x,f.y=k.y,["Z"]}},s="mlhvqtcsaz".split(""),a=0,n=s.length;a<n;++a)i[s[a]]=function(l){return function(f,k,I){if("H"==l)f[0]=f[0]+k.x;else if("V"==l)f[0]=f[0]+k.y;else if("A"==l)f[5]=f[5]+k.x,f[6]=f[6]+k.y;else for(var M=0,N=f.length;M<N;++M)f[M]=f[M]+(M%2?k.y:k.x);if(i&&"function"==typeof i[l])return i[l](f,k,I)}}(s[a].toUpperCase());t.PathArray=function(l,f){t.Array.call(this,l,f||[["M",0,0]])},t.PathArray.prototype=new t.Array,t.PathArray.prototype.constructor=t.PathArray,t.extend(t.PathArray,{toString:function(){return function(l){for(var f=0,k=l.length,I="";f<k;f++)I+=l[f][0],null!=l[f][1]&&(I+=l[f][1],null!=l[f][2]&&(I+=" ",I+=l[f][2],null!=l[f][3]&&(I+=" ",I+=l[f][3],I+=" ",I+=l[f][4],null!=l[f][5]&&(I+=" ",I+=l[f][5],I+=" ",I+=l[f][6],null!=l[f][7]&&(I+=" ",I+=l[f][7])))));return I+" "}(this.value)},move:function(l,f){return this.bbox(),this},at:function(l){if(!this.destination)return this;for(var f=this.value,k=this.destination.value,I=[],M=new t.PathArray,N=0,Y=f.length;N<Y;N++){I[N]=[f[N][0]];for(var F=1,te=f[N].length;F<te;F++)I[N][F]=f[N][F]+(k[N][F]-f[N][F])*l;"A"===I[N][0]&&(I[N][4]=+(0!=I[N][4]),I[N][5]=+(0!=I[N][5]))}return M.value=I,M},parse:function(l){if(l instanceof t.PathArray)return l.valueOf();var f,k={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};l="string"==typeof l?l.replace(t.regex.numbersWithDots,o).replace(t.regex.pathLetters," $& ").replace(t.regex.hyphen,"$1 -").trim().split(t.regex.delimiter):l.reduce(function(te,oe){return[].concat.call(te,oe)},[]);var I=[],M=new t.Point,N=new t.Point,Y=0,F=l.length;do{t.regex.isPathLetter.test(l[Y])?(f=l[Y],++Y):"M"==f?f="L":"m"==f&&(f="l"),I.push(i[f].call(null,l.slice(Y,Y+=k[f.toUpperCase()]).map(parseFloat),M,N))}while(F>Y);return I},bbox:function(){return t.parser.draw||t.prepare(),t.parser.path.setAttribute("d",this.toString()),t.parser.path.getBBox()}}),t.Number=t.invent({create:function(l,f){this.value=0,this.unit=f||"","number"==typeof l?this.value=isNaN(l)?0:isFinite(l)?l:l<0?-34e37:34e37:"string"==typeof l?(f=l.match(t.regex.numberAndUnit))&&(this.value=parseFloat(f[1]),"%"==f[5]?this.value/=100:"s"==f[5]&&(this.value*=1e3),this.unit=f[5]):l instanceof t.Number&&(this.value=l.valueOf(),this.unit=l.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(l){return l=new t.Number(l),new t.Number(this+l,this.unit||l.unit)},minus:function(l){return l=new t.Number(l),new t.Number(this-l,this.unit||l.unit)},times:function(l){return l=new t.Number(l),new t.Number(this*l,this.unit||l.unit)},divide:function(l){return l=new t.Number(l),new t.Number(this/l,this.unit||l.unit)},to:function(l){var f=new t.Number(this);return"string"==typeof l&&(f.unit=l),f},morph:function(l){return this.destination=new t.Number(l),l.relative&&(this.destination.value+=this.value),this},at:function(l){return this.destination?new t.Number(this.destination).minus(this).times(l).plus(this):this}}}),t.Element=t.invent({create:function(l){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=l)&&(this.type=l.nodeName,this.node.instance=this,this._stroke=l.getAttribute("stroke")||this._stroke)},extend:{x:function(l){return this.attr("x",l)},y:function(l){return this.attr("y",l)},cx:function(l){return null==l?this.x()+this.width()/2:this.x(l-this.width()/2)},cy:function(l){return null==l?this.y()+this.height()/2:this.y(l-this.height()/2)},move:function(l,f){return this.x(l).y(f)},center:function(l,f){return this.cx(l).cy(f)},width:function(l){return this.attr("width",l)},height:function(l){return this.attr("height",l)},size:function(l,f){var k=g(this,l,f);return this.width(new t.Number(k.width)).height(new t.Number(k.height))},clone:function(l){this.writeDataToDom();var f=w(this.node.cloneNode(!0));return l?l.add(f):this.after(f),f},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(l){return this.after(l).remove(),l},addTo:function(l){return l.put(this)},putIn:function(l){return l.add(this)},id:function(l){return this.attr("id",l)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var l=this.attr("class");return null==l?[]:l.trim().split(t.regex.delimiter)},hasClass:function(l){return-1!=this.classes().indexOf(l)},addClass:function(l){if(!this.hasClass(l)){var f=this.classes();f.push(l),this.attr("class",f.join(" "))}return this},removeClass:function(l){return this.hasClass(l)&&this.attr("class",this.classes().filter(function(f){return f!=l}).join(" ")),this},toggleClass:function(l){return this.hasClass(l)?this.removeClass(l):this.addClass(l)},reference:function(l){return t.get(this.attr(l))},parent:function(l){var f=this;if(!f.node.parentNode)return null;if(f=t.adopt(f.node.parentNode),!l)return f;for(;f&&f.node instanceof L.SVGElement;){if("string"==typeof l?f.matches(l):f instanceof l)return f;if(!f.node.parentNode||"#document"==f.node.parentNode.nodeName)return null;f=t.adopt(f.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(l){var f=[],k=this;do{if(!(k=k.parent(l))||!k.node)break;f.push(k)}while(k.parent);return f},matches:function(l){return((f=this.node).matches||f.matchesSelector||f.msMatchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector).call(f,l);var f},native:function(){return this.node},svg:function(l){var f=e.createElementNS("http://www.w3.org/2000/svg","svg");if(!(l&&this instanceof t.Parent))return f.appendChild(l=e.createElementNS("http://www.w3.org/2000/svg","svg")),this.writeDataToDom(),l.appendChild(this.node.cloneNode(!0)),f.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");f.innerHTML="<svg>"+l.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var k=0,I=f.firstChild.childNodes.length;k<I;k++)this.node.appendChild(f.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(l){return this.dom=l,this},is:function(l){return this instanceof l}}}),t.easing={"-":function(l){return l},"<>":function(l){return-Math.cos(l*Math.PI)/2+.5},">":function(l){return Math.sin(l*Math.PI/2)},"<":function(l){return 1-Math.cos(l*Math.PI/2)}},t.morph=function(l){return function(f,k){return new t.MorphObj(f,k).at(l)}},t.Situation=t.invent({create:function(l){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(l.duration).valueOf(),this.delay=new t.Number(l.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=l.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(l){this._target=l,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(l,f,k){"object"===x(l)&&(f=l.ease,k=l.delay,l=l.duration);var I=new t.Situation({duration:l||1e3,delay:k||0,ease:t.easing[f||"-"]||f});return this.queue(I),this},target:function(l){return l&&l instanceof t.Element?(this._target=l,this):this._target},timeToAbsPos:function(l){return(l-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(l){return this.situation.duration/this._speed*l+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=L.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){L.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(l){return("function"==typeof l||l instanceof t.Situation)&&this.situations.push(l),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof t.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var l,f=this.situation;if(f.init)return this;for(var k in f.animations){l=this.target()[k](),Array.isArray(l)||(l=[l]),Array.isArray(f.animations[k])||(f.animations[k]=[f.animations[k]]);for(var I=l.length;I--;)f.animations[k][I]instanceof t.Number&&(l[I]=new t.Number(l[I])),f.animations[k][I]=l[I].morph(f.animations[k][I])}for(var k in f.attrs)f.attrs[k]=new t.MorphObj(this.target().attr(k),f.attrs[k]);for(var k in f.styles)f.styles[k]=new t.MorphObj(this.target().style(k),f.styles[k]);return f.initialTransformation=this.target().matrixify(),f.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(l,f){var k=this.active;return this.active=!1,f&&this.clearQueue(),l&&this.situation&&(!k&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(l){var f=this.last();return this.target().on("finished.fx",function k(I){I.detail.situation==f&&(l.call(this,f),this.off("finished.fx",k))}),this._callStart()},during:function(l){var f=this.last(),k=function(I){I.detail.situation==f&&l.call(this,I.detail.pos,t.morph(I.detail.pos),I.detail.eased,f)};return this.target().off("during.fx",k).on("during.fx",k),this.after(function(){this.off("during.fx",k)}),this._callStart()},afterAll:function(l){var f=function k(I){l.call(this),this.off("allfinished.fx",k)};return this.target().off("allfinished.fx",f).on("allfinished.fx",f),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(l,f,k){return this.last()[k||"animations"][l]=f,this._callStart()},step:function(l){var f,k,I;l||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(f=Math.max(this.absPos,0),k=Math.floor(f),!0===this.situation.loops||k<this.situation.loops?(this.pos=f-k,I=this.situation.loop,this.situation.loop=k):(this.absPos=this.situation.loops,this.pos=1,I=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-I)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var M=this.situation.ease(this.pos);for(var N in this.situation.once)N>this.lastPos&&N<=M&&(this.situation.once[N].call(this.target(),this.pos,M),delete this.situation.once[N]);return this.active&&this.target().fire("during",{pos:this.pos,eased:M,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=M,this):this},eachAt:function(){var l,f=this,k=this.target(),I=this.situation;for(var M in I.animations)l=[].concat(I.animations[M]).map(function(F){return"string"!=typeof F&&F.at?F.at(I.ease(f.pos),f.pos):F}),k[M].apply(k,l);for(var M in I.attrs)l=[M].concat(I.attrs[M]).map(function(te){return"string"!=typeof te&&te.at?te.at(I.ease(f.pos),f.pos):te}),k.attr.apply(k,l);for(var M in I.styles)l=[M].concat(I.styles[M]).map(function(te){return"string"!=typeof te&&te.at?te.at(I.ease(f.pos),f.pos):te}),k.style.apply(k,l);if(I.transforms.length){l=I.initialTransformation,M=0;for(var N=I.transforms.length;M<N;M++){var Y=I.transforms[M];Y instanceof t.Matrix?l=Y.relative?l.multiply((new t.Matrix).morph(Y).at(I.ease(this.pos))):l.morph(Y).at(I.ease(this.pos)):(Y.relative||Y.undo(l.extract()),l=l.multiply(Y.at(I.ease(this.pos))))}k.matrix(l)}return this},once:function(l,f,k){var I=this.last();return k||(l=I.ease(l)),I.once[l]=f,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:t.Element,construct:{animate:function(l,f,k){return(this.fx||(this.fx=new t.FX(this))).animate(l,f,k)},delay:function(l){return(this.fx||(this.fx=new t.FX(this))).delay(l)},stop:function(l,f){return this.fx&&this.fx.stop(l,f),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),t.MorphObj=t.invent({create:function(l,f){return t.Color.isColor(f)?new t.Color(l).morph(f):t.regex.delimiter.test(l)?t.regex.pathLetters.test(l)?new t.PathArray(l).morph(f):new t.Array(l).morph(f):t.regex.numberAndUnit.test(f)?new t.Number(l).morph(f):(this.value=l,void(this.destination=f))},extend:{at:function(l,f){return f<1?this.value:this.destination}
vendor: 5,067 bytes, line 1
1,valueOf:function(){return this.value}}}),t.extend(t.FX,{attr:function(l,f,k){if("object"===x(l))for(var I in l)this.attr(I,l[I]);else this.add(l,f,"attrs");return this},plot:function(l,f,k,I){return 4==arguments.length?this.plot([l,f,k,I]):this.add("plot",new(this.target().morphArray)(l))}}),t.Box=t.invent({create:function(l,f,k,I){if(!("object"!==x(l)||l instanceof t.Element))return t.Box.call(this,null!=l.left?l.left:l.x,null!=l.top?l.top:l.y,l.width,l.height);var M;4==arguments.length&&(this.x=l,this.y=f,this.width=k,this.height=I),null==(M=this).x&&(M.x=0,M.y=0,M.width=0,M.height=0),M.w=M.width,M.h=M.height,M.x2=M.x+M.width,M.y2=M.y+M.height,M.cx=M.x+M.width/2,M.cy=M.y+M.height/2}}),t.BBox=t.invent({create:function(l){if(t.Box.apply(this,[].slice.call(arguments)),l instanceof t.Element){var f;try{if(!e.documentElement.contains){for(var k=l.node;k.parentNode;)k=k.parentNode;if(k!=e)throw new Error("Element not in the dom")}f=l.node.getBBox()}catch{if(l instanceof t.Shape){t.parser.draw||t.prepare();var I=l.clone(t.parser.draw.instance).show();I&&I.node&&"function"==typeof I.node.getBBox&&(f=I.node.getBBox()),I&&"function"==typeof I.remove&&I.remove()}else f={x:l.node.clientLeft,y:l.node.clientTop,width:l.node.clientWidth,height:l.node.clientHeight}}t.Box.call(this,f)}},inherit:t.Box,parent:t.Element,construct:{bbox:function(){return new t.BBox(this)}}}),t.BBox.prototype.constructor=t.BBox,t.Matrix=t.invent({create:function(l){var f=b([1,0,0,1,0,0]);l=null===l?f:l instanceof t.Element?l.matrixify():"string"==typeof l?b(l.split(t.regex.delimiter).map(parseFloat)):6==arguments.length?b([].slice.call(arguments)):Array.isArray(l)?b(l):l&&"object"===x(l)?l:f;for(var k=T.length-1;k>=0;--k)this[T[k]]=null!=l[T[k]]?l[T[k]]:f[T[k]]},extend:{extract:function(){var l=m(this,0,1);m(this,1,0);var f=180/Math.PI*Math.atan2(l.y,l.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(f*Math.PI/180)+this.f*Math.sin(f*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(f*Math.PI/180)+this.e*Math.sin(-f*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:f,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new t.Matrix(this)}},clone:function(){return new t.Matrix(this)},morph:function(l){return this.destination=new t.Matrix(l),this},multiply:function(l){return new t.Matrix(this.native().multiply((f=l,f instanceof t.Matrix||(f=new t.Matrix(f)),f).native()));var f},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(l,f){return new t.Matrix(this.native().translate(l||0,f||0))},native:function(){for(var l=t.parser.native.createSVGMatrix(),f=T.length-1;f>=0;f--)l[T[f]]=this[T[f]];return l},toString:function(){return"matrix("+C(this.a)+","+C(this.b)+","+C(this.c)+","+C(this.d)+","+C(this.e)+","+C(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var l=this.rect(1,1),f=l.node.getScreenCTM();return l.remove(),new t.Matrix(f)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(l,f){var k;k=Array.isArray(l)?{x:l[0],y:l[1]}:"object"===x(l)?{x:l.x,y:l.y}:null!=l?{x:l,y:f??l}:{x:0,y:0},this.x=k.x,this.y=k.y},extend:{clone:function(){return new t.Point(this)},morph:function(l,f){return this.destination=new t.Point(l,f),this}}}),t.extend(t.Element,{point:function(l,f){return new t.Point(l,f).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(l,f,k){if(null==l){for(l={},k=(f=this.node.attributes).length-1;k>=0;k--)l[f[k].nodeName]=t.regex.isNumber.test(f[k].nodeValue)?parseFloat(f[k].nodeValue):f[k].nodeValue;return l}if("object"===x(l))for(var I in l)this.attr(I,l[I]);else if(null===f)this.node.removeAttribute(l);else{if(null==f)return null==(f=this.node.getAttribute(l))?t.defaults.attrs[l]:t.regex.isNumber.test(f)?parseFloat(f):f;"stroke-width"==l?this.attr("stroke",parseFloat(f)>0?this._stroke:null):"stroke"==l&&(this._stroke=f),"fill"!=l&&"stroke"!=l||(t.regex.isImage.test(f)&&(f=this.doc().defs().image(f,0,0)),f instanceof t.Image&&(f=this.doc().defs().pattern(0,0,function(){this.add(f)}))),"number"==typeof f?f=new t.Number(f):t.Color.isColor(f)?f=new t.Color(f):Array.isArray(f)&&(f=new t.Array(f)),"leading"==l?this.leading&&this.leading(f):"string"==typeof k?this.node.setAttributeNS(k,l,f.toString()):this.node.setAttribute(l,f.toString()),!this.rebuild||"font-size"!=l&&"x"!=l||this.rebuild(l,f)}return this}}),t.extend(t.Element,{transform:function(l,f){var k;return"object"!==x(l)?(k=new t.Matrix(this).extract(),"string"==typeof l?k[l]:k):(k=new t.Matrix(this),f=!!f||!!l.relative,null!=l.a&&(k=f?k.multiply(new t.Matrix(l)):new t.Matrix(l)),this.attr("transform",k))}}),t.extend(t.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(t.regex.transforms).slice(0,-1).map(function(l){var f=l.trim().split("(");return[f[0],f[1].split(t.regex.delimiter).map(function(k){return parseFloat(k)})]}
vendor: 6,495 bytes, line 1
1).reduce(function(l,f){return"matrix"==f[0]?l.multiply(b(f[1])):l[f[0]].apply(l,f[1])},new t.Matrix)},toParent:function(l){if(this==l)return this;var f=this.screenCTM(),k=l.screenCTM().inverse();return this.addTo(l).untransform().transform(k.multiply(f)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(l,f){if(arguments.length>1&&"boolean"!=typeof f)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(l))for(var k=0,I=this.arguments.length;k<I;++k)this[this.arguments[k]]=l[k];else if(l&&"object"===x(l))for(k=0,I=this.arguments.length;k<I;++k)this[this.arguments[k]]=l[this.arguments[k]];this.inversed=!1,!0===f&&(this.inversed=!0)}}),t.Translate=t.invent({parent:t.Matrix,inherit:t.Transformation,create:function(l,f){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),t.extend(t.Element,{style:function(l,f){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===x(l))for(var k in l)this.style(k,l[k]);else{if(!t.regex.isCss.test(l))return this.node.style[h(l)];for(l=l.split(/\s*;\s*/).filter(function(I){return!!I}).map(function(I){return I.split(/\s*:\s*/)});f=l.pop();)this.style(f[0],f[1])}else this.node.style[h(l)]=null===f||t.regex.isBlank.test(f)?"":f;return this}}),t.Parent=t.invent({create:function(l){this.constructor.call(this,l)},inherit:t.Element,extend:{children:function(){return t.utils.map(t.utils.filterSVGElements(this.node.childNodes),function(l){return t.adopt(l)})},add:function(l,f){return null==f?this.node.appendChild(l.node):l.node!=this.node.childNodes[f]&&this.node.insertBefore(l.node,this.node.childNodes[f]),this},put:function(l,f){return this.add(l,f),l},has:function(l){return this.index(l)>=0},index:function(l){return[].slice.call(this.node.childNodes).indexOf(l.node)},get:function(l){return t.adopt(this.node.childNodes[l])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(l,f){for(var k=this.children(),I=0,M=k.length;I<M;I++)k[I]instanceof t.Element&&l.apply(k[I],[I,k]),f&&k[I]instanceof t.Container&&k[I].each(l,f);return this},removeElement:function(l){return this.node.removeChild(l.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),t.extend(t.Parent,{ungroup:function(l,f){return 0===f||this instanceof t.Defs||this.node==t.parser.draw||(l=l||(this instanceof t.Doc?this:this.parent(t.Parent)),f=f||1/0,this.each(function(){return this instanceof t.Defs?this:this instanceof t.Parent?this.ungroup(l,f-1):this.toParent(l)}),this.node.firstChild||this.remove()),this},flatten:function(l,f){return this.ungroup(l,f)}}),t.Container=t.invent({create:function(l){this.constructor.call(this,l)},inherit:t.Parent}),t.ViewBox=t.invent({parent:t.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(l){t.Element.prototype[l]=function(f){return t.on(this.node,l,f),this}}),t.listeners=[],t.handlerMap=[],t.listenerId=0,t.on=function(l,f,k,I,M){var N=k.bind(I||l.instance||l),Y=(t.handlerMap.indexOf(l)+1||t.handlerMap.push(l))-1,F=f.split(".")[0],te=f.split(".")[1]||"*";t.listeners[Y]=t.listeners[Y]||{},t.listeners[Y][F]=t.listeners[Y][F]||{},t.listeners[Y][F][te]=t.listeners[Y][F][te]||{},k._svgjsListenerId||(k._svgjsListenerId=++t.listenerId),t.listeners[Y][F][te][k._svgjsListenerId]=N,l.addEventListener(F,N,M||{passive:!1})},t.off=function(l,f,k){var I=t.handlerMap.indexOf(l),M=f&&f.split(".")[0],N=f&&f.split(".")[1],Y="";if(-1!=I)if(k){if("function"==typeof k&&(k=k._svgjsListenerId),!k)return;t.listeners[I][M]&&t.listeners[I][M][N||"*"]&&(l.removeEventListener(M,t.listeners[I][M][N||"*"][k],!1),delete t.listeners[I][M][N||"*"][k])}else if(N&&M){if(t.listeners[I][M]&&t.listeners[I][M][N]){for(var F in t.listeners[I][M][N])t.off(l,[M,N].join("."),F);delete t.listeners[I][M][N]}}else if(N)for(var te in t.listeners[I])for(var Y in t.listeners[I][te])N===Y&&t.off(l,[te,N].join("."));else if(M){if(t.listeners[I][M]){for(var Y in t.listeners[I][M])t.off(l,[M,Y].join("."));delete t.listeners[I][M]}}else{for(var te in t.listeners[I])t.off(l,te);delete t.listeners[I],delete t.handlerMap[I]}},t.extend(t.Element,{on:function(l,f,k,I){return t.on(this.node,l,f,k,I),this},off:function(l,f){return t.off(this.node,l,f),this},fire:function(l,f){return this.node.dispatchEvent(l instanceof L.Event?l:l=new t.CustomEvent(l,{detail:f,cancelable:!0})),this._event=l,this},event:function(){return this._event}}),t.Defs=t.invent({create:"defs",inherit:t.Container}),t.G=t.invent({create:"g",inherit:t.Container,extend:{x:function(l){return null==l?this.transform("x"):this.transform({x:l-this.x()},!0)}},construct:{group:function(){return this.put(new t.G)}}}),t.Doc=t.invent({create:function(l){l&&("svg"==(l="string"==typeof l?e.getElementById(l):l).nodeName?this.constructor.call(this,l):(this.constructor.call(this,t.create("svg")),l.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:t.Container,extend:{namespace:function(){return this.attr({xmlns:t.ns,version:"1.1"}).attr("xmlns:xlink",t.xlink,t.xmlns).attr("xmlns:svgjs",t.svgjs,t.xmlns)},defs:function(){var l;return this._defs||(this._defs=(l=this.node.getElementsByTagName("defs")[0])?t.adopt(l):new t.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,t.parser.draw&&!t.parser.draw.parentNode&&this.node.appendChild(t.parser.draw),this},clone:function(l){this.writeDataToDom();var f=this.node,k=w(f.cloneNode(!0));return l?(l.node||l).appendChild(k.node):f.parentNode.insertBefore(k.node,f.nextSibling),k}}}),t.extend(t.Element,{}),t.Gradient=t.invent({create:function(l){this.constructor.call(this,t.create(l+"Gradient")),this.type=l},inherit:t.Container,extend:{at:function(l,f,k){return this.put(new t.Stop).update(l,f,k)},update:function(l){return this.clear(),"function"==typeof l&&l.call(this,this),this}
vendor: 4,842 bytes, line 1
1,fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(l,f,k){return"transform"==l&&(l="gradientTransform"),t.Container.prototype.attr.call(this,l,f,k)}},construct:{gradient:function(l,f){return this.defs().gradient(l,f)}}}),t.extend(t.Gradient,t.FX,{from:function(l,f){return this.attr("radial"==(this._target||this).type?{fx:new t.Number(l),fy:new t.Number(f)}:{x1:new t.Number(l),y1:new t.Number(f)})},to:function(l,f){return this.attr("radial"==(this._target||this).type?{cx:new t.Number(l),cy:new t.Number(f)}:{x2:new t.Number(l),y2:new t.Number(f)})}}),t.extend(t.Defs,{gradient:function(l,f){return this.put(new t.Gradient(l)).update(f)}}),t.Stop=t.invent({create:"stop",inherit:t.Element,extend:{update:function(l){return("number"==typeof l||l instanceof t.Number)&&(l={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=l.opacity&&this.attr("stop-opacity",l.opacity),null!=l.color&&this.attr("stop-color",l.color),null!=l.offset&&this.attr("offset",new t.Number(l.offset)),this}}}),t.Pattern=t.invent({create:"pattern",inherit:t.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(l){return this.clear(),"function"==typeof l&&l.call(this,this),this},toString:function(){return this.fill()},attr:function(l,f,k){return"transform"==l&&(l="patternTransform"),t.Container.prototype.attr.call(this,l,f,k)}},construct:{pattern:function(l,f,k){return this.defs().pattern(l,f,k)}}}),t.extend(t.Defs,{pattern:function(l,f,k){return this.put(new t.Pattern).update(k).attr({x:0,y:0,width:l,height:f,patternUnits:"userSpaceOnUse"})}}),t.Shape=t.invent({create:function(l){this.constructor.call(this,l)},inherit:t.Element}),t.Symbol=t.invent({create:"symbol",inherit:t.Container,construct:{symbol:function(){return this.put(new t.Symbol)}}}),t.Use=t.invent({create:"use",inherit:t.Shape,extend:{element:function(l,f){return this.attr("href",(f||"")+"#"+l,t.xlink)}},construct:{use:function(l,f){return this.put(new t.Use).element(l,f)}}}),t.Rect=t.invent({create:"rect",inherit:t.Shape,construct:{rect:function(l,f){return this.put(new t.Rect).size(l,f)}}}),t.Circle=t.invent({create:"circle",inherit:t.Shape,construct:{circle:function(l){return this.put(new t.Circle).rx(new t.Number(l).divide(2)).move(0,0)}}}),t.extend(t.Circle,t.FX,{rx:function(l){return this.attr("r",l)},ry:function(l){return this.rx(l)}}),t.Ellipse=t.invent({create:"ellipse",inherit:t.Shape,construct:{ellipse:function(l,f){return this.put(new t.Ellipse).size(l,f).move(0,0)}}}),t.extend(t.Ellipse,t.Rect,t.FX,{rx:function(l){return this.attr("rx",l)},ry:function(l){return this.attr("ry",l)}}),t.extend(t.Circle,t.Ellipse,{x:function(l){return null==l?this.cx()-this.rx():this.cx(l+this.rx())},y:function(l){return null==l?this.cy()-this.ry():this.cy(l+this.ry())},cx:function(l){return null==l?this.attr("cx"):this.attr("cx",l)},cy:function(l){return null==l?this.attr("cy"):this.attr("cy",l)},width:function(l){return null==l?2*this.rx():this.rx(new t.Number(l).divide(2))},height:function(l){return null==l?2*this.ry():this.ry(new t.Number(l).divide(2))},size:function(l,f){var k=g(this,l,f);return this.rx(new t.Number(k.width).divide(2)).ry(new t.Number(k.height).divide(2))}}),t.Line=t.invent({create:"line",inherit:t.Shape,extend:{array:function(){return new t.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(l,f,k,I){return null==l?this.array():(l=void 0!==f?{x1:l,y1:f,x2:k,y2:I}:new t.PointArray(l).toLine(),this.attr(l))},move:function(l,f){return this.attr(this.array().move(l,f).toLine())},size:function(l,f){var k=g(this,l,f);return this.attr(this.array().size(k.width,k.height).toLine())}},construct:{line:function(l,f,k,I){return t.Line.prototype.plot.apply(this.put(new t.Line),null!=l?[l,f,k,I]:[0,0,0,0])}}}),t.Polyline=t.invent({create:"polyline",inherit:t.Shape,construct:{polyline:function(l){return this.put(new t.Polyline).plot(l||new t.PointArray)}}}),t.Polygon=t.invent({create:"polygon",inherit:t.Shape,construct:{polygon:function(l){return this.put(new t.Polygon).plot(l||new t.PointArray)}}}),t.extend(t.Polyline,t.Polygon,{array:function(){return this._array||(this._array=new t.PointArray(this.attr("points")))},plot:function(l){return null==l?this.array():this.clear().attr("points","string"==typeof l?l:this._array=new t.PointArray(l))},clear:function(){return delete this._array,this},move:function(l,f){return this.attr("points",this.array().move(l,f))},size:function(l,f){var k=g(this,l,f);return this.attr("points",this.array().size(k.width,k.height))}}),t.extend(t.Line,t.Polyline,t.Polygon,{morphArray:t.PointArray,x:function(l){return null==l?this.bbox().x:this.move(l,this.bbox().y)},y:function(l){return null==l?this.bbox().y:this.move(this.bbox().x,l)},width:function(l){var f=this.bbox();
vendor: 6,891 bytes, line 1
1return null==l?f.width:this.size(l,f.height)},height:function(l){var f=this.bbox();return null==l?f.height:this.size(f.width,l)}}),t.Path=t.invent({create:"path",inherit:t.Shape,extend:{morphArray:t.PathArray,array:function(){return this._array||(this._array=new t.PathArray(this.attr("d")))},plot:function(l){return null==l?this.array():this.clear().attr("d","string"==typeof l?l:this._array=new t.PathArray(l))},clear:function(){return delete this._array,this}},construct:{path:function(l){return this.put(new t.Path).plot(l||new t.PathArray)}}}),t.Image=t.invent({create:"image",inherit:t.Shape,extend:{load:function(l){if(!l)return this;var f=this,k=new L.Image;return t.on(k,"load",function(){t.off(k);var I=f.parent(t.Pattern);null!==I&&(0==f.width()&&0==f.height()&&f.size(k.width,k.height),I&&0==I.width()&&0==I.height()&&I.size(f.width(),f.height()),"function"==typeof f._loaded&&f._loaded.call(f,{width:k.width,height:k.height,ratio:k.width/k.height,url:l}))}),t.on(k,"error",function(I){t.off(k),"function"==typeof f._error&&f._error.call(f,I)}),this.attr("href",k.src=this.src=l,t.xlink)},loaded:function(l){return this._loaded=l,this},error:function(l){return this._error=l,this}},construct:{image:function(l,f,k){return this.put(new t.Image).load(l).size(f||0,k||f||0)}}}),t.Text=t.invent({create:function(){this.constructor.call(this,t.create("text")),this.dom.leading=new t.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",t.defaults.attrs["font-family"])},inherit:t.Shape,extend:{x:function(l){return null==l?this.attr("x"):this.attr("x",l)},text:function(l){if(void 0===l){l="";for(var f=this.node.childNodes,k=0,I=f.length;k<I;++k)0!=k&&3!=f[k].nodeType&&1==t.adopt(f[k]).dom.newLined&&(l+="\n"),l+=f[k].textContent;return l}if(this.clear().build(!0),"function"==typeof l)l.call(this,this);else{k=0;for(var M=(l=l.split("\n")).length;k<M;k++)this.tspan(l[k]).newLine()}return this.build(!1).rebuild()},size:function(l){return this.attr("font-size",l).rebuild()},leading:function(l){return null==l?this.dom.leading:(this.dom.leading=new t.Number(l),this.rebuild())},lines:function(){var l=(this.textPath&&this.textPath()||this).node,f=t.utils.map(t.utils.filterSVGElements(l.childNodes),function(k){return t.adopt(k)});return new t.Set(f)},rebuild:function(l){if("boolean"==typeof l&&(this._rebuild=l),this._rebuild){var f=this,k=0,I=this.dom.leading*new t.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(f.textPath()||this.attr("x",f.attr("x")),"\n"==this.text()?k+=I:(this.attr("dy",I+k),k=0))}),this.fire("rebuild")}return this},build:function(l){return this._build=!!l,this},setData:function(l){return this.dom=l,this.dom.leading=new t.Number(l.leading||1.3),this}},construct:{text:function(l){return this.put(new t.Text).text(l)},plain:function(l){return this.put(new t.Text).plain(l)}}}),t.Tspan=t.invent({create:"tspan",inherit:t.Shape,extend:{text:function(l){return null==l?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof l?l.call(this,this):this.plain(l),this)},dx:function(l){return this.attr("dx",l)},dy:function(l){return this.attr("dy",l)},newLine:function(){var l=this.parent(t.Text);return this.dom.newLined=!0,this.dy(l.dom.leading*l.attr("font-size")).attr("x",l.x())}}}),t.extend(t.Text,t.Tspan,{plain:function(l){return!1===this._build&&this.clear(),this.node.appendChild(e.createTextNode(l)),this},tspan:function(l){var f=(this.textPath&&this.textPath()||this).node,k=new t.Tspan;return!1===this._build&&this.clear(),f.appendChild(k.node),k.text(l)},clear:function(){for(var l=(this.textPath&&this.textPath()||this).node;l.hasChildNodes();)l.removeChild(l.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),t.TextPath=t.invent({create:"textPath",inherit:t.Parent,parent:t.Text,construct:{morphArray:t.PathArray,array:function(){var l=this.track();return l?l.array():null},plot:function(l){var f=this.track(),k=null;return f&&(k=f.plot(l)),null==l?k:this},track:function(){var l=this.textPath();if(l)return l.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return t.adopt(this.node.firstChild)}}}),t.Nested=t.invent({create:function(){this.constructor.call(this,t.create("svg")),this.style("overflow","visible")},inherit:t.Container,construct:{nested:function(){return this.put(new t.Nested)}}});var r={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(l,f){return"color"==f?l:l+"-"+f}};function o(l,f,k,I){return k+I.replace(t.regex.dots," .")}function h(l){return l.toLowerCase().replace(/-(.)/g,function(f,k){return k.toUpperCase()})}function d(l){return l.charAt(0).toUpperCase()+l.slice(1)}function u(l){var f=l.toString(16);return 1==f.length?"0"+f:f}function g(l,f,k){if(null==f||null==k){var I=l.bbox();null==f?f=I.width/I.height*k:null==k&&(k=I.height/I.width*f)}return{width:f,height:k}}function m(l,f,k){return{x:f*l.a+k*l.c+0,y:f*l.b+k*l.d+0}}function b(l){return{a:l[0],b:l[1],c:l[2],d:l[3],e:l[4],f:l[5]}}function w(l){for(var f=l.childNodes.length-1;f>=0;f--)l.childNodes[f]instanceof L.SVGElement&&w(l.childNodes[f]);return t.adopt(l).id(t.eid(l.nodeName))}function C(l){return Math.abs(l)>1e-37?l:0}["fill","stroke"].forEach(function(l){var f={};f[l]=function(k){if(void 0===k)return this;if("string"==typeof k||t.Color.isRgb(k)||k&&"function"==typeof k.fill)this.attr(l,k);else for(var I=r[l].length-1;I>=0;I--)null!=k[r[l][I]]&&this.attr(r.prefix(l,r[l][I]),k[r[l][I]]);return this},t.extend(t.Element,t.FX,f)}),t.extend(t.Element,t.FX,{translate:function(l,f){return this.transform({x:l,y:f})},matrix:function(l){return this.attr("transform",new t.Matrix(6==arguments.length?[].slice.call(arguments):l))},opacity:function(l){return this.attr("opacity",l)},dx:function(l){return this.x(new t.Number(l).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(l){return this.y(new t.Number(l).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(l){return this.node.getPointAtLength(l)}}),t.Set=t.invent({create:function(l){Array.isArray(l)?this.members=l:this.clear()},extend:{add:function(){for(var l=[].slice.call(arguments),f=0,k=l.length;f<k;f++)this.members.push(l[f]);return this},remove:function(l){var f=this.index(l);return f>-1&&this.members.splice(f,1),this},each:function(l){for(var f=0,k=this.members.length;f<k;f++)l.apply(this.members[f],[f,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(l){return this.index(l)>=0},index:function(l){return this.members.indexOf(l)},get:function(l){return this.members[l]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)}
vendor: 2,497 bytes, lines 1-5
1,valueOf:function(){return this.members}},construct:{set:function(l){return new t.Set(l)}}}),t.FX.Set=t.invent({create:function(l){this.set=l}}),t.Set.inherit=function(){var l=[];for(var f in t.Shape.prototype)"function"==typeof t.Shape.prototype[f]&&"function"!=typeof t.Set.prototype[f]&&l.push(f);for(var f in l.forEach(function(I){t.Set.prototype[I]=function(){for(var M=0,N=this.members.length;M<N;M++)this.members[M]&&"function"==typeof this.members[M][I]&&this.members[M][I].apply(this.members[M],arguments);return"animate"==I?this.fx||(this.fx=new t.FX.Set(this)):this}}),l=[],t.FX.prototype)"function"==typeof t.FX.prototype[f]&&"function"!=typeof t.FX.Set.prototype[f]&&l.push(f);l.forEach(function(k){t.FX.Set.prototype[k]=function(){for(var I=0,M=this.set.members.length;I<M;I++)this.set.members[I].fx[k].apply(this.set.members[I].fx,arguments);return this}})},t.extend(t.Element,{}),t.extend(t.Element,{remember:function(l,f){if("object"===x(arguments[0]))for(var k in l)this.remember(k,l[k]);else{if(1==arguments.length)return this.memory()[l];this.memory()[l]=f}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var l=arguments.length-1;l>=0;l--)delete this.memory()[arguments[l]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(l){var f=e.getElementById(function(k){var I=(k||"").toString().match(t.regex.reference);if(I)return I[1]}(l)||l);return t.adopt(f)},t.select=function(l,f){return new t.Set(t.utils.map((f||e).querySelectorAll(l),function(k){return t.adopt(k)}))},t.extend(t.Parent,{select:function(l){return t.select(l,this.node)}});var T="abcdef".split("");if("function"!=typeof L.CustomEvent){var _=function(l,f){f=f||{bubbles:!1,cancelable:!1,detail:void 0};var k=e.createEvent("CustomEvent");return k.initCustomEvent(l,f.bubbles,f.cancelable,f.detail),k};_.prototype=L.Event.prototype,t.CustomEvent=_}else t.CustomEvent=L.CustomEvent;return t},"function"==typeof define&&define.amd?define(function(){return di(ii,ii.document)}):"object"===(typeof exports>"u"?"undefined":x(exports))&&typeof module<"u"?module.exports=ii.document?di(ii,ii.document):function(L){return di(L,L.document)}:ii.SVG=di(ii,ii.document), 2/*! svg.filter.js - v2.0.2 - 2016-02-24 3 * https://github.com/wout/svg.filter.js 4 * Copyright (c) 2016 Wout Fierens; Licensed MIT */ 5function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"Backgroun
5dImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(n,r){return this.add(n,r),!n.attr("in")&&this.autoSetIn&&n.attr("in",this.source),n.attr("result")||n.attr("result",n),n},blend:function(n,r,o){return this.put(new SVG.BlendEffect(n,r,o))},colorMatrix:function(n,r){return this.put(new SVG.ColorMatrixEffect(n,r))},convolveMatrix:function(n){return this.put(new SVG.ConvolveMatrixEffect(n))},componentTransfer:function(n){return this.put(new SVG.ComponentTransferEffect(n))},composite:function(n,r,o){return this.put(new SVG.CompositeEffect(n,r,o))},flood:function(n,r){return this.put(new SVG.FloodEffect(n,r))},offset:function(n,r){return this.put(new SVG.OffsetEffect(n,r))},image:function(n){return this.put(new SVG.ImageEffect(n))},merge:function(){var n=[void 0];for(var r in arguments)n.push(arguments[r]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,n)))},gaussianBlur:function(n,r){return this.put(new SVG.GaussianBlurEffect(n,r))},morphology:function(n,r){return this.put(new SVG.MorphologyEffect(n,r))},diffuseLighting:function(n,r,o){return this.put(new SVG.DiffuseLightingEffect(n,r,o))},displacementMap:function(n,r,o,h,d){return this.put(new SVG.DisplacementMapEffect(n,r,o,h,d))},specularLighting:function(n,r,o,h){return this.put(new SVG.SpecularLightingEffect(n,r,o,h))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(n,r,o,h,d){return this.put(new SVG.TurbulenceEffect(n,r,o,h,d))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(n){var r=this.put(new SVG.Filter);return"function"==typeof n&&n.call(r,r),r}}),SVG.extend(SVG.Container,{filter:function(n){return this.defs().filter(n)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(n){return this.filterer=n instanceof SVG.Element?n:this.doc().filter(n),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(n){return this.filterer&&!0===n&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(n){return null==n?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return null==n?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(n){return null==n?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return null==n?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}});var L={blend:function(n,r){return this.parent()&&this.parent().blend(this,n,r)},colorMatrix:function(n,r){return this.parent()&&this.parent().colorMatrix(n,r).in(this)},convolveMatrix:function(n){return this.parent()&&this.parent().convolveMatrix(n).in(this)},componentTransfer:function(n){return this.parent()&&this.parent().componentTransfer(n).in(this)},composite:function(n,r){return this.parent()&&this.parent().composite(this,n,r)},flood:function(n,r){return this.parent()&&this.parent().flood(n,r)},offset:function(n,r){return this.parent()&&this.parent().offset(n,r).in(this)},image:function(n){return this.parent()&&this.parent().image(n)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(n,r){return this.parent()&&this.parent().gaussianBlur(n,r).in(this)},morphology:function(n,r){return this.parent()&&this.parent().morphology(n,r).in(this)},diffuseLighting:function(n,r,o){return this.parent()&&this.parent().diffuseLighting(n,r,o).in(this)},displacementMap:function(n,r,o,h){return this.parent()&&this.parent().displacementMap(this,n,r,o,h)},specularLighting:function(n,r,o,h){return this.parent()&&this.parent().specularLighting(n,r,o,h).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(n,r,o,h,d){return this.parent()&&this.parent().turbulence(n,r,o,h,d).in(this)}};SVG.extend(SVG.Effect,L),SVG.extend(SVG.ParentEffect,L),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(n){this.attr("in",n)}}});var e={blend:function(n,r,o){this.attr({in:n,in2:r,mode:o||"normal"})},colorMatrix:function(n,r){"matrix"==n&&(r=s(r)),this.attr({type:n,values:void 0===r?null:r})},convolveMatrix:function(n){n=s(n),this.attr({order:Math.sqrt(n.split(" ").length),kernelMatrix:n})},composite:function(n,r,o){this.attr({in:n,in2:r,operator:o})},flood:function(n,r){this.attr("flood-color",n),null!=r&&this.attr("flood-opacity",r)},offset:function(n,r){this.attr({dx:n,dy:r})},image:function(n){this.attr("href",n,SVG.xlink)},displacementMap:function(n,r,o,h,d){this.attr({in:n,in2:r,scale:o,xChannelSelector:h,yChannelSelector:d})},gaussianBlur:function(n,r){this.attr("stdDeviation",null!=n||null!=r?function(o){if
vendor: 10,105 bytes, lines 5-9
5(!Array.isArray(o))return o;for(var h=0,d=o.length,u=[];h<d;h++)u.push(o[h]);return u.join(" ")}(Array.prototype.slice.call(arguments)):"0 0")},morphology:function(n,r){this.attr({operator:n,radius:r})},tile:function(){},turbulence:function(n,r,o,h,d){this.attr({numOctaves:r,seed:o,stitchTiles:h,baseFrequency:n,type:d})}},t={merge:function(){var n;if(arguments[0]instanceof SVG.Set){var r=this;arguments[0].each(function(h){this instanceof SVG.MergeNode?r.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&r.put(new SVG.MergeNode(this))})}else{n=Array.isArray(arguments[0])?arguments[0]:arguments;for(var o=0;o<n.length;o++)n[o]instanceof SVG.MergeNode?this.put(n[o]):this.put(new SVG.MergeNode(n[o]))}},componentTransfer:function(n){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(o){this[o]=new(SVG["Func"+o.toUpperCase()])("identity"),this.rgb.add(this[o]),this.node.appendChild(this[o].node)}.bind(this)),n)for(var r in n.rgb&&(["r","g","b"].forEach(function(o){this[o].attr(n.rgb)}.bind(this)),delete n.rgb),n)this[r].attr(n[r])},diffuseLighting:function(n,r,o){this.attr({surfaceScale:n,diffuseConstant:r,kernelUnitLength:o})},specularLighting:function(n,r,o,h){this.attr({surfaceScale:n,diffuseConstant:r,specularExponent:o,kernelUnitLength:h})}},i={distantLight:function(n,r){this.attr({azimuth:n,elevation:r})},pointLight:function(n,r,o){this.attr({x:n,y:r,z:o})},spotLight:function(n,r,o,h,d,u){this.attr({x:n,y:r,z:o,pointsAtX:h,pointsAtY:d,pointsAtZ:u})},mergeNode:function(n){this.attr("in",n)}};function s(n){return Array.isArray(n)&&(n=new SVG.Array(n)),n.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function a(){var n=function(){};for(var r in"function"==typeof arguments[arguments.length-1]&&(n=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var o in arguments[r])n(arguments[r][o],o,arguments[r])}["r","g","b","a"].forEach(function(n){i["Func"+n.toUpperCase()]=function(r){switch(this.attr("type",r),r){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),a(e,function(n,r){var o=r.charAt(0).toUpperCase()+r.slice(1);SVG[o+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+o)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),a(t,function(n,r){var o=r.charAt(0).toUpperCase()+r.slice(1);SVG[o+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+o)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),a(i,function(n,r){var o=r.charAt(0).toUpperCase()+r.slice(1);SVG[o]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+o)),n.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(n){return n instanceof SVG.MergeNode?this.add(n,0):this.add(new SVG.MergeNode(n),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(n){return null==n?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",n)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function L(a,n,r,o,h,d,u){for(var g=a.slice(n,r||u),m=o.slice(h,d||u),b=0,w={pos:[0,0],start:[0,0]},C={pos:[0,0],start:[0,0]};g[b]=e.call(w,g[b]),m[b]=e.call(C,m[b]),g[b][0]!=m[b][0]||"M"==g[b][0]||"A"==g[b][0]&&(g[b][4]!=m[b][4]||g[b][5]!=m[b][5])?(Array.prototype.splice.apply(g,[b,1].concat(i.call(w,g[b]))),Array.prototype.splice.apply(m,[b,1].concat(i.call(C,m[b])))):(g[b]=t.call(w,g[b]),m[b]=t.call(C,m[b])),++b!=g.length||b!=m.length;)b==g.length&&g.push(["C",w.pos[0],w.pos[1],w.pos[0],w.pos[1],w.pos[0],w.pos[1]]),b==m.length&&m.push(["C",C.pos[0],C.pos[1],C.pos[0],C.pos[1],C.pos[0],C.pos[1]]);return{start:g,dest:m}}function e(a){switch(a[0]){case"z":case"Z":a[0]="L",a[1]=this.start[0],a[2]=this.start[1];break;case"H":a[0]="L",a[2]=this.pos[1];break;case"V":a[0]="L",a[2]=a[1],a[1]=this.pos[0];break;case"T":a[0]="Q",a[3]=a[1],a[4]=a[2],a[1]=this.reflection[1],a[2]=this.reflection[0];break;case"S":a[0]="C",a[6]=a[4],a[5]=a[3],a[4]=a[2],a[3]=a[1],a[2]=this.reflection[1],a[1]=this.reflection[0]}return a}function t(a){var n=a.length;return this.pos=[a[n-2],a[n-1]],-1!="SCQT".indexOf(a[0])&&(this.reflection=[2*this.pos[0]-a[n-4],2*this.pos[1]-a[n-3]]),a}function i(a){var n=[a];switch(a[0]){case"M":return this.pos=this.start=[a[1],a[2]],n;case"L":a[5]=a[3]=a[1],a[6]=a[4]=a[2],a[1]=this.pos[0],a[2]=this.pos[1];break;case"Q":a[6]=a[4],a[5]=a[3],a[4]=1*a[4]/3+2*a[2]/3,a[3]=1*a[3]/3+2*a[1]/3,a[2]=1*this.pos[1]/3+2*a[2]/3,a[1]=1*this.pos[0]/3+2*a[1]/3;break;case"A":a=(n=function(r,o){var h,d,u,g,m,b,w,C,T,_,l,f,k,I,M,N,Y,F,te,oe,K,le,pe,ve,Ae,Te,De=Math.abs(o[1]),ze=Math.abs(o[2]),Xe=o[3]%360,Ke=o[4],tt=o[5],Re=o[6],Ct=o[7],Ve=new SVG.Point(r),Be=new SVG.Point(Re,Ct),qe=[];if(0===De||0===ze||Ve.x===Be.x&&Ve.y===Be.y)return[["C",Ve.x,Ve.y,Be.x,Be.y,Be.x,Be.y]];for((d=(h=new SVG.Point((Ve.x-Be.x)/2,(Ve.y-Be.y)/2).transform((new SVG.Matrix).rotate(Xe))).x*h.x/(De*De)+h.y*h.y/(ze*ze))>1&&(De*=d=Math.sqrt(d),ze*=d),u=(new SVG.Matrix).rotate(Xe).scale(1/De,1/ze).rotate(-Xe),Ve=Ve.transform(u),b=(g=[(Be=Be.transform(u)).x-Ve.x,Be.y-Ve.y])[0]*g[0]+g[1]*g[1],m=Math.sqrt(b),g[0]/=m,g[1]/=m,w=b<4?Math.sqrt(1-b/4):0,Ke===tt&&(w*=-1),C=new SVG.Point((Be.x+Ve.x)/2+w*-g[1],(Be.y+Ve.y)/2+w*g[0]),T=new SVG.Point(Ve.x-C.x,Ve.y-C.y),_=new SVG.Point(Be.x-C.x,Be.y-C.y),l=Math.acos(T.x/Math.sqrt(T.x*T.x+T.y*T.y)),T.y<0&&(l*=-1),f=Math.acos(_.x/Math.sqrt(_.x*_.x+_.y*_.y)),_.y<0&&(f*=-1),tt&&l>f&&(f+=2*Math.PI),!tt&&l<f&&(f-=2*Math.PI),N=[],Y=l,k=(f-l)/(I=Math.ceil(2*Math.abs(l-f)/Math.PI)),M=4*Math.tan(k/4)/3,K=0;K<=I;K++)te=Math.cos(Y),F=Math.sin(Y),oe=new SVG.Point(C.x+te,C.y+F),N[K]=[new SVG.Point(oe.x+M*F,oe.y-M*te),oe,new SVG.Point(oe.x-M*F,oe.y+M*te)],Y+=k;for(N[0][0]=N[0][1].clone(),N[N.length-1][2]=N[N.length-1][1].clone(),u=(new SVG.Matrix).rotate(Xe).scale(De,ze).rotate(-Xe),K=0,le=N.length;K<le;K++)N[K][0]=N[K][0].transform(u),N[K][1]=N[K][1].transform(u),N[K][2]=N[K][2].transform(u);for(K=1,le=N.length;K<le;K++)pe=(oe=N[K-1][2]).x,ve=oe.y,Ae=(oe=N[K][0]).x,Te=oe.y,Re=(oe=N[K][1]).x,qe.push(["C",pe,ve,Ae,Te,Re,Ct=oe.y]);return qe}(this.pos,a))[0]}return a[0]="C",this.pos=[a[5],a[6]],this.reflection=[2*a[5]-a[3],2*a[6]-a[4]],n}function s(a,n){if(!1===n)return!1;for(var r=n,o=a.length;r<o;++r)if("M"==a[r][0])return r;return!1}SVG.extend(SVG.PathArray,{morph:function(a){for(var n=this.value,r=this.parse(a),o=0,h=0,d=!1,u=!1;!1!==o||!1!==h;){var g;d=s(n,!1!==o&&o+1),u=s(r,!1!==h&&h+1),!1===o&&(o=0==(g=new SVG.PathArray(m.start).bbox()).height||0==g.width?n.push(n[0])-1:n.push(["M",g.x+g.width/2,g.y+g.height/2])-1),!1===h&&(h=0==(g=new SVG.PathArray(m.dest).bbox()).height||0==g.width?r.push(r[0])-1:r.push(["M",g.x+g.width/2,g.y+g.height/2])-1);var m=L(n,o,d,r,h,u);n=n.slice(0,o).concat(m.start,!1===d?[]:n.slice(d)),r=r.slice(0,h).concat(m.dest,!1===u?[]:r.slice(u)),o=!1!==d&&o+m.start.length,h=!1!==u&&h+m.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=r,this}})}(), 6/*! svg.draggable.js - v2.2.2 - 2019-01-08 7 * https://github.com/svgdotjs/svg.draggable.js 8 * Copyright (c) 2019 Wout Fierens; Licensed MIT */ 9function(){function L(e){e.remember("_draggable",this),this.el=e}L.prototype.init=function(e,t){var i=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",function(s){i.start(s)}),this.el.on("touchstart.drag",function(s){i.start(s)})},L.prototype.transformPoint=function(e,t){var i=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=i.clientX-(t||0),this.p.y=i.clientY,this.p.matrixTransform(this.m)},L.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},L.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var i,s=this.getBBox();if(this.el instanceof SVG.Text)switch(i=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":i/=2;break;case"start":i=0}this.startPoints={point:this.transformPoint(e,i),box:s,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(a){t.drag(a)}),SVG.on(window,"touchmove.drag",function(a){t.drag(a)}),SVG.on(window,"mouseup.drag",function(a){t.end(a)}),SVG.on(window,"touchend.drag",function(a){t.end(a)}),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},L.prototype.drag=function(e){var t=this.getBBox(),i=this.transformPoint(e),s=this.startPoints.box.x+i.x-this.startPoints.point.x,a=this.startPoints.box.y+i.y-this.startPoints.point.y,n=this.constraint,r=i.x-this.startPoints.point.x,o=i.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:i,m:this.m,handler:this}),this.el.event().defaultPrevented)return i;if("function"==typeof n){var h=n.call(this.el,s,a,this.m);"boolean"==typeof h&&(h={x:h,y:h}),!0===h.x?this.el.x(s):!1!==h.x&&this.el.x(h.x),!0===h.y?this.el.y(a):!1!==h.y&&this.el.y(h.y)}else"object"==typeof n&&(null!=n.minX&&s<n.minX?r=(s=n.minX)-this.startPoints.box.x:null!=n.maxX&&s>n.maxX-t.width&&(r=(s=n.maxX-t.width)-this.startPoints.box.x),null!=n.minY&&a<n.minY?o=(a=n.minY)-this.startPoints.box.y:null!=n.maxY&&a>n.maxY-t.height&&(o=(a=n.maxY-t.height)-this.startPoints.box.y),null!=n.snapToGri
vendor: 9,296 bytes, line 9
9d&&(s-=s%n.snapToGrid,a-=a%n.snapToGrid,r-=r%n.snapToGrid,o-=o%n.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:r,y:o},!0):this.el.move(s,a));return i},L.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,t){"function"!=typeof e&&"object"!=typeof e||(t=e,e=!0);var i=this.remember("_draggable")||new L(this);return(e=void 0===e||e)?i.init(t||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function L(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(t,i,s){var a="string"!=typeof t?t:i[t];return s?a/2:a},this.pointCoords=function(t,i){var s=this.pointsList[t];return{x:this.pointCoord(s[0],i,"t"===t||"b"===t),y:this.pointCoord(s[1],i,"r"===t||"l"===t)}}}L.prototype.init=function(e,t){var i=this.el.bbox();this.options={};var s=this.el.selectize.defaults.points;for(var a in this.el.selectize.defaults)this.options[a]=this.el.selectize.defaults[a],void 0!==t[a]&&(this.options[a]=t[a]);var n=["points","pointsExclude"];for(var a in n){var r=this.options[n[a]];"string"==typeof r?r=r.length>0?r.split(/\s*,\s*/i):[]:"boolean"==typeof r&&"points"===n[a]&&(r=r?s:[]),this.options[n[a]]=r}this.options.points=[s,this.options.points].reduce(function(o,h){return o.filter(function(d){return h.indexOf(d)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(o,h){return o.filter(function(d){return h.indexOf(d)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},L.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},L.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},L.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),i=0,s=t.length;i<s;++i){var a=function(r){return function(o){(o=o||window.event).preventDefault?o.preventDefault():o.returnValue=!1,o.stopPropagation(),e.el.fire("point",{x:o.pageX||o.touches[0].pageX,y:o.pageY||o.touches[0].pageY,i:r,event:o})}}(i),n=this.drawPoint(t[i][0],t[i][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",a).on("mousedown",a);this.pointSelection.set.add(n)}},L.prototype.drawPoint=function(e,t){var i=this.options.pointType;switch(i){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof i)return i.call(this,e,t);throw new Error("Unknown "+i+" point type!")}},L.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},L.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},L.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])})},L.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map(function(s,a){var n=e.pointCoords(s,t);e.rectSelection.set.get(a+1).center(n.x,n.y)}),this.options.rotationPoint){var i=this.rectSelection.set.length();this.rectSelection.set.get(i-1).center(t.width/2,20)}},L.prototype.selectRect=function(e){var t=this,i=this.el.bbox();function s(r){return function(o){(o=o||window.event).preventDefault?o.preventDefault():o.returnValue=!1,o.stopPropagation(),t.el.fire(r,{x:o.pageX||o.touches[0].pageX,y:o.pageY||o.touches[0].pageY,event:o})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(i.width,i.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(r,o){var h=t.pointCoords(r,i),d=t.drawPoint(h.x,h.y).attr("class",t.options.classPoints+"_"+r).on("mousedown",s(r)).on("touchstart",s(r));t.rectSelection.set.add(d)}),this.rectSelection.set.each(function(){this.addClass(t.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var a=function(r){(r=r||window.event).preventDefault?r.preventDefault():r.returnValue=!1,r.stopPropagation(),t.el.fire("rot",{x:r.pageX||r.touches[0].pageX,y:r.pageY||r.touches[0].pageY,event:r})},n=this.drawPoint(i.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",a).on("mousedown",a);this.rectSelection.set.add(n)}},L.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},L.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){e.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch{}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){e.handler()})},L.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(e,t){return"object"==typeof e&&(t=e,e=!0),(this.remember("_selectHandler")||new L(this)).init(void 0===e||e,t||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function L(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}L.prototype.transformPoint=function(e,t,i){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(i||this.m)},L.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},L.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var i in this.options={},this.el.resize.defaults)this.options[i]=this.el.resize.defaults[i],void 0!==e[i]&&(this.options[i]=e[i]);this.el.on("lt.resize",function(s){t.resize(s||window.event)}),this.el.on("rt.resize",function(s){t.resize(s||window.event)}),this.el.on("rb.resize",function(s){t.resize(s||window.event)}),this.el.on("lb.resize",function(s){t.resize(s||window.event)}),this.el.on("t.resize",function(s){t.resize(s||window.event)}),this.el.on("r.resize",function(s){t.resize(s||window.event)}),this.el.on("b.resize",function(s){t.resize(s||window.event)}),this.el.on("l.resize",function(s){t.resize(s||window.event)}),this.el.on("rot.resize",function(s){t.resize(s||window.event)}),this.el.on("point.resize",function(s){t.resize(s||window.event)}),this.update()}},L.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},L.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var i=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(i.x,i.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==e.detail.i){var s=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[s[e.detail.i][0],s[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(a,n){var r=this.snapToGri
vendor: 4,541 bytes, line 9
9d(a,n);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height-r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y+r[1]).size(this.parameters.box.width-r[0],this.parameters.box.height-r[1])}};break;case"rt":this.calc=function(a,n){var r=this.snapToGrid(a,n,2);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height-r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).size(this.parameters.box.width+r[0],this.parameters.box.height-r[1])}};break;case"rb":this.calc=function(a,n){var r=this.snapToGrid(a,n,0);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height+r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+r[0],this.parameters.box.height+r[1])}};break;case"lb":this.calc=function(a,n){var r=this.snapToGrid(a,n,1);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height+r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).size(this.parameters.box.width-r[0],this.parameters.box.height+r[1])}};break;case"t":this.calc=function(a,n){var r=this.snapToGrid(a,n,2);if(this.parameters.box.height-r[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).height(this.parameters.box.height-r[1])}};break;case"r":this.calc=function(a,n){var r=this.snapToGrid(a,n,0);if(this.parameters.box.width+r[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+r[0])}};break;case"b":this.calc=function(a,n){var r=this.snapToGrid(a,n,0);if(this.parameters.box.height+r[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+r[1])}};break;case"l":this.calc=function(a,n){var r=this.snapToGrid(a,n,1);if(this.parameters.box.width-r[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).width(this.parameters.box.width-r[0])}};break;case"rot":this.calc=function(a,n){var r=a+this.parameters.p.x,o=n+this.parameters.p.y,h=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),d=Math.atan2(o-this.parameters.box.y-this.parameters.box.height/2,r-this.parameters.box.x-this.parameters.box.width/2),u=this.parameters.rotation+180*(d-h)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(u-u%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(a,n){var r=this.snapToGrid(a,n,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),o=this.el.array().valueOf();o[this.parameters.i][0]=this.parameters.pointCoords[0]+r[0],o[this.parameters.i][1]=this.parameters.pointCoords[1]+r[1],this.el.plot(o)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(a){t.update(a||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(a){t.update(a||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},L.prototype.update=function(e){if(e){var t=this._extractPosition(e),i=this.transformPoint(t.x,t.y),s=i.x-this.parameters.p.x,a=i.y-this.parameters.p.y;this.lastUpdateCall=[s,a],this.calc(s,a),this.el.fire("resizing",{dx:s,dy:a,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},L.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")}
vendor: 5,925 bytes, line 9
9,L.prototype.snapToGrid=function(e,t,i,s){var a;return a=void 0!==s?[(i+e)%this.options.snapToGrid,(s+t)%this.options.snapToGrid]:[(this.parameters.box.x+e+(1&(i=i??3)?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&i?0:this.parameters.box.height))%this.options.snapToGrid],e<0&&(a[0]-=this.options.snapToGrid),t<0&&(a[1]-=this.options.snapToGrid),e-=Math.abs(a[0])<this.options.snapToGrid/2?a[0]:a[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(a[1])<this.options.snapToGrid/2?a[1]:a[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,i,s)},L.prototype.constraintToBox=function(e,t,i,s){var a,n,r=this.options.constraint||{};return void 0!==s?(a=i,n=s):(a=this.parameters.box.x+(1&i?0:this.parameters.box.width),n=this.parameters.box.y+(2&i?0:this.parameters.box.height)),void 0!==r.minX&&a+e<r.minX&&(e=r.minX-a),void 0!==r.maxX&&a+e>r.maxX&&(e=r.maxX-a),void 0!==r.minY&&n+t<r.minY&&(t=r.minY-n),void 0!==r.maxY&&n+t>r.maxY&&(t=r.maxY-n),[e,t]},L.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var i=e.slice(),s=this.parameters.box.width/this.parameters.box.height,a=this.parameters.box.width+e[0],n=this.parameters.box.height-e[1],r=a/n;return r<s?(i[1]=a/s-this.parameters.box.height,t&&(i[1]=-i[1])):r>s&&(i[0]=this.parameters.box.width-n*s,t&&(i[0]=-i[0])),i},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new L(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var si=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new gt(this.ctx),this.ctx.axes=new Bt(this.ctx),this.ctx.core=new Cs(this.ctx.el,this.ctx),this.ctx.config=new Dt({}),this.ctx.data=new Pi(this.ctx),this.ctx.grid=new Ce(this.ctx),this.ctx.graphics=new ne(this.ctx),this.ctx.coreUtils=new st(this.ctx),this.ctx.crosshairs=new yi(this.ctx),this.ctx.events=new rs(this.ctx),this.ctx.exports=new At(this.ctx),this.ctx.localization=new hi(this.ctx),this.ctx.options=new It,this.ctx.responsive=new Ei(this.ctx),this.ctx.series=new rt(this.ctx),this.ctx.theme=new Ds(this.ctx),this.ctx.formatters=new Ue(this.ctx),this.ctx.titleSubtitle=new jt(this.ctx),this.ctx.legend=new Gt(this.ctx),this.ctx.toolbar=new Zi(this.ctx),this.ctx.tooltip=new os(this.ctx),this.ctx.dimensions=new qi(this.ctx),this.ctx.updateHelpers=new ds(this.ctx),this.ctx.zoomPanSelection=new ei(this.ctx),this.ctx.w.globals.tooltip=new os(this.ctx)}}]),L}(),Oi=function(){function L(e){E(this,L),this.ctx=e,this.w=e.w}return O(L,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(t,i){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,s=this.w.globals.dom.Paper.node;s.parentNode&&s.parentNode.parentNode&&!e.isUpdating&&(s.parentNode.parentNode.style.minHeight="unset");var a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach(function(r){a.removeEventListener(r,t.ctx.events.documentEvent)});var n=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(n.Paper),n.Paper.remove(),n.elWrap=null,n.elGraphical=null,n.elLegendWrap=null,n.elLegendForeign=null,n.baseEl=null,n.elGridRect=null,n.elGridRectMask=null,n.elGridRectMarkerMask=null,n.elForecastMask=null,n.elNonForecastMask=null,n.elDefs=null}}]),L}(),qt=new WeakMap,us=function(){function L(e,t){E(this,L),this.opts=t,this.ctx=this,this.w=new as(t).init(),this.el=e,this.w.globals.cuid=W.randomId(),this.w.globals.chartID=this.w.config.chart.id?W.escapeString(this.w.config.chart.id):this.w.globals.cuid,new si(this).initModules(),this.create=W.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return O(L,[{key:"render",value:function(){var e=this;return new Promise(function(t,i){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var s=e.w.config.chart.events.beforeMount;"function"==typeof s&&s(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(g,m){var b=!1;if(g.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var w=g.getBoundingClientRect();"none"!==g.style.display&&0!==w.width||(b=!0)}var C=new ResizeObserver(function(T){b&&m.call(g,T),b=!0});g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(g.children).forEac
9h(function(T){return C.observe(T)}):C.observe(g),qt.set(m,C)}(e.el.parentNode,e.parentResizeHandler);var a=e.el.getRootNode&&e.el.getRootNode(),n=W.is("ShadowRoot",a),r=e.el.ownerDocument,o=n?a.getElementById("apexcharts-css"):r.getElementById("apexcharts-css");if(!o){var h;(o=document.createElement("style")).id="apexcharts-css",o.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}
9\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,\n.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,\n.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,\n.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>
9div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}';var d=(null===(h=e.opts.chart)||void 0===h?void 0:h.nonce)||e.w.config.chart.nonce;d&&o.setAttribute("nonce",d),n?a.prepend(o):r.head.appendChild(o)}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then(function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)}).catch(function(g){i(g)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this.w;new si(this).initModules();var s=this.w.globals;if(s.noData=!1,s.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new oi(i.config).convertCatToNumericXaxis(i.config,this.ctx),null===this.el||(this.core.setupElements(),"treemap"===i.config.chart.type&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),0===s.svgWidth))return s.animationEnded=!0,null;var a=st.checkComboSeries(e,i.config.chart.type);s.comboCharts=a.comboCharts,s.comboBarCount=a.comboBarCount;var n=e.every(function(d){return d.data&&0===d.data.length});(0===e.length||n&&s.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new Wt(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),s.noData&&s.collapsedSeries.length!==s.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),s.axisCharts&&(this.core.coreCalculations(),"category"!==i.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new st(this).getLargestMarkerSize(),this.dimensions.plotCoords();var r=this.core.xySettings();this.grid.createGridMask();var o=this.core.plotChartType(e,r),h=new li(this);return h.bringForward(),i.config.dataLabels.background.enabled&&h.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:o,xyRatios:r,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,s=i.w;return new Promise(function(a,n){if(null===i.el)return n(new Error("Not enough data to display or target element not found"));(null===t||s.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new Ce(i);var r,o,h=i.grid.drawGrid();if(i.annotations=new ys(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===s.config.grid.position&&(h&&s.globals.dom.elGraphical.add(h.el),null!=h&&null!==(r=h.elGridBorders)&&void 0!==r&&r.node&&s.globals.dom.elGraphical.add(h.elGridBorders)),Array.isArray(t.elGraph))for(var d=0;d<t.elGraph.length;d++)s.globals.dom.elGraphical.add(t.elGraph[d]);else s.globals.dom.elGraphical.add(t.elGraph);"front"===s.config.grid.position&&(h&&s.globals.dom.elGraphical.add(h.el),null!=h&&null!==(o=h.elGridBorders)&&void 0!==o&&o.node&&s.globals.dom.elGraphical.add(h.elGridBorders)),"front"===s.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===s.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"treemap"!==s.config.chart.type&&i.axes.drawAxis(s.config.chart.type,h);var u=new xt(e.ctx,h),g=new ns(e.ctx,h);if(null!==h&&(u.xAxisLabelCorrections(h.xAxisTickWidth),g.setYAxisTextAlignments(),s.config.yaxis.map(function(b,w){-1===s.globals.ignoreYAxisIndexes.indexOf(w)&&g.yAxisTitleRotate(w,b.opposite)})),i.annotations.drawAxesAnnotations(),!s.globals.noData){if(s.config.tooltip.enabled&&!s.globals.noData&&i.w.globals.tooltip.drawTooltip(t.xyRatios),s.globals.axisCharts&&(s.globals.isXNumeric||s.config.xaxis.convertedCatToNumeric||s.globals.isRangeBar))(s.config.chart.zoom.enabled||s.config.chart.selection&&s.config.chart.selection.enabled||s.config.chart.pan&&s.c
vendor: 7,525 bytes, line 9
9onfig.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:t.xyRatios});else{var m=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(b){m[b]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}s.globals.memory.methodsToExec.length>0&&s.globals.memory.methodsToExec.forEach(function(b){b.method(b.params,!1,b.context)}),s.globals.axisCharts||s.globals.noData||i.core.resizeNonAxisCharts(),a(i)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),(t=qt.get(e=this.parentResizeHandler))&&(t.disconnect(),qt.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(s,a){s.id===W.escapeString(i)&&Apex._chartInstances.splice(a,1)}),new Oi(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w;return r.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(o,h){return t.updateHelpers._extendSeries(o,h)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,s,a,n)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.w.config.series.slice();return s.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(s,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var s=i.w.config.series.slice(),a=0;a<s.length;a++)if(null!=e[a])for(var n=0;n<e[a].data.length;n++)s[a].data.push(e[a].data[n]);return i.w.config.series=s,t&&(i.w.globals.initialSeries=W.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(i,s){new Oi(t.ctx).clear({isUpdating:!0});var a=t.create(t.w.config.series,e);if(!a)return i(t);t.mount(a).then(function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)}).catch(function(n){s(n)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(i){t.push(i)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){this.series.resetSeries(!(arguments.length>0&&void 0!==arguments[0])||arguments[0],!(arguments.length>1&&void 0!==arguments[1])||arguments[1])}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addXaxisAnnotationExternal(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s)}},{key:"addYaxisAnnotation",value:function(e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addYaxisAnnotationExternal(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s)}},{key:"addPointAnnotation",value:function(e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addPointAnnotationExternal(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Fi(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Fi(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new At(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new At(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=W.escapeString(e);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(s){return s.id===t})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new L(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var s=null;if(-1!==i.publicMethods.indexOf(t)){for(var a=arguments.length,n=new Array(a>2?a-2:0),r=2;r<a;r++)n[r-2]=arguments[r];s=i[t].apply(i,n)}return s}}},{key:"merge",value:function(e,t){return W.extend(e,t)}}]),L}();return us});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.