(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-16694b50"],{"028d":function(t,e,i){"use strict";i.d(e,"a",(function(){return g}));var n=i("516a"),r=i("be33"),a=i("84cf"),s=i("993b"),o=i("07a8"),l=i("c125"),h=i("baa2"),u=i("2082"),p=i("916c"),c=i("5134"),d=i("4a14"),f=i("5290"),g=function(t){function e(){var e=t.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=(new l["a"]).getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="…",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",(function(){e.inited&&e.handleMaxSize()}),e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.validatePosition()},e.prototype.setPaper=function(e){var i=t.prototype.setPaper.call(this,e);return i&&this.hardInvalidate(),i},e.prototype.handleValidate=function(){!this.currentText&&!this.text||0!=this.bbox.width&&0!=this.bbox.height||a["b"].events.once("exitframe",this.hardInvalidate,this)},e.prototype.handleMaxSize=function(){(this.bbox.width>this.availableWidth||this.bbox.widththis.availableHeight||this.bbox.heightr){this.isOversized=!0;var k=w.element.textContent,I=w.bbox.width/k.length,D=h["C"](Math.ceil((w.bbox.width-r)/I),k.length);if(this.truncate){var T=!1,j=w.element.node;if(j&&j.childNodes)for(var A=w.element.node.childNodes.length-1;A>=0;A--){var F=w.element.node.childNodes[A];if(T&&w.bbox.width<=r&&(F.textContent+=" "+this.ellipsis,w.bbox=w.element.getBBox(),w.bbox.width=Math.floor(w.bbox.width),w.bbox.width<=r))break;T=!1;var V=F.textContent;k=w.element.textContent,D=h["C"](Math.ceil((w.bbox.width-r)/I),k.length);while(w.bbox.width>r&&D<=k.length&&D>0){var M=h["B"](k.length-D-this.ellipsis.length,1);M<=1&&(D=0,A>0&&(T=!0,w.element.node.removeChild(F))),V=u["R"](V,M,this.ellipsis,this.fullWords,this.rtl),V.length>M&&this.fullWords&&(V=u["R"](V,M,this.ellipsis,!1,this.rtl)),F.textContent=V,w.bbox=w.element.getBBox(),w.bbox.width=Math.floor(w.bbox.width),D=Math.ceil(1.1*D)}O=!0}}else{var E=w.element.node;if(E){var L=w.element.node.lastChild,R=void 0;while(w.bbox.width>r&&D<=k.length&&D>0){M=h["B"](S.text.length-D,1);if(P?R=u["H"](S.text,M,!0,this.rtl):(R=u["H"](S.text,M,!0,this.rtl,!1),(R[0].length>M||1===M)&&(w.element.node.removeChild(L),D=0)),D>0){var B=R.shift();P&&(B=u["Q"](B)),L.textContent=Object(s["a"])().cleanUp(B)}w.bbox=w.element.getBBox(),w.bbox.width=Math.floor(w.bbox.width),D++}if(R.length>0){var H="";p["d"](R)&&(this.rtl?H+=R.join("")+m:H+=m+R.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var W=C+1;W0&&(y+=X),g.removeElement(Y);var z=this.getLineInfo(b);z&&(z.text="",z.element.textContent="")}}this.maybeHideOversized(),this.measureFailed=!1,0!=this.bbox.width&&0!=this.bbox.height||(this.measureFailed=!0),this._measuredWidth=h["E"](h["B"](this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=h["E"](h["B"](this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,i==this._measuredHeight&&e==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(d.length)}else{this.element.removeAttr("display"),this.resetBBox();g=this.element;g.removeChildren(),this.setCache("lineInfo",[],0);var U=this.paper.foreignObject();g.add(U),this.maxWidth&&U.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&U.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var G=this.getHTMLLineElement(c);U.node.appendChild(G),G.style.display="inline-block";var K=G.clientWidth,q=G.clientHeight;G.style.display="block",this._bbox={x:0,y:0,width:K,height:q},U.attr({width:K+1,height:q}),this.maybeHideOversized(),this._measuredWidth=h["B"](this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=h["B"](this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(G.style.overflow="hidden"),(K>r||q>a)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==f&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else n.events.once("maxsizechanged",this.hardInvalidate,this,!1)},e.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth=0;r--){var a=e[r];if(a.setAttribute("text-anchor",this.textAlign),this.textPathElement)a.removeAttribute("x"),a.removeAttribute("y");else{switch(this.textAlign){case"middle":a.setAttribute("x",(i/2).toString()+"px");break;case"end":this.rtl||a.setAttribute("x",i.toString());break;default:this.rtl?a.setAttribute("x",i.toString()):a.removeAttribute("text-anchor");break}var s=p["l"](a.getAttribute("y"));switch(this.textValign){case"middle":a.setAttribute("y",((s||0)+(n-this.bbox.height)/2).toString());break;case"bottom":a.setAttribute("y",((s||0)+n-this.bbox.height).toString());break;default:a.setAttribute("y",(s||0).toString());break}}}}},e.prototype.getSVGLineElement=function(t,e){var i=this.paper.addGroup("text");return i.textContent=t,i.attr({x:"0"}),p["d"](e)&&i.attr({y:e.toString()}),(this.truncate||this.wrap)&&i.attr({overflow:"hidden"}),i},Object.defineProperty(e.prototype,"rtl",{get:function(){return p["d"](this._rtl)?this._rtl:!!this._topParent&&this._topParent.rtl},set:function(t){t=p["k"](t),this._rtl=t,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),e.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},e.prototype.getHTMLLineElement=function(t){var e=document.createElement("div");switch(e.innerHTML=t,this.textAlign){case"middle":e.style.textAlign="center";break;case"end":e.style.textAlign="right";break}return this.wrap?e.style.wordWrap="break-word":e.style.whiteSpace="nowrap",this.rtl&&(e.style.direction="rtl"),p["d"](this.fill)&&(e.style.color=this.fill.toString()),e},e.prototype.setStyles=function(){var t=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?t.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(t.removeStyle("webkitUserSelect"),t.removeStyle("msUserSelect"))},e.prototype.hideUnused=function(t){this.initLineCache();var e=this.getCache("lineInfo");if(e.length>=t)for(var i=t;it?e[t]:void 0},e.prototype.addLineInfo=function(t,e){this.initLineCache(),this.getCache("lineInfo")[e]=t},e.prototype.initLineCache=function(){p["d"](this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},e.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new o["c"]([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),t.prototype.setDataItem.call(this,e)},Object.defineProperty(e.prototype,"availableWidth",{get:function(){return p["d"](this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"availableHeight",{get:function(){return p["d"](this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.getSvgElement=function(t,e,i){var n=this.paper.add("tspan");if(n.textContent=t,e)if(f["a"].nonce&&i){var r="amcharts_element_style_"+btoa(e).replace(/[^\w]*/g,"");n.node.setAttribute("class",r);var a=document.createElementNS(c["a"],"defs");i.node.appendChild(a);var s=document.createElement("style");s.type="text/css",s.innerHTML="."+r+" { "+e+"}",s.setAttribute("nonce",f["a"].nonce),a.appendChild(s)}else n.node.setAttribute("style",e);return i&&i.add(n),n},e.prototype.deepInvalidate=function(){t.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(e.prototype,"readerTitle",{get:function(){var t=this.getPropertyValue("readerTitle");return t?this.dataItem&&(t=this.populateString(t)):t=this.populateString(u["D"](u["y"](this.html)?this.html:this.text)),t},set:function(t){t=p["n"](t),this.setPropertyValue("readerTitle",t)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),e}(r["a"]);a["b"].registeredClasses["Label"]=g,d["c"].push({relevant:d["b"].heightXS,state:function(t,e){if(t instanceof g&&t.parent&&t.parent.isBaseSprite){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}})},"0344":function(t,e,i){"use strict";i.d(e,"a",(function(){return y}));var n=i("516a"),r=i("5134"),a=i("1735"),s=i("07a8"),o=i("c125"),l=new a["a"],h=function(t,e){e||(e="ampopup");var i=new o["a"],n=i.getFor("text"),a=i.getFor("background");a.alpha=.8;var h=i.getFor("alternativeBackground");h.alpha=.05;var u=l.insertKeyIfEmpty(e,(function(){var i=new s["c"]([new r["b"](t,"."+e,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new r["b"](t,"."+e+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":a.hex,opacity:"0.5"}),new r["b"](t,"."+e+"-header",{display:"block",width:"100%","min-height":"1.8em",background:h.rgba}),new r["b"](t,"."+e+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new r["b"](t,"."+e+"-content",{background:a.hex,"background-color":a.rgba,color:n.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new r["b"](t,"."+e+"-inside",{padding:"1em"}),new r["b"](t,"."+e+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new s["a"]((function(){l.removeKey(e),i.dispose()}))}));return u.increment()},u=i("a357"),p=i("1ebf"),c=i("e243"),d=i("04e4"),f=i("916c"),g=i("a0dd"),y=function(t){function e(){var e=t.call(this)||this;return e.adapter=new u["a"](e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return Object(n["c"])(e,t),e.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},e.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},e.prototype.dispose=function(){this.close(),t.prototype.dispose.call(this)},e.prototype.positionElement=function(t){var e=this;void 0===t&&(t=!0),this._elements.wrapper&&setTimeout((function(){if(e._elements.wrapper){if(t||!e._sized){e._elements.wrapper.style.opacity="0.01",e._elements.wrapper.style.left="0",e._elements.wrapper.style.top="0",e._elements.wrapper.style.margin="0 0 0 0",e._elements.wrapper.style.width="",e._elements.wrapper.style.height="";var i=e._elements.wrapper.getBoundingClientRect();e._elements.wrapper.style.width=i.width+"px",e._elements.wrapper.style.height=i.height+"px",e._sized=!0}if(e.dynamicResize)for(var n=e._elements.wrapper.getElementsByTagName("img"),r=0;r=0&&t0&&n.delay(e))})),n},e.prototype.dispose=function(){t.prototype.dispose.call(this),l["d"](this.sprites,(function(t){t.dispose()})),this.sprites=[]},e.prototype.hide=function(t,e,i,n){var r=this;if(this.isHiding=!0,l["d"](this.sprites,(function(i){var n=i.hide(t);null==n||n.isFinished()||(r._disposers.push(n),null!=e&&e>0&&n.delay(e))})),h["h"](i)&&n){var a;if(l["d"](n,(function(n){var s=r.setWorkingValue(n,i,t,e);s&&(a=s)})),a&&!a.isFinished())return this._hideDisposer=a.events.on("animationended",(function(){r.setVisibility(!1,!0),r.isHiding=!1})),this._disposers.push(this._hideDisposer),a;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},e.prototype.getDuration=function(t){if(!h["h"](t)){var e=this.component;e&&(t=e.interpolationDuration)}if(null!=t)return this._adapterO?this._adapterO.apply("duration",t):t},e.prototype.getValue=function(t,e){if(t&&this.component){e||(e=this.component.dataFields[t+"Show"],e||(e="value"));var i=this.values[t][e];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:i,field:t}).value:i}},e.prototype.getWorkingValue=function(t){if(t&&this.component){var e=this.component.dataFields[t+"Show"];return e||(e="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[t][e],field:t}).workingValue:this.values[t][e]}},e.prototype.getActualWorkingValue=function(t){return this.values[t].workingValue},e.prototype.setValue=function(t,e,i,n){var r=this.values[t].value,a=this.getDuration(i);if(e=h["l"](e),r!==e){if(this.values[t].value=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var s={type:"valuechanged",target:this,property:t};this.events.dispatchImmediately("valuechanged",s)}this.component&&this.component.handleDataItemValueChange(this,t)}this.setWorkingValue(t,e,a,n)},e.prototype.setCalculatedValue=function(t,e,i){var n=this.values[t][i];if(n!==e&&h["h"](e)){if(this.values[t][i]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var r={type:"calculatedvaluechanged",target:this,property:t};this.events.dispatchImmediately("calculatedvaluechanged",r)}this.component&&this.component.handleDataItemCalculatedValueChange(this,t)}},e.prototype.setWorkingValue=function(t,e,i,n){if(h["h"](this.values[t].value)){var r=this.getDuration(i),a=this.values[t].workingValue;if(null!=r&&r>0&&h["h"](a)&&this.component){if(a!=e){var s=this.animate({childObject:this.values[t],property:"workingValue",from:a,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&s.delay(n),s.events.on("animationstarted",this.handleInterpolationProgress,this),s.events.on("animationprogress",this.handleInterpolationProgress,this),s.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[t]=s,s}var o=this._valueAnimations[t];o&&o.stop(),this.values[t].workingValue=e}else{o=this._valueAnimations[t];if(o&&o.stop(),this.values[t].workingValue=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var l={type:"workingvaluechanged",target:this,property:t};this.events.dispatchImmediately("workingvaluechanged",l)}this.component&&this.component.handleDataItemWorkingValueChange(this,t)}}},e.prototype.setLocation=function(t,e,i,n){var r=this.locations[t];if(r!==e){if(this.locations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var a={type:"locationchanged",target:this,property:t};this.events.dispatchImmediately("locationchanged",a)}this.component&&this.component.handleDataItemValueChange(this,t),this.setWorkingLocation(t,e,i,n)}},e.prototype.setWorkingLocation=function(t,e,i,n){var r=this.getDuration(i),a=this.workingLocations[t];if(null!=r&&r>0&&h["h"](a)&&this.component){if(a!=e){var s=this.animate({childObject:this.workingLocations,property:t,from:a,to:e,dummyData:t},r,this.component.interpolationEasing);return null!=n&&s.delay(n),s.events.on("animationstarted",this.handleInterpolationProgress,this),s.events.on("animationprogress",this.handleInterpolationProgress,this),s.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[t]=s,s}var o=this._locationAnimations[t];o&&o.stop(),this.workingLocations[t]=e}else{o=this._locationAnimations[t];if(o&&o.stop(),this.workingLocations[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var l={type:"workinglocationchanged",target:this,property:t};this.events.dispatchImmediately("workinglocationchanged",l)}this.component&&this.component.handleDataItemWorkingLocationChange(this,t)}},e.prototype.setDate=function(t,e,i){!h["f"](e)&&this.component&&(e=this.component.dateFormatter.parse(e));var n=this.dates[t];n!==e&&(this.dates[t]=e,this.setValue(t,e.getTime(),i))},e.prototype.getDate=function(t){return this._adapterO?this._adapterO.apply("date",{date:this.dates[t],field:t}).date:this.dates[t]},e.prototype.setProperty=function(t,e){if(this.properties[t]!==e){if(this.hasProperties=!0,this.properties[t]=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var i={type:"propertychanged",target:this,property:t,value:e};this.events.dispatchImmediately("propertychanged",i)}this.component&&this.component.handleDataItemPropertyChange(this,t)}},e.prototype.setCategory=function(t,e){h["j"](e)||(e=h["a"](e)),this.categories[t]!==e&&(this.categories[t]=e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=o["e"](e.dataContext,{})),o["f"](e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(e.prototype,"opacity",{set:function(t){l["d"](this.sprites,(function(e){e.opacity=t}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){if(this._ignoreMinMax=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var e={type:"propertychanged",target:this,property:"ignoreMinMax",value:t};this.events.dispatchImmediately("propertychanged",e)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),e.prototype.animate=function(t,e,i){return new s["a"](this,t,e,i).start()},e.prototype.handleInterpolationProgress=function(t){var e=t.target,i=e.animationOptions[0];if(i){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var n={type:"workingvaluechanged",target:this,property:i.dummyData};this.events.dispatchImmediately("workingvaluechanged",n)}this.component&&this.component.handleDataItemWorkingValueChange(this,i.dummyData)}},e.prototype.hasValue=function(t){for(var e=0,i=t.length;e-1&&this._disposers.splice(e,1)}t.dispose()},t.prototype.clone=function(t){t||(t="clone-"+c["b"].getUniqueId());var e=new this.constructor;return e.cloneId=t,e.copyFrom(this),e},Object.defineProperty(t.prototype,"clones",{get:function(){return this._clones||(this._clones=new r["a"]),this._clones},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){t.clones.push(this),this.clonedFrom=t},Object.defineProperty(t.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){d["a"].set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),d["a"].get(this.uid,t,e)},t.prototype.clearCache=function(){d["a"].clear(this.uid)},t.prototype.setTimeout=function(t,e){var i=this,n=setTimeout((function(){i.removeDispose(r),t()}),e),r=new o["b"]((function(){clearTimeout(n)}));return this._disposers.push(r),r},t.prototype.setInterval=function(t,e){var i=this,n=setInterval((function(){i.removeDispose(r),t()}),e),r=new o["b"]((function(){clearTimeout(n)}));return this._disposers.push(r),r},Object.defineProperty(t.prototype,"config",{set:function(t){try{this.processConfig(t)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(e){var i=this;if(e){var n=this;if(g["f"](e,(function(e,o){var d,f=o;if("callback"==e&&"function"==typeof o&&o.call(n),i.hasProperty(e))if(!y["i"](f)||!y["d"](f["type"])||y["i"](n[e])&&y["d"](n[e].className)&&!f["forceCreate"]&&n[e].className==f["type"]||i.asIs(e)?d=n[e]:(d=i.createClassInstance(f["type"]),d?n[e]=d:d=n[e]),d instanceof h["a"])i.processAdapters(d,f);else if(d instanceof l["a"])i.processEvents(d,f);else if("locale"==e&&y["j"](f))window["am4lang_"+f]&&(n[e]=window["am4lang_"+f]);else if("parent"==e&&y["j"](f)){var m=i.map.getKey(f);m?n[e]=m:i.addDelayedMap("parent",f)}else if(i.asIs(e))n[e]=f;else if(i.asFunction(e)&&y["j"](f)){if(!y["d"](c["b"].registeredClasses[f]))throw Error("Invalid easing function: "+f);n[e]=c["b"].registeredClasses[f]}else if(f instanceof t)n[e]=f;else if(d instanceof t)d.config=f;else if(d instanceof r["c"]||d instanceof a["a"]||d instanceof a["c"]){if(y["e"](f))d instanceof r["c"]?i.processListTemplate(f,d):i.processOrderedTemplate(f,d);else if(y["i"](f))if(f instanceof t)d.template=f;else{var b=void 0;b=y["d"](f.template)?f.template:f,d.template instanceof t?d.template.config=b:g["d"](b,(function(e,n){var a=d.template[e];a instanceof h["a"]?i.processAdapters(a,n):a instanceof l["a"]?i.processEvents(a,n):a instanceof s["c"]?i.processDictionaryTemplate(a,n):d.template[e]instanceof t?d.template[e].config=n:y["i"](n)&&y["d"](n["type"])?(a=i.createClassInstance(n["type"]),a?(a instanceof t&&(a.config=n),d.template[e]=a):d.template[e]=n):a instanceof r["a"]?i.processList(n,a):d.template[e]=i.maybeColorOrPercent(n)})),y["d"](f.values)&&(d instanceof r["c"]?i.processListTemplate(f.values,d):i.processOrderedTemplate(f.values,d))}}else d instanceof r["a"]?"children"==e?i.processList(f,d,i):i.processList(f,d):d instanceof s["c"]?i.processDictionaryTemplate(d,f):d instanceof s["a"]?i.processDictionary(d,f):d instanceof u["a"]||d instanceof p["a"]?n[e]=i.maybeColorOrPercent(f):y["i"](d)&&y["i"](f)?g["b"](f,d):(f=i.maybeColorOrPercent(f),n[e]=f);else i.isReserved(e)||(n[e]=f)}),this.configOrder),this.processingErrors.length){var o=this.processingErrors.join("\n");throw this._processingErrors=[],Error(o)}}},t.prototype.maybeColorOrPercent=function(t){if(y["j"](t)){if(t.match(/^[\-]?[0-9.]+\%$/))return Object(p["c"])(y["l"](t));if(t.match(/^\#[0-9abcdef]{3,}$/i))return Object(u["b"])(t)}return t},t.prototype.processAdapters=function(t,e){var i=this;y["e"](e)?f["d"](e,(function(e,n){t.add(e.key,e.callback,e.priority||0,i)})):y["i"](e)&&g["d"](e,(function(e,i){t.has(e,i)||t.add(e,i)}))},t.prototype.processEvents=function(t,e){var i=this;y["e"](e)?f["d"](e,(function(e,n){t.on(e.type,e.callback,i)})):y["i"](e)&&g["d"](e,(function(e,i){t.has(e,i)||t.on(e,i)}))},t.prototype.processDictionaryTemplate=function(e,i){y["i"](i)&&g["d"](i,(function(i,n){var r;r="template"==i?e.template:e.hasKey(i)?e.getKey(i):e.create(i),r instanceof t?r.config=n:y["i"](r)&&y["i"](n)?g["b"](n,r):r.setKey(i,n)}))},t.prototype.processDictionary=function(t,e){y["i"](e)&&g["d"](e,(function(e,i){t.setKey(e,i)}))},t.prototype.processListTemplate=function(e,i){var n=this;f["d"](e,(function(e,r){var a,s=n.getConfigEntryType(e);if(i.hasIndex(r)&&!e["forceCreate"])a=i.getIndex(r);else{if(e instanceof t)return void i.push(e);a=s?i.create(s):i.create()}e===a||y["i"](e)&&(a instanceof t?a.config=e:y["i"](a)&&y["i"](e)?g["b"](e,a):i.setIndex(i.indexOf(a),e))}));while(e.length>i.length)i.pop()},t.prototype.processOrderedTemplate=function(e,i){var n=this;f["d"](e,(function(e,r){var a,s=n.getConfigEntryType(e);a=s?i.create(s):i.create(),y["i"](e)&&(a instanceof t?a.config=e:y["i"](a)&&y["i"](e)?g["b"](e,a):i.insert(e))}))},t.prototype.processList=function(e,i,n){var r=this;y["e"](e)||(e=[e]);var a=i.length,s=0;f["d"](e,(function(e,o){if(y["i"](e)){var l=void 0;if(oe&&(!0!==i||0!=r)){n&&(p=k(p));var d=p.match(new RegExp(".{1,"+e+"}","g"));if(d){if(n)for(var f=0;fe&&""!==a[s]&&(a.push(""),s++),a[s]+=p;s=a.length-1}}}else{d=t.match(new RegExp(".{1,"+e+"}","g"));if(d){if(n)for(f=0;fe&&(a=[]),a}function O(t,e,i,n,r){if(t.length<=e)return t;e-=i.length,e<1&&(e=1);var a=P(t,e,n,r);return(a[0]||"")+i}function w(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function C(t){return t.replace(/[\s\uFEFF\xA0]+$/g,"")}function S(t){return t.replace(/^[\s\uFEFF\xA0]+/g,"")}function k(t){return t.split("").reverse().join("")}function I(t,e,i){return void 0===e&&(e=0),void 0===i&&(i="0"),"string"!==typeof t&&(t=t.toString()),e>t.length?Array(e-t.length+1).join(i)+t:t}function D(t){if("undefined"===typeof t)return o["f"];t=t.toLowerCase().replace(/^\[[^\]]*\]/,""),t=t.replace(/\[[^\]]+\]/,""),t=t.trim();var e=t.match(/\/(date|number|duration)$/);return e?e[1]:t===o["c"]?o["c"]:t===o["a"]?o["a"]:t===o["b"]?o["b"]:t.match(/[#0]/)?o["c"]:t.match(/[ymwdhnsqaxkzgtei]/)?o["a"]:o["f"]}function T(t){return t.replace(/\/(date|number|duration)$/i,"")}function j(t){return t?t.replace(/<[^>]*>/g,""):t}function A(t){return t?j((""+t).replace(/[\n\r]+/g,". ")):t}function F(t){if(a["g"](t))return"NaN";if(t===1/0)return"Infinity";if(t===-1/0)return"-Infinity";if(0===t&&1/t===-1/0)return"-0";var e=t<0;t=Math.abs(t);var i,n=a["b"](/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+t)),r=n[1],o=n[2]||"";if(null==n[3])i=""===o?r:r+"."+o;else{var l=+n[3];if(t<1){var h=l-1;i="0."+s["c"]("0",h)+r+o}else{h=l-o.length;i=0===h?r+o:h<0?r+o.slice(0,h)+"."+o.slice(h):r+o+s["c"]("0",h)}}return e?"-"+i:i}function V(t){if(a["f"](t)){var e=new Date(t);return e.setMilliseconds(t.getMilliseconds()),e}if(a["h"](t))return new Date(t);var i=Number(t);return a["h"](i)?new Date(i):new Date(t)}function M(t){if(a["f"](t))return t.getTime();if(a["h"](t))return t;if(a["j"](t)){var e=Number(t);return a["h"](e)?e:void 0}}function E(t,e){void 0===e&&(e=!1);var i=new Date(t.getFullYear(),0,0),n=t.getTime()-i.getTime()+60*(i.getTimezoneOffset()-t.getTimezoneOffset())*1e3,r=864e5;return Math.floor(n/r)}function L(t,e){void 0===e&&(e=!1);var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-n);var r=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-r.getTime())/864e5+1)/7)}function R(t,e){void 0===e&&(e=!1);var i=L(new Date(t.getFullYear(),t.getMonth(),1),e),n=L(t,e);return 1==n&&(n=53),n-i+1}function B(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=new Date(e,0,4,0,0,0,0);n&&r.setUTCFullYear(e);var a=7*t+i-((r.getDay()||7)+3);return a}function H(t,e){return t>12?t-=12:0===t&&(t=12),a["d"](e)?t+(e-1):t}function W(t,e,i,n){if(void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===n&&(n=!1),n)return e?"Coordinated Universal Time":"UTC";var r=t.toLocaleString("UTC"),a=t.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(r.length);return!1===i&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),a}function N(t,e){void 0===e&&(e=!1);var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),n=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-n);var r=new Date(Date.UTC(i.getUTCFullYear(),0,1));return r.getFullYear()}function Y(t,e,i){return t>i?i:ti||t1&&r.pop(),h["n"](r,a),i.path=r.join("/"),""!==i.path&&"/"!==i.path[0])throw new Error("URL path must start with /")}return i.query=n.query,i.hash=n.hash,rt(i)}return rt(n)}function ot(){return!!window.MSInputMethodContext&&!!document.documentMode}},2282:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("516a"),r=i("1ebf"),a=i("84cf"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._validateDisposer=null,e}return Object(n["c"])(e,t),e.prototype.invalidate=function(){null===this._validateDisposer&&(this._validateDisposer=a["b"].events.on("exitframe",this.validate,this))},e.prototype.validate=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null)},e.prototype.dispose=function(){null!==this._validateDisposer&&(this._validateDisposer.dispose(),this._validateDisposer=null),t.prototype.dispose.call(this)},e}(r["b"])},"25c3":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));var n=i("516a"),r=i("ca92"),a=function(t){function e(e){return t.call(this,e)||this}return Object(n["c"])(e,t),e.prototype.add=function(t){t&&this.node.appendChild(t.node)},e.prototype.addToBack=function(t){if(t){var e=this.node.childNodes[0];e?e!=t.node&&this.node.insertBefore(t.node,e):this.node.appendChild(t.node)}},e.prototype.removeElement=function(t){if(t)try{t.node&&t.node.parentNode==this.node&&this.node.removeChild(t.node)}catch(e){}},e.prototype.hasChild=function(t){for(var e=0;e0){var t=this.node.firstChild;t&&t.parentNode&&t.parentNode.removeChild(t)}},e.prototype.removeChildrenByTag=function(t){if(this.node.childNodes)for(var e=this.node.getElementsByTagName(t),i=0;i0){var n="";this._realSegments=[];for(var r=0,a=t.length;r0){var u=o[0],p=o[o.length-1],c=!1;s["E"](u.x,3)==s["E"](p.x)&&s["E"](u.y)==s["E"](p.y)&&(c=!0),n+=l["g"](o[0]);for(var d=0;d0)for(var P=0;P<=x;P++){var O=s["t"](g,y,b,v,P/x);if(O.x!=_.x||O.y!=_.y){h.push(O);var w=s["E"](s["j"](_,O),5);this._distance+=s["q"](_,O),this.allPoints[Math.floor(this._distance)]={x:O.x,y:O.y,angle:w},_=O}}else h.push(f)}}var C=this.allPoints;if(C.length>1)for(var S=0;S1)C[S]=C[S-1];else for(var k=1;k1)for(var r=1;r1){if(e&&r>3){if(t<0){t<-.01&&(t=-.01);var a=n[0],l=n[1],h=a.x-(a.x-l.x)*r*t,u=a.y-(a.y-l.y)*r*t;return{x:h,y:u,angle:s["j"](a,l)}}if(t>1){t>1.01&&(t=1.01);a=n[n.length-2],l=n[n.length-3],h=a.x+(a.x-l.x)*r*(t-1),u=a.y+(a.y-l.y)*r*(t-1);return{x:h,y:u,angle:s["j"](a,{x:h,y:u})}}if(1==t){var p=n[n.length-1];return{x:p.x,y:p.y,angle:p.angle}}}else t<0&&(t=Math.abs(t),i=180),t>=1&&(t=.9999999999999);var c=n[Math.floor(t*r)];return{x:c.x,y:c.y,angle:c.angle+i}}if(1==r){c=n[0];return{x:c.x,y:c.y,angle:c.angle}}return{x:0,y:0,angle:0}},e}(r["a"]);a["b"].registeredClasses["Polyspline"]=h},"28f0":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("516a"),r=i("1b4c"),a=i("1ebf"),s=i("f2c0"),o=i("1735"),l=i("e243"),h=i("916c"),u=function(t){function e(e){var i=t.call(this)||this;return i._eventDispatcher=new r["a"](i),i.eventDisposers=new o["a"],i.replacedStyles=new o["a"],i._clickable=!1,i._contextMenuDisabled=!1,i._hoverable=!1,i._trackable=!1,i._draggable=!1,i._swipeable=!1,i._resizable=!1,i._wheelable=!1,i._inert=!1,i._isHover=!1,i.isRealHover=!1,i._isHoverByTouch=!1,i._isDown=!1,i._isFocused=!1,i._isTouchProtected=!1,i._inertiaOptions=new o["a"],i.inertias=new o["a"],i._hitOptions={},i._hoverOptions={},i._swipeOptions={},i._keyboardOptions={},i._mouseOptions={},i._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},i._disposers.push(i._eventDispatcher),i._element=e,i.className="InteractionObject",i._disposers.push(new o["b"](i.inertias)),i._disposers.push(new o["b"](i.eventDisposers)),i.applyTheme(),i}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHover",{get:function(){return this._isHover},set:function(t){this.isHover!=t&&(this._isHover=t,t?Object(l["a"])().overObjects.moveValue(this):(this.isRealHover=!1,Object(l["a"])().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(t){this.isHoverByTouch!=t&&(this._isHoverByTouch=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new s["a"]),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return this._isDown},set:function(t){this.isDown!=t&&(this._isDown=t,t?Object(l["a"])().downObjects.moveValue(this):Object(l["a"])().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new s["a"]),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this._isFocused},set:function(t){this.isFocused!=t&&(this._isFocused=t,Object(l["a"])().focusedObject=t?this:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(t){this._isTouchProtected!=t&&(this._isTouchProtected=t,t?Object(l["a"])().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&Object(l["a"])().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clickable",{get:function(){return this._clickable},set:function(t){this._clickable!==t&&(this._clickable=t,Object(l["a"])().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(t){this._contextMenuDisabled!==t&&(this._contextMenuDisabled=t,Object(l["a"])().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverable",{get:function(){return this._hoverable},set:function(t){this._hoverable!==t&&(this._hoverable=t,Object(l["a"])().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trackable",{get:function(){return this._trackable},set:function(t){this._trackable!==t&&(this._trackable=t,Object(l["a"])().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(t){this._draggable!==t&&(this._draggable=t,Object(l["a"])().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeable",{get:function(){return this._swipeable},set:function(t){this._swipeable!==t&&(this._swipeable=t,Object(l["a"])().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this._resizable},set:function(t){this._resizable!==t&&(this._resizable=t,Object(l["a"])().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wheelable",{get:function(){return this._wheelable},set:function(t){this._wheelable!==t&&(this._wheelable=t,Object(l["a"])().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inert",{get:function(){return this._inert},set:function(t){this._inert!==t&&(this._inert=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusable",{get:function(){return this._focusable},set:function(t){this._focusable!==t&&(this._focusable=t,this._focusable&&-1==this.tabindex&&(this._tabindex=1),Object(l["a"])().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabindex",{get:function(){return h["c"](this._tabindex,-1)},set:function(t){this._tabindex!==t&&(this._tabindex=t,t>-1&&(this.focusable=!0),Object(l["a"])().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this._element=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(t){this._originalPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalScale",{get:function(){return h["c"](this._originalScale,1)},set:function(t){this._originalScale!==t&&(this._originalScale=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalAngle",{get:function(){return h["c"](this._originalAngle,0)},set:function(t){this._originalAngle!==t&&(this._originalAngle=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(t){this._inertiaOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(t){this._hitOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(t){this._hoverOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(t){this._swipeOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(t){this._keyboardOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(t){this._mouseOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(t){this._cursorOptions=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,Object(l["a"])().applyCursorOverStyle(this)},e.prototype.setEventDisposer=function(t,e,i){var n=this.eventDisposers.getKey(t);e?null==n&&this.eventDisposers.setKey(t,i()):null!=n&&(n.dispose(),this.eventDisposers.removeKey(t))},e.prototype.dispose=function(){t.prototype.dispose.call(this);var e=Object(l["a"])();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},e}(a["b"])},"29b3":function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("516a"),r=i("be33"),a=i("5d2f"),s=i("baa2"),o=i("77b1"),l=i("03d5"),h=i("119d"),u=i("cd03"),p=i("c1b6"),c=i("916c"),d=function(t){function e(){var e=t.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var i=e.createChild(a["a"]);i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e.sideBack=i,e._disposers.push(e.sideBack);var n=e.createChild(a["a"]);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideBottom=n,e._disposers.push(e.sideBottom);var r=e.createChild(a["a"]);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideLeft=r,e._disposers.push(e.sideLeft);var s=e.createChild(a["a"]);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideRight=s,e._disposers.push(e.sideRight);var o=e.createChild(a["a"]);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideTop=o,e._disposers.push(e.sideTop);var l=e.createChild(a["a"]);return l.shouldClone=!1,l.setElement(e.paper.add("path")),l.isMeasured=!1,e.sideFront=l,e._disposers.push(e.sideFront),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight,n=this.depth,r=this.angle,a=s["F"](r),l=s["g"](r),h={x:0,y:0},u={x:e,y:0},p={x:e,y:i},c={x:0,y:i},d={x:n*l,y:-n*a},f={x:n*l+e,y:-n*a},g={x:n*l+e,y:-n*a+i},y={x:n*l,y:-n*a+i};this.sideFront.path=o["g"](h)+o["f"](u)+o["f"](p)+o["f"](c)+o["d"](),this.sideBack.path=o["g"](d)+o["f"](f)+o["f"](g)+o["f"](y)+o["d"](),this.sideLeft.path=o["g"](h)+o["f"](d)+o["f"](y)+o["f"](c)+o["d"](),this.sideRight.path=o["g"](u)+o["f"](f)+o["f"](g)+o["f"](p)+o["d"](),this.sideBottom.path=o["g"](c)+o["f"](y)+o["f"](g)+o["f"](p)+o["d"](),this.sideTop.path=o["g"](h)+o["f"](d)+o["f"](f)+o["f"](u)+o["d"]()},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),c["i"](e)&&!("r"in e)||(e=Object(l["c"])(e)),e instanceof l["a"])i=e.hex;else if(e instanceof u["a"]||e instanceof h["a"])i=e.stops.getIndex(0).color.hex;else{var n=new p["a"];n.lightness=-.2,this.sideBack.filters.push(n);var r=n.clone();r.lightness=-.4,this.sideLeft.filters.push(r);var a=n.clone();a.lightness=-.2,this.sideRight.filters.push(a);var s=n.clone();s.lightness=-.1,this.sideTop.filters.push(s);var o=n.clone();o.lightness=-.5,this.sideBottom.filters.push(o)}i&&(this.sideBack.fill=Object(l["b"])(i).lighten(-.2),this.sideLeft.fill=Object(l["b"])(i).lighten(-.4),this.sideRight.fill=Object(l["b"])(i).lighten(-.2),this.sideTop.fill=Object(l["b"])(i).lighten(-.1),this.sideBottom.fill=Object(l["b"])(i).lighten(-.5))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)},e}(r["a"])},"2b87":function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"b",(function(){return a}));var n=function(){function t(t){this._value=t}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._value+"%"},t}();function r(t){return new n(t)}function a(t){return t instanceof n}},"2d86":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("516a"),r=i("5d2f"),a=i("03d5"),s=i("cd03"),o=i("84cf"),l=i("916c"),h=i("baa2"),u=function(t){function e(){var e=t.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=Object(a["b"])(),e.x1=0,e.y1=0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(e.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(t){l["h"](t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof s["a"]&&(e=1e-5),this.setPropertyValue("x1",t,!0),this.element.attr({x1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x2",{get:function(){var t=this.getPropertyValue("x2");return l["h"](t)||(t=this.pixelWidth),t},set:function(t){l["h"](t)||(t=0),this.setPropertyValue("x2",t,!0),this.element.attr({x2:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(t){l["h"](t)||(t=0);var e=0;this.pixelPerfect&&this.stroke instanceof s["a"]&&(e=1e-5),this.setPropertyValue("y1",t,!0),this.element.attr({y1:t+e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y2",{get:function(){var t=this.getPropertyValue("y2");return l["h"](t)||(t=this.pixelHeight),t},set:function(t){l["h"](t)||(t=0),this.setPropertyValue("y2",t,!0),this.element.attr({y2:t})},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.x2,y:this.y2},n=h["s"](e,i,t),r=h["j"](e,i);return{x:n.x,y:n.y,angle:r}},e}(r["a"]);o["b"].registeredClasses["Line"]=u},"2f36":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("516a"),r=i("9fe8"),a=i("5d2f"),s=i("84cf"),o=i("c125"),l=i("77b1"),h=i("916c"),u=function(t){function e(){var e=t.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var i=new o["a"],n=e.background;n.cornerRadius(20,20,20,20),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new a["a"];r.element=e.paper.add("path");var s=l["g"]({x:0,y:0});return s+=l["f"]({x:11,y:0}),r.path=s,r.pixelPerfect=!0,r.padding(8,3,8,3),r.stroke=i.getFor("primaryButtonText"),e.icon=r,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),h["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},e}(r["a"]);s["b"].registeredClasses["ZoomOutButton"]=u},"3ac2":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("516a"),r=i("1ebf"),a=i("cb90"),s=i("cabc"),o=i("f2c0"),l=i("a0dd"),h=i("0357"),u=function(t){function e(){var e=t.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new o["a"],e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",(function(t){e._disposers.push(t.newValue)})),e.width=120,e.height=120,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.appendPrimitives=function(t){h["d"](this.filterPrimitives.iterator(),(function(e){t.add(e)}))},e.prototype.animate=function(t,e,i){var n=new s["a"](this,t,e,i).start();return n},Object.defineProperty(e.prototype,"width",{get:function(){return this.properties["width"]},set:function(t){this.properties["width"]=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.properties["height"]},set:function(t){this.properties["height"]=t},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),l["d"](e.properties,(function(t,e){i[t]=e}))},Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Object(a["b"])()},set:function(t){this._paper!=t&&(this._paper=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new s["b"](this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},set:function(t){this._scale=t,this.updateScale()},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){},Object.defineProperty(e.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(t){this.properties.filterUnits=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(t){this._nonScaling=t,t||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{set:function(t){this.setSprite(t)},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.filters.removeValue(this),this._sprite=t},e}(r["a"])},"3f58":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("516a"),r=i("5d2f"),a=i("84cf"),s=i("77b1"),o=function(t){function e(){var e=t.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.pixelWidth,n=this.pixelHeight;switch(this.direction){case"right":e=s["g"]({x:0,y:0})+s["f"]({x:i,y:n/2})+s["f"]({x:0,y:n})+s["d"]();break;case"left":e=s["g"]({x:i,y:0})+s["f"]({x:0,y:n/2})+s["f"]({x:i,y:n})+s["d"]();break;case"bottom":e=s["g"]({x:0,y:0})+s["f"]({x:i,y:0})+s["f"]({x:i/2,y:n})+s["d"]();break;case"top":e=s["g"]({x:i/2,y:0})+s["f"]({x:i,y:n})+s["f"]({x:0,y:n})+s["d"]();break}this.path=e},Object.defineProperty(e.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(t){this.setPropertyValue("direction",t,!0)},enumerable:!0,configurable:!0}),e}(r["a"]);a["b"].registeredClasses["Triangle"]=o},"457a":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("916c");function r(t,e,i){return new Promise((function(r,s){var o=n["d"](i)&&"blob"==i.responseType,l=new XMLHttpRequest;if(l.onload=function(){if(200===l.status){var t,i=void 0;if(o)return t=l.response,void a(t).then((function(i){var n={xhr:l,error:!1,response:i,blob:t,type:l.getResponseHeader("Content-Type"),target:e};r(n)}));i=l.responseText||l.response;var n={xhr:l,error:!1,response:i,blob:t,type:l.getResponseHeader("Content-Type"),target:e};r(n)}else s({xhr:l,error:!0,type:l.getResponseHeader("Content-Type"),target:e})},l.onerror=function(){s({xhr:l,error:!0,type:l.getResponseHeader("Content-Type"),target:e})},l.open("GET",t,!0),i&&i.withCredentials&&(l.withCredentials=!0),n["d"](i)){if(n["d"](i.requestHeaders))for(var h=0;h div > ."+i+"-menu ."+i+"-item."+i+"-item-level-0, ."+i+"-item."+i+"-item-level-0.active",{opacity:"0.9"}),new r["b"](t,"."+i+"-item."+i+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new r["b"](t,"."+i+"-item."+i+"-item-level-0:before",{display:"block"}),new r["b"](t,"."+i+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":n.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:n.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new r["b"](t,"."+i+"-left ."+i+"-item",{margin:"1px 0 0 1px"}),new r["b"](t,"."+i+"-item:hover, ."+i+"-item.active",{background:n.getFor("secondaryButtonHover").hex,color:n.getFor("secondaryButtonText").hex}),new r["b"](t,"."+i+"-item > ."+i+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new r["b"](t,"."+i+"-left ."+i+"-item > ."+i+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new r["b"](t,"."+i+"-right ."+i+"-item > ."+i+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new r["b"](t,"."+i+"-top ."+i+"-item > ."+i+"-menu",{top:"-1px",bottom:"auto"}),new r["b"](t,"."+i+"-bottom ."+i+"-item > ."+i+"-menu",{top:"auto",bottom:"0"}),new r["b"](t,"."+i+"-item > ."+i+"-menu",{display:"none"}),new r["b"](t,"."+i+"-item:hover > ."+i+"-menu, ."+i+"-item.active > ."+i+"-menu",{display:"block"}),new r["b"](t,"."+i+"-item:hover > ."+i+"-menu > ."+i+"-item, ."+i+"-item.active > ."+i+"-menu > ."+i+"-item",{opacity:"1"}),new r["b"](t,"."+i+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new r["b"](t,"."+i+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new r["b"](t,"."+i+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new r["b"](t,"."+i+"-item-level-0 > ."+i+"-icon",{padding:"0.1em 0.2em"}),new r["b"](t,"."+i+"-clickable",{cursor:"pointer"})]);return new o["a"]((function(){l.removeKey(i),e.dispose()}))}));return s.increment()},u=i("a357"),p=i("f2c0"),c=i("e243"),d=i("da0d"),f=i("2282"),g=i("04e4"),y=i("2082"),m=i("0357"),b=i("916c"),v=function(t){function e(){var e=t.call(this)||this;return e.adapter=new u["a"](e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new o["d"],e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validate=function(){this.draw(),t.prototype.validate.call(this)},e.prototype.draw=function(){var t=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),b["b"](this._container).appendChild(this._element);for(var e=this.adapter.apply("items",{items:this._items}).items,i=e.length,n=0;n=0;n--)e[n]&&r["s"](e[n],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},e.prototype.selectBranch=function(t){var e=this;if(!this.isDisposed()&&(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),r["e"](t.element,"active"),t.submenuElement&&t.submenuElement.setAttribute("aria-expanded","true"),this._currentSelection&&this._currentSelection!==t&&this._currentSelection.ascendants&&m["d"](m["b"](m["h"]([this._currentSelection]),this._currentSelection.ascendants.iterator()),(function(i){t.ascendants.contains(i)||t===i||e.unselectBranch(i,!0)})),m["d"](t.ascendants.iterator(),(function(t){t.closeTimeout&&(e.removeDispose(t.closeTimeout),t.closeTimeout=void 0),r["e"](t.element,"active")})),this._currentSelection=t,this.events.isEnabled("branchselected"))){var i={type:"branchselected",target:this,branch:t};this.events.dispatchImmediately("branchselected",i)}},e.prototype.unselectBranch=function(t,e){if(!this.isDisposed()&&(r["s"](t.element,"active"),t.submenuElement&&t.submenuElement.removeAttribute("aria-expanded"),this._currentSelection==t&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected"))){var i={type:"branchunselected",target:this,branch:t};this.events.dispatchImmediately("branchunselected",i)}},e.prototype.delayUnselectBranch=function(t,e){var i=this;this.isDisposed()||(t.closeTimeout&&(this.removeDispose(t.closeTimeout),t.closeTimeout=void 0),t.closeTimeout=this.setTimeout((function(){i.unselectBranch(t,e)}),this.closeDelay),!0!==e&&t.ascendants&&m["d"](t.ascendants.iterator(),(function(t){i.delayUnselectBranch(t,!0)})))},e.prototype.moveSelection=function(t){if(!this.isDisposed()&&this._currentSelection){var e;if("up"==t)e=this.getPrevSibling(this._currentSelection);else if("down"==t)e=this.getNextSibling(this._currentSelection);else if("left"==t&&"right"==this.align||"right"==t&&"left"==this.align){var i=this.getSubMenu(this._currentSelection);null!=i&&(e=i[0])}else("right"==t&&"right"==this.align||"left"==t&&"left"==this.align)&&(e=this.getParentItem(this._currentSelection));e&&e!==this._currentSelection&&(this.selectBranch(e),this.setFocus(e),this._currentSelection=e)}},e.prototype.getSiblings=function(t){var e=this.getParentItem(t);return e&&e.menu?e.menu:[]},e.prototype.getParentItem=function(t){return t.ascendants&&t.ascendants.length?t.ascendants.getIndex(t.ascendants.length-1):void 0},e.prototype.getNextSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)+1;return i=e.length==i?0:i,e[i].unsupported?this.getNextSibling(e[i]):e[i]}return t},e.prototype.getPrevSibling=function(t){var e=this.getSiblings(t);if(e.length>1){var i=e.indexOf(t)-1;return i=-1==i?e.length-1:i,e[i].unsupported?this.getPrevSibling(e[i]):e[i]}return t},e.prototype.setFocus=function(t){if(t.interactions)try{t.interactions.element.focus()}catch(e){}},e.prototype.setBlur=function(t){if(t.interactions)try{t.interactions.element.blur()}catch(e){}},e.prototype.hideBranch=function(t){t.element.style.display="none"},e.prototype.showBranch=function(t){t.element.style.display=""},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e}(f["a"])},"4ea6":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("516a"),r=i("1ebf"),a=i("e243"),s=i("cabc"),o=i("916c"),l=function(t){function e(e,i,n,r){var a=t.call(this)||this;return a.animations=[],a.className="Inertia",a.interaction=e,a.type=i,a.point=n,a.startPoint=r,a._disposers.push(new s["b"](a.animations)),a}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"x",{get:function(){return this.point.x},set:function(t){o["h"](t)&&(this.point.x=t,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.point.y},set:function(t){o["h"](t)&&(this.point.y=t,this.handleMove())},enumerable:!0,configurable:!0}),e.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var t={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",t)}},e.prototype.done=function(){this.interaction.inertias.removeKey(this.type),"move"===this.type&&Object(a["a"])().processDragStop(this.interaction),this.dispose()},e}(r["a"])},"4ef9":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("516a"),r=i("5d2f"),a=i("916c"),s=function(t){function e(){var e=t.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),a["h"](this.pointerX)||(this.pointerX=this.pixelWidth/2),a["h"](this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(e.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(t){this.setPropertyValue("pointerBaseWidth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(t){this.setPropertyValue("pointerLength",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(t){this.setPropertyValue("pointerX",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(t){this.setPropertyValue("pointerY",t,!0)},enumerable:!0,configurable:!0}),e}(r["a"])},"4fad":function(t,e,i){var n=i("23e7"),r=i("6f53").entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},5134:function(t,e,i){"use strict";i.d(e,"a",(function(){return p})),i.d(e,"d",(function(){return c})),i.d(e,"c",(function(){return d})),i.d(e,"f",(function(){return f})),i.d(e,"n",(function(){return g})),i.d(e,"e",(function(){return y})),i.d(e,"s",(function(){return m})),i.d(e,"t",(function(){return b})),i.d(e,"m",(function(){return v})),i.d(e,"g",(function(){return x})),i.d(e,"h",(function(){return _})),i.d(e,"p",(function(){return P})),i.d(e,"o",(function(){return O})),i.d(e,"i",(function(){return w})),i.d(e,"l",(function(){return C})),i.d(e,"b",(function(){return I})),i.d(e,"r",(function(){return T})),i.d(e,"j",(function(){return j})),i.d(e,"k",(function(){return A})),i.d(e,"q",(function(){return F}));var n,r=i("516a"),a=i("07a8"),s=i("7040"),o=i("5290"),l=i("a0dd"),h=i("6e0f"),u=i("916c"),p="http://www.w3.org/2000/svg",c="http://www.w3.org/2000/xmlns/",d="http://www.w3.org/1999/xlink";function f(t,e,i,n){return t.addEventListener(e,i,n||!1),new a["b"]((function(){t.removeEventListener(e,i,n||!1)}))}function g(t){if(u["j"](t)){var e=document.getElementById(t);if(null==e&&(e=document.getElementsByClassName(t)[0]),e instanceof HTMLElement)return e}else if(t instanceof HTMLElement)return t}function y(t,e){if(t)if(t.classList){var i=e.split(" ");h["d"](i,(function(e){t.classList.add(e)}))}else{var n=t.getAttribute("class");n?t.setAttribute("class",n.split(" ").filter((function(t){return t!==e})).join(" ")+" "+e):t.setAttribute("class",e)}}function m(t,e){if(t)if(t.classList)t.classList.remove(e);else{var i=t.getAttribute("class");i&&t.setAttribute("class",i.split(" ").filter((function(t){return t!==e})).join(" "))}}function b(t,e,i){t.style[e]=i}function v(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function x(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{var t=document.createElement("button");t.style.position="fixed",t.style.top="0px",t.style.left="-10000px",document.body.appendChild(t),t.focus(),t.blur(),document.body.removeChild(t)}}function _(t,e){var i=e;while(1){if(t===i)return!0;if(null==i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function P(t){var e=t;while(1){if(null==e.parentNode)return null!=e.host?e:null;e=e.parentNode}}function O(t){var e=t.ownerDocument,i=t;while(1){if(null==i.parentNode)return i===e||null!=i.host?i:null;i=i.parentNode}}function w(t){return"function"===typeof t.composedPath?t.composedPath()[0]:t.target}function C(t){Object(s["c"])((function(){try{var e=t.getBoundingClientRect(),i=e.left-Math.round(e.left),n=e.top-Math.round(e.top);0!==i&&Object(s["f"])((function(){t.style.left=i+"px"})),0!==n&&Object(s["f"])((function(){t.style.top=n+"px"}))}catch(r){}}))}function S(t){if(null==t){if(!u["d"](n)){var e=document.createElement("style");e.type="text/css",""!=o["a"].nonce&&e.setAttribute("nonce",o["a"].nonce),document.head.appendChild(e),n=e.sheet}return n}e=document.createElement("style");return e.type="text/css",""!=o["a"].nonce&&e.setAttribute("nonce",o["a"].nonce),t.appendChild(e),e.sheet}function k(t,e){var i=t.cssRules.length;return t.insertRule(e+"{}",i),t.cssRules[i]}var I=function(t){function e(e,i,n){var r=this,a=S(e);return r=t.call(this,(function(){var t=h["i"](a.cssRules,r._rule);if(-1===t)throw new Error("Could not dispose StyleRule");a.deleteRule(t)}))||this,r._rule=k(a,i),l["d"](n,(function(t,e){r.setStyle(t,e)})),r}return Object(r["c"])(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(t){this._rule.selectorText=t},enumerable:!0,configurable:!0}),e.prototype._setVendorPrefixName=function(t,e){var i=this._rule.style;i.setProperty("-webkit-"+t,e,""),i.setProperty("-moz-"+t,e,""),i.setProperty("-ms-"+t,e,""),i.setProperty("-o-"+t,e,""),i.setProperty(t,e,"")},e.prototype.setStyle=function(t,e){"transition"===t?this._setVendorPrefixName(t,e):this._rule.style.setProperty(t,e,"")},e}(a["b"]),D=0;(function(t){function e(e,i,n){var r=this,a=u["d"](n)?n:"__style_"+ ++D+"__";return r=t.call(this,e,"."+a,i)||this,r._className=a,r}Object(r["c"])(e,t),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(t){this._className=t,this.selector="."+t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._className}})(I);function T(t){if("loading"!==document.readyState)t();else{var e=function(){"loading"!==document.readyState&&(document.removeEventListener("readystatechange",e),t())};document.addEventListener("readystatechange",e)}}function j(t){var e=v(t,"font-family");if(e)return e;var i=t.parentElement||t.parentNode;return i?j(i):void 0}function A(t){var e=v(t,"font-size");if(e)return e;var i=t.parentElement||t.parentNode;return i?A(i):void 0}function F(t,e){var i=t.getBoundingClientRect(),n=u["e"](e)?e:e?[e]:[];if(n.length){for(var r=0;r=0&&i.left>=0&&i.top<=s.top+s.height&&i.left<=s.left+s.width)return!0}return!1}return i.top>=0&&i.left>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight)&&i.left<=(window.innerWidth||document.documentElement.clientWidth)}},"516a":function(t,e,i){"use strict";i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return o})),i.d(e,"g",(function(){return l})),i.d(e,"e",(function(){return h})),i.d(e,"f",(function(){return u}));var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},n(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var a=function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t,e){var i="function"===typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,a=i.call(t),s=[];try{while((void 0===e||e-- >0)&&!(n=a.next()).done)s.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=a["return"])&&i.call(a)}finally{if(r)throw r.error}}return s}function u(){for(var t=[],e=0;ethis._negativeBase?a.positive:r=0?t.toExponential(e.decimals.passive).split("e"):t.toExponential().split("e"),t=Number(h[0]),r="e"+h[1],e.modSpacing&&(r=" "+r)}else if(0===e.decimals.passive)t=Math.round(t);else if(e.decimals.passive>0){var p=Math.pow(10,e.decimals.passive);t=Math.round(t*p)/p}var d="",f=u["B"](t).split("."),g=f[0];if(g.length0){for(var y=[],m=g.split("").reverse().join(""),b=0,v=g.length;b<=v;b+=e.thousands.interval){var x=m.substr(b,e.thousands.interval).split("").reverse().join("");""!==x&&y.unshift(x)}g=y.join(e.thousands.separator)}d+=g,1===f.length&&f.push("");var _=f[1];return _.length0&&e.filters.each((function(t){i.filters.push(t.clone())})),e._adapterO&&this.adapter.copyFrom(e._adapterO),e["_interaction"]&&this.interactions.copyFrom(e.interactions),e["_plugins"]&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,I["f"](e.propertyFields,this.propertyFields),I["f"](e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone()),e.focusFilter&&(this.focusFilter=e.focusFilter.clone())},e.prototype.dispose=function(){if(!this.isDisposed()){if("always"==this.showTooltipOn&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)while(this.htmlContainer.childNodes.length>0)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(t.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--){var i=this._clones.getIndex(e);i.dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var n=this.stroke;!n||n instanceof m["a"]||!n.dispose||this.clonedFrom&&this.clonedFrom.stroke==n||n.dispose();var r=this.fill;if(!r||r instanceof m["a"]||!r.dispose||this.clonedFrom&&this.clonedFrom.fill==r||r.dispose(),F["d"](this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)while(this._filters.length>0){var a=this._filters.getIndex(0);a.dispose(),this._filters.removeValue(a)}this._alwaysShowDisposers=void 0}},Object.defineProperty(e.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(t){t=F["k"](t),this._isTemplate!=t&&(this._isTemplate=t,this instanceof d["a"]&&V["d"](this.children.iterator(),(function(e){e.isTemplate=t})),t?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSystemTooltip",{get:function(){return F["d"](this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this._parent&&this._parent.showSystemTooltip},set:function(t){t=F["k"](t),this._showSystemTooltip!=t&&(this._showSystemTooltip=t,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this._parent?this._parent.topParent:void 0},set:function(t){this._topParent=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(t){if(!this._isTemplate){I["S"](this.paper);var e=this._parent;e!=t&&(e&&e.children.removeValue(this),this._parent=t,t?(this.topParent=t.topParent,t.isTemplate&&(this.isTemplate=!0),this.baseId=t.baseId,t.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=t.tooltipContainer),this._dataItem||(this.dataItem=t.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),e.prototype.handleAlwaysShow=function(){this.showTooltip()},e.prototype.handleAlwaysShowTooltip=function(){var t=this,e=this._alwaysShowDisposers;if(e&&j["d"](e,(function(t){t.dispose()})),this._alwaysShowDisposers=[],"always"==this.showTooltipOn)while(void 0!=t){var i=t.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(i),this._alwaysShowDisposers.push(i),t=t.parent}},Object.defineProperty(e.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(t){this._virtualParent=t,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),e.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var t=this.fill;t&&t.element&&this.paper.appendDef(t.element);var e=this.stroke;if(e&&e.element&&this.paper.appendDef(e.element),this.fillModifier&&this.fill instanceof m["a"]){var i=this.fillModifier.modify(this.fill);i&&i.element&&this.paper.appendDef(i.element)}if(this.strokeModifier&&this.stroke instanceof m["a"]){var n=this.strokeModifier.modify(this.stroke);n&&n.element&&this.paper.appendDef(n.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(e.prototype,"map",{get:function(){var t=this.topParent;return t?t.map:(this._map||(this._map=new l["a"]),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delayedMap",{get:function(){var t=this.topParent;return t?t.delayedMap:(this._delayedMap||(this._delayedMap=new l["a"]),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){if(this._id!=t){if(this._id=t,this.map.hasKey(t))throw Error("Duplicate id ("+t+") used on multiple objects.");this.map.setKey(t,this),x["a"].autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){if(this._paper)return this._paper;var t=this._parent;return t?t.paper:Object(c["b"])()},set:function(t){this.setPaper(t)},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(t){var e=this._paper;return e!=t&&(this._paper=t,this.appendDefs(),!0)},Object.defineProperty(e.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var t=this._parent;return t?t.htmlContainer:void 0},set:function(t){this._htmlContainer=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filters",{get:function(){return this._filters||(this._filters=new h["a"],this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new h["b"](this._filters))),this._filters},enumerable:!0,configurable:!0}),e.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},e.prototype.setSVGAttribute=function(t){this.group.attr(t)},e.prototype.removeSVGAttribute=function(t){this.group.removeAttr(t)},e.prototype.setClassName=function(){var t=this.className,e=x["a"].classNamePrefix;this.element&&this.element.addClass(e+t),this.group.addClass(e+t+"-group"),F["d"](this.id)&&this.group.addClass(e+this.id),this.userClassName&&this.group.addClass(this.userClassName)},e.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},e.prototype.updateClipPath=function(){var t=this._clipElement;t&&t.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},e.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var t=_["b"].getUniqueId();this._clipPath.attr({id:t}),this.group.attr({"clip-path":'url("'+I["n"]()+t+'")'})}},e.prototype.applyMask=function(){var t=this.mask;if(this._clipPath&&t)if(t instanceof d["a"]){this._clipElement.attr({width:D["B"](0,t.pixelWidth),height:D["B"](0,t.pixelHeight)});var e=I["J"]({x:t.pixelX,y:t.pixelY},t.parent,this);this._clipPath.x=e.x,this._clipPath.y=e.y}else t.element&&t.element!=this._clipElement&&(this._clipElement=t.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=t.scale,this._clipPath.x=t.pixelX,this._clipPath.y=t.pixelY,this._clipPath.rotation=t.rotation},e.prototype.applyFilters=function(){var t=this;if(this._filters&&this._filters.length>0){var e=100,i=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var n="filter-"+this.uid;this.filterElement.attr({id:n}),V["d"](this.filters.iterator(),(function(n){n.sprite=t,n.paper=t.paper,t.filterElement.attr({filterUnits:n.filterUnits}),n.appendPrimitives(t.filterElement),n.width>e&&(e=n.width),n.height>i&&(i=n.height),n.scale=t.globalScale}));var r=e+"%",a=i+"%";this.filterElement.attr({width:r,height:a,x:-(e-100)/2+"%",y:-(i-100)/2+"%"}),this.group.attr({filter:'url("'+I["n"]()+n+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},e.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},e.prototype.setElement=function(t){this.element=t,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(e.prototype,"element",{get:function(){return this._element},set:function(t){this.removeElement(),this._element=t,this.group.add(t),t.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),x["a"].autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this._parent?this._parent.svgContainer:void 0},set:function(t){this._svgContainer=t},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var t=this.element.getBBox();this._bbox={x:t.x,y:t.y,width:t.width,height:t.height}}},e.prototype.updateCenter=function(){if(this.element){var t=this.element.transformString,e=this.bbox,i=0,n=0,r=e.x,a=e.y,s=e.width,o=e.height,l=this.pixelPaddingLeft,h=this.pixelPaddingRight,u=this.pixelPaddingTop,p=this.pixelPaddingBottom,c=D["B"](s+l+h,this.pixelWidth),d=D["B"](o+u+p,this.pixelHeight),f=e.x,g=e.x+c,y=e.y,m=e.y+d,b=this.horizontalCenter,v=this.verticalCenter;switch(b){case"none":i=r+l;break;case"left":i=l;break;case"middle":i=l-(s+h+l)/2;break;case"right":i=-h-s;break}switch(v){case"none":n=a+u;break;case"top":n=u;break;case"middle":n=u-(o+p+u)/2;break;case"bottom":n=-p-o;break}this._measuredHeight=d,this._measuredWidth=c;var _=D["E"](i-r,this._positionPrecision,!0),P=D["E"](n-a,this._positionPrecision,!0);this.ex=_-l,this.ey=P-u,this.maxLeft=f+_-l,this.maxRight=g+_-l,this.maxTop=y+P-u,this.maxBottom=m+P-u,this.pixelPerfect&&0==x["a"].pixelPerfectPrecision&&(_-=.5,P-=.5),this.element.moveTo({x:_,y:P}),t!=this.element.transformString&&this.dispatchImmediately("transformed")}},e.prototype.measure=function(){this.updateCenter();var t=this._measuredWidth,e=this._measuredHeight,i=this.maxLeft,n=this.maxRight,r=this.maxTop,a=this.maxBottom;this._measuredWidthSelf=t,this._measuredHeightSelf=e;var s=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,0!==this.rotation||1!==this.scale||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var o=this.paper.svg,l=o.createSVGMatrix(),h=this.rotation,u=this.scale;this.nonScaling&&(u=this.scale/this.globalScale),l.a=D["g"](h)*u,l.c=-D["F"](h)*u,l.e=0,l.b=D["F"](h)*u,l.d=D["g"](h)*u,l.f=0;var p=o.createSVGPoint();p.x=i,p.y=r;var c=o.createSVGPoint();c.x=n,c.y=r;var d=o.createSVGPoint();d.x=n,d.y=a;var f=o.createSVGPoint();f.x=i,f.y=a;var g=p.matrixTransform(l),y=c.matrixTransform(l),m=d.matrixTransform(l),b=f.matrixTransform(l);i=Math.min(g.x,y.x,m.x,b.x),n=Math.max(g.x,y.x,m.x,b.x),r=Math.min(g.y,y.y,m.y,b.y),a=Math.max(g.y,y.y,m.y,b.y),t=n-i,e=a-r,this.maxLeft=D["E"](i,s,!0),this.maxRight=D["E"](n,s,!0),this.maxTop=D["E"](r,s,!0),this.maxBottom=D["E"](a,s,!0)}return this._measuredWidth=D["E"](t,s,!0),this._measuredHeight=D["E"](e,s,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||"hit"==this.showTooltipOn||"always"==this.showTooltipOn)&&this.tooltip&&this.tooltip.visible&&(F["d"](this.tooltipText)||F["d"](this.tooltipHTML))&&this.updateTooltipPosition(),!0)},e.prototype.insertBefore=function(t){var e=this._parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i),e.sortChildren())}return this},e.prototype.insertAfter=function(t){var e=this._parent;if(e){var i=e.children.indexOf(t);-1!==i&&(e.children.moveValue(this,i+1),e.sortChildren())}return this},e.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},e.prototype.getRelativeX=function(t){return t instanceof E["a"]?t.value:this._parent?t/this._parent.innerWidth:0},e.prototype.getRelativeY=function(t){return t instanceof E["a"]?t.value:this._parent?t/this._parent.innerHeight:0},e.prototype.getPixelX=function(t){var e=0;if(F["h"](t))e=t;else if(t instanceof E["a"]){var i=t.value;this._parent&&(e=D["E"](this._parent.innerWidth*i,this._positionPrecision,!0))}return e},e.prototype.getPixelY=function(t){var e=0;if(F["h"](t))e=t;else if(t instanceof E["a"]){var i=t.value;this._parent&&(e=D["E"](this._parent.innerHeight*i,this._positionPrecision,!0))}return e},e.prototype.moveTo=function(t,e,i,n){this.isDragged&&!n||(t&&(F["h"](t.x)&&this.setPropertyValue("x",D["E"](t.x,this._positionPrecision,!0)),F["h"](t.y)&&this.setPropertyValue("y",D["E"](t.y,this._positionPrecision,!0))),F["h"](e)&&(this.rotation=e),F["h"](i)&&(this.scale=i),this.invalidatePosition())},Object.defineProperty(e.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(t){var e=this;this._mask.get()!==t&&(t?(this.createClipPath(),t instanceof d["a"]?this._clipElement=this.paper.add("rect"):(t.isMeasured=!1,t.element&&(this._clipElement=t.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(t,new u["c"]([t.events.on("maxsizechanged",(function(){e.inited&&e.applyMask()}),void 0,!1),t.events.on("validated",this.applyMask,this,!1),t.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(t){t?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:t.width,height:t.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(t){t=F["k"](t),t||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=t&&(this._isMeasured=t,this.invalidatePosition())},enumerable:!0,configurable:!0}),e.prototype.hitTest=function(t){this.invalid&&this.validate(),t.invalid&&t.validate();var e=this.pixelX+this.maxLeft,i=this.pixelY+this.maxTop,n=e+this.maxRight,r=i+this.maxBottom,a=t.pixelX+t.maxLeft,s=t.pixelY+t.maxTop,o=a+t.maxRight,l=s+t.maxBottom;return!(a>n||or||l0&&(n=this.animate(a,e,i),n&&!n.isFinished()?this._disposers.push(n.events.on("animationended",(function(){r.dispatchImmediately("transitionended")}))):this.dispatchImmediately("transitionended")),t.filters.length>0){var o=[];V["d"](t.filters.iterator(),(function(t){var n=t.clone();o.push(n);var a=[];V["d"](r.filters.iterator(),(function(t){t.className==n.className&&(V["c"](r.defaultState.filters.iterator(),(function(t){return t.className===n.className}))||r.defaultState.filters.push(t),A["d"](n.properties,(function(e,i){var n=t.properties[e];n!=i&&a.push({property:e,from:n,to:i})})))})),n.animate(a,e,i)})),this.filters.clear(),this.filters.pushAll(o)}return n},e.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(e.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(t){t=F["k"](t),t!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=t,t?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(t){t=F["k"](t),this.isInteractive()&&this.isDown!=t&&(this.interactions.isDown=t,t?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(t){t=F["k"](t),this.focusable&&this.isFocused!=t&&this.isInteractive()&&(this.interactions.isFocused=t,!0===t?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this._isActive},set:function(t){this.setActive(t)},enumerable:!0,configurable:!0}),e.prototype.setActive=function(t){t=F["k"](t),this._isActive!==t&&(this._isActive=t,t&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(e.prototype,"disabled",{get:function(){var t=this.getPropertyValue("disabled");return F["d"](t)?t:this.virtualParent?this.virtualParent.disabled:!!this._parent&&this._parent.disabled},set:function(t){this.setDisabled(t)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(t){t=F["k"](t);var e=this.getPropertyValue("disabled");if(e!=t){if(this.setPropertyValue("disabled",t,!0),t)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var i=this._parent.element;i.hasChild(this.group)||i.add(this.group)}this instanceof d["a"]?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),M["a"].requestFrame(),!0}return!1},Object.defineProperty(e.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(t){this._internalDisabled!=t&&(this._internalDisabled=t,this._updateDisabled=!0,this.invalidatePosition(),t||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new P["a"],this._numberFormatter.language=this.language,this.numberFormatter)},set:function(t){this._numberFormatter=t,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new O["a"],this._dateFormatter.language=this.language,this.dateFormatter)},set:function(t){this._dateFormatter=t,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new w["a"],this._durationFormatter.language=this.language,this.durationFormatter)},set:function(t){this._durationFormatter=t,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var t=this._language.get();return t||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(t=new S["a"],this.language=t,t))},set:function(t){var e=this;this._language.get()!==t&&this._language.set(t,t.events.on("localechanged",(function(t){if(e._numberFormatter&&(e._numberFormatter.language=e.language),e._dateFormatter&&(e._dateFormatter.language=e.language),e._durationFormatter&&(e._durationFormatter.language=e.language),e._exporting.get()){var i=e._exporting.get();i.numberFormatter.language=e.language,i.dateFormatter.language=e.language,i.durationFormatter.language=e.language,i.language=e.language}e instanceof d["a"]&&e.deepInvalidate()})))},enumerable:!0,configurable:!0}),e.prototype.populateString=function(t,e){if(F["d"](t)){t=F["a"](t),t=Object(C["a"])().escape(t);var i=t.match(/\{([^}]+)\}/g),n=void 0;if(i)for(n=0;nthis._negativeBase?s.positive:o"+l+"":"html"===this._outputFormat&&(l=""+l+"")),l},e.prototype.parseFormat=function(t,e){var i=this,n=this.getCache(t);if(p["d"](n))return n;var r=e||this._baseUnit,a={positive:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1}};t=t.replace("||",l["e"]);var o=t.split("|");return a.positive.source=o[0],"undefined"===typeof o[2]?a.zero=a.positive:a.zero.source=o[2],"undefined"===typeof o[1]?a.negative=a.positive:a.negative.source=o[1],h["d"](a,(function(t,e){if(!e.parsed)if("undefined"===typeof i.getCache(e.source)){var n=e.source,r=[];r=e.source.match(/^\[([^\]]*)\]/),r&&r.length&&""!==r[0]&&(n=e.source.substr(r[0].length),e.color=r[1]);for(var o=Object(s["a"])().chunk(n,!0),h=0;h0){var i=this.getPoints(e);t=s["g"](i[0])+new h["c"](this.tension,this.tension).smooth(i)}var n=this.pixelInnerRadius;if(n>0){i=this.getPoints(n);i.reverse(),t+=s["g"](i[0])+new h["c"](this.tension,this.tension).smooth(i)}this.path=t},e.prototype.getPoints=function(t){for(var e=t*Math.PI*2,i=this.waveHeight/2,n=e/Math.round(e/this.waveLength),r=n/2,a=[],s=e/n,l=0;l<=s;l++){var h=l*n/e*360,u=(l*n+r)/e*360;a.push({x:(t-i)*o["g"](h),y:(t-i)*o["F"](h)}),a.push({x:(t+i)*o["g"](u),y:(t+i)*o["F"](u)})}return a.pop(),a},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return l["F"](this.innerRadius,o["C"](this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(r["a"]);a["b"].registeredClasses["WavedCircle"]=u},"6e0f":function(t,e,i){"use strict";i.d(e,"i",(function(){return r})),i.d(e,"b",(function(){return a})),i.d(e,"l",(function(){return s})),i.d(e,"d",(function(){return o})),i.d(e,"f",(function(){return l})),i.d(e,"e",(function(){return h})),i.d(e,"r",(function(){return u})),i.d(e,"n",(function(){return p})),i.d(e,"o",(function(){return c})),i.d(e,"m",(function(){return d})),i.d(e,"a",(function(){return f})),i.d(e,"q",(function(){return g})),i.d(e,"s",(function(){return y})),i.d(e,"c",(function(){return m})),i.d(e,"j",(function(){return b})),i.d(e,"p",(function(){return v})),i.d(e,"h",(function(){return x})),i.d(e,"g",(function(){return _})),i.d(e,"k",(function(){return P}));i("baa2");var n=i("916c");function r(t,e){for(var i=t.length,n=0;n>1,o=e(i,t[s]);o<0?r=s:0===o?(a=!0,n=s+1):n=s+1}return{found:a,index:a?n-1:n}}function _(t,e){for(var i=t.length,n=0;n0){for(var e="",i=0,n=t.length;i0){e+=o["g"](r[0]);for(var a=1;a1){for(var d=1;dt){p=i.length;break}}else 1==c.length&&(h=c[0],u=c[0],s=0,o=1)}if(h&&u){var f=(t-s)/(o-s),g=l["s"](h,u,f);return{x:g.x,y:g.y,angle:e+l["j"](h,u)}}}return{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),e}(r["a"]);s["b"].registeredClasses["Polyline"]=h},"6f53":function(t,e,i){var n=i("83ab"),r=i("df75"),a=i("fc6a"),s=i("d1e7").f,o=function(t){return function(e){var i,o=a(e),l=r(o),h=l.length,u=0,p=[];while(h>u)i=l[u++],n&&!s.call(o,i)||p.push(t?[i,o[i]]:o[i]);return p}};t.exports={entries:o(!0),values:o(!1)}},7040:function(t,e,i){"use strict";i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return d})),i.d(e,"c",(function(){return f})),i.d(e,"f",(function(){return g})),i.d(e,"e",(function(){return y})),i.d(e,"d",(function(){return m}));var n=i("6e0f"),r=!1,a=[],s=[],o=[],l=[],h=1e3/60,u="function"===typeof requestAnimationFrame?function(t){requestAnimationFrame(t)}:function(t){setTimeout(t,h)};function p(){for(var t=Date.now(),e=a.length,i=0;i0){var e="";this._realSegments=[];for(var i=0,n=t.length;i0){e+=v["g"](r[0]);for(var s=1;s0)for(var O=0;O<=_;O++){var w=b["t"](o,l,g,x,O/_);a.push(w),this._distance+=b["q"](P,w),P=w}else a.push(o)}}}this.path=e}},Object.defineProperty(e.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(t){this.setPropertyValue("controlPointPosition",t),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(t){this.setPropertyValue("controlPointDistance",t),this.makePath()},enumerable:!0,configurable:!0}),e}(m["a"]);l["b"].registeredClasses["Polyarc"]=x;var _=i("cabc"),P=i("ec03"),O=function(t){function e(e){var i=t.call(this)||this;return i._bboxes=[],i.morphDuration=800,i.morphEasing=P["cubicOut"],i.morphToSingle=!0,i.scaleRatio=1,i.className="Morpher",i.morphable=e,i.applyTheme(),i}return Object(c["c"])(e,t),e.prototype.morphToPolygon=function(t,e,i){var n=this.morphable.currentPoints;if(n&&t){this.sortPoints(n),this.sortPoints(t),this._morphFromPointsReal=[],this._morphToPointsReal=[],f["d"](e)||(e=this.morphDuration),f["d"](i)||(i=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(t,n),this._morphToPointsReal=this.normalizePoints(n,t),this.morphable.currentPoints=this._morphFromPointsReal;var r=new _["a"](this,{property:"morphProgress",from:0,to:1},e,i);return this._disposers.push(r),r.start(),r}},e.prototype.normalizePoints=function(t,e){for(var i=0,n=t.length;in.width*n.height?-1:1}));for(var e=[],i=0,n=t.length;im&&(m=o.length),u=this.addPoints(o,m),m=u.length;for(var v=360/(m-1),x=0;x0)for(var w=0,C=l.length;w0){var p=t[t.length-1];for(l=n.length;l0)for(var b=p.x+p.width/2,v=p.y+p.height/2,x=0,P=l.length;x0&&h&&h.length>0){for(var p=[],c=0,d=o.length;c0&&u&&u.length>0){for(var m=[],b=0,v=l.length;b0){var s=a.split("M"),o=s[0],l=s[1];if(o&&o.length>0){var h=o.split("L");if(h.length>0){var u=[],p=[u];t.push(p);for(var c=0;c0){var f=l.split("L");if(f.length>0){var g=[];p.push(g);for(c=f.length-1;c>=0;c--){d=f[c].split(",");g.push({x:+d[0],y:+d[1]})}}}}}}}this.setPropertyValue("points",t),this._currentPoints=t}return t},set:function(t){this.setPropertyValue("points",t,!0),this._currentPoints=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPoints",{get:function(){return this._currentPoints&&0!=this._currentPoints.length||!this.path||(this._currentPoints=this.points),this._currentPoints},set:function(t){this._currentPoints!=t&&(this._currentPoints=t,this.draw())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){var e,i,n,r,a="",s=this._currentPoints;if(s.length>0){for(var o=0,l=s.length;o0){var p=h[0];a+=v["g"](p);for(var c=0;cp.x)&&(e=p.x),(!f["h"](n)||n>p.y)&&(n=p.y),(!f["h"](r)||r0){p=u[0];a+=v["g"](p);for(var d=0,g=u.length;d=1?(this._started&&(this._started=void 0),l["b"].events.once("enterframe",(function(){var t=e.hide();t&&!t.isFinished()?t.events.once("animationended",(function(){e.__disabled=!0})):e.__disabled=!0})),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):t>0&&(this.delay?this._started?this._started+this.delay<=(new Date).getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=(new Date).getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(t){this.setPropertyValue("delay",t)},enumerable:!0,configurable:!0}),e}(s["a"]);l["b"].registeredClasses["Preloader"]=D;i("db37"),i("477c");var T=i("54c9"),j=function(t){function e(){var e=t.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var i=new S["a"];e.cursorOverStyle=T["a"].pointer;var n=e.background;n.cornerRadius(20,20,20,20);var r=i.getFor("background");n.fill=r,n.stroke=i.getFor("primaryButton"),n.strokeOpacity=1,n.strokeWidth=1;var a=i.getFor("primaryButtonActive"),s=n.states.getKey("hover");s.properties.strokeWidth=3,s.properties.fill=r;var l=n.states.getKey("down");l.properties.stroke=a,l.properties.fill=r;var h=new o["a"];return h.element=e.paper.add("path"),h.stroke=n.stroke,e.icon=h,e.applyTheme(),e}return Object(c["c"])(e,t),e.prototype.validate=function(){t.prototype.validate.call(this);var e=this.pixelWidth/3,i=this.pixelHeight/3,n=v["g"]({x:-e/2,y:-i/2});n+=v["f"]({x:e/2,y:i/2}),n+=v["g"]({x:e/2,y:-i/2}),n+=v["f"]({x:-e/2,y:i/2}),this.icon.path=n,this.invalidateLayout()},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),f["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},e}(u["a"]);l["b"].registeredClasses["CloseButton"]=j;var A=function(t){function e(){var e=t.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var i=new S["a"],n=new y["a"];n.fillOpacity=.3;var r=n.states.create("active");r.properties.fillOpacity=1,n.isActive=!0,e.leftLabel=n;var a=new u["a"],s=new p["a"];a.contentValign="none",a.padding(0,0,0,0),s.radius=10,a.icon=s,a.icon.valign="middle",a.label=void 0;var o=Object(I["c"])(100);a.background.cornerRadius(o,o,o,o),a.width=3.5*s.radius,a.height=2.1*s.radius,a.marginLeft=8,a.marginRight=8,a.togglable=!0,s.dx=.7*-s.radius,s.fill=i.getFor("primaryButton");var l=s.states.create("hover");l.properties.fill=i.getFor("primaryButtonHover");var h=s.states.create("active");h.properties.fill=i.getFor("primaryButtonActive"),h.properties.dx=.7*s.radius,e.switchButton=a,e.events.on("toggled",(function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive}));var c=new y["a"];c.fillOpacity=.3;var d=c.states.create("active");return d.properties.fillOpacity=1,e.rightLabel=c,e.role="button",e.focusable=!0,c.valign="middle",n.valign="middle",a.valign="middle",e.applyTheme(),e}return Object(c["c"])(e,t),Object.defineProperty(e.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(t){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(t){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=t,t&&(t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"switchButton",{get:function(){return this._switchButton},set:function(t){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=t,t&&(t.parent=this,t.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.leftLabel&&this.leftLabel.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},e}(s["a"]);l["b"].registeredClasses["SwitchButton"]=A;var F=i("d948"),V=i("ea2c"),M=function(t){function e(){var e=t.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",(function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y})),e.applyTheme(),e}return Object(c["c"])(e,t),Object.defineProperty(e.prototype,"__end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._start},set:function(t){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),e}(V["a"]);l["b"].registeredClasses["Slider"]=M;i("a4c9");var E=i("74b3"),L=(i("6890"),i("3f58")),R=(i("6cf6"),i("d8fb"),i("7fef"),i("2f36"),function(t){function e(){var e=t.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var i=new S["a"],n=e.background;n.cornerRadius(25,25,25,25),n.fill=i.getFor("primaryButton"),n.stroke=i.getFor("primaryButtonStroke"),n.strokeOpacity=0,n.states.getKey("hover").properties.fill=i.getFor("primaryButtonHover"),n.states.getKey("down").properties.fill=i.getFor("primaryButtonActive");var r=new L["a"];r.direction="right",r.width=9,r.height=11,r.marginLeft=1,r.marginRight=1,r.horizontalCenter="middle",r.verticalCenter="middle",r.stroke=i.getFor("primaryButtonText"),r.fill=r.stroke,e.icon=r;var a=new F["a"];a.width=11,a.height=11,a.horizontalCenter="middle",a.verticalCenter="middle",a.cornerRadius(0,0,0,0),a.stroke=i.getFor("primaryButtonText"),a.fill=r.stroke,e.togglable=!0;var s=e.states.create("active");return s.transitionDuration=0,s.properties.icon=a,e.defaultState.transitionDuration=0,e.applyTheme(),e}return Object(c["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),f["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},e}(u["a"]));l["b"].registeredClasses["PlayButton"]=R;i("dacb"),i("29b3"),i("eac3"),i("7e9c"),i("4c1f"),i("8a87"),i("6960"),i("5a87"),i("993b"),i("4ea6"),i("e243"),i("f557"),i("28f0"),i("1b4c"),i("ca92"),i("25c3");var B=i("cb90"),H=(i("877f"),i("e6cf7")),W=(i("f6f4"),i("cd03")),N=(i("c021"),i("119d")),Y=i("a73b"),X=function(t){function e(){var e=t.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new N["a"],e.applyTheme(),e}return Object(c["c"])(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},e}(Y["a"]);l["b"].registeredClasses["RadialGradientModifier"]=X;var z=i("8e29"),U=function(t){function e(){var e=t.call(this)||this;return e.properties["gap"]=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return Object(c["c"])(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties["shapeRendering"]="auto"),this._line){var e=this.width,i=this.height,n="";if(this.gap)for(var r=this.gap+this.strokeWidth,a=this.height/r,s=-a/2;s<1.5*a;s++)Math.round(this.rotation/90)!=this.rotation/90?(n+=v["g"]({x:-e,y:(s+.5)*r})+v["f"]({x:2*e,y:(s+.5)*r}),this.properties["rotationX"]=this.width/2,this.properties["rotationY"]=this.height/2):n+=v["g"]({x:-e,y:s*r})+v["f"]({x:2*e,y:s*r});else Math.round(this.rotation/90)!=this.rotation/90?(n=v["g"]({x:-e,y:i/2})+v["f"]({x:2*e,y:i/2}),this.properties["rotationX"]=this.width/2,this.properties["rotationY"]=this.height/2):n=v["g"]({x:0,y:0})+v["f"]({x:e,y:0});this._line.attr({d:n})}},Object.defineProperty(e.prototype,"gap",{get:function(){return this.properties["gap"]},set:function(t){this.properties["gap"]=t,this.draw()},enumerable:!0,configurable:!0}),e}(z["a"]);l["b"].registeredClasses["LinePattern"]=U;var G=function(t){function e(){var e=t.call(this)||this;return e.properties["radius"]=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return Object(c["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(e.prototype,"radius",{get:function(){return this.properties["radius"]},set:function(t){this.properties["radius"]=t,this.draw()},enumerable:!0,configurable:!0}),e}(z["a"]);l["b"].registeredClasses["CirclePattern"]=G;var K=function(t){function e(){var e=t.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return Object(c["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.properties["rotationX"]=this.width/2,this.properties["rotationY"]=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(e.prototype,"rectWidth",{get:function(){return this.properties["rectWidth"]},set:function(t){this.properties["rectWidth"]=t,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectHeight",{get:function(){return this.properties["rectHeight"]},set:function(t){this.properties["rectHeight"]=t,this.draw()},enumerable:!0,configurable:!0}),e}(z["a"]);l["b"].registeredClasses["RectPattern"]=K;var q=i("3ac2"),Z=function(t){function e(){var e=t.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return Object(c["c"])(e,t),e.prototype.applyFilter=function(){var t,e,i,n=this.intensity,r=1-n,a=this.color;a&&a.rgb?(t=a.rgb.r/255*n,e=a.rgb.g/255*n,i=a.rgb.b/255*n):(t=0,e=0,i=0),this.feColorMatrix.attr({values:r+" 0 0 0 "+t+" 0 "+r+" 0 0 "+e+" 0 0 "+r+" 0 "+i+" 0 0 0 1 0"})},Object.defineProperty(e.prototype,"color",{get:function(){return this.properties["color"]},set:function(t){this.properties["color"]=t,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(t){this.properties.intensity=t,this.applyFilter()},enumerable:!0,configurable:!0}),e}(q["a"]);l["b"].registeredClasses["ColorizeFilter"]=Z;var J=i("2027"),$=(i("ade4"),function(t){function e(){var e=t.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return Object(c["c"])(e,t),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e}(q["a"]));l["b"].registeredClasses["BlurFilter"]=$;var Q=function(t){function e(){var e=t.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":(new S["a"]).getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return Object(c["c"])(e,t),Object.defineProperty(e.prototype,"stroke",{get:function(){return this.properties["stroke"]},set:function(t){this.properties["stroke"]=t,this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this.properties["strokeWidth"]},set:function(t){this.properties["strokeWidth"]=t,this.feMorphology.attr({radius:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties["opacity"]},set:function(t){this.properties["opacity"]=t,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+t+" 0"})},enumerable:!0,configurable:!0}),e.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),t.prototype.setSprite.call(this,e)},e}(q["a"]),tt=(i("c1b6"),i("a357"),i("7040"),i("0c2a"),i("03d5")),et=(i("eec5"),function(t){function e(){var e=t.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new tt["a"]({r:103,g:183,b:220}),e.className="PatternSet";var i=new S["a"];return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=i.getFor("stroke"),e.applyTheme(),e}return Object(c["c"])(e,t),e.prototype.getLinePattern=function(t,e,i,n,r){var a=new U;return a.width=t,a.height=t,a.stroke=this.baseColor,a.gap=n,a.strokeDasharray=r,a.strokeWidth=i,a.rotation=e,a},e.prototype.getRectPattern=function(t,e,i,n){var r=new K;return r.width=t,r.height=t,r.rectWidth=i,r.rectHeight=i,n?(r.stroke=this.baseColor,r.strokeWidth=1,r.fillOpacity=0):(r.fill=this.baseColor,r.strokeWidth=0),0!=e&&(r.shapeRendering="auto"),r.rotation=e,r},e.prototype.getCirclePattern=function(t,e,i){var n=new G;return n.width=t,n.height=t,n.shapeRendering="auto",n.radius=e,i?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),n},Object.defineProperty(e.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t,this.reset()},enumerable:!0,configurable:!0}),e.prototype.next=function(){var t=this.getIndex(this.currentStep);return this._currentStep++,t},e.prototype.getIndex=function(t){var e;while(this.list.length<=t)this.generatePatterns();return e=this.list[t],e.clone()},e.prototype.generatePatterns=function(){var t=this.list.length/(this._currentPass+1);this._currentPass++;for(var e=0;e=0){l["b"].queue.splice(l["b"].queue.indexOf(t),1);var i=l["b"].queue[e];i&&pt(i)}}function ut(t){t.__disabled&&d["q"](t.htmlContainer,h["a"].viewportTarget)&&(t.vpDisposer&&t.vpDisposer.dispose(),lt(t))}function pt(t){t&&t.tooltipContainer&&(t.__disabled=!1,t.tooltipContainer.__disabled=!1,t.events.enableType("appeared"),t.dispatch("removedfromqueue"),t.showOnInit&&t.events.on("appeared",(function(){ht(t)})),t.vpDisposer&&t.vpDisposer.dispose(),t instanceof s["a"]&&t.invalidateLabels(),t.tooltipContainer&&t.tooltipContainer.invalidateLayout(),t instanceof a["a"]?(t.invalidateData(),t.reinit(),t.events.once("datavalidated",(function(){t.showOnInit?t.appear():ht(t)}))):(t.reinit(),t.events.once("inited",(function(){ht(t)})),t.showOnInit&&t.appear()))}function ct(t,e){var i;f["j"](e)&&(f["d"](l["b"].registeredClasses[e])?e=l["b"].registeredClasses[e]:(e=l["b"].registeredClasses["Container"],i=new Error("Class ["+e+"] is not loaded.")));var n=ot(t,e);return i&&n.raiseCriticalError(i),n}function dt(t){-1===l["b"].themes.indexOf(t)&&l["b"].themes.push(t)}},"72b5":function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("84cf"),r=i("be33"),a=i("7040"),s=i("6e0f"),o=i("a0dd"),l=i("c886"),h=function(){function t(){this._isPaused=!1,this.animations=[],this.uid=n["b"].getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return t.prototype.reportTime=function(t,e){this.dummyCounter,e&&(this.time=Date.now())},t.prototype.update=function(){var t=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();n["b"].dispatchImmediately("enterframe");var i=[];for(var r in n["b"].invalidDatas)if(o["i"](n["b"].invalidDatas,r)){var l=n["b"].invalidDatas[r];while(l.length>0){var h=l[0],u=h.dataProvider;if(h.isDisposed())s["o"](l,h);else if(u&&u.dataInvalid)try{if(u.validateData(),u.dataValidationProgress<1)break}catch(f){s["o"](l,u),u.raiseCriticalError(f)}else try{if(h.validateData(),h.dataValidationProgress<1)break}catch(f){s["o"](l,h),h.raiseCriticalError(f)}}if(Date.now()-e>this.updateStepDuration)break}while(n["b"].invalidRawDatas.length>0){h=n["b"].invalidRawDatas[0];if(h.isDisposed())s["o"](n["b"].invalidRawDatas,h);else try{h.validateRawData()}catch(f){s["o"](n["b"].invalidRawDatas,h),h.raiseCriticalError(f)}}while(n["b"].invalidDataItems.length>0){h=n["b"].invalidDataItems[0],u=h.dataProvider;if(h.isDisposed()||h.dataInvalid||u&&u.dataInvalid);else try{h.validateDataItems()}catch(f){s["o"](n["b"].invalidDataItems,h),h.raiseCriticalError(f)}s["o"](n["b"].invalidDataItems,h)}while(n["b"].invalidDataRange.length>0){h=n["b"].invalidDataRange[0],u=h.dataProvider;if(h.isDisposed()||h.dataInvalid||u&&u.dataInvalid);else try{h.validateDataRange(),h.skipRangeEvent||h.dispatchImmediately("datarangechanged"),h.skipRangeEvent=!1}catch(f){s["o"](n["b"].invalidDataRange,h),h.raiseCriticalError(f)}s["o"](n["b"].invalidDataRange,h)}var p=[];o["d"](n["b"].invalidLayouts,(function(e){t.validateLayouts(e)})),o["d"](n["b"].invalidPositions,(function(e){t.validatePositions(e)}));var c=!1;if(e=Date.now(),o["d"](n["b"].invalidSprites,(function(i,r){var a=0;while(r.length>0){if(t.validateLayouts(i),t.validatePositions(i),a++,5==a){if(Date.now()-e>t.updateStepDuration)break;a=0}var o=r[r.length-1];if(o&&!o.isDisposed()){if(o._systemCheckIfValidate())if(t.checkIfValidate2(o))try{o._systemUpdate(p)}catch(f){o.invalid=!1,s["o"](r,o),o.raiseCriticalError(f)}else p.push(o);else p.push(o);o.invalid=!1}s["o"](r,o)}n["b"].invalidSprites[i]=n["b"].invalidSprites[i].concat(p)})),o["d"](n["b"].invalidSprites,(function(t,e){e.length>0&&(c=!0)})),o["d"](n["b"].invalidDatas,(function(t,e){e.length>0&&(c=!0)})),s["d"](s["c"](this.animations),(function(t){t.update()})),o["d"](n["b"].invalidLayouts,(function(e){t.validateLayouts(e)})),o["d"](n["b"].invalidPositions,(function(e){t.validatePositions(e)})),Object(a["d"])(),o["d"](n["b"].invalidLayouts,(function(e){t.validateLayouts(e)})),o["d"](n["b"].invalidPositions,(function(e){t.validatePositions(e)})),n["b"].dispatchImmediately("exitframe"),(c||this.animations.length>0||i.length>0)&&this.requestFrame(),this.updateStepDuration<200){var d=!0;o["d"](n["b"].invalidDatas,(function(t,e){e.length>0&&(d=!1)})),o["d"](n["b"].invalidSprites,(function(t,e){e.length>0&&(d=!1)})),d&&(this.updateStepDuration=200)}}},t.prototype.checkIfValidate2=function(t){return!(t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid&&!t.dataItem.component.isTemplate)},t.prototype.requestFrame=function(){var t=this;this._frameRequested||(Object(a["b"])((function(){t.update()})),this._frameRequested=!0)},t.prototype.softInvalidate=function(t){var e=this;t.children.each((function(t){t instanceof r["a"]&&e.softInvalidate(t),t.measureFailed&&(Object(n["a"])(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)}))},t.prototype.validatePositions=function(t){var e=n["b"].invalidPositions[t];while(e.length>0){var i=e[e.length-1];if(i.isDisposed())s["o"](e,i);else try{i._systemValidatePositions()}catch(r){i.positionInvalid=!1,s["o"](e,i),i.raiseCriticalError(r)}}},t.prototype.validateLayouts=function(t){var e=n["b"].invalidLayouts[t];while(e.length>0){var i=e[e.length-1];if(i.isDisposed())s["o"](e,i);else try{i.children.each((function(t){t._systemValidateLayouts()})),i.validateLayout()}catch(r){i.layoutInvalid=!1,s["o"](e,i),i.raiseCriticalError(r)}}},t.prototype.log=function(t){l["a"](t)},Object.defineProperty(t.prototype,"isPaused",{get:function(){return this._isPaused},set:function(t){this._isPaused=t,t||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),t.VERSION="4.10.39",t}(),u=new h},"74b3":function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("516a"),r=i("be33"),a=i("84cf"),s=i("9bf0"),o=i("028d"),l=i("cabc"),h=i("03d5"),u=i("ade4"),p=i("baa2"),c=i("ec03"),d=i("2082"),f=function(t){function e(){var e=t.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.fixDoc=!0,e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var i=e.background;i.interactionsEnabled=!1,i.fillOpacity=.9,i.strokeWidth=1,i.strokeOpacity=1,i.stroke=Object(h["b"])("#ffffff"),i.cornerRadius=3,i.pointerLength=6,i.pointerBaseWidth=10;var n=new u["a"];n.dy=1,n.dx=1,n.opacity=.5,i.filters.push(n),e.autoTextColor=!0;var r=e.createChild(o["a"]);return r.shouldClone=!1,e.label=r,r.padding(7,12,4,12),r.interactionsEnabled=!1,r.horizontalCenter="middle",r.fill=Object(h["b"])("#ffffff"),e._disposers.push(r),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=c["cubicOut"],e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(e.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(t){this.setPropertyValue("getStrokeFromObject",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(t){this.setPropertyValue("autoTextColor",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(t){var e=this;this.setPropertyValue("keepTargetHover",t,!0)&&t&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!0)}))),this._disposers.push(this.events.on("out",(function(t){e.targetSprite&&e.targetSprite.hoverable&&(e.targetSprite.isHover=!1)}))))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(t){this.setPropertyValue("showInViewport",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(t){this.setPropertyValue("getFillFromObject",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new s["a"]},Object.defineProperty(e.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(t){this.setPropertyValue("pointerOrientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.label.html},set:function(t){this.label.html!=t&&(this.label.html=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.label.text},set:function(t){this.label.text!=t&&(this.label.text=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var i,n,r=this._pointTo.x,a=this._pointTo.y,s=this._boundingRect,o=e.measuredWidth,l=e.measuredHeight,h=this.background.pointerLength;if(this.ignoreBounds&&(s=void 0),s&&this.fixDoc&&o>s.width){d["I"]({x:s.x,y:s.y},this.parent);var u=d["I"]({x:s.x+s.width,y:s.y+s.height},this.parent),c=document.body.offsetWidth;d["S"](document.body.offsetHeight),u.x>c/2?s.x=s.width-o:s.width=s.x+o}var f=this.pointerOrientation;"horizontal"==f||"left"==f||"right"==f?(n=-l/2,i="horizontal"==f?s&&r>s.x+s.width/2?-o/2-h:o/2+h:"left"==f?o/2+h:-o/2-h):(s&&(i=p["i"](0,s.x-r+o/2,s.x-r+s.width-o/2)),"vertical"==f?s&&a>s.y+l+h?(n=-l-h,this._verticalOrientation="up"):(n=h,this._verticalOrientation="down"):"down"==f?(n=-l-h,this._verticalOrientation="up"):(n=h,this._verticalOrientation="down")),s&&(n=p["i"](n,s.y-a,s.y+s.height-l-a)),e.x=i,e.y=n,this.drawBackground()},e.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},e.prototype.drawBackground=function(){var t=this.label,e=this.background,i=t.measuredWidth,n=t.measuredHeight,r=this._boundingRect,a=i,s=t.pixelX-i/2,o=n,l=t.pixelY,h=this._pointTo.x,u=this._pointTo.y,c=r.x-h,d=c+r.width,f=r.y-u,g=f+r.height;e.x=s,e.y=l,e.width=a,e.height=o,this.fitPointerToBounds?(e.pointerX=p["i"](-e.x,c-e.x,d-e.x),e.pointerY=p["i"](-e.y,f-e.y,g-e.y)):(e.pointerX=-e.x,e.pointerY=-e.y),e.validate()},e.prototype.delayedPointTo=function(t,e){var i=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=a["b"].events.once("exitframe",(function(){i.pointTo(t,e)})),this.addDisposer(this._pointToDisposer)},e.prototype.pointTo=function(t,e){this._pointTo.x==t.x&&this._pointTo.y==t.y||(this._pointTo=t,this.invalidate(),!this.visible||e?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):0==this.pixelX&&0==this.pixelY?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new l["a"](this,[{property:"x",to:t.x,from:this.pixelX},{property:"y",to:t.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},e.prototype.setBounds=function(t){var e=this._boundingRect;e.x==t.x&&e.y==t.y&&e.width==t.width&&e.height==t.height||(this._boundingRect=t,this.invalidate())},Object.defineProperty(e.prototype,"boundingContainer",{set:function(t){this._boundingContainer=t,t.events.on("sizechanged",this.updateBounds,this),t.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),e.prototype.updateBounds=function(){var t=this._boundingContainer,e=d["L"]({x:t.pixelX,y:t.pixelY,width:t.maxWidth,height:t.maxHeight},t);this.setBounds(e)},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(r["a"]);a["b"].registeredClasses["Tooltip"]=f},"762e":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("516a"),r=i("f0c5"),a=i("84cf"),s=function(t){function e(){var e=t.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(e.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(t){this.height=2*t,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(t){this.width=2*t,this.invalidate()},enumerable:!0,configurable:!0}),e}(r["a"]);a["b"].registeredClasses["Ellipse"]=s},"77b1":function(t,e,i){"use strict";i.d(e,"h",(function(){return s})),i.d(e,"g",(function(){return o})),i.d(e,"f",(function(){return l})),i.d(e,"i",(function(){return h})),i.d(e,"e",(function(){return u})),i.d(e,"d",(function(){return p})),i.d(e,"b",(function(){return c})),i.d(e,"a",(function(){return d})),i.d(e,"c",(function(){return f})),i.d(e,"k",(function(){return g})),i.d(e,"j",(function(){return y}));var n=i("baa2"),r=i("916c"),a=(i("cb90"),i("5290"));function s(t){var e=l(t[0]),i={x:0,y:0},s=a["a"].minPolylineStep;r["h"](s)||(s=.5);for(var o=0,h=t.length;os&&(e+=l(u),i=u)}return e}function o(t){return" M"+n["E"](t.x,4)+","+n["E"](t.y,4)+" "}function l(t){return" L"+n["E"](t.x,4)+","+n["E"](t.y,4)+" "}function h(t,e){return" Q"+n["E"](e.x,4)+","+n["E"](e.y,4)+" "+n["E"](t.x,4)+","+n["E"](t.y,4)}function u(t,e,i){return" C"+n["E"](e.x,4)+","+n["E"](e.y,4)+" "+n["E"](i.x,4)+","+n["E"](i.y,4)+" "+n["E"](t.x,4)+","+n["E"](t.y,4)}function p(){return" Z"}function c(t,e,i,a){if(0==e)return"";r["h"](a)||(a=i);var s="",o=",",h=Math.ceil(Math.abs(e)/180),u=1;e<0&&(u=0);var p=0,c=0,d=-n["g"](t)*i,f=-n["F"](t)*a;if(e<.5&&i>3e3){var g=t+e,y=n["E"](n["g"](g)*i,4),m=n["E"](n["F"](g)*a,4);return l({x:y,y:m})}for(var b=0;b(d-t)/2&&(T=w);var j="";return 360==e?j=o(S):(j=o(C),j+=l(S),j+=f(D,h,m,!0)),j+=c(t+v,e-2*v,i,s),r["h"](a)&&0!=a?(360==e&&0==h?j+=o(I):(j+=f(k,h,m,!0),j+=l(I),j+=f(T,u,b,!0)),j+=c(d-_,-(e-2*_),a,y),(e<360||h>0)&&(j+=f(C,u,b,!0)),j+=l(C)):(j+=f(k,h,m,!0),e<360&&(j+=l(C))),j}function f(t,e,i,r,a,s){if(0==e)return"";s=s||0,a=Boolean(a),r=Boolean(r);var o=",",l=+r,h=+a;return" A"+e+o+i+o+s+o+h+o+l+o+n["E"](t.x,4)+o+n["E"](t.y,4)}function g(t,e,i,n){return r["h"](i)||(i=0),r["h"](n)||(n=0),o({x:i,y:n})+l({x:i+t,y:n})+l({x:i+t,y:n+e})+l({x:i,y:n+e})+p()}function y(t,e){var i=",",n=" L";return e?"M"+t.x+i+t.y+n+t.x+i+(t.y+t.height)+n+(t.x+t.width)+i+(t.y+t.height)+n+(t.x+t.width)+i+t.y+n+t.x+i+t.y:"M"+t.x+i+t.y+n+(t.x+t.width)+i+t.y+n+(t.x+t.width)+i+(t.y+t.height)+n+t.x+i+(t.y+t.height)+n+t.x+i+t.y}},"7b85":function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("516a"),r=i("9ca1"),a=i("6aa1"),s=i("b08e"),o=i("1ebf"),l=i("a357"),h=i("da0d"),u=i("8a87"),p=i("84cf"),c=i("916c"),d=i("a0dd"),f=function(t){function e(e,i){var n=t.call(this)||this;return n.adapter=new l["a"](n),n._requestOptions={},n._incremental=!1,n._incrementalParams={},n._keepCount=!1,n._updateCurrentData=!1,n.showPreloader=!0,n.className="DataSource",e&&(n.url=e),i&&(n.parser="string"==typeof i?r["a"].getParserByType(i):i),n}return Object(n["c"])(e,t),e.prototype.processData=function(t,e){if(this.dispatchImmediately("parsestarted"),this.parser||(this.parser=r["a"].getParserByData(t,e),this.parser)){if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",t))),!c["d"](this.data)&&this.events.isEnabled("parseerror")){var i={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",i)}this.dispatchImmediately("parseended"),c["d"](this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date}else{if(this.events.isEnabled("parseerror")){var n={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",n)}this.dispatchImmediately("parseended")}},Object.defineProperty(e.prototype,"url",{get:function(){var t=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(t=this.addUrlParams(t,this.incrementalParams)),this.adapter.apply("url",t)},set:function(t){this._url=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(t){this._requestOptions=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this._parser||(this._parser=new a["a"]),this.adapter.apply("parser",this._parser)},set:function(t){this._parser=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(t){var e=this;this._reloadFrequency!=t&&(this._reloadFrequency=t,t?c["d"](this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",(function(t){e._reloadTimeout=setTimeout((function(){e.load()}),e.reloadFrequency)}))):c["d"](this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(t){this._incremental=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(t){this._incrementalParams=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(t){this._keepCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(t){this._updateCurrentData=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new h["a"],this.language)},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new u["a"],this.dateFormatter)},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),e.prototype.timestampUrl=function(t){var e=(new Date).getTime().toString(),i={};return i[e]="",this.addUrlParams(t,i)},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),c["d"](this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},e.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),r["a"].load(this))},e.prototype.addUrlParams=function(t,e){var i=t.match(/\?/)?"&":"?",n=[];return d["d"](e,(function(t,e){""!=e?n.push(t+"="+encodeURIComponent(e)):n.push(t)})),n.length?t+i+n.join("&"):t},e.prototype.processConfig=function(e){p["b"].registeredClasses["json"]=a["a"],p["b"].registeredClasses["JSONParser"]=a["a"],p["b"].registeredClasses["csv"]=s["a"],p["b"].registeredClasses["CSVParser"]=s["a"],t.prototype.processConfig.call(this,e)},e}(o["b"])},"7e9c":function(t,e,i){"use strict";i.d(e,"a",(function(){return L}));var n,r=i("516a"),a=i("4c1f"),s=i("a357"),o=i("5d2f"),l=i("a281"),h=i("f2c0"),u=i("1735"),p=i("8a87"),c=i("6960"),d=i("5a87"),f=i("da0d"),g=i("2282"),y=i("03d5"),m=i("84cf"),b=i("5290"),v=i("5134"),x=i("802e"),_=i("a0dd"),P=i("457a"),O=i("916c"),w=i("c886"),C=i("2082"),S=i("6e0f"),k=i("baa2"),I=i("c6c5");function D(){return Object(r["b"])(this,void 0,void 0,(function(){var t,e,n,a;return Object(r["d"])(this,(function(r){switch(r.label){case 0:return[4,Promise.all([i.e("vendors~pdfmake").then(i.t.bind(null,"e499",7)),i.e("vendors~pdfmake").then(i.bind(null,"6f47"))])];case 1:return t=r.sent(),e=t[0].default||t[0],n=t[1].default||t[1],a=window,a.pdfMake=a.pdfMake||{},a.pdfMake.vfs=n,e.vfs=n,[2,e]}}))}))}var T=/src: ([^;]+);/;function j(){return null!=window.navigator.msSaveOrOpenBlob}function A(t){return new Promise((function(e,i){var n=new FileReader;n.onload=function(t){e(n.result)},n.onerror=function(t){i(t)},n.readAsDataURL(t)}))}function F(t){return Object(r["b"])(this,void 0,void 0,(function(){var e;return Object(r["d"])(this,(function(i){switch(i.label){case 0:e=t.sheet,i.label=1;case 1:return i.trys.push([1,2,,4]),[2,e.cssRules];case 2:return i.sent(),[4,new Promise((function(i,n){t.addEventListener("load",(function(){i(e.cssRules)}),!0),t.addEventListener("error",(function(t){n(t)}),!0),setTimeout((function(){n(new Error("Timeout while waiting for "+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,o,l,p,h,u),m=new Blob([y],{type:"image/svg+xml"}),n=i.createObjectURL(m),[4,this.loadNewImage(n,o*p*c,l*p*c,"anonymous")];case 3:return b=r.sent(),d.drawImage(b,0,0),[3,5];case 4:return null!==n&&i.revokeObjectURL(n),null!==a&&S["d"](a,(function(t){i.revokeObjectURL(t)})),this.restoreRemovedObjects(),[7];case 5:return[2,s]}}))}))},e.prototype.getCanvasAdvanced=function(t){return Object(r["b"])(this,void 0,void 0,(function(){var e,i,n,a,s,o,l,h,u,p,c;return Object(r["d"])(this,(function(r){switch(r.label){case 0:return O["d"](t)||(t={}),[4,this.imagesToDataURI(this.sprite.dom,t)];case 1:return r.sent(),e=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return i=r.sent(),n=this.sprite.pixelWidth,a=this.sprite.pixelHeight,s=v["j"](this.sprite.dom),o=v["k"](this.sprite.dom),l=t.scale||1,h=this.getPixelRatio(t),l=this.getAdjustedScale(n*h,a*h,l,t),u=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,a,l,s,o,e),p=this.getDisposableCanvas(),p.style.width=n*h*l+"px",p.style.height=a*h*l+"px",p.width=n*h*l,p.height=a*h*l,c={useCORS:!0},1!=h&&(c.ignoreDimensions=!0,c.scaleWidth=n*h*l,c.scaleHeight=a*h*l),[4,i.fromString(p.getContext("2d"),u,c).render()];case 3:return r.sent(),[2,p]}}))}))},e.prototype.getImageAdvanced=function(t,e,i){return Object(r["b"])(this,void 0,void 0,(function(){var n,a,s;return Object(r["d"])(this,(function(r){switch(r.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),O["d"](e)||(e=this.getFormatOptions(t)),[4,this.getCanvasAdvanced(e)];case 1:return a=r.sent(),!1===i?[3,3]:[4,this.addExtras(a,e,!0)];case 2:a=r.sent(),r.label=3;case 3:return s=a.toDataURL(this.getContentType(t),e.quality),this.disposeCanvas(a),n||this.restoreNonExportableSprites(),[2,s]}}))}))},e.prototype.getDisposableCanvas=function(){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="-10000px",document.body.appendChild(t),t},e.prototype.disposeCanvas=function(t){document.body.contains(t)&&document.body.removeChild(t)},e.prototype.getPixelRatio=function(t){return this.useRetina?C["r"]():1},e.prototype.getAdjustedScale=function(t,e,i,n){if(!n)return i;var r,a,s=t*i,o=t*i;return n.maxWidth&&s>n.maxWidth&&(r=n.maxWidth/t),n.maxHeight&&o>n.maxHeight&&(a=n.maxHeight/e),r||a?k["C"](r,a):(n.minWidth&&s",{},1,1)],{type:"image/svg+xml"}),s=n.createObjectURL(a),o=void 0,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.loadNewImage(s,1,1)];case 3:return o=r.sent(),[3,5];case 4:return r.sent(),[2,!1];case 5:i.drawImage(o,0,0),n.revokeObjectURL(s);try{return m["b"].setCache("simplifiedImageExport",!0),[2,!0]}catch(l){return m["b"].setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return r.sent(),m["b"].setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}}))}))},e.prototype.loadNewImage=function(t,e,i,n){return new Promise((function(r,a){var s;function o(){if(n){var e=s.src;s.onerror=function(){a(new Error('Loading image "'+t+'" failed'))},s.removeAttribute("crossorigin"),s.src="",s.src=e}else a(new Error('Loading image "'+t+'" failed'))}s=e&&i?new Image(e,i):new Image,n&&s.setAttribute("crossOrigin",n),s.onload=function(){r(s)},s.onabort=o,s.onerror=o,s.src=t}))},e.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},e.prototype.getSVG=function(t,e,i){return void 0===i&&(i=!0),Object(r["b"])(this,void 0,void 0,(function(){var n,a,s,o,l,h,u,p,c,d;return Object(r["d"])(this,(function(r){switch(r.label){case 0:return n=this._objectsAlreadyHidden,n||this.hideNonExportableSprites(),O["d"](e)||(e=this.getFormatOptions("svg")),[4,this.awaitValidSprites()];case 1:return r.sent(),a=this.sprite.pixelWidth,s=this.sprite.pixelHeight,o=v["j"](this.sprite.dom),l=v["k"](this.sprite.dom),h=e.scale||1,u=this.getPixelRatio(e),h=this.getAdjustedScale(a*u,s*u,h,e),p=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,a,s,h,o,l),c=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:e}).charset,d=this.adapter.apply("getSVG",{data:i?"data:"+this.getContentType(t)+";"+c+","+encodeURIComponent(p):p,options:e}).data,n||this.restoreNonExportableSprites(),[2,d]}}))}))},e.prototype.normalizeSVG=function(t,e,i,n,r,a,s,o){var l="";i&&(l+='width="'+Math.round(i*(r||1))+'px" '),n&&(l+='height="'+Math.round(n*(r||1))+'px" ');var h="";a&&(h+="font-family: "+a.replace(/"/g,"")+";"),s&&(h+="font-size: "+s+";"),r&&(l+='viewBox="0 0 '+i+" "+n+'" ');var u=[],p=t.match(//gi);if(p)for(var c=0;c]*)width="[^"]*"/,"$1"),t=t.replace(/(]*)height="[^"]*"/,"$1"),t=t.replace(/('+t+"",o&&(t=t.replace(/(]*>)/,'$1')),x["a"]()&&(t=t.replace(/]*\/>/gi,""));var d=new RegExp("url\\("+C["j"](C["n"]()),"g");if(t=t.replace(d,"url(#"),t=t.replace(/url\("([^)]*)"\)/gm,"url($1)"),u.length)for(c=0;cn?1:in?1:in?1:in?1:in?-1:i=0)&&(h='"'+h+'"'),s.push(h)}),(function(t,e){var i=o.indexOf(t),n=o.indexOf(e);return i>n?1:i",e.tableClass&&(n=''),a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,s=this.data,e.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,n+="\n",_["f"](a,(function(t,i){var r=[];e.addColumnNames&&r.push(i);for(var a=s.length,o=0;on?-1:i";else{for(e.addColumnNames&&(n+="\n\n"+this.getHTMLRow(a,e,void 0,!0,!0)+"\n"),n+="\n",l=s.length,h=0;h"}return n+="\n
",u=this.adapter.apply("charset",{charset:"charset=utf-8",type:t,options:e}).charset,p=this.adapter.apply("getHTML",{data:i?"data:"+this.getContentType(t)+";"+u+","+encodeURIComponent(n):n,options:e}).data,[2,p]}))}))},e.prototype.getHTMLRow=function(t,e,i,n,r){var a=this;void 0===n&&(n=!1),void 0===r&&(r=!1);var s="\t";e.rowClass&&(s='\t'),i||(i=t);var o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,l=r?"th":"td",h=!0;return _["f"](i,(function(i,r){var o=a.convertEmptyValue(i,t[i],e),u=n?o:a.convertToSpecialFormat(i,o,e);u=""+u,u=u.replace(/[\u00A0-\u9999<>\&]/gim,(function(t){return"&#"+t.charCodeAt(0)+";"}));var p=l;e.pivot&&h&&(p="th"),e.cellClass?s+="\n\t\t<"+p+' class="'+e.cellClass+'">'+u+"":s+="\n\t\t<"+p+">"+u+"",h=!1}),(function(t,e){var i=o.indexOf(t),n=o.indexOf(e);return i>n?1:i",s},e.prototype.getJSON=function(t,e,i){return void 0===i&&(i=!0),Object(r["b"])(this,void 0,void 0,(function(){var n,a,s,o,l,h,u,p,c,d=this;return Object(r["d"])(this,(function(r){if(O["d"](e)||(e=this.getFormatOptions("json")),a=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"json"}).dataFields,this._dynamicDataFields)n=this.data;else for(n=[],s=this.data,o=function(t,i){var r=s[i];if("object"==typeof r){var o={};_["d"](r,(function(t,i){O["d"](a[t])&&(o[a[t]]=d.convertToSpecialFormat(t,i,e))})),n.push(o)}},l=s.length,h=0;h

'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'

'+this.language.translate("(Press ESC to close this message)")+"

",this.language.translate("Image Export Complete")):(y=void 0,e.match(/\.svg$/)?y="image/svg+xml":(y="text/plain",e+=".txt"),m=document.createElement("iframe"),m.width="1px",m.height="1px",m.style.display="none",document.body.appendChild(m),b=m.contentDocument,b.open(y,"replace"),b.write(decodeURIComponent(g[3])),b.close(),b.execCommand("SaveAs",!0,e),document.body.removeChild(m)))):window.location.href=t;return[2,!0]}))}))},e.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},e.prototype.linkDownloadSupport=function(){var t=m["b"].getCache("linkDownloadSupport");if(!1===t||!0===t)return t;var e=document.createElement("a"),i="undefined"!==typeof e.download;return m["b"].setCache("linkDownloadSupport",i),i},e.prototype.blobDownloadSupport=function(){return O["d"](window.Blob)},e.prototype.msBlobDownloadSupport=function(){return O["d"](window.navigator.msSaveOrOpenBlob)},e.prototype.legacyIE=function(){var t=document.createElement("div");return t.innerHTML="\x3c!--[if lt IE 10]> *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),i&&document&&document.title&&(s=document.title,document.title=i),o=new Image,o.src=t,o.style.maxWidth="100%",o.style.display="block",o.style.position="relative",o.style.visibility="visible",o.style.opacity="1",o.style.clipPath="none",document.body.appendChild(o),this.setTimeout((function(){window.print()}),50),l=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,l&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(o),a.dispose(),s&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n}),e.delay||500),[2,!0]}))}))},e.prototype.printViaIframe=function(t,e,i){return Object(r["b"])(this,void 0,void 0,(function(){var n,a,s;return Object(r["d"])(this,(function(r){return n=document.createElement("iframe"),n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close(),a=new Image,a.src=t,a.style.maxWidth="100%",a.style.height="auto",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(a),n.load=function(){n.contentWindow.document.body.appendChild(a)},this.setTimeout((function(){try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch(t){n.contentWindow.print()}}),e.delay||50),s=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,s&&e.delay<1e3?e.delay=1e3:e.delay<100&&(e.delay=100),this.setTimeout((function(){document.body.removeChild(n)}),e.delay+50||100),[2,!0]}))}))},e.prototype.findBackgroundColor=function(t){var e=1,i=Object(v["m"])(t,"background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||"transparent"==i)&&(e=0),0==e){var n=t.parentElement;return n?this.findBackgroundColor(n):Object(y["b"])("#fff")}return Object(y["b"])(i,e)},Object.defineProperty(e.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(t){this._container=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(t){this._sprite=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(t){this._extraSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(t){this._validateSprites=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(t){this._data=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(t){this._dataFields=t,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),e.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0);var t=this.data.length>0;this._prevHasData!=t&&(this._prevHasData=t,this.menu&&this.menu.invalidate())},Object.defineProperty(e.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new p["a"],this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(t){this._dateFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(t){this._dateFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new h["a"]),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(t){this._dateFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new d["a"],this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(t){this._numberFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(t){this._numberFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new h["a"]),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(t){this._numberFields=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new c["a"],this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(t){this._durationFormatter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(t){this._durationFormat=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new h["a"]),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(t){this._durationFields=t},enumerable:!0,configurable:!0}),e.prototype.generateDataFields=function(){var t=this;this._dataFields={},this.data.length&&S["d"](this.data,(function(e){_["d"](e,(function(e,i){O["d"](t._dataFields[e])||(t._dataFields[e]=t.adapter.apply("dataFieldName",{name:e,field:e}).name)}))}))},e.prototype.isDateField=function(t){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(t),field:t}).isDateField},e.prototype.isNumberField=function(t){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(t),field:t}).isNumberField},e.prototype.isDurationField=function(t){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(t),field:t}).isDurationField},e.prototype.getContentType=function(t){var e="";switch(t){case"png":case"gif":e="image/"+t;break;case"jpg":e="image/jpeg";break;case"svg":e="image/svg+xml";break;case"csv":e="text/csv";break;case"json":e="application/json";break;case"html":e="text/html";break;case"pdf":case"pdfdata":e="application/pdf";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break}return this.adapter.apply("contentType",{contentType:e,type:t}).contentType},Object.defineProperty(e.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(t){this._filePrefix=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(t){this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(t){this._title=t},enumerable:!0,configurable:!0}),e.prototype.showPreloader=function(){var t=this.preloader;t&&(t.progress=.5,t.label.text="...")},e.prototype.hidePreloader=function(){var t=this.preloader;t&&(t.progress=1)},Object.defineProperty(e.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),e.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},e.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(e.prototype,"language",{get:function(){return this._language||(this._language=new f["a"]),this._language},set:function(t){this._language=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){return this._modal||(this._modal=new l["a"],this._modal.adapter.add("classPrefix",(function(t){return t=b["a"].classNamePrefix+t,t}))),this._modal},enumerable:!0,configurable:!0}),e.prototype.showModal=function(t,e){this.hideModal(),this.hidePreloader();var i=this.modal;i.container=this.sprite.svgContainer.SVGContainer,i.content=t,i.readerTitle=e,i.open()},e.prototype.hideModal=function(){this._modal&&this.modal.close()},e.prototype._canvg=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["d"])(this,(function(e){switch(e.label){case 0:return[4,i.e("vendors~canvg").then(i.bind(null,"8890"))];case 1:return t=e.sent(),null!=t.default?[2,t.default]:[2,t]}}))}))},Object.defineProperty(e.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfmake",{get:function(){return null==n&&(n=D()),n},enumerable:!0,configurable:!0}),e.prototype._xlsx=function(){return Object(r["b"])(this,void 0,void 0,(function(){return Object(r["d"])(this,(function(t){switch(t.label){case 0:return[4,i.e("vendors~xlsx").then(i.bind(null,"80fb"))];case 1:return[2,t.sent()]}}))}))},Object.defineProperty(e.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),e.prototype.setFormatOptions=function(t,e){this._formatOptions.setKey(t,e)},e.prototype.getFormatOptions=function(t){return this._formatOptions.getKey(t)},Object.defineProperty(e.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),e.prototype._disablePointers=function(){O["d"](this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},e.prototype._releasePointers=function(){O["d"](this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},e.prototype.hideNonExportableSprites=function(){var t=this;if(!this._objectsAlreadyHidden){var e=this.sprite.svgContainer;e&&S["d"](e.nonExportableSprites,(function(e){e.isHidden||e.isHiding||!e.visible||t._hiddenObjects.push(e),e.hide(0)})),this._objectsAlreadyHidden=!0}},e.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(S["d"](this._hiddenObjects,(function(t){t.show(0)})),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},e.prototype.awaitValidSprites=function(){return Object(r["b"])(this,void 0,void 0,(function(){var t;return Object(r["d"])(this,(function(e){switch(e.label){case 0:return t=[],this.validateSprites.length&&S["d"](this.validateSprites,(function(e,i){e.invalid&&t.push(new Promise((function(t,i){e.events.once("validated",(function(e){t()}))})))})),t.length?[4,Promise.all(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.processConfig=function(e){m["b"].registeredClasses["ExportMenu"]=a["a"],e&&(O["d"](e.menu)&&!O["d"](e.menu.type)&&(e.menu.type="ExportMenu"),O["d"](e.dataFields)&&O["i"](e.dataFields)&&(this.dataFields=e.dataFields,delete e.dataFields)),t.prototype.processConfig.call(this,e)},e.XLINK="http://www.w3.org/1999/xlink",e}(g["a"])},"7fef":function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("516a"),r=i("db37"),a=i("877f"),s=i("77b1"),o=function(t){function e(){var e=t.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelWidth,i=this.pixelHeight;if(e>0&&i>0){var n={x:0,y:0},r={x:e,y:0},o={x:e,y:i},l={x:0,y:i},h=Math.min(e,this.waveLength),u=Math.min(i,this.waveHeight),p=Math.min(i,this.waveLength),c=Math.min(e,this.waveHeight),d="",f="",g="",y="";this.wavedTop&&(d=Object(a["d"])(n,r,h,u,this.tension,!0)),this.wavedRight&&(f=Object(a["d"])(r,o,p,c,this.tension,!0)),this.wavedBottom&&(g=Object(a["d"])(o,l,h,u,this.tension,!0)),this.wavedLeft&&(y=Object(a["d"])(l,n,p,c,this.tension,!0)),this.path=s["g"](n)+d+s["f"](r)+f+s["f"](o)+g+s["f"](l)+y+"z"}},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.setWavedSides=function(t,e,i,n){this.wavedTop=t,this.wavedRight=e,this.wavedBottom=i,this.wavedLeft=n},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(t){this.setPropertyValue("wavedRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(t){this.setPropertyValue("wavedLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(t){this.setPropertyValue("wavedTop",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(t){this.setPropertyValue("wavedBottom",t,!0)},enumerable:!0,configurable:!0}),e}(r["a"])},"802e":function(t,e,i){"use strict";function n(){return/apple/i.test(navigator.vendor)}function r(){return/MSIE |Trident\//.test(navigator.userAgent)}i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return r}))},"817d":function(t,e,i){var n,r,a;(function(s,o){r=[e,i("313e")],n=o,a="function"===typeof n?n.apply(e,r):n,void 0===a||(t.exports=a)})(0,(function(t,e){var i=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var n=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],r={color:n,title:{textStyle:{fontWeight:"normal",color:"#008acd"}},visualMap:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{iconStyle:{normal:{borderColor:n[0]}}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{normal:{color:"#008acd"},emphasis:{color:"#008acd"}},symbol:"emptyCircle",symbolSize:3},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},candlestick:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",lineStyle:{color:"#d87a80",color0:"#2ec7c9"}}}},scatter:{symbol:"circle",symbolSize:4},map:{label:{normal:{textStyle:{color:"#d87a80"}}},itemStyle:{normal:{borderColor:"#eee",areaColor:"#ddd"},emphasis:{areaColor:"#fe994e"}}},graph:{color:n},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}}};e.registerTheme("macarons",r)}else i("ECharts is not Loaded")}))},"82ff":function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("516a"),r=i("be33"),a=i("5d2f"),s=i("84cf"),o=i("baa2"),l=i("77b1"),h=i("916c"),u=i("2082"),p=i("2b87"),c=i("119d"),d=function(t){function e(){var e=t.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(a["a"]),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&0==e&&(e=.01),this.slice.path=l["a"](this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof c["a"]&&this.updateGradient(this.realFill),this.realStroke instanceof c["a"]&&this.updateGradient(this.realStroke)},e.prototype.updateGradient=function(t){t.element.attr({gradientUnits:"userSpaceOnUse"}),t.element.attr({r:this.radius}),t.cx=0,t.cy=0,t.element.attr({radius:this.radius})},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var t=o["k"](this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),e=o["k"](this.startAngle,this.startAngle+this.arc,this.radius);return o["m"]([t,e])}return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",o["D"](t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){h["h"](t)||(t=0),this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){var t=this.getPropertyValue("radius");return h["h"](t)||(t=0),t},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return h["h"](t)||(t=this.radius),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return u["F"](this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(t){this.setPropertyValue("innerCornerRadius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(t){this.setPropertyValue("shiftRadius",t),t=this.getPropertyValue("shiftRadius"),this.dx=t*this.radius*this.ix,this.dy=t*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ix",{get:function(){return o["g"](this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iy",{get:function(){return o["F"](this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");if(h["h"](t))return t;var e=.5;t instanceof p["a"]&&(e=t.value);var i=u["F"](this.innerRadius,this.radius);return this.ix*(i+(this.radius-i)*e)},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");if(h["h"](t))return t;var e=.5;t instanceof p["a"]&&(e=t.value);var i=u["F"](this.innerRadius,this.radius);return this.iy*(i+(this.radius-i)*e)+this.slice.dy},e}(r["a"]);s["b"].registeredClasses["Slice"]=d},"84bd":function(t,e,i){"use strict";i.d(e,"e",(function(){return a})),i.d(e,"d",(function(){return s})),i.d(e,"f",(function(){return l})),i.d(e,"c",(function(){return h})),i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return p})),i.d(e,"h",(function(){return c})),i.d(e,"i",(function(){return d})),i.d(e,"g",(function(){return f}));var n=i("916c"),r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function a(t){switch(t){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function s(t,e){return n["d"](e)||(e=1),r[t]*e}function o(){return new Date}function l(){return o().getTime()}function h(t){return new Date(t.getTime())}function u(t,e,i,n){t=new Date(t.getTime()),e=new Date(e.getTime());var r=0,s=0;n||"millisecond"==i||(r=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-r),s=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-s));var o=!1;switch(i){case"year":t.getUTCFullYear()!=e.getUTCFullYear()&&(o=!0);break;case"month":(t.getUTCFullYear()!=e.getUTCFullYear()||t.getUTCMonth()!=e.getUTCMonth())&&(o=!0);break;case"day":(t.getUTCMonth()!=e.getUTCMonth()||t.getUTCDate()!=e.getUTCDate())&&(o=!0);break;case"hour":t.getUTCHours()!=e.getUTCHours()&&(o=!0);break;case"minute":t.getUTCMinutes()!=e.getUTCMinutes()&&(o=!0);break;case"second":t.getUTCSeconds()!=e.getUTCSeconds()&&(o=!0);break;case"millisecond":t.getTime()!=e.getTime()&&(o=!0);break}if(o)return!0;var l=a(i);return!!l&&(t.setUTCMinutes(t.getUTCMinutes()+r),e.setUTCMinutes(e.getUTCMinutes()+s),u(t,e,l,n))}function p(t,e,i,n){var r=0;switch(n||"millisecond"==e||(r=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-r)),e){case"day":var a=t.getUTCDate();t.setUTCDate(a+i);break;case"second":var s=t.getUTCSeconds();t.setUTCSeconds(s+i);break;case"millisecond":var o=t.getUTCMilliseconds();t.setUTCMilliseconds(o+i);break;case"hour":var l=t.getUTCHours();t.setUTCHours(l+i);break;case"minute":var h=t.getUTCMinutes();t.setUTCMinutes(h+i);break;case"year":var u=t.getUTCFullYear();t.setUTCFullYear(u+i);break;case"month":var p=t.getUTCMonth();t.setUTCMonth(p+i);break;case"week":var c=t.getUTCDate();t.setUTCDate(c+7*i);break}if(!n&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+r),"day"==e||"week"==e||"month"==e||"year"==e)){var d=t.getTimezoneOffset();if(d!=r){var f=d-r;t.setUTCMinutes(t.getUTCMinutes()+f),t.getTimezoneOffset()!=d&&t.setUTCMinutes(t.getUTCMinutes()-f)}}return t}function c(t,e,i,r,a,o,l,h){void 0===l&&(l=0),n["h"](i)||(i=1);var u=0;switch(h&&-1!=["day","month","week","year"].indexOf(e)&&(t=d(t,h)),a||"millisecond"==e||(u=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-u)),e){case"day":var p=t.getUTCDate();if(i>1){if(o){o=c(o,"day",1);var f=t.getTime()-o.getTime(),g=Math.floor(f/s("day")/i),y=s("day",g*i);t.setTime(o.getTime()+y-u*s("minute"))}}else t.setUTCDate(p);t.setUTCHours(0,0,0,0);break;case"second":var m=t.getUTCSeconds();i>1&&(m=Math.floor(m/i)*i),t.setUTCSeconds(m,0);break;case"millisecond":if(1==i)return t;var b=t.getUTCMilliseconds();b=Math.floor(b/i)*i,t.setUTCMilliseconds(b);break;case"hour":var v=t.getUTCHours();i>1&&(v=Math.floor(v/i)*i),t.setUTCHours(v,l,0,0);break;case"minute":var x=t.getUTCMinutes();b=t.getUTCMilliseconds(),i>1&&(x=Math.floor(x/i)*i),t.setUTCMinutes(x,0,0);break;case"month":var _=t.getUTCMonth();i>1&&(_=Math.floor(_/i)*i),t.setUTCMonth(_,1),t.setUTCHours(0,l,0,0);break;case"year":var P=t.getUTCFullYear();i>1&&(P=Math.floor(P/i)*i),t.setUTCFullYear(P,0,1),t.setUTCHours(0,l,0,0);break;case"week":var O=t.getUTCDate(),w=t.getUTCDay();n["h"](r)||(r=1),O=w>=r?O-w+r:O-(7+w)+r,t.setUTCDate(O),t.setUTCHours(0,l,0,0);break}if(!a&&"millisecond"!=e&&(t.setUTCMinutes(t.getUTCMinutes()+u),"day"==e||"week"==e||"month"==e||"year"==e)){var C=t.getTimezoneOffset();if(C!=u){var S=C-u;t.setUTCMinutes(t.getUTCMinutes()+S)}}return t}function d(t,e){var i=new Date(t.toLocaleString("en-US",{timeZone:e}));return i}function f(t){var e=new Date;e.setHours(0,0,0,0);var i=d(e,t);return i.getMinutes()}},"84cf":function(t,e,i){"use strict";i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return p}));var n=i("daec"),r=i("1735"),a=i("0c2a"),s=i("916c"),o=i("6b83"),l=i("6e0f"),h=function(){function t(){var t=this;this.events=new n["a"],this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.deferred=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],"undefined"!==typeof addEventListener&&(addEventListener("beforeprint",(function(){l["d"](t.baseSprites,(function(t){var e=t.paper.svg;e.setAttribute("viewBox","0 0 "+e.clientWidth+" "+e.clientHeight)}))})),addEventListener("afterprint",(function(){l["d"](t.baseSprites,(function(t){var e=t.paper.svg;e.removeAttribute("viewBox")}))})))}return t.prototype.getUniqueId=function(){var t=this._uidCount;return this._uidCount+=1,"id-"+t},Object.defineProperty(t.prototype,"map",{get:function(){return this._map||(this._map=new r["a"]),this._map},enumerable:!0,configurable:!0}),t.prototype.setCache=function(t,e,i){a["a"].set(this.uid,t,e,i)},t.prototype.getCache=function(t,e){return void 0===e&&(e=void 0),a["a"].get(this.uid,t,e)},t.prototype.dispatch=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatch(t,{type:t,target:this})):this.events.dispatch(t,{type:t,target:this}))},t.prototype.dispatchImmediately=function(t,e){this.events.isEnabled(t)&&(e?(e.type=t,e.target=e.target||this,this.events.dispatchImmediately(t,e)):this.events.dispatchImmediately(t,{type:t,target:this}))},t.prototype.getPlaceholder=function(t){return s["d"](this._placeholders[t])||(this._placeholders[t]="__amcharts_"+t+"_"+o["b"](8)+"__"),this._placeholders[t]},t.prototype.addToInvalidComponents=function(t){t.baseId?l["m"](this.invalidDatas[t.baseId],t):l["m"](this.invalidDatas["noBase"],t)},t.prototype.removeFromInvalidComponents=function(t){t.baseId&&l["o"](this.invalidDatas[t.baseId],t),l["o"](this.invalidDatas["noBase"],t)},t.prototype.addToInvalidSprites=function(t){t.baseId?l["a"](this.invalidSprites[t.baseId],t):l["a"](this.invalidSprites["noBase"],t)},t.prototype.removeFromInvalidSprites=function(t){t.baseId&&l["o"](this.invalidSprites[t.baseId],t),l["o"](this.invalidSprites["noBase"],t)},t.prototype.addToInvalidPositions=function(t){t.baseId?l["a"](this.invalidPositions[t.baseId],t):l["a"](this.invalidPositions["noBase"],t)},t.prototype.removeFromInvalidPositions=function(t){t.baseId&&l["o"](this.invalidPositions[t.baseId],t),l["o"](this.invalidPositions["noBase"],t)},t.prototype.addToInvalidLayouts=function(t){t.baseId?l["a"](this.invalidLayouts[t.baseId],t):l["a"](this.invalidLayouts["noBase"],t)},t.prototype.removeFromInvalidLayouts=function(t){t.baseId&&l["o"](this.invalidLayouts[t.baseId],t),l["o"](this.invalidLayouts["noBase"],t)},t}(),u=new h;function p(t,e){var i=u.registeredClasses[e];return null!=i&&t instanceof i}},"877f":function(t,e,i){"use strict";i.d(e,"c",(function(){return h})),i.d(e,"d",(function(){return u})),i.d(e,"a",(function(){return g})),i.d(e,"b",(function(){return y}));var n=i("516a"),r=i("84cf"),a=i("77b1"),s=i("6e0f"),o=i("2082"),l=i("baa2"),h=function(){function t(t,e){this._tensionX=t,this._tensionY=e}return t.prototype.smooth=function(t){for(var e=t.length-1;e>0;e--){var i=t[e],n=t[e-1];Math.abs(i.x-n.x)<.1&&Math.abs(i.y-n.y)<.1&&t.splice(e-1,1)}var r=this._tensionX,s=this._tensionY;if(t.length<3||r>=1&&s>=1)return a["h"](t);var o=t[0],h=t[t.length-1],u=!1;l["E"](o.x,3)==l["E"](h.x)&&l["E"](o.y)==l["E"](h.y)&&(u=!0);for(var p="",c=(e=0,t.length-1);e0){var m=Math.atan2(f-c,d-p),b=Math.cos(m),v=Math.sin(m),x=i*b,_=i*v;if(i<=1||n<=1)y=a["f"](e);else{var P=Math.round(2*g/i),O=[],w=1;du)&&(a=l,n=h,r=u)}else"left"===i&&h=t&&(!o["d"](n)||n>=h)&&(a=l,n=h);return++l,!0})),-1===a&&("left"===i?a=0:"right"===i&&(a=this.length-1)),a},t.prototype.iterator=function(){return s["h"](this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return Object(n["d"])(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e=12?i.translate("PM"):i.translate("AM");break;case"aa":b=o>=12?i.translate("P.M."):i.translate("A.M.");break;case"aaa":b=o>=12?i.translate("P"):i.translate("A");break;case"h":b=h["m"](o).toString();break;case"hh":b=h["C"](h["m"](o),2,"0");break;case"H":b=o.toString();break;case"HH":b=h["C"](o,2,"0");break;case"K":b=h["m"](o,0).toString();break;case"KK":b=h["C"](h["m"](o,0),2,"0");break;case"k":b=(o+1).toString();break;case"kk":b=h["C"](o+1,2,"0");break;case"m":b=u.toString();break;case"mm":b=h["C"](u,2,"0");break;case"s":b=p.toString();break;case"ss":b=h["C"](p,2,"0");break;case"S":case"SS":case"SSS":b=Math.round(c/1e3*Math.pow(10,e.parts[y].length)).toString();break;case"x":b=g.toString();break;case"n":case"nn":case"nnn":b=h["C"](c,e.parts[y].length,"0");break;case"z":b=h["s"](t,!1,!1,this.utc);break;case"zz":b=h["s"](t,!0,!1,this.utc);break;case"zzz":b=h["s"](t,!1,!0,this.utc);break;case"zzzz":b=h["s"](t,!0,!0,this.utc);break;case"Z":case"ZZ":var x=Math.abs(f)/60,_=Math.floor(x),P=60*x-60*_;this.utc&&(_=0,P=0),"Z"==e.parts[y]?(b="GMT",b+=f>0?"-":"+",b+=h["C"](_,2)+":"+h["C"](P,2)):(b=f>0?"-":"+",b+=h["C"](_,2)+h["C"](P,2));break;case"i":b=t.toISOString();break;case"I":b=t.toUTCString();break}d=d.replace(l["d"],b)}return d},e.prototype.parse=function(t,e){if(u["d"](e)||(e=this.inputDateFormat),t instanceof Date)return t;if("number"===typeof t)return new Date(t);var i;"string"!==typeof t&&(t=t.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new r["a"]);var n="";e=h["d"](e),e=e.substr(0,t.length);for(var a=this.parseFormat(e),s={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},l=0,p=0,c=0;c-1&&(o.year=parseInt(f[s.year])),s.year3>-1){var g=parseInt(f[s.year3]);g+=1e3,o.year=g}if(s.year2>-1){g=parseInt(f[s.year2]);g+=g>50?1e3:2e3,o.year=g}if(s.year1>-1){g=parseInt(f[s.year1]);g=10*Math.floor((new Date).getFullYear()/10)+g,o.year=g}if(s.monthLong>-1&&(o.month=this.resolveMonth(f[s.monthLong])),s.monthShort>-1&&(o.month=this.resolveShortMonth(f[s.monthShort])),s.month>-1&&(o.month=parseInt(f[s.month])-1),s.week>-1&&-1===s.day&&(o.month=0,o.day=h["o"](parseInt(f[s.week]),o.year,1,this.utc)),s.day>-1&&(o.day=parseInt(f[s.day])),s.yearDay>-1&&(o.month=0,o.day=parseInt(f[s.yearDay])),s.hourBase0>-1&&(o.hour=parseInt(f[s.hourBase0])),s.hourBase1>-1&&(o.hour=parseInt(f[s.hourBase1])-1),s.hour12Base0>-1){g=parseInt(f[s.hour12Base0]);11==g&&(g=0),s.am>-1&&!this.isAm(f[s.am])&&(g+=12),o.hour=g}if(s.hour12Base1>-1){g=parseInt(f[s.hour12Base1]);12==g&&(g=0),s.am>-1&&!this.isAm(f[s.am])&&(g+=12),o.hour=g}if(s.minute>-1&&(o.minute=parseInt(f[s.minute])),s.second>-1&&(o.second=parseInt(f[s.second])),s.millisecond>-1){g=parseInt(f[s.millisecond]);2==s.millisecondDigits?g*=10:1==s.millisecondDigits&&(g*=100),o.millisecond=g}if(s.timestamp>-1){o.timestamp=parseInt(f[s.timestamp]);var y=new Date(o.timestamp);o.year=y.getUTCFullYear(),o.month=y.getUTCMonth(),o.day=y.getUTCDate(),o.hour=y.getUTCHours(),o.minute=y.getUTCMinutes(),o.second=y.getUTCSeconds(),o.millisecond=y.getUTCMilliseconds()}s.zone>-1&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),f[s.zone])),s.iso>-1&&(o.year=u["l"](f[s.iso+0]),o.month=u["l"](f[s.iso+1])-1,o.day=u["l"](f[s.iso+2]),o.hour=u["l"](f[s.iso+3]),o.minute=u["l"](f[s.iso+4]),o.second=u["l"](f[s.iso+5]),o.millisecond=u["l"](f[s.iso+6]),"Z"==f[s.iso+7]||"z"==f[s.iso+7]?o.utc=!0:""!=f[s.iso+7]&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),f[s.iso+7]))),i=o.utc?new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):new Date(o.year,o.month,o.day,o.hour,o.minute+o.offset,o.second,o.millisecond)}else i=new Date(t);return i},e.prototype.resolveTimezoneOffset=function(t,e){var i=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/);if(i){var n=u["b"](e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)),r=n[1],a=n[2],s=n[3],o=60*parseInt(a)+parseInt(s);"+"==r&&(o*=-1);var l=(t||new Date).getTimezoneOffset(),h=o-l;return h}return 0},e.prototype.resolveMonth=function(t){var e=this.months.indexOf(t);return e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.months).indexOf(t),e>-1)?e:0},e.prototype.resolveShortMonth=function(t){var e=this.monthsShort.indexOf(t);return e>-1?e:(e=this.months.indexOf(t),e>-1||this.language&&!this.language.isDefault()&&(e=this.language.translateAll(this.monthsShort).indexOf(t),e>-1)?e:0)},e.prototype.isAm=function(t){var e=this.getStringList(["AM","A.M.","A"]);return e.indexOf(t.toUpperCase())>-1},e.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},e.prototype.getStringList=function(t){for(var e=[],i=0;i0&&(l=n[a-1].replace("[","").replace("]","")),i+=this.wrap(o,l,e)}}return i=this.unescape(i),this.cleanUp(i)},e.prototype.escape=function(t){return t.replace(/\[\[/g,l["b"].getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g,"$1"+l["b"].getPlaceholder("2")).replace(/\]\]/g,l["b"].getPlaceholder("2")).replace(/\{\{/g,l["b"].getPlaceholder("3")).replace(/\}\}/g,l["b"].getPlaceholder("4")).replace(/\'\'/g,l["b"].getPlaceholder("5"))},e.prototype.unescape=function(t){return t.replace(new RegExp(l["b"].getPlaceholder("1"),"g"),"[[").replace(new RegExp(l["b"].getPlaceholder("2"),"g"),"]]").replace(new RegExp(l["b"].getPlaceholder("3"),"g"),"{{").replace(new RegExp(l["b"].getPlaceholder("4"),"g"),"}}").replace(new RegExp(l["b"].getPlaceholder("5"),"g"),"''")},e.prototype.cleanUp=function(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},e.prototype.wrap=function(t,e,i){switch(""!==e&&"/"!==e||(e=""),i){case"html":return this.wrapHtml(t,this.translateStyleShortcuts(e));default:return this.wrapSvg(t,this.translateStyleShortcuts(e))}},e.prototype.wrapSvg=function(t,e){return""===e?""+t+"":""+t+""},e.prototype.getSvgElement=function(t,e){var i=new s["a"]("tspan");return i.textContent=t,e&&i.node.setAttribute("style",e),i},e.prototype.wrapHtml=function(t,e){return""===e?""+t+"":""+t+""},e.prototype.getHtmlElement=function(t,e){var i=document.createElement("span");return i.innerHTML=t,e&&i.setAttribute("style",e),i},e.prototype.styleSvgToHtml=function(t){return t=t.replace(/fill:/,"color:"),t},e.prototype.translateStyleShortcuts=function(t){if(""==t||"[ ]"==t)return"";var e=l["b"].getCache("translateStyleShortcuts_"+t);if(e)return e;var i=t.match(/('[^']*')|("[^"]*")/gi);if(i)for(var n=0;n0&&n>0){var r=this.pointerX,s=this.pointerY,o=this.pointerBaseWidth/2,l=a["C"](i/2,n/2),h=a["i"](e,0,l),u=a["i"](e,0,l),p=a["i"](e,0,l),c=a["i"](e,0,l),d=0,f=0,g=i,y=0,m=i,b=n,v=0,x=n,_=void 0,P=void 0,O=void 0,w=void 0,C=(r-d)*(b-f)-(s-f)*(m-d),S=(r-v)*(y-x)-(s-x)*(g-v);if(C>0&&S>0){var k=a["i"](r,h+o,i-o-u);s=a["i"](s,-1/0,0),_="M"+h+",0 L"+(k-o)+",0 L"+r+","+s+" L"+(k+o)+",0 L"+(i-u)+",0"}else _="M"+h+",0 L"+(i-u)+",0";if(C<0&&S<0){k=a["i"](r,c+o,i-o-p);s=a["i"](s,n,1/0),O=" L"+(i-p)+","+n+" L"+(k+o)+","+n+" L"+r+","+s+" L"+(k-o)+","+n+" L"+c+","+n}else O=" L"+c+","+n;if(C<0&&S>0){var I=a["i"](s,h+o,n-c-o);r=a["i"](r,-1/0,0),w=" L0,"+(n-c)+" L0,"+(I+o)+" L"+r+","+s+" L0,"+(I-o)+" L0,"+h}else w=" L0,"+h;if(C>0&&S<0){I=a["i"](s,u+o,n-o-p);r=a["i"](r,i,1/0),P=" L"+i+","+u+" L"+i+","+(I-o)+" L"+r+","+s+" L"+i+","+(I+o)+" L"+i+","+(n-p)}else P=" L"+i+","+(n-p);var D=" a"+u+","+u+" 0 0 1 "+u+","+u,T=" a"+p+","+p+" 0 0 1 -"+p+","+p,j=" a"+c+","+c+" 0 0 1 -"+c+",-"+c,A=" a"+h+","+h+" 0 0 1 "+h+",-"+h;this.path=_+D+P+T+O+j+w+A}},Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(r["a"])},"9ca1":function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("b08e"),r=i("6aa1"),a=i("a357"),s=i("457a"),o=i("6e0f"),l=function(){function t(){this.adapter=new a["a"](this)}return t.prototype.load=function(t){var e=Array.isArray(t)?t:[t],i=o["l"](e,(function(t){return t.dispatchImmediately("started"),t.dispatchImmediately("loadstarted"),s["a"](t.url,t,t.requestOptions)}));Promise.all(i).then((function(t){o["d"](t,(function(t){var e=t.target;e.dispatchImmediately("loadended"),t.error?e.events.isEnabled("error")&&e.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:e.language.translate("Unable to load file: %1",null,e.url),target:e}):e.processData(t.response,t.type),e.dispatchImmediately("ended")}))})).catch((function(t){t.target&&(t.target.dispatchImmediately("loadended"),t.target.events.isEnabled("error")&&t.target.events.dispatchImmediately("error",{type:"error",code:t.xhr.status,message:t.target.language.translate("Unable to load file: %1",null,t.target.url),target:t.target}),t.target.dispatchImmediately("ended"))}))},t.prototype.getParserByType=function(t){var e=this.adapter.apply("getParserByType",{parser:null,type:t}).parser;return e||("csv"==t||"text/csv"==t||"application/vnd.ms-excel"==t?new n["a"]:"json"==t||"application/json"==t?new r["a"]:void 0)},t.prototype.getParserByData=function(t,e){var i=this.adapter.apply("getParserByData",{parser:null,data:t,type:e}).parser;if(!i){if(i=this.getParserByType(e),i)return i;if(r["a"].isJSON(t))return this.getParserByType("json");if(n["a"].isCSV(t))return this.getParserByType("csv")}return i},t}(),h=new l},"9fe8":function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("516a"),r=i("be33"),a=i("028d"),s=i("d948"),o=i("c125"),l=i("84cf"),h=function(t){function e(){var e=t.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var i=new o["a"],n=e.background;n.fill=i.getFor("secondaryButton"),n.stroke=i.getFor("secondaryButtonStroke"),n.fillOpacity=1,n.strokeOpacity=1,n.cornerRadius(3,3,3,3),e.label=new a["a"],e.label.fill=i.getFor("secondaryButtonText"),e.label.shouldClone=!1;var r=n.states.create("hover");r.properties.fillOpacity=1,r.properties.fill=i.getFor("secondaryButtonHover");var s=n.states.create("down");return s.transitionDuration=100,s.properties.fill=i.getFor("secondaryButtonDown"),s.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"icon",{get:function(){return this._icon},set:function(t){var e=this._icon;e&&(e.parent=void 0),t&&(this._icon=t,t.parent=this,t.interactionsEnabled=!1,t.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(t){this.setPropertyValue("iconPosition",t),this.icon&&("left"==t?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(t){this._label&&this.removeDispose(this._label),this._label=t,t&&(t.parent=this,t.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new s["a"]},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},e}(r["a"]);l["b"].registeredClasses["Button"]=h},a0dd:function(t,e,i){"use strict";i.d(e,"g",(function(){return a})),i.d(e,"i",(function(){return l})),i.d(e,"e",(function(){return h})),i.d(e,"d",(function(){return u})),i.d(e,"f",(function(){return p})),i.d(e,"j",(function(){return c})),i.d(e,"a",(function(){return d})),i.d(e,"c",(function(){return f})),i.d(e,"h",(function(){return g})),i.d(e,"b",(function(){return y}));var n=i("6e0f"),r=i("916c");function a(t){return function(e){for(var i in t)if(l(t,i)&&!e([i,t[i]]))break}}function s(t){var e=[];for(var i in t)l(t,i)&&e.push(i);return e}function o(t,e){return s(t).sort(e)}function l(t,e){return{}.hasOwnProperty.call(t,e)}function h(t,e){for(var i in t)if(l(t,i)&&!e(i,t[i]))break}function u(t,e){h(t,(function(t,i){return e(t,i),!0}))}function p(t,e,i){n["d"](o(t,i),(function(i){e(i,t[i])}))}function c(t,e){return Object.assign({},t,e)}function d(t){return JSON.parse(JSON.stringify(t))}function f(t,e,i){n["d"](i,(function(i){r["d"](t[i])&&(e[i]=t[i])}))}function g(t,e,i){n["d"](i,(function(i){e[i]=t[i]}))}function y(t,e){f(t,e,s(t))}},a281:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("516a"),r=i("0344"),a=i("a357"),s=function(t){function e(){var e=t.call(this)||this;return e.adapter=new a["a"](e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return Object(n["c"])(e,t),e}(r["a"])},a357:function(t,e,i){"use strict";i.d(e,"b",(function(){return p})),i.d(e,"a",(function(){return c}));var n=i("8a06"),r=i("f936"),a=i("f942"),s=i("0357"),o=i("6e0f"),l=i("916c"),h=i("a0dd"),u=function(){function t(){this._callbackId=0,this._callbacks=new n["b"]((function(t,e){return a["a"](r["a"](t.priority,e.priority),r["a"](t.id,e.id))}))}return t.prototype.addAll=function(t,e,i,n,r){void 0===n&&(n=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:i,priority:n,scope:r,type:t})},t.prototype.isEnabled=function(t,e){return o["b"](this._callbacks.values,(function(i){return i.key===e&&t instanceof i.type}))},t.prototype.applyAll=function(t,e,i){var n=this._callbacks.values,r=n.length;if(0==r)return i;for(var a=0;a0)for(var r=0;r0},enumerable:!0,configurable:!0}),t.prototype.maybeToNumber=function(t,e){return-1!==this.options.numberFields.indexOf(t)?r["b"](e):e},Object.defineProperty(t.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),t.prototype.maybeToDate=function(t,e){return-1!==this.options.dateFields.indexOf(t)?this.options.dateFormatter.parse(e,this.dateFormat):e},t.prototype.maybeToEmpty=function(t){return a["d"](t)&&""!=t||!a["d"](this.options.emptyAs)?t:this.options.emptyAs},Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new n["a"],this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),t}()},ab0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return f}));var n=i("516a"),r=i("1ebf"),a=i("84cf"),s=i("a357"),o=i("f2c0"),l=i("03d5"),h=i("2b87"),u=i("2082"),p=i("ec03"),c=i("a0dd"),d=i("916c"),f=function(t){function e(){var e=t.call(this)||this;return e.transitionDuration=0,e.transitionEasing=p["cubicOut"],e.properties={},e.propertyFields={},e.filters=new o["a"],e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new o["b"](e.filters)),e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"adapter",{get:function(){var t=this;return this._adapterO||(this._adapterO=new s["a"](this),this._adapterO.events.on("inserted",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1),this._adapterO.events.on("removed",(function(e){t[e.newValue.key]=t[e.newValue.key]}),void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),e.prototype.getPropertyValue=function(t){var e=this.properties[t],i=this.sprite;if(i){var n=this.propertyFields[t];if(d["d"](n)&&(i.dataItem&&(e=i.dataItem.dataContext[n]),void 0==e&&(e="__unset")),d["d"](e))this._adapterO&&(e=this._adapterO.apply(t,e));else{var r=i.getPropertyValue(t);e=this._adapterO?this._adapterO.apply(t,r):r,e==r&&(e=void 0)}}return e},e.prototype.copyFrom=function(t){t&&t!=this&&(this.transitionDuration=t.transitionDuration,this.transitionEasing=t.transitionEasing,u["f"](t.properties,this.properties),u["f"](t.propertyFields,this.propertyFields),this.filters.copyFrom(t.filters),t._adapterO&&this.adapter.copyFrom(t._adapterO))},Object.defineProperty(e.prototype,"allValues",{get:function(){var t=this,e={};if(c["d"](this.properties,(function(i,n){e[i]=t.getPropertyValue(i)})),this._adapterO){var i=this._adapterO.keys();c["d"](i,(function(i,n){var r=t.getPropertyValue(n);e[n]=r}))}var n=this.propertyFields;return c["d"](n,(function(i){var n=t.getPropertyValue(i);e[i]=n})),e},enumerable:!0,configurable:!0}),e.prototype.reset=function(){this.properties={},this.filters.clear()},e.prototype.processConfig=function(e){d["d"](e)&&d["d"](e["properties"])&&c["d"](e["properties"],(function(t,i){d["j"](i)&&(i.match(/^[0-9.\-]+\%$/)?e["properties"][t]=Object(h["c"])(d["l"](i)):i.match(/^\#[0-9abcdef]{3,}$/i)&&(e["properties"][t]=Object(l["c"])(i)))})),t.prototype.processConfig.call(this,e)},e.prototype.asFunction=function(e){return"transitionEasing"==e||t.prototype.asIs.call(this,e)},e}(r["a"]);a["b"].registeredClasses["SpriteState"]=f},ade4:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("516a"),r=i("3ac2"),a=i("03d5"),s=i("84cf"),o=function(t){function e(){var e=t.call(this)||this;return e.className="DropShadowFilter",e.color=Object(a["b"])("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.properties.color=t,this.feFlood&&this.feFlood.attr({"flood-color":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(t){this.properties.opacity=t,this.feFlood.attr({"flood-opacity":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx",{get:function(){return this.properties.dx},set:function(t){this.properties.dx=t,this.feOffset.attr({dx:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy",{get:function(){return this.properties.dy},set:function(t){this.properties.dy=t,this.feOffset.attr({dy:t/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blur",{get:function(){return this.properties.blur},set:function(t){this.properties.blur=t,this.feGaussianBlur.attr({stdDeviation:t/this.scale})},enumerable:!0,configurable:!0}),e.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},e}(r["a"]);s["b"].registeredClasses["DropShadowFilter"]=o},b08e:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("516a"),r=i("aa5d"),a=i("916c"),s=i("6e0f"),o=[",",";","\t"],l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return Object(n["c"])(e,t),e.isCSV=function(t){return!!e.getDelimiterFromData(t)},e.getDelimiterFromData=function(t){var e,i=t.split("\n"),n=i.length;return s["d"](o,(function(t){for(var r=0,a=0,s=0;s1)){a=0;break}if(0===a)a=r;else if(r!=a){a=0;break}}a&&(e=t)})),e},e.prototype.parse=function(t){this.options.delimiter||(this.options.delimiter=e.getDelimiterFromData(t));var i,n,r,s=this.CSVToArray(t,this.options.delimiter),o=a["d"](this.options.emptyAs),l=this.parsableNumbers,h=this.parsableDates,u=[],p=[];for(n=0;ni&&(t=i),t}function c(t){return h(Math.sin(s*t),10)}function d(t){return h(Math.tan(s*t),10)}function f(t){return h(Math.cos(s*t),10)}function g(t,e){return n["h"](t)?n["h"](e)&&e>t?e:t:n["h"](e)?e:null}function y(t,e){return n["h"](t)?n["h"](e)&&e0)for(var o=0;o<=r;o++){var l=j(t,e,i,n,o/r);a+=_(s,l),s=l}return a}function C(t,e,i,n){var r=_(e,n),a=_(t,i);return Math.abs(a/r)}function S(t,e,i){return n["h"](i)||(i=.5),{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function k(t,e){e||(e={x:2*t.x,y:2*t.y});var i=e.x-t.x,n=e.y-t.y,r=Math.atan2(n,i)*o;return r<0&&(r+=360),M(r)}function I(t){if(t){var e=t.length;if(0!==e){for(var i,r=void 0,a=void 0,s=void 0,o=0;oa)&&(a=l.x),(!n["h"](r)||l.xs)&&(s=l.y)}return{x:r,y:i,width:a-r,height:s-i}}}return{x:0,y:0,width:0,height:0}}function D(t){var e=t.length;if(0!==e){for(var i=void 0,n=void 0,r=void 0,a=void 0,s=0;si){var n=e;e=i,i=n}t=M(t);var r=(e-M(e))/360;ti&&(t-360>e?t-=360:t=ts?e:i),t}function L(t,e,i){var r=Number.MAX_VALUE,a=Number.MAX_VALUE,s=-Number.MAX_VALUE,o=-Number.MAX_VALUE,l=[];n["h"](i)||(i=1),l.push(R(i,t)),l.push(R(i,e));for(var h=Math.min(90*Math.floor(t/90),90*Math.floor(e/90)),u=Math.max(90*Math.ceil(t/90),90*Math.ceil(e/90)),p=h;p<=u;p+=90)p>=t&&p<=e&&l.push(R(i,p));for(var c=0;cs&&(s=d.x),d.y>o&&(o=d.y)}return{x:r,y:a,width:s-r,height:o-a}}function R(t,e){return{x:t*f(e),y:t*c(e)}}function B(t,e){return t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}},be33:function(t,e,i){"use strict";i.d(e,"a",(function(){return _}));var n=i("516a"),r=i("5d2f"),a=i("ab0d"),s=i("f2c0"),o=i("07a8"),l=i("1735"),h=i("e243"),u=i("db37"),p=i("2b87"),c=i("84cf"),d=i("c125"),f=i("0357"),g=i("6e0f"),y=i("baa2"),m=i("916c"),b=i("5134"),v=i("72b5"),x=i("5290"),_=function(t){function e(){var e=t.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new l["a"],e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new l["b"](e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.handleChildAdded=function(t){this.processChild(t.newValue)},e.prototype.processChild=function(t){try{this._childrenDisposers.insertKey(t.uid,new o["c"]([t.events.on("transformed",this.handleChildTransform,this),t.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch(i){}if(this.element){var e=this.element;e.add(t.group)}t.parent=this,t.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:t}),this.invalidate()},e.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},e.prototype.handleChildRemoved=function(t){var e=t.oldValue;if(this._childrenDisposers.removeKey(e.uid),this.element){var i=this.element;i.removeElement(e.group)}e.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:e})},e.prototype.handleChildTransform=function(t){var e=t.target;e.isMeasured&&this.invalidateLayout()},e.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||(this.layoutInvalid=!0,c["b"].addToInvalidLayouts(this),v["a"].requestFrame())},e.prototype.invalidate=function(){t.prototype.invalidate.call(this),this.invalidateLayout()},e.prototype.deepInvalidate=function(){t.prototype.invalidate.call(this),g["d"](this._childrenByLayout,(function(t){t instanceof e?t.deepInvalidate():t.invalidate()})),this.invalidateLayout()},Object.defineProperty(e.prototype,"children",{get:function(){return this._children||(this._children=new s["a"]),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(t){this.setPropertyValue("minWidth",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(t){this.setPropertyValue("minHeight",t)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),e.prototype.removeElement=function(){},e.prototype.sortChildren=function(){var t=this;if(this._childrenByLayout=[],"none"!=this.layout&&"absolute"!=this.layout&&this.layout){var e=[],i=[];f["d"](this.children.iterator(),(function(n){"horizontal"==t.layout||"grid"==t.layout?m["h"](n.percentWidth)?i.push(n):e.push(n):"vertical"==t.layout&&m["h"](n.percentHeight)?i.push(n):e.push(n)})),this._childrenByLayout=e.concat(i)}else this._childrenByLayout=this.children.values;this.calculateRelativeSize()},e.prototype.calculateRelativeSize=function(){var t=this,e=0,i=0;g["d"](this._childrenByLayout,(function(t){t.isMeasured&&(m["h"](t.percentWidth)&&(e+=t.percentWidth),m["h"](t.percentHeight)&&(i+=t.percentHeight))})),g["d"](this._childrenByLayout,(function(n){n.isMeasured&&("horizontal"==t.layout&&(m["h"](n.percentWidth)&&(n.relativeWidth=n.percentWidth/e),m["h"](n.percentHeight)&&(n.relativeHeight=n.percentHeight/100)),"vertical"==t.layout&&(m["h"](n.percentHeight)&&(n.relativeHeight=n.percentHeight/i),m["h"](n.percentWidth)&&(n.relativeWidth=n.percentWidth/100)),"grid"==t.layout&&(m["h"](n.percentHeight)&&(n.relativeHeight=n.percentHeight/100),m["h"](n.percentWidth)&&(n.relativeWidth=n.percentWidth/100))),"absolute"!=t.layout&&n.isMeasured||(m["h"](n.percentWidth)&&(n.relativeWidth=n.percentWidth/100),m["h"](n.percentHeight)&&(n.relativeHeight=n.percentHeight/100))}))},e.prototype.addChildren=function(){if(this.element){var t=g["c"](this.children.values),e=t.map((function(t,e){return{idx:e,data:t}}));e.sort((function(t,e){var i=t.data.zIndex||0,n=e.data.zIndex||0;return in?1:t.idx-e.idx})),t=e.map((function(t){return t.data}));var i=this.element,n=!0;if(i.node&&i.node.childNodes)for(var r=0,a=i.node.childNodes.length;r0){var t=this.children.getIndex(0);t.parent=void 0,this.children.removeValue(t)}},e.prototype.disposeChildren=function(){while(this.children.length>0){var t=this.children.getIndex(0);t.dispose(),this.children.removeValue(t)}},Object.defineProperty(e.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(t){this._background&&this.background!=t&&this.removeDispose(this._background),t&&(this._background=t,this._disposers.push(t),this.processBackground())},enumerable:!0,configurable:!0}),e.prototype.handleGlobalScale=function(){t.prototype.handleGlobalScale.call(this),this.children.each((function(t){t.handleGlobalScale()}))},e.prototype.createBackground=function(){return new u["a"]},e.prototype.processBackground=function(){var t=this._background;t&&(t.isMeasured=!1,this._background.fill=(new d["a"]).getFor("background"),t.parent=this,t.isMeasured=!1,this.children.removeValue(t),this._disposers.push(t),this.group.addToBack(this._background.group))},e.prototype.validateLayout=function(){var t=this;c["b"].removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var e=0,i=0,n=!0;this.children&&(this.sortChildren(),g["d"](this._childrenByLayout,(function(r){var a,s;if(m["h"](r.relativeWidth)?(a=y["E"](t._availableWidth*r.relativeWidth,2),"horizontal"==t.layout&&(a-=r.pixelMarginRight+r.pixelMarginLeft)):"horizontal"==t.layout&&r.invalid&&r.validate(),m["h"](r.relativeHeight)?(s=y["E"](t._availableHeight*r.relativeHeight,2),"vertical"==t.layout&&(s-=r.pixelMarginTop+r.pixelMarginBottom)):"vertical"==t.layout&&r.invalid&&r.validate(),0==r.invalid){if(m["h"](r.relativeWidth)&&(r.maxWidth=a),m["h"](r.relativeHeight)&&(r.maxHeight=s),r.isMeasured){"horizontal"==t.layout&&(m["h"](r.percentWidth)||r.measuredWidth>0&&(t._availableWidth-=r.measuredWidth+r.pixelMarginLeft+r.pixelMarginRight)),"vertical"==t.layout&&(m["h"](r.percentHeight)||r.measuredHeight>0&&(t._availableHeight-=r.measuredHeight+r.pixelMarginTop+r.pixelMarginBottom));var o=r.measuredWidth,l=r.measuredHeight;"none"!=r.align&&(o+=r.pixelMarginLeft+r.pixelMarginRight),"none"!=r.valign&&(l+=r.pixelMarginTop+r.pixelMarginBottom),e=Math.max(e,o),i=Math.max(i,l)}}else r.isMeasured&&(m["h"](r.relativeWidth)&&r.maxWidth!=a&&(r.maxWidth=a,n=!1),m["h"](r.relativeHeight)&&r.maxHeight!=s&&(r.maxHeight=s,n=!1))}))),this._absoluteWidth=e,this._absoluteHeight=i,n&&this.arrange()},e.prototype.arrange=function(){var t,e,i,n,r,a,s,o,l,h,u,c=this,d=this.children,b=0,v=0,x=y["B"](this.innerWidth,this._absoluteWidth),_=y["B"](this.innerHeight,this._absoluteHeight),P=this.pixelPaddingLeft,O=this.pixelPaddingRight,w=this.pixelPaddingTop,C=this.pixelPaddingBottom,S=0,k=0,I=0,D=0,T=[],j=[],A=this.maxWidth,F=this.maxHeight,V=this.minWidth,M=this.minHeight,E=g["c"](d.values);if(this.reverseOrder&&E.reverse(),"grid"==this.layout){a=A,r=1;for(var L=0,R=E.length;Lr&&(r=H)}}a=y["i"](a,1,A),r=y["i"](r,1,A),s=this.fixedWidthGrid?A/r:A/a,s=y["B"](1,Math.floor(s)),s=y["C"](this.maxColumns,s),T=this.getColumnWidth(E,s,r)}for(L=0,R=E.length;Ly["C"](this.innerWidth,A)-Q+1&&D=s&&(D=0,k+=j[I],I++,S=0);break}"none"!==this.layout&&(B.moveTo({x:W,y:N}),q=W+B.maxLeft-Y,Z=W+B.maxRight+X,J=N+B.maxTop-z,$=N+B.maxBottom+U,(Z>e||!m["h"](e))&&(e=Z),(qn||!m["h"](n))&&(n=$),(Z>l||!m["h"](l))&&(l=Z),(qu||!m["h"](u))&&(u=u))}}if("none"==this.layout){var tt=this.bbox;t=tt.x,e=tt.x+tt.width,i=tt.y,n=tt.y+tt.height}m["h"](t)||(t=0,o=0),m["h"](e)||(e=this._availableWidth,l=e),m["h"](i)||(i=0,h=0),m["h"](n)||(n=this._availableHeight,u=n),m["h"](h)||(h=0),m["h"](u)||(u=h),m["h"](o)||(o=0),m["h"](l)||(l=o),b=e-t,v=n-i,m["h"](this.relativeWidth)&&(b=A-P-O,t=0,e=b),m["h"](this.relativeHeight)&&(v=F-w-C,i=0,n=v),m["h"](this._pixelWidth)&&(t=0,b=this._pixelWidth-P-O),m["h"](V)&&b0){var nt,rt,at=b,st=v;at=-n&&e<=this.pixelWidth+n&&i>=-n&&i<=this.pixelHeight+n},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),f["d"](e.children.iterator(),(function(t){if(t.shouldClone){var e=t.clone();e.parent=i}}))},Object.defineProperty(e.prototype,"preloader",{get:function(){var t=this._preloader;return t||(this.parent?this.parent.preloader:void 0)},set:function(t){this._preloader&&this.removeDispose(this._preloader),this._preloader=t,t&&(t.parent=this.tooltipContainer,this._disposers.push(t))},enumerable:!0,configurable:!0}),e.prototype.setPaper=function(e){var i=this,n=t.prototype.setPaper.call(this,e);return n&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each((function(t){t.setPaper(e),t.topParent=i.topParent}))),n},e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),c["b"].removeFromInvalidLayouts(this)},e.prototype.setDataItem=function(e){this._dataItem!=e&&(f["d"](this.children.iterator(),(function(t){t.dataItem=e})),this._background&&(this._background.dataItem=e)),t.prototype.setDataItem.call(this,e)},e.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(t){this.setPropertyValue("fontFamily",t,!0)&&(this.setSVGAttribute({"font-family":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(t){this.setPropertyValue("fontSize",t,!0)&&(this.setSVGAttribute({"font-size":t}),this.invalidateLabels())},enumerable:!0,configurable:!0}),e.prototype.invalidateLabels=function(){this.children.each((function(t){t["hardInvalidate"]?(t["hardInvalidate"](),t.events.once("validated",t.handleValidate,t,!1)):t instanceof e&&t.invalidateLabels()}))},Object.defineProperty(e.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(t){this.setPropertyValue("fontWeight",t),this.setSVGAttribute({"font-weight":t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(t){this.setPropertyValue("textDecoration",t),this.setSVGAttribute({"text-decoration":t})},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),t.prototype.dispose.call(this)},e.prototype.setState=function(e,i,n){var r=e;return e instanceof a["a"]&&(r=e.name),this.setStateOnChildren&&f["d"](this.children.iterator(),(function(t){t.setState(r,i,n),"active"!=r&&(t.isActive=!1)})),this._background&&this._background.setState(r),this.setStateOnSprites.length&&g["d"](this.setStateOnSprites,(function(t){t.setState(r,i,n)})),t.prototype.setState.call(this,e,i,n)},e.prototype.setActive=function(e){t.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},e.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var i=!0;f["e"](this.children.iterator(),(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),g["e"](this._shouldBeReady,(function(t){return!!(t.__disabled||t.disabled||t.isReady())||(i=!1,!1)})),i?t.prototype.dispatchReady.call(this):c["b"].events.once("exitframe",(function(){e.dispatchReady(),v["a"].requestFrame()}),void 0,!1)}},e.prototype._systemUpdate=function(e){this.children.each((function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))})),t.prototype._systemUpdate.call(this,e)},e.prototype._systemValidatePositions=function(){this.children.each((function(t){t.positionInvalid&&t.validatePosition()})),t.prototype._systemValidatePositions.call(this)},e.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(e.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(t){this._tapToActivate!=t&&this.setTapToActivate(t)},enumerable:!0,configurable:!0}),e.prototype.setTapToActivate=function(t){var e=this;this._tapToActivate=t,this.interactions.isTouchProtected=t,t&&this.interactions.setEventDisposer("container-tapToActivate",t,(function(){return new o["c"]([e.events.on("hit",e.handleTapToActivate,e,!1),e.events.on("down",e.initTapTimeout,e,!1),e.events.on("track",e.initTapTimeout,e,!1),Object(h["a"])().body.events.on("down",(function(t){Object(h["a"])().isLocalElement(t.pointer,e.paper.svg,e.uid)||e.handleTapToActivateDeactivation()}),e,!1)])})),Object(h["a"])()},e.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},e.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},e.prototype.initTapTimeout=function(){var t=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout((function(){t.handleTapToActivateDeactivation()}),this.tapTimeout))},e.prototype.moveHtmlContainer=function(t){var e=b["n"](t);if(e){this.htmlContainer=e;var i=this.svgContainer;i.htmlElement=e,i.htmlElement.appendChild(i.SVGContainer),i.initSensor(),i.measure()}else m["j"](t)&&""!=t&&v["a"].log("html container '"+t+"' not found")},e.prototype.hasLicense=function(){if(x["a"].commercialLicense)return!0;for(var t=0;t0)this.data.shift(),e--;this.invalidateData()},e.prototype.removeData=function(t,e){if(x["h"](t)&&t>0){while(t>0){var i=this.mainDataSet.getIndex(0);i&&this.mainDataSet.remove(i),this.dataUsers.each((function(t){if(!t.data||0==t.data.length){var e=t.mainDataSet.getIndex(0);e&&t.mainDataSet.remove(e)}})),e||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,t--}this.invalidateDataItems()}},e.prototype.invalidateData=function(){this.disabled||this.isTemplate||(d["b"].addToInvalidComponents(this),p["a"].requestFrame(),this.dataInvalid=!0,b["d"](this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataUsers=function(){b["d"](this.dataUsers.iterator(),(function(t){t.invalidate()}))},e.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(g["m"](d["b"].invalidDataItems,this),p["a"].requestFrame(),this.dataItemsInvalid=!0,b["d"](this.dataUsers.iterator(),(function(t){t.invalidateDataItems()})))},e.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,g["m"](d["b"].invalidDataRange,this),p["a"].requestFrame())},e.prototype.validateDataRange=function(){g["o"](d["b"].invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},e.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},e.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},e.prototype.appendDataItems=function(){for(var t=this.endIndex,e=this.startIndex;e0&&this.disposeData(),this.data.length>0){var e=this.preloader;b["d"](this.dataUsers.iterator(),(function(t){t._startIndex=void 0,t._endIndex=void 0}));var i=0,n=Date.now(),r=this._parseDataFrom,a=this.data.length,s=function(){var t=o.data[r];if(o._usesData){var a=o.getDataItem(t);o.processDataItem(a,t)}if(o.dataUsers.each((function(e){if(0==e.data.length){var i=e.getDataItem(t);e.processDataItem(i,t)}})),i++,100==i){i=0;var s=Date.now()-n;if(s>o.parsingStepDuration&&r.5&&!e.visible||(e.progress=r/o.data.length)),o.dataValidationProgress=r/o.data.length,r=o.data.length,o.invalidateData(),{value:void 0}}},o=this;for(r;r0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},e.prototype.getDataSource=function(t){var e=this;return x["d"](this._dataSources[t])||(this._dataSources[t]=new h["a"],this._dataSources[t].component=this,this.setDataSourceEvents(this._dataSources[t],t),this._dataSources[t].adapter.add("dateFields",(function(t){return e.dataSourceDateFields(t)})),this._dataSources[t].adapter.add("numberFields",(function(t){return e.dataSourceNumberFields(t)})),this.events.on("inited",(function(){e.loadData(t)}),this,!1)),this._dataSources[t]},Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSources["data"]||this.getDataSource("data"),this._dataSources["data"]},set:function(t){var e=this;this._dataSources["data"]&&this.removeDispose(this._dataSources["data"]),this._dataSources["data"]=t,this._dataSources["data"].component=this,this.events.on("inited",(function(){e.loadData("data")}),this,!1),this.setDataSourceEvents(t,"data")},enumerable:!0,configurable:!0}),e.prototype.loadData=function(t){this._dataSources[t].load()},e.prototype.dataSourceDateFields=function(t){return t},e.prototype.dataSourceNumberFields=function(t){return t},e.prototype.populateDataSourceFields=function(t,e,i){return g["d"](i,(function(i){e[i]&&-1===g["i"](t,e[i])&&t.push(e[i])})),t},e.prototype.setDataSourceEvents=function(t,e){var i=this;t.events.on("started",(function(t){var e=i.preloader;e&&(e.progress=0)}),void 0,!1),t.events.on("loadstarted",(function(t){var e=i.preloader;e&&(e.progress=.25)}),void 0,!1),t.events.on("loadended",(function(t){var e=i.preloader;e&&(e.progress=.5)}),void 0,!1),t.events.on("parseended",(function(t){var e=i.preloader;e&&(e.progress=.75)}),void 0,!1),t.events.on("ended",(function(t){var e=i.preloader;e&&(e.progress=1)}),void 0,!1),t.events.on("error",(function(t){var e=i.preloader;e&&(e.progress=1),i.openModal(t.message)}),void 0,!1),e&&t.events.on("done",(function(n){var r=i.preloader;r&&(r.progress=1),"data"!=e||x["e"](n.data)||(n.data=[n.data]),t.incremental&&"data"==e&&i.data.length?i.addData(n.data,t.keepCount?n.data.length:0):t.updateCurrentData&&"data"==e&&i.data.length?(g["d"](i.data,(function(t,e){x["d"](n.data[e])&&v["d"](t,(function(i,r){x["d"](n.data[e][i])&&(t[i]=n.data[e][i])}))})),i.invalidateRawData()):i[e]=n.data}))},Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new u["a"],this._responsive.component=this),this._responsive},set:function(t){this._responsive=t,this._responsive.component=this},enumerable:!0,configurable:!0}),e.prototype.zoom=function(t,e,i,n){var r=this;void 0===e&&(e=!1),void 0===i&&(i=!1);var a=t.start,s=t.end,o=t.priority;if(t.start==t.end&&(t.start=t.start-.5/this.maxZoomFactor,t.end=t.end+.5/this.maxZoomFactor),"end"==o&&1==s&&0!=a&&athis.end&&(o="end"),x["h"](n)||(n=this.maxZoomDeclination),!x["h"](a)||!x["h"](s))return{start:this.start,end:this.end};if(this._finalStart!=a||this._finalEnd!=s){var l=this.maxZoomFactor/this.minZoomCount,h=this.maxZoomFactor/this.maxZoomCount;if("start"==o?(this.maxZoomCount>0&&1/(s-a)l&&(s=a+1/l),s>1&&s-a<1/l&&(a=s-1/l)):(this.maxZoomCount>0&&1/(s-a)l&&(a<=0?s=a+1/l:a=s-1/l),a<0&&s-a<1/l&&(s=a+1/l)),a<-n&&(a=-n),1/(s-a)>l&&(s=a+1/l),s>1+n&&(s=1+n),1/(s-a)>l&&(a=s-1/l),this._finalEnd=s,this._finalStart=a,this.skipRangeEvent=e,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!i){var u=this.rangeChangeAnimation;if(u&&u.progress<1){var p=u.animationOptions;if(p.length>1){if(p[0].to==a&&p[1].to==s)return{start:a,end:s};u.isDisposed()||u.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),u=this.animate([{property:"start",to:a},{property:"end",to:s}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=u,u&&!u.isFinished()?u.events.on("animationended",(function(){r.dispatchImmediately("rangechangeended")})):this.dispatchImmediately("rangechangeended")}else this.start=a,this.end=s,this.dispatch("rangechangeended")}return{start:a,end:s}},e.prototype.zoomToIndexes=function(t,e,i,n){if(x["h"](t)&&x["h"](e)){var r=t/this.dataItems.length,a=e/this.dataItems.length;this.zoom({start:r,end:a},i,n)}},Object.defineProperty(e.prototype,"zoomFactor",{get:function(){return f["i"](1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(t){this.setPropertyValue("maxZoomFactor",t)&&(1==t&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(t){this.setPropertyValue("maxZoomDeclination",t)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startIndex",{get:function(){return x["h"](this._startIndex)||(this._startIndex=0),this._startIndex},set:function(t){this._startIndex=f["i"](Math.round(t),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),e.prototype.indexToPosition=function(t){return t/this.dataItems.length},Object.defineProperty(e.prototype,"endIndex",{get:function(){var t=this.dataItems.length;return(!x["h"](this._endIndex)||this._endIndex>t)&&(this._endIndex=t),this._endIndex},set:function(t){this._endIndex=f["i"](Math.round(t),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(t){if(this._start!=t){this._start=t;var e=Math.max(0,Math.floor(this.dataItems.length*t)||0);this._startIndex=Math.min(e,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(t){this._end!=t&&(this._end=t,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*t)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),e.prototype.removeFromInvalids=function(){t.prototype.removeFromInvalids.call(this),d["b"].removeFromInvalidComponents(this),g["o"](d["b"].invalidDataItems,this),g["o"](d["b"].invalidDataRange,this),g["o"](d["b"].invalidRawDatas,this)},Object.defineProperty(e.prototype,"dataItems",{get:function(){if(""!=this._currentDataSetId){var t=this.dataSets.getKey(this._currentDataSetId);if(t)return t}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new o["a"]),this._dataSets},enumerable:!0,configurable:!0}),e.prototype.setDataSet=function(t){if(this._currentDataSetId!=t){var e=this.dataSets.getKey(t);if(e)return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId=t,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0;if(""!=this._currentDataSetId)return this.dataItems.each((function(t){t.__disabled=!0})),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(t){t.__disabled=!1})),!0}return!1},Object.defineProperty(e.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),e.prototype._updateDataItemIndexes=function(t){for(var e=this.mainDataSet.values,i=e.length,n=t;n10&&(i.properties.paddingLeft=10),t.pixelPaddingRight>10&&(i.properties.paddingRight=10),i}return null}}),v["c"].push({relevant:v["b"].heightXS,state:function(t,e){if(t instanceof _){var i=t.states.create(e);return t.pixelPaddingTop>10&&(i.properties.paddingTop=10),t.pixelPaddingBottom>10&&(i.properties.paddingBottom=10),i}return null}}),v["c"].push({relevant:v["b"].widthXXS,state:function(t,e){if(t instanceof _){var i=t.states.create(e);return i.properties.paddingLeft=0,i.properties.paddingRight=0,i}return null}}),v["c"].push({relevant:v["b"].heightXXS,state:function(t,e){if(t instanceof _){var i=t.states.create(e);return i.properties.paddingTop=0,i.properties.paddingBottom=0,i}return null}});var P=i("1735"),O=i("74b3"),w=function(t){function e(){var e=t.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){if(this.setPropertyValue("locationX",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){if(this.setPropertyValue("locationY",t)){var e=this.dataItem;e&&e.component&&e.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(t){this.setPropertyValue("xField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(t){this.setPropertyValue("yField",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(t){this.setPropertyValue("isDynamic",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(t){this.setPropertyValue("copyToLegendMarker",t)},enumerable:!0,configurable:!0}),e}(l["a"]);r["b"].registeredClasses["Bullet"]=w,v["c"].push({relevant:v["b"].isXS,state:function(t,e){if(t instanceof w){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var C=i("d948"),S=i("04e4"),k=i("e243"),I=i("2082"),D=i("baa2"),T=i("54c9"),j=i("ea2c"),A=function(t){function e(){var e=t.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this._label=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new s["b"]((function(){b["d"](t.component)&&t.component.labels.removeValue(e)})))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueLabel",{get:function(){var t=this;if(!this._valueLabel){var e=this.component.valueLabels.create();this._valueLabel=e,this.addSprite(e),this._disposers.push(e),e.parent=this.itemContainer,this._disposers.push(new s["b"]((function(){b["d"](t.component)&&t.component.valueLabels.removeValue(e)})))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemContainer",{get:function(){var t=this;if(!this._itemContainer){var e=this.component,i=e.itemContainers.create();i.parent=e,this._itemContainer=i,this.addSprite(i),this._disposers.push(i),i.togglable&&i.events.on("toggled",(function(t){e.toggleDataItem(t.target.dataItem)}),void 0,!1),i.focusable&&(i.events.on("hit",(function(t){e.focusedItem=void 0}),void 0,!1),i.events.on("focus",(function(t){e.focusedItem=t.target.dataItem}),void 0,!1),i.events.on("blur",(function(t){e.focusedItem=void 0}),void 0,!1)),this._disposers.push(new s["b"]((function(){b["d"](t.component)&&t.component.itemContainers.removeValue(i)}))),this.dataContext.uidAttr&&(i.readerControls=this.dataContext.uidAttr(),i.readerLabelledBy=this.dataContext.uidAttr());var n=this.dataContext;if((n instanceof y["a"]||n instanceof p["a"])&&!n.isDisposed()){var r=function(t){i.readerChecked=t.visible,i.events.disableType("toggled"),i.isActive=!t.visible,i.events.enableType("toggled")};n.addDisposer(new s["b"]((function(){t.component&&t.component.dataItems.remove(t)}))),n instanceof p["a"]?(i.addDisposer(n.events.on("visibilitychanged",r,void 0,!1)),i.addDisposer(n.events.on("hidden",(function(t){i.readerChecked=!1,i.events.disableType("toggled"),i.isActive=!0,i.events.enableType("toggled")}),void 0,!1)),i.addDisposer(n.events.on("shown",(function(t){i.readerChecked=!0,i.events.disableType("toggled"),i.isActive=!1,i.events.enableType("toggled")}),void 0,!1))):i.addDisposer(n.events.on("visibilitychanged",r,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marker",{get:function(){var t=this;if(!this._marker){var e=this.component.markers.create();this._marker=e,e.parent=this.itemContainer,this.addSprite(e),this._disposers.push(e),this._disposers.push(new s["b"]((function(){b["d"](t.component)&&t.component.markers.removeValue(e)})))}return this._marker},enumerable:!0,configurable:!0}),e}(y["a"]),F=function(){function t(){this.createMarker=!0}return t}(),V=function(t){function e(){var e=t.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var i=new l["a"];i.applyOnClones=!0,i.padding(8,0,8,0),i.margin(0,10,0,10),i.layout="horizontal",i.clickable=!0,i.focusable=!0,i.role="switch",i.togglable=!0,i.cursorOverStyle=T["a"].pointer,i.background.fillOpacity=0,e.itemContainers=new o["c"](i),e._disposers.push(new o["b"](e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(Object(k["a"])().body.events.on("keyup",(function(t){if(S["a"].isKey(t.event,"enter")&&e.focusedItem){var i=e.focusedItem,n=i.itemContainer;n.togglable?e.toggleDataItem(i):n.clickable&&n.events.isEnabled("hit")&&(n.dispatchImmediately("hit",{event:t}),e.focusedItem=i)}}),e));var n=new c["a"],r=new l["a"];r.width=23,r.height=23,r.interactionsEnabled=!1,r.applyOnClones=!0,r.setStateOnChildren=!0,r.background.fillOpacity=0,r.background.strokeOpacity=0,r.propertyFields.fill="fill",r.valign="middle";var a=n.getFor("disabledBackground");r.events.on("childadded",(function(t){var e=t.newValue,i=e.states.create("active");i.properties.stroke=a,i.properties.fill=a})),e.markers=new o["c"](r),e._disposers.push(new o["b"](e.markers)),e._disposers.push(e.markers.template);var s=r.createChild(C["a"]);s.width=Object(d["c"])(100),s.height=Object(d["c"])(100),s.applyOnClones=!0,s.propertyFields.fill="fill",s.strokeOpacity=0;var u=new h["a"];u.text="{name}",u.margin(0,5,0,5),u.valign="middle",u.applyOnClones=!0,u.states.create("active").properties.fill=n.getFor("disabledBackground"),e.labels=new o["c"](u),e._disposers.push(new o["b"](e.labels)),e._disposers.push(e.labels.template),u.interactionsEnabled=!1,u.truncate=!0,u.fullWords=!1;var p=new h["a"];return p.margin(0,5,0,0),p.valign="middle",p.width=50,p.align="right",p.textAlign="end",p.applyOnClones=!0,p.states.create("active").properties.fill=n.getFor("disabledBackground"),p.interactionsEnabled=!1,e.valueLabels=new o["c"](p),e._disposers.push(new o["b"](e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",i.states.create("active"),i.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.events.on("parentset",(function(){var t=e.parent;t&&e._disposers.push(t.events.on("maxsizechanged",(function(){e.scrollable&&e.setTimeout((function(){e.updateMasks(),e.handleScrollbar(),e._handleWheelReal(1)}),100)})))})),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},e.prototype.createDataItem=function(){return new A},e.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e);var i=e.itemContainer,n=e.marker;I["S"](e.label);var r=e.valueLabel;i.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var a=e.label.maxWidth;e.label.width instanceof d["a"]||(e.label.width=void 0),a>0&&(e.label.maxWidth=a),"right"==r.align&&(r.width=void 0);var s=e.dataContext.legendSettings,o=e.dataContext;!o.createLegendMarker||this.useDefaultMarker&&o instanceof p["a"]?this.markers.template.propertyFields.fill=void 0:e.childrenCreated||(o.createLegendMarker(n),e.childrenCreated=!0),o.updateLegendValue&&o.updateLegendValue(),o.component&&o.component.updateLegendValue&&o.component.updateLegendValue(o),r.invalid&&r.validate(),""==r.text||void 0==r.text?r.__disabled=!0:r.__disabled=!1,!s||void 0==s.itemValueText&&void 0==s.valueText||(r.__disabled=!1);var l=e.dataContext.visible;void 0===l&&(l=!0),l=b["k"](l),e.dataContext.visible=l,i.events.disableType("toggled"),i.isActive=!l,i.isActive?i.setState("active",0):i.setState("default",0),i.events.enableType("toggled")},e.prototype.afterDraw=function(){var e=this,i=this.getPropertyValue("maxWidth"),n=0;this.labels.each((function(t){t.invalid&&(t.maxWidth=void 0,t.validate()),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>n&&(n=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var r=0;this.valueLabels.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>r&&(r=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var a=0;this.markers.each((function(t){t.invalid&&t.validate(),t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight>a&&(a=t.measuredWidth+t.pixelMarginLeft+t.pixelMarginRight)}));var s,o=this.itemContainers.template,l=o.pixelMarginRight+o.pixelMarginLeft,h=n+r+a;b["h"](i)?(i-=l,i>h&&(i=h),s=i-a-r):s=n,this.labels.each((function(t){("right"==e.valueLabels.template.align||t.measuredWidth>s)&&(t.width instanceof d["a"]||(t.width=Math.min(t.maxWidth,s-t.pixelMarginLeft-t.pixelMarginRight),t.maxWidth=t.width))})),"right"==this.valueLabels.template.align&&this.valueLabels.each((function(t){t.width=r-t.pixelMarginRight-t.pixelMarginLeft})),t.prototype.afterDraw.call(this)},e.prototype.handleScrollbar=function(){var t=this.scrollbar;if(this.scrollable&&t){var e=this.maxHeight;t.height=e,t.x=this.measuredWidth-t.pixelWidth-t.pixelMarginLeft,this.contentHeight>e?(t.visible=!0,t.thumb.height=t.height*e/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+t.pixelMarginRight):(t.thumb.height=t.height*e/this.contentHeight,this.paddingRight=t.pixelWidth+t.pixelMarginLeft+t.pixelMarginRight,t.visible=!1,t.start=0,t.end=1),t.handleThumbPosition(),this.updateMasks()}},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t)&&("left"==t||"right"==t?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",b["h"](this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=Object(d["c"])(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(t){this.setPropertyValue("useDefaultMarker",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(t){if(this.setPropertyValue("scrollable",t,!0))if(t){var e=this.createChild(j["a"]);this.scrollbar=e,e.isMeasured=!1,e.orientation="vertical",e.endGrip.__disabled=!0,e.startGrip.__disabled=!0,e.visible=!1,e.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(e.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){this._handleWheelReal(t.shift.y)},e.prototype._handleWheelReal=function(t){var e=this.scrollbar;if(e){var i=t/1e3*this.measuredHeight/this.contentHeight,n=e.end-e.start;t>0?(e.start=D["B"](0,e.start-i),e.end=e.start+n):(e.end=D["C"](1,e.end-i),e.start=e.end-n)}},e.prototype.updateMasks=function(){var t=this;this.scrollbar&&this.itemContainers.each((function(e){e.dy=-t.scrollbar.thumb.pixelY*t.contentHeight/t.maxHeight,e.maskRectangle={x:0,y:-e.dy,width:t.measuredWidth,height:t.maxHeight}})),this.invalidatePosition()},e.prototype.toggleDataItem=function(t){var e=t.dataContext;!e.visible||e.isHiding||e instanceof p["a"]&&e.isHidden?(t.color=t.colorOrig,e.appeared=!0,t.itemContainer.isActive=!1,!0===e.hidden&&(e.hidden=!1),e.show?e.show():e.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,t.label.readerTitle))):(t.itemContainer.isActive=!0,e.appeared=!0,e.hide?e.hide():e.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,t.label.readerTitle)),t.color=(new c["a"]).getFor("disabledBackground"))},Object.defineProperty(e.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.handleDataItemPropertyChange=function(t,e){t.valueLabel.invalidate(),t.label.invalidate()},e}(a["a"]);r["b"].registeredClasses["Legend"]=V,v["c"].push({relevant:v["b"].widthXS,state:function(t,e){if(t instanceof V&&("left"==t.position||"right"==t.position)){var i=t.states.create(e);return i.properties.position="bottom",i}return null}}),v["c"].push({relevant:v["b"].heightXS,state:function(t,e){if(t instanceof V&&("top"==t.position||"bottom"==t.position)){var i=t.states.create(e);return i.properties.position="right",i}return null}}),v["c"].push({relevant:v["b"].isXS,state:function(t,e){if(t instanceof V){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var M=i("5290"),E=i("03d5"),L=i("ec03"),R=i("a0dd"),B=i("6e0f"),H=i("ddd0"),W=function(t){function e(){var e=t.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new P["a"],this._disposers.push(new P["b"](this._bullets))),this._bullets},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.bullets.clear(),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),e}(y["a"]),N=function(t){function e(){var i=t.call(this)||this;if(i._ignoreMinMax=!1,i._showBullets=!0,i.legendSettings=new F,i._tmin=new P["a"],i._tmax=new P["a"],i._smin=new P["a"],i._smax=new P["a"],i.dataItemsByAxis=new P["a"],i.skipFocusThreshold=20,i._itemReaderTextChanged=!1,i.calculatePercent=!1,i.usePercentHack=!0,i.autoDispose=!0,i.simplifiedProcessing=!1,i.constructor===e)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");i.className="Series",i.isMeasured=!1,i.layout="none",i.shouldClone=!1,i.setPropertyValue("hidden",!1),i.axisRanges=new o["a"],i.axisRanges.events.on("inserted",i.processAxisRange,i,!1),i.minBulletDistance=0,i.mainContainer=i.createChild(l["a"]),i.mainContainer.shouldClone=!1,i.mainContainer.mask=i.createChild(p["a"]),i._disposers.push(i.mainContainer);var n=i.mainContainer.createChild(l["a"]);return i._shouldBeReady.push(n),n.shouldClone=!1,n.layout="none",n.virtualParent=i,i._disposers.push(n),i.bulletsContainer=n,i.tooltip=new O["a"],i.tooltip.virtualParent=i,i._disposers.push(i.tooltip),i.hiddenState.transitionEasing=L["cubicIn"],i.dataItem=i.createDataItem(),i._disposers.push(i.dataItem),i.dataItem.component=i,i.role="group",i.applyTheme(),i}return Object(n["c"])(e,t),e.prototype.applyTheme=function(){t.prototype.applyTheme.call(this),M["a"].autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},e.prototype.createDataItem=function(){return new W},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){},e.prototype.processBullet=function(t){var e=this,i=t.newValue;i.isTemplate=!0,this.events.once("datavalidated",(function(t){e.itemsFocusable()&&(i.focusable=!0)})),this.invalidate()},e.prototype.removeBullet=function(t){var e=t.oldValue;this.dataItems.each((function(t){var i=t.bullets.getKey(e.uid);i&&i.dispose()})),this.invalidate()},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.processValues(!1)},e.prototype.getFirstValue=function(t,e){for(var i=e;i>=0;i--){var n=this.dataItems.getIndex(i),r=n.getActualWorkingValue(t);if(b["h"](r))return r}return null},e.prototype.getAbsoluteFirstValue=function(t){for(var e=0;e0){var g=i.getIndex(d-1);R["d"](g.values,(function(t,e){var i=g.getActualWorkingValue(t);b["h"](i)&&(u[t]=i)}))}for(var y=function(t){var f=i.getIndex(t);R["d"](f.values,(function(t,i){var g=f.getActualWorkingValue(t);if(b["h"](g)){b["h"](n[t])||(n[t]=0),n[t]++,b["h"](r[t])||(r[t]=0),r[t]+=g,b["h"](a[t])||(a[t]=0),a[t]+=Math.abs(g),b["h"](l[t])||(l[t]=g),h[t]=g,b["h"](s[t])?s[t]>g&&(s[t]=g):s[t]=g,b["h"](o[t])?o[t]0){e.usePercentHack&&r==i&&(i=n.values[t].value);var s=r/i*100;n.setCalculatedValue(t,s,"percent")}else n.setCalculatedValue(t,0,"percent")}))};for(m=d;m0){var x=i.getIndex(d-1);R["d"](x.values,(function(t){var e=x.values[t].value;x.setCalculatedValue(t,e-l[t],"change"),x.setCalculatedValue(t,(e-l[t])/l[t]*100,"changePercent")}))}var _=this.dataItem;R["d"](_.values,(function(t){_.setCalculatedValue(t,r[t],"sum"),_.setCalculatedValue(t,a[t],"absoluteSum"),_.setCalculatedValue(t,r[t]/n[t],"average"),_.setCalculatedValue(t,l[t],"open"),_.setCalculatedValue(t,h[t],"close"),_.setCalculatedValue(t,s[t],"low"),_.setCalculatedValue(t,o[t],"high"),_.setCalculatedValue(t,n[t],"count")}))}},e.prototype.validate=function(){I["x"]()&&this.filters.clear(),m["d"](this.axisRanges.iterator(),(function(t){t.validate()})),t.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var i=0;ithis.endIndex;i--){n=this.dataItems.getIndex(i);n&&n.bullets.each((function(t,e){e.__disabled=!0}))}}else this.bulletsContainer.children.each((function(t){t.__disabled=!0}));this.updateTooltipBounds()},e.prototype.updateTooltipBounds=function(){if(this.topParent){var t=0,e=0,i=this.topParent.maxWidth,n=this.topParent.maxHeight,r={x:t,y:e,width:i,height:n};this.tooltip.setBounds(r)}},e.prototype.shouldCreateBullet=function(t,e){return!0},e.prototype.validateDataElement=function(e){var i=this;t.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each((function(t){var n=e.bullets.getKey(t.uid);if(i.shouldCreateBullet(e,t)){if(!n){var r=t.propertyFields.disabled,a=e.dataContext;r&&a&&!1===a[r]?(t.applyOnClones=!1,t.disabled=!1,n=t.clone(),t.disabled=!0,t.applyOnClones=!0):n=t.clone(),n.shouldClone=!1,e.addSprite(n),i.visible&&!i.isHiding||n.hide(0)}var s=n.dataItem;if(s!=e){s&&s.bullets.setKey(t.uid,void 0);var o=i.itemReaderText;n instanceof w&&(o||(o="{"+n.xField+"}: {"+n.yField+"}"),n.isDynamic&&(e.events.on("workingvaluechanged",n.deepInvalidate,n,!1),i.dataItem.events.on("workingvaluechanged",n.deepInvalidate,n,!1)),n.deepInvalidate()),n.focusable&&(n.events.on("focus",(function(t){n.readerTitle=i.populateString(o,n.dataItem)}),void 0,!1),n.events.on("blur",(function(t){n.readerTitle=""}),void 0,!1)),n.hoverable&&(n.events.on("over",(function(t){n.readerTitle=i.populateString(o,n.dataItem)}),void 0,!1),n.events.on("out",(function(t){n.readerTitle=""}),void 0,!1))}n.parent=i.bulletsContainer,e.bullets.setKey(t.uid,n),n.maxWidth=e.itemWidth,n.maxHeight=e.itemHeight,n.__disabled=!1,i.positionBullet(n)}else n&&(n.__disabled=!0)}))):this.bulletsContainer.visible=!1},e.prototype.handleDataItemWorkingValueChange=function(t,e){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(e.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(t){this._ignoreMinMax=t,this.invalidateDataItems()},enumerable:!0,configurable:!0}),e.prototype.createMask=function(){},e.prototype.processAxisRange=function(t){this.rangesContainer||(this.rangesContainer=this.createChild(l["a"]),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var e=t.newValue;e&&(e.contents.parent=this.rangesContainer,e.isRange=!0,e.events.on("valuechanged",this.invalidateDataItems,this,!1))},e.prototype.getAxisField=function(t){},e.prototype.showTooltipAtPosition=function(t,e){},Object.defineProperty(e.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(t){this.setPropertyValue("minBulletDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new o["c"](new w),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new o["b"](this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){},Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(t){this.setPropertyValue("hiddenInLegend",t)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t);var e=this.legendDataItem;e&&(e.component.invalidate(),e.component.invalidateRawData()),this.readerTitle=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemReaderText",{get:function(){var t=this._itemReaderText;return t||(this.tooltipText?t=I["D"](this.tooltipText):this.tooltipHTML&&(t=I["D"](this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",t):t},set:function(t){this._itemReaderText=t,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),e.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t,e){if(this.legendDataItem){var i=this.legendSettings,n=this.legendDataItem,r=n.label,a=n.valueLabel;t&&!t.isDisposed()||e?(a&&(i.itemValueText&&(a.text=i.itemValueText),a.dataItem=t),r&&(i.itemLabelText&&(r.text=i.itemLabelText),r.dataItem=t)):(r&&((i.labelText||void 0!=i.itemLabelText)&&(r.text=i.labelText),r.dataItem=this.dataItem),a&&((i.valueText||void 0!=i.itemValueText)&&(a.text=i.valueText),a.dataItem=this.dataItem))}},e.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,t.prototype.copyFrom.call(this,e)},e.prototype.raiseCriticalError=function(t){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",t).message,this._chart.modal.closable=!1,M["a"].suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),M["a"].verbose&&console.log(t)},e.prototype.applyFilters=function(){var e=this;t.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),m["d"](this.filters.iterator(),(function(t){e.bulletsContainer.filters.push(t.clone())}))},Object.defineProperty(e.prototype,"heatRules",{get:function(){var t=this;return this._heatRules||(this._heatRules=new o["a"],this._heatRules.events.on("inserted",(function(e){var i=e.newValue,n=i.target;if(n){var r=i.dataField;b["d"](r)||(r="value");var a=t.dataItem,s=i.property,o=b["l"](i.minValue),h=b["l"](i.maxValue);b["h"](o)||b["h"](h)||t.dataItem.events.on("calculatedvaluechanged",(function(e){e.property==r&&m["d"](t.dataItems.iterator(),(function(t){var e=!1;B["d"](t.sprites,(function(t){if(t.clonedFrom==n){var i=t;i[s]=i[s],e=!0}})),e||B["d"](t.sprites,(function(t){t instanceof l["a"]&&m["d"](t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[s]=e[s]}else t instanceof l["a"]&&t.deepInvalidate()}))}))}))})),t.dataItems.template.events.on("workingvaluechanged",(function(t){if(t.property==r){var e=t.target,i=!1;B["d"](e.sprites,(function(t){if(t.clonedFrom==n){var e=t;e[s]=e[s],i=!0}})),i||B["d"](e.sprites,(function(t){t instanceof l["a"]&&m["d"](t.children.iterator(),(function(t){if(t.className==n.className){var e=t;e[s]=e[s]}else t instanceof l["a"]&&t.deepInvalidate()}))}))}})),n.adapter.add(s,(function(t,e,n){var s=b["l"](i.minValue),o=b["l"](i.maxValue),l=i.min,h=i.max;if(e instanceof p["a"]){var u=e,c=u.propertyFields[n];if(c&&e.dataItem){var d=e.dataItem.dataContext;if(d&&b["d"](d[c]))return t}}var f=e.dataItem;if(b["h"](s)||(s=a.values[r].low),b["h"](o)||(o=a.values[r].high),f){var g=f.values[r];if(g){var y=f.getActualWorkingValue(r);if(b["d"](l)&&b["d"](h)&&b["h"](s)&&b["h"](o)&&b["h"](y)){var m=void 0;if(m=i.logarithmic?(Math.log(y)*Math.LOG10E-Math.log(s)*Math.LOG10E)/(Math.log(o)*Math.LOG10E-Math.log(s)*Math.LOG10E):(y-s)/(o-s),!b["h"](y)||b["h"](m)&&Math.abs(m)!=1/0||(m=.5),b["h"](l))return l+(h-l)*m;if(l instanceof E["a"])return new E["a"](H["c"](l.rgb,h.rgb,m))}}}return t}))}}))),this._heatRules},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i;if(e){if(b["d"](e.bullets)&&b["e"](e.bullets))for(var n=0,r=e.bullets.length;n=0;r--){var a=n.getIndex(r);a&&a.dataContext==e&&i.dataItems.remove(a)}for(r=i.data.length-1;r>=0;r--){var s=i.data[r];s&&s==e&&B["o"](i.data,s)}}},e.prototype.handleSeriesAdded=function(t){var e=this,i=t.newValue;i.isDisposed()||(i.chart=this,i.parent=this.seriesContainer,i.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(i),i.addDisposer(new s["b"]((function(){e.dataUsers.removeValue(i)}))),this.handleSeriesAdded2(i),this.handleLegendSeriesAdded(i))},e.prototype.handleLegendSeriesAdded=function(t){t.hiddenInLegend||this.legend&&this.legend.addData(t)},e.prototype.handleSeriesAdded2=function(t){var e=this;this.dataInvalid||(this._exitDP[t.uid]=r["b"].events.once("exitframe",(function(){t.data&&0!=t.data.length||(t.data=e.data,t.showOnInit&&(t.reinit(),t.setPropertyValue("showOnInit",!1),t.showOnInit=!0),t.isDisposed()||t.events.once("datavalidated",(function(){t.data==e.data&&(t._data=[])})))})),this._disposers.push(this._exitDP[t.uid]))},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];m["d"](this.series.iterator(),(function(t){t.hiddenInLegend||e.push(t)})),t.dataFields.name="name",t.data=e}},e.prototype.createSeries=function(){return new N},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},e.prototype.appear=function(){t.prototype.appear.call(this),this.series.each((function(t){t.showOnInit&&t.inited&&t.appear()}))},e}(_);r["b"].registeredClasses["SerialChart"]=z;var U=i("d8fb"),G=function(t){function e(){var e=t.call(this)||this;e._axis=new s["d"],e.dataItems=new o["a"],e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var i=new c["a"],n=new U["a"];n.fill=i.getFor("background"),n.stroke=Object(E["b"])(),n.fillOpacity=.9,n.zIndex=0,e._fillShape=n;var r=new U["a"];r.fill=Object(E["b"])(),r.stroke=i.getFor("grid"),r.strokeOpacity=.3,r.zIndex=1,e._startLine=r;var a=new U["a"];return a.fill=Object(E["b"])(),a.stroke=Object(E["b"])("#000000"),a.strokeOpacity=.3,a.zIndex=2,e._endLine=a,e._disposers.push(e._axis),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(e.prototype,"startLine",{get:function(){return this._startLine},set:function(t){this._startLine&&this._startLine.dispose(),this._startLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLine",{get:function(){return this._endLine},set:function(t){this._endLine&&this._endLine.dispose(),this._endLine=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillShape",{get:function(){return this._fillShape},set:function(t){this._fillShape&&this._fillShape.dispose(),this._fillShape=t,this.addBreakSprite(t)},enumerable:!0,configurable:!0}),e.prototype.addBreakSprite=function(t){t.parent=this,t.isMeasured=!1,this._disposers.push(t)},Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this._axis.get()!==t){this._axis.set(t,t.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),t.renderer.createBreakSprites(this);var e=t.axisBreaks.template;this.startLine.copyFrom(e.startLine),this.endLine.copyFrom(e.endLine),this.fillShape.copyFrom(e.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(t){this.setPropertyValue("breakSize",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPoint",{get:function(){var t=this.axis.renderer;if(t)return t.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),e.prototype.draw=function(){if(t.prototype.draw.call(this),this.axis){var e=this.axis.renderer;e.updateBreakElement(this)}},Object.defineProperty(e.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(l["a"]);r["b"].registeredClasses["AxisBreak"]=G;var K,q=i("8a06"),Z=i("f936"),J=function(t){function e(){var e=t.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.grid,i.disabled)return;e=i.clone()}else{if(i=t.renderer.grid.template,i.disabled)return;e=t.renderer.grid.create(),this._disposers.push(new s["b"]((function(){t.renderer.grid.removeValue(e)})))}this.grid=e,e.shouldClone=!1,this._disposers.push(e),e.axis=this.component}}return this._grid},set:function(t){this._grid&&this._grid!=t&&(B["o"](this.sprites,this._grid),this._grid.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(B["o"](t.dataItem.sprites,t),t.dataItem.grid=void 0),this.addSprite(t)),this._grid=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){if(!this._tick){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.tick,i.disabled)return;e=i.clone()}else{if(i=t.renderer.ticks.template,i.disabled)return;e=t.renderer.ticks.create(),this._disposers.push(new s["b"]((function(){t.renderer.ticks.removeValue(e)})))}this.tick=e,e.axis=this.component,e.shouldClone=!1,this._disposers.push(e)}}return this._tick},set:function(t){this._tick&&this._tick!=t&&(B["o"](this.sprites,this._tick),this._tick.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(B["o"](t.dataItem.sprites,t),t.dataItem.tick=void 0),this.addSprite(t)),this._tick=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){if(!this._label){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.label,i.disabled)return;e=i.clone()}else{if(i=t.renderer.labels.template,i.disabled)return;e=t.renderer.labels.create(),this._disposers.push(new s["b"]((function(){t.renderer.labels.removeValue(e)})))}this._disposers.push(e),this.label=e,e.shouldClone=!1,e.axis=this.component,e.virtualParent=t}}return this._label},set:function(t){this._label&&this._label!=t&&(B["o"](this.sprites,this._label),this._label.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(B["o"](t.dataItem.sprites,t),t.dataItem.label=void 0),this.addSprite(t)),this._label=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisFill",{get:function(){if(!this._axisFill){var t=this.component;if(t){var e,i=void 0;if(this.isRange){if(i=t.axisRanges.template.axisFill,!this.isTemplate&&i.disabled)return;e=i.clone()}else{if(i=t.renderer.axisFills.template,i.disabled)return;e=t.renderer.axisFills.create(),this._disposers.push(new s["b"]((function(){t.renderer.axisFills.removeValue(e)})))}this.axisFill=e,e.shouldClone=!1,this._disposers.push(e)}}return this._axisFill},set:function(t){this._axisFill&&this._axisFill!=t&&(B["o"](this.sprites,this._axisFill),this._axisFill.dataItem=void 0),t&&(t.dataItem&&t.dataItem!=this&&(B["o"](t.dataItem.sprites,t),t.dataItem.axisFill=void 0),t.axis=this.component,this.addSprite(t)),this._axisFill=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(t){this._text=t,this._label&&(this._label.text=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contents",{get:function(){if(!this._contents){var t=new l["a"];this.addSprite(t),t.isMeasured=!1,this._contents=t;var e=this.component;if(e){var i=e.renderer.createFill(this.component);i.disabled=!1,i.axis=e,this.addSprite(i),this._mask=i,t.mask=i}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(t){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),t&&t.dataItems.push(this),this._axisBreak=t},enumerable:!0,configurable:!0}),e.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},e.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},e.prototype.hasProperty=function(e){return"component"==e||t.prototype.hasProperty.call(this,e)},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},e.prototype.setVisibility=function(e,i){t.prototype.setVisibility.call(this,e,i),this._contents&&(this._contents.visible=e)},Object.defineProperty(e.prototype,"bullet",{get:function(){return this._bullet},set:function(t){this._bullet&&this._bullet!=t&&(B["o"](this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=t,t&&this.addSprite(t)},enumerable:!0,configurable:!0}),e}(y["a"]);(function(t){t[t["Start"]=0]="Start",t[t["Middle"]=.5]="Middle",t[t["End"]=1]="End"})(K||(K={}));var $=function(t){function e(){var i=t.call(this)||this;if(i._gridCount=10,i._series=new o["a"],i.autoDispose=!0,i._axisItemCount=0,i.constructor===e)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");i.hideTooltipWhileZooming=!0,i.minWidth=1e-4,i.minHeight=1e-4,i.className="Axis",i.shouldClone=!1,i.setPropertyValue("cursorTooltipEnabled",!0),i.toggleZoomOutButton=!0,i.zoomable=!0;var n=new c["a"];i.title=new h["a"],i.title.shouldClone=!1,i._disposers.push(i.title),i.setPropertyValue("startLocation",0),i.setPropertyValue("endLocation",1),i._dataItemsIterator=new m["a"](i.dataItems,(function(){return i.dataItems.create()})),i._dataItemsIterator.createNewItems=!0;var r=new O["a"];i._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=i;var a=r.background;return a.cornerRadius=0,a.fill=n.getFor("alternativeBackground"),a.stroke=a.fill,a.strokeWidth=1,a.fillOpacity=1,r.label.fill=n.getFor("alternativeText"),i.tooltip=r,i.readerHidden=!0,i.events.on("rangechangestarted",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!0)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!0)}),void 0,!1),i.events.on("rangechangeended",(function(){i.series.each((function(t){t.hideTooltipWhileZooming&&(t.tooltip.hide(),t.tooltip.preventShow=!1)})),i.hideTooltipWhileZooming&&(i.tooltip.hide(),i.tooltip.preventShow=!1)}),void 0,!1),i.applyTheme(),i}return Object(n["c"])(e,t),e.prototype.fillRule=function(t,e){b["h"](e)||(e=t.index),e/2==Math.round(e/2)?(t.axisFill.__disabled=!0,t.axisFill.opacity=0):(t.axisFill.opacity=1,t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new J},e.prototype.invalidateLayout=function(){t.prototype.invalidateLayout.call(this),m["d"](this.series.iterator(),(function(t){t.invalidateLayout()}))},e.prototype.invalidateSeries=function(){m["d"](this.series.iterator(),(function(t){t.invalidate()}))},e.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},e.prototype.updateGridCount=function(){if(this.renderer){var t=this.axisLength/this.renderer.minGridDistance;t!=this._gridCount&&(this._gridCount=t,this.clearCache())}},e.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),t.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},e.prototype.initRenderer=function(){},e.prototype.appendDataItem=function(t){var e=this.renderer,i=t.tick;i&&(i.above?i.parent=e.bulletsContainer:i.parent=e.gridContainer),t.label&&(t.label.parent=e);var n=t.axisFill;n&&(n.above?n.parent=e.bulletsContainer:n.parent=e.gridContainer);var r=t.grid;r&&(r.above?r.parent=e.bulletsContainer:r.parent=e.gridContainer),t.bullet&&(t.bullet.parent=e.bulletsContainer)},e.prototype.validate=function(){t.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},e.prototype.validateAxisRanges=function(){var t=this;m["d"](this.axisRanges.iterator(),(function(e){t.appendDataItem(e),t.validateDataElement(e),e.grid&&e.grid.validate(),e.tick&&e.tick.validate(),e.axisFill&&e.axisFill.validate(),e.label&&e.label.validate()}))},e.prototype.validateBreaks=function(){this._axisBreaks&&m["d"](this._axisBreaks.iterator(),(function(t){t.invalidate()}))},e.prototype.processBreak=function(t){var e=t.newValue;e.parent=this.renderer.breakContainer,e.axis=this},e.prototype.registerSeries=function(t){var e=this;return this.series.moveValue(t),new s["c"]([new s["b"]((function(){e.series.removeValue(t)})),this.events.on("lengthchanged",t.invalidate,t,!1),this.events.on("lengthchanged",t.createMask,t,!1),this.events.on("startchanged",t.invalidate,t,!1),this.events.on("endchanged",t.invalidate,t,!1)])},Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},set:function(t){if(t!=this._renderer){this._renderer=t,t.chart=this.chart,t.axis=this,t.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(t.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var e=this.renderer.labels.create();this._disposers.push(e),e.dataItem=this.dataItems.template.clone(),e.text="L",e.parent=this.renderer,e.shouldClone=!1,e.fillOpacity=0,e.opacity=0,e.strokeOpacity=0,e.interactionsEnabled=!1,e.validate(),this.ghostLabel=e,this.events.on("beforedatavalidated",(function(){e.text="L"}),void 0,!1)}},enumerable:!0,configurable:!0}),e.prototype.positionToAngle=function(t){return this.renderer.positionToAngle(t)},e.prototype.pointToPosition=function(t){return this.renderer.pointToPosition(t)},e.prototype.positionToCoordinate=function(t){return this.renderer.positionToCoordinate(t)},e.prototype.getAnyRangePath=function(t,e){return this.renderer.getPositionRangePath(t,e)},e.prototype.anyToPosition=function(t){return 0},e.prototype.anyToPoint=function(t){return{x:0,y:0,angle:0}},e.prototype.getPositionRangePath=function(t,e){return this.renderer?this.renderer.getPositionRangePath(t,e):""},Object.defineProperty(e.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(t){this.setPropertyValue("cursorTooltipEnabled",t)&&(t&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(t){this.setPropertyValue("toggleZoomOutButton",t)},enumerable:!0,configurable:!0}),e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i=this._tooltip;if(!i||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(e||(t=this.toAxisPosition(t)),!b["h"](t)||tthis.end)return i.hide(0),void(this._tooltipPosition=void 0);var n=this.renderer;i.parent||(i.parent=this.tooltipContainer);var r=n.tooltipLocation,a=this.getCellStartPosition(t),s=this.getCellEndPosition(t);if("fixed"==this.tooltipPosition&&(t=a+(s-a)*r),t=D["i"](t,this.start,this.end),this._tooltipPosition!=t){this._tooltipPosition=t;var o=n.tooltipLocation2,l=n.positionToPoint(a,o),h=n.positionToPoint(s,o);this.currentItemStartPoint=l,this.currentItemEndPoint=h,n.fullWidthTooltip&&(i.width=h.x-l.x,i.height=h.y-l.y);var u=n.positionToPoint(t,o),p=I["K"](u,this.renderer.line);i.text=this.getTooltipText(t),i.text&&(i.delayedPointTo(p),i.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||i.hide(0)}},e.prototype.toAxisPosition=function(t){if(t=this.renderer.toAxisPosition(t),void 0!=t)return t*=this.end-this.start,t=this.renderer.inversed?this.end-t:this.start+t,t},e.prototype.toGlobalPosition=function(t){return this.renderer.inversed?t=this.end-t:t-=this.start,t/(this.end-this.start)},e.prototype.getTooltipText=function(t){},e.prototype.updateTooltip=function(t,e){var i=this._tooltip;i&&(i.fixDoc=!1,i.pointerOrientation=t,i.setBounds(I["L"](e,this.renderer.line)))},e.prototype.roundPosition=function(t,e,i){return t},e.prototype.getCellStartPosition=function(t){return t},e.prototype.getCellEndPosition=function(t){return t},Object.defineProperty(e.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var t=this.createDataItem();t.isRange=!0,t.axisFill=this.renderer.axisFills.template.clone(),t.grid=this.renderer.grid.template.clone(),t.tick=this.renderer.ticks.template.clone(),t.label=this.renderer.labels.template.clone(),t.isTemplate=!0,t.component=this,t.axisFill.disabled=!1,t.tick.disabled=!1,t.grid.disabled=!1,t.label.disabled=!1,this._axisRanges=new o["c"](t),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new o["b"](this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),e.prototype.processAxisRange=function(t){var e=t.newValue;e.component=this,e.isRange=!0},Object.defineProperty(e.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new q["c"](this.createAxisBreak(),(function(t,e){return Z["a"](t.adjustedStartValue,e.adjustedStartValue)})),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new o["b"](this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),e.prototype.createAxisBreak=function(){return new G},Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new o["a"]),this._series},enumerable:!0,configurable:!0}),e.prototype.processSeriesDataItems=function(){},e.prototype.processSeriesDataItem=function(t,e){},e.prototype.postProcessSeriesDataItems=function(t){},e.prototype.postProcessSeriesDataItem=function(t){},e.prototype.updateAxisBySeries=function(){},e.prototype.hideUnusedDataItems=function(){var t=this,e=this._dataItemsIterator;e.createNewItems=!1,m["d"](e.iterator(),(function(e){t.validateDataElement(e),e.__disabled=!0})),e.clear(),e.createNewItems=!0},e.prototype.getSeriesDataItem=function(t,e,i){},e.prototype.getAngle=function(t,e,i,n,r){},e.prototype.getX=function(t,e,i,n,r){},e.prototype.getPositionX=function(t,e,i,n,r){},e.prototype.getY=function(t,e,i,n,r){},e.prototype.getPositionY=function(t,e,i,n,r){},Object.defineProperty(e.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),e.prototype.dataChangeUpdate=function(){},e.prototype.seriesDataChangeUpdate=function(t){},e.prototype.adjustDifference=function(t,e){var i=e-t;if(b["h"](i))return this._axisBreaks&&m["e"](this._axisBreaks.iterator(),(function(n){var r=n.adjustedStartValue,a=n.adjustedEndValue;if(b["h"](r)&&b["h"](a)){if(r>e)return!1;if(a>=t&&b["h"](r)&&b["h"](a)){var s=n.breakSize,o=D["y"]({start:r,end:a},{start:t,end:e});o&&(i-=(o.end-o.start)*(1-s))}return!0}})),i},e.prototype.isInBreak=function(t){if(this._axisBreaks)return m["f"](this._axisBreaks.iterator(),(function(e){return t>=e.adjustedStartValue&&t<=e.adjustedEndValue}))},e.prototype.fixAxisBreaks=function(){var t=this;if(this._axisBreaks){var e=this._axisBreaks;if(e.length>0){B["d"](m["m"](e.iterator()),(function(e){var i=D["C"](e.startValue,e.endValue),n=D["B"](e.startValue,e.endValue);e.adjustedStartValue=i,e.adjustedEndValue=n,t._axisBreaks.update(e)}));var i=e.first,n=Math.min(i.startValue,i.endValue);m["d"](e.iterator(),(function(t){var e=t.adjustedStartValue,i=t.adjustedEndValue;eo)},e.prototype.createBreakSprites=function(t){},Object.defineProperty(e.prototype,"axisFills",{get:function(){if(!this._axisFills){var t=this.createFill(this.axis);this._axisFills=new o["c"](t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new o["b"](this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),e.prototype.createFill=function(t){return new tt(t)},Object.defineProperty(e.prototype,"grid",{get:function(){if(!this._grid){var t=this.createGrid();this._grid=new o["c"](t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new o["b"](this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),e.prototype.createGrid=function(){return new et},Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,t.isMeasured=!1,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new o["c"](t),this._disposers.push(new o["b"](this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),e.prototype.createTick=function(){return new rt},Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();this._labels=new o["c"](t),t.applyOnClones=!0,t.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new o["b"](this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createLabel=function(){return new it},Object.defineProperty(e.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(t){this.setPropertyValue("inside",t)&&this.axis&&this.axis.invalidate(),t?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(t){this.setPropertyValue("opposite",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(t){this.setPropertyValue("fullWidthTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(t){this.setPropertyValue("tooltipLocation2",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(t){this.setPropertyValue("cellStartLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(t){this.setPropertyValue("cellEndLocation",t)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(t){this.setPropertyValue("inversed",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(t){this.setPropertyValue("minLabelPosition",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(t){this.setPropertyValue("maxLabelPosition",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},e.prototype.toAxisPosition=function(t){return t},e.prototype.setVisibility=function(e){t.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},e}(l["a"]);r["b"].registeredClasses["AxisRenderer"]=at;var st=i("7fef"),ot=function(t){function e(){var e=t.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(t){this.setPropertyValue("location",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setDisabled=function(e){var i=t.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),i},e}(l["a"]);r["b"].registeredClasses["AxisBullet"]=ot;var lt=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=Object(d["c"])(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="horizontal"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.y=t.pixelY,e.height=t.axisLength}},e.prototype.toAxisPosition=function(t){var e=this.axis;if(e){var i=1-t,n=e.relativePositionSprite,r=e.pixelY;if(n?r=I["J"]({x:0,y:this.pixelY},this.parent,n).y:n=e.parent,n){var a=r/n.innerHeight,s=e.axisLength/n.innerHeight;return 1-(i-a)/s}}return t},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){var i=e.title;i.valign="middle",e.height instanceof d["a"]||(e.height=Object(d["c"])(100)),this.opposite?(i.rotation=90,this.line.toBack(),i.toFront()):(i.rotation=-90,i.toBack(),this.line.toFront())}},e.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=2e3,i=0,n=0,r=e,a=this.axisLength;this.opposite?this.inside&&(i=-e,r=e):this.inside||(i=-e,r=e),this.axis.updateTooltip("horizontal",{x:i,y:n,width:r,height:a})}},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredHeight-t.pixelPaddingTop-t.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:0,y:this.positionToCoordinate(t)}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.y,t.x)},e.prototype.coordinateToPosition=function(t,e){var i,n=this.axis,r=n.axisFullLength;return i=n.renderer.inversed?1-n.start-t/r:t/r+(1-n.end),D["E"](i,5)},e.prototype.getPositionRangePath=function(t,e){var i=D["i"](this.positionToCoordinate(t),0,this.axisLength),n=D["i"](this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),a=this.getWidth(),s=Math.min(i,n),o=0;return f["j"]({x:o,y:s,width:a,height:r},!0)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=f["g"]({x:0,y:0})+f["f"]({x:this.getWidth(),y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;try{I["S"](this.axis.title.measuredWidth)}catch(a){}n.x=I["J"]({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?r*=t.inside?-1:1:r*=t.inside?1:-1,t.path=f["g"]({x:0,y:0})+f["f"]({x:r,y:0}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=f["g"]({x:0,y:0})+f["f"]({x:0,y:this.axisLength})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getWidth(),n=this.axisLength,r=e.basePoint.y,a=this.baseGrid;if(r<-.2||r>n+.2)a.hide(0);else{var s=I["J"]({x:0,y:0},this.gridContainer,a.parent).x;a.path=f["g"]({x:0,y:0})+f["f"]({x:i,y:0}),a.moveTo({x:s,y:r}),a.show(0)}},e.prototype.updateLabelElement=function(t,e,i,n){b["d"](n)||(n=t.location),e+=(i-e)*n,t.isMeasured=!t.inside;var r,a=this.positionToPoint(e),s=0,o=this.gridContainer.maxWidth;this.opposite?(t.inside?(r="right","left"==t.align&&(s=-o,r="left"),"center"==t.align&&(s=-o/2,r="middle")):r="left",a.x=0+s):(t.inside?(r="left","right"==t.align&&(s=o,r="right"),"center"==t.align&&(s=o/2,r="middle")):r="right",a.x=this.measuredWidth+s),0==t.rotation&&(t.horizontalCenter=r),this.positionItem(t,a),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,a=e.startPoint,s=e.endPoint,o=e.pixelMarginLeft,l=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;a.y=D["i"](a.y,-1,this.axisLength+1),s.y=D["i"](s.y,-1,this.axisLength+1),a.y==s.y&&(a.y<0||a.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(l-o);i.x=o,i.height=0,i.width=h,n.x=o,n.height=0,n.width=h,r.width=h,r.height=Math.abs(s.y-a.y),r.x=o,r.y=s.y},e.prototype.createBreakSprites=function(t){t.startLine=new U["a"],t.endLine=new U["a"];var e=new st["a"];e.setWavedSides(!0,!1,!0,!1),t.fillShape=e},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,n=i.axisFullLength;return e=i.renderer.inversed?(t-i.start)*n:(i.end-t)*n,e},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ot&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.x=I["J"]({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(at);r["b"].registeredClasses["AxisRendererY"]=lt,v["c"].push({relevant:v["b"].widthS,state:function(t,e){if(t instanceof lt){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),v["c"].push({relevant:v["b"].widthXS,state:function(t,e){if(t instanceof lt){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var ht=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),e}(G);r["b"].registeredClasses["ValueAxisBreak"]=ht;var ut=function(t){function e(){var e=t.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values["value"].value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){return this.values["endValue"].value},set:function(t){this.setValue("endValue",t)},enumerable:!0,configurable:!0}),e}(J),pt=function(t){function e(){var e=t.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e._dsc=!1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.fillRule=function(t){var e=t.value,i=t.component;t.axisFill.disabled||(D["E"](e/i.step/2,5)==Math.round(e/i.step/2)?t.axisFill.__disabled=!0:t.axisFill.__disabled=!1)},e.prototype.createDataItem=function(){return new ut},e.prototype.createAxisBreak=function(){return new ht},e.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},e.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var t=this.series.getIndex(0),e=t.startIndex;if(t.dataItems.length>0){e>0&&e--;var i=t.endIndex;i1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E):(e=Math.floor(this.minZoomed/this._step)*this._step,0==e&&(e=this.minZoomed))}else e=Math.floor(e/this._step)*this._step;var n=this._maxZoomed+this._step;this.resetIterators();var r=this._dataItemsIterator;if(0==this._step)return;this._step=this.fixSmallStep(this._step);var a=0,s=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;this._prevStepDecimalPlaces=this._stepDecimalPlaces;while(e<=n){var o=this.isInBreak(e);if(!o){var l=r.find((function(t){return t.value===e}));l.__disabled&&(l.__disabled=!1),this.appendDataItem(l),l.axisBreak=void 0,(l.value!=e||s)&&(l.value=e,l.text=this.formatLabel(e),l.label&&l.label.invalid&&l.label.validate(),l.value>=this.min&&l.value<=this.max&&l.label&&("Y"==this.axisLetter&&l.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&l.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=l.label.currentText,this.ghostLabel.validate())),this.validateDataElement(l)}a++;var h=e;if(this.logarithmic){i=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;i>1?e=Math.pow(10,Math.log(this.min)*Math.LOG10E+a):e+=this._step}else e+=this._step;var u=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(u<1){var p=Math.round(Math.abs(Math.log(Math.abs(u))*Math.LOG10E))+2;if(p=Math.min(13,p),e=D["E"](e,p),h==e){e=n;break}}}var c=this._axisBreaks;if(c){var d=this.renderer;m["d"](c.iterator(),(function(e){if(e.breakSize>0&&D["q"](e.startPoint,e.endPoint)>d.minGridDistance){var i=e.adjustedMin;while(i<=e.adjustedMax){if(i>=e.adjustedStartValue&&i<=e.adjustedEndValue){var n=r.find((function(t){return t.value===i}));n.__disabled&&(n.__disabled=!1),t.appendDataItem(n),n.axisBreak=e,n.value!=i&&(n.value=i,n.text=t.formatLabel(i),n.label&&n.label.invalid&&n.label.validate()),t.validateDataElement(n)}i+=e.adjustedStep}}}))}}},e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var i=this.renderer,n=e.value,r=e.endValue,a=this.valueToPosition(n);e.position=a;var s=a,o=this.valueToPosition(n+this._step);b["h"](r)&&(s=this.valueToPosition(r),o=s),e.point=i.positionToPoint(a);var l=e.tick;l&&!l.disabled&&i.updateTickElement(l,a,s);var h=e.grid;h&&!h.disabled&&i.updateGridElement(h,a,s);var u=e.label;u&&!u.disabled&&i.updateLabelElement(u,a,s);var p=e.axisFill;p&&!p.disabled&&(i.updateFillElement(p,a,o),e.isRange||this.fillRule(e)),e.bullet&&i.updateBullet(e.bullet,a,s);var c=e.mask;c&&i.updateFillElement(c,a,o)},e.prototype.formatLabel=function(t){return this.adjustLabelPrecision&&0!=t?this.numberFormatter.format(t,void 0,this._stepDecimalPlaces):this.numberFormatter.format(t)},Object.defineProperty(e.prototype,"basePoint",{get:function(){var t=this.baseValue,e=this.valueToPosition(t),i=this.renderer.positionToPoint(e);return i},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseValue",{get:function(){var t=this._baseValue;return this.logarithmic&&(t=this.min),this._adapterO?this._adapterO.apply("baseValue",t):t},set:function(t){this._baseValue=t,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),e.prototype.anyToPosition=function(t){return this.valueToPosition(t)},e.prototype.valueToPoint=function(t){var e=this.valueToPosition(t),i=this.renderer.positionToPoint(e),n=this.renderer.positionToAngle(e);return{x:i.x,y:i.y,angle:n}},e.prototype.anyToPoint=function(t){return this.valueToPoint(t)},e.prototype.valueToPosition=function(t){if(b["h"](t)){var e=this.min,i=this.max;if(b["h"](e)&&b["h"](i)){var n=this._difference,r=this._axisBreaks;r&&r.length>0&&m["e"](r.iterator(),(function(n){var r=n.adjustedStartValue,a=n.adjustedEndValue;if(b["h"](r)&&b["h"](a)){if(ta?e+=(a-r)*(1-s):t0&&m["e"](a.iterator(),(function(a){var s=a.startPosition,o=a.endPosition,l=a.adjustedStartValue,h=a.adjustedEndValue;if(b["h"](l)&&b["h"](h)){if(l>i)return!1;if(D["x"]({start:l,end:h},{start:e,end:i})){l=D["B"](l,e),h=D["C"](h,i);var u=a.breakSize;if(n-=(h-l)*(1-u),t>o)e+=(h-l)*(1-u);else if(!(ti&&(i=a)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(t){if(!t.ignoreMinMax){var n=D["C"](t.value,t.endValue),r=D["B"](t.value,t.endValue);(ni||!b["h"](i))&&(i=r)}}))),this.logarithmic){var n=this.treatZeroAs;b["h"](n)&&e<=0&&(e=n),e<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(0==e&&0==i&&(i=.9,e=-.9),b["h"](this._minDefined)&&(e=this._minDefined),b["h"](this._maxDefined)&&(i=this._maxDefined),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),b["h"](e)&&b["h"](i)){this._minReal=e,this._maxReal=i,e==Number.POSITIVE_INFINITY&&(e=void 0),i==Number.NEGATIVE_INFINITY&&(i=void 0);var r=this.adjustDifference(e,i);if(e=this.fixMin(e),i=this.fixMax(i),i-e<=1/Math.pow(10,15)){if(i-e!=0)this._deltaMinMax=(i-e)/2;else{var a=Math.log(Math.abs(i))*Math.LOG10E,s=Math.pow(10,Math.floor(a));s/=10,this._deltaMinMax=s}e-=this._deltaMinMax,i+=this._deltaMinMax}e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax;var o=this.strictMinMax;b["h"](this._maxDefined)&&(o=!0);var l=this.adjustMinMax(e,i,r,this._gridCount,o);if(e=l.min,i=l.max,r=i-e,l=this.adjustMinMax(e,i,i-e,this._gridCount,!0),e=l.min,i=l.max,this.strictMinMax&&(e=b["h"](this._minDefined)?this._minDefined:this._minReal,i=b["h"](this._maxDefined)?this._maxDefined:this._maxReal,i-e<=1e-8&&(e-=this._deltaMinMax,i+=this._deltaMinMax),e-=(i-e)*this.extraMin,i+=(i-e)*this.extraMax),this._adapterO&&(e=this._adapterO.apply("min",e)),this._adapterO&&(i=this._adapterO.apply("max",i)),this._step=l.step,b["h"](e)||b["h"](i)||(this.start=0,this.end=1,this.renderer.labels.each((function(t){t.dataItem.text=""}))),(this._minAdjusted!=e||this._maxAdjusted!=i)&&b["h"](e)&&b["h"](i)){var h=this._minMaxAnimation;if(this._extremesChanged&&b["h"](this._minAdjusted)&&b["h"](this._maxAdjusted)&&this.inited){if(h&&!h.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._finalMin=e,this._finalMax=i,h=this.animateMinMax(e,i),h&&!h.isFinished()?(h.events.on("animationprogress",this.validateDataItems,this),h.events.on("animationended",(function(){t.series.each((function(t){t.validate()})),t.validateDataItems(),t.handleSelectionExtremesChange()})),this._minMaxAnimation=h):this.series.each((function(t){t.invalidate()})),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(h&&!h.isFinished()&&this._finalMax==i&&this._finalMin==e)return;this._minAdjusted=e,this._maxAdjusted=i,this._finalMin=e,this._finalMax=i,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged"),this._saveMinMax(e,i)}}this._extremesChanged=!1,this._difference=this.adjustDifference(e,i)}},e.prototype.fixMin=function(t){return t},e.prototype.fixMax=function(t){return t},e.prototype.adjustMinMax=function(t,e,i,n,r){n<=1&&(n=1),n=Math.round(n);var a=t,s=e;0===i&&(i=Math.abs(e));var o=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l/=10;var h=l;r&&(h=0),this.logarithmic?(t<=0&&(t=this.baseValue),t==1/0&&(t=1),e==-1/0&&(e=10),this.strictMinMax?(t=this._minDefined>0?this._minDefined:t,this._maxDefined>0&&(e=e)):(t=Math.pow(10,Math.floor(Math.log(Math.abs(t))*Math.LOG10E)),e=Math.pow(10,Math.ceil(Math.log(Math.abs(e))*Math.LOG10E)))):(r?(t=Math.floor(t/l)*l,e=Math.ceil(e/l)*l):(t=Math.ceil(t/l)*l-h,e=Math.floor(e/l)*l+h),t<0&&a>=0&&(t=0),e>0&&s<=0&&(e=0)),o=Math.log(Math.abs(i))*Math.LOG10E,l=Math.pow(10,Math.floor(o)),l/=10;var u=Math.ceil(i/n/l)*l,p=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),c=Math.ceil(u/p);c>5?c=10:c<=5&&c>2&&(c=5),u=Math.ceil(u/(p*c))*p*c,this.maxPrecisiona&&(t-=u)}return{min:t,max:e,step:u}},Object.defineProperty(e.prototype,"min",{get:function(){var t=this._minAdjusted;return b["h"](t)||(t=this._minDefined),t},set:function(t){this._minDefined!=t&&(this._minDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(t){this.setPropertyValue("extraMin",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(t){this.setPropertyValue("extraMax",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){var t=this._maxAdjusted;return b["h"](t)||(t=this._maxDefined),t},set:function(t){this._maxDefined!=t&&(this._maxDefined=t,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(t){this.setPropertyValue("adjustLabelPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.registerSeries=function(e){return new s["c"]([t.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},e.prototype.handleSelectionExtremesChange=function(){var t,e,i=this,n=!0;if(m["d"](this.series.iterator(),(function(r){if(!r.ignoreMinMax&&!r.isHidden&&!r.outOfRange){r.visible&&!r.isHiding&&(n=!1);var a=r.selectionMin(i),s=r.selectionMax(i);b["h"](a)&&(!b["h"](t)||ae)&&(e=s)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(i){if(!i.ignoreMinMax){var n=D["C"](i.value,i.endValue),r=D["B"](i.value,i.endValue);ne&&(e=r)}})),b["h"](this._minDefined)?t=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(t=this._minReal),b["h"](this._maxDefined)?e=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(e=this._maxReal),t==e){t-=this._deltaMinMax,e+=this._deltaMinMax;var r=this.adjustMinMax(t,e,0,this._gridCount,this.strictMinMax);t=r.min,e=r.max}var a=this.adjustDifference(t,e),s=this.adjustMinMax(t,e,a,this._gridCount);t=s.min,e=s.max,t-=(e-t)*this.extraMin,e+=(e-t)*this.extraMax,t=D["i"](t,this.min,this.max),e=D["i"](e,this.min,this.max),a=this.adjustDifference(t,e),s=this.adjustMinMax(t,e,a,this._gridCount,!0),t=s.min,e=s.max,this.strictMinMax&&(t=D["B"](t,this._minDefined),e=D["C"](e,this._maxDefined));var o=s.step;this.syncWithAxis&&(s=this.syncAxes(t,e,o),t=s.min,e=s.max,this.invalidate()),o=s.step,this._difference=this.adjustDifference(this.min,this.max);var l=this.valueToPosition(t),h=this.valueToPosition(e);n&&!this.syncWithAxis&&(l=0,h=1);var u=0;this.syncWithAxis?(u=5,this.setCache(t+"-"+e,o)):(this._step==o&&this._minZoomed==t&&this._maxZoomed==e||(this._dsc=!0),this._step=o,this._minZoomed=t,this._maxZoomed=e),this.keepSelection||this.zoom({start:l,end:h},!1,!1,u)},Object.defineProperty(e.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(t){this.setPropertyValue("strictMinMax",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(t){this.setPropertyValue("logarithmic",t)&&(this.invalidate(),this.series.each((function(t){t.invalidateDataItems()})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(t){this.setPropertyValue("keepSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(t){this.setPropertyValue("includeRangesInMinMax",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(t){this.setPropertyValue("maxPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(t){this.setPropertyValue("extraTooltipPrecision",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e.prototype.handleExtremesChange=function(){var t=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){var e=0;this.dataItems.each((function(i){i.label&&i.label.pixelWidth>e&&(t.ghostLabel.text=i.label.currentText)}))}},e.prototype.getX=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionX(t,e,i,n,r)).x},e.prototype.getPositionX=function(t,e,i,n,r){var a=t.getWorkingValue(e);b["d"](n)||(n="valueX");var s=t.getValue(n,"stack");b["h"](a)||(a=this.baseValue,this.logarithmic&&s>0&&(a=0));var o=this.valueToPosition(a+s);return r&&(o=D["i"](o,r.start,r.end)),o},e.prototype.getY=function(t,e,i,n,r){return this.renderer.positionToPoint(this.getPositionY(t,e,i,n,r)).y},e.prototype.getPositionY=function(t,e,i,n,r){var a=t.getWorkingValue(e);b["d"](n)||(n="valueY");var s=t.getValue(n,"stack");b["h"](a)||(a=this.baseValue,this.logarithmic&&s>0&&(a=0));var o=this.valueToPosition(a+s);return r&&(o=D["i"](o,r.start,r.end)),o},e.prototype.getAngle=function(t,e,i,n,r){var a=t.getWorkingValue(e),s=t.getValue(n,"stack");b["h"](a)||(a=this.baseValue);var o=this.valueToPosition(a+s);return r&&(o=D["i"](o,r.start,r.end)),this.positionToAngle(o)},e.prototype.getAnyRangePath=function(t,e,i){var n=this.valueToPosition(t),r=this.valueToPosition(e);return this.getPositionRangePath(n,r)},e.prototype.getTooltipText=function(t){var e=D["E"](this.positionToValue(t),this._stepDecimalPlaces+this.extraTooltipPrecision),i=this.tooltip.numberFormatter.format(e);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},e.prototype.zoomToValues=function(t,e,i,n){var r=(t-this.min)/(this.max-this.min),a=(e-this.min)/(this.max-this.min);this.zoom({start:r,end:a},i,n)},Object.defineProperty(e.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:D["B"](this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:D["C"](this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),e.prototype.fixAxisBreaks=function(){var e=this;t.prototype.fixAxisBreaks.call(this);var i=this._axisBreaks;i&&i.length>0&&i.each((function(t){var i=t.adjustedStartValue,n=t.adjustedEndValue,r=n-i,a=Math.ceil(r*t.breakSize)*e._gridCount/(e.max-e.min),s=e.adjustMinMax(i,n,r,a,!0);t.adjustedStep=s.step,t.adjustedMin=s.min,t.adjustedMax=s.max})),this._difference=this.adjustDifference(this.min,this.max)},e.prototype.getPositionLabel=function(t){var e=this.positionToValue(t);return this.numberFormatter.format(e)},e.prototype.showTooltipAt=function(t){this.showTooltipAtPosition(this.valueToPosition(t))},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(e.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(t){var e=this;this.setPropertyValue("syncWithAxis",t,!0)&&t&&(this._disposers.push(t.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(t.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",(function(){e.clearCache(),e._disposers.push(r["b"].events.once("exitframe",(function(){e.handleSelectionExtremesChange()})))}),this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(t){this.setPropertyValue("treatZeroAs",t,!0)},enumerable:!0,configurable:!0}),e.prototype.syncAxes=function(t,e,i){var n=this.syncWithAxis;if(n){b["h"](t)||(t=this.min),b["h"](e)||(e=this.max),b["h"](i)||(i=this._step);var r=Math.round((n.maxZoomed-n.minZoomed)/n.step),a=Math.round((e-t)/i);if(b["h"](r)&&b["h"](a)){var s=!1,o=0,l=.01*(e-t),h=t,u=e,p=i;while(1!=s)if(s=this.checkSync(h,u,p,r),o++,o>1e3&&(s=!0),s)t=h,e=u,i=p;else{o/3==Math.round(o/3)?(h=t-l*o,t>=0&&h<0&&(h=0)):(u=e+l*o,u<=0&&u>0&&(u=0));var c=this.adjustMinMax(h,u,u-h,this._gridCount,!0);h=c.min,u=c.max,p=c.step}}}return{min:t,max:e,step:i}},e.prototype.checkSync=function(t,e,i,n){for(var r=(e-t)/i,a=1;ah?(t.startIndex=0,t.endIndex=0,t.outOfRange=!0):(t.outOfRange=!1,t.startIndex=o,t.endIndex=c),!r&&t.dataRangeInvalid&&t.validateDataRange()}}))},e.prototype.findFirst=function(t,e,i){var n=t.index;if(n>0){var r=t.component,a=r.dataItems.getIndex(n-1),s=a[i];return!s||s.getTime()t._minDifference[i.uid]&&(e=t._minDifference[i.uid])})),e!=Number.MAX_VALUE&&0!=e||(e=dt["d"]("day")),e},enumerable:!0,configurable:!0}),e.prototype.seriesDataChangeUpdate=function(t){this._minDifference[t.uid]=Number.MAX_VALUE},e.prototype.postProcessSeriesDataItems=function(t){var e=this;this._firstWeekDay=this.getFirstWeekDay(),t?this.seriesGroupUpdate(t):this.series.each((function(t){e.seriesGroupUpdate(t)})),this.addEmptyUnitsBreaks()},e.prototype.seriesGroupUpdate=function(t){var e=this;JSON.stringify(t._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(t._baseInterval[this.uid]=this.mainBaseInterval,t.mainDataSet.each((function(t){e.postProcessSeriesDataItem(t)})),this.groupData&&this.groupSeriesData(t))},e.prototype.groupSeriesData=function(t){var e=this;if(t.baseAxis==this&&t.dataItems.length>0&&!t.dataGrouped){t.bulletsContainer.removeChildren();var i=[],n=this.mainBaseInterval,r=dt["d"](n.timeUnit,n.count);this.groupIntervals.each((function(t){var n=dt["d"](t.timeUnit,t.count);(n>r&&nl||!b["h"](h.low))&&(h.low=l),(h.high0&&i.each((function(t){var i=Math.ceil(e._gridCount*(Math.min(e.end,t.endPosition)-Math.max(e.start,t.startPosition))/(e.end-e.start));t.gridInterval=e.chooseInterval(0,t.adjustedEndValue-t.adjustedStartValue,i);var n=dt["h"](new Date(t.adjustedStartValue),t.gridInterval.timeUnit,t.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);n.getTime()>t.startDate.getTime()&&dt["a"](n,t.gridInterval.timeUnit,t.gridInterval.count,e._df.utc),t.gridDate=n}))},e.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},e.prototype.getGridDate=function(t,e){var i=this._gridInterval.timeUnit,n=this._gridInterval.count;dt["h"](t,i,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var r=t.getTime(),a=dt["c"](t),s=dt["a"](a,i,e,this._df.utc).getTime(),o=this.isInBreak(s);o&&o.endDate&&(a=new Date(o.endDate.getTime()),dt["h"](a,i,n,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),a.getTime()0){var i=e.gridInterval.timeUnit,n=e.gridInterval.count;if(D["q"](e.startPoint,e.endPoint)>4*l.minGridDistance){var r,s=e.gridDate.getTime(),o=0,h=function(){var l=dt["c"](e.gridDate);if(s=dt["a"](l,i,n*o,t._df.utc).getTime(),o++,s>e.adjustedStartValue&&sthis.baseInterval.count&&(a=r+(a-r)/(this._gridInterval.count/this.baseInterval.count)),t.position=r;var o=t.tick;o&&!o.disabled&&e.updateTickElement(o,r,a);var l=t.grid;l&&!l.disabled&&e.updateGridElement(l,r,a);var h=t.axisFill;h&&!h.disabled&&(e.updateFillElement(h,r,s),t.isRange||this.fillRule(t));var u=t.mask;u&&e.updateFillElement(u,r,a),t.bullet&&e.updateBullet(t.bullet,r,a);var p=t.label;if(p&&!p.disabled){var c=p.location;0==c&&(c=1!=this._gridInterval.count||"week"==this._gridInterval.timeUnit||t.isRange?0:.5),e.updateLabelElement(p,r,a,c)}}},Object.defineProperty(e.prototype,"baseDuration",{get:function(){return dt["d"](this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),e.prototype.adjustMinMax=function(t,e){return{min:t,max:e,step:this.baseDuration}},e.prototype.fixMin=function(t){var e=this.baseInterval,i=dt["h"](new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),n=dt["a"](new Date(i),e.timeUnit,e.count,this._df.utc).getTime();return i+(n-i)*this.startLocation},e.prototype.fixMax=function(t){var e=this.baseInterval,i=dt["h"](new Date(t),e.timeUnit,e.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),n=dt["a"](new Date(i),e.timeUnit,e.count,this._df.utc).getTime();return i+(n-i)*this.endLocation},e.prototype.chooseInterval=function(t,e,i,r){r||(r=this.gridIntervals);var a=r.getIndex(t),s=dt["d"](a.timeUnit,a.count),o=r.length-1;if(t>=o)return Object(n["a"])({},r.getIndex(o));var l=Math.ceil(e/s);return e0?Object(n["a"])({},r.getIndex(t-1)):l<=i?Object(n["a"])({},r.getIndex(t)):t+1l&&(this._minDifference[n.uid]=l)}var h=i-o;h>0&&this._minDifference[n.uid]>h&&(this._minDifference[n.uid]=h),this._prevSeriesTime[n.uid]=i,n._baseInterval[this.uid]&&this.postProcessSeriesDataItem(t)}},e.prototype.updateAxisBySeries=function(){t.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=dt["d"]("day",27)&&"week"==e.timeUnit&&(e.timeUnit="month",e.count=1),"month"==e.timeUnit&&(this.minDifference>=dt["d"]("day",58)&&1==e.count&&(e.count=2),this.minDifference>=dt["d"]("day",87)&&2==e.count&&(e.count=3),this.minDifference>=dt["d"]("day",174)&&5==e.count&&(e.count=6)),this.minDifference>=dt["d"]("hour",23)&&"hour"==e.timeUnit&&(e.timeUnit="day",e.count=1),this.minDifference>=dt["d"]("week",1)-dt["d"]("hour",1)&&"day"==e.timeUnit&&(e.timeUnit="week",e.count=1),this.minDifference>=dt["d"]("year",1)-dt["d"]("day",1.01)&&"month"==e.timeUnit&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(e.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(t){JSON.stringify(this._baseInterval)!=JSON.stringify(t)&&(this._baseInterval=t,this._mainBaseInterval=t,b["h"](t.count)||(t.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(t){if(t){var e=this.axisBreaks.template;e.startLine.disabled=!0,e.endLine.disabled=!0,e.fillShape.disabled=!0,e.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",t)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(t){this.setPropertyValue("tooltipDateFormat",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(t){this.setPropertyValue("markUnitChange",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e,i=this.positionToDate(t);if(i=dt["h"](i,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=i,b["d"](this.tooltipDateFormat))e=this._df.format(i,this.tooltipDateFormat,-1==["day","month","week","year"].indexOf(this.baseInterval.timeUnit));else{var n=this.dateFormats.getKey(this.baseInterval.timeUnit);e=n?this._df.format(i,n):this.getPositionLabel(t)}return this._adapterO?this._adapterO.apply("getTooltipText",e):e},e.prototype.roundPosition=function(t,e,i){var n=this.baseInterval,r=n.timeUnit,a=n.count,s=this.positionToDate(t);if(dt["h"](s,r,a,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),e>0&&dt["a"](s,r,e*a,this._df.utc),i>0&&i<1&&s.setTime(s.getTime()+this.baseDuration*i),this.isInBreak(s.getTime()))while(s.getTime()s.getTime()&&Math.abs(o.getTime()-a)f&&(f=i)})),this.groupMin[c]=d,this.groupMax[c]=f),t=D["i"](t,d,f),e=D["i"](e,d,f),a&&(l&&(t=e-o,t=D["i"](t,d,f)),h&&(e=t+o,e=D["i"](e,d,f)));g=(t-d)/(f-d),y=(e-d)/(f-d);this.zoom({start:g,end:y},i,r)}}else{var g=this.valueToPosition(t),y=this.valueToPosition(e);this.zoom({start:g,end:y},i,r)}},e.prototype.asIs=function(e){return"baseInterval"==e||t.prototype.asIs.call(this,e)},e.prototype.copyFrom=function(e){var i=this;t.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each((function(t){i.groupIntervals.push(Object(n["a"])({},t))})),this.gridIntervals.clear(),e.gridIntervals.each((function(t){i.gridIntervals.push(Object(n["a"])({},t))})),e._baseInterval&&(this.baseInterval=e._baseInterval)},e.prototype.showTooltipAtPosition=function(e,i){var n=this;if(i||(e=this.toAxisPosition(e)),this.snapTooltip){var r,a=this.positionToDate(e),s=a.getTime();if(this.series.each((function(t){if(t.baseAxis==n){var i=n.getSeriesDataItem(t,e,!0);if(i){var a=void 0;t.xAxis==n&&(a=i.dateX),t.yAxis==n&&(a=i.dateY),r?Math.abs(r.getTime()-s)>Math.abs(a.getTime()-s)&&(r=a):r=a}}})),r){var o=r.getTime();r=dt["h"](new Date(o),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o=r.getTime();var l=this.renderer.tooltipLocation;0==l&&(l=1e-4),r=new Date(r.getTime()+this.baseDuration*l),e=this.dateToPosition(r),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each((function(t){var e=t.dataItemsByAxis.getKey(n.uid).getKey(o+t.currentDataSetId),i=t.showTooltipAtDataItem(e);i?n.chart._seriesPoints.push({series:t,point:i}):(t.tooltipText||t.tooltipHTML)&&t.hideTooltip()}))}}t.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(t){var e=this;this.setPropertyValue("groupData",t)&&(this.series.each((function(i){i.setDataSet(""),t&&!i.dataGrouped&&i.inited&&(i._baseInterval[e.uid]=e.mainBaseInterval,e.groupSeriesData(i))})),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(t){this.setPropertyValue("groupInterval",t)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(t){this.setPropertyValue("groupCount",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(t){this.setPropertyValue("timezoneOffset",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(t){this.setPropertyValue("timezone",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),e.prototype.makeGap=function(t,e){var i=t.component;if(t&&e&&!i.connect&&b["h"](i.autoGapCount)&&i.baseAxis==this){var n=t.dates["date"+this.axisLetter],r=e.dates["date"+this.axisLetter];if(n&&r){var a=n.getTime(),s=r.getTime();if(a-s>i.autoGapCount*this.baseDuration)return!0}}return!1},Object.defineProperty(e.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),e.prototype._saveMinMax=function(t,e){var i=this.groupInterval;i||(i=this.mainBaseInterval);var n=i.timeUnit+i.count;this._intervalMin[n]=t,this._intervalMax[n]=e},e}(pt);r["b"].registeredClasses["DateAxis"]=gt,r["b"].registeredClasses["DateAxisDataItem"]=ft;var yt=function(t){function e(){var e=t.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=Object(d["c"])(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.setAxis=function(e){t.prototype.setAxis.call(this,e),e.layout="vertical"},e.prototype.updateGridContainer=function(){var t=this.axis;if(t){var e=this.gridContainer;e.x=t.pixelX,e.width=t.axisLength}},e.prototype.processRenderer=function(){t.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof d["a"]||(e.width=Object(d["c"])(100)),I["S"](this.line);var i=e.title;i.rotation=0,i.align="center",this.opposite?(this.line.toFront(),i.toBack()):(i.toFront(),this.toBack(),this.line.toBack())}},e.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=1e3,i=this.line.pixelX,n=this.line.pixelY,r=this.axisLength,a=e;this.opposite?this.inside||(n=-e,a=e):this.inside&&(n=-e,a=e),this.axis.updateTooltip("vertical",{x:i,y:n,width:r,height:a})}},e.prototype.updateLabelElement=function(t,e,i,n){b["d"](n)||(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);t.isMeasured=!t.inside;var a,s=0,o=this.gridContainer.maxHeight;this.opposite?(t.inside?(a="top","bottom"==t.valign&&(s=o,a="bottom"),"middle"==t.valign&&(s=o/2,a="middle")):a="bottom",r.y=s):(t.inside?(a="bottom","top"==t.valign&&(s=-o,a="top"),"middle"==t.valign&&(s=-o/2,a="middle")):a="top",r.y+=s),0==t.rotation&&(t.verticalCenter=a),this.positionItem(t,r),this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(e.prototype,"axisLength",{get:function(){var t=this.axis;return t.measuredWidth-t.pixelPaddingRight-t.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){return{x:this.positionToCoordinate(t),y:0}},e.prototype.pointToPosition=function(t){return this.coordinateToPosition(t.x,t.y)},e.prototype.getPositionRangePath=function(t,e){var i=D["i"](this.positionToCoordinate(t),0,this.axisLength),n=D["i"](this.positionToCoordinate(e),0,this.axisLength),r=Math.abs(n-i),a=this.getHeight(),s=Math.min(i,n),o=0;return f["j"]({x:s,y:o,width:r,height:a},!0)},e.prototype.updateBreakElement=function(e){t.prototype.updateBreakElement.call(this,e);var i=e.startLine,n=e.endLine,r=e.fillShape,a=e.startPoint,s=e.endPoint,o=e.pixelMarginLeft,l=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;a.x=D["i"](a.x,-1,this.axisLength+1),s.x=D["i"](s.x,-1,this.axisLength+1),a.x==s.x&&(a.x<0||a.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,i.y=o,i.width=0,i.height=l,n.y=o,n.width=0,n.height=l,r.height=l,r.width=Math.abs(s.x-a.x),r.y=o,r.x=a.x},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);t.path=f["g"]({x:0,y:0})+f["f"]({x:0,y:this.getHeight()}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e),r=t.length;n.y=I["J"]({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?r*=t.inside?1:-1:r*=t.inside?-1:1,t.path=f["g"]({x:0,y:0})+f["f"]({x:0,y:r}),this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateAxisLine=function(){this.line.path=f["g"]({x:0,y:0})+f["f"]({x:this.axisLength,y:0})},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.axis,i=this.getHeight(),n=this.axisLength,r=this.baseGrid,a=e.basePoint.x;if(a<-.2||a>n+.2)r.hide(0);else{var s=I["J"]({x:0,y:0},this.gridContainer,r.parent).y;r.path=f["g"]({x:0,y:0})+f["f"]({x:0,y:i}),r.moveTo({x:a,y:s}),r.show(0)}},e.prototype.createBreakSprites=function(t){t.startLine=new U["a"],t.endLine=new U["a"];var e=new st["a"];e.setWavedSides(!1,!0,!1,!0),t.fillShape=e},e.prototype.toAxisPosition=function(t){var e=t,i=this.axis;if(i){var n=i.relativePositionSprite,r=i.pixelX;if(n?r=I["J"]({x:this.pixelX,y:0},this.parent,n).x:n=i.parent,n){var a=r/n.innerWidth,s=i.axisLength/n.innerWidth;return(e-a)/s}}return t},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ot&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);r.y=I["J"]({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e}(at);r["b"].registeredClasses["AxisRendererX"]=yt,v["c"].push({relevant:v["b"].heightXS,state:function(t,e){if(t instanceof yt){var i=t.states.create(e);return i.properties.inside=!0,i.properties.maxLabelPosition=.9,i.properties.minLabelPosition=.1,i}return null}}),v["c"].push({relevant:v["b"].heightXXS,state:function(t,e){if(t instanceof yt){var i=t.states.create(e);return i.properties.disabled=!0,i}return null}});var mt=function(t){function e(){var e=t.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(t){this.setPropertyValue("startCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(t){this.setPropertyValue("endCategory",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startValue",{get:function(){var t=this.getPropertyValue("startCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("startValue")},set:function(t){this.setPropertyValue("startValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endValue",{get:function(){var t=this.getPropertyValue("endCategory");return t?this.axis.categoryToIndex(t):this.getPropertyValue("endValue")},set:function(t){this.setPropertyValue("endValue",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e}(G);r["b"].registeredClasses["CategoryAxisBreak"]=mt;var bt=function(t){function e(){var e=t.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(t){var e=this.properties.category;this.setProperty("category",t),b["d"](e)&&e!=t&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(t){this.setProperty("endCategory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(t){t!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",t),this.component&&(this.component.invalidateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),e}(J),vt=function(t){function e(){var e=t.call(this)||this;e.dataItemsByCategory=new P["a"],e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var i=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",(function(t){i.removeKey(t.oldValue.category)}))),e}return Object(n["c"])(e,t),e.prototype.createDataItem=function(){return new bt},e.prototype.createAxisBreak=function(){return new mt},e.prototype.processSeriesDataItem=function(e,i){t.prototype.processSeriesDataItem.call(this,e,i);var n=e["category"+this.axisLetter];if(b["d"](n)){var r=this.dataItemsByCategory.getKey(n);if(r){var a=e.component.uid,s=r.seriesDataItems[a];s||(s=[],r.seriesDataItems[a]=s),s.push(e)}}else e.component.dataItems.remove(e)},e.prototype.validateDataRange=function(){var i=this;t.prototype.validateDataRange.call(this),m["d"](this._series.iterator(),(function(t){if(t.xAxis instanceof e&&t.yAxis instanceof e)t.invalidateDataRange();else{var n=i.positionToIndex(i.start),r=i.positionToIndex(i.end);r>=i.dataItems.length&&r--;for(var a=t.uid,s=void 0,o=void 0,l=n;l<=r;l++){var h=i.dataItems.getIndex(l);if(h){var u=h.seriesDataItems[a];if(u)for(var p=0;po)&&(o=d)}}}}b["h"](s)?t.startIndex=s:t.start=i.start,b["h"](o)?t.endIndex=o+1:t.end=i.end,i._axisBreaks&&i._axisBreaks.length>0&&t.invalidateDataRange()}}))},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this);var i=this.dataItems.length,n=D["i"](Math.floor(this.start*i-1),0,i),r=D["i"](Math.ceil(this.end*i),0,i);this.renderer.invalid&&this.renderer.validate();var a=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),s=Math.min(this.dataItems.length,Math.ceil((r-n)/a));if(this._startIndex=Math.floor(n/s)*s,this._endIndex=Math.ceil(this.end*i),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=s,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),n=D["B"](0,this._startIndex-this._frequency),r=D["C"](this.dataItems.length,this._endIndex+this._frequency);for(var o=0,l=0;l0)for(r=i;r<=n;r+=s){a=e.dataItems.getIndex(r);a.__disabled=!1,e.appendDataItem(a),e.validateDataElement(a,o),o++}}}))}this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},e.prototype.validateDataElement=function(e,i,n){t.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var r=this.renderer;b["h"](n)||(n=this.categoryToIndex(e.category));var a=this.categoryToIndex(e.endCategory);b["h"](a)||(a=n);var s,o,l,h=this.indexToPosition(n,e.locations.category),u=this.indexToPosition(a,e.locations.endCategory);e.position=h,e.isRange&&(s=a,o=this.indexToPosition(n,e.locations.category),l=this.indexToPosition(s,e.locations.endCategory)),e.point=r.positionToPoint(h);var p=e.tick;p&&!p.disabled&&r.updateTickElement(p,h,u);var c=e.grid;c&&!c.disabled&&r.updateGridElement(c,h,u);var d=e.label;d&&!d.disabled&&(e.isRange&&void 0!=d.text||(e.text=e.text),r.updateLabelElement(d,h,u),(r instanceof lt&&e.label.measuredWidth>this.ghostLabel.measuredWidth||r instanceof yt&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var f=e.axisFill;f&&!f.disabled&&(e.isRange||(s=n+this._frequency,o=this.indexToPosition(n,f.location),l=this.indexToPosition(s,f.location)),r.updateFillElement(f,o,l),e.isRange||this.fillRule(e,i)),e.bullet&&r.updateBullet(e.bullet,h,u);var g=e.mask;g&&r.updateFillElement(g,o,l)},e.prototype.disposeData=function(){this.dataItemsByCategory.clear(),t.prototype.disposeData.call(this)},e.prototype.processDataItem=function(e,i){e&&(t.prototype.processDataItem.call(this,e,i),b["d"](e.category)&&this.dataItemsByCategory.setKey(e.category,e))},e.prototype.getDataItem=function(t){var e=t[this.dataFields.category];if(b["d"](e)){var i=this.dataItemsByCategory.getKey(e);return i||this.dataItems.create()}},e.prototype.indexToPosition=function(t,e){b["h"](e)||(e=.5);var i=this.startIndex,n=this.endIndex,r=this.adjustDifference(i,n),a=this.startLocation,s=this.endLocation;if(r-=a,r-=1-s,this._axisBreaks){var o=this._axisBreaks;m["e"](o.iterator(),(function(e){var r=e.adjustedStartValue,a=e.adjustedEndValue;if(ta?i+=(a-r)*(1-s):t=0;i--){var n=t.dataItems.getIndex(i);if(t.xAxis==this&&n.categoryX==e)return n;if(t.yAxis==this&&n.categoryY==e)return n}},e.prototype.getSeriesDataItemByCategory=function(t,e){var i,n=this;return e.dataItems.each((function(r){e.xAxis==n?r.categoryX==t&&(i=r):e.yAxis==n&&r.categoryY==t&&(i=r)})),i},e.prototype.getSeriesDataItem=function(t,e,i){var n=this;if(b["h"](e)){var r=this.positionToIndex(e);r>=this.dataItems.length&&r--;var a=this.dataItems.getIndex(r);if(a){var s,o=a.category,l=t.dataItems.getIndex(r);if(l){if(t.xAxis==this&&l.categoryX==o)return l;if(t.yAxis==this&&l.categoryY==o)return l}return t.dataItems.each((function(e){t.xAxis==n&&e.categoryX==o&&(s||(s=e),Math.abs(r-s.index)>Math.abs(r-e.index)&&(s=e)),t.yAxis==n&&e.categoryY==o&&(s||(s=e),Math.abs(r-s.index)>Math.abs(r-e.index)&&(s=e))})),s}}},e.prototype.getX=function(t,e,i,n,r){var a=this.getPositionX(t,e,i,n,r);return b["g"](a)?this.basePoint.x:this.renderer.positionToPoint(a).x},e.prototype.getPositionX=function(t,e,i,n,r){var a;return b["d"](e)&&(a=this.categoryToPosition(t.categories[e],i)),r&&(a=D["i"](a,r.start,r.end)),a},e.prototype.getY=function(t,e,i,n,r){var a=this.getPositionY(t,e,i,n,r);return b["g"](a)?this.basePoint.y:this.renderer.positionToPoint(a).y},e.prototype.getPositionY=function(t,e,i,n,r){var a;return b["d"](e)&&(a=this.categoryToPosition(t.categories[e],i)),r&&(a=D["i"](a,r.start,r.end)),a},e.prototype.getAngle=function(t,e,i,n,r){var a=this.categoryToPosition(t.categories[e],i);return r&&(a=D["i"](a,r.start,r.end)),this.positionToAngle(a)},e.prototype.getCellStartPosition=function(t){return this.roundPosition(t,0)},e.prototype.getCellEndPosition=function(t){return this.roundPosition(t,1)},e.prototype.getTooltipText=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return this.tooltipDataItem=e,this.tooltip.dataItem=e,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",e.category):e.category},e.prototype.positionToIndex=function(t){t=D["E"](t,10),t<0&&(t=0),t>1&&(t=1);var e=this.startIndex,i=this.endIndex,n=i-e-this.startLocation-(1-this.endLocation);t+=1/n*this.startLocation;var r=null;if(this._axisBreaks){var a=this._axisBreaks;m["e"](a.iterator(),(function(a){var s=a.startPosition,o=a.endPosition,l=a.adjustedStartValue,h=a.adjustedEndValue;l=D["B"](l,e),h=D["C"](h,i);var u=a.breakSize;if(n-=(h-l)*(1-u),t>o)e+=(h-l)*(1-u);else if(!(t=this.dataItems.length&&(r=this.dataItems.length-1),r},e.prototype.positionToCategory=function(t){return this.getPositionLabel(t)},e.prototype.getPositionLabel=function(t){var e=this.dataItems.getIndex(this.positionToIndex(t));if(e)return e.category},Object.defineProperty(e.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),e.prototype.initRenderer=function(){t.prototype.initRenderer.call(this);var e=this.renderer;e.baseGrid.disabled=!0},Object.defineProperty(e.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(t){this.setPropertyValue("sortBySeries",t,!0)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){e&&b["d"](e.sortBySeries)&&b["j"](e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),t.prototype.processConfig.call(this,e)},e}($);r["b"].registeredClasses["CategoryAxis"]=vt,r["b"].registeredClasses["CategoryAxisDataItem"]=bt;var xt=function(t){function e(){var e=t.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(t){this.setValue("valueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(t){this.setValue("customValue",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(t){this.setValue("valueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(t){this.setDate("dateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(t){this.setDate("dateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(t){this.setCategory("categoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(t){this.setCategory("categoryY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(t){this.setValue("openValueX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(t){this.setValue("openValueY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(t){this.setDate("openDateX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(t){this.setDate("openDateY",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(t){this.setCategory("openCategoryX",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(t){this.setCategory("openCategoryY",t)},enumerable:!0,configurable:!0}),e.prototype.getMin=function(t,e,i){var n,r=this;return b["h"](i)||(i=0),B["d"](t,(function(t){var a;a=e?r.getWorkingValue(t):r.getValue(t),a+=i,(an||!b["h"](n))&&(n=a)})),n},e}(W),_t=function(t){function e(){var e=t.call(this)||this;return e.groupFields={},e._xAxis=new s["d"],e._yAxis=new s["d"],e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e._maxxX=1e5,e._maxxY=1e5,e._propertiesChanged=!1,e.outOfRange=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new p["a"],e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e._showBullets=!1,e.tooltip.pointerOrientation="horizontal",e.properties.stackToNegative=!0,e.hideTooltipWhileZooming=!0,e.setPropertyValue("maskBullets",!0),e.tooltip.events.on("hidden",(function(){e.returnBulletDefaultState()}),void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.observe(p["b"],(function(){e.inited&&(e._propertiesChanged=!0,e.legendDataItem&&(e.legendDataItem.childrenCreated=!1),e.chart&&e.chart.legend&&e.chart.legend.invalidateDataItems(),e.invalidate())}),void 0,!1),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},e.prototype.createDataItem=function(){return new xt},e.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},e.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},e.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),t.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!b["d"](this.dataFields[this._xField])||!b["d"](this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},e.prototype.processDataItem=function(e,i){try{t.prototype.processDataItem.call(this,e,i),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(n){this._chart&&this._chart.raiseCriticalError(n)}},e.prototype.updateDataItem=function(e){t.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},e.prototype.setInitialWorkingValues=function(t){},e.prototype.disposeData=function(){t.prototype.disposeData.call(this);var e=this.xAxis,i=this.yAxis;if(e){var n=this.dataItemsByAxis.getKey(e.uid);n&&n.clear(),e instanceof vt&&this.clearCatAxis(e)}if(i){var r=this.dataItemsByAxis.getKey(i.uid);r&&r.clear(),i instanceof vt&&this.clearCatAxis(i)}},e.prototype.clearCatAxis=function(t){var e=this.uid;t.dataItems.each((function(t){t.seriesDataItems[e]&&(t.seriesDataItems[e]=[])}))},e.prototype.defineFields=function(){var t=this.xAxis,e=this.yAxis;if(t&&e){var i=t.axisFieldName,n=i+"X",r="open"+I["c"](i)+"X",a=e.axisFieldName,s=a+"Y",o="open"+I["c"](a)+"Y";this._xField=n,this._yField=s,this.dataFields[r]&&(this._xOpenField=r),this.dataFields[o]&&(this._yOpenField=o),this.dataFields[o]||this.baseAxis!=e||(this._yOpenField=s),this.dataFields[r]||this.baseAxis!=t||(this._xOpenField=n),this.stacked&&this.baseAxis==t&&(this._xOpenField=n),this.stacked&&this.baseAxis==e&&(this._yOpenField=s),t instanceof vt&&e instanceof vt&&(this._yOpenField||(this._yOpenField=s)),this._xValueFields=[],this._yValueFields=[],this.addValueField(t,this._xValueFields,this._xField),this.addValueField(t,this._xValueFields,this._xOpenField),this.addValueField(e,this._yValueFields,this._yField),this.addValueField(e,this._yValueFields,this._yOpenField)}},e.prototype.addValueField=function(t,e,i){t instanceof pt&&b["d"](this.dataFields[i])&&-1==e.indexOf(i)&&e.push(i)},e.prototype.setCategoryAxisField=function(t,e){b["d"](this.dataFields[t])||(this.dataFields[t]=e.dataFields.category)},e.prototype.setDateAxisField=function(t,e){b["d"](this.dataFields[t])||(this.dataFields[t]=e.dataFields.date)},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.createMask()},e.prototype.createMask=function(){if(this.mainContainer.mask){var t=this.getMaskPath();m["d"](this.axisRanges.iterator(),(function(e){e.axisFill.fillPath&&(e.axisFill.validate(),t+=e.axisFill.fillPath)})),this.mainContainer.mask.path=t}},e.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?f["j"]({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},e.prototype.getAxisField=function(t){return t==this.xAxis?this.xField:t==this.yAxis?this.yField:void 0},e.prototype.validateDataItems=function(){var e=this.chart;e&&(this._maxxX=D["B"](1e5,2*e.plotContainer.maxWidth),this._maxxY=D["B"](1e5,2*e.plotContainer.maxHeight));var i=this.xAxis,n=this.yAxis;i&&n&&(i.updateAxisBySeries(),n.updateAxisBySeries()),t.prototype.validateDataItems.call(this),i&&n&&(i.postProcessSeriesDataItems(this),n.postProcessSeriesDataItems(this))},e.prototype.validateDataRange=function(){var e=this.xAxis,i=this.yAxis;e&&i&&(e.dataRangeInvalid&&e.validateDataRange(),i.dataRangeInvalid&&i.validateDataRange()),t.prototype.validateDataRange.call(this)},e.prototype.validate=function(){var e=this.xAxis,i=this.yAxis;if(e&&i){e.invalid&&e.validate(),i.invalid&&i.validate(),this.y=i.pixelY,this.x=e.pixelX,this._showBullets=!0;var n=this.minBulletDistance;b["h"](n)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)0){var r=this.xAxis,a=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),r instanceof gt&&r==this.baseAxis&&(this._tmin.setKey(r.uid,n.getIndex(0).dateX.getTime()),this._tmax.setKey(r.uid,n.getIndex(n.length-1).dateX.getTime()),this.dispatch("extremeschanged")),a instanceof gt&&a==this.baseAxis&&(this._tmin.setKey(a.uid,n.getIndex(0).dateY.getTime()),this._tmax.setKey(a.uid,n.getIndex(n.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return i},e.prototype.processValues=function(e){t.prototype.processValues.call(this,e);var i=this.xAxis,n=this.yAxis;if(i&&n){var r=this.dataItems,a=1/0,s=-1/0,o=1/0,l=-1/0,h=this.startIndex,u=this.endIndex,p=h,c=u;e||(h=0,u=this.dataItems.length);for(var d=h;dl&&(l=y)),this.baseAxis==n&&(gs&&(s=g)))}i.processSeriesDataItems(),n.processSeriesDataItems();var m=i.uid,v=n.uid;if(this.xAxis instanceof pt&&(a==1/0||s==-1/0))return this._smin.setKey(m,void 0),this._smax.setKey(m,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof pt&&(o==1/0||l==-1/0))return this._smin.setKey(v,void 0),this._smax.setKey(v,void 0),void this.dispatchImmediately("selectionextremeschanged");if(!e&&(this._tmin.getKey(m)!=a||this._tmax.getKey(m)!=s||this._tmin.getKey(v)!=o||this._tmax.getKey(v)!=l)){this._tmin.setKey(m,a),this._tmax.setKey(m,s),this._tmin.setKey(v,o),this._tmax.setKey(v,l);var x=this.stackedSeries;x&&(x.isDisposed()?this.stackedSeries=void 0:x.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(h!=p||u!=c){a=1/0,s=-1/0,o=1/0,l=-1/0;for(d=p;dl&&(l=y)),this.baseAxis==n&&(gs&&(s=g)))}}if(this.xAxis instanceof pt&&(a==1/0||s==-1/0))return this._smin.setKey(m,void 0),this._smax.setKey(m,void 0),void this.dispatchImmediately("selectionextremeschanged");if(this.yAxis instanceof pt&&(o==1/0||l==-1/0))return this._smin.setKey(v,void 0),this._smax.setKey(v,void 0),void this.dispatchImmediately("selectionextremeschanged");if((this._smin.getKey(m)!=a||this._smax.getKey(m)!=s||this._smin.getKey(v)!=o||this._smax.getKey(v)!=l)&&(this._smin.setKey(m,a),this._smax.setKey(m,s),this._smin.setKey(v,o),this._smax.setKey(v,l),this.appeared||0!=this.start||1!=this.end||this.dataItems!=this.mainDataSet)){var _=!1;if(n instanceof pt&&!(n instanceof gt)){var P=this._tmin.getKey(v);(!b["h"](P)||(this.usesShowFields||this._dataSetChanged||i instanceof gt&&i.groupData&&this.isShowing)&&oO||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(v,l),_=!0)}if(i instanceof pt&&!(i instanceof gt)){P=this._tmin.getKey(m);(!b["h"](P)||(this.usesShowFields||this._dataSetChanged||n instanceof gt&&n.groupData&&this.isShowing)&&aO||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(m,s),_=!0)}_&&this.dispatchImmediately("extremeschanged"),0==this.start&&1==this.end&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},e.prototype.hideTooltip=function(e){t.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},e.prototype.showTooltipAtPosition=function(t,e){var i;if(this.visible&&!this.isHiding&&!this.isShowing){var n=this._xAxis.get(),r=this._yAxis.get();n==this.baseAxis&&(i=n.getSeriesDataItem(this,n.toAxisPosition(t),this.snapTooltip)),r==this.baseAxis&&(i=r.getSeriesDataItem(this,r.toAxisPosition(e),this.snapTooltip));var a=this.showTooltipAtDataItem(i);if(a)return a;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},e.prototype.getAdjustedXLocation=function(t,e,i){return t.locations[e]},e.prototype.getAdjustedYLocation=function(t,e,i){return t.locations[e]},e.prototype.showTooltipAtDataItem=function(t){var e,i,r=this.chart.cursor;if(r&&r.hideSeriesTooltipsOnSelection&&r.selection.visible&&r.downPoint)this.hideTooltip();else if(this.returnBulletDefaultState(t),t&&t.visible){if(this.updateLegendValue(t),this.cursorTooltipEnabled){this.tooltipDataItem=t;var a=this.tooltipXField,s=this.tooltipYField;if(b["d"](t[a])&&b["d"](t[s])){var o=this.getPoint(t,a,s,this.getAdjustedXLocation(t,a),this.getAdjustedYLocation(t,s));if(o&&("XYChart"!=this.chart.className||!(o.y<-1||o.y>this.yAxis.pixelHeight+1||o.x<-1||o.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=o.x,this.tooltipY=o.y,this._prevTooltipDataItem!=t&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:t}),this._prevTooltipDataItem=t),this.cursorHoverEnabled)try{for(var l=Object(n["g"])(t.sprites),h=l.next();!h.done;h=l.next()){var u=h.value;!u.parent.visible||u.isHidden||u.__disabled||u.disabled||u.isHiding||(u.interactions.isRealHover||(u.dispatchImmediately("over"),u.interactions.isRealHover=!0),u.isHover=!0)}}catch(p){e={error:p}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return this.showTooltip()?I["K"]({x:o.x,y:o.y},this):void 0}}}}else this.updateLegendValue(t,!0)},e.prototype.returnBulletDefaultState=function(t){var e,i;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=t)try{for(var r=Object(n["g"])(this._prevTooltipDataItem.sprites),a=r.next();!a.done;a=r.next()){var s=a.value;if(s.isDisposed())this._prevTooltipDataItem=void 0;else{var o=s.interactions.isRealHover;s.isHover=!1,o&&s.dispatchImmediately("out")}}}catch(l){e={error:l}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.shouldCreateBullet=function(t,e){var i=e.xField;b["d"](i)||(i=this.xField);var n=e.yField;if(b["d"](n)||(n=this.yField),this.xAxis instanceof pt&&!t.hasValue([i])||this.yAxis instanceof pt&&!t.hasValue([n]))return!1;if(e.disabled){var r=e.propertyFields.disabled,a=t.dataContext;return!(!a||!1!==a[r])}return!0},e.prototype.updateTooltip=function(){this.hideTooltipWhileZooming||!this.tooltip||this.tooltip.isHidden||this.isHiding||this.isHidden||!this.tooltipDataItem||this.showTooltipAtDataItem(this.tooltipDataItem)},e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,n=e.xField;b["d"](n)||(n=this.xField);var r=e.yField;b["d"](r)||(r=this.yField);var a=this.xAxis,s=this.yAxis;if(a instanceof pt&&!i.hasValue([n])||s instanceof pt&&!i.hasValue([r]))e.visible=!1;else{var o=this.getBulletLocationX(e,n),l=this.getBulletLocationY(e,r),h=this.getPoint(i,n,r,o,l);if(h){var u=this.xOpenField,p=this.yOpenField,c=void 0,d=void 0;if(a instanceof gt){b["h"](o)||(o=0);var f=void 0,g=i.getWorkingValue(n);u?f=i.getWorkingValue(u):a==this.baseAxis&&(f=a.baseValue),b["h"](f)||(f=g);var y=i.getValue("valueX","stack");if(f+=y,g+=y,f==g){var m=a.baseInterval,v=a.dateFormatter;f=dt["h"](new Date(f),m.timeUnit,m.count,v.firstDayOfWeek,v.utc,void 0,v.timezoneMinutes,v.timezone).getTime(),g=dt["a"](new Date(f),m.timeUnit,m.count,v.utc).getTime()}var x=void 0;x=a==this.baseAxis?f+(g-f)*o:f+(g-f)*(1-o),c=a.valueToPosition(x)}else if(a instanceof pt){b["h"](o)||(o=0);f=void 0,g=i.getWorkingValue(n);f=u?i.getWorkingValue(u):a.baseValue;y=i.getValue("valueX","stack");f+=y,g+=y;x=f+(g-f)*(1-o);c=a.valueToPosition(x)}else if(a instanceof vt){var _=this.getAdjustedXLocation(i,n,e.locationX),P=this.getAdjustedXLocation(i,u,e.locationX);c=a.categoryToPosition(i[n],_);var O=void 0;u&&(O=a.categoryToPosition(i[u],P)),b["h"](O)||(O=1),c=O+(c-O)*o}if(s instanceof gt){b["h"](l)||(l=0);f=void 0,g=i.getWorkingValue(r);p?f=i.getWorkingValue(p):s==this.baseAxis&&(f=s.baseValue),b["h"](f)||(f=g);y=i.getValue("valueY","stack");if(f+=y,g+=y,f==g){m=s.baseInterval,v=s.dateFormatter;f=dt["h"](new Date(f),m.timeUnit,m.count,v.firstDayOfWeek,v.utc,void 0,v.timezoneMinutes,v.timezone).getTime(),g=dt["a"](new Date(f),m.timeUnit,m.count,v.utc).getTime()}x=void 0;x=s==this.baseAxis?f+(g-f)*l:f+(g-f)*(1-l),d=s.valueToPosition(x)}else if(s instanceof pt){b["h"](l)||(l=0);f=void 0,g=i.getWorkingValue(r);f=p?i.getWorkingValue(p):s.baseValue;y=i.getValue("valueY","stack");f+=y,g+=y;x=f+(g-f)*(1-l);d=s.valueToPosition(x)}else if(s instanceof vt){d=s.categoryToPosition(i[r],l);var w=this.getAdjustedYLocation(i,r,e.locationY),C=this.getAdjustedYLocation(i,p,e.locationY);d=s.categoryToPosition(i[r],w);var S=void 0;p&&(S=s.categoryToPosition(i[p],C)),b["h"](S)||(S=1),d=S+(d-S)*l}e.visible=!0,this.positionBulletReal(e,c,d)}else e.visible=!1}},e.prototype.positionBulletReal=function(t,e,i){t.x=this.xAxis.renderer.positionToPoint(e,i).x,t.y=this.yAxis.renderer.positionToPoint(i,e).y},e.prototype.getBulletLocationX=function(t,e){var i=t.locationX,n=t.dataItem;return b["h"](i)||(i=n.workingLocations[e]),i},e.prototype.getBulletLocationY=function(t,e){var i=t.locationY,n=t.dataItem;return b["h"](i)||(i=n.workingLocations[e]),i},e.prototype.updateStacking=function(){var t=this;this.invalidateDataItems(),this.chart&&this.chart.series.each((function(e){e.baseAxis==t.baseAxis&&(e.stackedSeries=void 0,e.invalidateDataItems(),e.invalidateProcessedData())}))},Object.defineProperty(e.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(t){if(this.setPropertyValue("stacked",t,!0)){this.updateStacking();var e,i=this.xAxis,n=this.yAxis;if(!t)i!=this.baseAxis&&i instanceof pt&&(e=this.xField),n!=this.baseAxis&&n instanceof pt&&(e=this.yField),e&&this.dataItems.each((function(t){t.setCalculatedValue(e,0,"stack"),t.setCalculatedValue(e,0,"stackTrue")}))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(t){this.setPropertyValue("snapTooltip",t)},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var i,n=this;this.isHidden&&(this.appeared&&this.xAxis instanceof gt&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof gt&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0))),this.xAxis instanceof pt&&this.xAxis!=this.baseAxis&&(i=this._xValueFields),this.yAxis instanceof pt&&this.yAxis!=this.baseAxis&&(i=this._yValueFields);var r,a=this.startIndex,s=this.endIndex,o=0,l=this.defaultState.transitionDuration;b["h"](e)&&(l=e),M["a"].animationsEnabled||(l=0),m["d"](m["i"](this.dataItems.iterator()),(function(t){var e=t[0],h=t[1],u=l;(en.endIndex+10)&&(u=0,o=0),n.sequencedInterpolation&&u>0&&(o=n.sequencedInterpolationDelay*e+l*(e-a)/(s-a)),r=h.show(u,o,i)})),this.dataSets.each((function(t,e){e!=n.dataItems&&e.each((function(t){t.events.disable(),t.show(0,0,i),t.events.enable()}))})),this.mainDataSet!=this.dataItems&&this.mainDataSet.each((function(t){t.events.disable(),t.show(0,0,i),t.events.enable()}));var h=t.prototype.show.call(this,e);return r&&!r.isFinished()&&(h=r),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),h},e.prototype.hide=function(e){var i,n,r=this,a=this.xAxis;a instanceof pt&&a!=this.baseAxis&&(i=this._xValueFields,n=this.stacked||a.minZoomeda.baseValue||this.stackedSeries?a.baseValue:a.min);var s=this.yAxis;s instanceof pt&&s!=this.baseAxis&&(i=this._yValueFields,n=this.stacked||s.minZoomeds.baseValue||this.stackedSeries?s.baseValue:s.min);var o=this.startIndex,l=this.endIndex,h=this.hiddenState.transitionDuration;b["h"](e)&&(h=e),M["a"].animationsEnabled||(h=0);var u,p=0;m["d"](m["i"](this.dataItems.iterator()),(function(t){var e=t[0],a=t[1],s=h;(er.endIndex+10)&&(s=0),0==s?a.hide(0,0,n,i):(r.sequencedInterpolation&&s>0&&(p=r.sequencedInterpolationDelay*e+h*(e-o)/(l-o)),u=a.hide(s,p,n,i))})),this.dataSets.each((function(t,e){e!=r.dataItems&&e.each((function(t){t.events.disable(),t.hide(0,0,n,i),t.events.enable()}))})),this.mainDataSet!=this.dataItems&&this.mainDataSet.each((function(t){t.events.disable(),t.hide(0,0,n,i),t.events.enable()}));var c=t.prototype.hide.call(this,h);return c&&!c.isFinished()&&c.delay(p),u&&!u.isFinished()&&(c=u),this.appeared&&this.dispatch("selectionextremeschanged"),this.validateDataElements(),c},e.prototype.handleDataItemWorkingValueChange=function(e,i){t.prototype.handleDataItemWorkingValueChange.call(this,e,i);var n=this.baseAxis.series;m["d"](n.iterator(),(function(t){(t.stacked||t.stackedSeries)&&t.invalidateProcessedData()}))},e.prototype.getStackValue=function(t,e){var i=this,n=this.xAxis,r=this.yAxis;if(this.stacked&&n&&r){var a,s=this.chart,o=s.series.indexOf(this);n!=this.baseAxis&&n instanceof pt&&(a=this.xField),r!=this.baseAxis&&r instanceof pt&&(a=this.yField),a&&(t.setCalculatedValue(a,0,"stack"),t.setCalculatedValue(a,0,"stackTrue"),m["e"](s.series.range(0,o).backwards().iterator(),(function(e){if(e.xAxis==n&&e.yAxis==r&&e.className==i.className){e.stackedSeries=i;var s=e.dataItems.getIndex(t.index);if(s&&s.hasValue(i._xValueFields)&&s.hasValue(i._yValueFields)){var o=t.getValue(a),l=void 0,h=s.getValue(a,"stackTrue");null==h&&(h=0);var u=s.getValue(a)+h;if(l=s.getWorkingValue(a)+s.getValue(a,"stack"),!i.stackToNegative)return t.setCalculatedValue(a,l,"stack"),t.setCalculatedValue(a,u,"stackTrue"),!1;if(o>=0&&u>=0||o<0&&u<0)return t.setCalculatedValue(a,l,"stack"),t.setCalculatedValue(a,u,"stackTrue"),!1;if(!e.stacked)return!1}else if(!e.stacked)return!1}return!0})))}},Object.defineProperty(e.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(t){this.setPropertyValue("stackToNegative",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(t){this._tooltipXField=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(t){this._tooltipYField=t},enumerable:!0,configurable:!0}),e.prototype.min=function(t){return this._tmin.getKey(t.uid)},e.prototype.max=function(t){return this._tmax.getKey(t.uid)},e.prototype.selectionMin=function(t){var e=this._smin.getKey(t.uid);return e},e.prototype.selectionMax=function(t){var e=this._smax.getKey(t.uid);return e},e.prototype.processConfig=function(e){if(e){if(b["d"](e.baseAxis)&&b["j"](e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),b["d"](e.xAxis)&&b["j"](e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),b["d"](e.yAxis)&&b["j"](e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),b["d"](e.axisRanges)&&b["e"](e.axisRanges))for(var i=0,n=e.axisRanges.length;i0&&(r=!1),t.yAxis==i.yAxis&&e.scrollbarChart.yAxes.length>0&&(a=!1))})),i.events.on("beforedisposed",(function(){e.series.removeValue(i)}));var s=new c["a"],o=i.clone();if((M["a"].onlyShowOnViewport||M["a"].queue)&&this.addDisposer(this.chart.events.on("removedfromqueue",(function(){n.invalidateData()}))),I["x"]()&&(o.stroke=Object(E["b"])("#aaaaaa"),o.fill=o.stroke,o.propertyFields.fill=void 0,o.propertyFields.stroke=void 0),i.scrollbarSeries=o,r){var l=i.xAxis.clone();n.xAxes.moveValue(l),l.title.disabled=!0,l.rangeChangeDuration=0;var h=l.renderer;h.ticks.template.disabled=!0,h.inside=!0,h.labels.template.inside=!0,h.line.strokeOpacity=0,h.minLabelPosition=.02,h.maxLabelPosition=.98,h.line.disabled=!0,h.axisFills.template.disabled=!0,h.baseGrid.disabled=!0,h.grid.template.strokeOpacity=.05,h.minWidth=void 0,h.minHeight=void 0,h.padding(0,0,0,0),h.chart=n,h.margin(0,0,0,0),l.width=Object(d["c"])(100);var u=h.labels.template;if(u.fillOpacity=.5,l.maxZoomCount=void 0,l.minZoomCount=void 0,l instanceof gt){var p=l,f=i.xAxis;p.groupCount=5*f.groupCount,p.min=void 0,p.max=void 0,this._disposers.push(p.clonedFrom.events.on("extremeschanged",(function(){b["h"](p.clonedFrom.minDefined)&&(p.min=p.clonedFrom.minDefined),b["h"](p.clonedFrom.maxDefined)&&(p.max=p.clonedFrom.maxDefined)}),void 0,!1))}else if(l instanceof pt){var g=l;g.min=void 0,g.max=void 0,b["h"](g.clonedFrom.minDefined)||(g.min=void 0),b["h"](g.clonedFrom.maxDefined)||(g.max=void 0),this._disposers.push(g.clonedFrom.events.on("extremeschanged",(function(){b["h"](g.clonedFrom.minDefined)&&(g.min=g.clonedFrom.min),b["h"](g.clonedFrom.maxDefined)&&(g.max=g.clonedFrom.max)}),void 0,!1))}o.xAxis=l}else this.scrollbarChart.xAxes.each((function(t){t.clonedFrom==i.xAxis&&(o.xAxis=t)}));if(a){var y=i.yAxis.clone();n.yAxes.moveValue(y),y.title.disabled=!0,y.rangeChangeDuration=0;h=y.renderer;h.ticks.template.disabled=!0,h.inside=!0,h.labels.template.inside=!0,h.line.strokeOpacity=0,h.minLabelPosition=.02,h.maxLabelPosition=.98,h.line.disabled=!0,h.axisFills.template.disabled=!0,h.grid.template.stroke=s.getFor("background"),h.baseGrid.disabled=!0,h.grid.template.strokeOpacity=.05,h.minWidth=void 0,h.minHeight=void 0,h.chart=n,h.padding(0,0,0,0),h.margin(0,0,0,0),y.height=Object(d["c"])(100);u=h.labels.template;if(u.fillOpacity=.5,o.yAxis=y,y.maxZoomCount=void 0,y.minZoomCount=void 0,y instanceof gt){var v=y;v.min=void 0,v.max=void 0;f=i.yAxis;y.groupCount=5*f.groupCount,this._disposers.push(v.clonedFrom.events.on("extremeschanged",(function(){b["h"](v.clonedFrom.minDefined)&&(v.min=v.clonedFrom.minDefined),b["h"](v.clonedFrom.maxDefined)&&(v.max=v.clonedFrom.maxDefined)})))}else if(y instanceof pt){var x=y;x.min=void 0,x.max=void 0,b["h"](x.clonedFrom.minDefined)||(x.min=void 0),b["h"](x.clonedFrom.maxDefined)||(x.max=void 0),this._disposers.push(x.clonedFrom.events.on("extremeschanged",(function(){b["h"](x.clonedFrom.minDefined)&&(x.min=x.clonedFrom.minDefined),b["h"](x.clonedFrom.maxDefined)&&(x.max=x.clonedFrom.maxDefined)})))}}else this.scrollbarChart.yAxes.each((function(t){t.clonedFrom==i.yAxis&&(o.yAxis=t)}));o.rangeChangeDuration=0,o.interpolationDuration=0,o.defaultState.transitionDuration=0,o.showOnInit=!1,this._disposers.push(o.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(i.events.on("datavalidated",(function(){o.data!=i.data&&(o.data=i.data)}),void 0,!1)),o.defaultState.properties.visible=!0,n.series.push(o),this.updateByOrientation()}},e.prototype.updateByOrientation=function(){var t=this;this._scrollbarChart&&(m["d"](this._scrollbarChart.xAxes.iterator(),(function(e){var i=e.renderer;"vertical"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)})),m["d"](this._scrollbarChart.yAxes.iterator(),(function(e){var i=e.renderer;"horizontal"==t.orientation?(i.grid.template.disabled=!0,i.labels.template.disabled=!0,i.minGridDistance=10):(i.grid.template.disabled=!1,i.labels.template.disabled=!1,i.minGridDistance=e.clonedFrom.renderer.minGridDistance)})))},e.prototype.handleSeriesRemoved=function(t){var e=t.oldValue,i=this.scrollbarChart;i.series.each((function(t){t&&t.clonedFrom==e&&i.series.removeValue(t)})),0==i.series.length&&(i.xAxes.clear(),i.yAxes.clear());try{e.events.off("validated",this.zoomOutAxes,this)}catch(n){}},Object.defineProperty(e.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.get()!==t&&(this._chart.set(t,t.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),e.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},e.prototype.zoomOutAxes=function(){var t=this.scrollbarChart;m["d"](t.xAxes.iterator(),(function(t){t.zoom({start:0,end:1},!0,!0)})),m["d"](t.yAxes.iterator(),(function(t){t.zoom({start:0,end:1},!0,!0)}))},e.prototype.updateThumb=function(e){if(void 0===e&&(e=!0),t.prototype.updateThumb.call(this,e),this._unselectedOverlay){var i=this.thumb,n=i.pixelX||0,r=i.pixelY||0,a=i.pixelWidth||0,s=i.pixelHeight||0,o="";"horizontal"==this.orientation?(o=f["j"]({x:-1,y:0,width:n,height:s}),o+=f["j"]({x:n+a,y:0,width:(this.pixelWidth||0)-n-a,height:s})):(o=f["j"]({x:0,y:0,width:a,height:r}),o+=f["j"]({x:0,y:r+s,width:a,height:(this.pixelHeight||0)-r-s})),this._unselectedOverlay.path=o}},e.prototype.processConfig=function(e){if(e&&b["d"](e.series)&&b["e"](e.series))for(var i=0,n=e.series.length;i0){var i=e.maxZoomFactor/e.maxZoomCount;if(D["E"](e.end-e.start,3)<1/i)return t=!0,!1}else if(D["E"](e.start,3)>0||D["E"](e.end,3)<1)return t=!0,!1;return!0})),m["e"](this.yAxes.iterator(),(function(e){if(e.toggleZoomOutButton){if(e.maxZoomCount>0){var i=e.maxZoomFactor/e.maxZoomCount;if(D["E"](e.end-e.start,3)<1/i)return t=!0,!1}else if(D["E"](e.start,3)>0||D["E"](e.end,3)<1)return t=!0,!1;return!0}})),this.seriesAppeared||(t=!1),t?this.zoomOutButton.show():this.zoomOutButton.hide()}},e.prototype.seriesAppeared=function(){var t=!1;return m["d"](this.series.iterator(),(function(e){if(!e.appeared)return t=!1,!1})),t},e.prototype.handleYAxisRangeChange=function(){var t=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,t,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,t)},e.prototype.updateScrollbar=function(t,e){t&&(t.skipRangeEvents(),t.start=e.start,t.end=e.end)},e.prototype.getCommonAxisRange=function(t){var e,i;return t.each((function(t){if(!t.zoomable||t instanceof pt&&t.syncWithAxis);else{var n=t.start,r=t.end;t.renderer.inversed&&(n=1-t.end,r=1-t.start),(!b["h"](e)||ni)&&(i=r)}})),{start:e,end:i}},e.prototype.updateXAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.topAxesContainer,e.toFront()):(e.parent=this.bottomAxesContainer,e.toBack()),e.renderer&&e.renderer.processRenderer()},e.prototype.updateYAxis=function(t){var e=t.axis;t.opposite?(e.parent=this.rightAxesContainer,e.toBack()):(e.parent=this.leftAxesContainer,e.toFront()),e.renderer&&e.renderer.processRenderer()},e.prototype.processAxis=function(t){var e=this;t instanceof vt&&this._dataUsers.moveValue(t);var i=t.renderer;i.gridContainer.parent=this.plotContainer,i.gridContainer.toBack(),i.breakContainer.parent=this.plotContainer,i.breakContainer.toFront(),i.breakContainer.zIndex=10,t.addDisposer(new s["b"]((function(){e.dataUsers.removeValue(t)}))),i.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(t.events.on("positionchanged",(function(){var n=I["J"]({x:0,y:0},t,e.axisBulletsContainer);t.renderer instanceof lt&&(i.bulletsContainer.y=n.y),t.renderer instanceof yt&&(i.bulletsContainer.x=n.x)}),void 0,!1)),this.plotContainer.events.on("maxsizechanged",(function(){e.inited&&(t.invalidateDataItems(),e.updateSeriesMasks())}),t,!1)},e.prototype.updateSeriesMasks=function(){I["x"]()&&this.series.each((function(t){var e=t.mainContainer.mask;t.mainContainer.mask=void 0,t.mainContainer.mask=e}))},e.prototype.handleSeriesRemoved=function(e){var i=e.oldValue;i&&(i.xAxis&&(i.xAxis.series.removeValue(i),i.xAxis.invalidateProcessedData()),i.yAxis&&(i.yAxis.series.removeValue(i),i.yAxis.invalidateProcessedData()),this.series.each((function(t){t.resetExtremes()}))),t.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(e.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new o["a"],this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new o["b"](this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),e.prototype.handleAxisRemoval=function(t){var e=t.oldValue;this.dataUsers.removeValue(e),e.autoDispose&&e.dispose()},Object.defineProperty(e.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new o["a"],this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new o["b"](this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(e){try{t.prototype.handleSeriesAdded.call(this,e);var i=e.newValue;0!=this.xAxes.length&&0!=this.yAxes.length||(r["b"].removeFromInvalidComponents(i),i.dataInvalid=!1),I["S"](i.xAxis),I["S"](i.yAxis),i.maskBullets=i.maskBullets,void 0==i.fill&&(this.patterns?(b["d"](i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),b["d"](i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof E["a"]&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next()),b["d"](i.stroke)||(i.stroke=i.fill)}catch(n){this.raiseCriticalError(n)}},Object.defineProperty(e.prototype,"cursor",{get:function(){return this._cursor},set:function(t){this._cursor!=t&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=t,t&&(this._disposers.push(t),t.chart=this,t.shouldClone=!1,t.parent=this._cursorContainer,t.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),t.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),t.events.on("zoomended",this.handleCursorZoomEnd,this,!1),t.events.on("panstarted",this.handleCursorPanStart,this,!1),t.events.on("panning",this.handleCursorPanning,this,!1),t.events.on("panended",this.handleCursorPanEnd,this,!1),t.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),t.events.on("hidden",this.handleHideCursor,this,!1),t.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),e.prototype.handleCursorPositionChange=function(){var t=this.cursor;if(t.visible&&!t.isHiding){var e=this.cursor.xPosition,i=this.cursor.yPosition;this.showSeriesTooltip({x:e,y:i});var n=[],r=t.snapToSeries;if(r&&!t.downPoint){r instanceof _t&&(r=[r]);var a=[];B["d"](r,(function(t){if(!t.isHidden&&!t.isHiding){var r=t.xAxis,s=t.yAxis;r instanceof pt&&!(r instanceof gt)&&s instanceof pt&&!(s instanceof gt)?(t.dataItems.each((function(t){a.push(t)})),B["m"](n,t.yAxis),B["m"](n,t.xAxis)):(t.baseAxis==t.xAxis&&(B["m"](n,t.yAxis),a.push(r.getSeriesDataItem(t,r.toAxisPosition(e),!0))),t.baseAxis==t.yAxis&&(B["m"](n,t.xAxis),a.push(s.getSeriesDataItem(t,s.toAxisPosition(i),!0))))}}));var s=this.getClosest(a,e,i);s&&(this.series.each((function(t){var e=s.component;t!=e&&(t.hideTooltip(),t.xAxis!=e.xAxis&&(t.xAxis.hideTooltip(),n.push(t.xAxis)),t.yAxis!=e.yAxis&&(t.yAxis.hideTooltip(),n.push(t.yAxis)))})),s.component.showTooltipAtDataItem(s),t.handleSnap(s.component))}this._seriesPoints=[],this._cursorXPosition!=e&&this.showAxisTooltip(this.xAxes,e,n),this._cursorYPosition!=i&&this.showAxisTooltip(this.yAxes,i,n),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},e.prototype.getClosest=function(t,e,i){var n,r=1/0;return B["e"](t,(function(t){if(t){var a=t.component.xAxis,s=t.component.yAxis,o=a.positionToCoordinate(a.toGlobalPosition(a.toAxisPosition(e))),l=s.positionToCoordinate(s.toGlobalPosition(s.toAxisPosition(i))),h=t.component.xField,u=t.component.yField;if(a instanceof pt&&!b["h"](t.getValue(h)))return!0;if(s instanceof pt&&!b["h"](t.getValue(u)))return!0;var p=a.positionToCoordinate(a.toGlobalPosition(a.getPositionX(t,h,t.locations[h],"valueX"))),c=s.positionToCoordinate(s.toGlobalPosition(s.getPositionY(t,u,t.locations[u],"valueY"))),d=Math.sqrt(Math.pow(o-p,2)+Math.pow(l-c,2));return d0){var e=this.cursor;if(e&&b["h"](e.maxTooltipDistance)){var i,n,r=I["K"]({x:e.point.x,y:e.point.y},e),a=1/0;B["d"](t,(function(t){var e=t.series,s=t.point;if(s){var o={x:s.x,y:s.y},l=Math.abs(D["q"](o,r));l0&&B["d"](s,(function(t){i!=t.series&&t.series.hideTooltip(0)})),s=[{series:i,point:n}])),t=s}var o=I["K"]({x:-.5,y:-.5},this.plotContainer),l=I["K"]({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),h=0,u=[];B["d"](t,(function(t){var e=t.point;e&&D["A"](e,{x:o.x,y:o.y,width:l.x-o.x,height:l.y-o.y})&&(u.push({point:e,series:t.series}),h+=e.y)})),t=u;var p=this.series.getIndex(0),c=!1;p&&p.yAxis&&p.yAxis.renderer.inversed&&(c=!0),c?t.sort((function(t,e){return Z["a"](t.point.y,e.point.y)})):(t.sort((function(t,e){return Z["a"](e.point.y,t.point.y)})),t.reverse());var d=h/t.length,f=I["O"]({x:0,y:0},this.svgContainer.SVGContainer).y;if(t.length>0){var g=o.y,y=l.y;I["I"]({x:0,y:g},this);var m=!1;if(d>g+(y-g)/2)for(var v=y,x=t.length-1;x>=0;x--){var _=t[x].series,P=_.tooltip,O=t[x].point.y;if(P.setBounds({x:0,y:-f,width:this.pixelWidth,height:v+f}),P.invalid&&P.validate(),P.toBack(),v=I["K"]({x:0,y:P.label.pixelY-P.pixelY+O-P.pixelMarginTop},P).y,v<-f){m=!0;break}}if(d<=g+(y-g)/2||m)for(var w=g,C=(x=0,t.length);x0||t.dataItems.length>0)&&t.showTooltipAtPosition(e)}))},e.prototype.getUpdatedRange=function(t,e){if(t){var i,n,r=t.renderer.inversed;r?(D["z"](e),i=1-t.end,n=1-t.start):(i=t.start,n=t.end);var a=n-i;return{start:i+e.start*a,end:i+e.end*a}}},e.prototype.handleCursorZoomEnd=function(t){var e=this.cursor,i=e.behavior;if("zoomX"==i||"zoomXY"==i){var n=e.xRange;n&&this.xAxes.length>0&&(n=this.getUpdatedRange(this.xAxes.getIndex(0),n),n.priority="start",this.zoomAxes(this.xAxes,n))}if("zoomY"==i||"zoomXY"==i){var r=e.yRange;r&&this.yAxes.length>0&&(r=this.getUpdatedRange(this.yAxes.getIndex(0),r),r.priority="start",this.zoomAxes(this.yAxes,r))}this.handleHideCursor()},e.prototype.handleCursorPanStart=function(t){var e=this.xAxes.getIndex(0);e&&(this._panStartXRange={start:e.start,end:e.end},e.renderer.inversed&&(this._panStartXRange=D["z"](this._panStartXRange)));var i=this.yAxes.getIndex(0);i&&(this._panStartYRange={start:i.start,end:i.end},i.renderer.inversed&&(this._panStartYRange=D["z"](this._panStartYRange)))},e.prototype.handleCursorPanEnd=function(t){var e=this.cursor,i=e.behavior;if(this._panEndXRange&&("panX"==i||"panXY"==i)){var n=this._panEndXRange,r=this._panStartXRange,a=0;n.start<0&&(a=n.start),r.end>1?n.end>r.end&&(a=n.end-r.end):n.end>1&&(a=n.end-1),this.zoomAxes(this.xAxes,{start:n.start-a,end:n.end-a},!1,e.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&("panY"==i||"panXY"==i)){n=this._panEndYRange,a=0;n.start<0&&(a=n.start),n.end>1&&(a=n.end-1),this.zoomAxes(this.yAxes,{start:n.start-a,end:n.end-a},!1,e.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0}},e.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},e.prototype.handleCursorPanning=function(t){var e=this.cursor,i=e.behavior,n=e.maxPanOut;if(this._panStartXRange&&("panX"==i||"panXY"==i)){var r=this._panStartXRange,a=e.xRange,s=this.getCommonAxisRange(this.xAxes),o=r.end-r.start,l=a.start*(s.end-s.start),h=Math.max(-n,l+r.start),u=Math.min(l+r.end,1+n);h<=0&&(u=h+o),u>=1&&(h=u-o);var p={start:h,end:u};this._panEndXRange=p,this.zoomAxes(this.xAxes,p,!1,!1,e.maxPanOut)}if(this._panStartYRange&&("panY"==i||"panXY"==i)){r=this._panStartYRange,a=e.yRange,s=this.getCommonAxisRange(this.yAxes),o=r.end-r.start,l=a.start*(s.end-s.start),h=Math.max(-n,l+r.start),u=Math.min(l+r.end,1+n);h<=0&&(u=h+o),u>=1&&(h=u-o);p={start:h,end:u};this._panEndYRange=p,this.zoomAxes(this.yAxes,p,!1,!1,e.maxPanOut)}this.handleHideCursor()},e.prototype.handleYAxisSet=function(t){},e.prototype.handleCursorZoomStart=function(t){},Object.defineProperty(e.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(t){var e=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=t,t&&(this._disposers.push(t),t.parent=this.topAxesContainer,t.shouldClone=!1,t.startGrip.exportable=!1,t.endGrip.exportable=!1,t.toBack(),t.orientation="horizontal",t.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",(function(){return t.updateThumb(!1)}),this,!1),t.adapter.add("positionValue",(function(t){var i=e.xAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(i.renderer.inversed?1-t.position:t.position)),t})),t.adapter.add("positionValueDirection",(function(t){var i=e.xAxes.getIndex(0);return i&&(t.flipped=i.renderer.inversed),t})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(t){var e=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=t,t&&(this._disposers.push(t),t.parent=this.rightAxesContainer,t.startGrip.exportable=!1,t.shouldClone=!1,t.endGrip.exportable=!1,t.toFront(),t.orientation="vertical",t.events.on("rangechanged",this.handleYScrollbarChange,this,!1),this.events.on("datavalidated",(function(){return t.updateThumb(!1)}),this,!1),t.adapter.add("positionValue",(function(t){var i=e.yAxes.getIndex(0);return i&&(t.value=i.getPositionLabel(i.renderer.inversed?t.position:1-t.position)),t})),t.adapter.add("positionValueDirection",(function(t){var i=e.yAxes.getIndex(0);return i&&(t.flipped=!i.renderer.inversed),t})))},enumerable:!0,configurable:!0}),e.prototype.handleXScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;0==i.start&&(i.priority="start"),1==i.end&&(i.priority="end"),i=this.zoomAxes(this.xAxes,i),e.fixRange(i)}},e.prototype.handleYScrollbarChange=function(t){if(this.inited){var e=t.target,i=e.range;1==i.end&&(i.priority="end"),0==i.start&&(i.priority="start"),i=this.zoomAxes(this.yAxes,i),e.fixRange(i)}},e.prototype.zoomAxes=function(t,e,i,n,r,a){var s={start:0,end:1};this.showSeriesTooltip();var o=e;return this.dataInvalid||m["d"](t.iterator(),(function(t){var l=t.maxZoomFactor;if(b["h"](t.minZoomCount)&&(l/=t.minZoomCount),a&&1/(e.end-e.start)>=l);else if(t.zoomable){if(e=t.renderer.inversed?D["z"](o):o,t.hideTooltip(0),n)if(t instanceof vt){var h=t.getCellEndPosition(0)-t.getCellStartPosition(0);e.start=t.roundPosition(e.start+h/2-t.startLocation*h,t.startLocation),e.end=t.roundPosition(e.end-h/2+(1-t.endLocation)*h,t.endLocation)}else{var u=1e-4;e.start=t.roundPosition(e.start+u,0,t.startLocation),e.end=t.roundPosition(e.end+u,0,t.endLocation)}var p=t.zoom(e,i,i,r);t.renderer.inversed&&(p=D["z"](p)),s=p}})),s},Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)&&this.bulletsContainer&&(this.bulletsContainer.mask=t?this._bulletMask:void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(t){this.setPropertyValue("arrangeTooltips",t,!0)},enumerable:!0,configurable:!0}),e.prototype.handleWheel=function(t){var e=this.plotContainer,i=I["i"](t.point,this.htmlContainer,this.svgContainer.cssScale),n=I["P"](i,e),r=t.shift.y;this.handleWheelReal(r,this.mouseWheelBehavior,n)},e.prototype.handleHorizontalWheel=function(t){var e=this.plotContainer,i=I["i"](t.point,this.htmlContainer,this.svgContainer.cssScale),n=I["P"](i,e);this.handleWheelReal(t.shift.x,this.horizontalMouseWheelBehavior,n)},e.prototype.handleWheelReal=function(t,e,i){if(0!=t){var n=this.plotContainer,r=this.getCommonAxisRange(this.xAxes),a=this.getCommonAxisRange(this.yAxes),s=.1,o=0;if("panX"==e||"panXY"==e){var l=this.xAxes.getIndex(0),h=!1,u=s;l instanceof vt&&(u=.5/((r.end-r.start)*l.dataItems.length),h=!0),s=Math.max(.2,u);var p=r.end-r.start,c=Math.max(-o,r.start+s*t/100*(r.end-r.start)),d=Math.min(r.end+s*t/100*(r.end-r.start),1+o);c<=0&&(d=c+p),d>=1&&(c=d-p),this.zoomAxes(this.xAxes,{start:c,end:d},void 0,h)}if("panY"==e||"panXY"==e){var f=this.yAxes.getIndex(0);u=s,h=!1;f instanceof vt&&(u=.5/((r.end-r.start)*f.dataItems.length),h=!0),s=Math.max(.2,u),t*=-1;var g=a.end-a.start,y=Math.max(-o,a.start+s*t/100*(a.end-a.start)),m=Math.min(a.end+s*t/100*(a.end-a.start),1+o);y<=0&&(m=y+g),m>=1&&(y=m-g),this.zoomAxes(this.yAxes,{start:y,end:m},void 0,h)}if("zoomX"==e||"zoomXY"==e){var b=i.x/n.maxWidth,v=this.xAxes.getIndex(0).toAxisPosition(b);c=Math.max(-o,r.start-s*(r.end-r.start)*t/100*b);c=Math.min(c,v);d=Math.min(r.end+s*(r.end-r.start)*t/100*(1-b),1+o);d=Math.max(d,v),this.zoomAxes(this.xAxes,{start:c,end:d},void 0)}if("zoomY"==e||"zoomXY"==e){var x=i.y/n.maxHeight,_=this.yAxes.getIndex(0).toAxisPosition(x);y=Math.max(-o,a.start-s*(a.end-a.start)*t/100*(1-x));y=Math.min(y,_);m=Math.min(a.end+s*t/100*x*(a.end-a.start),1+o);m=Math.max(m,_),this.zoomAxes(this.yAxes,{start:y,end:m},void 0)}}},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(t){this.setPropertyValue("horizontalMouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),e.prototype.dataSourceDateFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),m["d"](this.series.iterator(),(function(t){e=i.populateDataSourceFields(e,t.dataFields,["dateX","dateY","openDateX","openDateY"])})),e},e.prototype.dataSourceNumberFields=function(e){var i=this;return e=t.prototype.dataSourceDateFields.call(this,e),m["d"](this.series.iterator(),(function(t){e=i.populateDataSourceFields(e,t.dataFields,["valueX","valueY","openValueX","openValueY"])})),e},e.prototype.processConfig=function(e){if(e){var i=[],n=[];if(b["d"](e.xAxes)&&b["e"](e.xAxes))for(var r=0,a=e.xAxes.length;r0){var n=this.dataItems.getIndex(0);n&&i.dataItems.remove(n),i.dataUsers.each((function(t){var e=t.dataItems.getIndex(0);e&&t.dataItems.remove(e)})),i._parseDataFrom--,e--}i.invalidateData()}},e.prototype.removeData=function(e){this.scrollbarX instanceof wt&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof wt&&this.removeScrollbarData(this.scrollbarY,e),t.prototype.removeData.call(this,e)},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},e}(z);r["b"].registeredClasses["XYChart"]=St,v["c"].push({relevant:v["b"].maybeXS,state:function(t,e){if(t instanceof St&&t.scrollbarX){var i=t.states.create(e),n=t.scrollbarX.states.create(e);return n.properties.disabled=!0,i}return null}}),v["c"].push({relevant:v["b"].maybeXS,state:function(t,e){if(t instanceof St&&t.scrollbarY){var i=t.states.create(e),n=t.scrollbarY.states.create(e);return n.properties.disabled=!0,i}return null}});var kt=i("877f"),It=function(t){function e(){var e=t.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var i=e.createChild(p["a"]);e.fillSprite=i,i.shouldClone=!1,i.setElement(e.paper.add("path")),i.isMeasured=!1,e._disposers.push(i);var n=e.createChild(p["a"]);return e.strokeSprite=n,n.shouldClone=!1,n.fill=Object(E["b"])(),n.setElement(e.paper.add("path")),n.isMeasured=!1,e._disposers.push(n),e}return Object(n["c"])(e,t),e.prototype.drawSegment=function(t,e,i,n){if(!this.disabled)if(t.length>0&&e.length>0&&b["h"](t[0].x)&&b["h"](t[0].y)){var r=f["g"]({x:t[0].x-.2,y:t[0].y-.2})+f["g"](t[0]),a=this.series;"bezier"==a.smoothing?r+=new kt["c"](i,n).smooth(t):"monotoneX"==a.smoothing?r+=new kt["a"]({closed:!1}).smooth(t):"monotoneY"==a.smoothing&&(r+=new kt["b"]({closed:!1}).smooth(t)),0==this.strokeOpacity||0==this.strokeSprite.strokeOpacity||(this.strokeSprite.path=r),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&b["h"](e[0].x)&&b["h"](e[0].y)&&(r+=f["f"](e[0]),"bezier"==a.smoothing?r+=new kt["c"](i,n).smooth(e):"monotoneX"==a.smoothing?r+=new kt["a"]({closed:!1}).smooth(e):"monotoneY"==a.smoothing&&(r+=new kt["b"]({closed:!1}).smooth(e)),r+=f["f"](t[0]),r+=f["d"](),this.fillSprite.path=r)}else this.fillSprite.path="",this.strokeSprite.path=""},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e);var i=this.strokeSprite;R["c"](e,i.properties,p["b"]),i.events.copyFrom(e.strokeSprite.events),i.fillOpacity=0;var n=this.fillSprite;R["c"](e,n.properties,p["b"]),n.events.copyFrom(e.fillSprite.events),n.strokeOpacity=0},e}(l["a"]);r["b"].registeredClasses["LineSeriesSegment"]=It;var Dt=function(t){function e(){var e=t.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(ut),Tt=function(t){function e(){var e=t.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.formatLabel=function(t,e){return this.durationFormatter.format(t,e||this.axisDurationFormat)},e.prototype.adjustMinMax=function(e,i,r,a,s){var o,l,h,u=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),"millisecond"==u||"second"==u||"minute"==u||"hour"==u){a<=1&&(a=1),a=Math.round(a);var p=e,c=i;0===r&&(r=Math.abs(i));var d=r/a,f=[60,30,20,15,10,2,1],g=1;"hour"==u&&(f=[24,12,6,4,2,1]);try{for(var y=Object(n["g"])(f),m=y.next();!m.done;m=y.next()){var b=m.value;if(r/b>a){g=b;break}}}catch(w){o={error:w}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(o)throw o.error}}var v=Math.ceil((i-e)/g/a),x=Math.log(Math.abs(v))*Math.LOG10E,_=Math.pow(10,Math.floor(x))/10,P=v/_,O=D["f"](f,P);v=O*_,d=g*v,this.durationFormatter.getValueUnit(d,this.baseUnit),e=Math.floor(e/d)*d,i=Math.ceil(i/d)*d,s&&(e-=d,e<0&&p>=0&&(e=0),i+=d,i>0&&c<=0&&(i=0)),h={min:e,max:i,step:d}}else h=t.prototype.adjustMinMax.call(this,e,i,r,a,s);return this.axisDurationFormat=this.durationFormatter.getFormat(h.step,h.max,this.baseUnit),h},Object.defineProperty(e.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(t){this._tooltipDurationFormat=t},enumerable:!0,configurable:!0}),e.prototype.getTooltipText=function(t){var e=D["E"](this.positionToValue(t),this._stepDecimalPlaces),i=this.formatLabel(e,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",i):i},Object.defineProperty(e.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(t){this._baseUnit!=t&&(this._baseUnit=t,this.durationFormatter.baseUnit=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},e}(pt);r["b"].registeredClasses["DurationAxis"]=Tt,r["b"].registeredClasses["DurationAxisDataItem"]=Dt;var jt=i("2d86"),At=i("db37"),Ft=function(t){function e(){var e=t.call(this)||this;return e.className="LineSeriesDataItem",e}return Object(n["c"])(e,t),e}(xt),Vt=function(t){function e(){var e=t.call(this)||this;return e.minDistance=.5,e.segments=new o["c"](e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new o["b"](e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new m["a"](e.segments,(function(){return e.segments.create()})),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.smoothing="bezier",e.segmentsContainer=e.mainContainer.createChild(l["a"]),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},e.prototype.createSegment=function(){return new It},e.prototype.createDataItem=function(){return new Ft},e.prototype.setInitialWorkingValues=function(t){var e=this._yAxis.get(),i=this._xAxis.get();if(this.appeared&&this.visible){var n=this.dataItems.getIndex(t.index-1);if(t.component=this,this.baseAxis==i&&e instanceof pt){var r=e.minZoomed;if(n&&(r=n.values["valueY"].workingValue),t.setWorkingValue("valueY",r,0),t.setWorkingValue("valueY",t.values.valueY.value),i instanceof gt)t.setWorkingLocation("dateX",t.locations.dateX-1,0),t.setWorkingLocation("dateX",t.locations.dateX);else if(i instanceof Tt&&n){var a=t.valueX;t.setWorkingValue("valueX",n.valueX,0),t.setWorkingValue("valueX",a)}}if(this.baseAxis==e&&i instanceof pt){var s=i.minZoomed;if(n&&(s=n.values["valueX"].workingValue),t.setWorkingValue("valueX",s,0),t.setWorkingValue("valueX",t.values.valueX.value),e instanceof gt)t.setWorkingLocation("dateY",t.locations.dateX-1,0),t.setWorkingLocation("dateY",t.locations.dateY);else if(e instanceof Tt&&n){a=t.valueY;t.setWorkingValue("valueY",n.valueY,0),t.setWorkingValue("valueY",a)}}}else this.baseAxis==i&&e instanceof pt&&(i instanceof gt&&t.setWorkingLocation("dateX",t.locations.dateX),i instanceof vt&&t.setWorkingLocation("categoryX",t.locations.categoryX)),this.baseAxis==e&&i instanceof pt&&(e instanceof gt&&t.setWorkingLocation("dateY",t.locations.dateY),e instanceof vt&&t.setWorkingLocation("categoryY",t.locations.categoryY))},e.prototype.updateLegendValue=function(e,i){t.prototype.updateLegendValue.call(this,e,i),e&&e.segment&&(this.tooltipColorSource=e.segment)},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),m["d"](this.axisRanges.iterator(),(function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)})),m["d"](this._segmentsIterator.iterator(),(function(t){t.__disabled=!0})))},e.prototype.sliceData=function(){for(var t=this.startIndex,e=this.endIndex,i=this.startIndex-1;i>=0;i--){var n=this.dataItems.getIndex(i);if(n&&n.hasValue(this._xValueFields)&&n.hasValue(this._yValueFields)){t=i;break}}this._adjustedStartIndex=this.findAdjustedIndex(t,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);i=this.endIndex;for(var r=this.dataItems.length;i=0;a--){var s=i.dataItems.getIndex(a);if(s&&b["d"](s.properties[e])){t>a&&(t=a);break}}})),t},e.prototype.openSegmentWrapper=function(t,e){var i={index:t,axisRange:e};do{i=this.openSegment(i.index,i.axisRange)}while(i)},e.prototype.getSegment=function(){var t=this._segmentsIterator.getFirst();return t.series=this,t.isDisposed()?(this.segments.removeValue(t),this.getSegment()):t},e.prototype.openSegment=function(t,e){var i=!1,n=[];t=Math.min(t,this.dataItems.length);var r,a=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var s=!1,o=this.getSegment();o.strokeDasharray=void 0,o.__disabled=!1,e?(o.parent=e.contents,R["c"](e.contents,o,p["b"])):(R["c"](this,o,p["b"]),o.filters.clear(),o.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var l=this.connect,h=!1,u=t;u=i;o--){var l=this.dataItems.getIndex(o);l.hasValue(this._xValueFields)&&l.hasValue(this._yValueFields)&&this.addPoints(s,l,this.xOpenField,this.yOpenField,!0)}else{var h=this.baseAxis,u=e.length,p=this.xAxis,c=this.yAxis;u>0&&(h==p?(s.push({x:e[u-1].x,y:c.basePoint.y}),s.push({x:e[0].x,y:c.basePoint.y})):(s.push({x:p.basePoint.x,y:e[u-1].y}),s.push({x:p.basePoint.x,y:e[0].y})))}return this.drawSegment(t,e,s),a&&n++,n0){var a=t.createChild(At["a"]);R["c"](this,a,p["b"]),a.width=i,a.height=n,a.y=0,a.strokeOpacity=0,a.visible=!0,r.y=0}var s=t.dataItem;s.color=this.stroke,s.colorOrig=this.fill,m["e"](this.bullets.iterator(),(function(r){if(r instanceof w&&!r.copyToLegendMarker)return!1;var a=!1;if(r instanceof l["a"]&&m["d"](r.children.iterator(),(function(t){if(t instanceof h["a"])return a=!0,!0})),!a){var s=r.clone();return s.parent=t,s.isMeasured=!0,s.tooltipText=void 0,s.x=i/2,e.fillOpacity>0?s.y=0:s.y=n/2,s.visible=!0,b["d"](s.fill)||(s.fill=e.fill),b["d"](s.stroke)||(s.stroke=e.stroke),!1}}))},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(e.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(t){this.setPropertyValue("autoGapCount",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(t){this.setPropertyValue("smoothing",t,!0)},enumerable:!0,configurable:!0}),e}(_t);r["b"].registeredClasses["LineSeries"]=Vt,r["b"].registeredClasses["LineSeriesDataItem"]=Ft;var Mt=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return Object(n["c"])(e,t),e}(Ft),Et=function(t){function e(){var e=t.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.createDataItem=function(){return new Mt},e.prototype.getPoint=function(t,e,i,n,r,a,s){a||(a="valueX"),s||(s="valueY");var o=this.yAxis.getX(t,i,r,s),l=this.yAxis.getY(t,i,r,s),h=D["q"]({x:o,y:l});0==h&&(h=1e-5);var u=this.xAxis.getAngle(t,e,n,a),p=this.chart.startAngle,c=this.chart.endAngle;return uc?void 0:{x:h*D["g"](u),y:h*D["F"](u)}},e.prototype.addPoints=function(t,e,i,n,r){var a=this.getPoint(e,i,n,e.locations[i],e.locations[n]);a&&t.push(a)},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return f["a"](t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.drawSegment=function(e,i,n){var r=this.yAxis,a=r.renderer;this.connectEnds&&360==Math.abs(a.endAngle-a.startAngle)&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(i.push(i[0]),n.length>0&&n.unshift(n[n.length-1])),t.prototype.drawSegment.call(this,e,i,n)},Object.defineProperty(e.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(t){this.setPropertyValue("connectEnds",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBulletReal=function(t,e,i){var n=this.xAxis,r=this.yAxis;(en.end||ir.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,i))},e.prototype.setXAxis=function(e){t.prototype.setXAxis.call(this,e),this.updateRendererRefs()},e.prototype.setYAxis=function(e){t.prototype.setYAxis.call(this,e),this.updateRendererRefs()},e.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},e}(Vt);r["b"].registeredClasses["RadarSeries"]=Et,r["b"].registeredClasses["RadarSeriesDataItem"]=Mt;var Lt=i("f0c5"),Rt=function(t){function e(e){var i=t.call(this,e)||this;return i.className="AxisFillCircular",i.element=i.paper.add("path"),i.radius=Object(d["c"])(100),i.applyTheme(),i}return Object(n["c"])(e,t),e.prototype.draw=function(){if(t.prototype.draw.call(this),!this.__disabled&&!this.disabled&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,b["d"](this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(t){this.setPropertyValue("cornerRadius",t,!0)},enumerable:!0,configurable:!0}),e}(tt);r["b"].registeredClasses["AxisFillCircular"]=Rt;var Bt=function(t){function e(){var e=t.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e}(et);r["b"].registeredClasses["GridCircular"]=Bt;var Ht=function(t){function e(){var e=t.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.locationOnPath=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(t){if(this.setPropertyValue("relativeRotation",t,!0),!b["d"](t)){this.rotation=void 0;var e=this.dataItem;e&&e.component&&e.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(t){this.setPropertyValue("bent",t,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),t?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),e.prototype.pixelRadius=function(t){var e=1;return this.inside&&(e=-1),I["F"](this.radius,t)*e},e.prototype.pixelRadiusY=function(t,e){var i=1;this.inside&&(i=-1);var n=this.radius;return b["h"](n)?(n*=e/t,I["F"](n,t)*i):I["F"](n,e)*i},e.prototype.fixPosition=function(t,e,i,n,r){b["h"](i)||(i=e),b["h"](n)||(n=0),b["h"](r)||(r=0);var a={x:e*D["g"](t),y:i*D["F"](t)};this.invalid&&this.validate();var s=!1,o=this.radius;(o instanceof d["a"]&&o.value<0||o<0)&&(s=!0);var l=this.relativeRotation,h=this.pixelRadius(e);if(this.bent){var u={x:(e+h)*D["g"](t+180),y:(i+h*i/e)*D["F"](t+180)};return this.path=f["g"](u)+f["b"](t+180,360,e+h,i+h*i/e),void(this.textPathElement&&this.textPathElement.attr({startOffset:100*this.locationOnPath+"%"}))}if(b["h"](l)){this.horizontalCenter="none",this.verticalCenter="none",t=D["h"](t,-180,180);var p=this.bbox.width,c=this.bbox.height,g=this.pixelPaddingBottom,y=this.pixelPaddingTop,m=this.pixelPaddingLeft,v=this.pixelPaddingRight;t>90||t<-90?-90==l&&(l=90,p=0):(-90==l&&(c=-c),90==l&&(l=-90,p=-m-v,c=-c-y-g)),this.rotation=l+t+90;var x=D["F"](l)/2,_=D["g"](l)/2,P=this.rotation;this.dx=c*x*D["F"](P)-p*_*D["g"](P),this.dy=-c*x*D["g"](P)-p*_*D["F"](P),this.inside?t>90||t<-90?h-=(g+y)*D["g"](l)+(m+v)*D["F"](l):h+=(g+this.bbox.height+y)*D["g"](l)+(m+v+this.bbox.width)*D["F"](l):h+=(c+g+y)*D["g"](l)+(p+m+v)*D["F"](l),a.x+=D["g"](t)*h,a.y+=D["F"](t)*h*i/e}else this.horizontalCenter="middle",this.verticalCenter="middle",s?(this.dx=0,this.dy=0,a.x=(e+h)*D["g"](t),a.y=(i+h*i/e)*D["F"](t)):(this.dy=this._measuredHeight/2*D["F"](t),this.dx=this._measuredWidth/2*D["g"](t),a.x+=D["g"](t)*h,a.y+=D["F"](t)*h*i/e);a.x+=n,a.y+=r,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(a)},e}(it);r["b"].registeredClasses["AxisLabelCircular"]=Ht;var Wt=function(t){function e(){var e=t.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=Object(d["c"])(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.setAxis=function(e){var i=this;t.prototype.setAxis.call(this,e),e.isMeasured=!1;var n=e.tooltip;n.adapter.add("dx",(function(t,e){var n=I["P"]({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.cos(Math.atan2(n.y,n.x))-n.x})),n.adapter.add("dy",(function(t,e){var n=I["P"]({x:e.pixelX,y:e.pixelY},i);return i.pixelRadius*Math.sin(Math.atan2(n.y,n.x))-n.y}))},e.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},Object.defineProperty(e.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return I["E"](this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){var t=this.chart,e=this.getPropertyValue("innerRadius");if(t){if(b["d"](e)){if(e instanceof d["a"]&&t){var i=t.mr,n=e.value;n=Math.max(i*n,i-Math.min(t.plotContainer.innerHeight,t.plotContainer.innerWidth))/i,e=Object(d["c"])(100*n)}}else e=t.innerRadius,e instanceof d["a"]&&t&&(e=Object(d["c"])(e.value*t.innerRadiusModifyer*100));return e}},set:function(t){this.setPercentProperty("innerRadius",t,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(t){this.setPropertyValue("useChartAngles",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return I["E"](this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t,e){b["h"](e)||(e=1);var i=this.positionToCoordinate(t),n=this.startAngle+(this.endAngle-this.startAngle)*i/this.axisLength,r=this.pixelRadius,a=this.pixelInnerRadius;if(this.axisRendererY){var s=D["i"](this.axisRendererY.positionToCoordinate(e),0,1/0);0==s&&(s=1e-6);var o={x:s*D["g"](n),y:s*D["F"](n)};return o}return{x:D["g"](n)*a+(r-a)*D["g"](n)*e,y:D["F"](n)*a+(r-a)*D["F"](n)*e}},e.prototype.positionToAngle=function(t){var e,i=this.axis,n=(this.endAngle-this.startAngle)/(i.end-i.start);return e=i.renderer.inversed?this.startAngle+(i.end-t)*n:this.startAngle+(t-i.start)*n,D["E"](e,3)},e.prototype.angleToPosition=function(t){var e,i=this.axis,n=(this.endAngle-this.startAngle)/(i.end-i.start);return e=i.renderer.inversed?i.end-(t-this.startAngle)/n:(t-this.startAngle)/n+i.start,D["E"](e,5)},e.prototype.updateAxisLine=function(){var t=this.pixelRadius,e=this.startAngle,i=this.endAngle,n=D["C"](360,i-e);this.line.path=f["g"]({x:t*D["g"](e),y:t*D["F"](e)})+f["b"](e,n,t,t)},e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(b["h"](n.x)&&b["h"](n.y)&&t.element){var r=D["a"]*Math.atan2(n.y,n.x),a=I["E"](b["d"](t.radius)?t.radius:Object(d["c"])(100),this.pixelRadius),s=I["E"](t.innerRadius,this.pixelRadius);t.zIndex=0;var o=I["E"](b["h"](s)?s:this.innerRadius,this.pixelRadiusReal,!0);b["h"](o)||(o=0),t.path=f["g"]({x:o*D["g"](r),y:o*D["F"](r)})+f["f"]({x:a*D["g"](r),y:a*D["F"](r)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.pixelRadius,a=D["a"]*Math.atan2(n.y,n.x),s=t.length;t.inside&&(s=-s),t.zIndex=1,t.path=f["g"]({x:r*D["g"](a),y:r*D["F"](a)})+f["f"]({x:(r+s)*D["g"](a),y:(r+s)*D["F"](a)})}this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ot&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e),a=this.pixelRadius,s=D["a"]*Math.atan2(r.y,r.x);r={x:a*D["g"](s),y:a*D["F"](s)},this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e.prototype.updateLabelElement=function(t,e,i,n){b["d"](n)||(n=t.location),e+=(i-e)*n,t.fixPosition(this.positionToAngle(e),this.pixelRadius),t.zIndex=2,this.toggleVisibility(t,e,this.minLabelPosition,this.maxLabelPosition)},e.prototype.fitsToBounds=function(t){return!0},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),e.prototype.getPositionRangePath=function(t,e,i,n,r){var a="";if(b["h"](t)&&b["h"](e)){b["d"](i)||(i=this.radius),t=D["B"](t,this.axis.start),e=D["C"](e,this.axis.end),e0&&p&&h&&h instanceof vt){var c=h.renderer.grid.template.location,d=h.getAngle(p.dataItems.getIndex(0),"categoryX",c);n=f["g"]({x:a*D["g"](d),y:a*D["F"](d)});for(var g=1;g0&&c&&p&&p instanceof vt){var g=p.renderer.grid.template.location,y=p.getAngle(c.dataItems.getIndex(0),"categoryX",g);i=f["g"]({x:s*D["g"](y),y:s*D["F"](y)});for(var m=1;m=0;m--)y=p.getAngle(c.dataItems.getIndex(m),"categoryX",g),i+=f["f"]({x:a*D["g"](y),y:a*D["F"](y)})}else i=f["a"](o,h,s,a);return i},e.prototype.updateBreakElement=function(t){var e=t.startLine,i=t.endLine,n=t.fillShape,r=t.startPoint,a=t.endPoint;e.radius=Math.abs(r.y),i.radius=Math.abs(a.y),n.radius=Math.abs(a.y),n.innerRadius=Math.abs(r.y)},e.prototype.createBreakSprites=function(t){t.startLine=new Nt["a"],t.endLine=new Nt["a"],t.fillShape=new Nt["a"]},e.prototype.updateTooltip=function(){var t=this.axis;if(t){var e=4e3,i=-4e3,n=-4e3,r=2*e,a=2*e,s=this.axisAngle;s<0&&(s+=360);var o="vertical";(s>45&&s<135||s>225&&s<315)&&(o="horizontal"),this.axis.updateTooltip(o,{x:i,y:n,width:r,height:a})}},e.prototype.updateTickElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=D["D"](this.axisAngle+90);r/90!=Math.round(r/90)?t.pixelPerfect=!1:t.pixelPerfect=!0;var a=-t.length;t.inside&&(a*=-1),t.path=f["g"]({x:0,y:0})+f["f"]({x:a*D["g"](r),y:a*D["F"](r)})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBullet=function(t,e,i){var n=.5;t instanceof ot&&(n=t.location),e+=(i-e)*n;var r=this.positionToPoint(e);this.positionItem(t,r),this.toggleVisibility(t,e,0,1)},e.prototype.positionToCoordinate=function(t){var e,i=this.axis,n=i.axisFullLength,r=this.pixelInnerRadius;return e=i.renderer.inversed?(i.end-t)*n+r:(t-i.start)*n+r,D["E"](e,1)},e.prototype.pointToPosition=function(t){var e=D["q"](t)-this.pixelInnerRadius;return this.coordinateToPosition(e)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this._chart.set(t,null)},enumerable:!0,configurable:!0}),e}(lt);r["b"].registeredClasses["AxisRendererRadial"]=Yt;var Xt=function(t){function e(){var e=t.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Ct),zt=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=Wt,e._axisRendererY=Yt,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=Object(d["c"])(80),e.innerRadius=0;var i=e.plotContainer.createChild(l["a"]);return i.shouldClone=!1,i.layout="absolute",i.align="center",i.valign="middle",e.seriesContainer.parent=i,e.radarContainer=i,e.bulletsContainer.parent=i,e.axisBulletsContainer=i,e._cursorContainer=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=i.createChild(Lt["a"]),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},e.prototype.processAxis=function(e){t.prototype.processAxis.call(this,e);var i=e.renderer;i.gridContainer.parent=i,i.breakContainer.parent=i,e.parent=this.radarContainer,i.toBack()},e.prototype.handleXAxisRangeChange=function(){t.prototype.handleXAxisRangeChange.call(this),m["d"](this.yAxes.iterator(),(function(t){t.invalidate()}))},e.prototype.handleYAxisRangeChange=function(){t.prototype.handleYAxisRangeChange.call(this),m["d"](this.xAxes.iterator(),(function(t){t.invalidate()}))},e.prototype.processConfig=function(e){if(e&&(b["d"](e.cursor)&&!b["d"](e.cursor.type)&&(e.cursor.type="RadarCursor"),b["d"](e.series)&&b["e"](e.series)))for(var i=0,n=e.series.length;ia&&(this.rotation=a+360),this.animate({property:"rotation",to:r},e,i)}},Object.defineProperty(e.prototype,"currentPosition",{get:function(){if(this.axis){var t=this.axis.renderer;return t.angleToPosition(this.rotation)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.showValue(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"axis",{get:function(){return this._axis.get()},set:function(t){if(this.axis!=t&&this._axis.set(t,new s["c"]([t.events.on("datavalidated",this.updateValue,this,!1),t.events.on("datarangechanged",this.updateValue,this,!1),t.events.on("dataitemsvalidated",this.updateValue,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),t){var e=t.chart;e&&(this.rotation=e.startAngle)}this.parent=t.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),e.prototype.updateValue=function(){this.value=this.value},e.prototype.processConfig=function(e){e&&b["d"](e.axis)&&b["j"](e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),t.prototype.processConfig.call(this,e)},e}(l["a"]);r["b"].registeredClasses["ClockHand"]=Gt;(function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}Object(n["c"])(e,t)})(Xt);var Kt=function(t){function e(){var e=t.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new o["c"](new Gt),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new o["b"](e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},e.prototype.processHand=function(t){var e=t.newValue;e.axis||(e.axis=this.xAxes.getIndex(0))},e.prototype.configOrder=function(e,i){return e==i?0:"hands"==e?1:"hands"==i?-1:t.prototype.configOrder.call(this,e,i)},e}(zt);r["b"].registeredClasses["GaugeChart"]=Kt;var qt=function(t){function e(){var e=t.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.uidAttr=function(){return this.slice.uidAttr()},e.prototype.hide=function(e,i,n,r){return r||(r=["value"]),t.prototype.hide.call(this,e,i,0,r)},e.prototype.setVisibility=function(e,i){i||(e?this.setWorkingValue("value",this.values["value"].value,0,0):this.setWorkingValue("value",0,0,0)),t.prototype.setVisibility.call(this,e,i)},e.prototype.show=function(e,i,n){return n||(n=["value"]),t.prototype.show.call(this,e,i,n)},Object.defineProperty(e.prototype,"category",{get:function(){return this.properties.category},set:function(t){this.setProperty("category",t)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){this.component.createLegendMarker(t,this)},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,t.label&&(t.label.dataItem=this),t.valueLabel&&(t.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tick",{get:function(){var t=this;if(!this._tick){var e=this.component.ticks.create();this._tick=e,this.addSprite(e),this._disposers.push(e),e.parent=this.component.ticksContainer,this._disposers.push(new s["b"]((function(){t.component&&t.component.ticks.removeValue(e)}))),e.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){var t=this;if(!this._label){var e=this.component.labels.create();this.addSprite(e),this._label=e,this._disposers.push(e),e.parent=this.component.labelsContainer,this._disposers.push(new s["b"]((function(){t.component&&t.component.labels.removeValue(e)}))),e.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slice",{get:function(){var t=this;if(!this._slice){var e=this.component,i=e.slices.create();this.addSprite(i),this._slice=i,this._disposers.push(i),i.parent=e.slicesContainer,this._disposers.push(new s["b"]((function(){e.slices.removeValue(i)}))),i.visible=this.visible,e.itemsFocusable()?(b["d"](this.component.role)||(this.component.role="menu"),b["d"](i.role)||(i.role="menuitem"),i.focusable=!0):(b["d"](this.component.role)||(this.component.role="list"),b["d"](i.role)||(i.role="listitem"),i.focusable=!1),i.focusable&&(i.events.on("focus",(function(n){i.readerTitle=e.populateString(e.itemReaderText,t)}),void 0,!1),i.events.on("blur",(function(t){i.readerTitle=""}),void 0,!1)),i.hoverable&&(i.events.on("over",(function(n){i.readerTitle=e.populateString(e.itemReaderText,t)}),void 0,!1),i.events.on("out",(function(t){i.readerTitle=""}),void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(t){this.setProperty("hiddenInLegend",t)},enumerable:!0,configurable:!0}),e}(W),Zt=function(t){function e(){var e=t.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new Y["a"],e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var i=e.createChild(l["a"]);i.shouldClone=!1,i.isMeasured=!1,e.slicesContainer=i;var n=e.createChild(l["a"]);n.shouldClone=!1,n.isMeasured=!1,n.layout="none",e.ticksContainer=n;var r=e.createChild(l["a"]);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.labelsContainer=r,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50;var a=e.defaultState;return a.transitionEasing=L["sinOut"],e.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createSlice=function(){return new p["a"]},e.prototype.createTick=function(){return new nt},e.prototype.createLabel=function(){return new h["a"]},Object.defineProperty(e.prototype,"slices",{get:function(){if(!this._slices){var t=this.createSlice();t.applyOnClones=!0,this._disposers.push(t),this.initSlice(t),this._slices=new o["c"](t),this._disposers.push(new o["b"](this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ticks",{get:function(){if(!this._ticks){var t=this.createTick();t.applyOnClones=!0,this._disposers.push(t),this.initTick(t),this._ticks=new o["c"](t),this._disposers.push(new o["b"](this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labels",{get:function(){if(!this._labels){var t=this.createLabel();t.applyOnClones=!0,this._disposers.push(t),this.initLabel(t),this._labels=new o["c"](t),this._disposers.push(new o["b"](this._labels))}return this._labels},enumerable:!0,configurable:!0}),e.prototype.createDataItem=function(){return new qt},e.prototype.initSlice=function(t){},e.prototype.initLabel=function(t){t.text="{category}: {value.percent.formatNumber('#.0p')}",t.isMeasured=!1,t.padding(5,5,5,5)},e.prototype.initTick=function(t){},e.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),t.prototype.validateDataItems.call(this)},e.prototype.validateDataElement=function(e){var i=e.slice;i&&(void 0==i.fill?this.patterns?(b["d"](i.stroke)||(i.stroke=this.colors.next()),i.fill=this.patterns.next(),b["d"](i.fillOpacity)&&(i.fill.backgroundOpacity=i.fillOpacity),i.stroke instanceof E["a"]&&(i.fill.stroke=i.stroke,i.fill.fill=i.stroke)):i.fill=this.colors.next():this.colors.currentStep+=this.colors.step,void 0==i.stroke&&(i.stroke=i.fill)),t.prototype.validateDataElement.call(this,e),i&&e.bullets.each((function(t,e){void 0==e.fill&&(e.fill=i.fill),void 0==e.stroke&&(e.stroke=i.stroke)})),this.updateLegendValue(e)},e.prototype.validateData=function(){t.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},e.prototype.arrangeLabels=function(t){for(var e=0,i=t.length;e=0;i--){var n=t[i],r=n.label;if(r){r.invalid&&r.validate();var a=r.measuredHeight;r.visible||(a=0),r.pixelY+a/2>e&&(r.y=e-a/2,e=r.y-a/2)}}},e.prototype.getNextLabel=function(t,e){if(e.length>=t){var i=e[t];if(i)return i.label&&i.visible?i.label:this.getNextLabel(t+1,e)}},Object.defineProperty(e.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(t){this.setPropertyValue("colors",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(t){this.setPropertyValue("patterns",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t,e){m["d"](t.children.iterator(),(function(i){var n=e.slice;i.defaultState.properties.fill=n.fill,i.defaultState.properties.stroke=n.stroke,i.defaultState.properties.fillOpacity=n.fillOpacity,i.defaultState.properties.strokeOpacity=n.strokeOpacity,i.fill=n.fill,i.stroke=n.stroke,i.fillOpacity=n.fillOpacity,i.strokeOpacity=n.strokeOpacity,void 0==i.fill&&(i.__disabled=!0);var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill,i.addDisposer(n.events.on("propertychanged",(function(t){"fill"==t.property&&(i.__disabled=!1,i.isActive||(i.fill=n.fill),i.defaultState.properties.fill=n.fill,r.color=n.fill,r.colorOrig=n.fill),"stroke"==t.property&&(i.isActive||(i.stroke=n.stroke),i.defaultState.properties.stroke=n.stroke),"strokeOpacity"==t.property&&(i.isActive||(i.strokeOpacity=n.strokeOpacity),i.defaultState.properties.strokeOpacity=n.strokeOpacity)}),void 0,!1))}))},e.prototype.handleSliceScale=function(t){var e=this,i=t.target,n=i.dataItem;n&&n.bullets&&m["d"](n.bullets.iterator(),(function(t){var i=t[1];e.positionBullet(i)}))},e.prototype.handleSliceMove=function(t){},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template),this.colors=e.colors.clone()},Object.defineProperty(e.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(t){this.setAlignLabels(t)},enumerable:!0,configurable:!0}),e.prototype.setAlignLabels=function(t){this.setPropertyValue("alignLabels",t,!0)},Object.defineProperty(e.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(t){this.setPropertyValue("ignoreZeroValues",t,!0)},enumerable:!0,configurable:!0}),e.prototype.updateLegendValue=function(t){if(t){var e=t.legendDataItem,i=t.legendSettings;e&&i&&i&&(i.labelText&&(e.label.text=i.labelText),i.itemLabelText&&(e.label.text=i.itemLabelText),i.valueText&&(e.valueLabel.text=i.valueText),i.itemValueText&&(e.valueLabel.text=i.itemValueText))}},e}(N);r["b"].registeredClasses["PercentSeries"]=Zt,r["b"].registeredClasses["PercentSeriesDataItem"]=qt,v["c"].push({relevant:v["b"].maybeXS,state:function(t,e){if(t instanceof Zt){var i=t.states.create(e),n=t.labels.template.states.create(e);n.properties.disabled=!0;var r=t.ticks.template.states.create(e);return r.properties.disabled=!0,i}return null}});var Jt=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(X),$t=function(t){function e(){var e=t.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validateData=function(){t.prototype.validateData.call(this),this.feedLegend()},e.prototype.feedLegend=function(){var t=this.legend;if(t){var e=[];m["d"](this.series.iterator(),(function(t){t.hiddenInLegend||m["d"](t.dataItems.iterator(),(function(i){i.hiddenInLegend||(e.push(i),i.legendSettings||(i.legendSettings=t.legendSettings))}))})),t.data=e,t.dataFields.name="category"}},e.prototype.createSeries=function(){return new Zt},e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",e.itemContainers.template.events.on("over",(function(t){var e=t.target.dataItem.dataContext;if(e.visible&&!e.isHiding){var i=e.slice;i.dispatchImmediately("over"),i.isHover=!0,i.interactions.isRealHover=!0}})),e.itemContainers.template.events.on("out",(function(t){var e=t.target.dataItem.dataContext,i=e.slice;i.dispatchImmediately("out"),i.isHover=!1})))},e}(z);r["b"].registeredClasses["PercentChart"]=$t,r["b"].registeredClasses["PercentChartDataItem"]=Jt;var Qt=i("82ff"),te=function(t){function e(){var e=t.call(this)||this;return e._label=new s["d"],e._slice=new s["d"],e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=this.label,n=e.dataItem.component;if(e&&e.radius>0&&i&&i.text){var r=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,a=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,s=void 0,o=void 0,l=void 0,h=void 0;if(n.alignLabels)s=i.pixelX-this.length,o=i.pixelY,l=i.pixelX,h=o,"right"==i.horizontalCenter&&(s+=2*this.length,l=s-this.length);else{var u=i.pixelRadius(e.radius);s=r+u*e.ix,o=a+u*e.iy,l=s,h=o}this.element.attr({points:[r,a,s,o,l,h]})}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new s["c"]([t.events.on("transformed",this.invalidate,this),t.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),e}(nt);r["b"].registeredClasses["PieTick"]=te;var ee=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(t){this.setValue("radiusValue",t)},enumerable:!0,configurable:!0}),e.prototype.hide=function(e,i,n,r){return t.prototype.hide.call(this,e,i,0,["value","radiusValue"])},e.prototype.show=function(e,i,n){return t.prototype.show.call(this,e,i,["value","radiusValue"])},e}(qt),ie=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=Object(d["c"])(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createSlice=function(){return new Qt["a"]},e.prototype.createTick=function(){return new te},e.prototype.createLabel=function(){return new Ht},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},e.prototype.createDataItem=function(){return new ee},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var e=t.states.create("hover");e.properties.scale=1.05;var i=t.defaultState;i.properties.shiftRadius=0,t.togglable=!0,t.events.on("toggled",(function(t){t.target.hideTooltip(),t.target.interactions.lastHitPointer&&t.target.interactions.lastHitPointer.touch&&!t.target.isActive&&(t.target.isHover=!1)}));var n=t.states.create("active");n.properties.shiftRadius=.1},e.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=D["k"](this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;ethis._maxRadiusPercent&&(this._maxRadiusPercent=n)}t.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort((function(t,e){var i=(t.slice.middleAngle+360)%360,n=(e.slice.middleAngle+360)%360;return i>270&&(i-=360),n>270&&(n-=360),in?1:0})),this._leftItems.sort((function(t,e){var i=(t.slice.middleAngle+360)%360,n=(e.slice.middleAngle+360)%360;return in?-1:0})),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},e.prototype.validateDataElement=function(e){if(this.pixelRadius>0){!this.ignoreZeroValues||0!=e.value&&null!=e.value?e.__disabled=!1:e.__disabled=!0;var i=e.slice;if(i.radius=this.pixelRadius,b["h"](e.radiusValue)&&(i.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),i.innerRadius instanceof d["a"]||(i.innerRadius=this.pixelInnerRadius),i.startAngle=this._currentStartAngle,i.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var n=e.label,r=e.tick;r.slice=i,r.label=n;var a=(i.middleAngle+360)%360,s=void 0;if(this.alignLabels){var o=n.pixelRadius(i.radius),l=r.length+o;n.dx=0,n.dy=0,n.verticalCenter="middle";var h=this._arcRect;a>270||a<=90?(l+=(h.width+h.x)*this.pixelRadius,n.horizontalCenter="left",this._rightItems.push(e)):(l-=h.x*this.pixelRadius,n.horizontalCenter="right",this._leftItems.push(e),l*=-1);var u=i.radius+r.length+o;s={x:l,y:i.iy*u},n.moveTo(s)}else{var p=i["depth"];b["h"](p)||(p=0),n.fixPosition(i.middleAngle,i.radius,i.radiusY,0,-p)}}this._currentStartAngle+=i.arc,t.prototype.validateDataElement.call(this,e)}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(t){this._pixelRadius!=t&&(this._pixelRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(t){this._pixelInnerRadius!=t&&(this._pixelInnerRadius=t,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAngle",{get:function(){var t=this.getPropertyValue("startAngle");return b["h"](t)?t:this._startAngleInternal},set:function(t){this.setPropertyValue("startAngle",D["D"](t),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){var t=this.getPropertyValue("endAngle");return b["h"](t)?t:this._endAngleInternal},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,n=i.slice,r=e.locationX;b["h"](r)||(r=.5);var a=e.locationY;b["h"](a)||(a=1);var s=n.startAngle+n.arc*r;e.x=a*n.radius*D["g"](s),e.y=a*n.radiusY*D["F"](s)},e.prototype.handleSliceMove=function(t){if(!this.alignLabels){var e=t.target,i=e.dataItem;if(i){var n=i.label;n&&(n.dx=n.fdx+e.dx+e.pixelX,n.dy=n.fdy+e.dy+e.pixelY)}}},Object.defineProperty(e.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var t=this.chart;return t?D["k"](t.startAngle,t.endAngle,this.pixelRadius):D["k"](this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),e}(Zt);r["b"].registeredClasses["PieSeries"]=ie,r["b"].registeredClasses["PieSeriesDataItem"]=ee;var ne=function(t){function e(){var e=t.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Jt),re=function(t){function e(){var e=t.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=Object(d["c"])(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var i=e.seriesContainer;return i.isMeasured=!0,i.valign="middle",i.align="center",i.layout="absolute",i.width=void 0,i.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e._disposers.push(e.seriesContainer.events.on("positionchanged",(function(){e.bulletsContainer.x=e.seriesContainer.x,e.bulletsContainer.y=e.seriesContainer.y}))),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.updateRadius()},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},e.prototype.updateSeriesAngles=function(){var t=this;this.series.each((function(e){e._startAngleInternal=t.startAngle,e._endAngleInternal=t.endAngle}))},e.prototype.updateRadius=function(){var t=this.chartContainer,e=D["k"](this.startAngle,this.endAngle,1),i={x:0,y:0,width:0,height:0},n=this.innerRadius;n instanceof d["a"]&&(i=D["k"](this.startAngle,this.endAngle,n.value)),e=D["m"]([e,i]);var r=Math.min(t.innerWidth/e.width,t.innerHeight/e.height);b["h"](r)||(r=0);var a=I["E"](this.radius,r),s=I["E"](this.innerRadius,r),o=(a-s)/this.series.length;a==this._chartPixelRadius&&s==this._chartPixelInnerRadius||(this._chartPixelRadius=a,this._chartPixelInnerRadius=s,m["d"](m["i"](this.series.iterator()),(function(t){var e=t[0],i=t[1],n=s+I["E"](i.radius,a-s),r=s+I["E"](i.innerRadius,a-s);b["h"](n)||(n=s+o*(e+1)),b["h"](r)||(r=s+o*e),i.pixelRadius=n,i.pixelInnerRadius=r})),this.seriesContainer.definedBBox={x:a*e.x,y:a*e.y,width:a*e.width,height:a*e.height},this.seriesContainer.invalidateLayout())},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPercentProperty("radius",t,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(t){this.setPercentProperty("innerRadius",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new ie},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),e}($t);r["b"].registeredClasses["PieChart"]=re,r["b"].registeredClasses["PieChartDataItem"]=ne;var ae=i("eac3"),se=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"depthValue",{get:function(){return this.values["depthValue"].value},set:function(t){this.setValue("depthValue",t)},enumerable:!0,configurable:!0}),e}(ee),oe=function(t){function e(){var e=t.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createDataItem=function(){return new se},e.prototype.createSlice=function(){return new ae["a"]},e.prototype.validateDataElement=function(e){var i=e.slice,n=this.depth;b["h"](n)||(n=this.chart.depth);var r=e.values.depthValue.percent;b["h"](r)||(r=100),i.depth=r*n/100;var a=this.angle;b["h"](a)||(a=this.chart.angle),i.angle=a,t.prototype.validateDataElement.call(this,e)},e.prototype.validate=function(){t.prototype.validate.call(this);for(var e=this._workingStartIndex;e=-90&&r<90?n.toFront():r>=90&&n.toBack()}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t)},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(e){t.prototype.positionBullet.call(this,e);var i=e.dataItem,n=i.slice;e.y=e.pixelY-n.depth},e}(ie);r["b"].registeredClasses["PieSeries3D"]=oe,r["b"].registeredClasses["PieSeries3DDataItem"]=se;(function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}Object(n["c"])(e,t)})(ne);var le=function(t){function e(){var e=t.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){t=D["i"](t,0,90),this.setPropertyValue("angle",t)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new oe},e}(re);r["b"].registeredClasses["PieChart3D"]=le;var he=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Jt),ue=function(t){function e(){var e=t.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},e.prototype.validate=function(){t.prototype.validate.call(this)},e}($t);r["b"].registeredClasses["SlicedChart"]=ue,r["b"].registeredClasses["SlicedChartDataItem"]=he;var pe=i("6b83"),ce=i("f942"),de=function(t){function e(){var e=t.call(this)||this;return e.legendSettings=new F,e.className="FlowDiagramNode",e.isMeasured=!1,new c["a"],e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return Object(n["c"])(e,t),e.prototype.handleHit=function(t){this.isHidden||this.isHiding?this.show():this.hide()},e.prototype.show=function(e){var i=t.prototype.show.call(this,e);return this.outgoingDataItems.each((function(t){(!t.toNode||t.toNode&&!t.toNode.isHidden)&&(t.setWorkingValue("value",t.getValue("value"),e),t.link.show())})),this.incomingDataItems.each((function(t){(!t.fromNode||t.fromNode&&!t.fromNode.isHidden)&&(t.setWorkingValue("value",t.getValue("value"),e),t.link.show())})),i},e.prototype.hide=function(e){var i=t.prototype.hide.call(this,e);return this.outgoingDataItems.each((function(t){t.setWorkingValue("value",0,e),t.link.hide()})),this.incomingDataItems.each((function(t){t.setWorkingValue("value",0,e),t.link.hide()})),i},e.prototype.validate=function(){this.isDisposed()||(t.prototype.validate.call(this),this.invalidateLinks())},e.prototype.invalidateLinks=function(){var t=this;this.outgoingDataItems.each((function(e){var i=e.link;if("fromNode"==i.colorMode&&(i.fill=i.dataItem.fromNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var n=i.gradient.stops.getIndex(0);n&&(n.color=t.color,i.gradient.validate())}})),this.incomingDataItems.each((function(e){var i=e.link;if("toNode"==i.colorMode&&(i.fill=i.dataItem.toNode.color),"gradient"==i.colorMode){i.fill=i.gradient,i.stroke=i.gradient;var n=i.gradient.stops.getIndex(1);n&&(n.color=t.color,i.gradient.validate())}}))},Object.defineProperty(e.prototype,"incomingDataItems",{get:function(){var t=this;if(!this._incomingDataItems){var e=new o["a"];e.events.on("inserted",(function(){"name"==t.chart.sortBy?t._incomingSorted=m["l"](t._incomingDataItems.iterator(),(function(t,e){return pe["a"](t.fromName,e.fromName)})):"value"==t.chart.sortBy?t._incomingSorted=m["l"](t._incomingDataItems.iterator(),(function(t,e){return ce["b"](Z["a"](t.value,e.value))})):t._incomingSorted=t._incomingDataItems.iterator()}),void 0,!1),this._incomingDataItems=e}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outgoingDataItems",{get:function(){var t=this;if(!this._outgoingDataItems){var e=new o["a"];e.events.on("inserted",(function(){"name"==t.chart.sortBy?t._outgoingSorted=m["l"](t._outgoingDataItems.iterator(),(function(t,e){return pe["a"](t.fromName,e.fromName)})):"value"==t.chart.sortBy?t._outgoingSorted=m["l"](t._outgoingDataItems.iterator(),(function(t,e){return ce["b"](Z["a"](t.value,e.value))})):t._outgoingSorted=t._outgoingDataItems.iterator()}),void 0,!1),this._outgoingDataItems=e}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(t){this.setPropertyValue("name",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(t){this.setPropertyValue("total",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(t){this.setPropertyValue("totalIncoming",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(t){this.setPropertyValue("totalOutgoing",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(t){this.setColorProperty("color",t),this._background&&(this._background.fill=t),this.fill=t},enumerable:!0,configurable:!0}),e.prototype.createLegendMarker=function(t){var e=t.pixelWidth,i=t.pixelHeight;t.removeChildren();var n=t.createChild(C["a"]);n.shouldClone=!1,R["c"](this,n,p["b"]),n.stroke=this.fill,n.copyFrom(this),n.padding(0,0,0,0),n.width=e,n.height=i;var r=t.dataItem;r.color=n.fill,r.colorOrig=n.fill},Object.defineProperty(e.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(t){this._legendDataItem=t,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),e}(l["a"]);r["b"].registeredClasses["FlowDiagramNode"]=de;var fe=i("cd03"),ge=i("6e17"),ye=function(t){function e(){var e=t.call(this)||this;e.className="FlowDiagramLink";var i=new c["a"];return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}→{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(p["a"]),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=i.getFor("alternativeBackground"),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.positionBullets=function(){var t=this;m["d"](this.bullets.iterator(),(function(e){e.parent=t.bulletsContainer,e.maxWidth=t.maxWidth,e.maxHeight=t.maxHeight,t.positionBullet(e)}))},Object.defineProperty(e.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var t=this.createChild(l["a"]);t.shouldClone=!1,t.layout="none",this._bulletsContainer=t}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var t=this.createChild(p["a"]);t.shouldClone=!1,t.setElement(this.paper.add("path")),t.isMeasured=!1,this._bulletsMask=t}return this._bulletsMask},enumerable:!0,configurable:!0}),e.prototype.positionBullet=function(t){var e=t.locationX;b["h"](e)||(e=t.locationY),b["h"](e)||(e=.5);var i=this.middleLine.positionToPoint(e);t.moveTo(i);var n,r=t.propertyFields.rotation;if(t.dataItem){var a=t.dataItem.dataContext;n=a[r]}b["h"](n)||(n=i.angle),t.rotation=n},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(t){if("gradient"==t){var e=this.fill;this.gradient.stops.clear(),e instanceof E["a"]&&(this.gradient.addColor(e),this.gradient.addColor(e)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(t){this.setPropertyValue("maskBullets",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(t){this.setPropertyValue("tooltipLocation",t,!0)},enumerable:!0,configurable:!0}),e.prototype.setFill=function(e){t.prototype.setFill.call(this,e);var i=this._gradient;i&&e instanceof E["a"]&&(i.stops.clear(),i.addColor(e),i.addColor(e))},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bullets",{get:function(){var t=this;return this._bullets||(this._bullets=new o["c"](new w),this._disposers.push(new o["b"](this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",(function(e){e.newValue.events.on("propertychanged",(function(e){"locationX"!=e.property&&"locationY"!=e.property||t.positionBullet(e.target)}),void 0,!1)}),void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var i=this.middleLine;i&&(i instanceof jt["a"]&&e.middleLine instanceof jt["a"]&&i.copyFrom(e.middleLine),i instanceof ge["a"]&&e.middleLine instanceof ge["a"]&&i.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},e.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},e.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(e.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new fe["a"]),this._gradient},enumerable:!0,configurable:!0}),e}(l["a"]);r["b"].registeredClasses["FlowDiagramLink"]=ye;var me=i("c021"),be=function(t){function e(){var e=t.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(t){this.setProperty("fromName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toName",{get:function(){return this.properties.toName},set:function(t){this.setProperty("toName",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this.properties.color},set:function(t){this.setProperty("color",Object(E["c"])(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){var t=this;if(!this._link){var e=this.component.links.create();this._link=e,this.addSprite(e),this._disposers.push(new s["b"]((function(){t.component&&t.component.links.removeValue(e)})))}return this._link},enumerable:!0,configurable:!0}),e}(x),ve=function(t){function e(){var e=t.call(this)||this;e.colors=new Y["a"],e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var i=e.chartContainer.createChild(l["a"]);i.shouldClone=!1,i.layout="none",i.isMeasured=!1,e.linksContainer=i;var n=e.chartContainer.createChild(l["a"]);return n.shouldClone=!1,n.layout="none",n.isMeasured=!1,e.nodesContainer=n,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.dispose=function(){t.prototype.dispose.call(this),this.dataItem.dispose()},e.prototype.validateData=function(){var e=this;0==this._parseDataFrom&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),t.prototype.validateData.call(this);var i,n,r=0,a=0;m["d"](this.dataItems.iterator(),(function(t){var s=t.fromName;if(s){var o=e.nodes.getKey(s);o||(o=e.nodes.create(s),o.name=s,o.chart=e,o.dataItem=t),t.fromNode=o,t.fromNode.outgoingDataItems.push(t)}var l=t.toName;if(l){o=e.nodes.getKey(l);o||(o=e.nodes.create(l),o.name=l,o.chart=e,o.dataItem=t),t.toNode=o,t.toNode.incomingDataItems.push(t)}if(!t.fromNode){var h=new me["a"];h.opacities=[0,1],t.link.strokeModifier=h}if(!t.toNode){var u=new me["a"];u.opacities=[1,0],t.link.strokeModifier=u}var p=t.value;b["h"](p)&&(r+=p,a++,(i>p||!b["h"](i))&&(i=p),(nthis.dataItems.length||m["d"](t.incomingDataItems.iterator(),(function(t){e.checkLoop(t.fromNode)}))},e.prototype.calculateValueHeight=function(){var t=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var e,i,n,r=this.dataItem.values.value.sum;m["d"](this._sorted,(function(e){var i=e[1];t.getNodeValue(i)})),this.nodes.each((function(e,i){var n=i.level,a=Math.max(i.totalIncoming,i.totalOutgoing);a/rl||!b["h"](n))&&(n=l,t.maxSum=s,i=b["l"](r))})),this._maxSumLevel=i;var a=this._levelNodesCount[this._maxSumLevel],s=(e-(a-1)*this.nodePadding)/this.maxSum;if(s==1/0&&(s=0),b["h"](this.valueHeight)){var o=void 0;try{o=this._heightAnimation.animationOptions[0].to}catch(h){}if(o!=s){var l=this.interpolationDuration;try{l=this.nodes.template.states.getKey("active").transitionDuration}catch(h){}this._heightAnimation=new we["a"](this,{property:"valueHeight",from:this.valueHeight,to:s},l,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}else this.valueHeight=s},e.prototype.validate=function(){var e=this;t.prototype.validate.call(this),this.calculateValueHeight();var i,n=this.nodesContainer,r={},a=this._levelNodesCount[this._maxSumLevel],s=this.dataItem.values.value.sum;i="horizontal"==this.orientation?this.chartContainer.maxHeight-1:this.chartContainer.maxWidth-1,m["d"](this._sorted,(function(t){var o,l,h,u=t[1],p=u.level,c=0,d=e._levelNodesCount[p];switch(e.nodeAlign){case"bottom":c=(e.maxSum-e._levelSum[p])*e.valueHeight-(d-a)*e.nodePadding;break;case"middle":c=(e.maxSum-e._levelSum[p])*e.valueHeight/2-(d-a)*e.nodePadding/2;break}if(0==e.maxSum)switch(e.nodeAlign){case"bottom":c=i-d*(e.minNodeSize*i+e.nodePadding);break;case"middle":c=i/2-d/2*(e.minNodeSize*i+e.nodePadding);break}u.parent=n;var f=Math.max(u.totalIncoming,u.totalOutgoing);if(f/s0){var n=this.nodesContainer,r=0;m["d"](this.links.iterator(),(function(t){t.hide(0)})),m["d"](this._sorted,(function(t){var e,a=t[1];"horizontal"==i.orientation?(a.dx=-(n.pixelWidth-a.pixelWidth)/Math.max(i._levelCount,1),e="dx"):(a.dy=-(n.pixelHeight-a.pixelHeight)/Math.max(i._levelCount,1),e="dy");var s=0,o=i.interpolationDuration;i.sequencedInterpolation&&(s=i.sequencedInterpolationDelay*r+o*r/m["j"](i.nodes.iterator())),a.opacity=0,a.invalidateLinks(),a.animate([{property:"opacity",from:0,to:1},{property:e,to:0}],i.interpolationDuration,i.interpolationEasing).delay(s),m["d"](a.outgoingDataItems.iterator(),(function(t){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(s)})),m["d"](a.incomingDataItems.iterator(),(function(t){if(!t.fromNode){var e=t.link.show(i.interpolationDuration);e&&!e.isFinished()&&e.delay(s)}})),r++}))}return t.prototype.showReal.call(this)}},e.prototype.changeSorting=function(){var t=this;this.sortNodes();var e={};m["d"](this._sorted,(function(i){var n,r,a=i[1],s=a.level,o=(t.maxSum-t._levelSum[s])*t.valueHeight/2;"horizontal"==t.orientation?(n="y",r=a.pixelHeight):(n="x",r=a.pixelWidth),a.animate({property:n,to:e[s]||o},t.interpolationDuration,t.interpolationEasing),e[s]=(e[s]||o)+r+t.nodePadding,a.invalidateLinks()}))},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},e.prototype.createDataItem=function(){return new Ce},Object.defineProperty(e.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(t){this.setPropertyValue("nodeAlign",t),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0);var e=this.nodes.template.nameLabel;"vertical"==t?(this.nodes.template.width=void 0,e.label.horizontalCenter="middle",e.locationX=.5):(this.nodes.template.height=void 0,e.label.horizontalCenter="left",e.locationX=1)},enumerable:!0,configurable:!0}),e.prototype.createNode=function(){var t=new _e;return this._disposers.push(t),t},e.prototype.createLink=function(){var t=new Oe;return this._disposers.push(t),t},Object.defineProperty(e.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(t){t!=this._valueHeight&&(this._valueHeight=t,this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},e}(ve);r["b"].registeredClasses["SankeyDiagram"]=Se;var ke=function(t){function e(){var e=t.call(this)||this;e.className="ChordNode";var i=e.createChild(Ht);i.location=.5,i.radius=5,i.text="{name}",i.zIndex=1,i.shouldClone=!1,e.label=i,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(Qt["a"]),e.slice.isMeasured=!1;var n=e.hiddenState;return n.properties.fill=(new c["a"]).getFor("disabledBackground"),n.properties.opacity=.5,n.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",(function(t,e){return e.slice.ix*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)})),e.adapter.add("tooltipY",(function(t,e){return e.slice.iy*(e.slice.radius-(e.slice.radius-e.slice.pixelInnerRadius)/2)})),e}return Object(n["c"])(e,t),e.prototype.invalidateLinks=function(){var e=this;t.prototype.invalidateLinks.call(this);var i=this.label,n=this.slice,r=this.chart;if(r&&n){var a=this.total,s=n.arc,o=n.startAngle;this.children.each((function(t){if(t instanceof w){var e=t.locationX;b["h"](e)||(e=.5);var i=t.locationY;b["h"](i)||(i=1);var r=o+s*e,a=i*n.radius;t.x=a*D["g"](r),t.y=a*D["F"](r)}}));var l=o+s*i.location,h=o+(1-a/this.adjustedTotal)*s*.5;b["g"](h)&&(h=o),i.fixPosition(l,n.radius),this.nextAngle=h,this._outgoingSorted&&m["d"](this._outgoingSorted,(function(t){var i=t.link;i.parent=e.chart.linksContainer;var a=t.getWorkingValue("value");if(b["h"](a)){if(r.nonRibbon){var l=i.percentWidth;b["h"](l)||(l=5),l/=100,i.startAngle=o+s/2-s/2*l,i.arc=s*l}else i.arc=a*r.valueAngle,i.startAngle=e.nextAngle,e.nextAngle+=i.arc;t.toNode||(i.endAngle=i.startAngle),i.radius=n.pixelInnerRadius}})),this._incomingSorted&&m["d"](this._incomingSorted,(function(t){var i=t.link;if(i.radius=n.pixelInnerRadius,r.nonRibbon){var a=i.percentWidth;b["h"](a)||(a=5),a/=100,i.endAngle=o+s/2-s/2*a,i.arc=s*a}else{i.endAngle=e.nextAngle;var l=t.getWorkingValue("value");b["h"](l)&&(i.arc=l*r.valueAngle,e.nextAngle+=i.arc)}t.fromNode||(i.startAngle=i.endAngle)}))}},e.prototype.updateRotation=function(){var t=this.slice,e=this.trueStartAngle+t.arc/2,i=t.radius,n=i*D["g"](e),r=i*D["F"](e),a=D["j"]({x:n+this.pixelX,y:r+this.pixelY});t.startAngle=this.trueStartAngle+(a-e),this.dx=-this.pixelX,this.dy=-this.pixelY},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},e}(de);r["b"].registeredClasses["ChordNode"]=ke;var Ie=function(t){function e(){var e=t.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=Object(E["b"])(),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){if(b["h"](this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2},i={x:this.cpx,y:this.cpy},n=f["g"](t)+f["i"](e,i);this.path=n}},Object.defineProperty(e.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(t){this.setPropertyValue("cpx",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(t){this.setPropertyValue("cpy",t,!0)},enumerable:!0,configurable:!0}),e.prototype.positionToPoint=function(t){var e={x:this.x1,y:this.y1},i={x:this.cpx,y:this.cpy},n={x:this.x2,y:this.y2},r=D["u"](e,n,i,t),a=D["u"](e,n,i,t+.001);return{x:r.x,y:r.y,angle:D["j"](r,a)}},e}(jt["a"]),De=function(t){function e(){var e=t.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(Ie),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validate=function(){if(t.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,i=this.endAngle,n=this.arc,r=this.radius,a=this.dataItem.fromNode,s=this.dataItem.toNode,o=0,l=0;a&&(o=a.pixelX+a.dx,l=a.pixelY+a.dy);var h=0,u=0;if(s&&(h=s.pixelX+s.dx,u=s.pixelY+s.dy),r>0){var p=r*D["g"](e)+o,c=r*D["F"](e)+l,d=r*D["g"](i)+h,g=r*D["F"](i)+u,y={x:0,y:0},m=f["g"]({x:p,y:c});m+=f["b"](e,n,r),m+=f["i"]({x:d,y:g},y),m+=f["b"](i,n,r),m+=f["i"]({x:p,y:c},y),this.link.path=n>0?m:"",this.maskBullets&&(this.bulletsMask.path=m,this.bulletsContainer.mask=this.bulletsMask);var b=e+n/2,v=i+n/2,x=this.middleLine;x.x1=r*D["g"](b)+o,x.y1=r*D["F"](b)+l,x.x2=r*D["g"](v)+h,x.y2=r*D["F"](v)+u,x.cpx=0,x.cpy=0,x.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(e.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(t){this.setPropertyValue("radius",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(t){this.setPropertyValue("arc",t,!0)},enumerable:!0,configurable:!0}),e}(ye);r["b"].registeredClasses["ChordLink"]=De;var Te=function(t){function e(){var e=t.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(be),je=function(t){function e(){var e=t.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=Object(d["c"])(80),e.innerRadius=-15,e.nodePadding=5;var i=e.chartContainer.createChild(l["a"]);return i.align="center",i.valign="middle",i.shouldClone=!1,i.layout="absolute",e.chordContainer=i,e.nodesContainer.parent=i,e.linksContainer.parent=i,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validate=function(){var e=this,i=this.chartContainer,n=this.endAngle,r=this.startAngle+this.nodePadding/2,a=D["k"](this.startAngle,this.endAngle,1),s={x:0,y:0,width:0,height:0};a=D["m"]([a,s]);var o=Math.min(i.innerWidth/a.width,i.innerHeight/a.height);b["h"](o)||(o=0);var l=I["E"](this.radius,o),h=I["E"](this.innerRadius,l,!0),u=this.dataItem.values.value.sum,p=0,c=0;m["d"](this._sorted,(function(t){var i=t[1];e.getNodeValue(i),p++;var n=i.total;i.total/uthis.endIndex;d--){f=this.dataItems.getIndex(d);this.disableUnusedColumns(f)}this._propertiesChanged=!1},e.prototype.sortCategoryAxis=function(t,e){var i=this;this.dataItems.values.sort((function(t,i){return i.values[e].workingValue-t.values[e].workingValue}));var n=0;this.dataItems.each((function(t){t._index=n,n++})),t.dataItems.each((function(t){var e=t.component,n=e.categoryToPosition(t.category)-t.deltaPosition,r=e.getSeriesDataItemByCategory(t.category,i);if(r){var a=i.dataItems.indexOf(r);t._index=a;var s=D["E"]((a+.5)/i.dataItems.length-n,3);t.deltaAnimation&&!t.deltaAnimation.isDisposed()&&t.deltaAnimation.animationOptions[0].to==s||s!=D["E"](t.deltaPosition,3)&&(t.deltaAnimation&&t.deltaAnimation.stop(),t.deltaAnimation=t.animate({property:"deltaPosition",from:-s,to:0},e.interpolationDuration,e.interpolationEasing),i._disposers.push(t.deltaAnimation))}})),t.dataItems.values.sort((function(t,e){return t.index-e.index}))},e.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),t.prototype.validateDataElement.call(this,e))},e.prototype.getStartLocation=function(t){var e=this._startLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xOpenField]-.5:e+=t.locations[this.yOpenField]-.5,e},e.prototype.getEndLocation=function(t){var e=this._endLocation;return this.baseAxis==this.xAxis?e+=t.locations[this.xField]-.5:e+=t.locations[this.yField]-.5,e},e.prototype.validateDataElementReal=function(t){var e,i,n,r,a=this,s=this.getStartLocation(t),o=this.getEndLocation(t),l=this.xField,h=this.xOpenField,u=this.yField,c=this.yOpenField,f=this.columns.template,g=f.percentWidth,y=f.percentHeight,v=f.pixelWidth,x=f.pixelHeight,_=f.maxWidth,P=f.maxHeight,O=f.pixelPaddingLeft,w=f.pixelPaddingRight,C=f.pixelPaddingTop,S=f.pixelPaddingBottom,k=!1,I=t.width;b["d"](I)&&(b["h"](I)&&(v=I),I instanceof d["a"]&&(g=100*I.value));var T=t.height;if(b["d"](T)&&(b["h"](T)&&(x=T),T instanceof d["a"]&&(y=100*T.value)),this.xAxis instanceof vt&&this.yAxis instanceof vt){if(!t.hasValue(this._xValueFields)||!t.hasValue(this._yValueFields))return;if(s=0,o=1,!b["g"](g)){var j=D["E"]((o-s)*(1-g/100)/2,5);s+=j,o-=j}if(e=this.xAxis.getX(t,h,s),i=this.xAxis.getX(t,l,o),b["g"](g)){j=(i-e-v)/2;e+=j,i-=j}if(!b["g"](_)&&_V&&r>V)&&(k=!0),n=this.fixVerticalCoordinate(n),r=this.fixVerticalCoordinate(r),Math.abs(i-e)-O-w==0&&(k=!0)}else{if(!t.hasValue(this._xValueFields))return;if(!b["g"](y)){j=D["E"]((o-s)*(1-y/100)/2,5);s+=j,o-=j}if(n=this.yAxis.getY(t,c,s),r=this.yAxis.getY(t,u,o),b["g"](y)){j=(r-n-x)/2;r-=j,n+=j}if(!b["g"](P)&&PV&&e>V)&&(k=!0),i=this.fixHorizontalCoordinate(i),e=this.fixHorizontalCoordinate(e),Math.abs(n-r)-C-S==0&&(k=!0)}var L,H=Math.abs(i-e),W=Math.abs(r-n),N=Math.min(e,i),Y=Math.min(n,r);k?this.disableUnusedColumns(t):(t.column?(L=t.column,this._propertiesChanged&&(R["c"](this,L,p["b"]),R["c"](this.columns.template,L,p["b"]),B["d"](p["b"],(function(t){L[t]=L[t]})))):(L=this.columns.create(),R["c"](this,L,p["b"]),R["c"](this.columns.template,L,p["b"]),t.addSprite(L),t.column=L,L.paper=this.paper,this.itemsFocusable()?(b["d"](this.role)||(this.role="menu"),b["d"](L.role)||(L.role="menuitem"),L.focusable=!0):(b["d"](this.role)||(this.role="list"),b["d"](L.role)||(L.role="listitem"),L.focusable=!1),L.focusable&&(L.events.on("focus",(function(e){L.readerTitle=a.populateString(a.itemReaderText,t)}),void 0,!1),L.events.on("blur",(function(t){L.readerTitle=""}),void 0,!1)),L.hoverable&&(L.events.on("over",(function(e){L.readerTitle=a.populateString(a.itemReaderText,t)}),void 0,!1),L.events.on("out",(function(t){L.readerTitle=""}),void 0,!1)),L.parent=this.columnsContainer,L.virtualParent=this),L.width=H,L.height=W,L.x=N,L.y=Y,L.realX=e,L.realY=n,L.realWidth=i-e,L.realHeight=r-n,this.setColumnStates(L),L.invalid&&L.validate(),L.__disabled=!1,m["d"](this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i||(i=a.columns.create(),R["c"](e.contents,i,p["b"]),t.addSprite(i),t.rangesColumns.setKey(e.uid,i),i.paper=a.paper),i.parent=e.contents,i.width=H,i.height=W,i.x=N,i.y=Y,a.setColumnStates(i),i.invalid&&i.validate(),i.__disabled=!1})));t.itemWidth=H,t.itemHeight=W},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.width=0,t.column.height=0,t.column.__disabled=!0),m["d"](this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.width=0,i.height=0,i.__disabled=!0)})))},e.prototype.setColumnStates=function(t){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var e=t.dataItem;if(this.xAxis instanceof pt||this.yAxis instanceof pt){var i,n=void 0,r=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof pt&&(i=e.getValue(this.xOpenField),n=e.getValue(this.xField)),r=e.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof pt&&(i=e.getValue(this.yOpenField),n=e.getValue(this.yField)),r=e.getValue(this.yAxis.axisFieldName+"Y","previousChange")),nthis.currentLevel||t.children&&t.children.length>0)&&(i.columns.template.cursorOverStyle=T["a"].pointer,this.zoomable&&i.columns.template.events.on("hit",(function(i){var n=i.target.dataItem;t.level>e.currentLevel?e.zoomToChartDataItem(n.treeMapDataItem.parent):e.zoomToSeriesDataItem(n)}),this,void 0))}this._tempSeries.push(t.series)},e.prototype.toggleBullets=function(t){var e=this;m["d"](this.series.iterator(),(function(i){-1==e._tempSeries.indexOf(i)?(i.columnsContainer.hide(),i.bulletsContainer.hide(t)):(i.columnsContainer.show(),i.bulletsContainer.show(t),i.dataItems.each((function(t){t.bullets.each((function(t,e){e.show()}))})),i.level1&&i.dataItems.each((function(t){t.treeMapDataItem.children&&t.bullets.each((function(t,e){e.hide()}))})))}))},e.prototype.zoomToSeriesDataItem=function(t){this.zoomToChartDataItem(t.treeMapDataItem)},e.prototype.zoomToChartDataItem=function(t){var e=this;t||(t=this._homeDataItem);var i=this.zoomOutButton;if(i&&(t!=this._homeDataItem?i.show():i.hide()),t&&t.children){this.xAxis.zoomToValues(t.x0,t.x1),this.yAxis.zoomToValues(t.y0,t.y1),this.currentLevel=t.level,this.currentlyZoomed=t,this.createTreeSeries(t);var n=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;!n||n.isDisposed()||n.isFinished()?this.toggleBullets():(this._dataDisposers.push(n),n.events.once("animationended",(function(){e.toggleBullets()})))}},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},e.prototype.createDataItem=function(){return new Le},Object.defineProperty(e.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(t){this.setPropertyValue("maxLevels",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(t){this.setPropertyValue("currentLevel",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(t){this.setPropertyValue("hideParentColumns",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(t){this.setPropertyValue("sorting",t,!0)},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Ee},Object.defineProperty(e.prototype,"homeText",{get:function(){return this._homeText},set:function(t){this._homeText=t,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(e){if(b["d"](e["layoutAlgorithm"])&&b["j"](e["layoutAlgorithm"]))switch(e["layoutAlgorithm"]){case"squarify":e["layoutAlgorithm"]=this.squarify;break;case"binaryTree":e["layoutAlgorithm"]=this.binaryTree;break;case"slice":e["layoutAlgorithm"]=this.slice;break;case"dice":e["layoutAlgorithm"]=this.dice;break;case"sliceDice":e["layoutAlgorithm"]=this.sliceDice;break;default:delete e["layoutAlgorithm"];break}b["d"](e.navigationBar)&&!b["d"](e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),t.prototype.processConfig.call(this,e)}},e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),m["d"](this.series.iterator(),(function(t){t.validateRawData()})),this.zoomToChartDataItem(this._homeDataItem)},e.prototype.binaryTree=function(t){var e,i,n=t.children,r=n.length,a=new Array(r+1);for(a[0]=i=e=0;e=e-1){var u=n.getIndex(t);return u.x0=r,u.y0=o,u.x1=l,void(u.y1=h)}var p=a[t],c=i/2+p,d=t+1,f=e-1;while(d>>1;a[g]h-o){var b=(r*m+l*y)/i;s(t,d,y,r,o,b,h),s(d,e,m,b,o,l,h)}else{var v=(o*m+h*y)/i;s(t,d,y,r,o,l,v),s(d,e,m,r,v,l,h)}}r>0&&s(0,r,t.value,t.x0,t.y0,t.x1,t.y1)},e.prototype.slice=function(t){var e,i=t.x0,n=t.x1,r=t.y0,a=t.y1,s=t.children,o=-1,l=s.length,h=t.value&&(a-r)/t.value;while(++os&&(s=e),u=r*r*h,o=Math.max(s/u,u/a),o>l){r-=e;break}l=o}var _=this.dataItems.template.clone();_.value=r,_.dice=i1)return t;if(1==t.children.length){var e=t.children.getIndex(0);return e.children?this.getLegendLevel(e):t}return t}},e.prototype.handleLegendSeriesAdded=function(t){},Object.defineProperty(e.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),e.prototype.feedLegend=function(){var t=this.legend;if(t){t.dataFields.name="name";var e=this.getLegendLevel(this._homeDataItem);if(e){var i=[];e.children.each((function(t){i.push(t)})),t.data=i}}},e.prototype.disposeData=function(){t.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},e.prototype.getExporting=function(){var e=this,i=t.prototype.getExporting.call(this);return i.adapter.add("formatDataFields",(function(t){return"csv"!=t.format&&"xlsx"!=t.format||b["d"](e.dataFields.children)&&delete t.dataFields[e.dataFields.children],t})),i},e}(St);r["b"].registeredClasses["TreeMap"]=Re;var Be=function(t){function e(){var e=t.call(this)||this;return e._chart=new s["d"],e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.chart.dx3D||0,a=this.chart.dy3D||0,s=this.getHeight();t.path=f["g"]({x:r,y:a})+f["f"]({x:r,y:s+a})+f["f"]({x:0,y:s})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),i=this.chart.dx3D||0,n=this.chart.dy3D||0;this.baseGrid.path=f["g"]({x:i,y:n})+f["f"]({x:0,y:0})+f["f"]({x:0,y:e})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(yt);r["b"].registeredClasses["AxisRendererX3D"]=Be;var He=function(t){function e(){var e=t.call(this)||this;return e._chart=new s["d"],e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.updateGridElement=function(t,e,i){e+=(i-e)*t.location;var n=this.positionToPoint(e);if(t.element){var r=this.chart.dx3D||0,a=this.chart.dy3D||0,s=this.getWidth();t.path=f["g"]({x:0,y:0})+f["f"]({x:r,y:a})+f["f"]({x:s+r,y:a})}this.positionItem(t,n),this.toggleVisibility(t,e,0,1)},e.prototype.updateBaseGridElement=function(){t.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,i=this.chart.dy3D||0,n=this.getWidth();this.baseGrid.path=f["g"]({x:0,y:0})+f["f"]({x:n,y:0})+f["f"]({x:n+e,y:i})},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){t&&this._chart.set(t,t.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),e.prototype.handle3DChanged=function(t){"depth"!=t.property&&"angle"!=t.property||this.invalidate()},e}(lt),We=i("29b3"),Ne=function(t){function e(){var e=t.call(this)||this;return e.className="Column3D",e}return Object(n["c"])(e,t),e.prototype.createAssets=function(){this.column3D=this.createChild(We["a"]),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},e.prototype.validate=function(){t.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},e.prototype.setFill=function(e){t.prototype.setFill.call(this,e),this.column.fill=e},e}(Ae);r["b"].registeredClasses["Column3D"]=Ne;var Ye=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Fe),Xe=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"columnsContainer",{get:function(){var t=this.chart;return t&&t.columnsContainer&&"vertical"!=t.leftAxesContainer.layout&&"vertical"!=t.rightAxesContainer.layout&&"horizontal"!=t.bottomAxesContainer.layout&&"horizontal"!=t.topAxesContainer.layout?t.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},e.prototype.validateDataElements=function(){t.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},e.prototype.createColumnTemplate=function(){return new Ne},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0);var e=this.columns.template;e.column3D.depth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t);var e=this.columns.template;e.column3D.angle=t},enumerable:!0,configurable:!0}),e}(Ve);r["b"].registeredClasses["ColumnSeries3D"]=Xe,r["b"].registeredClasses["ColumnSeries3DDataItem"]=Ye;(function(t){function e(){var e=t.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}Object(n["c"])(e,t)})(Ct);var ze=function(t){function e(){var e=t.call(this)||this;e._axisRendererX=Be,e._axisRendererY=He,e.className="XYChart3D",e.depth=30,e.angle=30;var i=e.seriesContainer.createChild(l["a"]);return i.shouldClone=!1,i.isMeasured=!1,i.layout="none",e.columnsContainer=i,e.columnsContainer.mask=e.createChild(p["a"]),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.updateSeriesMasks=function(){if(t.prototype.updateSeriesMasks.call(this),I["x"]()){var e=this.columnsContainer,i=e.mask;e.mask=void 0,e.mask=i}},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(t){this.setPropertyValue("angle",t),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dx3D",{get:function(){return D["g"](this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dy3D",{get:function(){return-D["F"](this.angle)*this.depth},enumerable:!0,configurable:!0}),e.prototype.validateLayout=function(){t.prototype.validateLayout.call(this),this.fixColumns()},e.prototype.fixLayout=function(){this.chartContainer.paddingTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),t.prototype.fixLayout.call(this)},e.prototype.fixColumns=function(){var t=this,e=1,i=0;m["d"](this.series.iterator(),(function(t){t instanceof Xe&&(!t.clustered&&i>0&&e++,t.depthIndex=e-1,i++)}));var n=0;m["d"](this.series.iterator(),(function(i){if(i instanceof Xe){i.depth=t.depth/e,i.angle=t.angle,i.columnsContainer==t.columnsContainer&&(i.dx=t.depth/e*D["g"](t.angle)*i.depthIndex,i.dy=-t.depth/e*D["F"](t.angle)*i.depthIndex);var r=!1;(i.baseAxis==i.xAxis&&i.xAxis.renderer.inversed||i.baseAxis==i.yAxis&&i.yAxis.renderer.inversed)&&(r=!0);var a=1;i.dataItems.each((function(t){var e=t.column;e&&(e.zIndex=r?1e3*(1e3-a)+n-100*i.depthIndex:1e3*a+n-100*i.depthIndex),a++})),r?n--:n++}})),this.maskColumns()},e.prototype.processConfig=function(e){if(e&&b["d"](e.series)&&b["e"](e.series))for(var i=0,n=e.series.length;i1&&("horizontal"==this.orientation?P.minGridDistance=this.measuredWidth/this.markerCount:P.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();p=this.markerCount;for(var O=this.markers.length;p0&&e.length>0)if(r){var s=f["g"](t[0]);if(t.length>0)for(var o=1;o0||this.fillSprite.fillOpacity>0)&&(s=f["g"](t[0])+f["h"](t),s+=f["f"](e[0])+f["h"](e),s+=f["f"](t[0]),s+=f["d"](),this.fillSprite.path=s)}else{s=f["g"](t[0])+f["h"](t);this.strokeSprite.path=s,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(s+=f["f"](e[0])+f["h"](e),s+=f["f"](t[0]),s+=f["d"](),this.fillSprite.path=s)}else this.strokeSprite.path="",this.fillSprite.path=""},e}(It);r["b"].registeredClasses["StepLineSeriesSegment"]=Qe;var ti=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Ft),ei=function(t){function e(){var e=t.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return Object(n["c"])(e,t),e.prototype.createDataItem=function(){return new ti},e.prototype.addPoints=function(t,e,i,n,r){var a,s,o,l;this.baseAxis==this.xAxis&&(a=this.startLocation,s=this.endLocation,o=this.getAdjustedXLocation(e,this.yOpenField),l=this.getAdjustedXLocation(e,this.yField)),this.baseAxis==this.yAxis&&(o=this.startLocation,l=this.endLocation,a=this.getAdjustedXLocation(e,this.xOpenField),s=this.getAdjustedXLocation(e,this.xField));var h=this.xAxis.getX(e,i,a),u=this.yAxis.getY(e,n,o),p=this.xAxis.getX(e,i,s),c=this.yAxis.getY(e,n,l);if(h=D["i"](h,-1e5,1e5),u=D["i"](u,-1e5,1e5),p=D["i"](p,-1e5,1e5),c=D["i"](c,-1e5,1e5),!this.noRisers&&t.length>1){var d=t[t.length-1];this.baseAxis==this.xAxis&&(r?t.push({x:d.x,y:c}):t.push({x:h,y:d.y})),this.baseAxis==this.yAxis&&(r?t.push({x:p,y:d.y}):t.push({x:d.x,y:u}))}var f={x:h,y:u},g={x:p,y:c};r?t.push(g,f):t.push(f,g)},e.prototype.drawSegment=function(t,e,i){var n=!1;this.yAxis==this.baseAxis&&(n=!0),t.drawSegment(e,i,this.tensionX,this.tensionY,this.noRisers,n)},e.prototype.createSegment=function(){return new Qe},Object.defineProperty(e.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(t){this.setPropertyValue("noRisers",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t,!0)},enumerable:!0,configurable:!0}),e}(Vt);r["b"].registeredClasses["StepLineSeries"]=ei,r["b"].registeredClasses["StepLineSeriesDataItem"]=ti;var ii=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumn",e}return Object(n["c"])(e,t),e.prototype.createAssets=function(){this.radarColumn=this.createChild(Qt["a"]),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return b["h"](t)?t:this.radarColumn.getTooltipX()},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipX");return b["h"](t)?t:this.radarColumn.getTooltipY()},e}(Ae);r["b"].registeredClasses["RadarColumn"]=ii;var ni=function(t){function e(){var e=t.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Fe),ri=function(t){function e(){var e=t.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createColumnTemplate=function(){return new ii},e.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),t.prototype.validate.call(this)},e.prototype.disableUnusedColumns=function(t){t&&(t.column&&(t.column.__disabled=!0),m["d"](this.axisRanges.iterator(),(function(e){var i=t.rangesColumns.getKey(e.uid);i&&(i.__disabled=!0)})))},e.prototype.validateDataElementReal=function(t){var e,i,n,r,a=this,s=this.chart.startAngle,o=this.chart.endAngle,l=this.yField,h=this.yOpenField,u=this.xField,c=this.xOpenField,f=this.getStartLocation(t),g=this.getEndLocation(t),y=(o-s)/(this.dataItems.length*(this.end-this.start)),v=t.column;v||(v=this.columns.create(),t.column=v,R["c"](this,v,p["b"]),R["c"](this.columns.template,v,p["b"]),t.addSprite(v),v.paper=this.paper,this.setColumnStates(v));var x=v.width,_=100;x instanceof d["a"]&&(_=x.percent);var P=D["E"]((g-f)*(1-_/100)/2,5);if(f+=P,g-=P,this.xAxis instanceof vt&&this.yAxis instanceof vt)n=D["q"]({x:this.yAxis.getX(t,l,0,"valueY"),y:this.yAxis.getY(t,l,0,"valueY")}),r=D["q"]({x:this.yAxis.getX(t,h,1,"valueY"),y:this.yAxis.getY(t,h,1,"valueY")}),e=this.xAxis.getAngle(t,c,0,"valueX"),i=this.xAxis.getAngle(t,u,1,"valueX"),s+=f*y,o-=(1-g)*y;else if(this.baseAxis==this.xAxis)n=D["q"]({x:this.yAxis.getX(t,l,t.locations[l],"valueY"),y:this.yAxis.getY(t,l,t.locations[l],"valueY")}),r=D["q"]({x:this.yAxis.getX(t,h,t.locations[h],"valueY"),y:this.yAxis.getY(t,h,t.locations[h],"valueY")}),e=this.xAxis.getAngle(t,c,f,"valueX"),i=this.xAxis.getAngle(t,u,g,"valueX"),s+=f*y,o-=(1-g)*y;else{if(n=D["q"]({x:this.yAxis.getX(t,l,f,"valueY"),y:this.yAxis.getY(t,l,f,"valueY")}),r=D["q"]({x:this.yAxis.getX(t,h,g,"valueY"),y:this.yAxis.getY(t,h,g,"valueY")}),b["h"](x)){var O=Math.abs(n-r);if(O>x){var w=(O-x)/2;n+=w,r-=w}}e=this.xAxis.getAngle(t,u,t.locations[u],"valueX"),i=this.xAxis.getAngle(t,c,t.locations[c],"valueX")}if(i0?(S.arc=k,S.radius=n,S.innerRadius=r,v.__disabled=!1,v.parent=this.columnsContainer,m["d"](this.axisRanges.iterator(),(function(i){var s=t.rangesColumns.getKey(i.uid);s||(s=a.columns.create(),R["h"](a.columns.template,s,p["b"]),R["c"](i.contents,s,p["b"]),s.dataItem&&B["o"](s.dataItem.sprites,s),t.addSprite(s),s.paper=a.paper,a.setColumnStates(s),t.rangesColumns.setKey(i.uid,s));var o=s.radarColumn;o.startAngle=e,o.arc=k,o.radius=n,o.innerRadius=r,o.invalid&&(o.paper=a.paper,o.validate()),s.__disabled=!1,s.parent=i.contents}))):this.disableUnusedColumns(t)},e.prototype.getPoint=function(t,e,i,n,r,a,s){a||(a="valueX"),s||(s="valueY");var o=this.yAxis.getX(t,i,r,s),l=this.yAxis.getY(t,i,r,s),h=D["q"]({x:o,y:l});0==h&&(h=1e-5);var u=this.xAxis.getAngle(t,e,n,a);return{x:h*D["g"](u),y:h*D["F"](u)}},e.prototype.getMaskPath=function(){var t=this.yAxis.renderer;return f["a"](t.startAngle,t.endAngle-t.startAngle,t.pixelRadius,t.pixelInnerRadius)},e.prototype.positionBulletReal=function(t,e,i){var n=this.xAxis,r=this.yAxis;(en.end||ir.end)&&(t.visible=!1),t.moveTo(this.xAxis.renderer.positionToPoint(e,i))},e.prototype.setXAxis=function(e){t.prototype.setXAxis.call(this,e),this.updateRendererRefs()},e.prototype.setYAxis=function(e){t.prototype.setYAxis.call(this,e),this.updateRendererRefs()},e.prototype.updateRendererRefs=function(){var t=this.xAxis.renderer,e=this.yAxis.renderer;t.axisRendererY=e},e}(Ve);r["b"].registeredClasses["RadarColumnSeries"]=ri,r["b"].registeredClasses["RadarColumnSeriesDataItem"]=ni;var ai=function(t){function e(){var e=t.call(this)||this;return e.slice=e.createChild(p["a"]),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=Object(d["c"])(100),e.topWidth=Object(d["c"])(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.pixelPaddingTop,i=this.pixelPaddingBottom,n=this.pixelPaddingRight,r=this.pixelPaddingLeft,a=this.pixelWidth-n-r,s=this.pixelHeight-e-i,o=this.expandDistance,l="";if("vertical"==this.orientation){var h=I["F"](this.topWidth,a),u=I["F"](this.bottomWidth,a),p={x:(a-h)/2+r,y:e},c={x:(a+h)/2+r,y:e},d={x:(a+u)/2+r,y:e+s},g={x:(a-u)/2+r,y:e+s},y={x:c.x+(d.x-c.x)/2+o*s,y:c.y+.5*s},m={x:p.x+(g.x-p.x)/2-o*s,y:p.y+.5*s},b=f["f"](d),v=f["f"](p);0!=o&&(b=f["i"](d,y),v=f["i"](p,m)),l=f["g"](p)+f["f"](c)+b+f["f"](g)+v,this.tickPoint={x:c.x+(d.x-c.x)/2,y:c.y+(d.y-c.y)/2}}else{h=I["F"](this.topWidth,s),u=I["F"](this.bottomWidth,s);var x={x:r,y:(s-h)/2+e},_={x:r,y:(s+h)/2+e},P={x:r+a,y:(s-u)/2+e},O={x:r+a,y:(s+u)/2+e};y={y:x.y+(P.y-x.y)/2-o*a,x:x.x+.5*a},m={y:_.y+(O.y-_.y)/2+o*a,x:_.x+.5*a},b=f["f"](P),v=f["f"](_);0!=o&&(b=f["i"](P,y),v=f["i"](_,m)),l=f["g"](_)+f["f"](x)+b+f["f"](O)+v,this.tickPoint={y:_.y+(O.y-_.y)/2,x:_.x+(O.x-_.x)/2}}this.slice.path=l,this.invalidateLayout()},e.prototype.getPoint=function(t,e){var i=this.pixelPaddingTop,n=this.pixelPaddingBottom,r=this.pixelPaddingRight,a=this.pixelPaddingLeft,s=this.pixelWidth-r-a,o=this.pixelHeight-i-n;if("vertical"==this.orientation){var l=I["F"](this.topWidth,s),h=I["F"](this.bottomWidth,s),u={x:(s-l)/2+a,y:i},p={x:(s+l)/2+a,y:i},c={x:(s+h)/2+a,y:i+o},d={x:(s-h)/2+a,y:i+o},f=u.x+(d.x-u.x)*e,g=p.x+(c.x-p.x)*e;return{x:f+(g-f)*t,y:p.y+(c.y-p.y)*e}}l=I["F"](this.topWidth,o),h=I["F"](this.bottomWidth,o);var y={x:a,y:(o-l)/2+i},m={x:a,y:(o+l)/2+i},b={x:a+s,y:(o-h)/2+i},v={x:a+s,y:(o+h)/2+i},x=y.y+(b.y-y.y)*t,_=m.y+(v.y-m.y)*t;return{y:x+(_-x)*e,x:y.x+(b.x-y.x)*t}},Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(t){this.setPropertyValue("expandDistance",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},e}(l["a"]);r["b"].registeredClasses["FunnelSlice"]=ai;var si=function(t){function e(){var e=t.call(this)||this;return e._label=new s["d"],e._slice=new s["d"],e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.slice,i=e.getPoint(this.locationX,this.locationY);if(i){var n=this.label,r=e.dataItem.component,a=void 0,s=void 0,o=void 0;if("vertical"==r.orientation){var l=n.pixelX,h=n.pixelY;r.labelsOpposite||(l+=n.maxRight),a=I["J"](i,e,this.parent),o=I["J"]({x:l,y:h},n.parent,this.parent),s={x:n.parent.pixelX-this.length,y:o.y},r.labelsOpposite||(s.x=n.parent.measuredWidth+this.length)}else{l=n.pixelX,h=n.pixelY;r.labelsOpposite||(h+=n.maxBottom),a=I["J"](i,e,this.parent),o=I["J"]({x:l,y:h},n.parent,this.parent),s={x:o.x,y:n.parent.pixelY-this.length},r.labelsOpposite||(s.y=n.parent.measuredHeight+this.length)}this.path=f["g"](a)+f["f"](s)+f["f"](o)}},Object.defineProperty(e.prototype,"slice",{get:function(){return this._slice.get()},set:function(t){this._slice.set(t,new s["c"]([t.events.on("transformed",this.invalidate,this,!1),t.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label.get()},set:function(t){this._label.set(t,t.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(t){this.setPropertyValue("locationX",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(t){this.setPropertyValue("locationY",t,!1,!0)},enumerable:!0,configurable:!0}),e}(nt);r["b"].registeredClasses["FunnelTick"]=si;var oi=function(t){function e(){var e=t.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",(function(){e.component&&e.component.invalidateDataItems()}),e,!1),e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"sliceLink",{get:function(){var t=this;if(!this._sliceLink){var e=this.component.sliceLinks.create();this._sliceLink=e,this._disposers.push(e),e.parent=this.component.slicesContainer,this._disposers.push(new s["b"]((function(){t.component&&t.component.sliceLinks.removeValue(e)}))),this.addSprite(e),e.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),e}(qt),li=function(t){function e(){var e=t.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=Object(d["c"])(100),e.height=Object(d["c"])(100),e.slicesContainer.width=Object(d["c"])(100),e.slicesContainer.height=Object(d["c"])(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createSlice=function(){return new ai},e.prototype.createTick=function(){return new si},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},e.prototype.createDataItem=function(){return new oi},e.prototype.initSlice=function(t){t.isMeasured=!1,t.defaultState.properties.scale=1,t.observe("scale",this.handleSliceScale,this),t.observe(["dx","dy","x","y"],this.handleSliceMove,this),t.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var e=t.states.create("hover");e.properties.expandDistance=.2},e.prototype.initLabel=function(e){t.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},e.prototype.validate=function(){t.prototype.validate.call(this),this._nextY=0},e.prototype.validateDataElements=function(){var e=this,i=this.slicesContainer,n=this.labelsContainer,r=this.labels.template;this.alignLabels?(r.interactionsEnabled=!0,i.isMeasured=!0,n.isMeasured=!0):(r.interactionsEnabled=!1,i.isMeasured=!1,n.isMeasured=!1);var a=0,s=0;this.dataItems.each((function(t){b["d"](t.value)&&(s++,t.value>0?a+=Math.abs(t.getWorkingValue("value")/t.value):e.ignoreZeroValues||!t.visible||t.__disabled||t.isHiding?s--:a+=1)})),this._total=1/s*a,this._count=s,t.prototype.validateDataElements.call(this),this.arrangeLabels()},e.prototype.getNextValue=function(t){var e=t.index,i=t.getWorkingValue("value");if(e0){var e=this.labels.getIndex(t);return e.__disabled||!e.visible?this.getLastLabel(t-1):e}},e.prototype.arrangeLabels=function(){if(this.alignLabels){var t=this.labels.length;if(t>1){var e=this.getLastLabel(t-1);if(e){var i=e.pixelY,n=e.pixelX;if(t>1){for(var r=t-2;r>=0;r--){var a=this.labels.getIndex(r);a.visible&&!a.__disabled&&(a.invalid&&a.validate(),"vertical"==this.orientation?a.pixelY+a.measuredHeight>i&&(a.y=Math.min(1e6,i-a.measuredHeight)):a.pixelX+a.measuredWidth>n&&(a.x=Math.min(1e6,n-a.measuredWidth)),i=a.pixelY,n=a.pixelX)}i=0,n=0;for(r=0;r0){var r=t.getWorkingValue("value")/t.value,a=t.sliceLink;"vertical"==e.orientation?n-=a.pixelHeight*r:i-=a.pixelWidth*r}})),this._pyramidHeight=I["F"](this.pyramidHeight,n),this._pyramidWidth=I["F"](this.pyramidHeight,i),"vertical"==this.orientation){var r=(n-this._pyramidHeight)/2;this.slicesContainer.y=r,this.labelsContainer.y=r,this.ticksContainer.y=r}else{var a=(i-this._pyramidWidth)/2;this.slicesContainer.x=a,this.labelsContainer.x=a,this.ticksContainer.x=a}t.prototype.validateDataElements.call(this)},e.prototype.decorateSlice=function(t){var e=this.dataItem.values.value.absoluteSum;if(0!=e){var i=t.slice,n=t.sliceLink,r=t.label,a=t.tick;this.getNextValue(t);var s=Math.abs(t.getWorkingValue("value")),o=this._pyramidWidth,l=this._pyramidHeight,h=this.slicesContainer.innerWidth,u=this.slicesContainer.innerHeight,p=n.pixelWidth,c=n.pixelHeight;if(0!=t.value&&null!=t.value||!this.ignoreZeroValues?t.__disabled=!1:t.__disabled=!0,"vertical"==this.orientation){var d=I["F"](this.topWidth,h);b["h"](this._nextWidth)||(this._nextWidth=d);var f=I["F"](this.bottomWidth,h),g=this._nextWidth,y=Math.atan2(l,d-f),m=Math.tan(Math.PI/2-y);0==m&&(m=1e-8);var v=void 0,x=void 0;if("area"==this.valueIs){var _=(d+f)/2*l,P=_*s/e,O=Math.abs(g*g-2*P*m);v=(g-Math.sqrt(O))/m,x=v>0?(2*P-v*g)/v:g}else v=l*s/e,x=g-v*m;i.height=v,i.width=h,i.bottomWidth=x,i.topWidth=g,n.topWidth=i.bottomWidth,n.bottomWidth=i.bottomWidth,i.y=this._nextY,this.alignLabels?r.x=0:r.x=h/2,r.y=i.pixelY+i.pixelHeight*a.locationY+i.dy,this._nextY+=i.pixelHeight+c*s/Math.max(Math.abs(t.value),1e-8),n.y=this._nextY-c,n.x=h/2}else{d=I["F"](this.topWidth,u);b["h"](this._nextWidth)||(this._nextWidth=d);f=I["F"](this.bottomWidth,u),g=this._nextWidth,y=Math.atan2(o,d-f),m=Math.tan(Math.PI/2-y);0==m&&(m=1e-8);var w=void 0;x=void 0;if("area"==this.valueIs){_=(d+f)/2*o,P=_*s/e;w=(g-Math.sqrt(g*g-2*P*m))/m,x=(2*P-w*g)/w}else w=o*s/e,x=g-w*m;i.width=w,i.height=u,i.bottomWidth=x,i.topWidth=g,n.topWidth=i.bottomWidth,n.bottomWidth=i.bottomWidth,i.x=this._nextY,this.alignLabels?r.y=this.labelsContainer.measuredHeight:r.y=u/2,r.x=i.pixelX+i.pixelWidth*a.locationX+i.dx,this._nextY+=i.pixelWidth+p*s/Math.max(Math.abs(t.value),1e-8),n.x=this._nextY-p,n.y=u/2}this._nextWidth=i.bottomWidth}},Object.defineProperty(e.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(t){this.setPercentProperty("topWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(t){this.setPercentProperty("pyramidHeight",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(t){this.setPercentProperty("bottomWidth",t,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(t){this.setPropertyValue("valueIs",t)&&this.invalidate()},enumerable:!0,configurable:!0}),e}(li);r["b"].registeredClasses["PyramidSeries"]=ui,r["b"].registeredClasses["PyramidSeriesDataItem"]=hi;var pi=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(hi),ci=function(t){function e(){var e=t.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=Object(d["c"])(100),e.bottomWidth=Object(d["c"])(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(p["a"]),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return Object(n["c"])(e,t),e.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,i=this.slicesContainer.maxHeight,n=this._maskSprite,r=n.measuredWidth/n.scale,a=n.measuredHeight/n.scale,s=D["C"](i/a,e/r);s==1/0&&(s=1),s=D["B"](.001,s);var o,l,h=this.startLocation,u=this.endLocation,p=D["C"](e,r*s),c=D["C"](i,a*s);n.scale=s,"vertical"==this.orientation?(this.topWidth=p+4,this.bottomWidth=p+4,this.pyramidHeight=c*(u-h),n.x=e/2,n.y=c/2):(this.topWidth=c+4,this.bottomWidth=c+4,this.pyramidHeight=p*(u-h),n.valign="middle",n.x=p/2,n.y=i/2),n.verticalCenter="middle",n.horizontalCenter="middle",t.prototype.validateDataElements.call(this),"vertical"==this.orientation?("bottom"==this.valign&&(o=i-c),"middle"==this.valign&&(o=(i-c)/2),"top"==this.valign&&(o=0),"left"==this.align&&(l=-(e-p)/2),"center"==this.align&&(l=0),"right"==this.align&&(l=(e-p)/2),this.slices.template.dy=h*c,this.alignLabels&&(this.slicesContainer.dx=l)):("bottom"==this.valign&&(o=(i-c)/2),"middle"==this.valign&&(o=0),"top"==this.valign&&(o=-(i-c)/2),"left"==this.align&&(l=0),"center"==this.align&&(l=(e-p)/2),"right"==this.align&&(l=e-p),this.slices.template.dx=h*p,this.alignLabels&&(this.slicesContainer.dy=o)),this.slicesContainer.x=l,this.labelsContainer.x=l,this.ticksContainer.x=l,this.slicesContainer.y=o,this.labelsContainer.y=o,this.ticksContainer.y=o,p>0&&c>0&&(this.slicesContainer.mask=n)},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),b["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},e.prototype.createDataItem=function(){return new pi},Object.defineProperty(e.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),e.prototype.initSlice=function(e){t.prototype.initSlice.call(this,e);var i=e.states.getKey("hover");i&&(i.properties.expandDistance=0)},Object.defineProperty(e.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(t){this.setPropertyValue("startLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(t){this.setPropertyValue("endLocation",t)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),e}(ui);r["b"].registeredClasses["PictorialStackedSeries"]=ci,r["b"].registeredClasses["PictorialStackedSeriesDataItem"]=pi;var di=i("dacb"),fi=function(t){function e(){var e=t.call(this)||this;return e.className="ConeColumn",e}return Object(n["c"])(e,t),e.prototype.createAssets=function(){this.coneColumn=this.createChild(di["a"]),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},e}(Ae);r["b"].registeredClasses["ConeColumn"]=fi;var gi=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Fe),yi=function(t){function e(){var e=t.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createColumnTemplate=function(){return new fi},e.prototype.getMaskPath=function(){var t=0,e=0,i=this.columns.getIndex(0);if(i)return this.baseAxis==this.xAxis?e=i.coneColumn.innerWidth/2+1:t=i.coneColumn.innerHeight/2+1,f["j"]({x:-t,y:0,width:this.xAxis.axisLength+t,height:this.yAxis.axisLength+e})},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e);var i=e.column;if(i){var n=e.column.coneColumn;n.fill=e.column.fill,this.baseAxis==this.yAxis?n.orientation="horizontal":n.orientation="vertical"}},e}(Ve);r["b"].registeredClasses["ConeSeries"]=yi,r["b"].registeredClasses["ConeSeriesDataItem"]=gi;var mi=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumn",e}return Object(n["c"])(e,t),e.prototype.createAssets=function(){this.curvedColumn=this.createChild(p["a"]),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=Object(d["c"])(120),this.height=Object(d["c"])(120),this.column=this.curvedColumn},e.prototype.draw=function(){t.prototype.draw.call(this);var e,i=this.realWidth,n=this.realHeight,r=this.realX-this.pixelX,a=this.realY-this.pixelY;I["S"](this.width);var s=1,o=1;"vertical"==this.orientation?(s=this.tension,e=[{x:0,y:n+a},{x:i/2,y:a},{x:i,y:n+a}]):(o=this.tension,n=Math.abs(n),e=[{x:r,y:n},{x:r+i,y:n/2},{x:r,y:0}]);var l=f["g"](e[0])+new kt["c"](s,o).smooth(e);this.column.path=l},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t,!0)},enumerable:!0,configurable:!0}),e}(Ae);r["b"].registeredClasses["CurvedColumn"]=mi;var bi=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),e}(Fe),vi=function(t){function e(){var e=t.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.createColumnTemplate=function(){return new mi},e.prototype.validateDataElementReal=function(e){t.prototype.validateDataElementReal.call(this,e);var i=e.column;if(i=e.column,i){var n=e.column.curvedColumn;n.fill=e.column.fill,this.baseAxis==this.yAxis?i.orientation="horizontal":i.orientation="vertical"}},e}(Ve);r["b"].registeredClasses["CurvedColumnSeries"]=vi,r["b"].registeredClasses["CurvedColumnSeriesDataItem"]=bi;var xi=function(t){function e(){var e=t.call(this)||this;e.className="CircleBullet";var i=e.createChild(Lt["a"]);return i.shouldClone=!1,i.radius=5,i.isMeasured=!1,e.circle=i,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},e}(w);r["b"].registeredClasses["CircleBullet"]=xi;var _i=function(t){function e(){var e=t.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(p["a"]),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return Object(n["c"])(e,t),e.prototype.validatePosition=function(){t.prototype.validatePosition.call(this);var e=this.pixelWidth/2,i=this.pixelHeight/2;this.errorLine.path=f["g"]({x:-e,y:-i})+f["f"]({x:e,y:-i})+f["g"]({x:0,y:-i})+f["f"]({x:0,y:i})+f["g"]({x:-e,y:i})+f["f"]({x:e,y:i})},e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},e}(w);r["b"].registeredClasses["ErrorBullet"]=_i;var Pi=i("a4c9"),Oi=i("3f58"),wi=function(t){function e(){var e=t.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return Object(n["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.properties["name"]},set:function(t){this.setProperty("name",t)},enumerable:!0,configurable:!0}),e}(y["a"]),Ci=function(t){function e(){var e=t.call(this)||this;e.className="NavigationBar";var i=new c["a"],n=new Pi["a"];n.valign="middle",n.paddingTop=8,n.paddingBottom=8,e.paddingBottom=2,e.links=new o["c"](n),e._disposers.push(new o["b"](e.links)),e._disposers.push(n),e._linksIterator=new m["a"](e.links,(function(){return e.links.create()})),e._linksIterator.createNewItems=!0;var r=new Oi["a"];r.direction="right",r.width=8,r.height=12,r.fill=i.getFor("alternativeBackground"),r.fillOpacity=.5,r.valign="middle",r.marginLeft=10,r.marginRight=10,e.separators=new o["c"](r),e._disposers.push(new o["b"](e.separators)),e._disposers.push(r);var a=new Pi["a"];return e.activeLink=a,a.copyFrom(n),a.valign="middle",a.fontWeight="bold",e.width=Object(d["c"])(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),t.prototype.validateDataElements.call(this)},e.prototype.validateDataElement=function(e){var i;if(t.prototype.validateDataElement.call(this,e),e.indexe.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),e.setGlobalStyle(T["a"].default);break}this.downPoint=void 0,this.updateSelection()}},e.prototype.updateSelection=function(){},e.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},e.prototype.handleCursorDown=function(t){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&t.touch)&&Object(k["a"])().isLocalElement(t.pointer,this.paper.svg,this.uid)){Si["g"]();var e=I["h"](t.pointer.point,this);"hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",e),this.fitsToBounds(e)&&(this._downPointOrig={x:e.x,y:e.y},t.event.cancelable&&this.shouldPreventGestures(t.touch)&&this.fitsToBounds(e)&&t.event.preventDefault(),this.triggerMove(e),this.triggerDown(e))}},e.prototype.shouldPreventGestures=function(t){return!0},e.prototype.updatePoint=function(t){},e.prototype.handleCursorUp=function(t){if(this.interactionsEnabled&&(this.downPoint||Object(k["a"])().isLocalElement(t.pointer,this.paper.svg,this.uid))){var e=I["h"](t.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",e),this.downPoint&&this.fitsToBounds(this.downPoint)&&("hard"==this._stick&&this._stickPoint&&(e=this._stickPoint),this._upPointOrig={x:e.x,y:e.y},this.triggerMove(e),this.triggerUp(e))}},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart},set:function(t){this._chart=t,b["d"](this._chart.plotContainer)&&Object(k["a"])().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),e}(l["a"]);r["b"].registeredClasses["Cursor"]=Ii;var Di=function(t){function e(){var e=t.call(this)||this;e._lineX=new s["d"],e._lineY=new s["d"],e._xAxis=new s["d"],e._yAxis=new s["d"],e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var i=new c["a"];e.snapOnPan=!0;var n=e.createChild(p["a"]);n.shouldClone=!1,n.fillOpacity=.2,n.fill=i.getFor("alternativeBackground"),n.isMeasured=!1,n.visible=!1,n.interactionsEnabled=!1,e.selection=n,e._disposers.push(e.selection);var r=e.createChild(p["a"]);r.shouldClone=!1,r.stroke=i.getFor("grid"),r.fill=Object(E["b"])(),r.strokeDasharray="3,3",r.isMeasured=!1,r.strokeOpacity=.4,r.interactionsEnabled=!1,r.y=0,e.lineX=r,e._disposers.push(e.lineX);var a=e.createChild(p["a"]);return a.shouldClone=!1,a.stroke=i.getFor("grid"),a.fill=Object(E["b"])(),a.strokeDasharray="3,3",a.isMeasured=!1,a.strokeOpacity=.4,a.interactionsEnabled=!1,a.x=0,e.lineY=a,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.updateSize=function(){this.lineX&&(this.lineX.path=f["g"]({x:0,y:0})+f["f"]({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=f["g"]({x:0,y:0})+f["f"]({x:this.innerWidth,y:0}))},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint,e=this.behavior;if(t){var i=this.point;this.lineX&&(i.x=this.lineX.pixelX),this.lineY&&(i.y=this.lineY.pixelY);var n=this.selection,r=Math.min(i.x,t.x),a=Math.min(i.y,t.y),s=D["E"](Math.abs(t.x-i.x),this._positionPrecision),o=D["E"](Math.abs(t.y-i.y),this._positionPrecision);switch(e){case"zoomX":a=0,o=this.pixelHeight;break;case"zoomY":r=0,s=this.pixelWidth;break;case"selectX":a=0,o=this.pixelHeight;break;case"selectY":r=0,s=this.pixelWidth;break}n.x=r,n.y=a,n.path=f["k"](s,o),n.validatePosition()}else"select"!=this._generalBehavior&&this.selection.hide()}},e.prototype.fixPoint=function(t){return t.x=Math.max(0,t.x),t.y=Math.max(0,t.y),t.x=Math.min(this.pixelWidth,t.x),t.y=Math.min(this.pixelHeight,t.y),t},e.prototype.triggerMoveReal=function(e,i){t.prototype.triggerMoveReal.call(this,e,i);var n=this.snapToSeries;if(n&&!this.downPoint)if(n instanceof _t)n.isHidden&&this.updateLinePositions(e);else{var r=!0;B["d"](n,(function(t){t.isHidden||(r=!1)})),r&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&D["q"](this.downPoint,e)>3&&"pan"==this._generalBehavior&&(this.getPanningRanges(),this.dispatch("panning"))},e.prototype.updateLinePositions=function(t){t=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=t.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=t.y),this.updateSelection()},e.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if("select"==this._generalBehavior&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var i=this.selection,n=this.downPoint.x,r=this.downPoint.y;this._usesSelection&&(i.x=n,i.y=r,i.path="",i.show()),t.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},e.prototype.updatePoint=function(t){this.lineX&&(t.x=this.lineX.pixelX),this.lineY&&(t.y=this.lineY.pixelY)},e.prototype.triggerUpReal=function(e){if(this.hasMoved())this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),"pan"!=this._generalBehavior&&this.getRanges(),"select"!=this._generalBehavior&&this.selection.hide(),t.prototype.triggerUpReal.call(this,e));else{if("select"!=this._generalBehavior?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),"pan"==this._generalBehavior){var i=Object(k["a"])();i.setGlobalStyle(T["a"].default)}this.dispatchImmediately("behaviorcanceled")}this.downPoint=void 0,this.dispatch("cursorpositionchanged")},e.prototype.hasMoved=function(){var t;return t="zoomX"==this.behavior||"panX"==this.behavior?D["r"](this._upPointOrig,this._downPointOrig):"zoomY"==this.behavior||"panY"==this.behavior?D["w"](this._upPointOrig,this._downPointOrig):D["q"](this._upPointOrig,this._downPointOrig),t>Object(k["a"])().getHitOption(this.interactions,"hitTolerance")},e.prototype.getPanningRanges=function(){var t=D["E"](this.downPoint.x/this.innerWidth,5),e=1-D["E"](this.downPoint.y/this.innerHeight,5),i=D["E"](this.point.x/this.innerWidth,5),n=1-D["E"](this.point.y/this.innerHeight,5),r=t-i,a=e-n;this.xRange={start:r,end:1+r},this.yRange={start:a,end:1+a},"panX"==this.behavior&&(this.yRange.start=0,this.yRange.end=1),"panY"==this.behavior&&(this.xRange.start=0,this.xRange.end=1)},e.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),I["S"](this.selection);var t=D["E"](this.downPoint.x/this.innerWidth,5),e=D["E"](this.upPoint.x/this.innerWidth,5),i=1-D["E"](this.downPoint.y/this.innerHeight,5),n=1-D["E"](this.upPoint.y/this.innerHeight,5);this.xRange={start:D["C"](t,e),end:D["B"](t,e)},this.yRange={start:D["C"](i,n),end:D["B"](i,n)}},Object.defineProperty(e.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(t){this.setPropertyValue("behavior",t,!0),this._usesSelection=!1,-1!=t.indexOf("zoom")&&(this._generalBehavior="zoom",this._usesSelection=!0),-1!=t.indexOf("select")&&(this._generalBehavior="select",this._usesSelection=!0),-1!=t.indexOf("pan")&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),e.prototype.shouldPreventGestures=function(t){return(!this.interactions.isTouchProtected||!t)&&"none"!=this.behavior},Object.defineProperty(e.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(t){this.setPropertyValue("fullWidthLineX",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(t){this.setPropertyValue("fullWidthLineY",t),t||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(t){this.setPropertyValue("hideSeriesTooltipsOnSelection",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(t){this.setPropertyValue("maxTooltipDistance",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(t){var e=this;this._xAxis.get()!=t&&this._xAxis.set(t,new s["c"]([t.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),t.events.on("rangechangestarted",(function(t){e.hide(0),e.preventShow=!0}),void 0,!1),t.events.on("rangechangeended",(function(t){e.preventShow=!1,e.hide(0),e.dispatch("cursorpositionchanged")}),void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(t){var e=this;this._yAxis.get()!=t&&this._yAxis.set(t,new s["c"]([t.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),t.events.on("rangechangestarted",(function(t){e.hide(0),e.__disabled=!0}),void 0,!1),t.events.on("rangechangeended",(function(t){e.__disabled=!1,e.hide(0),e.dispatch("cursorpositionchanged")}),void 0,!1)]))},enumerable:!0,configurable:!0}),e.prototype.handleXTooltipPosition=function(t){var e=this.xAxis.tooltip,i=I["P"]({x:e.pixelX,y:e.pixelY},this),n=i.x;if(i.y=1,this.lineX&&(this.lineX.x=n,this.fitsToBounds(i)||this.hide()),this.xAxis&&this.fullWidthLineX){var r=this.xAxis.currentItemStartPoint,a=this.xAxis.currentItemEndPoint;if(r&&a){this.lineX.x=n;var s=a.x-r.x;this.lineX.path=f["k"](s,this.innerHeight,-s/2)}}},e.prototype.handleYTooltipPosition=function(t){var e=this.yAxis.tooltip,i=I["P"]({x:e.pixelX,y:e.pixelY},this),n=i.y;if(i.x=1,this.lineY&&(this.lineY.y=n,this.fitsToBounds(i)||this.hide()),this.yAxis&&this.fullWidthLineY){var r=this.yAxis.currentItemStartPoint,a=this.yAxis.currentItemEndPoint;if(r&&a){this.lineY.y=n;var s=a.y-r.y;this.lineY.path=f["k"](this.innerWidth,s,0,-s/2)}}},Object.defineProperty(e.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineX.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.interactionsEnabled=!1,t.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(t){t?(t.setElement(this.paper.add("path")),this._lineY.set(t,t.events.on("positionchanged",this.updateSelection,this,!1)),t.parent=this,t.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){return this._selection},set:function(t){this._selection=t,t&&(t.element=this.paper.add("path"),t.parent=this)},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){var i=this;if(e&&(b["d"](e.xAxis)&&b["j"](e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),b["d"](e.yAxis)&&b["j"](e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),b["d"](e.snapToSeries))){var n=b["e"](e.snapToSeries)?e.snapToSeries:[e.snapToSeries],r=!1;B["d"](n,(function(t,e){b["j"](t)&&(i.map.hasKey(t)?n[e]=i.map.getKey(t):(i.processingErrors.push('[XYCursor] No series with id "'+t+'" found for `series`'),r=!0))})),r?delete e.snapToSeries:e.snapToSeries=n}t.prototype.processConfig.call(this,e)},Object.defineProperty(e.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(t){var e=this;this.setPropertyValue("snapToSeries",t)&&(t instanceof _t&&(t=[t]),this._snapToDisposers&&B["d"](this._snapToDisposers,(function(t){t.dispose()})),this._snapToDisposers=[],t&&B["d"](t,(function(t){e._snapToDisposers.push(t.events.on("tooltipshownat",(function(){e.handleSnap(t)}),void 0,!1))})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(t){this.setPropertyValue("snapOnPan",t)},enumerable:!0,configurable:!0}),e.prototype.handleSnap=function(t){if(!this.downPoint){var e=t.getTooltipX()+t.xAxis.pixelX,i=t.getTooltipY()+t.yAxis.pixelY,n=t.xAxis,r=t.yAxis;n&&n.renderer.opposite&&(i-=this.pixelHeight),this.point={x:e,y:i},this.getPositions();var a=e,s=i;e-=this.pixelWidth,r&&r.renderer.opposite&&(e+=this.pixelWidth);var o=t.tooltip,l=o.animationDuration,h=o.animationEasing;n instanceof pt&&!(n instanceof gt)&&r instanceof pt&&!(r instanceof gt)?(t.yAxis.showTooltipAtPosition(this.yPosition),t.xAxis.showTooltipAtPosition(this.xPosition)):(t.baseAxis==t.xAxis&&t.yAxis.showTooltipAtPosition(this.yPosition),t.baseAxis==t.yAxis&&t.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=e,this.lineX.y=i,this.xAxis||this.lineX.animate([{property:"x",to:a}],l,h),this.yAxis||this.lineY.animate([{property:"y",to:s}],l,h)}},e.prototype.dispose=function(){this.hide(0),t.prototype.dispose.call(this)},e}(Ii);r["b"].registeredClasses["XYCursor"]=Di;var Ti=function(t){function e(){var e=t.call(this)||this;return e.className="RadarCursor",e.radius=Object(d["c"])(100),e.innerRadius=Object(d["c"])(0),e.applyTheme(),e.mask=void 0,e}return Object(n["c"])(e,t),e.prototype.fitsToBounds=function(t){var e=D["q"](t);return ethis.pixelInnerRadius-1},Object.defineProperty(e.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(t){this.setPropertyValue("startAngle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(t){this.setPropertyValue("endAngle",t,!0)},enumerable:!0,configurable:!0}),e.prototype.triggerMoveReal=function(e,i){this.xAxis&&(!this.xAxis||this.xAxis.cursorTooltipEnabled&&!this.xAxis.tooltip.disabled)||this.updateLineX(this.point),this.yAxis&&(!this.yAxis||this.yAxis.cursorTooltipEnabled&&!this.yAxis.tooltip.disabled)||this.updateLineY(this.point),this.updateSelection(),t.prototype.triggerMoveReal.call(this,e,i)},e.prototype.updateLineX=function(t){var e=this.pixelRadius,i=this.startAngle,n=this.endAngle,r=this.pixelInnerRadius;if(e>0&&b["h"](i)&&b["h"](n)&&b["h"](r)){var a=D["h"](D["j"](t),i,n),s=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var o=this.xAxis.currentItemStartPoint,l=this.xAxis.currentItemEndPoint;if(o&&l){var h=D["h"](D["j"](o),i,n),u=D["h"](D["j"](l),i,n),p=u-h;i0&&(p-=360),a-=p/2,s=f["g"]({x:r*D["g"](a),y:r*D["F"](a)})+f["f"]({x:e*D["g"](a),y:e*D["F"](a)})+f["b"](a,p,e)+f["f"]({x:r*D["g"](a+p),y:r*D["F"](a+p)})+f["b"](a+p,-p,r)}}s||(s=f["g"]({x:r*D["g"](a),y:r*D["F"](a)})+f["f"]({x:e*D["g"](a),y:e*D["F"](a)})),this.lineX.path=s}}},e.prototype.updateLineY=function(t){if(this.lineY&&this.lineY.visible){var e=this.startAngle,i=this.endAngle,n=this.truePixelRadius,r=D["i"](D["q"](t),0,this.truePixelRadius);if(b["h"](r)&&b["h"](e)){this.lineY.moveTo({x:0,y:0});var a=void 0,s=i-e;if(this.yAxis&&this.fullWidthLineY){var o=this.yAxis.currentItemStartPoint,l=this.yAxis.currentItemEndPoint;if(o&&l){var h=D["i"](D["q"](o),0,n);r=D["i"](D["q"](l),0,n),a=f["g"]({x:r*D["g"](e),y:r*D["F"](e)})+f["b"](e,s,r),a+=f["g"]({x:h*D["g"](i),y:h*D["F"](i)})+f["b"](i,-s,h)}}a||(a=f["g"]({x:r*D["g"](e),y:r*D["F"](e)})+f["b"](e,i-e,r)),this.lineY.path=a}}},e.prototype.updateSelection=function(){if(this._usesSelection){var t=this.downPoint;if(t){var e=this.point,i=this.pixelRadius,n=this.truePixelRadius,r=this.pixelInnerRadius,a=Math.min(this.startAngle,this.endAngle),s=Math.max(this.startAngle,this.endAngle),o=D["h"](D["j"](t),a,s),l=D["h"](D["j"](e),a,s),h=D["q"](t);if(h0)this.node.removeChild(this.node.firstChild)},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.dispose=function(){this.removeNode()},t}()},cabc:function(t,e,i){"use strict";i.d(e,"b",(function(){return x})),i.d(e,"a",(function(){return _}));var n=i("516a"),r=i("1ebf"),a=i("e6cc"),s=i("07a8"),o=i("03d5"),l=i("2b87"),h=(i("7040"),i("ec03")),u=i("ddd0"),p=i("baa2"),c=i("6e0f"),d=i("916c"),f=i("72b5"),g=i("5290");function y(t,e,i){return e+(i-e)*t}function m(t,e,i){return new l["a"](y(t,e.percent,i.percent))}function b(t,e,i){var n=new o["a"](u["c"](e.rgb,i.rgb,t));return e.alpha!=i.alpha&&(n.alpha=e.alpha+(i.alpha-e.alpha)*t),n}function v(t,e){return e+t.charAt(0).toUpperCase()+t.substr(1)}var x=function(){function t(t){this._disposer=new s["b"]((function(){while(0!==t.length)t[0].dispose()}))}return t.prototype.isDisposed=function(){return this._disposer.isDisposed()},t.prototype.dispose=function(){this._disposer.dispose()},t}(),_=function(t){function e(e,i,n,r){var a=t.call(this)||this;return a.duration=0,a.easing=h["linear"],a.progress=0,a._loop=0,a._pause=!1,a._delayTimeout=null,a._time=0,a._isFinished=!1,a.className="Animation",!1===g["a"].animationsEnabled&&(n=0),a.object=e,a.animationOptions=c["s"](i),a.duration=n,r&&(a.easing=r),a.applyTheme(),a}return Object(n["c"])(e,t),e.prototype.debug=function(){},e.prototype.dispose=function(){t.prototype.dispose.call(this),this.pause()},e.prototype.delay=function(t){var e=this;if(t>0){this.pause(),c["m"](this.object.animations,this);var i=setTimeout((function(){e._delayTimeout=null,e.start()}),t);this._delayTimeout=new s["b"]((function(){clearTimeout(i)}))}return this},e.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,c["m"](f["a"].animations,this),c["m"](this.object.animations,this),f["a"].requestFrame()},e.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var t=this.animationOptions.length-1;t>=0;t--){var e=this.animationOptions[t];if(d["d"](e.from)||(e.childObject?e.from=e.childObject[e.property]:(e.from=this.object[e.property],d["d"](e.from)||(e.from=a["a"][e.property]))),e.from==e.to)c["o"](this.animationOptions,e);else if(!d["d"](e.from)||!(e.from instanceof l["a"])&&e.to instanceof l["a"]||e.from instanceof l["a"]&&!(e.to instanceof l["a"]))this.staticOptions.push(e),c["o"](this.animationOptions,e);else if(d["h"](e.to))if(e.updateMethod=y,e.from instanceof l["a"]){var i=this.object[v(e.property,"pixel")];isNaN(i)?(this.staticOptions.push(e),c["o"](this.animationOptions,e)):e.from=i}else isNaN(e.from)&&(this.staticOptions.push(e),c["o"](this.animationOptions,e));else if(e.to instanceof o["a"])e.from?e.updateMethod=b:(this.staticOptions.push(e),c["o"](this.animationOptions,e));else if(e.to instanceof l["a"]){if(e.updateMethod=m,!isNaN(e.from)){i=this.object[v(e.property,"relative")];isNaN(i)||(e.from=Object(l["c"])(100*i))}}else this.staticOptions.push(e),c["o"](this.animationOptions,e)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var n={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",n)}return this.update(),0===this.duration&&this.end(),this},e.prototype.loop=function(t){return d["h"](t)||(t=1/0),this._loop=t,this},e.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),c["o"](f["a"].animations,this),c["o"](this.object.animations,this),this},e.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},e.prototype.end=function(){if(0==this._loop&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var t={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",t)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},e.prototype.kill=function(){this.pause(),this._isFinished=!0},e.prototype.isFinished=function(){return this._isFinished},e.prototype.applyStaticOptions=function(){var t=this;c["d"](this.staticOptions,(function(e){e.childObject?e.childObject[e.property]=1==t.progress?e.to:e.from:t.object[e.property]=1==t.progress?e.to:e.from}))},e.prototype.stop=function(t){if(this.pause(),!t&&this.events.isEnabled("animationstopped")){var e={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",e)}return this},e.prototype.setProgress=function(t){var e=this;if(this._time=this.duration*t,c["d"](this.animationOptions,(function(i){if(i.updateMethod&&d["d"](i.from)){var n=i.updateMethod(t,i.from,i.to);i.childObject?i.childObject[i.property]=n:e.object[i.property]=n}})),this.progress=t,this.events.isEnabled("animationprogress")){var i={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",i)}f["a"].requestFrame()},e.prototype.update=function(){if(!this._pause){var t=void 0;this._time=p["i"](Date.now()-this._startTime,0,this.duration);var e=this._time/this.duration;t=this.easing(e),(0==this.duration||!d["h"](t)||e>=1)&&(t=1),this.setProgress(t),1==p["E"](this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(e.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),e.prototype.stopSameAnimations=function(){var t=this;c["d"](c["c"](this.object.animations),(function(e){if(e!==t&&!e.delayed){var i=[];c["d"](t.animationOptions,(function(t){c["d"](e.animationOptions,(function(n){t.property==n.property&&t.childObject==n.childObject&&(i.push(n),0==e.animationOptions.length&&e.kill())}))})),c["d"](i,(function(t){c["o"](e.animationOptions,t)}))}}))},e.prototype.asFunction=function(e){return"easing"==e||t.prototype.asIs.call(this,e)},e}(r["b"])},cb90:function(t,e,i){"use strict";i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return h}));var n=i("ca92"),r=i("25c3"),a=i("e6cf7"),s=i("5134"),o=function(){function t(t,e){this.container=t,this.id=e;var i=document.createElementNS(s["a"],"svg");i.setAttribute("version","1.1"),i.setAttributeNS(s["d"],"xmlns",s["a"]),i.setAttributeNS(s["d"],"xmlns:xlink",s["c"]),i.setAttribute("role","group"),this.container.appendChild(i),this.defs=document.createElementNS(s["a"],"defs"),i.appendChild(this.defs),i.style.width="100%",i.style.height="100%",i.style.overflow="visible",this.svg=i}return t.prototype.add=function(t){return new n["a"](t)},t.prototype.addGroup=function(t){return new r["a"](t)},t.prototype.append=function(t){t&&this.svg.appendChild(t.node)},t.prototype.appendDef=function(t){t&&this.defs.appendChild(t.node)},t.prototype.foreignObject=function(){var t=new n["a"]("foreignObject");return t},t.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},t}(),l=null;function h(){if(null===l){var t=document.createElement("div");t.hidden=!0,t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.zIndex="-1000000",document.body.appendChild(t);var e=new a["a"](t,!0);l=new o(e.SVGContainer,"ghost")}return l}},cd03:function(t,e,i){"use strict";i.d(e,"a",(function(){return p}));var n=i("516a"),r=i("1ebf"),a=i("f2c0"),s=i("cb90"),o=i("84cf"),l=i("0357"),h=i("baa2"),u=i("916c"),p=function(t){function e(){var e=t.call(this)||this;return e._stops=new a["a"],e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+o["b"].getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.validate=function(){var t=this,e=(this._rotation+90)*h["d"],i=Math.round(50+50*Math.sin(e+Math.PI))+"%",n=Math.round(50+50*Math.cos(e))+"%",r=Math.round(50+50*Math.sin(e))+"%",a=Math.round(50+50*Math.cos(e+Math.PI))+"%",s=this.element;s.removeChildNodes(),s.attr({x1:i,x2:r,y1:n,y2:a}),l["d"](l["i"](this._stops.iterator()),(function(e){var i=e[0],n=e[1],r=n.offset;u["h"](r)||(r=i/(t._stops.length-1));var a=t.paper.add("stop");u["d"](n.color)&&a.attr({"stop-color":n.color.toString()}),u["h"](n.opacity)&&a.attr({"stop-opacity":n.opacity}),u["h"](r)&&a.attr({offset:r}),s.add(a)}))},e.prototype.clear=function(){this._stops.clear()},e.prototype.addColor=function(t,e,i){this._stops.push({color:t,opacity:e,offset:i})},Object.defineProperty(e.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paper",{get:function(){return this._paper?this._paper:Object(s["b"])()},set:function(t){this._paper!=t&&(this._paper=t,this.validate(),t.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation=t,this.validate()},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},Object.defineProperty(e.prototype,"gradientUnits",{set:function(t){this.element.attr({gradientUnits:t})},enumerable:!0,configurable:!0}),e}(r["a"]);o["b"].registeredClasses["LinearGradient"]=p},d8fb:function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("516a"),r=i("2d86"),a=i("03d5"),s=i("877f"),o=i("77b1"),l=function(t){function e(){var e=t.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=Object(a["b"])(),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){var t={x:this.x1,y:this.y1},e={x:this.x2,y:this.y2};this.path=o["g"](t)+Object(s["d"])(t,e,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(e.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(t){this.setPropertyValue("waveLength",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(t){this.setPropertyValue("waveHeight",t),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(t){this.setPropertyValue("tension",t),this.invalidate()},enumerable:!0,configurable:!0}),e}(r["a"])},d948:function(t,e,i){"use strict";i.d(e,"a",(function(){return h}));var n=i("516a"),r=i("5d2f"),a=i("84cf"),s=i("baa2"),o=i("916c"),l=i("2082"),h=function(t){function e(){var e=t.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this.innerWidth,i=this.innerHeight;if(o["h"](e)&&o["h"](i)){var n=s["C"](e,i)/2,r=l["F"](this.cornerRadiusTopLeft,n),a=l["F"](this.cornerRadiusTopRight,n),h=l["F"](this.cornerRadiusBottomRight,n),u=l["F"](this.cornerRadiusBottomLeft,n),p=s["C"](Math.abs(e/2),Math.abs(i/2)),c=s["i"](r,0,p),d=s["i"](a,0,p),f=s["i"](h,0,p),g=s["i"](u,0,p),y="M"+c+",0 L"+(e-d)+",0",m=" L"+g+","+i,b=" L0,"+c,v=" L"+e+","+(i-f),x=" a"+d+","+d+" 0 0 1 "+d+","+d,_=" a"+f+","+f+" 0 0 1 -"+f+","+f,P=" a"+g+","+g+" 0 0 1 -"+g+",-"+g,O=" a"+c+","+c+" 0 0 1 "+c+",-"+c,w=y+x+v+_+m+P+b+O+" Z";this.path=w}},e.prototype.cornerRadius=function(t,e,i,n){this.cornerRadiusTopLeft=t,this.cornerRadiusTopRight=e,this.cornerRadiusBottomLeft=i,this.cornerRadiusBottomRight=n},Object.defineProperty(e.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(t){this.setPercentProperty("cornerRadiusTopLeft",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(t){this.setPercentProperty("cornerRadiusTopRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(t){this.setPercentProperty("cornerRadiusBottomRight",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(t){this.setPercentProperty("cornerRadiusBottomLeft",t,!0)},enumerable:!0,configurable:!0}),e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(r["a"]);a["b"].registeredClasses["RoundedRectangle"]=h},da0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return u}));var n=i("516a"),r=i("1ebf"),a=i("a357"),s=i("6e0f"),o=i("916c"),l={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(t){var e="th";if(t<11||t>13)switch(t%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""},h=i("5290"),u=function(t){function e(){var e=t.call(this)||this;return e.adapter=new a["a"](e),e._locale=l,e._defaultLocale=l,e.className="Language",o["d"](h["a"].defaultLocale)&&(e.locale=h["a"].defaultLocale),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.getLocale=function(t){return null==t&&(t=this._locale),this.adapter.apply("locale",{locale:t}).locale},e.prototype.translate=function(t,e){for(var i=[],r=2;r0&&this.hasListenersByType(t)&&null==this._disabled[t]},t.prototype.has=function(t,e,i){var n=a["g"](this._listeners,(function(n){return!0!==n.once&&n.type===t&&(null==e||n.callback===e)&&n.context===i}));return-1!==n},t.prototype._shouldDispatch=function(t){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[t];return o["h"](e)?(e<=1?delete this._disabled[t]:--this._disabled[t],!1):this._enabled},t.prototype._eachListener=function(t){var e=this;++this._iterating;try{a["d"](this._listeners,t)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(a["d"](this._killed,(function(t){e._removeListener(t)})),this._killed.length=0)}},t.prototype.dispatchImmediately=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||i.dispatch(t,e)}))},t.prototype.dispatch=function(t,e){this._shouldDispatch(t)&&this._eachListener((function(i){i.killed||null!==i.type&&i.type!==t||s["e"]((function(){i.killed||i.dispatch(t,e)}))}))},t.prototype._on=function(t,e,i,n,a,s){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(t,e,i,n);var l={type:e,callback:i,context:n,shouldClone:a,dispatch:s,killed:!1,once:t,disposer:new r["b"]((function(){l.killed=!0,o._removeListener(l)}))};return this._listeners.push(l),l},t.prototype.onAll=function(t,e,i){return void 0===i&&(i=!0),this._on(!1,null,t,e,i,(function(i,n){return t.call(e,i,n)})).disposer},t.prototype.on=function(t,e,i,n){return void 0===n&&(n=!0),this._on(!1,t,e,i,n,(function(t,n){return e.call(i,n)})).disposer},t.prototype.once=function(t,e,i,n){void 0===n&&(n=!0);var r=this._on(!0,t,e,i,n,(function(t,n){r.disposer.dispose(),e.call(i,n)}));return r.disposer},t.prototype.off=function(t,e,i){this._removeExistingListener(!1,t,e,i)},t.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");a["d"](t._listeners,(function(t){!t.killed&&t.shouldClone&&(null===t.type?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))}))},t}(),h=function(t){function e(e){var i=t.call(this)||this;return i.target=e,i}return Object(n["c"])(e,t),e.prototype.copyFrom=function(t){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(t===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");a["d"](t._listeners,(function(i){i.context!==t.target&&!i.killed&&i.shouldClone&&(null===i.type?e.onAll(i.callback,i.context):i.once?e.once(i.type,i.callback,i.context):e.on(i.type,i.callback,i.context))}))},e}(l)},db37:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var n=i("516a"),r=i("5d2f"),a=i("84cf"),s=i("baa2"),o=function(t){function e(){var e=t.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.draw=function(){t.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var i=s["E"](this.innerWidth,e),n=s["E"](this.innerHeight,e);this.element.attr({width:i,height:n})},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),e}(r["a"]);a["b"].registeredClasses["Rectangle"]=o},ddd0:function(t,e,i){"use strict";i.d(e,"f",(function(){return s})),i.d(e,"g",(function(){return u})),i.d(e,"i",(function(){return p})),i.d(e,"c",(function(){return d})),i.d(e,"e",(function(){return f})),i.d(e,"a",(function(){return y})),i.d(e,"j",(function(){return m})),i.d(e,"b",(function(){return b})),i.d(e,"h",(function(){return v})),i.d(e,"d",(function(){return x}));var n=i("baa2"),r=i("916c"),a={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function s(t,e){var i;return a[t]?i=a[t]:"#"===t.charAt(0)?i=o(t):t.match(/^rgba?\(/)&&(i=h(t)),i||(i={r:0,g:0,b:0,a:1}),r["d"](e)&&(i.a=e),i}function o(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,(function(t,e,i,n){return e+e+i+i+n+n}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:l(t)}function l(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,(function(t,e,i,n,r){return e+e+i+i+n+n+r+r}));var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return i?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16),a:parseInt(i[4],16)/256}:void 0}function h(t){t=t.replace(/[ ]/g,"");var e=t.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=t.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return;return{r:parseInt(e[1]),g:parseInt(e[2]),b:parseInt(e[3]),a:parseFloat(e[4])}}function u(t){return"#"+c(t.r.toString(16))+c(t.g.toString(16))+c(t.b.toString(16))}function p(t){return r["d"](t.a)&&1!==t.a?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"rgb("+t.r+","+t.g+","+t.b+")"}function c(t){return 1==t.length?"0"+t:""+t}function d(t,e,i){return i=n["i"](i,0,1),t?e?{r:t.r+Math.round((e.r-t.r)*i),g:t.g+Math.round((e.g-t.g)*i),b:t.b+Math.round((e.b-t.b)*i),a:(t.a||1)+Math.round(((e.a||1)-(t.a||1))*i)}:t:e||t}function f(t,e){return t?{r:Math.max(0,Math.min(255,t.r+g(t.r,e))),g:Math.max(0,Math.min(255,t.g+g(t.g,e))),b:Math.max(0,Math.min(255,t.b+g(t.b,e))),a:t.a}:t}function g(t,e){var i=e>0?255-t:t;return Math.round(i*e)}function y(t,e){if(t){var i=Math.min(Math.max(t.r,t.g,t.b),230),n=g(i,e);return{r:Math.max(0,Math.min(255,Math.round(t.r+n))),g:Math.max(0,Math.min(255,Math.round(t.g+n))),b:Math.max(0,Math.min(255,Math.round(t.b+n))),a:t.a}}return t}function m(t,e){if(null==t||1==e)return t;var i=v(t);return i.s=e,b(i)}function b(t){var e,i,n,r=t.h,a=t.s,s=t.l;if(0==a)e=i=n=s;else{var o=function(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t},l=s<.5?s*(1+a):s+a-s*a,h=2*s-l;e=o(h,l,r+1/3),i=o(h,l,r),n=o(h,l,r-1/3)}return{r:Math.round(255*e),g:Math.round(255*i),b:Math.round(255*n)}}function v(t){var e=t.r/255,i=t.g/255,n=t.b/255,r=Math.max(e,i,n),a=Math.min(e,i,n),s=0,o=0,l=(r+a)/2;if(r===a)s=o=0;else{var h=r-a;switch(o=l>.5?h/(2-r-a):h/(r+a),r){case e:s=(i-n)/h+(i=128}},e243:function(t,e,i){"use strict";i.d(e,"a",(function(){return w}));var n=i("516a"),r=i("1ebf"),a=i("f2c0"),s=i("cabc"),o=i("07a8"),l=i("28f0"),h=i("f557"),u=i("1735"),p=i("4ea6"),c=i("5134"),d=i("04e4"),f=i("72b5"),g=i("5290"),y=i("ec03"),m=i("baa2"),b=i("6e0f"),v=i("0357"),x=i("916c"),_=i("84bd"),P=function(t){function e(){var i=t.call(this)||this;return i._globalEventsAdded=!1,i._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},i._usePointerEventsOnly=!1,i._useTouchEventsOnly=!1,i._addHoverEvents=!0,i._passiveSupported=!1,i._delayedEvents={out:[]},i.overObjects=new a["a"],i.downObjects=new a["a"],i.trackedObjects=new a["a"],i.transformedObjects=new a["a"],i.pointers=new u["a"],i.inertiaOptions=new u["a"],i.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},i.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},i.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},i.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},i.mouseOptions={sensitivity:1},i.className="Interaction",i.body=i.getInteraction(document.body),i._disposers.push(i.body),window.hasOwnProperty("PointerEvent")?(i._pointerEvents.pointerdown="pointerdown",i._pointerEvents.pointerup="pointerup",i._pointerEvents.pointermove="pointermove",i._pointerEvents.pointercancel="pointercancel",i._pointerEvents.pointerover="pointerover",i._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(i._pointerEvents.pointerdown="MSPointerDown",i._pointerEvents.pointerup="MSPointerUp",i._pointerEvents.pointermove="MSPointerMove",i._pointerEvents.pointercancel="MSPointerUp",i._pointerEvents.pointerover="MSPointerOver",i._pointerEvents.pointerout="MSPointerOut"):"undefined"!==typeof matchMedia&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(i._addHoverEvents=!1,i._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||i.fullFF()?i._usePointerEventsOnly=!0:i._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?i._pointerEvents.wheel="wheel":x["d"](document.onmousewheel)&&(i._pointerEvents.wheel="mousewheel"),i.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:y["polyOut3"]}),i.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:y["polyOut3"]}),i._passiveSupported=e.passiveSupported,i.applyTheme(),i}return Object(n["c"])(e,t),e.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},e.prototype.debug=function(){},e.prototype.addGlobalEvents=function(){var t=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Object(c["f"])(document,this._pointerEvents.pointerdown,(function(e){t.handleGlobalPointerDown(e)}))),this._disposers.push(Object(c["f"])(document,this._pointerEvents.pointermove,(function(e){t.handleGlobalPointerMove(e)}))),this._disposers.push(Object(c["f"])(document,this._pointerEvents.pointerup,(function(e){t.handleGlobalPointerUp(e)}))),this._disposers.push(Object(c["f"])(document,this._pointerEvents.pointercancel,(function(e){t.handleGlobalPointerUp(e,!0)}))),this._disposers.push(Object(c["f"])(document,"mouseenter",(function(e){x["d"](e.relatedTarget)||0!=e.buttons&&0!=e.which||t.handleDocumentLeave(e)})))),this._usePointerEventsOnly||(this._disposers.push(Object(c["f"])(document,"touchstart",(function(e){t.handleGlobalTouchStart(e)}))),this._disposers.push(Object(c["f"])(document,"touchmove",(function(e){t.handleGlobalTouchMove(e)}))),this._disposers.push(Object(c["f"])(document,"touchend",(function(e){t.handleGlobalTouchEnd(e)})))),this._disposers.push(Object(c["f"])(document,"keydown",(function(e){t.handleGlobalKeyDown(e)}))),this._disposers.push(Object(c["f"])(document,"keyup",(function(e){t.handleGlobalKeyUp(e)}))),this._globalEventsAdded=!0)},e.prototype.processClickable=function(t){this.processTouchable(t)},e.prototype.processContextMenu=function(t){t.contextMenuDisabled?t.eventDisposers.hasKey("contextMenuDisabled")||t.eventDisposers.setKey("contextMenuDisabled",Object(c["f"])(t.element,"contextmenu",(function(t){t.preventDefault()}))):t.eventDisposers.hasKey("contextMenuDisabled")&&t.eventDisposers.getKey("contextMenuDisabled").dispose()},e.prototype.processHoverable=function(t){var e=this;if(t.hoverable||t.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(t),!t.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&t.eventDisposers.setKey("hoverable",new o["c"]([Object(c["f"])(t.element,this._pointerEvents.pointerout,(function(i){return e.handlePointerOut(t,i)})),Object(c["f"])(t.element,this._pointerEvents.pointerover,(function(i){return e.handlePointerOver(t,i)}))])),t.trackable;else{var i=t.eventDisposers.getKey("hoverable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("hoverable"))}this.processTouchable(t)},e.prototype.processMovable=function(t){(t.draggable||t.swipeable||t.trackable||t.resizable)&&(this.isGlobalElement(t)||t.isTouchProtected||this.prepElement(t),this.applyCursorOverStyle(t)),this.processTouchable(t)},e.prototype.processTrackable=function(t){this.processHoverable(t),this.processMovable(t),t.trackable?this.trackedObjects.moveValue(t):this.trackedObjects.removeValue(t)},e.prototype.processDraggable=function(t){this.processMovable(t)},e.prototype.processSwipeable=function(t){this.processMovable(t)},e.prototype.processResizable=function(t){this.processMovable(t)},e.prototype.processWheelable=function(t){var e=this;if(t.wheelable)t.eventDisposers.hasKey("wheelable")||t.eventDisposers.setKey("wheelable",new o["c"]([Object(c["f"])(t.element,this._pointerEvents.wheel,(function(i){return e.handleMouseWheel(t,i)}),!!this._passiveSupported&&{passive:!1}),t.events.on("out",(function(i){t.wheelable&&e.unlockWheel()})),t.events.on("over",(function(i){t.wheelable&&e.lockWheel()}))]));else{var i=t.eventDisposers.getKey("wheelable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("wheelable"))}},e.prototype.processFocusable=function(t){var e=this;if(!0===t.focusable&&t.tabindex>-1&&!this._useTouchEventsOnly)t.eventDisposers.hasKey("focusable")||t.eventDisposers.setKey("focusable",new o["c"]([Object(c["f"])(t.element,"focus",(function(i){return e.handleFocus(t,i)})),Object(c["f"])(t.element,"blur",(function(i){return e.handleBlur(t,i)})),Object(c["f"])(t.element,this._pointerEvents.pointerdown,(function(i){return e.handleFocusBlur(t,i)})),Object(c["f"])(t.element,"touchstart",(function(i){return e.handleFocusBlur(t,i)}),!!this._passiveSupported&&{passive:!1})]));else{var i=t.eventDisposers.getKey("focusable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("focusable"))}},e.prototype.processTouchable=function(t){var e=this;if(t.clickable||t.hoverable||t.trackable||t.draggable||t.swipeable||t.resizable)this.addGlobalEvents(),t.eventDisposers.hasKey("touchable")||(this._useTouchEventsOnly||this._usePointerEventsOnly?this._useTouchEventsOnly?this._usePointerEventsOnly||t.eventDisposers.setKey("touchable",Object(c["f"])(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})):t.eventDisposers.setKey("touchable",Object(c["f"])(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)}))):t.eventDisposers.setKey("touchable",new o["c"]([Object(c["f"])(t.element,this._pointerEvents.pointerdown,(function(i){return e.handlePointerDown(t,i)})),Object(c["f"])(t.element,"touchstart",(function(i){return e.handleTouchDown(t,i)}),!!this._passiveSupported&&{passive:!1})])));else{var i=t.eventDisposers.getKey("touchable");null!=i&&(i.dispose(),t.eventDisposers.removeKey("touchable"))}},e.prototype.handleFocus=function(t,e){if(t.focusable){if(t.isFocused=!0,t.events.isEnabled("focus")&&!f["a"].isPaused){var i={type:"focus",target:t,event:e};t.events.dispatchImmediately("focus",i)}}else e.preventDefault()},e.prototype.handleFocusBlur=function(t,e){!1!==t.focusable&&this.getHitOption(t,"noFocus")&&t.events.once("focus",(function(){t.events.disableType("blur"),c["g"](),t.sprite&&t.sprite.handleBlur(),t.events.enableType("blur")}))},e.prototype.handleBlur=function(t,e){if(t.focusable){if(t.isFocused=!1,t.events.isEnabled("blur")&&!f["a"].isPaused){var i={type:"blur",target:t,event:e};t.events.dispatchImmediately("blur",i)}}else e.preventDefault()},e.prototype.handleGlobalKeyDown=function(t){if(this.focusedObject)if(d["a"].isKey(t,"esc"))c["g"]();else if(this.focusedObject.draggable&&d["a"].isKey(t,["up","down","left","right"])){t.preventDefault();var e=this.focusedObject,i="interactionKeyboardObject";if(e.eventDisposers.hasKey(i))return;var n=new h["a"](e,t);switch(e.eventDisposers.setKey(i,n),d["a"].getEventKey(t)){case"up":n.directionY=-1;break;case"down":n.directionY=1;break;case"left":n.directionX=-1;break;case"right":n.directionX=1;break}}},e.prototype.handleGlobalKeyUp=function(t){var e="interactionKeyboardObject";if(this.focusedObject){var i=this.focusedObject.eventDisposers.getKey(e);null!=i&&(t.preventDefault(),i.dispose(),this.focusedObject.eventDisposers.removeKey(e));var n=this.focusedObject.sprite;d["a"].isKey(t,"enter")&&n&&(n.events.isEnabled("hit")||n.events.isEnabled("toggled")?this.focusedObject.dispatchImmediately("hit"):"hit"==n.showTooltipOn&&this.focusedObject.dispatchImmediately("up"))}},e.prototype.handleGlobalPointerMove=function(t){var e=this.getPointer(t);if(e.point=this.getPointerPoint(t),this.events.isEnabled("track")&&!f["a"].isPaused){var i={type:"track",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("track",i)}this.addBreadCrumb(e,e.point),this.handleGlobalMove(e,t)},e.prototype.handleGlobalPointerDown=function(t){this.processDelayed();var e=this.getPointer(t);if(this.events.isEnabled("down")&&!f["a"].isPaused){var i={type:"down",target:this,event:t,pointer:e,touch:e.touch};this.events.dispatchImmediately("down",i)}},e.prototype.preventTouchAction=function(t){t.defaultPrevented||t.preventDefault()},e.prototype.handleGlobalPointerUp=function(t,e){void 0===e&&(e=!1);var i=this.getPointer(t);if(this.events.isEnabled("up")&&!f["a"].isPaused){var n={type:"up",target:this,event:t,pointer:i,touch:i.touch};this.events.dispatchImmediately("up",n)}this.handleGlobalUp(i,t,e)},e.prototype.handleGlobalTouchMove=function(t){for(var e=0;e=n-this.getHitOption(t,"doubleHitTime")){if(n-t.lastHit<100)return;if(t.lastHit=void 0,t.lastHitPointer=void 0,t.events.isEnabled("doublehit")&&!f["a"].isPaused){var r={type:"doublehit",target:t,point:e.point,event:i,touch:e.touch};t.events.dispatchImmediately("doublehit",r)}}else if(t.lastHit=n,t.lastHitPointer=e,3===e.button){if(t.events.isEnabled("rightclick")&&!f["a"].isPaused){r={type:"rightclick",target:t,event:i};t.events.dispatchImmediately("rightclick",r)}}else if(t.events.isEnabled("hit")&&!f["a"].isPaused){r={type:"hit",target:t,event:i,point:e.point,touch:e.touch};t.events.dispatchImmediately("hit",r)}},e.prototype.handleOver=function(t,e,i,n){if(void 0===n&&(n=!1),t.hoverable){var r=!1;if(this.shouldCancelHovers(e)&&this.areTransformed()&&this.moved(e,this.getHitOption(t,"hitTolerance"))&&(r=!0,this.cancelAllHovers(i)),this.processDelayed(),t.overPointers.moveValue(e),!t.isRealHover&&(r||(t.isHover=!0,t.isRealHover=!0,this.overObjects.moveValue(t)),this.handleTrack(this.body,e,i,!0),t.events.isEnabled("over")&&!f["a"].isPaused&&!r)){var a={type:"over",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("over",a)}}},e.prototype.handleOut=function(t,e,i,n,r){var a=this;if(void 0===n&&(n=!1),void 0===r&&(r=!1),t.hoverable&&(t.overPointers.removeValue(e),t.isHover&&(!t.hasDelayedOut||r))){if(n&&t.overPointers.length)return;if(e&&e.touch&&!r&&!this.old(e)){var s=this.getHoverOption(t,"touchOutBehavior");if("leave"==s)return this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:_["f"]()+500}),void(t.hasDelayedOut=!0);if("delay"==s&&this.getHoverOption(t,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:t,pointer:e,event:i,keepUntil:_["f"]()+500,timeout:this.setTimeout((function(){a.handleOut(t,e,i,!0)}),this.getHoverOption(t,"touchOutDelay"))})}if(t.isHover=!1,this.overObjects.removeValue(t),!t.isDisposed()&&t.events.isEnabled("out")&&!f["a"].isPaused){var o={type:"out",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("out",o)}t.overPointers.clear(),t.hasDelayedOut=!1}},e.prototype.processDelayed=function(){var t;while(1){if(t=this._delayedEvents.out.pop(),!t)break;t.timeout&&t.timeout.dispose(),this.handleOut(t.io,t.pointer,t.event,!1,!0)}},e.prototype.handleDown=function(t,e,i){if(this.maybePreventDefault(t,i,e),t.inert&&this.stopInertia(t),this.handleOver(t,e,i,!0),t.downPointers.moveValue(e),this.applyCursorDownStyle(t,e),t.isDown||(!1!==t.focusable&&this.getHitOption(t,"noFocus")&&this.focusedObject&&c["g"](),t.isDown=!0,this.downObjects.moveValue(t),t.draggable&&this.processDragStart(t,e,i),t.resizable&&this.processResizeStart(t,e,i)),t.events.isEnabled("down")&&!f["a"].isPaused){var n={type:"down",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("down",n)}},e.prototype.handleGlobalUp=function(t,e,i){var n=this;void 0===i&&(i=!1);var r=this.downObjects.values.slice();r.sort((function(t,e){if(t&&e){var i=t.element.compareDocumentPosition(e.element);return i&Node.DOCUMENT_POSITION_CONTAINED_BY?1:i&Node.DOCUMENT_POSITION_CONTAINS?-1:0}return 0})),b["d"](r,(function(r){r&&r.downPointers.contains(t)&&n.handleUp(r,t,e,i)}))},e.prototype.handleDocumentLeave=function(t){var e=this;v["d"](this.downObjects.backwards().iterator(),(function(i){i.downPointers.each((function(n){e.handleUp(i,n,t)}))}))},e.prototype.handleUp=function(t,e,i,n){if(void 0===n&&(n=!1),this.restoreCursorDownStyle(t,e),t.downPointers.removeValue(e),(e&&e.touch||this._useTouchEventsOnly)&&this.handleOut(t,e,i,!0),t.isDown){if(0==t.downPointers.length&&(t.isDown=!1,this.downObjects.removeValue(t)),t.events.isEnabled("up")&&!f["a"].isPaused&&e){var r={type:"up",target:t,event:i,pointer:e,touch:e.touch};t.events.dispatchImmediately("up",r)}n||(t.swipeable&&this.swiped(t,e)?this.handleSwipe(t,e,i):(t.clickable&&!this.moved(e,this.getHitOption(t,"hitTolerance"))&&this.handleHit(t,e,i),t.inert&&this.moved(e,this.getHitOption(t,"hitTolerance"))?this.handleInertia(t,e):t.draggable&&this.processDragStop(t,e,i),t.resizable&&this.processResizeStop(t,e,i)))}},e.prototype.maybePreventDefault=function(t,e,i){!x["d"](e)||!(t.draggable||t.swipeable||t.trackable||t.resizable)||this.isGlobalElement(t)||!1===e.cancelable||t.isTouchProtected&&i&&i.touch||e.preventDefault()},e.prototype.cancelAllHovers=function(t){var e=this;v["d"](this.overObjects.backwards().iterator(),(function(i){if(i){var n=i.overPointers.getIndex(0);e.handleOut(i,n,t,!0,!0)}}))},e.prototype.shouldCancelHovers=function(t){return"always"==g["a"].disableHoverOnTransform||"touch"==g["a"].disableHoverOnTransform&&t.touch},e.prototype.handleGlobalMove=function(t,e){var i=this;if(!t.touch){var n=c["i"](t.lastEvent);v["d"](this.overObjects.backwards().iterator(),(function(r){if(r&&r.overPointers.contains(t)&&r.hoverable){var a=!1;r.element&&t.lastEvent&&c["h"](r.element,n)||(a=!0),a&&i.handleOut(r,t,e,!0)}}))}v["d"](this.transformedObjects.backwards().iterator(),(function(n){!n.downPointers.contains(t)||n.swipeable&&i.swiping(n,t)||!n.draggable&&!n.resizable||i.handleTransform(n,e)})),v["d"](this.trackedObjects.backwards().iterator(),(function(n){n.overPointers.contains(t)||i.handleTrack(n,t,e)}))},e.prototype.handleTrack=function(t,e,i,n){if(void 0===n&&(n=!1),(n||this.moved(e,0))&&t.events.isEnabled("track")&&!f["a"].isPaused){var r={type:"track",target:t,event:i,point:e.point,pointer:e,touch:e.touch};t.events.dispatchImmediately("track",r)}},e.prototype.handleSwipe=function(t,e,i){if(t.events.isEnabled("swipe")&&!f["a"].isPaused){var n={type:"swipe",target:t,event:i,touch:e.touch};t.events.dispatchImmediately("swipe",n)}if(e.startPoint.x0?t.events.isEnabled("swiperight")&&!f["a"].isPaused&&t.events.dispatchImmediately("wheelright",{type:"wheelright",target:t,event:r,point:e.point,shift:a}):n<0?t.events.isEnabled("wheelup")&&!f["a"].isPaused&&t.events.dispatchImmediately("wheelup",{type:"wheelup",target:t,event:r,point:e.point,shift:a}):n>0&&t.events.isEnabled("wheeldown")&&!f["a"].isPaused&&t.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:t,event:r,point:e.point,shift:a})},e.prototype.handleInertia=function(t,e){t.draggable&&0===t.downPointers.length&&this.handleMoveInertia(t,e),t.resizable&&t.downPointers.length>1&&this.handleResizeInertia(t,e)},e.prototype.handleMoveInertia=function(t,e){var i=t,n="move",r={x:e.point.x,y:e.point.y},a={x:e.startPoint.x,y:e.startPoint.y},o=new p["a"](i,n,r,a),l=this.getTrailPoint(e,_["f"]()-this.getInertiaOption(t,"move","time"));if("undefined"!==typeof l){var h=this.getInertiaOption(t,"move","factor"),u=[{to:e.point.x+(e.point.x-l.point.x)*h,property:"x"},{to:e.point.y+(e.point.y-l.point.y)*h,property:"y"}],c=new s["a"](o,u,this.getInertiaOption(t,"move","duration"),this.getInertiaOption(t,"move","easing")).start();this._disposers.push(c.events.on("animationended",(function(t){o.done()}))),t.inertias.setKey("move",o)}else this.processDragStop(t,e,e.lastUpEvent)},e.prototype.handleResizeInertia=function(t,e){},e.prototype.handleTransform=function(t,e){var i,n,r,a=t.downPointers.getIndex(0),s=null,o=null;a&&(s=a.point,o=a.startPoint),n={x:t.originalPosition.x,y:t.originalPosition.y},r=n;for(var l=!0,h=1;hi-this.getSwipeOption(t,"time"))},e.prototype.swiped=function(t,e){var i=_["f"]();return!e.swipeCanceled&&(Math.abs(e.startPoint.x-e.point.x)>this.getSwipeOption(t,"horizontalThreshold")&&Math.abs(e.startPoint.y-e.point.y)i-this.getSwipeOption(t,"time"))},e.prototype.applyCursorOverStyle=function(t){var e=t.cursorOptions;if(x["d"](e.overStyle))for(var i=0;ie||Math.abs(n.y)>e},e.prototype.old=function(t,e){return void 0===e&&(e=300),_["f"]()-t.startTime>e},e.prototype.getShift=function(t){return{x:t.startPoint.x-t.point.x,y:t.startPoint.y-t.point.y}},e.prototype.getTrailPoint=function(t,e){for(var i,n=0;n=e){i=t.track[n];break}return i},e.prototype.pointerExists=function(t,e){var i=!1;return t.each((function(t){t!=e&&(i=t.point.x==e.point.x&&t.point.y==e.point.y)})),i},e.prototype.getInteraction=function(t){return new l["a"](t)},e.prototype.setTemporaryStyle=function(t,e,i){var n=t.element;x["d"](n.style[e])&&!t.replacedStyles.hasKey(e)&&t.replacedStyles.setKey(e,n.style[e]),c["t"](n,e,i)},e.prototype.restoreStyle=function(t,e){t.replacedStyles.hasKey(e)?(t.element.style[e]=t.replacedStyles.getKey(e),t.replacedStyles.removeKey(e)):delete t.element.style[e]},e.prototype.restoreAllStyles=function(t){v["d"](t.replacedStyles.iterator(),(function(e){var i=e[0],n=e[1];t.element.style[i]=n,t.replacedStyles.removeKey(i)}))},e.prototype.dispose=function(){this.isDisposed()||(t.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},e.prototype.log=function(t,e,i){var n=!0;if(n){if(e.changedTouches){for(var r=0;r0},e.prototype.logTouch=function(t,e,i){console.log(t+" "+e+" touch "+i.identifier)},Object.defineProperty(e,"passiveSupported",{get:function(){var t=this;if(null==this._passiveSupported)try{var e=Object.defineProperty({},"passive",{get:function(){t._passiveSupported=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(i){this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),e}(r["b"]),O=null;function w(){return null==O&&(O=new P),O}},e6cc:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("03d5"),r=function(){function t(){}return t.opacity=1,t.strokeOpacity=1,t.strokeWidth=1,t.fillOpacity=1,t.fill=Object(n["b"])("#000000"),t.stroke=Object(n["b"])("#000000"),t.focusable=void 0,t.tabindex=0,t}()},e6cf7:function(t,e,i){"use strict";i.d(e,"b",(function(){return y})),i.d(e,"a",(function(){return m}));var n=i("0344"),r=i("a281"),a=i("f2c0"),s=i("2082"),o=i("5134"),l=i("6e0f"),h=i("916c"),u=i("c886"),p=function(){function t(){var t=this;this._targets=[],this._observer=new ResizeObserver((function(e){l["d"](e,(function(e){l["d"](t._targets,(function(t){t.target===e.target&&t.callback()}))}))}))}return t.prototype.addTarget=function(t,e){this._observer.observe(t,{box:"content-box"}),this._targets.push({target:t,callback:e})},t.prototype.removeTarget=function(t){this._observer.unobserve(t),l["k"](this._targets,(function(e){return e.target!==t}))},t}(),c=function(){function t(){this._targets=[]}return t.prototype.addTarget=function(e,i){var n=this;if(0===this._targets.length){var r=null,a=function(){var e=Date.now();(null===r||e>r+t.delay)&&(r=e,l["d"](n._targets,(function(t){var e=t.target.getBoundingClientRect();e.width===t.size.width&&e.height===t.size.height||(t.size=e,t.callback())}))),n._timer=requestAnimationFrame(a)};this._timer=requestAnimationFrame(a)}var s=e.getBoundingClientRect();this._targets.push({target:e,callback:i,size:s})},t.prototype.removeTarget=function(t){l["k"](this._targets,(function(e){return e.target!==t})),0===this._targets.length&&cancelAnimationFrame(this._timer)},t.delay=200,t}(),d=null;function f(){return null===d&&(d="undefined"!==typeof ResizeObserver?new p:new c),d}var g=function(){function t(t,e){this._disposed=!1,this._sensor=f(),this._element=t,this._sensor.addTarget(t,e)}return t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},Object.defineProperty(t.prototype,"sensor",{get:function(){return this._sensor},enumerable:!0,configurable:!0}),t.prototype.reset=function(){u["b"]("resizeSensor.reset() is no longer needed and can be removed")},t}(),y=[],m=function(){function t(t,e){var i=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this._printing=!1,this.htmlElement=t,e||(this._printing=!1,this.initSensor(),this._disposers.push(o["f"](window,"beforeprint",(function(){i._printing=!0}))),this._disposers.push(o["f"](window,"afterprint",(function(){i._printing=!1})))),y.push(this);var n=document.createElement("div"),r=n.style;r.width="100%",r.height="100%",r.position="relative",t.appendChild(n),this.SVGContainer=n}return t.prototype.initSensor=function(){var t=this;this.resizeSensor&&this.resizeSensor.dispose();var e=function(){t.autoResize&&!t._printing&&t.measure()};this.resizeSensor=new g(this.htmlElement,e),this._disposers.push(this.resizeSensor)},t.prototype.measure=function(){var t=s["T"](this.htmlElement),e=s["w"](this.htmlElement),i=this.container;i&&(this.width==t&&this.height==e||(this.width=t,this.height=e,t>0&&(i.maxWidth=t),e>0&&(i.maxHeight=e),o["l"](this.SVGContainer)),i.maxWidth||(i.maxWidth=0),i.maxHeight||(i.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(t.prototype,"container",{get:function(){return this._container},set:function(t){this._container=t,this.measure()},enumerable:!0,configurable:!0}),t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||l["o"](y,this),l["d"](this._disposers,(function(t){t.dispose()}))},Object.defineProperty(t.prototype,"hideOverflow",{set:function(t){this.SVGContainer.style.overflow=t?"hidden":""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modal",{get:function(){return h["d"](this._modal)||(this._modal=new r["a"],this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),t.prototype.openModal=function(t,e){this.closeModal();var i=this.modal;return i.content=t,i.readerTitle=e||"",i.title=e||"",i.open(),i},t.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(t.prototype,"popups",{get:function(){if(!h["d"](this._popups)){var t=new n["a"];t.container=this.SVGContainer,this._popups=new a["c"](t),this._disposers.push(new a["b"](this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(t,e){var i=this.popups.create();return i.content=t,h["d"](e)&&(i.title=e),i.open(),i},t.prototype.closeAllPopups=function(){this.popups.each((function(t){t.close()}))},Object.defineProperty(t.prototype,"readerAlertElement",{get:function(){if(!h["d"](this._readerAlertElement)){var t=document.createElement("div");t.setAttribute("role","alert"),t.style.zIndex="-100000",t.style.opacity="0",t.style.position="absolute",t.style.top="0",this.SVGContainer.appendChild(t),this._readerAlertElement=t}return this._readerAlertElement},enumerable:!0,configurable:!0}),t.prototype.readerAlert=function(t){this.readerAlertElement.innerHTML=t},t.prototype.checkTransform=function(t){if(window.getComputedStyle){if(t&&t.style){var e=window.getComputedStyle(t,null);if(e){var i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(i&&"none"!==i){var n=i.split("(")[1].split(")")[0].split(","),r=Number(n[0]),a=Number(n[1]),s=Math.sqrt(r*r+a*a);isNaN(s)||(this.cssScale*=s)}}}t.parentNode&&t.parentNode instanceof HTMLElement&&this.checkTransform(t.parentNode)}},t}()},ea2c:function(t,e,i){"use strict";i.d(e,"a",(function(){return b}));var n=i("516a"),r=i("be33"),a=i("477c"),s=i("9fe8"),o=i("e243"),l=i("54c9"),h=i("d948"),u=i("84cf"),p=i("04e4"),c=i("c125"),d=i("2b87"),f=i("baa2"),g=i("ec03"),y=i("916c"),m=i("2082"),b=function(t){function e(){var e=t.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=g["cubicOut"],e.margin(10,10,10,10);var i=new c["a"],n=e.background;return n.cornerRadius(10,10,10,10),n.fill=i.getFor("fill"),n.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new a["a"],e.endGrip=new a["a"],e.events.on("transformed",(function(){e.updateThumb()}),e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",(function(){e._previousStart=void 0,e.dispatchRangeChange()}),void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),"horizontal"===this.orientation?(y["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),y["d"](this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),y["d"](this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),y["d"](this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):(y["d"](this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),y["d"](this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),y["d"](this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),y["d"](this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},e.prototype.validateLayout=function(){this.updateSize(),t.prototype.validateLayout.call(this),this.updateExtremes()},e.prototype.processBackground=function(){t.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},e.prototype.handleBgHit=function(t){this.makeBusy();var e=t.spritePoint;e=m["J"](e,this.background,this);var i=this.thumb;if("horizontal"==this.orientation){var n=e.x-i.pixelWidth/2;n=f["i"](n,0,this.innerWidth-i.pixelWidth),this._thumbAnimation=i.animate({property:"x",to:n},this.animationDuration,this.animationEasing)}else{var r=e.y-i.pixelHeight/2;r=f["i"](r,0,this.innerHeight-i.pixelHeight),this._thumbAnimation=i.animate({property:"y",to:r},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},e.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},e.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},e.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),1.1*this.animationDuration)},e.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},e.prototype.dispatchRangeChange=function(){this._previousEnd==this.end&&this._previousStart==this.start||(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},e.prototype.updateThumb=function(t){if(void 0===t&&(t=!0),this.parent){var e,i,n=this.thumb,r=this.start,a=this.end,s=this.startGrip,o=this.endGrip,l=this.adapter.apply("positionValueDirection",{flipped:!1}).flipped,h=l?"To %1":"From %1",u=l?"From %1":"To %1";if("horizontal"==this.orientation){var p=this.innerWidth;n.width=p*(a-r),n.maxX=p-n.pixelWidth,n.x=r*p,s.moveTo({x:n.pixelX,y:0},void 0,void 0,!0),o.moveTo({x:n.pixelX+n.pixelWidth,y:0},void 0,void 0,!0),e=this.adapter.apply("positionValue",{value:Math.round(100*r)+"%",position:r}).value,i=this.adapter.apply("positionValue",{value:Math.round(100*a)+"%",position:a}).value,s.readerTitle=this.language.translate(h,void 0,e),s.readerValueNow=""+Math.round(100*r),s.readerValueText=s.readerTitle,o.readerTitle=this.language.translate(u,void 0,i),o.readerValueNow=""+Math.round(100*a),o.readerValueText=o.readerTitle}else{var c=this.innerHeight;n.height=c*(a-r),n.maxY=c-n.pixelHeight,n.y=(1-a)*c,s.moveTo({x:0,y:n.pixelY+n.pixelHeight},void 0,void 0,!0),o.moveTo({x:0,y:n.pixelY},void 0,void 0,!0),e=this.adapter.apply("positionValue",{value:Math.round(100*(1-r))+"%",position:1-r}).value,i=this.adapter.apply("positionValue",{value:Math.round(100*(1-a))+"%",position:1-a}).value,s.readerTitle=this.language.translate(u,void 0,e),s.readerValueNow=""+Math.round(100*r),s.readerValueText=s.readerTitle,o.readerTitle=this.language.translate(h,void 0,i),o.readerValueNow=""+Math.round(100*a),o.readerValueText=o.readerTitle}n.readerTitle=this.language.translate("From %1 to %2",void 0,e,i),n.readerValueNow=""+Math.round(100*r),n.readerValueText=n.readerTitle,this.readerValueNow=""+Math.round(100*r),this.readerValueText=n.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&t&&this.dispatchRangeChange()}},e.prototype.updateExtremes=function(){var t=this.orientation,e=0,i=0,n=0,r=0;"horizontal"==t?(n=this.innerWidth,i=r=this.innerHeight/2):(r=this.innerHeight,e=n=this.innerWidth/2);var a=this.startGrip;a.minX=e,a.maxX=n,a.minY=i,a.maxY=r;var s=this.endGrip;s.minX=e,s.maxX=n,s.minY=i,s.maxY=r;var o=this.thumb;o.minX=e,o.maxX=n,o.minY=i,o.maxY=r},e.prototype.updateSize=function(){var t=this.orientation,e=this.startGrip;e&&(e.orientation=t),this.endGrip&&(this.endGrip.orientation=t);var i=this.thumb;i&&("horizontal"==t?(y["h"](this._pixelWidth)||this.width instanceof d["a"]||(this.width=Object(d["c"])(100)),y["d"](this.percentHeight)&&(this.height=this.minHeight),i.height=this.innerHeight,i.verticalCenter="middle",i.horizontalCenter="left"):(y["h"](this._pixelHeight)||this.height instanceof d["a"]||(this.height=Object(d["c"])(100)),y["d"](this.percentWidth)&&(this.width=this.minWidth),i.width=this.innerWidth,i.verticalCenter="top",i.horizontalCenter="middle"))},Object.defineProperty(e.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__start=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__start",{get:function(){return this._start},set:function(t){this._start=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(t){this._isBusy||(this.__end=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__end",{get:function(){return this._end},set:function(t){this._end=this.getPosition(t),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),e.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},e.prototype.fixRange=function(t){t.start==f["E"](this._start,2)&&t.end==f["E"](this._end,2)||(this._start=t.start,this._end=t.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},e.prototype.getPosition=function(t){return f["i"](f["E"](t,4),0,1)},Object.defineProperty(e.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(t){this.setPropertyValue("orientation",t)&&("horizontal"===t?(this.startGrip.cursorOverStyle=l["a"].horizontalResize,this.endGrip.cursorOverStyle=l["a"].horizontalResize):(this.startGrip.cursorOverStyle=l["a"].verticalResize,this.endGrip.cursorOverStyle=l["a"].verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.updateByOrientation=function(){},Object.defineProperty(e.prototype,"startGrip",{get:function(){return this._startGrip},set:function(t){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endGrip",{get:function(){return this._endGrip},set:function(t){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=t,this.processGrip(t)},enumerable:!0,configurable:!0}),e.prototype.processGrip=function(t){t.parent=this,t.isMeasured=!1,t.focusable=!0,t.shouldClone=!1,t.zIndex=100,t.events.on("drag",this.handleGripDrag,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("down",this.makeBusy,this,!1),t.events.on("up",this.makeUnbusy,this,!1),this._disposers.push(t)},e.prototype.handleGripDrag=function(t){this.makeBusy(),t.target===this._startGrip?this._usingGrip="start":this._usingGrip="end","horizontal"==this.orientation?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(e.prototype,"thumb",{get:function(){if(!this._thumb){var t=new s["a"];t.background.cornerRadius(10,10,10,10),t.padding(0,0,0,0),this.thumb=t}return this._thumb},set:function(t){var e=this;t&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=t,t.parent=this,t.isMeasured=!1,t.inert=!0,t.draggable=!0,t.clickable=!0,t.hoverable=!0,t.focusable=!0,t.shouldClone=!1,t.zIndex=0,t.cursorOverStyle=l["a"].grab,t.cursorDownStyle=l["a"].grabbing,t.events.on("dragstart",this.makeBusy,this,!1),t.events.on("dragstop",this.makeUnbusy,this,!1),t.events.on("positionchanged",this.handleThumbPosition,this,!1),t.events.on("sizechanged",this.handleThumbPosition,this,!1),t.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(Object(o["a"])().body.events.on("keyup",(function(t){p["a"].isKey(t.event,["space","enter"])&&e.thumb.isFocused&&(t.event.preventDefault(),e.handleDoubleClick())}))),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),e.prototype.handleDoubleClick=function(){this.makeBusy();var t=0,e=1;0!=this.start||1!=this.end?(this._prevStart=this.start,this._prevEnd=this.end):(t=this._prevStart,e=this._prevEnd);var i=this.animate([{property:"__start",to:t},{property:"__end",to:e}],this.animationDuration,this.animationEasing);i&&!i.isFinished()?(i.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=i):this.makeUnbusy()},e.prototype.handleThumbPosition=function(){var t=this.thumb;if("horizontal"==this.orientation){var e=this.innerWidth,i=t.innerWidth,n=t.pixelX;this._start=n/e,this._end=(n+i)/e,this.updateThumb()}else{var r=this.innerHeight,a=t.innerHeight,s=t.pixelY;s+a>r&&(s=r-a,t.y=s),this._start=1-(s+a)/r,this._end=1-s/r,this.updateThumb()}},e.prototype.createBackground=function(){return new h["a"]},Object.defineProperty(e.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(t){var e=this;this._hideGrips=t,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),t?(this._overDisposer=this.events.on("over",(function(){e.startGrip.show(),e.endGrip.show()}),void 0,!1),this._outDisposer=this.events.on("out",(function(){e.startGrip.hide(),e.endGrip.hide()}),void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(t){this.setPropertyValue("animationDuration",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(t){this.setPropertyValue("animationEasing",t)},enumerable:!0,configurable:!0}),e.prototype.asFunction=function(e){return"animationEasing"==e||t.prototype.asIs.call(this,e)},e}(r["a"]);u["b"].registeredClasses["Scrollbar"]=b},eac3:function(t,e,i){"use strict";i.d(e,"a",(function(){return d}));var n=i("516a"),r=i("82ff"),a=i("5d2f"),s=i("baa2"),o=i("77b1"),l=i("916c"),h=i("03d5"),u=i("119d"),p=i("cd03"),c=i("c1b6"),d=function(t){function e(){var e=t.call(this)||this;e.className="Slice3D",e.layout="none";var i=e.createChild(a["a"]);e.edge=i,i.shouldClone=!1,i.isMeasured=!1,i.toBack(),e.angle=30,e.depth=20;var n=e.createChild(a["a"]);e.sideA=n,n.shouldClone=!1,n.isMeasured=!1;var r=e.createChild(a["a"]);return e.sideB=r,r.shouldClone=!1,r.isMeasured=!1,e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.setFill=function(e){var i;if(t.prototype.setFill.call(this,e),e instanceof h["a"])i=e.hex;else if(e instanceof p["a"]||e instanceof u["a"])i=e.stops.getIndex(0).color.hex;else{var n=new c["a"];n.lightness=-.25,this.edge.filters.push(n),this.sideA.filters.push(n.clone()),this.sideB.filters.push(n.clone())}if(i){var r=Object(h["b"])(i).lighten(-.25);this.edge.fill=r,this.sideA.fill=r,this.sideB.fill=r,this.edge.stroke=r,this.sideA.stroke=r,this.sideB.stroke=r}},e.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,t.prototype.draw.call(this),0!==this.arc&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,i=this.arc,n=this.pixelInnerRadius||0,r=this.radiusY||0,a=this.radius,l=e+i,h=r/a*n,u={x:s["g"](e)*n,y:s["F"](e)*h},p={x:s["g"](e)*a,y:s["F"](e)*r},c={x:s["g"](l)*a,y:s["F"](l)*r},d={x:s["g"](l)*n,y:s["F"](l)*h},f=this.depth,g={x:u.x,y:u.y-f},y={x:p.x,y:p.y-f},m={x:c.x,y:c.y-f},b={x:d.x,y:d.y-f},v="",x=Math.ceil(i/5),_=i/x,P=e,O=y,w=0;w0&&P<180){v+=o["g"](O);var C={x:s["g"](P)*a,y:s["F"](P)*r-f};v+=o["f"]({x:O.x,y:O.y+f}),v+=o["c"]({x:C.x,y:C.y+f},a,r,!0),v+=o["f"](C),v+=o["c"](O,a,r),v+="z",O=C}else{v+=o["g"](O);C={x:s["g"](P)*a,y:s["F"](P)*r-f};v+=o["c"](C,a,r,!0),v+=o["f"]({x:C.x,y:C.y+f}),v+=o["c"]({x:O.x,y:O.y+f},a,r),v+=o["f"](O),v+="z",O=C}O=g,P=e;for(w=0;w0&&P<180){v+=o["g"](O);C={x:s["g"](P)*n,y:s["F"](P)*h-f};v+=o["f"]({x:O.x,y:O.y+f}),v+=o["c"]({x:C.x,y:C.y+f},n,h,!0),v+=o["f"](C),v+=o["c"](O,n,h),v+="z",O=C}else{v+=o["g"](O);C={x:s["g"](P)*n,y:s["F"](P)*h-f};v+=o["c"](C,n,h,!0),v+=o["f"]({x:C.x,y:C.y+f}),v+=o["c"]({x:O.x,y:O.y+f},n,h),v+=o["f"](O),v+="z",O=C}this.edge.path=v,this.sideA.path=o["g"](u)+o["f"](p)+o["f"](y)+o["f"](g)+o["d"](),this.sideB.path=o["g"](c)+o["f"](d)+o["f"](b)+o["f"](m)+o["d"](),this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-f}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(e.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(t){this.setPropertyValue("depth",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){var t=this.getPropertyValue("angle");return l["h"](t)||(t=0),t},set:function(t){this.setPropertyValue("angle",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radiusY",{get:function(){var t=this.getPropertyValue("radiusY");return l["h"](t)||(t=this.radius-this.radius*this.angle/90),t},set:function(t){this.setPropertyValue("radiusY",t,!0)},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},e}(r["a"])},ec03:function(t,e,i){"use strict";i.r(e),i.d(e,"linear",(function(){return a})),i.d(e,"quadIn",(function(){return s})),i.d(e,"quadOut",(function(){return o})),i.d(e,"quadInOut",(function(){return l})),i.d(e,"polyIn",(function(){return h})),i.d(e,"polyOut",(function(){return u})),i.d(e,"polyInOut",(function(){return p})),i.d(e,"polyIn3",(function(){return c})),i.d(e,"polyOut3",(function(){return d})),i.d(e,"polyInOut3",(function(){return f})),i.d(e,"expIn",(function(){return g})),i.d(e,"expOut",(function(){return y})),i.d(e,"expInOut",(function(){return m})),i.d(e,"sinIn",(function(){return b})),i.d(e,"sinOut",(function(){return v})),i.d(e,"sinInOut",(function(){return x})),i.d(e,"cubicIn",(function(){return _})),i.d(e,"cubicOut",(function(){return P})),i.d(e,"cubicInOut",(function(){return O})),i.d(e,"circleIn",(function(){return w})),i.d(e,"circleOut",(function(){return C})),i.d(e,"circleInOut",(function(){return S})),i.d(e,"bounceIn",(function(){return L})),i.d(e,"bounceOut",(function(){return R})),i.d(e,"bounceInOut",(function(){return B})),i.d(e,"elasticIn",(function(){return X})),i.d(e,"elasticOut",(function(){return z})),i.d(e,"elasticInOut",(function(){return U}));var n=i("baa2"),r=i("84cf");function a(t){return+t}function s(t){return t*t}function o(t){return t*(2-t)}function l(t){return t*=2,(t<=1?t*t:--t*(2-t)+1)/2}function h(t,e){return Math.pow(t,e)}function u(t,e){return 1-Math.pow(1-t,e)}function p(t,e){return t*=2,(t<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}function c(t){return h(t,3)}function d(t){return u(t,3)}function f(t){return p(t,3)}function g(t){return Math.pow(2,10*t-10)}function y(t){return 1-Math.pow(2,-10*t)}function m(t){return t*=2,(t<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function b(t){return 1-Math.cos(t*n["b"])}function v(t){return Math.sin(t*n["b"])}function x(t){return(1-Math.cos(n["c"]*t))/2}function _(t){return t*t*t}function P(t){return--t*t*t+1}function O(t){return t*=2,(t<=1?t*t*t:(t-=2)*t*t+2)/2}function w(t){return 1-Math.sqrt(1-t*t)}function C(t){return Math.sqrt(1- --t*t)}function S(t){return t*=2,(t<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}r["b"].registeredClasses["ease.linear"]=a,r["b"].registeredClasses["ease.quadIn"]=s,r["b"].registeredClasses["ease.quadOut"]=o,r["b"].registeredClasses["ease.quadInOut"]=l,r["b"].registeredClasses["ease.polyIn"]=h,r["b"].registeredClasses["ease.polyOut"]=u,r["b"].registeredClasses["ease.polyInOut"]=p,r["b"].registeredClasses["ease.polyIn3"]=c,r["b"].registeredClasses["ease.polyOut3"]=d,r["b"].registeredClasses["ease.polyInOut3"]=f,r["b"].registeredClasses["ease.expIn"]=g,r["b"].registeredClasses["ease.expOut"]=y,r["b"].registeredClasses["ease.expInOut"]=m,r["b"].registeredClasses["ease.sinIn"]=b,r["b"].registeredClasses["ease.sinOut"]=v,r["b"].registeredClasses["ease.sinInOut"]=x,r["b"].registeredClasses["ease.cubicIn"]=_,r["b"].registeredClasses["ease.cubicOut"]=P,r["b"].registeredClasses["ease.cubicInOut"]=O,r["b"].registeredClasses["ease.circleIn"]=w,r["b"].registeredClasses["ease.circleOut"]=C,r["b"].registeredClasses["ease.circleInOut"]=S;var k=4/11,I=6/11,D=8/11,T=3/4,j=9/11,A=10/11,F=15/16,V=21/22,M=63/64,E=1/k/k;function L(t){return 1-R(1-t)}function R(t){return t=+t,t=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,i,n){return i*(1-Math.pow(2,-10*t/n))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(i);)i=i.replace(r,"$1"+this.separator+"$2");return this.prefix+i+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(0),r=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=0,r="webkit moz ms o".split(" "),a=void 0,s=void 0;if("undefined"==typeof window)e.requestAnimationFrame=a=function(){},e.cancelAnimationFrame=s=function(){};else{e.requestAnimationFrame=a=window.requestAnimationFrame,e.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var o=void 0,l=0;l1&&(c-=1),s.push(c)}this.shuffle&&s.sort((function(t,e){return Math.random()-.5}));for(p=0;p1?t.l=t.l-Math.floor(t.l):t.l<0&&(t.l=-(t.l-Math.floor(t.l))),t.l=h["l"](t.l,this.minLightness,this.maxLightness)):(t.l>1?t.l=1:t.l<0&&(t.l=0),t.l=h["k"](t.l,this.minLightness,this.maxLightness))},e.prototype.processConfig=function(e){if(e){if(l["d"](e.list)&&l["e"](e.list))for(var i=0,n=e.list.length;i=t._end;--i)if(!e(t._array[i]))break}},t.prototype.backwards=function(){return new t(this._array,this._end,this._start)},t.prototype.range=function(e,i){if(e<=i){if(this._start===this._end)return this;if(this._start=0&&t=0&&t0);if(a>=s)return s;this.swap(a,s)}},t.prototype.sort=function(t){this._sortQuicksort(0,this._values.length-1,t)},t.prototype.swap=function(t,e){var i=this._values.length;if(u(t,i),u(e,i),t!==e){var n=this._values[t],r=this._values[e];this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:n,newValue:r}),this._values[e]=n,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:n})}},t.prototype.removeIndex=function(t){u(t,this._values.length);var e=this._values[t];return s["p"](this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},t.prototype.moveValue=function(t,e){var i=this.indexOf(t);if(-1!==i){var n=this._values[i];s["p"](this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:n})}null==e?(e=this._values.length,this._values.push(t)):s["j"](this._values,e,t),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),-1===i&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t})},t.prototype.push=function(t){var e=this._values.push(t)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:t}),t},t.prototype.unshift=function(t){this.insertIndex(0,t)},t.prototype.pushAll=function(t){var e=this;s["d"](t,(function(t){e.push(t)}))},t.prototype.copyFrom=function(t){this.pushAll(t._values)},t.prototype.pop=function(){var t=this._values.length-1;return t<0?void 0:this.removeIndex(this._values.length-1)},t.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},t.prototype.setAll=function(t){var e=this,i=s["c"](this._values);this._values.length=0,s["d"](t,(function(t){e._values.push(t)})),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:i,newArray:this._values}),this.events.isEnabled("removed")&&s["d"](i,(function(t){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:t})})),this.events.isEnabled("inserted")&&s["d"](this._values,(function(t){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:t})}))},t.prototype.clear=function(){this.setAll([])},t.prototype.iterator=function(){return o["h"](this._values)},t.prototype[Symbol.iterator]=function(){var t,e;return Object(n["d"])(this,(function(i){switch(i.label){case 0:t=this._values.length,e=0,i.label=1;case 1:return e0&&o>0){var l=s/r;s=r,a.x+=this.directionX*(e*i*l*o),a.y+=this.directionY*(e*i*l*o)}a.x+=this.directionX*(e*s),a.y+=this.directionY*(e*s),Object(n["a"])().handleTransformMove(t,a,{x:0,y:0},this.keyboardEvent,!0,!1)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.dispose=function(){this._disposed||(Object(n["a"])().processDragStop(this.interaction),a["o"](r["a"].animations,this))},t}()},f6f4:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var n=i("516a"),r=i("1ebf"),a=i("84cf"),s=function(t){function e(){var e=t.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return Object(n["c"])(e,t),e.prototype.modify=function(t){return t},e}(r["a"]);a["b"].registeredClasses["ColorModifier"]=s},f936:function(t,e,i){"use strict";function n(t,e){return t===e?0:t