Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/classify.picotech.app/public_html/public/build/assets/ drwxr-xr-x |
Viewing file: Select action/file-type: import{g as Ds,c as Dt}from"./_commonjsHelpers-725317a4.js";var Wl=function(){function s(i,l){l===void 0&&(l=[]),this._eventType=i,this._eventFunctions=l}return s.prototype.init=function(){var i=this;this._eventFunctions.forEach(function(l){typeof window<"u"&&window.addEventListener(i._eventType,l)})},s}(),Gl=function(){function s(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{}}}return s.prototype.addInstance=function(i,l,d,f){if(f===void 0&&(f=!1),!this._instances[i])return console.warn("Flowbite: Component ".concat(i," does not exist.")),!1;if(this._instances[i][d]&&!f){console.warn("Flowbite: Instance with ID ".concat(d," already exists."));return}f&&this._instances[i][d]&&this._instances[i][d].destroyAndRemoveInstance(),this._instances[i][d||this._generateRandomId()]=l},s.prototype.getAllInstances=function(){return this._instances},s.prototype.getInstances=function(i){return this._instances[i]?this._instances[i]:(console.warn("Flowbite: Component ".concat(i," does not exist.")),!1)},s.prototype.getInstance=function(i,l){if(this._componentAndInstanceCheck(i,l)){if(!this._instances[i][l]){console.warn("Flowbite: Instance with ID ".concat(l," does not exist."));return}return this._instances[i][l]}},s.prototype.destroyAndRemoveInstance=function(i,l){this._componentAndInstanceCheck(i,l)&&(this.destroyInstanceObject(i,l),this.removeInstance(i,l))},s.prototype.removeInstance=function(i,l){this._componentAndInstanceCheck(i,l)&&delete this._instances[i][l]},s.prototype.destroyInstanceObject=function(i,l){this._componentAndInstanceCheck(i,l)&&this._instances[i][l].destroy()},s.prototype.instanceExists=function(i,l){return!(!this._instances[i]||!this._instances[i][l])},s.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},s.prototype._componentAndInstanceCheck=function(i,l){return this._instances[i]?this._instances[i][l]?!0:(console.warn("Flowbite: Instance with ID ".concat(l," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(i," does not exist.")),!1)},s}(),Ee=new Gl;typeof window<"u"&&(window.FlowbiteInstances=Ee);var pa=globalThis&&globalThis.__assign||function(){return pa=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},pa.apply(this,arguments)},ga={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},Vl={id:null,override:!0},Cn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=[]),d===void 0&&(d=ga),f===void 0&&(f=Vl),this._instanceId=f.id?f.id:i.id,this._accordionEl=i,this._items=l,this._options=pa(pa({},ga),d),this._initialized=!1,this.init(),Ee.addInstance("Accordion",this,this._instanceId,f.override)}return s.prototype.init=function(){var i=this;this._items.length&&!this._initialized&&(this._items.forEach(function(l){l.active&&i.open(l.id);var d=function(){i.toggle(l.id)};l.triggerEl.addEventListener("click",d),l.clickHandler=d}),this._initialized=!0)},s.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach(function(i){i.triggerEl.removeEventListener("click",i.clickHandler),delete i.clickHandler}),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("Accordion",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.getItem=function(i){return this._items.filter(function(l){return l.id===i})[0]},s.prototype.open=function(i){var l,d,f=this,g=this.getItem(i);this._options.alwaysOpen||this._items.map(function(S){var y,A;S!==g&&((y=S.triggerEl.classList).remove.apply(y,f._options.activeClasses.split(" ")),(A=S.triggerEl.classList).add.apply(A,f._options.inactiveClasses.split(" ")),S.targetEl.classList.add("hidden"),S.triggerEl.setAttribute("aria-expanded","false"),S.active=!1,S.iconEl&&S.iconEl.classList.add("rotate-180"))}),(l=g.triggerEl.classList).add.apply(l,this._options.activeClasses.split(" ")),(d=g.triggerEl.classList).remove.apply(d,this._options.inactiveClasses.split(" ")),g.triggerEl.setAttribute("aria-expanded","true"),g.targetEl.classList.remove("hidden"),g.active=!0,g.iconEl&&g.iconEl.classList.remove("rotate-180"),this._options.onOpen(this,g)},s.prototype.toggle=function(i){var l=this.getItem(i);l.active?this.close(i):this.open(i),this._options.onToggle(this,l)},s.prototype.close=function(i){var l,d,f=this.getItem(i);(l=f.triggerEl.classList).remove.apply(l,this._options.activeClasses.split(" ")),(d=f.triggerEl.classList).add.apply(d,this._options.inactiveClasses.split(" ")),f.targetEl.classList.add("hidden"),f.triggerEl.setAttribute("aria-expanded","false"),f.active=!1,f.iconEl&&f.iconEl.classList.add("rotate-180"),this._options.onClose(this,f)},s.prototype.updateOnOpen=function(i){this._options.onOpen=i},s.prototype.updateOnClose=function(i){this._options.onClose=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function Hs(){document.querySelectorAll("[data-accordion]").forEach(function(s){var i=s.getAttribute("data-accordion"),l=s.getAttribute("data-active-classes"),d=s.getAttribute("data-inactive-classes"),f=[];s.querySelectorAll("[data-accordion-target]").forEach(function(g){if(g.closest("[data-accordion]")===s){var S={id:g.getAttribute("data-accordion-target"),triggerEl:g,targetEl:document.querySelector(g.getAttribute("data-accordion-target")),iconEl:g.querySelector("[data-accordion-icon]"),active:g.getAttribute("aria-expanded")==="true"};f.push(S)}}),new Cn(s,f,{alwaysOpen:i==="open",activeClasses:l||ga.activeClasses,inactiveClasses:d||ga.inactiveClasses})})}typeof window<"u"&&(window.Accordion=Cn,window.initAccordions=Hs);var ma=globalThis&&globalThis.__assign||function(){return ma=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},ma.apply(this,arguments)},Hr={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},jl={id:null,override:!0},cs=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=Hr),f===void 0&&(f=jl),this._instanceId=f.id?f.id:i.id,this._targetEl=i,this._triggerEl=l,this._options=ma(ma({},Hr),d),this._visible=!1,this._initialized=!1,this.init(),Ee.addInstance("Collapse",this,this._instanceId,f.override)}return s.prototype.init=function(){var i=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._clickHandler=function(){i.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},s.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("Collapse",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},s.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},s.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},s.prototype.updateOnCollapse=function(i){this._options.onCollapse=i},s.prototype.updateOnExpand=function(i){this._options.onExpand=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function Xs(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(s){var i=s.getAttribute("data-collapse-toggle"),l=document.getElementById(i);l?Ee.instanceExists("Collapse",l.getAttribute("id"))?new cs(l,s,{},{id:l.getAttribute("id")+"_"+Ee._generateRandomId()}):new cs(l,s):console.error('The target element with id "'.concat(i,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=cs,window.initCollapses=Xs);var qt=globalThis&&globalThis.__assign||function(){return qt=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},qt.apply(this,arguments)},la={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},$l={id:null,override:!0},En=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=[]),d===void 0&&(d=la),f===void 0&&(f=$l),this._instanceId=f.id?f.id:i.id,this._carouselEl=i,this._items=l,this._options=qt(qt(qt({},la),d),{indicators:qt(qt({},la.indicators),d.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),Ee.addInstance("Carousel",this,this._instanceId,f.override)}return s.prototype.init=function(){var i=this;this._items.length&&!this._initialized&&(this._items.map(function(l){l.el.classList.add("absolute","inset-0","transition-transform","transform")}),this.getActiveItem()?this.slideTo(this.getActiveItem().position):this.slideTo(0),this._indicators.map(function(l,d){l.el.addEventListener("click",function(){i.slideTo(d)})}),this._initialized=!0)},s.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("Carousel",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.getItem=function(i){return this._items[i]},s.prototype.slideTo=function(i){var l=this._items[i],d={left:l.position===0?this._items[this._items.length-1]:this._items[l.position-1],middle:l,right:l.position===this._items.length-1?this._items[0]:this._items[l.position+1]};this._rotate(d),this._setActiveItem(l),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},s.prototype.next=function(){var i=this.getActiveItem(),l=null;i.position===this._items.length-1?l=this._items[0]:l=this._items[i.position+1],this.slideTo(l.position),this._options.onNext(this)},s.prototype.prev=function(){var i=this.getActiveItem(),l=null;i.position===0?l=this._items[this._items.length-1]:l=this._items[i.position-1],this.slideTo(l.position),this._options.onPrev(this)},s.prototype._rotate=function(i){if(this._items.map(function(l){l.el.classList.add("hidden")}),this._items.length===1){i.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),i.middle.el.classList.add("translate-x-0","z-20");return}i.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),i.left.el.classList.add("-translate-x-full","z-10"),i.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),i.middle.el.classList.add("translate-x-0","z-30"),i.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-30"),i.right.el.classList.add("translate-x-full","z-20")},s.prototype.cycle=function(){var i=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){i.next()},this._intervalDuration))},s.prototype.pause=function(){clearInterval(this._intervalInstance)},s.prototype.getActiveItem=function(){return this._activeItem},s.prototype._setActiveItem=function(i){var l,d,f=this;this._activeItem=i;var g=i.position;this._indicators.length&&(this._indicators.map(function(S){var y,A;S.el.setAttribute("aria-current","false"),(y=S.el.classList).remove.apply(y,f._options.indicators.activeClasses.split(" ")),(A=S.el.classList).add.apply(A,f._options.indicators.inactiveClasses.split(" "))}),(l=this._indicators[g].el.classList).add.apply(l,this._options.indicators.activeClasses.split(" ")),(d=this._indicators[g].el.classList).remove.apply(d,this._options.indicators.inactiveClasses.split(" ")),this._indicators[g].el.setAttribute("aria-current","true"))},s.prototype.updateOnNext=function(i){this._options.onNext=i},s.prototype.updateOnPrev=function(i){this._options.onPrev=i},s.prototype.updateOnChange=function(i){this._options.onChange=i},s}();function Rs(){document.querySelectorAll("[data-carousel]").forEach(function(s){var i=s.getAttribute("data-carousel-interval"),l=s.getAttribute("data-carousel")==="slide",d=[],f=0;s.querySelectorAll("[data-carousel-item]").length&&Array.from(s.querySelectorAll("[data-carousel-item]")).map(function(M,T){d.push({position:T,el:M}),M.getAttribute("data-carousel-item")==="active"&&(f=T)});var g=[];s.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(s.querySelectorAll("[data-carousel-slide-to]")).map(function(M){g.push({position:parseInt(M.getAttribute("data-carousel-slide-to")),el:M})});var S=new En(s,d,{defaultPosition:f,indicators:{items:g},interval:i||la.interval});l&&S.cycle();var y=s.querySelector("[data-carousel-next]"),A=s.querySelector("[data-carousel-prev]");y&&y.addEventListener("click",function(){S.next()}),A&&A.addEventListener("click",function(){S.prev()})})}typeof window<"u"&&(window.Carousel=En,window.initCarousels=Rs);var va=globalThis&&globalThis.__assign||function(){return va=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},va.apply(this,arguments)},Xr={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},ql={id:null,override:!0},Tn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=Xr),f===void 0&&(f=ql),this._instanceId=f.id?f.id:i.id,this._targetEl=i,this._triggerEl=l,this._options=va(va({},Xr),d),this._initialized=!1,this.init(),Ee.addInstance("Dismiss",this,this._instanceId,f.override)}return s.prototype.init=function(){var i=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){i.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},s.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("Dismiss",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.hide=function(){var i=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){i._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},s.prototype.updateOnHide=function(i){this._options.onHide=i},s}();function Ys(){document.querySelectorAll("[data-dismiss-target]").forEach(function(s){var i=s.getAttribute("data-dismiss-target"),l=document.querySelector(i);l?new Tn(l,s):console.error('The dismiss element with id "'.concat(i,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=Tn,window.initDismisses=Ys);var Ze="top",lt="bottom",ct="right",Ke="left",Fs="auto",Bi=[Ze,lt,ct,Ke],ui="start",Ri="end",Ul="clippingParents",Ln="viewport",Ci="popper",Zl="reference",Rr=Bi.reduce(function(s,i){return s.concat([i+"-"+ui,i+"-"+Ri])},[]),_n=[].concat(Bi,[Fs]).reduce(function(s,i){return s.concat([i,i+"-"+ui,i+"-"+Ri])},[]),Kl="beforeRead",Jl="read",Ql="afterRead",ec="beforeMain",tc="main",ic="afterMain",ac="beforeWrite",sc="write",rc="afterWrite",nc=[Kl,Jl,Ql,ec,tc,ic,ac,sc,rc];function xt(s){return s?(s.nodeName||"").toLowerCase():null}function st(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var i=s.ownerDocument;return i&&i.defaultView||window}return s}function si(s){var i=st(s).Element;return s instanceof i||s instanceof Element}function ot(s){var i=st(s).HTMLElement;return s instanceof i||s instanceof HTMLElement}function Ns(s){if(typeof ShadowRoot>"u")return!1;var i=st(s).ShadowRoot;return s instanceof i||s instanceof ShadowRoot}function oc(s){var i=s.state;Object.keys(i.elements).forEach(function(l){var d=i.styles[l]||{},f=i.attributes[l]||{},g=i.elements[l];!ot(g)||!xt(g)||(Object.assign(g.style,d),Object.keys(f).forEach(function(S){var y=f[S];y===!1?g.removeAttribute(S):g.setAttribute(S,y===!0?"":y)}))})}function lc(s){var i=s.state,l={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,l.popper),i.styles=l,i.elements.arrow&&Object.assign(i.elements.arrow.style,l.arrow),function(){Object.keys(i.elements).forEach(function(d){var f=i.elements[d],g=i.attributes[d]||{},S=Object.keys(i.styles.hasOwnProperty(d)?i.styles[d]:l[d]),y=S.reduce(function(A,M){return A[M]="",A},{});!ot(f)||!xt(f)||(Object.assign(f.style,y),Object.keys(g).forEach(function(A){f.removeAttribute(A)}))})}}const cc={name:"applyStyles",enabled:!0,phase:"write",fn:oc,effect:lc,requires:["computeStyles"]};function vt(s){return s.split("-")[0]}var Jt=Math.max,xa=Math.min,fi=Math.round;function ds(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Mn(){return!/^((?!chrome|android).)*safari/i.test(ds())}function pi(s,i,l){i===void 0&&(i=!1),l===void 0&&(l=!1);var d=s.getBoundingClientRect(),f=1,g=1;i&&ot(s)&&(f=s.offsetWidth>0&&fi(d.width)/s.offsetWidth||1,g=s.offsetHeight>0&&fi(d.height)/s.offsetHeight||1);var S=si(s)?st(s):window,y=S.visualViewport,A=!Mn()&&l,M=(d.left+(A&&y?y.offsetLeft:0))/f,T=(d.top+(A&&y?y.offsetTop:0))/g,_=d.width/f,H=d.height/g;return{width:_,height:H,top:T,right:M+_,bottom:T+H,left:M,x:M,y:T}}function Bs(s){var i=pi(s),l=s.offsetWidth,d=s.offsetHeight;return Math.abs(i.width-l)<=1&&(l=i.width),Math.abs(i.height-d)<=1&&(d=i.height),{x:s.offsetLeft,y:s.offsetTop,width:l,height:d}}function Pn(s,i){var l=i.getRootNode&&i.getRootNode();if(s.contains(i))return!0;if(l&&Ns(l)){var d=i;do{if(d&&s.isSameNode(d))return!0;d=d.parentNode||d.host}while(d)}return!1}function Et(s){return st(s).getComputedStyle(s)}function dc(s){return["table","td","th"].indexOf(xt(s))>=0}function Nt(s){return((si(s)?s.ownerDocument:s.document)||window.document).documentElement}function Ha(s){return xt(s)==="html"?s:s.assignedSlot||s.parentNode||(Ns(s)?s.host:null)||Nt(s)}function Yr(s){return!ot(s)||Et(s).position==="fixed"?null:s.offsetParent}function hc(s){var i=/firefox/i.test(ds()),l=/Trident/i.test(ds());if(l&&ot(s)){var d=Et(s);if(d.position==="fixed")return null}var f=Ha(s);for(Ns(f)&&(f=f.host);ot(f)&&["html","body"].indexOf(xt(f))<0;){var g=Et(f);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||i&&g.willChange==="filter"||i&&g.filter&&g.filter!=="none")return f;f=f.parentNode}return null}function Wi(s){for(var i=st(s),l=Yr(s);l&&dc(l)&&Et(l).position==="static";)l=Yr(l);return l&&(xt(l)==="html"||xt(l)==="body"&&Et(l).position==="static")?i:l||hc(s)||i}function Ws(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Ii(s,i,l){return Jt(s,xa(i,l))}function uc(s,i,l){var d=Ii(s,i,l);return d>l?l:d}function In(){return{top:0,right:0,bottom:0,left:0}}function zn(s){return Object.assign({},In(),s)}function On(s,i){return i.reduce(function(l,d){return l[d]=s,l},{})}var fc=function(i,l){return i=typeof i=="function"?i(Object.assign({},l.rects,{placement:l.placement})):i,zn(typeof i!="number"?i:On(i,Bi))};function pc(s){var i,l=s.state,d=s.name,f=s.options,g=l.elements.arrow,S=l.modifiersData.popperOffsets,y=vt(l.placement),A=Ws(y),M=[Ke,ct].indexOf(y)>=0,T=M?"height":"width";if(!(!g||!S)){var _=fc(f.padding,l),H=Bs(g),Y=A==="y"?Ze:Ke,G=A==="y"?lt:ct,W=l.rects.reference[T]+l.rects.reference[A]-S[A]-l.rects.popper[T],F=S[A]-l.rects.reference[A],R=Wi(g),P=R?A==="y"?R.clientHeight||0:R.clientWidth||0:0,B=W/2-F/2,q=_[Y],j=P-H[T]-_[G],U=P/2-H[T]/2+B,le=Ii(q,U,j),J=A;l.modifiersData[d]=(i={},i[J]=le,i.centerOffset=le-U,i)}}function gc(s){var i=s.state,l=s.options,d=l.element,f=d===void 0?"[data-popper-arrow]":d;f!=null&&(typeof f=="string"&&(f=i.elements.popper.querySelector(f),!f)||Pn(i.elements.popper,f)&&(i.elements.arrow=f))}const mc={name:"arrow",enabled:!0,phase:"main",fn:pc,effect:gc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gi(s){return s.split("-")[1]}var vc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xc(s,i){var l=s.x,d=s.y,f=i.devicePixelRatio||1;return{x:fi(l*f)/f||0,y:fi(d*f)/f||0}}function Fr(s){var i,l=s.popper,d=s.popperRect,f=s.placement,g=s.variation,S=s.offsets,y=s.position,A=s.gpuAcceleration,M=s.adaptive,T=s.roundOffsets,_=s.isFixed,H=S.x,Y=H===void 0?0:H,G=S.y,W=G===void 0?0:G,F=typeof T=="function"?T({x:Y,y:W}):{x:Y,y:W};Y=F.x,W=F.y;var R=S.hasOwnProperty("x"),P=S.hasOwnProperty("y"),B=Ke,q=Ze,j=window;if(M){var U=Wi(l),le="clientHeight",J="clientWidth";if(U===st(l)&&(U=Nt(l),Et(U).position!=="static"&&y==="absolute"&&(le="scrollHeight",J="scrollWidth")),U=U,f===Ze||(f===Ke||f===ct)&&g===Ri){q=lt;var K=_&&U===j&&j.visualViewport?j.visualViewport.height:U[le];W-=K-d.height,W*=A?1:-1}if(f===Ke||(f===Ze||f===lt)&&g===Ri){B=ct;var ee=_&&U===j&&j.visualViewport?j.visualViewport.width:U[J];Y-=ee-d.width,Y*=A?1:-1}}var ne=Object.assign({position:y},M&&vc),Q=T===!0?xc({x:Y,y:W},st(l)):{x:Y,y:W};if(Y=Q.x,W=Q.y,A){var Z;return Object.assign({},ne,(Z={},Z[q]=P?"0":"",Z[B]=R?"0":"",Z.transform=(j.devicePixelRatio||1)<=1?"translate("+Y+"px, "+W+"px)":"translate3d("+Y+"px, "+W+"px, 0)",Z))}return Object.assign({},ne,(i={},i[q]=P?W+"px":"",i[B]=R?Y+"px":"",i.transform="",i))}function bc(s){var i=s.state,l=s.options,d=l.gpuAcceleration,f=d===void 0?!0:d,g=l.adaptive,S=g===void 0?!0:g,y=l.roundOffsets,A=y===void 0?!0:y,M={placement:vt(i.placement),variation:gi(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:f,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Fr(Object.assign({},M,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:S,roundOffsets:A})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Fr(Object.assign({},M,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const yc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bc,data:{}};var Ji={passive:!0};function wc(s){var i=s.state,l=s.instance,d=s.options,f=d.scroll,g=f===void 0?!0:f,S=d.resize,y=S===void 0?!0:S,A=st(i.elements.popper),M=[].concat(i.scrollParents.reference,i.scrollParents.popper);return g&&M.forEach(function(T){T.addEventListener("scroll",l.update,Ji)}),y&&A.addEventListener("resize",l.update,Ji),function(){g&&M.forEach(function(T){T.removeEventListener("scroll",l.update,Ji)}),y&&A.removeEventListener("resize",l.update,Ji)}}const Sc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wc,data:{}};var Ac={left:"right",right:"left",bottom:"top",top:"bottom"};function ca(s){return s.replace(/left|right|bottom|top/g,function(i){return Ac[i]})}var kc={start:"end",end:"start"};function Nr(s){return s.replace(/start|end/g,function(i){return kc[i]})}function Gs(s){var i=st(s),l=i.pageXOffset,d=i.pageYOffset;return{scrollLeft:l,scrollTop:d}}function Vs(s){return pi(Nt(s)).left+Gs(s).scrollLeft}function Cc(s,i){var l=st(s),d=Nt(s),f=l.visualViewport,g=d.clientWidth,S=d.clientHeight,y=0,A=0;if(f){g=f.width,S=f.height;var M=Mn();(M||!M&&i==="fixed")&&(y=f.offsetLeft,A=f.offsetTop)}return{width:g,height:S,x:y+Vs(s),y:A}}function Ec(s){var i,l=Nt(s),d=Gs(s),f=(i=s.ownerDocument)==null?void 0:i.body,g=Jt(l.scrollWidth,l.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),S=Jt(l.scrollHeight,l.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),y=-d.scrollLeft+Vs(s),A=-d.scrollTop;return Et(f||l).direction==="rtl"&&(y+=Jt(l.clientWidth,f?f.clientWidth:0)-g),{width:g,height:S,x:y,y:A}}function js(s){var i=Et(s),l=i.overflow,d=i.overflowX,f=i.overflowY;return/auto|scroll|overlay|hidden/.test(l+f+d)}function Dn(s){return["html","body","#document"].indexOf(xt(s))>=0?s.ownerDocument.body:ot(s)&&js(s)?s:Dn(Ha(s))}function zi(s,i){var l;i===void 0&&(i=[]);var d=Dn(s),f=d===((l=s.ownerDocument)==null?void 0:l.body),g=st(d),S=f?[g].concat(g.visualViewport||[],js(d)?d:[]):d,y=i.concat(S);return f?y:y.concat(zi(Ha(S)))}function hs(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Tc(s,i){var l=pi(s,!1,i==="fixed");return l.top=l.top+s.clientTop,l.left=l.left+s.clientLeft,l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,l.width=s.clientWidth,l.height=s.clientHeight,l.x=l.left,l.y=l.top,l}function Br(s,i,l){return i===Ln?hs(Cc(s,l)):si(i)?Tc(i,l):hs(Ec(Nt(s)))}function Lc(s){var i=zi(Ha(s)),l=["absolute","fixed"].indexOf(Et(s).position)>=0,d=l&&ot(s)?Wi(s):s;return si(d)?i.filter(function(f){return si(f)&&Pn(f,d)&&xt(f)!=="body"}):[]}function _c(s,i,l,d){var f=i==="clippingParents"?Lc(s):[].concat(i),g=[].concat(f,[l]),S=g[0],y=g.reduce(function(A,M){var T=Br(s,M,d);return A.top=Jt(T.top,A.top),A.right=xa(T.right,A.right),A.bottom=xa(T.bottom,A.bottom),A.left=Jt(T.left,A.left),A},Br(s,S,d));return y.width=y.right-y.left,y.height=y.bottom-y.top,y.x=y.left,y.y=y.top,y}function Hn(s){var i=s.reference,l=s.element,d=s.placement,f=d?vt(d):null,g=d?gi(d):null,S=i.x+i.width/2-l.width/2,y=i.y+i.height/2-l.height/2,A;switch(f){case Ze:A={x:S,y:i.y-l.height};break;case lt:A={x:S,y:i.y+i.height};break;case ct:A={x:i.x+i.width,y};break;case Ke:A={x:i.x-l.width,y};break;default:A={x:i.x,y:i.y}}var M=f?Ws(f):null;if(M!=null){var T=M==="y"?"height":"width";switch(g){case ui:A[M]=A[M]-(i[T]/2-l[T]/2);break;case Ri:A[M]=A[M]+(i[T]/2-l[T]/2);break}}return A}function Yi(s,i){i===void 0&&(i={});var l=i,d=l.placement,f=d===void 0?s.placement:d,g=l.strategy,S=g===void 0?s.strategy:g,y=l.boundary,A=y===void 0?Ul:y,M=l.rootBoundary,T=M===void 0?Ln:M,_=l.elementContext,H=_===void 0?Ci:_,Y=l.altBoundary,G=Y===void 0?!1:Y,W=l.padding,F=W===void 0?0:W,R=zn(typeof F!="number"?F:On(F,Bi)),P=H===Ci?Zl:Ci,B=s.rects.popper,q=s.elements[G?P:H],j=_c(si(q)?q:q.contextElement||Nt(s.elements.popper),A,T,S),U=pi(s.elements.reference),le=Hn({reference:U,element:B,strategy:"absolute",placement:f}),J=hs(Object.assign({},B,le)),K=H===Ci?J:U,ee={top:j.top-K.top+R.top,bottom:K.bottom-j.bottom+R.bottom,left:j.left-K.left+R.left,right:K.right-j.right+R.right},ne=s.modifiersData.offset;if(H===Ci&&ne){var Q=ne[f];Object.keys(ee).forEach(function(Z){var se=[ct,lt].indexOf(Z)>=0?1:-1,de=[Ze,lt].indexOf(Z)>=0?"y":"x";ee[Z]+=Q[de]*se})}return ee}function Mc(s,i){i===void 0&&(i={});var l=i,d=l.placement,f=l.boundary,g=l.rootBoundary,S=l.padding,y=l.flipVariations,A=l.allowedAutoPlacements,M=A===void 0?_n:A,T=gi(d),_=T?y?Rr:Rr.filter(function(G){return gi(G)===T}):Bi,H=_.filter(function(G){return M.indexOf(G)>=0});H.length===0&&(H=_);var Y=H.reduce(function(G,W){return G[W]=Yi(s,{placement:W,boundary:f,rootBoundary:g,padding:S})[vt(W)],G},{});return Object.keys(Y).sort(function(G,W){return Y[G]-Y[W]})}function Pc(s){if(vt(s)===Fs)return[];var i=ca(s);return[Nr(s),i,Nr(i)]}function Ic(s){var i=s.state,l=s.options,d=s.name;if(!i.modifiersData[d]._skip){for(var f=l.mainAxis,g=f===void 0?!0:f,S=l.altAxis,y=S===void 0?!0:S,A=l.fallbackPlacements,M=l.padding,T=l.boundary,_=l.rootBoundary,H=l.altBoundary,Y=l.flipVariations,G=Y===void 0?!0:Y,W=l.allowedAutoPlacements,F=i.options.placement,R=vt(F),P=R===F,B=A||(P||!G?[ca(F)]:Pc(F)),q=[F].concat(B).reduce(function(Ce,ve){return Ce.concat(vt(ve)===Fs?Mc(i,{placement:ve,boundary:T,rootBoundary:_,padding:M,flipVariations:G,allowedAutoPlacements:W}):ve)},[]),j=i.rects.reference,U=i.rects.popper,le=new Map,J=!0,K=q[0],ee=0;ee<q.length;ee++){var ne=q[ee],Q=vt(ne),Z=gi(ne)===ui,se=[Ze,lt].indexOf(Q)>=0,de=se?"width":"height",ge=Yi(i,{placement:ne,boundary:T,rootBoundary:_,altBoundary:H,padding:M}),te=se?Z?ct:Ke:Z?lt:Ze;j[de]>U[de]&&(te=ca(te));var oe=ca(te),ue=[];if(g&&ue.push(ge[Q]<=0),y&&ue.push(ge[te]<=0,ge[oe]<=0),ue.every(function(Ce){return Ce})){K=ne,J=!1;break}le.set(ne,ue)}if(J)for(var ye=G?3:1,he=function(ve){var Ae=q.find(function(Le){var Be=le.get(Le);if(Be)return Be.slice(0,ve).every(function(Je){return Je})});if(Ae)return K=Ae,"break"},pe=ye;pe>0;pe--){var fe=he(pe);if(fe==="break")break}i.placement!==K&&(i.modifiersData[d]._skip=!0,i.placement=K,i.reset=!0)}}const zc={name:"flip",enabled:!0,phase:"main",fn:Ic,requiresIfExists:["offset"],data:{_skip:!1}};function Wr(s,i,l){return l===void 0&&(l={x:0,y:0}),{top:s.top-i.height-l.y,right:s.right-i.width+l.x,bottom:s.bottom-i.height+l.y,left:s.left-i.width-l.x}}function Gr(s){return[Ze,ct,lt,Ke].some(function(i){return s[i]>=0})}function Oc(s){var i=s.state,l=s.name,d=i.rects.reference,f=i.rects.popper,g=i.modifiersData.preventOverflow,S=Yi(i,{elementContext:"reference"}),y=Yi(i,{altBoundary:!0}),A=Wr(S,d),M=Wr(y,f,g),T=Gr(A),_=Gr(M);i.modifiersData[l]={referenceClippingOffsets:A,popperEscapeOffsets:M,isReferenceHidden:T,hasPopperEscaped:_},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":T,"data-popper-escaped":_})}const Dc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oc};function Hc(s,i,l){var d=vt(s),f=[Ke,Ze].indexOf(d)>=0?-1:1,g=typeof l=="function"?l(Object.assign({},i,{placement:s})):l,S=g[0],y=g[1];return S=S||0,y=(y||0)*f,[Ke,ct].indexOf(d)>=0?{x:y,y:S}:{x:S,y}}function Xc(s){var i=s.state,l=s.options,d=s.name,f=l.offset,g=f===void 0?[0,0]:f,S=_n.reduce(function(T,_){return T[_]=Hc(_,i.rects,g),T},{}),y=S[i.placement],A=y.x,M=y.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=A,i.modifiersData.popperOffsets.y+=M),i.modifiersData[d]=S}const Rc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xc};function Yc(s){var i=s.state,l=s.name;i.modifiersData[l]=Hn({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const Fc={name:"popperOffsets",enabled:!0,phase:"read",fn:Yc,data:{}};function Nc(s){return s==="x"?"y":"x"}function Bc(s){var i=s.state,l=s.options,d=s.name,f=l.mainAxis,g=f===void 0?!0:f,S=l.altAxis,y=S===void 0?!1:S,A=l.boundary,M=l.rootBoundary,T=l.altBoundary,_=l.padding,H=l.tether,Y=H===void 0?!0:H,G=l.tetherOffset,W=G===void 0?0:G,F=Yi(i,{boundary:A,rootBoundary:M,padding:_,altBoundary:T}),R=vt(i.placement),P=gi(i.placement),B=!P,q=Ws(R),j=Nc(q),U=i.modifiersData.popperOffsets,le=i.rects.reference,J=i.rects.popper,K=typeof W=="function"?W(Object.assign({},i.rects,{placement:i.placement})):W,ee=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),ne=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,Q={x:0,y:0};if(U){if(g){var Z,se=q==="y"?Ze:Ke,de=q==="y"?lt:ct,ge=q==="y"?"height":"width",te=U[q],oe=te+F[se],ue=te-F[de],ye=Y?-J[ge]/2:0,he=P===ui?le[ge]:J[ge],pe=P===ui?-J[ge]:-le[ge],fe=i.elements.arrow,Ce=Y&&fe?Bs(fe):{width:0,height:0},ve=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:In(),Ae=ve[se],Le=ve[de],Be=Ii(0,le[ge],Ce[ge]),Je=B?le[ge]/2-ye-Be-Ae-ee.mainAxis:he-Be-Ae-ee.mainAxis,We=B?-le[ge]/2+ye+Be+Le+ee.mainAxis:pe+Be+Le+ee.mainAxis,Ue=i.elements.arrow&&Wi(i.elements.arrow),Bt=Ue?q==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,bt=(Z=ne==null?void 0:ne[q])!=null?Z:0,Lt=te+Je-bt-Bt,di=te+We-bt,yt=Ii(Y?xa(oe,Lt):oe,te,Y?Jt(ue,di):ue);U[q]=yt,Q[q]=yt-te}if(y){var wt,St=q==="x"?Ze:Ke,Wt=q==="x"?lt:ct,Qe=U[j],pt=j==="y"?"height":"width",gt=Qe+F[St],Gt=Qe-F[Wt],dt=[Ze,Ke].indexOf(R)!==-1,Ui=(wt=ne==null?void 0:ne[j])!=null?wt:0,Vt=dt?gt:Qe-le[pt]-J[pt]-Ui+ee.altAxis,Zi=dt?Qe+le[pt]+J[pt]-Ui-ee.altAxis:Gt,Ai=Y&&dt?uc(Vt,Qe,Zi):Ii(Y?Vt:gt,Qe,Y?Zi:Gt);U[j]=Ai,Q[j]=Ai-Qe}i.modifiersData[d]=Q}}const Wc={name:"preventOverflow",enabled:!0,phase:"main",fn:Bc,requiresIfExists:["offset"]};function Gc(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Vc(s){return s===st(s)||!ot(s)?Gs(s):Gc(s)}function jc(s){var i=s.getBoundingClientRect(),l=fi(i.width)/s.offsetWidth||1,d=fi(i.height)/s.offsetHeight||1;return l!==1||d!==1}function $c(s,i,l){l===void 0&&(l=!1);var d=ot(i),f=ot(i)&&jc(i),g=Nt(i),S=pi(s,f,l),y={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(d||!d&&!l)&&((xt(i)!=="body"||js(g))&&(y=Vc(i)),ot(i)?(A=pi(i,!0),A.x+=i.clientLeft,A.y+=i.clientTop):g&&(A.x=Vs(g))),{x:S.left+y.scrollLeft-A.x,y:S.top+y.scrollTop-A.y,width:S.width,height:S.height}}function qc(s){var i=new Map,l=new Set,d=[];s.forEach(function(g){i.set(g.name,g)});function f(g){l.add(g.name);var S=[].concat(g.requires||[],g.requiresIfExists||[]);S.forEach(function(y){if(!l.has(y)){var A=i.get(y);A&&f(A)}}),d.push(g)}return s.forEach(function(g){l.has(g.name)||f(g)}),d}function Uc(s){var i=qc(s);return nc.reduce(function(l,d){return l.concat(i.filter(function(f){return f.phase===d}))},[])}function Zc(s){var i;return function(){return i||(i=new Promise(function(l){Promise.resolve().then(function(){i=void 0,l(s())})})),i}}function Kc(s){var i=s.reduce(function(l,d){var f=l[d.name];return l[d.name]=f?Object.assign({},f,d,{options:Object.assign({},f.options,d.options),data:Object.assign({},f.data,d.data)}):d,l},{});return Object.keys(i).map(function(l){return i[l]})}var Vr={placement:"bottom",modifiers:[],strategy:"absolute"};function jr(){for(var s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return!i.some(function(d){return!(d&&typeof d.getBoundingClientRect=="function")})}function Jc(s){s===void 0&&(s={});var i=s,l=i.defaultModifiers,d=l===void 0?[]:l,f=i.defaultOptions,g=f===void 0?Vr:f;return function(y,A,M){M===void 0&&(M=g);var T={placement:"bottom",orderedModifiers:[],options:Object.assign({},Vr,g),modifiersData:{},elements:{reference:y,popper:A},attributes:{},styles:{}},_=[],H=!1,Y={state:T,setOptions:function(R){var P=typeof R=="function"?R(T.options):R;W(),T.options=Object.assign({},g,T.options,P),T.scrollParents={reference:si(y)?zi(y):y.contextElement?zi(y.contextElement):[],popper:zi(A)};var B=Uc(Kc([].concat(d,T.options.modifiers)));return T.orderedModifiers=B.filter(function(q){return q.enabled}),G(),Y.update()},forceUpdate:function(){if(!H){var R=T.elements,P=R.reference,B=R.popper;if(jr(P,B)){T.rects={reference:$c(P,Wi(B),T.options.strategy==="fixed"),popper:Bs(B)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(ee){return T.modifiersData[ee.name]=Object.assign({},ee.data)});for(var q=0;q<T.orderedModifiers.length;q++){if(T.reset===!0){T.reset=!1,q=-1;continue}var j=T.orderedModifiers[q],U=j.fn,le=j.options,J=le===void 0?{}:le,K=j.name;typeof U=="function"&&(T=U({state:T,options:J,name:K,instance:Y})||T)}}}},update:Zc(function(){return new Promise(function(F){Y.forceUpdate(),F(T)})}),destroy:function(){W(),H=!0}};if(!jr(y,A))return Y;Y.setOptions(M).then(function(F){!H&&M.onFirstUpdate&&M.onFirstUpdate(F)});function G(){T.orderedModifiers.forEach(function(F){var R=F.name,P=F.options,B=P===void 0?{}:P,q=F.effect;if(typeof q=="function"){var j=q({state:T,name:R,instance:Y,options:B}),U=function(){};_.push(j||U)}})}function W(){_.forEach(function(F){return F()}),_=[]}return Y}}var Qc=[Sc,Fc,yc,cc,Rc,zc,Wc,mc,Dc],$s=Jc({defaultModifiers:Qc}),Pt=globalThis&&globalThis.__assign||function(){return Pt=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Pt.apply(this,arguments)},Qi=globalThis&&globalThis.__spreadArray||function(s,i,l){if(l||arguments.length===2)for(var d=0,f=i.length,g;d<f;d++)(g||!(d in i))&&(g||(g=Array.prototype.slice.call(i,0,d)),g[d]=i[d]);return s.concat(g||Array.prototype.slice.call(i))},It={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},ed={id:null,override:!0},Xn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=It),f===void 0&&(f=ed),this._instanceId=f.id?f.id:i.id,this._targetEl=i,this._triggerEl=l,this._options=Pt(Pt({},It),d),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),Ee.addInstance("Dropdown",this,this._instanceId,f.override)}return s.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},s.prototype.destroy=function(){var i=this,l=this._getTriggerEvents();this._options.triggerType==="click"&&l.showEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._clickHandler)}),this._options.triggerType==="hover"&&(l.showEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._hoverShowTriggerElHandler),i._targetEl.removeEventListener(d,i._hoverShowTargetElHandler)}),l.hideEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._hoverHideHandler),i._targetEl.removeEventListener(d,i._hoverHideHandler)})),this._popperInstance.destroy(),this._initialized=!1},s.prototype.removeInstance=function(){Ee.removeInstance("Dropdown",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype._setupEventListeners=function(){var i=this,l=this._getTriggerEvents();this._clickHandler=function(){i.toggle()},this._options.triggerType==="click"&&l.showEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._clickHandler)}),this._hoverShowTriggerElHandler=function(d){d.type==="click"?i.toggle():setTimeout(function(){i.show()},i._options.delay)},this._hoverShowTargetElHandler=function(){i.show()},this._hoverHideHandler=function(){setTimeout(function(){i._targetEl.matches(":hover")||i.hide()},i._options.delay)},this._options.triggerType==="hover"&&(l.showEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._hoverShowTriggerElHandler),i._targetEl.addEventListener(d,i._hoverShowTargetElHandler)}),l.hideEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._hoverHideHandler),i._targetEl.addEventListener(d,i._hoverHideHandler)}))},s.prototype._createPopperInstance=function(){return $s(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},s.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(l){i._handleClickOutside(l,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},s.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},s.prototype._handleClickOutside=function(i,l){var d=i.target,f=this._options.ignoreClickOutsideClass,g=!1;if(f){var S=document.querySelectorAll(".".concat(f));S.forEach(function(y){if(y.contains(d)){g=!0;return}})}d!==l&&!l.contains(d)&&!this._triggerEl.contains(d)&&!g&&this.isVisible()&&this.hide()},s.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},s.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},s.prototype.isVisible=function(){return this._visible},s.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(i){return Pt(Pt({},i),{modifiers:Qi(Qi([],i.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},s.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(i){return Pt(Pt({},i),{modifiers:Qi(Qi([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},s.prototype.updateOnShow=function(i){this._options.onShow=i},s.prototype.updateOnHide=function(i){this._options.onHide=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function qs(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(s){var i=s.getAttribute("data-dropdown-toggle"),l=document.getElementById(i);if(l){var d=s.getAttribute("data-dropdown-placement"),f=s.getAttribute("data-dropdown-offset-skidding"),g=s.getAttribute("data-dropdown-offset-distance"),S=s.getAttribute("data-dropdown-trigger"),y=s.getAttribute("data-dropdown-delay"),A=s.getAttribute("data-dropdown-ignore-click-outside-class");new Xn(l,s,{placement:d||It.placement,triggerType:S||It.triggerType,offsetSkidding:f?parseInt(f):It.offsetSkidding,offsetDistance:g?parseInt(g):It.offsetDistance,delay:y?parseInt(y):It.delay,ignoreClickOutsideClass:A||It.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(i,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=Xn,window.initDropdowns=qs);var ba=globalThis&&globalThis.__assign||function(){return ba=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},ba.apply(this,arguments)},ya={placement:"center",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},td={id:null,override:!0},Rn=function(){function s(i,l,d){i===void 0&&(i=null),l===void 0&&(l=ya),d===void 0&&(d=td),this._eventListenerInstances=[],this._instanceId=d.id?d.id:i.id,this._targetEl=i,this._options=ba(ba({},ya),l),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),Ee.addInstance("Modal",this,this._instanceId,d.override)}return s.prototype.init=function(){var i=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map(function(l){i._targetEl.classList.add(l)}),this._initialized=!0)},s.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("Modal",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype._createBackdrop=function(){var i;if(this._isHidden){var l=document.createElement("div");l.setAttribute("modal-backdrop",""),(i=l.classList).add.apply(i,this._options.backdropClasses.split(" ")),document.querySelector("body").append(l),this._backdropEl=l}},s.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},s.prototype._setupModalCloseEventListeners=function(){var i=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(l){i._handleOutsideClick(l.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(l){l.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},s.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},s.prototype._handleOutsideClick=function(i){(i===this._targetEl||i===this._backdropEl&&this.isVisible())&&this.hide()},s.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},s.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},s.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable&&this._setupModalCloseEventListeners(),document.body.classList.add("overflow-hidden"),this._options.onShow(this))},s.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},s.prototype.isVisible=function(){return!this._isHidden},s.prototype.isHidden=function(){return this._isHidden},s.prototype.addEventListenerInstance=function(i,l,d){this._eventListenerInstances.push({element:i,type:l,handler:d})},s.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(i){i.element.removeEventListener(i.type,i.handler)}),this._eventListenerInstances=[]},s.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},s.prototype.updateOnShow=function(i){this._options.onShow=i},s.prototype.updateOnHide=function(i){this._options.onHide=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function Us(){document.querySelectorAll("[data-modal-target]").forEach(function(s){var i=s.getAttribute("data-modal-target"),l=document.getElementById(i);if(l){var d=l.getAttribute("data-modal-placement"),f=l.getAttribute("data-modal-backdrop");new Rn(l,{placement:d||ya.placement,backdrop:f||ya.backdrop})}else console.error("Modal with id ".concat(i," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(s){var i=s.getAttribute("data-modal-toggle"),l=document.getElementById(i);if(l){var d=Ee.getInstance("Modal",i);if(d){var f=function(){d.toggle()};s.addEventListener("click",f),d.addEventListenerInstance(s,"click",f)}else console.error("Modal with id ".concat(i," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(i," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(s){var i=s.getAttribute("data-modal-show"),l=document.getElementById(i);if(l){var d=Ee.getInstance("Modal",i);if(d){var f=function(){d.show()};s.addEventListener("click",f),d.addEventListenerInstance(s,"click",f)}else console.error("Modal with id ".concat(i," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(i," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(s){var i=s.getAttribute("data-modal-hide"),l=document.getElementById(i);if(l){var d=Ee.getInstance("Modal",i);if(d){var f=function(){d.hide()};s.addEventListener("click",f),d.addEventListenerInstance(s,"click",f)}else console.error("Modal with id ".concat(i," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(i," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=Rn,window.initModals=Us);var wa=globalThis&&globalThis.__assign||function(){return wa=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},wa.apply(this,arguments)},Ut={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},id={id:null,override:!0},Yn=function(){function s(i,l,d){i===void 0&&(i=null),l===void 0&&(l=Ut),d===void 0&&(d=id),this._eventListenerInstances=[],this._instanceId=d.id?d.id:i.id,this._targetEl=i,this._options=wa(wa({},Ut),l),this._visible=!1,this._initialized=!1,this.init(),Ee.addInstance("Drawer",this,this._instanceId,d.override)}return s.prototype.init=function(){var i=this;this._targetEl&&!this._initialized&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map(function(l){i._targetEl.classList.add(l)}),this._handleEscapeKey=function(l){l.key==="Escape"&&i.isVisible()&&i.hide()},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0)},s.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("Drawer",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.hide=function(){var i=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(l){i._targetEl.classList.remove(l)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(l){i._targetEl.classList.add(l)})):(this._getPlacementClasses(this._options.placement).active.map(function(l){i._targetEl.classList.remove(l)}),this._getPlacementClasses(this._options.placement).inactive.map(function(l){i._targetEl.classList.add(l)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},s.prototype.show=function(){var i=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(l){i._targetEl.classList.add(l)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(l){i._targetEl.classList.remove(l)})):(this._getPlacementClasses(this._options.placement).active.map(function(l){i._targetEl.classList.add(l)}),this._getPlacementClasses(this._options.placement).inactive.map(function(l){i._targetEl.classList.remove(l)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},s.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},s.prototype._createBackdrop=function(){var i,l=this;if(!this._visible){var d=document.createElement("div");d.setAttribute("drawer-backdrop",""),(i=d.classList).add.apply(i,this._options.backdropClasses.split(" ")),document.querySelector("body").append(d),d.addEventListener("click",function(){l.hide()})}},s.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]")!==null&&document.querySelector("[drawer-backdrop]").remove()},s.prototype._getPlacementClasses=function(i){switch(i){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},s.prototype.isHidden=function(){return!this._visible},s.prototype.isVisible=function(){return this._visible},s.prototype.addEventListenerInstance=function(i,l,d){this._eventListenerInstances.push({element:i,type:l,handler:d})},s.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(i){i.element.removeEventListener(i.type,i.handler)}),this._eventListenerInstances=[]},s.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},s.prototype.updateOnShow=function(i){this._options.onShow=i},s.prototype.updateOnHide=function(i){this._options.onHide=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function Zs(){document.querySelectorAll("[data-drawer-target]").forEach(function(s){var i=s.getAttribute("data-drawer-target"),l=document.getElementById(i);if(l){var d=s.getAttribute("data-drawer-placement"),f=s.getAttribute("data-drawer-body-scrolling"),g=s.getAttribute("data-drawer-backdrop"),S=s.getAttribute("data-drawer-edge"),y=s.getAttribute("data-drawer-edge-offset");new Yn(l,{placement:d||Ut.placement,bodyScrolling:f?f==="true":Ut.bodyScrolling,backdrop:g?g==="true":Ut.backdrop,edge:S?S==="true":Ut.edge,edgeOffset:y||Ut.edgeOffset})}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(s){var i=s.getAttribute("data-drawer-toggle"),l=document.getElementById(i);if(l){var d=Ee.getInstance("Drawer",i);if(d){var f=function(){d.toggle()};s.addEventListener("click",f),d.addEventListenerInstance(s,"click",f)}else console.error("Drawer with id ".concat(i," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(s){var i=s.getAttribute("data-drawer-dismiss")?s.getAttribute("data-drawer-dismiss"):s.getAttribute("data-drawer-hide"),l=document.getElementById(i);if(l){var d=Ee.getInstance("Drawer",i);if(d){var f=function(){d.hide()};s.addEventListener("click",f),d.addEventListenerInstance(s,"click",f)}else console.error("Drawer with id ".concat(i," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(s){var i=s.getAttribute("data-drawer-show"),l=document.getElementById(i);if(l){var d=Ee.getInstance("Drawer",i);if(d){var f=function(){d.show()};s.addEventListener("click",f),d.addEventListenerInstance(s,"click",f)}else console.error("Drawer with id ".concat(i," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=Yn,window.initDrawers=Zs);var Sa=globalThis&&globalThis.__assign||function(){return Sa=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Sa.apply(this,arguments)},Aa={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},ad={id:null,override:!0},Fn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=[]),d===void 0&&(d=Aa),f===void 0&&(f=ad),this._instanceId=f.id?f.id:i.id,this._tabsEl=i,this._items=l,this._activeTab=d?this.getTab(d.defaultTabId):null,this._options=Sa(Sa({},Aa),d),this._initialized=!1,this.init(),Ee.addInstance("Tabs",this,this._tabsEl.id,!0),Ee.addInstance("Tabs",this,this._instanceId,f.override)}return s.prototype.init=function(){var i=this;this._items.length&&!this._initialized&&(this._activeTab||this.setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(l){l.triggerEl.addEventListener("click",function(d){d.preventDefault(),i.show(l.id)})}))},s.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},s.prototype.removeInstance=function(){this.destroy(),Ee.removeInstance("Tabs",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.getActiveTab=function(){return this._activeTab},s.prototype.setActiveTab=function(i){this._activeTab=i},s.prototype.getTab=function(i){return this._items.filter(function(l){return l.id===i})[0]},s.prototype.show=function(i,l){var d,f,g=this;l===void 0&&(l=!1);var S=this.getTab(i);S===this._activeTab&&!l||(this._items.map(function(y){var A,M;y!==S&&((A=y.triggerEl.classList).remove.apply(A,g._options.activeClasses.split(" ")),(M=y.triggerEl.classList).add.apply(M,g._options.inactiveClasses.split(" ")),y.targetEl.classList.add("hidden"),y.triggerEl.setAttribute("aria-selected","false"))}),(d=S.triggerEl.classList).add.apply(d,this._options.activeClasses.split(" ")),(f=S.triggerEl.classList).remove.apply(f,this._options.inactiveClasses.split(" ")),S.triggerEl.setAttribute("aria-selected","true"),S.targetEl.classList.remove("hidden"),this.setActiveTab(S),this._options.onShow(this,S))},s.prototype.updateOnShow=function(i){this._options.onShow=i},s}();function Ks(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(s){var i=[],l=s.getAttribute("data-tabs-active-classes"),d=s.getAttribute("data-tabs-inactive-classes"),f=null;s.querySelectorAll('[role="tab"]').forEach(function(g){var S=g.getAttribute("aria-selected")==="true",y={id:g.getAttribute("data-tabs-target"),triggerEl:g,targetEl:document.querySelector(g.getAttribute("data-tabs-target"))};i.push(y),S&&(f=y.id)}),new Fn(s,i,{defaultTabId:f,activeClasses:l||Aa.activeClasses,inactiveClasses:d||Aa.inactiveClasses})})}typeof window<"u"&&(window.Tabs=Fn,window.initTabs=Ks);var zt=globalThis&&globalThis.__assign||function(){return zt=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},zt.apply(this,arguments)},ea=globalThis&&globalThis.__spreadArray||function(s,i,l){if(l||arguments.length===2)for(var d=0,f=i.length,g;d<f;d++)(g||!(d in i))&&(g||(g=Array.prototype.slice.call(i,0,d)),g[d]=i[d]);return s.concat(g||Array.prototype.slice.call(i))},ka={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},sd={id:null,override:!0},Nn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=ka),f===void 0&&(f=sd),this._instanceId=f.id?f.id:i.id,this._targetEl=i,this._triggerEl=l,this._options=zt(zt({},ka),d),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),Ee.addInstance("Tooltip",this,this._instanceId,f.override)}return s.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},s.prototype.destroy=function(){var i=this;if(this._initialized){var l=this._getTriggerEvents();l.showEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._showHandler)}),l.hideEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},s.prototype.removeInstance=function(){Ee.removeInstance("Tooltip",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype._setupEventListeners=function(){var i=this,l=this._getTriggerEvents();this._showHandler=function(){i.show()},this._hideHandler=function(){i.hide()},l.showEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._showHandler)}),l.hideEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._hideHandler)})},s.prototype._createPopperInstance=function(){return $s(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},s.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},s.prototype._setupKeydownListener=function(){var i=this;this._keydownEventListener=function(l){l.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},s.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},s.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(l){i._handleClickOutside(l,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},s.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},s.prototype._handleClickOutside=function(i,l){var d=i.target;d!==l&&!l.contains(d)&&!this._triggerEl.contains(d)&&this.isVisible()&&this.hide()},s.prototype.isVisible=function(){return this._visible},s.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},s.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(i){return zt(zt({},i),{modifiers:ea(ea([],i.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},s.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(i){return zt(zt({},i),{modifiers:ea(ea([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},s.prototype.updateOnShow=function(i){this._options.onShow=i},s.prototype.updateOnHide=function(i){this._options.onHide=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function Js(){document.querySelectorAll("[data-tooltip-target]").forEach(function(s){var i=s.getAttribute("data-tooltip-target"),l=document.getElementById(i);if(l){var d=s.getAttribute("data-tooltip-trigger"),f=s.getAttribute("data-tooltip-placement");new Nn(l,s,{placement:f||ka.placement,triggerType:d||ka.triggerType})}else console.error('The tooltip element with id "'.concat(i,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=Nn,window.initTooltips=Js);var Ot=globalThis&&globalThis.__assign||function(){return Ot=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Ot.apply(this,arguments)},ta=globalThis&&globalThis.__spreadArray||function(s,i,l){if(l||arguments.length===2)for(var d=0,f=i.length,g;d<f;d++)(g||!(d in i))&&(g||(g=Array.prototype.slice.call(i,0,d)),g[d]=i[d]);return s.concat(g||Array.prototype.slice.call(i))},Oi={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},rd={id:null,override:!0},Bn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=Oi),f===void 0&&(f=rd),this._instanceId=f.id?f.id:i.id,this._targetEl=i,this._triggerEl=l,this._options=Ot(Ot({},Oi),d),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),Ee.addInstance("Popover",this,f.id?f.id:this._targetEl.id,f.override)}return s.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},s.prototype.destroy=function(){var i=this;if(this._initialized){var l=this._getTriggerEvents();l.showEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._showHandler),i._targetEl.removeEventListener(d,i._showHandler)}),l.hideEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._hideHandler),i._targetEl.removeEventListener(d,i._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},s.prototype.removeInstance=function(){Ee.removeInstance("Popover",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype._setupEventListeners=function(){var i=this,l=this._getTriggerEvents();this._showHandler=function(){i.show()},this._hideHandler=function(){setTimeout(function(){i._targetEl.matches(":hover")||i.hide()},100)},l.showEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._showHandler),i._targetEl.addEventListener(d,i._showHandler)}),l.hideEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._hideHandler),i._targetEl.addEventListener(d,i._hideHandler)})},s.prototype._createPopperInstance=function(){return $s(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},s.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},s.prototype._setupKeydownListener=function(){var i=this;this._keydownEventListener=function(l){l.key==="Escape"&&i.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},s.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},s.prototype._setupClickOutsideListener=function(){var i=this;this._clickOutsideEventListener=function(l){i._handleClickOutside(l,i._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},s.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},s.prototype._handleClickOutside=function(i,l){var d=i.target;d!==l&&!l.contains(d)&&!this._triggerEl.contains(d)&&this.isVisible()&&this.hide()},s.prototype.isVisible=function(){return this._visible},s.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},s.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(i){return Ot(Ot({},i),{modifiers:ta(ta([],i.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},s.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(i){return Ot(Ot({},i),{modifiers:ta(ta([],i.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},s.prototype.updateOnShow=function(i){this._options.onShow=i},s.prototype.updateOnHide=function(i){this._options.onHide=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function Qs(){document.querySelectorAll("[data-popover-target]").forEach(function(s){var i=s.getAttribute("data-popover-target"),l=document.getElementById(i);if(l){var d=s.getAttribute("data-popover-trigger"),f=s.getAttribute("data-popover-placement"),g=s.getAttribute("data-popover-offset");new Bn(l,s,{placement:f||Oi.placement,offset:g?parseInt(g):Oi.offset,triggerType:d||Oi.triggerType})}else console.error('The popover element with id "'.concat(i,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=Bn,window.initPopovers=Qs);var Ca=globalThis&&globalThis.__assign||function(){return Ca=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Ca.apply(this,arguments)},us={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},nd={id:null,override:!0},Wn=function(){function s(i,l,d,f,g){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=null),f===void 0&&(f=us),g===void 0&&(g=nd),this._instanceId=g.id?g.id:d.id,this._parentEl=i,this._triggerEl=l,this._targetEl=d,this._options=Ca(Ca({},us),f),this._visible=!1,this._initialized=!1,this.init(),Ee.addInstance("Dial",this,this._instanceId,g.override)}return s.prototype.init=function(){var i=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var l=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){i.show()},l.showEvents.forEach(function(d){i._triggerEl.addEventListener(d,i._showEventHandler),i._targetEl.addEventListener(d,i._showEventHandler)}),this._hideEventHandler=function(){i._parentEl.matches(":hover")||i.hide()},l.hideEvents.forEach(function(d){i._parentEl.addEventListener(d,i._hideEventHandler)}),this._initialized=!0}},s.prototype.destroy=function(){var i=this;if(this._initialized){var l=this._getTriggerEventTypes(this._options.triggerType);l.showEvents.forEach(function(d){i._triggerEl.removeEventListener(d,i._showEventHandler),i._targetEl.removeEventListener(d,i._showEventHandler)}),l.hideEvents.forEach(function(d){i._parentEl.removeEventListener(d,i._hideEventHandler)}),this._initialized=!1}},s.prototype.removeInstance=function(){Ee.removeInstance("Dial",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},s.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},s.prototype.toggle=function(){this._visible?this.hide():this.show()},s.prototype.isHidden=function(){return!this._visible},s.prototype.isVisible=function(){return this._visible},s.prototype._getTriggerEventTypes=function(i){switch(i){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},s.prototype.updateOnShow=function(i){this._options.onShow=i},s.prototype.updateOnHide=function(i){this._options.onHide=i},s.prototype.updateOnToggle=function(i){this._options.onToggle=i},s}();function er(){document.querySelectorAll("[data-dial-init]").forEach(function(s){var i=s.querySelector("[data-dial-toggle]");if(i){var l=i.getAttribute("data-dial-toggle"),d=document.getElementById(l);if(d){var f=i.getAttribute("data-dial-trigger");new Wn(s,i,d,{triggerType:f||us.triggerType})}else console.error("Dial with id ".concat(l," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(s.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=Wn,window.initDials=er);var Ea=globalThis&&globalThis.__assign||function(){return Ea=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Ea.apply(this,arguments)},$r={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},od={id:null,override:!0},Gn=function(){function s(i,l,d,f,g){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=null),f===void 0&&(f=$r),g===void 0&&(g=od),this._instanceId=g.id?g.id:i.id,this._targetEl=i,this._incrementEl=l,this._decrementEl=d,this._options=Ea(Ea({},$r),f),this._initialized=!1,this.init(),Ee.addInstance("InputCounter",this,this._instanceId,g.override)}return s.prototype.init=function(){var i=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(l){{var d=l.target;/^\d*$/.test(d.value)||(d.value=d.value.replace(/[^\d]/g,"")),i._options.maxValue!==null&&parseInt(d.value)>i._options.maxValue&&(d.value=i._options.maxValue.toString()),i._options.minValue!==null&&parseInt(d.value)<i._options.minValue&&(d.value=i._options.minValue.toString())}},this._incrementClickHandler=function(){i.increment()},this._decrementClickHandler=function(){i.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.addEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.addEventListener("click",this._decrementClickHandler),this._initialized=!0)},s.prototype.destroy=function(){this._targetEl&&this._initialized&&(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.removeEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.removeEventListener("click",this._decrementClickHandler),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("InputCounter",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},s.prototype.increment=function(){this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},s.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},s.prototype.updateOnIncrement=function(i){this._options.onIncrement=i},s.prototype.updateOnDecrement=function(i){this._options.onDecrement=i},s}();function tr(){document.querySelectorAll("[data-input-counter]").forEach(function(s){var i=s.id,l=document.querySelector('[data-input-counter-increment="'+i+'"]'),d=document.querySelector('[data-input-counter-decrement="'+i+'"]'),f=s.getAttribute("data-input-counter-min"),g=s.getAttribute("data-input-counter-max");s?Ee.instanceExists("InputCounter",s.getAttribute("id"))||new Gn(s,l||null,d||null,{minValue:f?parseInt(f):null,maxValue:g?parseInt(g):null}):console.error('The target element with id "'.concat(i,'" does not exist. Please check the data-input-counter attribute.'))})}typeof window<"u"&&(window.InputCounter=Gn,window.initInputCounters=tr);var Ta=globalThis&&globalThis.__assign||function(){return Ta=Object.assign||function(s){for(var i,l=1,d=arguments.length;l<d;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(s[f]=i[f])}return s},Ta.apply(this,arguments)},La={htmlEntities:!1,contentType:"input",onCopy:function(){}},ld={id:null,override:!0},Vn=function(){function s(i,l,d,f){i===void 0&&(i=null),l===void 0&&(l=null),d===void 0&&(d=La),f===void 0&&(f=ld),this._instanceId=f.id?f.id:l.id,this._triggerEl=i,this._targetEl=l,this._options=Ta(Ta({},La),d),this._initialized=!1,this.init(),Ee.addInstance("CopyClipboard",this,this._instanceId,f.override)}return s.prototype.init=function(){var i=this;this._targetEl&&this._triggerEl&&!this._initialized&&(this._triggerElClickHandler=function(){i.copy()},this._triggerEl&&this._triggerEl.addEventListener("click",this._triggerElClickHandler),this._initialized=!0)},s.prototype.destroy=function(){this._triggerEl&&this._targetEl&&this._initialized&&(this._triggerEl&&this._triggerEl.removeEventListener("click",this._triggerElClickHandler),this._initialized=!1)},s.prototype.removeInstance=function(){Ee.removeInstance("CopyClipboard",this._instanceId)},s.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},s.prototype.getTargetValue=function(){if(this._options.contentType==="input")return this._targetEl.value;if(this._options.contentType==="innerHTML")return this._targetEl.innerHTML;if(this._options.contentType==="textContent")return this._targetEl.textContent.replace(/\s+/g," ").trim()},s.prototype.copy=function(){var i=this.getTargetValue();this._options.htmlEntities&&(i=this.decodeHTML(i));var l=document.createElement("textarea");return l.value=i,document.body.appendChild(l),l.select(),document.execCommand("copy"),document.body.removeChild(l),this._options.onCopy(this),i},s.prototype.decodeHTML=function(i){var l=document.createElement("textarea");return l.innerHTML=i,l.textContent},s.prototype.updateOnCopyCallback=function(i){this._options.onCopy=i},s}();function ir(){document.querySelectorAll("[data-copy-to-clipboard-target]").forEach(function(s){var i=s.getAttribute("data-copy-to-clipboard-target"),l=document.getElementById(i),d=s.getAttribute("data-copy-to-clipboard-content-type"),f=s.getAttribute("data-copy-to-clipboard-html-entities");l?Ee.instanceExists("CopyClipboard",l.getAttribute("id"))||new Vn(s,l,{htmlEntities:f&&f==="true"?!0:La.htmlEntities,contentType:d||La.contentType}):console.error('The target element with id "'.concat(i,'" does not exist. Please check the data-copy-to-clipboard-target attribute.'))})}typeof window<"u"&&(window.CopyClipboard=Vn,window.initClipboards=ir);function cd(){Hs(),Xs(),Rs(),Ys(),qs(),Us(),Zs(),Ks(),Js(),Qs(),er(),tr(),ir()}typeof window<"u"&&(window.initFlowbite=cd);var dd=new Wl("load",[Hs,Xs,Rs,Ys,qs,Us,Zs,Ks,Js,Qs,er,tr,ir]);dd.init();var fs=!1,ps=!1,Qt=[],gs=-1;function hd(s){ud(s)}function ud(s){Qt.includes(s)||Qt.push(s),fd()}function jn(s){let i=Qt.indexOf(s);i!==-1&&i>gs&&Qt.splice(i,1)}function fd(){!ps&&!fs&&(fs=!0,queueMicrotask(pd))}function pd(){fs=!1,ps=!0;for(let s=0;s<Qt.length;s++)Qt[s](),gs=s;Qt.length=0,gs=-1,ps=!1}var bi,ni,yi,$n,ms=!0;function gd(s){ms=!1,s(),ms=!0}function md(s){bi=s.reactive,yi=s.release,ni=i=>s.effect(i,{scheduler:l=>{ms?hd(l):l()}}),$n=s.raw}function qr(s){ni=s}function vd(s){let i=()=>{};return[d=>{let f=ni(d);return s._x_effects||(s._x_effects=new Set,s._x_runEffects=()=>{s._x_effects.forEach(g=>g())}),s._x_effects.add(f),i=()=>{f!==void 0&&(s._x_effects.delete(f),yi(f))},f},()=>{i()}]}function qn(s,i){let l=!0,d,f=ni(()=>{let g=s();JSON.stringify(g),l?d=g:queueMicrotask(()=>{i(g,d),d=g}),l=!1});return()=>yi(f)}var Un=[],Zn=[],Kn=[];function xd(s){Kn.push(s)}function ar(s,i){typeof i=="function"?(s._x_cleanups||(s._x_cleanups=[]),s._x_cleanups.push(i)):(i=s,Zn.push(i))}function Jn(s){Un.push(s)}function Qn(s,i,l){s._x_attributeCleanups||(s._x_attributeCleanups={}),s._x_attributeCleanups[i]||(s._x_attributeCleanups[i]=[]),s._x_attributeCleanups[i].push(l)}function eo(s,i){s._x_attributeCleanups&&Object.entries(s._x_attributeCleanups).forEach(([l,d])=>{(i===void 0||i.includes(l))&&(d.forEach(f=>f()),delete s._x_attributeCleanups[l])})}function bd(s){if(s._x_cleanups)for(;s._x_cleanups.length;)s._x_cleanups.pop()()}var sr=new MutationObserver(lr),rr=!1;function nr(){sr.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),rr=!0}function to(){yd(),sr.disconnect(),rr=!1}var Ei=[];function yd(){let s=sr.takeRecords();Ei.push(()=>s.length>0&&lr(s));let i=Ei.length;queueMicrotask(()=>{if(Ei.length===i)for(;Ei.length>0;)Ei.shift()()})}function Ne(s){if(!rr)return s();to();let i=s();return nr(),i}var or=!1,_a=[];function wd(){or=!0}function Sd(){or=!1,lr(_a),_a=[]}function lr(s){if(or){_a=_a.concat(s);return}let i=new Set,l=new Set,d=new Map,f=new Map;for(let g=0;g<s.length;g++)if(!s[g].target._x_ignoreMutationObserver&&(s[g].type==="childList"&&(s[g].addedNodes.forEach(S=>S.nodeType===1&&i.add(S)),s[g].removedNodes.forEach(S=>S.nodeType===1&&l.add(S))),s[g].type==="attributes")){let S=s[g].target,y=s[g].attributeName,A=s[g].oldValue,M=()=>{d.has(S)||d.set(S,[]),d.get(S).push({name:y,value:S.getAttribute(y)})},T=()=>{f.has(S)||f.set(S,[]),f.get(S).push(y)};S.hasAttribute(y)&&A===null?M():S.hasAttribute(y)?(T(),M()):T()}f.forEach((g,S)=>{eo(S,g)}),d.forEach((g,S)=>{Un.forEach(y=>y(S,g))});for(let g of l)i.has(g)||Zn.forEach(S=>S(g));i.forEach(g=>{g._x_ignoreSelf=!0,g._x_ignore=!0});for(let g of i)l.has(g)||g.isConnected&&(delete g._x_ignoreSelf,delete g._x_ignore,Kn.forEach(S=>S(g)),g._x_ignore=!0,g._x_ignoreSelf=!0);i.forEach(g=>{delete g._x_ignoreSelf,delete g._x_ignore}),i=null,l=null,d=null,f=null}function io(s){return Vi(mi(s))}function Gi(s,i,l){return s._x_dataStack=[i,...mi(l||s)],()=>{s._x_dataStack=s._x_dataStack.filter(d=>d!==i)}}function mi(s){return s._x_dataStack?s._x_dataStack:typeof ShadowRoot=="function"&&s instanceof ShadowRoot?mi(s.host):s.parentNode?mi(s.parentNode):[]}function Vi(s){return new Proxy({objects:s},Ad)}var Ad={ownKeys({objects:s}){return Array.from(new Set(s.flatMap(i=>Object.keys(i))))},has({objects:s},i){return i==Symbol.unscopables?!1:s.some(l=>Object.prototype.hasOwnProperty.call(l,i)||Reflect.has(l,i))},get({objects:s},i,l){return i=="toJSON"?kd:Reflect.get(s.find(d=>Reflect.has(d,i))||{},i,l)},set({objects:s},i,l,d){const f=s.find(S=>Object.prototype.hasOwnProperty.call(S,i))||s[s.length-1],g=Object.getOwnPropertyDescriptor(f,i);return g!=null&&g.set&&(g!=null&&g.get)?Reflect.set(f,i,l,d):Reflect.set(f,i,l)}};function kd(){return Reflect.ownKeys(this).reduce((i,l)=>(i[l]=Reflect.get(this,l),i),{})}function ao(s){let i=d=>typeof d=="object"&&!Array.isArray(d)&&d!==null,l=(d,f="")=>{Object.entries(Object.getOwnPropertyDescriptors(d)).forEach(([g,{value:S,enumerable:y}])=>{if(y===!1||S===void 0||typeof S=="object"&&S!==null&&S.__v_skip)return;let A=f===""?g:`${f}.${g}`;typeof S=="object"&&S!==null&&S._x_interceptor?d[g]=S.initialize(s,A,g):i(S)&&S!==d&&!(S instanceof Element)&&l(S,A)})};return l(s)}function so(s,i=()=>{}){let l={initialValue:void 0,_x_interceptor:!0,initialize(d,f,g){return s(this.initialValue,()=>Cd(d,f),S=>vs(d,f,S),f,g)}};return i(l),d=>{if(typeof d=="object"&&d!==null&&d._x_interceptor){let f=l.initialize.bind(l);l.initialize=(g,S,y)=>{let A=d.initialize(g,S,y);return l.initialValue=A,f(g,S,y)}}else l.initialValue=d;return l}}function Cd(s,i){return i.split(".").reduce((l,d)=>l[d],s)}function vs(s,i,l){if(typeof i=="string"&&(i=i.split(".")),i.length===1)s[i[0]]=l;else{if(i.length===0)throw error;return s[i[0]]||(s[i[0]]={}),vs(s[i[0]],i.slice(1),l)}}var ro={};function ft(s,i){ro[s]=i}function xs(s,i){return Object.entries(ro).forEach(([l,d])=>{let f=null;function g(){if(f)return f;{let[S,y]=uo(i);return f={interceptor:so,...S},ar(i,y),f}}Object.defineProperty(s,`$${l}`,{get(){return d(i,g())},enumerable:!1})}),s}function Ed(s,i,l,...d){try{return l(...d)}catch(f){Fi(f,s,i)}}function Fi(s,i,l=void 0){s=Object.assign(s??{message:"No error message given."},{el:i,expression:l}),console.warn(`Alpine Expression Error: ${s.message} ${l?'Expression: "'+l+`" `:""}`,i),setTimeout(()=>{throw s},0)}var da=!0;function no(s){let i=da;da=!1;let l=s();return da=i,l}function ei(s,i,l={}){let d;return qe(s,i)(f=>d=f,l),d}function qe(...s){return oo(...s)}var oo=lo;function Td(s){oo=s}function lo(s,i){let l={};xs(l,s);let d=[l,...mi(s)],f=typeof i=="function"?Ld(d,i):Md(d,i,s);return Ed.bind(null,s,i,f)}function Ld(s,i){return(l=()=>{},{scope:d={},params:f=[]}={})=>{let g=i.apply(Vi([d,...s]),f);Ma(l,g)}}var Za={};function _d(s,i){if(Za[s])return Za[s];let l=Object.getPrototypeOf(async function(){}).constructor,d=/^[\n\s]*if.*\(.*\)/.test(s.trim())||/^(let|const)\s/.test(s.trim())?`(async()=>{ ${s} })()`:s,g=(()=>{try{let S=new l(["__self","scope"],`with (scope) { __self.result = ${d} }; __self.finished = true; return __self.result;`);return Object.defineProperty(S,"name",{value:`[Alpine] ${s}`}),S}catch(S){return Fi(S,i,s),Promise.resolve()}})();return Za[s]=g,g}function Md(s,i,l){let d=_d(i,l);return(f=()=>{},{scope:g={},params:S=[]}={})=>{d.result=void 0,d.finished=!1;let y=Vi([g,...s]);if(typeof d=="function"){let A=d(d,y).catch(M=>Fi(M,l,i));d.finished?(Ma(f,d.result,y,S,l),d.result=void 0):A.then(M=>{Ma(f,M,y,S,l)}).catch(M=>Fi(M,l,i)).finally(()=>d.result=void 0)}}}function Ma(s,i,l,d,f){if(da&&typeof i=="function"){let g=i.apply(l,d);g instanceof Promise?g.then(S=>Ma(s,S,l,d)).catch(S=>Fi(S,f,i)):s(g)}else typeof i=="object"&&i instanceof Promise?i.then(g=>s(g)):s(i)}var cr="x-";function wi(s=""){return cr+s}function Pd(s){cr=s}var Pa={};function Ye(s,i){return Pa[s]=i,{before(l){if(!Pa[l]){console.warn(String.raw`Cannot find directive \`${l}\`. \`${s}\` will use the default order of execution`);return}const d=Kt.indexOf(l);Kt.splice(d>=0?d:Kt.indexOf("DEFAULT"),0,s)}}}function Id(s){return Object.keys(Pa).includes(s)}function dr(s,i,l){if(i=Array.from(i),s._x_virtualDirectives){let g=Object.entries(s._x_virtualDirectives).map(([y,A])=>({name:y,value:A})),S=co(g);g=g.map(y=>S.find(A=>A.name===y.name)?{name:`x-bind:${y.name}`,value:`"${y.value}"`}:y),i=i.concat(g)}let d={};return i.map(go((g,S)=>d[g]=S)).filter(vo).map(Dd(d,l)).sort(Hd).map(g=>Od(s,g))}function co(s){return Array.from(s).map(go()).filter(i=>!vo(i))}var bs=!1,_i=new Map,ho=Symbol();function zd(s){bs=!0;let i=Symbol();ho=i,_i.set(i,[]);let l=()=>{for(;_i.get(i).length;)_i.get(i).shift()();_i.delete(i)},d=()=>{bs=!1,l()};s(l),d()}function uo(s){let i=[],l=y=>i.push(y),[d,f]=vd(s);return i.push(f),[{Alpine:$i,effect:d,cleanup:l,evaluateLater:qe.bind(qe,s),evaluate:ei.bind(ei,s)},()=>i.forEach(y=>y())]}function Od(s,i){let l=()=>{},d=Pa[i.type]||l,[f,g]=uo(s);Qn(s,i.original,g);let S=()=>{s._x_ignore||s._x_ignoreSelf||(d.inline&&d.inline(s,i,f),d=d.bind(d,s,i,f),bs?_i.get(ho).push(d):d())};return S.runCleanups=g,S}var fo=(s,i)=>({name:l,value:d})=>(l.startsWith(s)&&(l=l.replace(s,i)),{name:l,value:d}),po=s=>s;function go(s=()=>{}){return({name:i,value:l})=>{let{name:d,value:f}=mo.reduce((g,S)=>S(g),{name:i,value:l});return d!==i&&s(d,i),{name:d,value:f}}}var mo=[];function hr(s){mo.push(s)}function vo({name:s}){return xo().test(s)}var xo=()=>new RegExp(`^${cr}([^:^.]+)\\b`);function Dd(s,i){return({name:l,value:d})=>{let f=l.match(xo()),g=l.match(/:([a-zA-Z0-9\-_:]+)/),S=l.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],y=i||s[l]||l;return{type:f?f[1]:null,value:g?g[1]:null,modifiers:S.map(A=>A.replace(".","")),expression:d,original:y}}}var ys="DEFAULT",Kt=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",ys,"teleport"];function Hd(s,i){let l=Kt.indexOf(s.type)===-1?ys:s.type,d=Kt.indexOf(i.type)===-1?ys:i.type;return Kt.indexOf(l)-Kt.indexOf(d)}function Di(s,i,l={}){s.dispatchEvent(new CustomEvent(i,{detail:l,bubbles:!0,composed:!0,cancelable:!0}))}function Rt(s,i){if(typeof ShadowRoot=="function"&&s instanceof ShadowRoot){Array.from(s.children).forEach(f=>Rt(f,i));return}let l=!1;if(i(s,()=>l=!0),l)return;let d=s.firstElementChild;for(;d;)Rt(d,i),d=d.nextElementSibling}function nt(s,...i){console.warn(`Alpine Warning: ${s}`,...i)}var Ur=!1;function Xd(){Ur&&nt("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Ur=!0,document.body||nt("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Di(document,"alpine:init"),Di(document,"alpine:initializing"),nr(),xd(i=>Tt(i,Rt)),ar(i=>Co(i)),Jn((i,l)=>{dr(i,l).forEach(d=>d())});let s=i=>!Xa(i.parentElement,!0);Array.from(document.querySelectorAll(wo().join(","))).filter(s).forEach(i=>{Tt(i)}),Di(document,"alpine:initialized"),setTimeout(()=>{Fd()})}var ur=[],bo=[];function yo(){return ur.map(s=>s())}function wo(){return ur.concat(bo).map(s=>s())}function So(s){ur.push(s)}function Ao(s){bo.push(s)}function Xa(s,i=!1){return ji(s,l=>{if((i?wo():yo()).some(f=>l.matches(f)))return!0})}function ji(s,i){if(s){if(i(s))return s;if(s._x_teleportBack&&(s=s._x_teleportBack),!!s.parentElement)return ji(s.parentElement,i)}}function Rd(s){return yo().some(i=>s.matches(i))}var ko=[];function Yd(s){ko.push(s)}function Tt(s,i=Rt,l=()=>{}){zd(()=>{i(s,(d,f)=>{l(d,f),ko.forEach(g=>g(d,f)),dr(d,d.attributes).forEach(g=>g()),d._x_ignore&&f()})})}function Co(s,i=Rt){i(s,l=>{eo(l),bd(l)})}function Fd(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([i,l,d])=>{Id(l)||d.some(f=>{if(document.querySelector(f))return nt(`found "${f}", but missing ${i} plugin`),!0})})}var ws=[],fr=!1;function pr(s=()=>{}){return queueMicrotask(()=>{fr||setTimeout(()=>{Ss()})}),new Promise(i=>{ws.push(()=>{s(),i()})})}function Ss(){for(fr=!1;ws.length;)ws.shift()()}function Nd(){fr=!0}function gr(s,i){return Array.isArray(i)?Zr(s,i.join(" ")):typeof i=="object"&&i!==null?Bd(s,i):typeof i=="function"?gr(s,i()):Zr(s,i)}function Zr(s,i){let l=f=>f.split(" ").filter(g=>!s.classList.contains(g)).filter(Boolean),d=f=>(s.classList.add(...f),()=>{s.classList.remove(...f)});return i=i===!0?i="":i||"",d(l(i))}function Bd(s,i){let l=y=>y.split(" ").filter(Boolean),d=Object.entries(i).flatMap(([y,A])=>A?l(y):!1).filter(Boolean),f=Object.entries(i).flatMap(([y,A])=>A?!1:l(y)).filter(Boolean),g=[],S=[];return f.forEach(y=>{s.classList.contains(y)&&(s.classList.remove(y),S.push(y))}),d.forEach(y=>{s.classList.contains(y)||(s.classList.add(y),g.push(y))}),()=>{S.forEach(y=>s.classList.add(y)),g.forEach(y=>s.classList.remove(y))}}function Ra(s,i){return typeof i=="object"&&i!==null?Wd(s,i):Gd(s,i)}function Wd(s,i){let l={};return Object.entries(i).forEach(([d,f])=>{l[d]=s.style[d],d.startsWith("--")||(d=Vd(d)),s.style.setProperty(d,f)}),setTimeout(()=>{s.style.length===0&&s.removeAttribute("style")}),()=>{Ra(s,l)}}function Gd(s,i){let l=s.getAttribute("style",i);return s.setAttribute("style",i),()=>{s.setAttribute("style",l||"")}}function Vd(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function As(s,i=()=>{}){let l=!1;return function(){l?i.apply(this,arguments):(l=!0,s.apply(this,arguments))}}Ye("transition",(s,{value:i,modifiers:l,expression:d},{evaluate:f})=>{typeof d=="function"&&(d=f(d)),d!==!1&&(!d||typeof d=="boolean"?$d(s,l,i):jd(s,d,i))});function jd(s,i,l){Eo(s,gr,""),{enter:f=>{s._x_transition.enter.during=f},"enter-start":f=>{s._x_transition.enter.start=f},"enter-end":f=>{s._x_transition.enter.end=f},leave:f=>{s._x_transition.leave.during=f},"leave-start":f=>{s._x_transition.leave.start=f},"leave-end":f=>{s._x_transition.leave.end=f}}[l](i)}function $d(s,i,l){Eo(s,Ra);let d=!i.includes("in")&&!i.includes("out")&&!l,f=d||i.includes("in")||["enter"].includes(l),g=d||i.includes("out")||["leave"].includes(l);i.includes("in")&&!d&&(i=i.filter((R,P)=>P<i.indexOf("out"))),i.includes("out")&&!d&&(i=i.filter((R,P)=>P>i.indexOf("out")));let S=!i.includes("opacity")&&!i.includes("scale"),y=S||i.includes("opacity"),A=S||i.includes("scale"),M=y?0:1,T=A?Ti(i,"scale",95)/100:1,_=Ti(i,"delay",0)/1e3,H=Ti(i,"origin","center"),Y="opacity, transform",G=Ti(i,"duration",150)/1e3,W=Ti(i,"duration",75)/1e3,F="cubic-bezier(0.4, 0.0, 0.2, 1)";f&&(s._x_transition.enter.during={transformOrigin:H,transitionDelay:`${_}s`,transitionProperty:Y,transitionDuration:`${G}s`,transitionTimingFunction:F},s._x_transition.enter.start={opacity:M,transform:`scale(${T})`},s._x_transition.enter.end={opacity:1,transform:"scale(1)"}),g&&(s._x_transition.leave.during={transformOrigin:H,transitionDelay:`${_}s`,transitionProperty:Y,transitionDuration:`${W}s`,transitionTimingFunction:F},s._x_transition.leave.start={opacity:1,transform:"scale(1)"},s._x_transition.leave.end={opacity:M,transform:`scale(${T})`})}function Eo(s,i,l={}){s._x_transition||(s._x_transition={enter:{during:l,start:l,end:l},leave:{during:l,start:l,end:l},in(d=()=>{},f=()=>{}){ks(s,i,{during:this.enter.during,start:this.enter.start,end:this.enter.end},d,f)},out(d=()=>{},f=()=>{}){ks(s,i,{during:this.leave.during,start:this.leave.start,end:this.leave.end},d,f)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(s,i,l,d){const f=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let g=()=>f(l);if(i){s._x_transition&&(s._x_transition.enter||s._x_transition.leave)?s._x_transition.enter&&(Object.entries(s._x_transition.enter.during).length||Object.entries(s._x_transition.enter.start).length||Object.entries(s._x_transition.enter.end).length)?s._x_transition.in(l):g():s._x_transition?s._x_transition.in(l):g();return}s._x_hidePromise=s._x_transition?new Promise((S,y)=>{s._x_transition.out(()=>{},()=>S(d)),s._x_transitioning&&s._x_transitioning.beforeCancel(()=>y({isFromCancelledTransition:!0}))}):Promise.resolve(d),queueMicrotask(()=>{let S=To(s);S?(S._x_hideChildren||(S._x_hideChildren=[]),S._x_hideChildren.push(s)):f(()=>{let y=A=>{let M=Promise.all([A._x_hidePromise,...(A._x_hideChildren||[]).map(y)]).then(([T])=>T());return delete A._x_hidePromise,delete A._x_hideChildren,M};y(s).catch(A=>{if(!A.isFromCancelledTransition)throw A})})})};function To(s){let i=s.parentNode;if(i)return i._x_hidePromise?i:To(i)}function ks(s,i,{during:l,start:d,end:f}={},g=()=>{},S=()=>{}){if(s._x_transitioning&&s._x_transitioning.cancel(),Object.keys(l).length===0&&Object.keys(d).length===0&&Object.keys(f).length===0){g(),S();return}let y,A,M;qd(s,{start(){y=i(s,d)},during(){A=i(s,l)},before:g,end(){y(),M=i(s,f)},after:S,cleanup(){A(),M()}})}function qd(s,i){let l,d,f,g=As(()=>{Ne(()=>{l=!0,d||i.before(),f||(i.end(),Ss()),i.after(),s.isConnected&&i.cleanup(),delete s._x_transitioning})});s._x_transitioning={beforeCancels:[],beforeCancel(S){this.beforeCancels.push(S)},cancel:As(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();g()}),finish:g},Ne(()=>{i.start(),i.during()}),Nd(),requestAnimationFrame(()=>{if(l)return;let S=Number(getComputedStyle(s).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,y=Number(getComputedStyle(s).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;S===0&&(S=Number(getComputedStyle(s).animationDuration.replace("s",""))*1e3),Ne(()=>{i.before()}),d=!0,requestAnimationFrame(()=>{l||(Ne(()=>{i.end()}),Ss(),setTimeout(s._x_transitioning.finish,S+y),f=!0)})})}function Ti(s,i,l){if(s.indexOf(i)===-1)return l;const d=s[s.indexOf(i)+1];if(!d||i==="scale"&&isNaN(d))return l;if(i==="duration"||i==="delay"){let f=d.match(/([0-9]+)ms/);if(f)return f[1]}return i==="origin"&&["top","right","left","center","bottom"].includes(s[s.indexOf(i)+2])?[d,s[s.indexOf(i)+2]].join(" "):d}var Yt=!1;function oi(s,i=()=>{}){return(...l)=>Yt?i(...l):s(...l)}function Ud(s){return(...i)=>Yt&&s(...i)}var Lo=[];function Ya(s){Lo.push(s)}function Zd(s,i){Lo.forEach(l=>l(s,i)),Yt=!0,_o(()=>{Tt(i,(l,d)=>{d(l,()=>{})})}),Yt=!1}var Cs=!1;function Kd(s,i){i._x_dataStack||(i._x_dataStack=s._x_dataStack),Yt=!0,Cs=!0,_o(()=>{Jd(i)}),Yt=!1,Cs=!1}function Jd(s){let i=!1;Tt(s,(d,f)=>{Rt(d,(g,S)=>{if(i&&Rd(g))return S();i=!0,f(g,S)})})}function _o(s){let i=ni;qr((l,d)=>{let f=i(l);return yi(f),()=>{}}),s(),qr(i)}function Mo(s,i,l,d=[]){switch(s._x_bindings||(s._x_bindings=bi({})),s._x_bindings[i]=l,i=d.includes("camel")?nh(i):i,i){case"value":Qd(s,l);break;case"style":th(s,l);break;case"class":eh(s,l);break;case"selected":case"checked":ih(s,i,l);break;default:Po(s,i,l);break}}function Qd(s,i){if(s.type==="radio")s.attributes.value===void 0&&(s.value=i),window.fromModel&&(typeof i=="boolean"?s.checked=ha(s.value)===i:s.checked=Kr(s.value,i));else if(s.type==="checkbox")Number.isInteger(i)?s.value=i:!Array.isArray(i)&&typeof i!="boolean"&&![null,void 0].includes(i)?s.value=String(i):Array.isArray(i)?s.checked=i.some(l=>Kr(l,s.value)):s.checked=!!i;else if(s.tagName==="SELECT")rh(s,i);else{if(s.value===i)return;s.value=i===void 0?"":i}}function eh(s,i){s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedClasses=gr(s,i)}function th(s,i){s._x_undoAddedStyles&&s._x_undoAddedStyles(),s._x_undoAddedStyles=Ra(s,i)}function ih(s,i,l){Po(s,i,l),sh(s,i,l)}function Po(s,i,l){[null,void 0,!1].includes(l)&&oh(i)?s.removeAttribute(i):(Io(i)&&(l=i),ah(s,i,l))}function ah(s,i,l){s.getAttribute(i)!=l&&s.setAttribute(i,l)}function sh(s,i,l){s[i]!==l&&(s[i]=l)}function rh(s,i){const l=[].concat(i).map(d=>d+"");Array.from(s.options).forEach(d=>{d.selected=l.includes(d.value)})}function nh(s){return s.toLowerCase().replace(/-(\w)/g,(i,l)=>l.toUpperCase())}function Kr(s,i){return s==i}function ha(s){return[1,"1","true","on","yes",!0].includes(s)?!0:[0,"0","false","off","no",!1].includes(s)?!1:s?!!s:null}function Io(s){return["disabled","checked","required","readonly","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(s)}function oh(s){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(s)}function lh(s,i,l){return s._x_bindings&&s._x_bindings[i]!==void 0?s._x_bindings[i]:zo(s,i,l)}function ch(s,i,l,d=!0){if(s._x_bindings&&s._x_bindings[i]!==void 0)return s._x_bindings[i];if(s._x_inlineBindings&&s._x_inlineBindings[i]!==void 0){let f=s._x_inlineBindings[i];return f.extract=d,no(()=>ei(s,f.expression))}return zo(s,i,l)}function zo(s,i,l){let d=s.getAttribute(i);return d===null?typeof l=="function"?l():l:d===""?!0:Io(i)?!![i,"true"].includes(d):d}function Oo(s,i){var l;return function(){var d=this,f=arguments,g=function(){l=null,s.apply(d,f)};clearTimeout(l),l=setTimeout(g,i)}}function Do(s,i){let l;return function(){let d=this,f=arguments;l||(s.apply(d,f),l=!0,setTimeout(()=>l=!1,i))}}function Ho({get:s,set:i},{get:l,set:d}){let f=!0,g,S=ni(()=>{let y=s(),A=l();if(f)d(Ka(y)),f=!1;else{let M=JSON.stringify(y),T=JSON.stringify(A);M!==g?d(Ka(y)):M!==T&&i(Ka(A))}g=JSON.stringify(s()),JSON.stringify(l())});return()=>{yi(S)}}function Ka(s){return typeof s=="object"?JSON.parse(JSON.stringify(s)):s}function dh(s){(Array.isArray(s)?s:[s]).forEach(l=>l($i))}var $t={},Jr=!1;function hh(s,i){if(Jr||($t=bi($t),Jr=!0),i===void 0)return $t[s];$t[s]=i,typeof i=="object"&&i!==null&&i.hasOwnProperty("init")&&typeof i.init=="function"&&$t[s].init(),ao($t[s])}function uh(){return $t}var Xo={};function fh(s,i){let l=typeof i!="function"?()=>i:i;return s instanceof Element?Ro(s,l()):(Xo[s]=l,()=>{})}function ph(s){return Object.entries(Xo).forEach(([i,l])=>{Object.defineProperty(s,i,{get(){return(...d)=>l(...d)}})}),s}function Ro(s,i,l){let d=[];for(;d.length;)d.pop()();let f=Object.entries(i).map(([S,y])=>({name:S,value:y})),g=co(f);return f=f.map(S=>g.find(y=>y.name===S.name)?{name:`x-bind:${S.name}`,value:`"${S.value}"`}:S),dr(s,f,l).map(S=>{d.push(S.runCleanups),S()}),()=>{for(;d.length;)d.pop()()}}var Yo={};function gh(s,i){Yo[s]=i}function mh(s,i){return Object.entries(Yo).forEach(([l,d])=>{Object.defineProperty(s,l,{get(){return(...f)=>d.bind(i)(...f)},enumerable:!1})}),s}var vh={get reactive(){return bi},get release(){return yi},get effect(){return ni},get raw(){return $n},version:"3.13.9",flushAndStopDeferringMutations:Sd,dontAutoEvaluateFunctions:no,disableEffectScheduling:gd,startObservingMutations:nr,stopObservingMutations:to,setReactivityEngine:md,onAttributeRemoved:Qn,onAttributesAdded:Jn,closestDataStack:mi,skipDuringClone:oi,onlyDuringClone:Ud,addRootSelector:So,addInitSelector:Ao,interceptClone:Ya,addScopeToNode:Gi,deferMutations:wd,mapAttributes:hr,evaluateLater:qe,interceptInit:Yd,setEvaluator:Td,mergeProxies:Vi,extractProp:ch,findClosest:ji,onElRemoved:ar,closestRoot:Xa,destroyTree:Co,interceptor:so,transition:ks,setStyles:Ra,mutateDom:Ne,directive:Ye,entangle:Ho,throttle:Do,debounce:Oo,evaluate:ei,initTree:Tt,nextTick:pr,prefixed:wi,prefix:Pd,plugin:dh,magic:ft,store:hh,start:Xd,clone:Kd,cloneNode:Zd,bound:lh,$data:io,watch:qn,walk:Rt,data:gh,bind:fh},$i=vh;function xh(s,i){const l=Object.create(null),d=s.split(",");for(let f=0;f<d.length;f++)l[d[f]]=!0;return i?f=>!!l[f.toLowerCase()]:f=>!!l[f]}var bh=Object.freeze({}),yh=Object.prototype.hasOwnProperty,Fa=(s,i)=>yh.call(s,i),ti=Array.isArray,Hi=s=>Fo(s)==="[object Map]",wh=s=>typeof s=="string",mr=s=>typeof s=="symbol",Na=s=>s!==null&&typeof s=="object",Sh=Object.prototype.toString,Fo=s=>Sh.call(s),No=s=>Fo(s).slice(8,-1),vr=s=>wh(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Ah=s=>{const i=Object.create(null);return l=>i[l]||(i[l]=s(l))},kh=Ah(s=>s.charAt(0).toUpperCase()+s.slice(1)),Bo=(s,i)=>s!==i&&(s===s||i===i),Es=new WeakMap,Li=[],mt,ii=Symbol("iterate"),Ts=Symbol("Map key iterate");function Ch(s){return s&&s._isEffect===!0}function Eh(s,i=bh){Ch(s)&&(s=s.raw);const l=_h(s,i);return i.lazy||l(),l}function Th(s){s.active&&(Wo(s),s.options.onStop&&s.options.onStop(),s.active=!1)}var Lh=0;function _h(s,i){const l=function(){if(!l.active)return s();if(!Li.includes(l)){Wo(l);try{return Ph(),Li.push(l),mt=l,s()}finally{Li.pop(),Go(),mt=Li[Li.length-1]}}};return l.id=Lh++,l.allowRecurse=!!i.allowRecurse,l._isEffect=!0,l.active=!0,l.raw=s,l.deps=[],l.options=i,l}function Wo(s){const{deps:i}=s;if(i.length){for(let l=0;l<i.length;l++)i[l].delete(s);i.length=0}}var vi=!0,xr=[];function Mh(){xr.push(vi),vi=!1}function Ph(){xr.push(vi),vi=!0}function Go(){const s=xr.pop();vi=s===void 0?!0:s}function ut(s,i,l){if(!vi||mt===void 0)return;let d=Es.get(s);d||Es.set(s,d=new Map);let f=d.get(l);f||d.set(l,f=new Set),f.has(mt)||(f.add(mt),mt.deps.push(f),mt.options.onTrack&&mt.options.onTrack({effect:mt,target:s,type:i,key:l}))}function Ft(s,i,l,d,f,g){const S=Es.get(s);if(!S)return;const y=new Set,A=T=>{T&&T.forEach(_=>{(_!==mt||_.allowRecurse)&&y.add(_)})};if(i==="clear")S.forEach(A);else if(l==="length"&&ti(s))S.forEach((T,_)=>{(_==="length"||_>=d)&&A(T)});else switch(l!==void 0&&A(S.get(l)),i){case"add":ti(s)?vr(l)&&A(S.get("length")):(A(S.get(ii)),Hi(s)&&A(S.get(Ts)));break;case"delete":ti(s)||(A(S.get(ii)),Hi(s)&&A(S.get(Ts)));break;case"set":Hi(s)&&A(S.get(ii));break}const M=T=>{T.options.onTrigger&&T.options.onTrigger({effect:T,target:s,key:l,type:i,newValue:d,oldValue:f,oldTarget:g}),T.options.scheduler?T.options.scheduler(T):T()};y.forEach(M)}var Ih=xh("__proto__,__v_isRef,__isVue"),Vo=new Set(Object.getOwnPropertyNames(Symbol).map(s=>Symbol[s]).filter(mr)),zh=jo(),Oh=jo(!0),Qr=Dh();function Dh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(i=>{s[i]=function(...l){const d=Oe(this);for(let g=0,S=this.length;g<S;g++)ut(d,"get",g+"");const f=d[i](...l);return f===-1||f===!1?d[i](...l.map(Oe)):f}}),["push","pop","shift","unshift","splice"].forEach(i=>{s[i]=function(...l){Mh();const d=Oe(this)[i].apply(this,l);return Go(),d}}),s}function jo(s=!1,i=!1){return function(d,f,g){if(f==="__v_isReactive")return!s;if(f==="__v_isReadonly")return s;if(f==="__v_raw"&&g===(s?i?Kh:Zo:i?Zh:Uo).get(d))return d;const S=ti(d);if(!s&&S&&Fa(Qr,f))return Reflect.get(Qr,f,g);const y=Reflect.get(d,f,g);return(mr(f)?Vo.has(f):Ih(f))||(s||ut(d,"get",f),i)?y:Ls(y)?!S||!vr(f)?y.value:y:Na(y)?s?Ko(y):Sr(y):y}}var Hh=Xh();function Xh(s=!1){return function(l,d,f,g){let S=l[d];if(!s&&(f=Oe(f),S=Oe(S),!ti(l)&&Ls(S)&&!Ls(f)))return S.value=f,!0;const y=ti(l)&&vr(d)?Number(d)<l.length:Fa(l,d),A=Reflect.set(l,d,f,g);return l===Oe(g)&&(y?Bo(f,S)&&Ft(l,"set",d,f,S):Ft(l,"add",d,f)),A}}function Rh(s,i){const l=Fa(s,i),d=s[i],f=Reflect.deleteProperty(s,i);return f&&l&&Ft(s,"delete",i,void 0,d),f}function Yh(s,i){const l=Reflect.has(s,i);return(!mr(i)||!Vo.has(i))&&ut(s,"has",i),l}function Fh(s){return ut(s,"iterate",ti(s)?"length":ii),Reflect.ownKeys(s)}var Nh={get:zh,set:Hh,deleteProperty:Rh,has:Yh,ownKeys:Fh},Bh={get:Oh,set(s,i){return console.warn(`Set operation on key "${String(i)}" failed: target is readonly.`,s),!0},deleteProperty(s,i){return console.warn(`Delete operation on key "${String(i)}" failed: target is readonly.`,s),!0}},br=s=>Na(s)?Sr(s):s,yr=s=>Na(s)?Ko(s):s,wr=s=>s,Ba=s=>Reflect.getPrototypeOf(s);function ia(s,i,l=!1,d=!1){s=s.__v_raw;const f=Oe(s),g=Oe(i);i!==g&&!l&&ut(f,"get",i),!l&&ut(f,"get",g);const{has:S}=Ba(f),y=d?wr:l?yr:br;if(S.call(f,i))return y(s.get(i));if(S.call(f,g))return y(s.get(g));s!==f&&s.get(i)}function aa(s,i=!1){const l=this.__v_raw,d=Oe(l),f=Oe(s);return s!==f&&!i&&ut(d,"has",s),!i&&ut(d,"has",f),s===f?l.has(s):l.has(s)||l.has(f)}function sa(s,i=!1){return s=s.__v_raw,!i&&ut(Oe(s),"iterate",ii),Reflect.get(s,"size",s)}function en(s){s=Oe(s);const i=Oe(this);return Ba(i).has.call(i,s)||(i.add(s),Ft(i,"add",s,s)),this}function tn(s,i){i=Oe(i);const l=Oe(this),{has:d,get:f}=Ba(l);let g=d.call(l,s);g?qo(l,d,s):(s=Oe(s),g=d.call(l,s));const S=f.call(l,s);return l.set(s,i),g?Bo(i,S)&&Ft(l,"set",s,i,S):Ft(l,"add",s,i),this}function an(s){const i=Oe(this),{has:l,get:d}=Ba(i);let f=l.call(i,s);f?qo(i,l,s):(s=Oe(s),f=l.call(i,s));const g=d?d.call(i,s):void 0,S=i.delete(s);return f&&Ft(i,"delete",s,void 0,g),S}function sn(){const s=Oe(this),i=s.size!==0,l=Hi(s)?new Map(s):new Set(s),d=s.clear();return i&&Ft(s,"clear",void 0,void 0,l),d}function ra(s,i){return function(d,f){const g=this,S=g.__v_raw,y=Oe(S),A=i?wr:s?yr:br;return!s&&ut(y,"iterate",ii),S.forEach((M,T)=>d.call(f,A(M),A(T),g))}}function na(s,i,l){return function(...d){const f=this.__v_raw,g=Oe(f),S=Hi(g),y=s==="entries"||s===Symbol.iterator&&S,A=s==="keys"&&S,M=f[s](...d),T=l?wr:i?yr:br;return!i&&ut(g,"iterate",A?Ts:ii),{next(){const{value:_,done:H}=M.next();return H?{value:_,done:H}:{value:y?[T(_[0]),T(_[1])]:T(_),done:H}},[Symbol.iterator](){return this}}}}function _t(s){return function(...i){{const l=i[0]?`on key "${i[0]}" `:"";console.warn(`${kh(s)} operation ${l}failed: target is readonly.`,Oe(this))}return s==="delete"?!1:this}}function Wh(){const s={get(g){return ia(this,g)},get size(){return sa(this)},has:aa,add:en,set:tn,delete:an,clear:sn,forEach:ra(!1,!1)},i={get(g){return ia(this,g,!1,!0)},get size(){return sa(this)},has:aa,add:en,set:tn,delete:an,clear:sn,forEach:ra(!1,!0)},l={get(g){return ia(this,g,!0)},get size(){return sa(this,!0)},has(g){return aa.call(this,g,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:ra(!0,!1)},d={get(g){return ia(this,g,!0,!0)},get size(){return sa(this,!0)},has(g){return aa.call(this,g,!0)},add:_t("add"),set:_t("set"),delete:_t("delete"),clear:_t("clear"),forEach:ra(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(g=>{s[g]=na(g,!1,!1),l[g]=na(g,!0,!1),i[g]=na(g,!1,!0),d[g]=na(g,!0,!0)}),[s,l,i,d]}var[Gh,Vh,jh,$h]=Wh();function $o(s,i){const l=i?s?$h:jh:s?Vh:Gh;return(d,f,g)=>f==="__v_isReactive"?!s:f==="__v_isReadonly"?s:f==="__v_raw"?d:Reflect.get(Fa(l,f)&&f in d?l:d,f,g)}var qh={get:$o(!1,!1)},Uh={get:$o(!0,!1)};function qo(s,i,l){const d=Oe(l);if(d!==l&&i.call(s,d)){const f=No(s);console.warn(`Reactive ${f} contains both the raw and reactive versions of the same object${f==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Uo=new WeakMap,Zh=new WeakMap,Zo=new WeakMap,Kh=new WeakMap;function Jh(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qh(s){return s.__v_skip||!Object.isExtensible(s)?0:Jh(No(s))}function Sr(s){return s&&s.__v_isReadonly?s:Jo(s,!1,Nh,qh,Uo)}function Ko(s){return Jo(s,!0,Bh,Uh,Zo)}function Jo(s,i,l,d,f){if(!Na(s))return console.warn(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(i&&s.__v_isReactive))return s;const g=f.get(s);if(g)return g;const S=Qh(s);if(S===0)return s;const y=new Proxy(s,S===2?d:l);return f.set(s,y),y}function Oe(s){return s&&Oe(s.__v_raw)||s}function Ls(s){return!!(s&&s.__v_isRef===!0)}ft("nextTick",()=>pr);ft("dispatch",s=>Di.bind(Di,s));ft("watch",(s,{evaluateLater:i,cleanup:l})=>(d,f)=>{let g=i(d),y=qn(()=>{let A;return g(M=>A=M),A},f);l(y)});ft("store",uh);ft("data",s=>io(s));ft("root",s=>Xa(s));ft("refs",s=>(s._x_refs_proxy||(s._x_refs_proxy=Vi(eu(s))),s._x_refs_proxy));function eu(s){let i=[];return ji(s,l=>{l._x_refs&&i.push(l._x_refs)}),i}var Ja={};function Qo(s){return Ja[s]||(Ja[s]=0),++Ja[s]}function tu(s,i){return ji(s,l=>{if(l._x_ids&&l._x_ids[i])return!0})}function iu(s,i){s._x_ids||(s._x_ids={}),s._x_ids[i]||(s._x_ids[i]=Qo(i))}ft("id",(s,{cleanup:i})=>(l,d=null)=>{let f=`${l}${d?`-${d}`:""}`;return au(s,f,i,()=>{let g=tu(s,l),S=g?g._x_ids[l]:Qo(l);return d?`${l}-${S}-${d}`:`${l}-${S}`})});Ya((s,i)=>{s._x_id&&(i._x_id=s._x_id)});function au(s,i,l,d){if(s._x_id||(s._x_id={}),s._x_id[i])return s._x_id[i];let f=d();return s._x_id[i]=f,l(()=>{delete s._x_id[i]}),f}ft("el",s=>s);el("Focus","focus","focus");el("Persist","persist","persist");function el(s,i,l){ft(i,d=>nt(`You can't use [$${i}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${l}`,d))}Ye("modelable",(s,{expression:i},{effect:l,evaluateLater:d,cleanup:f})=>{let g=d(i),S=()=>{let T;return g(_=>T=_),T},y=d(`${i} = __placeholder`),A=T=>y(()=>{},{scope:{__placeholder:T}}),M=S();A(M),queueMicrotask(()=>{if(!s._x_model)return;s._x_removeModelListeners.default();let T=s._x_model.get,_=s._x_model.set,H=Ho({get(){return T()},set(Y){_(Y)}},{get(){return S()},set(Y){A(Y)}});f(H)})});Ye("teleport",(s,{modifiers:i,expression:l},{cleanup:d})=>{s.tagName.toLowerCase()!=="template"&&nt("x-teleport can only be used on a <template> tag",s);let f=rn(l),g=s.content.cloneNode(!0).firstElementChild;s._x_teleport=g,g._x_teleportBack=s,s.setAttribute("data-teleport-template",!0),g.setAttribute("data-teleport-target",!0),s._x_forwardEvents&&s._x_forwardEvents.forEach(y=>{g.addEventListener(y,A=>{A.stopPropagation(),s.dispatchEvent(new A.constructor(A.type,A))})}),Gi(g,{},s);let S=(y,A,M)=>{M.includes("prepend")?A.parentNode.insertBefore(y,A):M.includes("append")?A.parentNode.insertBefore(y,A.nextSibling):A.appendChild(y)};Ne(()=>{S(g,f,i),Tt(g),g._x_ignore=!0}),s._x_teleportPutBack=()=>{let y=rn(l);Ne(()=>{S(s._x_teleport,y,i)})},d(()=>g.remove())});var su=document.createElement("div");function rn(s){let i=oi(()=>document.querySelector(s),()=>su)();return i||nt(`Cannot find x-teleport element for selector: "${s}"`),i}var tl=()=>{};tl.inline=(s,{modifiers:i},{cleanup:l})=>{i.includes("self")?s._x_ignoreSelf=!0:s._x_ignore=!0,l(()=>{i.includes("self")?delete s._x_ignoreSelf:delete s._x_ignore})};Ye("ignore",tl);Ye("effect",oi((s,{expression:i},{effect:l})=>{l(qe(s,i))}));function _s(s,i,l,d){let f=s,g=A=>d(A),S={},y=(A,M)=>T=>M(A,T);if(l.includes("dot")&&(i=ru(i)),l.includes("camel")&&(i=nu(i)),l.includes("passive")&&(S.passive=!0),l.includes("capture")&&(S.capture=!0),l.includes("window")&&(f=window),l.includes("document")&&(f=document),l.includes("debounce")){let A=l[l.indexOf("debounce")+1]||"invalid-wait",M=Ia(A.split("ms")[0])?Number(A.split("ms")[0]):250;g=Oo(g,M)}if(l.includes("throttle")){let A=l[l.indexOf("throttle")+1]||"invalid-wait",M=Ia(A.split("ms")[0])?Number(A.split("ms")[0]):250;g=Do(g,M)}return l.includes("prevent")&&(g=y(g,(A,M)=>{M.preventDefault(),A(M)})),l.includes("stop")&&(g=y(g,(A,M)=>{M.stopPropagation(),A(M)})),l.includes("once")&&(g=y(g,(A,M)=>{A(M),f.removeEventListener(i,g,S)})),(l.includes("away")||l.includes("outside"))&&(f=document,g=y(g,(A,M)=>{s.contains(M.target)||M.target.isConnected!==!1&&(s.offsetWidth<1&&s.offsetHeight<1||s._x_isShown!==!1&&A(M))})),l.includes("self")&&(g=y(g,(A,M)=>{M.target===s&&A(M)})),g=y(g,(A,M)=>{lu(i)&&cu(M,l)||A(M)}),f.addEventListener(i,g,S),()=>{f.removeEventListener(i,g,S)}}function ru(s){return s.replace(/-/g,".")}function nu(s){return s.toLowerCase().replace(/-(\w)/g,(i,l)=>l.toUpperCase())}function Ia(s){return!Array.isArray(s)&&!isNaN(s)}function ou(s){return[" ","_"].includes(s)?s:s.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function lu(s){return["keydown","keyup"].includes(s)}function cu(s,i){let l=i.filter(g=>!["window","document","prevent","stop","once","capture"].includes(g));if(l.includes("debounce")){let g=l.indexOf("debounce");l.splice(g,Ia((l[g+1]||"invalid-wait").split("ms")[0])?2:1)}if(l.includes("throttle")){let g=l.indexOf("throttle");l.splice(g,Ia((l[g+1]||"invalid-wait").split("ms")[0])?2:1)}if(l.length===0||l.length===1&&nn(s.key).includes(l[0]))return!1;const f=["ctrl","shift","alt","meta","cmd","super"].filter(g=>l.includes(g));return l=l.filter(g=>!f.includes(g)),!(f.length>0&&f.filter(S=>((S==="cmd"||S==="super")&&(S="meta"),s[`${S}Key`])).length===f.length&&nn(s.key).includes(l[0]))}function nn(s){if(!s)return[];s=ou(s);let i={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return i[s]=s,Object.keys(i).map(l=>{if(i[l]===s)return l}).filter(l=>l)}Ye("model",(s,{modifiers:i,expression:l},{effect:d,cleanup:f})=>{let g=s;i.includes("parent")&&(g=s.parentNode);let S=qe(g,l),y;typeof l=="string"?y=qe(g,`${l} = __placeholder`):typeof l=="function"&&typeof l()=="string"?y=qe(g,`${l()} = __placeholder`):y=()=>{};let A=()=>{let H;return S(Y=>H=Y),ln(H)?H.get():H},M=H=>{let Y;S(G=>Y=G),ln(Y)?Y.set(H):y(()=>{},{scope:{__placeholder:H}})};typeof l=="string"&&s.type==="radio"&&Ne(()=>{s.hasAttribute("name")||s.setAttribute("name",l)});var T=s.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(s.type)||i.includes("lazy")?"change":"input";let _=Yt?()=>{}:_s(s,T,i,H=>{M(on(s,i,H,A()))});if(i.includes("fill")&&([void 0,null,""].includes(A())||s.type==="checkbox"&&Array.isArray(A()))&&M(on(s,i,{target:s},A())),s._x_removeModelListeners||(s._x_removeModelListeners={}),s._x_removeModelListeners.default=_,f(()=>s._x_removeModelListeners.default()),s.form){let H=_s(s.form,"reset",[],Y=>{pr(()=>s._x_model&&s._x_model.set(s.value))});f(()=>H())}s._x_model={get(){return A()},set(H){M(H)}},s._x_forceModelUpdate=H=>{H===void 0&&typeof l=="string"&&l.match(/\./)&&(H=""),window.fromModel=!0,Ne(()=>Mo(s,"value",H)),delete window.fromModel},d(()=>{let H=A();i.includes("unintrusive")&&document.activeElement.isSameNode(s)||s._x_forceModelUpdate(H)})});function on(s,i,l,d){return Ne(()=>{if(l instanceof CustomEvent&&l.detail!==void 0)return l.detail!==null&&l.detail!==void 0?l.detail:l.target.value;if(s.type==="checkbox")if(Array.isArray(d)){let f=null;return i.includes("number")?f=Qa(l.target.value):i.includes("boolean")?f=ha(l.target.value):f=l.target.value,l.target.checked?d.concat([f]):d.filter(g=>!du(g,f))}else return l.target.checked;else{if(s.tagName.toLowerCase()==="select"&&s.multiple)return i.includes("number")?Array.from(l.target.selectedOptions).map(f=>{let g=f.value||f.text;return Qa(g)}):i.includes("boolean")?Array.from(l.target.selectedOptions).map(f=>{let g=f.value||f.text;return ha(g)}):Array.from(l.target.selectedOptions).map(f=>f.value||f.text);{let f;return s.type==="radio"?l.target.checked?f=l.target.value:f=d:f=l.target.value,i.includes("number")?Qa(f):i.includes("boolean")?ha(f):i.includes("trim")?f.trim():f}}})}function Qa(s){let i=s?parseFloat(s):null;return hu(i)?i:s}function du(s,i){return s==i}function hu(s){return!Array.isArray(s)&&!isNaN(s)}function ln(s){return s!==null&&typeof s=="object"&&typeof s.get=="function"&&typeof s.set=="function"}Ye("cloak",s=>queueMicrotask(()=>Ne(()=>s.removeAttribute(wi("cloak")))));Ao(()=>`[${wi("init")}]`);Ye("init",oi((s,{expression:i},{evaluate:l})=>typeof i=="string"?!!i.trim()&&l(i,{},!1):l(i,{},!1)));Ye("text",(s,{expression:i},{effect:l,evaluateLater:d})=>{let f=d(i);l(()=>{f(g=>{Ne(()=>{s.textContent=g})})})});Ye("html",(s,{expression:i},{effect:l,evaluateLater:d})=>{let f=d(i);l(()=>{f(g=>{Ne(()=>{s.innerHTML=g,s._x_ignoreSelf=!0,Tt(s),delete s._x_ignoreSelf})})})});hr(fo(":",po(wi("bind:"))));var il=(s,{value:i,modifiers:l,expression:d,original:f},{effect:g,cleanup:S})=>{if(!i){let A={};ph(A),qe(s,d)(T=>{Ro(s,T,f)},{scope:A});return}if(i==="key")return uu(s,d);if(s._x_inlineBindings&&s._x_inlineBindings[i]&&s._x_inlineBindings[i].extract)return;let y=qe(s,d);g(()=>y(A=>{A===void 0&&typeof d=="string"&&d.match(/\./)&&(A=""),Ne(()=>Mo(s,i,A,l))})),S(()=>{s._x_undoAddedClasses&&s._x_undoAddedClasses(),s._x_undoAddedStyles&&s._x_undoAddedStyles()})};il.inline=(s,{value:i,modifiers:l,expression:d})=>{i&&(s._x_inlineBindings||(s._x_inlineBindings={}),s._x_inlineBindings[i]={expression:d,extract:!1})};Ye("bind",il);function uu(s,i){s._x_keyExpression=i}So(()=>`[${wi("data")}]`);Ye("data",(s,{expression:i},{cleanup:l})=>{if(fu(s))return;i=i===""?"{}":i;let d={};xs(d,s);let f={};mh(f,d);let g=ei(s,i,{scope:f});(g===void 0||g===!0)&&(g={}),xs(g,s);let S=bi(g);ao(S);let y=Gi(s,S);S.init&&ei(s,S.init),l(()=>{S.destroy&&ei(s,S.destroy),y()})});Ya((s,i)=>{s._x_dataStack&&(i._x_dataStack=s._x_dataStack,i.setAttribute("data-has-alpine-state",!0))});function fu(s){return Yt?Cs?!0:s.hasAttribute("data-has-alpine-state"):!1}Ye("show",(s,{modifiers:i,expression:l},{effect:d})=>{let f=qe(s,l);s._x_doHide||(s._x_doHide=()=>{Ne(()=>{s.style.setProperty("display","none",i.includes("important")?"important":void 0)})}),s._x_doShow||(s._x_doShow=()=>{Ne(()=>{s.style.length===1&&s.style.display==="none"?s.removeAttribute("style"):s.style.removeProperty("display")})});let g=()=>{s._x_doHide(),s._x_isShown=!1},S=()=>{s._x_doShow(),s._x_isShown=!0},y=()=>setTimeout(S),A=As(_=>_?S():g(),_=>{typeof s._x_toggleAndCascadeWithTransitions=="function"?s._x_toggleAndCascadeWithTransitions(s,_,S,g):_?y():g()}),M,T=!0;d(()=>f(_=>{!T&&_===M||(i.includes("immediate")&&(_?y():g()),A(_),M=_,T=!1)}))});Ye("for",(s,{expression:i},{effect:l,cleanup:d})=>{let f=gu(i),g=qe(s,f.items),S=qe(s,s._x_keyExpression||"index");s._x_prevKeys=[],s._x_lookup={},l(()=>pu(s,f,g,S)),d(()=>{Object.values(s._x_lookup).forEach(y=>y.remove()),delete s._x_prevKeys,delete s._x_lookup})});function pu(s,i,l,d){let f=S=>typeof S=="object"&&!Array.isArray(S),g=s;l(S=>{mu(S)&&S>=0&&(S=Array.from(Array(S).keys(),F=>F+1)),S===void 0&&(S=[]);let y=s._x_lookup,A=s._x_prevKeys,M=[],T=[];if(f(S))S=Object.entries(S).map(([F,R])=>{let P=cn(i,R,F,S);d(B=>{T.includes(B)&&nt("Duplicate key on x-for",s),T.push(B)},{scope:{index:F,...P}}),M.push(P)});else for(let F=0;F<S.length;F++){let R=cn(i,S[F],F,S);d(P=>{T.includes(P)&&nt("Duplicate key on x-for",s),T.push(P)},{scope:{index:F,...R}}),M.push(R)}let _=[],H=[],Y=[],G=[];for(let F=0;F<A.length;F++){let R=A[F];T.indexOf(R)===-1&&Y.push(R)}A=A.filter(F=>!Y.includes(F));let W="template";for(let F=0;F<T.length;F++){let R=T[F],P=A.indexOf(R);if(P===-1)A.splice(F,0,R),_.push([W,F]);else if(P!==F){let B=A.splice(F,1)[0],q=A.splice(P-1,1)[0];A.splice(F,0,q),A.splice(P,0,B),H.push([B,q])}else G.push(R);W=R}for(let F=0;F<Y.length;F++){let R=Y[F];y[R]._x_effects&&y[R]._x_effects.forEach(jn),y[R].remove(),y[R]=null,delete y[R]}for(let F=0;F<H.length;F++){let[R,P]=H[F],B=y[R],q=y[P],j=document.createElement("div");Ne(()=>{q||nt('x-for ":key" is undefined or invalid',g,P,y),q.after(j),B.after(q),q._x_currentIfEl&&q.after(q._x_currentIfEl),j.before(B),B._x_currentIfEl&&B.after(B._x_currentIfEl),j.remove()}),q._x_refreshXForScope(M[T.indexOf(P)])}for(let F=0;F<_.length;F++){let[R,P]=_[F],B=R==="template"?g:y[R];B._x_currentIfEl&&(B=B._x_currentIfEl);let q=M[P],j=T[P],U=document.importNode(g.content,!0).firstElementChild,le=bi(q);Gi(U,le,g),U._x_refreshXForScope=J=>{Object.entries(J).forEach(([K,ee])=>{le[K]=ee})},Ne(()=>{B.after(U),oi(()=>Tt(U))()}),typeof j=="object"&&nt("x-for key cannot be an object, it must be a string or an integer",g),y[j]=U}for(let F=0;F<G.length;F++)y[G[F]]._x_refreshXForScope(M[T.indexOf(G[F])]);g._x_prevKeys=T})}function gu(s){let i=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,l=/^\s*\(|\)\s*$/g,d=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,f=s.match(d);if(!f)return;let g={};g.items=f[2].trim();let S=f[1].replace(l,"").trim(),y=S.match(i);return y?(g.item=S.replace(i,"").trim(),g.index=y[1].trim(),y[2]&&(g.collection=y[2].trim())):g.item=S,g}function cn(s,i,l,d){let f={};return/^\[.*\]$/.test(s.item)&&Array.isArray(i)?s.item.replace("[","").replace("]","").split(",").map(S=>S.trim()).forEach((S,y)=>{f[S]=i[y]}):/^\{.*\}$/.test(s.item)&&!Array.isArray(i)&&typeof i=="object"?s.item.replace("{","").replace("}","").split(",").map(S=>S.trim()).forEach(S=>{f[S]=i[S]}):f[s.item]=i,s.index&&(f[s.index]=l),s.collection&&(f[s.collection]=d),f}function mu(s){return!Array.isArray(s)&&!isNaN(s)}function al(){}al.inline=(s,{expression:i},{cleanup:l})=>{let d=Xa(s);d._x_refs||(d._x_refs={}),d._x_refs[i]=s,l(()=>delete d._x_refs[i])};Ye("ref",al);Ye("if",(s,{expression:i},{effect:l,cleanup:d})=>{s.tagName.toLowerCase()!=="template"&&nt("x-if can only be used on a <template> tag",s);let f=qe(s,i),g=()=>{if(s._x_currentIfEl)return s._x_currentIfEl;let y=s.content.cloneNode(!0).firstElementChild;return Gi(y,{},s),Ne(()=>{s.after(y),oi(()=>Tt(y))()}),s._x_currentIfEl=y,s._x_undoIf=()=>{Rt(y,A=>{A._x_effects&&A._x_effects.forEach(jn)}),y.remove(),delete s._x_currentIfEl},y},S=()=>{s._x_undoIf&&(s._x_undoIf(),delete s._x_undoIf)};l(()=>f(y=>{y?g():S()})),d(()=>s._x_undoIf&&s._x_undoIf())});Ye("id",(s,{expression:i},{evaluate:l})=>{l(i).forEach(f=>iu(s,f))});Ya((s,i)=>{s._x_ids&&(i._x_ids=s._x_ids)});hr(fo("@",po(wi("on:"))));Ye("on",oi((s,{value:i,modifiers:l,expression:d},{cleanup:f})=>{let g=d?qe(s,d):()=>{};s.tagName.toLowerCase()==="template"&&(s._x_forwardEvents||(s._x_forwardEvents=[]),s._x_forwardEvents.includes(i)||s._x_forwardEvents.push(i));let S=_s(s,i,l,y=>{g(()=>{},{scope:{$event:y},params:[y]})});f(()=>S())}));Wa("Collapse","collapse","collapse");Wa("Intersect","intersect","intersect");Wa("Focus","trap","focus");Wa("Mask","mask","mask");function Wa(s,i,l){Ye(i,d=>nt(`You can't use [x-${i}] without first installing the "${s}" plugin here: https://alpinejs.dev/plugins/${l}`,d))}$i.setEvaluator(lo);$i.setReactivityEngine({reactive:Sr,effect:Eh,release:Th,raw:Oe});var vu=$i,Ar=vu;function xu(s){s.directive("collapse",i),i.inline=(l,{modifiers:d})=>{d.includes("min")&&(l._x_doShow=()=>{},l._x_doHide=()=>{})};function i(l,{modifiers:d}){let f=dn(d,"duration",250)/1e3,g=dn(d,"min",0),S=!d.includes("min");l._x_isShown||(l.style.height=`${g}px`),!l._x_isShown&&S&&(l.hidden=!0),l._x_isShown||(l.style.overflow="hidden");let y=(M,T)=>{let _=s.setStyles(M,T);return T.height?()=>{}:_},A={transitionProperty:"height",transitionDuration:`${f}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};l._x_transition={in(M=()=>{},T=()=>{}){S&&(l.hidden=!1),S&&(l.style.display=null);let _=l.getBoundingClientRect().height;l.style.height="auto";let H=l.getBoundingClientRect().height;_===H&&(_=g),s.transition(l,s.setStyles,{during:A,start:{height:_+"px"},end:{height:H+"px"}},()=>l._x_isShown=!0,()=>{l.getBoundingClientRect().height==H&&(l.style.overflow=null)})},out(M=()=>{},T=()=>{}){let _=l.getBoundingClientRect().height;s.transition(l,y,{during:A,start:{height:_+"px"},end:{height:g+"px"}},()=>l.style.overflow="hidden",()=>{l._x_isShown=!1,l.style.height==`${g}px`&&S&&(l.style.display="none",l.hidden=!0)})}}}}function dn(s,i,l){if(s.indexOf(i)===-1)return l;const d=s[s.indexOf(i)+1];if(!d)return l;if(i==="duration"){let f=d.match(/([0-9]+)ms/);if(f)return f[1]}if(i==="min"){let f=d.match(/([0-9]+)px/);if(f)return f[1]}return d}var bu=xu,Ms={exports:{}};/*! * ApexCharts v3.49.0 * (c) 2018-2024 ApexCharts * Released under the MIT License. */(function(s,i){function l(z,e){var t=Object.keys(z);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(z);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(z,r).enumerable})),t.push.apply(t,a)}return t}function d(z){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?l(Object(t),!0).forEach(function(a){A(z,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach(function(a){Object.defineProperty(z,a,Object.getOwnPropertyDescriptor(t,a))})}return z}function f(z){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(z)}function g(z,e){if(!(z instanceof e))throw new TypeError("Cannot call a class as a function")}function S(z,e){for(var t=0;t<e.length;t++){var a=e[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(z,a.key,a)}}function y(z,e,t){return e&&S(z.prototype,e),t&&S(z,t),z}function A(z,e,t){return e in z?Object.defineProperty(z,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):z[e]=t,z}function M(z,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(e&&e.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),e&&_(z,e)}function T(z){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(z)}function _(z,e){return _=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t},_(z,e)}function H(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function Y(z){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var t,a=T(z);if(e){var r=T(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return function(o,n){if(n&&(typeof n=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H(o)}(this,t)}}function G(z,e){return function(t){if(Array.isArray(t))return t}(z)||function(t,a){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var o,n,c=[],h=!0,u=!1;try{for(r=r.call(t);!(h=(o=r.next()).done)&&(c.push(o.value),!a||c.length!==a);h=!0);}catch(m){u=!0,n=m}finally{try{h||r.return==null||r.return()}finally{if(u)throw n}}return c}}(z,e)||F(z,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function W(z){return function(e){if(Array.isArray(e))return R(e)}(z)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(z)||F(z)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F(z,e){if(z){if(typeof z=="string")return R(z,e);var t=Object.prototype.toString.call(z).slice(8,-1);return t==="Object"&&z.constructor&&(t=z.constructor.name),t==="Map"||t==="Set"?Array.from(z):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(z,e):void 0}}function R(z,e){(e==null||e>z.length)&&(e=z.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=z[t];return a}var P=function(){function z(){g(this,z)}return y(z,[{key:"shadeRGBColor",value:function(e,t){var a=t.split(","),r=e<0?0:255,o=e<0?-1*e:e,n=parseInt(a[0].slice(4),10),c=parseInt(a[1],10),h=parseInt(a[2],10);return"rgb("+(Math.round((r-n)*o)+n)+","+(Math.round((r-c)*o)+c)+","+(Math.round((r-h)*o)+h)+")"}},{key:"shadeHexColor",value:function(e,t){var a=parseInt(t.slice(1),16),r=e<0?0:255,o=e<0?-1*e:e,n=a>>16,c=a>>8&255,h=255&a;return"#"+(16777216+65536*(Math.round((r-n)*o)+n)+256*(Math.round((r-c)*o)+c)+(Math.round((r-h)*o)+h)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return z.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&&f(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,a=[];for(t=0;t<e.length;t++)a[t]=e[t];return a}},{key:"extend",value:function(e,t){var a=this;typeof Object.assign!="function"&&(Object.assign=function(o){if(o==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(o),c=1;c<arguments.length;c++){var h=arguments[c];if(h!=null)for(var u in h)h.hasOwnProperty(u)&&(n[u]=h[u])}return n});var r=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(o){a.isObject(t[o])&&o in e?r[o]=a.extend(e[o],t[o]):Object.assign(r,A({},o,t[o]))}),r}},{key:"extendArray",value:function(e,t){var a=[];return e.map(function(r){a.push(z.extend(t,r))}),e=a}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){if(z.is("Array",e)){for(var t=[],a=0;a<e.length;a++)t[a]=this.clone(e[a]);return t}if(z.is("Null",e))return null;if(z.is("Date",e))return e;if(f(e)==="object"){var r={};for(var o in e)e.hasOwnProperty(o)&&(r[o]=this.clone(e[o]));return r}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 e===null?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?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(t.length===1)return t[0];var a="",r=e<0?"-":"",o=t[0].replace(".",""),n=Number(t[1])+1;if(n<0){for(a=r+"0.";n++;)a+="0";return a+o.replace(/^-/,"")}for(n-=o.length;n--;)a+="0";return o+a}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),a=e.clientHeight,r=e.clientWidth;return a-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),a]}},{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,a){return Array.isArray(a)&&(a=a.reduce(function(r,o){return r.length>o.length?r:o})),t.length>a.length?t:a},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var a=e.replace("#","");a=a.match(new RegExp("(.{"+a.length/3+"})","g"));for(var r=0;r<a.length;r++)a[r]=parseInt(a[r].length===1?a[r]+a[r]:a[r],16);return t!==void 0&&a.push(t),"rgba("+a.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))&&e.length===4?"#"+("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 a=[],r=2*Math.PI/t,o=0;o<t;o++){var n={};n.x=e*Math.sin(o*r),n.y=-e*Math.cos(o*r),a.push(n)}return a}},{key:"polarToCartesian",value:function(e,t,a,r){var o=(r-90)*Math.PI/180;return{x:e+a*Math.cos(o),y:t+a*Math.sin(o)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",a=e.toString().slice();return a=a.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,a){if(a>=e.length)for(var r=a-e.length+1;r--;)e.push(void 0);return e.splice(a,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 a in t)t.hasOwnProperty(a)&&(e.style.key=t[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(window.navigator.userAgent.indexOf("MSIE")!==-1||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 a=e.indexOf("rv:");return parseInt(e.substring(a+3,e.indexOf(".",a)),10)}var r=e.indexOf("Edge/");return r>0&&parseInt(e.substring(r+5,e.indexOf(".",r)),10)}},{key:"getGCD",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,r=Math.pow(10,a-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r);t;){var o=t;t=e%t,e=o}return e/r}},{key:"getPrimeFactors",value:function(e){for(var t=[],a=2;e>=2;)e%a==0?(t.push(a),e/=a):a++;return t}},{key:"mod",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,r=Math.pow(10,a-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}}]),z}(),B=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.setEasingFunctions()}return y(z,[{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 a=1.70158;return(t-=1)*t*((a+1)*t+a)+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,a,r){e.attr(t).animate(r).attr(a)}},{key:"animateMarker",value:function(e,t,a,r,o,n){t||(t=0),e.attr({r:t,width:t,height:t}).animate(r,o).attr({r:a,width:a.width,height:a.height}).afterAll(function(){n()})}},{key:"animateCircle",value:function(e,t,a,r,o){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(r,o).attr({r:a.r,cx:a.cx,cy:a.cy})}},{key:"animateRect",value:function(e,t,a,r,o){e.attr(t).animate(r).attr(a).afterAll(function(){return o()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,a=e.realIndex,r=e.j,o=e.fill,n=e.pathFrom,c=e.pathTo,h=e.speed,u=e.delay,m=this.w,v=0;m.config.chart.animations.animateGradually.enabled&&(v=m.config.chart.animations.animateGradually.delay),m.config.chart.animations.dynamicAnimation.enabled&&m.globals.dataChanged&&m.config.chart.type!=="bar"&&(v=0),this.morphSVG(t,a,r,m.config.chart.type!=="line"||m.globals.comboCharts?o:"stroke",n,c,h,u*v)}},{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(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,a,r,o,n,c,h){var u=this,m=this.w;o||(o=e.attr("pathFrom")),n||(n=e.attr("pathTo"));var v=function(x){return m.config.chart.type==="radar"&&(c=1),"M 0 ".concat(m.globals.gridHeight)};(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=v()),(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=v()),m.globals.shouldAnimate||(c=1),e.plot(o).animate(1,m.globals.easing,h).plot(o).animate(c,m.globals.easing,h).plot(n).afterAll(function(){P.isNumber(a)?a===m.globals.series[m.globals.maxValsInArrayIndex].length-2&&m.globals.shouldAnimate&&u.animationCompleted(e):r!=="none"&&m.globals.shouldAnimate&&(!m.globals.comboCharts&&t===m.globals.series.length-1||m.globals.comboCharts)&&u.animationCompleted(e),u.showDelayedElements()})}}]),z}(),q=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"getDefaultFilter",value:function(e,t){var a=this.w;e.unfilter(!0),new window.SVG.Filter().size("120%","180%","-5%","-40%"),a.config.states.normal.filter!=="none"?this.applyFilter(e,t,a.config.states.normal.filter.type,a.config.states.normal.filter.value):a.config.chart.dropShadow.enabled&&this.dropShadow(e,a.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var a=this.w;a.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,a.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,a){var r=this,o=this.w,n=a.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(c){var h=o.config.chart.dropShadow;(h.enabled?r.addShadow(c,t,h):c).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,a){var r=this,o=this.w,n=a.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(c){var h=o.config.chart.dropShadow;(h.enabled?r.addShadow(c,t,h):c).componentTransfer({rgb:{type:"linear",slope:n}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,a){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5;switch(a){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:r});break;case"darken":this.addDarkenFilter(e,t,{intensity:r})}}},{key:"addShadow",value:function(e,t,a){var r,o=this.w,n=a.blur,c=a.top,h=a.left,u=a.color,m=a.opacity;if(((r=o.config.chart.dropShadow.enabledOnSeries)===null||r===void 0?void 0:r.length)>0&&o.config.chart.dropShadow.enabledOnSeries.indexOf(t)===-1)return e;var v=e.flood(Array.isArray(u)?u[t]:u,m).composite(e.sourceAlpha,"in").offset(h,c).gaussianBlur(n).merge(e.source);return e.blend(e.source,v)}},{key:"dropShadow",value:function(e,t){var a,r,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=t.top,c=t.left,h=t.blur,u=t.color,m=t.opacity,v=t.noUserSpaceOnUse,x=this.w;return e.unfilter(!0),P.isIE()&&x.config.chart.type==="radialBar"||((a=x.config.chart.dropShadow.enabledOnSeries)===null||a===void 0?void 0:a.length)>0&&((r=x.config.chart.dropShadow.enabledOnSeries)===null||r===void 0?void 0:r.indexOf(o))===-1||(u=Array.isArray(u)?u[o]:u,e.filter(function(w){var k=null;k=P.isSafari()||P.isFirefox()||P.isIE()?w.flood(u,m).composite(w.sourceAlpha,"in").offset(c,n).gaussianBlur(h):w.flood(u,m).composite(w.sourceAlpha,"in").offset(c,n).gaussianBlur(h).merge(w.source),w.blend(w.source,k)}),v||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,a){var r=this.w;if(r.globals.selectedDataPoints[t]!==void 0&&r.globals.selectedDataPoints[t].indexOf(a)>-1){e.node.setAttribute("selected",!0);var o=r.config.states.active.filter;o!=="none"&&this.applyFilter(e,t,o.type,o.value)}}},{key:"_scaleFilterSize",value:function(e){(function(t){for(var a in t)t.hasOwnProperty(a)&&e.setAttribute(a,t[a])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),z}(),j=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"roundPathCorners",value:function(e,t){function a(N,$,V){var re=$.x-N.x,ie=$.y-N.y,ae=Math.sqrt(re*re+ie*ie);return r(N,$,Math.min(1,V/ae))}function r(N,$,V){return{x:N.x+($.x-N.x)*V,y:N.y+($.y-N.y)*V}}function o(N,$){N.length>2&&(N[N.length-2]=$.x,N[N.length-1]=$.y)}function n(N){return{x:parseFloat(N[N.length-2]),y:parseFloat(N[N.length-1])}}e.indexOf("NaN")>-1&&(e="");var c=e.split(/[,\s]/).reduce(function(N,$){var V=$.match("([a-zA-Z])(.+)");return V?(N.push(V[1]),N.push(V[2])):N.push($),N},[]).reduce(function(N,$){return parseFloat($)==$&&N.length?N[N.length-1].push($):N.push([$]),N},[]),h=[];if(c.length>1){var u=n(c[0]),m=null;c[c.length-1][0]=="Z"&&c[0].length>2&&(m=["L",u.x,u.y],c[c.length-1]=m),h.push(c[0]);for(var v=1;v<c.length;v++){var x=h[h.length-1],w=c[v],k=w==m?c[1]:c[v+1];if(k&&x&&x.length>2&&w[0]=="L"&&k.length>2&&k[0]=="L"){var E,L,I=n(x),D=n(w),p=n(k);E=a(D,I,t),L=a(D,p,t),o(w,E),w.origPoint=D,h.push(w);var b=r(E,D,.5),C=r(D,L,.5),X=["C",b.x,b.y,C.x,C.y,L.x,L.y];X.origPoint=D,h.push(X)}else h.push(w)}if(m){var O=n(h[h.length-1]);h.push(["Z"]),o(h[0],O)}}else h=c;return h.reduce(function(N,$){return N+$.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,a,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:a,y2:r,stroke:o,"stroke-dasharray":n,"stroke-width":c,"stroke-linecap":h})}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,m=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,v=this.w.globals.dom.Paper.rect();return v.attr({x:e,y:t,width:a>0?a:0,height:r>0?r:0,rx:o,ry:o,opacity:c,"stroke-width":h!==null?h:0,stroke:u!==null?u:"none","stroke-dasharray":m}),v.node.setAttribute("fill",n),v}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":a})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e<0&&(e=0);var a=this.w.globals.dom.Paper.circle(2*e);return t!==null&&a.attr(t),a}},{key:"drawPath",value:function(e){var t=e.d,a=t===void 0?"":t,r=e.stroke,o=r===void 0?"#a8a8a8":r,n=e.strokeWidth,c=n===void 0?1:n,h=e.fill,u=e.fillOpacity,m=u===void 0?1:u,v=e.strokeOpacity,x=v===void 0?1:v,w=e.classes,k=e.strokeLinecap,E=k===void 0?null:k,L=e.strokeDashArray,I=L===void 0?0:L,D=this.w;return E===null&&(E=D.config.stroke.lineCap),(a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a="M 0 ".concat(D.globals.gridHeight)),D.globals.dom.Paper.path(a).attr({fill:h,"fill-opacity":m,stroke:o,"stroke-opacity":x,"stroke-linecap":E,"stroke-width":c,"stroke-dasharray":I,class:w})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w.globals.dom.Paper.group();return e!==null&&t.attr(e),t}},{key:"move",value:function(e,t){var a=["M",e,t].join(" ");return a}},{key:"line",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=null;return a===null?r=[" L",e,t].join(" "):a==="H"?r=[" H",e].join(" "):a==="V"&&(r=[" V",t].join(" ")),r}},{key:"curve",value:function(e,t,a,r,o,n){var c=["C",e,t,a,r,o,n].join(" ");return c}},{key:"quadraticCurve",value:function(e,t,a,r){return["Q",e,t,a,r].join(" ")}},{key:"arc",value:function(e,t,a,r,o,n,c){var h="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(h="a");var u=[h,e,t,a,r,o,n,c].join(" ");return u}},{key:"renderPaths",value:function(e){var t,a=e.j,r=e.realIndex,o=e.pathFrom,n=e.pathTo,c=e.stroke,h=e.strokeWidth,u=e.strokeLinecap,m=e.fill,v=e.animationDelay,x=e.initialSpeed,w=e.dataChangeSpeed,k=e.className,E=e.shouldClipToGrid,L=E===void 0||E,I=e.bindEventsOnPaths,D=I===void 0||I,p=e.drawShadow,b=p===void 0||p,C=this.w,X=new q(this.ctx),O=new B(this.ctx),N=this.w.config.chart.animations.enabled,$=N&&this.w.config.chart.animations.dynamicAnimation.enabled,V=!!(N&&!C.globals.resized||$&&C.globals.dataChanged&&C.globals.shouldAnimate);V?t=o:(t=n,C.globals.animationEnded=!0);var re=C.config.stroke.dashArray,ie=0;ie=Array.isArray(re)?re[r]:C.config.stroke.dashArray;var ae=this.drawPath({d:t,stroke:c,strokeWidth:h,fill:m,fillOpacity:1,classes:k,strokeLinecap:u,strokeDashArray:ie});if(ae.attr("index",r),L&&ae.attr({"clip-path":"url(#gridRectMask".concat(C.globals.cuid,")")}),C.config.states.normal.filter.type!=="none")X.getDefaultFilter(ae,r);else if(C.config.chart.dropShadow.enabled&&b){var ce=C.config.chart.dropShadow;X.dropShadow(ae,ce,r)}D&&(ae.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,ae)),ae.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,ae)),ae.node.addEventListener("mousedown",this.pathMouseDown.bind(this,ae))),ae.attr({pathTo:n,pathFrom:o});var me={el:ae,j:a,realIndex:r,pathFrom:o,pathTo:n,fill:m,strokeWidth:h,delay:v};return!N||C.globals.resized||C.globals.dataChanged?!C.globals.resized&&C.globals.dataChanged||O.showDelayedElements():O.animatePathsGradually(d(d({},me),{},{speed:x})),C.globals.dataChanged&&$&&V&&O.animatePathsGradually(d(d({},me),{},{speed:w})),ae}},{key:"drawPattern",value:function(e,t,a){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,a,function(n){e==="horizontalLines"?n.line(0,0,a,0).stroke({color:r,width:o+1}):e==="verticalLines"?n.line(0,0,0,t).stroke({color:r,width:o+1}):e==="slantedLines"?n.line(0,0,t,a).stroke({color:r,width:o}):e==="squares"?n.rect(t,a).fill("none").stroke({color:r,width:o}):e==="circles"&&n.circle(t).fill("none").stroke({color:r,width:o})})}},{key:"drawGradient",value:function(e,t,a,r,o){var n,c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,m=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,v=this.w;t.length<9&&t.indexOf("#")===0&&(t=P.hexToRgba(t,r)),a.length<9&&a.indexOf("#")===0&&(a=P.hexToRgba(a,o));var x=0,w=1,k=1,E=null;h!==null&&(x=h[0]!==void 0?h[0]/100:0,w=h[1]!==void 0?h[1]/100:1,k=h[2]!==void 0?h[2]/100:1,E=h[3]!==void 0?h[3]/100:null);var L=!(v.config.chart.type!=="donut"&&v.config.chart.type!=="pie"&&v.config.chart.type!=="polarArea"&&v.config.chart.type!=="bubble");if(n=u===null||u.length===0?v.globals.dom.Paper.gradient(L?"radial":"linear",function(p){p.at(x,t,r),p.at(w,a,o),p.at(k,a,o),E!==null&&p.at(E,t,r)}):v.globals.dom.Paper.gradient(L?"radial":"linear",function(p){(Array.isArray(u[m])?u[m]:u).forEach(function(b){p.at(b.offset/100,b.color,b.opacity)})}),L){var I=v.globals.gridWidth/2,D=v.globals.gridHeight/2;v.config.chart.type!=="bubble"?n.attr({gradientUnits:"userSpaceOnUse",cx:I,cy:D,r:c}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?n.from(0,0).to(0,1):e==="diagonal"?n.from(0,0).to(1,1):e==="horizontal"?n.from(0,1).to(1,1):e==="diagonal2"&&n.from(1,0).to(0,1);return n}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,a=e.maxWidth,r=e.fontSize,o=e.fontFamily,n=this.getTextRects(t,r,o),c=n.width/t.length,h=Math.floor(a/c);return a<n.width?t.slice(0,h-3)+"...":t}},{key:"drawText",value:function(e){var t=this,a=e.x,r=e.y,o=e.text,n=e.textAnchor,c=e.fontSize,h=e.fontFamily,u=e.fontWeight,m=e.foreColor,v=e.opacity,x=e.maxWidth,w=e.cssClass,k=w===void 0?"":w,E=e.isPlainText,L=E===void 0||E,I=e.dominantBaseline,D=I===void 0?"auto":I,p=this.w;o===void 0&&(o="");var b=o;n||(n="start"),m&&m.length||(m=p.config.chart.foreColor),h=h||p.config.chart.fontFamily,u=u||"regular";var C,X={maxWidth:x,fontSize:c=c||"11px",fontFamily:h};return Array.isArray(o)?C=p.globals.dom.Paper.text(function(O){for(var N=0;N<o.length;N++)b=o[N],x&&(b=t.getTextBasedOnMaxWidth(d({text:o[N]},X))),N===0?O.tspan(b):O.tspan(b).newLine()}):(x&&(b=this.getTextBasedOnMaxWidth(d({text:o},X))),C=L?p.globals.dom.Paper.plain(o):p.globals.dom.Paper.text(function(O){return O.tspan(b)})),C.attr({x:a,y:r,"text-anchor":n,"dominant-baseline":D,"font-size":c,"font-family":h,"font-weight":u,fill:m,class:"apexcharts-text "+k}),C.node.style.fontFamily=h,C.node.style.opacity=v,C}},{key:"createGroupWithAttributes",value:function(e,t,a,r){var o=this.group();return a.forEach(function(n){return o.add(n)}),o.attr({class:r.class?r.class:"",cy:t,cx:e}),o}},{key:"drawPlus",value:function(e,t,a,r){var o=a/2,n=this.drawLine(e,t-o,e,t+o,r.pointStrokeColor,r.pointStrokeDashArray,r.pointStrokeWidth,r.pointStrokeLineCap),c=this.drawLine(e-o,t,e+o,t,r.pointStrokeColor,r.pointStrokeDashArray,r.pointStrokeWidth,r.pointStrokeLineCap);return this.createGroupWithAttributes(e,t,[n,c],r)}},{key:"drawX",value:function(e,t,a,r){var o=a/2,n=this.drawLine(e-o,t-o,e+o,t+o,r.pointStrokeColor,r.pointStrokeDashArray,r.pointStrokeWidth,r.pointStrokeLineCap),c=this.drawLine(e-o,t+o,e+o,t-o,r.pointStrokeColor,r.pointStrokeDashArray,r.pointStrokeWidth,r.pointStrokeLineCap);return this.createGroupWithAttributes(e,t,[n,c],r)}},{key:"drawMarker",value:function(e,t,a){e=e||0;var r=a.pSize||0,o=null;if((a==null?void 0:a.shape)==="X"||(a==null?void 0:a.shape)==="x")o=this.drawX(e,t,r,a);else if((a==null?void 0:a.shape)==="plus"||(a==null?void 0:a.shape)==="+")o=this.drawPlus(e,t,r,a);else if(a.shape==="square"||a.shape==="rect"){var n=a.pRadius===void 0?r/2:a.pRadius;t!==null&&r||(r=0,n=0);var c=1.2*r+n,h=this.drawRect(c,c,c,c,n);h.attr({x:e-c/2,y:t-c/2,cx:e,cy:t,class:a.class?a.class:"",fill:a.pointFillColor,"fill-opacity":a.pointFillOpacity?a.pointFillOpacity:1,stroke:a.pointStrokeColor,"stroke-width":a.pointStrokeWidth?a.pointStrokeWidth:0,"stroke-opacity":a.pointStrokeOpacity?a.pointStrokeOpacity:1}),o=h}else a.shape!=="circle"&&a.shape||(P.isNumber(t)||(r=0,t=0),o=this.drawCircle(r,{cx:e,cy:t,class:a.class?a.class:"",stroke:a.pointStrokeColor,fill:a.pointFillColor,"fill-opacity":a.pointFillOpacity?a.pointFillOpacity:1,"stroke-width":a.pointStrokeWidth?a.pointStrokeWidth:0,"stroke-opacity":a.pointStrokeOpacity?a.pointStrokeOpacity:1}));return o}},{key:"pathMouseEnter",value:function(e,t){var a=this.w,r=new q(this.ctx),o=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);if(typeof a.config.chart.events.dataPointMouseEnter=="function"&&a.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:o,dataPointIndex:n,w:a}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:o,dataPointIndex:n,w:a}]),(a.config.states.active.filter.type==="none"||e.node.getAttribute("selected")!=="true")&&a.config.states.hover.filter.type!=="none"&&!a.globals.isTouchDevice){var c=a.config.states.hover.filter;r.applyFilter(e,o,c.type,c.value)}}},{key:"pathMouseLeave",value:function(e,t){var a=this.w,r=new q(this.ctx),o=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10);typeof a.config.chart.events.dataPointMouseLeave=="function"&&a.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:o,dataPointIndex:n,w:a}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:o,dataPointIndex:n,w:a}]),a.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||a.config.states.hover.filter.type!=="none"&&r.getDefaultFilter(e,o)}},{key:"pathMouseDown",value:function(e,t){var a=this.w,r=new q(this.ctx),o=parseInt(e.node.getAttribute("index"),10),n=parseInt(e.node.getAttribute("j"),10),c="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),a.globals.selectedDataPoints[o].indexOf(n)>-1){var h=a.globals.selectedDataPoints[o].indexOf(n);a.globals.selectedDataPoints[o].splice(h,1)}}else{if(!a.config.states.active.allowMultipleDataPointsSelection&&a.globals.selectedDataPoints.length>0){a.globals.selectedDataPoints=[];var u=a.globals.dom.Paper.select(".apexcharts-series path").members,m=a.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,v=function(k){Array.prototype.forEach.call(k,function(E){E.node.setAttribute("selected","false"),r.getDefaultFilter(E,o)})};v(u),v(m)}e.node.setAttribute("selected","true"),c="true",a.globals.selectedDataPoints[o]===void 0&&(a.globals.selectedDataPoints[o]=[]),a.globals.selectedDataPoints[o].push(n)}if(c==="true"){var x=a.config.states.active.filter;if(x!=="none")r.applyFilter(e,o,x.type,x.value);else if(a.config.states.hover.filter!=="none"&&!a.globals.isTouchDevice){var w=a.config.states.hover.filter;r.applyFilter(e,o,w.type,w.value)}}else a.config.states.active.filter.type!=="none"&&(a.config.states.hover.filter.type==="none"||a.globals.isTouchDevice?r.getDefaultFilter(e,o):(w=a.config.states.hover.filter,r.applyFilter(e,o,w.type,w.value)));typeof a.config.chart.events.dataPointSelection=="function"&&a.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:a.globals.selectedDataPoints,seriesIndex:o,dataPointIndex:n,w:a}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:a.globals.selectedDataPoints,seriesIndex:o,dataPointIndex:n,w:a}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&typeof e.getBBox=="function"&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,a,r){var o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w,c=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:a,foreColor:"#fff",opacity:0});r&&c.attr("transform",r),n.globals.dom.Paper.add(c);var h=c.bbox();return o||(h=c.node.getBoundingClientRect()),c.remove(),{width:h.width,height:h.height}}},{key:"placeTextWithEllipsis",value:function(e,t,a){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=a/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=a/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var a in t)t.hasOwnProperty(a)&&e.setAttribute(a,t[a])}}]),z}(),U=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,a=[];if(t.globals.series.length===0)return a;for(var r=0;r<t.globals.series[t.globals.maxValsInArrayIndex].length;r++){for(var o=0,n=0;n<t.globals.series.length;n++)t.globals.series[n][r]!==void 0&&e.indexOf(n)===-1&&(o+=t.globals.series[n][r]);a.push(o)}return a}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(t,a){return t+a},0):this.w.globals.series[e].reduce(function(t,a){return t+a},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,a=[];return t.globals.seriesGroups.forEach(function(r){var o=[];t.config.series.forEach(function(c,h){r.indexOf(t.globals.seriesNames[h])>-1&&o.push(h)});var n=t.globals.series.map(function(c,h){return o.indexOf(h)===-1?h:-1}).filter(function(c){return c!==-1});a.push(e.getStackedSeriesTotals(n))}),a}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[e].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,a,r){return t===r[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,a=e.slice();return t.config.xaxis.convertedCatToNumeric&&(a=e.map(function(r,o){return t.config.xaxis.labels.formatter(r-t.globals.minX+1)})),a}},{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(a){t=Math.max(t,a)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(a){t=Math.max(t,a.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,a){var r=0;if(Array.isArray(t))for(var o=0;o<t.length;o++)r+=t[o];else r+=t;return r})}},{key:"getSeriesTotalsXRange",value:function(e,t){var a=this.w;return a.globals.series.map(function(r,o){for(var n=0,c=0;c<r.length;c++)a.globals.seriesX[o][c]>e&&a.globals.seriesX[o][c]<t&&(n+=r[c]);return n})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,a){var r=[];if(Array.isArray(t))for(var o=0;o<t.length;o++){var n=e.globals.stackedSeriesTotals[o],c=0;n&&(c=100*t[o]/n),r.push(c)}else{var h=100*t/e.globals.seriesTotals.reduce(function(u,m){return u+m},0);r.push(h)}return r})}},{key:"getCalculatedRatios",value:function(){var e,t,a,r=this,o=this.w,n=o.globals,c=[],h=0,u=[],m=.1,v=0;if(n.yRange=[],n.isMultipleYAxis)for(var x=0;x<n.minYArr.length;x++)n.yRange.push(Math.abs(n.minYArr[x]-n.maxYArr[x])),u.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 w=0;w<n.yRange.length;w++)c.push(n.yRange[w]/n.gridHeight);if(t=n.xRange/n.gridWidth,e=n.yRange/n.gridWidth,a=n.xRange/n.gridHeight,(h=n.zRange/n.gridHeight*16)||(h=1),n.minY!==Number.MIN_VALUE&&Math.abs(n.minY)!==0&&(n.hasNegs=!0),o.globals.seriesYAxisReverseMap.length>0){var k=function(L,I){var D=o.config.yaxis[o.globals.seriesYAxisReverseMap[I]],p=L<0?-1:1;return L=Math.abs(L),D.logarithmic&&(L=r.getBaseLog(D.logBase,L)),-p*L/c[I]};if(n.isMultipleYAxis){u=[];for(var E=0;E<c.length;E++)u.push(k(n.minYArr[E],E))}else(u=[]).push(k(n.minY,0)),n.minY!==Number.MIN_VALUE&&Math.abs(n.minY)!==0&&(m=-n.minY/e,v=n.minX/t)}else(u=[]).push(0),m=0,v=0;return{yRatio:c,invertedYRatio:e,zRatio:h,xRatio:t,invertedXRatio:a,baseLineInvertedY:m,baseLineY:u,baseLineX:v}}},{key:"getLogSeries",value:function(e){var t=this,a=this.w;return a.globals.seriesLog=e.map(function(r,o){var n=a.globals.seriesYAxisReverseMap[o];return a.config.yaxis[n]&&a.config.yaxis[n].logarithmic?r.map(function(c){return c===null?null:t.getLogVal(a.config.yaxis[n].logBase,c,o)}):r}),a.globals.invalidLogScale?e:a.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,a){if(t<=0)return 0;var r=this.w,o=r.globals.minYArr[a]===0?-1:this.getBaseLog(e,r.globals.minYArr[a]),n=(r.globals.maxYArr[a]===0?0:this.getBaseLog(e,r.globals.maxYArr[a]))-o;return t<1?t/n:(this.getBaseLog(e,t)-o)/n}},{key:"getLogYRatios",value:function(e){var t=this,a=this.w,r=this.w.globals;return r.yLogRatio=e.slice(),r.logYRange=r.yRange.map(function(o,n){var c=a.globals.seriesYAxisReverseMap[n];if(a.config.yaxis[c]&&t.w.config.yaxis[c].logarithmic){var h,u=-Number.MAX_VALUE,m=Number.MIN_VALUE;return r.seriesLog.forEach(function(v,x){v.forEach(function(w){a.config.yaxis[x]&&a.config.yaxis[x].logarithmic&&(u=Math.max(w,u),m=Math.min(w,m))})}),h=Math.pow(r.yRange[n],Math.abs(m-u)/r.yRange[n]),r.yLogRatio[n]=h/r.gridHeight,h}}),r.invalidLogScale?e.slice():r.yLogRatio}}],[{key:"checkComboSeries",value:function(e,t){var a=!1,r=0,o=0;return t===void 0&&(t="line"),e.length&&e[0].type!==void 0&&e.forEach(function(n){n.type!=="bar"&&n.type!=="column"&&n.type!=="candlestick"&&n.type!=="boxPlot"||r++,n.type!==void 0&&n.type!==t&&o++}),o>0&&(a=!0),{comboBarCount:r,comboCharts:a}}},{key:"extendArrayProps",value:function(e,t,a){var r,o,n,c,h,u;return(r=t)!==null&&r!==void 0&&r.yaxis&&(t=e.extendYAxis(t,a)),(o=t)!==null&&o!==void 0&&o.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(n=t)!==null&&n!==void 0&&(c=n.annotations)!==null&&c!==void 0&&c.xaxis&&(t=e.extendXAxisAnnotations(t)),(h=t)!==null&&h!==void 0&&(u=h.annotations)!==null&&u!==void 0&&u.points&&(t=e.extendPointAnnotations(t))),t}}]),z}(),le=function(){function z(e){g(this,z),this.w=e.w,this.annoCtx=e}return y(z,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=this.w;if(e.label.orientation==="vertical"){var r=t!==null?t:0,o=a.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(o!==null){var n=o.getBoundingClientRect();o.setAttribute("x",parseFloat(o.getAttribute("x"))-n.height+4),e.label.position==="top"?o.setAttribute("y",parseFloat(o.getAttribute("y"))+n.width):o.setAttribute("y",parseFloat(o.getAttribute("y"))-n.width);var c=this.annoCtx.graphics.rotateAroundCenter(o),h=c.x,u=c.y;o.setAttribute("transform","rotate(-90 ".concat(h," ").concat(u,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var a=this.w;if(!e||t.label.text===void 0||t.label.text!==void 0&&!String(t.label.text).trim())return null;var r=a.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),o=e.getBoundingClientRect(),n=t.label.style.padding.left,c=t.label.style.padding.right,h=t.label.style.padding.top,u=t.label.style.padding.bottom;t.label.orientation==="vertical"&&(h=t.label.style.padding.left,u=t.label.style.padding.right,n=t.label.style.padding.top,c=t.label.style.padding.bottom);var m=o.left-r.left-n,v=o.top-r.top-h,x=this.annoCtx.graphics.drawRect(m-a.globals.barPadForNumericAxis,v,o.width+n+c,o.height+h+u,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&x.node.classList.add(t.id),x}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,a=function(r,o,n){var c=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(o,"']"));if(c){var h=c.parentNode,u=e.addBackgroundToAnno(c,r);u&&(h.insertBefore(u.node,c),r.label.mouseEnter&&u.node.addEventListener("mouseenter",r.label.mouseEnter.bind(e,r)),r.label.mouseLeave&&u.node.addEventListener("mouseleave",r.label.mouseLeave.bind(e,r)),r.label.click&&u.node.addEventListener("click",r.label.click.bind(e,r)))}};t.config.annotations.xaxis.map(function(r,o){a(r,o,"xaxis")}),t.config.annotations.yaxis.map(function(r,o){a(r,o,"yaxis")}),t.config.annotations.points.map(function(r,o){a(r,o,"point")})}},{key:"getY1Y2",value:function(e,t){var a,r=e==="y1"?t.y:t.y2,o=!1,n=this.w;if(this.annoCtx.invertAxis){var c=n.globals.labels;n.config.xaxis.convertedCatToNumeric&&(c=n.globals.categoryLabels);var h=c.indexOf(r),u=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(h+1)+")");a=u?parseFloat(u.getAttribute("y")):(n.globals.gridHeight/c.length-1)*(h+1)-n.globals.barHeight,t.seriesIndex!==void 0&&n.globals.barHeight&&(a=a-n.globals.barHeight/2*(n.globals.series.length-1)+n.globals.barHeight*t.seriesIndex)}else{var m,v=n.globals.seriesYAxisMap[t.yAxisIndex][0];n.config.yaxis[t.yAxisIndex].logarithmic?m=(r=new U(this.annoCtx.ctx).getLogVal(n.config.yaxis[t.yAxisIndex].logBase,r,v))/n.globals.yLogRatio[v]:m=(r-n.globals.minYArr[v])/(n.globals.yRange[v]/n.globals.gridHeight),m>n.globals.gridHeight?(m=n.globals.gridHeight,o=!0):m<0&&(m=0,o=!0),a=n.globals.gridHeight-m,!t.marker||t.y!==void 0&&t.y!==null||(a=0),n.config.yaxis[t.yAxisIndex]&&n.config.yaxis[t.yAxisIndex].reversed&&(a=m)}return typeof r=="string"&&r.indexOf("px")>-1&&(a=parseFloat(r)),{yP:a,clipped:o}}},{key:"getX1X2",value:function(e,t){var a,r=e==="x1"?t.x:t.x2,o=this.w,n=this.annoCtx.invertAxis?o.globals.minY:o.globals.minX,c=this.annoCtx.invertAxis?o.globals.maxY:o.globals.maxX,h=this.annoCtx.invertAxis?o.globals.yRange[0]:o.globals.xRange,u=!1;return a=this.annoCtx.inversedReversedAxis?(c-r)/(h/o.globals.gridWidth):(r-n)/(h/o.globals.gridWidth),o.config.xaxis.type!=="category"&&!o.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||o.globals.dataFormatXNumeric||o.config.chart.sparkline.enabled||(a=this.getStringX(r)),typeof r=="string"&&r.indexOf("px")>-1&&(a=parseFloat(r)),r==null&&t.marker&&(a=o.globals.gridWidth),t.seriesIndex!==void 0&&o.globals.barWidth&&!this.annoCtx.invertAxis&&(a=a-o.globals.barWidth/2*(o.globals.series.length-1)+o.globals.barWidth*t.seriesIndex),a>o.globals.gridWidth?(a=o.globals.gridWidth,u=!0):a<0&&(a=0,u=!0),{x:a,clipped:u}}},{key:"getStringX",value:function(e){var t=this.w,a=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.indexOf(e),o=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(r+1)+")");return o&&(a=parseFloat(o.getAttribute("x"))),a}}]),z}(),J=function(){function z(e){g(this,z),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new le(this.annoCtx)}return y(z,[{key:"addXaxisAnnotation",value:function(e,t,a){var r,o=this.w,n=this.helpers.getX1X2("x1",e),c=n.x,h=n.clipped,u=!0,m=e.label.text,v=e.strokeDashArray;if(P.isNumber(c)){if(e.x2===null||e.x2===void 0){if(!h){var x=this.annoCtx.graphics.drawLine(c+e.offsetX,0+e.offsetY,c+e.offsetX,o.globals.gridHeight+e.offsetY,e.borderColor,v,e.borderWidth);t.appendChild(x.node),e.id&&x.node.classList.add(e.id)}}else{var w=this.helpers.getX1X2("x2",e);if(r=w.x,u=w.clipped,!h||!u){if(r<c){var k=c;c=r,r=k}var E=this.annoCtx.graphics.drawRect(c+e.offsetX,0+e.offsetY,r-c,o.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,v);E.node.classList.add("apexcharts-annotation-rect"),E.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),t.appendChild(E.node),e.id&&E.node.classList.add(e.id)}}if(!h||!u){var L=this.annoCtx.graphics.getTextRects(m,parseFloat(e.label.style.fontSize)),I=e.label.position==="top"?4:e.label.position==="center"?o.globals.gridHeight/2+(e.label.orientation==="vertical"?L.width/2:0):o.globals.gridHeight,D=this.annoCtx.graphics.drawText({x:c+e.label.offsetX,y:I+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?L.width/2-12:-L.width/2:0),text:m,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:"")});D.attr({rel:a}),t.appendChild(D.node),this.annoCtx.helpers.setOrientations(e,a)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,a=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(r,o){e.addXaxisAnnotation(r,a.node,o)}),a}}]),z}(),K=function(){function z(e){g(this,z),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 y(z,[{key:"isValidDate",value:function(e){return typeof e!="number"&&!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 a=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return a=this.getTimeStamp(a)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var a=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,o=["\0"].concat(W(a.months)),n=[""].concat(W(a.shortMonths)),c=[""].concat(W(a.days)),h=[""].concat(W(a.shortDays));function u(N,$){var V=N+"";for($=$||2;V.length<$;)V="0"+V;return V}var m=r?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+m)).replace(/(^|[^\\])yy/g,"$1"+m.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+m);var v=(r?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+o[0])).replace(/(^|[^\\])MMM/g,"$1"+n[0])).replace(/(^|[^\\])MM/g,"$1"+u(v))).replace(/(^|[^\\])M/g,"$1"+v);var x=r?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+c[0])).replace(/(^|[^\\])ddd/g,"$1"+h[0])).replace(/(^|[^\\])dd/g,"$1"+u(x))).replace(/(^|[^\\])d/g,"$1"+x);var w=r?e.getUTCHours():e.getHours(),k=w>12?w-12:w===0?12:w;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+u(w))).replace(/(^|[^\\])H/g,"$1"+w)).replace(/(^|[^\\])hh+/g,"$1"+u(k))).replace(/(^|[^\\])h/g,"$1"+k);var E=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+u(E))).replace(/(^|[^\\])m/g,"$1"+E);var L=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+u(L))).replace(/(^|[^\\])s/g,"$1"+L);var I=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+u(I,3)),I=Math.round(I/10),t=t.replace(/(^|[^\\])ff/g,"$1"+u(I)),I=Math.round(I/10);var D=w<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+I)).replace(/(^|[^\\])TT+/g,"$1"+D)).replace(/(^|[^\\])T/g,"$1"+D.charAt(0));var p=D.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+p)).replace(/(^|[^\\])t/g,"$1"+p.charAt(0));var b=-e.getTimezoneOffset(),C=r||!b?"Z":b>0?"+":"-";if(!r){var X=(b=Math.abs(b))%60;C+=u(Math.floor(b/60))+":"+u(X)}t=t.replace(/(^|[^\\])K/g,"$1"+C);var O=(r?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(c[0],"g"),c[O])).replace(new RegExp(h[0],"g"),h[O])).replace(new RegExp(o[0],"g"),o[v])).replace(new RegExp(n[0],"g"),n[v])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,a){var r=this.w;r.config.xaxis.min!==void 0&&(e=r.config.xaxis.min),r.config.xaxis.max!==void 0&&(t=r.config.xaxis.max);var o=this.getDate(e),n=this.getDate(t),c=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" "),h=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(c[6],10),maxMillisecond:parseInt(h[6],10),minSecond:parseInt(c[5],10),maxSecond:parseInt(h[5],10),minMinute:parseInt(c[4],10),maxMinute:parseInt(h[4],10),minHour:parseInt(c[3],10),maxHour:parseInt(h[3],10),minDate:parseInt(c[2],10),maxDate:parseInt(h[2],10),minMonth:parseInt(c[1],10)-1,maxMonth:parseInt(h[1],10)-1,minYear:parseInt(c[0],10),maxYear:parseInt(h[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,a){return this.determineDaysOfMonths(e,t)-a}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,a){var r=this.daysCntOfYear[t]+a;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var a=30;switch(e=P.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(a=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:a=31}return a}}]),z}(),ee=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return y(z,[{key:"xLabelFormat",value:function(e,t,a,r){var o=this.w;if(o.config.xaxis.type==="datetime"&&o.config.xaxis.labels.formatter===void 0&&o.config.tooltip.x.formatter===void 0){var n=new K(this.ctx);return n.formatDate(n.getDate(t),o.config.tooltip.x.format)}return e(t,a,r)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,a){var r=this.w;if(P.isNumber(e))if(r.globals.yValueDecimal!==0)e=e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:r.globals.yValueDecimal);else{var o=e.toFixed(0);e=e==o?o:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(a){return e.defaultGeneralFormatter(a)},t.globals.ttKeyFormatter=function(a){return e.defaultGeneralFormatter(a)},t.globals.ttZFormatter=function(a){return a},t.globals.legendFormatter=function(a){return e.defaultGeneralFormatter(a)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(a){if(P.isNumber(a)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(P.isNumber(t.config.xaxis.decimalsInFloat))return a.toFixed(t.config.xaxis.decimalsInFloat);var r=t.globals.maxX-t.globals.minX;return r>0&&r<100?a.toFixed(1):a.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?a.toFixed(1):a.toFixed(0)}return a},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(a,r){a.labels.formatter!==void 0?t.globals.yLabelFormatters[r]=a.labels.formatter:t.globals.yLabelFormatters[r]=function(o){return t.globals.xyCharts?Array.isArray(o)?o.map(function(n){return e.defaultYFormatter(n,a,r)}):e.defaultYFormatter(o,a,r):o}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(a,r){return a.length>r.length?a:r},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),z}(),ne=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"getLabel",value:function(e,t,a,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",c=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],h=this.w,u=e[r]===void 0?"":e[r],m=u,v=h.globals.xLabelFormatter,x=h.config.xaxis.labels.formatter,w=!1,k=new ee(this.ctx),E=u;c&&(m=k.xLabelFormat(v,u,E,{i:r,dateFormatter:new K(this.ctx).formatDate,w:h}),x!==void 0&&(m=x(u,e[r],{i:r,dateFormatter:new K(this.ctx).formatDate,w:h})));var L,I;t.length>0?(L=t[r].unit,I=null,t.forEach(function(C){C.unit==="month"?I="year":C.unit==="day"?I="month":C.unit==="hour"?I="day":C.unit==="minute"&&(I="hour")}),w=I===L,a=t[r].position,m=t[r].value):h.config.xaxis.type==="datetime"&&x===void 0&&(m=""),m===void 0&&(m=""),m=Array.isArray(m)?m:m.toString();var D=new j(this.ctx),p={};p=h.globals.rotateXLabels&&c?D.getTextRects(m,parseInt(n,10),null,"rotate(".concat(h.config.xaxis.labels.rotate," 0 0)"),!1):D.getTextRects(m,parseInt(n,10));var b=!h.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(m)&&(String(m)==="NaN"||o.indexOf(m)>=0&&b)&&(m=""),{x:a,text:m,textRect:p,isBold:w}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,a){var r=this.w,o=r.config.xaxis.tickAmount;return o==="dataPoints"&&(o=Math.round(r.globals.gridWidth/120)),o>a||e%Math.round(a/(o+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,a,r,o){var n=this.w;if(e===0&&n.globals.skipFirstTimelinelabel&&(t.text=""),e===a-1&&n.globals.skipLastTimelinelabel&&(t.text=""),n.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var c=o[o.length-1];t.x<c.textRect.width/(n.globals.rotateXLabels?Math.abs(n.config.xaxis.labels.rotate)/12:1.01)+c.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var a=this.w;return a.config.yaxis[e]&&a.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some(function(a){return t.collapsedSeriesIndices.indexOf(a)===-1})}},{key:"translateYAxisIndex",value:function(e){var t=this.w,a=t.globals,r=t.config.yaxis;return a.series.length>r.length||r.some(function(o){return Array.isArray(o.seriesName)})?e:a.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,a=t.config.yaxis[e];if(!a.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!a.showForNullSeries){var r=t.globals.seriesYAxisMap[e],o=new U(this.ctx);return r.every(function(n){return o.isSeriesNull(n)})}return!1}},{key:"getYAxisForeColor",value:function(e,t){var a=this.w;return Array.isArray(e)&&a.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,a.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,a,r,o,n,c){var h=this.w,u=new j(this.ctx),m=h.globals.translateY;if(r.show&&t>0){h.config.yaxis[o].opposite===!0&&(e+=r.width);for(var v=t;v>=0;v--){var x=m+t/10+h.config.yaxis[o].labels.offsetY-1;h.globals.isBarHorizontal&&(x=n*v),h.config.chart.type==="heatmap"&&(x+=n/2);var w=u.drawLine(e+a.offsetX-r.width+r.offsetX,x+r.offsetY,e+a.offsetX+r.offsetX,x+r.offsetY,r.color);c.add(w),m+=n}}}}]),z}(),Q=function(){function z(e){g(this,z),this.w=e.w,this.annoCtx=e,this.helpers=new le(this.annoCtx),this.axesUtils=new ne(this.annoCtx)}return y(z,[{key:"addYaxisAnnotation",value:function(e,t,a){var r,o=this.w,n=e.strokeDashArray,c=this.helpers.getY1Y2("y1",e),h=c.yP,u=c.clipped,m=!0,v=!1,x=e.label.text;if(e.y2===null||e.y2===void 0){if(!u){v=!0;var w=this.annoCtx.graphics.drawLine(0+e.offsetX,h+e.offsetY,this._getYAxisAnnotationWidth(e),h+e.offsetY,e.borderColor,n,e.borderWidth);t.appendChild(w.node),e.id&&w.node.classList.add(e.id)}}else{if(r=(c=this.helpers.getY1Y2("y2",e)).yP,m=c.clipped,r>h){var k=h;h=r,r=k}if(!u||!m){v=!0;var E=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),h-r,0,e.fillColor,e.opacity,1,e.borderColor,n);E.node.classList.add("apexcharts-annotation-rect"),E.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),t.appendChild(E.node),e.id&&E.node.classList.add(e.id)}}if(v){var L=e.label.position==="right"?o.globals.gridWidth:e.label.position==="center"?o.globals.gridWidth/2:0,I=this.annoCtx.graphics.drawText({x:L+e.label.offsetX,y:(r??h)+e.label.offsetY-3,text:x,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:"")});I.attr({rel:a}),t.appendChild(I.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(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,a=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach(function(r,o){r.yAxisIndex=e.axesUtils.translateYAxisIndex(r.yAxisIndex),e.axesUtils.isYAxisHidden(r.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(r.yAxisIndex)||e.addYaxisAnnotation(r,a.node,o)}),a}}]),z}(),Z=function(){function z(e){g(this,z),this.w=e.w,this.annoCtx=e,this.helpers=new le(this.annoCtx)}return y(z,[{key:"addPointAnnotation",value:function(e,t,a){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var r=this.helpers.getX1X2("x1",e),o=r.x,n=r.clipped,c=(r=this.helpers.getY1Y2("y1",e)).yP,h=r.clipped;if(P.isNumber(o)&&!h&&!n){var u={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:"")},m=this.annoCtx.graphics.drawMarker(o+e.marker.offsetX,c+e.marker.offsetY,u);t.appendChild(m.node);var v=e.label.text?e.label.text:"",x=this.annoCtx.graphics.drawText({x:o+e.label.offsetX,y:c+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:v,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(x.attr({rel:a}),t.appendChild(x.node),e.customSVG.SVG){var w=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});w.attr({transform:"translate(".concat(o+e.customSVG.offsetX,", ").concat(c+e.customSVG.offsetY,")")}),w.node.innerHTML=e.customSVG.SVG,t.appendChild(w.node)}if(e.image.path){var k=e.image.width?e.image.width:20,E=e.image.height?e.image.height:20;m=this.annoCtx.addImage({x:o+e.image.offsetX-k/2,y:c+e.image.offsetY-E/2,width:k,height:E,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&m.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&m.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&m.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,a=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(r,o){e.addPointAnnotation(r,a.node,o)}),a}}]),z}(),se={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},de=function(){function z(){g(this,z),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,radius:2,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 y(z,[{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:"transparent",locales:[se],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",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,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"}},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,a){return t+a},0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,margin:5,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,a){return t+a},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 e!==null?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:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,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:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),z}(),ge=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.graphics=new j(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new le(this),this.xAxisAnnotations=new J(this),this.yAxisAnnotations=new Q(this),this.pointsAnnotations=new Z(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 y(z,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),a=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),o=e.config.chart.animations.enabled,n=[t,a,r],c=[a.node,t.node,r.node],h=0;h<3;h++)e.globals.dom.elGraphical.add(n[h]),!o||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&c[h].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:c[h],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,a){e.addImage(t,a)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,a){e.addText(t,a)})}},{key:"addXaxisAnnotation",value:function(e,t,a){this.xAxisAnnotations.addXaxisAnnotation(e,t,a)}},{key:"addYaxisAnnotation",value:function(e,t,a){this.yAxisAnnotations.addYaxisAnnotation(e,t,a)}},{key:"addPointAnnotation",value:function(e,t,a){this.pointsAnnotations.addPointAnnotation(e,t,a)}},{key:"addText",value:function(e,t){var a=e.x,r=e.y,o=e.text,n=e.textAnchor,c=e.foreColor,h=e.fontSize,u=e.fontFamily,m=e.fontWeight,v=e.cssClass,x=e.backgroundColor,w=e.borderWidth,k=e.strokeDashArray,E=e.borderRadius,L=e.borderColor,I=e.appendTo,D=I===void 0?".apexcharts-svg":I,p=e.paddingLeft,b=p===void 0?4:p,C=e.paddingRight,X=C===void 0?4:C,O=e.paddingBottom,N=O===void 0?2:O,$=e.paddingTop,V=$===void 0?2:$,re=this.w,ie=this.graphics.drawText({x:a,y:r,text:o,textAnchor:n||"start",fontSize:h||"12px",fontWeight:m||"regular",fontFamily:u||re.config.chart.fontFamily,foreColor:c||re.config.chart.foreColor,cssClass:v}),ae=re.globals.dom.baseEl.querySelector(D);ae&&ae.appendChild(ie.node);var ce=ie.bbox();if(o){var me=this.graphics.drawRect(ce.x-b,ce.y-V,ce.width+b+X,ce.height+N+V,E,x||"transparent",1,w,L,k);ae.insertBefore(me.node,ie.node)}}},{key:"addImage",value:function(e,t){var a=this.w,r=e.path,o=e.x,n=o===void 0?0:o,c=e.y,h=c===void 0?0:c,u=e.width,m=u===void 0?20:u,v=e.height,x=v===void 0?20:v,w=e.appendTo,k=w===void 0?".apexcharts-svg":w,E=a.globals.dom.Paper.image(r);E.size(m,x).move(n,h);var L=a.globals.dom.baseEl.querySelector(k);return L&&L.appendChild(E.node),E}},{key:"addXaxisAnnotationExternal",value:function(e,t,a){return this.addAnnotationExternal({params:e,pushToMemory:t,context:a,type:"xaxis",contextMethod:a.addXaxisAnnotation}),a}},{key:"addYaxisAnnotationExternal",value:function(e,t,a){return this.addAnnotationExternal({params:e,pushToMemory:t,context:a,type:"yaxis",contextMethod:a.addYaxisAnnotation}),a}},{key:"addPointAnnotationExternal",value:function(e,t,a){return this.invertAxis===void 0&&(this.invertAxis=a.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:a,type:"point",contextMethod:a.addPointAnnotation}),a}},{key:"addAnnotationExternal",value:function(e){var t=e.params,a=e.pushToMemory,r=e.context,o=e.type,n=e.contextMethod,c=r,h=c.w,u=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations")),m=u.childNodes.length+1,v=new de,x=Object.assign({},o==="xaxis"?v.xAxisAnnotation:o==="yaxis"?v.yAxisAnnotation:v.pointAnnotation),w=P.extend(x,t);switch(o){case"xaxis":this.addXaxisAnnotation(w,u,m);break;case"yaxis":this.addYaxisAnnotation(w,u,m);break;case"point":this.addPointAnnotation(w,u,m)}var k=h.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations .apexcharts-").concat(o,"-annotation-label[rel='").concat(m,"']")),E=this.helpers.addBackgroundToAnno(k,w);return E&&u.insertBefore(E.node,k),a&&h.globals.memory.methodsToExec.push({context:c,id:w.id?w.id:P.randomId(),method:n,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){var t=e.w,a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map(function(r,o){r.label!=="addText"&&r.label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(o,1)}),a=P.listToArray(a),Array.prototype.forEach.call(a,function(r){for(;r.firstChild;)r.removeChild(r.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var a=e.w,r=a.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(a.globals.memory.methodsToExec.map(function(o,n){o.id===t&&a.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(r,function(o){o.parentElement.removeChild(o)}))}}]),z}(),te=function(z){var e,t=z.isTimeline,a=z.ctx,r=z.seriesIndex,o=z.dataPointIndex,n=z.y1,c=z.y2,h=z.w,u=h.globals.seriesRangeStart[r][o],m=h.globals.seriesRangeEnd[r][o],v=h.globals.labels[o],x=h.config.series[r].name?h.config.series[r].name:"",w=h.globals.ttKeyFormatter,k=h.config.tooltip.y.title.formatter,E={w:h,seriesIndex:r,dataPointIndex:o,start:u,end:m};typeof k=="function"&&(x=k(x,E)),(e=h.config.series[r].data[o])!==null&&e!==void 0&&e.x&&(v=h.config.series[r].data[o].x),t||h.config.xaxis.type==="datetime"&&(v=new ee(a).xLabelFormat(h.globals.ttKeyFormatter,v,v,{i:void 0,dateFormatter:new K(a).formatDate,w:h})),typeof w=="function"&&(v=w(v,E)),Number.isFinite(n)&&Number.isFinite(c)&&(u=n,m=c);var L="",I="",D=h.globals.colors[r];if(h.config.tooltip.x.formatter===void 0)if(h.config.xaxis.type==="datetime"){var p=new K(a);L=p.formatDate(p.getDate(u),h.config.tooltip.x.format),I=p.formatDate(p.getDate(m),h.config.tooltip.x.format)}else L=u,I=m;else L=h.config.tooltip.x.formatter(u),I=h.config.tooltip.x.formatter(m);return{start:u,end:m,startVal:L,endVal:I,ylabel:v,color:D,seriesName:x}},oe=function(z){var e=z.color,t=z.seriesName,a=z.ylabel,r=z.start,o=z.end,n=z.seriesIndex,c=z.dataPointIndex,h=z.ctx.tooltip.tooltipLabels.getFormatters(n);r=h.yLbFormatter(r),o=h.yLbFormatter(o);var u=h.yLbFormatter(z.w.globals.series[n][c]),m=`<span class="value start-value"> `.concat(r,` </span> <span class="separator">-</span> <span class="value end-value"> `).concat(o,` </span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+a+": </span> "+(z.w.globals.comboCharts?z.w.config.series[n].type==="rangeArea"||z.w.config.series[n].type==="rangeBar"?m:"<span>".concat(u,"</span>"):m)+" </div></div>"},ue=function(){function z(e){g(this,z),this.opts=e}return y(z,[{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(),P.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:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),d(d({},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){var a=t.seriesIndex,r=t.dataPointIndex,o=t.w;return e._getBoxTooltip(o,a,r,["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){var a=t.seriesIndex,r=t.dataPointIndex,o=t.w;return e._getBoxTooltip(o,a,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,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){t.ctx;var a=t.seriesIndex,r=t.dataPointIndex,o=t.w,n=function(){var c=o.globals.seriesRangeStart[a][r];return o.globals.seriesRangeEnd[a][r]-c};return o.globals.comboCharts?o.config.series[a].type==="rangeBar"||o.config.series[a].type==="rangeArea"?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?function(t){var a=te(d(d({},t),{},{isTimeline:!0})),r=a.color,o=a.seriesName,n=a.ylabel,c=a.startVal,h=a.endVal;return oe(d(d({},t),{},{color:r,seriesName:o,ylabel:n,start:c,end:h}))}(e):function(t){var a=te(t),r=a.color,o=a.seriesName,n=a.ylabel,c=a.start,h=a.end;return oe(d(d({},t),{},{color:r,seriesName:o,ylabel:n,start:c,end:h}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,a;return(t=e.plotOptions.bar)!==null&&t!==void 0&&t.barHeight||(e.plotOptions.bar.barHeight=2),(a=e.plotOptions.bar)!==null&&a!==void 0&&a.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 function(t){var a=te(t),r=a.color,o=a.seriesName,n=a.ylabel,c=a.start,h=a.end;return oe(d(d({},t),{},{color:r,seriesName:o,ylabel:n,start:c,end:h}))}(e)}}}}},{key:"brush",value:function(e){return P.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(a,r){e.yaxis[r].min=0,e.yaxis[r].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(a){return typeof a=="number"&&a?a.toFixed(0)+"%":a}),e}},{key:"stackedBars",value:function(){var e=this.bar();return d(d({},e),{},{plotOptions:d(d({},e.plotOptions),{},{bar:d(d({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,a){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(n){return P.isNumber(n)?Math.floor(n):n};var r=e.xaxis.labels.formatter,o=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return a&&a.length&&(o=a.map(function(n){return Array.isArray(n)?n:String(n)})),o&&o.length&&(e.xaxis.labels.formatter=function(n){return P.isNumber(n)?r(o[Math.floor(n)-1]):r(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",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(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:3,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,a,r,o){var n=e.globals.seriesCandleO[t][a],c=e.globals.seriesCandleH[t][a],h=e.globals.seriesCandleM[t][a],u=e.globals.seriesCandleL[t][a],m=e.globals.seriesCandleC[t][a];return e.config.series[t].type&&e.config.series[t].type!==o?`<div class="apexcharts-custom-tooltip"> `.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][a],`</strong> </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(r[0],': <span class="value">')+n+"</span></div>"+"<div>".concat(r[1],': <span class="value">')+c+"</span></div>"+(h?"<div>".concat(r[2],': <span class="value">')+h+"</span></div>":"")+"<div>".concat(r[3],': <span class="value">')+u+"</span></div>"+"<div>".concat(r[4],': <span class="value">')+m+"</span></div></div>"}}]),z}(),ye=function(){function z(e){g(this,z),this.opts=e}return y(z,[{key:"init",value:function(e){var t=e.responsiveOverride,a=this.opts,r=new de,o=new ue(a);this.chartType=a.chart.type,a=this.extendYAxis(a),a=this.extendAnnotations(a);var n=r.init(),c={};if(a&&f(a)==="object"){var h,u,m,v,x,w,k,E,L={};L=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(a.chart.type)!==-1?o[a.chart.type]():o.line(),(h=a.plotOptions)!==null&&h!==void 0&&(u=h.bar)!==null&&u!==void 0&&u.isFunnel&&(L=o.funnel()),a.chart.stacked&&a.chart.type==="bar"&&(L=o.stackedBars()),(m=a.chart.brush)!==null&&m!==void 0&&m.enabled&&(L=o.brush(L)),a.chart.stacked&&a.chart.stackType==="100%"&&(a=o.stacked100(a)),(v=a.plotOptions)!==null&&v!==void 0&&(x=v.bar)!==null&&x!==void 0&&x.isDumbbell&&(a=o.dumbbell(a)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(a),a.xaxis=a.xaxis||window.Apex.xaxis||{},t||(a.xaxis.convertedCatToNumeric=!1),((w=(a=this.checkForCatToNumericXAxis(this.chartType,L,a)).chart.sparkline)!==null&&w!==void 0&&w.enabled||(k=window.Apex.chart)!==null&&k!==void 0&&(E=k.sparkline)!==null&&E!==void 0&&E.enabled)&&(L=o.sparkline(L)),c=P.extend(n,L)}var I=P.extend(c,window.Apex);return n=P.extend(I,a),n=this.handleUserInputErrors(n)}},{key:"checkForCatToNumericXAxis",value:function(e,t,a){var r,o,n=new ue(a),c=(e==="bar"||e==="boxPlot")&&((r=a.plotOptions)===null||r===void 0||(o=r.bar)===null||o===void 0?void 0:o.horizontal),h=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",u=a.xaxis.type!=="datetime"&&a.xaxis.type!=="numeric",m=a.xaxis.tickPlacement?a.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return c||h||!u||m==="between"||(a=n.convertCatToNumeric(a)),a}},{key:"extendYAxis",value:function(e,t){var a=new de;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=P.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[P.extend(a.yAxis,e.yaxis)]:e.yaxis=P.extendArray(e.yaxis,a.yAxis);var r=!1;e.yaxis.forEach(function(n){n.logarithmic&&(r=!0)});var o=e.series;return t&&!o&&(o=t.config.series),r&&o.length!==e.yaxis.length&&o.length&&(e.yaxis=o.map(function(n,c){if(n.name||(o[c].name="series-".concat(c+1)),e.yaxis[c])return e.yaxis[c].seriesName=o[c].name,e.yaxis[c];var h=P.extend(a.yAxis,e.yaxis[0]);return h.show=!1,h})),r&&o.length>1&&o.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 e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new de;return e.annotations.yaxis=P.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new de;return e.annotations.xaxis=P.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new de;return e.annotations.points=P.extendArray(e.annotations.points!==void 0?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),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(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),z}(),he=function(){function z(){g(this,z)}return y(z,[{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.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:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&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,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=P.extend({},e),t.initialSeries=P.clone(e.series),t.lastXAxis=P.clone(t.initialConfig.xaxis),t.lastYAxis=P.clone(t.initialConfig.yaxis),t}}]),z}(),pe=function(){function z(e){g(this,z),this.opts=e}return y(z,[{key:"init",value:function(){var e=new ye(this.opts).init({responsiveOverride:!1});return{config:e,globals:new he().init(e)}}}]),z}(),fe=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0}return y(z,[{key:"clippedImgArea",value:function(e){var t=this.w,a=t.config,r=parseInt(t.globals.gridWidth,10),o=parseInt(t.globals.gridHeight,10),n=r>o?r:o,c=e.image,h=0,u=0;e.width===void 0&&e.height===void 0?a.fill.image.width!==void 0&&a.fill.image.height!==void 0?(h=a.fill.image.width+1,u=a.fill.image.height):(h=n+1,u=n):(h=e.width,u=e.height);var m=document.createElementNS(t.globals.SVGNS,"pattern");j.setAttrs(m,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:h+"px",height:u+"px"});var v=document.createElementNS(t.globals.SVGNS,"image");m.appendChild(v),v.setAttributeNS(window.SVG.xlink,"href",c),j.setAttrs(v,{x:0,y:0,preserveAspectRatio:"none",width:h+"px",height:u+"px"}),v.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(m)}},{key:"getSeriesIndex",value:function(e){var t=this.w,a=t.config.chart.type;return(a==="bar"||a==="rangeBar")&&t.config.plotOptions.bar.distributed||a==="heatmap"||a==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var a,r,o,n=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var c=this.getFillColors()[this.seriesIndex];t.globals.seriesColors[this.seriesIndex]!==void 0&&(c=t.globals.seriesColors[this.seriesIndex]),typeof c=="function"&&(c=c({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var h=e.fillType?e.fillType:this.getFillType(this.seriesIndex),u=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity;e.color&&(c=e.color),c||(c="#fff",console.warn("undefined color - ApexCharts"));var m=c;if(c.indexOf("rgb")===-1?c.length<9&&(m=P.hexToRgba(c,u)):c.indexOf("rgba")>-1&&(u=P.getOpacityFromRGBA(c)),e.opacity&&(u=e.opacity),h==="pattern"&&(r=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:r,fillColor:c,fillOpacity:u,defaultColor:m})),h==="gradient"&&(o=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:c,fillOpacity:u,i:this.seriesIndex})),h==="image"){var v=n.fill.image.src,x=e.patternID?e.patternID:"";this.clippedImgArea({opacity:u,image:Array.isArray(v)?e.seriesNumber<v.length?v[e.seriesNumber]:v[0]:v,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(x)}),a="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(x,")")}else a=h==="gradient"?o:h==="pattern"?r:m;return e.solid&&(a=m),a}},{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,a=this.opts,r=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type==="line"?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors):t.chart.type==="line"?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors),a.fillColors!==void 0&&(r=[],Array.isArray(a.fillColors)?r=a.fillColors.slice():r.push(a.fillColors)),r}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,a=e.patternFill,r=e.fillColor,o=e.fillOpacity,n=e.defaultColor,c=this.w.config.fill;t&&(c=t);var h=this.opts,u=new j(this.ctx),m=Array.isArray(c.pattern.strokeWidth)?c.pattern.strokeWidth[this.seriesIndex]:c.pattern.strokeWidth,v=r;return Array.isArray(c.pattern.style)?a=c.pattern.style[h.seriesNumber]!==void 0?u.drawPattern(c.pattern.style[h.seriesNumber],c.pattern.width,c.pattern.height,v,m,o):n:a=u.drawPattern(c.pattern.style,c.pattern.width,c.pattern.height,v,m,o),a}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,a=e.fillOpacity,r=e.fillConfig,o=e.i,n=this.w.config.fill;r&&(n=d(d({},n),r));var c,h=this.opts,u=new j(this.ctx),m=new P,v=n.gradient.type,x=t,w=n.gradient.opacityFrom===void 0?a:Array.isArray(n.gradient.opacityFrom)?n.gradient.opacityFrom[o]:n.gradient.opacityFrom;x.indexOf("rgba")>-1&&(w=P.getOpacityFromRGBA(x));var k=n.gradient.opacityTo===void 0?a:Array.isArray(n.gradient.opacityTo)?n.gradient.opacityTo[o]:n.gradient.opacityTo;if(n.gradient.gradientToColors===void 0||n.gradient.gradientToColors.length===0)c=n.gradient.shade==="dark"?m.shadeColor(-1*parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?P.rgb2hex(t):t):m.shadeColor(parseFloat(n.gradient.shadeIntensity),t.indexOf("rgb")>-1?P.rgb2hex(t):t);else if(n.gradient.gradientToColors[h.seriesNumber]){var E=n.gradient.gradientToColors[h.seriesNumber];c=E,E.indexOf("rgba")>-1&&(k=P.getOpacityFromRGBA(E))}else c=t;if(n.gradient.gradientFrom&&(x=n.gradient.gradientFrom),n.gradient.gradientTo&&(c=n.gradient.gradientTo),n.gradient.inverseColors){var L=x;x=c,c=L}return x.indexOf("rgb")>-1&&(x=P.rgb2hex(x)),c.indexOf("rgb")>-1&&(c=P.rgb2hex(c)),u.drawGradient(v,x,c,w,k,h.size,n.gradient.stops,n.gradient.colorStops,o)}}]),z}(),Ce=function(){function z(e,t){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{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++)e.globals.markers.size[t]===void 0&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(a){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e,t,a,r){var o,n=arguments.length>4&&arguments[4]!==void 0&&arguments[4],c=this.w,h=t,u=e,m=null,v=new j(this.ctx),x=c.config.markers.discrete&&c.config.markers.discrete.length;if((c.globals.markers.size[t]>0||n||x)&&(m=v.group({class:n||x?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(c.globals.cuid,")")),Array.isArray(u.x))for(var w=0;w<u.x.length;w++){var k=a;a===1&&w===0&&(k=0),a===1&&w===1&&(k=1);var E="apexcharts-marker";if(c.config.chart.type!=="line"&&c.config.chart.type!=="area"||c.globals.comboCharts||c.config.tooltip.intersect||(E+=" no-pointer-events"),(Array.isArray(c.config.markers.size)?c.globals.markers.size[t]>0:c.config.markers.size>0)||n||x){P.isNumber(u.y[w])?E+=" w".concat(P.randomId()):E="apexcharts-nullpoint";var L=this.getMarkerConfig({cssClass:E,seriesIndex:t,dataPointIndex:k});c.config.series[h].data[k]&&(c.config.series[h].data[k].fillColor&&(L.pointFillColor=c.config.series[h].data[k].fillColor),c.config.series[h].data[k].strokeColor&&(L.pointStrokeColor=c.config.series[h].data[k].strokeColor)),r&&(L.pSize=r),(u.x[w]<0||u.x[w]>c.globals.gridWidth||u.y[w]<-c.globals.markers.largestSize||u.y[w]>c.globals.gridHeight+c.globals.markers.largestSize)&&(L.pSize=0),(o=v.drawMarker(u.x[w],u.y[w],L)).attr("rel",k),o.attr("j",k),o.attr("index",t),o.node.setAttribute("default-marker-size",L.pSize),new q(this.ctx).setSelectionFilter(o,t,k),this.addEvents(o),m&&m.add(o)}else c.globals.pointsArray[t]===void 0&&(c.globals.pointsArray[t]=[]),c.globals.pointsArray[t].push([u.x[w],u.y[w]])}return m}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,a=e.seriesIndex,r=e.dataPointIndex,o=r===void 0?null:r,n=e.finishRadius,c=n===void 0?null:n,h=this.w,u=this.getMarkerStyle(a),m=h.globals.markers.size[a],v=h.config.markers;return o!==null&&v.discrete.length&&v.discrete.map(function(x){x.seriesIndex===a&&x.dataPointIndex===o&&(u.pointStrokeColor=x.strokeColor,u.pointFillColor=x.fillColor,m=x.size,u.pointShape=x.shape)}),{pSize:c===null?m:c,pRadius:v.radius,width:Array.isArray(v.width)?v.width[a]:v.width,height:Array.isArray(v.height)?v.height[a]:v.height,pointStrokeWidth:Array.isArray(v.strokeWidth)?v.strokeWidth[a]:v.strokeWidth,pointStrokeColor:u.pointStrokeColor,pointFillColor:u.pointFillColor,shape:u.pointShape||(Array.isArray(v.shape)?v.shape[a]:v.shape),class:t,pointStrokeOpacity:Array.isArray(v.strokeOpacity)?v.strokeOpacity[a]:v.strokeOpacity,pointStrokeDashArray:Array.isArray(v.strokeDashArray)?v.strokeDashArray[a]:v.strokeDashArray,pointFillOpacity:Array.isArray(v.fillOpacity)?v.fillOpacity[a]:v.fillOpacity,seriesIndex:a}}},{key:"addEvents",value:function(e){var t=this.w,a=new j(this.ctx);e.node.addEventListener("mouseenter",a.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",a.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",a.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",a.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,a=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(a)?a[e]:a}}}]),z}(),ve=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return y(z,[{key:"draw",value:function(e,t,a){var r=this.w,o=new j(this.ctx),n=a.realIndex,c=a.pointsPos,h=a.zRatio,u=a.elParent,m=o.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(m.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(c.x))for(var v=0;v<c.x.length;v++){var x=t+1,w=!0;t===0&&v===0&&(x=0),t===0&&v===1&&(x=1);var k=0,E=r.globals.markers.size[n];if(h!==1/0){var L=r.config.plotOptions.bubble;E=r.globals.seriesZ[n][x],L.zScaling&&(E/=h),L.minBubbleRadius&&E<L.minBubbleRadius&&(E=L.minBubbleRadius),L.maxBubbleRadius&&E>L.maxBubbleRadius&&(E=L.maxBubbleRadius)}r.config.chart.animations.enabled||(k=E);var I=c.x[v],D=c.y[v];if(k=k||0,D!==null&&r.globals.series[n][x]!==void 0||(w=!1),w){var p=this.drawPoint(I,D,k,E,n,x,t);m.add(p)}u.add(m)}}},{key:"drawPoint",value:function(e,t,a,r,o,n,c){var h=this.w,u=o,m=new B(this.ctx),v=new q(this.ctx),x=new fe(this.ctx),w=new Ce(this.ctx),k=new j(this.ctx),E=w.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:u,dataPointIndex:n,finishRadius:h.config.chart.type==="bubble"||h.globals.comboCharts&&h.config.series[o]&&h.config.series[o].type==="bubble"?r:null});r=E.pSize;var L,I=x.fillPath({seriesNumber:o,dataPointIndex:n,color:E.pointFillColor,patternUnits:"objectBoundingBox",value:h.globals.series[o][c]});if(E.shape==="circle"?L=k.drawCircle(a):E.shape!=="square"&&E.shape!=="rect"||(L=k.drawRect(0,0,E.width-E.pointStrokeWidth/2,E.height-E.pointStrokeWidth/2,E.pRadius)),h.config.series[u].data[n]&&h.config.series[u].data[n].fillColor&&(I=h.config.series[u].data[n].fillColor),L.attr({x:e-E.width/2-E.pointStrokeWidth/2,y:t-E.height/2-E.pointStrokeWidth/2,cx:e,cy:t,fill:I,"fill-opacity":E.pointFillOpacity,stroke:E.pointStrokeColor,r,"stroke-width":E.pointStrokeWidth,"stroke-dasharray":E.pointStrokeDashArray,"stroke-opacity":E.pointStrokeOpacity}),h.config.chart.dropShadow.enabled){var D=h.config.chart.dropShadow;v.dropShadow(L,D,o)}if(!this.initialAnim||h.globals.dataChanged||h.globals.resized)h.globals.animationEnded=!0;else{var p=h.config.chart.animations.speed;m.animateMarker(L,0,E.shape==="circle"?r:{width:E.width,height:E.height},p,h.globals.easing,function(){window.setTimeout(function(){m.animationCompleted(L)},100)})}if(h.globals.dataChanged&&E.shape==="circle")if(this.dynamicAnim){var b,C,X,O,N=h.config.chart.animations.dynamicAnimation.speed;(O=h.globals.previousPaths[o]&&h.globals.previousPaths[o][c])!=null&&(b=O.x,C=O.y,X=O.r!==void 0?O.r:r);for(var $=0;$<h.globals.collapsedSeries.length;$++)h.globals.collapsedSeries[$].index===o&&(N=1,r=0);e===0&&t===0&&(r=0),m.animateCircle(L,{cx:b,cy:C,r:X},{cx:e,cy:t,r},N,h.globals.easing)}else L.attr({r});return L.attr({rel:n,j:n,index:o,"default-marker-size":r}),v.setSelectionFilter(L,o,n),w.addEvents(L),L.node.classList.add("apexcharts-marker"),L}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),z}(),Ae=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"dataLabelsCorrection",value:function(e,t,a,r,o,n,c){var h=this.w,u=!1,m=new j(this.ctx).getTextRects(a,c),v=m.width,x=m.height;t<0&&(t=0),t>h.globals.gridHeight+x&&(t=h.globals.gridHeight+x/2),h.globals.dataLabelsRects[r]===void 0&&(h.globals.dataLabelsRects[r]=[]),h.globals.dataLabelsRects[r].push({x:e,y:t,width:v,height:x});var w=h.globals.dataLabelsRects[r].length-2,k=h.globals.lastDrawnDataLabelsIndexes[r]!==void 0?h.globals.lastDrawnDataLabelsIndexes[r][h.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(h.globals.dataLabelsRects[r][w]!==void 0){var E=h.globals.dataLabelsRects[r][k];(e>E.x+E.width||t>E.y+E.height||t+x<E.y||e+v<E.x)&&(u=!0)}return(o===0||n)&&(u=!0),{x:e,y:t,textRects:m,drawnextLabel:u}}},{key:"drawDataLabel",value:function(e){var t=this,a=e.type,r=e.pos,o=e.i,n=e.j,c=e.isRangeStart,h=e.strokeWidth,u=h===void 0?2:h,m=this.w,v=new j(this.ctx),x=m.config.dataLabels,w=0,k=0,E=n,L=null;if(m.globals.collapsedSeriesIndices.indexOf(o)!==-1||!x.enabled||!Array.isArray(r.x))return L;L=v.group({class:"apexcharts-data-labels"});for(var I=0;I<r.x.length;I++)if(w=r.x[I]+x.offsetX,k=r.y[I]+x.offsetY+u,!isNaN(w)){n===1&&I===0&&(E=0),n===1&&I===1&&(E=1);var D=m.globals.series[o][E];a==="rangeArea"&&(D=c?m.globals.seriesRangeStart[o][E]:m.globals.seriesRangeEnd[o][E]);var p="",b=function(C){return m.config.dataLabels.formatter(C,{ctx:t.ctx,seriesIndex:o,dataPointIndex:E,w:m})};m.config.chart.type==="bubble"?(p=b(D=m.globals.seriesZ[o][E]),k=r.y[I],k=new ve(this.ctx).centerTextInBubble(k,o,E).y):D!==void 0&&(p=b(D)),this.plotDataLabelsText({x:w,y:k,text:p,i:o,j:E,parent:L,offsetCorrection:!0,dataLabelsConfig:m.config.dataLabels})}return L}},{key:"plotDataLabelsText",value:function(e){var t=this.w,a=new j(this.ctx),r=e.x,o=e.y,n=e.i,c=e.j,h=e.text,u=e.textAnchor,m=e.fontSize,v=e.parent,x=e.dataLabelsConfig,w=e.color,k=e.alwaysDrawDataLabel,E=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(n)<0)){var L={x:r,y:o,drawnextLabel:!0,textRects:null};E&&(L=this.dataLabelsCorrection(r,o,h,n,c,k,parseInt(x.style.fontSize,10))),t.globals.zoomed||(r=L.x,o=L.y),L.textRects&&(r<-20-L.textRects.width||r>t.globals.gridWidth+L.textRects.width+30)&&(h="");var I=t.globals.dataLabels.style.colors[n];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(I=t.globals.dataLabels.style.colors[c]),typeof I=="function"&&(I=I({series:t.globals.series,seriesIndex:n,dataPointIndex:c,w:t})),w&&(I=w);var D=x.offsetX,p=x.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(D=0,p=0),L.drawnextLabel){var b=a.drawText({width:100,height:parseInt(x.style.fontSize,10),x:r+D,y:o+p,foreColor:I,textAnchor:u||x.textAnchor,text:h,fontSize:m||x.style.fontSize,fontFamily:x.style.fontFamily,fontWeight:x.style.fontWeight||"normal"});if(b.attr({class:"apexcharts-datalabel",cx:r,cy:o}),x.dropShadow.enabled){var C=x.dropShadow;new q(this.ctx).dropShadow(b,C)}v.add(b),t.globals.lastDrawnDataLabelsIndexes[n]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[n]=[]),t.globals.lastDrawnDataLabelsIndexes[n].push(c)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var a=this.w,r=a.config.dataLabels.background,o=r.padding,n=r.padding/2,c=t.width,h=t.height,u=new j(this.ctx).drawRect(t.x-o,t.y-n/2,c+2*o,h+n,r.borderRadius,a.config.chart.background==="transparent"?"#fff":a.config.chart.background,r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new q(this.ctx).dropShadow(u,r.dropShadow),u}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),a=0;a<t.length;a++){var r=t[a],o=r.getBBox(),n=null;if(o.width&&o.height&&(n=this.addBackgroundToDataLabel(r,o)),n){r.parentNode.insertBefore(n.node,r);var c=r.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?n.animate().attr({fill:c}):n.attr({fill:c}),r.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),a=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),r=0;r<t.length;r++)a&&a.insertBefore(t[r],a.nextSibling)}}]),z}(),Le=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return y(z,[{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(P.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),a=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:a}}},{key:"addCollapsedClassToSeries",value:function(e,t){var a=this.w;function r(o){for(var n=0;n<o.length;n++)o[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}r(a.globals.collapsedSeries),r(a.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&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=this.w,o=P.clone(r.globals.initialSeries);r.globals.previousPaths=[],a?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):o=this.emptyCollapsedSeries(o),r.config.series=o,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(o,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,a=0;a<e.length;a++)t.globals.collapsedSeriesIndices.indexOf(a)>-1&&(e[a].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var a=this.w;t||(t=e.target);var r=a.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if(e.type==="mousemove"){var o=parseInt(t.getAttribute("rel"),10)-1,n=null,c=null,h=null;if(a.globals.axisCharts||a.config.chart.type==="radialBar")if(a.globals.axisCharts){n=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(o,"']")),c=a.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(o,"']"));var u=a.globals.seriesYAxisReverseMap[o];h=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(u,"']"))}else n=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(o+1,"']"));else n=a.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(o+1,"'] path"));for(var m=0;m<r.length;m++)r[m].classList.add(this.legendInactiveClass);n!==null&&(a.globals.axisCharts||n.parentNode.classList.remove(this.legendInactiveClass),n.classList.remove(this.legendInactiveClass),c!==null&&c.classList.remove(this.legendInactiveClass),h!==null&&h.classList.remove(this.legendInactiveClass))}else if(e.type==="mouseout")for(var v=0;v<r.length;v++)r[v].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var a=this,r=this.w,o=r.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),n=function(h){for(var u=0;u<o.length;u++)o[u].classList[h](a.legendInactiveClass)};if(e.type==="mousemove"){var c=parseInt(t.getAttribute("rel"),10)-1;n("add"),function(h){for(var u=0;u<o.length;u++){var m=parseInt(o[u].getAttribute("val"),10);m>=h.from&&m<=h.to&&o[u].classList.remove(a.legendInactiveClass)}}(r.config.plotOptions.heatmap.colorScale.ranges[c])}else e.type==="mouseout"&&n("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=this.w,r=0;if(a.config.series.length>1){for(var o=a.config.series.map(function(c,h){return c.data&&c.data.length>0&&a.globals.collapsedSeriesIndices.indexOf(h)===-1&&(!a.globals.comboCharts||t.length===0||t.length&&t.indexOf(a.config.series[h].type)>-1)?h:-1}),n=e==="asc"?0:o.length-1;e==="asc"?n<o.length:n>=0;e==="asc"?n++:n--)if(o[n]!==-1){r=o[n];break}}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return e.type==="bar"||e.type==="column"?t:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(n,c,h){for(var u=n[c].childNodes,m={type:h,paths:[],realIndex:n[c].getAttribute("data:realIndex")},v=0;v<u.length;v++)if(u[v].hasAttribute("pathTo")){var x=u[v].getAttribute("pathTo");m.paths.push({d:x})}e.globals.previousPaths.push(m)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(n){for(var c,h=(c=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(c,"-series .apexcharts-series"))),u=0;u<h.length;u++)t(h,u,n)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(a.length>0)for(var r=function(n){for(var c=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(n,"'] rect")),h=[],u=function(v){var x=function(k){return c[v].getAttribute(k)},w={x:parseFloat(x("x")),y:parseFloat(x("y")),width:parseFloat(x("width")),height:parseFloat(x("height"))};h.push({rect:w,color:c[v].getAttribute("color")})},m=0;m<c.length;m++)u(m);e.globals.previousPaths.push(h)},o=0;o<a.length;o++)r(o);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(a.length>0)for(var r=0;r<a.length;r++){for(var o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(r,"'] circle")),n=[],c=0;c<o.length;c++)n.push({x:o[c].getAttribute("cx"),y:o[c].getAttribute("cy"),r:o[c].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,a=new j(this.ctx),r=e.globals.svgWidth/2,o=e.globals.svgHeight/2,n="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,t.align==="left"?(r=10,n="start"):t.align==="right"&&(r=e.globals.svgWidth-10,n="end"),t.verticalAlign==="top"?o=50:t.verticalAlign==="bottom"&&(o=e.globals.svgHeight-50),r+=t.offsetX,o=o+parseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==""){var c=a.drawText({x:r,y:o,text:t.text,textAnchor:n,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(c)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,a=0;a<e.length;a++)if(e[a].length===0)for(var r=0;r<e[t.globals.maxValsInArrayIndex].length;r++)e[a].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,a=this.filteredSeriesX(),r=0;r<a.length-1;r++)if(a[r][0]!==a[r+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){var e=this.w.globals.seriesX.map(function(t){return t.length>0?t:[]});return e}}]),z}(),Be=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new U(this.ctx)}return y(z,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new Le(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new Le(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var a=this.w.config,r=this.w.globals,o=a.chart.type==="boxPlot"||a.series[t].type==="boxPlot",n=0;n<e[t].data.length;n++)if(e[t].data[n][1]!==void 0&&(Array.isArray(e[t].data[n][1])&&e[t].data[n][1].length===4&&!o?this.twoDSeries.push(P.parseNumber(e[t].data[n][1][3])):e[t].data[n].length>=5?this.twoDSeries.push(P.parseNumber(e[t].data[n][4])):this.twoDSeries.push(P.parseNumber(e[t].data[n][1])),r.dataFormatXNumeric=!0),a.xaxis.type==="datetime"){var c=new Date(e[t].data[n][0]);c=new Date(c).getTime(),this.twoDSeriesX.push(c)}else this.twoDSeriesX.push(e[t].data[n][0]);for(var h=0;h<e[t].data.length;h++)e[t].data[h][2]!==void 0&&(this.threeDSeries.push(e[t].data[h][2]),r.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var a=this.w.config,r=this.w.globals,o=new K(this.ctx),n=t;r.collapsedSeriesIndices.indexOf(t)>-1&&(n=this.activeSeriesIndex);for(var c=0;c<e[t].data.length;c++)e[t].data[c].y!==void 0&&(Array.isArray(e[t].data[c].y)?this.twoDSeries.push(P.parseNumber(e[t].data[c].y[e[t].data[c].y.length-1])):this.twoDSeries.push(P.parseNumber(e[t].data[c].y))),e[t].data[c].goals!==void 0&&Array.isArray(e[t].data[c].goals)?(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[c].goals)):(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var h=0;h<e[n].data.length;h++){var u=typeof e[n].data[h].x=="string",m=Array.isArray(e[n].data[h].x),v=!m&&!!o.isValidDate(e[n].data[h].x);if(u||v)if(u||a.xaxis.convertedCatToNumeric){var x=r.isBarHorizontal&&r.isRangeData;a.xaxis.type!=="datetime"||x?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[h].x),isNaN(e[n].data[h].x)||this.w.config.xaxis.type==="category"||typeof e[n].data[h].x=="string"||(r.isXNumeric=!0)):this.twoDSeriesX.push(o.parseDate(e[n].data[h].x))}else a.xaxis.type==="datetime"?this.twoDSeriesX.push(o.parseDate(e[n].data[h].x.toString())):(r.dataFormatXNumeric=!0,r.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[n].data[h].x)));else m?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[n].data[h].x)):(r.isXNumeric=!0,r.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[n].data[h].x))}if(e[t].data[0]&&e[t].data[0].z!==void 0){for(var w=0;w<e[t].data.length;w++)this.threeDSeries.push(e[t].data[w].z);r.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var a=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),a.seriesRangeStart.push(r.start===void 0?[]:r.start),a.seriesRangeEnd.push(r.end===void 0?[]:r.end),a.seriesRange.push(r.rangeUniques),a.seriesRange.forEach(function(o,n){o&&o.forEach(function(c,h){c.y.forEach(function(u,m){for(var v=0;v<c.y.length;v++)if(m!==v){var x=u.y1,w=u.y2,k=c.y[v].y1;x<=c.y[v].y2&&k<=w&&(c.overlaps.indexOf(u.rangeName)<0&&c.overlaps.push(u.rangeName),c.overlaps.indexOf(c.y[v].rangeName)<0&&c.overlaps.push(c.y[v].rangeName))}})})}),r}},{key:"handleCandleStickBoxData",value:function(e,t){var a=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleCandleStickBoxDataFormat("xy",e,t)),a.seriesCandleO[t]=r.o,a.seriesCandleH[t]=r.h,a.seriesCandleM[t]=r.m,a.seriesCandleL[t]=r.l,a.seriesCandleC[t]=r.c,r}},{key:"handleRangeDataFormat",value:function(e,t,a){var r=[],o=[],n=t[a].data.filter(function(m,v,x){return v===x.findIndex(function(w){return w.x===m.x})}).map(function(m,v){return{x:m.x,overlaps:[],y:[]}});if(e==="array")for(var c=0;c<t[a].data.length;c++)Array.isArray(t[a].data[c])?(r.push(t[a].data[c][1][0]),o.push(t[a].data[c][1][1])):(r.push(t[a].data[c]),o.push(t[a].data[c]));else if(e==="xy")for(var h=function(m){var v=Array.isArray(t[a].data[m].y),x=P.randomId(),w=t[a].data[m].x,k={y1:v?t[a].data[m].y[0]:t[a].data[m].y,y2:v?t[a].data[m].y[1]:t[a].data[m].y,rangeName:x};t[a].data[m].rangeName=x;var E=n.findIndex(function(L){return L.x===w});n[E].y.push(k),r.push(k.y1),o.push(k.y2)},u=0;u<t[a].data.length;u++)h(u);return{start:r,end:o,rangeUniques:n}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,a){var r=this.w,o=r.config.chart.type==="boxPlot"||r.config.series[a].type==="boxPlot",n=[],c=[],h=[],u=[],m=[];if(e==="array")if(o&&t[a].data[0].length===6||!o&&t[a].data[0].length===5)for(var v=0;v<t[a].data.length;v++)n.push(t[a].data[v][1]),c.push(t[a].data[v][2]),o?(h.push(t[a].data[v][3]),u.push(t[a].data[v][4]),m.push(t[a].data[v][5])):(u.push(t[a].data[v][3]),m.push(t[a].data[v][4]));else for(var x=0;x<t[a].data.length;x++)Array.isArray(t[a].data[x][1])&&(n.push(t[a].data[x][1][0]),c.push(t[a].data[x][1][1]),o?(h.push(t[a].data[x][1][2]),u.push(t[a].data[x][1][3]),m.push(t[a].data[x][1][4])):(u.push(t[a].data[x][1][2]),m.push(t[a].data[x][1][3])));else if(e==="xy")for(var w=0;w<t[a].data.length;w++)Array.isArray(t[a].data[w].y)&&(n.push(t[a].data[w].y[0]),c.push(t[a].data[w].y[1]),o?(h.push(t[a].data[w].y[2]),u.push(t[a].data[w].y[3]),m.push(t[a].data[w].y[4])):(u.push(t[a].data[w].y[2]),m.push(t[a].data[w].y[3])));return{o:n,h:c,m:h,l:u,c:m}}},{key:"parseDataAxisCharts",value:function(e){var t,a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,o=this.w.config,n=this.w.globals,c=new K(r),h=o.labels.length>0?o.labels.slice():o.xaxis.categories.slice();if(n.isRangeBar=o.chart.type==="rangeBar"&&n.isBarHorizontal,n.hasXaxisGroups=o.xaxis.type==="category"&&o.xaxis.group.groups.length>0,n.hasXaxisGroups&&(n.groups=o.xaxis.group.groups),e.forEach(function(k,E){k.name!==void 0?n.seriesNames.push(k.name):n.seriesNames.push("series-"+parseInt(E+1,10))}),n.hasSeriesGroups=(t=e[0])===null||t===void 0?void 0:t.group,n.hasSeriesGroups){var u=[],m=W(new Set(e.map(function(k){return k.group})));e.forEach(function(k,E){var L=m.indexOf(k.group);u[L]||(u[L]=[]),u[L].push(n.seriesNames[E])}),n.seriesGroups=u}for(var v=function(){for(var k=0;k<h.length;k++)if(typeof h[k]=="string"){if(!c.isValidDate(h[k]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");a.twoDSeriesX.push(c.parseDate(h[k]))}else a.twoDSeriesX.push(h[k])},x=0;x<e.length;x++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[x].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(o.chart.type!=="rangeBar"&&o.chart.type!=="rangeArea"&&e[x].type!=="rangeBar"&&e[x].type!=="rangeArea"||(n.isRangeData=!0,o.chart.type!=="rangeBar"&&o.chart.type!=="rangeArea"||this.handleRangeData(e,x)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,x):this.isFormatXY()&&this.handleFormatXY(e,x),o.chart.type!=="candlestick"&&e[x].type!=="candlestick"&&o.chart.type!=="boxPlot"&&e[x].type!=="boxPlot"||this.handleCandleStickBoxData(e,x),n.series.push(this.twoDSeries),n.labels.push(this.twoDSeriesX),n.seriesX.push(this.twoDSeriesX),n.seriesGoals=this.seriesGoals,x!==this.activeSeriesIndex||this.fallbackToCategory||(n.isXNumeric=!0);else{o.xaxis.type==="datetime"?(n.isXNumeric=!0,v(),n.seriesX.push(this.twoDSeriesX)):o.xaxis.type==="numeric"&&(n.isXNumeric=!0,h.length>0&&(this.twoDSeriesX=h,n.seriesX.push(this.twoDSeriesX))),n.labels.push(this.twoDSeriesX);var w=e[x].data.map(function(k){return P.parseNumber(k)});n.series.push(w)}n.seriesZ.push(this.threeDSeries),e[x].color!==void 0?n.seriesColors.push(e[x].color):n.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,a=this.w.config;t.series=e.slice(),t.seriesNames=a.labels.slice();for(var r=0;r<t.series.length;r++)t.seriesNames[r]===void 0&&t.seriesNames.push("series-"+(r+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,a=this.w.globals;t.xaxis.categories.length>0?a.labels=t.xaxis.categories:t.labels.length>0?a.labels=t.labels.slice():this.fallbackToCategory?(a.labels=a.labels[0],a.seriesRange.length&&(a.seriesRange.map(function(r){r.forEach(function(o){a.labels.indexOf(o.x)<0&&o.x&&a.labels.push(o.x)})}),a.labels=Array.from(new Set(a.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new ue(t).convertCatToNumericXaxis(t,this.ctx,a.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,a=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var o=a.series.map(function(v,x){return v.data.filter(function(w,k,E){return E.findIndex(function(L){return L.x===w.x})===k})}),n=o.reduce(function(v,x,w,k){return k[v].length>x.length?v:w},0),c=0;c<o[n].length;c++)r.push(c+1);else for(var h=0;h<t.series[t.maxValsInArrayIndex].length;h++)r.push(h+1);t.seriesX=[];for(var u=0;u<e.length;u++)t.seriesX.push(r);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(r.length===0){r=t.axisCharts?[]:t.series.map(function(v,x){return x+1});for(var m=0;m<e.length;m++)t.seriesX.push(r)}t.labels=r,a.xaxis.convertedCatToNumeric&&(t.categoryLabels=r.map(function(v){return a.xaxis.labels.formatter(v)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,a=t.config,r=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),r.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),a.chart.stacked){var o=new Le(this.ctx);r.series=o.setNullSeriesToZeroValues(r.series)}this.coreUtils.getSeriesTotals(),r.axisCharts&&(r.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),r.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),r.dataFormatXNumeric||r.isXNumeric&&(a.xaxis.type!=="numeric"||a.labels.length!==0||a.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var n=this.coreUtils.getCategoryLabels(r.labels),c=0;c<n.length;c++)if(Array.isArray(n[c])){r.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach(function(a,r){var o=0;a.forEach(function(n){e.globals.collapsedSeriesIndices.indexOf(n)!==-1&&o++}),o>0&&o==a.length&&t.push(r)}),e.globals.ignoreYAxisIndexes=t.map(function(a){return a})}}]),z}(),Je=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"scaleSvgNode",value:function(e,t){var a=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",a*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+a+" "+r)}},{key:"fixSvgStringForIe11",value:function(e){if(!P.isIE11())return e.replace(/ /g," ");var t=0,a=e.replace(/xmlns="http:\/\/www.w3.org\/2000\/svg"/g,function(r){return++t===2?'xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev"':r});return a=(a=a.replace(/xmlns:NS\d+=""/g,"")).replace(/NS\d+:(\w+:\w+=")/g,"$1")}},{key:"getSvgString",value:function(e){e==null&&(e=1);var t=this.w.globals.dom.Paper.svg();if(e!==1){var a=this.w.globals.dom.Paper.node.cloneNode(!0);this.scaleSvgNode(a,e),t=new XMLSerializer().serializeToString(a)}return this.fixSvgStringForIe11(t)}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),a=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(r,function(o){o.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),a&&a[0]&&(a[0].setAttribute("y",-100),a[0].setAttribute("y1",-100),a[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;return new Promise(function(a){var r=t.w,o=e?e.scale||e.width/r.globals.svgWidth:1;t.cleanup();var n=document.createElement("canvas");n.width=r.globals.svgWidth*o,n.height=parseInt(r.globals.dom.elWrap.style.height,10)*o;var c=r.config.chart.background==="transparent"?"#fff":r.config.chart.background,h=n.getContext("2d");h.fillStyle=c,h.fillRect(0,0,n.width*o,n.height*o);var u=t.getSvgString(o);if(window.canvg&&P.isIE11()){var m=window.canvg.Canvg.fromString(h,u,{ignoreClear:!0,ignoreDimensions:!0});m.start();var v=n.msToBlob();m.stop(),a({blob:v})}else{var x="data:image/svg+xml,"+encodeURIComponent(u),w=new Image;w.crossOrigin="anonymous",w.onload=function(){if(h.drawImage(w,0,0),n.msToBlob){var k=n.msToBlob();a({blob:k})}else{var E=n.toDataURL("image/png");a({imgURI:E})}},w.src=x}})}},{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 a=t.imgURI,r=t.blob;r?navigator.msSaveOrOpenBlob(r,e.w.globals.chartID+".png"):e.triggerDownload(a,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,a=e.series,r=e.fileName,o=e.columnDelimiter,n=o===void 0?",":o,c=e.lineDelimiter,h=c===void 0?` `:c,u=this.w;a||(a=u.config.series);var m,v,x=[],w=[],k="",E=u.globals.series.map(function(X,O){return u.globals.collapsedSeriesIndices.indexOf(O)===-1?X:[]}),L=function(X){return u.config.xaxis.type==="datetime"&&String(X).length>=10},I=Math.max.apply(Math,W(a.map(function(X){return X.data?X.data.length:0}))),D=new Be(this.ctx),p=new ne(this.ctx),b=function(X){var O="";if(u.globals.axisCharts){if(u.config.xaxis.type==="category"||u.config.xaxis.convertedCatToNumeric)if(u.globals.isBarHorizontal){var N=u.globals.yLabelFormatters[0],$=new Le(t.ctx).getActiveConfigSeriesIndex();O=N(u.globals.labels[X],{seriesIndex:$,dataPointIndex:X,w:u})}else O=p.getLabel(u.globals.labels,u.globals.timescaleLabels,0,X).text;u.config.xaxis.type==="datetime"&&(u.config.xaxis.categories.length?O=u.config.xaxis.categories[X]:u.config.labels.length&&(O=u.config.labels[X]))}else O=u.config.labels[X];return Array.isArray(O)&&(O=O.join(" ")),P.isNumber(O)?O:O.split(n).join("")},C=function(X,O){if(x.length&&O===0&&w.push(x.join(n)),X.data){X.data=X.data.length&&X.data||W(Array(I)).map(function(){return""});for(var N=0;N<X.data.length;N++){x=[];var $=b(N);if($||(D.isFormatXY()?$=a[O].data[N].x:D.isFormat2DArray()&&($=a[O].data[N]?a[O].data[N][0]:"")),O===0){x.push(L($)?u.config.chart.toolbar.export.csv.dateFormatter($):P.isNumber($)?$:$.split(n).join(""));for(var V=0;V<u.globals.series.length;V++){var re;D.isFormatXY()?x.push((re=a[V].data[N])===null||re===void 0?void 0:re.y):x.push(E[V][N])}}(u.config.chart.type==="candlestick"||X.type&&X.type==="candlestick")&&(x.pop(),x.push(u.globals.seriesCandleO[O][N]),x.push(u.globals.seriesCandleH[O][N]),x.push(u.globals.seriesCandleL[O][N]),x.push(u.globals.seriesCandleC[O][N])),(u.config.chart.type==="boxPlot"||X.type&&X.type==="boxPlot")&&(x.pop(),x.push(u.globals.seriesCandleO[O][N]),x.push(u.globals.seriesCandleH[O][N]),x.push(u.globals.seriesCandleM[O][N]),x.push(u.globals.seriesCandleL[O][N]),x.push(u.globals.seriesCandleC[O][N])),u.config.chart.type==="rangeBar"&&(x.pop(),x.push(u.globals.seriesRangeStart[O][N]),x.push(u.globals.seriesRangeEnd[O][N])),x.length&&w.push(x.join(n))}}};x.push(u.config.chart.toolbar.export.csv.headerCategory),u.config.chart.type==="boxPlot"?(x.push("minimum"),x.push("q1"),x.push("median"),x.push("q3"),x.push("maximum")):u.config.chart.type==="candlestick"?(x.push("open"),x.push("high"),x.push("low"),x.push("close")):u.config.chart.type==="rangeBar"?(x.push("minimum"),x.push("maximum")):a.map(function(X,O){var N=(X.name?X.name:"series-".concat(O))+"";u.globals.axisCharts&&x.push(N.split(n).join("")?N.split(n).join(""):"series-".concat(O))}),u.globals.axisCharts||(x.push(u.config.chart.toolbar.export.csv.headerValue),w.push(x.join(n))),u.globals.allSeriesHasEqualX||!u.globals.axisCharts||u.config.xaxis.categories.length||u.config.labels.length?a.map(function(X,O){u.globals.axisCharts?C(X,O):((x=[]).push(u.globals.labels[O].split(n).join("")),x.push(E[O]),w.push(x.join(n)))}):(m=new Set,v={},a.forEach(function(X,O){X==null||X.data.forEach(function(N){var $,V;if(D.isFormatXY())$=N.x,V=N.y;else{if(!D.isFormat2DArray())return;$=N[0],V=N[1]}v[$]||(v[$]=Array(a.length).fill("")),v[$][O]=V,m.add($)})}),x.length&&w.push(x.join(n)),Array.from(m).sort().forEach(function(X){w.push([L(X)&&u.config.xaxis.type==="datetime"?u.config.chart.toolbar.export.csv.dateFormatter(X):P.isNumber(X)?X:X.split(n).join(""),v[X].join(n)])})),k+=w.join(h),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+k),r||u.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,a){var r=document.createElement("a");r.href=e,r.download=(t||this.w.globals.chartID)+a,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}]),z}(),We=function(){function z(e,t){g(this,z),this.ctx=e,this.elgrid=t,this.w=e.w;var a=this.w;this.axesUtils=new ne(e),this.xaxisLabels=a.globals.labels.slice(),a.globals.timescaleLabels.length>0&&!a.globals.isBarHorizontal&&(this.xaxisLabels=a.globals.timescaleLabels.slice()),a.config.xaxis.overwriteCategories&&(this.xaxisLabels=a.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],a.config.xaxis.position==="top"?this.offY=0:this.offY=a.globals.gridHeight+1,this.offY=this.offY+a.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=a.config.chart.type==="bar"&&a.config.plotOptions.bar.horizontal,this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.xaxisBorderWidth=a.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=a.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=a.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=a.config.xaxis.axisBorder.height,this.yaxis=a.config.yaxis[0]}return y(z,[{key:"drawXaxis",value:function(){var e=this.w,t=new j(this.ctx),a=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});a.add(r);for(var o=[],n=0;n<this.xaxisLabels.length;n++)o.push(this.xaxisLabels[n]);if(this.drawXAxisLabelAndGroup(!0,t,r,o,e.globals.isXNumeric,function(k,E){return E}),e.globals.hasXaxisGroups){var c=e.globals.groups;o=[];for(var h=0;h<c.length;h++)o.push(c[h].title);var u={};e.config.xaxis.group.style&&(u.xaxisFontSize=e.config.xaxis.group.style.fontSize,u.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,u.xaxisForeColors=e.config.xaxis.group.style.colors,u.fontWeight=e.config.xaxis.group.style.fontWeight,u.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,r,o,!1,function(k,E){return c[k].cols*E},u)}if(e.config.xaxis.title.text!==void 0){var m=t.group({class:"apexcharts-xaxis-title"}),v=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(e.config.xaxis.position==="bottom"?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});m.add(v),a.add(m)}if(e.config.xaxis.axisBorder.show){var x=e.globals.barPadForNumericAxis,w=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-x,this.offY,this.xaxisBorderWidth+x,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(w):a.add(w)}return a}},{key:"drawXAxisLabelAndGroup",value:function(e,t,a,r,o,n){var c,h=this,u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},m=[],v=[],x=this.w,w=u.xaxisFontSize||this.xaxisFontSize,k=u.xaxisFontFamily||this.xaxisFontFamily,E=u.xaxisForeColors||this.xaxisForeColors,L=u.fontWeight||x.config.xaxis.labels.style.fontWeight,I=u.cssClass||x.config.xaxis.labels.style.cssClass,D=x.globals.padHorizontal,p=r.length,b=x.config.xaxis.type==="category"?x.globals.dataPoints:p;if(b===0&&p>b&&(b=p),o){var C=b>1?b-1:b;c=x.globals.gridWidth/Math.min(C,p-1),D=D+n(0,c)/2+x.config.xaxis.labels.offsetX}else c=x.globals.gridWidth/b,D=D+n(0,c)+x.config.xaxis.labels.offsetX;for(var X=function(N){var $=D-n(N,c)/2+x.config.xaxis.labels.offsetX;N===0&&p===1&&c/2===D&&b===1&&($=x.globals.gridWidth/2);var V=h.axesUtils.getLabel(r,x.globals.timescaleLabels,$,N,m,w,e),re=28;if(x.globals.rotateXLabels&&e&&(re=22),x.config.xaxis.title.text&&x.config.xaxis.position==="top"&&(re+=parseFloat(x.config.xaxis.title.style.fontSize)+2),e||(re=re+parseFloat(w)+(x.globals.xAxisLabelsHeight-x.globals.xAxisGroupLabelsHeight)+(x.globals.rotateXLabels?10:0)),V=x.config.xaxis.tickAmount!==void 0&&x.config.xaxis.tickAmount!=="dataPoints"&&x.config.xaxis.type!=="datetime"?h.axesUtils.checkLabelBasedOnTickamount(N,V,p):h.axesUtils.checkForOverflowingLabels(N,V,p,m,v),x.config.xaxis.labels.show){var ie=t.drawText({x:V.x,y:h.offY+x.config.xaxis.labels.offsetY+re-(x.config.xaxis.position==="top"?x.globals.xAxisHeight+x.config.xaxis.axisTicks.height-2:0),text:V.text,textAnchor:"middle",fontWeight:V.isBold?600:L,fontSize:w,fontFamily:k,foreColor:Array.isArray(E)?e&&x.config.xaxis.convertedCatToNumeric?E[x.globals.minX+N-1]:E[N]:E,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+I});if(a.add(ie),ie.on("click",function(ce){if(typeof x.config.chart.events.xAxisLabelClick=="function"){var me=Object.assign({},x,{labelIndex:N});x.config.chart.events.xAxisLabelClick(ce,h.ctx,me)}}),e){var ae=document.createElementNS(x.globals.SVGNS,"title");ae.textContent=Array.isArray(V.text)?V.text.join(" "):V.text,ie.node.appendChild(ae),V.text!==""&&(m.push(V.text),v.push(V))}}N<p-1&&(D+=n(N+1,c))},O=0;O<=p-1;O++)X(O)}},{key:"drawXaxisInversed",value:function(e){var t,a,r=this,o=this.w,n=new j(this.ctx),c=o.config.yaxis[0].opposite?o.globals.translateYAxisX[e]:0,h=n.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),u=n.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+c+", 0)"});h.add(u);var m=[];if(o.config.yaxis[e].show)for(var v=0;v<this.xaxisLabels.length;v++)m.push(this.xaxisLabels[v]);t=o.globals.gridHeight/m.length,a=-t/2.2;var x=o.globals.yLabelFormatters[0],w=o.config.yaxis[0].labels;if(w.show)for(var k=function(C){var X=m[C]===void 0?"":m[C];X=x(X,{seriesIndex:e,dataPointIndex:C,w:o});var O=r.axesUtils.getYAxisForeColor(w.style.colors,e),N=0;Array.isArray(X)&&(N=X.length/2*parseInt(w.style.fontSize,10));var $=w.offsetX-15,V="end";r.yaxis.opposite&&(V="start"),o.config.yaxis[0].labels.align==="left"?($=w.offsetX,V="start"):o.config.yaxis[0].labels.align==="center"?($=w.offsetX,V="middle"):o.config.yaxis[0].labels.align==="right"&&(V="end");var re=n.drawText({x:$,y:a+t+w.offsetY-N,text:X,textAnchor:V,foreColor:Array.isArray(O)?O[C]:O,fontSize:w.style.fontSize,fontFamily:w.style.fontFamily,fontWeight:w.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+w.style.cssClass,maxWidth:w.maxWidth});u.add(re),re.on("click",function(ce){if(typeof o.config.chart.events.xAxisLabelClick=="function"){var me=Object.assign({},o,{labelIndex:C});o.config.chart.events.xAxisLabelClick(ce,r.ctx,me)}});var ie=document.createElementNS(o.globals.SVGNS,"title");if(ie.textContent=Array.isArray(X)?X.join(" "):X,re.node.appendChild(ie),o.config.yaxis[e].labels.rotate!==0){var ae=n.rotateAroundCenter(re.node);re.node.setAttribute("transform","rotate(".concat(o.config.yaxis[e].labels.rotate," 0 ").concat(ae.y,")"))}a+=t},E=0;E<=m.length-1;E++)k(E);if(o.config.yaxis[0].title.text!==void 0){var L=n.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+c+", 0)"}),I=n.drawText({x:o.config.yaxis[0].title.offsetX,y:o.globals.gridHeight/2+o.config.yaxis[0].title.offsetY,text:o.config.yaxis[0].title.text,textAnchor:"middle",foreColor:o.config.yaxis[0].title.style.color,fontSize:o.config.yaxis[0].title.style.fontSize,fontWeight:o.config.yaxis[0].title.style.fontWeight,fontFamily:o.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+o.config.yaxis[0].title.style.cssClass});L.add(I),h.add(L)}var D=0;this.isCategoryBarHorizontal&&o.config.yaxis[0].opposite&&(D=o.globals.gridWidth);var p=o.config.xaxis.axisBorder;if(p.show){var b=n.drawLine(o.globals.padHorizontal+p.offsetX+D,1+p.offsetY,o.globals.padHorizontal+p.offsetX+D,o.globals.gridHeight+p.offsetY,p.color,0);this.elgrid&&this.elgrid.elGridBorders&&o.config.grid.show?this.elgrid.elGridBorders.add(b):h.add(b)}return o.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(D,m.length,o.config.yaxis[0].axisBorder,o.config.yaxis[0].axisTicks,0,t,h),h}},{key:"drawXaxisTicks",value:function(e,t,a){var r=this.w,o=e;if(!(e<0||e-2>r.globals.gridWidth)){var n=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+n+r.config.xaxis.axisTicks.height,r.config.xaxis.position==="top"&&(t=n-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var c=new j(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,n+r.config.xaxis.offsetY,o+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);a.add(c),c.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],a=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var o=0;o<a;o++)r=this.xaxisLabels[o].position,t.push(r);else for(var n=a,c=0;c<n;c++){var h=n;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(h-=1),r+=e.globals.gridWidth/h,t.push(r)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new j(this.ctx),a=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),o=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 c=0;c<r.length;c++){var h=t.rotateAroundCenter(r[c]);h.y=h.y-1,h.x=h.x+1,r[c].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(h.x," ").concat(h.y,")")),r[c].setAttribute("text-anchor","end"),a.setAttribute("transform","translate(0, ".concat(-10,")"));var u=r[c].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(u,function(w){t.placeTextWithEllipsis(w,w.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var w=e.globals.gridWidth/(e.globals.labels.length+1),k=0;k<r.length;k++){var E=r[k].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(E,function(L){t.placeTextWithEllipsis(L,L.textContent,w)})}})();if(o.length>0){var m=o[o.length-1].getBBox(),v=o[0].getBBox();m.x<-20&&o[o.length-1].parentNode.removeChild(o[o.length-1]),v.x+v.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&o[0].parentNode.removeChild(o[0]);for(var x=0;x<n.length;x++)t.placeTextWithEllipsis(n[x],n[x].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),z}(),Ue=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new ne(e),this.isRangeBar=t.globals.seriesRange.length&&t.globals.isBarHorizontal,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return y(z,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,a=new j(this.ctx);e===null&&(e=a.group({class:"apexcharts-grid"}));var r=a.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),o=a.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(o),e.add(r),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,a=new j(this.ctx),r=Array.isArray(e.config.stroke.width)?0:e.config.stroke.width;if(Array.isArray(e.config.stroke.width)){var o=0;e.config.stroke.width.forEach(function(v){o=Math.max(o,v)}),r=o}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,c=0,h=0;(n==="bar"||n==="rangeBar"||n==="candlestick"||n==="boxPlot"||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(c=e.config.grid.padding.left,h=e.config.grid.padding.right,t.barPadForNumericAxis>c&&(c=t.barPadForNumericAxis,h=t.barPadForNumericAxis)),t.dom.elGridRect=a.drawRect(-r/2-c-2,-r/2-2,t.gridWidth+r+h+c+4,t.gridHeight+r+4,0,"#fff");var u=e.globals.markers.largestSize+1;t.dom.elGridRectMarker=a.drawRect(2*-u,2*-u,t.gridWidth+4*u,t.gridHeight+4*u,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var m=t.dom.baseEl.querySelector("defs");m.appendChild(t.dom.elGridRectMask),m.appendChild(t.dom.elForecastMask),m.appendChild(t.dom.elNonForecastMask),m.appendChild(t.dom.elGridRectMarkerMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,a=e.x1,r=e.y1,o=e.x2,n=e.y2,c=e.xCount,h=e.parent,u=this.w;if(!(t===0&&u.globals.skipFirstTimelinelabel||t===c-1&&u.globals.skipLastTimelinelabel&&!u.config.xaxis.labels.formatter||u.config.chart.type==="radar")){u.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:a,y1:r,x2:o,y2:n,xCount:c,parent:h});var m=0;if(u.globals.hasXaxisGroups&&u.config.xaxis.tickPlacement==="between"){var v=u.globals.groups;if(v){for(var x=0,w=0;x<t&&w<v.length;w++)x+=v[w].cols;x===t&&(m=.6*u.globals.xAxisLabelsHeight)}}new We(this.ctx).drawXaxisTicks(a,m,u.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,a=e.x1,r=e.y1,o=e.x2,n=e.y2,c=e.xCount,h=e.parent,u=this.w,m=!1,v=h.node.classList.contains("apexcharts-gridlines-horizontal"),x=u.config.grid.strokeDashArray,w=u.globals.barPadForNumericAxis;(r===0&&n===0||a===0&&o===0)&&(m=!0),r===u.globals.gridHeight&&n===u.globals.gridHeight&&(m=!0),!u.globals.isBarHorizontal||t!==0&&t!==c-1||(m=!0);var k=new j(this).drawLine(a-(v?w:0),r,o+(v?w:0),n,u.config.grid.borderColor,x);k.node.classList.add("apexcharts-gridline"),m&&u.config.grid.show?this.elGridBorders.add(k):h.add(k)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,a=e.x1,r=e.y1,o=e.x2,n=e.y2,c=e.type,h=this.w,u=new j(this.ctx),m=h.globals.barPadForNumericAxis;if(c!=="column"||h.config.xaxis.type!=="datetime"){var v=h.config.grid[c].colors[t],x=u.drawRect(a-(c==="row"?m:0),r,o+(c==="row"?2*m:0),n,0,v,h.config.grid[c].opacity);this.elg.add(x),x.attr("clip-path","url(#gridRectMask".concat(h.globals.cuid,")")),x.node.classList.add("apexcharts-grid-".concat(c))}}},{key:"_drawXYLines",value:function(e){var t=this,a=e.xCount,r=e.tickAmount,o=this.w;if(o.config.grid.xaxis.lines.show||o.config.xaxis.axisTicks.show){var n,c=o.globals.padHorizontal,h=o.globals.gridHeight;o.globals.timescaleLabels.length?function(k){for(var E=k.xC,L=k.x1,I=k.y1,D=k.x2,p=k.y2,b=0;b<E;b++)L=t.xaxisLabels[b].position,D=t.xaxisLabels[b].position,t._drawGridLines({i:b,x1:L,y1:I,x2:D,y2:p,xCount:a,parent:t.elgridLinesV})}({xC:a,x1:c,y1:0,x2:n,y2:h}):(o.globals.isXNumeric&&(a=o.globals.xAxisScale.result.length),function(k){for(var E=k.xC,L=k.x1,I=k.y1,D=k.x2,p=k.y2,b=0;b<E+(o.globals.isXNumeric?0:1);b++)b===0&&E===1&&o.globals.dataPoints===1&&(D=L=o.globals.gridWidth/2),t._drawGridLines({i:b,x1:L,y1:I,x2:D,y2:p,xCount:a,parent:t.elgridLinesV}),D=L+=o.globals.gridWidth/(o.globals.isXNumeric?E-1:E)}({xC:a,x1:c,y1:0,x2:n,y2:h}))}if(o.config.grid.yaxis.lines.show){var u=0,m=0,v=o.globals.gridWidth,x=r+1;this.isRangeBar&&(x=o.globals.labels.length);for(var w=0;w<x+(this.isRangeBar?1:0);w++)this._drawGridLine({i:w,xCount:x+(this.isRangeBar?1:0),x1:0,y1:u,x2:v,y2:m,parent:this.elgridLinesH}),m=u+=o.globals.gridHeight/(this.isRangeBar?x:r)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show)for(var r,o=a.globals.padHorizontal,n=a.globals.gridHeight,c=0;c<t+1;c++)a.config.grid.xaxis.lines.show&&this._drawGridLine({i:c,xCount:t+1,x1:o,y1:0,x2:r,y2:n,parent:this.elgridLinesV}),new We(this.ctx).drawXaxisTicks(o,0,a.globals.dom.elGraphical),r=o+=a.globals.gridWidth/t;if(a.config.grid.yaxis.lines.show)for(var h=0,u=0,m=a.globals.gridWidth,v=0;v<a.globals.dataPoints+1;v++)this._drawGridLine({i:v,xCount:a.globals.dataPoints+1,x1:0,y1:h,x2:m,y2:u,parent:this.elgridLinesH}),u=h+=a.globals.gridHeight/a.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,a=new j(this.ctx);this.elg=a.group({class:"apexcharts-grid"}),this.elgridLinesH=a.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=a.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=a.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 r=0;r<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.indexOf(r)!==-1;)r++;r===t.seriesYAxisMap.length&&(r=0);var o,n=t.yAxisScale[r].result.length-1;if(!t.isBarHorizontal||this.isRangeBar){var c,h,u;o=this.xaxisLabels.length,this.isRangeBar&&(o--,n=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(o=e.config.xaxis.tickAmount),((c=t.yAxisScale)===null||c===void 0||(h=c[r])===null||h===void 0||(u=h.result)===null||u===void 0?void 0:u.length)>0&&e.config.xaxis.type!=="datetime"&&(o=t.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:o,tickAmount:n})}else o=n,n=t.xTickAmount,this._drawInvertedXYLines({xCount:o,tickAmount:n});return this.drawGridBands(o,n),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/o}}},{key:"drawGridBands",value:function(e,t){var a=this.w;if(a.config.grid.row.colors!==void 0&&a.config.grid.row.colors.length>0)for(var r=0,o=a.globals.gridHeight/t,n=a.globals.gridWidth,c=0,h=0;c<t;c++,h++)h>=a.config.grid.row.colors.length&&(h=0),this._drawGridBandRect({c:h,x1:0,y1:r,x2:n,y2:o,type:"row"}),r+=a.globals.gridHeight/t;if(a.config.grid.column.colors!==void 0&&a.config.grid.column.colors.length>0)for(var u=a.globals.isBarHorizontal||a.config.xaxis.tickPlacement!=="on"||a.config.xaxis.type!=="category"&&!a.config.xaxis.convertedCatToNumeric?e:e-1,m=a.globals.padHorizontal,v=a.globals.padHorizontal+a.globals.gridWidth/u,x=a.globals.gridHeight,w=0,k=0;w<e;w++,k++)k>=a.config.grid.column.colors.length&&(k=0),this._drawGridBandRect({c:k,x1:m,y1:0,x2:v,y2:x,type:"column"}),m+=a.globals.gridWidth/u}}]),z}(),Bt=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"niceScale",value:function(e,t){var a,r,o,n,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,h=1e-11,u=this.w,m=u.globals;m.isBarHorizontal?(a=u.config.xaxis,r=Math.max((m.svgWidth-100)/25,2)):(a=u.config.yaxis[c],r=Math.max((m.svgHeight-100)/15,2)),o=a.min!==void 0&&a.min!==null,n=a.max!==void 0&&a.min!==null;var v=a.stepSize!==void 0&&a.stepSize!==null,x=a.tickAmount!==void 0&&a.tickAmount!==null,w=x?a.tickAmount:a.forceNiceScale?m.niceScaleDefaultTicks[Math.min(Math.round(r/2),m.niceScaleDefaultTicks.length-1)]:10;if(m.isMultipleYAxis&&!x&&m.multiAxisTickAmount>0&&(w=m.multiAxisTickAmount,x=!0),w=w==="dataPoints"?m.dataPoints-1:Math.abs(Math.round(w)),(e===Number.MIN_VALUE&&t===0||!P.isNumber(e)&&!P.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=P.isNumber(a.min)?a.min:0,t=P.isNumber(a.max)?a.max:e+w,m.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var k=t;t=e,e=k}else e===t&&(e=e===0?0:e-1,t=t===0?2:t+1);var E=[];w<1&&(w=1);var L=w,I=Math.abs(t-e);a.forceNiceScale&&(!o&&e>0&&e/I<.15&&(e=0,o=!0),!n&&t<0&&-t/I<.15&&(t=0,n=!0),I=Math.abs(t-e));var D=I/L,p=D,b=Math.floor(Math.log10(p)),C=Math.pow(10,b),X=Math.ceil(p/C);if(D=p=(X=m.niceScaleAllowedMagMsd[m.yValueDecimal===0?0:1][X])*C,m.isBarHorizontal&&a.stepSize&&a.type!=="datetime"?(D=a.stepSize,v=!0):v&&(D=a.stepSize),v&&a.forceNiceScale){var O=Math.floor(Math.log10(D));D*=Math.pow(10,b-O)}if(o&&n){var N=I/L;if(x)if(v)if(P.mod(I,D)!=0){var $=P.getGCD(D,N);D=N/$<10?$:N}else P.mod(D,N)==0?D=N:(N=D,x=!1);else D=N;else if(v)P.mod(I,D)==0?N=D:D=N;else if(P.mod(I,D)==0)N=D;else{N=I/(L=Math.ceil(I/D));var V=P.getGCD(I,D);I/V<r&&(N=V),D=N}L=Math.round(I/D)}else{if(o||n){if(n)if(x)e=t-D*L;else{var re=e;e=D*Math.floor(e/D),Math.abs(t-e)/P.getGCD(I,D)>r&&(e=t-D*w,e+=D*Math.floor((re-e)/D))}else if(o)if(x)t=e+D*L;else{var ie=t;t=D*Math.ceil(t/D),Math.abs(t-e)/P.getGCD(I,D)>r&&(t=e+D*w,t+=D*Math.ceil((ie-t)/D))}}else if(x){var ae=D/(t-e>t?1:2),ce=ae*Math.floor(e/ae);Math.abs(ce-e)<=ae/2?t=(e=ce)+D*L:e=(t=ae*Math.ceil(t/ae))-D*L}else e=D*Math.floor(e/D),t=D*Math.ceil(t/D);I=Math.abs(t-e),D=P.getGCD(I,D),L=Math.round(I/D)}if(x||o||n||(L=Math.ceil((I-h)/(D+h)))>16&&P.getPrimeFactors(L).length<2&&L++,!x&&a.forceNiceScale&&m.yValueDecimal===0&&L>I&&(L=I,D=Math.round(I/L)),L>r&&(!x&&!v||a.forceNiceScale)){var me=P.getPrimeFactors(L),xe=me.length-1,we=L;e:for(var be=0;be<xe;be++)for(var Se=0;Se<=xe-be;Se++){for(var _e=Math.min(Se+be,xe),ke=we,Re=1,Fe=Se;Fe<=_e;Fe++)Re*=me[Fe];if((ke/=Re)<r){we=ke;break e}}D=we===L?I:I/we,L=Math.round(I/D)}m.isMultipleYAxis&&m.multiAxisTickAmount==0&&m.ignoreYAxisIndexes.indexOf(c)<0&&(m.multiAxisTickAmount=L);var ze=e-D,ht=D*h;do ze+=D,E.push(P.stripNumber(ze,7));while(t-ze>ht);return{result:E,niceMin:E[0],niceMax:E[E.length-1]}}},{key:"linearScale",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,n=Math.abs(t-e);(a=this._adjustTicksForSmallRange(a,r,n))==="dataPoints"&&(a=this.w.globals.dataPoints-1),o||(o=n/a),a===Number.MAX_VALUE&&(a=5,o=1);for(var c=[],h=e;a>=0;)c.push(h),h+=o,a-=1;return{result:c,niceMin:c[0],niceMax:c[c.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,a){t<=0&&(t=Math.max(e,a)),e<=0&&(e=Math.min(t,a));for(var r=[],o=Math.ceil(Math.log(t)/Math.log(a)+1),n=Math.floor(Math.log(e)/Math.log(a));n<o;n++)r.push(Math.pow(a,n));return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(e,t,a){t<=0&&(t=Math.max(e,a)),e<=0&&(e=Math.min(t,a));for(var r=[],o=Math.log(t)/Math.log(a),n=Math.log(e)/Math.log(a),c=o-n,h=Math.round(c),u=c/h,m=0,v=n;m<h;m++,v+=u)r.push(Math.pow(a,v));return r.push(Math.pow(a,o)),{result:r,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,a){var r=e;if(t!==void 0&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){var o=Number(this.w.config.yaxis[t].labels.formatter(1));P.isNumber(o)&&this.w.globals.yValueDecimal===0&&(r=Math.ceil(a))}return r<e?r:e}},{key:"setYScaleForIndex",value:function(e,t,a){var r=this.w.globals,o=this.w.config,n=r.isBarHorizontal?o.xaxis:o.yaxis[e];r.yAxisScale[e]===void 0&&(r.yAxisScale[e]=[]);var c=Math.abs(a-t);n.logarithmic&&c<=5&&(r.invalidLogScale=!0),n.logarithmic&&c>5?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=n.forceNiceScale?this.logarithmicScaleNice(t,a,n.logBase):this.logarithmicScale(t,a,n.logBase)):a!==-Number.MAX_VALUE&&P.isNumber(a)&&t!==Number.MAX_VALUE&&P.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,a,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var a=this.w,r=a.globals,o=Math.abs(t-e);return t!==-Number.MAX_VALUE&&P.isNumber(t)?r.xAxisScale=this.linearScale(e,t,a.config.xaxis.tickAmount?a.config.xaxis.tickAmount:o<10&&o>1?o+1:10,0,a.config.xaxis.stepSize):r.xAxisScale=this.linearScale(0,10,10),r.xAxisScale}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config;e.minYArr,e.maxYArr;var a=[],r=[],o=[],n=e.series.length>t.yaxis.length||t.yaxis.some(function(v){return Array.isArray(v.seriesName)});t.series.forEach(function(v,x){o.push(x),r.push(null)}),t.yaxis.forEach(function(v,x){a[x]=[]});var c=[];t.yaxis.forEach(function(v,x){var w=!1;if(v.seriesName){var k=[];Array.isArray(v.seriesName)?k=v.seriesName:k.push(v.seriesName),k.forEach(function(E){t.series.forEach(function(L,I){if(L.name===E){var D=I;x===I||n?!n||o.indexOf(I)>-1?a[x].push([x,I]):console.warn("Series '"+L.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."):(a[I].push([I,x]),D=x),w=!0,(D=o.indexOf(D))!==-1&&o.splice(D,1)}})})}w||c.push(x)}),a=a.map(function(v,x){var w=[];return v.forEach(function(k){r[k[1]]=k[0],w.push(k[1])}),w});for(var h=t.yaxis.length-1,u=0;u<c.length&&(h=c[u],a[h]=[],o);u++){var m=o[0];o.shift(),a[h].push(m),r[m]=h}o.forEach(function(v){a[h].push(v),r[v]=h}),e.seriesYAxisMap=a.map(function(v){return v}),e.seriesYAxisReverseMap=r.map(function(v){return v})}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,a=this.w.globals;this.setSeriesYAxisMappings();var r=a.seriesYAxisMap,o=a.minYArr,n=a.maxYArr;a.allSeriesCollapsed=!0,a.barGroups=[],r.forEach(function(c,h){var u=[];c.forEach(function(m){var v=t.series[m].group;u.indexOf(v)<0&&u.push(v)}),c.length>0?function(){var m,v,x=Number.MAX_VALUE,w=-Number.MAX_VALUE,k=x,E=w;if(t.chart.stacked)(function(){var D=a.seriesX[c[0]],p=[],b=[],C=[];u.forEach(function(){p.push(D.map(function(){return Number.MIN_VALUE})),b.push(D.map(function(){return Number.MIN_VALUE})),C.push(D.map(function(){return Number.MIN_VALUE}))});for(var X=function(N){!m&&t.series[c[N]].type&&(m=t.series[c[N]].type);var $=c[N];v=t.series[$].group?t.series[$].group:"axis-".concat(h),!(a.collapsedSeriesIndices.indexOf($)<0&&a.ancillaryCollapsedSeriesIndices.indexOf($)<0)||(a.allSeriesCollapsed=!1,u.forEach(function(V,re){if(t.series[$].group===V)for(var ie=0;ie<a.series[$].length;ie++){var ae=a.series[$][ie];ae>=0?b[re][ie]+=ae:C[re][ie]+=ae,p[re][ie]+=ae,k=Math.min(k,ae),E=Math.max(E,ae)}})),m!=="bar"&&m!=="column"||a.barGroups.push(v)},O=0;O<c.length;O++)X(O);m||(m=t.chart.type),m==="bar"||m==="column"?u.forEach(function(N,$){x=Math.min(x,Math.min.apply(null,C[$])),w=Math.max(w,Math.max.apply(null,b[$]))}):u.forEach(function(N,$){x=Math.min(k,Math.min.apply(null,p[$])),w=Math.max(E,Math.max.apply(null,p[$]))}),x===Number.MIN_VALUE&&w===Number.MIN_VALUE&&(w=-Number.MAX_VALUE)})();else for(var L=0;L<c.length;L++){var I=c[L];x=Math.min(x,o[I]),w=Math.max(w,n[I]),!(a.collapsedSeriesIndices.indexOf(I)<0&&a.ancillaryCollapsedSeriesIndices.indexOf(I)<0)||(a.allSeriesCollapsed=!1)}t.yaxis[h].min!==void 0&&(x=typeof t.yaxis[h].min=="function"?t.yaxis[h].min(x):t.yaxis[h].min),t.yaxis[h].max!==void 0&&(w=typeof t.yaxis[h].max=="function"?t.yaxis[h].max(w):t.yaxis[h].max),a.barGroups=a.barGroups.filter(function(D,p,b){return b.indexOf(D)===p}),e.setYScaleForIndex(h,x,w),c.forEach(function(D){o[D]=a.yAxisScale[h].niceMin,n[D]=a.yAxisScale[h].niceMax})}():e.setYScaleForIndex(h,0,-Number.MAX_VALUE)})}}]),z}(),bt=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.scales=new Bt(e)}return y(z,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.w.config,n=this.w.globals,c=-Number.MAX_VALUE,h=Number.MIN_VALUE;r===null&&(r=e+1);var u=0,m=0,v=void 0;if(n.seriesX.length>=r){var x,w;u=0,m=(v=W(new Set((x=[]).concat.apply(x,W(n.seriesX.slice(e,r)))))).length-1;var k=(w=n.brushSource)===null||w===void 0?void 0:w.w.config.chart.brush;if(o.chart.zoom.enabled&&o.chart.zoom.autoScaleYaxis||k!=null&&k.enabled&&k!=null&&k.autoScaleYaxis){if(o.xaxis.min)for(u=0;u<m&&v[u]<o.xaxis.min;u++);if(o.xaxis.max)for(;m>u&&v[m]>o.xaxis.max;m--);}}var E=n.series,L=E,I=E;o.chart.type==="candlestick"?(L=n.seriesCandleL,I=n.seriesCandleH):o.chart.type==="boxPlot"?(L=n.seriesCandleO,I=n.seriesCandleC):n.isRangeData&&(L=n.seriesRangeStart,I=n.seriesRangeEnd);for(var D=e;D<r;D++){n.dataPoints=Math.max(n.dataPoints,E[D].length);var p=o.series[D].type;n.categoryLabels.length&&(n.dataPoints=n.categoryLabels.filter(function(X){return X!==void 0}).length),n.labels.length&&o.xaxis.type!=="datetime"&&n.series.reduce(function(X,O){return X+O.length},0)!==0&&(n.dataPoints=Math.max(n.dataPoints,n.labels.length)),v||(u=0,m=n.series[D].length);for(var b=u;b<=m&&b<n.series[D].length;b++){var C=E[D][b];if(C!==null&&P.isNumber(C)){switch(I[D][b]!==void 0&&(c=Math.max(c,I[D][b]),t=Math.min(t,I[D][b])),L[D][b]!==void 0&&(t=Math.min(t,L[D][b]),a=Math.max(a,L[D][b])),p){case"candlestick":n.seriesCandleC[D][b]!==void 0&&(c=Math.max(c,n.seriesCandleH[D][b]),t=Math.min(t,n.seriesCandleL[D][b]));break;case"boxPlot":n.seriesCandleC[D][b]!==void 0&&(c=Math.max(c,n.seriesCandleC[D][b]),t=Math.min(t,n.seriesCandleO[D][b]))}p&&p!=="candlestick"&&p!=="boxPlot"&&p!=="rangeArea"&&p!=="rangeBar"&&(c=Math.max(c,n.series[D][b]),t=Math.min(t,n.series[D][b])),a=c,n.seriesGoals[D]&&n.seriesGoals[D][b]&&Array.isArray(n.seriesGoals[D][b])&&n.seriesGoals[D][b].forEach(function(X){h!==Number.MIN_VALUE&&(h=Math.min(h,X.value),t=h),c=Math.max(c,X.value),a=c}),P.isFloat(C)&&(C=P.noExponents(C),n.yValueDecimal=Math.max(n.yValueDecimal,C.toString().split(".")[1].length)),h>L[D][b]&&L[D][b]<0&&(h=L[D][b])}else n.hasNullValues=!0}p!=="bar"&&p!=="column"||(h<0&&c<0&&(c=0,a=Math.max(a,0)),h===Number.MIN_VALUE&&(h=0,t=Math.min(t,0)))}return o.chart.type==="rangeBar"&&n.seriesRangeStart.length&&n.isBarHorizontal&&(h=t),o.chart.type==="bar"&&(h<0&&c<0&&(c=0),h===Number.MIN_VALUE&&(h=0)),{minY:h,maxY:c,lowestY:t,highestY:a}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var a,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(var o=0;o<e.series.length;o++)a=this.getMinYMaxY(o),e.minYArr[o]=a.lowestY,e.maxYArr[o]=a.highestY,r=Math.min(r,a.lowestY)}return a=this.getMinYMaxY(0,r,null,e.series.length),t.chart.type==="bar"?(e.minY=a.minY,e.maxY=a.maxY):(e.minY=a.lowestY,e.maxY=a.highestY),r=a.lowestY,t.chart.stacked&&this._setStackedMinMax(),t.chart.type==="line"||t.chart.type==="area"||t.chart.type==="scatter"||t.chart.type==="candlestick"||t.chart.type==="boxPlot"||t.chart.type==="rangeBar"&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=a.minY,t.yaxis.forEach(function(n,c){n.max!==void 0&&(typeof n.max=="number"?e.maxYArr[c]=n.max:typeof n.max=="function"&&(e.maxYArr[c]=n.max(e.isMultipleYAxis?e.maxYArr[c]:e.maxY)),e.maxY=e.maxYArr[c]),n.min!==void 0&&(typeof n.min=="number"?e.minYArr[c]=n.min:typeof n.min=="function"&&(e.minYArr[c]=n.min(e.isMultipleYAxis?e.minYArr[c]===Number.MIN_VALUE?0:e.minYArr[c]:e.minY)),e.minY=e.minYArr[c])}),e.isBarHorizontal&&["min","max"].forEach(function(n){t.xaxis[n]!==void 0&&typeof t.xaxis[n]=="number"&&(n==="min"?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(e.barGroups=[],t.series.forEach(function(n){(!n.type&&t.chart.type==="bar"||n.type==="bar"||n.type==="column")&&e.barGroups.push(n.group?n.group:"axis-0")}),e.barGroups=e.barGroups.filter(function(n,c,h){return h.indexOf(n)===c}),this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.yAxisScale[0].niceMin,e.maxYArr[0]=e.yAxisScale[0].niceMax,e.seriesYAxisMap=[e.series.map(function(n,c){return c})],e.seriesYAxisReverseMap=e.series.map(function(n,c){return 0})),{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,a=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var c=0;c<e.series.length;c++)if(e.labels[c])for(var h=0;h<e.labels[c].length;h++)e.labels[c][h]!==null&&P.isNumber(e.labels[c][h])&&(e.maxX=Math.max(e.maxX,e.labels[c][h]),e.initialMaxX=Math.max(e.maxX,e.labels[c][h]),e.minX=Math.min(e.minX,e.labels[c][h]),e.initialMinX=Math.min(e.minX,e.labels[c][h]))}(),e.noLabelsProvided&&t.xaxis.categories.length===0&&(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 r;if(t.xaxis.tickAmount===void 0?(r=Math.round(e.svgWidth/150),t.xaxis.type==="numeric"&&e.dataPoints<30&&(r=e.dataPoints-1),r>e.dataPoints&&e.dataPoints!==0&&(r=e.dataPoints-1)):t.xaxis.tickAmount==="dataPoints"?(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric&&(r=e.maxX-e.minX-1)):r=t.xaxis.tickAmount,e.xTickAmount=r,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(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 o=[],n=e.minX-1;n<e.maxX;n++)o.push(n+1);e.xAxisScale={result:o,niceMin:o[0],niceMax:o[o.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,r,r,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());a&&(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(e.seriesZ[t]!==void 0)for(var a=0;a<e.seriesZ[t].length;a++)e.seriesZ[t][a]!==null&&P.isNumber(e.seriesZ[t][a])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][a]),e.minZ=Math.min(e.minZ,e.seriesZ[t][a]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var a=new K(this.ctx);if(t.xaxis.type==="datetime"){var r=a.getDate(e.minX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()-2):r.setDate(r.getDate()-2),e.minX=new Date(r).getTime();var o=a.getDate(e.maxX);t.xaxis.labels.datetimeUTC?o.setUTCDate(o.getUTCDate()+2):o.setDate(o.getDate()+2),e.maxX=new Date(o).getTime()}else(t.xaxis.type==="numeric"||t.xaxis.type==="category"&&!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,a){t.length===1&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var r=t.slice();r.sort(function(o,n){return o-n}),r.forEach(function(o,n){if(n>0){var c=o-r[n-1];c>0&&(e.minXDiff=Math.min(c,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var a=t.seriesGroups;a.length||(a=[this.w.globals.seriesNames.map(function(n){return n})]);var r={},o={};a.forEach(function(n){r[n]=[],o[n]=[],e.w.config.series.map(function(c,h){return n.indexOf(t.seriesNames[h])>-1?h:null}).filter(function(c){return c!==null}).forEach(function(c){for(var h=0;h<t.series[t.maxValsInArrayIndex].length;h++){var u,m,v,x;r[n][h]===void 0&&(r[n][h]=0,o[n][h]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||((u=e.w.config.series)===null||u===void 0||(m=u[c])===null||m===void 0?void 0:m.type)==="bar"||((v=e.w.config.series)===null||v===void 0||(x=v[c])===null||x===void 0?void 0:x.type)==="column"))&&t.series[c][h]!==null&&P.isNumber(t.series[c][h])&&(t.series[c][h]>0?r[n][h]+=parseFloat(t.series[c][h])+1e-4:o[n][h]+=parseFloat(t.series[c][h]))}})}),Object.entries(r).forEach(function(n){var c=G(n,1)[0];r[c].forEach(function(h,u){t.maxY=Math.max(t.maxY,r[c][u]),t.minY=Math.min(t.minY,o[c][u])})})}}}]),z}(),Lt=function(){function z(e,t){g(this,z),this.ctx=e,this.elgrid=t,this.w=e.w;var a=this.w;this.xaxisFontSize=a.config.xaxis.labels.style.fontSize,this.axisFontFamily=a.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=a.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=a.config.chart.type==="bar"&&a.config.plotOptions.bar.horizontal,this.xAxisoffX=0,a.config.xaxis.position==="bottom"&&(this.xAxisoffX=a.globals.gridHeight),this.drawnLabels=[],this.axesUtils=new ne(e)}return y(z,[{key:"drawYaxis",value:function(e){var t=this,a=this.w,r=new j(this.ctx),o=a.config.yaxis[e].labels.style,n=o.fontSize,c=o.fontFamily,h=o.fontWeight,u=r.group({class:"apexcharts-yaxis",rel:e,transform:"translate("+a.globals.translateYAxisX[e]+", 0)"});if(this.axesUtils.isYAxisHidden(e))return u;var m=r.group({class:"apexcharts-yaxis-texts-g"});u.add(m);var v=a.globals.yAxisScale[e].result.length-1,x=a.globals.gridHeight/v,w=a.globals.translateY,k=a.globals.yLabelFormatters[e],E=a.globals.yAxisScale[e].result.slice();E=this.axesUtils.checkForReversedLabels(e,E);var L="";if(a.config.yaxis[e].labels.show)for(var I=function($){var V=E[$];V=k(V,$,a);var re=a.config.yaxis[e].labels.padding;a.config.yaxis[e].opposite&&a.config.yaxis.length!==0&&(re*=-1);var ie="end";a.config.yaxis[e].opposite&&(ie="start"),a.config.yaxis[e].labels.align==="left"?ie="start":a.config.yaxis[e].labels.align==="center"?ie="middle":a.config.yaxis[e].labels.align==="right"&&(ie="end");var ae=t.axesUtils.getYAxisForeColor(o.colors,e),ce=a.config.yaxis[e].labels.offsetY;a.config.chart.type==="heatmap"&&(ce-=(a.globals.gridHeight/a.globals.series.length-1)/2);var me=r.drawText({x:re,y:w+v/10+ce+1,text:V,textAnchor:ie,fontSize:n,fontFamily:c,fontWeight:h,maxWidth:a.config.yaxis[e].labels.maxWidth,foreColor:Array.isArray(ae)?ae[$]:ae,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+o.cssClass});$===v&&(L=me),m.add(me);var xe=document.createElementNS(a.globals.SVGNS,"title");if(xe.textContent=Array.isArray(V)?V.join(" "):V,me.node.appendChild(xe),a.config.yaxis[e].labels.rotate!==0){var we=r.rotateAroundCenter(L.node),be=r.rotateAroundCenter(me.node);me.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," ").concat(we.x," ").concat(be.y,")"))}w+=x},D=v;D>=0;D--)I(D);if(a.config.yaxis[e].title.text!==void 0){var p=r.group({class:"apexcharts-yaxis-title"}),b=0;a.config.yaxis[e].opposite&&(b=a.globals.translateYAxisX[e]);var C=r.drawText({x:b,y:a.globals.gridHeight/2+a.globals.translateY+a.config.yaxis[e].title.offsetY,text:a.config.yaxis[e].title.text,textAnchor:"end",foreColor:a.config.yaxis[e].title.style.color,fontSize:a.config.yaxis[e].title.style.fontSize,fontWeight:a.config.yaxis[e].title.style.fontWeight,fontFamily:a.config.yaxis[e].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[e].title.style.cssClass});p.add(C),u.add(p)}var X=a.config.yaxis[e].axisBorder,O=31+X.offsetX;if(a.config.yaxis[e].opposite&&(O=-31-X.offsetX),X.show){var N=r.drawLine(O,a.globals.translateY+X.offsetY-2,O,a.globals.gridHeight+a.globals.translateY+X.offsetY+2,X.color,0,X.width);u.add(N)}return a.config.yaxis[e].axisTicks.show&&this.axesUtils.drawYAxisTicks(O,v,X,a.config.yaxis[e].axisTicks,e,x,u),u}},{key:"drawYaxisInversed",value:function(e){var t=this.w,a=new j(this.ctx),r=a.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),o=a.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(o);var n=t.globals.yAxisScale[e].result.length-1,c=t.globals.gridWidth/n+.1,h=c+t.config.xaxis.labels.offsetX,u=t.globals.xLabelFormatter,m=t.globals.yAxisScale[e].result.slice(),v=t.globals.timescaleLabels;v.length>0&&(this.xaxisLabels=v.slice(),n=(m=v.slice()).length),m=this.axesUtils.checkForReversedLabels(e,m);var x=v.length;if(t.config.xaxis.labels.show)for(var w=x?0:n;x?w<x:w>=0;x?w++:w--){var k=m[w];k=u(k,w,t);var E=t.globals.gridWidth+t.globals.padHorizontal-(h-c+t.config.xaxis.labels.offsetX);if(v.length){var L=this.axesUtils.getLabel(m,v,E,w,this.drawnLabels,this.xaxisFontSize);E=L.x,k=L.text,this.drawnLabels.push(L.text),w===0&&t.globals.skipFirstTimelinelabel&&(k=""),w===m.length-1&&t.globals.skipLastTimelinelabel&&(k="")}var I=a.drawText({x:E,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:k,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});o.add(I),I.tspan(k);var D=document.createElementNS(t.globals.SVGNS,"title");D.textContent=k,I.node.appendChild(D),h+=c}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,a=new j(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var o=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(o-=15);var n=a.drawLine(t.globals.padHorizontal+o+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.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,a=new j(this.ctx);if(t.config.xaxis.title.text!==void 0){var r=a.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),o=a.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});r.add(o),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var a=this.w,r=new j(this.ctx),o={width:0,height:0},n={width:0,height:0},c=a.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g"));c!==null&&(o=c.getBoundingClientRect());var h=a.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text"));if(h!==null&&(n=h.getBoundingClientRect()),h!==null){var u=this.xPaddingForYAxisTitle(e,o,n,t);h.setAttribute("x",u.xPos-(t?10:0))}if(h!==null){var m=r.rotateAroundCenter(h);h.setAttribute("transform","rotate(".concat(t?-1*a.config.yaxis[e].title.rotate:a.config.yaxis[e].title.rotate," ").concat(m.x," ").concat(m.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,a,r){var o=this.w,n=0,c=0,h=10;return o.config.yaxis[e].title.text===void 0||e<0?{xPos:c,padd:0}:(r?(c=t.width+o.config.yaxis[e].title.offsetX+a.width/2+h/2,(n+=1)===0&&(c-=h/2)):(c=-1*t.width+o.config.yaxis[e].title.offsetX+h/2+a.width/2,o.globals.isBarHorizontal&&(h=25,c=-1*t.width-o.config.yaxis[e].title.offsetX-h)),{xPos:c,padd:h})}},{key:"setYAxisXPosition",value:function(e,t){var a=this.w,r=0,o=0,n=18,c=1;a.config.yaxis.length>1&&(this.multipleYs=!0),a.config.yaxis.map(function(h,u){var m=a.globals.ignoreYAxisIndexes.indexOf(u)>-1||!h.show||h.floating||e[u].width===0,v=e[u].width+t[u].width;h.opposite?a.globals.isBarHorizontal?(o=a.globals.gridWidth+a.globals.translateX-1,a.globals.translateYAxisX[u]=o-h.labels.offsetX):(o=a.globals.gridWidth+a.globals.translateX+c,m||(c=c+v+20),a.globals.translateYAxisX[u]=o-h.labels.offsetX+20):(r=a.globals.translateX-n,m||(n=n+v+20),a.globals.translateYAxisX[u]=r+h.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis");(t=P.listToArray(t)).forEach(function(a,r){var o=e.config.yaxis[r];if(o&&!o.floating&&o.labels.align!==void 0){var n=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(r,"'] .apexcharts-yaxis-texts-g")),c=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(r,"'] .apexcharts-yaxis-label"));c=P.listToArray(c);var h=n.getBoundingClientRect();o.labels.align==="left"?(c.forEach(function(u,m){u.setAttribute("text-anchor","start")}),o.opposite||n.setAttribute("transform","translate(-".concat(h.width,", 0)"))):o.labels.align==="center"?(c.forEach(function(u,m){u.setAttribute("text-anchor","middle")}),n.setAttribute("transform","translate(".concat(h.width/2*(o.opposite?1:-1),", 0)"))):o.labels.align==="right"&&(c.forEach(function(u,m){u.setAttribute("text-anchor","end")}),o.opposite&&n.setAttribute("transform","translate(".concat(h.width,", 0)")))}})}}]),z}(),di=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.documentEvent=P.bind(this.documentEvent,this)}return y(z,[{key:"addEventListener",value:function(e,t){var a=this.w;a.globals.events.hasOwnProperty(e)?a.globals.events[e].push(t):a.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var a=this.w;if(a.globals.events.hasOwnProperty(e)){var r=a.globals.events[e].indexOf(t);r!==-1&&a.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var a=this.w;if(a.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=a.globals.events[e],o=r.length,n=0;n<o;n++)r[n].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,a=this.ctx,r=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(o){r.addEventListener(o,function(n){var c=Object.assign({},t,{seriesIndex:t.globals.capturedSeriesIndex,dataPointIndex:t.globals.capturedDataPointIndex});n.type==="mousemove"||n.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(n,a,c):n.type==="mouseleave"||n.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(n,a,c):(n.type==="mouseup"&&n.which===1||n.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(n,a,c),a.ctx.events.fireEvent("click",[n,a,c]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(o){t.globals.dom.baseEl.addEventListener(o,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,a=e.target.className;if(e.type==="click"){var r=t.globals.dom.baseEl.querySelector(".apexcharts-menu");r&&r.classList.contains("apexcharts-menu-open")&&a!=="apexcharts-menu-icon"&&r.classList.remove("apexcharts-menu-open")}t.globals.clientX=e.type==="touchmove"?e.touches[0].clientX:e.clientX,t.globals.clientY=e.type==="touchmove"?e.touches[0].clientY:e.clientY}}]),z}(),yt=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{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 a=t.filter(function(o){return o.name===e})[0];if(!a)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=P.extend(se,a);this.w.globals.locale=r.options}}]),z}(),wt=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"drawAxis",value:function(e,t){var a,r,o=this,n=this.w.globals,c=this.w.config,h=new We(this.ctx,t),u=new Lt(this.ctx,t);n.axisCharts&&e!=="radar"&&(n.isBarHorizontal?(r=u.drawYaxisInversed(0),a=h.drawXaxisInversed(0),n.dom.elGraphical.add(a),n.dom.elGraphical.add(r)):(a=h.drawXaxis(),n.dom.elGraphical.add(a),c.yaxis.map(function(m,v){if(n.ignoreYAxisIndexes.indexOf(v)===-1&&(r=u.drawYaxis(v),n.dom.Paper.add(r),o.w.config.grid.position==="back")){var x=n.dom.Paper.children()[1];x.remove(),n.dom.Paper.add(x)}})))}}]),z}(),St=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new j(this.ctx),a=new q(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,o=e.config.xaxis.crosshairs.dropShadow,n=e.config.xaxis.crosshairs.fill.type,c=r.colorFrom,h=r.colorTo,u=r.opacityFrom,m=r.opacityTo,v=r.stops,x=o.enabled,w=o.left,k=o.top,E=o.blur,L=o.color,I=o.opacity,D=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){n==="gradient"&&(D=t.drawGradient("vertical",c,h,u,m,null,v,null));var p=t.drawRect();e.config.xaxis.crosshairs.width===1&&(p=t.drawLine());var b=e.globals.gridHeight;(!P.isNumber(b)||b<0)&&(b=0);var C=e.config.xaxis.crosshairs.width;(!P.isNumber(C)||C<0)&&(C=0),p.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:C,height:b,fill:D,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}),x&&(p=a.dropShadow(p,{left:w,top:k,blur:E,color:L,opacity:I})),e.globals.dom.elGraphical.add(p)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new j(this.ctx),a=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var o=t.drawLine(-r,0,e.globals.gridWidth+r,0,a.stroke.color,a.stroke.dashArray,a.stroke.width);o.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(o)}var n=t.drawLine(-r,0,e.globals.gridWidth+r,0,a.stroke.color,0,0);n.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(n)}}]),z}(),Wt=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"checkResponsiveConfig",value:function(e){var t=this,a=this.w,r=a.config;if(r.responsive.length!==0){var o=r.responsive.slice();o.sort(function(u,m){return u.breakpoint>m.breakpoint?1:m.breakpoint>u.breakpoint?-1:0}).reverse();var n=new ye({}),c=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=o[0].breakpoint,v=window.innerWidth>0?window.innerWidth:screen.width;if(v>m){var x=U.extendArrayProps(n,a.globals.initialConfig,a);u=P.extend(x,u),u=P.extend(a.config,u),t.overrideResponsiveOptions(u)}else for(var w=0;w<o.length;w++)v<o[w].breakpoint&&(u=U.extendArrayProps(n,o[w].options,a),u=P.extend(a.config,u),t.overrideResponsiveOptions(u))};if(e){var h=U.extendArrayProps(n,e,a);h=P.extend(a.config,h),c(h=P.extend(h,e))}else c({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new ye(e).init({responsiveOverride:!0});this.w.config=t}}]),z}(),Qe=function(){function z(e){g(this,z),this.ctx=e,this.colors=[],this.w=e.w;var t=this.w;this.isColorFn=!1,this.isHeatmapDistributed=t.config.chart.type==="treemap"&&t.config.plotOptions.treemap.distributed||t.config.chart.type==="heatmap"&&t.config.plotOptions.heatmap.distributed,this.isBarDistributed=t.config.plotOptions.bar.distributed&&(t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")}return y(z,[{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e,t=this,a=this.w,r=new P;if(a.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(a.config.theme.mode)),a.config.colors===void 0||((e=a.config.colors)===null||e===void 0?void 0:e.length)===0?a.globals.colors=this.predefined():(a.globals.colors=a.config.colors,Array.isArray(a.config.colors)&&a.config.colors.length>0&&typeof a.config.colors[0]=="function"&&(a.globals.colors=a.config.series.map(function(k,E){var L=a.config.colors[E];return L||(L=a.config.colors[0]),typeof L=="function"?(t.isColorFn=!0,L({value:a.globals.axisCharts?a.globals.series[E][0]?a.globals.series[E][0]:0:a.globals.series[E],seriesIndex:E,dataPointIndex:E,w:a})):L}))),a.globals.seriesColors.map(function(k,E){k&&(a.globals.colors[E]=k)}),a.config.theme.monochrome.enabled){var o=[],n=a.globals.series.length;(this.isBarDistributed||this.isHeatmapDistributed)&&(n=a.globals.series[0].length*a.globals.series.length);for(var c=a.config.theme.monochrome.color,h=1/(n/a.config.theme.monochrome.shadeIntensity),u=a.config.theme.monochrome.shadeTo,m=0,v=0;v<n;v++){var x=void 0;u==="dark"?(x=r.shadeColor(-1*m,c),m+=h):(x=r.shadeColor(m,c),m+=h),o.push(x)}a.globals.colors=o.slice()}var w=a.globals.colors.slice();this.pushExtraColors(a.globals.colors),["fill","stroke"].forEach(function(k){a.config[k].colors===void 0?a.globals[k].colors=t.isColorFn?a.config.colors:w:a.globals[k].colors=a.config[k].colors.slice(),t.pushExtraColors(a.globals[k].colors)}),a.config.dataLabels.style.colors===void 0?a.globals.dataLabels.style.colors=w:a.globals.dataLabels.style.colors=a.config.dataLabels.style.colors.slice(),this.pushExtraColors(a.globals.dataLabels.style.colors,50),a.config.plotOptions.radar.polygons.fill.colors===void 0?a.globals.radarPolygons.fill.colors=[a.config.theme.mode==="dark"?"#424242":"none"]:a.globals.radarPolygons.fill.colors=a.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(a.globals.radarPolygons.fill.colors,20),a.config.markers.colors===void 0?a.globals.markers.colors=w:a.globals.markers.colors=a.config.markers.colors.slice(),this.pushExtraColors(a.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.w,o=t||r.globals.series.length;if(a===null&&(a=this.isBarDistributed||this.isHeatmapDistributed||r.config.chart.type==="heatmap"&&r.config.plotOptions.heatmap.colorScale.inverse),a&&r.globals.series.length&&(o=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.length<o)for(var n=o-e.length,c=0;c<n;c++)e.push(e[c])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode||"light",a=e.theme.palette?e.theme.palette:t==="dark"?"palette4":"palette1",r=e.chart.foreColor?e.chart.foreColor:t==="dark"?"#f6f7f8":"#373d3f";return e.tooltip.theme=t,e.chart.foreColor=r,e.theme.palette=a,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","#FF9800"];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}}]),z}(),pt=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,a=e==="title"?t.config.title:t.config.subtitle,r=t.globals.svgWidth/2,o=a.offsetY,n="middle";if(a.align==="left"?(r=10,n="start"):a.align==="right"&&(r=t.globals.svgWidth-10,n="end"),r+=a.offsetX,o=o+parseInt(a.style.fontSize,10)+a.margin/2,a.text!==void 0){var c=new j(this.ctx).drawText({x:r,y:o,text:a.text,textAnchor:n,fontSize:a.style.fontSize,fontFamily:a.style.fontFamily,fontWeight:a.style.fontWeight,foreColor:a.style.color,opacity:1});c.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(c)}}}]),z}(),gt=function(){function z(e){g(this,z),this.w=e.w,this.dCtx=e}return y(z,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,a=0,r=0,o=e==="title"?t.config.title.floating:t.config.subtitle.floating,n=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(n!==null&&!o){var c=n.getBoundingClientRect();a=c.width,r=t.globals.axisCharts?c.height+5:c.height}return{width:a,height:r}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||(t.style.maxHeight=e.globals.svgHeight/2+"px");var a=Object.assign({},P.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:a.x,y:a.y,height:a.height,width:a.height===0?0:a.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},e.config.legend.position!=="left"&&e.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getLargestStringFromMultiArr",value:function(e,t){var a=e;if(this.w.globals.isMultiLineX){var r=t.map(function(n,c){return Array.isArray(n)?n.length:1}),o=Math.max.apply(Math,W(r));a=t[r.indexOf(o)]}return a}}]),z}(),Gt=function(){function z(e){g(this,z),this.w=e.w,this.dCtx=e}return y(z,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,a=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&a.length===0&&(a=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var o=t.globals.xLabelFormatter,n=P.getLargestStringFromArr(a),c=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,a);t.globals.isBarHorizontal&&(c=n=t.globals.yAxisScale[0].result.reduce(function(k,E){return k.length>E.length?k:E},0));var h=new ee(this.dCtx.ctx),u=n;n=h.xLabelFormat(o,n,u,{i:void 0,dateFormatter:new K(this.dCtx.ctx).formatDate,w:t}),c=h.xLabelFormat(o,c,u,{i:void 0,dateFormatter:new K(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&n===void 0||String(n).trim()==="")&&(c=n="1");var m=new j(this.dCtx.ctx),v=m.getTextRects(n,t.config.xaxis.labels.style.fontSize),x=v;if(n!==c&&(x=m.getTextRects(c,t.config.xaxis.labels.style.fontSize)),(e={width:v.width>=x.width?v.width:x.width,height:v.height>=x.height?v.height:x.height}).width*a.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var w=function(k){return m.getTextRects(k,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};v=w(n),n!==c&&(x=w(c)),e.height=(v.height>x.height?v.height:x.height)/1.5,e.width=v.width>x.width?v.width:x.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 a,r=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,o=t.globals.groups.map(function(v){return v.title}),n=P.getLargestStringFromArr(o),c=this.dCtx.dimHelpers.getLargestStringFromMultiArr(n,o),h=new j(this.dCtx.ctx),u=h.getTextRects(n,r),m=u;return n!==c&&(m=h.getTextRects(c,r)),a={width:u.width>=m.width?u.width:m.width,height:u.height>=m.height?u.height:m.height},t.config.xaxis.labels.show||(a={width:0,height:0}),{width:a.width,height:a.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,a=0;if(e.config.xaxis.title.text!==void 0){var r=new j(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,a=r.height}return{width:t,height:a}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var a=this.dCtx.timescaleLabels.map(function(o){return o.value}),r=a.reduce(function(o,n){return o===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):o.length>n.length?o:n},0);return 1.05*(e=new j(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*a.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,a=this.w,r=a.globals,o=a.config,n=o.xaxis.type,c=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var h=a.config.yaxis[0].opposite&&a.globals.isBarHorizontal,u=function(m,v){o.yaxis.length>1&&function(x){return r.collapsedSeriesIndices.indexOf(x)!==-1}(v)||function(x){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var w=t.dCtx.timescaleLabels[0],k=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+c/1.75-t.dCtx.yAxisWidthRight,E=w.position-c/1.75+t.dCtx.yAxisWidthLeft,L=a.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;k>r.svgWidth-r.translateX-L&&(r.skipLastTimelinelabel=!0),E<-(x.show&&!x.floating||o.chart.type!=="bar"&&o.chart.type!=="candlestick"&&o.chart.type!=="rangeBar"&&o.chart.type!=="boxPlot"?10:c/1.75)&&(r.skipFirstTimelinelabel=!0)}else n==="datetime"?t.dCtx.gridPad.right<c&&!r.rotateXLabels&&(r.skipLastTimelinelabel=!0):n!=="datetime"&&t.dCtx.gridPad.right<c/2-t.dCtx.yAxisWidthRight&&!r.rotateXLabels&&!a.config.xaxis.labels.trim&&(a.config.xaxis.tickPlacement!=="between"||a.globals.isBarHorizontal)&&(t.dCtx.xPadRight=c/2+1)}(m)};o.yaxis.forEach(function(m,v){h?(t.dCtx.gridPad.left<c&&(t.dCtx.xPadLeft=c/2+1),t.dCtx.xPadRight=c/2+1):u(m,v)})}}]),z}(),dt=function(){function z(e){g(this,z),this.w=e.w,this.dCtx=e}return y(z,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,a=[],r=10,o=new ne(this.dCtx.ctx);return t.config.yaxis.map(function(n,c){var h={seriesIndex:c,dataPointIndex:-1,w:t},u=t.globals.yAxisScale[c],m=0;if(!o.isYAxisHidden(c)&&n.labels.show&&n.labels.minWidth!==void 0&&(m=n.labels.minWidth),!o.isYAxisHidden(c)&&n.labels.show&&u.result.length){var v=t.globals.yLabelFormatters[c],x=u.niceMin===Number.MIN_VALUE?0:u.niceMin,w=u.result.reduce(function(b,C){var X,O;return((X=String(v(b,h)))===null||X===void 0?void 0:X.length)>((O=String(v(C,h)))===null||O===void 0?void 0:O.length)?b:C},x),k=w=v(w,h);if(w!==void 0&&w.length!==0||(w=u.niceMax),t.globals.isBarHorizontal){r=0;var E=t.globals.labels.slice();w=P.getLargestStringFromArr(E),w=v(w,{seriesIndex:c,dataPointIndex:-1,w:t}),k=e.dCtx.dimHelpers.getLargestStringFromMultiArr(w,E)}var L=new j(e.dCtx.ctx),I="rotate(".concat(n.labels.rotate," 0 0)"),D=L.getTextRects(w,n.labels.style.fontSize,n.labels.style.fontFamily,I,!1),p=D;w!==k&&(p=L.getTextRects(k,n.labels.style.fontSize,n.labels.style.fontFamily,I,!1)),a.push({width:(m>p.width||m>D.width?m:p.width>D.width?p.width:D.width)+r,height:p.height>D.height?p.height:D.height})}else a.push({width:0,height:0})}),a}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,a=[];return t.config.yaxis.map(function(r,o){if(r.show&&r.title.text!==void 0){var n=new j(e.dCtx.ctx),c="rotate(".concat(r.title.rotate," 0 0)"),h=n.getTextRects(r.title.text,r.title.style.fontSize,r.title.style.fontFamily,c,!1);a.push({width:h.width,height:h.height})}else a.push({width:0,height:0})}),a}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,a=0,r=0,o=e.globals.yAxisScale.length>1?10:0,n=new ne(this.dCtx.ctx),c=function(h,u){var m=e.config.yaxis[u].floating,v=0;h.width>0&&!m?(v=h.width+o,function(x){return e.globals.ignoreYAxisIndexes.indexOf(x)>-1}(u)&&(v=v-h.width-o)):v=m||n.isYAxisHidden(u)?0:5,e.config.yaxis[u].opposite?r+=v:a+=v,t+=v};return e.globals.yLabelsCoords.map(function(h,u){c(h,u)}),e.globals.yTitleCoords.map(function(h,u){c(h,u)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=a,this.dCtx.yAxisWidthRight=r,t}}]),z}(),Ui=function(){function z(e){g(this,z),this.w=e.w,this.dCtx=e}return y(z,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,a=t.config,r=t.globals;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===a.series.length)return 0;var o=function(x){return x==="bar"||x==="rangeBar"||x==="candlestick"||x==="boxPlot"},n=a.chart.type,c=0,h=o(n)?a.series.length:1;if(r.comboBarCount>0&&(h=r.comboBarCount),r.collapsedSeries.forEach(function(x){o(x.type)&&(h-=1)}),a.chart.stacked&&(h=1),(o(n)||r.comboBarCount>0)&&r.isXNumeric&&!r.isBarHorizontal&&h>0){var u,m,v=Math.abs(r.initialMaxX-r.initialMinX);v<=3&&(v=r.dataPoints),u=v/e,r.minXDiff&&r.minXDiff/u>0&&(m=r.minXDiff/u),m>e/2&&(m/=2),(c=m*parseInt(a.plotOptions.bar.columnWidth,10)/100)<1&&(c=1),r.barPadForNumericAxis=c}return c}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,a=t.globals,r=this.dCtx.isSparkline||!t.globals.axisCharts?0:10;["title","subtitle"].forEach(function(c){t.config[c].text!==void 0?r+=t.config[c].margin:r+=e.dCtx.isSparkline||!t.globals.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||t.globals.axisCharts||(r+=10);var o=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),n=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");a.gridHeight=a.gridHeight-o.height-n.height-r,a.translateY=a.translateY+o.height+n.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var a=this.w,r=new ne(this.dCtx.ctx);a.config.yaxis.map(function(o,n){a.globals.ignoreYAxisIndexes.indexOf(n)!==-1||o.floating||r.isYAxisHidden(n)||(o.opposite&&(a.globals.translateX=a.globals.translateX-(t[n].width+e[n].width)-parseInt(a.config.yaxis[n].labels.style.fontSize,10)/1.2-12),a.globals.translateX<2&&(a.globals.translateX=2))})}}]),z}(),Vt=function(){function z(e){g(this,z),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 gt(this),this.dimYAxis=new dt(this),this.dimXAxis=new Gt(this),this.dimGrid=new Ui(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return y(z,[{key:"plotCoords",value:function(){var e=this,t=this.w,a=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(o){var n=G(o,2),c=n[0],h=n[1];e.gridPad[c]=Math.max(h,e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(t.config.stroke.width/2,this.gridPad.top),this.gridPad.bottom=Math.max(t.config.stroke.width/2,this.gridPad.bottom)),a.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),a.gridHeight=a.gridHeight-this.gridPad.top-this.gridPad.bottom,a.gridWidth=a.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var r=this.dimGrid.gridPadForColumnsInNumericAxis(a.gridWidth);a.gridWidth=a.gridWidth-2*r,a.translateX=a.translateX+this.gridPad.left+this.xPadLeft+(r>0?r+4:0),a.translateY=a.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,a=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),o=this.dimYAxis.getyAxisTitleCoords();t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(w,k){t.globals.yLabelsCoords.push({width:r[k].width,index:k}),t.globals.yTitleCoords.push({width:o[k].width,index:k})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var n=this.dimXAxis.getxAxisLabelsCoords(),c=this.dimXAxis.getxAxisGroupLabelsCoords(),h=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(n,h,c),a.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,a.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(a.rotateXLabels=!1,a.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),a.translateXAxisY=a.translateXAxisY+t.config.xaxis.labels.offsetY,a.translateXAxisX=a.translateXAxisX+t.config.xaxis.labels.offsetX;var u=this.yAxisWidth,m=this.xAxisHeight;a.xAxisLabelsHeight=this.xAxisHeight-h.height,a.xAxisGroupLabelsHeight=a.xAxisLabelsHeight-n.height,a.xAxisLabelsWidth=this.xAxisWidth,a.xAxisHeight=this.xAxisHeight;var v=10;(t.config.chart.type==="radar"||this.isSparkline)&&(u=0,m=a.goldenPadding),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(u=0,m=0,v=0),this.isSparkline||this.dimXAxis.additionalPaddingXLabels(n);var x=function(){a.translateX=u,a.gridHeight=a.svgHeight-e.lgRect.height-m-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),a.gridWidth=a.svgWidth-u};switch(t.config.xaxis.position==="top"&&(v=a.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":a.translateY=v,x();break;case"top":a.translateY=this.lgRect.height+v,x();break;case"left":a.translateY=v,a.translateX=this.lgRect.width+u,a.gridHeight=a.svgHeight-m-12,a.gridWidth=a.svgWidth-this.lgRect.width-u;break;case"right":a.translateY=v,a.translateX=u,a.gridHeight=a.svgHeight-m-12,a.gridWidth=a.svgWidth-this.lgRect.width-u-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(o,r),new Lt(this.ctx).setYAxisXPosition(r,o)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,a=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var o=a.chart.type==="pie"||a.chart.type==="polarArea"||a.chart.type==="donut"?"pie":"radialBar",n=a.plotOptions[o].offsetY,c=a.plotOptions[o].offsetX;if(!a.legend.show||a.legend.floating)return t.gridHeight=t.svgHeight-a.grid.padding.left+a.grid.padding.right,t.gridWidth=t.gridHeight,t.translateY=n,void(t.translateX=c+(t.svgWidth-t.gridWidth)/2);switch(a.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height-t.goldenPadding,t.gridWidth=t.svgWidth,t.translateY=n-10,t.translateX=c+(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=c+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight=a.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=c+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight=a.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=n,t.translateX=c+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,a){var r=this.w,o=r.globals.hasXaxisGroups?2:1,n=a.height+e.height+t.height,c=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,h=r.globals.rotateXLabels?22:10,u=r.globals.rotateXLabels&&r.config.legend.position==="bottom"?10:0;this.xAxisHeight=n*c+o*h+u,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeight<r.config.xaxis.labels.minHeight&&(this.xAxisHeight=r.config.xaxis.labels.minHeight),r.config.xaxis.floating&&(this.xAxisHeight=0);var m=0,v=0;r.config.yaxis.forEach(function(x){m+=x.labels.minWidth,v+=x.labels.maxWidth}),this.yAxisWidth<m&&(this.yAxisWidth=m),this.yAxisWidth>v&&(this.yAxisWidth=v)}}]),z}(),Zi=function(){function z(e){g(this,z),this.w=e.w,this.lgCtx=e}return y(z,[{key:"getLegendStyles",value:function(){var e,t,a,r=document.createElement("style");r.setAttribute("type","text/css");var o=((e=this.lgCtx.ctx)===null||e===void 0||(t=e.opts)===null||t===void 0||(a=t.chart)===null||a===void 0?void 0:a.nonce)||this.w.config.chart.nonce;o&&r.setAttribute("nonce",o);var n=document.createTextNode(` .apexcharts-legend { display: flex; overflow: auto; padding: 0 10px; } .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top { flex-wrap: wrap } .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left { flex-direction: column; bottom: 0; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left { justify-content: flex-start; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center { justify-content: center; } .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right { justify-content: flex-end; } .apexcharts-legend-series { cursor: pointer; line-height: normal; } .apexcharts-legend.apx-legend-position-bottom .apexcharts-legend-series, .apexcharts-legend.apx-legend-position-top .apexcharts-legend-series{ display: flex; align-items: center; } .apexcharts-legend-text { position: relative; font-size: 14px; } .apexcharts-legend-text *, .apexcharts-legend-marker * { pointer-events: none; } .apexcharts-legend-marker { position: relative; display: inline-block; cursor: pointer; margin-right: 3px; border-style: solid; } .apexcharts-legend.apexcharts-align-right .apexcharts-legend-series, .apexcharts-legend.apexcharts-align-left .apexcharts-legend-series{ display: inline-block; } .apexcharts-legend-series.apexcharts-no-click { cursor: auto; } .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series { display: none !important; } .apexcharts-inactive-legend { opacity: 0.45; }`);return r.appendChild(n),r}},{key:"getLegendBBox",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var a=this,r=this.w;if(r.globals.axisCharts||r.config.chart.type==="radialBar"){r.globals.resized=!0;var o=null,n=null;r.globals.risingSeries=[],r.globals.axisCharts?(o=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),n=parseInt(o.getAttribute("data:realIndex"),10)):(o=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),n=parseInt(o.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach(function(m){a.riseCollapsedSeries(m.cs,m.csi,n)}):this.hideSeries({seriesEl:o,realIndex:n})}else{var c=r.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),h=r.config.chart.type;if(h==="pie"||h==="polarArea"||h==="donut"){var u=r.config.plotOptions.pie.donut.labels;new j(this.lgCtx.ctx).pathMouseDown(c.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(c.members[0].node,u)}c.fire("click")}}},{key:"hideSeries",value:function(e){var t=e.seriesEl,a=e.realIndex,r=this.w,o=r.globals,n=P.clone(r.config.series);if(o.axisCharts){var c=r.config.yaxis[o.seriesYAxisReverseMap[a]];if(c&&c.show&&c.showAlways)o.ancillaryCollapsedSeriesIndices.indexOf(a)<0&&(o.ancillaryCollapsedSeries.push({index:a,data:n[a].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),o.ancillaryCollapsedSeriesIndices.push(a));else if(o.collapsedSeriesIndices.indexOf(a)<0){o.collapsedSeries.push({index:a,data:n[a].data.slice(),type:t.parentNode.className.baseVal.split("-")[1]}),o.collapsedSeriesIndices.push(a);var h=o.risingSeries.indexOf(a);o.risingSeries.splice(h,1)}}else o.collapsedSeries.push({index:a,data:n[a]}),o.collapsedSeriesIndices.push(a);for(var u=t.childNodes,m=0;m<u.length;m++)u[m].classList.contains("apexcharts-series-markers-wrap")&&(u[m].classList.contains("apexcharts-hide")?u[m].classList.remove("apexcharts-hide"):u[m].classList.add("apexcharts-hide"));o.allSeriesCollapsed=o.collapsedSeries.length+o.ancillaryCollapsedSeries.length===r.config.series.length,n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,r.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,a){var r=this.w,o=P.clone(r.config.series);if(e.length>0){for(var n=0;n<e.length;n++)e[n].index===a&&(r.globals.axisCharts?(o[a].data=e[n].data.slice(),e.splice(n,1),t.splice(n,1),r.globals.risingSeries.push(a)):(o[a]=e[n].data,e.splice(n,1),t.splice(n,1),r.globals.risingSeries.push(a)));o=this._getSeriesBasedOnCollapsedState(o),this.lgCtx.ctx.updateHelpers._updateSeries(o,r.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,a=0;return t.globals.axisCharts?e.forEach(function(r,o){t.globals.collapsedSeriesIndices.indexOf(o)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(o)<0||(e[o].data=[],a++)}):e.forEach(function(r,o){!t.globals.collapsedSeriesIndices.indexOf(o)<0&&(e[o]=0,a++)}),t.globals.allSeriesCollapsed=a===e.length,e}}]),z}(),Ai=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Zi(this)}return y(z,[{key:"init",value:function(){var e=this.w,t=e.globals,a=e.config;if((a.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1||!t.axisCharts)&&a.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),P.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.legendHelpers.getLegendStyles()):this.legendHelpers.appendToForeignObject(),a.legend.position==="bottom"||a.legend.position==="top"?this.legendAlignHorizontal():a.legend.position!=="right"&&a.legend.position!=="left"||this.legendAlignVertical()}}},{key:"drawLegends",value:function(){var e=this,t=this.w,a=t.config.legend.fontFamily,r=t.globals.seriesNames,o=t.globals.colors.slice();if(t.config.chart.type==="heatmap"){var n=t.config.plotOptions.heatmap.colorScale.ranges;r=n.map(function(ae){return ae.name?ae.name:ae.from+" - "+ae.to}),o=n.map(function(ae){return ae.color})}else this.isBarsDistributed&&(r=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(r=t.config.legend.customLegendItems);for(var c=t.globals.legendFormatter,h=t.config.legend.inverseOrder,u=h?r.length-1:0;h?u>=0:u<=r.length-1;h?u--:u++){var m,v=c(r[u],{seriesIndex:u,w:t}),x=!1,w=!1;if(t.globals.collapsedSeries.length>0)for(var k=0;k<t.globals.collapsedSeries.length;k++)t.globals.collapsedSeries[k].index===u&&(x=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var E=0;E<t.globals.ancillaryCollapsedSeriesIndices.length;E++)t.globals.ancillaryCollapsedSeriesIndices[E]===u&&(w=!0);var L=document.createElement("span");L.classList.add("apexcharts-legend-marker");var I=t.config.legend.markers.offsetX,D=t.config.legend.markers.offsetY,p=t.config.legend.markers.height,b=t.config.legend.markers.width,C=t.config.legend.markers.strokeWidth,X=t.config.legend.markers.strokeColor,O=t.config.legend.markers.radius,N=L.style;N.background=o[u],N.color=o[u],N.setProperty("background",o[u],"important"),t.config.legend.markers.fillColors&&t.config.legend.markers.fillColors[u]&&(N.background=t.config.legend.markers.fillColors[u]),t.globals.seriesColors[u]!==void 0&&(N.background=t.globals.seriesColors[u],N.color=t.globals.seriesColors[u]),N.height=Array.isArray(p)?parseFloat(p[u])+"px":parseFloat(p)+"px",N.width=Array.isArray(b)?parseFloat(b[u])+"px":parseFloat(b)+"px",N.left=(Array.isArray(I)?parseFloat(I[u]):parseFloat(I))+"px",N.top=(Array.isArray(D)?parseFloat(D[u]):parseFloat(D))+"px",N.borderWidth=Array.isArray(C)?C[u]:C,N.borderColor=Array.isArray(X)?X[u]:X,N.borderRadius=Array.isArray(O)?parseFloat(O[u])+"px":parseFloat(O)+"px",t.config.legend.markers.customHTML&&(Array.isArray(t.config.legend.markers.customHTML)?t.config.legend.markers.customHTML[u]&&(L.innerHTML=t.config.legend.markers.customHTML[u]()):L.innerHTML=t.config.legend.markers.customHTML()),j.setAttrs(L,{rel:u+1,"data:collapsed":x||w}),(x||w)&&L.classList.add("apexcharts-inactive-legend");var $=document.createElement("div"),V=document.createElement("span");V.classList.add("apexcharts-legend-text"),V.innerHTML=Array.isArray(v)?v.join(" "):v;var re=t.config.legend.labels.useSeriesColors?t.globals.colors[u]:Array.isArray(t.config.legend.labels.colors)?(m=t.config.legend.labels.colors)===null||m===void 0?void 0:m[u]:t.config.legend.labels.colors;re||(re=t.config.chart.foreColor),V.style.color=re,V.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",V.style.fontWeight=t.config.legend.fontWeight,V.style.fontFamily=a||t.config.chart.fontFamily,j.setAttrs(V,{rel:u+1,i:u,"data:default-text":encodeURIComponent(v),"data:collapsed":x||w}),$.appendChild(L),$.appendChild(V);var ie=new U(this.ctx);t.config.legend.showForZeroSeries||ie.getSeriesTotalByIndex(u)===0&&ie.seriesHaveSameValues(u)&&!ie.isSeriesNull(u)&&t.globals.collapsedSeriesIndices.indexOf(u)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(u)===-1&&$.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||ie.isSeriesNull(u)&&t.globals.collapsedSeriesIndices.indexOf(u)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(u)===-1&&$.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild($),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),$.classList.add("apexcharts-legend-series"),$.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":"",j.setAttrs($,{rel:u+1,seriesName:P.escapeString(r[u]),"data:collapsed":x||w}),(x||w)&&$.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||$.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&t.config.legend.customLegendItems.length===0&&(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 a=this.w,r=a.globals.dom.elLegendWrap,o=r.getBoundingClientRect(),n=0,c=0;if(a.config.legend.position==="bottom")c+=a.globals.svgHeight-o.height/2;else if(a.config.legend.position==="top"){var h=new Vt(this.ctx),u=h.dimHelpers.getTitleSubtitleCoords("title").height,m=h.dimHelpers.getTitleSubtitleCoords("subtitle").height;c=c+(u>0?u-10:0)+(m>0?m-10:0)}r.style.position="absolute",n=n+e+a.config.legend.offsetX,c=c+t+a.config.legend.offsetY,r.style.left=n+"px",r.style.top=c+"px",a.config.legend.position==="bottom"?(r.style.top="auto",r.style.bottom=5-a.config.legend.offsetY+"px"):a.config.legend.position==="right"&&(r.style.left="auto",r.style.right=25+a.config.legend.offsetX+"px"),["width","height"].forEach(function(v){r.style[v]&&(r.style[v]=parseInt(a.config.legend[v],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=this.legendHelpers.getLegendBBox(),a=new Vt(this.ctx),r=a.dimHelpers.getTitleSubtitleCoords("title"),o=a.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;e.config.legend.position==="bottom"?n=-t.clwh/1.8:e.config.legend.position==="top"&&(n=r.height+o.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.getLegendBBox(),a=0;e.config.legend.position==="left"&&(a=20),e.config.legend.position==="right"&&(a=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(a,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,a=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(a){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new Le(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&a&&new Le(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 a=parseInt(e.target.getAttribute("rel"),10)-1,r=e.target.getAttribute("data:collapsed")==="true",o=this.w.config.chart.events.legendClick;typeof o=="function"&&o(this.ctx,a,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,a,this.w]);var n=this.w.config.legend.markers.onClick;typeof n=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(n(this.ctx,a,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,a,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(a,r)}}}]),z}(),Er=function(){function z(e){g(this,z),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 y(z,[{key:"createToolbar",value:function(){var e=this,t=this.w,a=function(){return document.createElement("div")},r=a();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=a(),this.elZoomIn=a(),this.elZoomOut=a(),this.elPan=a(),this.elSelection=a(),this.elZoomReset=a(),this.elMenuIcon=a(),this.elMenu=a(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var o=0;o<this.t.customIcons.length;o++)this.elCustomIcons.push(a());var n=[],c=function(v,x,w){var k=v.toLowerCase();e.t[k]&&t.config.chart.zoom.enabled&&n.push({el:x,icon:typeof e.t[k]=="string"?e.t[k]:w,title:e.localeValues[v],class:"apexcharts-".concat(k,"-icon")})};c("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> <path d="M0 0h24v24H0z" fill="none"/> <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"/> </svg> `),c("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> <path d="M0 0h24v24H0z" fill="none"/> <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"/> </svg> `);var h=function(v){e.t[v]&&t.config.chart[v].enabled&&n.push({el:v==="zoom"?e.elZoom:e.elSelection,icon:typeof e.t[v]=="string"?e.t[v]:v==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24"> <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"/> <path d="M0 0h24v24H0V0z" fill="none"/> <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/> </svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M0 0h24v24H0z" fill="none"/> <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"/> </svg>`,title:e.localeValues[v==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(v,"-icon")})};h("zoom"),h("selection"),this.t.pan&&t.config.chart.zoom.enabled&&n.push({el:this.elPan,icon:typeof this.t.pan=="string"?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"> <defs> <path d="M0 0h24v24H0z" id="a"/> </defs> <clipPath id="b"> <use overflow="visible" xlink:href="#a"/> </clipPath> <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-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"/> </svg>`,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),c("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> <path d="M0 0h24v24H0z" fill="none"/> </svg>`),this.t.download&&n.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?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 u=0;u<this.elCustomIcons.length;u++)n.push({el:this.elCustomIcons[u],icon:this.t.customIcons[u].icon,title:this.t.customIcons[u].title,index:this.t.customIcons[u].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[u].class});n.forEach(function(v,x){v.index&&P.moveIndexInArray(n,x,v.index)});for(var m=0;m<n.length;m++)j.setAttrs(n[m].el,{class:n[m].class,title:n[m].title}),n[m].el.innerHTML=n[m].icon,r.appendChild(n[m].el);this._createHamburgerMenu(r),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),j.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}],a=0;a<t.length;a++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[a].innerHTML=t[a].title,j.setAttrs(this.elMenuItems[a],{class:"apexcharts-menu-item ".concat(t[a].name),title:t[a].title}),this.elMenu.appendChild(this.elMenuItems[a])}},{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(a){a.classList.contains("exportSVG")?a.addEventListener("click",e.handleDownload.bind(e,"svg")):a.classList.contains("exportPNG")?a.addEventListener("click",e.handleDownload.bind(e,"png")):a.classList.contains("exportCSV")&&a.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 a=e==="selection"?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,r=e==="selection"?"selectionEnabled":"zoomEnabled";t.w.globals[r]=!t.w.globals[r],a.classList.contains(t.ctx.toolbar.selectedClass)?a.classList.remove(t.ctx.toolbar.selectedClass):a.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(),e==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t=e==="pan"?this.elPan:this.elZoom,a=e==="pan"?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),a&&a.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(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(a){a&&a.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.minX+t)/2,r=(this.maxX+t)/2,o=this._getNewMinXMaxX(a,r);e.globals.disableZoomIn||this.zoomUpdateOptions(o.minX,o.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!(e.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,a=this.minX-(t-this.minX),r=this.maxX-(t-this.maxX),o=this._getNewMinXMaxX(a,r);e.globals.disableZoomOut||this.zoomUpdateOptions(o.minX,o.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var a=this.w.config.xaxis.convertedCatToNumeric;return{minX:a?Math.floor(e):e,maxX:a?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var a=this.w;if(e!==void 0||t!==void 0){if(!(a.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=a.globals.dataPoints),t-e<2))){var r={min:e,max:t},o=this.getBeforeZoomRange(r);o&&(r=o.xaxis);var n={xaxis:r},c=P.clone(a.globals.initialConfig.yaxis);a.config.chart.group||(n.yaxis=c),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(n,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,c)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){typeof this.ev.zoomed=="function"&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var a=null;return typeof this.ev.beforeZoom=="function"&&(a=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),a}},{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,a=new Je(this.ctx);switch(e){case"svg":a.exportToSVG(this.ctx);break;case"png":a.exportToPng(this.ctx);break;case"csv":a.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 a=t.w;if(a.globals.lastXAxis.min=a.globals.initialConfig.xaxis.min,a.globals.lastXAxis.max=a.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),typeof a.config.chart.events.beforeResetZoom=="function"){var r=a.config.chart.events.beforeResetZoom(t,a);r&&t.updateHelpers.revertDefaultAxisMinMax(r)}typeof a.config.chart.events.zoomed=="function"&&t.ctx.toolbar.zoomCallback({min:a.config.xaxis.min,max:a.config.xaxis.max}),a.globals.zoomed=!1;var o=t.ctx.series.emptyCollapsedSeries(P.clone(a.globals.initialSeries));t.updateHelpers._updateSeries(o,a.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}}]),z}(),wl=function(z){M(t,Er);var e=Y(t);function t(a){var r;return g(this,t),(r=e.call(this,a)).ctx=a,r.w=a.w,r.dragged=!1,r.graphics=new j(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r}return y(t,[{key:"init",value:function(a){var r=this,o=a.xyRatios,n=this.w,c=this;this.xyRatios=o,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),n.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):n.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=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(h){r.hoverArea.addEventListener(h,c.svgMouseEvents.bind(c,o),{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(a,r){var o=this.w,n=this,c=this.ctx.toolbar,h=o.globals.zoomEnabled?o.config.chart.zoom.type:o.config.chart.selection.type,u=o.config.chart.toolbar.autoSelected;if(r.shiftKey?(this.shiftWasPressed=!0,c.enableZoomPanFromToolbar(u==="pan"?"zoom":"pan")):this.shiftWasPressed&&(c.enableZoomPanFromToolbar(u),this.shiftWasPressed=!1),r.target){var m,v=r.target.classList;if(r.target.parentNode&&r.target.parentNode!==null&&(m=r.target.parentNode.classList),!(v.contains("apexcharts-selection-rect")||v.contains("apexcharts-legend-marker")||v.contains("apexcharts-legend-text")||m&&m.contains("apexcharts-toolbar"))){if(n.clientX=r.type==="touchmove"||r.type==="touchstart"?r.touches[0].clientX:r.type==="touchend"?r.changedTouches[0].clientX:r.clientX,n.clientY=r.type==="touchmove"||r.type==="touchstart"?r.touches[0].clientY:r.type==="touchend"?r.changedTouches[0].clientY:r.clientY,(r.type==="mousedown"||r.type==="touchmove")&&r.which===1){var x=n.gridRect.getBoundingClientRect();n.startX=n.clientX-x.left,n.startY=n.clientY-x.top,n.dragged=!1,n.w.globals.mousedown=!0}if(r.type==="mousemove"&&r.which===1||r.type==="touchmove")if(n.dragged=!0,o.globals.panEnabled){if(o.globals.selection=null,n.w.globals.mousedown||r.type==="touchmove"){if(r.type==="touchmove"&&!n.w.globals.mousedown){console.warn("me.w.globals.mousedown ",n.w.globals.mousedown);var w=n.gridRect.getBoundingClientRect();n.startX=n.clientX-w.left,n.startY=n.clientY-w.top,n.w.globals.mousedown=!0}n.panDragging({context:n,zoomtype:h,xyRatios:a})}}else{if(r.type==="touchmove"){if(!n.w.globals.mousedown){var k=n.gridRect.getBoundingClientRect();n.startX=n.clientX-k.left,n.startY=n.clientY-k.top}n.w.globals.mousedown=!0}(n.w.globals.mousedown&&o.globals.zoomEnabled||n.w.globals.mousedown&&o.globals.selectionEnabled)&&(n.selection=n.selectionDrawing({context:n,zoomtype:h}))}if(r.type==="mouseup"||r.type==="touchend"||r.type==="mouseleave"){var E=n.gridRect.getBoundingClientRect();n.w.globals.mousedown&&(n.endX=n.clientX-E.left,n.endY=n.clientY-E.top,n.dragX=Math.abs(n.endX-n.startX),n.dragY=Math.abs(n.endY-n.startY),(o.globals.zoomEnabled||o.globals.selectionEnabled)&&n.selectionDrawn({context:n,zoomtype:h}),o.globals.panEnabled&&o.config.xaxis.convertedCatToNumeric&&n.delayedPanScrolled()),o.globals.zoomEnabled&&n.hideSelectionRect(this.selectionRect),n.dragged=!1,n.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"makeSelectionRectDraggable",value:function(){var a=this.w;if(this.selectionRect){var r=this.selectionRect.node.getBoundingClientRect();r.width>0&&r.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:a.globals.gridWidth,maxY:a.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var a=this.w,r=this.xyRatios;if(!a.globals.zoomEnabled){if(a.globals.selection!==void 0&&a.globals.selection!==null)this.drawSelectionRect(a.globals.selection);else if(a.config.chart.selection.xaxis.min!==void 0&&a.config.chart.selection.xaxis.max!==void 0){var o=(a.config.chart.selection.xaxis.min-a.globals.minX)/r.xRatio,n=a.globals.gridWidth-(a.globals.maxX-a.config.chart.selection.xaxis.max)/r.xRatio-o;a.globals.isRangeBar&&(o=(a.config.chart.selection.xaxis.min-a.globals.yAxisScale[0].niceMin)/r.invertedYRatio,n=(a.config.chart.selection.xaxis.max-a.config.chart.selection.xaxis.min)/r.invertedYRatio);var c={x:o,y:0,width:n,height:a.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(c),this.makeSelectionRectDraggable(),typeof a.config.chart.events.selection=="function"&&a.config.chart.events.selection(this.ctx,{xaxis:{min:a.config.chart.selection.xaxis.min,max:a.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(a){var r=a.x,o=a.y,n=a.width,c=a.height,h=a.translateX,u=h===void 0?0:h,m=a.translateY,v=m===void 0?0:m,x=this.w,w=this.zoomRect,k=this.selectionRect;if(this.dragged||x.globals.selection!==null){var E={transform:"translate("+u+", "+v+")"};x.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),w.attr({x:r,y:o,width:n,height:c,fill:x.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":x.config.chart.zoom.zoomedArea.fill.opacity,stroke:x.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":x.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":x.config.chart.zoom.zoomedArea.stroke.opacity}),j.setAttrs(w.node,E)),x.globals.selectionEnabled&&(k.attr({x:r,y:o,width:n>0?n:0,height:c>0?c:0,fill:x.config.chart.selection.fill.color,"fill-opacity":x.config.chart.selection.fill.opacity,stroke:x.config.chart.selection.stroke.color,"stroke-width":x.config.chart.selection.stroke.width,"stroke-dasharray":x.config.chart.selection.stroke.dashArray,"stroke-opacity":x.config.chart.selection.stroke.opacity}),j.setAttrs(k.node,E))}}},{key:"hideSelectionRect",value:function(a){a&&a.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(a){var r=a.context,o=a.zoomtype,n=this.w,c=r,h=this.gridRect.getBoundingClientRect(),u=c.startX-1,m=c.startY,v=!1,x=!1,w=c.clientX-h.left-u,k=c.clientY-h.top-m,E={};return Math.abs(w+u)>n.globals.gridWidth?w=n.globals.gridWidth-u:c.clientX-h.left<0&&(w=u),u>c.clientX-h.left&&(v=!0,w=Math.abs(w)),m>c.clientY-h.top&&(x=!0,k=Math.abs(k)),E=o==="x"?{x:v?u-w:u,y:0,width:w,height:n.globals.gridHeight}:o==="y"?{x:0,y:x?m-k:m,width:n.globals.gridWidth,height:k}:{x:v?u-w:u,y:x?m-k:m,width:w,height:k},c.drawSelectionRect(E),c.selectionDragging("resizing"),E}},{key:"selectionDragging",value:function(a,r){var o=this,n=this.w,c=this.xyRatios,h=this.selectionRect,u=0;a==="resizing"&&(u=30);var m=function(x){return parseFloat(h.node.getAttribute(x))},v={x:m("x"),y:m("y"),width:m("width"),height:m("height")};n.globals.selection=v,typeof n.config.chart.events.selection=="function"&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var x,w,k,E,L=o.gridRect.getBoundingClientRect(),I=h.node.getBoundingClientRect();n.globals.isRangeBar?(x=n.globals.yAxisScale[0].niceMin+(I.left-L.left)*c.invertedYRatio,w=n.globals.yAxisScale[0].niceMin+(I.right-L.left)*c.invertedYRatio,k=0,E=1):(x=n.globals.xAxisScale.niceMin+(I.left-L.left)*c.xRatio,w=n.globals.xAxisScale.niceMin+(I.right-L.left)*c.xRatio,k=n.globals.yAxisScale[0].niceMin+(L.bottom-I.bottom)*c.yRatio[0],E=n.globals.yAxisScale[0].niceMax-(I.top-L.top)*c.yRatio[0]);var D={xaxis:{min:x,max:w},yaxis:{min:k,max:E}};n.config.chart.events.selection(o.ctx,D),n.config.chart.brush.enabled&&n.config.chart.events.brushScrolled!==void 0&&n.config.chart.events.brushScrolled(o.ctx,D)},u))}},{key:"selectionDrawn",value:function(a){var r=a.context,o=a.zoomtype,n=this.w,c=r,h=this.xyRatios,u=this.ctx.toolbar;if(c.startX>c.endX){var m=c.startX;c.startX=c.endX,c.endX=m}if(c.startY>c.endY){var v=c.startY;c.startY=c.endY,c.endY=v}var x=void 0,w=void 0;n.globals.isRangeBar?(x=n.globals.yAxisScale[0].niceMin+c.startX*h.invertedYRatio,w=n.globals.yAxisScale[0].niceMin+c.endX*h.invertedYRatio):(x=n.globals.xAxisScale.niceMin+c.startX*h.xRatio,w=n.globals.xAxisScale.niceMin+c.endX*h.xRatio);var k=[],E=[];if(n.config.yaxis.forEach(function(X,O){if(n.globals.seriesYAxisMap[O].length>0){var N=n.globals.seriesYAxisMap[O][0];k.push(n.globals.yAxisScale[O].niceMax-h.yRatio[N]*c.startY),E.push(n.globals.yAxisScale[O].niceMax-h.yRatio[N]*c.endY)}}),c.dragged&&(c.dragX>10||c.dragY>10)&&x!==w){if(n.globals.zoomEnabled){var L=P.clone(n.globals.initialConfig.yaxis),I=P.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(x=Math.floor(x),w=Math.floor(w),x<1&&(x=1,w=n.globals.dataPoints),w-x<2&&(w=x+1)),o!=="xy"&&o!=="x"||(I={min:x,max:w}),o!=="xy"&&o!=="y"||L.forEach(function(X,O){L[O].min=E[O],L[O].max=k[O]}),u){var D=u.getBeforeZoomRange(I,L);D&&(I=D.xaxis?D.xaxis:I,L=D.yaxis?D.yaxis:L)}var p={xaxis:I};n.config.chart.group||(p.yaxis=L),c.ctx.updateHelpers._updateOptions(p,!1,c.w.config.chart.animations.dynamicAnimation.enabled),typeof n.config.chart.events.zoomed=="function"&&u.zoomCallback(I,L)}else if(n.globals.selectionEnabled){var b,C=null;b={min:x,max:w},o!=="xy"&&o!=="y"||(C=P.clone(n.config.yaxis)).forEach(function(X,O){C[O].min=E[O],C[O].max=k[O]}),n.globals.selection=c.selection,typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(c.ctx,{xaxis:b,yaxis:C})}}}},{key:"panDragging",value:function(a){var r=a.context,o=this.w,n=r;if(o.globals.lastClientPosition.x!==void 0){var c=o.globals.lastClientPosition.x-n.clientX,h=o.globals.lastClientPosition.y-n.clientY;Math.abs(c)>Math.abs(h)&&c>0?this.moveDirection="left":Math.abs(c)>Math.abs(h)&&c<0?this.moveDirection="right":Math.abs(h)>Math.abs(c)&&h>0?this.moveDirection="up":Math.abs(h)>Math.abs(c)&&h<0&&(this.moveDirection="down")}o.globals.lastClientPosition={x:n.clientX,y:n.clientY};var u=o.globals.isRangeBar?o.globals.minY:o.globals.minX,m=o.globals.isRangeBar?o.globals.maxY:o.globals.maxX;o.config.xaxis.convertedCatToNumeric||n.panScrolled(u,m)}},{key:"delayedPanScrolled",value:function(){var a=this.w,r=a.globals.minX,o=a.globals.maxX,n=(a.globals.maxX-a.globals.minX)/2;this.moveDirection==="left"?(r=a.globals.minX+n,o=a.globals.maxX+n):this.moveDirection==="right"&&(r=a.globals.minX-n,o=a.globals.maxX-n),r=Math.floor(r),o=Math.floor(o),this.updateScrolledChart({xaxis:{min:r,max:o}},r,o)}},{key:"panScrolled",value:function(a,r){var o=this.w,n=this.xyRatios,c=P.clone(o.globals.initialConfig.yaxis),h=n.xRatio,u=o.globals.minX,m=o.globals.maxX;o.globals.isRangeBar&&(h=n.invertedYRatio,u=o.globals.minY,m=o.globals.maxY),this.moveDirection==="left"?(a=u+o.globals.gridWidth/15*h,r=m+o.globals.gridWidth/15*h):this.moveDirection==="right"&&(a=u-o.globals.gridWidth/15*h,r=m-o.globals.gridWidth/15*h),o.globals.isRangeBar||(a<o.globals.initialMinX||r>o.globals.initialMaxX)&&(a=u,r=m);var v={xaxis:{min:a,max:r}};o.config.chart.group||(v.yaxis=c),this.updateScrolledChart(v,a,r)}},{key:"updateScrolledChart",value:function(a,r,o){var n=this.w;this.ctx.updateHelpers._updateOptions(a,!1,!1),typeof n.config.chart.events.scrolled=="function"&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:r,max:o}})}}]),t}(),Tr=function(){function z(e){g(this,z),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return y(z,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,a=e.elGrid,r=e.clientX,o=e.clientY,n=this.w,c=a.getBoundingClientRect(),h=c.width,u=c.height,m=h/(n.globals.dataPoints-1),v=u/n.globals.dataPoints,x=this.hasBars();!n.globals.comboCharts&&!x||n.config.xaxis.convertedCatToNumeric||(m=h/n.globals.dataPoints);var w=r-c.left-n.globals.barPadForNumericAxis,k=o-c.top;w<0||k<0||w>h||k>u?(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 E=Math.round(w/m),L=Math.floor(k/v);x&&!n.config.xaxis.convertedCatToNumeric&&(E=Math.ceil(w/m),E-=1);var I=null,D=null,p=n.globals.seriesXvalues.map(function(N){return N.filter(function($){return P.isNumber($)})}),b=n.globals.seriesYvalues.map(function(N){return N.filter(function($){return P.isNumber($)})});if(n.globals.isXNumeric){var C=this.ttCtx.getElGrid().getBoundingClientRect(),X=w*(C.width/h),O=k*(C.height/u);I=(D=this.closestInMultiArray(X,O,p,b)).index,E=D.j,I!==null&&(p=n.globals.seriesXvalues[I],E=(D=this.closestInArray(X,p)).index)}return n.globals.capturedSeriesIndex=I===null?-1:I,(!E||E<1)&&(E=0),n.globals.isBarHorizontal?n.globals.capturedDataPointIndex=L:n.globals.capturedDataPointIndex=E,{capturedSeries:I,j:n.globals.isBarHorizontal?L:E,hoverX:w,hoverY:k}}},{key:"closestInMultiArray",value:function(e,t,a,r){var o=this.w,n=0,c=null,h=-1;o.globals.series.length>1?n=this.getFirstActiveXArray(a):c=0;var u=a[n][0],m=Math.abs(e-u);if(a.forEach(function(w){w.forEach(function(k,E){var L=Math.abs(e-k);L<=m&&(m=L,h=E)})}),h!==-1){var v=r[n][h],x=Math.abs(t-v);c=n,r.forEach(function(w,k){var E=Math.abs(t-w[h]);E<=x&&(x=E,c=k)})}return{index:c,j:h}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,a=0,r=e.map(function(n,c){return n.length>0?c:-1}),o=0;o<r.length;o++)if(r[o]!==-1&&t.globals.collapsedSeriesIndices.indexOf(o)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(o)===-1){a=r[o];break}return a}},{key:"closestInArray",value:function(e,t){for(var a=t[0],r=null,o=Math.abs(e-a),n=0;n<t.length;n++){var c=Math.abs(e-t[n]);c<o&&(o=c,r=n)}return{index:r}}},{key:"isXoverlap",value:function(e){var t=[],a=this.w.globals.seriesX.filter(function(o){return o[0]!==void 0});if(a.length>0)for(var r=0;r<a.length-1;r++)a[r][e]!==void 0&&a[r+1][e]!==void 0&&a[r][e]!==a[r+1][e]&&t.push("unEqual");return t.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,a=0;a<t.length-1;a++)if(t[a].data.length!==t[a+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return W(e).reduce(function(t,a){return t+a.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return typeof e=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=W(e)).sort(function(a,r){var o=Number(a.getAttribute("data:realIndex")),n=Number(r.getAttribute("data:realIndex"));return n<o?1:n>o?-1:0});var t=[];return e.forEach(function(a){t.push(a.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{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,a=t.config.markers.hover.size;return a===void 0&&(a=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),a}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,a=this.ttCtx;a.allTooltipSeriesGroups.length===0&&(a.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=a.allTooltipSeriesGroups,o=0;o<r.length;o++)e==="enable"?(r[o].classList.add("apexcharts-active"),r[o].style.display=t.config.tooltip.items.display):(r[o].classList.remove("apexcharts-active"),r[o].style.display="none")}}]),z}(),Sl=function(){function z(e){g(this,z),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new Tr(e)}return y(z,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,a=t===void 0||t,r=e.ttItems,o=e.i,n=o===void 0?0:o,c=e.j,h=c===void 0?null:c,u=e.y1,m=e.y2,v=e.e,x=this.w;x.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:n,j:h,y1:u,y2:m,w:x}):this.toggleActiveInactiveSeries(a);var w=this.getValuesToPrint({i:n,j:h});this.printLabels({i:n,j:h,values:w,ttItems:r,shared:a,e:v});var k=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=k.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=k.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,a=this,r=e.i,o=e.j,n=e.values,c=e.ttItems,h=e.shared,u=e.e,m=this.w,v=[],x=function(C){return m.globals.seriesGoals[C]&&m.globals.seriesGoals[C][o]&&Array.isArray(m.globals.seriesGoals[C][o])},w=n.xVal,k=n.zVal,E=n.xAxisTTVal,L="",I=m.globals.colors[r];o!==null&&m.config.plotOptions.bar.distributed&&(I=m.globals.colors[o]);for(var D=function(C,X){var O=a.getFormatters(r);L=a.getSeriesName({fn:O.yLbTitleFormatter,index:r,seriesIndex:r,j:o}),m.config.chart.type==="treemap"&&(L=O.yLbTitleFormatter(String(m.config.series[r].data[o].x),{series:m.globals.series,seriesIndex:r,dataPointIndex:o,w:m}));var N=m.config.tooltip.inverseOrder?X:C;if(m.globals.axisCharts){var $=function(ie){var ae,ce,me,xe;return m.globals.isRangeData?O.yLbFormatter((ae=m.globals.seriesRangeStart)===null||ae===void 0||(ce=ae[ie])===null||ce===void 0?void 0:ce[o],{series:m.globals.seriesRangeStart,seriesIndex:ie,dataPointIndex:o,w:m})+" - "+O.yLbFormatter((me=m.globals.seriesRangeEnd)===null||me===void 0||(xe=me[ie])===null||xe===void 0?void 0:xe[o],{series:m.globals.seriesRangeEnd,seriesIndex:ie,dataPointIndex:o,w:m}):O.yLbFormatter(m.globals.series[ie][o],{series:m.globals.series,seriesIndex:ie,dataPointIndex:o,w:m})};if(h)O=a.getFormatters(N),L=a.getSeriesName({fn:O.yLbTitleFormatter,index:N,seriesIndex:r,j:o}),I=m.globals.colors[N],t=$(N),x(N)&&(v=m.globals.seriesGoals[N][o].map(function(ie){return{attrs:ie,val:O.yLbFormatter(ie.value,{seriesIndex:N,dataPointIndex:o,w:m})}}));else{var V,re=u==null||(V=u.target)===null||V===void 0?void 0:V.getAttribute("fill");re&&(I=re.indexOf("url")!==-1?document.querySelector(re.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke"):re),t=$(r),x(r)&&Array.isArray(m.globals.seriesGoals[r][o])&&(v=m.globals.seriesGoals[r][o].map(function(ie){return{attrs:ie,val:O.yLbFormatter(ie.value,{seriesIndex:r,dataPointIndex:o,w:m})}}))}}o===null&&(t=O.yLbFormatter(m.globals.series[r],d(d({},m),{},{seriesIndex:r,dataPointIndex:r}))),a.DOMHandling({i:r,t:N,j:o,ttItems:c,values:{val:t,goalVals:v,xVal:w,xAxisTTVal:E,zVal:k},seriesName:L,shared:h,pColor:I})},p=0,b=m.globals.series.length-1;p<m.globals.series.length;p++,b--)D(p,b)}},{key:"getFormatters",value:function(e){var t,a=this.w,r=a.globals.yLabelFormatters[e];return a.globals.ttVal!==void 0?Array.isArray(a.globals.ttVal)?(r=a.globals.ttVal[e]&&a.globals.ttVal[e].formatter,t=a.globals.ttVal[e]&&a.globals.ttVal[e].title&&a.globals.ttVal[e].title.formatter):(r=a.globals.ttVal.formatter,typeof a.globals.ttVal.title.formatter=="function"&&(t=a.globals.ttVal.title.formatter)):t=a.config.tooltip.y.title.formatter,typeof r!="function"&&(r=a.globals.yLabelFormatters[0]?a.globals.yLabelFormatters[0]:function(o){return o}),typeof t!="function"&&(t=function(o){return o}),{yLbFormatter:r,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,a=e.index,r=e.seriesIndex,o=e.j,n=this.w;return t(String(n.globals.seriesNames[a]),{series:n.globals.series,seriesIndex:r,dataPointIndex:o,w:n})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,a=e.j,r=e.ttItems,o=e.values,n=e.seriesName,c=e.shared,h=e.pColor,u=this.w,m=this.ttCtx,v=o.val,x=o.goalVals,w=o.xVal,k=o.xAxisTTVal,E=o.zVal,L=null;L=r[t].children,u.config.tooltip.fillSeriesColor&&(r[t].style.backgroundColor=h,L[0].style.display="none"),m.showTooltipTitle&&(m.tooltipTitle===null&&(m.tooltipTitle=u.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),m.tooltipTitle.innerHTML=w),m.isXAxisTooltipEnabled&&(m.xaxisTooltipText.innerHTML=k!==""?k:w);var I=r[t].querySelector(".apexcharts-tooltip-text-y-label");I&&(I.innerHTML=n||"");var D=r[t].querySelector(".apexcharts-tooltip-text-y-value");D&&(D.innerHTML=v!==void 0?v:""),L[0]&&L[0].classList.contains("apexcharts-tooltip-marker")&&(u.config.tooltip.marker.fillColors&&Array.isArray(u.config.tooltip.marker.fillColors)&&(h=u.config.tooltip.marker.fillColors[t]),L[0].style.backgroundColor=h),u.config.tooltip.marker.show||(L[0].style.display="none");var p=r[t].querySelector(".apexcharts-tooltip-text-goals-label"),b=r[t].querySelector(".apexcharts-tooltip-text-goals-value");if(x.length&&u.globals.seriesGoals[t]){var C=function(){var N="<div >",$="<div>";x.forEach(function(V,re){N+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(V.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(V.attrs.name,"</div>"),$+="<div>".concat(V.val,"</div>")}),p.innerHTML=N+"</div>",b.innerHTML=$+"</div>"};c?u.globals.seriesGoals[t][a]&&Array.isArray(u.globals.seriesGoals[t][a])?C():(p.innerHTML="",b.innerHTML=""):C()}else p.innerHTML="",b.innerHTML="";if(E!==null&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=u.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=E!==void 0?E:""),c&&L[0]){if(u.config.tooltip.hideEmptySeries){var X=r[t].querySelector(".apexcharts-tooltip-marker"),O=r[t].querySelector(".apexcharts-tooltip-text");parseFloat(v)==0?(X.style.display="none",O.style.display="none"):(X.style.display="block",O.style.display="block")}v==null||u.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||u.globals.collapsedSeriesIndices.indexOf(t)>-1?L[0].parentNode.style.display="none":L[0].parentNode.style.display=u.config.tooltip.items.display}}},{key:"toggleActiveInactiveSeries",value:function(e){var t=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var a=t.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");a&&(a.classList.add("apexcharts-active"),a.style.display=t.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,a=e.j,r=this.w,o=this.ctx.series.filteredSeriesX(),n="",c="",h=null,u=null,m={series:r.globals.series,seriesIndex:t,dataPointIndex:a,w:r},v=r.globals.ttZFormatter;a===null?u=r.globals.series[t]:r.globals.isXNumeric&&r.config.chart.type!=="treemap"?(n=o[t][a],o[t].length===0&&(n=o[this.tooltipUtil.getFirstActiveXArray(o)][a])):n=r.globals.labels[a]!==void 0?r.globals.labels[a]:"";var x=n;return r.globals.isXNumeric&&r.config.xaxis.type==="datetime"?n=new ee(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,x,x,{i:void 0,dateFormatter:new K(this.ctx).formatDate,w:this.w}):n=r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](x,m):r.globals.xLabelFormatter(x,m),r.config.tooltip.x.formatter!==void 0&&(n=r.globals.ttKeyFormatter(x,m)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(h=v(r.globals.seriesZ[t][a],r)),c=typeof r.config.xaxis.tooltip.formatter=="function"?r.globals.xaxisTooltipFormatter(x,m):n,{val:Array.isArray(u)?u.join(" "):u,xVal:Array.isArray(n)?n.join(" "):n,xAxisTTVal:Array.isArray(c)?c.join(" "):c,zVal:h}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,a=e.j,r=e.y1,o=e.y2,n=e.w,c=this.ttCtx.getElTooltip(),h=n.config.tooltip.custom;Array.isArray(h)&&h[t]&&(h=h[t]),c.innerHTML=h({ctx:this.ctx,series:n.globals.series,seriesIndex:t,dataPointIndex:a,y1:r,y2:o,w:n})}}]),z}(),Lr=function(){function z(e){g(this,z),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return y(z,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=this.ttCtx,r=this.w,o=a.getElXCrosshairs(),n=e-a.xcrosshairsWidth/2,c=r.globals.labels.slice().length;if(t!==null&&(n=r.globals.gridWidth/c*t),o===null||r.globals.isBarHorizontal||(o.setAttribute("x",n),o.setAttribute("x1",n),o.setAttribute("x2",n),o.setAttribute("y2",r.globals.gridHeight),o.classList.add("apexcharts-active")),n<0&&(n=0),n>r.globals.gridWidth&&(n=r.globals.gridWidth),a.isXAxisTooltipEnabled){var h=n;r.config.xaxis.crosshairs.width!=="tickWidth"&&r.config.xaxis.crosshairs.width!=="barWidth"||(h=n+a.xcrosshairsWidth/2),this.moveXAxisTooltip(h)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&j.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&j.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,a=this.ttCtx;if(a.xaxisTooltip!==null&&a.xcrosshairsWidth!==0){a.xaxisTooltip.classList.add("apexcharts-active");var r=a.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=a.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var o;o=new j(this.ctx).getTextRects(a.xaxisTooltipText.innerHTML),a.xaxisTooltipText.style.minWidth=o.width+"px",a.xaxisTooltip.style.left=e+"px",a.xaxisTooltip.style.top=r+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,a=this.ttCtx;a.yaxisTTEls===null&&(a.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(a.ycrosshairsHidden.getAttribute("y1"),10),o=t.globals.translateY+r,n=a.yaxisTTEls[e].getBoundingClientRect().height,c=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(c-=26),o-=n/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1?(a.yaxisTTEls[e].classList.add("apexcharts-active"),a.yaxisTTEls[e].style.top=o+"px",a.yaxisTTEls[e].style.left=c+t.config.yaxis[e].tooltip.offsetX+"px"):a.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.w,o=this.ttCtx,n=o.getElTooltip(),c=o.tooltipRect,h=a!==null?parseFloat(a):1,u=parseFloat(e)+h+5,m=parseFloat(t)+h/2;if(u>r.globals.gridWidth/2&&(u=u-c.ttWidth-h-10),u>r.globals.gridWidth-c.ttWidth-10&&(u=r.globals.gridWidth-c.ttWidth),u<-20&&(u=-20),r.config.tooltip.followCursor){var v=o.getElGrid().getBoundingClientRect();(u=o.e.clientX-v.left)>r.globals.gridWidth/2&&(u-=o.tooltipRect.ttWidth),(m=o.e.clientY+r.globals.translateY-v.top)>r.globals.gridHeight/2&&(m-=o.tooltipRect.ttHeight)}else r.globals.isBarHorizontal||c.ttHeight/2+m>r.globals.gridHeight&&(m=r.globals.gridHeight-c.ttHeight+r.globals.translateY);isNaN(u)||(u+=r.globals.translateX,n.style.left=u+"px",n.style.top=m+"px")}},{key:"moveMarkers",value:function(e,t){var a=this.w,r=this.ttCtx;if(a.globals.markers.size[e]>0)for(var o=a.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),n=0;n<o.length;n++)parseInt(o[n].getAttribute("rel"),10)===t&&(r.marker.resetPointsSize(),r.marker.enlargeCurrentPoint(t,o[n]));else r.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var a,r,o=this.w,n=this.ttCtx,c=o.globals.pointsArray,h=n.tooltipUtil.getHoverMarkerSize(t),u=o.config.series[t].type;if(!u||u!=="column"&&u!=="candlestick"&&u!=="boxPlot"){a=c[t][e][0],r=c[t][e][1]?c[t][e][1]:0;var m=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers circle"));m&&r<o.globals.gridHeight&&r>0&&(m.setAttribute("r",h),m.setAttribute("cx",a),m.setAttribute("cy",r)),this.moveXCrosshairs(a),n.fixedTooltip||this.moveTooltip(a,r,h)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,a=this.ttCtx,r=a.w,o=0,n=0,c=r.globals.pointsArray;t=new Le(this.ctx).getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var h=a.tooltipUtil.getHoverMarkerSize(t);c[t]&&(o=c[t][e][0],n=c[t][e][1]);var u=a.tooltipUtil.getAllMarkers();if(u!==null)for(var m=0;m<r.globals.series.length;m++){var v=c[m];if(r.globals.comboCharts&&v===void 0&&u.splice(m,0,null),v&&v.length){var x=c[m][e][1],w=void 0;if(u[m].setAttribute("cx",o),r.config.chart.type==="rangeArea"&&!r.globals.comboCharts){var k=e+r.globals.series[m].length;w=c[m][k][1],x-=Math.abs(x-w)/2}x!==null&&!isNaN(x)&&x<r.globals.gridHeight+h&&x+h>0?(u[m]&&u[m].setAttribute("r",h),u[m]&&u[m].setAttribute("cy",x)):u[m]&&u[m].setAttribute("r",0)}}this.moveXCrosshairs(o),a.fixedTooltip||this.moveTooltip(o,n||r.globals.gridHeight,h)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var a=this.w,r=this.ttCtx,o=a.globals.columnSeries?a.globals.columnSeries.length:a.globals.series.length,n=o>=2&&o%2==0?Math.floor(o/2):Math.floor(o/2)+1;a.globals.isBarHorizontal&&(n=new Le(this.ctx).getActiveConfigSeriesIndex("desc")+1);var c=a.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,"']"));c||typeof t!="number"||(c=a.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,`'], .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'], .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'], .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,"']")));var h=c?parseFloat(c.getAttribute("cx")):0,u=c?parseFloat(c.getAttribute("cy")):0,m=c?parseFloat(c.getAttribute("barWidth")):0,v=r.getElGrid().getBoundingClientRect(),x=c&&(c.classList.contains("apexcharts-candlestick-area")||c.classList.contains("apexcharts-boxPlot-area"));a.globals.isXNumeric?(c&&!x&&(h-=o%2!=0?m/2:0),c&&x&&a.globals.comboCharts&&(h-=m/2)):a.globals.isBarHorizontal||(h=r.xAxisTicksPositions[e-1]+r.dataPointsDividedWidth/2,isNaN(h)&&(h=r.xAxisTicksPositions[e]-r.dataPointsDividedWidth/2)),a.globals.isBarHorizontal?u-=r.tooltipRect.ttHeight:a.config.tooltip.followCursor?u=r.e.clientY-v.top-r.tooltipRect.ttHeight/2:u+r.tooltipRect.ttHeight+15>a.globals.gridHeight&&(u=a.globals.gridHeight),a.globals.isBarHorizontal||this.moveXCrosshairs(h),r.fixedTooltip||this.moveTooltip(h,u||a.globals.gridHeight)}}]),z}(),Al=function(){function z(e){g(this,z),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Lr(e)}return y(z,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new j(this.ctx),a=new Ce(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=W(r),e.config.chart.stacked&&r.sort(function(v,x){return parseFloat(v.getAttribute("data:realIndex"))-parseFloat(x.getAttribute("data:realIndex"))});for(var o=0;o<r.length;o++){var n=r[o].querySelector(".apexcharts-series-markers-wrap");if(n!==null){var c=void 0,h="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));e.config.chart.type!=="line"&&e.config.chart.type!=="area"||e.globals.comboCharts||e.config.tooltip.intersect||(h+=" no-pointer-events");var u=a.getMarkerConfig({cssClass:h,seriesIndex:Number(n.getAttribute("data:realIndex"))});(c=t.drawMarker(0,0,u)).node.setAttribute("default-marker-size",0);var m=document.createElementNS(e.globals.SVGNS,"g");m.classList.add("apexcharts-series-markers"),m.appendChild(c.node),n.appendChild(m)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.w;o.config.chart.type!=="bubble"&&this.newPointSize(e,t);var n=t.getAttribute("cx"),c=t.getAttribute("cy");if(a!==null&&r!==null&&(n=a,c=r),this.tooltipPosition.moveXCrosshairs(n),!this.fixedTooltip){if(o.config.chart.type==="radar"){var h=this.ttCtx.getElGrid().getBoundingClientRect();n=this.ttCtx.e.clientX-h.left}this.tooltipPosition.moveTooltip(n,c,o.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,a=this,r=this.ttCtx,o=e,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),c=t.config.markers.hover.size,h=0;h<n.length;h++){var u=n[h].getAttribute("rel"),m=n[h].getAttribute("index");if(c===void 0&&(c=t.globals.markers.size[m]+t.config.markers.hover.sizeOffset),o===parseInt(u,10)){a.newPointSize(o,n[h]);var v=n[h].getAttribute("cx"),x=n[h].getAttribute("cy");a.tooltipPosition.moveXCrosshairs(v),r.fixedTooltip||a.tooltipPosition.moveTooltip(v,x,c)}else a.oldPointSize(n[h])}}},{key:"newPointSize",value:function(e,t){var a=this.w,r=a.config.markers.hover.size,o=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(o.getAttribute("default-marker-size")!=="0"){var n=parseInt(o.getAttribute("index"),10);r===void 0&&(r=a.globals.markers.size[n]+a.config.markers.hover.sizeOffset),r<0&&(r=0),o.setAttribute("r",r)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size"));e.setAttribute("r",t)}},{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 a=parseFloat(e[t].getAttribute("default-marker-size"));P.isNumber(a)&&a>=0?e[t].setAttribute("r",a):e[t].setAttribute("r",0)}}}]),z}(),kl=function(){function z(e){g(this,z),this.w=e.w;var t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.config.chart.type==="rangeBar"&&t.config.plotOptions.bar.rangeBarGroupRows}return y(z,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,a=e.opt,r=e.x,o=e.y,n=e.type,c=this.ttCtx,h=this.w;if(t.target.classList.contains("apexcharts-".concat(n,"-rect"))){var u=this.getAttr(t,"i"),m=this.getAttr(t,"j"),v=this.getAttr(t,"cx"),x=this.getAttr(t,"cy"),w=this.getAttr(t,"width"),k=this.getAttr(t,"height");if(c.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:u,j:m,shared:!1,e:t}),h.globals.capturedSeriesIndex=u,h.globals.capturedDataPointIndex=m,r=v+c.tooltipRect.ttWidth/2+w,o=x+c.tooltipRect.ttHeight/2-k/2,c.tooltipPosition.moveXCrosshairs(v+w/2),r>h.globals.gridWidth/2&&(r=v-c.tooltipRect.ttWidth/2+w),c.w.config.tooltip.followCursor){var E=h.globals.dom.elWrap.getBoundingClientRect();r=h.globals.clientX-E.left-(r>h.globals.gridWidth/2?c.tooltipRect.ttWidth:0),o=h.globals.clientY-E.top-(o>h.globals.gridHeight/2?c.tooltipRect.ttHeight:0)}}return{x:r,y:o}}},{key:"handleMarkerTooltip",value:function(e){var t,a,r=e.e,o=e.opt,n=e.x,c=e.y,h=this.w,u=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var m=parseInt(o.paths.getAttribute("cx"),10),v=parseInt(o.paths.getAttribute("cy"),10),x=parseFloat(o.paths.getAttribute("val"));if(a=parseInt(o.paths.getAttribute("rel"),10),t=parseInt(o.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,u.intersect){var w=P.findAncestor(o.paths,"apexcharts-series");w&&(t=parseInt(w.getAttribute("data:realIndex"),10))}if(u.tooltipLabels.drawSeriesTexts({ttItems:o.ttItems,i:t,j:a,shared:!u.showOnIntersect&&h.config.tooltip.shared,e:r}),r.type==="mouseup"&&u.markerClick(r,t,a),h.globals.capturedSeriesIndex=t,h.globals.capturedDataPointIndex=a,n=m,c=v+h.globals.translateY-1.4*u.tooltipRect.ttHeight,u.w.config.tooltip.followCursor){var k=u.getElGrid().getBoundingClientRect();c=u.e.clientY+h.globals.translateY-k.top}x<0&&(c=v),u.marker.enlargeCurrentPoint(a,o.paths,n,c)}return{x:n,y:c}}},{key:"handleBarTooltip",value:function(e){var t,a,r=e.e,o=e.opt,n=this.w,c=this.ttCtx,h=c.getElTooltip(),u=0,m=0,v=0,x=this.getBarTooltipXY({e:r,opt:o});t=x.i;var w=x.barHeight,k=x.j;n.globals.capturedSeriesIndex=t,n.globals.capturedDataPointIndex=k,n.globals.isBarHorizontal&&c.tooltipUtil.hasBars()||!n.config.tooltip.shared?(m=x.x,v=x.y,a=Array.isArray(n.config.stroke.width)?n.config.stroke.width[t]:n.config.stroke.width,u=m):n.globals.comboCharts||n.config.tooltip.shared||(u/=2),isNaN(v)&&(v=n.globals.svgHeight-c.tooltipRect.ttHeight);var E=parseInt(o.paths.parentNode.getAttribute("data:realIndex"),10),L=n.globals.isMultipleYAxis?n.config.yaxis[E]&&n.config.yaxis[E].reversed:n.config.yaxis[0].reversed;if(m+c.tooltipRect.ttWidth>n.globals.gridWidth&&!L?m-=c.tooltipRect.ttWidth:m<0&&(m=0),c.w.config.tooltip.followCursor){var I=c.getElGrid().getBoundingClientRect();v=c.e.clientY-I.top}c.tooltip===null&&(c.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboBarCount>0?c.tooltipPosition.moveXCrosshairs(u+a/2):c.tooltipPosition.moveXCrosshairs(u)),!c.fixedTooltip&&(!n.config.tooltip.shared||n.globals.isBarHorizontal&&c.tooltipUtil.hasBars())&&(L&&(m-=c.tooltipRect.ttWidth)<0&&(m=0),!L||n.globals.isBarHorizontal&&c.tooltipUtil.hasBars()||(v=v+w-2*(n.globals.series[t][k]<0?w:0)),v=v+n.globals.translateY-c.tooltipRect.ttHeight/2,h.style.left=m+n.globals.translateX+"px",h.style.top=v+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,a=e.e,r=e.opt,o=this.w,n=null,c=this.ttCtx,h=0,u=0,m=0,v=0,x=0,w=a.target.classList;if(w.contains("apexcharts-bar-area")||w.contains("apexcharts-candlestick-area")||w.contains("apexcharts-boxPlot-area")||w.contains("apexcharts-rangebar-area")){var k=a.target,E=k.getBoundingClientRect(),L=r.elGrid.getBoundingClientRect(),I=E.height;x=E.height;var D=E.width,p=parseInt(k.getAttribute("cx"),10),b=parseInt(k.getAttribute("cy"),10);v=parseFloat(k.getAttribute("barWidth"));var C=a.type==="touchmove"?a.touches[0].clientX:a.clientX;n=parseInt(k.getAttribute("j"),10),h=parseInt(k.parentNode.getAttribute("rel"),10)-1;var X=k.getAttribute("data-range-y1"),O=k.getAttribute("data-range-y2");o.globals.comboCharts&&(h=parseInt(k.parentNode.getAttribute("data:realIndex"),10));var N=function(V){return o.globals.isXNumeric?p-D/2:t.isVerticalGroupedRangeBar?p+D/2:p-c.dataPointsDividedWidth+D/2},$=function(){return b-c.dataPointsDividedHeight+I/2-c.tooltipRect.ttHeight/2};c.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:h,j:n,y1:X?parseInt(X,10):null,y2:O?parseInt(O,10):null,shared:!c.showOnIntersect&&o.config.tooltip.shared,e:a}),o.config.tooltip.followCursor?o.globals.isBarHorizontal?(u=C-L.left+15,m=$()):(u=N(),m=a.clientY-L.top-c.tooltipRect.ttHeight/2-15):o.globals.isBarHorizontal?((u=p)<c.xyRatios.baseLineInvertedY&&(u=p-c.tooltipRect.ttWidth),m=$()):(u=N(),m=b)}return{x:u,y:m,barHeight:x,barWidth:v,i:h,j:n}}}]),z}(),Cl=function(){function z(e){g(this,z),this.w=e.w,this.ttCtx=e}return y(z,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,a=e.config.xaxis.position==="bottom";t.xaxisOffY=a?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var r=a?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",o=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),o.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,a=0;a<e.config.yaxis.length;a++){var r=e.config.yaxis[a].opposite||e.config.yaxis[a].crosshairs.opposite;t.yaxisOffX=r?e.globals.gridWidth+1:1;var o="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(a,r?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),n=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(a))===null&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",o+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.yaxisTooltip),a===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[a]=document.createElement("div"),t.yaxisTooltipText[a].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[a]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,a=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var r=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(r!==null&&e.config.xaxis.crosshairs.width==="barWidth"){var o=parseFloat(r.getAttribute("barWidth"));t.xcrosshairsWidth=o}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var n=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/n}}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var c=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/c}else if(e.config.xaxis.crosshairs.width==="barWidth"){var h=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(h!==null){var u=parseFloat(h.getAttribute("barWidth"));t.xcrosshairsWidth=u}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),a!==null&&t.xcrosshairsWidth>0&&a.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,a){var r=this.ttCtx,o=this.w.globals,n=o.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&n.length>0){var c=o.yLabelFormatters[e],h=r.getElGrid().getBoundingClientRect(),u=n[0];a.yRatio.length>1&&function(w){throw new TypeError('"'+w+'" is read-only')}("translationsIndex");var m=(t-h.top)*a.yRatio[0],v=o.maxYArr[u]-o.minYArr[u],x=o.minYArr[u]+(v-m);r.tooltipPosition.moveYCrosshairs(t-h.top),r.yaxisTooltipText[e].innerHTML=c(x),r.tooltipPosition.moveYAxisTooltip(e)}}}]),z}(),_r=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new Tr(this),this.tooltipLabels=new Sl(this),this.tooltipPosition=new Lr(this),this.marker=new Al(this),this.intersect=new kl(this),this.axesTooltip=new Cl(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 y(z,[{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,c){return!!(n.show&&n.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var a=document.createElement("div");if(a.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&a.classList.add(t.config.tooltip.cssClass),a.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(a),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new We(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,a.appendChild(this.tooltipTitle));var o=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(o=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(o),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,a=this.w,r=[],o=this.getElTooltip(),n=function(h){var u=document.createElement("div");u.classList.add("apexcharts-tooltip-series-group"),u.style.order=a.config.tooltip.inverseOrder?e-h:h+1,t.tConfig.shared&&t.tConfig.enabledOnSeries&&Array.isArray(t.tConfig.enabledOnSeries)&&t.tConfig.enabledOnSeries.indexOf(h)<0&&u.classList.add("apexcharts-tooltip-series-group-hidden");var m=document.createElement("span");m.classList.add("apexcharts-tooltip-marker"),m.style.backgroundColor=a.globals.colors[h],u.appendChild(m);var v=document.createElement("div");v.classList.add("apexcharts-tooltip-text"),v.style.fontFamily=t.tConfig.style.fontFamily||a.config.chart.fontFamily,v.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(x){var w=document.createElement("div");w.classList.add("apexcharts-tooltip-".concat(x,"-group"));var k=document.createElement("span");k.classList.add("apexcharts-tooltip-text-".concat(x,"-label")),w.appendChild(k);var E=document.createElement("span");E.classList.add("apexcharts-tooltip-text-".concat(x,"-value")),w.appendChild(E),v.appendChild(w)}),u.appendChild(v),o.appendChild(u),r.push(u)},c=0;c<e;c++)n(c);return r}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,a=this.getElTooltip(),r=!(t!=="bar"&&t!=="candlestick"&&t!=="boxPlot"&&t!=="rangeBar"),o=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",n=e.globals.dom.Paper.node,c=this.getElGrid();c&&(this.seriesBound=c.getBoundingClientRect());var h,u=[],m=[],v={hoverArea:n,elGrid:c,tooltipEl:a,tooltipY:u,tooltipX:m,ttItems:this.ttItems};if(e.globals.axisCharts&&(o?h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):r?h=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"):t!=="heatmap"&&t!=="treemap"||(h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),h&&h.length))for(var x=0;x<h.length;x++)u.push(h[x].getAttribute("cy")),m.push(h[x].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||r&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([n],v);else if(r&&!e.globals.comboCharts||o&&this.showOnIntersect)this.addDatapointEventsListeners(v);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){var w=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(w,v)}if(this.showOnIntersect){var k=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");k.length>0&&this.addPathsEventListeners(k,v),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(v)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),a=t.getBoundingClientRect(),r=a.width+10,o=a.height+10,n=this.tConfig.fixed.offsetX,c=this.tConfig.fixed.offsetY,h=this.tConfig.fixed.position.toLowerCase();return h.indexOf("right")>-1&&(n=n+e.globals.svgWidth-r+10),h.indexOf("bottom")>-1&&(c=c+e.globals.svgHeight-o-10),t.style.left=n+"px",t.style.top=c+"px",{x:n,y:c,ttWidth:r,ttHeight:o}}},{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 a=this,r=function(n){var c={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(h){return e[n].addEventListener(h,a.onSeriesHover.bind(a,c),{capture:!1,passive:!0})})},o=0;o<e.length;o++)r(o)}},{key:"onSeriesHover",value:function(e,t){var a=this,r=Date.now()-this.lastHoverTime;r>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){a.seriesHover(e,t)},100-r))}},{key:"seriesHover",value:function(e,t){var a=this;this.lastHoverTime=Date.now();var r=[],o=this.w;o.config.chart.group&&(r=this.ctx.getGroupedCharts()),o.globals.axisCharts&&(o.globals.minX===-1/0&&o.globals.maxX===1/0||o.globals.dataPoints===0)||(r.length?r.forEach(function(n){var c=a.getElTooltip(n),h={paths:e.paths,tooltipEl:c,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===a.w.globals.minX&&n.w.globals.maxX===a.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:h,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,a=e.ttCtx,r=e.opt,o=e.e,n=t.w,c=this.getElTooltip();c&&(a.tooltipRect={x:0,y:0,ttWidth:c.getBoundingClientRect().width,ttHeight:c.getBoundingClientRect().height},a.e=o,a.tooltipUtil.hasBars()&&!n.globals.comboCharts&&!a.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Le(t).toggleSeriesOnHover(o,o.target.parentNode),a.fixedTooltip&&a.drawFixedTooltipRect(),n.globals.axisCharts?a.axisChartsTooltips({e:o,opt:r,tooltipRect:a.tooltipRect}):a.nonAxisChartsTooltips({e:o,opt:r,tooltipRect:a.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,a,r=e.e,o=e.opt,n=this.w,c=o.elGrid.getBoundingClientRect(),h=r.type==="touchmove"?r.touches[0].clientX:r.clientX,u=r.type==="touchmove"?r.touches[0].clientY:r.clientY;if(this.clientY=u,this.clientX=h,n.globals.capturedSeriesIndex=-1,n.globals.capturedDataPointIndex=-1,u<c.top||u>c.top+c.height)this.handleMouseOut(o);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!n.config.tooltip.shared){var m=parseInt(o.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(m)<0)return void this.handleMouseOut(o)}var v=this.getElTooltip(),x=this.getElXCrosshairs(),w=n.globals.xyCharts||n.config.chart.type==="bar"&&!n.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||n.globals.comboCharts&&this.tooltipUtil.hasBars();if(r.type==="mousemove"||r.type==="touchmove"||r.type==="mouseup"){if(n.globals.collapsedSeries.length+n.globals.ancillaryCollapsedSeries.length===n.globals.series.length)return;x!==null&&x.classList.add("apexcharts-active");var k=this.yaxisTooltips.filter(function(I){return I===!0});if(this.ycrosshairs!==null&&k.length&&this.ycrosshairs.classList.add("apexcharts-active"),w&&!this.showOnIntersect)this.handleStickyTooltip(r,h,u,o);else if(n.config.chart.type==="heatmap"||n.config.chart.type==="treemap"){var E=this.intersect.handleHeatTreeTooltip({e:r,opt:o,x:t,y:a,type:n.config.chart.type});t=E.x,a=E.y,v.style.left=t+"px",v.style.top=a+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:o}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:o,x:t,y:a});if(this.yaxisTooltips.length)for(var L=0;L<n.config.yaxis.length;L++)this.axesTooltip.drawYaxisTooltipText(L,u,this.xyRatios);o.tooltipEl.classList.add("apexcharts-active")}else r.type!=="mouseout"&&r.type!=="touchend"||this.handleMouseOut(o)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,a=e.opt,r=e.tooltipRect,o=this.w,n=a.paths.getAttribute("rel"),c=this.getElTooltip(),h=o.globals.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){c.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:parseInt(n,10)-1,shared:!1});var u=o.globals.clientX-h.left-r.ttWidth/2,m=o.globals.clientY-h.top-r.ttHeight-10;if(c.style.left=u+"px",c.style.top=m+"px",o.config.legend.tooltipHoverFormatter){var v=n-1,x=(0,o.config.legend.tooltipHoverFormatter)(this.legendLabels[v].getAttribute("data:default-text"),{seriesIndex:v,dataPointIndex:v,w:o});this.legendLabels[v].innerHTML=x}}else t.type!=="mouseout"&&t.type!=="touchend"||(c.classList.remove("apexcharts-active"),o.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(w){var k=w.getAttribute("data:default-text");w.innerHTML=decodeURIComponent(k)}))}},{key:"handleStickyTooltip",value:function(e,t,a,r){var o=this.w,n=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:a}),c=n.j,h=n.capturedSeries;o.globals.collapsedSeriesIndices.includes(h)&&(h=null);var u=r.elGrid.getBoundingClientRect();if(n.hoverX<0||n.hoverX>u.width)this.handleMouseOut(r);else if(h!==null)this.handleStickyCapturedSeries(e,h,r,c);else if(this.tooltipUtil.isXoverlap(c)||o.globals.isBarHorizontal){var m=o.globals.series.findIndex(function(v,x){return!o.globals.collapsedSeriesIndices.includes(x)});this.create(e,this,m,c,r.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,a,r){var o=this.w;if(!this.tConfig.shared&&o.globals.series[t][r]===null)return void this.handleMouseOut(a);if(o.globals.series[t][r]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,a.ttItems):this.create(e,this,t,r,a.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){var n=o.globals.series.findIndex(function(c,h){return!o.globals.collapsedSeriesIndices.includes(h)});this.create(e,this,n,r,a.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new j(this.ctx),a=e.globals.dom.Paper.select(".apexcharts-bar-area"),r=0;r<a.length;r++)t.pathMouseLeave(a[r])}},{key:"handleMouseOut",value:function(e){var t=this.w,a=this.getElXCrosshairs();if(e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),t.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),a!==null&&a.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var r=0;r<this.yaxisTTEls.length;r++)this.yaxisTTEls[r].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(o){var n=o.getAttribute("data:default-text");o.innerHTML=decodeURIComponent(n)})}},{key:"markerClick",value:function(e,t,a){var r=this.w;typeof r.config.chart.events.markerClick=="function"&&r.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:a,w:r}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:a,w:r}])}},{key:"create",value:function(e,t,a,r,o){var n,c,h,u,m,v,x,w,k,E,L,I,D,p,b,C,X=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,O=this.w,N=t;e.type==="mouseup"&&this.markerClick(e,a,r),X===null&&(X=this.tConfig.shared);var $=this.tooltipUtil.hasMarkers(a),V=this.tooltipUtil.getElBars();if(O.config.legend.tooltipHoverFormatter){var re=O.config.legend.tooltipHoverFormatter,ie=Array.from(this.legendLabels);ie.forEach(function(Re){var Fe=Re.getAttribute("data:default-text");Re.innerHTML=decodeURIComponent(Fe)});for(var ae=0;ae<ie.length;ae++){var ce=ie[ae],me=parseInt(ce.getAttribute("i"),10),xe=decodeURIComponent(ce.getAttribute("data:default-text")),we=re(xe,{seriesIndex:X?me:a,dataPointIndex:r,w:O});if(X)ce.innerHTML=O.globals.collapsedSeriesIndices.indexOf(me)<0?we:xe;else if(ce.innerHTML=me===a?we:xe,a===me)break}}var be=d(d({ttItems:o,i:a,j:r},((n=O.globals.seriesRange)===null||n===void 0||(c=n[a])===null||c===void 0||(h=c[r])===null||h===void 0||(u=h.y[0])===null||u===void 0?void 0:u.y1)!==void 0&&{y1:(m=O.globals.seriesRange)===null||m===void 0||(v=m[a])===null||v===void 0||(x=v[r])===null||x===void 0||(w=x.y[0])===null||w===void 0?void 0:w.y1}),((k=O.globals.seriesRange)===null||k===void 0||(E=k[a])===null||E===void 0||(L=E[r])===null||L===void 0||(I=L.y[0])===null||I===void 0?void 0:I.y2)!==void 0&&{y2:(D=O.globals.seriesRange)===null||D===void 0||(p=D[a])===null||p===void 0||(b=p[r])===null||b===void 0||(C=b.y[0])===null||C===void 0?void 0:C.y2});if(X){if(N.tooltipLabels.drawSeriesTexts(d(d({},be),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),$)O.globals.markers.largestSize>0?N.marker.enlargePoints(r):N.tooltipPosition.moveDynamicPointsOnHover(r);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(V),this.barSeriesHeight>0)){var Se=new j(this.ctx),_e=O.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(r,a);for(var ke=0;ke<_e.length;ke++)Se.pathMouseEnter(_e[ke])}}else N.tooltipLabels.drawSeriesTexts(d({shared:!1},be)),this.tooltipUtil.hasBars()&&N.tooltipPosition.moveStickyTooltipOverBars(r,a),$&&N.tooltipPosition.moveMarkers(a,r)}}]),z}(),El=function(){function z(e){g(this,z),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 y(z,[{key:"handleBarDataLabels",value:function(e){var t=e.x,a=e.y,r=e.y1,o=e.y2,n=e.i,c=e.j,h=e.realIndex,u=e.groupIndex,m=e.series,v=e.barHeight,x=e.barWidth,w=e.barXPosition,k=e.barYPosition,E=e.visibleSeries,L=e.renderedPath,I=this.w,D=new j(this.barCtx.ctx),p=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[h]:this.barCtx.strokeWidth,b=t+parseFloat(x*E),C=a+parseFloat(v*E);I.globals.isXNumeric&&!I.globals.isBarHorizontal&&(b=t+parseFloat(x*(E+1)),C=a+parseFloat(v*(E+1))-p);var X,O=null,N=t,$=a,V={},re=I.config.dataLabels,ie=this.barCtx.barOptions.dataLabels,ae=this.barCtx.barOptions.dataLabels.total;k!==void 0&&this.barCtx.isRangeBar&&(C=k,$=k),w!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(b=w,N=w);var ce=re.offsetX,me=re.offsetY,xe={width:0,height:0};if(I.config.dataLabels.enabled){var we=this.barCtx.series[n][c];xe=D.getTextRects(I.globals.yLabelFormatters[0](we),parseFloat(re.style.fontSize))}var be={x:t,y:a,i:n,j:c,realIndex:h,groupIndex:u||-1,renderedPath:L,bcx:b,bcy:C,barHeight:v,barWidth:x,textRects:xe,strokeWidth:p,dataLabelsX:N,dataLabelsY:$,dataLabelsConfig:re,barDataLabelsConfig:ie,barTotalDataLabelsConfig:ae,offX:ce,offY:me};return V=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(be):this.calculateColumnsDataLabelsPosition(be),L.attr({cy:V.bcy,cx:V.bcx,j:c,val:m[n][c],barHeight:v,barWidth:x}),X=this.drawCalculatedDataLabels({x:V.dataLabelsX,y:V.dataLabelsY,val:this.barCtx.isRangeBar?[r,o]:m[n][c],i:h,j:c,barWidth:x,barHeight:v,textRects:xe,dataLabelsConfig:re}),I.config.chart.stacked&&ae.enabled&&(O=this.drawTotalDataLabels({x:V.totalDataLabelsX,y:V.totalDataLabelsY,barWidth:x,barHeight:v,realIndex:h,textAnchor:V.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:h,j:c}),dataLabelsConfig:re,barTotalDataLabelsConfig:ae})),{dataLabels:X,totalDataLabels:O}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,a=e.j,r=this.w,o=this.barCtx.stackedSeriesTotals[a];return this.totalFormatter&&(o=this.totalFormatter(o,d(d({},r),{},{seriesIndex:t,dataPointIndex:a,w:r}))),o}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,a,r=this.w,o=e.i,n=e.j,c=e.realIndex,h=e.groupIndex,u=e.y,m=e.bcx,v=e.barWidth,x=e.barHeight,w=e.textRects,k=e.dataLabelsX,E=e.dataLabelsY,L=e.dataLabelsConfig,I=e.barDataLabelsConfig,D=e.barTotalDataLabelsConfig,p=e.strokeWidth,b=e.offX,C=e.offY;x=Math.abs(x);var X=r.config.plotOptions.bar.dataLabels.orientation==="vertical",O=this.barCtx.barHelpers.getZeroValueEncounters({i:o,j:n}).zeroEncounters;m=m-p/2+(h!==-1?h*v:0);var N=r.globals.gridWidth/r.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?k+=v/2:(k=r.globals.isXNumeric?m-v/2+b:m-N+v/2+b,O>0&&r.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(k-=v*O)),X&&(k=k+w.height/2-p/2-2);var $=this.barCtx.series[o][n]<0,V=u;switch(this.barCtx.isReversed&&(V=u-x+($?2*x:0),u-=x),I.position){case"center":E=X?$?V-x/2+C:V+x/2-C:$?V-x/2+w.height/2+C:V+x/2+w.height/2-C;break;case"bottom":E=X?$?V-x+C:V+x-C:$?V-x+w.height+p+C:V+x-w.height/2+p-C;break;case"top":E=X?$?V+C:V-C:$?V-w.height/2-C:V+w.height+C}if(this.barCtx.lastActiveBarSerieIndex===c&&D.enabled){var re=new j(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:c,j:n}),L.fontSize);t=$?V-re.height/2-C-D.offsetY+18:V+re.height+C+D.offsetY-18,a=k+D.offsetX}return r.config.chart.stacked||(E<0?E=0+p:E+w.height/3>r.globals.gridHeight&&(E=r.globals.gridHeight-p)),{bcx:m,bcy:u,dataLabelsX:k,dataLabelsY:E,totalDataLabelsX:a,totalDataLabelsY:t,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,a=e.x,r=e.i,o=e.j,n=e.realIndex,c=e.groupIndex,h=e.bcy,u=e.barHeight,m=e.barWidth,v=e.textRects,x=e.dataLabelsX,w=e.strokeWidth,k=e.dataLabelsConfig,E=e.barDataLabelsConfig,L=e.barTotalDataLabelsConfig,I=e.offX,D=e.offY,p=t.globals.gridHeight/t.globals.dataPoints;m=Math.abs(m);var b,C,X=(h+=c!==-1?c*u:0)-(this.barCtx.isRangeBar?0:p)+u/2+v.height/2+D-3,O="start",N=this.barCtx.series[r][o]<0,$=a;switch(this.barCtx.isReversed&&($=a+m-(N?2*m:0),a=t.globals.gridWidth-m),E.position){case"center":x=N?$+m/2-I:Math.max(v.width/2,$-m/2)+I;break;case"bottom":x=N?$+m-w-Math.round(v.width/2)-I:$-m+w+Math.round(v.width/2)+I;break;case"top":x=N?$-w+Math.round(v.width/2)-I:$-w-Math.round(v.width/2)+I}if(this.barCtx.lastActiveBarSerieIndex===n&&L.enabled){var V=new j(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:o}),k.fontSize);N?(b=$-w+Math.round(V.width/2)-I-L.offsetX-15,O="end"):b=$-w-Math.round(V.width/2)+I+L.offsetX+15,C=X+L.offsetY}return t.config.chart.stacked||(x<0?x=x+v.width+w:x+v.width/2>t.globals.gridWidth&&(x=t.globals.gridWidth-v.width-w)),{bcx:a,bcy:h,dataLabelsX:x,dataLabelsY:X,totalDataLabelsX:b,totalDataLabelsY:C,totalDataLabelsAnchor:O}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,a=e.y,r=e.val,o=e.i,n=e.j,c=e.textRects,h=e.barHeight,u=e.barWidth,m=e.dataLabelsConfig,v=this.w,x="rotate(0)";v.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(x="rotate(-90, ".concat(t,", ").concat(a,")"));var w=new Ae(this.barCtx.ctx),k=new j(this.barCtx.ctx),E=m.formatter,L=null,I=v.globals.collapsedSeriesIndices.indexOf(o)>-1;if(m.enabled&&!I){L=k.group({class:"apexcharts-data-labels",transform:x});var D="";r!==void 0&&(D=E(r,d(d({},v),{},{seriesIndex:o,dataPointIndex:n,w:v}))),!r&&v.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(D="");var p=v.globals.series[o][n]<0,b=v.config.plotOptions.bar.dataLabels.position;v.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(b==="top"&&(m.textAnchor=p?"end":"start"),b==="center"&&(m.textAnchor="middle"),b==="bottom"&&(m.textAnchor=p?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&u<k.getTextRects(D,parseFloat(m.style.fontSize)).width&&(D=""),v.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?c.width/1.6>Math.abs(u)&&(D=""):c.height/1.6>Math.abs(h)&&(D=""));var C=d({},m);this.barCtx.isHorizontal&&r<0&&(m.textAnchor==="start"?C.textAnchor="end":m.textAnchor==="end"&&(C.textAnchor="start")),w.plotDataLabelsText({x:t,y:a,text:D,i:o,j:n,parent:L,dataLabelsConfig:C,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return L}},{key:"drawTotalDataLabels",value:function(e){var t,a=e.x,r=e.y,o=e.val,n=e.barWidth,c=e.barHeight,h=e.realIndex,u=e.textAnchor,m=e.barTotalDataLabelsConfig,v=this.w,x=new j(this.barCtx.ctx);return m.enabled&&a!==void 0&&r!==void 0&&this.barCtx.lastActiveBarSerieIndex===h&&(t=x.drawText({x:a-(!v.globals.isBarHorizontal&&v.globals.seriesGroups.length?n/v.globals.seriesGroups.length:0),y:r-(v.globals.isBarHorizontal&&v.globals.seriesGroups.length?c/v.globals.seriesGroups.length:0),foreColor:m.style.color,text:o,textAnchor:u,fontFamily:m.style.fontFamily,fontSize:m.style.fontSize,fontWeight:m.style.fontWeight})),t}}]),z}(),Tl=function(){function z(e){g(this,z),this.w=e.w,this.barCtx=e}return y(z,[{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 a=0;a<e.length;a++)if(e[a].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[a].length),t.globals.isXNumeric)for(var r=0;r<e[a].length;r++)t.globals.seriesX[a][r]>t.globals.minX&&t.globals.seriesX[a][r]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,a,r,o,n,c,h,u=this.w,m=u.globals.dataPoints;this.barCtx.isRangeBar&&(m=u.globals.labels.length);var v=this.barCtx.seriesLen;if(u.config.plotOptions.bar.rangeBarGroupRows&&(v=1),this.barCtx.isHorizontal)o=(a=u.globals.gridHeight/m)/v,u.globals.isXNumeric&&(o=(a=u.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),o=o*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(o=parseInt(this.barCtx.barOptions.barHeight,10)),h=this.barCtx.baseLineInvertedY+u.globals.padHorizontal+(this.barCtx.isReversed?u.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(h=u.globals.gridWidth/2),t=(a-o*this.barCtx.seriesLen)/2;else{if(r=u.globals.gridWidth/this.barCtx.visibleItems,u.config.xaxis.convertedCatToNumeric&&(r=u.globals.gridWidth/u.globals.dataPoints),n=r/v*parseInt(this.barCtx.barOptions.columnWidth,10)/100,u.globals.isXNumeric){var x=this.barCtx.xRatio;u.globals.minXDiff&&u.globals.minXDiff!==.5&&u.globals.minXDiff/x>0&&(r=u.globals.minXDiff/x),(n=r/v*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(n=parseInt(this.barCtx.barOptions.columnWidth,10)),c=u.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?u.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=u.globals.padHorizontal+(r-n*this.barCtx.seriesLen)/2}return u.globals.barHeight=o,u.globals.barWidth=n,{x:e,y:t,yDivision:a,xDivision:r,barHeight:o,barWidth:n,zeroH:c,zeroW:h}}},{key:"initializeStackedPrevVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach(function(a){e[a]||(e[a]={}),e[a].prevY=[],e[a].prevX=[],e[a].prevYF=[],e[a].prevXF=[],e[a].prevYVal=[],e[a].prevXVal=[]}):(e.prevY=[],e.prevX=[],e.prevYF=[],e.prevXF=[],e.prevYVal=[],e.prevXVal=[])}},{key:"initializeStackedXYVars",value:function(e){var t=e.w;t.globals.hasSeriesGroups?t.globals.seriesGroups.forEach(function(a){e[a]||(e[a]={}),e[a].xArrj=[],e[a].xArrjF=[],e[a].xArrjVal=[],e[a].yArrj=[],e[a].yArrjF=[],e[a].yArrjVal=[]}):(e.xArrj=[],e.xArrjF=[],e.xArrjVal=[],e.yArrj=[],e.yArrjF=[],e.yArrjVal=[])}},{key:"getPathFillColor",value:function(e,t,a,r){var o,n,c,h,u=this.w,m=new fe(this.barCtx.ctx),v=null,x=this.barCtx.barOptions.distributed?a:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(w){e[t][a]>=w.from&&e[t][a]<=w.to&&(v=w.color)}),u.config.series[t].data[a]&&u.config.series[t].data[a].fillColor&&(v=u.config.series[t].data[a].fillColor),m.fillPath({seriesNumber:this.barCtx.barOptions.distributed?x:r,dataPointIndex:a,color:v,value:e[t][a],fillConfig:(o=u.config.series[t].data[a])===null||o===void 0?void 0:o.fill,fillType:(n=u.config.series[t].data[a])!==null&&n!==void 0&&(c=n.fill)!==null&&c!==void 0&&c.type?(h=u.config.series[t].data[a])===null||h===void 0?void 0:h.fill.type:Array.isArray(u.config.fill.type)?u.config.fill.type[t]:u.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,a){var r=0,o=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,o.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[a]:this.barCtx.strokeWidth)),r}},{key:"shouldApplyRadius",value:function(e){var t=this.w,a=!1;return t.config.plotOptions.bar.borderRadius>0&&(t.config.chart.stacked&&t.config.plotOptions.bar.borderRadiusWhenStacked==="last"?this.barCtx.lastActiveBarSerieIndex===e&&(a=!0):a=!0),a}},{key:"barBackground",value:function(e){var t=e.j,a=e.i,r=e.x1,o=e.x2,n=e.y1,c=e.y2,h=e.elSeries,u=this.w,m=new j(this.barCtx.ctx),v=new Le(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&v===a){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var x=this.barCtx.barOptions.colors.backgroundBarColors[t],w=m.drawRect(r!==void 0?r:0,n!==void 0?n:0,o!==void 0?o:u.globals.gridWidth,c!==void 0?c:u.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,x,this.barCtx.barOptions.colors.backgroundBarOpacity);h.add(w),w.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,a=e.barWidth,r=e.barXPosition,o=e.y1,n=e.y2,c=e.strokeWidth,h=e.seriesGroup,u=e.realIndex,m=e.i,v=e.j,x=e.w,w=new j(this.barCtx.ctx);(c=Array.isArray(c)?c[u]:c)||(c=0);var k=a,E=r;(t=x.config.series[u].data[v])!==null&&t!==void 0&&t.columnWidthOffset&&(E=r-x.config.series[u].data[v].columnWidthOffset/2,k=a+x.config.series[u].data[v].columnWidthOffset);var L=E,I=E+k;o+=.001,n+=.001;var D=w.move(L,o),p=w.move(L,o),b=w.line(I-c,o);if(x.globals.previousPaths.length>0&&(p=this.barCtx.getPreviousPath(u,v,!1)),D=D+w.line(L,n)+w.line(I-c,n)+w.line(I-c,o)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),p=p+w.line(L,o)+b+b+b+b+b+w.line(L,o)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(u)&&(D=w.roundPathCorners(D,x.config.plotOptions.bar.borderRadius)),x.config.chart.stacked){var C=this.barCtx;x.globals.hasSeriesGroups&&h&&(C=this.barCtx[h]),C.yArrj.push(n),C.yArrjF.push(Math.abs(o-n)),C.yArrjVal.push(this.barCtx.series[m][v])}return{pathTo:D,pathFrom:p}}},{key:"getBarpaths",value:function(e){var t,a=e.barYPosition,r=e.barHeight,o=e.x1,n=e.x2,c=e.strokeWidth,h=e.seriesGroup,u=e.realIndex,m=e.i,v=e.j,x=e.w,w=new j(this.barCtx.ctx);(c=Array.isArray(c)?c[u]:c)||(c=0);var k=a,E=r;(t=x.config.series[u].data[v])!==null&&t!==void 0&&t.barHeightOffset&&(k=a-x.config.series[u].data[v].barHeightOffset/2,E=r+x.config.series[u].data[v].barHeightOffset);var L=k,I=k+E;o+=.001,n+=.001;var D=w.move(o,L),p=w.move(o,L);x.globals.previousPaths.length>0&&(p=this.barCtx.getPreviousPath(u,v,!1));var b=w.line(o,I-c);if(D=D+w.line(n,L)+w.line(n,I-c)+b+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),p=p+w.line(o,L)+b+b+b+b+b+w.line(o,L)+(x.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z"),this.shouldApplyRadius(u)&&(D=w.roundPathCorners(D,x.config.plotOptions.bar.borderRadius)),x.config.chart.stacked){var C=this.barCtx;x.globals.hasSeriesGroups&&h&&(C=this.barCtx[h]),C.xArrj.push(n),C.xArrjF.push(Math.abs(o-n)),C.xArrjVal.push(this.barCtx.series[m][v])}return{pathTo:D,pathFrom:p}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,a=this.w,r=0;r<t.length;r++){for(var o=0,n=0;n<t[a.globals.maxValsInArrayIndex].length;n++)o+=t[r][n];o===0&&this.barCtx.zeroSerieses.push(r)}}},{key:"getXForValue",value:function(e,t){var a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(a=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),a}},{key:"getYForValue",value:function(e,t,a){var r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3]?t:null;return e!=null&&(r=t-e/this.barCtx.yRatio[a]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[a]:0)),r}},{key:"getGoalValues",value:function(e,t,a,r,o,n){var c=this,h=this.w,u=[],m=function(w,k){var E;u.push((A(E={},e,e==="x"?c.getXForValue(w,t,!1):c.getYForValue(w,a,n,!1)),A(E,"attrs",k),E))};if(h.globals.seriesGoals[r]&&h.globals.seriesGoals[r][o]&&Array.isArray(h.globals.seriesGoals[r][o])&&h.globals.seriesGoals[r][o].forEach(function(w){m(w.value,w)}),this.barCtx.barOptions.isDumbbell&&h.globals.seriesRange.length){var v=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:h.globals.colors,x={strokeHeight:e==="x"?0:h.globals.markers.size[r],strokeWidth:e==="x"?h.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(v[r])?v[r][0]:v[r]};m(h.globals.seriesRangeStart[r][o],x),m(h.globals.seriesRangeEnd[r][o],d(d({},x),{},{strokeColor:Array.isArray(v[r])?v[r][1]:v[r]}))}return u}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,a=e.barYPosition,r=e.goalX,o=e.goalY,n=e.barWidth,c=e.barHeight,h=new j(this.barCtx.ctx),u=h.group({className:"apexcharts-bar-goals-groups"});u.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:u.node}),u.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var m=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach(function(v){if(v.x>=-1&&v.x<=h.w.globals.gridWidth+1){var x=v.attrs.strokeHeight!==void 0?v.attrs.strokeHeight:c/2,w=a+x+c/2;m=h.drawLine(v.x,w-2*x,v.x,w,v.attrs.strokeColor?v.attrs.strokeColor:void 0,v.attrs.strokeDashArray,v.attrs.strokeWidth?v.attrs.strokeWidth:2,v.attrs.strokeLineCap),u.add(m)}}):Array.isArray(o)&&o.forEach(function(v){if(v.y>=-1&&v.y<=h.w.globals.gridHeight+1){var x=v.attrs.strokeWidth!==void 0?v.attrs.strokeWidth:n/2,w=t+x+n/2;m=h.drawLine(w-2*x,v.y,w,v.y,v.attrs.strokeColor?v.attrs.strokeColor:void 0,v.attrs.strokeDashArray,v.attrs.strokeHeight?v.attrs.strokeHeight:2,v.attrs.strokeLineCap),u.add(m)}}),u}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,a=e.currPaths,r=e.color,o=this.w,n=t.x,c=t.x1,h=t.barYPosition,u=a.x,m=a.x1,v=a.barYPosition,x=h+a.barHeight,w=new j(this.barCtx.ctx),k=new P,E=w.move(c,x)+w.line(n,x)+w.line(u,v)+w.line(m,v)+w.line(c,x)+(o.config.plotOptions.bar.borderRadiusApplication==="around"?" Z":" z");return w.drawPath({d:E,fill:k.shadeColor(.5,P.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t=e.i,a=e.j,r=this.w,o=0,n=0;return r.globals.seriesPercent.forEach(function(c,h){c[a]&&o++,h<t&&c[a]===0&&n++}),{nonZeroColumns:o,zeroEncounters:n}}}]),z}(),hi=function(){function z(e,t){g(this,z),this.ctx=e,this.w=e.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.isRangeBar=a.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!a.globals.isBarHorizontal&&a.globals.seriesRange.length&&a.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=t,this.xyRatios!==null&&(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 r=new Le(this.ctx);this.lastActiveBarSerieIndex=r.getActiveConfigSeriesIndex("desc",["bar","column"]);var o=r.getBarSeriesIndices(),n=new U(this.ctx);this.stackedSeriesTotals=n.getStackedSeriesTotals(this.w.config.series.map(function(c,h){return o.indexOf(h)===-1?h:-1}).filter(function(c){return c!==-1})),this.barHelpers=new Tl(this)}return y(z,[{key:"draw",value:function(e,t){var a=this.w,r=new j(this.ctx),o=new U(this.ctx,a);e=o.getLogSeries(e),this.series=e,this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var n=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});a.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 c=0,h=0;c<e.length;c++,h++){var u,m,v,x,w=void 0,k=void 0,E=[],L=[],I=a.globals.comboCharts?t[c]:c,D=r.group({class:"apexcharts-series",rel:c+1,seriesName:P.escapeString(a.globals.seriesNames[I]),"data:realIndex":I});this.ctx.series.addCollapsedClassToSeries(D,I),e[c].length>0&&(this.visibleI=this.visibleI+1);var p=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[I],this.translationsIndex=I);var C=this.translationsIndex;this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed;var X=this.barHelpers.initialPositions();k=X.y,p=X.barHeight,m=X.yDivision,x=X.zeroW,w=X.x,b=X.barWidth,u=X.xDivision,v=X.zeroH,this.horizontal||L.push(w+b/2);var O=r.group({class:"apexcharts-datalabels","data:realIndex":I});a.globals.delayedElements.push({el:O.node}),O.node.classList.add("apexcharts-element-hidden");var N=r.group({class:"apexcharts-bar-goals-markers"}),$=r.group({class:"apexcharts-bar-shadows"});a.globals.delayedElements.push({el:$.node}),$.node.classList.add("apexcharts-element-hidden");for(var V=0;V<e[c].length;V++){var re=this.barHelpers.getStrokeWidth(c,V,I),ie=null,ae={indexes:{i:c,j:V,realIndex:I,translationsIndex:C,bc:h},x:w,y:k,strokeWidth:re,elSeries:D};this.isHorizontal?(ie=this.drawBarPaths(d(d({},ae),{},{barHeight:p,zeroW:x,yDivision:m})),b=this.series[c][V]/this.invertedYRatio):(ie=this.drawColumnPaths(d(d({},ae),{},{xDivision:u,barWidth:b,zeroH:v})),p=this.series[c][V]/this.yRatio[C]);var ce=this.barHelpers.getPathFillColor(e,c,V,I);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&V>0){var me=this.barHelpers.drawBarShadow({color:typeof ce=="string"&&(ce==null?void 0:ce.indexOf("url"))===-1?ce:P.hexToRgba(a.globals.colors[c]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:ie});me&&$.add(me)}this.pathArr.push(ie);var xe=this.barHelpers.drawGoalLine({barXPosition:ie.barXPosition,barYPosition:ie.barYPosition,goalX:ie.goalX,goalY:ie.goalY,barHeight:p,barWidth:b});xe&&N.add(xe),k=ie.y,w=ie.x,V>0&&L.push(w+b/2),E.push(k),this.renderSeries({realIndex:I,pathFill:ce,j:V,i:c,pathFrom:ie.pathFrom,pathTo:ie.pathTo,strokeWidth:re,elSeries:D,x:w,y:k,series:e,barHeight:ie.barHeight?ie.barHeight:p,barWidth:ie.barWidth?ie.barWidth:b,elDataLabelsWrap:O,elGoalsMarkers:N,elBarShadows:$,visibleSeries:this.visibleI,type:"bar"})}a.globals.seriesXvalues[I]=L,a.globals.seriesYvalues[I]=E,n.add(D)}return n}},{key:"renderSeries",value:function(e){var t=e.realIndex,a=e.pathFill,r=e.lineFill,o=e.j,n=e.i,c=e.groupIndex,h=e.pathFrom,u=e.pathTo,m=e.strokeWidth,v=e.elSeries,x=e.x,w=e.y,k=e.y1,E=e.y2,L=e.series,I=e.barHeight,D=e.barWidth,p=e.barXPosition,b=e.barYPosition,C=e.elDataLabelsWrap,X=e.elGoalsMarkers,O=e.elBarShadows,N=e.visibleSeries,$=e.type,V=this.w,re=new j(this.ctx);if(!r){var ie=typeof V.globals.stroke.colors[t]=="function"?function(we){var be,Se=V.config.stroke.colors;return Array.isArray(Se)&&Se.length>0&&((be=Se[we])||(be=""),typeof be=="function")?be({value:V.globals.series[we][o],dataPointIndex:o,w:V}):be}(t):V.globals.stroke.colors[t];r=this.barOptions.distributed?V.globals.stroke.colors[o]:ie}V.config.series[n].data[o]&&V.config.series[n].data[o].strokeColor&&(r=V.config.series[n].data[o].strokeColor),this.isNullValue&&(a="none");var ae=o/V.config.chart.animations.animateGradually.delay*(V.config.chart.animations.speed/V.globals.dataPoints)/2.4,ce=re.renderPaths({i:n,j:o,realIndex:t,pathFrom:h,pathTo:u,stroke:r,strokeWidth:m,strokeLineCap:V.config.stroke.lineCap,fill:a,animationDelay:ae,initialSpeed:V.config.chart.animations.speed,dataChangeSpeed:V.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat($,"-area")});ce.attr("clip-path","url(#gridRectMask".concat(V.globals.cuid,")"));var me=V.config.forecastDataPoints;me.count>0&&o>=V.globals.dataPoints-me.count&&(ce.node.setAttribute("stroke-dasharray",me.dashArray),ce.node.setAttribute("stroke-width",me.strokeWidth),ce.node.setAttribute("fill-opacity",me.fillOpacity)),k!==void 0&&E!==void 0&&(ce.attr("data-range-y1",k),ce.attr("data-range-y2",E)),new q(this.ctx).setSelectionFilter(ce,t,o),v.add(ce);var xe=new El(this).handleBarDataLabels({x,y:w,y1:k,y2:E,i:n,j:o,series:L,realIndex:t,groupIndex:c,barHeight:I,barWidth:D,barXPosition:p,barYPosition:b,renderedPath:ce,visibleSeries:N});return xe.dataLabels!==null&&C.add(xe.dataLabels),xe.totalDataLabels&&C.add(xe.totalDataLabels),v.add(C),X&&v.add(X),O&&v.add(O),v}},{key:"drawBarPaths",value:function(e){var t,a=e.indexes,r=e.barHeight,o=e.strokeWidth,n=e.zeroW,c=e.x,h=e.y,u=e.yDivision,m=e.elSeries,v=this.w,x=a.i,w=a.j;if(v.globals.isXNumeric)t=(h=(v.globals.seriesX[x][w]-v.globals.minX)/this.invertedXRatio-r)+r*this.visibleI;else if(v.config.plotOptions.bar.hideZeroBarsWhenGrouped){var k=0,E=0;v.globals.seriesPercent.forEach(function(I,D){I[w]&&k++,D<x&&I[w]===0&&E++}),k>0&&(r=this.seriesLen*r/k),t=h+r*this.visibleI,t-=r*E}else t=h+r*this.visibleI;this.isFunnel&&(n-=(this.barHelpers.getXForValue(this.series[x][w],n)-n)/2),c=this.barHelpers.getXForValue(this.series[x][w],n);var L=this.barHelpers.getBarpaths({barYPosition:t,barHeight:r,x1:n,x2:c,strokeWidth:o,series:this.series,realIndex:a.realIndex,i:x,j:w,w:v});return v.globals.isXNumeric||(h+=u),this.barHelpers.barBackground({j:w,i:x,y1:t-r*this.visibleI,y2:r*this.seriesLen,elSeries:m}),{pathTo:L.pathTo,pathFrom:L.pathFrom,x1:n,x:c,y:h,goalX:this.barHelpers.getGoalValues("x",n,null,x,w),barYPosition:t,barHeight:r}}},{key:"drawColumnPaths",value:function(e){var t,a=e.indexes,r=e.x,o=e.y,n=e.xDivision,c=e.barWidth,h=e.zeroH,u=e.strokeWidth,m=e.elSeries,v=this.w,x=a.realIndex,w=a.translationsIndex,k=a.i,E=a.j,L=a.bc;if(v.globals.isXNumeric){var I=this.getBarXForNumericXAxis({x:r,j:E,realIndex:x,barWidth:c});r=I.x,t=I.barXPosition}else if(v.config.plotOptions.bar.hideZeroBarsWhenGrouped){var D=this.barHelpers.getZeroValueEncounters({i:k,j:E}),p=D.nonZeroColumns,b=D.zeroEncounters;p>0&&(c=this.seriesLen*c/p),t=r+c*this.visibleI,t-=c*b}else t=r+c*this.visibleI;o=this.barHelpers.getYForValue(this.series[k][E],h,w);var C=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:c,y1:h,y2:o,strokeWidth:u,series:this.series,realIndex:x,i:k,j:E,w:v});return v.globals.isXNumeric||(r+=n),this.barHelpers.barBackground({bc:L,j:E,i:k,x1:t-u/2-c*this.visibleI,x2:c*this.seriesLen+u/2,elSeries:m}),{pathTo:C.pathTo,pathFrom:C.pathFrom,x:r,y:o,goalY:this.barHelpers.getGoalValues("y",null,h,k,E,w),barXPosition:t,barWidth:c}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,a=e.barWidth,r=e.realIndex,o=e.j,n=this.w,c=r;return n.globals.seriesX[r].length||(c=n.globals.maxValsInArrayIndex),n.globals.seriesX[c][o]&&(t=(n.globals.seriesX[c][o]-n.globals.minX)/this.xRatio-a*this.seriesLen/2),{barXPosition:t+a*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var a,r=this.w,o=0;o<r.globals.previousPaths.length;o++){var n=r.globals.previousPaths[o];n.paths&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(e,10)&&r.globals.previousPaths[o].paths[t]!==void 0&&(a=r.globals.previousPaths[o].paths[t].d)}return a}}]),z}(),Mr=function(z){M(t,hi);var e=Y(t);function t(){return g(this,t),e.apply(this,arguments)}return y(t,[{key:"draw",value:function(a,r){var o=this,n=this.w;this.graphics=new j(this.ctx),this.bar=new hi(this.ctx,this.xyRatios);var c=new U(this.ctx,n);a=c.getLogSeries(a),this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(a),n.config.chart.stackType==="100%"&&(a=n.globals.seriesPercent.slice()),this.series=a,this.barHelpers.initializeStackedPrevVars(this);for(var h=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),u=0,m=0,v=function(k,E){var L=void 0,I=void 0,D=void 0,p=void 0,b=-1;o.groupCtx=o,n.globals.seriesGroups.forEach(function(ke,Re){ke.indexOf(n.globals.seriesNames[k])>-1&&(b=Re)}),b!==-1&&(o.groupCtx=o[n.globals.seriesGroups[b]]);var C=[],X=[],O=n.globals.comboCharts?r[k]:k,N=0;o.yRatio.length>1&&(o.yaxisIndex=n.globals.seriesYAxisReverseMap[O][0],N=O),o.isReversed=n.config.yaxis[o.yaxisIndex]&&n.config.yaxis[o.yaxisIndex].reversed;var $=o.graphics.group({class:"apexcharts-series",seriesName:P.escapeString(n.globals.seriesNames[O]),rel:k+1,"data:realIndex":O});o.ctx.series.addCollapsedClassToSeries($,O);var V=o.graphics.group({class:"apexcharts-datalabels","data:realIndex":O}),re=o.graphics.group({class:"apexcharts-bar-goals-markers"}),ie=0,ae=0,ce=o.initialPositions(u,m,L,I,D,p,N);m=ce.y,ie=ce.barHeight,I=ce.yDivision,p=ce.zeroW,u=ce.x,ae=ce.barWidth,L=ce.xDivision,D=ce.zeroH,n.globals.barHeight=ie,n.globals.barWidth=ae,o.barHelpers.initializeStackedXYVars(o),o.groupCtx.prevY.length===1&&o.groupCtx.prevY[0].every(function(ke){return isNaN(ke)})&&(o.groupCtx.prevY[0]=o.groupCtx.prevY[0].map(function(ke){return D}),o.groupCtx.prevYF[0]=o.groupCtx.prevYF[0].map(function(ke){return 0}));for(var me=0;me<n.globals.dataPoints;me++){var xe=o.barHelpers.getStrokeWidth(k,me,O),we={indexes:{i:k,j:me,realIndex:O,translationsIndex:N,bc:E},strokeWidth:xe,x:u,y:m,elSeries:$,groupIndex:b,seriesGroup:n.globals.seriesGroups[b]},be=null;o.isHorizontal?(be=o.drawStackedBarPaths(d(d({},we),{},{zeroW:p,barHeight:ie,yDivision:I})),ae=o.series[k][me]/o.invertedYRatio):(be=o.drawStackedColumnPaths(d(d({},we),{},{xDivision:L,barWidth:ae,zeroH:D})),ie=o.series[k][me]/o.yRatio[N]);var Se=o.barHelpers.drawGoalLine({barXPosition:be.barXPosition,barYPosition:be.barYPosition,goalX:be.goalX,goalY:be.goalY,barHeight:ie,barWidth:ae});Se&&re.add(Se),m=be.y,u=be.x,C.push(u),X.push(m);var _e=o.barHelpers.getPathFillColor(a,k,me,O);$=o.renderSeries({realIndex:O,pathFill:_e,j:me,i:k,groupIndex:b,pathFrom:be.pathFrom,pathTo:be.pathTo,strokeWidth:xe,elSeries:$,x:u,y:m,series:a,barHeight:ie,barWidth:ae,elDataLabelsWrap:V,elGoalsMarkers:re,type:"bar",visibleSeries:0})}n.globals.seriesXvalues[O]=C,n.globals.seriesYvalues[O]=X,o.groupCtx.prevY.push(o.groupCtx.yArrj),o.groupCtx.prevYF.push(o.groupCtx.yArrjF),o.groupCtx.prevYVal.push(o.groupCtx.yArrjVal),o.groupCtx.prevX.push(o.groupCtx.xArrj),o.groupCtx.prevXF.push(o.groupCtx.xArrjF),o.groupCtx.prevXVal.push(o.groupCtx.xArrjVal),h.add($)},x=0,w=0;x<a.length;x++,w++)v(x,w);return h}},{key:"initialPositions",value:function(a,r,o,n,c,h,u){var m,v,x=this.w;this.isHorizontal?(m=(m=n=x.globals.gridHeight/x.globals.dataPoints)*parseInt(x.config.plotOptions.bar.barHeight,10)/100,String(x.config.plotOptions.bar.barHeight).indexOf("%")===-1&&(m=parseInt(x.config.plotOptions.bar.barHeight,10)),h=this.baseLineInvertedY+x.globals.padHorizontal+(this.isReversed?x.globals.gridWidth:0)-(this.isReversed?2*this.baseLineInvertedY:0),r=(n-m)/2):(v=o=x.globals.gridWidth/x.globals.dataPoints,v=x.globals.isXNumeric&&x.globals.dataPoints>1?(o=x.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:v*parseInt(x.config.plotOptions.bar.columnWidth,10)/100,String(x.config.plotOptions.bar.columnWidth).indexOf("%")===-1&&(v=parseInt(x.config.plotOptions.bar.columnWidth,10)),c=x.globals.gridHeight-this.baseLineY[u]-(this.isReversed?x.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[u]:0),a=x.globals.padHorizontal+(o-v)/2);var w=x.globals.barGroups.length?x.globals.barGroups.length:1;return{x:a,y:r,yDivision:n,xDivision:o,barHeight:m/w,barWidth:v/w,zeroH:c,zeroW:h}}},{key:"drawStackedBarPaths",value:function(a){for(var r,o=a.indexes,n=a.barHeight,c=a.strokeWidth,h=a.zeroW,u=a.x,m=a.y,v=a.groupIndex,x=a.seriesGroup,w=a.yDivision,k=a.elSeries,E=this.w,L=m+(v!==-1?v*n:0),I=o.i,D=o.j,p=o.translationsIndex,b=0,C=0;C<this.groupCtx.prevXF.length;C++)b+=this.groupCtx.prevXF[C][D];var X=I;if(x&&(X=x.indexOf(E.config.series[I].name)),X>0){var O=h;this.groupCtx.prevXVal[X-1][D]<0?O=this.series[I][D]>=0?this.groupCtx.prevX[X-1][D]+b-2*(this.isReversed?b:0):this.groupCtx.prevX[X-1][D]:this.groupCtx.prevXVal[X-1][D]>=0&&(O=this.series[I][D]>=0?this.groupCtx.prevX[X-1][D]:this.groupCtx.prevX[X-1][D]-b+2*(this.isReversed?b:0)),r=O}else r=h;u=this.series[I][D]===null?r:r+this.series[I][D]/this.invertedYRatio-2*(this.isReversed?this.series[I][D]/this.invertedYRatio:0);var N=this.barHelpers.getBarpaths({barYPosition:L,barHeight:n,x1:r,x2:u,strokeWidth:c,series:this.series,realIndex:o.realIndex,seriesGroup:x,i:I,j:D,w:E});return this.barHelpers.barBackground({j:D,i:I,y1:L,y2:n,elSeries:k}),m+=w,{pathTo:N.pathTo,pathFrom:N.pathFrom,goalX:this.barHelpers.getGoalValues("x",h,null,I,D,p),barYPosition:L,x:u,y:m}}},{key:"drawStackedColumnPaths",value:function(a){var r=a.indexes,o=a.x,n=a.y,c=a.xDivision,h=a.barWidth,u=a.zeroH,m=a.groupIndex,v=a.seriesGroup,x=a.elSeries,w=this.w,k=r.i,E=r.j,L=r.bc,I=r.translationsIndex;if(w.globals.isXNumeric){var D=w.globals.seriesX[k][E];D||(D=0),o=(D-w.globals.minX)/this.xRatio-h/2,w.globals.barGroups.length&&(o=(D-w.globals.minX)/this.xRatio-h/2*w.globals.barGroups.length)}for(var p,b=o+(m!==-1?m*h:0),C=0,X=0;X<this.groupCtx.prevYF.length;X++)C+=isNaN(this.groupCtx.prevYF[X][E])?0:this.groupCtx.prevYF[X][E];var O=k;if(v&&(O=v.indexOf(w.globals.seriesNames[k])),O>0&&!w.globals.isXNumeric||O>0&&w.globals.isXNumeric&&w.globals.seriesX[k-1][E]===w.globals.seriesX[k][E]){var N,$,V,re=Math.min(this.yRatio.length+1,k+1);if(this.groupCtx.prevY[O-1]!==void 0&&this.groupCtx.prevY[O-1].length)for(var ie=1;ie<re;ie++){var ae;if(!isNaN((ae=this.groupCtx.prevY[O-ie])===null||ae===void 0?void 0:ae[E])){V=this.groupCtx.prevY[O-ie][E];break}}for(var ce=1;ce<re;ce++){var me,xe;if(((me=this.groupCtx.prevYVal[O-ce])===null||me===void 0?void 0:me[E])<0){$=this.series[k][E]>=0?V-C+2*(this.isReversed?C:0):V;break}if(((xe=this.groupCtx.prevYVal[O-ce])===null||xe===void 0?void 0:xe[E])>=0){$=this.series[k][E]>=0?V:V+C-2*(this.isReversed?C:0);break}}$===void 0&&($=w.globals.gridHeight),p=(N=this.groupCtx.prevYF[0])!==null&&N!==void 0&&N.every(function(be){return be===0})&&this.groupCtx.prevYF.slice(1,O).every(function(be){return be.every(function(Se){return isNaN(Se)})})?u:$}else p=u;n=this.series[k][E]?p-this.series[k][E]/this.yRatio[I]+2*(this.isReversed?this.series[k][E]/this.yRatio[I]:0):p;var we=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:h,y1:p,y2:n,yRatio:this.yRatio[I],strokeWidth:this.strokeWidth,series:this.series,seriesGroup:v,realIndex:r.realIndex,i:k,j:E,w});return this.barHelpers.barBackground({bc:L,j:E,i:k,x1:b,x2:h,elSeries:x}),o+=c,{pathTo:we.pathTo,pathFrom:we.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,u,k,E),barXPosition:b,x:w.globals.isXNumeric?o-c:o,y:n}}}]),t}(),ja=function(z){M(t,hi);var e=Y(t);function t(){return g(this,t),e.apply(this,arguments)}return y(t,[{key:"draw",value:function(a,r,o){var n=this,c=this.w,h=new j(this.ctx),u=c.globals.comboCharts?r:c.config.chart.type,m=new fe(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=c.config.plotOptions.bar.horizontal;var v=new U(this.ctx,c);a=v.getLogSeries(a),this.series=a,this.yRatio=v.getLogYRatios(this.yRatio),this.barHelpers.initVariables(a);for(var x=h.group({class:"apexcharts-".concat(u,"-series apexcharts-plot-series")}),w=function(E){n.isBoxPlot=c.config.chart.type==="boxPlot"||c.config.series[E].type==="boxPlot";var L,I,D,p,b=void 0,C=void 0,X=[],O=[],N=c.globals.comboCharts?o[E]:E,$=h.group({class:"apexcharts-series",seriesName:P.escapeString(c.globals.seriesNames[N]),rel:E+1,"data:realIndex":N});n.ctx.series.addCollapsedClassToSeries($,N),a[E].length>0&&(n.visibleI=n.visibleI+1);var V,re,ie=0;n.yRatio.length>1&&(n.yaxisIndex=c.globals.seriesYAxisReverseMap[N][0],ie=N);var ae=n.barHelpers.initialPositions();C=ae.y,V=ae.barHeight,I=ae.yDivision,p=ae.zeroW,b=ae.x,re=ae.barWidth,L=ae.xDivision,D=ae.zeroH,O.push(b+re/2);for(var ce=h.group({class:"apexcharts-datalabels","data:realIndex":N}),me=function(we){var be=n.barHelpers.getStrokeWidth(E,we,N),Se=null,_e={indexes:{i:E,j:we,realIndex:N,translationsIndex:ie},x:b,y:C,strokeWidth:be,elSeries:$};Se=n.isHorizontal?n.drawHorizontalBoxPaths(d(d({},_e),{},{yDivision:I,barHeight:V,zeroW:p})):n.drawVerticalBoxPaths(d(d({},_e),{},{xDivision:L,barWidth:re,zeroH:D})),C=Se.y,b=Se.x,we>0&&O.push(b+re/2),X.push(C),Se.pathTo.forEach(function(ke,Re){var Fe=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?Se.color[Re]:c.globals.stroke.colors[E],ze=m.fillPath({seriesNumber:N,dataPointIndex:we,color:Se.color[Re],value:a[E][we]});n.renderSeries({realIndex:N,pathFill:ze,lineFill:Fe,j:we,i:E,pathFrom:Se.pathFrom,pathTo:ke,strokeWidth:be,elSeries:$,x:b,y:C,series:a,barHeight:V,barWidth:re,elDataLabelsWrap:ce,visibleSeries:n.visibleI,type:c.config.chart.type})})},xe=0;xe<c.globals.dataPoints;xe++)me(xe);c.globals.seriesXvalues[N]=O,c.globals.seriesYvalues[N]=X,x.add($)},k=0;k<a.length;k++)w(k);return x}},{key:"drawVerticalBoxPaths",value:function(a){var r=a.indexes,o=a.x;a.y;var n=a.xDivision,c=a.barWidth,h=a.zeroH,u=a.strokeWidth,m=this.w,v=new j(this.ctx),x=r.i,w=r.j,k=!0,E=m.config.plotOptions.candlestick.colors.upward,L=m.config.plotOptions.candlestick.colors.downward,I="";this.isBoxPlot&&(I=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var D=this.yRatio[r.translationsIndex],p=r.realIndex,b=this.getOHLCValue(p,w),C=h,X=h;b.o>b.c&&(k=!1);var O=Math.min(b.o,b.c),N=Math.max(b.o,b.c),$=b.m;m.globals.isXNumeric&&(o=(m.globals.seriesX[p][w]-m.globals.minX)/this.xRatio-c/2);var V=o+c*this.visibleI;this.series[x][w]===void 0||this.series[x][w]===null?(O=h,N=h):(O=h-O/D,N=h-N/D,C=h-b.h/D,X=h-b.l/D,$=h-b.m/D);var re=v.move(V,h),ie=v.move(V+c/2,O);return m.globals.previousPaths.length>0&&(ie=this.getPreviousPath(p,w,!0)),re=this.isBoxPlot?[v.move(V,O)+v.line(V+c/2,O)+v.line(V+c/2,C)+v.line(V+c/4,C)+v.line(V+c-c/4,C)+v.line(V+c/2,C)+v.line(V+c/2,O)+v.line(V+c,O)+v.line(V+c,$)+v.line(V,$)+v.line(V,O+u/2),v.move(V,$)+v.line(V+c,$)+v.line(V+c,N)+v.line(V+c/2,N)+v.line(V+c/2,X)+v.line(V+c-c/4,X)+v.line(V+c/4,X)+v.line(V+c/2,X)+v.line(V+c/2,N)+v.line(V,N)+v.line(V,$)+"z"]:[v.move(V,N)+v.line(V+c/2,N)+v.line(V+c/2,C)+v.line(V+c/2,N)+v.line(V+c,N)+v.line(V+c,O)+v.line(V+c/2,O)+v.line(V+c/2,X)+v.line(V+c/2,O)+v.line(V,O)+v.line(V,N-u/2)],ie+=v.move(V,O),m.globals.isXNumeric||(o+=n),{pathTo:re,pathFrom:ie,x:o,y:N,barXPosition:V,color:this.isBoxPlot?I:k?[E]:[L]}}},{key:"drawHorizontalBoxPaths",value:function(a){var r=a.indexes;a.x;var o=a.y,n=a.yDivision,c=a.barHeight,h=a.zeroW,u=a.strokeWidth,m=this.w,v=new j(this.ctx),x=r.i,w=r.j,k=this.boxOptions.colors.lower;this.isBoxPlot&&(k=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var E=this.invertedYRatio,L=r.realIndex,I=this.getOHLCValue(L,w),D=h,p=h,b=Math.min(I.o,I.c),C=Math.max(I.o,I.c),X=I.m;m.globals.isXNumeric&&(o=(m.globals.seriesX[L][w]-m.globals.minX)/this.invertedXRatio-c/2);var O=o+c*this.visibleI;this.series[x][w]===void 0||this.series[x][w]===null?(b=h,C=h):(b=h+b/E,C=h+C/E,D=h+I.h/E,p=h+I.l/E,X=h+I.m/E);var N=v.move(h,O),$=v.move(b,O+c/2);return m.globals.previousPaths.length>0&&($=this.getPreviousPath(L,w,!0)),N=[v.move(b,O)+v.line(b,O+c/2)+v.line(D,O+c/2)+v.line(D,O+c/2-c/4)+v.line(D,O+c/2+c/4)+v.line(D,O+c/2)+v.line(b,O+c/2)+v.line(b,O+c)+v.line(X,O+c)+v.line(X,O)+v.line(b+u/2,O),v.move(X,O)+v.line(X,O+c)+v.line(C,O+c)+v.line(C,O+c/2)+v.line(p,O+c/2)+v.line(p,O+c-c/4)+v.line(p,O+c/4)+v.line(p,O+c/2)+v.line(C,O+c/2)+v.line(C,O)+v.line(X,O)+"z"],$+=v.move(b,O),m.globals.isXNumeric||(o+=n),{pathTo:N,pathFrom:$,x:C,y:o,barYPosition:O,color:k}}},{key:"getOHLCValue",value:function(a,r){var o=this.w;return{o:this.isBoxPlot?o.globals.seriesCandleH[a][r]:o.globals.seriesCandleO[a][r],h:this.isBoxPlot?o.globals.seriesCandleO[a][r]:o.globals.seriesCandleH[a][r],m:o.globals.seriesCandleM[a][r],l:this.isBoxPlot?o.globals.seriesCandleC[a][r]:o.globals.seriesCandleL[a][r],c:this.isBoxPlot?o.globals.seriesCandleL[a][r]:o.globals.seriesCandleC[a][r]}}}]),t}(),Pr=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,a=e.config.plotOptions[e.config.chart.type];return a.colorScale.ranges.length>0&&a.colorScale.ranges.map(function(r,o){r.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,a,r){var o=this.w,n=1,c=o.config.plotOptions[e].shadeIntensity,h=this.determineColor(e,t,a);o.globals.hasNegs||r?n=o.config.plotOptions[e].reverseNegativeShade?h.percent<0?h.percent/100*(1.25*c):(1-h.percent/100)*(1.25*c):h.percent<=0?1-(1+h.percent/100)*c:(1-h.percent/100)*c:(n=1-h.percent/100,e==="treemap"&&(n=(1-h.percent/100)*(1.25*c)));var u=h.color,m=new P;return o.config.plotOptions[e].enableShades&&(u=this.w.config.theme.mode==="dark"?P.hexToRgba(m.shadeColor(-1*n,h.color),o.config.fill.opacity):P.hexToRgba(m.shadeColor(n,h.color),o.config.fill.opacity)),{color:u,colorProps:h}}},{key:"determineColor",value:function(e,t,a){var r=this.w,o=r.globals.series[t][a],n=r.config.plotOptions[e],c=n.colorScale.inverse?a:t;n.distributed&&r.config.chart.type==="treemap"&&(c=a);var h=r.globals.colors[c],u=null,m=Math.min.apply(Math,W(r.globals.series[t])),v=Math.max.apply(Math,W(r.globals.series[t]));n.distributed||e!=="heatmap"||(m=r.globals.minY,v=r.globals.maxY),n.colorScale.min!==void 0&&(m=n.colorScale.min<r.globals.minY?n.colorScale.min:r.globals.minY,v=n.colorScale.max>r.globals.maxY?n.colorScale.max:r.globals.maxY);var x=Math.abs(v)+Math.abs(m),w=100*o/(x===0?x-1e-6:x);return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(k,E){if(o>=k.from&&o<=k.to){h=k.color,u=k.foreColor?k.foreColor:null,m=k.from,v=k.to;var L=Math.abs(v)+Math.abs(m);w=100*o/(L===0?L-1e-6:L)}}),{color:h,foreColor:u,percent:w}}},{key:"calculateDataLabels",value:function(e){var t=e.text,a=e.x,r=e.y,o=e.i,n=e.j,c=e.colorProps,h=e.fontSize,u=this.w.config.dataLabels,m=new j(this.ctx),v=new Ae(this.ctx),x=null;if(u.enabled){x=m.group({class:"apexcharts-data-labels"});var w=u.offsetX,k=u.offsetY,E=a+w,L=r+parseFloat(u.style.fontSize)/3+k;v.plotDataLabelsText({x:E,y:L,text:t,i:o,j:n,color:c.foreColor,parent:x,fontSize:h,dataLabelsConfig:u})}return x}},{key:"addListeners",value:function(e){var t=new j(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))}}]),z}(),Ll=function(){function z(e,t){g(this,z),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 Pr(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return y(z,[{key:"draw",value:function(e){var t=this.w,a=new j(this.ctx),r=a.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var o=t.globals.gridWidth/t.globals.dataPoints,n=t.globals.gridHeight/t.globals.series.length,c=0,h=!1;this.negRange=this.helpers.checkColorRange();var u=e.slice();t.config.yaxis[0].reversed&&(h=!0,u.reverse());for(var m=h?0:u.length-1;h?m<u.length:m>=0;h?m++:m--){var v=a.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:P.escapeString(t.globals.seriesNames[m]),rel:m+1,"data:realIndex":m});if(this.ctx.series.addCollapsedClassToSeries(v,m),t.config.chart.dropShadow.enabled){var x=t.config.chart.dropShadow;new q(this.ctx).dropShadow(v,x,m)}for(var w=0,k=t.config.plotOptions.heatmap.shadeIntensity,E=0;E<u[m].length;E++){var L=this.helpers.getShadeColor(t.config.chart.type,m,E,this.negRange),I=L.color,D=L.colorProps;t.config.fill.type==="image"&&(I=new fe(this.ctx).fillPath({seriesNumber:m,dataPointIndex:E,opacity:t.globals.hasNegs?D.percent<0?1-(1+D.percent/100):k+D.percent/100:D.percent/100,patternID:P.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:o,height:t.config.fill.image.height?t.config.fill.image.height:n}));var p=this.rectRadius,b=a.drawRect(w,c,o,n,p);if(b.attr({cx:w,cy:c}),b.node.classList.add("apexcharts-heatmap-rect"),v.add(b),b.attr({fill:I,i:m,index:m,j:E,val:e[m][E],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?I:t.globals.stroke.colors[0],color:I}),this.helpers.addListeners(b),t.config.chart.animations.enabled&&!t.globals.dataChanged){var C=1;t.globals.resized||(C=t.config.chart.animations.speed),this.animateHeatMap(b,w,c,o,n,C)}if(t.globals.dataChanged){var X=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){X=this.dynamicAnim.speed;var O=t.globals.previousPaths[m]&&t.globals.previousPaths[m][E]&&t.globals.previousPaths[m][E].color;O||(O="rgba(255, 255, 255, 0)"),this.animateHeatColor(b,P.isColorHex(O)?O:P.rgb2hex(O),P.isColorHex(I)?I:P.rgb2hex(I),X)}}var N=(0,t.config.dataLabels.formatter)(t.globals.series[m][E],{value:t.globals.series[m][E],seriesIndex:m,dataPointIndex:E,w:t}),$=this.helpers.calculateDataLabels({text:N,x:w+o/2,y:c+n/2,i:m,j:E,colorProps:D,series:u});$!==null&&v.add($),w+=o}c+=n,r.add(v)}var V=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?V.unshift(""):V.push(""),t.globals.yAxisScale[0].result=V,r}},{key:"animateHeatMap",value:function(e,t,a,r,o,n){var c=new B(this.ctx);c.animateRect(e,{x:t+r/2,y:a+o/2,width:0,height:0},{x:t,y:a,width:r,height:o},n,function(){c.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,a,r){e.attr({fill:t}).animate(r).attr({fill:a})}}]),z}(),Ir=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"drawYAxisTexts",value:function(e,t,a,r){var o=this.w,n=o.config.yaxis[0],c=o.globals.yLabelFormatters[0];return new j(this.ctx).drawText({x:e+n.labels.offsetX,y:t+n.labels.offsetY,text:c(r,a),textAnchor:"middle",fontSize:n.labels.style.fontSize,fontFamily:n.labels.style.fontFamily,foreColor:Array.isArray(n.labels.style.colors)?n.labels.style.colors[a]:n.labels.style.colors})}}]),z}(),zr=function(){function z(e){g(this,z),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=t.globals.stroke.colors!==void 0?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,t.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=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,this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return y(z,[{key:"draw",value:function(e){var t=this,a=this.w,r=new j(this.ctx);if(this.ret=r.group({class:"apexcharts-pie"}),a.globals.noData)return this.ret;for(var o=0,n=0;n<e.length;n++)o+=P.negToZero(e[n]);var c=[],h=r.group();o===0&&(o=1e-5),e.forEach(function(O){t.maxY=Math.max(t.maxY,O)}),a.config.yaxis[0].max&&(this.maxY=a.config.yaxis[0].max),a.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret);for(var u=0;u<e.length;u++){var m=this.fullAngle*P.negToZero(e[u])/o;c.push(m),this.chartType==="polarArea"?(c[u]=this.fullAngle/e.length,this.sliceSizes.push(a.globals.radialSize*e[u]/this.maxY)):this.sliceSizes.push(a.globals.radialSize)}if(a.globals.dataChanged){for(var v,x=0,w=0;w<a.globals.previousPaths.length;w++)x+=P.negToZero(a.globals.previousPaths[w]);for(var k=0;k<a.globals.previousPaths.length;k++)v=this.fullAngle*P.negToZero(a.globals.previousPaths[k])/x,this.prevSectorAngleArr.push(v)}this.donutSize<0&&(this.donutSize=0);var E=a.config.plotOptions.pie.customScale,L=a.globals.gridWidth/2,I=a.globals.gridHeight/2,D=L-a.globals.gridWidth/2*E,p=I-a.globals.gridHeight/2*E;if(this.chartType==="donut"){var b=r.drawCircle(this.donutSize);b.attr({cx:this.centerX,cy:this.centerY,fill:a.config.plotOptions.pie.donut.background?a.config.plotOptions.pie.donut.background:"transparent"}),h.add(b)}var C=this.drawArcs(c,e);if(this.sliceLabels.forEach(function(O){C.add(O)}),h.attr({transform:"translate(".concat(D,", ").concat(p,") scale(").concat(E,")")}),h.add(C),this.ret.add(h),this.donutDataLabels.show){var X=this.renderInnerDataLabels(this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show,translateX:D,translateY:p});this.ret.add(X)}return a.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(this.ret),this.ret}},{key:"drawArcs",value:function(e,t){var a=this.w,r=new q(this.ctx),o=new j(this.ctx),n=new fe(this.ctx),c=o.group({class:"apexcharts-slices"}),h=this.initialAngle,u=this.initialAngle,m=this.initialAngle,v=this.initialAngle;this.strokeWidth=a.config.stroke.show?a.config.stroke.width:0;for(var x=0;x<e.length;x++){var w=o.group({class:"apexcharts-series apexcharts-pie-series",seriesName:P.escapeString(a.globals.seriesNames[x]),rel:x+1,"data:realIndex":x});c.add(w),u=v,m=(h=m)+e[x],v=u+this.prevSectorAngleArr[x];var k=m<h?this.fullAngle+m-h:m-h,E=n.fillPath({seriesNumber:x,size:this.sliceSizes[x],value:t[x]}),L=this.getChangedPath(u,v),I=o.drawPath({d:L,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[x]:this.lineColorArr,strokeWidth:0,fill:E,fillOpacity:a.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(x)});if(I.attr({index:0,j:x}),r.setSelectionFilter(I,0,x),a.config.chart.dropShadow.enabled){var D=a.config.chart.dropShadow;r.dropShadow(I,D,x)}this.addListeners(I,this.donutDataLabels),j.setAttrs(I.node,{"data:angle":k,"data:startAngle":h,"data:strokeWidth":this.strokeWidth,"data:value":t[x]});var p={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?p=P.polarToCartesian(this.centerX,this.centerY,a.globals.radialSize/1.25+a.config.plotOptions.pie.dataLabels.offset,(h+k/2)%this.fullAngle):this.chartType==="donut"&&(p=P.polarToCartesian(this.centerX,this.centerY,(a.globals.radialSize+this.donutSize)/2+a.config.plotOptions.pie.dataLabels.offset,(h+k/2)%this.fullAngle)),w.add(I);var b=0;if(!this.initialAnim||a.globals.resized||a.globals.dataChanged?this.animBeginArr.push(0):((b=k/this.fullAngle*a.config.chart.animations.speed)===0&&(b=1),this.animDur=b+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&a.globals.dataChanged?this.animatePaths(I,{size:this.sliceSizes[x],endAngle:m,startAngle:h,prevStartAngle:u,prevEndAngle:v,animateStartingPos:!0,i:x,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:a.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(I,{size:this.sliceSizes[x],endAngle:m,startAngle:h,i:x,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:b}),a.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&I.click(this.pieClicked.bind(this,x)),a.globals.selectedDataPoints[0]!==void 0&&a.globals.selectedDataPoints[0].indexOf(x)>-1&&this.pieClicked(x),a.config.dataLabels.enabled){var C=p.x,X=p.y,O=100*k/this.fullAngle+"%";if(k!==0&&a.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[x]){var N=a.config.dataLabels.formatter;N!==void 0&&(O=N(a.globals.seriesPercent[x][0],{seriesIndex:x,w:a}));var $=a.globals.dataLabels.style.colors[x],V=o.group({class:"apexcharts-datalabels"}),re=o.drawText({x:C,y:X,text:O,textAnchor:"middle",fontSize:a.config.dataLabels.style.fontSize,fontFamily:a.config.dataLabels.style.fontFamily,fontWeight:a.config.dataLabels.style.fontWeight,foreColor:$});if(V.add(re),a.config.dataLabels.dropShadow.enabled){var ie=a.config.dataLabels.dropShadow;r.dropShadow(re,ie)}re.node.classList.add("apexcharts-pie-label"),a.config.chart.animations.animate&&a.globals.resized===!1&&(re.node.classList.add("apexcharts-pie-label-delay"),re.node.style.animationDelay=a.config.chart.animations.speed/940+"s"),this.sliceLabels.push(V)}}}return c}},{key:"addListeners",value:function(e,t){var a=new j(this.ctx);e.node.addEventListener("mouseenter",a.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",a.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",a.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 a=this.w,r=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,o=r,n=t.startAngle,c=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(n=t.prevEndAngle,o=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===a.config.series.length-1&&(r+c>this.fullAngle?t.endAngle=t.endAngle-(r+c):r+c<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(r+c)))),r===this.fullAngle&&(r=this.fullAngle-.01),this.animateArc(e,n,c,r,o,t)}},{key:"animateArc",value:function(e,t,a,r,o,n){var c,h=this,u=this.w,m=new B(this.ctx),v=n.size;(isNaN(t)||isNaN(o))&&(t=a,o=r,n.dur=0);var x=r,w=a,k=t<a?this.fullAngle+t-a:t-a;u.globals.dataChanged&&n.shouldSetPrevPaths&&n.prevEndAngle&&(c=h.getPiePath({me:h,startAngle:n.prevStartAngle,angle:n.prevEndAngle<n.prevStartAngle?this.fullAngle+n.prevEndAngle-n.prevStartAngle:n.prevEndAngle-n.prevStartAngle,size:v}),e.attr({d:c})),n.dur!==0?e.animate(n.dur,u.globals.easing,n.animBeginArr[n.i]).afterAll(function(){h.chartType!=="pie"&&h.chartType!=="donut"&&h.chartType!=="polarArea"||this.animate(u.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":h.strokeWidth}),n.i===u.config.series.length-1&&m.animationCompleted(e)}).during(function(E){x=k+(r-k)*E,n.animateStartingPos&&(x=o+(r-o)*E,w=t-o+(a-(t-o))*E),c=h.getPiePath({me:h,startAngle:w,angle:x,size:v}),e.node.setAttribute("data:pathOrig",c),e.attr({d:c})}):(c=h.getPiePath({me:h,startAngle:w,angle:r,size:v}),n.isTrack||(u.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",c),e.attr({d:c,"stroke-width":h.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,a=this.w,r=this,o=r.sliceSizes[e]+(a.config.plotOptions.pie.expandOnClick?4:0),n=a.globals.dom.Paper.select(".apexcharts-".concat(r.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if(n.attr("data:pieClicked")!=="true"){var c=a.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(c,function(v){v.setAttribute("data:pieClicked","false");var x=v.getAttribute("data:pathOrig");x&&v.setAttribute("d",x)}),n.attr("data:pieClicked","true");var h=parseInt(n.attr("data:startAngle"),10),u=parseInt(n.attr("data:angle"),10);t=r.getPiePath({me:r,startAngle:h,angle:u,size:o}),u!==360&&n.plot(t)}else{n.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(n.node,this.donutDataLabels);var m=n.attr("data:pathOrig");n.attr({d:m})}}},{key:"getChangedPath",value:function(e,t){var a="";return this.dynamicAnim&&this.w.globals.dataChanged&&(a=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),a}},{key:"getPiePath",value:function(e){var t,a=e.me,r=e.startAngle,o=e.angle,n=e.size,c=new j(this.ctx),h=r,u=Math.PI*(h-90)/180,m=o+r;Math.ceil(m)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(m=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(m)>this.fullAngle&&(m-=this.fullAngle);var v=Math.PI*(m-90)/180,x=a.centerX+n*Math.cos(u),w=a.centerY+n*Math.sin(u),k=a.centerX+n*Math.cos(v),E=a.centerY+n*Math.sin(v),L=P.polarToCartesian(a.centerX,a.centerY,a.donutSize,m),I=P.polarToCartesian(a.centerX,a.centerY,a.donutSize,h),D=o>180?1:0,p=["M",x,w,"A",n,n,0,D,1,k,E];return t=a.chartType==="donut"?[].concat(p,["L",L.x,L.y,"A",a.donutSize,a.donutSize,0,D,0,I.x,I.y,"L",x,w,"z"]).join(" "):a.chartType==="pie"||a.chartType==="polarArea"?[].concat(p,["L",a.centerX,a.centerY,"L",x,w]).join(" "):[].concat(p).join(" "),c.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,a=new Bt(this.ctx),r=new j(this.ctx),o=new Ir(this.ctx),n=r.group(),c=r.group(),h=a.niceScale(0,Math.ceil(this.maxY),0),u=h.result.reverse(),m=h.result.length;this.maxY=h.niceMax;for(var v=t.globals.radialSize,x=v/(m-1),w=0;w<m-1;w++){var k=r.drawCircle(v);if(k.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var E=o.drawYAxisTexts(this.centerX,this.centerY-v+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,w,u[w]);c.add(E)}n.add(k),v-=x}this.drawSpokes(e),e.add(n),e.add(c)}},{key:"renderInnerDataLabels",value:function(e,t){var a=this.w,r=new j(this.ctx),o=r.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(t.translateX?t.translateX:0,", ").concat(t.translateY?t.translateY:0,") scale(").concat(a.config.plotOptions.pie.customScale,")")}),n=e.total.show;o.node.style.opacity=t.opacity;var c,h,u=t.centerX,m=t.centerY;c=e.name.color===void 0?a.globals.colors[0]:e.name.color;var v=e.name.fontSize,x=e.name.fontFamily,w=e.name.fontWeight;h=e.value.color===void 0?a.config.chart.foreColor:e.value.color;var k=e.value.formatter,E="",L="";if(n?(c=e.total.color,v=e.total.fontSize,x=e.total.fontFamily,w=e.total.fontWeight,L=e.total.label,E=e.total.formatter(a)):a.globals.series.length===1&&(E=k(a.globals.series[0],a),L=a.globals.seriesNames[0]),L&&(L=e.name.formatter(L,e.total.show,a)),e.name.show){var I=r.drawText({x:u,y:m+parseFloat(e.name.offsetY),text:L,textAnchor:"middle",foreColor:c,fontSize:v,fontWeight:w,fontFamily:x});I.node.classList.add("apexcharts-datalabel-label"),o.add(I)}if(e.value.show){var D=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,p=r.drawText({x:u,y:m+D,text:E,textAnchor:"middle",foreColor:h,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});p.node.classList.add("apexcharts-datalabel-value"),o.add(p)}return o}},{key:"printInnerLabels",value:function(e,t,a,r){var o,n=this.w;r?o=e.name.color===void 0?n.globals.colors[parseInt(r.parentNode.getAttribute("rel"),10)-1]:e.name.color:n.globals.series.length>1&&e.total.show&&(o=e.total.color);var c=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),h=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");a=(0,e.value.formatter)(a,n),r||typeof e.total.formatter!="function"||(a=e.total.formatter(n));var u=t===e.total.label;t=e.name.formatter(t,u,n),c!==null&&(c.textContent=t),h!==null&&(h.textContent=a),c!==null&&(c.style.fill=o)}},{key:"printDataLabelsInner",value:function(e,t){var a=this.w,r=e.getAttribute("data:value"),o=a.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];a.globals.series.length>1&&this.printInnerLabels(t,o,r,e);var n=a.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");n!==null&&(n.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,a=this.w,r=new j(this.ctx),o=a.config.plotOptions.polarArea.spokes;if(o.strokeWidth!==0){for(var n=[],c=360/a.globals.series.length,h=0;h<a.globals.series.length;h++)n.push(P.polarToCartesian(this.centerX,this.centerY,a.globals.radialSize,a.config.plotOptions.pie.startAngle+c*h));n.forEach(function(u,m){var v=r.drawLine(u.x,u.y,t.centerX,t.centerY,Array.isArray(o.connectorColors)?o.connectorColors[m]:o.connectorColors);e.add(v)})}}},{key:"revertDataLabelsInner",value:function(e,t,a){var r=this,o=this.w,n=o.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group"),c=!1,h=o.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area"),u=function(x){var w=x.makeSliceOut,k=x.printLabel;Array.prototype.forEach.call(h,function(E){E.getAttribute("data:pieClicked")==="true"&&(w&&(c=!0),k&&r.printDataLabelsInner(E,t))})};if(u({makeSliceOut:!0,printLabel:!1}),t.total.show&&o.globals.series.length>1)c&&!t.total.showAlways?u({makeSliceOut:!1,printLabel:!0}):this.printInnerLabels(t,t.total.label,t.total.formatter(o));else if(u({makeSliceOut:!1,printLabel:!0}),!c)if(o.globals.selectedDataPoints.length&&o.globals.series.length>1)if(o.globals.selectedDataPoints[0].length>0){var m=o.globals.selectedDataPoints[0],v=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(m));this.printDataLabelsInner(v,t)}else n&&o.globals.selectedDataPoints.length&&o.globals.selectedDataPoints[0].length===0&&(n.style.opacity=0);else n&&o.globals.series.length>1&&(n.style.opacity=0)}}]),z}(),_l=function(){function z(e){g(this,z),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 j(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?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 U(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),t.config.plotOptions.radar.size!==void 0&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return y(z,[{key:"draw",value:function(e){var t=this,a=this.w,r=new fe(this.ctx),o=[],n=new Ae(this.ctx);e.length&&(this.dataPointsLen=e[a.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var c=a.globals.gridWidth/2,h=a.globals.gridHeight/2,u=c+a.config.plotOptions.radar.offsetX,m=h+a.config.plotOptions.radar.offsetY,v=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(u||0,", ").concat(m||0,")")}),x=[],w=null,k=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(L,I){var D=L.length===a.globals.dataPoints,p=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":D,seriesName:P.escapeString(a.globals.seriesNames[I]),rel:I+1,"data:realIndex":I});t.dataRadiusOfPercent[I]=[],t.dataRadius[I]=[],t.angleArr[I]=[],L.forEach(function(ae,ce){var me=Math.abs(t.maxValue-t.minValue);ae-=t.minValue,t.isLog&&(ae=t.coreUtils.getLogVal(t.logBase,ae,0)),t.dataRadiusOfPercent[I][ce]=ae/me,t.dataRadius[I][ce]=t.dataRadiusOfPercent[I][ce]*t.size,t.angleArr[I][ce]=ce*t.disAngle}),x=t.getDataPointsPos(t.dataRadius[I],t.angleArr[I]);var b=t.createPaths(x,{x:0,y:0});w=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),k=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":I}),a.globals.delayedElements.push({el:w.node,index:I});var C={i:I,realIndex:I,animationDelay:I,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:a.globals.stroke.colors[I],strokeLineCap:a.config.stroke.lineCap},X=null;a.globals.previousPaths.length>0&&(X=t.getPreviousPath(I));for(var O=0;O<b.linePathsTo.length;O++){var N=t.graphics.renderPaths(d(d({},C),{},{pathFrom:X===null?b.linePathsFrom[O]:X,pathTo:b.linePathsTo[O],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[I]:t.strokeWidth,fill:"none",drawShadow:!1}));p.add(N);var $=r.fillPath({seriesNumber:I}),V=t.graphics.renderPaths(d(d({},C),{},{pathFrom:X===null?b.areaPathsFrom[O]:X,pathTo:b.areaPathsTo[O],strokeWidth:0,fill:$,drawShadow:!1}));if(a.config.chart.dropShadow.enabled){var re=new q(t.ctx),ie=a.config.chart.dropShadow;re.dropShadow(V,Object.assign({},ie,{noUserSpaceOnUse:!0}),I)}p.add(V)}L.forEach(function(ae,ce){var me=new Ce(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:I,dataPointIndex:ce}),xe=t.graphics.drawMarker(x[ce].x,x[ce].y,me);xe.attr("rel",ce),xe.attr("j",ce),xe.attr("index",I),xe.node.setAttribute("default-marker-size",me.pSize);var we=t.graphics.group({class:"apexcharts-series-markers"});we&&we.add(xe),w.add(we),p.add(w);var be=a.config.dataLabels;if(be.enabled){var Se=be.formatter(a.globals.series[I][ce],{seriesIndex:I,dataPointIndex:ce,w:a});n.plotDataLabelsText({x:x[ce].x,y:x[ce].y,text:Se,textAnchor:"middle",i:I,j:I,parent:k,offsetCorrection:!1,dataLabelsConfig:d({},be)})}p.add(k)}),o.push(p)}),this.drawPolygons({parent:v}),a.config.xaxis.labels.show){var E=this.drawXAxisTexts();v.add(E)}return o.forEach(function(L){v.add(L)}),v.add(this.yaxisLabels),v}},{key:"drawPolygons",value:function(e){for(var t=this,a=this.w,r=e.parent,o=new Ir(this.ctx),n=a.globals.yAxisScale[0].result.reverse(),c=n.length,h=[],u=this.size/(c-1),m=0;m<c;m++)h[m]=u*m;h.reverse();var v=[],x=[];h.forEach(function(w,k){var E=P.getPolygonPos(w,t.dataPointsLen),L="";E.forEach(function(I,D){if(k===0){var p=t.graphics.drawLine(I.x,I.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[D]:t.polygons.connectorColors);x.push(p)}D===0&&t.yaxisLabelsTextsPos.push({x:I.x,y:I.y}),L+=I.x+","+I.y+" "}),v.push(L)}),v.forEach(function(w,k){var E=t.polygons.strokeColors,L=t.polygons.strokeWidth,I=t.graphics.drawPolygon(w,Array.isArray(E)?E[k]:E,Array.isArray(L)?L[k]:L,a.globals.radarPolygons.fill.colors[k]);r.add(I)}),x.forEach(function(w){r.add(w)}),a.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(w,k){var E=o.drawYAxisTexts(w.x,w.y,k,n[k]);t.yaxisLabels.add(E)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,a=t.config.xaxis.labels,r=this.graphics.group({class:"apexcharts-xaxis"}),o=P.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(n,c){var h=t.config.xaxis.labels.formatter,u=new Ae(e.ctx);if(o[c]){var m=e.getTextPos(o[c],e.size),v=h(n,{seriesIndex:-1,dataPointIndex:c,w:t});u.plotDataLabelsText({x:m.newX,y:m.newY,text:v,textAnchor:m.textAnchor,i:c,j:c,parent:r,color:Array.isArray(a.style.colors)&&a.style.colors[c]?a.style.colors[c]:"#a8a8a8",dataLabelsConfig:d({textAnchor:m.textAnchor,dropShadow:{enabled:!1}},a),offsetCorrection:!1})}}),r}},{key:"createPaths",value:function(e,t){var a=this,r=[],o=[],n=[],c=[];if(e.length){o=[this.graphics.move(t.x,t.y)],c=[this.graphics.move(t.x,t.y)];var h=this.graphics.move(e[0].x,e[0].y),u=this.graphics.move(e[0].x,e[0].y);e.forEach(function(m,v){h+=a.graphics.line(m.x,m.y),u+=a.graphics.line(m.x,m.y),v===e.length-1&&(h+="Z",u+="Z")}),r.push(h),n.push(u)}return{linePathsFrom:o,linePathsTo:r,areaPathsFrom:c,areaPathsTo:n}}},{key:"getTextPos",value:function(e,t){var a="middle",r=e.x,o=e.y;return Math.abs(e.x)>=10?e.x>0?(a="start",r+=10):e.x<0&&(a="end",r-=10):a="middle",Math.abs(e.y)>=t-10&&(e.y<0?o-=10:e.y>0&&(o+=10)),{textAnchor:a,newX:r,newY:o}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,a=null,r=0;r<t.globals.previousPaths.length;r++){var o=t.globals.previousPaths[r];o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[r].paths[0]!==void 0&&(a=t.globals.previousPaths[r].paths[0].d)}return a}},{key:"getDataPointsPos",value:function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],o=0;o<a;o++){var n={};n.x=e[o]*Math.sin(t[o]),n.y=-e[o]*Math.cos(t[o]),r.push(n)}return r}}]),z}(),Ml=function(z){M(t,zr);var e=Y(t);function t(a){var r;g(this,t),(r=e.call(this,a)).ctx=a,r.w=a.w,r.animBeginArr=[0],r.animDur=0;var o=r.w;return r.startAngle=o.config.plotOptions.radialBar.startAngle,r.endAngle=o.config.plotOptions.radialBar.endAngle,r.totalAngle=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle),r.trackStartAngle=o.config.plotOptions.radialBar.track.startAngle,r.trackEndAngle=o.config.plotOptions.radialBar.track.endAngle,r.barLabels=r.w.config.plotOptions.radialBar.barLabels,r.donutDataLabels=r.w.config.plotOptions.radialBar.dataLabels,r.radialDataLabels=r.donutDataLabels,r.trackStartAngle||(r.trackStartAngle=r.startAngle),r.trackEndAngle||(r.trackEndAngle=r.endAngle),r.endAngle===360&&(r.endAngle=359.99),r.margin=parseInt(o.config.plotOptions.radialBar.track.margin,10),r.onBarLabelClick=r.onBarLabelClick.bind(H(r)),r}return y(t,[{key:"draw",value:function(a){var r=this.w,o=new j(this.ctx),n=o.group({class:"apexcharts-radialbar"});if(r.globals.noData)return n;var c=o.group(),h=this.defaultSize/2,u=r.globals.gridWidth/2,m=this.defaultSize/2.05;r.config.chart.sparkline.enabled||(m=m-r.config.stroke.width-r.config.chart.dropShadow.blur);var v=r.globals.fill.colors;if(r.config.plotOptions.radialBar.track.show){var x=this.drawTracks({size:m,centerX:u,centerY:h,colorArr:v,series:a});c.add(x)}var w=this.drawArcs({size:m,centerX:u,centerY:h,colorArr:v,series:a}),k=360;r.config.plotOptions.radialBar.startAngle<0&&(k=this.totalAngle);var E=(360-k)/360;if(r.globals.radialSize=m-m*E,this.radialDataLabels.value.show){var L=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);r.globals.radialSize+=L*E}return c.add(w.g),r.config.plotOptions.radialBar.hollow.position==="front"&&(w.g.add(w.elHollow),w.dataLabels&&w.g.add(w.dataLabels)),n.add(c),n}},{key:"drawTracks",value:function(a){var r=this.w,o=new j(this.ctx),n=o.group({class:"apexcharts-tracks"}),c=new q(this.ctx),h=new fe(this.ctx),u=this.getStrokeWidth(a);a.size=a.size-u/2;for(var m=0;m<a.series.length;m++){var v=o.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(v),v.attr({rel:m+1}),a.size=a.size-u-this.margin;var x=r.config.plotOptions.radialBar.track,w=h.fillPath({seriesNumber:0,size:a.size,fillColors:Array.isArray(x.background)?x.background[m]:x.background,solid:!0}),k=this.trackStartAngle,E=this.trackEndAngle;Math.abs(E)+Math.abs(k)>=360&&(E=360-Math.abs(this.startAngle)-.1);var L=o.drawPath({d:"",stroke:w,strokeWidth:u*parseInt(x.strokeWidth,10)/100,fill:"none",strokeOpacity:x.opacity,classes:"apexcharts-radialbar-area"});if(x.dropShadow.enabled){var I=x.dropShadow;c.dropShadow(L,I)}v.add(L),L.attr("id","apexcharts-radialbarTrack-"+m),this.animatePaths(L,{centerX:a.centerX,centerY:a.centerY,endAngle:E,startAngle:k,size:a.size,i:m,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:r.globals.easing})}return n}},{key:"drawArcs",value:function(a){var r=this.w,o=new j(this.ctx),n=new fe(this.ctx),c=new q(this.ctx),h=o.group(),u=this.getStrokeWidth(a);a.size=a.size-u/2;var m=r.config.plotOptions.radialBar.hollow.background,v=a.size-u*a.series.length-this.margin*a.series.length-u*parseInt(r.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,x=v-r.config.plotOptions.radialBar.hollow.margin;r.config.plotOptions.radialBar.hollow.image!==void 0&&(m=this.drawHollowImage(a,h,v,m));var w=this.drawHollow({size:x,centerX:a.centerX,centerY:a.centerY,fill:m||"transparent"});if(r.config.plotOptions.radialBar.hollow.dropShadow.enabled){var k=r.config.plotOptions.radialBar.hollow.dropShadow;c.dropShadow(w,k)}var E=1;!this.radialDataLabels.total.show&&r.globals.series.length>1&&(E=0);var L=null;this.radialDataLabels.show&&(L=this.renderInnerDataLabels(this.radialDataLabels,{hollowSize:v,centerX:a.centerX,centerY:a.centerY,opacity:E})),r.config.plotOptions.radialBar.hollow.position==="back"&&(h.add(w),L&&h.add(L));var I=!1;r.config.plotOptions.radialBar.inverseOrder&&(I=!0);for(var D=I?a.series.length-1:0;I?D>=0:D<a.series.length;I?D--:D++){var p=o.group({class:"apexcharts-series apexcharts-radial-series",seriesName:P.escapeString(r.globals.seriesNames[D])});h.add(p),p.attr({rel:D+1,"data:realIndex":D}),this.ctx.series.addCollapsedClassToSeries(p,D),a.size=a.size-u-this.margin;var b=n.fillPath({seriesNumber:D,size:a.size,value:a.series[D]}),C=this.startAngle,X=void 0,O=P.negToZero(a.series[D]>100?100:a.series[D])/100,N=Math.round(this.totalAngle*O)+this.startAngle,$=void 0;r.globals.dataChanged&&(X=this.startAngle,$=Math.round(this.totalAngle*P.negToZero(r.globals.previousPaths[D])/100)+X),Math.abs(N)+Math.abs(C)>=360&&(N-=.01),Math.abs($)+Math.abs(X)>=360&&($-=.01);var V=N-C,re=Array.isArray(r.config.stroke.dashArray)?r.config.stroke.dashArray[D]:r.config.stroke.dashArray,ie=o.drawPath({d:"",stroke:b,strokeWidth:u,fill:"none",fillOpacity:r.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+D,strokeDashArray:re});if(j.setAttrs(ie.node,{"data:angle":V,"data:value":a.series[D]}),r.config.chart.dropShadow.enabled){var ae=r.config.chart.dropShadow;c.dropShadow(ie,ae,D)}if(c.setSelectionFilter(ie,0,D),this.addListeners(ie,this.radialDataLabels),p.add(ie),ie.attr({index:0,j:D}),this.barLabels.enabled){var ce=P.polarToCartesian(a.centerX,a.centerY,a.size,C),me=this.barLabels.formatter(r.globals.seriesNames[D],{seriesIndex:D,w:r}),xe=["apexcharts-radialbar-label"];this.barLabels.onClick||xe.push("apexcharts-no-click");var we=this.barLabels.useSeriesColors?r.globals.colors[D]:r.config.chart.foreColor;we||(we=r.config.chart.foreColor);var be=ce.x-this.barLabels.margin,Se=ce.y,_e=o.drawText({x:be,y:Se,text:me,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:we,cssClass:xe.join(" ")});_e.on("click",this.onBarLabelClick),_e.attr({rel:D+1}),C!==0&&_e.attr({"transform-origin":"".concat(be," ").concat(Se),transform:"rotate(".concat(C," 0 0)")}),p.add(_e)}var ke=0;!this.initialAnim||r.globals.resized||r.globals.dataChanged||(ke=r.config.chart.animations.speed),r.globals.dataChanged&&(ke=r.config.chart.animations.dynamicAnimation.speed),this.animDur=ke/(1.2*a.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(ie,{centerX:a.centerX,centerY:a.centerY,endAngle:N,startAngle:C,prevEndAngle:$,prevStartAngle:X,size:a.size,i:D,totalItems:2,animBeginArr:this.animBeginArr,dur:ke,shouldSetPrevPaths:!0,easing:r.globals.easing})}return{g:h,elHollow:w,dataLabels:L}}},{key:"drawHollow",value:function(a){var r=new j(this.ctx).drawCircle(2*a.size);return r.attr({class:"apexcharts-radialbar-hollow",cx:a.centerX,cy:a.centerY,r:a.size,fill:a.fill}),r}},{key:"drawHollowImage",value:function(a,r,o,n){var c=this.w,h=new fe(this.ctx),u=P.randomId(),m=c.config.plotOptions.radialBar.hollow.image;if(c.config.plotOptions.radialBar.hollow.imageClipped)h.clippedImgArea({width:o,height:o,image:m,patternID:"pattern".concat(c.globals.cuid).concat(u)}),n="url(#pattern".concat(c.globals.cuid).concat(u,")");else{var v=c.config.plotOptions.radialBar.hollow.imageWidth,x=c.config.plotOptions.radialBar.hollow.imageHeight;if(v===void 0&&x===void 0){var w=c.globals.dom.Paper.image(m).loaded(function(E){this.move(a.centerX-E.width/2+c.config.plotOptions.radialBar.hollow.imageOffsetX,a.centerY-E.height/2+c.config.plotOptions.radialBar.hollow.imageOffsetY)});r.add(w)}else{var k=c.globals.dom.Paper.image(m).loaded(function(E){this.move(a.centerX-v/2+c.config.plotOptions.radialBar.hollow.imageOffsetX,a.centerY-x/2+c.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(v,x)});r.add(k)}}return n}},{key:"getStrokeWidth",value:function(a){var r=this.w;return a.size*(100-parseInt(r.config.plotOptions.radialBar.hollow.size,10))/100/(a.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(a){var r=parseInt(a.target.getAttribute("rel"),10)-1,o=this.barLabels.onClick,n=this.w;o&&o(n.globals.seriesNames[r],{w:n,seriesIndex:r})}}]),t}(),Pl=function(z){M(t,hi);var e=Y(t);function t(){return g(this,t),e.apply(this,arguments)}return y(t,[{key:"draw",value:function(a,r){var o=this.w,n=new j(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=a,this.seriesRangeStart=o.globals.seriesRangeStart,this.seriesRangeEnd=o.globals.seriesRangeEnd,this.barHelpers.initVariables(a);for(var c=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),h=0;h<a.length;h++){var u,m,v,x,w=void 0,k=void 0,E=o.globals.comboCharts?r[h]:h,L=n.group({class:"apexcharts-series",seriesName:P.escapeString(o.globals.seriesNames[E]),rel:h+1,"data:realIndex":E});this.ctx.series.addCollapsedClassToSeries(L,E),a[h].length>0&&(this.visibleI=this.visibleI+1);var I=0,D=0,p=0;this.yRatio.length>1&&(this.yaxisIndex=o.globals.seriesYAxisReverseMap[E][0],p=E);var b=this.barHelpers.initialPositions();k=b.y,x=b.zeroW,w=b.x,D=b.barWidth,I=b.barHeight,u=b.xDivision,m=b.yDivision,v=b.zeroH;for(var C=n.group({class:"apexcharts-datalabels","data:realIndex":E}),X=n.group({class:"apexcharts-rangebar-goals-markers"}),O=0;O<o.globals.dataPoints;O++){var N,$=this.barHelpers.getStrokeWidth(h,O,E),V=this.seriesRangeStart[h][O],re=this.seriesRangeEnd[h][O],ie=null,ae=null,ce=null,me={x:w,y:k,strokeWidth:$,elSeries:L},xe=this.seriesLen;if(o.config.plotOptions.bar.rangeBarGroupRows&&(xe=1),o.config.series[h].data[O]===void 0)break;if(this.isHorizontal){ce=k+I*this.visibleI;var we=(m-I*xe)/2;if(o.config.series[h].data[O].x){var be=this.detectOverlappingBars({i:h,j:O,barYPosition:ce,srty:we,barHeight:I,yDivision:m,initPositions:b});I=be.barHeight,ce=be.barYPosition}D=(ie=this.drawRangeBarPaths(d({indexes:{i:h,j:O,realIndex:E},barHeight:I,barYPosition:ce,zeroW:x,yDivision:m,y1:V,y2:re},me))).barWidth}else{o.globals.isXNumeric&&(w=(o.globals.seriesX[h][O]-o.globals.minX)/this.xRatio-D/2),ae=w+D*this.visibleI;var Se=(u-D*xe)/2;if(o.config.series[h].data[O].x){var _e=this.detectOverlappingBars({i:h,j:O,barXPosition:ae,srtx:Se,barWidth:D,xDivision:u,initPositions:b});D=_e.barWidth,ae=_e.barXPosition}I=(ie=this.drawRangeColumnPaths(d({indexes:{i:h,j:O,realIndex:E,translationsIndex:p},barWidth:D,barXPosition:ae,zeroH:v,xDivision:u},me))).barHeight}var ke=this.barHelpers.drawGoalLine({barXPosition:ie.barXPosition,barYPosition:ce,goalX:ie.goalX,goalY:ie.goalY,barHeight:I,barWidth:D});ke&&X.add(ke),k=ie.y,w=ie.x;var Re=this.barHelpers.getPathFillColor(a,h,O,E),Fe=o.globals.stroke.colors[E];this.renderSeries((A(N={realIndex:E,pathFill:Re,lineFill:Fe,j:O,i:h,x:w,y:k,y1:V,y2:re,pathFrom:ie.pathFrom,pathTo:ie.pathTo,strokeWidth:$,elSeries:L,series:a,barHeight:I,barWidth:D,barXPosition:ae,barYPosition:ce},"barWidth",D),A(N,"elDataLabelsWrap",C),A(N,"elGoalsMarkers",X),A(N,"visibleSeries",this.visibleI),A(N,"type","rangebar"),N))}c.add(L)}return c}},{key:"detectOverlappingBars",value:function(a){var r=a.i,o=a.j,n=a.barYPosition,c=a.barXPosition,h=a.srty,u=a.srtx,m=a.barHeight,v=a.barWidth,x=a.yDivision,w=a.xDivision,k=a.initPositions,E=this.w,L=[],I=E.config.series[r].data[o].rangeName,D=E.config.series[r].data[o].x,p=Array.isArray(D)?D.join(" "):D,b=E.globals.labels.map(function(X){return Array.isArray(X)?X.join(" "):X}).indexOf(p),C=E.globals.seriesRange[r].findIndex(function(X){return X.x===p&&X.overlaps.length>0});return this.isHorizontal?(n=E.config.plotOptions.bar.rangeBarGroupRows?h+x*b:h+m*this.visibleI+x*b,C>-1&&!E.config.plotOptions.bar.rangeBarOverlap&&(L=E.globals.seriesRange[r][C].overlaps).indexOf(I)>-1&&(n=(m=k.barHeight/L.length)*this.visibleI+x*(100-parseInt(this.barOptions.barHeight,10))/100/2+m*(this.visibleI+L.indexOf(I))+x*b)):(b>-1&&(c=E.config.plotOptions.bar.rangeBarGroupRows?u+w*b:u+v*this.visibleI+w*b),C>-1&&!E.config.plotOptions.bar.rangeBarOverlap&&(L=E.globals.seriesRange[r][C].overlaps).indexOf(I)>-1&&(c=(v=k.barWidth/L.length)*this.visibleI+w*(100-parseInt(this.barOptions.barWidth,10))/100/2+v*(this.visibleI+L.indexOf(I))+w*b)),{barYPosition:n,barXPosition:c,barHeight:m,barWidth:v}}},{key:"drawRangeColumnPaths",value:function(a){var r=a.indexes,o=a.x,n=a.xDivision,c=a.barWidth,h=a.barXPosition,u=a.zeroH,m=this.w,v=r.i,x=r.j,w=this.yRatio[r.translationsIndex],k=r.realIndex,E=this.getRangeValue(k,x),L=Math.min(E.start,E.end),I=Math.max(E.start,E.end);this.series[v][x]===void 0||this.series[v][x]===null?L=u:(L=u-L/w,I=u-I/w);var D=Math.abs(I-L),p=this.barHelpers.getColumnPaths({barXPosition:h,barWidth:c,y1:L,y2:I,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:r.realIndex,i:k,j:x,w:m});if(m.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:o,j:x,realIndex:k,barWidth:c});o=b.x,h=b.barXPosition}else o+=n;return{pathTo:p.pathTo,pathFrom:p.pathFrom,barHeight:D,x:o,y:I,goalY:this.barHelpers.getGoalValues("y",null,u,v,x,r.translationsIndex),barXPosition:h}}},{key:"drawRangeBarPaths",value:function(a){var r=a.indexes,o=a.y,n=a.y1,c=a.y2,h=a.yDivision,u=a.barHeight,m=a.barYPosition,v=a.zeroW,x=this.w,w=v+n/this.invertedYRatio,k=v+c/this.invertedYRatio,E=Math.abs(k-w),L=this.barHelpers.getBarpaths({barYPosition:m,barHeight:u,x1:w,x2:k,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:r.realIndex,realIndex:r.realIndex,j:r.j,w:x});return x.globals.isXNumeric||(o+=h),{pathTo:L.pathTo,pathFrom:L.pathFrom,barWidth:E,x:k,goalX:this.barHelpers.getGoalValues("x",v,null,r.realIndex,r.j),y:o}}},{key:"getRangeValue",value:function(a,r){var o=this.w;return{start:o.globals.seriesRangeStart[a][r],end:o.globals.seriesRangeEnd[a][r]}}}]),t}(),Il=function(){function z(e){g(this,z),this.w=e.w,this.lineCtx=e}return y(z,[{key:"sameValueSeriesFix",value:function(e,t){var a=this.w;if((a.config.fill.type==="gradient"||a.config.fill.type[e]==="gradient")&&new U(this.lineCtx.ctx,a).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,a=e.realIndex,r=e.x,o=e.y,n=e.i,c=e.j,h=e.prevY,u=this.w,m=[],v=[];if(c===0){var x=this.lineCtx.categoryAxisCorrection+u.config.markers.offsetX;u.globals.isXNumeric&&(x=(u.globals.seriesX[a][0]-u.globals.minX)/this.lineCtx.xRatio+u.config.markers.offsetX),m.push(x),v.push(P.isNumber(t[n][0])?h+u.config.markers.offsetY:null),m.push(r+u.config.markers.offsetX),v.push(P.isNumber(t[n][c+1])?o+u.config.markers.offsetY:null)}else m.push(r+u.config.markers.offsetX),v.push(P.isNumber(t[n][c+1])?o+u.config.markers.offsetY:null);return{x:m,y:v}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,a=e.pathFromArea,r=e.realIndex,o=this.w,n=0;n<o.globals.previousPaths.length;n++){var c=o.globals.previousPaths[n];(c.type==="line"||c.type==="area")&&c.paths.length>0&&parseInt(c.realIndex,10)===parseInt(r,10)&&(c.type==="line"?(this.lineCtx.appendPathFrom=!1,t=o.globals.previousPaths[n].paths[0].d):c.type==="area"&&(this.lineCtx.appendPathFrom=!1,a=o.globals.previousPaths[n].paths[0].d,o.config.stroke.show&&o.globals.previousPaths[n].paths[1]&&(t=o.globals.previousPaths[n].paths[1].d)))}return{pathFromLine:t,pathFromArea:a}}},{key:"determineFirstPrevY",value:function(e){var t,a,r,o=e.i,n=e.realIndex,c=e.series,h=e.prevY,u=e.lineYPosition,m=e.translationsIndex,v=this.w,x=v.config.chart.stacked&&!v.globals.comboCharts||v.config.chart.stacked&&v.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((t=this.w.config.series[n])===null||t===void 0?void 0:t.type)==="bar"||((a=this.w.config.series[n])===null||a===void 0?void 0:a.type)==="column");if(((r=c[o])===null||r===void 0?void 0:r[0])!==void 0)h=(u=x&&o>0?this.lineCtx.prevSeriesY[o-1][0]:this.lineCtx.zeroY)-c[o][0]/this.lineCtx.yRatio[m]+2*(this.lineCtx.isReversed?c[o][0]/this.lineCtx.yRatio[m]:0);else if(x&&o>0&&c[o][0]===void 0){for(var w=o-1;w>=0;w--)if(c[w][0]!==null&&c[w][0]!==void 0){h=u=this.lineCtx.prevSeriesY[w][0];break}}return{prevY:h,lineYPosition:u}}}]),z}(),zl=function(z){for(var e,t,a,r,o=function(m){for(var v=[],x=m[0],w=m[1],k=v[0]=$a(x,w),E=1,L=m.length-1;E<L;E++)x=w,w=m[E+1],v[E]=.5*(k+(k=$a(x,w)));return v[E]=k,v}(z),n=z.length-1,c=[],h=0;h<n;h++)a=$a(z[h],z[h+1]),Math.abs(a)<1e-6?o[h]=o[h+1]=0:(r=(e=o[h]/a)*e+(t=o[h+1]/a)*t)>9&&(r=3*a/Math.sqrt(r),o[h]=r*e,o[h+1]=r*t);for(var u=0;u<=n;u++)r=(z[Math.min(n,u+1)][0]-z[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),c.push([r||0,o[u]*r||0]);return c},Ol=function(z){var e=zl(z),t=z[1],a=z[0],r=[],o=e[1],n=e[0];r.push(a,[a[0]+n[0],a[1]+n[1],t[0]-o[0],t[1]-o[1],t[0],t[1]]);for(var c=2,h=e.length;c<h;c++){var u=z[c],m=e[c];r.push([u[0]-m[0],u[1]-m[1],u[0],u[1]])}return r},Dl=function(z,e,t){var a=z.slice(e,t);if(e){if(t-e>1&&a[1].length<6){var r=a[0].length;a[1]=[2*a[0][r-2]-a[0][r-4],2*a[0][r-1]-a[0][r-3]].concat(a[1])}a[0]=a[0].slice(-2)}return a};function $a(z,e){return(e[1]-z[1])/(e[0]-z[0])}var qa=function(){function z(e,t,a){g(this,z),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||a,this.scatter=new ve(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Il(this),this.markers=new Ce(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return y(z,[{key:"draw",value:function(e,t,a,r){var o,n=this.w,c=new j(this.ctx),h=n.globals.comboCharts?t:n.config.chart.type,u=c.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),m=new U(this.ctx,n);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=m.getLogSeries(e),this.yRatio=m.getLogYRatios(this.yRatio);for(var v=[],x=0;x<e.length;x++){e=this.lineHelpers.sameValueSeriesFix(x,e);var w=n.globals.comboCharts?a[x]:x,k=this.yRatio.length>1?w:0;this._initSerieVariables(e,x,w);var E=[],L=[],I=[],D=n.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,w),n.globals.isXNumeric&&n.globals.seriesX.length>0&&(D=(n.globals.seriesX[w][0]-n.globals.minX)/this.xRatio),I.push(D);var p,b=D,C=void 0,X=b,O=this.zeroY,N=this.zeroY;O=this.lineHelpers.determineFirstPrevY({i:x,realIndex:w,series:e,prevY:O,lineYPosition:0,translationsIndex:k}).prevY,n.config.stroke.curve==="monotoneCubic"&&e[x][0]===null?E.push(null):E.push(O),p=O,h==="rangeArea"&&(C=N=this.lineHelpers.determineFirstPrevY({i:x,realIndex:w,series:r,prevY:N,lineYPosition:0,translationsIndex:k}).prevY,L.push(E[0]!==null?N:null));var $=this._calculatePathsFrom({type:h,series:e,i:x,realIndex:w,translationsIndex:k,prevX:X,prevY:O,prevY2:N}),V=[E[0]],re=[L[0]],ie={type:h,series:e,realIndex:w,translationsIndex:k,i:x,x:D,y:1,pX:b,pY:p,pathsFrom:$,linePaths:[],areaPaths:[],seriesIndex:a,lineYPosition:0,xArrj:I,yArrj:E,y2Arrj:L,seriesRangeEnd:r},ae=this._iterateOverDataPoints(d(d({},ie),{},{iterations:h==="rangeArea"?e[x].length-1:void 0,isRangeStart:!0}));if(h==="rangeArea"){for(var ce=this._calculatePathsFrom({series:r,i:x,realIndex:w,prevX:X,prevY:N}),me=this._iterateOverDataPoints(d(d({},ie),{},{series:r,xArrj:[D],yArrj:V,y2Arrj:re,pY:C,areaPaths:ae.areaPaths,pathsFrom:ce,iterations:r[x].length-1,isRangeStart:!1})),xe=ae.linePaths.length/2,we=0;we<xe;we++)ae.linePaths[we]=me.linePaths[we+xe]+ae.linePaths[we];ae.linePaths.splice(xe),ae.pathFromLine=me.pathFromLine+ae.pathFromLine}this._handlePaths({type:h,realIndex:w,i:x,paths:ae}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),v.push(this.elSeries)}if(((o=n.config.series[0])===null||o===void 0?void 0:o.zIndex)!==void 0&&v.sort(function(_e,ke){return Number(_e.node.getAttribute("zIndex"))-Number(ke.node.getAttribute("zIndex"))}),n.config.chart.stacked)for(var be=v.length;be>0;be--)u.add(v[be-1]);else for(var Se=0;Se<v.length;Se++)u.add(v[Se]);return u}},{key:"_initSerieVariables",value:function(e,t,a){var r=this.w,o=new j(this.ctx);this.xDivision=r.globals.gridWidth/(r.globals.dataPoints-(r.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(r.config.stroke.width)?r.config.stroke.width[a]:r.config.stroke.width;var n=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[a],n=a),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[n]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[n]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||r.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=o.group({class:"apexcharts-series",zIndex:r.config.series[a].zIndex!==void 0?r.config.series[a].zIndex:a,seriesName:P.escapeString(r.globals.seriesNames[a])}),this.elPointsMain=o.group({class:"apexcharts-series-markers-wrap","data:realIndex":a}),this.elDataLabelsWrap=o.group({class:"apexcharts-datalabels","data:realIndex":a});var c=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":c,rel:t+1,"data:realIndex":a}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,a,r,o,n=e.type,c=e.series,h=e.i,u=e.realIndex,m=e.translationsIndex,v=e.prevX,x=e.prevY,w=e.prevY2,k=this.w,E=new j(this.ctx);if(c[h][0]===null){for(var L=0;L<c[h].length;L++)if(c[h][L]!==null){v=this.xDivision*L,x=this.zeroY-c[h][L]/this.yRatio[m],t=E.move(v,x),a=E.move(v,this.areaBottomY);break}}else t=E.move(v,x),n==="rangeArea"&&(t=E.move(v,w)+E.line(v,x)),a=E.move(v,this.areaBottomY)+E.line(v,x);if(r=E.move(-1,this.zeroY)+E.line(-1,this.zeroY),o=E.move(-1,this.zeroY)+E.line(-1,this.zeroY),k.globals.previousPaths.length>0){var I=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:o,realIndex:u});r=I.pathFromLine,o=I.pathFromArea}return{prevX:v,prevY:x,linePath:t,areaPath:a,pathFromLine:r,pathFromArea:o}}},{key:"_handlePaths",value:function(e){var t=e.type,a=e.realIndex,r=e.i,o=e.paths,n=this.w,c=new j(this.ctx),h=new fe(this.ctx);this.prevSeriesY.push(o.yArrj),n.globals.seriesXvalues[a]=o.xArrj,n.globals.seriesYvalues[a]=o.yArrj;var u=n.config.forecastDataPoints;if(u.count>0&&t!=="rangeArea"){var m=n.globals.seriesXvalues[a][n.globals.seriesXvalues[a].length-u.count-1],v=c.drawRect(m,0,n.globals.gridWidth,n.globals.gridHeight,0);n.globals.dom.elForecastMask.appendChild(v.node);var x=c.drawRect(0,0,m,n.globals.gridHeight,0);n.globals.dom.elNonForecastMask.appendChild(x.node)}this.pointsChart||n.globals.delayedElements.push({el:this.elPointsMain.node,index:a});var w={i:r,realIndex:a,animationDelay:r,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var k=h.fillPath({seriesNumber:a}),E=0;E<o.areaPaths.length;E++){var L=c.renderPaths(d(d({},w),{},{pathFrom:o.pathFromArea,pathTo:o.areaPaths[E],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:k}));this.elSeries.add(L)}if(n.config.stroke.show&&!this.pointsChart){var I=null;if(t==="line")I=h.fillPath({seriesNumber:a,i:r});else if(n.config.stroke.fill.type==="solid")I=n.globals.stroke.colors[a];else{var D=n.config.fill;n.config.fill=n.config.stroke.fill,I=h.fillPath({seriesNumber:a,i:r}),n.config.fill=D}for(var p=0;p<o.linePaths.length;p++){var b=I;t==="rangeArea"&&(b=h.fillPath({seriesNumber:a}));var C=d(d({},w),{},{pathFrom:o.pathFromLine,pathTo:o.linePaths[p],stroke:I,strokeWidth:this.strokeWidth,strokeLineCap:n.config.stroke.lineCap,fill:t==="rangeArea"?b:"none"}),X=c.renderPaths(C);if(this.elSeries.add(X),X.attr("fill-rule","evenodd"),u.count>0&&t!=="rangeArea"){var O=c.renderPaths(C);O.node.setAttribute("stroke-dasharray",u.dashArray),u.strokeWidth&&O.node.setAttribute("stroke-width",u.strokeWidth),this.elSeries.add(O),O.attr("clip-path","url(#forecastMask".concat(n.globals.cuid,")")),X.attr("clip-path","url(#nonForecastMask".concat(n.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,a,r=this,o=e.type,n=e.series,c=e.iterations,h=e.realIndex,u=e.translationsIndex,m=e.i,v=e.x,x=e.y,w=e.pX,k=e.pY,E=e.pathsFrom,L=e.linePaths,I=e.areaPaths,D=e.seriesIndex,p=e.lineYPosition,b=e.xArrj,C=e.yArrj,X=e.y2Arrj,O=e.isRangeStart,N=e.seriesRangeEnd,$=this.w,V=new j(this.ctx),re=this.yRatio,ie=E.prevY,ae=E.linePath,ce=E.areaPath,me=E.pathFromLine,xe=E.pathFromArea,we=P.isNumber($.globals.minYArr[h])?$.globals.minYArr[h]:$.globals.minY;c||(c=$.globals.dataPoints>1?$.globals.dataPoints-1:$.globals.dataPoints);var be=function(Ge,et){return et-Ge/re[u]+2*(r.isReversed?Ge/re[u]:0)},Se=x,_e=$.config.chart.stacked&&!$.globals.comboCharts||$.config.chart.stacked&&$.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((t=this.w.config.series[h])===null||t===void 0?void 0:t.type)==="bar"||((a=this.w.config.series[h])===null||a===void 0?void 0:a.type)==="column"),ke=$.config.stroke.curve;Array.isArray(ke)&&(ke=Array.isArray(D)?ke[D[m]]:ke[m]);for(var Re,Fe=0,ze=0;ze<c;ze++){var ht=n[m][ze+1]===void 0||n[m][ze+1]===null;if($.globals.isXNumeric){var Pe=$.globals.seriesX[h][ze+1];$.globals.seriesX[h][ze+1]===void 0&&(Pe=$.globals.seriesX[h][c-1]),v=(Pe-$.globals.minX)/this.xRatio}else v+=this.xDivision;_e?m>0&&$.globals.collapsedSeries.length<$.config.series.length-1?p=this.prevSeriesY[function(Ge){for(var et=Ge,tt=0;tt<$.globals.series.length;tt++)if($.globals.collapsedSeriesIndices.indexOf(Ge)>-1){et--;break}return et>=0?et:0}(m-1)][ze+1]:p=this.zeroY:p=this.zeroY,ht?x=be(we,p):(x=be(n[m][ze+1],p),o==="rangeArea"&&(Se=be(N[m][ze+1],p))),b.push(v),!ht||$.config.stroke.curve!=="smooth"&&$.config.stroke.curve!=="monotoneCubic"?(C.push(x),X.push(Se)):(C.push(null),X.push(null));var Me=this.lineHelpers.calculatePoints({series:n,x:v,y:x,realIndex:h,i:m,j:ze,prevY:ie}),Ie=this._createPaths({type:o,series:n,i:m,realIndex:h,j:ze,x:v,y:x,y2:Se,xArrj:b,yArrj:C,y2Arrj:X,pX:w,pY:k,pathState:Fe,segmentStartX:Re,linePath:ae,areaPath:ce,linePaths:L,areaPaths:I,curve:ke,isRangeStart:O});I=Ie.areaPaths,L=Ie.linePaths,w=Ie.pX,k=Ie.pY,Fe=Ie.pathState,Re=Ie.segmentStartX,ce=Ie.areaPath,ae=Ie.linePath,!this.appendPathFrom||ke==="monotoneCubic"&&o==="rangeArea"||(me+=V.line(v,this.zeroY),xe+=V.line(v,this.zeroY)),this.handleNullDataPoints(n,Me,m,ze,h),this._handleMarkersAndLabels({type:o,pointsPos:Me,i:m,j:ze,realIndex:h,isRangeStart:O})}return{yArrj:C,xArrj:b,pathFromArea:xe,areaPaths:I,pathFromLine:me,linePaths:L,linePath:ae,areaPath:ce}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,a=e.pointsPos,r=e.isRangeStart,o=e.i,n=e.j,c=e.realIndex,h=this.w,u=new Ae(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,n,{realIndex:c,pointsPos:a,zRatio:this.zRatio,elParent:this.elPointsMain});else{h.globals.series[o].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var m=this.markers.plotChartMarkers(a,c,n+1);m!==null&&this.elPointsMain.add(m)}var v=u.drawDataLabel({type:t,isRangeStart:r,pos:a,i:c,j:n+1});v!==null&&this.elDataLabelsWrap.add(v)}},{key:"_createPaths",value:function(e){var t=e.type,a=e.series,r=e.i;e.realIndex;var o=e.j,n=e.x,c=e.y,h=e.xArrj,u=e.yArrj,m=e.y2,v=e.y2Arrj,x=e.pX,w=e.pY,k=e.pathState,E=e.segmentStartX,L=e.linePath,I=e.areaPath,D=e.linePaths,p=e.areaPaths,b=e.curve,C=e.isRangeStart;this.w;var X,O=new j(this.ctx),N=this.areaBottomY,$=t==="rangeArea",V=t==="rangeArea"&&C;switch(b){case"monotoneCubic":var re=C?u:v;switch(k){case 0:if(re[o+1]===null)break;k=1;case 1:if(!($?h.length===a[r].length:o===a[r].length-2))break;case 2:var ie=C?h:h.slice().reverse(),ae=C?re:re.slice().reverse(),ce=(X=ae,ie.map(function(Pe,Me){return[Pe,X[Me]]}).filter(function(Pe){return Pe[1]!==null})),me=ce.length>1?Ol(ce):ce,xe=[];$&&(V?p=ce:xe=p.reverse());var we=0,be=0;if(function(Pe,Me){for(var Ie=function(ki){var $e=[],At=0;return ki.forEach(function(Bl){Bl!==null?At++:At>0&&($e.push(At),At=0)}),At>0&&$e.push(At),$e}(Pe),Ge=[],et=0,tt=0;et<Ie.length;tt+=Ie[et++])Ge[et]=Dl(Me,tt,tt+Ie[et]);return Ge}(ae,me).forEach(function(Pe){we++;var Me=function(et){for(var tt="",ki=0;ki<et.length;ki++){var $e=et[ki],At=$e.length;At>4?(tt+="C".concat($e[0],", ").concat($e[1]),tt+=", ".concat($e[2],", ").concat($e[3]),tt+=", ".concat($e[4],", ").concat($e[5])):At>2&&(tt+="S".concat($e[0],", ").concat($e[1]),tt+=", ".concat($e[2],", ").concat($e[3]))}return tt}(Pe),Ie=be,Ge=(be+=Pe.length)-1;V?L=O.move(ce[Ie][0],ce[Ie][1])+Me:$?L=O.move(xe[Ie][0],xe[Ie][1])+O.line(ce[Ie][0],ce[Ie][1])+Me+O.line(xe[Ge][0],xe[Ge][1]):(L=O.move(ce[Ie][0],ce[Ie][1])+Me,I=L+O.line(ce[Ge][0],N)+O.line(ce[Ie][0],N)+"z",p.push(I)),D.push(L)}),$&&we>1&&!V){var Se=D.slice(we).reverse();D.splice(we),Se.forEach(function(Pe){return D.push(Pe)})}k=0}break;case"smooth":var _e=.35*(n-x);if(a[r][o]===null)k=0;else switch(k){case 0:if(E=x,L=V?O.move(x,v[o])+O.line(x,w):O.move(x,w),I=O.move(x,w),k=1,o<a[r].length-2){var ke=O.curve(x+_e,w,n-_e,c,n,c);L+=ke,I+=ke;break}case 1:if(a[r][o+1]===null)L+=V?O.line(x,m):O.move(x,w),I+=O.line(x,N)+O.line(E,N)+"z",D.push(L),p.push(I);else{var Re=O.curve(x+_e,w,n-_e,c,n,c);L+=Re,I+=Re,o>=a[r].length-2&&(L+=V?O.curve(n,c,n,c,n,m)+O.move(n,m):O.move(n,c),I+=O.curve(n,c,n,c,n,N)+O.line(E,N)+"z",D.push(L),p.push(I))}}x=n,w=c;break;default:var Fe=function(Pe,Me,Ie){var Ge=[];switch(Pe){case"stepline":Ge=O.line(Me,null,"H")+O.line(null,Ie,"V");break;case"linestep":Ge=O.line(null,Ie,"V")+O.line(Me,null,"H");break;case"straight":Ge=O.line(Me,Ie)}return Ge};if(a[r][o]===null)k=0;else switch(k){case 0:if(E=x,L=V?O.move(x,v[o])+O.line(x,w):O.move(x,w),I=O.move(x,w),k=1,o<a[r].length-2){var ze=Fe(b,n,c);L+=ze,I+=ze;break}case 1:if(a[r][o+1]===null)L+=V?O.line(x,m):O.move(x,w),I+=O.line(x,N)+O.line(E,N)+"z",D.push(L),p.push(I);else{var ht=Fe(b,n,c);L+=ht,I+=ht,o>=a[r].length-2&&(L+=V?O.line(n,m):O.move(n,c),I+=O.line(n,N)+O.line(E,N)+"z",D.push(L),p.push(I))}}x=n,w=c}return{linePaths:D,areaPaths:p,pX:x,pY:w,pathState:k,segmentStartX:E,linePath:L,areaPath:I}}},{key:"handleNullDataPoints",value:function(e,t,a,r,o){var n=this.w;if(e[a][r]===null&&n.config.markers.showNullDataPoints||e[a].length===1){var c=this.strokeWidth-n.config.markers.strokeWidth/2;c>0||(c=0);var h=this.markers.plotChartMarkers(t,o,r+1,c,!0);h!==null&&this.elPointsMain.add(h)}}}]),z}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function z(c,h,u,m){this.xoffset=c,this.yoffset=h,this.height=m,this.width=u,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(v){var x,w=[],k=this.xoffset,E=this.yoffset,L=o(v)/this.height,I=o(v)/this.width;if(this.width>=this.height)for(x=0;x<v.length;x++)w.push([k,E,k+L,E+v[x]/L]),E+=v[x]/L;else for(x=0;x<v.length;x++)w.push([k,E,k+v[x]/I,E+I]),k+=v[x]/I;return w},this.cutArea=function(v){var x;if(this.width>=this.height){var w=v/this.height,k=this.width-w;x=new z(this.xoffset+w,this.yoffset,k,this.height)}else{var E=v/this.width,L=this.height-E;x=new z(this.xoffset,this.yoffset+E,this.width,L)}return x}}function e(c,h,u,m,v){m=m===void 0?0:m,v=v===void 0?0:v;var x=t(function(w,k){var E,L=[],I=k/o(w);for(E=0;E<w.length;E++)L[E]=w[E]*I;return L}(c,h*u),[],new z(m,v,h,u),[]);return function(w){var k,E,L=[];for(k=0;k<w.length;k++)for(E=0;E<w[k].length;E++)L.push(w[k][E]);return L}(x)}function t(c,h,u,m){var v,x,w;if(c.length!==0)return v=u.shortestEdge(),function(k,E,L){var I;if(k.length===0)return!0;(I=k.slice()).push(E);var D=a(k,L),p=a(I,L);return D>=p}(h,x=c[0],v)?(h.push(x),t(c.slice(1),h,u,m)):(w=u.cutArea(o(h),m),m.push(u.getCoordinates(h)),t(c,[],w,m)),m;m.push(u.getCoordinates(h))}function a(c,h){var u=Math.min.apply(Math,c),m=Math.max.apply(Math,c),v=o(c);return Math.max(Math.pow(h,2)*m/Math.pow(v,2),Math.pow(v,2)/(Math.pow(h,2)*u))}function r(c){return c&&c.constructor===Array}function o(c){var h,u=0;for(h=0;h<c.length;h++)u+=c[h];return u}function n(c){var h,u=0;if(r(c[0]))for(h=0;h<c.length;h++)u+=n(c[h]);else u=o(c);return u}return function c(h,u,m,v,x){v=v===void 0?0:v,x=x===void 0?0:x;var w,k,E=[],L=[];if(r(h[0])){for(k=0;k<h.length;k++)E[k]=n(h[k]);for(w=e(E,u,m,v,x),k=0;k<h.length;k++)L.push(c(h[k],w[k][2]-w[k][0],w[k][3]-w[k][1],w[k][0],w[k][1]))}else L=e(h,u,m,v,x);return L}}();var jt,Ki,Hl=function(){function z(e,t){g(this,z),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Pr(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return y(z,[{key:"draw",value:function(e){var t=this,a=this.w,r=new j(this.ctx),o=new fe(this.ctx),n=r.group({class:"apexcharts-treemap"});if(a.globals.noData)return n;var c=[];return e.forEach(function(h){var u=h.map(function(m){return Math.abs(m)});c.push(u)}),this.negRange=this.helpers.checkColorRange(),a.config.series.forEach(function(h,u){h.data.forEach(function(m){Array.isArray(t.labels[u])||(t.labels[u]=[]),t.labels[u].push(m.x)})}),window.TreemapSquared.generate(c,a.globals.gridWidth,a.globals.gridHeight).forEach(function(h,u){var m=r.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:P.escapeString(a.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});if(a.config.chart.dropShadow.enabled){var v=a.config.chart.dropShadow;new q(t.ctx).dropShadow(n,v,u)}var x=r.group({class:"apexcharts-data-labels"});h.forEach(function(w,k){var E=w[0],L=w[1],I=w[2],D=w[3],p=r.drawRect(E,L,I-E,D-L,a.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,a.config.plotOptions.treemap.useFillColorAsStroke?C:a.globals.stroke.colors[u]);p.attr({cx:E,cy:L,index:u,i:u,j:k,width:I-E,height:D-L});var b=t.helpers.getShadeColor(a.config.chart.type,u,k,t.negRange),C=b.color;a.config.series[u].data[k]!==void 0&&a.config.series[u].data[k].fillColor&&(C=a.config.series[u].data[k].fillColor);var X=o.fillPath({color:C,seriesNumber:u,dataPointIndex:k});p.node.classList.add("apexcharts-treemap-rect"),p.attr({fill:X}),t.helpers.addListeners(p);var O={x:E+(I-E)/2,y:L+(D-L)/2,width:0,height:0},N={x:E,y:L,width:I-E,height:D-L};if(a.config.chart.animations.enabled&&!a.globals.dataChanged){var $=1;a.globals.resized||($=a.config.chart.animations.speed),t.animateTreemap(p,O,N,$)}if(a.globals.dataChanged){var V=1;t.dynamicAnim.enabled&&a.globals.shouldAnimate&&(V=t.dynamicAnim.speed,a.globals.previousPaths[u]&&a.globals.previousPaths[u][k]&&a.globals.previousPaths[u][k].rect&&(O=a.globals.previousPaths[u][k].rect),t.animateTreemap(p,O,N,V))}var re=t.getFontSize(w),ie=a.config.dataLabels.formatter(t.labels[u][k],{value:a.globals.series[u][k],seriesIndex:u,dataPointIndex:k,w:a});a.config.plotOptions.treemap.dataLabels.format==="truncate"&&(re=parseInt(a.config.dataLabels.style.fontSize,10),ie=t.truncateLabels(ie,re,E,L,I,D));var ae=t.helpers.calculateDataLabels({text:ie,x:(E+I)/2,y:(L+D)/2+t.strokeWidth/2+re/3,i:u,j:k,colorProps:b,fontSize:re,series:e});a.config.dataLabels.enabled&&ae&&t.rotateToFitLabel(ae,re,ie,E,L,I,D),m.add(p),ae!==null&&m.add(ae)}),m.add(x),n.add(m)}),n}},{key:"getFontSize",value:function(e){var t=this.w,a,r,o,n,c=function h(u){var m,v=0;if(Array.isArray(u[0]))for(m=0;m<u.length;m++)v+=h(u[m]);else for(m=0;m<u.length;m++)v+=u[m].length;return v}(this.labels)/function h(u){var m,v=0;if(Array.isArray(u[0]))for(m=0;m<u.length;m++)v+=h(u[m]);else for(m=0;m<u.length;m++)v+=1;return v}(this.labels);return a=e[2]-e[0],r=e[3]-e[1],o=a*r,n=Math.pow(o,.5),Math.min(n/c,parseInt(t.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,a,r,o,n,c){var h=new j(this.ctx),u=h.getTextRects(a,t);if(u.width+this.w.config.stroke.width+5>n-r&&u.width<=c-o){var m=h.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(m.x," ").concat(m.y,") translate(").concat(u.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,a,r,o,n){var c=new j(this.ctx),h=c.getTextRects(e,t).width+this.w.config.stroke.width+5>o-a&&n-r>o-a?n-r:o-a,u=c.getTextBasedOnMaxWidth({text:e,maxWidth:h,fontSize:t});return e.length!==u.length&&h/t<5?"":u}},{key:"animateTreemap",value:function(e,t,a,r){var o=new B(this.ctx);o.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:a.x,y:a.y,width:a.width,height:a.height},r,function(){o.animationCompleted(e)})}}]),z}(),Xl=86400,Rl=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return y(z,[{key:"calculateTimeScaleTicks",value:function(e,t){var a=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var o=new K(this.ctx),n=(t-e)/864e5;this.determineInterval(n),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,n<.00011574074074074075?r.globals.disableZoomIn=!0:n>5e4&&(r.globals.disableZoomOut=!0);var c=o.getTimeUnitsfromTimestamp(e,t,this.utc),h=r.globals.gridWidth/n,u=h/24,m=u/60,v=m/60,x=Math.floor(24*n),w=Math.floor(1440*n),k=Math.floor(n*Xl),E=Math.floor(n),L=Math.floor(n/30),I=Math.floor(n/365),D={minMillisecond:c.minMillisecond,minSecond:c.minSecond,minMinute:c.minMinute,minHour:c.minHour,minDate:c.minDate,minMonth:c.minMonth,minYear:c.minYear},p={firstVal:D,currentMillisecond:D.minMillisecond,currentSecond:D.minSecond,currentMinute:D.minMinute,currentHour:D.minHour,currentMonthDate:D.minDate,currentDate:D.minDate,currentMonth:D.minMonth,currentYear:D.minYear,daysWidthOnXAxis:h,hoursWidthOnXAxis:u,minutesWidthOnXAxis:m,secondsWidthOnXAxis:v,numberOfSeconds:k,numberOfMinutes:w,numberOfHours:x,numberOfDays:E,numberOfMonths:L,numberOfYears:I};switch(this.tickInterval){case"years":this.generateYearScale(p);break;case"months":case"half_year":this.generateMonthScale(p);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(p);break;case"hours":this.generateHourScale(p);break;case"minutes_fives":case"minutes":this.generateMinuteScale(p);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(p)}var b=this.timeScaleArray.map(function(C){var X={position:C.position,unit:C.unit,year:C.year,day:C.day?C.day:1,hour:C.hour?C.hour:0,month:C.month+1};return C.unit==="month"?d(d({},X),{},{day:1,value:C.value+1}):C.unit==="day"||C.unit==="hour"?d(d({},X),{},{value:C.value}):C.unit==="minute"?d(d({},X),{},{value:C.value,minute:C.value}):C.unit==="second"?d(d({},X),{},{value:C.value,minute:C.minute,second:C.second}):C});return b.filter(function(C){var X=1,O=Math.ceil(r.globals.gridWidth/120),N=C.value;r.config.xaxis.tickAmount!==void 0&&(O=r.config.xaxis.tickAmount),b.length>O&&(X=Math.floor(b.length/O));var $=!1,V=!1;switch(a.tickInterval){case"years":C.unit==="year"&&($=!0);break;case"half_year":X=7,C.unit==="year"&&($=!0);break;case"months":X=1,C.unit==="year"&&($=!0);break;case"months_fortnight":X=15,C.unit!=="year"&&C.unit!=="month"||($=!0),N===30&&(V=!0);break;case"months_days":X=10,C.unit==="month"&&($=!0),N===30&&(V=!0);break;case"week_days":X=8,C.unit==="month"&&($=!0);break;case"days":X=1,C.unit==="month"&&($=!0);break;case"hours":C.unit==="day"&&($=!0);break;case"minutes_fives":case"seconds_fives":N%5!=0&&(V=!0);break;case"seconds_tens":N%10!=0&&(V=!0)}if(a.tickInterval==="hours"||a.tickInterval==="minutes_fives"||a.tickInterval==="seconds_tens"||a.tickInterval==="seconds_fives"){if(!V)return!0}else if((N%X==0||$)&&!V)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var a=this.w,r=this.formatDates(e),o=this.removeOverlappingTS(r);a.globals.timescaleLabels=o.slice(),new Vt(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,a=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 a>15:this.tickInterval="minutes_fives";break;case a>5:this.tickInterval="minutes";break;case a>1:this.tickInterval="seconds_tens";break;case 60*a>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,a=e.currentMonth,r=e.currentYear,o=e.daysWidthOnXAxis,n=e.numberOfYears,c=t.minYear,h=0,u=new K(this.ctx),m="year";if(t.minDate>1||t.minMonth>0){var v=u.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);h=(u.determineDaysOfYear(t.minYear)-v+1)*o,c=t.minYear+1,this.timeScaleArray.push({position:h,value:c,unit:m,year:c,month:P.monthMod(a+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:h,value:c,unit:m,year:r,month:P.monthMod(a+1)});for(var x=c,w=h,k=0;k<n;k++)x++,w=u.determineDaysOfYear(x-1)*o+w,this.timeScaleArray.push({position:w,value:x,unit:m,year:x,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,a=e.currentMonthDate,r=e.currentMonth,o=e.currentYear,n=e.daysWidthOnXAxis,c=e.numberOfMonths,h=r,u=0,m=new K(this.ctx),v="month",x=0;if(t.minDate>1){u=(m.determineDaysOfMonths(r+1,t.minYear)-a+1)*n,h=P.monthMod(r+1);var w=o+x,k=P.monthMod(h),E=h;h===0&&(v="year",E=w,k=1,w+=x+=1),this.timeScaleArray.push({position:u,value:E,unit:v,year:w,month:k})}else this.timeScaleArray.push({position:u,value:h,unit:v,year:o,month:P.monthMod(r)});for(var L=h+1,I=u,D=0,p=1;D<c;D++,p++){(L=P.monthMod(L))===0?(v="year",x+=1):v="month";var b=this._getYear(o,L,x);I=m.determineDaysOfMonths(L,b)*n+I;var C=L===0?b:L;this.timeScaleArray.push({position:I,value:C,unit:v,year:b,month:L===0?1:L}),L++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,a=e.currentMonth,r=e.currentYear,o=e.hoursWidthOnXAxis,n=e.numberOfDays,c=new K(this.ctx),h="day",u=t.minDate+1,m=u,v=function(p,b,C){return p>c.determineDaysOfMonths(b+1,C)&&(m=1,h="month",w=b+=1),b},x=(24-t.minHour)*o,w=u,k=v(m,a,r);t.minHour===0&&t.minDate===1?(x=0,w=P.monthMod(t.minMonth),h="month",m=t.minDate):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(x=0,u=t.minDate,w=u,k=v(m=u,a,r)),this.timeScaleArray.push({position:x,value:w,unit:h,year:this._getYear(r,k,0),month:P.monthMod(k),day:m});for(var E=x,L=0;L<n;L++){h="day",k=v(m+=1,k,this._getYear(r,k,0));var I=this._getYear(r,k,0);E=24*o+E;var D=m===1?P.monthMod(k):m;this.timeScaleArray.push({position:E,value:D,unit:h,year:I,month:P.monthMod(k),day:D})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,a=e.currentDate,r=e.currentMonth,o=e.currentYear,n=e.minutesWidthOnXAxis,c=e.numberOfHours,h=new K(this.ctx),u="hour",m=function(X,O){return X>h.determineDaysOfMonths(O+1,o)&&(L=1,O+=1),{month:O,date:L}},v=function(X,O){return X>h.determineDaysOfMonths(O+1,o)?O+=1:O},x=60-(t.minMinute+t.minSecond/60),w=x*n,k=t.minHour+1,E=k;x===60&&(w=0,E=k=t.minHour);var L=a;E>=24&&(E=0,L+=1,u="day");var I=m(L,r).month;I=v(L,I),this.timeScaleArray.push({position:w,value:k,unit:u,day:L,hour:E,year:o,month:P.monthMod(I)}),E++;for(var D=w,p=0;p<c;p++){u="hour",E>=24&&(E=0,u="day",I=m(L+=1,I).month,I=v(L,I));var b=this._getYear(o,I,0);D=60*n+D;var C=E===0?L:E;this.timeScaleArray.push({position:D,value:C,unit:u,hour:E,day:L,year:b,month:P.monthMod(I)}),E++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,a=e.currentSecond,r=e.currentMinute,o=e.currentHour,n=e.currentDate,c=e.currentMonth,h=e.currentYear,u=e.minutesWidthOnXAxis,m=e.secondsWidthOnXAxis,v=e.numberOfMinutes,x=r+1,w=n,k=c,E=h,L=o,I=(60-a-t/1e3)*m,D=0;D<v;D++)x>=60&&(x=0,(L+=1)===24&&(L=0)),this.timeScaleArray.push({position:I,value:x,unit:"minute",hour:L,minute:x,day:w,year:this._getYear(E,k,0),month:P.monthMod(k)}),I+=u,x++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,a=e.currentSecond,r=e.currentMinute,o=e.currentHour,n=e.currentDate,c=e.currentMonth,h=e.currentYear,u=e.secondsWidthOnXAxis,m=e.numberOfSeconds,v=a+1,x=r,w=n,k=c,E=h,L=o,I=(1e3-t)/1e3*u,D=0;D<m;D++)v>=60&&(v=0,++x>=60&&(x=0,++L===24&&(L=0))),this.timeScaleArray.push({position:I,value:v,unit:"second",hour:L,minute:x,second:v,day:w,year:this._getYear(E,k,0),month:P.monthMod(k)}),I+=u,v++}},{key:"createRawDateString",value:function(e,t){var a=e.year;return e.month===0&&(e.month=1),a+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?a+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":a+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?a+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":a+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?a+=":"+("0"+t).slice(-2):a+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?a+=":"+("0"+t).slice(-2):a+=":00",this.utc&&(a+=".000Z"),a}},{key:"formatDates",value:function(e){var t=this,a=this.w;return e.map(function(r){var o=r.value.toString(),n=new K(t.ctx),c=t.createRawDateString(r,o),h=n.getDate(n.parseDate(c));if(t.utc||(h=n.getDate(n.parseDateWithTimezone(c))),a.config.xaxis.labels.format===void 0){var u="dd MMM",m=a.config.xaxis.labels.datetimeFormatter;r.unit==="year"&&(u=m.year),r.unit==="month"&&(u=m.month),r.unit==="day"&&(u=m.day),r.unit==="hour"&&(u=m.hour),r.unit==="minute"&&(u=m.minute),r.unit==="second"&&(u=m.second),o=n.formatDate(h,u)}else o=n.formatDate(h,a.config.xaxis.labels.format);return{dateString:c,position:r.position,value:o,unit:r.unit,year:r.year,month:r.month}})}},{key:"removeOverlappingTS",value:function(e){var t,a=this,r=new j(this.ctx),o=!1;e.length>0&&e[0].value&&e.every(function(h){return h.value.length===e[0].value.length})&&(o=!0,t=r.getTextRects(e[0].value).width);var n=0,c=e.map(function(h,u){if(u>0&&a.w.config.xaxis.labels.hideOverlappingLabels){var m=o?t:r.getTextRects(e[n].value).width,v=e[n].position;return h.position>v+m+10?(n=u,h):null}return h});return c=c.filter(function(h){return h!==null})}},{key:"_getYear",value:function(e,t,a){return e+Math.floor(t/12)+a}}]),z}(),Yl=function(){function z(e,t){g(this,z),this.ctx=t,this.w=t.w,this.el=e}return y(z,[{key:"setupElements",value:function(){var e=this.w.globals,t=this.w.config,a=t.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].indexOf(a)>-1,e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].indexOf(a)>-1,e.isBarHorizontal=(t.chart.type==="bar"||t.chart.type==="rangeBar"||t.chart.type==="boxPlot")&&t.plotOptions.bar.horizontal,e.chartClass=".apexcharts"+e.chartID,e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),j.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=t.theme.mode!=="dark"||t.chart.background?t.chart.background:"rgba(0, 0, 0, 0.8)",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),j.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 a=this.w,r=a.config,o=a.globals,n={series:[],i:[]},c={series:[],i:[]},h={series:[],i:[]},u={series:[],i:[]},m={series:[],i:[]},v={series:[],i:[]},x={series:[],i:[]},w={series:[],i:[]},k={series:[],seriesRangeEnd:[],i:[]},E=r.chart.type!==void 0?r.chart.type:"line",L=0;o.series.map(function($,V){e[V].type!==void 0?e[V].type==="column"||e[V].type==="bar"?(m.series.push($),m.i.push(V),a.globals.columnSeries=m.series,E!=="bar"&&(o.series.length>1&&r.plotOptions.bar.horizontal&&console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"),L++)):e[V].type==="area"?(c.series.push($),c.i.push(V),E!==e[V].type&&L++):e[V].type==="line"?(n.series.push($),n.i.push(V),E!==e[V].type&&L++):e[V].type==="scatter"?(h.series.push($),h.i.push(V)):e[V].type==="bubble"?(u.series.push($),u.i.push(V),E!==e[V].type&&L++):e[V].type==="candlestick"?(v.series.push($),v.i.push(V),E!==e[V].type&&L++):e[V].type==="boxPlot"?(x.series.push($),x.i.push(V),E!==e[V].type&&L++):e[V].type==="rangeBar"?(w.series.push($),w.i.push(V),E!==e[V].type&&L++):e[V].type==="rangeArea"?(k.series.push(o.seriesRangeStart[V]),k.seriesRangeEnd.push(o.seriesRangeEnd[V]),k.i.push(V),E!==e[V].type&&L++):console.warn("You have specified an unrecognized chart type. Available types for this property are line/area/column/bar/scatter/bubble/candlestick/boxPlot/rangeBar/rangeArea"):(n.series.push($),n.i.push(V))}),o.comboCharts||(o.comboCharts=L>0);var I=new qa(this.ctx,t),D=new ja(this.ctx,t);this.ctx.pie=new zr(this.ctx);var p=new Ml(this.ctx);this.ctx.rangeBar=new Pl(this.ctx,t);var b=new _l(this.ctx),C=[];if(o.comboCharts){if(c.series.length>0&&C.push(I.draw(c.series,"area",c.i)),m.series.length>0)if(a.config.chart.stacked){var X=new Mr(this.ctx,t);C.push(X.draw(m.series,m.i))}else this.ctx.bar=new hi(this.ctx,t),C.push(this.ctx.bar.draw(m.series,m.i));if(k.series.length>0&&C.push(I.draw(k.series,"rangeArea",k.i,k.seriesRangeEnd)),n.series.length>0&&C.push(I.draw(n.series,"line",n.i)),v.series.length>0&&C.push(D.draw(v.series,"candlestick",v.i)),x.series.length>0&&C.push(D.draw(x.series,"boxPlot",x.i)),w.series.length>0&&C.push(this.ctx.rangeBar.draw(w.series,w.i)),h.series.length>0){var O=new qa(this.ctx,t,!0);C.push(O.draw(h.series,"scatter",h.i))}if(u.series.length>0){var N=new qa(this.ctx,t,!0);C.push(N.draw(u.series,"bubble",u.i))}}else switch(r.chart.type){case"line":C=I.draw(o.series,"line");break;case"area":C=I.draw(o.series,"area");break;case"bar":r.chart.stacked?C=new Mr(this.ctx,t).draw(o.series):(this.ctx.bar=new hi(this.ctx,t),C=this.ctx.bar.draw(o.series));break;case"candlestick":C=new ja(this.ctx,t).draw(o.series,"candlestick");break;case"boxPlot":C=new ja(this.ctx,t).draw(o.series,r.chart.type);break;case"rangeBar":C=this.ctx.rangeBar.draw(o.series);break;case"rangeArea":C=I.draw(o.seriesRangeStart,"rangeArea",void 0,o.seriesRangeEnd);break;case"heatmap":C=new Ll(this.ctx,t).draw(o.series);break;case"treemap":C=new Hl(this.ctx,t).draw(o.series);break;case"pie":case"donut":case"polarArea":C=this.ctx.pie.draw(o.series);break;case"radialBar":C=p.draw(o.series);break;case"radar":C=b.draw(o.series);break;default:C=I.draw(o.series)}return C}},{key:"setSVGDimensions",value:function(){var e=this.w.globals,t=this.w.config;e.svgWidth=t.chart.width,e.svgHeight=t.chart.height;var a=P.getDimensions(this.el),r=t.chart.width.toString().split(/[0-9]+/g).pop();r==="%"?P.isNumber(a[0])&&(a[0].width===0&&(a=P.getDimensions(this.el.parentNode)),e.svgWidth=a[0]*parseInt(t.chart.width,10)/100):r!=="px"&&r!==""||(e.svgWidth=parseInt(t.chart.width,10));var o=t.chart.height.toString().split(/[0-9]+/g).pop();if(e.svgHeight!=="auto"&&e.svgHeight!=="")if(o==="%"){var n=P.getDimensions(this.el.parentNode);e.svgHeight=n[1]*parseInt(t.chart.height,10)/100}else e.svgHeight=parseInt(t.chart.height,10);else e.axisCharts?e.svgHeight=e.svgWidth/1.61:e.svgHeight=e.svgWidth/1.2;if(e.svgWidth<0&&(e.svgWidth=0),e.svgHeight<0&&(e.svgHeight=0),j.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),o!=="%"){var c=t.chart.sparkline.enabled?0:e.axisCharts?t.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight=e.svgHeight+c+"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,t=e.translateY,a={transform:"translate("+e.translateX+", "+t+")"};j.setAttrs(e.dom.elGraphical.node,a)}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,a=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||!e.config.legend.show||e.config.legend.floating||(a=new Ai(this.ctx).legendHelpers.getLegendBBox().clwh+10);var o=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),n=2.05*e.globals.radialSize;if(o&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var c=P.getBoundingClientRect(o);n=c.bottom;var h=c.bottom-c.top;n=Math.max(2.05*e.globals.radialSize,h)}var u=n+t.translateY+a+r;t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",u),e.config.chart.height&&String(e.config.chart.height).indexOf("%")>0||(t.dom.elWrap.style.height=u+"px",j.setAttrs(t.dom.Paper.node,{height:u}),t.dom.Paper.node.parentNode.parentNode.style.minHeight=u+"px")}},{key:"coreCalculations",value:function(){new bt(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(o){return[]})},a=new he,r=this.w.globals;a.initGlobalVars(r),r.seriesXvalues=t(),r.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(t.config.xaxis.crosshairs.position==="back"&&new St(this.ctx).drawXCrosshairs(),t.config.yaxis[0].crosshairs.position==="back"&&new St(this.ctx).drawYCrosshairs(),t.config.xaxis.type==="datetime"&&t.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Rl(this.ctx);var a=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?a=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(a=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(a)}e=new U(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&&typeof t.config.chart.events.selection!="function"){var a=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];a.forEach(function(r){var o=ApexCharts.getChartByID(r);o.w.globals.brushSource=e.ctx,typeof o.w.config.chart.events.zoomed!="function"&&(o.w.config.chart.events.zoomed=function(){e.updateSourceChart(o)}),typeof o.w.config.chart.events.scrolled!="function"&&(o.w.config.chart.events.scrolled=function(){e.updateSourceChart(o)})}),t.config.chart.events.selection=function(r,o){a.forEach(function(n){ApexCharts.getChartByID(n).ctx.updateHelpers._updateOptions({xaxis:{min:o.xaxis.min,max:o.xaxis.max}},!1,!1,!1,!1)})}}}}]),z}(),Fl=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{key:"_updateOptions",value:function(e){var t=this,a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],o=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(c){var h=[t.ctx];o&&(h=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(h=[t.ctx],t.ctx.w.globals.isExecCalled=!1),h.forEach(function(u,m){var v=u.w;if(v.globals.shouldAnimate=r,a||(v.globals.resized=!0,v.globals.dataChanged=!0,r&&u.series.getPreviousPaths()),e&&f(e)==="object"&&(u.config=new ye(e),e=U.extendArrayProps(u.config,e,v),u.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,v.config=P.extend(v.config,e),n&&(v.globals.lastXAxis=e.xaxis?P.clone(e.xaxis):[],v.globals.lastYAxis=e.yaxis?P.clone(e.yaxis):[],v.globals.initialConfig=P.extend({},v.config),v.globals.initialSeries=P.clone(v.config.series),e.series))){for(var x=0;x<v.globals.collapsedSeriesIndices.length;x++){var w=v.config.series[v.globals.collapsedSeriesIndices[x]];v.globals.collapsedSeries[x].data=v.globals.axisCharts?w.data.slice():w}for(var k=0;k<v.globals.ancillaryCollapsedSeriesIndices.length;k++){var E=v.config.series[v.globals.ancillaryCollapsedSeriesIndices[k]];v.globals.ancillaryCollapsedSeries[k].data=v.globals.axisCharts?E.data.slice():E}u.series.emptyCollapsedSeries(v.config.series)}return u.update(e).then(function(){m===h.length-1&&c(u)})})})}},{key:"_updateSeries",value:function(e,t){var a=this,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(o){var n,c=a.w;return c.globals.shouldAnimate=t,c.globals.dataChanged=!0,t&&a.ctx.series.getPreviousPaths(),c.globals.axisCharts?((n=e.map(function(h,u){return a._extendSeries(h,u)})).length===0&&(n=[{data:[]}]),c.config.series=n):c.config.series=e.slice(),r&&(c.globals.initialConfig.series=P.clone(c.config.series),c.globals.initialSeries=P.clone(c.config.series)),a.ctx.update().then(function(){o(a.ctx)})})}},{key:"_extendSeries",value:function(e,t){var a=this.w,r=a.config.series[t];return d(d({},a.config.series[t]),{},{name:e.name?e.name:r==null?void 0:r.name,color:e.color?e.color:r==null?void 0:r.color,type:e.type?e.type:r==null?void 0:r.type,group:e.group?e.group:r==null?void 0:r.group,data:e.data?e.data:r==null?void 0:r.data,zIndex:e.zIndex!==void 0?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var a=this.w,r=null,o=".apexcharts-series[data\\:realIndex='".concat(e,"']");return a.globals.axisCharts?r=a.globals.dom.Paper.select("".concat(o," path[j='").concat(t,"'], ").concat(o," circle[j='").concat(t,"'], ").concat(o," rect[j='").concat(t,"']")).members[0]:t===void 0&&(r=a.globals.dom.Paper.select("".concat(o," path[j='").concat(e,"']")).members[0],a.config.chart.type!=="pie"&&a.config.chart.type!=="polarArea"&&a.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),r?(new j(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(r){e.xaxis[r]!==void 0&&(t.config.xaxis[r]=e.xaxis[r],t.globals.lastXAxis[r]=e.xaxis[r])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var a=new ue(e);e=a.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,a){e.yaxis[a].min=0,e.yaxis[a].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,a=this.w,r=a.globals.lastXAxis,o=a.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(o=e.yaxis),a.config.xaxis.min=r.min,a.config.xaxis.max=r.max;var n=function(c){o[c]!==void 0&&(a.config.yaxis[c].min=o[c].min,a.config.yaxis[c].max=o[c].max)};a.config.yaxis.map(function(c,h){a.globals.zoomed||o[h]!==void 0?n(h):t.ctx.opts.yaxis[h]!==void 0&&(c.min=t.ctx.opts.yaxis[h].min,c.max=t.ctx.opts.yaxis[h].max)})}}]),z}();jt=typeof window<"u"?window:void 0,Ki=function(z,e){var t=(this!==void 0?this:z).SVG=function(p){if(t.supported)return p=new t.Doc(p),t.parser.draw||t.prepare(),p};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(p){return"Svgjs"+m(p)+t.did++},t.create=function(p){var b=e.createElementNS(this.ns,p);return b.setAttribute("id",this.eid(p)),b},t.extend=function(){var p,b;b=(p=[].slice.call(arguments)).pop();for(var C=p.length-1;C>=0;C--)if(p[C])for(var X in b)p[C].prototype[X]=b[X];t.Set&&t.Set.inherit&&t.Set.inherit()},t.invent=function(p){var b=typeof p.create=="function"?p.create:function(){this.constructor.call(this,t.create(p.create))};return p.inherit&&(b.prototype=new p.inherit),p.extend&&t.extend(b,p.extend),p.construct&&t.extend(p.parent||t.Container,p.construct),b},t.adopt=function(p){return p?p.instance?p.instance:((b=p.nodeName=="svg"?p.parentNode instanceof z.SVGElement?new t.Nested:new t.Doc:p.nodeName=="linearGradient"?new t.Gradient("linear"):p.nodeName=="radialGradient"?new t.Gradient("radial"):t[m(p.nodeName)]?new t[m(p.nodeName)]:new t.Element(p)).type=p.nodeName,b.node=p,p.instance=b,b instanceof t.Doc&&b.namespace().defs(),b.setData(JSON.parse(p.getAttribute("svgjs:data"))||{}),b):null;var b},t.prepare=function(){var p=e.getElementsByTagName("body")[0],b=(p?new t.Doc(p):t.adopt(e.documentElement).nested()).size(2,0);t.parser={body:p||e.documentElement,draw:b.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:b.polyline().node,path:b.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(p,b){for(var C=p.length,X=[],O=0;O<C;O++)X.push(b(p[O]));return X},filter:function(p,b){for(var C=p.length,X=[],O=0;O<C;O++)b(p[O])&&X.push(p[O]);return X},filterSVGElements:function(p){return this.filter(p,function(b){return b instanceof z.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(p){var b,C;this.r=0,this.g=0,this.b=0,p&&(typeof p=="string"?t.regex.isRgb.test(p)?(b=t.regex.rgb.exec(p.replace(t.regex.whitespace,"")),this.r=parseInt(b[1]),this.g=parseInt(b[2]),this.b=parseInt(b[3])):t.regex.isHex.test(p)&&(b=t.regex.hex.exec((C=p).length==4?["#",C.substring(1,2),C.substring(1,2),C.substring(2,3),C.substring(2,3),C.substring(3,4),C.substring(3,4)].join(""):C),this.r=parseInt(b[1],16),this.g=parseInt(b[2],16),this.b=parseInt(b[3],16)):f(p)==="object"&&(this.r=p.r,this.g=p.g,this.b=p.b))},t.extend(t.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+v(this.r)+v(this.g)+v(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(p){return this.destination=new t.Color(p),this},at:function(p){return this.destination?(p=p<0?0:p>1?1:p,new t.Color({r:~~(this.r+(this.destination.r-this.r)*p),g:~~(this.g+(this.destination.g-this.g)*p),b:~~(this.b+(this.destination.b-this.b)*p)})):this}}),t.Color.test=function(p){return p+="",t.regex.isHex.test(p)||t.regex.isRgb.test(p)},t.Color.isRgb=function(p){return p&&typeof p.r=="number"&&typeof p.g=="number"&&typeof p.b=="number"},t.Color.isColor=function(p){return t.Color.isRgb(p)||t.Color.test(p)},t.Array=function(p,b){(p=(p||[]).valueOf()).length==0&&b&&(p=b.valueOf()),this.value=this.parse(p)},t.extend(t.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(p){return p=p.valueOf(),Array.isArray(p)?p:this.split(p)}}),t.PointArray=function(p,b){t.Array.call(this,p,b||[[0,0]])},t.PointArray.prototype=new t.Array,t.PointArray.prototype.constructor=t.PointArray;for(var a={M:function(p,b,C){return b.x=C.x=p[0],b.y=C.y=p[1],["M",b.x,b.y]},L:function(p,b){return b.x=p[0],b.y=p[1],["L",p[0],p[1]]},H:function(p,b){return b.x=p[0],["H",p[0]]},V:function(p,b){return b.y=p[0],["V",p[0]]},C:function(p,b){return b.x=p[4],b.y=p[5],["C",p[0],p[1],p[2],p[3],p[4],p[5]]},Q:function(p,b){return b.x=p[2],b.y=p[3],["Q",p[0],p[1],p[2],p[3]]},S:function(p,b){return b.x=p[2],b.y=p[3],["S",p[0],p[1],p[2],p[3]]},Z:function(p,b,C){return b.x=C.x,b.y=C.y,["Z"]}},r="mlhvqtcsaz".split(""),o=0,n=r.length;o<n;++o)a[r[o]]=function(p){return function(b,C,X){if(p=="H")b[0]=b[0]+C.x;else if(p=="V")b[0]=b[0]+C.y;else if(p=="A")b[5]=b[5]+C.x,b[6]=b[6]+C.y;else for(var O=0,N=b.length;O<N;++O)b[O]=b[O]+(O%2?C.y:C.x);if(a&&typeof a[p]=="function")return a[p](b,C,X)}}(r[o].toUpperCase());t.PathArray=function(p,b){t.Array.call(this,p,b||[["M",0,0]])},t.PathArray.prototype=new t.Array,t.PathArray.prototype.constructor=t.PathArray,t.extend(t.PathArray,{toString:function(){return function(p){for(var b=0,C=p.length,X="";b<C;b++)X+=p[b][0],p[b][1]!=null&&(X+=p[b][1],p[b][2]!=null&&(X+=" ",X+=p[b][2],p[b][3]!=null&&(X+=" ",X+=p[b][3],X+=" ",X+=p[b][4],p[b][5]!=null&&(X+=" ",X+=p[b][5],X+=" ",X+=p[b][6],p[b][7]!=null&&(X+=" ",X+=p[b][7])))));return X+" "}(this.value)},move:function(p,b){var C=this.bbox();return C.x,C.y,this},at:function(p){if(!this.destination)return this;for(var b=this.value,C=this.destination.value,X=[],O=new t.PathArray,N=0,$=b.length;N<$;N++){X[N]=[b[N][0]];for(var V=1,re=b[N].length;V<re;V++)X[N][V]=b[N][V]+(C[N][V]-b[N][V])*p;X[N][0]==="A"&&(X[N][4]=+(X[N][4]!=0),X[N][5]=+(X[N][5]!=0))}return O.value=X,O},parse:function(p){if(p instanceof t.PathArray)return p.valueOf();var b,C={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};p=typeof p=="string"?p.replace(t.regex.numbersWithDots,h).replace(t.regex.pathLetters," $& ").replace(t.regex.hyphen,"$1 -").trim().split(t.regex.delimiter):p.reduce(function(re,ie){return[].concat.call(re,ie)},[]);var X=[],O=new t.Point,N=new t.Point,$=0,V=p.length;do t.regex.isPathLetter.test(p[$])?(b=p[$],++$):b=="M"?b="L":b=="m"&&(b="l"),X.push(a[b].call(null,p.slice($,$+=C[b.toUpperCase()]).map(parseFloat),O,N));while(V>$);return X},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(p,b){this.value=0,this.unit=b||"",typeof p=="number"?this.value=isNaN(p)?0:isFinite(p)?p:p<0?-34e37:34e37:typeof p=="string"?(b=p.match(t.regex.numberAndUnit))&&(this.value=parseFloat(b[1]),b[5]=="%"?this.value/=100:b[5]=="s"&&(this.value*=1e3),this.unit=b[5]):p instanceof t.Number&&(this.value=p.valueOf(),this.unit=p.unit)},extend:{toString:function(){return(this.unit=="%"?~~(1e8*this.value)/1e6:this.unit=="s"?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(p){return p=new t.Number(p),new t.Number(this+p,this.unit||p.unit)},minus:function(p){return p=new t.Number(p),new t.Number(this-p,this.unit||p.unit)},times:function(p){return p=new t.Number(p),new t.Number(this*p,this.unit||p.unit)},divide:function(p){return p=new t.Number(p),new t.Number(this/p,this.unit||p.unit)},to:function(p){var b=new t.Number(this);return typeof p=="string"&&(b.unit=p),b},morph:function(p){return this.destination=new t.Number(p),p.relative&&(this.destination.value+=this.value),this},at:function(p){return this.destination?new t.Number(this.destination).minus(this).times(p).plus(this):this}}}),t.Element=t.invent({create:function(p){this._stroke=t.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=p)&&(this.type=p.nodeName,this.node.instance=this,this._stroke=p.getAttribute("stroke")||this._stroke)},extend:{x:function(p){return this.attr("x",p)},y:function(p){return this.attr("y",p)},cx:function(p){return p==null?this.x()+this.width()/2:this.x(p-this.width()/2)},cy:function(p){return p==null?this.y()+this.height()/2:this.y(p-this.height()/2)},move:function(p,b){return this.x(p).y(b)},center:function(p,b){return this.cx(p).cy(b)},width:function(p){return this.attr("width",p)},height:function(p){return this.attr("height",p)},size:function(p,b){var C=x(this,p,b);return this.width(new t.Number(C.width)).height(new t.Number(C.height))},clone:function(p){this.writeDataToDom();var b=E(this.node.cloneNode(!0));return p?p.add(b):this.after(b),b},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(p){return this.after(p).remove(),p},addTo:function(p){return p.put(this)},putIn:function(p){return p.add(this)},id:function(p){return this.attr("id",p)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return this.style("display")!="none"},toString:function(){return this.attr("id")},classes:function(){var p=this.attr("class");return p==null?[]:p.trim().split(t.regex.delimiter)},hasClass:function(p){return this.classes().indexOf(p)!=-1},addClass:function(p){if(!this.hasClass(p)){var b=this.classes();b.push(p),this.attr("class",b.join(" "))}return this},removeClass:function(p){return this.hasClass(p)&&this.attr("class",this.classes().filter(function(b){return b!=p}).join(" ")),this},toggleClass:function(p){return this.hasClass(p)?this.removeClass(p):this.addClass(p)},reference:function(p){return t.get(this.attr(p))},parent:function(p){var b=this;if(!b.node.parentNode)return null;if(b=t.adopt(b.node.parentNode),!p)return b;for(;b&&b.node instanceof z.SVGElement;){if(typeof p=="string"?b.matches(p):b instanceof p)return b;if(!b.node.parentNode||b.node.parentNode.nodeName=="#document")return null;b=t.adopt(b.node.parentNode)}},doc:function(){return this instanceof t.Doc?this:this.parent(t.Doc)},parents:function(p){var b=[],C=this;do{if(!(C=C.parent(p))||!C.node)break;b.push(C)}while(C.parent);return b},matches:function(p){return function(b,C){return(b.matches||b.matchesSelector||b.msMatchesSelector||b.mozMatchesSelector||b.webkitMatchesSelector||b.oMatchesSelector).call(b,C)}(this.node,p)},native:function(){return this.node},svg:function(p){var b=e.createElement("svg");if(!(p&&this instanceof t.Parent))return b.appendChild(p=e.createElement("svg")),this.writeDataToDom(),p.appendChild(this.node.cloneNode(!0)),b.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");b.innerHTML="<svg>"+p.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var C=0,X=b.firstChild.childNodes.length;C<X;C++)this.node.appendChild(b.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(p){return this.dom=p,this},is:function(p){return function(b,C){return b instanceof C}(this,p)}}}),t.easing={"-":function(p){return p},"<>":function(p){return-Math.cos(p*Math.PI)/2+.5},">":function(p){return Math.sin(p*Math.PI/2)},"<":function(p){return 1-Math.cos(p*Math.PI/2)}},t.morph=function(p){return function(b,C){return new t.MorphObj(b,C).at(p)}},t.Situation=t.invent({create:function(p){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new t.Number(p.duration).valueOf(),this.delay=new t.Number(p.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=p.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),t.FX=t.invent({create:function(p){this._target=p,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(p,b,C){f(p)==="object"&&(b=p.ease,C=p.delay,p=p.duration);var X=new t.Situation({duration:p||1e3,delay:C||0,ease:t.easing[b||"-"]||b});return this.queue(X),this},target:function(p){return p&&p instanceof t.Element?(this._target=p,this):this._target},timeToAbsPos:function(p){return(p-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(p){return this.situation.duration/this._speed*p+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=z.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){z.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(p){return(typeof p=="function"||p instanceof t.Situation)&&this.situations.push(p),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 p,b=this.situation;if(b.init)return this;for(var C in b.animations){p=this.target()[C](),Array.isArray(p)||(p=[p]),Array.isArray(b.animations[C])||(b.animations[C]=[b.animations[C]]);for(var X=p.length;X--;)b.animations[C][X]instanceof t.Number&&(p[X]=new t.Number(p[X])),b.animations[C][X]=p[X].morph(b.animations[C][X])}for(var C in b.attrs)b.attrs[C]=new t.MorphObj(this.target().attr(C),b.attrs[C]);for(var C in b.styles)b.styles[C]=new t.MorphObj(this.target().style(C),b.styles[C]);return b.initialTransformation=this.target().matrixify(),b.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(p,b){var C=this.active;return this.active=!1,b&&this.clearQueue(),p&&this.situation&&(!C&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(p){var b=this.last();return this.target().on("finished.fx",function C(X){X.detail.situation==b&&(p.call(this,b),this.off("finished.fx",C))}),this._callStart()},during:function(p){var b=this.last(),C=function(X){X.detail.situation==b&&p.call(this,X.detail.pos,t.morph(X.detail.pos),X.detail.eased,b)};return this.target().off("during.fx",C).on("during.fx",C),this.after(function(){this.off("during.fx",C)}),this._callStart()},afterAll:function(p){var b=function C(X){p.call(this),this.off("allfinished.fx",C)};return this.target().off("allfinished.fx",b).on("allfinished.fx",b),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(p,b,C){return this.last()[C||"animations"][p]=b,this._callStart()},step:function(p){var b,C,X;p||(this.absPos=this.timeToAbsPos(+new Date)),this.situation.loops!==!1?(b=Math.max(this.absPos,0),C=Math.floor(b),this.situation.loops===!0||C<this.situation.loops?(this.pos=b-C,X=this.situation.loop,this.situation.loop=C):(this.absPos=this.situation.loops,this.pos=1,X=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=!!((this.situation.loop-X)%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 O=this.situation.ease(this.pos);for(var N in this.situation.once)N>this.lastPos&&N<=O&&(this.situation.once[N].call(this.target(),this.pos,O),delete this.situation.once[N]);return this.active&&this.target().fire("during",{pos:this.pos,eased:O,fx:this,situation:this.situation}),this.situation?(this.eachAt(),this.pos==1&&!this.situation.reversed||this.situation.reversed&&this.pos==0?(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=O,this):this},eachAt:function(){var p,b=this,C=this.target(),X=this.situation;for(var O in X.animations)p=[].concat(X.animations[O]).map(function(V){return typeof V!="string"&&V.at?V.at(X.ease(b.pos),b.pos):V}),C[O].apply(C,p);for(var O in X.attrs)p=[O].concat(X.attrs[O]).map(function(re){return typeof re!="string"&&re.at?re.at(X.ease(b.pos),b.pos):re}),C.attr.apply(C,p);for(var O in X.styles)p=[O].concat(X.styles[O]).map(function(re){return typeof re!="string"&&re.at?re.at(X.ease(b.pos),b.pos):re}),C.style.apply(C,p);if(X.transforms.length){p=X.initialTransformation,O=0;for(var N=X.transforms.length;O<N;O++){var $=X.transforms[O];$ instanceof t.Matrix?p=$.relative?p.multiply(new t.Matrix().morph($).at(X.ease(this.pos))):p.morph($).at(X.ease(this.pos)):($.relative||$.undo(p.extract()),p=p.multiply($.at(X.ease(this.pos))))}C.matrix(p)}return this},once:function(p,b,C){var X=this.last();return C||(p=X.ease(p)),X.once[p]=b,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:t.Element,construct:{animate:function(p,b,C){return(this.fx||(this.fx=new t.FX(this))).animate(p,b,C)},delay:function(p){return(this.fx||(this.fx=new t.FX(this))).delay(p)},stop:function(p,b){return this.fx&&this.fx.stop(p,b),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),t.MorphObj=t.invent({create:function(p,b){return t.Color.isColor(b)?new t.Color(p).morph(b):t.regex.delimiter.test(p)?t.regex.pathLetters.test(p)?new t.PathArray(p).morph(b):new t.Array(p).morph(b):t.regex.numberAndUnit.test(b)?new t.Number(p).morph(b):(this.value=p,void(this.destination=b))},extend:{at:function(p,b){return b<1?this.value:this.destination},valueOf:function(){return this.value}}}),t.extend(t.FX,{attr:function(p,b,C){if(f(p)==="object")for(var X in p)this.attr(X,p[X]);else this.add(p,b,"attrs");return this},plot:function(p,b,C,X){return arguments.length==4?this.plot([p,b,C,X]):this.add("plot",new(this.target()).morphArray(p))}}),t.Box=t.invent({create:function(p,b,C,X){if(!(f(p)!=="object"||p instanceof t.Element))return t.Box.call(this,p.left!=null?p.left:p.x,p.top!=null?p.top:p.y,p.width,p.height);var O;arguments.length==4&&(this.x=p,this.y=b,this.width=C,this.height=X),(O=this).x==null&&(O.x=0,O.y=0,O.width=0,O.height=0),O.w=O.width,O.h=O.height,O.x2=O.x+O.width,O.y2=O.y+O.height,O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}}),t.BBox=t.invent({create:function(p){if(t.Box.apply(this,[].slice.call(arguments)),p instanceof t.Element){var b;try{if(!e.documentElement.contains){for(var C=p.node;C.parentNode;)C=C.parentNode;if(C!=e)throw new Error("Element not in the dom")}b=p.node.getBBox()}catch{if(p instanceof t.Shape){t.parser.draw||t.prepare();var X=p.clone(t.parser.draw.instance).show();X&&X.node&&typeof X.node.getBBox=="function"&&(b=X.node.getBBox()),X&&typeof X.remove=="function"&&X.remove()}else b={x:p.node.clientLeft,y:p.node.clientTop,width:p.node.clientWidth,height:p.node.clientHeight}}t.Box.call(this,b)}},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(p){var b=k([1,0,0,1,0,0]);p=p===null?b:p instanceof t.Element?p.matrixify():typeof p=="string"?k(p.split(t.regex.delimiter).map(parseFloat)):arguments.length==6?k([].slice.call(arguments)):Array.isArray(p)?k(p):p&&f(p)==="object"?p:b;for(var C=I.length-1;C>=0;--C)this[I[C]]=p[I[C]]!=null?p[I[C]]:b[I[C]]},extend:{extract:function(){var p=w(this,0,1);w(this,1,0);var b=180/Math.PI*Math.atan2(p.y,p.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(b*Math.PI/180)+this.f*Math.sin(b*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(b*Math.PI/180)+this.e*Math.sin(-b*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:b,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(p){return this.destination=new t.Matrix(p),this},multiply:function(p){return new t.Matrix(this.native().multiply(function(b){return b instanceof t.Matrix||(b=new t.Matrix(b)),b}(p).native()))},inverse:function(){return new t.Matrix(this.native().inverse())},translate:function(p,b){return new t.Matrix(this.native().translate(p||0,b||0))},native:function(){for(var p=t.parser.native.createSVGMatrix(),b=I.length-1;b>=0;b--)p[I[b]]=this[I[b]];return p},toString:function(){return"matrix("+L(this.a)+","+L(this.b)+","+L(this.c)+","+L(this.d)+","+L(this.e)+","+L(this.f)+")"}},parent:t.Element,construct:{ctm:function(){return new t.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof t.Nested){var p=this.rect(1,1),b=p.node.getScreenCTM();return p.remove(),new t.Matrix(b)}return new t.Matrix(this.node.getScreenCTM())}}}),t.Point=t.invent({create:function(p,b){var C;C=Array.isArray(p)?{x:p[0],y:p[1]}:f(p)==="object"?{x:p.x,y:p.y}:p!=null?{x:p,y:b??p}:{x:0,y:0},this.x=C.x,this.y=C.y},extend:{clone:function(){return new t.Point(this)},morph:function(p,b){return this.destination=new t.Point(p,b),this}}}),t.extend(t.Element,{point:function(p,b){return new t.Point(p,b).transform(this.screenCTM().inverse())}}),t.extend(t.Element,{attr:function(p,b,C){if(p==null){for(p={},C=(b=this.node.attributes).length-1;C>=0;C--)p[b[C].nodeName]=t.regex.isNumber.test(b[C].nodeValue)?parseFloat(b[C].nodeValue):b[C].nodeValue;return p}if(f(p)==="object")for(var X in p)this.attr(X,p[X]);else if(b===null)this.node.removeAttribute(p);else{if(b==null)return(b=this.node.getAttribute(p))==null?t.defaults.attrs[p]:t.regex.isNumber.test(b)?parseFloat(b):b;p=="stroke-width"?this.attr("stroke",parseFloat(b)>0?this._stroke:null):p=="stroke"&&(this._stroke=b),p!="fill"&&p!="stroke"||(t.regex.isImage.test(b)&&(b=this.doc().defs().image(b,0,0)),b instanceof t.Image&&(b=this.doc().defs().pattern(0,0,function(){this.add(b)}))),typeof b=="number"?b=new t.Number(b):t.Color.isColor(b)?b=new t.Color(b):Array.isArray(b)&&(b=new t.Array(b)),p=="leading"?this.leading&&this.leading(b):typeof C=="string"?this.node.setAttributeNS(C,p,b.toString()):this.node.setAttribute(p,b.toString()),!this.rebuild||p!="font-size"&&p!="x"||this.rebuild(p,b)}return this}}),t.extend(t.Element,{transform:function(p,b){var C;return f(p)!=="object"?(C=new t.Matrix(this).extract(),typeof p=="string"?C[p]:C):(C=new t.Matrix(this),b=!!b||!!p.relative,p.a!=null&&(C=b?C.multiply(new t.Matrix(p)):new t.Matrix(p)),this.attr("transform",C))}}),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(p){var b=p.trim().split("(");return[b[0],b[1].split(t.regex.delimiter).map(function(C){return parseFloat(C)})]}).reduce(function(p,b){return b[0]=="matrix"?p.multiply(k(b[1])):p[b[0]].apply(p,b[1])},new t.Matrix)},toParent:function(p){if(this==p)return this;var b=this.screenCTM(),C=p.screenCTM().inverse();return this.addTo(p).untransform().transform(C.multiply(b)),this},toDoc:function(){return this.toParent(this.doc())}}),t.Transformation=t.invent({create:function(p,b){if(arguments.length>1&&typeof b!="boolean")return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(p))for(var C=0,X=this.arguments.length;C<X;++C)this[this.arguments[C]]=p[C];else if(p&&f(p)==="object")for(C=0,X=this.arguments.length;C<X;++C)this[this.arguments[C]]=p[this.arguments[C]];this.inversed=!1,b===!0&&(this.inversed=!0)}}),t.Translate=t.invent({parent:t.Matrix,inherit:t.Transformation,create:function(p,b){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),t.extend(t.Element,{style:function(p,b){if(arguments.length==0)return this.node.style.cssText||"";if(arguments.length<2)if(f(p)==="object")for(var C in p)this.style(C,p[C]);else{if(!t.regex.isCss.test(p))return this.node.style[u(p)];for(p=p.split(/\s*;\s*/).filter(function(X){return!!X}).map(function(X){return X.split(/\s*:\s*/)});b=p.pop();)this.style(b[0],b[1])}else this.node.style[u(p)]=b===null||t.regex.isBlank.test(b)?"":b;return this}}),t.Parent=t.invent({create:function(p){this.constructor.call(this,p)},inherit:t.Element,extend:{children:function(){return t.utils.map(t.utils.filterSVGElements(this.node.childNodes),function(p){return t.adopt(p)})},add:function(p,b){return b==null?this.node.appendChild(p.node):p.node!=this.node.childNodes[b]&&this.node.insertBefore(p.node,this.node.childNodes[b]),this},put:function(p,b){return this.add(p,b),p},has:function(p){return this.index(p)>=0},index:function(p){return[].slice.call(this.node.childNodes).indexOf(p.node)},get:function(p){return t.adopt(this.node.childNodes[p])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(p,b){for(var C=this.children(),X=0,O=C.length;X<O;X++)C[X]instanceof t.Element&&p.apply(C[X],[X,C]),b&&C[X]instanceof t.Container&&C[X].each(p,b);return this},removeElement:function(p){return this.node.removeChild(p.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(p,b){return b===0||this instanceof t.Defs||this.node==t.parser.draw||(p=p||(this instanceof t.Doc?this:this.parent(t.Parent)),b=b||1/0,this.each(function(){return this instanceof t.Defs?this:this instanceof t.Parent?this.ungroup(p,b-1):this.toParent(p)}),this.node.firstChild||this.remove()),this},flatten:function(p,b){return this.ungroup(p,b)}}),t.Container=t.invent({create:function(p){this.constructor.call(this,p)},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(p){t.Element.prototype[p]=function(b){return t.on(this.node,p,b),this}}),t.listeners=[],t.handlerMap=[],t.listenerId=0,t.on=function(p,b,C,X,O){var N=C.bind(X||p.instance||p),$=(t.handlerMap.indexOf(p)+1||t.handlerMap.push(p))-1,V=b.split(".")[0],re=b.split(".")[1]||"*";t.listeners[$]=t.listeners[$]||{},t.listeners[$][V]=t.listeners[$][V]||{},t.listeners[$][V][re]=t.listeners[$][V][re]||{},C._svgjsListenerId||(C._svgjsListenerId=++t.listenerId),t.listeners[$][V][re][C._svgjsListenerId]=N,p.addEventListener(V,N,O||{passive:!1})},t.off=function(p,b,C){var X=t.handlerMap.indexOf(p),O=b&&b.split(".")[0],N=b&&b.split(".")[1],$="";if(X!=-1)if(C){if(typeof C=="function"&&(C=C._svgjsListenerId),!C)return;t.listeners[X][O]&&t.listeners[X][O][N||"*"]&&(p.removeEventListener(O,t.listeners[X][O][N||"*"][C],!1),delete t.listeners[X][O][N||"*"][C])}else if(N&&O){if(t.listeners[X][O]&&t.listeners[X][O][N]){for(var V in t.listeners[X][O][N])t.off(p,[O,N].join("."),V);delete t.listeners[X][O][N]}}else if(N)for(var re in t.listeners[X])for(var $ in t.listeners[X][re])N===$&&t.off(p,[re,N].join("."));else if(O){if(t.listeners[X][O]){for(var $ in t.listeners[X][O])t.off(p,[O,$].join("."));delete t.listeners[X][O]}}else{for(var re in t.listeners[X])t.off(p,re);delete t.listeners[X],delete t.handlerMap[X]}},t.extend(t.Element,{on:function(p,b,C,X){return t.on(this.node,p,b,C,X),this},off:function(p,b){return t.off(this.node,p,b),this},fire:function(p,b){return p instanceof z.Event?this.node.dispatchEvent(p):this.node.dispatchEvent(p=new t.CustomEvent(p,{detail:b,cancelable:!0})),this._event=p,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(p){return p==null?this.transform("x"):this.transform({x:p-this.x()},!0)}},construct:{group:function(){return this.put(new t.G)}}}),t.Doc=t.invent({create:function(p){p&&((p=typeof p=="string"?e.getElementById(p):p).nodeName=="svg"?this.constructor.call(this,p):(this.constructor.call(this,t.create("svg")),p.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 p;return this._defs||((p=this.node.getElementsByTagName("defs")[0])?this._defs=t.adopt(p):this._defs=new t.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&this.node.parentNode.nodeName!="#document"?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(p){this.writeDataToDom();var b=this.node,C=E(b.cloneNode(!0));return p?(p.node||p).appendChild(C.node):b.parentNode.insertBefore(C.node,b.nextSibling),C}}}),t.extend(t.Element,{}),t.Gradient=t.invent({create:function(p){this.constructor.call(this,t.create(p+"Gradient")),this.type=p},inherit:t.Container,extend:{at:function(p,b,C){return this.put(new t.Stop).update(p,b,C)},update:function(p){return this.clear(),typeof p=="function"&&p.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(p,b,C){return p=="transform"&&(p="gradientTransform"),t.Container.prototype.attr.call(this,p,b,C)}},construct:{gradient:function(p,b){return this.defs().gradient(p,b)}}}),t.extend(t.Gradient,t.FX,{from:function(p,b){return(this._target||this).type=="radial"?this.attr({fx:new t.Number(p),fy:new t.Number(b)}):this.attr({x1:new t.Number(p),y1:new t.Number(b)})},to:function(p,b){return(this._target||this).type=="radial"?this.attr({cx:new t.Number(p),cy:new t.Number(b)}):this.attr({x2:new t.Number(p),y2:new t.Number(b)})}}),t.extend(t.Defs,{gradient:function(p,b){return this.put(new t.Gradient(p)).update(b)}}),t.Stop=t.invent({create:"stop",inherit:t.Element,extend:{update:function(p){return(typeof p=="number"||p instanceof t.Number)&&(p={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),p.opacity!=null&&this.attr("stop-opacity",p.opacity),p.color!=null&&this.attr("stop-color",p.color),p.offset!=null&&this.attr("offset",new t.Number(p.offset)),this}}}),t.Pattern=t.invent({create:"pattern",inherit:t.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(p){return this.clear(),typeof p=="function"&&p.call(this,this),this},toString:function(){return this.fill()},attr:function(p,b,C){return p=="transform"&&(p="patternTransform"),t.Container.prototype.attr.call(this,p,b,C)}},construct:{pattern:function(p,b,C){return this.defs().pattern(p,b,C)}}}),t.extend(t.Defs,{pattern:function(p,b,C){return this.put(new t.Pattern).update(C).attr({x:0,y:0,width:p,height:b,patternUnits:"userSpaceOnUse"})}}),t.Shape=t.invent({create:function(p){this.constructor.call(this,p)},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(p,b){return this.attr("href",(b||"")+"#"+p,t.xlink)}},construct:{use:function(p,b){return this.put(new t.Use).element(p,b)}}}),t.Rect=t.invent({create:"rect",inherit:t.Shape,construct:{rect:function(p,b){return this.put(new t.Rect).size(p,b)}}}),t.Circle=t.invent({create:"circle",inherit:t.Shape,construct:{circle:function(p){return this.put(new t.Circle).rx(new t.Number(p).divide(2)).move(0,0)}}}),t.extend(t.Circle,t.FX,{rx:function(p){return this.attr("r",p)},ry:function(p){return this.rx(p)}}),t.Ellipse=t.invent({create:"ellipse",inherit:t.Shape,construct:{ellipse:function(p,b){return this.put(new t.Ellipse).size(p,b).move(0,0)}}}),t.extend(t.Ellipse,t.Rect,t.FX,{rx:function(p){return this.attr("rx",p)},ry:function(p){return this.attr("ry",p)}}),t.extend(t.Circle,t.Ellipse,{x:function(p){return p==null?this.cx()-this.rx():this.cx(p+this.rx())},y:function(p){return p==null?this.cy()-this.ry():this.cy(p+this.ry())},cx:function(p){return p==null?this.attr("cx"):this.attr("cx",p)},cy:function(p){return p==null?this.attr("cy"):this.attr("cy",p)},width:function(p){return p==null?2*this.rx():this.rx(new t.Number(p).divide(2))},height:function(p){return p==null?2*this.ry():this.ry(new t.Number(p).divide(2))},size:function(p,b){var C=x(this,p,b);return this.rx(new t.Number(C.width).divide(2)).ry(new t.Number(C.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(p,b,C,X){return p==null?this.array():(p=b!==void 0?{x1:p,y1:b,x2:C,y2:X}:new t.PointArray(p).toLine(),this.attr(p))},move:function(p,b){return this.attr(this.array().move(p,b).toLine())},size:function(p,b){var C=x(this,p,b);return this.attr(this.array().size(C.width,C.height).toLine())}},construct:{line:function(p,b,C,X){return t.Line.prototype.plot.apply(this.put(new t.Line),p!=null?[p,b,C,X]:[0,0,0,0])}}}),t.Polyline=t.invent({create:"polyline",inherit:t.Shape,construct:{polyline:function(p){return this.put(new t.Polyline).plot(p||new t.PointArray)}}}),t.Polygon=t.invent({create:"polygon",inherit:t.Shape,construct:{polygon:function(p){return this.put(new t.Polygon).plot(p||new t.PointArray)}}}),t.extend(t.Polyline,t.Polygon,{array:function(){return this._array||(this._array=new t.PointArray(this.attr("points")))},plot:function(p){return p==null?this.array():this.clear().attr("points",typeof p=="string"?p:this._array=new t.PointArray(p))},clear:function(){return delete this._array,this},move:function(p,b){return this.attr("points",this.array().move(p,b))},size:function(p,b){var C=x(this,p,b);return this.attr("points",this.array().size(C.width,C.height))}}),t.extend(t.Line,t.Polyline,t.Polygon,{morphArray:t.PointArray,x:function(p){return p==null?this.bbox().x:this.move(p,this.bbox().y)},y:function(p){return p==null?this.bbox().y:this.move(this.bbox().x,p)},width:function(p){var b=this.bbox();return p==null?b.width:this.size(p,b.height)},height:function(p){var b=this.bbox();return p==null?b.height:this.size(b.width,p)}}),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(p){return p==null?this.array():this.clear().attr("d",typeof p=="string"?p:this._array=new t.PathArray(p))},clear:function(){return delete this._array,this}},construct:{path:function(p){return this.put(new t.Path).plot(p||new t.PathArray)}}}),t.Image=t.invent({create:"image",inherit:t.Shape,extend:{load:function(p){if(!p)return this;var b=this,C=new z.Image;return t.on(C,"load",function(){t.off(C);var X=b.parent(t.Pattern);X!==null&&(b.width()==0&&b.height()==0&&b.size(C.width,C.height),X&&X.width()==0&&X.height()==0&&X.size(b.width(),b.height()),typeof b._loaded=="function"&&b._loaded.call(b,{width:C.width,height:C.height,ratio:C.width/C.height,url:p}))}),t.on(C,"error",function(X){t.off(C),typeof b._error=="function"&&b._error.call(b,X)}),this.attr("href",C.src=this.src=p,t.xlink)},loaded:function(p){return this._loaded=p,this},error:function(p){return this._error=p,this}},construct:{image:function(p,b,C){return this.put(new t.Image).load(p).size(b||0,C||b||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(p){return p==null?this.attr("x"):this.attr("x",p)},text:function(p){if(p===void 0){p="";for(var b=this.node.childNodes,C=0,X=b.length;C<X;++C)C!=0&&b[C].nodeType!=3&&t.adopt(b[C]).dom.newLined==1&&(p+=` `),p+=b[C].textContent;return p}if(this.clear().build(!0),typeof p=="function")p.call(this,this);else{C=0;for(var O=(p=p.split(` `)).length;C<O;C++)this.tspan(p[C]).newLine()}return this.build(!1).rebuild()},size:function(p){return this.attr("font-size",p).rebuild()},leading:function(p){return p==null?this.dom.leading:(this.dom.leading=new t.Number(p),this.rebuild())},lines:function(){var p=(this.textPath&&this.textPath()||this).node,b=t.utils.map(t.utils.filterSVGElements(p.childNodes),function(C){return t.adopt(C)});return new t.Set(b)},rebuild:function(p){if(typeof p=="boolean"&&(this._rebuild=p),this._rebuild){var b=this,C=0,X=this.dom.leading*new t.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(b.textPath()||this.attr("x",b.attr("x")),this.text()==` `?C+=X:(this.attr("dy",X+C),C=0))}),this.fire("rebuild")}return this},build:function(p){return this._build=!!p,this},setData:function(p){return this.dom=p,this.dom.leading=new t.Number(p.leading||1.3),this}},construct:{text:function(p){return this.put(new t.Text).text(p)},plain:function(p){return this.put(new t.Text).plain(p)}}}),t.Tspan=t.invent({create:"tspan",inherit:t.Shape,extend:{text:function(p){return p==null?this.node.textContent+(this.dom.newLined?` `:""):(typeof p=="function"?p.call(this,this):this.plain(p),this)},dx:function(p){return this.attr("dx",p)},dy:function(p){return this.attr("dy",p)},newLine:function(){var p=this.parent(t.Text);return this.dom.newLined=!0,this.dy(p.dom.leading*p.attr("font-size")).attr("x",p.x())}}}),t.extend(t.Text,t.Tspan,{plain:function(p){return this._build===!1&&this.clear(),this.node.appendChild(e.createTextNode(p)),this},tspan:function(p){var b=(this.textPath&&this.textPath()||this).node,C=new t.Tspan;return this._build===!1&&this.clear(),b.appendChild(C.node),C.text(p)},clear:function(){for(var p=(this.textPath&&this.textPath()||this).node;p.hasChildNodes();)p.removeChild(p.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 p=this.track();return p?p.array():null},plot:function(p){var b=this.track(),C=null;return b&&(C=b.plot(p)),p==null?C:this},track:function(){var p=this.textPath();if(p)return p.reference("href")},textPath:function(){if(this.node.firstChild&&this.node.firstChild.nodeName=="textPath")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 c={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(p,b){return b=="color"?p:p+"-"+b}};function h(p,b,C,X){return C+X.replace(t.regex.dots," .")}function u(p){return p.toLowerCase().replace(/-(.)/g,function(b,C){return C.toUpperCase()})}function m(p){return p.charAt(0).toUpperCase()+p.slice(1)}function v(p){var b=p.toString(16);return b.length==1?"0"+b:b}function x(p,b,C){if(b==null||C==null){var X=p.bbox();b==null?b=X.width/X.height*C:C==null&&(C=X.height/X.width*b)}return{width:b,height:C}}function w(p,b,C){return{x:b*p.a+C*p.c+0,y:b*p.b+C*p.d+0}}function k(p){return{a:p[0],b:p[1],c:p[2],d:p[3],e:p[4],f:p[5]}}function E(p){for(var b=p.childNodes.length-1;b>=0;b--)p.childNodes[b]instanceof z.SVGElement&&E(p.childNodes[b]);return t.adopt(p).id(t.eid(p.nodeName))}function L(p){return Math.abs(p)>1e-37?p:0}["fill","stroke"].forEach(function(p){var b={};b[p]=function(C){if(C===void 0)return this;if(typeof C=="string"||t.Color.isRgb(C)||C&&typeof C.fill=="function")this.attr(p,C);else for(var X=c[p].length-1;X>=0;X--)C[c[p][X]]!=null&&this.attr(c.prefix(p,c[p][X]),C[c[p][X]]);return this},t.extend(t.Element,t.FX,b)}),t.extend(t.Element,t.FX,{translate:function(p,b){return this.transform({x:p,y:b})},matrix:function(p){return this.attr("transform",new t.Matrix(arguments.length==6?[].slice.call(arguments):p))},opacity:function(p){return this.attr("opacity",p)},dx:function(p){return this.x(new t.Number(p).plus(this instanceof t.FX?0:this.x()),!0)},dy:function(p){return this.y(new t.Number(p).plus(this instanceof t.FX?0:this.y()),!0)}}),t.extend(t.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(p){return this.node.getPointAtLength(p)}}),t.Set=t.invent({create:function(p){Array.isArray(p)?this.members=p:this.clear()},extend:{add:function(){for(var p=[].slice.call(arguments),b=0,C=p.length;b<C;b++)this.members.push(p[b]);return this},remove:function(p){var b=this.index(p);return b>-1&&this.members.splice(b,1),this},each:function(p){for(var b=0,C=this.members.length;b<C;b++)p.apply(this.members[b],[b,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(p){return this.index(p)>=0},index:function(p){return this.members.indexOf(p)},get:function(p){return this.members[p]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(p){return new t.Set(p)}}}),t.FX.Set=t.invent({create:function(p){this.set=p}}),t.Set.inherit=function(){var p=[];for(var b in t.Shape.prototype)typeof t.Shape.prototype[b]=="function"&&typeof t.Set.prototype[b]!="function"&&p.push(b);for(var b in p.forEach(function(X){t.Set.prototype[X]=function(){for(var O=0,N=this.members.length;O<N;O++)this.members[O]&&typeof this.members[O][X]=="function"&&this.members[O][X].apply(this.members[O],arguments);return X=="animate"?this.fx||(this.fx=new t.FX.Set(this)):this}}),p=[],t.FX.prototype)typeof t.FX.prototype[b]=="function"&&typeof t.FX.Set.prototype[b]!="function"&&p.push(b);p.forEach(function(C){t.FX.Set.prototype[C]=function(){for(var X=0,O=this.set.members.length;X<O;X++)this.set.members[X].fx[C].apply(this.set.members[X].fx,arguments);return this}})},t.extend(t.Element,{}),t.extend(t.Element,{remember:function(p,b){if(f(arguments[0])==="object")for(var C in p)this.remember(C,p[C]);else{if(arguments.length==1)return this.memory()[p];this.memory()[p]=b}return this},forget:function(){if(arguments.length==0)this._memory={};else for(var p=arguments.length-1;p>=0;p--)delete this.memory()[arguments[p]];return this},memory:function(){return this._memory||(this._memory={})}}),t.get=function(p){var b=e.getElementById(function(C){var X=(C||"").toString().match(t.regex.reference);if(X)return X[1]}(p)||p);return t.adopt(b)},t.select=function(p,b){return new t.Set(t.utils.map((b||e).querySelectorAll(p),function(C){return t.adopt(C)}))},t.extend(t.Parent,{select:function(p){return t.select(p,this.node)}});var I="abcdef".split("");if(typeof z.CustomEvent!="function"){var D=function(p,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var C=e.createEvent("CustomEvent");return C.initCustomEvent(p,b.bubbles,b.cancelable,b.detail),C};D.prototype=z.Event.prototype,t.CustomEvent=D}else t.CustomEvent=z.CustomEvent;return t},f(i)==="object"?s.exports=jt.document?Ki(jt,jt.document):function(z){return Ki(z,z.document)}:jt.SVG=Ki(jt,jt.document),(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(n,c){return this.add(n,c),!n.attr("in")&&this.autoSetIn&&n.attr("in",this.source),n.attr("result")||n.attr("result",n),n},blend:function(n,c,h){return this.put(new SVG.BlendEffect(n,c,h))},colorMatrix:function(n,c){return this.put(new SVG.ColorMatrixEffect(n,c))},convolveMatrix:function(n){return this.put(new SVG.ConvolveMatrixEffect(n))},componentTransfer:function(n){return this.put(new SVG.ComponentTransferEffect(n))},composite:function(n,c,h){return this.put(new SVG.CompositeEffect(n,c,h))},flood:function(n,c){return this.put(new SVG.FloodEffect(n,c))},offset:function(n,c){return this.put(new SVG.OffsetEffect(n,c))},image:function(n){return this.put(new SVG.ImageEffect(n))},merge:function(){var n=[void 0];for(var c in arguments)n.push(arguments[c]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,n)))},gaussianBlur:function(n,c){return this.put(new SVG.GaussianBlurEffect(n,c))},morphology:function(n,c){return this.put(new SVG.MorphologyEffect(n,c))},diffuseLighting:function(n,c,h){return this.put(new SVG.DiffuseLightingEffect(n,c,h))},displacementMap:function(n,c,h,u,m){return this.put(new SVG.DisplacementMapEffect(n,c,h,u,m))},specularLighting:function(n,c,h,u){return this.put(new SVG.SpecularLightingEffect(n,c,h,u))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(n,c,h,u,m){return this.put(new SVG.TurbulenceEffect(n,c,h,u,m))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(n){var c=this.put(new SVG.Filter);return typeof n=="function"&&n.call(c,c),c}}),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&&n===!0&&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 n==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return n==null?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 n==null?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",n)},result:function(n){return n==null?this.attr("result"):this.attr("result",n)},toString:function(){return this.result()}}});var z={blend:function(n,c){return this.parent()&&this.parent().blend(this,n,c)},colorMatrix:function(n,c){return this.parent()&&this.parent().colorMatrix(n,c).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,c){return this.parent()&&this.parent().composite(this,n,c)},flood:function(n,c){return this.parent()&&this.parent().flood(n,c)},offset:function(n,c){return this.parent()&&this.parent().offset(n,c).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,c){return this.parent()&&this.parent().gaussianBlur(n,c).in(this)},morphology:function(n,c){return this.parent()&&this.parent().morphology(n,c).in(this)},diffuseLighting:function(n,c,h){return this.parent()&&this.parent().diffuseLighting(n,c,h).in(this)},displacementMap:function(n,c,h,u){return this.parent()&&this.parent().displacementMap(this,n,c,h,u)},specularLighting:function(n,c,h,u){return this.parent()&&this.parent().specularLighting(n,c,h,u).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(n,c,h,u,m){return this.parent()&&this.parent().turbulence(n,c,h,u,m).in(this)}};SVG.extend(SVG.Effect,z),SVG.extend(SVG.ParentEffect,z),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,c,h){this.attr({in:n,in2:c,mode:h||"normal"})},colorMatrix:function(n,c){n=="matrix"&&(c=r(c)),this.attr({type:n,values:c===void 0?null:c})},convolveMatrix:function(n){n=r(n),this.attr({order:Math.sqrt(n.split(" ").length),kernelMatrix:n})},composite:function(n,c,h){this.attr({in:n,in2:c,operator:h})},flood:function(n,c){this.attr("flood-color",n),c!=null&&this.attr("flood-opacity",c)},offset:function(n,c){this.attr({dx:n,dy:c})},image:function(n){this.attr("href",n,SVG.xlink)},displacementMap:function(n,c,h,u,m){this.attr({in:n,in2:c,scale:h,xChannelSelector:u,yChannelSelector:m})},gaussianBlur:function(n,c){n!=null||c!=null?this.attr("stdDeviation",function(h){if(!Array.isArray(h))return h;for(var u=0,m=h.length,v=[];u<m;u++)v.push(h[u]);return v.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(n,c){this.attr({operator:n,radius:c})},tile:function(){},turbulence:function(n,c,h,u,m){this.attr({numOctaves:c,seed:h,stitchTiles:u,baseFrequency:n,type:m})}},t={merge:function(){var n;if(arguments[0]instanceof SVG.Set){var c=this;arguments[0].each(function(u){this instanceof SVG.MergeNode?c.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&c.put(new SVG.MergeNode(this))})}else{n=Array.isArray(arguments[0])?arguments[0]:arguments;for(var h=0;h<n.length;h++)n[h]instanceof SVG.MergeNode?this.put(n[h]):this.put(new SVG.MergeNode(n[h]))}},componentTransfer:function(n){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(h){this[h]=new SVG["Func"+h.toUpperCase()]("identity"),this.rgb.add(this[h]),this.node.appendChild(this[h].node)}).bind(this)),n)for(var c in n.rgb&&(["r","g","b"].forEach((function(h){this[h].attr(n.rgb)}).bind(this)),delete n.rgb),n)this[c].attr(n[c])},diffuseLighting:function(n,c,h){this.attr({surfaceScale:n,diffuseConstant:c,kernelUnitLength:h})},specularLighting:function(n,c,h,u){this.attr({surfaceScale:n,diffuseConstant:c,specularExponent:h,kernelUnitLength:u})}},a={distantLight:function(n,c){this.attr({azimuth:n,elevation:c})},pointLight:function(n,c,h){this.attr({x:n,y:c,z:h})},spotLight:function(n,c,h,u,m,v){this.attr({x:n,y:c,z:h,pointsAtX:u,pointsAtY:m,pointsAtZ:v})},mergeNode:function(n){this.attr("in",n)}};function r(n){return Array.isArray(n)&&(n=new SVG.Array(n)),n.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function o(){var n=function(){};for(var c in typeof arguments[arguments.length-1]=="function"&&(n=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var h in arguments[c])n(arguments[c][h],h,arguments[c])}["r","g","b","a"].forEach(function(n){a["Func"+n.toUpperCase()]=function(c){switch(this.attr("type",c),c){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])}}}),o(e,function(n,c){var h=c.charAt(0).toUpperCase()+c.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),o(t,function(n,c){var h=c.charAt(0).toUpperCase()+c.slice(1);SVG[h+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),n.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),o(a,function(n,c){var h=c.charAt(0).toUpperCase()+c.slice(1);SVG[h]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+h)),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 n==null?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 z(o,n,c,h,u,m,v){for(var x=o.slice(n,c||v),w=h.slice(u,m||v),k=0,E={pos:[0,0],start:[0,0]},L={pos:[0,0],start:[0,0]};x[k]=e.call(E,x[k]),w[k]=e.call(L,w[k]),x[k][0]!=w[k][0]||x[k][0]=="M"||x[k][0]=="A"&&(x[k][4]!=w[k][4]||x[k][5]!=w[k][5])?(Array.prototype.splice.apply(x,[k,1].concat(a.call(E,x[k]))),Array.prototype.splice.apply(w,[k,1].concat(a.call(L,w[k])))):(x[k]=t.call(E,x[k]),w[k]=t.call(L,w[k])),!(++k==x.length&&k==w.length);)k==x.length&&x.push(["C",E.pos[0],E.pos[1],E.pos[0],E.pos[1],E.pos[0],E.pos[1]]),k==w.length&&w.push(["C",L.pos[0],L.pos[1],L.pos[0],L.pos[1],L.pos[0],L.pos[1]]);return{start:x,dest:w}}function e(o){switch(o[0]){case"z":case"Z":o[0]="L",o[1]=this.start[0],o[2]=this.start[1];break;case"H":o[0]="L",o[2]=this.pos[1];break;case"V":o[0]="L",o[2]=o[1],o[1]=this.pos[0];break;case"T":o[0]="Q",o[3]=o[1],o[4]=o[2],o[1]=this.reflection[1],o[2]=this.reflection[0];break;case"S":o[0]="C",o[6]=o[4],o[5]=o[3],o[4]=o[2],o[3]=o[1],o[2]=this.reflection[1],o[1]=this.reflection[0]}return o}function t(o){var n=o.length;return this.pos=[o[n-2],o[n-1]],"SCQT".indexOf(o[0])!=-1&&(this.reflection=[2*this.pos[0]-o[n-4],2*this.pos[1]-o[n-3]]),o}function a(o){var n=[o];switch(o[0]){case"M":return this.pos=this.start=[o[1],o[2]],n;case"L":o[5]=o[3]=o[1],o[6]=o[4]=o[2],o[1]=this.pos[0],o[2]=this.pos[1];break;case"Q":o[6]=o[4],o[5]=o[3],o[4]=1*o[4]/3+2*o[2]/3,o[3]=1*o[3]/3+2*o[1]/3,o[2]=1*this.pos[1]/3+2*o[2]/3,o[1]=1*this.pos[0]/3+2*o[1]/3;break;case"A":n=function(c,h){var u,m,v,x,w,k,E,L,I,D,p,b,C,X,O,N,$,V,re,ie,ae,ce,me,xe,we,be,Se=Math.abs(h[1]),_e=Math.abs(h[2]),ke=h[3]%360,Re=h[4],Fe=h[5],ze=h[6],ht=h[7],Pe=new SVG.Point(c),Me=new SVG.Point(ze,ht),Ie=[];if(Se===0||_e===0||Pe.x===Me.x&&Pe.y===Me.y)return[["C",Pe.x,Pe.y,Me.x,Me.y,Me.x,Me.y]];for(u=new SVG.Point((Pe.x-Me.x)/2,(Pe.y-Me.y)/2).transform(new SVG.Matrix().rotate(ke)),(m=u.x*u.x/(Se*Se)+u.y*u.y/(_e*_e))>1&&(Se*=m=Math.sqrt(m),_e*=m),v=new SVG.Matrix().rotate(ke).scale(1/Se,1/_e).rotate(-ke),Pe=Pe.transform(v),Me=Me.transform(v),x=[Me.x-Pe.x,Me.y-Pe.y],k=x[0]*x[0]+x[1]*x[1],w=Math.sqrt(k),x[0]/=w,x[1]/=w,E=k<4?Math.sqrt(1-k/4):0,Re===Fe&&(E*=-1),L=new SVG.Point((Me.x+Pe.x)/2+E*-x[1],(Me.y+Pe.y)/2+E*x[0]),I=new SVG.Point(Pe.x-L.x,Pe.y-L.y),D=new SVG.Point(Me.x-L.x,Me.y-L.y),p=Math.acos(I.x/Math.sqrt(I.x*I.x+I.y*I.y)),I.y<0&&(p*=-1),b=Math.acos(D.x/Math.sqrt(D.x*D.x+D.y*D.y)),D.y<0&&(b*=-1),Fe&&p>b&&(b+=2*Math.PI),!Fe&&p<b&&(b-=2*Math.PI),X=Math.ceil(2*Math.abs(p-b)/Math.PI),N=[],$=p,C=(b-p)/X,O=4*Math.tan(C/4)/3,ae=0;ae<=X;ae++)re=Math.cos($),V=Math.sin($),ie=new SVG.Point(L.x+re,L.y+V),N[ae]=[new SVG.Point(ie.x+O*V,ie.y-O*re),ie,new SVG.Point(ie.x-O*V,ie.y+O*re)],$+=C;for(N[0][0]=N[0][1].clone(),N[N.length-1][2]=N[N.length-1][1].clone(),v=new SVG.Matrix().rotate(ke).scale(Se,_e).rotate(-ke),ae=0,ce=N.length;ae<ce;ae++)N[ae][0]=N[ae][0].transform(v),N[ae][1]=N[ae][1].transform(v),N[ae][2]=N[ae][2].transform(v);for(ae=1,ce=N.length;ae<ce;ae++)me=(ie=N[ae-1][2]).x,xe=ie.y,we=(ie=N[ae][0]).x,be=ie.y,ze=(ie=N[ae][1]).x,ht=ie.y,Ie.push(["C",me,xe,we,be,ze,ht]);return Ie}(this.pos,o),o=n[0]}return o[0]="C",this.pos=[o[5],o[6]],this.reflection=[2*o[5]-o[3],2*o[6]-o[4]],n}function r(o,n){if(n===!1)return!1;for(var c=n,h=o.length;c<h;++c)if(o[c][0]=="M")return c;return!1}SVG.extend(SVG.PathArray,{morph:function(o){for(var n=this.value,c=this.parse(o),h=0,u=0,m=!1,v=!1;h!==!1||u!==!1;){var x;m=r(n,h!==!1&&h+1),v=r(c,u!==!1&&u+1),h===!1&&(h=(x=new SVG.PathArray(w.start).bbox()).height==0||x.width==0?n.push(n[0])-1:n.push(["M",x.x+x.width/2,x.y+x.height/2])-1),u===!1&&(u=(x=new SVG.PathArray(w.dest).bbox()).height==0||x.width==0?c.push(c[0])-1:c.push(["M",x.x+x.width/2,x.y+x.height/2])-1);var w=z(n,h,m,c,u,v);n=n.slice(0,h).concat(w.start,m===!1?[]:n.slice(m)),c=c.slice(0,u).concat(w.dest,v===!1?[]:c.slice(v)),h=m!==!1&&h+w.start.length,u=v!==!1&&u+w.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=c,this}})}(),(function(){function z(e){e.remember("_draggable",this),this.el=e}z.prototype.init=function(e,t){var a=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",function(r){a.start(r)}),this.el.on("touchstart.drag",function(r){a.start(r)})},z.prototype.transformPoint=function(e,t){var a=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=a.clientX-(t||0),this.p.y=a.clientY,this.p.matrixTransform(this.m)},z.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},z.prototype.start=function(e){if(e.type!="click"&&e.type!="mousedown"&&e.type!="mousemove"||(e.which||e.buttons)==1){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 a,r=this.getBBox();if(this.el instanceof SVG.Text)switch(a=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":a/=2;break;case"start":a=0}this.startPoints={point:this.transformPoint(e,a),box:r,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(o){t.drag(o)}),SVG.on(window,"touchmove.drag",function(o){t.drag(o)}),SVG.on(window,"mouseup.drag",function(o){t.end(o)}),SVG.on(window,"touchend.drag",function(o){t.end(o)}),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},z.prototype.drag=function(e){var t=this.getBBox(),a=this.transformPoint(e),r=this.startPoints.box.x+a.x-this.startPoints.point.x,o=this.startPoints.box.y+a.y-this.startPoints.point.y,n=this.constraint,c=a.x-this.startPoints.point.x,h=a.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:a,m:this.m,handler:this}),this.el.event().defaultPrevented)return a;if(typeof n=="function"){var u=n.call(this.el,r,o,this.m);typeof u=="boolean"&&(u={x:u,y:u}),u.x===!0?this.el.x(r):u.x!==!1&&this.el.x(u.x),u.y===!0?this.el.y(o):u.y!==!1&&this.el.y(u.y)}else typeof n=="object"&&(n.minX!=null&&r<n.minX?c=(r=n.minX)-this.startPoints.box.x:n.maxX!=null&&r>n.maxX-t.width&&(c=(r=n.maxX-t.width)-this.startPoints.box.x),n.minY!=null&&o<n.minY?h=(o=n.minY)-this.startPoints.box.y:n.maxY!=null&&o>n.maxY-t.height&&(h=(o=n.maxY-t.height)-this.startPoints.box.y),n.snapToGrid!=null&&(r-=r%n.snapToGrid,o-=o%n.snapToGrid,c-=c%n.snapToGrid,h-=h%n.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:c,y:h},!0):this.el.move(r,o));return a},z.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){typeof e!="function"&&typeof e!="object"||(t=e,e=!0);var a=this.remember("_draggable")||new z(this);return(e=e===void 0||e)?a.init(t||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function z(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,a,r){var o=typeof t!="string"?t:a[t];return r?o/2:o},this.pointCoords=function(t,a){var r=this.pointsList[t];return{x:this.pointCoord(r[0],a,t==="t"||t==="b"),y:this.pointCoord(r[1],a,t==="r"||t==="l")}}}z.prototype.init=function(e,t){var a=this.el.bbox();this.options={};var r=this.el.selectize.defaults.points;for(var o in this.el.selectize.defaults)this.options[o]=this.el.selectize.defaults[o],t[o]!==void 0&&(this.options[o]=t[o]);var n=["points","pointsExclude"];for(var o in n){var c=this.options[n[o]];typeof c=="string"?c=c.length>0?c.split(/\s*,\s*/i):[]:typeof c=="boolean"&&n[o]==="points"&&(c=c?r:[]),this.options[n[o]]=c}this.options.points=[r,this.options.points].reduce(function(h,u){return h.filter(function(m){return u.indexOf(m)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(h,u){return h.filter(function(m){return u.indexOf(m)<0})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(a.x,a.y)),this.options.deepSelect&&["line","polyline","polygon"].indexOf(this.el.type)!==-1?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},z.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},z.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]})},z.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),a=0,r=t.length;a<r;++a){var o=function(c){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var u=h.pageX||h.touches[0].pageX,m=h.pageY||h.touches[0].pageY;e.el.fire("point",{x:u,y:m,i:c,event:h})}}(a),n=this.drawPoint(t[a][0],t[a][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",o).on("mousedown",o);this.pointSelection.set.add(n)}},z.prototype.drawPoint=function(e,t){var a=this.options.pointType;switch(a){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if(typeof a=="function")return a.call(this,e,t);throw new Error("Unknown "+a+" point type!")}},z.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},z.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},z.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])})},z.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(r,o){var n=e.pointCoords(r,t);e.rectSelection.set.get(o+1).center(n.x,n.y)}),this.options.rotationPoint){var a=this.rectSelection.set.length();this.rectSelection.set.get(a-1).center(t.width/2,20)}},z.prototype.selectRect=function(e){var t=this,a=this.el.bbox();function r(c){return function(h){(h=h||window.event).preventDefault?h.preventDefault():h.returnValue=!1,h.stopPropagation();var u=h.pageX||h.touches[0].pageX,m=h.pageY||h.touches[0].pageY;t.el.fire(c,{x:u,y:m,event:h})}}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(a.width,a.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map(function(c,h){var u=t.pointCoords(c,a),m=t.drawPoint(u.x,u.y).attr("class",t.options.classPoints+"_"+c).on("mousedown",r(c)).on("touchstart",r(c));t.rectSelection.set.add(m)}),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 o=function(c){(c=c||window.event).preventDefault?c.preventDefault():c.returnValue=!1,c.stopPropagation();var h=c.pageX||c.touches[0].pageX,u=c.pageY||c.touches[0].pageY;t.el.fire("rot",{x:h,y:u,event:c})},n=this.drawPoint(a.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",o).on("mousedown",o);this.rectSelection.set.add(n)}},z.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()},z.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()})},z.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 typeof e=="object"&&(t=e,e=!0),(this.remember("_selectHandler")||new z(this)).init(e===void 0||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 z(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}z.prototype.transformPoint=function(e,t,a){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(a||this.m)},z.prototype._extractPosition=function(e){return{x:e.clientX!=null?e.clientX:e.touches[0].clientX,y:e.clientY!=null?e.clientY:e.touches[0].clientY}},z.prototype.init=function(e){var t=this;if(this.stop(),e!=="stop"){for(var a in this.options={},this.el.resize.defaults)this.options[a]=this.el.resize.defaults[a],e[a]!==void 0&&(this.options[a]=e[a]);this.el.on("lt.resize",function(r){t.resize(r||window.event)}),this.el.on("rt.resize",function(r){t.resize(r||window.event)}),this.el.on("rb.resize",function(r){t.resize(r||window.event)}),this.el.on("lb.resize",function(r){t.resize(r||window.event)}),this.el.on("t.resize",function(r){t.resize(r||window.event)}),this.el.on("r.resize",function(r){t.resize(r||window.event)}),this.el.on("b.resize",function(r){t.resize(r||window.event)}),this.el.on("l.resize",function(r){t.resize(r||window.event)}),this.el.on("rot.resize",function(r){t.resize(r||window.event)}),this.el.on("point.resize",function(r){t.resize(r||window.event)}),this.update()}},z.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},z.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var a=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(a.x,a.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},this.el.type==="text"&&(this.parameters.fontSize=this.el.attr()["font-size"]),e.detail.i!==void 0){var r=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[r[e.detail.i][0],r[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(o,n){var c=this.snapToGrid(o,n);if(this.parameters.box.width-c[0]>0&&this.parameters.box.height-c[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+c[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-c[0]);c=this.checkAspectRatio(c),this.el.move(this.parameters.box.x+c[0],this.parameters.box.y+c[1]).size(this.parameters.box.width-c[0],this.parameters.box.height-c[1])}};break;case"rt":this.calc=function(o,n){var c=this.snapToGrid(o,n,2);if(this.parameters.box.width+c[0]>0&&this.parameters.box.height-c[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-c[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+c[0]);c=this.checkAspectRatio(c,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+c[1]).size(this.parameters.box.width+c[0],this.parameters.box.height-c[1])}};break;case"rb":this.calc=function(o,n){var c=this.snapToGrid(o,n,0);if(this.parameters.box.width+c[0]>0&&this.parameters.box.height+c[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x-c[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+c[0]);c=this.checkAspectRatio(c),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+c[0],this.parameters.box.height+c[1])}};break;case"lb":this.calc=function(o,n){var c=this.snapToGrid(o,n,1);if(this.parameters.box.width-c[0]>0&&this.parameters.box.height+c[1]>0){if(this.parameters.type==="text")return this.el.move(this.parameters.box.x+c[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-c[0]);c=this.checkAspectRatio(c,!0),this.el.move(this.parameters.box.x+c[0],this.parameters.box.y).size(this.parameters.box.width-c[0],this.parameters.box.height+c[1])}};break;case"t":this.calc=function(o,n){var c=this.snapToGrid(o,n,2);if(this.parameters.box.height-c[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y+c[1]).height(this.parameters.box.height-c[1])}};break;case"r":this.calc=function(o,n){var c=this.snapToGrid(o,n,0);if(this.parameters.box.width+c[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+c[0])}};break;case"b":this.calc=function(o,n){var c=this.snapToGrid(o,n,0);if(this.parameters.box.height+c[1]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+c[1])}};break;case"l":this.calc=function(o,n){var c=this.snapToGrid(o,n,1);if(this.parameters.box.width-c[0]>0){if(this.parameters.type==="text")return;this.el.move(this.parameters.box.x+c[0],this.parameters.box.y).width(this.parameters.box.width-c[0])}};break;case"rot":this.calc=function(o,n){var c=o+this.parameters.p.x,h=n+this.parameters.p.y,u=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),m=Math.atan2(h-this.parameters.box.y-this.parameters.box.height/2,c-this.parameters.box.x-this.parameters.box.width/2),v=this.parameters.rotation+180*(m-u)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(v-v%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(o,n){var c=this.snapToGrid(o,n,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),h=this.el.array().valueOf();h[this.parameters.i][0]=this.parameters.pointCoords[0]+c[0],h[this.parameters.i][1]=this.parameters.pointCoords[1]+c[1],this.el.plot(h)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(o){t.update(o||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(o){t.update(o||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},z.prototype.update=function(e){if(e){var t=this._extractPosition(e),a=this.transformPoint(t.x,t.y),r=a.x-this.parameters.p.x,o=a.y-this.parameters.p.y;this.lastUpdateCall=[r,o],this.calc(r,o),this.el.fire("resizing",{dx:r,dy:o,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},z.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")},z.prototype.snapToGrid=function(e,t,a,r){var o;return r!==void 0?o=[(a+e)%this.options.snapToGrid,(r+t)%this.options.snapToGrid]:(a=a??3,o=[(this.parameters.box.x+e+(1&a?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&a?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(o[0]-=this.options.snapToGrid),t<0&&(o[1]-=this.options.snapToGrid),e-=Math.abs(o[0])<this.options.snapToGrid/2?o[0]:o[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(o[1])<this.options.snapToGrid/2?o[1]:o[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,a,r)},z.prototype.constraintToBox=function(e,t,a,r){var o,n,c=this.options.constraint||{};return r!==void 0?(o=a,n=r):(o=this.parameters.box.x+(1&a?0:this.parameters.box.width),n=this.parameters.box.y+(2&a?0:this.parameters.box.height)),c.minX!==void 0&&o+e<c.minX&&(e=c.minX-o),c.maxX!==void 0&&o+e>c.maxX&&(e=c.maxX-o),c.minY!==void 0&&n+t<c.minY&&(t=c.minY-n),c.maxY!==void 0&&n+t>c.maxY&&(t=c.maxY-n),[e,t]},z.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var a=e.slice(),r=this.parameters.box.width/this.parameters.box.height,o=this.parameters.box.width+e[0],n=this.parameters.box.height-e[1],c=o/n;return c<r?(a[1]=o/r-this.parameters.box.height,t&&(a[1]=-a[1])):c>r&&(a[0]=this.parameters.box.width-n*r,t&&(a[0]=-a[0])),a},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new z(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),window.Apex===void 0&&(window.Apex={});var Or=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{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 B(this.ctx),this.ctx.axes=new wt(this.ctx),this.ctx.core=new Yl(this.ctx.el,this.ctx),this.ctx.config=new ye({}),this.ctx.data=new Be(this.ctx),this.ctx.grid=new Ue(this.ctx),this.ctx.graphics=new j(this.ctx),this.ctx.coreUtils=new U(this.ctx),this.ctx.crosshairs=new St(this.ctx),this.ctx.events=new di(this.ctx),this.ctx.exports=new Je(this.ctx),this.ctx.localization=new yt(this.ctx),this.ctx.options=new de,this.ctx.responsive=new Wt(this.ctx),this.ctx.series=new Le(this.ctx),this.ctx.theme=new Qe(this.ctx),this.ctx.formatters=new ee(this.ctx),this.ctx.titleSubtitle=new pt(this.ctx),this.ctx.legend=new Ai(this.ctx),this.ctx.toolbar=new Er(this.ctx),this.ctx.tooltip=new _r(this.ctx),this.ctx.dimensions=new Vt(this.ctx),this.ctx.updateHelpers=new Fl(this.ctx),this.ctx.zoomPanSelection=new wl(this.ctx),this.ctx.w.globals.tooltip=new _r(this.ctx)}}]),z}(),Dr=function(){function z(e){g(this,z),this.ctx=e,this.w=e.w}return y(z,[{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,a){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,a=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!a&&(r.parentNode.parentNode.style.minHeight="unset");var o=this.w.globals.dom.baseEl;o&&this.ctx.eventList.forEach(function(c){o.removeEventListener(c,t.ctx.events.documentEvent)});var n=this.w.globals.dom;if(this.ctx.el!==null)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}}]),z}(),Ua=new WeakMap,Nl=function(){function z(e,t){g(this,z),this.opts=t,this.ctx=this,this.w=new pe(t).init(),this.el=e,this.w.globals.cuid=P.randomId(),this.w.globals.chartID=this.w.config.chart.id?P.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Or(this).initModules(),this.create=P.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return y(z,[{key:"render",value:function(){var e=this;return new Promise(function(t,a){if(e.el!==null){Apex._chartInstances===void 0&&(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 r=e.w.config.chart.events.beforeMount;typeof r=="function"&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(x,w){var k=!1;if(x.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var E=x.getBoundingClientRect();x.style.display!=="none"&&E.width!==0||(k=!0)}var L=new ResizeObserver(function(I){k&&w.call(x,I),k=!0});x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(x.children).forEach(function(I){return L.observe(I)}):L.observe(x),Ua.set(w,L)}(e.el.parentNode,e.parentResizeHandler);var o=e.el.getRootNode&&e.el.getRootNode(),n=P.is("ShadowRoot",o),c=e.el.ownerDocument,h=n?o.getElementById("apexcharts-css"):c.getElementById("apexcharts-css");if(!h){var u;(h=document.createElement("style")).id="apexcharts-css",h.textContent=`@keyframes opaque { 0% { opacity: 0 } to { opacity: 1 } } @keyframes resizeanim { 0%,to { opacity: 0 } } .apexcharts-canvas { position: relative; user-select: none } .apexcharts-canvas ::-webkit-scrollbar { -webkit-appearance: none; width: 6px } .apexcharts-canvas ::-webkit-scrollbar-thumb { border-radius: 4px; background-color: rgba(0,0,0,.5); box-shadow: 0 0 1px rgba(255,255,255,.5); -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5) } .apexcharts-inner { position: relative } .apexcharts-text tspan { font-family: inherit } .legend-mouseover-inactive { transition: .15s ease all; opacity: .2 } .apexcharts-legend-text { padding-left: 15px; margin-left: -15px; } .apexcharts-series-collapsed { opacity: 0 } .apexcharts-tooltip { border-radius: 5px; box-shadow: 2px 2px 6px -4px #999; cursor: default; font-size: 14px; left: 62px; opacity: 0; pointer-events: none; position: absolute; top: 20px; display: flex; flex-direction: column; overflow: hidden; white-space: nowrap; z-index: 12; transition: .15s ease all } .apexcharts-tooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-tooltip.apexcharts-theme-light { border: 1px solid #e3e3e3; background: rgba(255,255,255,.96) } .apexcharts-tooltip.apexcharts-theme-dark { color: #fff; background: rgba(30,30,30,.8) } .apexcharts-tooltip * { font-family: inherit } .apexcharts-tooltip-title { padding: 6px; font-size: 15px; margin-bottom: 4px } .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title { background: #eceff1; border-bottom: 1px solid #ddd } .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title { background: rgba(0,0,0,.7); border-bottom: 1px solid #333 } .apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value { display: inline-block; margin-left: 5px; font-weight: 600 } .apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty { display: none } .apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value { padding: 6px 0 5px } .apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value { display: flex } .apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) { margin-top: -6px } .apexcharts-tooltip-marker { width: 12px; height: 12px; position: relative; top: 0; margin-right: 10px; border-radius: 50% } .apexcharts-tooltip-series-group { padding: 0 10px; display: none; text-align: left; justify-content: left; align-items: center } .apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker { opacity: 1 } .apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child { padding-bottom: 4px } .apexcharts-tooltip-series-group-hidden { opacity: 0; height: 0; line-height: 0; padding: 0!important } .apexcharts-tooltip-y-group { padding: 6px 0 5px } .apexcharts-custom-tooltip,.apexcharts-tooltip-box { padding: 4px 8px } .apexcharts-tooltip-boxPlot { display: flex; flex-direction: column-reverse } .apexcharts-tooltip-box>div { margin: 4px 0 } .apexcharts-tooltip-box span.value { font-weight: 700 } .apexcharts-tooltip-rangebar { padding: 5px 8px } .apexcharts-tooltip-rangebar .category { font-weight: 600; color: #777 } .apexcharts-tooltip-rangebar .series-name { font-weight: 700; display: block; margin-bottom: 5px } .apexcharts-xaxistooltip,.apexcharts-yaxistooltip { opacity: 0; pointer-events: none; color: #373d3f; font-size: 13px; text-align: center; border-radius: 2px; position: absolute; z-index: 10; background: #eceff1; border: 1px solid #90a4ae } .apexcharts-xaxistooltip { padding: 9px 10px; transition: .15s ease all } .apexcharts-xaxistooltip.apexcharts-theme-dark { background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.5); color: #fff } .apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before { left: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-xaxistooltip:after { border-color: transparent; border-width: 6px; margin-left: -6px } .apexcharts-xaxistooltip:before { border-color: transparent; border-width: 7px; margin-left: -7px } .apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before { bottom: 100% } .apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before { top: 100% } .apexcharts-xaxistooltip-bottom:after { border-bottom-color: #eceff1 } .apexcharts-xaxistooltip-bottom:before { border-bottom-color: #90a4ae } .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before { border-bottom-color: rgba(0,0,0,.5) } .apexcharts-xaxistooltip-top:after { border-top-color: #eceff1 } .apexcharts-xaxistooltip-top:before { border-top-color: #90a4ae } .apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before { border-top-color: rgba(0,0,0,.5) } .apexcharts-xaxistooltip.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-yaxistooltip { padding: 4px 10px } .apexcharts-yaxistooltip.apexcharts-theme-dark { background: rgba(0,0,0,.7); border: 1px solid rgba(0,0,0,.5); color: #fff } .apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before { top: 50%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none } .apexcharts-yaxistooltip:after { border-color: transparent; border-width: 6px; margin-top: -6px } .apexcharts-yaxistooltip:before { border-color: transparent; border-width: 7px; margin-top: -7px } .apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before { left: 100% } .apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before { right: 100% } .apexcharts-yaxistooltip-left:after { border-left-color: #eceff1 } .apexcharts-yaxistooltip-left:before { border-left-color: #90a4ae } .apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before { border-left-color: rgba(0,0,0,.5) } .apexcharts-yaxistooltip-right:after { border-right-color: #eceff1 } .apexcharts-yaxistooltip-right:before { border-right-color: #90a4ae } .apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before { border-right-color: rgba(0,0,0,.5) } .apexcharts-yaxistooltip.apexcharts-active { opacity: 1 } .apexcharts-yaxistooltip-hidden { display: none } .apexcharts-xcrosshairs,.apexcharts-ycrosshairs { pointer-events: none; opacity: 0; transition: .15s ease all } .apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active { opacity: 1; transition: .15s ease all } .apexcharts-ycrosshairs-hidden { opacity: 0 } .apexcharts-selection-rect { cursor: move } .svg_select_boundingRect,.svg_select_points_rot { pointer-events: none; opacity: 0; visibility: hidden } .apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot { opacity: 0; visibility: hidden } .apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r { cursor: ew-resize; opacity: 1; visibility: visible } .svg_select_points { fill: #efefef; stroke: #333; rx: 2 } .apexcharts-svg.apexcharts-zoomable.hovering-zoom { cursor: crosshair } .apexcharts-svg.apexcharts-zoomable.hovering-pan { cursor: move } .apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon { cursor: pointer; width: 20px; height: 20px; line-height: 24px; color: #6e8192; text-align: center } .apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg { fill: #6e8192 } .apexcharts-selection-icon svg { fill: #444; transform: scale(.76) } .apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg { fill: #f3f4f5 } .apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg { fill: #008ffb } .apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg { fill: #333 } .apexcharts-menu-icon,.apexcharts-selection-icon { position: relative } .apexcharts-reset-icon { margin-left: 5px } .apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon { transform: scale(.85) } .apexcharts-zoomin-icon,.apexcharts-zoomout-icon { transform: scale(.7) } .apexcharts-zoomout-icon { margin-right: 3px } .apexcharts-pan-icon { transform: scale(.62); position: relative; left: 1px; top: 0 } .apexcharts-pan-icon svg { fill: #fff; stroke: #6e8192; stroke-width: 2 } .apexcharts-pan-icon.apexcharts-selected svg { stroke: #008ffb } .apexcharts-pan-icon:not(.apexcharts-selected):hover svg { stroke: #333 } .apexcharts-toolbar { position: absolute; z-index: 11; max-width: 176px; text-align: right; border-radius: 3px; padding: 0 6px 2px; display: flex; justify-content: space-between; align-items: center } .apexcharts-menu { background: #fff; position: absolute; top: 100%; border: 1px solid #ddd; border-radius: 3px; padding: 3px; right: 10px; opacity: 0; min-width: 110px; transition: .15s ease all; pointer-events: none } .apexcharts-menu.apexcharts-menu-open { opacity: 1; pointer-events: all; transition: .15s ease all } .apexcharts-menu-item { padding: 6px 7px; font-size: 12px; cursor: pointer } .apexcharts-theme-light .apexcharts-menu-item:hover { background: #eee } .apexcharts-theme-dark .apexcharts-menu { background: rgba(0,0,0,.7); color: #fff } @media screen and (min-width:768px) { .apexcharts-canvas:hover .apexcharts-toolbar { opacity: 1 } } .apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points { opacity: 0 } .apexcharts-hidden-element-shown { opacity: 1; transition: 0.25s ease all; } .apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label { cursor: default; pointer-events: none } .apexcharts-pie-label-delay { opacity: 0; animation-name: opaque; animation-duration: .3s; animation-fill-mode: forwards; animation-timing-function: ease } .apexcharts-radialbar-label { cursor: pointer; } .apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect { pointer-events: none } .apexcharts-marker { transition: .15s ease all } .resize-triggers { animation: 1ms resizeanim; visibility: hidden; opacity: 0; height: 100%; width: 100%; overflow: hidden } .contract-trigger:before,.resize-triggers,.resize-triggers>div { content: " "; display: block; position: absolute; top: 0; left: 0 } .resize-triggers>div { height: 100%; width: 100%; background: #eee; overflow: auto } .contract-trigger:before { overflow: hidden; width: 200%; height: 200% } .apexcharts-bar-goals-markers{ pointer-events: none } .apexcharts-bar-shadows{ pointer-events: none } .apexcharts-rangebar-goals-markers{ pointer-events: none }`;var m=((u=e.opts.chart)===null||u===void 0?void 0:u.nonce)||e.w.config.chart.nonce;m&&h.setAttribute("nonce",m),n?o.prepend(h):c.head.appendChild(h)}var v=e.create(e.w.config.series,{});if(!v)return t(e);e.mount(v).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(v)}).catch(function(x){a(x)})}else a(new Error("Element not found"))})}},{key:"create",value:function(e,t){var a=this.w;new Or(this).initModules();var r=this.w.globals;if(r.noData=!1,r.animationEnded=!1,this.responsive.checkResponsiveConfig(t),a.config.xaxis.convertedCatToNumeric&&new ue(a.config).convertCatToNumericXaxis(a.config,this.ctx),this.el===null||(this.core.setupElements(),a.config.chart.type==="treemap"&&(a.config.grid.show=!1,a.config.yaxis[0].show=!1),r.svgWidth===0))return r.animationEnded=!0,null;var o=U.checkComboSeries(e,a.config.chart.type);r.comboCharts=o.comboCharts,r.comboBarCount=o.comboBarCount;var n=e.every(function(m){return m.data&&m.data.length===0});(e.length===0||n&&r.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new Ce(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),r.noData&&r.collapsedSeries.length!==r.series.length&&!a.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),r.axisCharts&&(this.core.coreCalculations(),a.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=a.globals.minX,this.ctx.toolbar.maxX=a.globals.maxX),this.formatters.heatmapLabelFormatters(),new U(this).getLargestMarkerSize(),this.dimensions.plotCoords();var c=this.core.xySettings();this.grid.createGridMask();var h=this.core.plotChartType(e,c),u=new Ae(this);return u.bringForward(),a.config.dataLabels.background.enabled&&u.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:h,xyRatios:c,dimensions:{plot:{left:a.globals.translateX,top:a.globals.translateY,width:a.globals.gridWidth,height:a.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,a=this,r=a.w;return new Promise(function(o,n){if(a.el===null)return n(new Error("Not enough data to display or target element not found"));(t===null||r.globals.allSeriesCollapsed)&&a.series.handleNoData(),a.grid=new Ue(a);var c,h,u=a.grid.drawGrid();if(a.annotations=new ge(a),a.annotations.drawImageAnnos(),a.annotations.drawTextAnnos(),r.config.grid.position==="back"&&(u&&r.globals.dom.elGraphical.add(u.el),u!=null&&(c=u.elGridBorders)!==null&&c!==void 0&&c.node&&r.globals.dom.elGraphical.add(u.elGridBorders)),Array.isArray(t.elGraph))for(var m=0;m<t.elGraph.length;m++)r.globals.dom.elGraphical.add(t.elGraph[m]);else r.globals.dom.elGraphical.add(t.elGraph);r.config.grid.position==="front"&&(u&&r.globals.dom.elGraphical.add(u.el),u!=null&&(h=u.elGridBorders)!==null&&h!==void 0&&h.node&&r.globals.dom.elGraphical.add(u.elGridBorders)),r.config.xaxis.crosshairs.position==="front"&&a.crosshairs.drawXCrosshairs(),r.config.yaxis[0].crosshairs.position==="front"&&a.crosshairs.drawYCrosshairs(),r.config.chart.type!=="treemap"&&a.axes.drawAxis(r.config.chart.type,u);var v=new We(e.ctx,u),x=new Lt(e.ctx,u);if(u!==null&&(v.xAxisLabelCorrections(u.xAxisTickWidth),x.setYAxisTextAlignments(),r.config.yaxis.map(function(k,E){r.globals.ignoreYAxisIndexes.indexOf(E)===-1&&x.yAxisTitleRotate(E,k.opposite)})),a.annotations.drawAxesAnnotations(),!r.globals.noData){if(r.config.tooltip.enabled&&!r.globals.noData&&a.w.globals.tooltip.drawTooltip(t.xyRatios),r.globals.axisCharts&&(r.globals.isXNumeric||r.config.xaxis.convertedCatToNumeric||r.globals.isRangeBar))(r.config.chart.zoom.enabled||r.config.chart.selection&&r.config.chart.selection.enabled||r.config.chart.pan&&r.config.chart.pan.enabled)&&a.zoomPanSelection.init({xyRatios:t.xyRatios});else{var w=r.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(k){w[k]=!1})}r.config.chart.toolbar.show&&!r.globals.allSeriesCollapsed&&a.toolbar.createToolbar()}r.globals.memory.methodsToExec.length>0&&r.globals.memory.methodsToExec.forEach(function(k){k.method(k.params,!1,k.context)}),r.globals.axisCharts||r.globals.noData||a.core.resizeNonAxisCharts(),o(a)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Ua.get(e))&&(t.disconnect(),Ua.delete(e));var a=this.w.config.chart.id;a&&Apex._chartInstances.forEach(function(r,o){r.id===P.escapeString(a)&&Apex._chartInstances.splice(o,1)}),new Dr(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,a=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],o=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],n=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],c=this.w;return c.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(h,u){return t.updateHelpers._extendSeries(h,u)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),c.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,a,r,o,n)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,a)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,a)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=this;a.w.globals.dataChanged=!0,a.series.getPreviousPaths();for(var r=a.w.config.series.slice(),o=0;o<r.length;o++)if(e[o]!==null&&e[o]!==void 0)for(var n=0;n<e[o].data.length;n++)r[o].data.push(e[o].data[n]);return a.w.config.series=r,t&&(a.w.globals.initialSeries=P.clone(a.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(a,r){new Dr(t.ctx).clear({isUpdating:!0});var o=t.create(t.w.config.series,e);if(!o)return a(t);t.mount(o).then(function(){typeof t.w.config.chart.events.updated=="function"&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,a(t)}).catch(function(n){r(n)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(a){t.push(a)})),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(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{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 t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this;a&&(r=a),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this;a&&(r=a),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this;a&&(r=a),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,a=this;t&&(a=t),a.annotations.removeAnnotation(a,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&&arguments[0]!==void 0?arguments[0]:0;return new bt(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new bt(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 Je(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Je(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;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=P.escapeString(e);if(Apex._chartInstances){var a=Apex._chartInstances.filter(function(r){return r.id===t})[0];return a&&a.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new z(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var a=this.getChartByID(e);if(a){a.w.globals.isExecCalled=!0;var r=null;if(a.publicMethods.indexOf(t)!==-1){for(var o=arguments.length,n=new Array(o>2?o-2:0),c=2;c<o;c++)n[c-2]=arguments[c];r=a[t].apply(a,n)}return r}}},{key:"merge",value:function(e,t){return P.extend(e,t)}}]),z}();s.exports=Nl})(Ms,Ms.exports);var yu=Ms.exports;const wu=Ds(yu);var sl="Expected a function",hn=0/0,Su="[object Symbol]",Au=/^\s+|\s+$/g,ku=/^[-+]0x[0-9a-f]+$/i,Cu=/^0b[01]+$/i,Eu=/^0o[0-7]+$/i,Tu=parseInt,Lu=typeof Dt=="object"&&Dt&&Dt.Object===Object&&Dt,_u=typeof self=="object"&&self&&self.Object===Object&&self,Mu=Lu||_u||Function("return this")(),Pu=Object.prototype,Iu=Pu.toString,zu=Math.max,Ou=Math.min,es=function(){return Mu.Date.now()};function Du(s,i,l){var d,f,g,S,y,A,M=0,T=!1,_=!1,H=!0;if(typeof s!="function")throw new TypeError(sl);i=un(i)||0,za(l)&&(T=!!l.leading,_="maxWait"in l,g=_?zu(un(l.maxWait)||0,i):g,H="trailing"in l?!!l.trailing:H);function Y(U){var le=d,J=f;return d=f=void 0,M=U,S=s.apply(J,le),S}function G(U){return M=U,y=setTimeout(R,i),T?Y(U):S}function W(U){var le=U-A,J=U-M,K=i-le;return _?Ou(K,g-J):K}function F(U){var le=U-A,J=U-M;return A===void 0||le>=i||le<0||_&&J>=g}function R(){var U=es();if(F(U))return P(U);y=setTimeout(R,W(U))}function P(U){return y=void 0,H&&d?Y(U):(d=f=void 0,S)}function B(){y!==void 0&&clearTimeout(y),M=0,d=A=f=y=void 0}function q(){return y===void 0?S:P(es())}function j(){var U=es(),le=F(U);if(d=arguments,f=this,A=U,le){if(y===void 0)return G(A);if(_)return y=setTimeout(R,i),Y(A)}return y===void 0&&(y=setTimeout(R,i)),S}return j.cancel=B,j.flush=q,j}function Hu(s,i,l){var d=!0,f=!0;if(typeof s!="function")throw new TypeError(sl);return za(l)&&(d="leading"in l?!!l.leading:d,f="trailing"in l?!!l.trailing:f),Du(s,i,{leading:d,maxWait:i,trailing:f})}function za(s){var i=typeof s;return!!s&&(i=="object"||i=="function")}function Xu(s){return!!s&&typeof s=="object"}function Ru(s){return typeof s=="symbol"||Xu(s)&&Iu.call(s)==Su}function un(s){if(typeof s=="number")return s;if(Ru(s))return hn;if(za(s)){var i=typeof s.valueOf=="function"?s.valueOf():s;s=za(i)?i+"":i}if(typeof s!="string")return s===0?s:+s;s=s.replace(Au,"");var l=Cu.test(s);return l||Eu.test(s)?Tu(s.slice(2),l?2:8):ku.test(s)?hn:+s}var Yu=Hu;const Fu=Ds(Yu);var Nu="Expected a function",fn=0/0,Bu="[object Symbol]",Wu=/^\s+|\s+$/g,Gu=/^[-+]0x[0-9a-f]+$/i,Vu=/^0b[01]+$/i,ju=/^0o[0-7]+$/i,$u=parseInt,qu=typeof Dt=="object"&&Dt&&Dt.Object===Object&&Dt,Uu=typeof self=="object"&&self&&self.Object===Object&&self,Zu=qu||Uu||Function("return this")(),Ku=Object.prototype,Ju=Ku.toString,Qu=Math.max,ef=Math.min,ts=function(){return Zu.Date.now()};function tf(s,i,l){var d,f,g,S,y,A,M=0,T=!1,_=!1,H=!0;if(typeof s!="function")throw new TypeError(Nu);i=pn(i)||0,Ps(l)&&(T=!!l.leading,_="maxWait"in l,g=_?Qu(pn(l.maxWait)||0,i):g,H="trailing"in l?!!l.trailing:H);function Y(U){var le=d,J=f;return d=f=void 0,M=U,S=s.apply(J,le),S}function G(U){return M=U,y=setTimeout(R,i),T?Y(U):S}function W(U){var le=U-A,J=U-M,K=i-le;return _?ef(K,g-J):K}function F(U){var le=U-A,J=U-M;return A===void 0||le>=i||le<0||_&&J>=g}function R(){var U=ts();if(F(U))return P(U);y=setTimeout(R,W(U))}function P(U){return y=void 0,H&&d?Y(U):(d=f=void 0,S)}function B(){y!==void 0&&clearTimeout(y),M=0,d=A=f=y=void 0}function q(){return y===void 0?S:P(ts())}function j(){var U=ts(),le=F(U);if(d=arguments,f=this,A=U,le){if(y===void 0)return G(A);if(_)return y=setTimeout(R,i),Y(A)}return y===void 0&&(y=setTimeout(R,i)),S}return j.cancel=B,j.flush=q,j}function Ps(s){var i=typeof s;return!!s&&(i=="object"||i=="function")}function af(s){return!!s&&typeof s=="object"}function sf(s){return typeof s=="symbol"||af(s)&&Ju.call(s)==Bu}function pn(s){if(typeof s=="number")return s;if(sf(s))return fn;if(Ps(s)){var i=typeof s.valueOf=="function"?s.valueOf():s;s=Ps(i)?i+"":i}if(typeof s!="string")return s===0?s:+s;s=s.replace(Wu,"");var l=Vu.test(s);return l||ju.test(s)?$u(s.slice(2),l?2:8):Gu.test(s)?fn:+s}var rf=tf;const gn=Ds(rf);var rl=function(){};function nl(s){var i=void 0,l=void 0,d=void 0;for(i=0;i<s.length;i+=1)if(l=s[i],l.dataset&&l.dataset.aos||(d=l.children&&nl(l.children),d))return!0;return!1}function nf(s){s&&s.forEach(function(i){var l=Array.prototype.slice.call(i.addedNodes),d=Array.prototype.slice.call(i.removedNodes),f=l.concat(d);if(nl(f))return rl()})}function ol(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function of(){return!!ol()}function lf(s,i){var l=window.document,d=ol(),f=new d(nf);rl=i,f.observe(l.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}var mn={isSupported:of,ready:lf},cf=function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")},df=function(){function s(i,l){for(var d=0;d<l.length;d++){var f=l[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,l,d){return l&&s(i.prototype,l),d&&s(i,d),i}}(),hf=Object.assign||function(s){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(s[d]=l[d])}return s},uf=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,ff=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,pf=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,gf=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;function vn(){return navigator.userAgent||navigator.vendor||window.opera||""}var mf=function(){function s(){cf(this,s)}return df(s,[{key:"phone",value:function(){var l=vn();return!!(uf.test(l)||ff.test(l.substr(0,4)))}},{key:"mobile",value:function(){var l=vn();return!!(pf.test(l)||gf.test(l.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}},{key:"ie11",value:function(){return"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style}}]),s}(),ua=new mf,vf=function(i,l){return l&&l.forEach(function(d){return i.classList.add(d)})},xf=function(i,l){return l&&l.forEach(function(d){return i.classList.remove(d)})},oa=function(i,l){var d=void 0;return ua.ie11()?(d=document.createEvent("CustomEvent"),d.initCustomEvent(i,!0,!0,{detail:l})):d=new CustomEvent(i,{detail:l}),document.dispatchEvent(d)},bf=function(i,l){var d=i.options,f=i.position,g=i.node;i.data;var S=function(){i.animated&&(xf(g,d.animatedClassNames),oa("aos:out",g),i.options.id&&oa("aos:in:"+i.options.id,g),i.animated=!1)},y=function(){i.animated||(vf(g,d.animatedClassNames),oa("aos:in",g),i.options.id&&oa("aos:in:"+i.options.id,g),i.animated=!0)};d.mirror&&l>=f.out&&!d.once?S():l>=f.in?y():i.animated&&!d.once&&S()},xn=function(i){return i.forEach(function(l,d){return bf(l,window.pageYOffset)})},ll=function(i){for(var l=0,d=0;i&&!isNaN(i.offsetLeft)&&!isNaN(i.offsetTop);)l+=i.offsetLeft-(i.tagName!="BODY"?i.scrollLeft:0),d+=i.offsetTop-(i.tagName!="BODY"?i.scrollTop:0),i=i.offsetParent;return{top:d,left:l}},Xt=function(s,i,l){var d=s.getAttribute("data-aos-"+i);if(typeof d<"u"){if(d==="true")return!0;if(d==="false")return!1}return d||l},yf=function(i,l,d){var f=window.innerHeight,g=Xt(i,"anchor"),S=Xt(i,"anchor-placement"),y=Number(Xt(i,"offset",S?0:l)),A=S||d,M=i;g&&document.querySelectorAll(g)&&(M=document.querySelectorAll(g)[0]);var T=ll(M).top-f;switch(A){case"top-bottom":break;case"center-bottom":T+=M.offsetHeight/2;break;case"bottom-bottom":T+=M.offsetHeight;break;case"top-center":T+=f/2;break;case"center-center":T+=f/2+M.offsetHeight/2;break;case"bottom-center":T+=f/2+M.offsetHeight;break;case"top-top":T+=f;break;case"bottom-top":T+=f+M.offsetHeight;break;case"center-top":T+=f+M.offsetHeight/2;break}return T+y},wf=function(i,l){var d=Xt(i,"anchor"),f=Xt(i,"offset",l),g=i;d&&document.querySelectorAll(d)&&(g=document.querySelectorAll(d)[0]);var S=ll(g).top;return S+g.offsetHeight-f},Sf=function(i,l){return i.forEach(function(d,f){var g=Xt(d.node,"mirror",l.mirror),S=Xt(d.node,"once",l.once),y=Xt(d.node,"id"),A=l.useClassNames&&d.node.getAttribute("data-aos"),M=[l.animatedClassName].concat(A?A.split(" "):[]).filter(function(T){return typeof T=="string"});l.initClassName&&d.node.classList.add(l.initClassName),d.position={in:yf(d.node,l.offset,l.anchorPlacement),out:g&&wf(d.node,l.offset)},d.options={once:S,mirror:g,animatedClassNames:M,id:y}}),i},cl=function(){var s=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(s,function(i){return{node:i}})},kt=[],bn=!1,De={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},dl=function(){return document.all&&!window.atob},Af=function(){return kt=Sf(kt,De),xn(kt),window.addEventListener("scroll",Fu(function(){xn(kt,De.once)},De.throttleDelay)),kt},Zt=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;i&&(bn=!0),bn&&Af()},hl=function(){if(kt=cl(),fl(De.disable)||dl())return ul();Zt()},ul=function(){kt.forEach(function(i,l){i.node.removeAttribute("data-aos"),i.node.removeAttribute("data-aos-easing"),i.node.removeAttribute("data-aos-duration"),i.node.removeAttribute("data-aos-delay"),De.initClassName&&i.node.classList.remove(De.initClassName),De.animatedClassName&&i.node.classList.remove(De.animatedClassName)})},fl=function(i){return i===!0||i==="mobile"&&ua.mobile()||i==="phone"&&ua.phone()||i==="tablet"&&ua.tablet()||typeof i=="function"&&i()===!0},kf=function(i){return De=hf(De,i),kt=cl(),!De.disableMutationObserver&&!mn.isSupported()&&(console.info(` aos: MutationObserver is not supported on this browser, code mutations observing has been disabled. You may have to call "refreshHard()" by yourself. `),De.disableMutationObserver=!0),De.disableMutationObserver||mn.ready("[data-aos]",hl),fl(De.disable)||dl()?ul():(document.querySelector("body").setAttribute("data-aos-easing",De.easing),document.querySelector("body").setAttribute("data-aos-duration",De.duration),document.querySelector("body").setAttribute("data-aos-delay",De.delay),["DOMContentLoaded","load"].indexOf(De.startEvent)===-1?document.addEventListener(De.startEvent,function(){Zt(!0)}):window.addEventListener("load",function(){Zt(!0)}),De.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1&&Zt(!0),window.addEventListener("resize",gn(Zt,De.debounceDelay,!0)),window.addEventListener("orientationchange",gn(Zt,De.debounceDelay,!0)),kt)},Cf={init:kf,refresh:Zt,refreshHard:hl};function yn(s){return s!==null&&typeof s=="object"&&"constructor"in s&&s.constructor===Object}function kr(s,i){s===void 0&&(s={}),i===void 0&&(i={}),Object.keys(i).forEach(l=>{typeof s[l]>"u"?s[l]=i[l]:yn(i[l])&&yn(s[l])&&Object.keys(i[l]).length>0&&kr(s[l],i[l])})}const pl={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function je(){const s=typeof document<"u"?document:{};return kr(s,pl),s}const Ef={document:pl,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(s){return typeof setTimeout>"u"?(s(),null):setTimeout(s,0)},cancelAnimationFrame(s){typeof setTimeout>"u"||clearTimeout(s)}};function Xe(){const s=typeof window<"u"?window:{};return kr(s,Ef),s}function Mt(s){return s===void 0&&(s=""),s.trim().split(" ").filter(i=>!!i.trim())}function Tf(s){const i=s;Object.keys(i).forEach(l=>{try{i[l]=null}catch{}try{delete i[l]}catch{}})}function ri(s,i){return i===void 0&&(i=0),setTimeout(s,i)}function rt(){return Date.now()}function Lf(s){const i=Xe();let l;return i.getComputedStyle&&(l=i.getComputedStyle(s,null)),!l&&s.currentStyle&&(l=s.currentStyle),l||(l=s.style),l}function Is(s,i){i===void 0&&(i="x");const l=Xe();let d,f,g;const S=Lf(s);return l.WebKitCSSMatrix?(f=S.transform||S.webkitTransform,f.split(",").length>6&&(f=f.split(", ").map(y=>y.replace(",",".")).join(", ")),g=new l.WebKitCSSMatrix(f==="none"?"":f)):(g=S.MozTransform||S.OTransform||S.MsTransform||S.msTransform||S.transform||S.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),d=g.toString().split(",")),i==="x"&&(l.WebKitCSSMatrix?f=g.m41:d.length===16?f=parseFloat(d[12]):f=parseFloat(d[4])),i==="y"&&(l.WebKitCSSMatrix?f=g.m42:d.length===16?f=parseFloat(d[13]):f=parseFloat(d[5])),f||0}function Mi(s){return typeof s=="object"&&s!==null&&s.constructor&&Object.prototype.toString.call(s).slice(8,-1)==="Object"}function _f(s){return typeof window<"u"&&typeof window.HTMLElement<"u"?s instanceof HTMLElement:s&&(s.nodeType===1||s.nodeType===11)}function it(){const s=Object(arguments.length<=0?void 0:arguments[0]),i=["__proto__","constructor","prototype"];for(let l=1;l<arguments.length;l+=1){const d=l<0||arguments.length<=l?void 0:arguments[l];if(d!=null&&!_f(d)){const f=Object.keys(Object(d)).filter(g=>i.indexOf(g)<0);for(let g=0,S=f.length;g<S;g+=1){const y=f[g],A=Object.getOwnPropertyDescriptor(d,y);A!==void 0&&A.enumerable&&(Mi(s[y])&&Mi(d[y])?d[y].__swiper__?s[y]=d[y]:it(s[y],d[y]):!Mi(s[y])&&Mi(d[y])?(s[y]={},d[y].__swiper__?s[y]=d[y]:it(s[y],d[y])):s[y]=d[y])}}}return s}function Pi(s,i,l){s.style.setProperty(i,l)}function gl(s){let{swiper:i,targetPosition:l,side:d}=s;const f=Xe(),g=-i.translate;let S=null,y;const A=i.params.speed;i.wrapperEl.style.scrollSnapType="none",f.cancelAnimationFrame(i.cssModeFrameID);const M=l>g?"next":"prev",T=(H,Y)=>M==="next"&&H>=Y||M==="prev"&&H<=Y,_=()=>{y=new Date().getTime(),S===null&&(S=y);const H=Math.max(Math.min((y-S)/A,1),0),Y=.5-Math.cos(H*Math.PI)/2;let G=g+Y*(l-g);if(T(G,l)&&(G=l),i.wrapperEl.scrollTo({[d]:G}),T(G,l)){i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[d]:G})}),f.cancelAnimationFrame(i.cssModeFrameID);return}i.cssModeFrameID=f.requestAnimationFrame(_)};_()}function li(s){return s.querySelector(".swiper-slide-transform")||s.shadowRoot&&s.shadowRoot.querySelector(".swiper-slide-transform")||s}function Ve(s,i){return i===void 0&&(i=""),[...s.children].filter(l=>l.matches(i))}function Oa(s){try{console.warn(s);return}catch{}}function at(s,i){i===void 0&&(i=[]);const l=document.createElement(s);return l.classList.add(...Array.isArray(i)?i:Mt(i)),l}function Da(s){const i=Xe(),l=je(),d=s.getBoundingClientRect(),f=l.body,g=s.clientTop||f.clientTop||0,S=s.clientLeft||f.clientLeft||0,y=s===i?i.scrollY:s.scrollTop,A=s===i?i.scrollX:s.scrollLeft;return{top:d.top+y-g,left:d.left+A-S}}function Mf(s,i){const l=[];for(;s.previousElementSibling;){const d=s.previousElementSibling;i?d.matches(i)&&l.push(d):l.push(d),s=d}return l}function Pf(s,i){const l=[];for(;s.nextElementSibling;){const d=s.nextElementSibling;i?d.matches(i)&&l.push(d):l.push(d),s=d}return l}function Ht(s,i){return Xe().getComputedStyle(s,null).getPropertyValue(i)}function Ni(s){let i=s,l;if(i){for(l=0;(i=i.previousSibling)!==null;)i.nodeType===1&&(l+=1);return l}}function ai(s,i){const l=[];let d=s.parentElement;for(;d;)i?d.matches(i)&&l.push(d):l.push(d),d=d.parentElement;return l}function Xi(s,i){function l(d){d.target===s&&(i.call(s,d),s.removeEventListener("transitionend",l))}i&&s.addEventListener("transitionend",l)}function zs(s,i,l){const d=Xe();return l?s[i==="width"?"offsetWidth":"offsetHeight"]+parseFloat(d.getComputedStyle(s,null).getPropertyValue(i==="width"?"margin-right":"margin-top"))+parseFloat(d.getComputedStyle(s,null).getPropertyValue(i==="width"?"margin-left":"margin-bottom")):s.offsetWidth}function Te(s){return(Array.isArray(s)?s:[s]).filter(i=>!!i)}let is;function If(){const s=Xe(),i=je();return{smoothScroll:i.documentElement&&i.documentElement.style&&"scrollBehavior"in i.documentElement.style,touch:!!("ontouchstart"in s||s.DocumentTouch&&i instanceof s.DocumentTouch)}}function ml(){return is||(is=If()),is}let as;function zf(s){let{userAgent:i}=s===void 0?{}:s;const l=ml(),d=Xe(),f=d.navigator.platform,g=i||d.navigator.userAgent,S={ios:!1,android:!1},y=d.screen.width,A=d.screen.height,M=g.match(/(Android);?[\s\/]+([\d.]+)?/);let T=g.match(/(iPad).*OS\s([\d_]+)/);const _=g.match(/(iPod)(.*OS\s([\d_]+))?/),H=!T&&g.match(/(iPhone\sOS|iOS)\s([\d_]+)/),Y=f==="Win32";let G=f==="MacIntel";const W=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!T&&G&&l.touch&&W.indexOf(`${y}x${A}`)>=0&&(T=g.match(/(Version)\/([\d.]+)/),T||(T=[0,1,"13_0_0"]),G=!1),M&&!Y&&(S.os="android",S.android=!0),(T||H||_)&&(S.os="ios",S.ios=!0),S}function vl(s){return s===void 0&&(s={}),as||(as=zf(s)),as}let ss;function Of(){const s=Xe(),i=vl();let l=!1;function d(){const y=s.navigator.userAgent.toLowerCase();return y.indexOf("safari")>=0&&y.indexOf("chrome")<0&&y.indexOf("android")<0}if(d()){const y=String(s.navigator.userAgent);if(y.includes("Version/")){const[A,M]=y.split("Version/")[1].split(" ")[0].split(".").map(T=>Number(T));l=A<16||A===16&&M<2}}const f=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(s.navigator.userAgent),g=d(),S=g||f&&i.ios;return{isSafari:l||g,needPerspectiveFix:l,need3dFix:S,isWebView:f}}function Df(){return ss||(ss=Of()),ss}function Hf(s){let{swiper:i,on:l,emit:d}=s;const f=Xe();let g=null,S=null;const y=()=>{!i||i.destroyed||!i.initialized||(d("beforeResize"),d("resize"))},A=()=>{!i||i.destroyed||!i.initialized||(g=new ResizeObserver(_=>{S=f.requestAnimationFrame(()=>{const{width:H,height:Y}=i;let G=H,W=Y;_.forEach(F=>{let{contentBoxSize:R,contentRect:P,target:B}=F;B&&B!==i.el||(G=P?P.width:(R[0]||R).inlineSize,W=P?P.height:(R[0]||R).blockSize)}),(G!==H||W!==Y)&&y()})}),g.observe(i.el))},M=()=>{S&&f.cancelAnimationFrame(S),g&&g.unobserve&&i.el&&(g.unobserve(i.el),g=null)},T=()=>{!i||i.destroyed||!i.initialized||d("orientationchange")};l("init",()=>{if(i.params.resizeObserver&&typeof f.ResizeObserver<"u"){A();return}f.addEventListener("resize",y),f.addEventListener("orientationchange",T)}),l("destroy",()=>{M(),f.removeEventListener("resize",y),f.removeEventListener("orientationchange",T)})}function Xf(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;const g=[],S=Xe(),y=function(T,_){_===void 0&&(_={});const H=S.MutationObserver||S.WebkitMutationObserver,Y=new H(G=>{if(i.__preventObserver__)return;if(G.length===1){f("observerUpdate",G[0]);return}const W=function(){f("observerUpdate",G[0])};S.requestAnimationFrame?S.requestAnimationFrame(W):S.setTimeout(W,0)});Y.observe(T,{attributes:typeof _.attributes>"u"?!0:_.attributes,childList:typeof _.childList>"u"?!0:_.childList,characterData:typeof _.characterData>"u"?!0:_.characterData}),g.push(Y)},A=()=>{if(i.params.observer){if(i.params.observeParents){const T=ai(i.hostEl);for(let _=0;_<T.length;_+=1)y(T[_])}y(i.hostEl,{childList:i.params.observeSlideChildren}),y(i.wrapperEl,{attributes:!1})}},M=()=>{g.forEach(T=>{T.disconnect()}),g.splice(0,g.length)};l({observer:!1,observeParents:!1,observeSlideChildren:!1}),d("init",A),d("destroy",M)}var Rf={on(s,i,l){const d=this;if(!d.eventsListeners||d.destroyed||typeof i!="function")return d;const f=l?"unshift":"push";return s.split(" ").forEach(g=>{d.eventsListeners[g]||(d.eventsListeners[g]=[]),d.eventsListeners[g][f](i)}),d},once(s,i,l){const d=this;if(!d.eventsListeners||d.destroyed||typeof i!="function")return d;function f(){d.off(s,f),f.__emitterProxy&&delete f.__emitterProxy;for(var g=arguments.length,S=new Array(g),y=0;y<g;y++)S[y]=arguments[y];i.apply(d,S)}return f.__emitterProxy=i,d.on(s,f,l)},onAny(s,i){const l=this;if(!l.eventsListeners||l.destroyed||typeof s!="function")return l;const d=i?"unshift":"push";return l.eventsAnyListeners.indexOf(s)<0&&l.eventsAnyListeners[d](s),l},offAny(s){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsAnyListeners)return i;const l=i.eventsAnyListeners.indexOf(s);return l>=0&&i.eventsAnyListeners.splice(l,1),i},off(s,i){const l=this;return!l.eventsListeners||l.destroyed||!l.eventsListeners||s.split(" ").forEach(d=>{typeof i>"u"?l.eventsListeners[d]=[]:l.eventsListeners[d]&&l.eventsListeners[d].forEach((f,g)=>{(f===i||f.__emitterProxy&&f.__emitterProxy===i)&&l.eventsListeners[d].splice(g,1)})}),l},emit(){const s=this;if(!s.eventsListeners||s.destroyed||!s.eventsListeners)return s;let i,l,d;for(var f=arguments.length,g=new Array(f),S=0;S<f;S++)g[S]=arguments[S];return typeof g[0]=="string"||Array.isArray(g[0])?(i=g[0],l=g.slice(1,g.length),d=s):(i=g[0].events,l=g[0].data,d=g[0].context||s),l.unshift(d),(Array.isArray(i)?i:i.split(" ")).forEach(A=>{s.eventsAnyListeners&&s.eventsAnyListeners.length&&s.eventsAnyListeners.forEach(M=>{M.apply(d,[A,...l])}),s.eventsListeners&&s.eventsListeners[A]&&s.eventsListeners[A].forEach(M=>{M.apply(d,l)})}),s}};function Yf(){const s=this;let i,l;const d=s.el;typeof s.params.width<"u"&&s.params.width!==null?i=s.params.width:i=d.clientWidth,typeof s.params.height<"u"&&s.params.height!==null?l=s.params.height:l=d.clientHeight,!(i===0&&s.isHorizontal()||l===0&&s.isVertical())&&(i=i-parseInt(Ht(d,"padding-left")||0,10)-parseInt(Ht(d,"padding-right")||0,10),l=l-parseInt(Ht(d,"padding-top")||0,10)-parseInt(Ht(d,"padding-bottom")||0,10),Number.isNaN(i)&&(i=0),Number.isNaN(l)&&(l=0),Object.assign(s,{width:i,height:l,size:s.isHorizontal()?i:l}))}function Ff(){const s=this;function i(ee,ne){return parseFloat(ee.getPropertyValue(s.getDirectionLabel(ne))||0)}const l=s.params,{wrapperEl:d,slidesEl:f,size:g,rtlTranslate:S,wrongRTL:y}=s,A=s.virtual&&l.virtual.enabled,M=A?s.virtual.slides.length:s.slides.length,T=Ve(f,`.${s.params.slideClass}, swiper-slide`),_=A?s.virtual.slides.length:T.length;let H=[];const Y=[],G=[];let W=l.slidesOffsetBefore;typeof W=="function"&&(W=l.slidesOffsetBefore.call(s));let F=l.slidesOffsetAfter;typeof F=="function"&&(F=l.slidesOffsetAfter.call(s));const R=s.snapGrid.length,P=s.slidesGrid.length;let B=l.spaceBetween,q=-W,j=0,U=0;if(typeof g>"u")return;typeof B=="string"&&B.indexOf("%")>=0?B=parseFloat(B.replace("%",""))/100*g:typeof B=="string"&&(B=parseFloat(B)),s.virtualSize=-B,T.forEach(ee=>{S?ee.style.marginLeft="":ee.style.marginRight="",ee.style.marginBottom="",ee.style.marginTop=""}),l.centeredSlides&&l.cssMode&&(Pi(d,"--swiper-centered-offset-before",""),Pi(d,"--swiper-centered-offset-after",""));const le=l.grid&&l.grid.rows>1&&s.grid;le?s.grid.initSlides(T):s.grid&&s.grid.unsetSlides();let J;const K=l.slidesPerView==="auto"&&l.breakpoints&&Object.keys(l.breakpoints).filter(ee=>typeof l.breakpoints[ee].slidesPerView<"u").length>0;for(let ee=0;ee<_;ee+=1){J=0;let ne;if(T[ee]&&(ne=T[ee]),le&&s.grid.updateSlide(ee,ne,T),!(T[ee]&&Ht(ne,"display")==="none")){if(l.slidesPerView==="auto"){K&&(T[ee].style[s.getDirectionLabel("width")]="");const Q=getComputedStyle(ne),Z=ne.style.transform,se=ne.style.webkitTransform;if(Z&&(ne.style.transform="none"),se&&(ne.style.webkitTransform="none"),l.roundLengths)J=s.isHorizontal()?zs(ne,"width",!0):zs(ne,"height",!0);else{const de=i(Q,"width"),ge=i(Q,"padding-left"),te=i(Q,"padding-right"),oe=i(Q,"margin-left"),ue=i(Q,"margin-right"),ye=Q.getPropertyValue("box-sizing");if(ye&&ye==="border-box")J=de+oe+ue;else{const{clientWidth:he,offsetWidth:pe}=ne;J=de+ge+te+oe+ue+(pe-he)}}Z&&(ne.style.transform=Z),se&&(ne.style.webkitTransform=se),l.roundLengths&&(J=Math.floor(J))}else J=(g-(l.slidesPerView-1)*B)/l.slidesPerView,l.roundLengths&&(J=Math.floor(J)),T[ee]&&(T[ee].style[s.getDirectionLabel("width")]=`${J}px`);T[ee]&&(T[ee].swiperSlideSize=J),G.push(J),l.centeredSlides?(q=q+J/2+j/2+B,j===0&&ee!==0&&(q=q-g/2-B),ee===0&&(q=q-g/2-B),Math.abs(q)<1/1e3&&(q=0),l.roundLengths&&(q=Math.floor(q)),U%l.slidesPerGroup===0&&H.push(q),Y.push(q)):(l.roundLengths&&(q=Math.floor(q)),(U-Math.min(s.params.slidesPerGroupSkip,U))%s.params.slidesPerGroup===0&&H.push(q),Y.push(q),q=q+J+B),s.virtualSize+=J+B,j=J,U+=1}}if(s.virtualSize=Math.max(s.virtualSize,g)+F,S&&y&&(l.effect==="slide"||l.effect==="coverflow")&&(d.style.width=`${s.virtualSize+B}px`),l.setWrapperSize&&(d.style[s.getDirectionLabel("width")]=`${s.virtualSize+B}px`),le&&s.grid.updateWrapperSize(J,H),!l.centeredSlides){const ee=[];for(let ne=0;ne<H.length;ne+=1){let Q=H[ne];l.roundLengths&&(Q=Math.floor(Q)),H[ne]<=s.virtualSize-g&&ee.push(Q)}H=ee,Math.floor(s.virtualSize-g)-Math.floor(H[H.length-1])>1&&H.push(s.virtualSize-g)}if(A&&l.loop){const ee=G[0]+B;if(l.slidesPerGroup>1){const ne=Math.ceil((s.virtual.slidesBefore+s.virtual.slidesAfter)/l.slidesPerGroup),Q=ee*l.slidesPerGroup;for(let Z=0;Z<ne;Z+=1)H.push(H[H.length-1]+Q)}for(let ne=0;ne<s.virtual.slidesBefore+s.virtual.slidesAfter;ne+=1)l.slidesPerGroup===1&&H.push(H[H.length-1]+ee),Y.push(Y[Y.length-1]+ee),s.virtualSize+=ee}if(H.length===0&&(H=[0]),B!==0){const ee=s.isHorizontal()&&S?"marginLeft":s.getDirectionLabel("marginRight");T.filter((ne,Q)=>!l.cssMode||l.loop?!0:Q!==T.length-1).forEach(ne=>{ne.style[ee]=`${B}px`})}if(l.centeredSlides&&l.centeredSlidesBounds){let ee=0;G.forEach(Q=>{ee+=Q+(B||0)}),ee-=B;const ne=ee-g;H=H.map(Q=>Q<=0?-W:Q>ne?ne+F:Q)}if(l.centerInsufficientSlides){let ee=0;if(G.forEach(ne=>{ee+=ne+(B||0)}),ee-=B,ee<g){const ne=(g-ee)/2;H.forEach((Q,Z)=>{H[Z]=Q-ne}),Y.forEach((Q,Z)=>{Y[Z]=Q+ne})}}if(Object.assign(s,{slides:T,snapGrid:H,slidesGrid:Y,slidesSizesGrid:G}),l.centeredSlides&&l.cssMode&&!l.centeredSlidesBounds){Pi(d,"--swiper-centered-offset-before",`${-H[0]}px`),Pi(d,"--swiper-centered-offset-after",`${s.size/2-G[G.length-1]/2}px`);const ee=-s.snapGrid[0],ne=-s.slidesGrid[0];s.snapGrid=s.snapGrid.map(Q=>Q+ee),s.slidesGrid=s.slidesGrid.map(Q=>Q+ne)}if(_!==M&&s.emit("slidesLengthChange"),H.length!==R&&(s.params.watchOverflow&&s.checkOverflow(),s.emit("snapGridLengthChange")),Y.length!==P&&s.emit("slidesGridLengthChange"),l.watchSlidesProgress&&s.updateSlidesOffset(),s.emit("slidesUpdated"),!A&&!l.cssMode&&(l.effect==="slide"||l.effect==="fade")){const ee=`${l.containerModifierClass}backface-hidden`,ne=s.el.classList.contains(ee);_<=l.maxBackfaceHiddenSlides?ne||s.el.classList.add(ee):ne&&s.el.classList.remove(ee)}}function Nf(s){const i=this,l=[],d=i.virtual&&i.params.virtual.enabled;let f=0,g;typeof s=="number"?i.setTransition(s):s===!0&&i.setTransition(i.params.speed);const S=y=>d?i.slides[i.getSlideIndexByData(y)]:i.slides[y];if(i.params.slidesPerView!=="auto"&&i.params.slidesPerView>1)if(i.params.centeredSlides)(i.visibleSlides||[]).forEach(y=>{l.push(y)});else for(g=0;g<Math.ceil(i.params.slidesPerView);g+=1){const y=i.activeIndex+g;if(y>i.slides.length&&!d)break;l.push(S(y))}else l.push(S(i.activeIndex));for(g=0;g<l.length;g+=1)if(typeof l[g]<"u"){const y=l[g].offsetHeight;f=y>f?y:f}(f||f===0)&&(i.wrapperEl.style.height=`${f}px`)}function Bf(){const s=this,i=s.slides,l=s.isElement?s.isHorizontal()?s.wrapperEl.offsetLeft:s.wrapperEl.offsetTop:0;for(let d=0;d<i.length;d+=1)i[d].swiperSlideOffset=(s.isHorizontal()?i[d].offsetLeft:i[d].offsetTop)-l-s.cssOverflowAdjustment()}function Wf(s){s===void 0&&(s=this&&this.translate||0);const i=this,l=i.params,{slides:d,rtlTranslate:f,snapGrid:g}=i;if(d.length===0)return;typeof d[0].swiperSlideOffset>"u"&&i.updateSlidesOffset();let S=-s;f&&(S=s),d.forEach(A=>{A.classList.remove(l.slideVisibleClass,l.slideFullyVisibleClass)}),i.visibleSlidesIndexes=[],i.visibleSlides=[];let y=l.spaceBetween;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*i.size:typeof y=="string"&&(y=parseFloat(y));for(let A=0;A<d.length;A+=1){const M=d[A];let T=M.swiperSlideOffset;l.cssMode&&l.centeredSlides&&(T-=d[0].swiperSlideOffset);const _=(S+(l.centeredSlides?i.minTranslate():0)-T)/(M.swiperSlideSize+y),H=(S-g[0]+(l.centeredSlides?i.minTranslate():0)-T)/(M.swiperSlideSize+y),Y=-(S-T),G=Y+i.slidesSizesGrid[A],W=Y>=0&&Y<=i.size-i.slidesSizesGrid[A];(Y>=0&&Y<i.size-1||G>1&&G<=i.size||Y<=0&&G>=i.size)&&(i.visibleSlides.push(M),i.visibleSlidesIndexes.push(A),d[A].classList.add(l.slideVisibleClass)),W&&d[A].classList.add(l.slideFullyVisibleClass),M.progress=f?-_:_,M.originalProgress=f?-H:H}}function Gf(s){const i=this;if(typeof s>"u"){const T=i.rtlTranslate?-1:1;s=i&&i.translate&&i.translate*T||0}const l=i.params,d=i.maxTranslate()-i.minTranslate();let{progress:f,isBeginning:g,isEnd:S,progressLoop:y}=i;const A=g,M=S;if(d===0)f=0,g=!0,S=!0;else{f=(s-i.minTranslate())/d;const T=Math.abs(s-i.minTranslate())<1,_=Math.abs(s-i.maxTranslate())<1;g=T||f<=0,S=_||f>=1,T&&(f=0),_&&(f=1)}if(l.loop){const T=i.getSlideIndexByData(0),_=i.getSlideIndexByData(i.slides.length-1),H=i.slidesGrid[T],Y=i.slidesGrid[_],G=i.slidesGrid[i.slidesGrid.length-1],W=Math.abs(s);W>=H?y=(W-H)/G:y=(W+G-Y)/G,y>1&&(y-=1)}Object.assign(i,{progress:f,progressLoop:y,isBeginning:g,isEnd:S}),(l.watchSlidesProgress||l.centeredSlides&&l.autoHeight)&&i.updateSlidesProgress(s),g&&!A&&i.emit("reachBeginning toEdge"),S&&!M&&i.emit("reachEnd toEdge"),(A&&!g||M&&!S)&&i.emit("fromEdge"),i.emit("progress",f)}const rs=(s,i,l)=>{i&&!s.classList.contains(l)?s.classList.add(l):!i&&s.classList.contains(l)&&s.classList.remove(l)};function Vf(){const s=this,{slides:i,params:l,slidesEl:d,activeIndex:f}=s,g=s.virtual&&l.virtual.enabled,S=s.grid&&l.grid&&l.grid.rows>1,y=_=>Ve(d,`.${l.slideClass}${_}, swiper-slide${_}`)[0];let A,M,T;if(g)if(l.loop){let _=f-s.virtual.slidesBefore;_<0&&(_=s.virtual.slides.length+_),_>=s.virtual.slides.length&&(_-=s.virtual.slides.length),A=y(`[data-swiper-slide-index="${_}"]`)}else A=y(`[data-swiper-slide-index="${f}"]`);else S?(A=i.filter(_=>_.column===f)[0],T=i.filter(_=>_.column===f+1)[0],M=i.filter(_=>_.column===f-1)[0]):A=i[f];A&&(S||(T=Pf(A,`.${l.slideClass}, swiper-slide`)[0],l.loop&&!T&&(T=i[0]),M=Mf(A,`.${l.slideClass}, swiper-slide`)[0],l.loop&&!M===0&&(M=i[i.length-1]))),i.forEach(_=>{rs(_,_===A,l.slideActiveClass),rs(_,_===T,l.slideNextClass),rs(_,_===M,l.slidePrevClass)}),s.emitSlidesClasses()}const fa=(s,i)=>{if(!s||s.destroyed||!s.params)return;const l=()=>s.isElement?"swiper-slide":`.${s.params.slideClass}`,d=i.closest(l());if(d){let f=d.querySelector(`.${s.params.lazyPreloaderClass}`);!f&&s.isElement&&(d.shadowRoot?f=d.shadowRoot.querySelector(`.${s.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{d.shadowRoot&&(f=d.shadowRoot.querySelector(`.${s.params.lazyPreloaderClass}`),f&&f.remove())})),f&&f.remove()}},ns=(s,i)=>{if(!s.slides[i])return;const l=s.slides[i].querySelector('[loading="lazy"]');l&&l.removeAttribute("loading")},Os=s=>{if(!s||s.destroyed||!s.params)return;let i=s.params.lazyPreloadPrevNext;const l=s.slides.length;if(!l||!i||i<0)return;i=Math.min(i,l);const d=s.params.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(s.params.slidesPerView),f=s.activeIndex;if(s.params.grid&&s.params.grid.rows>1){const S=f,y=[S-i];y.push(...Array.from({length:i}).map((A,M)=>S+d+M)),s.slides.forEach((A,M)=>{y.includes(A.column)&&ns(s,M)});return}const g=f+d-1;if(s.params.rewind||s.params.loop)for(let S=f-i;S<=g+i;S+=1){const y=(S%l+l)%l;(y<f||y>g)&&ns(s,y)}else for(let S=Math.max(f-i,0);S<=Math.min(g+i,l-1);S+=1)S!==f&&(S>g||S<f)&&ns(s,S)};function jf(s){const{slidesGrid:i,params:l}=s,d=s.rtlTranslate?s.translate:-s.translate;let f;for(let g=0;g<i.length;g+=1)typeof i[g+1]<"u"?d>=i[g]&&d<i[g+1]-(i[g+1]-i[g])/2?f=g:d>=i[g]&&d<i[g+1]&&(f=g+1):d>=i[g]&&(f=g);return l.normalizeSlideIndex&&(f<0||typeof f>"u")&&(f=0),f}function $f(s){const i=this,l=i.rtlTranslate?i.translate:-i.translate,{snapGrid:d,params:f,activeIndex:g,realIndex:S,snapIndex:y}=i;let A=s,M;const T=Y=>{let G=Y-i.virtual.slidesBefore;return G<0&&(G=i.virtual.slides.length+G),G>=i.virtual.slides.length&&(G-=i.virtual.slides.length),G};if(typeof A>"u"&&(A=jf(i)),d.indexOf(l)>=0)M=d.indexOf(l);else{const Y=Math.min(f.slidesPerGroupSkip,A);M=Y+Math.floor((A-Y)/f.slidesPerGroup)}if(M>=d.length&&(M=d.length-1),A===g&&!i.params.loop){M!==y&&(i.snapIndex=M,i.emit("snapIndexChange"));return}if(A===g&&i.params.loop&&i.virtual&&i.params.virtual.enabled){i.realIndex=T(A);return}const _=i.grid&&f.grid&&f.grid.rows>1;let H;if(i.virtual&&f.virtual.enabled&&f.loop)H=T(A);else if(_){const Y=i.slides.filter(W=>W.column===A)[0];let G=parseInt(Y.getAttribute("data-swiper-slide-index"),10);Number.isNaN(G)&&(G=Math.max(i.slides.indexOf(Y),0)),H=Math.floor(G/f.grid.rows)}else if(i.slides[A]){const Y=i.slides[A].getAttribute("data-swiper-slide-index");Y?H=parseInt(Y,10):H=A}else H=A;Object.assign(i,{previousSnapIndex:y,snapIndex:M,previousRealIndex:S,realIndex:H,previousIndex:g,activeIndex:A}),i.initialized&&Os(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&(S!==H&&i.emit("realIndexChange"),i.emit("slideChange"))}function qf(s,i){const l=this,d=l.params;let f=s.closest(`.${d.slideClass}, swiper-slide`);!f&&l.isElement&&i&&i.length>1&&i.includes(s)&&[...i.slice(i.indexOf(s)+1,i.length)].forEach(y=>{!f&&y.matches&&y.matches(`.${d.slideClass}, swiper-slide`)&&(f=y)});let g=!1,S;if(f){for(let y=0;y<l.slides.length;y+=1)if(l.slides[y]===f){g=!0,S=y;break}}if(f&&g)l.clickedSlide=f,l.virtual&&l.params.virtual.enabled?l.clickedIndex=parseInt(f.getAttribute("data-swiper-slide-index"),10):l.clickedIndex=S;else{l.clickedSlide=void 0,l.clickedIndex=void 0;return}d.slideToClickedSlide&&l.clickedIndex!==void 0&&l.clickedIndex!==l.activeIndex&&l.slideToClickedSlide()}var Uf={updateSize:Yf,updateSlides:Ff,updateAutoHeight:Nf,updateSlidesOffset:Bf,updateSlidesProgress:Wf,updateProgress:Gf,updateSlidesClasses:Vf,updateActiveIndex:$f,updateClickedSlide:qf};function Zf(s){s===void 0&&(s=this.isHorizontal()?"x":"y");const i=this,{params:l,rtlTranslate:d,translate:f,wrapperEl:g}=i;if(l.virtualTranslate)return d?-f:f;if(l.cssMode)return f;let S=Is(g,s);return S+=i.cssOverflowAdjustment(),d&&(S=-S),S||0}function Kf(s,i){const l=this,{rtlTranslate:d,params:f,wrapperEl:g,progress:S}=l;let y=0,A=0;const M=0;l.isHorizontal()?y=d?-s:s:A=s,f.roundLengths&&(y=Math.floor(y),A=Math.floor(A)),l.previousTranslate=l.translate,l.translate=l.isHorizontal()?y:A,f.cssMode?g[l.isHorizontal()?"scrollLeft":"scrollTop"]=l.isHorizontal()?-y:-A:f.virtualTranslate||(l.isHorizontal()?y-=l.cssOverflowAdjustment():A-=l.cssOverflowAdjustment(),g.style.transform=`translate3d(${y}px, ${A}px, ${M}px)`);let T;const _=l.maxTranslate()-l.minTranslate();_===0?T=0:T=(s-l.minTranslate())/_,T!==S&&l.updateProgress(s),l.emit("setTranslate",l.translate,i)}function Jf(){return-this.snapGrid[0]}function Qf(){return-this.snapGrid[this.snapGrid.length-1]}function ep(s,i,l,d,f){s===void 0&&(s=0),i===void 0&&(i=this.params.speed),l===void 0&&(l=!0),d===void 0&&(d=!0);const g=this,{params:S,wrapperEl:y}=g;if(g.animating&&S.preventInteractionOnTransition)return!1;const A=g.minTranslate(),M=g.maxTranslate();let T;if(d&&s>A?T=A:d&&s<M?T=M:T=s,g.updateProgress(T),S.cssMode){const _=g.isHorizontal();if(i===0)y[_?"scrollLeft":"scrollTop"]=-T;else{if(!g.support.smoothScroll)return gl({swiper:g,targetPosition:-T,side:_?"left":"top"}),!0;y.scrollTo({[_?"left":"top"]:-T,behavior:"smooth"})}return!0}return i===0?(g.setTransition(0),g.setTranslate(T),l&&(g.emit("beforeTransitionStart",i,f),g.emit("transitionEnd"))):(g.setTransition(i),g.setTranslate(T),l&&(g.emit("beforeTransitionStart",i,f),g.emit("transitionStart")),g.animating||(g.animating=!0,g.onTranslateToWrapperTransitionEnd||(g.onTranslateToWrapperTransitionEnd=function(H){!g||g.destroyed||H.target===this&&(g.wrapperEl.removeEventListener("transitionend",g.onTranslateToWrapperTransitionEnd),g.onTranslateToWrapperTransitionEnd=null,delete g.onTranslateToWrapperTransitionEnd,g.animating=!1,l&&g.emit("transitionEnd"))}),g.wrapperEl.addEventListener("transitionend",g.onTranslateToWrapperTransitionEnd))),!0}var tp={getTranslate:Zf,setTranslate:Kf,minTranslate:Jf,maxTranslate:Qf,translateTo:ep};function ip(s,i){const l=this;l.params.cssMode||(l.wrapperEl.style.transitionDuration=`${s}ms`,l.wrapperEl.style.transitionDelay=s===0?"0ms":""),l.emit("setTransition",s,i)}function xl(s){let{swiper:i,runCallbacks:l,direction:d,step:f}=s;const{activeIndex:g,previousIndex:S}=i;let y=d;if(y||(g>S?y="next":g<S?y="prev":y="reset"),i.emit(`transition${f}`),l&&g!==S){if(y==="reset"){i.emit(`slideResetTransition${f}`);return}i.emit(`slideChangeTransition${f}`),y==="next"?i.emit(`slideNextTransition${f}`):i.emit(`slidePrevTransition${f}`)}}function ap(s,i){s===void 0&&(s=!0);const l=this,{params:d}=l;d.cssMode||(d.autoHeight&&l.updateAutoHeight(),xl({swiper:l,runCallbacks:s,direction:i,step:"Start"}))}function sp(s,i){s===void 0&&(s=!0);const l=this,{params:d}=l;l.animating=!1,!d.cssMode&&(l.setTransition(0),xl({swiper:l,runCallbacks:s,direction:i,step:"End"}))}var rp={setTransition:ip,transitionStart:ap,transitionEnd:sp};function np(s,i,l,d,f){s===void 0&&(s=0),l===void 0&&(l=!0),typeof s=="string"&&(s=parseInt(s,10));const g=this;let S=s;S<0&&(S=0);const{params:y,snapGrid:A,slidesGrid:M,previousIndex:T,activeIndex:_,rtlTranslate:H,wrapperEl:Y,enabled:G}=g;if(!G&&!d&&!f||g.destroyed||g.animating&&y.preventInteractionOnTransition)return!1;typeof i>"u"&&(i=g.params.speed);const W=Math.min(g.params.slidesPerGroupSkip,S);let F=W+Math.floor((S-W)/g.params.slidesPerGroup);F>=A.length&&(F=A.length-1);const R=-A[F];if(y.normalizeSlideIndex)for(let B=0;B<M.length;B+=1){const q=-Math.floor(R*100),j=Math.floor(M[B]*100),U=Math.floor(M[B+1]*100);typeof M[B+1]<"u"?q>=j&&q<U-(U-j)/2?S=B:q>=j&&q<U&&(S=B+1):q>=j&&(S=B)}if(g.initialized&&S!==_&&(!g.allowSlideNext&&(H?R>g.translate&&R>g.minTranslate():R<g.translate&&R<g.minTranslate())||!g.allowSlidePrev&&R>g.translate&&R>g.maxTranslate()&&(_||0)!==S))return!1;S!==(T||0)&&l&&g.emit("beforeSlideChangeStart"),g.updateProgress(R);let P;if(S>_?P="next":S<_?P="prev":P="reset",H&&-R===g.translate||!H&&R===g.translate)return g.updateActiveIndex(S),y.autoHeight&&g.updateAutoHeight(),g.updateSlidesClasses(),y.effect!=="slide"&&g.setTranslate(R),P!=="reset"&&(g.transitionStart(l,P),g.transitionEnd(l,P)),!1;if(y.cssMode){const B=g.isHorizontal(),q=H?R:-R;if(i===0){const j=g.virtual&&g.params.virtual.enabled;j&&(g.wrapperEl.style.scrollSnapType="none",g._immediateVirtual=!0),j&&!g._cssModeVirtualInitialSet&&g.params.initialSlide>0?(g._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{Y[B?"scrollLeft":"scrollTop"]=q})):Y[B?"scrollLeft":"scrollTop"]=q,j&&requestAnimationFrame(()=>{g.wrapperEl.style.scrollSnapType="",g._immediateVirtual=!1})}else{if(!g.support.smoothScroll)return gl({swiper:g,targetPosition:q,side:B?"left":"top"}),!0;Y.scrollTo({[B?"left":"top"]:q,behavior:"smooth"})}return!0}return g.setTransition(i),g.setTranslate(R),g.updateActiveIndex(S),g.updateSlidesClasses(),g.emit("beforeTransitionStart",i,d),g.transitionStart(l,P),i===0?g.transitionEnd(l,P):g.animating||(g.animating=!0,g.onSlideToWrapperTransitionEnd||(g.onSlideToWrapperTransitionEnd=function(q){!g||g.destroyed||q.target===this&&(g.wrapperEl.removeEventListener("transitionend",g.onSlideToWrapperTransitionEnd),g.onSlideToWrapperTransitionEnd=null,delete g.onSlideToWrapperTransitionEnd,g.transitionEnd(l,P))}),g.wrapperEl.addEventListener("transitionend",g.onSlideToWrapperTransitionEnd)),!0}function op(s,i,l,d){s===void 0&&(s=0),l===void 0&&(l=!0),typeof s=="string"&&(s=parseInt(s,10));const f=this;if(f.destroyed)return;typeof i>"u"&&(i=f.params.speed);const g=f.grid&&f.params.grid&&f.params.grid.rows>1;let S=s;if(f.params.loop)if(f.virtual&&f.params.virtual.enabled)S=S+f.virtual.slidesBefore;else{let y;if(g){const H=S*f.params.grid.rows;y=f.slides.filter(Y=>Y.getAttribute("data-swiper-slide-index")*1===H)[0].column}else y=f.getSlideIndexByData(S);const A=g?Math.ceil(f.slides.length/f.params.grid.rows):f.slides.length,{centeredSlides:M}=f.params;let T=f.params.slidesPerView;T==="auto"?T=f.slidesPerViewDynamic():(T=Math.ceil(parseFloat(f.params.slidesPerView,10)),M&&T%2===0&&(T=T+1));let _=A-y<T;if(M&&(_=_||y<Math.ceil(T/2)),d&&M&&f.params.slidesPerView!=="auto"&&!g&&(_=!1),_){const H=M?y<f.activeIndex?"prev":"next":y-f.activeIndex-1<f.params.slidesPerView?"next":"prev";f.loopFix({direction:H,slideTo:!0,activeSlideIndex:H==="next"?y+1:y-A+1,slideRealIndex:H==="next"?f.realIndex:void 0})}if(g){const H=S*f.params.grid.rows;S=f.slides.filter(Y=>Y.getAttribute("data-swiper-slide-index")*1===H)[0].column}else S=f.getSlideIndexByData(S)}return requestAnimationFrame(()=>{f.slideTo(S,i,l,d)}),f}function lp(s,i,l){i===void 0&&(i=!0);const d=this,{enabled:f,params:g,animating:S}=d;if(!f||d.destroyed)return d;typeof s>"u"&&(s=d.params.speed);let y=g.slidesPerGroup;g.slidesPerView==="auto"&&g.slidesPerGroup===1&&g.slidesPerGroupAuto&&(y=Math.max(d.slidesPerViewDynamic("current",!0),1));const A=d.activeIndex<g.slidesPerGroupSkip?1:y,M=d.virtual&&g.virtual.enabled;if(g.loop){if(S&&!M&&g.loopPreventsSliding)return!1;if(d.loopFix({direction:"next"}),d._clientLeft=d.wrapperEl.clientLeft,d.activeIndex===d.slides.length-1&&g.cssMode)return requestAnimationFrame(()=>{d.slideTo(d.activeIndex+A,s,i,l)}),!0}return g.rewind&&d.isEnd?d.slideTo(0,s,i,l):d.slideTo(d.activeIndex+A,s,i,l)}function cp(s,i,l){i===void 0&&(i=!0);const d=this,{params:f,snapGrid:g,slidesGrid:S,rtlTranslate:y,enabled:A,animating:M}=d;if(!A||d.destroyed)return d;typeof s>"u"&&(s=d.params.speed);const T=d.virtual&&f.virtual.enabled;if(f.loop){if(M&&!T&&f.loopPreventsSliding)return!1;d.loopFix({direction:"prev"}),d._clientLeft=d.wrapperEl.clientLeft}const _=y?d.translate:-d.translate;function H(R){return R<0?-Math.floor(Math.abs(R)):Math.floor(R)}const Y=H(_),G=g.map(R=>H(R));let W=g[G.indexOf(Y)-1];if(typeof W>"u"&&f.cssMode){let R;g.forEach((P,B)=>{Y>=P&&(R=B)}),typeof R<"u"&&(W=g[R>0?R-1:R])}let F=0;if(typeof W<"u"&&(F=S.indexOf(W),F<0&&(F=d.activeIndex-1),f.slidesPerView==="auto"&&f.slidesPerGroup===1&&f.slidesPerGroupAuto&&(F=F-d.slidesPerViewDynamic("previous",!0)+1,F=Math.max(F,0))),f.rewind&&d.isBeginning){const R=d.params.virtual&&d.params.virtual.enabled&&d.virtual?d.virtual.slides.length-1:d.slides.length-1;return d.slideTo(R,s,i,l)}else if(f.loop&&d.activeIndex===0&&f.cssMode)return requestAnimationFrame(()=>{d.slideTo(F,s,i,l)}),!0;return d.slideTo(F,s,i,l)}function dp(s,i,l){i===void 0&&(i=!0);const d=this;if(!d.destroyed)return typeof s>"u"&&(s=d.params.speed),d.slideTo(d.activeIndex,s,i,l)}function hp(s,i,l,d){i===void 0&&(i=!0),d===void 0&&(d=.5);const f=this;if(f.destroyed)return;typeof s>"u"&&(s=f.params.speed);let g=f.activeIndex;const S=Math.min(f.params.slidesPerGroupSkip,g),y=S+Math.floor((g-S)/f.params.slidesPerGroup),A=f.rtlTranslate?f.translate:-f.translate;if(A>=f.snapGrid[y]){const M=f.snapGrid[y],T=f.snapGrid[y+1];A-M>(T-M)*d&&(g+=f.params.slidesPerGroup)}else{const M=f.snapGrid[y-1],T=f.snapGrid[y];A-M<=(T-M)*d&&(g-=f.params.slidesPerGroup)}return g=Math.max(g,0),g=Math.min(g,f.slidesGrid.length-1),f.slideTo(g,s,i,l)}function up(){const s=this;if(s.destroyed)return;const{params:i,slidesEl:l}=s,d=i.slidesPerView==="auto"?s.slidesPerViewDynamic():i.slidesPerView;let f=s.clickedIndex,g;const S=s.isElement?"swiper-slide":`.${i.slideClass}`;if(i.loop){if(s.animating)return;g=parseInt(s.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?f<s.loopedSlides-d/2||f>s.slides.length-s.loopedSlides+d/2?(s.loopFix(),f=s.getSlideIndex(Ve(l,`${S}[data-swiper-slide-index="${g}"]`)[0]),ri(()=>{s.slideTo(f)})):s.slideTo(f):f>s.slides.length-d?(s.loopFix(),f=s.getSlideIndex(Ve(l,`${S}[data-swiper-slide-index="${g}"]`)[0]),ri(()=>{s.slideTo(f)})):s.slideTo(f)}else s.slideTo(f)}var fp={slideTo:np,slideToLoop:op,slideNext:lp,slidePrev:cp,slideReset:dp,slideToClosest:hp,slideToClickedSlide:up};function pp(s){const i=this,{params:l,slidesEl:d}=i;if(!l.loop||i.virtual&&i.params.virtual.enabled)return;const f=()=>{Ve(d,`.${l.slideClass}, swiper-slide`).forEach((_,H)=>{_.setAttribute("data-swiper-slide-index",H)})},g=i.grid&&l.grid&&l.grid.rows>1,S=l.slidesPerGroup*(g?l.grid.rows:1),y=i.slides.length%S!==0,A=g&&i.slides.length%l.grid.rows!==0,M=T=>{for(let _=0;_<T;_+=1){const H=i.isElement?at("swiper-slide",[l.slideBlankClass]):at("div",[l.slideClass,l.slideBlankClass]);i.slidesEl.append(H)}};if(y){if(l.loopAddBlankSlides){const T=S-i.slides.length%S;M(T),i.recalcSlides(),i.updateSlides()}else Oa("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");f()}else if(A){if(l.loopAddBlankSlides){const T=l.grid.rows-i.slides.length%l.grid.rows;M(T),i.recalcSlides(),i.updateSlides()}else Oa("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");f()}else f();i.loopFix({slideRealIndex:s,direction:l.centeredSlides?void 0:"next"})}function gp(s){let{slideRealIndex:i,slideTo:l=!0,direction:d,setTranslate:f,activeSlideIndex:g,byController:S,byMousewheel:y}=s===void 0?{}:s;const A=this;if(!A.params.loop)return;A.emit("beforeLoopFix");const{slides:M,allowSlidePrev:T,allowSlideNext:_,slidesEl:H,params:Y}=A,{centeredSlides:G}=Y;if(A.allowSlidePrev=!0,A.allowSlideNext=!0,A.virtual&&Y.virtual.enabled){l&&(!Y.centeredSlides&&A.snapIndex===0?A.slideTo(A.virtual.slides.length,0,!1,!0):Y.centeredSlides&&A.snapIndex<Y.slidesPerView?A.slideTo(A.virtual.slides.length+A.snapIndex,0,!1,!0):A.snapIndex===A.snapGrid.length-1&&A.slideTo(A.virtual.slidesBefore,0,!1,!0)),A.allowSlidePrev=T,A.allowSlideNext=_,A.emit("loopFix");return}let W=Y.slidesPerView;W==="auto"?W=A.slidesPerViewDynamic():(W=Math.ceil(parseFloat(Y.slidesPerView,10)),G&&W%2===0&&(W=W+1));const F=Y.slidesPerGroupAuto?W:Y.slidesPerGroup;let R=F;R%F!==0&&(R+=F-R%F),R+=Y.loopAdditionalSlides,A.loopedSlides=R;const P=A.grid&&Y.grid&&Y.grid.rows>1;M.length<W+R?Oa("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):P&&Y.grid.fill==="row"&&Oa("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const B=[],q=[];let j=A.activeIndex;typeof g>"u"?g=A.getSlideIndex(M.filter(Z=>Z.classList.contains(Y.slideActiveClass))[0]):j=g;const U=d==="next"||!d,le=d==="prev"||!d;let J=0,K=0;const ee=P?Math.ceil(M.length/Y.grid.rows):M.length,Q=(P?M[g].column:g)+(G&&typeof f>"u"?-W/2+.5:0);if(Q<R){J=Math.max(R-Q,F);for(let Z=0;Z<R-Q;Z+=1){const se=Z-Math.floor(Z/ee)*ee;if(P){const de=ee-se-1;for(let ge=M.length-1;ge>=0;ge-=1)M[ge].column===de&&B.push(ge)}else B.push(ee-se-1)}}else if(Q+W>ee-R){K=Math.max(Q-(ee-R*2),F);for(let Z=0;Z<K;Z+=1){const se=Z-Math.floor(Z/ee)*ee;P?M.forEach((de,ge)=>{de.column===se&&q.push(ge)}):q.push(se)}}if(A.__preventObserver__=!0,requestAnimationFrame(()=>{A.__preventObserver__=!1}),le&&B.forEach(Z=>{M[Z].swiperLoopMoveDOM=!0,H.prepend(M[Z]),M[Z].swiperLoopMoveDOM=!1}),U&&q.forEach(Z=>{M[Z].swiperLoopMoveDOM=!0,H.append(M[Z]),M[Z].swiperLoopMoveDOM=!1}),A.recalcSlides(),Y.slidesPerView==="auto"?A.updateSlides():P&&(B.length>0&&le||q.length>0&&U)&&A.slides.forEach((Z,se)=>{A.grid.updateSlide(se,Z,A.slides)}),Y.watchSlidesProgress&&A.updateSlidesOffset(),l){if(B.length>0&&le){if(typeof i>"u"){const Z=A.slidesGrid[j],de=A.slidesGrid[j+J]-Z;y?A.setTranslate(A.translate-de):(A.slideTo(j+Math.ceil(J),0,!1,!0),f&&(A.touchEventsData.startTranslate=A.touchEventsData.startTranslate-de,A.touchEventsData.currentTranslate=A.touchEventsData.currentTranslate-de))}else if(f){const Z=P?B.length/Y.grid.rows:B.length;A.slideTo(A.activeIndex+Z,0,!1,!0),A.touchEventsData.currentTranslate=A.translate}}else if(q.length>0&&U)if(typeof i>"u"){const Z=A.slidesGrid[j],de=A.slidesGrid[j-K]-Z;y?A.setTranslate(A.translate-de):(A.slideTo(j-K,0,!1,!0),f&&(A.touchEventsData.startTranslate=A.touchEventsData.startTranslate-de,A.touchEventsData.currentTranslate=A.touchEventsData.currentTranslate-de))}else{const Z=P?q.length/Y.grid.rows:q.length;A.slideTo(A.activeIndex-Z,0,!1,!0)}}if(A.allowSlidePrev=T,A.allowSlideNext=_,A.controller&&A.controller.control&&!S){const Z={slideRealIndex:i,direction:d,setTranslate:f,activeSlideIndex:g,byController:!0};Array.isArray(A.controller.control)?A.controller.control.forEach(se=>{!se.destroyed&&se.params.loop&&se.loopFix({...Z,slideTo:se.params.slidesPerView===Y.slidesPerView?l:!1})}):A.controller.control instanceof A.constructor&&A.controller.control.params.loop&&A.controller.control.loopFix({...Z,slideTo:A.controller.control.params.slidesPerView===Y.slidesPerView?l:!1})}A.emit("loopFix")}function mp(){const s=this,{params:i,slidesEl:l}=s;if(!i.loop||s.virtual&&s.params.virtual.enabled)return;s.recalcSlides();const d=[];s.slides.forEach(f=>{const g=typeof f.swiperSlideIndex>"u"?f.getAttribute("data-swiper-slide-index")*1:f.swiperSlideIndex;d[g]=f}),s.slides.forEach(f=>{f.removeAttribute("data-swiper-slide-index")}),d.forEach(f=>{l.append(f)}),s.recalcSlides(),s.slideTo(s.realIndex,0)}var vp={loopCreate:pp,loopFix:gp,loopDestroy:mp};function xp(s){const i=this;if(!i.params.simulateTouch||i.params.watchOverflow&&i.isLocked||i.params.cssMode)return;const l=i.params.touchEventsTarget==="container"?i.el:i.wrapperEl;i.isElement&&(i.__preventObserver__=!0),l.style.cursor="move",l.style.cursor=s?"grabbing":"grab",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1})}function bp(){const s=this;s.params.watchOverflow&&s.isLocked||s.params.cssMode||(s.isElement&&(s.__preventObserver__=!0),s[s.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",s.isElement&&requestAnimationFrame(()=>{s.__preventObserver__=!1}))}var yp={setGrabCursor:xp,unsetGrabCursor:bp};function wp(s,i){i===void 0&&(i=this);function l(d){if(!d||d===je()||d===Xe())return null;d.assignedSlot&&(d=d.assignedSlot);const f=d.closest(s);return!f&&!d.getRootNode?null:f||l(d.getRootNode().host)}return l(i)}function wn(s,i,l){const d=Xe(),{params:f}=s,g=f.edgeSwipeDetection,S=f.edgeSwipeThreshold;return g&&(l<=S||l>=d.innerWidth-S)?g==="prevent"?(i.preventDefault(),!0):!1:!0}function Sp(s){const i=this,l=je();let d=s;d.originalEvent&&(d=d.originalEvent);const f=i.touchEventsData;if(d.type==="pointerdown"){if(f.pointerId!==null&&f.pointerId!==d.pointerId)return;f.pointerId=d.pointerId}else d.type==="touchstart"&&d.targetTouches.length===1&&(f.touchId=d.targetTouches[0].identifier);if(d.type==="touchstart"){wn(i,d,d.targetTouches[0].pageX);return}const{params:g,touches:S,enabled:y}=i;if(!y||!g.simulateTouch&&d.pointerType==="mouse"||i.animating&&g.preventInteractionOnTransition)return;!i.animating&&g.cssMode&&g.loop&&i.loopFix();let A=d.target;if(g.touchEventsTarget==="wrapper"&&!i.wrapperEl.contains(A)||"which"in d&&d.which===3||"button"in d&&d.button>0||f.isTouched&&f.isMoved)return;const M=!!g.noSwipingClass&&g.noSwipingClass!=="",T=d.composedPath?d.composedPath():d.path;M&&d.target&&d.target.shadowRoot&&T&&(A=T[0]);const _=g.noSwipingSelector?g.noSwipingSelector:`.${g.noSwipingClass}`,H=!!(d.target&&d.target.shadowRoot);if(g.noSwiping&&(H?wp(_,A):A.closest(_))){i.allowClick=!0;return}if(g.swipeHandler&&!A.closest(g.swipeHandler))return;S.currentX=d.pageX,S.currentY=d.pageY;const Y=S.currentX,G=S.currentY;if(!wn(i,d,Y))return;Object.assign(f,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),S.startX=Y,S.startY=G,f.touchStartTime=rt(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,g.threshold>0&&(f.allowThresholdMove=!1);let W=!0;A.matches(f.focusableElements)&&(W=!1,A.nodeName==="SELECT"&&(f.isTouched=!1)),l.activeElement&&l.activeElement.matches(f.focusableElements)&&l.activeElement!==A&&l.activeElement.blur();const F=W&&i.allowTouchMove&&g.touchStartPreventDefault;(g.touchStartForcePreventDefault||F)&&!A.isContentEditable&&d.preventDefault(),g.freeMode&&g.freeMode.enabled&&i.freeMode&&i.animating&&!g.cssMode&&i.freeMode.onTouchStart(),i.emit("touchStart",d)}function Ap(s){const i=je(),l=this,d=l.touchEventsData,{params:f,touches:g,rtlTranslate:S,enabled:y}=l;if(!y||!f.simulateTouch&&s.pointerType==="mouse")return;let A=s;if(A.originalEvent&&(A=A.originalEvent),A.type==="pointermove"&&(d.touchId!==null||A.pointerId!==d.pointerId))return;let M;if(A.type==="touchmove"){if(M=[...A.changedTouches].filter(U=>U.identifier===d.touchId)[0],!M||M.identifier!==d.touchId)return}else M=A;if(!d.isTouched){d.startMoving&&d.isScrolling&&l.emit("touchMoveOpposite",A);return}const T=M.pageX,_=M.pageY;if(A.preventedByNestedSwiper){g.startX=T,g.startY=_;return}if(!l.allowTouchMove){A.target.matches(d.focusableElements)||(l.allowClick=!1),d.isTouched&&(Object.assign(g,{startX:T,startY:_,currentX:T,currentY:_}),d.touchStartTime=rt());return}if(f.touchReleaseOnEdges&&!f.loop){if(l.isVertical()){if(_<g.startY&&l.translate<=l.maxTranslate()||_>g.startY&&l.translate>=l.minTranslate()){d.isTouched=!1,d.isMoved=!1;return}}else if(T<g.startX&&l.translate<=l.maxTranslate()||T>g.startX&&l.translate>=l.minTranslate())return}if(i.activeElement&&A.target===i.activeElement&&A.target.matches(d.focusableElements)){d.isMoved=!0,l.allowClick=!1;return}d.allowTouchCallbacks&&l.emit("touchMove",A),g.previousX=g.currentX,g.previousY=g.currentY,g.currentX=T,g.currentY=_;const H=g.currentX-g.startX,Y=g.currentY-g.startY;if(l.params.threshold&&Math.sqrt(H**2+Y**2)<l.params.threshold)return;if(typeof d.isScrolling>"u"){let U;l.isHorizontal()&&g.currentY===g.startY||l.isVertical()&&g.currentX===g.startX?d.isScrolling=!1:H*H+Y*Y>=25&&(U=Math.atan2(Math.abs(Y),Math.abs(H))*180/Math.PI,d.isScrolling=l.isHorizontal()?U>f.touchAngle:90-U>f.touchAngle)}if(d.isScrolling&&l.emit("touchMoveOpposite",A),typeof d.startMoving>"u"&&(g.currentX!==g.startX||g.currentY!==g.startY)&&(d.startMoving=!0),d.isScrolling||A.type==="touchmove"&&d.preventTouchMoveFromPointerMove){d.isTouched=!1;return}if(!d.startMoving)return;l.allowClick=!1,!f.cssMode&&A.cancelable&&A.preventDefault(),f.touchMoveStopPropagation&&!f.nested&&A.stopPropagation();let G=l.isHorizontal()?H:Y,W=l.isHorizontal()?g.currentX-g.previousX:g.currentY-g.previousY;f.oneWayMovement&&(G=Math.abs(G)*(S?1:-1),W=Math.abs(W)*(S?1:-1)),g.diff=G,G*=f.touchRatio,S&&(G=-G,W=-W);const F=l.touchesDirection;l.swipeDirection=G>0?"prev":"next",l.touchesDirection=W>0?"prev":"next";const R=l.params.loop&&!f.cssMode,P=l.touchesDirection==="next"&&l.allowSlideNext||l.touchesDirection==="prev"&&l.allowSlidePrev;if(!d.isMoved){if(R&&P&&l.loopFix({direction:l.swipeDirection}),d.startTranslate=l.getTranslate(),l.setTransition(0),l.animating){const U=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});l.wrapperEl.dispatchEvent(U)}d.allowMomentumBounce=!1,f.grabCursor&&(l.allowSlideNext===!0||l.allowSlidePrev===!0)&&l.setGrabCursor(!0),l.emit("sliderFirstMove",A)}let B;if(new Date().getTime(),d.isMoved&&d.allowThresholdMove&&F!==l.touchesDirection&&R&&P&&Math.abs(G)>=1){Object.assign(g,{startX:T,startY:_,currentX:T,currentY:_,startTranslate:d.currentTranslate}),d.loopSwapReset=!0,d.startTranslate=d.currentTranslate;return}l.emit("sliderMove",A),d.isMoved=!0,d.currentTranslate=G+d.startTranslate;let q=!0,j=f.resistanceRatio;if(f.touchReleaseOnEdges&&(j=0),G>0?(R&&P&&!B&&d.allowThresholdMove&&d.currentTranslate>(f.centeredSlides?l.minTranslate()-l.slidesSizesGrid[l.activeIndex+1]:l.minTranslate())&&l.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),d.currentTranslate>l.minTranslate()&&(q=!1,f.resistance&&(d.currentTranslate=l.minTranslate()-1+(-l.minTranslate()+d.startTranslate+G)**j))):G<0&&(R&&P&&!B&&d.allowThresholdMove&&d.currentTranslate<(f.centeredSlides?l.maxTranslate()+l.slidesSizesGrid[l.slidesSizesGrid.length-1]:l.maxTranslate())&&l.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:l.slides.length-(f.slidesPerView==="auto"?l.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10)))}),d.currentTranslate<l.maxTranslate()&&(q=!1,f.resistance&&(d.currentTranslate=l.maxTranslate()+1-(l.maxTranslate()-d.startTranslate-G)**j))),q&&(A.preventedByNestedSwiper=!0),!l.allowSlideNext&&l.swipeDirection==="next"&&d.currentTranslate<d.startTranslate&&(d.currentTranslate=d.startTranslate),!l.allowSlidePrev&&l.swipeDirection==="prev"&&d.currentTranslate>d.startTranslate&&(d.currentTranslate=d.startTranslate),!l.allowSlidePrev&&!l.allowSlideNext&&(d.currentTranslate=d.startTranslate),f.threshold>0)if(Math.abs(G)>f.threshold||d.allowThresholdMove){if(!d.allowThresholdMove){d.allowThresholdMove=!0,g.startX=g.currentX,g.startY=g.currentY,d.currentTranslate=d.startTranslate,g.diff=l.isHorizontal()?g.currentX-g.startX:g.currentY-g.startY;return}}else{d.currentTranslate=d.startTranslate;return}!f.followFinger||f.cssMode||((f.freeMode&&f.freeMode.enabled&&l.freeMode||f.watchSlidesProgress)&&(l.updateActiveIndex(),l.updateSlidesClasses()),f.freeMode&&f.freeMode.enabled&&l.freeMode&&l.freeMode.onTouchMove(),l.updateProgress(d.currentTranslate),l.setTranslate(d.currentTranslate))}function kp(s){const i=this,l=i.touchEventsData;let d=s;d.originalEvent&&(d=d.originalEvent);let f;if(d.type==="touchend"||d.type==="touchcancel"){if(f=[...d.changedTouches].filter(j=>j.identifier===l.touchId)[0],!f||f.identifier!==l.touchId)return}else{if(l.touchId!==null||d.pointerId!==l.pointerId)return;f=d}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(d.type)&&!(["pointercancel","contextmenu"].includes(d.type)&&(i.browser.isSafari||i.browser.isWebView)))return;l.pointerId=null,l.touchId=null;const{params:S,touches:y,rtlTranslate:A,slidesGrid:M,enabled:T}=i;if(!T||!S.simulateTouch&&d.pointerType==="mouse")return;if(l.allowTouchCallbacks&&i.emit("touchEnd",d),l.allowTouchCallbacks=!1,!l.isTouched){l.isMoved&&S.grabCursor&&i.setGrabCursor(!1),l.isMoved=!1,l.startMoving=!1;return}S.grabCursor&&l.isMoved&&l.isTouched&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!1);const _=rt(),H=_-l.touchStartTime;if(i.allowClick){const j=d.path||d.composedPath&&d.composedPath();i.updateClickedSlide(j&&j[0]||d.target,j),i.emit("tap click",d),H<300&&_-l.lastClickTime<300&&i.emit("doubleTap doubleClick",d)}if(l.lastClickTime=rt(),ri(()=>{i.destroyed||(i.allowClick=!0)}),!l.isTouched||!l.isMoved||!i.swipeDirection||y.diff===0&&!l.loopSwapReset||l.currentTranslate===l.startTranslate&&!l.loopSwapReset){l.isTouched=!1,l.isMoved=!1,l.startMoving=!1;return}l.isTouched=!1,l.isMoved=!1,l.startMoving=!1;let Y;if(S.followFinger?Y=A?i.translate:-i.translate:Y=-l.currentTranslate,S.cssMode)return;if(S.freeMode&&S.freeMode.enabled){i.freeMode.onTouchEnd({currentPos:Y});return}const G=Y>=-i.maxTranslate()&&!i.params.loop;let W=0,F=i.slidesSizesGrid[0];for(let j=0;j<M.length;j+=j<S.slidesPerGroupSkip?1:S.slidesPerGroup){const U=j<S.slidesPerGroupSkip-1?1:S.slidesPerGroup;typeof M[j+U]<"u"?(G||Y>=M[j]&&Y<M[j+U])&&(W=j,F=M[j+U]-M[j]):(G||Y>=M[j])&&(W=j,F=M[M.length-1]-M[M.length-2])}let R=null,P=null;S.rewind&&(i.isBeginning?P=S.virtual&&S.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(R=0));const B=(Y-M[W])/F,q=W<S.slidesPerGroupSkip-1?1:S.slidesPerGroup;if(H>S.longSwipesMs){if(!S.longSwipes){i.slideTo(i.activeIndex);return}i.swipeDirection==="next"&&(B>=S.longSwipesRatio?i.slideTo(S.rewind&&i.isEnd?R:W+q):i.slideTo(W)),i.swipeDirection==="prev"&&(B>1-S.longSwipesRatio?i.slideTo(W+q):P!==null&&B<0&&Math.abs(B)>S.longSwipesRatio?i.slideTo(P):i.slideTo(W))}else{if(!S.shortSwipes){i.slideTo(i.activeIndex);return}i.navigation&&(d.target===i.navigation.nextEl||d.target===i.navigation.prevEl)?d.target===i.navigation.nextEl?i.slideTo(W+q):i.slideTo(W):(i.swipeDirection==="next"&&i.slideTo(R!==null?R:W+q),i.swipeDirection==="prev"&&i.slideTo(P!==null?P:W))}}function Sn(){const s=this,{params:i,el:l}=s;if(l&&l.offsetWidth===0)return;i.breakpoints&&s.setBreakpoint();const{allowSlideNext:d,allowSlidePrev:f,snapGrid:g}=s,S=s.virtual&&s.params.virtual.enabled;s.allowSlideNext=!0,s.allowSlidePrev=!0,s.updateSize(),s.updateSlides(),s.updateSlidesClasses();const y=S&&i.loop;(i.slidesPerView==="auto"||i.slidesPerView>1)&&s.isEnd&&!s.isBeginning&&!s.params.centeredSlides&&!y?s.slideTo(s.slides.length-1,0,!1,!0):s.params.loop&&!S?s.slideToLoop(s.realIndex,0,!1,!0):s.slideTo(s.activeIndex,0,!1,!0),s.autoplay&&s.autoplay.running&&s.autoplay.paused&&(clearTimeout(s.autoplay.resizeTimeout),s.autoplay.resizeTimeout=setTimeout(()=>{s.autoplay&&s.autoplay.running&&s.autoplay.paused&&s.autoplay.resume()},500)),s.allowSlidePrev=f,s.allowSlideNext=d,s.params.watchOverflow&&g!==s.snapGrid&&s.checkOverflow()}function Cp(s){const i=this;i.enabled&&(i.allowClick||(i.params.preventClicks&&s.preventDefault(),i.params.preventClicksPropagation&&i.animating&&(s.stopPropagation(),s.stopImmediatePropagation())))}function Ep(){const s=this,{wrapperEl:i,rtlTranslate:l,enabled:d}=s;if(!d)return;s.previousTranslate=s.translate,s.isHorizontal()?s.translate=-i.scrollLeft:s.translate=-i.scrollTop,s.translate===0&&(s.translate=0),s.updateActiveIndex(),s.updateSlidesClasses();let f;const g=s.maxTranslate()-s.minTranslate();g===0?f=0:f=(s.translate-s.minTranslate())/g,f!==s.progress&&s.updateProgress(l?-s.translate:s.translate),s.emit("setTranslate",s.translate,!1)}function Tp(s){const i=this;fa(i,s.target),!(i.params.cssMode||i.params.slidesPerView!=="auto"&&!i.params.autoHeight)&&i.update()}function Lp(){const s=this;s.documentTouchHandlerProceeded||(s.documentTouchHandlerProceeded=!0,s.params.touchReleaseOnEdges&&(s.el.style.touchAction="auto"))}const bl=(s,i)=>{const l=je(),{params:d,el:f,wrapperEl:g,device:S}=s,y=!!d.nested,A=i==="on"?"addEventListener":"removeEventListener",M=i;l[A]("touchstart",s.onDocumentTouchStart,{passive:!1,capture:y}),f[A]("touchstart",s.onTouchStart,{passive:!1}),f[A]("pointerdown",s.onTouchStart,{passive:!1}),l[A]("touchmove",s.onTouchMove,{passive:!1,capture:y}),l[A]("pointermove",s.onTouchMove,{passive:!1,capture:y}),l[A]("touchend",s.onTouchEnd,{passive:!0}),l[A]("pointerup",s.onTouchEnd,{passive:!0}),l[A]("pointercancel",s.onTouchEnd,{passive:!0}),l[A]("touchcancel",s.onTouchEnd,{passive:!0}),l[A]("pointerout",s.onTouchEnd,{passive:!0}),l[A]("pointerleave",s.onTouchEnd,{passive:!0}),l[A]("contextmenu",s.onTouchEnd,{passive:!0}),(d.preventClicks||d.preventClicksPropagation)&&f[A]("click",s.onClick,!0),d.cssMode&&g[A]("scroll",s.onScroll),d.updateOnWindowResize?s[M](S.ios||S.android?"resize orientationchange observerUpdate":"resize observerUpdate",Sn,!0):s[M]("observerUpdate",Sn,!0),f[A]("load",s.onLoad,{capture:!0})};function _p(){const s=this,{params:i}=s;s.onTouchStart=Sp.bind(s),s.onTouchMove=Ap.bind(s),s.onTouchEnd=kp.bind(s),s.onDocumentTouchStart=Lp.bind(s),i.cssMode&&(s.onScroll=Ep.bind(s)),s.onClick=Cp.bind(s),s.onLoad=Tp.bind(s),bl(s,"on")}function Mp(){bl(this,"off")}var Pp={attachEvents:_p,detachEvents:Mp};const An=(s,i)=>s.grid&&i.grid&&i.grid.rows>1;function Ip(){const s=this,{realIndex:i,initialized:l,params:d,el:f}=s,g=d.breakpoints;if(!g||g&&Object.keys(g).length===0)return;const S=s.getBreakpoint(g,s.params.breakpointsBase,s.el);if(!S||s.currentBreakpoint===S)return;const A=(S in g?g[S]:void 0)||s.originalParams,M=An(s,d),T=An(s,A),_=s.params.grabCursor,H=A.grabCursor,Y=d.enabled;M&&!T?(f.classList.remove(`${d.containerModifierClass}grid`,`${d.containerModifierClass}grid-column`),s.emitContainerClasses()):!M&&T&&(f.classList.add(`${d.containerModifierClass}grid`),(A.grid.fill&&A.grid.fill==="column"||!A.grid.fill&&d.grid.fill==="column")&&f.classList.add(`${d.containerModifierClass}grid-column`),s.emitContainerClasses()),_&&!H?s.unsetGrabCursor():!_&&H&&s.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(B=>{if(typeof A[B]>"u")return;const q=d[B]&&d[B].enabled,j=A[B]&&A[B].enabled;q&&!j&&s[B].disable(),!q&&j&&s[B].enable()});const G=A.direction&&A.direction!==d.direction,W=d.loop&&(A.slidesPerView!==d.slidesPerView||G),F=d.loop;G&&l&&s.changeDirection(),it(s.params,A);const R=s.params.enabled,P=s.params.loop;Object.assign(s,{allowTouchMove:s.params.allowTouchMove,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev}),Y&&!R?s.disable():!Y&&R&&s.enable(),s.currentBreakpoint=S,s.emit("_beforeBreakpoint",A),l&&(W?(s.loopDestroy(),s.loopCreate(i),s.updateSlides()):!F&&P?(s.loopCreate(i),s.updateSlides()):F&&!P&&s.loopDestroy()),s.emit("breakpoint",A)}function zp(s,i,l){if(i===void 0&&(i="window"),!s||i==="container"&&!l)return;let d=!1;const f=Xe(),g=i==="window"?f.innerHeight:l.clientHeight,S=Object.keys(s).map(y=>{if(typeof y=="string"&&y.indexOf("@")===0){const A=parseFloat(y.substr(1));return{value:g*A,point:y}}return{value:y,point:y}});S.sort((y,A)=>parseInt(y.value,10)-parseInt(A.value,10));for(let y=0;y<S.length;y+=1){const{point:A,value:M}=S[y];i==="window"?f.matchMedia(`(min-width: ${M}px)`).matches&&(d=A):M<=l.clientWidth&&(d=A)}return d||"max"}var Op={setBreakpoint:Ip,getBreakpoint:zp};function Dp(s,i){const l=[];return s.forEach(d=>{typeof d=="object"?Object.keys(d).forEach(f=>{d[f]&&l.push(i+f)}):typeof d=="string"&&l.push(i+d)}),l}function Hp(){const s=this,{classNames:i,params:l,rtl:d,el:f,device:g}=s,S=Dp(["initialized",l.direction,{"free-mode":s.params.freeMode&&l.freeMode.enabled},{autoheight:l.autoHeight},{rtl:d},{grid:l.grid&&l.grid.rows>1},{"grid-column":l.grid&&l.grid.rows>1&&l.grid.fill==="column"},{android:g.android},{ios:g.ios},{"css-mode":l.cssMode},{centered:l.cssMode&&l.centeredSlides},{"watch-progress":l.watchSlidesProgress}],l.containerModifierClass);i.push(...S),f.classList.add(...i),s.emitContainerClasses()}function Xp(){const s=this,{el:i,classNames:l}=s;i.classList.remove(...l),s.emitContainerClasses()}var Rp={addClasses:Hp,removeClasses:Xp};function Yp(){const s=this,{isLocked:i,params:l}=s,{slidesOffsetBefore:d}=l;if(d){const f=s.slides.length-1,g=s.slidesGrid[f]+s.slidesSizesGrid[f]+d*2;s.isLocked=s.size>g}else s.isLocked=s.snapGrid.length===1;l.allowSlideNext===!0&&(s.allowSlideNext=!s.isLocked),l.allowSlidePrev===!0&&(s.allowSlidePrev=!s.isLocked),i&&i!==s.isLocked&&(s.isEnd=!1),i!==s.isLocked&&s.emit(s.isLocked?"lock":"unlock")}var Fp={checkOverflow:Yp},kn={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Np(s,i){return function(d){d===void 0&&(d={});const f=Object.keys(d)[0],g=d[f];if(typeof g!="object"||g===null){it(i,d);return}if(s[f]===!0&&(s[f]={enabled:!0}),f==="navigation"&&s[f]&&s[f].enabled&&!s[f].prevEl&&!s[f].nextEl&&(s[f].auto=!0),["pagination","scrollbar"].indexOf(f)>=0&&s[f]&&s[f].enabled&&!s[f].el&&(s[f].auto=!0),!(f in s&&"enabled"in g)){it(i,d);return}typeof s[f]=="object"&&!("enabled"in s[f])&&(s[f].enabled=!0),s[f]||(s[f]={enabled:!1}),it(i,d)}}const os={eventsEmitter:Rf,update:Uf,translate:tp,transition:rp,slide:fp,loop:vp,grabCursor:yp,events:Pp,breakpoints:Op,checkOverflow:Fp,classes:Rp},ls={};class He{constructor(){let i,l;for(var d=arguments.length,f=new Array(d),g=0;g<d;g++)f[g]=arguments[g];f.length===1&&f[0].constructor&&Object.prototype.toString.call(f[0]).slice(8,-1)==="Object"?l=f[0]:[i,l]=f,l||(l={}),l=it({},l),i&&!l.el&&(l.el=i);const S=je();if(l.el&&typeof l.el=="string"&&S.querySelectorAll(l.el).length>1){const T=[];return S.querySelectorAll(l.el).forEach(_=>{const H=it({},l,{el:_});T.push(new He(H))}),T}const y=this;y.__swiper__=!0,y.support=ml(),y.device=vl({userAgent:l.userAgent}),y.browser=Df(),y.eventsListeners={},y.eventsAnyListeners=[],y.modules=[...y.__modules__],l.modules&&Array.isArray(l.modules)&&y.modules.push(...l.modules);const A={};y.modules.forEach(T=>{T({params:l,swiper:y,extendParams:Np(l,A),on:y.on.bind(y),once:y.once.bind(y),off:y.off.bind(y),emit:y.emit.bind(y)})});const M=it({},kn,A);return y.params=it({},M,ls,l),y.originalParams=it({},y.params),y.passedParams=it({},l),y.params&&y.params.on&&Object.keys(y.params.on).forEach(T=>{y.on(T,y.params.on[T])}),y.params&&y.params.onAny&&y.onAny(y.params.onAny),Object.assign(y,{enabled:y.params.enabled,el:i,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return y.params.direction==="horizontal"},isVertical(){return y.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:y.params.allowSlideNext,allowSlidePrev:y.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:y.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:y.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),y.emit("_swiper"),y.params.init&&y.init(),y}getDirectionLabel(i){return this.isHorizontal()?i:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[i]}getSlideIndex(i){const{slidesEl:l,params:d}=this,f=Ve(l,`.${d.slideClass}, swiper-slide`),g=Ni(f[0]);return Ni(i)-g}getSlideIndexByData(i){return this.getSlideIndex(this.slides.filter(l=>l.getAttribute("data-swiper-slide-index")*1===i)[0])}recalcSlides(){const i=this,{slidesEl:l,params:d}=i;i.slides=Ve(l,`.${d.slideClass}, swiper-slide`)}enable(){const i=this;i.enabled||(i.enabled=!0,i.params.grabCursor&&i.setGrabCursor(),i.emit("enable"))}disable(){const i=this;i.enabled&&(i.enabled=!1,i.params.grabCursor&&i.unsetGrabCursor(),i.emit("disable"))}setProgress(i,l){const d=this;i=Math.min(Math.max(i,0),1);const f=d.minTranslate(),S=(d.maxTranslate()-f)*i+f;d.translateTo(S,typeof l>"u"?0:l),d.updateActiveIndex(),d.updateSlidesClasses()}emitContainerClasses(){const i=this;if(!i.params._emitClasses||!i.el)return;const l=i.el.className.split(" ").filter(d=>d.indexOf("swiper")===0||d.indexOf(i.params.containerModifierClass)===0);i.emit("_containerClasses",l.join(" "))}getSlideClasses(i){const l=this;return l.destroyed?"":i.className.split(" ").filter(d=>d.indexOf("swiper-slide")===0||d.indexOf(l.params.slideClass)===0).join(" ")}emitSlidesClasses(){const i=this;if(!i.params._emitClasses||!i.el)return;const l=[];i.slides.forEach(d=>{const f=i.getSlideClasses(d);l.push({slideEl:d,classNames:f}),i.emit("_slideClass",d,f)}),i.emit("_slideClasses",l)}slidesPerViewDynamic(i,l){i===void 0&&(i="current"),l===void 0&&(l=!1);const d=this,{params:f,slides:g,slidesGrid:S,slidesSizesGrid:y,size:A,activeIndex:M}=d;let T=1;if(typeof f.slidesPerView=="number")return f.slidesPerView;if(f.centeredSlides){let _=g[M]?Math.ceil(g[M].swiperSlideSize):0,H;for(let Y=M+1;Y<g.length;Y+=1)g[Y]&&!H&&(_+=Math.ceil(g[Y].swiperSlideSize),T+=1,_>A&&(H=!0));for(let Y=M-1;Y>=0;Y-=1)g[Y]&&!H&&(_+=g[Y].swiperSlideSize,T+=1,_>A&&(H=!0))}else if(i==="current")for(let _=M+1;_<g.length;_+=1)(l?S[_]+y[_]-S[M]<A:S[_]-S[M]<A)&&(T+=1);else for(let _=M-1;_>=0;_-=1)S[M]-S[_]<A&&(T+=1);return T}update(){const i=this;if(!i||i.destroyed)return;const{snapGrid:l,params:d}=i;d.breakpoints&&i.setBreakpoint(),[...i.el.querySelectorAll('[loading="lazy"]')].forEach(S=>{S.complete&&fa(i,S)}),i.updateSize(),i.updateSlides(),i.updateProgress(),i.updateSlidesClasses();function f(){const S=i.rtlTranslate?i.translate*-1:i.translate,y=Math.min(Math.max(S,i.maxTranslate()),i.minTranslate());i.setTranslate(y),i.updateActiveIndex(),i.updateSlidesClasses()}let g;if(d.freeMode&&d.freeMode.enabled&&!d.cssMode)f(),d.autoHeight&&i.updateAutoHeight();else{if((d.slidesPerView==="auto"||d.slidesPerView>1)&&i.isEnd&&!d.centeredSlides){const S=i.virtual&&d.virtual.enabled?i.virtual.slides:i.slides;g=i.slideTo(S.length-1,0,!1,!0)}else g=i.slideTo(i.activeIndex,0,!1,!0);g||f()}d.watchOverflow&&l!==i.snapGrid&&i.checkOverflow(),i.emit("update")}changeDirection(i,l){l===void 0&&(l=!0);const d=this,f=d.params.direction;return i||(i=f==="horizontal"?"vertical":"horizontal"),i===f||i!=="horizontal"&&i!=="vertical"||(d.el.classList.remove(`${d.params.containerModifierClass}${f}`),d.el.classList.add(`${d.params.containerModifierClass}${i}`),d.emitContainerClasses(),d.params.direction=i,d.slides.forEach(g=>{i==="vertical"?g.style.width="":g.style.height=""}),d.emit("changeDirection"),l&&d.update()),d}changeLanguageDirection(i){const l=this;l.rtl&&i==="rtl"||!l.rtl&&i==="ltr"||(l.rtl=i==="rtl",l.rtlTranslate=l.params.direction==="horizontal"&&l.rtl,l.rtl?(l.el.classList.add(`${l.params.containerModifierClass}rtl`),l.el.dir="rtl"):(l.el.classList.remove(`${l.params.containerModifierClass}rtl`),l.el.dir="ltr"),l.update())}mount(i){const l=this;if(l.mounted)return!0;let d=i||l.params.el;if(typeof d=="string"&&(d=document.querySelector(d)),!d)return!1;d.swiper=l,d.parentNode&&d.parentNode.host&&d.parentNode.host.nodeName===l.params.swiperElementNodeName.toUpperCase()&&(l.isElement=!0);const f=()=>`.${(l.params.wrapperClass||"").trim().split(" ").join(".")}`;let S=(()=>d&&d.shadowRoot&&d.shadowRoot.querySelector?d.shadowRoot.querySelector(f()):Ve(d,f())[0])();return!S&&l.params.createElements&&(S=at("div",l.params.wrapperClass),d.append(S),Ve(d,`.${l.params.slideClass}`).forEach(y=>{S.append(y)})),Object.assign(l,{el:d,wrapperEl:S,slidesEl:l.isElement&&!d.parentNode.host.slideSlots?d.parentNode.host:S,hostEl:l.isElement?d.parentNode.host:d,mounted:!0,rtl:d.dir.toLowerCase()==="rtl"||Ht(d,"direction")==="rtl",rtlTranslate:l.params.direction==="horizontal"&&(d.dir.toLowerCase()==="rtl"||Ht(d,"direction")==="rtl"),wrongRTL:Ht(S,"display")==="-webkit-box"}),!0}init(i){const l=this;if(l.initialized||l.mount(i)===!1)return l;l.emit("beforeInit"),l.params.breakpoints&&l.setBreakpoint(),l.addClasses(),l.updateSize(),l.updateSlides(),l.params.watchOverflow&&l.checkOverflow(),l.params.grabCursor&&l.enabled&&l.setGrabCursor(),l.params.loop&&l.virtual&&l.params.virtual.enabled?l.slideTo(l.params.initialSlide+l.virtual.slidesBefore,0,l.params.runCallbacksOnInit,!1,!0):l.slideTo(l.params.initialSlide,0,l.params.runCallbacksOnInit,!1,!0),l.params.loop&&l.loopCreate(),l.attachEvents();const f=[...l.el.querySelectorAll('[loading="lazy"]')];return l.isElement&&f.push(...l.hostEl.querySelectorAll('[loading="lazy"]')),f.forEach(g=>{g.complete?fa(l,g):g.addEventListener("load",S=>{fa(l,S.target)})}),Os(l),l.initialized=!0,Os(l),l.emit("init"),l.emit("afterInit"),l}destroy(i,l){i===void 0&&(i=!0),l===void 0&&(l=!0);const d=this,{params:f,el:g,wrapperEl:S,slides:y}=d;return typeof d.params>"u"||d.destroyed||(d.emit("beforeDestroy"),d.initialized=!1,d.detachEvents(),f.loop&&d.loopDestroy(),l&&(d.removeClasses(),g.removeAttribute("style"),S.removeAttribute("style"),y&&y.length&&y.forEach(A=>{A.classList.remove(f.slideVisibleClass,f.slideFullyVisibleClass,f.slideActiveClass,f.slideNextClass,f.slidePrevClass),A.removeAttribute("style"),A.removeAttribute("data-swiper-slide-index")})),d.emit("destroy"),Object.keys(d.eventsListeners).forEach(A=>{d.off(A)}),i!==!1&&(d.el.swiper=null,Tf(d)),d.destroyed=!0),null}static extendDefaults(i){it(ls,i)}static get extendedDefaults(){return ls}static get defaults(){return kn}static installModule(i){He.prototype.__modules__||(He.prototype.__modules__=[]);const l=He.prototype.__modules__;typeof i=="function"&&l.indexOf(i)<0&&l.push(i)}static use(i){return Array.isArray(i)?(i.forEach(l=>He.installModule(l)),He):(He.installModule(i),He)}}Object.keys(os).forEach(s=>{Object.keys(os[s]).forEach(i=>{He.prototype[i]=os[s][i]})});He.use([Hf,Xf]);function Bp(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;l({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let g;const S=je();i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const y=S.createElement("div");function A(G,W){const F=i.params.virtual;if(F.cache&&i.virtual.cache[W])return i.virtual.cache[W];let R;return F.renderSlide?(R=F.renderSlide.call(i,G,W),typeof R=="string"&&(y.innerHTML=R,R=y.children[0])):i.isElement?R=at("swiper-slide"):R=at("div",i.params.slideClass),R.setAttribute("data-swiper-slide-index",W),F.renderSlide||(R.innerHTML=G),F.cache&&(i.virtual.cache[W]=R),R}function M(G,W){const{slidesPerView:F,slidesPerGroup:R,centeredSlides:P,loop:B,initialSlide:q}=i.params;if(W&&!B&&q>0)return;const{addSlidesBefore:j,addSlidesAfter:U}=i.params.virtual,{from:le,to:J,slides:K,slidesGrid:ee,offset:ne}=i.virtual;i.params.cssMode||i.updateActiveIndex();const Q=i.activeIndex||0;let Z;i.rtlTranslate?Z="right":Z=i.isHorizontal()?"left":"top";let se,de;P?(se=Math.floor(F/2)+R+U,de=Math.floor(F/2)+R+j):(se=F+(R-1)+U,de=(B?F:R)+j);let ge=Q-de,te=Q+se;B||(ge=Math.max(ge,0),te=Math.min(te,K.length-1));let oe=(i.slidesGrid[ge]||0)-(i.slidesGrid[0]||0);B&&Q>=de?(ge-=de,P||(oe+=i.slidesGrid[0])):B&&Q<de&&(ge=-de,P&&(oe+=i.slidesGrid[0])),Object.assign(i.virtual,{from:ge,to:te,offset:oe,slidesGrid:i.slidesGrid,slidesBefore:de,slidesAfter:se});function ue(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),f("virtualUpdate")}if(le===ge&&J===te&&!G){i.slidesGrid!==ee&&oe!==ne&&i.slides.forEach(ve=>{ve.style[Z]=`${oe-Math.abs(i.cssOverflowAdjustment())}px`}),i.updateProgress(),f("virtualUpdate");return}if(i.params.virtual.renderExternal){i.params.virtual.renderExternal.call(i,{offset:oe,from:ge,to:te,slides:function(){const Ae=[];for(let Le=ge;Le<=te;Le+=1)Ae.push(K[Le]);return Ae}()}),i.params.virtual.renderExternalUpdate?ue():f("virtualUpdate");return}const ye=[],he=[],pe=ve=>{let Ae=ve;return ve<0?Ae=K.length+ve:Ae>=K.length&&(Ae=Ae-K.length),Ae};if(G)i.slides.filter(ve=>ve.matches(`.${i.params.slideClass}, swiper-slide`)).forEach(ve=>{ve.remove()});else for(let ve=le;ve<=J;ve+=1)if(ve<ge||ve>te){const Ae=pe(ve);i.slides.filter(Le=>Le.matches(`.${i.params.slideClass}[data-swiper-slide-index="${Ae}"], swiper-slide[data-swiper-slide-index="${Ae}"]`)).forEach(Le=>{Le.remove()})}const fe=B?-K.length:0,Ce=B?K.length*2:K.length;for(let ve=fe;ve<Ce;ve+=1)if(ve>=ge&&ve<=te){const Ae=pe(ve);typeof J>"u"||G?he.push(Ae):(ve>J&&he.push(Ae),ve<le&&ye.push(Ae))}if(he.forEach(ve=>{i.slidesEl.append(A(K[ve],ve))}),B)for(let ve=ye.length-1;ve>=0;ve-=1){const Ae=ye[ve];i.slidesEl.prepend(A(K[Ae],Ae))}else ye.sort((ve,Ae)=>Ae-ve),ye.forEach(ve=>{i.slidesEl.prepend(A(K[ve],ve))});Ve(i.slidesEl,".swiper-slide, swiper-slide").forEach(ve=>{ve.style[Z]=`${oe-Math.abs(i.cssOverflowAdjustment())}px`}),ue()}function T(G){if(typeof G=="object"&&"length"in G)for(let W=0;W<G.length;W+=1)G[W]&&i.virtual.slides.push(G[W]);else i.virtual.slides.push(G);M(!0)}function _(G){const W=i.activeIndex;let F=W+1,R=1;if(Array.isArray(G)){for(let P=0;P<G.length;P+=1)G[P]&&i.virtual.slides.unshift(G[P]);F=W+G.length,R=G.length}else i.virtual.slides.unshift(G);if(i.params.virtual.cache){const P=i.virtual.cache,B={};Object.keys(P).forEach(q=>{const j=P[q],U=j.getAttribute("data-swiper-slide-index");U&&j.setAttribute("data-swiper-slide-index",parseInt(U,10)+R),B[parseInt(q,10)+R]=j}),i.virtual.cache=B}M(!0),i.slideTo(F,0)}function H(G){if(typeof G>"u"||G===null)return;let W=i.activeIndex;if(Array.isArray(G))for(let F=G.length-1;F>=0;F-=1)i.params.virtual.cache&&(delete i.virtual.cache[G[F]],Object.keys(i.virtual.cache).forEach(R=>{R>G&&(i.virtual.cache[R-1]=i.virtual.cache[R],i.virtual.cache[R-1].setAttribute("data-swiper-slide-index",R-1),delete i.virtual.cache[R])})),i.virtual.slides.splice(G[F],1),G[F]<W&&(W-=1),W=Math.max(W,0);else i.params.virtual.cache&&(delete i.virtual.cache[G],Object.keys(i.virtual.cache).forEach(F=>{F>G&&(i.virtual.cache[F-1]=i.virtual.cache[F],i.virtual.cache[F-1].setAttribute("data-swiper-slide-index",F-1),delete i.virtual.cache[F])})),i.virtual.slides.splice(G,1),G<W&&(W-=1),W=Math.max(W,0);M(!0),i.slideTo(W,0)}function Y(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),M(!0),i.slideTo(0,0)}d("beforeInit",()=>{if(!i.params.virtual.enabled)return;let G;if(typeof i.passedParams.virtual.slides>"u"){const W=[...i.slidesEl.children].filter(F=>F.matches(`.${i.params.slideClass}, swiper-slide`));W&&W.length&&(i.virtual.slides=[...W],G=!0,W.forEach((F,R)=>{F.setAttribute("data-swiper-slide-index",R),i.virtual.cache[R]=F,F.remove()}))}G||(i.virtual.slides=i.params.virtual.slides),i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,M(!1,!0)}),d("setTranslate",()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(g),g=setTimeout(()=>{M()},100)):M())}),d("init update resize",()=>{i.params.virtual.enabled&&i.params.cssMode&&Pi(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)}),Object.assign(i.virtual,{appendSlide:T,prependSlide:_,removeSlide:H,removeAllSlides:Y,update:M})}function Wp(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;const g=je(),S=Xe();i.keyboard={enabled:!1},l({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function y(T){if(!i.enabled)return;const{rtlTranslate:_}=i;let H=T;H.originalEvent&&(H=H.originalEvent);const Y=H.keyCode||H.charCode,G=i.params.keyboard.pageUpDown,W=G&&Y===33,F=G&&Y===34,R=Y===37,P=Y===39,B=Y===38,q=Y===40;if(!i.allowSlideNext&&(i.isHorizontal()&&P||i.isVertical()&&q||F)||!i.allowSlidePrev&&(i.isHorizontal()&&R||i.isVertical()&&B||W))return!1;if(!(H.shiftKey||H.altKey||H.ctrlKey||H.metaKey)&&!(g.activeElement&&g.activeElement.nodeName&&(g.activeElement.nodeName.toLowerCase()==="input"||g.activeElement.nodeName.toLowerCase()==="textarea"))){if(i.params.keyboard.onlyInViewport&&(W||F||R||P||B||q)){let j=!1;if(ai(i.el,`.${i.params.slideClass}, swiper-slide`).length>0&&ai(i.el,`.${i.params.slideActiveClass}`).length===0)return;const U=i.el,le=U.clientWidth,J=U.clientHeight,K=S.innerWidth,ee=S.innerHeight,ne=Da(U);_&&(ne.left-=U.scrollLeft);const Q=[[ne.left,ne.top],[ne.left+le,ne.top],[ne.left,ne.top+J],[ne.left+le,ne.top+J]];for(let Z=0;Z<Q.length;Z+=1){const se=Q[Z];if(se[0]>=0&&se[0]<=K&&se[1]>=0&&se[1]<=ee){if(se[0]===0&&se[1]===0)continue;j=!0}}if(!j)return}i.isHorizontal()?((W||F||R||P)&&(H.preventDefault?H.preventDefault():H.returnValue=!1),((F||P)&&!_||(W||R)&&_)&&i.slideNext(),((W||R)&&!_||(F||P)&&_)&&i.slidePrev()):((W||F||B||q)&&(H.preventDefault?H.preventDefault():H.returnValue=!1),(F||q)&&i.slideNext(),(W||B)&&i.slidePrev()),f("keyPress",Y)}}function A(){i.keyboard.enabled||(g.addEventListener("keydown",y),i.keyboard.enabled=!0)}function M(){i.keyboard.enabled&&(g.removeEventListener("keydown",y),i.keyboard.enabled=!1)}d("init",()=>{i.params.keyboard.enabled&&A()}),d("destroy",()=>{i.keyboard.enabled&&M()}),Object.assign(i.keyboard,{enable:A,disable:M})}function Gp(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;const g=Xe();l({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),i.mousewheel={enabled:!1};let S,y=rt(),A;const M=[];function T(B){let le=0,J=0,K=0,ee=0;return"detail"in B&&(J=B.detail),"wheelDelta"in B&&(J=-B.wheelDelta/120),"wheelDeltaY"in B&&(J=-B.wheelDeltaY/120),"wheelDeltaX"in B&&(le=-B.wheelDeltaX/120),"axis"in B&&B.axis===B.HORIZONTAL_AXIS&&(le=J,J=0),K=le*10,ee=J*10,"deltaY"in B&&(ee=B.deltaY),"deltaX"in B&&(K=B.deltaX),B.shiftKey&&!K&&(K=ee,ee=0),(K||ee)&&B.deltaMode&&(B.deltaMode===1?(K*=40,ee*=40):(K*=800,ee*=800)),K&&!le&&(le=K<1?-1:1),ee&&!J&&(J=ee<1?-1:1),{spinX:le,spinY:J,pixelX:K,pixelY:ee}}function _(){i.enabled&&(i.mouseEntered=!0)}function H(){i.enabled&&(i.mouseEntered=!1)}function Y(B){return i.params.mousewheel.thresholdDelta&&B.delta<i.params.mousewheel.thresholdDelta||i.params.mousewheel.thresholdTime&&rt()-y<i.params.mousewheel.thresholdTime?!1:B.delta>=6&&rt()-y<60?!0:(B.direction<0?(!i.isEnd||i.params.loop)&&!i.animating&&(i.slideNext(),f("scroll",B.raw)):(!i.isBeginning||i.params.loop)&&!i.animating&&(i.slidePrev(),f("scroll",B.raw)),y=new g.Date().getTime(),!1)}function G(B){const q=i.params.mousewheel;if(B.direction<0){if(i.isEnd&&!i.params.loop&&q.releaseOnEdges)return!0}else if(i.isBeginning&&!i.params.loop&&q.releaseOnEdges)return!0;return!1}function W(B){let q=B,j=!0;if(!i.enabled||B.target.closest(`.${i.params.mousewheel.noMousewheelClass}`))return;const U=i.params.mousewheel;i.params.cssMode&&q.preventDefault();let le=i.el;i.params.mousewheel.eventsTarget!=="container"&&(le=document.querySelector(i.params.mousewheel.eventsTarget));const J=le&&le.contains(q.target);if(!i.mouseEntered&&!J&&!U.releaseOnEdges)return!0;q.originalEvent&&(q=q.originalEvent);let K=0;const ee=i.rtlTranslate?-1:1,ne=T(q);if(U.forceToAxis)if(i.isHorizontal())if(Math.abs(ne.pixelX)>Math.abs(ne.pixelY))K=-ne.pixelX*ee;else return!0;else if(Math.abs(ne.pixelY)>Math.abs(ne.pixelX))K=-ne.pixelY;else return!0;else K=Math.abs(ne.pixelX)>Math.abs(ne.pixelY)?-ne.pixelX*ee:-ne.pixelY;if(K===0)return!0;U.invert&&(K=-K);let Q=i.getTranslate()+K*U.sensitivity;if(Q>=i.minTranslate()&&(Q=i.minTranslate()),Q<=i.maxTranslate()&&(Q=i.maxTranslate()),j=i.params.loop?!0:!(Q===i.minTranslate()||Q===i.maxTranslate()),j&&i.params.nested&&q.stopPropagation(),!i.params.freeMode||!i.params.freeMode.enabled){const Z={time:rt(),delta:Math.abs(K),direction:Math.sign(K),raw:B};M.length>=2&&M.shift();const se=M.length?M[M.length-1]:void 0;if(M.push(Z),se?(Z.direction!==se.direction||Z.delta>se.delta||Z.time>se.time+150)&&Y(Z):Y(Z),G(Z))return!0}else{const Z={time:rt(),delta:Math.abs(K),direction:Math.sign(K)},se=A&&Z.time<A.time+500&&Z.delta<=A.delta&&Z.direction===A.direction;if(!se){A=void 0;let de=i.getTranslate()+K*U.sensitivity;const ge=i.isBeginning,te=i.isEnd;if(de>=i.minTranslate()&&(de=i.minTranslate()),de<=i.maxTranslate()&&(de=i.maxTranslate()),i.setTransition(0),i.setTranslate(de),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!ge&&i.isBeginning||!te&&i.isEnd)&&i.updateSlidesClasses(),i.params.loop&&i.loopFix({direction:Z.direction<0?"next":"prev",byMousewheel:!0}),i.params.freeMode.sticky){clearTimeout(S),S=void 0,M.length>=15&&M.shift();const oe=M.length?M[M.length-1]:void 0,ue=M[0];if(M.push(Z),oe&&(Z.delta>oe.delta||Z.direction!==oe.direction))M.splice(0);else if(M.length>=15&&Z.time-ue.time<500&&ue.delta-Z.delta>=1&&Z.delta<=6){const ye=K>0?.8:.2;A=Z,M.splice(0),S=ri(()=>{i.slideToClosest(i.params.speed,!0,void 0,ye)},0)}S||(S=ri(()=>{A=Z,M.splice(0),i.slideToClosest(i.params.speed,!0,void 0,.5)},500))}if(se||f("scroll",q),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),U.releaseOnEdges&&(de===i.minTranslate()||de===i.maxTranslate()))return!0}}return q.preventDefault?q.preventDefault():q.returnValue=!1,!1}function F(B){let q=i.el;i.params.mousewheel.eventsTarget!=="container"&&(q=document.querySelector(i.params.mousewheel.eventsTarget)),q[B]("mouseenter",_),q[B]("mouseleave",H),q[B]("wheel",W)}function R(){return i.params.cssMode?(i.wrapperEl.removeEventListener("wheel",W),!0):i.mousewheel.enabled?!1:(F("addEventListener"),i.mousewheel.enabled=!0,!0)}function P(){return i.params.cssMode?(i.wrapperEl.addEventListener(event,W),!0):i.mousewheel.enabled?(F("removeEventListener"),i.mousewheel.enabled=!1,!0):!1}d("init",()=>{!i.params.mousewheel.enabled&&i.params.cssMode&&P(),i.params.mousewheel.enabled&&R()}),d("destroy",()=>{i.params.cssMode&&R(),i.mousewheel.enabled&&P()}),Object.assign(i.mousewheel,{enable:R,disable:P})}function Cr(s,i,l,d){return s.params.createElements&&Object.keys(d).forEach(f=>{if(!l[f]&&l.auto===!0){let g=Ve(s.el,`.${d[f]}`)[0];g||(g=at("div",d[f]),g.className=d[f],s.el.append(g)),l[f]=g,i[f]=g}}),l}function ci(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;l({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),i.navigation={nextEl:null,prevEl:null};function g(G){let W;return G&&typeof G=="string"&&i.isElement&&(W=i.el.querySelector(G),W)?W:(G&&(typeof G=="string"&&(W=[...document.querySelectorAll(G)]),i.params.uniqueNavElements&&typeof G=="string"&&W&&W.length>1&&i.el.querySelectorAll(G).length===1?W=i.el.querySelector(G):W&&W.length===1&&(W=W[0])),G&&!W?G:W)}function S(G,W){const F=i.params.navigation;G=Te(G),G.forEach(R=>{R&&(R.classList[W?"add":"remove"](...F.disabledClass.split(" ")),R.tagName==="BUTTON"&&(R.disabled=W),i.params.watchOverflow&&i.enabled&&R.classList[i.isLocked?"add":"remove"](F.lockClass))})}function y(){const{nextEl:G,prevEl:W}=i.navigation;if(i.params.loop){S(W,!1),S(G,!1);return}S(W,i.isBeginning&&!i.params.rewind),S(G,i.isEnd&&!i.params.rewind)}function A(G){G.preventDefault(),!(i.isBeginning&&!i.params.loop&&!i.params.rewind)&&(i.slidePrev(),f("navigationPrev"))}function M(G){G.preventDefault(),!(i.isEnd&&!i.params.loop&&!i.params.rewind)&&(i.slideNext(),f("navigationNext"))}function T(){const G=i.params.navigation;if(i.params.navigation=Cr(i,i.originalParams.navigation,i.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(G.nextEl||G.prevEl))return;let W=g(G.nextEl),F=g(G.prevEl);Object.assign(i.navigation,{nextEl:W,prevEl:F}),W=Te(W),F=Te(F);const R=(P,B)=>{P&&P.addEventListener("click",B==="next"?M:A),!i.enabled&&P&&P.classList.add(...G.lockClass.split(" "))};W.forEach(P=>R(P,"next")),F.forEach(P=>R(P,"prev"))}function _(){let{nextEl:G,prevEl:W}=i.navigation;G=Te(G),W=Te(W);const F=(R,P)=>{R.removeEventListener("click",P==="next"?M:A),R.classList.remove(...i.params.navigation.disabledClass.split(" "))};G.forEach(R=>F(R,"next")),W.forEach(R=>F(R,"prev"))}d("init",()=>{i.params.navigation.enabled===!1?Y():(T(),y())}),d("toEdge fromEdge lock unlock",()=>{y()}),d("destroy",()=>{_()}),d("enable disable",()=>{let{nextEl:G,prevEl:W}=i.navigation;if(G=Te(G),W=Te(W),i.enabled){y();return}[...G,...W].filter(F=>!!F).forEach(F=>F.classList.add(i.params.navigation.lockClass))}),d("click",(G,W)=>{let{nextEl:F,prevEl:R}=i.navigation;F=Te(F),R=Te(R);const P=W.target;if(i.params.navigation.hideOnClick&&!R.includes(P)&&!F.includes(P)){if(i.pagination&&i.params.pagination&&i.params.pagination.clickable&&(i.pagination.el===P||i.pagination.el.contains(P)))return;let B;F.length?B=F[0].classList.contains(i.params.navigation.hiddenClass):R.length&&(B=R[0].classList.contains(i.params.navigation.hiddenClass)),f(B===!0?"navigationShow":"navigationHide"),[...F,...R].filter(q=>!!q).forEach(q=>q.classList.toggle(i.params.navigation.hiddenClass))}});const H=()=>{i.el.classList.remove(...i.params.navigation.navigationDisabledClass.split(" ")),T(),y()},Y=()=>{i.el.classList.add(...i.params.navigation.navigationDisabledClass.split(" ")),_()};Object.assign(i.navigation,{enable:H,disable:Y,update:y,init:T,destroy:_})}function Ct(s){return s===void 0&&(s=""),`.${s.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ga(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;const g="swiper-pagination";l({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:R=>R,formatFractionTotal:R=>R,bulletClass:`${g}-bullet`,bulletActiveClass:`${g}-bullet-active`,modifierClass:`${g}-`,currentClass:`${g}-current`,totalClass:`${g}-total`,hiddenClass:`${g}-hidden`,progressbarFillClass:`${g}-progressbar-fill`,progressbarOppositeClass:`${g}-progressbar-opposite`,clickableClass:`${g}-clickable`,lockClass:`${g}-lock`,horizontalClass:`${g}-horizontal`,verticalClass:`${g}-vertical`,paginationDisabledClass:`${g}-disabled`}}),i.pagination={el:null,bullets:[]};let S,y=0;function A(){return!i.params.pagination.el||!i.pagination.el||Array.isArray(i.pagination.el)&&i.pagination.el.length===0}function M(R,P){const{bulletActiveClass:B}=i.params.pagination;R&&(R=R[`${P==="prev"?"previous":"next"}ElementSibling`],R&&(R.classList.add(`${B}-${P}`),R=R[`${P==="prev"?"previous":"next"}ElementSibling`],R&&R.classList.add(`${B}-${P}-${P}`)))}function T(R){const P=R.target.closest(Ct(i.params.pagination.bulletClass));if(!P)return;R.preventDefault();const B=Ni(P)*i.params.slidesPerGroup;if(i.params.loop){if(i.realIndex===B)return;i.slideToLoop(B)}else i.slideTo(B)}function _(){const R=i.rtl,P=i.params.pagination;if(A())return;let B=i.pagination.el;B=Te(B);let q,j;const U=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,le=i.params.loop?Math.ceil(U/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(j=i.previousRealIndex||0,q=i.params.slidesPerGroup>1?Math.floor(i.realIndex/i.params.slidesPerGroup):i.realIndex):typeof i.snapIndex<"u"?(q=i.snapIndex,j=i.previousSnapIndex):(j=i.previousIndex||0,q=i.activeIndex||0),P.type==="bullets"&&i.pagination.bullets&&i.pagination.bullets.length>0){const J=i.pagination.bullets;let K,ee,ne;if(P.dynamicBullets&&(S=zs(J[0],i.isHorizontal()?"width":"height",!0),B.forEach(Q=>{Q.style[i.isHorizontal()?"width":"height"]=`${S*(P.dynamicMainBullets+4)}px`}),P.dynamicMainBullets>1&&j!==void 0&&(y+=q-(j||0),y>P.dynamicMainBullets-1?y=P.dynamicMainBullets-1:y<0&&(y=0)),K=Math.max(q-y,0),ee=K+(Math.min(J.length,P.dynamicMainBullets)-1),ne=(ee+K)/2),J.forEach(Q=>{const Z=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(se=>`${P.bulletActiveClass}${se}`)].map(se=>typeof se=="string"&&se.includes(" ")?se.split(" "):se).flat();Q.classList.remove(...Z)}),B.length>1)J.forEach(Q=>{const Z=Ni(Q);Z===q?Q.classList.add(...P.bulletActiveClass.split(" ")):i.isElement&&Q.setAttribute("part","bullet"),P.dynamicBullets&&(Z>=K&&Z<=ee&&Q.classList.add(...`${P.bulletActiveClass}-main`.split(" ")),Z===K&&M(Q,"prev"),Z===ee&&M(Q,"next"))});else{const Q=J[q];if(Q&&Q.classList.add(...P.bulletActiveClass.split(" ")),i.isElement&&J.forEach((Z,se)=>{Z.setAttribute("part",se===q?"bullet-active":"bullet")}),P.dynamicBullets){const Z=J[K],se=J[ee];for(let de=K;de<=ee;de+=1)J[de]&&J[de].classList.add(...`${P.bulletActiveClass}-main`.split(" "));M(Z,"prev"),M(se,"next")}}if(P.dynamicBullets){const Q=Math.min(J.length,P.dynamicMainBullets+4),Z=(S*Q-S)/2-ne*S,se=R?"right":"left";J.forEach(de=>{de.style[i.isHorizontal()?se:"top"]=`${Z}px`})}}B.forEach((J,K)=>{if(P.type==="fraction"&&(J.querySelectorAll(Ct(P.currentClass)).forEach(ee=>{ee.textContent=P.formatFractionCurrent(q+1)}),J.querySelectorAll(Ct(P.totalClass)).forEach(ee=>{ee.textContent=P.formatFractionTotal(le)})),P.type==="progressbar"){let ee;P.progressbarOpposite?ee=i.isHorizontal()?"vertical":"horizontal":ee=i.isHorizontal()?"horizontal":"vertical";const ne=(q+1)/le;let Q=1,Z=1;ee==="horizontal"?Q=ne:Z=ne,J.querySelectorAll(Ct(P.progressbarFillClass)).forEach(se=>{se.style.transform=`translate3d(0,0,0) scaleX(${Q}) scaleY(${Z})`,se.style.transitionDuration=`${i.params.speed}ms`})}P.type==="custom"&&P.renderCustom?(J.innerHTML=P.renderCustom(i,q+1,le),K===0&&f("paginationRender",J)):(K===0&&f("paginationRender",J),f("paginationUpdate",J)),i.params.watchOverflow&&i.enabled&&J.classList[i.isLocked?"add":"remove"](P.lockClass)})}function H(){const R=i.params.pagination;if(A())return;const P=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.grid&&i.params.grid.rows>1?i.slides.length/Math.ceil(i.params.grid.rows):i.slides.length;let B=i.pagination.el;B=Te(B);let q="";if(R.type==="bullets"){let j=i.params.loop?Math.ceil(P/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&j>P&&(j=P);for(let U=0;U<j;U+=1)R.renderBullet?q+=R.renderBullet.call(i,U,R.bulletClass):q+=`<${R.bulletElement} ${i.isElement?'part="bullet"':""} class="${R.bulletClass}"></${R.bulletElement}>`}R.type==="fraction"&&(R.renderFraction?q=R.renderFraction.call(i,R.currentClass,R.totalClass):q=`<span class="${R.currentClass}"></span> / <span class="${R.totalClass}"></span>`),R.type==="progressbar"&&(R.renderProgressbar?q=R.renderProgressbar.call(i,R.progressbarFillClass):q=`<span class="${R.progressbarFillClass}"></span>`),i.pagination.bullets=[],B.forEach(j=>{R.type!=="custom"&&(j.innerHTML=q||""),R.type==="bullets"&&i.pagination.bullets.push(...j.querySelectorAll(Ct(R.bulletClass)))}),R.type!=="custom"&&f("paginationRender",B[0])}function Y(){i.params.pagination=Cr(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});const R=i.params.pagination;if(!R.el)return;let P;typeof R.el=="string"&&i.isElement&&(P=i.el.querySelector(R.el)),!P&&typeof R.el=="string"&&(P=[...document.querySelectorAll(R.el)]),P||(P=R.el),!(!P||P.length===0)&&(i.params.uniqueNavElements&&typeof R.el=="string"&&Array.isArray(P)&&P.length>1&&(P=[...i.el.querySelectorAll(R.el)],P.length>1&&(P=P.filter(B=>ai(B,".swiper")[0]===i.el)[0])),Array.isArray(P)&&P.length===1&&(P=P[0]),Object.assign(i.pagination,{el:P}),P=Te(P),P.forEach(B=>{R.type==="bullets"&&R.clickable&&B.classList.add(...(R.clickableClass||"").split(" ")),B.classList.add(R.modifierClass+R.type),B.classList.add(i.isHorizontal()?R.horizontalClass:R.verticalClass),R.type==="bullets"&&R.dynamicBullets&&(B.classList.add(`${R.modifierClass}${R.type}-dynamic`),y=0,R.dynamicMainBullets<1&&(R.dynamicMainBullets=1)),R.type==="progressbar"&&R.progressbarOpposite&&B.classList.add(R.progressbarOppositeClass),R.clickable&&B.addEventListener("click",T),i.enabled||B.classList.add(R.lockClass)}))}function G(){const R=i.params.pagination;if(A())return;let P=i.pagination.el;P&&(P=Te(P),P.forEach(B=>{B.classList.remove(R.hiddenClass),B.classList.remove(R.modifierClass+R.type),B.classList.remove(i.isHorizontal()?R.horizontalClass:R.verticalClass),R.clickable&&(B.classList.remove(...(R.clickableClass||"").split(" ")),B.removeEventListener("click",T))})),i.pagination.bullets&&i.pagination.bullets.forEach(B=>B.classList.remove(...R.bulletActiveClass.split(" ")))}d("changeDirection",()=>{if(!i.pagination||!i.pagination.el)return;const R=i.params.pagination;let{el:P}=i.pagination;P=Te(P),P.forEach(B=>{B.classList.remove(R.horizontalClass,R.verticalClass),B.classList.add(i.isHorizontal()?R.horizontalClass:R.verticalClass)})}),d("init",()=>{i.params.pagination.enabled===!1?F():(Y(),H(),_())}),d("activeIndexChange",()=>{typeof i.snapIndex>"u"&&_()}),d("snapIndexChange",()=>{_()}),d("snapGridLengthChange",()=>{H(),_()}),d("destroy",()=>{G()}),d("enable disable",()=>{let{el:R}=i.pagination;R&&(R=Te(R),R.forEach(P=>P.classList[i.enabled?"remove":"add"](i.params.pagination.lockClass)))}),d("lock unlock",()=>{_()}),d("click",(R,P)=>{const B=P.target,q=Te(i.pagination.el);if(i.params.pagination.el&&i.params.pagination.hideOnClick&&q&&q.length>0&&!B.classList.contains(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&B===i.navigation.nextEl||i.navigation.prevEl&&B===i.navigation.prevEl))return;const j=q[0].classList.contains(i.params.pagination.hiddenClass);f(j===!0?"paginationShow":"paginationHide"),q.forEach(U=>U.classList.toggle(i.params.pagination.hiddenClass))}});const W=()=>{i.el.classList.remove(i.params.pagination.paginationDisabledClass);let{el:R}=i.pagination;R&&(R=Te(R),R.forEach(P=>P.classList.remove(i.params.pagination.paginationDisabledClass))),Y(),H(),_()},F=()=>{i.el.classList.add(i.params.pagination.paginationDisabledClass);let{el:R}=i.pagination;R&&(R=Te(R),R.forEach(P=>P.classList.add(i.params.pagination.paginationDisabledClass))),G()};Object.assign(i.pagination,{enable:W,disable:F,render:H,update:_,init:Y,destroy:G})}function Vp(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;const g=je();let S=!1,y=null,A=null,M,T,_,H;l({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),i.scrollbar={el:null,dragEl:null};function Y(){if(!i.params.scrollbar.el||!i.scrollbar.el)return;const{scrollbar:Q,rtlTranslate:Z}=i,{dragEl:se,el:de}=Q,ge=i.params.scrollbar,te=i.params.loop?i.progressLoop:i.progress;let oe=T,ue=(_-T)*te;Z?(ue=-ue,ue>0?(oe=T-ue,ue=0):-ue+T>_&&(oe=_+ue)):ue<0?(oe=T+ue,ue=0):ue+T>_&&(oe=_-ue),i.isHorizontal()?(se.style.transform=`translate3d(${ue}px, 0, 0)`,se.style.width=`${oe}px`):(se.style.transform=`translate3d(0px, ${ue}px, 0)`,se.style.height=`${oe}px`),ge.hide&&(clearTimeout(y),de.style.opacity=1,y=setTimeout(()=>{de.style.opacity=0,de.style.transitionDuration="400ms"},1e3))}function G(Q){!i.params.scrollbar.el||!i.scrollbar.el||(i.scrollbar.dragEl.style.transitionDuration=`${Q}ms`)}function W(){if(!i.params.scrollbar.el||!i.scrollbar.el)return;const{scrollbar:Q}=i,{dragEl:Z,el:se}=Q;Z.style.width="",Z.style.height="",_=i.isHorizontal()?se.offsetWidth:se.offsetHeight,H=i.size/(i.virtualSize+i.params.slidesOffsetBefore-(i.params.centeredSlides?i.snapGrid[0]:0)),i.params.scrollbar.dragSize==="auto"?T=_*H:T=parseInt(i.params.scrollbar.dragSize,10),i.isHorizontal()?Z.style.width=`${T}px`:Z.style.height=`${T}px`,H>=1?se.style.display="none":se.style.display="",i.params.scrollbar.hide&&(se.style.opacity=0),i.params.watchOverflow&&i.enabled&&Q.el.classList[i.isLocked?"add":"remove"](i.params.scrollbar.lockClass)}function F(Q){return i.isHorizontal()?Q.clientX:Q.clientY}function R(Q){const{scrollbar:Z,rtlTranslate:se}=i,{el:de}=Z;let ge;ge=(F(Q)-Da(de)[i.isHorizontal()?"left":"top"]-(M!==null?M:T/2))/(_-T),ge=Math.max(Math.min(ge,1),0),se&&(ge=1-ge);const te=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*ge;i.updateProgress(te),i.setTranslate(te),i.updateActiveIndex(),i.updateSlidesClasses()}function P(Q){const Z=i.params.scrollbar,{scrollbar:se,wrapperEl:de}=i,{el:ge,dragEl:te}=se;S=!0,M=Q.target===te?F(Q)-Q.target.getBoundingClientRect()[i.isHorizontal()?"left":"top"]:null,Q.preventDefault(),Q.stopPropagation(),de.style.transitionDuration="100ms",te.style.transitionDuration="100ms",R(Q),clearTimeout(A),ge.style.transitionDuration="0ms",Z.hide&&(ge.style.opacity=1),i.params.cssMode&&(i.wrapperEl.style["scroll-snap-type"]="none"),f("scrollbarDragStart",Q)}function B(Q){const{scrollbar:Z,wrapperEl:se}=i,{el:de,dragEl:ge}=Z;S&&(Q.preventDefault&&Q.cancelable?Q.preventDefault():Q.returnValue=!1,R(Q),se.style.transitionDuration="0ms",de.style.transitionDuration="0ms",ge.style.transitionDuration="0ms",f("scrollbarDragMove",Q))}function q(Q){const Z=i.params.scrollbar,{scrollbar:se,wrapperEl:de}=i,{el:ge}=se;S&&(S=!1,i.params.cssMode&&(i.wrapperEl.style["scroll-snap-type"]="",de.style.transitionDuration=""),Z.hide&&(clearTimeout(A),A=ri(()=>{ge.style.opacity=0,ge.style.transitionDuration="400ms"},1e3)),f("scrollbarDragEnd",Q),Z.snapOnRelease&&i.slideToClosest())}function j(Q){const{scrollbar:Z,params:se}=i,de=Z.el;if(!de)return;const ge=de,te=se.passiveListeners?{passive:!1,capture:!1}:!1,oe=se.passiveListeners?{passive:!0,capture:!1}:!1;if(!ge)return;const ue=Q==="on"?"addEventListener":"removeEventListener";ge[ue]("pointerdown",P,te),g[ue]("pointermove",B,te),g[ue]("pointerup",q,oe)}function U(){!i.params.scrollbar.el||!i.scrollbar.el||j("on")}function le(){!i.params.scrollbar.el||!i.scrollbar.el||j("off")}function J(){const{scrollbar:Q,el:Z}=i;i.params.scrollbar=Cr(i,i.originalParams.scrollbar,i.params.scrollbar,{el:"swiper-scrollbar"});const se=i.params.scrollbar;if(!se.el)return;let de;if(typeof se.el=="string"&&i.isElement&&(de=i.el.querySelector(se.el)),!de&&typeof se.el=="string"){if(de=g.querySelectorAll(se.el),!de.length)return}else de||(de=se.el);i.params.uniqueNavElements&&typeof se.el=="string"&&de.length>1&&Z.querySelectorAll(se.el).length===1&&(de=Z.querySelector(se.el)),de.length>0&&(de=de[0]),de.classList.add(i.isHorizontal()?se.horizontalClass:se.verticalClass);let ge;de&&(ge=de.querySelector(Ct(i.params.scrollbar.dragClass)),ge||(ge=at("div",i.params.scrollbar.dragClass),de.append(ge))),Object.assign(Q,{el:de,dragEl:ge}),se.draggable&&U(),de&&de.classList[i.enabled?"remove":"add"](...Mt(i.params.scrollbar.lockClass))}function K(){const Q=i.params.scrollbar,Z=i.scrollbar.el;Z&&Z.classList.remove(...Mt(i.isHorizontal()?Q.horizontalClass:Q.verticalClass)),le()}d("changeDirection",()=>{if(!i.scrollbar||!i.scrollbar.el)return;const Q=i.params.scrollbar;let{el:Z}=i.scrollbar;Z=Te(Z),Z.forEach(se=>{se.classList.remove(Q.horizontalClass,Q.verticalClass),se.classList.add(i.isHorizontal()?Q.horizontalClass:Q.verticalClass)})}),d("init",()=>{i.params.scrollbar.enabled===!1?ne():(J(),W(),Y())}),d("update resize observerUpdate lock unlock changeDirection",()=>{W()}),d("setTranslate",()=>{Y()}),d("setTransition",(Q,Z)=>{G(Z)}),d("enable disable",()=>{const{el:Q}=i.scrollbar;Q&&Q.classList[i.enabled?"remove":"add"](...Mt(i.params.scrollbar.lockClass))}),d("destroy",()=>{K()});const ee=()=>{i.el.classList.remove(...Mt(i.params.scrollbar.scrollbarDisabledClass)),i.scrollbar.el&&i.scrollbar.el.classList.remove(...Mt(i.params.scrollbar.scrollbarDisabledClass)),J(),W(),Y()},ne=()=>{i.el.classList.add(...Mt(i.params.scrollbar.scrollbarDisabledClass)),i.scrollbar.el&&i.scrollbar.el.classList.add(...Mt(i.params.scrollbar.scrollbarDisabledClass)),K()};Object.assign(i.scrollbar,{enable:ee,disable:ne,updateSize:W,setTranslate:Y,init:J,destroy:K})}function jp(s){let{swiper:i,extendParams:l,on:d}=s;l({parallax:{enabled:!1}});const f="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",g=(A,M)=>{const{rtl:T}=i,_=T?-1:1,H=A.getAttribute("data-swiper-parallax")||"0";let Y=A.getAttribute("data-swiper-parallax-x"),G=A.getAttribute("data-swiper-parallax-y");const W=A.getAttribute("data-swiper-parallax-scale"),F=A.getAttribute("data-swiper-parallax-opacity"),R=A.getAttribute("data-swiper-parallax-rotate");if(Y||G?(Y=Y||"0",G=G||"0"):i.isHorizontal()?(Y=H,G="0"):(G=H,Y="0"),Y.indexOf("%")>=0?Y=`${parseInt(Y,10)*M*_}%`:Y=`${Y*M*_}px`,G.indexOf("%")>=0?G=`${parseInt(G,10)*M}%`:G=`${G*M}px`,typeof F<"u"&&F!==null){const B=F-(F-1)*(1-Math.abs(M));A.style.opacity=B}let P=`translate3d(${Y}, ${G}, 0px)`;if(typeof W<"u"&&W!==null){const B=W-(W-1)*(1-Math.abs(M));P+=` scale(${B})`}if(R&&typeof R<"u"&&R!==null){const B=R*M*-1;P+=` rotate(${B}deg)`}A.style.transform=P},S=()=>{const{el:A,slides:M,progress:T,snapGrid:_,isElement:H}=i,Y=Ve(A,f);i.isElement&&Y.push(...Ve(i.hostEl,f)),Y.forEach(G=>{g(G,T)}),M.forEach((G,W)=>{let F=G.progress;i.params.slidesPerGroup>1&&i.params.slidesPerView!=="auto"&&(F+=Math.ceil(W/2)-T*(_.length-1)),F=Math.min(Math.max(F,-1),1),G.querySelectorAll(`${f}, [data-swiper-parallax-rotate]`).forEach(R=>{g(R,F)})})},y=function(A){A===void 0&&(A=i.params.speed);const{el:M,hostEl:T}=i,_=[...M.querySelectorAll(f)];i.isElement&&_.push(...T.querySelectorAll(f)),_.forEach(H=>{let Y=parseInt(H.getAttribute("data-swiper-parallax-duration"),10)||A;A===0&&(Y=0),H.style.transitionDuration=`${Y}ms`})};d("beforeInit",()=>{i.params.parallax.enabled&&(i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0)}),d("init",()=>{i.params.parallax.enabled&&S()}),d("setTranslate",()=>{i.params.parallax.enabled&&S()}),d("setTransition",(A,M)=>{i.params.parallax.enabled&&y(M)})}function $p(s){let{swiper:i,extendParams:l,on:d,emit:f}=s;const g=Xe();l({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),i.zoom={enabled:!1};let S=1,y=!1,A,M;const T=[],_={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},H={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},Y={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let G=1;Object.defineProperty(i.zoom,"scale",{get(){return G},set(he){if(G!==he){const pe=_.imageEl,fe=_.slideEl;f("zoomChange",he,pe,fe)}G=he}});function W(){if(T.length<2)return 1;const he=T[0].pageX,pe=T[0].pageY,fe=T[1].pageX,Ce=T[1].pageY;return Math.sqrt((fe-he)**2+(Ce-pe)**2)}function F(){const he=i.params.zoom,pe=_.imageWrapEl.getAttribute("data-swiper-zoom")||he.maxRatio;if(he.limitToOriginalSize&&_.imageEl&&_.imageEl.naturalWidth){const fe=_.imageEl.naturalWidth/_.imageEl.offsetWidth;return Math.min(fe,pe)}return pe}function R(){if(T.length<2)return{x:null,y:null};const he=_.imageEl.getBoundingClientRect();return[(T[0].pageX+(T[1].pageX-T[0].pageX)/2-he.x-g.scrollX)/S,(T[0].pageY+(T[1].pageY-T[0].pageY)/2-he.y-g.scrollY)/S]}function P(){return i.isElement?"swiper-slide":`.${i.params.slideClass}`}function B(he){const pe=P();return!!(he.target.matches(pe)||i.slides.filter(fe=>fe.contains(he.target)).length>0)}function q(he){const pe=`.${i.params.zoom.containerClass}`;return!!(he.target.matches(pe)||[...i.hostEl.querySelectorAll(pe)].filter(fe=>fe.contains(he.target)).length>0)}function j(he){if(he.pointerType==="mouse"&&T.splice(0,T.length),!B(he))return;const pe=i.params.zoom;if(A=!1,M=!1,T.push(he),!(T.length<2)){if(A=!0,_.scaleStart=W(),!_.slideEl){_.slideEl=he.target.closest(`.${i.params.slideClass}, swiper-slide`),_.slideEl||(_.slideEl=i.slides[i.activeIndex]);let fe=_.slideEl.querySelector(`.${pe.containerClass}`);if(fe&&(fe=fe.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),_.imageEl=fe,fe?_.imageWrapEl=ai(_.imageEl,`.${pe.containerClass}`)[0]:_.imageWrapEl=void 0,!_.imageWrapEl){_.imageEl=void 0;return}_.maxRatio=F()}if(_.imageEl){const[fe,Ce]=R();_.originX=fe,_.originY=Ce,_.imageEl.style.transitionDuration="0ms"}y=!0}}function U(he){if(!B(he))return;const pe=i.params.zoom,fe=i.zoom,Ce=T.findIndex(ve=>ve.pointerId===he.pointerId);Ce>=0&&(T[Ce]=he),!(T.length<2)&&(M=!0,_.scaleMove=W(),_.imageEl&&(fe.scale=_.scaleMove/_.scaleStart*S,fe.scale>_.maxRatio&&(fe.scale=_.maxRatio-1+(fe.scale-_.maxRatio+1)**.5),fe.scale<pe.minRatio&&(fe.scale=pe.minRatio+1-(pe.minRatio-fe.scale+1)**.5),_.imageEl.style.transform=`translate3d(0,0,0) scale(${fe.scale})`))}function le(he){if(!B(he)||he.pointerType==="mouse"&&he.type==="pointerout")return;const pe=i.params.zoom,fe=i.zoom,Ce=T.findIndex(ve=>ve.pointerId===he.pointerId);Ce>=0&&T.splice(Ce,1),!(!A||!M)&&(A=!1,M=!1,_.imageEl&&(fe.scale=Math.max(Math.min(fe.scale,_.maxRatio),pe.minRatio),_.imageEl.style.transitionDuration=`${i.params.speed}ms`,_.imageEl.style.transform=`translate3d(0,0,0) scale(${fe.scale})`,S=fe.scale,y=!1,fe.scale>1&&_.slideEl?_.slideEl.classList.add(`${pe.zoomedSlideClass}`):fe.scale<=1&&_.slideEl&&_.slideEl.classList.remove(`${pe.zoomedSlideClass}`),fe.scale===1&&(_.originX=0,_.originY=0,_.slideEl=void 0)))}let J;function K(){i.touchEventsData.preventTouchMoveFromPointerMove=!1}function ee(){clearTimeout(J),i.touchEventsData.preventTouchMoveFromPointerMove=!0,J=setTimeout(()=>{K()})}function ne(he){const pe=i.device;if(!_.imageEl||H.isTouched)return;pe.android&&he.cancelable&&he.preventDefault(),H.isTouched=!0;const fe=T.length>0?T[0]:he;H.touchesStart.x=fe.pageX,H.touchesStart.y=fe.pageY}function Q(he){if(!B(he)||!q(he))return;const pe=i.zoom;if(!_.imageEl||!H.isTouched||!_.slideEl)return;H.isMoved||(H.width=_.imageEl.offsetWidth||_.imageEl.clientWidth,H.height=_.imageEl.offsetHeight||_.imageEl.clientHeight,H.startX=Is(_.imageWrapEl,"x")||0,H.startY=Is(_.imageWrapEl,"y")||0,_.slideWidth=_.slideEl.offsetWidth,_.slideHeight=_.slideEl.offsetHeight,_.imageWrapEl.style.transitionDuration="0ms");const fe=H.width*pe.scale,Ce=H.height*pe.scale;if(fe<_.slideWidth&&Ce<_.slideHeight){K();return}if(H.minX=Math.min(_.slideWidth/2-fe/2,0),H.maxX=-H.minX,H.minY=Math.min(_.slideHeight/2-Ce/2,0),H.maxY=-H.minY,H.touchesCurrent.x=T.length>0?T[0].pageX:he.pageX,H.touchesCurrent.y=T.length>0?T[0].pageY:he.pageY,Math.max(Math.abs(H.touchesCurrent.x-H.touchesStart.x),Math.abs(H.touchesCurrent.y-H.touchesStart.y))>5&&(i.allowClick=!1),!H.isMoved&&!y){if(i.isHorizontal()&&(Math.floor(H.minX)===Math.floor(H.startX)&&H.touchesCurrent.x<H.touchesStart.x||Math.floor(H.maxX)===Math.floor(H.startX)&&H.touchesCurrent.x>H.touchesStart.x)){H.isTouched=!1,K();return}if(!i.isHorizontal()&&(Math.floor(H.minY)===Math.floor(H.startY)&&H.touchesCurrent.y<H.touchesStart.y||Math.floor(H.maxY)===Math.floor(H.startY)&&H.touchesCurrent.y>H.touchesStart.y)){H.isTouched=!1,K();return}}he.cancelable&&he.preventDefault(),he.stopPropagation(),ee(),H.isMoved=!0;const Ae=(pe.scale-S)/(_.maxRatio-i.params.zoom.minRatio),{originX:Le,originY:Be}=_;H.currentX=H.touchesCurrent.x-H.touchesStart.x+H.startX+Ae*(H.width-Le*2),H.currentY=H.touchesCurrent.y-H.touchesStart.y+H.startY+Ae*(H.height-Be*2),H.currentX<H.minX&&(H.currentX=H.minX+1-(H.minX-H.currentX+1)**.8),H.currentX>H.maxX&&(H.currentX=H.maxX-1+(H.currentX-H.maxX+1)**.8),H.currentY<H.minY&&(H.currentY=H.minY+1-(H.minY-H.currentY+1)**.8),H.currentY>H.maxY&&(H.currentY=H.maxY-1+(H.currentY-H.maxY+1)**.8),Y.prevPositionX||(Y.prevPositionX=H.touchesCurrent.x),Y.prevPositionY||(Y.prevPositionY=H.touchesCurrent.y),Y.prevTime||(Y.prevTime=Date.now()),Y.x=(H.touchesCurrent.x-Y.prevPositionX)/(Date.now()-Y.prevTime)/2,Y.y=(H.touchesCurrent.y-Y.prevPositionY)/(Date.now()-Y.prevTime)/2,Math.abs(H.touchesCurrent.x-Y.prevPositionX)<2&&(Y.x=0),Math.abs(H.touchesCurrent.y-Y.prevPositionY)<2&&(Y.y=0),Y.prevPositionX=H.touchesCurrent.x,Y.prevPositionY=H.touchesCurrent.y,Y.prevTime=Date.now(),_.imageWrapEl.style.transform=`translate3d(${H.currentX}px, ${H.currentY}px,0)`}function Z(){const he=i.zoom;if(!_.imageEl)return;if(!H.isTouched||!H.isMoved){H.isTouched=!1,H.isMoved=!1;return}H.isTouched=!1,H.isMoved=!1;let pe=300,fe=300;const Ce=Y.x*pe,ve=H.currentX+Ce,Ae=Y.y*fe,Le=H.currentY+Ae;Y.x!==0&&(pe=Math.abs((ve-H.currentX)/Y.x)),Y.y!==0&&(fe=Math.abs((Le-H.currentY)/Y.y));const Be=Math.max(pe,fe);H.currentX=ve,H.currentY=Le;const Je=H.width*he.scale,We=H.height*he.scale;H.minX=Math.min(_.slideWidth/2-Je/2,0),H.maxX=-H.minX,H.minY=Math.min(_.slideHeight/2-We/2,0),H.maxY=-H.minY,H.currentX=Math.max(Math.min(H.currentX,H.maxX),H.minX),H.currentY=Math.max(Math.min(H.currentY,H.maxY),H.minY),_.imageWrapEl.style.transitionDuration=`${Be}ms`,_.imageWrapEl.style.transform=`translate3d(${H.currentX}px, ${H.currentY}px,0)`}function se(){const he=i.zoom;_.slideEl&&i.activeIndex!==i.slides.indexOf(_.slideEl)&&(_.imageEl&&(_.imageEl.style.transform="translate3d(0,0,0) scale(1)"),_.imageWrapEl&&(_.imageWrapEl.style.transform="translate3d(0,0,0)"),_.slideEl.classList.remove(`${i.params.zoom.zoomedSlideClass}`),he.scale=1,S=1,_.slideEl=void 0,_.imageEl=void 0,_.imageWrapEl=void 0,_.originX=0,_.originY=0)}function de(he){const pe=i.zoom,fe=i.params.zoom;if(!_.slideEl){he&&he.target&&(_.slideEl=he.target.closest(`.${i.params.slideClass}, swiper-slide`)),_.slideEl||(i.params.virtual&&i.params.virtual.enabled&&i.virtual?_.slideEl=Ve(i.slidesEl,`.${i.params.slideActiveClass}`)[0]:_.slideEl=i.slides[i.activeIndex]);let dt=_.slideEl.querySelector(`.${fe.containerClass}`);dt&&(dt=dt.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),_.imageEl=dt,dt?_.imageWrapEl=ai(_.imageEl,`.${fe.containerClass}`)[0]:_.imageWrapEl=void 0}if(!_.imageEl||!_.imageWrapEl)return;i.params.cssMode&&(i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.touchAction="none"),_.slideEl.classList.add(`${fe.zoomedSlideClass}`);let Ce,ve,Ae,Le,Be,Je,We,Ue,Bt,bt,Lt,di,yt,wt,St,Wt,Qe,pt;typeof H.touchesStart.x>"u"&&he?(Ce=he.pageX,ve=he.pageY):(Ce=H.touchesStart.x,ve=H.touchesStart.y);const gt=typeof he=="number"?he:null;S===1&>&&(Ce=void 0,ve=void 0);const Gt=F();pe.scale=gt||Gt,S=gt||Gt,he&&!(S===1&>)?(Qe=_.slideEl.offsetWidth,pt=_.slideEl.offsetHeight,Ae=Da(_.slideEl).left+g.scrollX,Le=Da(_.slideEl).top+g.scrollY,Be=Ae+Qe/2-Ce,Je=Le+pt/2-ve,Bt=_.imageEl.offsetWidth||_.imageEl.clientWidth,bt=_.imageEl.offsetHeight||_.imageEl.clientHeight,Lt=Bt*pe.scale,di=bt*pe.scale,yt=Math.min(Qe/2-Lt/2,0),wt=Math.min(pt/2-di/2,0),St=-yt,Wt=-wt,We=Be*pe.scale,Ue=Je*pe.scale,We<yt&&(We=yt),We>St&&(We=St),Ue<wt&&(Ue=wt),Ue>Wt&&(Ue=Wt)):(We=0,Ue=0),gt&&pe.scale===1&&(_.originX=0,_.originY=0),_.imageWrapEl.style.transitionDuration="300ms",_.imageWrapEl.style.transform=`translate3d(${We}px, ${Ue}px,0)`,_.imageEl.style.transitionDuration="300ms",_.imageEl.style.transform=`translate3d(0,0,0) scale(${pe.scale})`}function ge(){const he=i.zoom,pe=i.params.zoom;if(!_.slideEl){i.params.virtual&&i.params.virtual.enabled&&i.virtual?_.slideEl=Ve(i.slidesEl,`.${i.params.slideActiveClass}`)[0]:_.slideEl=i.slides[i.activeIndex];let fe=_.slideEl.querySelector(`.${pe.containerClass}`);fe&&(fe=fe.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),_.imageEl=fe,fe?_.imageWrapEl=ai(_.imageEl,`.${pe.containerClass}`)[0]:_.imageWrapEl=void 0}!_.imageEl||!_.imageWrapEl||(i.params.cssMode&&(i.wrapperEl.style.overflow="",i.wrapperEl.style.touchAction=""),he.scale=1,S=1,_.imageWrapEl.style.transitionDuration="300ms",_.imageWrapEl.style.transform="translate3d(0,0,0)",_.imageEl.style.transitionDuration="300ms",_.imageEl.style.transform="translate3d(0,0,0) scale(1)",_.slideEl.classList.remove(`${pe.zoomedSlideClass}`),_.slideEl=void 0,_.originX=0,_.originY=0)}function te(he){const pe=i.zoom;pe.scale&&pe.scale!==1?ge():de(he)}function oe(){const he=i.params.passiveListeners?{passive:!0,capture:!1}:!1,pe=i.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:he,activeListenerWithCapture:pe}}function ue(){const he=i.zoom;if(he.enabled)return;he.enabled=!0;const{passiveListener:pe,activeListenerWithCapture:fe}=oe();i.wrapperEl.addEventListener("pointerdown",j,pe),i.wrapperEl.addEventListener("pointermove",U,fe),["pointerup","pointercancel","pointerout"].forEach(Ce=>{i.wrapperEl.addEventListener(Ce,le,pe)}),i.wrapperEl.addEventListener("pointermove",Q,fe)}function ye(){const he=i.zoom;if(!he.enabled)return;he.enabled=!1;const{passiveListener:pe,activeListenerWithCapture:fe}=oe();i.wrapperEl.removeEventListener("pointerdown",j,pe),i.wrapperEl.removeEventListener("pointermove",U,fe),["pointerup","pointercancel","pointerout"].forEach(Ce=>{i.wrapperEl.removeEventListener(Ce,le,pe)}),i.wrapperEl.removeEventListener("pointermove",Q,fe)}d("init",()=>{i.params.zoom.enabled&&ue()}),d("destroy",()=>{ye()}),d("touchStart",(he,pe)=>{i.zoom.enabled&&ne(pe)}),d("touchEnd",(he,pe)=>{i.zoom.enabled&&Z()}),d("doubleTap",(he,pe)=>{!i.animating&&i.params.zoom.enabled&&i.zoom.enabled&&i.params.zoom.toggle&&te(pe)}),d("transitionEnd",()=>{i.zoom.enabled&&i.params.zoom.enabled&&se()}),d("slideChange",()=>{i.zoom.enabled&&i.params.zoom.enabled&&i.params.cssMode&&se()}),Object.assign(i.zoom,{enable:ue,disable:ye,in:de,out:ge,toggle:te})}function qp(s){let{swiper:i,extendParams:l,on:d}=s;l({controller:{control:void 0,inverse:!1,by:"slide"}}),i.controller={control:void 0};function f(M,T){const _=function(){let W,F,R;return(P,B)=>{for(F=-1,W=P.length;W-F>1;)R=W+F>>1,P[R]<=B?F=R:W=R;return W}}();this.x=M,this.y=T,this.lastIndex=M.length-1;let H,Y;return this.interpolate=function(W){return W?(Y=_(this.x,W),H=Y-1,(W-this.x[H])*(this.y[Y]-this.y[H])/(this.x[Y]-this.x[H])+this.y[H]):0},this}function g(M){i.controller.spline=i.params.loop?new f(i.slidesGrid,M.slidesGrid):new f(i.snapGrid,M.snapGrid)}function S(M,T){const _=i.controller.control;let H,Y;const G=i.constructor;function W(F){if(F.destroyed)return;const R=i.rtlTranslate?-i.translate:i.translate;i.params.controller.by==="slide"&&(g(F),Y=-i.controller.spline.interpolate(-R)),(!Y||i.params.controller.by==="container")&&(H=(F.maxTranslate()-F.minTranslate())/(i.maxTranslate()-i.minTranslate()),(Number.isNaN(H)||!Number.isFinite(H))&&(H=1),Y=(R-i.minTranslate())*H+F.minTranslate()),i.params.controller.inverse&&(Y=F.maxTranslate()-Y),F.updateProgress(Y),F.setTranslate(Y,i),F.updateActiveIndex(),F.updateSlidesClasses()}if(Array.isArray(_))for(let F=0;F<_.length;F+=1)_[F]!==T&&_[F]instanceof G&&W(_[F]);else _ instanceof G&&T!==_&&W(_)}function y(M,T){const _=i.constructor,H=i.controller.control;let Y;function G(W){W.destroyed||(W.setTransition(M,i),M!==0&&(W.transitionStart(),W.params.autoHeight&&ri(()=>{W.updateAutoHeight()}),Xi(W.wrapperEl,()=>{H&&W.transitionEnd()})))}if(Array.isArray(H))for(Y=0;Y<H.length;Y+=1)H[Y]!==T&&H[Y]instanceof _&&G(H[Y]);else H instanceof _&&T!==H&&G(H)}function A(){i.controller.control&&i.controller.spline&&(i.controller.spline=void 0,delete i.controller.spline)}d("beforeInit",()=>{if(typeof window<"u"&&(typeof i.params.controller.control=="string"||i.params.controller.control instanceof HTMLElement)){const M=document.querySelector(i.params.controller.control);if(M&&M.swiper)i.controller.control=M.swiper;else if(M){const T=_=>{i.controller.control=_.detail[0],i.update(),M.removeEventListener("init",T)};M.addEventListener("init",T)}return}i.controller.control=i.params.controller.control}),d("update",()=>{A()}),d("resize",()=>{A()}),d("observerUpdate",()=>{A()}),d("setTranslate",(M,T,_)=>{!i.controller.control||i.controller.control.destroyed||i.controller.setTranslate(T,_)}),d("setTransition",(M,T,_)=>{!i.controller.control||i.controller.control.destroyed||i.controller.setTransition(T,_)}),Object.assign(i.controller,{setTranslate:S,setTransition:y})}function Up(s){let{swiper:i,extendParams:l,on:d}=s;l({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),i.a11y={clicked:!1};let f=null,g,S,y=new Date().getTime();function A(te){const oe=f;oe.length!==0&&(oe.innerHTML="",oe.innerHTML=te)}function M(te){te===void 0&&(te=16);const oe=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(te).replace(/x/g,oe)}function T(te){te=Te(te),te.forEach(oe=>{oe.setAttribute("tabIndex","0")})}function _(te){te=Te(te),te.forEach(oe=>{oe.setAttribute("tabIndex","-1")})}function H(te,oe){te=Te(te),te.forEach(ue=>{ue.setAttribute("role",oe)})}function Y(te,oe){te=Te(te),te.forEach(ue=>{ue.setAttribute("aria-roledescription",oe)})}function G(te,oe){te=Te(te),te.forEach(ue=>{ue.setAttribute("aria-controls",oe)})}function W(te,oe){te=Te(te),te.forEach(ue=>{ue.setAttribute("aria-label",oe)})}function F(te,oe){te=Te(te),te.forEach(ue=>{ue.setAttribute("id",oe)})}function R(te,oe){te=Te(te),te.forEach(ue=>{ue.setAttribute("aria-live",oe)})}function P(te){te=Te(te),te.forEach(oe=>{oe.setAttribute("aria-disabled",!0)})}function B(te){te=Te(te),te.forEach(oe=>{oe.setAttribute("aria-disabled",!1)})}function q(te){if(te.keyCode!==13&&te.keyCode!==32)return;const oe=i.params.a11y,ue=te.target;if(!(i.pagination&&i.pagination.el&&(ue===i.pagination.el||i.pagination.el.contains(te.target))&&!te.target.matches(Ct(i.params.pagination.bulletClass)))){if(i.navigation&&i.navigation.prevEl&&i.navigation.nextEl){const ye=Te(i.navigation.prevEl);Te(i.navigation.nextEl).includes(ue)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?A(oe.lastSlideMessage):A(oe.nextSlideMessage)),ye.includes(ue)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?A(oe.firstSlideMessage):A(oe.prevSlideMessage))}i.pagination&&ue.matches(Ct(i.params.pagination.bulletClass))&&ue.click()}}function j(){if(i.params.loop||i.params.rewind||!i.navigation)return;const{nextEl:te,prevEl:oe}=i.navigation;oe&&(i.isBeginning?(P(oe),_(oe)):(B(oe),T(oe))),te&&(i.isEnd?(P(te),_(te)):(B(te),T(te)))}function U(){return i.pagination&&i.pagination.bullets&&i.pagination.bullets.length}function le(){return U()&&i.params.pagination.clickable}function J(){const te=i.params.a11y;U()&&i.pagination.bullets.forEach(oe=>{i.params.pagination.clickable&&(T(oe),i.params.pagination.renderBullet||(H(oe,"button"),W(oe,te.paginationBulletMessage.replace(/\{\{index\}\}/,Ni(oe)+1)))),oe.matches(Ct(i.params.pagination.bulletActiveClass))?oe.setAttribute("aria-current","true"):oe.removeAttribute("aria-current")})}const K=(te,oe,ue)=>{T(te),te.tagName!=="BUTTON"&&(H(te,"button"),te.addEventListener("keydown",q)),W(te,ue),G(te,oe)},ee=te=>{S&&S!==te.target&&!S.contains(te.target)&&(g=!0),i.a11y.clicked=!0},ne=()=>{g=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.destroyed||(i.a11y.clicked=!1)})})},Q=te=>{y=new Date().getTime()},Z=te=>{if(i.a11y.clicked||new Date().getTime()-y<100)return;const oe=te.target.closest(`.${i.params.slideClass}, swiper-slide`);if(!oe||!i.slides.includes(oe))return;S=oe;const ue=i.slides.indexOf(oe)===i.activeIndex,ye=i.params.watchSlidesProgress&&i.visibleSlides&&i.visibleSlides.includes(oe);ue||ye||te.sourceCapabilities&&te.sourceCapabilities.firesTouchEvents||(i.isHorizontal()?i.el.scrollLeft=0:i.el.scrollTop=0,requestAnimationFrame(()=>{g||(i.slideTo(i.slides.indexOf(oe),0),g=!1)}))},se=()=>{const te=i.params.a11y;te.itemRoleDescriptionMessage&&Y(i.slides,te.itemRoleDescriptionMessage),te.slideRole&&H(i.slides,te.slideRole);const oe=i.slides.length;te.slideLabelMessage&&i.slides.forEach((ue,ye)=>{const he=i.params.loop?parseInt(ue.getAttribute("data-swiper-slide-index"),10):ye,pe=te.slideLabelMessage.replace(/\{\{index\}\}/,he+1).replace(/\{\{slidesLength\}\}/,oe);W(ue,pe)})},de=()=>{const te=i.params.a11y;i.el.append(f);const oe=i.el;te.containerRoleDescriptionMessage&&Y(oe,te.containerRoleDescriptionMessage),te.containerMessage&&W(oe,te.containerMessage);const ue=i.wrapperEl,ye=te.id||ue.getAttribute("id")||`swiper-wrapper-${M(16)}`,he=i.params.autoplay&&i.params.autoplay.enabled?"off":"polite";F(ue,ye),R(ue,he),se();let{nextEl:pe,prevEl:fe}=i.navigation?i.navigation:{};pe=Te(pe),fe=Te(fe),pe&&pe.forEach(ve=>K(ve,ye,te.nextSlideMessage)),fe&&fe.forEach(ve=>K(ve,ye,te.prevSlideMessage)),le()&&Te(i.pagination.el).forEach(Ae=>{Ae.addEventListener("keydown",q)}),je().addEventListener("visibilitychange",Q),i.el.addEventListener("focus",Z,!0),i.el.addEventListener("focus",Z,!0),i.el.addEventListener("pointerdown",ee,!0),i.el.addEventListener("pointerup",ne,!0)};function ge(){f&&f.remove();let{nextEl:te,prevEl:oe}=i.navigation?i.navigation:{};te=Te(te),oe=Te(oe),te&&te.forEach(ye=>ye.removeEventListener("keydown",q)),oe&&oe.forEach(ye=>ye.removeEventListener("keydown",q)),le()&&Te(i.pagination.el).forEach(he=>{he.removeEventListener("keydown",q)}),je().removeEventListener("visibilitychange",Q),i.el.removeEventListener("focus",Z,!0),i.el.removeEventListener("pointerdown",ee,!0),i.el.removeEventListener("pointerup",ne,!0)}d("beforeInit",()=>{f=at("span",i.params.a11y.notificationClass),f.setAttribute("aria-live","assertive"),f.setAttribute("aria-atomic","true")}),d("afterInit",()=>{i.params.a11y.enabled&&de()}),d("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{i.params.a11y.enabled&&se()}),d("fromEdge toEdge afterInit lock unlock",()=>{i.params.a11y.enabled&&j()}),d("paginationUpdate",()=>{i.params.a11y.enabled&&J()}),d("destroy",()=>{i.params.a11y.enabled&&ge()})}function Zp(s){let{swiper:i,extendParams:l,on:d}=s;l({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let f=!1,g={};const S=Y=>Y.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),y=Y=>{const G=Xe();let W;Y?W=new URL(Y):W=G.location;const F=W.pathname.slice(1).split("/").filter(q=>q!==""),R=F.length,P=F[R-2],B=F[R-1];return{key:P,value:B}},A=(Y,G)=>{const W=Xe();if(!f||!i.params.history.enabled)return;let F;i.params.url?F=new URL(i.params.url):F=W.location;const R=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${G}"]`):i.slides[G];let P=S(R.getAttribute("data-history"));if(i.params.history.root.length>0){let q=i.params.history.root;q[q.length-1]==="/"&&(q=q.slice(0,q.length-1)),P=`${q}/${Y?`${Y}/`:""}${P}`}else F.pathname.includes(Y)||(P=`${Y?`${Y}/`:""}${P}`);i.params.history.keepQuery&&(P+=F.search);const B=W.history.state;B&&B.value===P||(i.params.history.replaceState?W.history.replaceState({value:P},null,P):W.history.pushState({value:P},null,P))},M=(Y,G,W)=>{if(G)for(let F=0,R=i.slides.length;F<R;F+=1){const P=i.slides[F];if(S(P.getAttribute("data-history"))===G){const q=i.getSlideIndex(P);i.slideTo(q,Y,W)}}else i.slideTo(0,Y,W)},T=()=>{g=y(i.params.url),M(i.params.speed,g.value,!1)},_=()=>{const Y=Xe();if(i.params.history){if(!Y.history||!Y.history.pushState){i.params.history.enabled=!1,i.params.hashNavigation.enabled=!0;return}if(f=!0,g=y(i.params.url),!g.key&&!g.value){i.params.history.replaceState||Y.addEventListener("popstate",T);return}M(0,g.value,i.params.runCallbacksOnInit),i.params.history.replaceState||Y.addEventListener("popstate",T)}},H=()=>{const Y=Xe();i.params.history.replaceState||Y.removeEventListener("popstate",T)};d("init",()=>{i.params.history.enabled&&_()}),d("destroy",()=>{i.params.history.enabled&&H()}),d("transitionEnd _freeModeNoMomentumRelease",()=>{f&&A(i.params.history.key,i.activeIndex)}),d("slideChange",()=>{f&&i.params.cssMode&&A(i.params.history.key,i.activeIndex)})}function Kp(s){let{swiper:i,extendParams:l,emit:d,on:f}=s,g=!1;const S=je(),y=Xe();l({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(H,Y){if(i.virtual&&i.params.virtual.enabled){const G=i.slides.filter(F=>F.getAttribute("data-hash")===Y)[0];return G?parseInt(G.getAttribute("data-swiper-slide-index"),10):0}return i.getSlideIndex(Ve(i.slidesEl,`.${i.params.slideClass}[data-hash="${Y}"], swiper-slide[data-hash="${Y}"]`)[0])}}});const A=()=>{d("hashChange");const H=S.location.hash.replace("#",""),Y=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${i.activeIndex}"]`):i.slides[i.activeIndex],G=Y?Y.getAttribute("data-hash"):"";if(H!==G){const W=i.params.hashNavigation.getSlideIndex(i,H);if(typeof W>"u"||Number.isNaN(W))return;i.slideTo(W)}},M=()=>{if(!g||!i.params.hashNavigation.enabled)return;const H=i.virtual&&i.params.virtual.enabled?i.slidesEl.querySelector(`[data-swiper-slide-index="${i.activeIndex}"]`):i.slides[i.activeIndex],Y=H?H.getAttribute("data-hash")||H.getAttribute("data-history"):"";i.params.hashNavigation.replaceState&&y.history&&y.history.replaceState?(y.history.replaceState(null,null,`#${Y}`||""),d("hashSet")):(S.location.hash=Y||"",d("hashSet"))},T=()=>{if(!i.params.hashNavigation.enabled||i.params.history&&i.params.history.enabled)return;g=!0;const H=S.location.hash.replace("#","");if(H){const G=i.params.hashNavigation.getSlideIndex(i,H);i.slideTo(G||0,0,i.params.runCallbacksOnInit,!0)}i.params.hashNavigation.watchState&&y.addEventListener("hashchange",A)},_=()=>{i.params.hashNavigation.watchState&&y.removeEventListener("hashchange",A)};f("init",()=>{i.params.hashNavigation.enabled&&T()}),f("destroy",()=>{i.params.hashNavigation.enabled&&_()}),f("transitionEnd _freeModeNoMomentumRelease",()=>{g&&M()}),f("slideChange",()=>{g&&i.params.cssMode&&M()})}function yl(s){let{swiper:i,extendParams:l,on:d,emit:f,params:g}=s;i.autoplay={running:!1,paused:!1,timeLeft:0},l({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let S,y,A=g&&g.autoplay?g.autoplay.delay:3e3,M=g&&g.autoplay?g.autoplay.delay:3e3,T,_=new Date().getTime(),H,Y,G,W,F,R,P;function B(oe){!i||i.destroyed||!i.wrapperEl||oe.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",B),!P&&ee())}const q=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?H=!0:H&&(M=T,H=!1);const oe=i.autoplay.paused?T:_+M-new Date().getTime();i.autoplay.timeLeft=oe,f("autoplayTimeLeft",oe,oe/A),y=requestAnimationFrame(()=>{q()})},j=()=>{let oe;return i.virtual&&i.params.virtual.enabled?oe=i.slides.filter(ye=>ye.classList.contains("swiper-slide-active"))[0]:oe=i.slides[i.activeIndex],oe?parseInt(oe.getAttribute("data-swiper-autoplay"),10):void 0},U=oe=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(y),q();let ue=typeof oe>"u"?i.params.autoplay.delay:oe;A=i.params.autoplay.delay,M=i.params.autoplay.delay;const ye=j();!Number.isNaN(ye)&&ye>0&&typeof oe>"u"&&(ue=ye,A=ye,M=ye),T=ue;const he=i.params.speed,pe=()=>{!i||i.destroyed||(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(he,!0,!0),f("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,he,!0,!0),f("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(he,!0,!0),f("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,he,!0,!0),f("autoplay")),i.params.cssMode&&(_=new Date().getTime(),requestAnimationFrame(()=>{U()})))};return ue>0?(clearTimeout(S),S=setTimeout(()=>{pe()},ue)):requestAnimationFrame(()=>{pe()}),ue},le=()=>{_=new Date().getTime(),i.autoplay.running=!0,U(),f("autoplayStart")},J=()=>{i.autoplay.running=!1,clearTimeout(S),cancelAnimationFrame(y),f("autoplayStop")},K=(oe,ue)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(S),oe||(R=!0);const ye=()=>{f("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",B):ee()};if(i.autoplay.paused=!0,ue){F&&(T=i.params.autoplay.delay),F=!1,ye();return}T=(T||i.params.autoplay.delay)-(new Date().getTime()-_),!(i.isEnd&&T<0&&!i.params.loop)&&(T<0&&(T=0),ye())},ee=()=>{i.isEnd&&T<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(_=new Date().getTime(),R?(R=!1,U(T)):U(),i.autoplay.paused=!1,f("autoplayResume"))},ne=()=>{if(i.destroyed||!i.autoplay.running)return;const oe=je();oe.visibilityState==="hidden"&&(R=!0,K(!0)),oe.visibilityState==="visible"&&ee()},Q=oe=>{oe.pointerType==="mouse"&&(R=!0,P=!0,!(i.animating||i.autoplay.paused)&&K(!0))},Z=oe=>{oe.pointerType==="mouse"&&(P=!1,i.autoplay.paused&&ee())},se=()=>{i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",Q),i.el.addEventListener("pointerleave",Z))},de=()=>{i.el.removeEventListener("pointerenter",Q),i.el.removeEventListener("pointerleave",Z)},ge=()=>{je().addEventListener("visibilitychange",ne)},te=()=>{je().removeEventListener("visibilitychange",ne)};d("init",()=>{i.params.autoplay.enabled&&(se(),ge(),le())}),d("destroy",()=>{de(),te(),i.autoplay.running&&J()}),d("_freeModeStaticRelease",()=>{(G||R)&&ee()}),d("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?J():K(!0,!0)}),d("beforeTransitionStart",(oe,ue,ye)=>{i.destroyed||!i.autoplay.running||(ye||!i.params.autoplay.disableOnInteraction?K(!0,!0):J())}),d("sliderFirstMove",()=>{if(!(i.destroyed||!i.autoplay.running)){if(i.params.autoplay.disableOnInteraction){J();return}Y=!0,G=!1,R=!1,W=setTimeout(()=>{R=!0,G=!0,K(!0)},200)}}),d("touchEnd",()=>{if(!(i.destroyed||!i.autoplay.running||!Y)){if(clearTimeout(W),clearTimeout(S),i.params.autoplay.disableOnInteraction){G=!1,Y=!1;return}G&&i.params.cssMode&&ee(),G=!1,Y=!1}}),d("slideChange",()=>{i.destroyed||!i.autoplay.running||(F=!0)}),Object.assign(i.autoplay,{start:le,stop:J,pause:K,resume:ee})}function Jp(s){let{swiper:i,extendParams:l,on:d}=s;l({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let f=!1,g=!1;i.thumbs={swiper:null};function S(){const M=i.thumbs.swiper;if(!M||M.destroyed)return;const T=M.clickedIndex,_=M.clickedSlide;if(_&&_.classList.contains(i.params.thumbs.slideThumbActiveClass)||typeof T>"u"||T===null)return;let H;M.params.loop?H=parseInt(M.clickedSlide.getAttribute("data-swiper-slide-index"),10):H=T,i.params.loop?i.slideToLoop(H):i.slideTo(H)}function y(){const{thumbs:M}=i.params;if(f)return!1;f=!0;const T=i.constructor;if(M.swiper instanceof T)i.thumbs.swiper=M.swiper,Object.assign(i.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(i.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),i.thumbs.swiper.update();else if(Mi(M.swiper)){const _=Object.assign({},M.swiper);Object.assign(_,{watchSlidesProgress:!0,slideToClickedSlide:!1}),i.thumbs.swiper=new T(_),g=!0}return i.thumbs.swiper.el.classList.add(i.params.thumbs.thumbsContainerClass),i.thumbs.swiper.on("tap",S),!0}function A(M){const T=i.thumbs.swiper;if(!T||T.destroyed)return;const _=T.params.slidesPerView==="auto"?T.slidesPerViewDynamic():T.params.slidesPerView;let H=1;const Y=i.params.thumbs.slideThumbActiveClass;if(i.params.slidesPerView>1&&!i.params.centeredSlides&&(H=i.params.slidesPerView),i.params.thumbs.multipleActiveThumbs||(H=1),H=Math.floor(H),T.slides.forEach(F=>F.classList.remove(Y)),T.params.loop||T.params.virtual&&T.params.virtual.enabled)for(let F=0;F<H;F+=1)Ve(T.slidesEl,`[data-swiper-slide-index="${i.realIndex+F}"]`).forEach(R=>{R.classList.add(Y)});else for(let F=0;F<H;F+=1)T.slides[i.realIndex+F]&&T.slides[i.realIndex+F].classList.add(Y);const G=i.params.thumbs.autoScrollOffset,W=G&&!T.params.loop;if(i.realIndex!==T.realIndex||W){const F=T.activeIndex;let R,P;if(T.params.loop){const B=T.slides.filter(q=>q.getAttribute("data-swiper-slide-index")===`${i.realIndex}`)[0];R=T.slides.indexOf(B),P=i.activeIndex>i.previousIndex?"next":"prev"}else R=i.realIndex,P=R>i.previousIndex?"next":"prev";W&&(R+=P==="next"?G:-1*G),T.visibleSlidesIndexes&&T.visibleSlidesIndexes.indexOf(R)<0&&(T.params.centeredSlides?R>F?R=R-Math.floor(_/2)+1:R=R+Math.floor(_/2)-1:R>F&&T.params.slidesPerGroup,T.slideTo(R,M?0:void 0))}}d("beforeInit",()=>{const{thumbs:M}=i.params;if(!(!M||!M.swiper))if(typeof M.swiper=="string"||M.swiper instanceof HTMLElement){const T=je(),_=()=>{const Y=typeof M.swiper=="string"?T.querySelector(M.swiper):M.swiper;if(Y&&Y.swiper)M.swiper=Y.swiper,y(),A(!0);else if(Y){const G=W=>{M.swiper=W.detail[0],Y.removeEventListener("init",G),y(),A(!0),M.swiper.update(),i.update()};Y.addEventListener("init",G)}return Y},H=()=>{if(i.destroyed)return;_()||requestAnimationFrame(H)};requestAnimationFrame(H)}else y(),A(!0)}),d("slideChange update resize observerUpdate",()=>{A()}),d("setTransition",(M,T)=>{const _=i.thumbs.swiper;!_||_.destroyed||_.setTransition(T)}),d("beforeDestroy",()=>{const M=i.thumbs.swiper;!M||M.destroyed||g&&M.destroy()}),Object.assign(i.thumbs,{init:y,update:A})}function Qp(s){let{swiper:i,extendParams:l,emit:d,once:f}=s;l({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function g(){if(i.params.cssMode)return;const A=i.getTranslate();i.setTranslate(A),i.setTransition(0),i.touchEventsData.velocities.length=0,i.freeMode.onTouchEnd({currentPos:i.rtl?i.translate:-i.translate})}function S(){if(i.params.cssMode)return;const{touchEventsData:A,touches:M}=i;A.velocities.length===0&&A.velocities.push({position:M[i.isHorizontal()?"startX":"startY"],time:A.touchStartTime}),A.velocities.push({position:M[i.isHorizontal()?"currentX":"currentY"],time:rt()})}function y(A){let{currentPos:M}=A;if(i.params.cssMode)return;const{params:T,wrapperEl:_,rtlTranslate:H,snapGrid:Y,touchEventsData:G}=i,F=rt()-G.touchStartTime;if(M<-i.minTranslate()){i.slideTo(i.activeIndex);return}if(M>-i.maxTranslate()){i.slides.length<Y.length?i.slideTo(Y.length-1):i.slideTo(i.slides.length-1);return}if(T.freeMode.momentum){if(G.velocities.length>1){const J=G.velocities.pop(),K=G.velocities.pop(),ee=J.position-K.position,ne=J.time-K.time;i.velocity=ee/ne,i.velocity/=2,Math.abs(i.velocity)<T.freeMode.minimumVelocity&&(i.velocity=0),(ne>150||rt()-J.time>300)&&(i.velocity=0)}else i.velocity=0;i.velocity*=T.freeMode.momentumVelocityRatio,G.velocities.length=0;let R=1e3*T.freeMode.momentumRatio;const P=i.velocity*R;let B=i.translate+P;H&&(B=-B);let q=!1,j;const U=Math.abs(i.velocity)*20*T.freeMode.momentumBounceRatio;let le;if(B<i.maxTranslate())T.freeMode.momentumBounce?(B+i.maxTranslate()<-U&&(B=i.maxTranslate()-U),j=i.maxTranslate(),q=!0,G.allowMomentumBounce=!0):B=i.maxTranslate(),T.loop&&T.centeredSlides&&(le=!0);else if(B>i.minTranslate())T.freeMode.momentumBounce?(B-i.minTranslate()>U&&(B=i.minTranslate()+U),j=i.minTranslate(),q=!0,G.allowMomentumBounce=!0):B=i.minTranslate(),T.loop&&T.centeredSlides&&(le=!0);else if(T.freeMode.sticky){let J;for(let K=0;K<Y.length;K+=1)if(Y[K]>-B){J=K;break}Math.abs(Y[J]-B)<Math.abs(Y[J-1]-B)||i.swipeDirection==="next"?B=Y[J]:B=Y[J-1],B=-B}if(le&&f("transitionEnd",()=>{i.loopFix()}),i.velocity!==0){if(H?R=Math.abs((-B-i.translate)/i.velocity):R=Math.abs((B-i.translate)/i.velocity),T.freeMode.sticky){const J=Math.abs((H?-B:B)-i.translate),K=i.slidesSizesGrid[i.activeIndex];J<K?R=T.speed:J<2*K?R=T.speed*1.5:R=T.speed*2.5}}else if(T.freeMode.sticky){i.slideToClosest();return}T.freeMode.momentumBounce&&q?(i.updateProgress(j),i.setTransition(R),i.setTranslate(B),i.transitionStart(!0,i.swipeDirection),i.animating=!0,Xi(_,()=>{!i||i.destroyed||!G.allowMomentumBounce||(d("momentumBounce"),i.setTransition(T.speed),setTimeout(()=>{i.setTranslate(j),Xi(_,()=>{!i||i.destroyed||i.transitionEnd()})},0))})):i.velocity?(d("_freeModeNoMomentumRelease"),i.updateProgress(B),i.setTransition(R),i.setTranslate(B),i.transitionStart(!0,i.swipeDirection),i.animating||(i.animating=!0,Xi(_,()=>{!i||i.destroyed||i.transitionEnd()}))):i.updateProgress(B),i.updateActiveIndex(),i.updateSlidesClasses()}else if(T.freeMode.sticky){i.slideToClosest();return}else T.freeMode&&d("_freeModeNoMomentumRelease");(!T.freeMode.momentum||F>=T.longSwipesMs)&&(d("_freeModeStaticRelease"),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses())}Object.assign(i,{freeMode:{onTouchStart:g,onTouchMove:S,onTouchEnd:y}})}function eg(s){let{swiper:i,extendParams:l,on:d}=s;l({grid:{rows:1,fill:"column"}});let f,g,S,y;const A=()=>{let W=i.params.spaceBetween;return typeof W=="string"&&W.indexOf("%")>=0?W=parseFloat(W.replace("%",""))/100*i.size:typeof W=="string"&&(W=parseFloat(W)),W},M=W=>{const{slidesPerView:F}=i.params,{rows:R,fill:P}=i.params.grid,B=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:W.length;S=Math.floor(B/R),Math.floor(B/R)===B/R?f=B:f=Math.ceil(B/R)*R,F!=="auto"&&P==="row"&&(f=Math.max(f,F*R)),g=f/R},T=()=>{i.slides&&i.slides.forEach(W=>{W.swiperSlideGridSet&&(W.style.height="",W.style[i.getDirectionLabel("margin-top")]="")})},_=(W,F,R)=>{const{slidesPerGroup:P}=i.params,B=A(),{rows:q,fill:j}=i.params.grid,U=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:R.length;let le,J,K;if(j==="row"&&P>1){const ee=Math.floor(W/(P*q)),ne=W-q*P*ee,Q=ee===0?P:Math.min(Math.ceil((U-ee*q*P)/q),P);K=Math.floor(ne/Q),J=ne-K*Q+ee*P,le=J+K*f/q,F.style.order=le}else j==="column"?(J=Math.floor(W/q),K=W-J*q,(J>S||J===S&&K===q-1)&&(K+=1,K>=q&&(K=0,J+=1))):(K=Math.floor(W/g),J=W-K*g);F.row=K,F.column=J,F.style.height=`calc((100% - ${(q-1)*B}px) / ${q})`,F.style[i.getDirectionLabel("margin-top")]=K!==0?B&&`${B}px`:"",F.swiperSlideGridSet=!0},H=(W,F)=>{const{centeredSlides:R,roundLengths:P}=i.params,B=A(),{rows:q}=i.params.grid;if(i.virtualSize=(W+B)*f,i.virtualSize=Math.ceil(i.virtualSize/q)-B,i.params.cssMode||(i.wrapperEl.style[i.getDirectionLabel("width")]=`${i.virtualSize+B}px`),R){const j=[];for(let U=0;U<F.length;U+=1){let le=F[U];P&&(le=Math.floor(le)),F[U]<i.virtualSize+F[0]&&j.push(le)}F.splice(0,F.length),F.push(...j)}},Y=()=>{y=i.params.grid&&i.params.grid.rows>1},G=()=>{const{params:W,el:F}=i,R=W.grid&&W.grid.rows>1;y&&!R?(F.classList.remove(`${W.containerModifierClass}grid`,`${W.containerModifierClass}grid-column`),S=1,i.emitContainerClasses()):!y&&R&&(F.classList.add(`${W.containerModifierClass}grid`),W.grid.fill==="column"&&F.classList.add(`${W.containerModifierClass}grid-column`),i.emitContainerClasses()),y=R};d("init",Y),d("update",G),i.grid={initSlides:M,unsetSlides:T,updateSlide:_,updateWrapperSize:H}}function tg(s){const i=this,{params:l,slidesEl:d}=i;l.loop&&i.loopDestroy();const f=g=>{if(typeof g=="string"){const S=document.createElement("div");S.innerHTML=g,d.append(S.children[0]),S.innerHTML=""}else d.append(g)};if(typeof s=="object"&&"length"in s)for(let g=0;g<s.length;g+=1)s[g]&&f(s[g]);else f(s);i.recalcSlides(),l.loop&&i.loopCreate(),(!l.observer||i.isElement)&&i.update()}function ig(s){const i=this,{params:l,activeIndex:d,slidesEl:f}=i;l.loop&&i.loopDestroy();let g=d+1;const S=y=>{if(typeof y=="string"){const A=document.createElement("div");A.innerHTML=y,f.prepend(A.children[0]),A.innerHTML=""}else f.prepend(y)};if(typeof s=="object"&&"length"in s){for(let y=0;y<s.length;y+=1)s[y]&&S(s[y]);g=d+s.length}else S(s);i.recalcSlides(),l.loop&&i.loopCreate(),(!l.observer||i.isElement)&&i.update(),i.slideTo(g,0,!1)}function ag(s,i){const l=this,{params:d,activeIndex:f,slidesEl:g}=l;let S=f;d.loop&&(S-=l.loopedSlides,l.loopDestroy(),l.recalcSlides());const y=l.slides.length;if(s<=0){l.prependSlide(i);return}if(s>=y){l.appendSlide(i);return}let A=S>s?S+1:S;const M=[];for(let T=y-1;T>=s;T-=1){const _=l.slides[T];_.remove(),M.unshift(_)}if(typeof i=="object"&&"length"in i){for(let T=0;T<i.length;T+=1)i[T]&&g.append(i[T]);A=S>s?S+i.length:S}else g.append(i);for(let T=0;T<M.length;T+=1)g.append(M[T]);l.recalcSlides(),d.loop&&l.loopCreate(),(!d.observer||l.isElement)&&l.update(),d.loop?l.slideTo(A+l.loopedSlides,0,!1):l.slideTo(A,0,!1)}function sg(s){const i=this,{params:l,activeIndex:d}=i;let f=d;l.loop&&(f-=i.loopedSlides,i.loopDestroy());let g=f,S;if(typeof s=="object"&&"length"in s){for(let y=0;y<s.length;y+=1)S=s[y],i.slides[S]&&i.slides[S].remove(),S<g&&(g-=1);g=Math.max(g,0)}else S=s,i.slides[S]&&i.slides[S].remove(),S<g&&(g-=1),g=Math.max(g,0);i.recalcSlides(),l.loop&&i.loopCreate(),(!l.observer||i.isElement)&&i.update(),l.loop?i.slideTo(g+i.loopedSlides,0,!1):i.slideTo(g,0,!1)}function rg(){const s=this,i=[];for(let l=0;l<s.slides.length;l+=1)i.push(l);s.removeSlide(i)}function ng(s){let{swiper:i}=s;Object.assign(i,{appendSlide:tg.bind(i),prependSlide:ig.bind(i),addSlide:ag.bind(i),removeSlide:sg.bind(i),removeAllSlides:rg.bind(i)})}function Si(s){const{effect:i,swiper:l,on:d,setTranslate:f,setTransition:g,overwriteParams:S,perspective:y,recreateShadows:A,getEffectParams:M}=s;d("beforeInit",()=>{if(l.params.effect!==i)return;l.classNames.push(`${l.params.containerModifierClass}${i}`),y&&y()&&l.classNames.push(`${l.params.containerModifierClass}3d`);const _=S?S():{};Object.assign(l.params,_),Object.assign(l.originalParams,_)}),d("setTranslate",()=>{l.params.effect===i&&f()}),d("setTransition",(_,H)=>{l.params.effect===i&&g(H)}),d("transitionEnd",()=>{if(l.params.effect===i&&A){if(!M||!M().slideShadows)return;l.slides.forEach(_=>{_.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(H=>H.remove())}),A()}});let T;d("virtualUpdate",()=>{l.params.effect===i&&(l.slides.length||(T=!0),requestAnimationFrame(()=>{T&&l.slides&&l.slides.length&&(f(),T=!1)}))})}function qi(s,i){const l=li(i);return l!==i&&(l.style.backfaceVisibility="hidden",l.style["-webkit-backface-visibility"]="hidden"),l}function Va(s){let{swiper:i,duration:l,transformElements:d,allSlides:f}=s;const{activeIndex:g}=i,S=y=>y.parentElement?y.parentElement:i.slides.filter(M=>M.shadowRoot&&M.shadowRoot===y.parentNode)[0];if(i.params.virtualTranslate&&l!==0){let y=!1,A;f?A=d:A=d.filter(M=>{const T=M.classList.contains("swiper-slide-transform")?S(M):M;return i.getSlideIndex(T)===g}),A.forEach(M=>{Xi(M,()=>{if(y||!i||i.destroyed)return;y=!0,i.animating=!1;const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(T)})})}}function og(s){let{swiper:i,extendParams:l,on:d}=s;l({fadeEffect:{crossFade:!1}}),Si({effect:"fade",swiper:i,on:d,setTranslate:()=>{const{slides:S}=i,y=i.params.fadeEffect;for(let A=0;A<S.length;A+=1){const M=i.slides[A];let _=-M.swiperSlideOffset;i.params.virtualTranslate||(_-=i.translate);let H=0;i.isHorizontal()||(H=_,_=0);const Y=i.params.fadeEffect.crossFade?Math.max(1-Math.abs(M.progress),0):1+Math.min(Math.max(M.progress,-1),0),G=qi(y,M);G.style.opacity=Y,G.style.transform=`translate3d(${_}px, ${H}px, 0px)`}},setTransition:S=>{const y=i.slides.map(A=>li(A));y.forEach(A=>{A.style.transitionDuration=`${S}ms`}),Va({swiper:i,duration:S,transformElements:y,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!i.params.cssMode})})}function lg(s){let{swiper:i,extendParams:l,on:d}=s;l({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const f=(A,M,T)=>{let _=T?A.querySelector(".swiper-slide-shadow-left"):A.querySelector(".swiper-slide-shadow-top"),H=T?A.querySelector(".swiper-slide-shadow-right"):A.querySelector(".swiper-slide-shadow-bottom");_||(_=at("div",`swiper-slide-shadow-cube swiper-slide-shadow-${T?"left":"top"}`.split(" ")),A.append(_)),H||(H=at("div",`swiper-slide-shadow-cube swiper-slide-shadow-${T?"right":"bottom"}`.split(" ")),A.append(H)),_&&(_.style.opacity=Math.max(-M,0)),H&&(H.style.opacity=Math.max(M,0))};Si({effect:"cube",swiper:i,on:d,setTranslate:()=>{const{el:A,wrapperEl:M,slides:T,width:_,height:H,rtlTranslate:Y,size:G,browser:W}=i,F=i.params.cubeEffect,R=i.isHorizontal(),P=i.virtual&&i.params.virtual.enabled;let B=0,q;F.shadow&&(R?(q=i.wrapperEl.querySelector(".swiper-cube-shadow"),q||(q=at("div","swiper-cube-shadow"),i.wrapperEl.append(q)),q.style.height=`${_}px`):(q=A.querySelector(".swiper-cube-shadow"),q||(q=at("div","swiper-cube-shadow"),A.append(q))));for(let U=0;U<T.length;U+=1){const le=T[U];let J=U;P&&(J=parseInt(le.getAttribute("data-swiper-slide-index"),10));let K=J*90,ee=Math.floor(K/360);Y&&(K=-K,ee=Math.floor(-K/360));const ne=Math.max(Math.min(le.progress,1),-1);let Q=0,Z=0,se=0;J%4===0?(Q=-ee*4*G,se=0):(J-1)%4===0?(Q=0,se=-ee*4*G):(J-2)%4===0?(Q=G+ee*4*G,se=G):(J-3)%4===0&&(Q=-G,se=3*G+G*4*ee),Y&&(Q=-Q),R||(Z=Q,Q=0);const de=`rotateX(${R?0:-K}deg) rotateY(${R?K:0}deg) translate3d(${Q}px, ${Z}px, ${se}px)`;ne<=1&&ne>-1&&(B=J*90+ne*90,Y&&(B=-J*90-ne*90),i.browser&&i.browser.need3dFix&&Math.abs(B)/90%2===1&&(B+=.001)),le.style.transform=de,F.slideShadows&&f(le,ne,R)}if(M.style.transformOrigin=`50% 50% -${G/2}px`,M.style["-webkit-transform-origin"]=`50% 50% -${G/2}px`,F.shadow)if(R)q.style.transform=`translate3d(0px, ${_/2+F.shadowOffset}px, ${-_/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${F.shadowScale})`;else{const U=Math.abs(B)-Math.floor(Math.abs(B)/90)*90,le=1.5-(Math.sin(U*2*Math.PI/360)/2+Math.cos(U*2*Math.PI/360)/2),J=F.shadowScale,K=F.shadowScale/le,ee=F.shadowOffset;q.style.transform=`scale3d(${J}, 1, ${K}) translate3d(0px, ${H/2+ee}px, ${-H/2/K}px) rotateX(-89.99deg)`}const j=(W.isSafari||W.isWebView)&&W.needPerspectiveFix?-G/2:0;M.style.transform=`translate3d(0px,0,${j}px) rotateX(${i.isHorizontal()?0:B}deg) rotateY(${i.isHorizontal()?-B:0}deg)`,M.style.setProperty("--swiper-cube-translate-z",`${j}px`)},setTransition:A=>{const{el:M,slides:T}=i;if(T.forEach(_=>{_.style.transitionDuration=`${A}ms`,_.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(H=>{H.style.transitionDuration=`${A}ms`})}),i.params.cubeEffect.shadow&&!i.isHorizontal()){const _=M.querySelector(".swiper-cube-shadow");_&&(_.style.transitionDuration=`${A}ms`)}},recreateShadows:()=>{const A=i.isHorizontal();i.slides.forEach(M=>{const T=Math.max(Math.min(M.progress,1),-1);f(M,T,A)})},getEffectParams:()=>i.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function xi(s,i,l){const d=`swiper-slide-shadow${l?`-${l}`:""}${s?` swiper-slide-shadow-${s}`:""}`,f=li(i);let g=f.querySelector(`.${d.split(" ").join(".")}`);return g||(g=at("div",d.split(" ")),f.append(g)),g}function cg(s){let{swiper:i,extendParams:l,on:d}=s;l({flipEffect:{slideShadows:!0,limitRotation:!0}});const f=(A,M)=>{let T=i.isHorizontal()?A.querySelector(".swiper-slide-shadow-left"):A.querySelector(".swiper-slide-shadow-top"),_=i.isHorizontal()?A.querySelector(".swiper-slide-shadow-right"):A.querySelector(".swiper-slide-shadow-bottom");T||(T=xi("flip",A,i.isHorizontal()?"left":"top")),_||(_=xi("flip",A,i.isHorizontal()?"right":"bottom")),T&&(T.style.opacity=Math.max(-M,0)),_&&(_.style.opacity=Math.max(M,0))};Si({effect:"flip",swiper:i,on:d,setTranslate:()=>{const{slides:A,rtlTranslate:M}=i,T=i.params.flipEffect;for(let _=0;_<A.length;_+=1){const H=A[_];let Y=H.progress;i.params.flipEffect.limitRotation&&(Y=Math.max(Math.min(H.progress,1),-1));const G=H.swiperSlideOffset;let F=-180*Y,R=0,P=i.params.cssMode?-G-i.translate:-G,B=0;i.isHorizontal()?M&&(F=-F):(B=P,P=0,R=-F,F=0),i.browser&&i.browser.need3dFix&&(Math.abs(F)/90%2===1&&(F+=.001),Math.abs(R)/90%2===1&&(R+=.001)),H.style.zIndex=-Math.abs(Math.round(Y))+A.length,T.slideShadows&&f(H,Y);const q=`translate3d(${P}px, ${B}px, 0px) rotateX(${R}deg) rotateY(${F}deg)`,j=qi(T,H);j.style.transform=q}},setTransition:A=>{const M=i.slides.map(T=>li(T));M.forEach(T=>{T.style.transitionDuration=`${A}ms`,T.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(_=>{_.style.transitionDuration=`${A}ms`})}),Va({swiper:i,duration:A,transformElements:M})},recreateShadows:()=>{i.params.flipEffect,i.slides.forEach(A=>{let M=A.progress;i.params.flipEffect.limitRotation&&(M=Math.max(Math.min(A.progress,1),-1)),f(A,M)})},getEffectParams:()=>i.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!i.params.cssMode})})}function dg(s){let{swiper:i,extendParams:l,on:d}=s;l({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),Si({effect:"coverflow",swiper:i,on:d,setTranslate:()=>{const{width:S,height:y,slides:A,slidesSizesGrid:M}=i,T=i.params.coverflowEffect,_=i.isHorizontal(),H=i.translate,Y=_?-H+S/2:-H+y/2,G=_?T.rotate:-T.rotate,W=T.depth;for(let F=0,R=A.length;F<R;F+=1){const P=A[F],B=M[F],q=P.swiperSlideOffset,j=(Y-q-B/2)/B,U=typeof T.modifier=="function"?T.modifier(j):j*T.modifier;let le=_?G*U:0,J=_?0:G*U,K=-W*Math.abs(U),ee=T.stretch;typeof ee=="string"&&ee.indexOf("%")!==-1&&(ee=parseFloat(T.stretch)/100*B);let ne=_?0:ee*U,Q=_?ee*U:0,Z=1-(1-T.scale)*Math.abs(U);Math.abs(Q)<.001&&(Q=0),Math.abs(ne)<.001&&(ne=0),Math.abs(K)<.001&&(K=0),Math.abs(le)<.001&&(le=0),Math.abs(J)<.001&&(J=0),Math.abs(Z)<.001&&(Z=0),i.browser&&i.browser.need3dFix&&(Math.abs(le)/90%2===1&&(le+=.001),Math.abs(J)/90%2===1&&(J+=.001));const se=`translate3d(${Q}px,${ne}px,${K}px) rotateX(${J}deg) rotateY(${le}deg) scale(${Z})`,de=qi(T,P);if(de.style.transform=se,P.style.zIndex=-Math.abs(Math.round(U))+1,T.slideShadows){let ge=_?P.querySelector(".swiper-slide-shadow-left"):P.querySelector(".swiper-slide-shadow-top"),te=_?P.querySelector(".swiper-slide-shadow-right"):P.querySelector(".swiper-slide-shadow-bottom");ge||(ge=xi("coverflow",P,_?"left":"top")),te||(te=xi("coverflow",P,_?"right":"bottom")),ge&&(ge.style.opacity=U>0?U:0),te&&(te.style.opacity=-U>0?-U:0)}}},setTransition:S=>{i.slides.map(A=>li(A)).forEach(A=>{A.style.transitionDuration=`${S}ms`,A.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(M=>{M.style.transitionDuration=`${S}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function hg(s){let{swiper:i,extendParams:l,on:d}=s;l({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const f=y=>typeof y=="string"?y:`${y}px`;Si({effect:"creative",swiper:i,on:d,setTranslate:()=>{const{slides:y,wrapperEl:A,slidesSizesGrid:M}=i,T=i.params.creativeEffect,{progressMultiplier:_}=T,H=i.params.centeredSlides;if(H){const Y=M[0]/2-i.params.slidesOffsetBefore||0;A.style.transform=`translateX(calc(50% - ${Y}px))`}for(let Y=0;Y<y.length;Y+=1){const G=y[Y],W=G.progress,F=Math.min(Math.max(G.progress,-T.limitProgress),T.limitProgress);let R=F;H||(R=Math.min(Math.max(G.originalProgress,-T.limitProgress),T.limitProgress));const P=G.swiperSlideOffset,B=[i.params.cssMode?-P-i.translate:-P,0,0],q=[0,0,0];let j=!1;i.isHorizontal()||(B[1]=B[0],B[0]=0);let U={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};F<0?(U=T.next,j=!0):F>0&&(U=T.prev,j=!0),B.forEach((Z,se)=>{B[se]=`calc(${Z}px + (${f(U.translate[se])} * ${Math.abs(F*_)}))`}),q.forEach((Z,se)=>{let de=U.rotate[se]*Math.abs(F*_);i.browser&&i.browser.need3dFix&&Math.abs(de)/90%2===1&&(de+=.001),q[se]=de}),G.style.zIndex=-Math.abs(Math.round(W))+y.length;const le=B.join(", "),J=`rotateX(${q[0]}deg) rotateY(${q[1]}deg) rotateZ(${q[2]}deg)`,K=R<0?`scale(${1+(1-U.scale)*R*_})`:`scale(${1-(1-U.scale)*R*_})`,ee=R<0?1+(1-U.opacity)*R*_:1-(1-U.opacity)*R*_,ne=`translate3d(${le}) ${J} ${K}`;if(j&&U.shadow||!j){let Z=G.querySelector(".swiper-slide-shadow");if(!Z&&U.shadow&&(Z=xi("creative",G)),Z){const se=T.shadowPerProgress?F*(1/T.limitProgress):F;Z.style.opacity=Math.min(Math.max(Math.abs(se),0),1)}}const Q=qi(T,G);Q.style.transform=ne,Q.style.opacity=ee,U.origin&&(Q.style.transformOrigin=U.origin)}},setTransition:y=>{const A=i.slides.map(M=>li(M));A.forEach(M=>{M.style.transitionDuration=`${y}ms`,M.querySelectorAll(".swiper-slide-shadow").forEach(T=>{T.style.transitionDuration=`${y}ms`})}),Va({swiper:i,duration:y,transformElements:A,allSlides:!0})},perspective:()=>i.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!i.params.cssMode})})}function ug(s){let{swiper:i,extendParams:l,on:d}=s;l({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),Si({effect:"cards",swiper:i,on:d,setTranslate:()=>{const{slides:S,activeIndex:y,rtlTranslate:A}=i,M=i.params.cardsEffect,{startTranslate:T,isTouched:_}=i.touchEventsData,H=A?-i.translate:i.translate;for(let Y=0;Y<S.length;Y+=1){const G=S[Y],W=G.progress,F=Math.min(Math.max(W,-4),4);let R=G.swiperSlideOffset;i.params.centeredSlides&&!i.params.cssMode&&(i.wrapperEl.style.transform=`translateX(${i.minTranslate()}px)`),i.params.centeredSlides&&i.params.cssMode&&(R-=S[0].swiperSlideOffset);let P=i.params.cssMode?-R-i.translate:-R,B=0;const q=-100*Math.abs(F);let j=1,U=-M.perSlideRotate*F,le=M.perSlideOffset-Math.abs(F)*.75;const J=i.virtual&&i.params.virtual.enabled?i.virtual.from+Y:Y,K=(J===y||J===y-1)&&F>0&&F<1&&(_||i.params.cssMode)&&H<T,ee=(J===y||J===y+1)&&F<0&&F>-1&&(_||i.params.cssMode)&&H>T;if(K||ee){const se=(1-Math.abs((Math.abs(F)-.5)/.5))**.5;U+=-28*F*se,j+=-.5*se,le+=96*se,B=`${-25*se*Math.abs(F)}%`}if(F<0?P=`calc(${P}px ${A?"-":"+"} (${le*Math.abs(F)}%))`:F>0?P=`calc(${P}px ${A?"-":"+"} (-${le*Math.abs(F)}%))`:P=`${P}px`,!i.isHorizontal()){const se=B;B=P,P=se}const ne=F<0?`${1+(1-j)*F}`:`${1-(1-j)*F}`,Q=` translate3d(${P}, ${B}, ${q}px) rotateZ(${M.rotate?A?-U:U:0}deg) scale(${ne}) `;if(M.slideShadows){let se=G.querySelector(".swiper-slide-shadow");se||(se=xi("cards",G)),se&&(se.style.opacity=Math.min(Math.max((Math.abs(F)-.5)/.5,0),1))}G.style.zIndex=-Math.abs(Math.round(W))+S.length;const Z=qi(M,G);Z.style.transform=Q}},setTransition:S=>{const y=i.slides.map(A=>li(A));y.forEach(A=>{A.style.transitionDuration=`${S}ms`,A.querySelectorAll(".swiper-slide-shadow").forEach(M=>{M.style.transitionDuration=`${S}ms`})}),Va({swiper:i,duration:S,transformElements:y})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!i.params.cssMode})})}const fg=[Bp,Wp,Gp,ci,Ga,Vp,jp,$p,qp,Up,Zp,Kp,yl,Jp,Qp,eg,ng,og,lg,cg,dg,hg,ug];He.use(fg);window.AOS=Cf;window.Alpine=Ar;Ar.plugin(bu);Ar.start();window.ApexCharts=wu;He.use([ci,Ga,yl]);new He(".category-slider",{slidesPerView:"auto",spaceBetween:24,modules:[ci],navigation:{nextEl:".category-slider_next",prevEl:".category-slider_prev"}});new He(".hero-banner",{slidesPerView:1,spaceBetween:24,modules:[ci,Ga],navigation:{nextEl:".banner-slider-next",prevEl:".banner-slider-prev"},pagination:{el:".banner-slider-pagination",clickable:!0}});new He(".testimonial-slider",{slidesPerView:1,spaceBetween:24,modules:[ci,Ga],navigation:{nextEl:".banner-slider-next",prevEl:".banner-slider-prev"},pagination:{el:".banner-slider-pagination",clickable:!0},breakpoints:{524:{slidesPerView:2,spaceBetween:20},991:{slidesPerView:3,spaceBetween:30}}});new He(".brand-slider",{slidesPerView:"auto",loop:!0,autoplay:{delay:500},spaceBetween:48});var pg=new He(".galleryList",{loop:!0,spaceBetween:8,slidesPerView:"auto",freeMode:!0,watchSlidesProgress:!0});new He(".galleryView",{spaceBetween:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},thumbs:{swiper:pg}});new He(".galleryView2",{spaceBetween:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});new He(".choose-category-slider",{slidesPerView:"auto",spaceBetween:16,modules:[ci],navigation:{nextEl:".choose-category-slider_next",prevEl:".choose-category-slider_prev"}});new He(".hero-category-slider",{slidesPerView:"auto",spaceBetween:24,modules:[ci],navigation:{nextEl:".hero-category-slider_next",prevEl:".hero-category-slider_prev"}});window.onload=function(){setTimeout(function(){document.querySelector(".preloader")&&(document.querySelector(".preloader").style.display="none")},1e3)}; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0172 ]-- |