@progress/kendo-charts
Version:
Kendo UI platform-independent Charts library
1 lines • 600 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoCharts=e(require("@progress/kendo-drawing")):t.KendoCharts=e(t.KendoDrawing)}(self,t=>(()=>{"use strict";var e={721(e){e.exports=t}},i={};function o(t){var r=i[t];if(void 0!==r)return r.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,o),n.exports}o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};o.r(r),o.d(r,{Aggregates:()=>tn,ArcGauge:()=>Af,ArcScale:()=>mf,AreaChart:()=>za,AreaSegment:()=>La,ArrowLinearPointer:()=>Nd,Axis:()=>Co,AxisGroupRangeTracker:()=>Da,AxisLabel:()=>ro,Bar:()=>Ga,BarChart:()=>$a,BarLabel:()=>Ha,BarLinearPointer:()=>qd,Barcode:()=>fg,Box:()=>ki,BoxElement:()=>Vi,BoxPlot:()=>rh,BoxPlotChart:()=>hh,BubbleChart:()=>yh,Bullet:()=>bh,BulletChart:()=>wh,Candlestick:()=>th,CandlestickChart:()=>ih,CategoricalChart:()=>ha,CategoricalErrorBar:()=>Ds,CategoricalPlotArea:()=>Bl,CategoryAxis:()=>sr,Chart:()=>ju,ChartAxis:()=>Yr,ChartContainer:()=>Oh,ChartElement:()=>Bi,ChartPane:()=>Qr,ChartPlotArea:()=>Kr,ChartService:()=>xo,ChartWizardCommon:()=>kx,CircularGauge:()=>Cf,ClipAnimation:()=>Ca,ClusterLayout:()=>qa,Crosshair:()=>Th,CrosshairTooltip:()=>Ch,CurveProcessor:()=>Wr,DateCategoryAxis:()=>gr,DateValueAxis:()=>Ar,DefaultAggregates:()=>Yh,DomEventsBuilder:()=>wo,DonutChart:()=>Wp,DonutPlotArea:()=>Yp,DonutSegment:()=>Up,ErrorBarBase:()=>zs,ErrorRangeCalculator:()=>hn,Extent:()=>hv,FloatElement:()=>Xi,FontLoader:()=>ee,FormatService:()=>yo,Gauge:()=>Sd,Gradients:()=>Hi,HashMap:()=>Pt,Highlight:()=>Rl,InstanceObserver:()=>Bt,IntlService:()=>co,Legend:()=>np,LegendItem:()=>ip,LegendLayout:()=>Wl,LineChart:()=>Ma,LinePoint:()=>da,LineSegment:()=>ga,LinearGauge:()=>Kd,LinearPointer:()=>Vd,LinearScale:()=>Bd,Location:()=>Sy,LogarithmicAxis:()=>Mr,Map:()=>vm,Matrix:()=>Te,MousewheelZoom:()=>Ul,Navigator:()=>id,NavigatorHint:()=>Qu,Note:()=>so,NumericAxis:()=>wr,OHLCChart:()=>fl,OHLCPoint:()=>ul,Observable:()=>qe,Pane:()=>Ih,Pannable:()=>Dl,PieAnimation:()=>bp,PieChart:()=>Dp,PieChartMixin:()=>Vp,PiePlotArea:()=>Hp,PieSegment:()=>Ep,PlotAreaBase:()=>Fh,PlotAreaEventsMixin:()=>Nh,PlotAreaFactory:()=>ap,Point:()=>bi,PointEventsMixin:()=>pa,PolarAxis:()=>Rr,QRCode:()=>fy,RadarCategoryAxis:()=>Ir,RadarLogarithmicAxis:()=>Nr,RadarNumericAxis:()=>Fr,RadialGauge:()=>yf,RadialPointer:()=>df,RadialScale:()=>sf,RangeAreaChart:()=>pl,RangeAreaPoint:()=>il,RangeBar:()=>Zh,RangeBarChart:()=>Kh,RangePointer:()=>wf,Ring:()=>Ci,RootElement:()=>Gi,Sankey:()=>Xm,ScatterChart:()=>uh,ScatterErrorBar:()=>ph,ScatterLineChart:()=>wp,Sector:()=>Ti,Selection:()=>cp,SeriesAggregator:()=>Wh,SeriesBinder:()=>rn,ShapeBuilder:()=>Oi,ShapeElement:()=>Di,SharedTooltip:()=>gp,Sparkline:()=>Xu,SplineAreaSegment:()=>Ra,SplineSegment:()=>wa,StackWrap:()=>Qa,StockChart:()=>rd,TemplateService:()=>mt,Text:()=>Zi,TextBox:()=>Ji,Title:()=>io,Tooltip:()=>dp,UserEvents:()=>mi,WaterfallChart:()=>ml,WaterfallSegment:()=>yl,XYPlotArea:()=>Op,ZoomSelection:()=>Hl,addClass:()=>Y,alignPathToPixel:()=>K,anyHasZIndex:()=>Fs,append:()=>jt,appendIfNotNull:()=>Hs,applyEventMap:()=>Le,areNumbers:()=>Ns,autoMajorUnit:()=>W,autoTextColor:()=>ye,barcodeValidator:()=>yg,bindEvents:()=>Dt,bindSegments:()=>Gs,categoriesCount:()=>Ws,chartBaseTheme:()=>Zx,chartTheme:()=>bu,clockwise:()=>$,constants:()=>n,convertableToNumber:()=>et,countNumbers:()=>$r,createHashSet:()=>ke,createOutOfRangePoints:()=>na,createPatternFill:()=>Ei,createSankeyData:()=>qm,cycleDown:()=>ot,cycleIndex:()=>rt,cycleUp:()=>it,deepExtend:()=>lt,defaultErrorHandler:()=>Ae,defined:()=>Ft,deg:()=>Ht,elementOffset:()=>Nt,elementScale:()=>ge,elementSize:()=>Ut,elementStyles:()=>ft,equalsIgnoreCase:()=>Xs,evalOptions:()=>qs,eventCoordinates:()=>Gt,eventElement:()=>Wt,eventMap:()=>Me,filterSeriesByType:()=>Zs,find:()=>ce,findAxisByName:()=>qr,gaugeTheme:()=>mu,getAriaTemplate:()=>bt,getField:()=>en,getSpacing:()=>gt,getSupportedFeatures:()=>De,getTemplate:()=>xt,getter:()=>kt,grep:()=>At,hasClasses:()=>St,hasGradientOverlay:()=>$s,hasOwnProperty:()=>Ce,hasValue:()=>Js,hashKey:()=>Xt,inArray:()=>Tt,interpolateValue:()=>Mt,isArray:()=>X,isDateAxis:()=>ta,isFunction:()=>nt,isNumber:()=>J,isObject:()=>pt,isPlainObject:()=>It,isString:()=>tt,keys:()=>Se,last:()=>Yt,limitValue:()=>qt,logToConsole:()=>Q.logToConsole,map:()=>Et,mousewheelDelta:()=>Vt,noop:()=>He,now:()=>Ne,objectKey:()=>Zt,off:()=>je,on:()=>ze,parseDateCategory:()=>Ks,qrcodeValidator:()=>gy,rad:()=>Qt,rectToBox:()=>Qi,removeClass:()=>Z,renderIcon:()=>le,round:()=>Kt,sankeyTheme:()=>xu,segmentVisible:()=>Us,setDefaultOptions:()=>ie,singleItemOrArray:()=>ea,sparseArrayLimits:()=>pe,styleValue:()=>ct,unbindEvents:()=>$t,unclipBox:()=>sa,valueOrDefault:()=>Jt});var n={};o.r(n),o.d(n,{DEFAULT_PANE:()=>Ju,NAVIGATOR_AXIS:()=>$u,NAVIGATOR_PANE:()=>Ku});var s="arc",a="ArrowUp",h="ArrowDown",l="ArrowLeft",p="ArrowRight",c="aria-activedescendant",u="#000",d="bottom",f="center",g="circle",y=3,v="cross",m="date",x="12px sans-serif",b=10,_="end",w=/\{\d+:?/,k="height",A="inside",S="inherit",C="left",P=Number.MAX_VALUE,T=-Number.MAX_VALUE,M="none",O="object",L="outside",B="right",I="roundedRect",E="start",R="string",V="top",z="value",j="#fff",D="width",F="x",H="y",N="pointer",U="horizontal";function G(t,e){return void 0===e&&(e=b),Number.isFinite(t)&&0!==t?parseFloat(t.toPrecision(e)):t}function W(t,e){var i=G(e-t,b-1);if(0===i){if(0===e)return.1;i=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(i)/Math.log(10))),r=G(i/o,b);return G(o*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),b)}function X(t){return Array.isArray(t)}function Y(t,e){for(var i=X(e)?e:[e],o=0;o<i.length;o++){var r=i[o];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var q=/\s+/g;function Z(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(q," "))}var Q=o(721);function K(t){var e=.5;t.options.stroke&&Q.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var i=0;i<t.segments.length;i++)t.segments[i].anchor().round(0).translate(e,e);return t}function $(t,e){return-t.x*e.y+t.y*e.x<0}function J(t){return"number"==typeof t&&!isNaN(t)}function tt(t){return typeof t===R}function et(t){return J(t)||tt(t)&&isFinite(t)}function it(t,e){return(t+1)%e}function ot(t,e){var i=t-1;return i<0?e-1:i}function rt(t,e){return 1===e||t%e===0?0:t<0?e+t%e:t>=e?t%e:t}function nt(t){return"function"==typeof t}var st="object",at="undefined";function ht(t,e){for(var i in e)if("__proto__"!==i&&"constructor"!==i){var o,r=e[i],n=typeof r;if((o=n===st&&null!==r?r.constructor:null)&&o!==Array)if(r instanceof Date)t[i]=new Date(r.getTime());else if(nt(r.clone))t[i]=r.clone();else{var s=t[i];t[i]=typeof s===st&&s||{},ht(t[i],r)}else n!==at&&(t[i]=r)}return t}function lt(t){for(var e=arguments,i=arguments.length,o=1;o<i;o++)ht(t,e[o]);return t}function pt(t){return"object"==typeof t}function ct(t){return J(t)?t+"px":t}var ut=/width|height|top|left|bottom|right/i;function dt(t){return ut.test(t)}function ft(t,e){var i=tt(e)?[e]:e;if(X(i)){for(var o={},r=window.getComputedStyle(t),n=0;n<i.length;n++){var s=i[n];o[s]=dt(s)?parseFloat(r[s]):r[s]}return o}if(pt(e))for(var a in e)t.style[a]=ct(e[a])}function gt(t,e){void 0===e&&(e=0);var i={top:0,right:0,bottom:0,left:0};return"number"==typeof t?i[V]=i[B]=i[d]=i[C]=t:(i[V]=t[V]||e,i[B]=t[B]||e,i[d]=t[d]||e,i[C]=t[C]||e),i}var yt={compile:function(t){return t}},vt=function(){};vt.register=function(t){yt=t},vt.compile=function(t,e){return yt.compile(t,e)};const mt=vt;function xt(t){var e;return void 0===t&&(t={}),t.template?t.template=e=mt.compile(t.template):nt(t.content)&&(e=t.content),e}function bt(t){var e;return void 0===t&&(t={}),t.ariaTemplate?t.ariaTemplate=e=mt.compile(t.ariaTemplate):nt(t.ariaContent)&&(e=t.ariaContent),e}var _t=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,wt={};function kt(t){if(wt[t])return wt[t];var e=[];return t.replace(_t,function(t,i,o,r){e.push(void 0!==i?i:o||r)}),wt[t]=function(t){for(var i=t,o=0;o<e.length&&i;o++)i=i[e[o]];return i},wt[t]}wt[void 0]=function(t){return t};const At=function(t,e){return t.filter(e)};function St(t,e){if(t.className)for(var i=e.split(" "),o=0;o<i.length;o++)if(t.className.indexOf&&-1!==t.className.indexOf(i[o]))return!0}var Ct=function(){this._map=new Map};Ct.prototype.get=function(t){return this._map.get(t)},Ct.prototype.set=function(t,e){this._map.set(t,e)};const Pt=Ct;function Tt(t,e){if(e)return e.includes(t)}function Mt(t,e,i){return Q.drawing.util.round(t+(e-t)*i,y)}var Ot="trigger",Lt=function(t,e){this.observer=t,this.handlerMap=lt({},this.handlerMap,e)};Lt.prototype.trigger=function(t,e){var i,o=this.observer,r=this.handlerMap;return r[t]?i=this.callObserver(r[t],e):o[Ot]&&(i=this.callObserver(Ot,t,e)),i},Lt.prototype.callObserver=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];return this.observer[t].apply(this.observer,e)},Lt.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};const Bt=Lt;function It(t){return"[object Object]"===Object.prototype.toString.call(t)}function Et(t,e){for(var i=t.length,o=[],r=0;r<i;r++){var n=e(t[r]);Q.drawing.util.defined(n)&&o.push(n)}return o}var Rt=Q.support.browser||{};function Vt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,Rt.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var zt=Q.drawing.util,jt=zt.append,Dt=zt.bindEvents,Ft=zt.defined,Ht=zt.deg,Nt=zt.elementOffset,Ut=zt.elementSize,Gt=zt.eventCoordinates,Wt=zt.eventElement,Xt=zt.hashKey,Yt=zt.last,qt=zt.limitValue,Zt=zt.objectKey,Qt=zt.rad,Kt=zt.round,$t=zt.unbindEvents,Jt=zt.valueOrDefault,te=function(){};te.fetchFonts=function(t,e,i){void 0===i&&(i={depth:0}),!t||i.depth>5||!document.fonts||Object.keys(t).forEach(function(o){var r=t[o];"dataSource"!==o&&"$"!==o[0]&&r&&("font"===o?e.push(r):"object"==typeof r&&(i.depth++,te.fetchFonts(r,e,i),i.depth--))})},te.loadFonts=function(t,e){var i=[];if(t.length>0&&document.fonts){try{i=t.map(function(t){return document.fonts.load(t)})}catch(t){(0,Q.logToConsole)(t)}Promise.all(i).then(e,e)}else e()},te.preloadFonts=function(t,e){var i=[];te.fetchFonts(t,i),te.loadFonts(i,e)};const ee=te;function ie(t,e){var i=t.prototype;i.options?i.options=lt({},i.options,e):i.options=e}var oe="k-i-",re="k-svg-i-",ne=function(t,e){this.element=t,this.options=lt({},this.options,e),this.wrapper()};ne.prototype.wrapper=function(){this.addClasses()},ne.prototype.addClasses=function(){},ne.prototype.html=function(){return this.element.outerHTML},ie(ne,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});var se=function(t){function e(e,i){t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.element.className.split(" ").find(function(t){return t.startsWith(oe)}),i=this.options.icon?""+(this.options.icon.startsWith(oe)?"":oe)+this.options.icon:"";this._className=i,Y(this.element,"k-icon"),Y(this.element,"k-font-icon"),Z(this.element,e),Y(this.element,i),Y(this.element,this.options.iconClass||""),t.prototype.wrapper.call(this)},e}(ne);ie(se,{name:"HTMLFontIcon",icon:null});var ae=function(t){function e(e,i){e.innerHTML="",t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.options.icon,i=this.options.iconClass,o=this.element.className.split(" ").find(function(t){return t.startsWith(re)});if(!e&&i){var r=i.match(/k-i-(\w+(?:-\w+)*)/);r&&(e=r[1],i=i.replace(r[0],""))}tt(e)&&(e=e.replace("k-i-","").replace(/-./g,function(t){return t[1].toUpperCase()}),e=this.options.svgIcons[e]||this.options.svgIcons[e+"Icon"]);var n=e&&e.name?""+re+e.name:"";if(this._className=n,Y(this.element,"k-svg-icon"),Z(this.element,o),Y(this.element,n),Y(this.element,i||""),this.element.setAttribute("aria-hidden","true"),e&&It(e)){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("viewBox",e.viewBox||""),s.setAttribute("focusable","false"),s.innerHTML=e.content||"",this.element.appendChild(s)}t.prototype.wrapper.call(this)},e}(ne);ie(ae,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var he={svg:ae,font:se};function le(t,e){var i=t,o=e;return i&&(!pt(i)||i instanceof HTMLElement)&&!tt(i)||(o=i,i=document.createElement("span")),tt(o)&&(o={icon:o}),o.type||(o.type="svg"),he[o.type]?new he[o.type](i,o).html():null}function pe(t){for(var e=P,i=T,o=0,r=t.length;o<r;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),i=Math.max(i,n))}return{min:e===P?void 0:e,max:i===T?void 0:i}}function ce(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(e(o,i,t))return o}}var ue=Q.geometry.Matrix,de=/matrix\((.*)\)/;function fe(t){var e=getComputedStyle(t).transform;return"none"===e?ue.unit():function(t){var e=t.match(de);if(null===e||2!==e.length)return ue.unit();var i=e[1].split(",").map(function(t){return parseFloat(t)});return new(Function.prototype.bind.apply(ue,[null].concat(i)))}(e)}function ge(t){if(!t)return ue.unit();for(var e=fe(t),i=t.parentElement;i;){var o=fe(i);e=e.multiplyCopy(o),i=i.parentElement}return e.b=e.c=e.e=e.f=0,e}const ye=function(t){return new Q.Color(t).isDark()?j:u};var ve={},me=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},xe={size:{configurable:!0}};me.prototype.values=function(){return this._values.filter(function(t){return t!==ve})},me.prototype.has=function(t){return void 0!==this._index[t]},me.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},me.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=ve,delete this._index[t])},me.prototype.clear=function(){this._index={},this._values=[]},xe.size.get=function(){return this._values.length},Object.defineProperties(me.prototype,xe);var be=function(t){this._set=new Set(t)},_e={size:{configurable:!0}};be.prototype.values=function(){return Array.from(this._set)},be.prototype.has=function(t){return this._set.has(t)},be.prototype.add=function(t){this._set.add(t)},be.prototype.delete=function(t){this._set.delete(t)},be.prototype.clear=function(){this._set.clear()},_e.size.get=function(){return this._set.size},Object.defineProperties(be.prototype,_e);var we=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function ke(t){return we()?new be(t):new me(t)}function Ae(t){throw t}const Se={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110};function Ce(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Pe=function(){this.height=0,this.width=0,this.data=[]};Pe.prototype.clone=function(){var t=new Pe;return t.height=this.height,t.width=this.width,t.data=this.data.map(function(t){return t.slice()}),t},Pe.prototype.get=function(t,e){var i=this.data[t];return i?i[e]:null},Pe.prototype.set=function(t,e,i){var o=this.data[t];null==o&&(o=this.data[t]=[]),o[e]=i,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)},Pe.prototype.each=function(t,e){for(var i=0;i<this.height;++i)for(var o=0;o<this.width;++o){var r=this.get(i,o);if((e||null!=r)&&void 0!==(r=t(r,i,o)))return r}},Pe.prototype.map=function(t,e){var i=new Pe;return this.each(function(e,o,r){i.set(o,r,t(e,o,r))},e),i},Pe.prototype.transpose=function(){var t=new Pe;return this.each(function(e,i,o){t.set(o,i,e)}),t},Pe.prototype.unit=function(t){this.width=this.height=t;for(var e=this.data=new Array(t),i=t;--i>=0;)for(var o=e[i]=new Array(t),r=t;--r>=0;)o[r]=i===r?1:0;return this},Pe.prototype.multiply=function(t){for(var e=this,i=new Pe,o=0;o<e.height;++o)for(var r=0;r<t.width;++r){for(var n=0,s=0;s<e.width;++s){var a=e.get(o,s),h=t.get(s,r);"number"==typeof a&&"number"==typeof h&&(n+=a*h)}i.set(o,r,n)}return i},Pe.prototype.inverse=function(){for(var t=this.width,e=this.augment((new Pe).unit(t)),i=e.data,o=function(e){var o=function(t,e,i){for(var o=i(t),r=t,n=t+1;n<e;n++){var s=i(t);s>o&&(o=s,r=t)}return r}(e,t,function(t){return i[t][e]});if(!i[o][e])return{v:null};if(e!==o){var r=i[e];i[e]=i[o],i[o]=r}for(var n=e+1;n<t;++n){for(var s=e+1;s<2*t;++s)i[n][s]-=i[e][s]*i[n][e]/i[e][e];i[n][e]=0}},r=0;r<t;++r){var n=o(r);if(n)return n.v}for(var s=0;s<t;++s)for(var a=i[s][s],h=0;h<2*t;++h)i[s][h]/=a;for(var l=t;--l>=0;)for(var p=l;--p>=0;)if(i[p][l])for(var c=2*t;--c>=t;)i[p][c]-=i[l][c]*i[p][l];return e.slice(0,t,t,t)},Pe.prototype.augment=function(t){var e=this.clone(),i=e.width;return t.each(function(t,o,r){e.set(o,r+i,t)}),e},Pe.prototype.slice=function(t,e,i,o){for(var r=new Pe,n=0;n<i;++n)for(var s=0;s<o;++s)r.set(n,s,this.get(t+n,e+s));return r};const Te=Pe;var Me={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function Oe(t){return Me[t]||t}var Le=function(t){return t.replace(/([^ ]+)/g,Oe)},Be=1;function Ie(){return"kchart"+Be++}function Ee(){return Ie()}var Re=new WeakMap,Ve=Symbol("id");function ze(t,e,i,o,r){!function(t,e,i,o,r){(X(e)?e:(e||"").split(" ")).forEach(function(e){!function(t,e,i,o,r){var n,s=o;i&&nt(i)&&!o?s=i:i&&function(t){return"string"==typeof t}(i)&&nt(s)&&(n=i);var a=function(e){var i=e.target?e.target.closest(n):null;if(!n||n&&e.target&&i){var o=n?i:e.currentTarget;Object.defineProperty(e,"currentTarget",{value:o}),Object.defineProperty(e,"delegateTarget",{value:t}),s(e)}};s[Ve]||(s[Ve]=Ee());var h=Re.get(t);h||(h=new Map,Re.set(t,h)),h.set(e+s[Ve],a),t.addEventListener(e,a,Boolean(r))}(t,e,i,o,r)})}(t,e,i,o,r)}function je(t,e,i,o,r){!function(t,e,i,o){(X(e)?e:(e||"").split(" ")).forEach(function(e){!function(t,e,i,o){var r=Re.get(t);if(r&&i&&i[Ve]){var n=e+i[Ve],s=r.get(n);r.delete(n),s&&t.removeEventListener(e,s,Boolean(o))}}(t,e,i,o)})}(t,e,i,o)}function De(){var t=function(t){var e=!1,i={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[._]([\d._]+)/,ipad:/(iPad).*OS\s+(\d+)[._]([\d_]+)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(var r in i)if(t.match(i[r])){if("windows"===r&&"plugins"in navigator)return!1;(e={}).device=r,e.name=Fe(r,o),e[e.name]=!0;break}return e}(navigator.userAgent),e={};return e.mobileOS=t,e}function Fe(t,e,i){for(var o in e)if(e[o].test(t))return o;return void 0!==i?i:t}function He(){}function Ne(){return(new Date).getTime()}var Ue="string",Ge="function",We=function(){this._defaultPrevented=!0},Xe=function(){return!0===this._defaultPrevented},Ye=function(){this._events={}};Ye.prototype.destroy=function(){this.unbind()},Ye.prototype.bind=function(t,e,i){var o,r,n,s,a=this,h=typeof t===Ue?[t]:t||[],l=typeof e===Ge;if(void 0===e){for(o in t)a.bind(o,t[o]);return a}var p=function(){var t=h[o];(s=l?e:e[t])&&(i&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(o=0,r=h.length;o<r;o++)p();return a},Ye.prototype.one=function(t,e){return this.bind(t,e,!0)},Ye.prototype.first=function(t,e){var i,o,r,n=this,s=typeof t===Ue?[t]:t,a=typeof e===Ge;for(i=0,o=s.length;i<o;i++){var h=s[i];(r=a?e:e[h])&&(n._events[h]=n._events[h]||[]).unshift(r)}return n},Ye.prototype.trigger=function(t,e){var i,o,r=this,n=r._events[t];if(n){var s=e||{};for(s.sender=r,s._defaultPrevented=!1,s.preventDefault=We,s.isDefaultPrevented=Xe,i=0,o=(n=n.slice()).length;i<o;i++)n[i].call(r,s);return!0===s._defaultPrevented}return!1},Ye.prototype.unbind=function(t,e){var i,o=this,r=o._events[t];if(void 0===t)o._events={};else if(r)if(e)for(i=r.length-1;i>=0;i--)r[i]!==e&&r[i].original!==e||r.splice(i,1);else o._events[t]=[];return o},Ye.prototype._setEvents=function(t){for(var e=(this.events||[]).length,i=0;i<e;i++){var o=this.events[i];this.options[o]&&t[o]&&(this.unbind(o,this.options[o]),this._events&&this._events[o]&&delete this._events[o])}this.bind(this.events,t)};const qe=Ye;var Ze=Object.assign,Qe=function(t){t.preventDefault()},Ke=800,$e=0,Je="press",ti="hold",ei="select",ii="start",oi="move",ri="end",ni="cancel",si="tap",ai="doubleTap",hi="release",li="gesturechange",pi="gestureend",ci="gesturetap",ui={api:0,touch:0,mouse:9,pointer:9};function di(t){var e=[],i=t.originalEvent||t,o=t.currentTarget;return t.api?e.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"}):e.push({location:i,event:t,target:t.target,currentTarget:o,id:i.pointerId,type:"pointer"}),e}var fi=function(t,e){var i=this;i.support=De(),i.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,i.axis=t,i._updateLocationData(e),i.startLocation=i.location,i.velocity=i.delta=0,i.timeStamp=Ne()};fi.prototype.move=function(t){var e=this,i=t["page"+e.axis],o=Ne(),r=o-e.timeStamp||1;!i&&this.invalidZeroEvents||(e.delta=i-e.location,e._updateLocationData(t),e.initialDelta=i-e.startLocation,e.velocity=e.delta/r,e.timeStamp=o)},fi.prototype._updateLocationData=function(t){var e=this,i=e.axis;e.location=t["page"+i],e.client=t["client"+i],e.screen=t["screen"+i]};var gi=function(t,e,i){Ze(this,{x:new fi("X",i.location),y:new fi("Y",i.location),type:i.type,threshold:t.threshold||ui[i.type],userEvents:t,target:e,currentTarget:i.currentTarget,initialTouch:i.target,id:i.id,pressEvent:i,_clicks:t._clicks,supportDoubleTap:t.supportDoubleTap,_moved:!1,_finished:!1})};function yi(t){for(var e=Me.up.split(" "),i=0,o=e.length;i<o;i++)t(e[i])}gi.prototype.press=function(){var t=this;this._holdTimeout=setTimeout(function(){return t._hold()},this.userEvents.minHold),this._trigger(Je,this.pressEvent)},gi.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout(function(){1===e.userEvents._clicks?e._trigger(si,t):e._trigger(ai,t),e.userEvents._clicks=0},300))},gi.prototype._hold=function(){this._trigger(ti,this.pressEvent)},gi.prototype.move=function(t){var e=this,i="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!i){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(vi.current&&vi.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(oi,t)}},gi.prototype.end=function(t){this.endTime=Ne(),this._finished||(this._finished=!0,this._trigger(hi,t),this._moved?this._trigger(ri,t):this.supportDoubleTap?this._tap(t):this._trigger(si,t),clearTimeout(this._holdTimeout),this.dispose())},gi.prototype.dispose=function(){var t=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);var e=t.indexOf(this);t.splice(e,1)},gi.prototype.skip=function(){this.dispose()},gi.prototype.cancel=function(){this.dispose()},gi.prototype.isMoved=function(){return this._moved},gi.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Ne(),this._moved=!0,this._trigger(ii,t)},gi.prototype._trigger=function(t,e){var i=e.event,o={touch:this,x:this.x,y:this.y,target:this.target,event:i};this.userEvents.notify(t,o)&&i.preventDefault()},gi.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold};var vi=function(t){function e(e,i){t.call(this);var o,r=this,n=De();if(this.support=n,i=i||{},this.options=i,o=r.filter=i.filter,r.threshold=i.threshold||$e,r.minHold=i.minHold||Ke,r.touches=[],r._maxTouches=i.multiTouch?2:1,r.allowSelection=i.allowSelection,r.captureUpIfMoved=i.captureUpIfMoved,r._clicks=0,r.supportDoubleTap=i.supportDoubleTap,Ze(r,{element:e,surface:i.surface||e,stopPropagation:i.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),ze(r.surface,Le("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),ze(r.surface,Le("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),ze(e,Le("down"),o,this._elementStartHandler),e.style["touch-action"]=i.touchAction||"none",i.preventDragEvent&&(this._elementDragStartHandler=Qe,ze(e,Le("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),ze(e,Le("mousedown"),o,this._elementSelectHandler),r.captureUpIfMoved){var s=r.surface;r._preventIfMovingProxy=r.preventIfMoving.bind(r),yi(function(t){s.addEventListener(t,r._preventIfMovingProxy,!0)})}r.bind([Je,ti,si,ai,ii,oi,ri,hi,ni,"gesturestart",li,pi,ci,ei],i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},e.prototype.destroy=function(){var t=this,e=this.options,i=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved){var o=t.surface;yi(function(e){o.removeEventListener(e,t._preventIfMovingProxy,!0)})}je(t.surface,Le("move"),this._surfaceMoveHandler),je(t.surface,Le("up cancel"),this._surfaceEndHandler),je(i,Le("down"),this._elementStartHandler),e.preventDragEvent&&je(i,Le("dragstart"),this._elementDragStartHandler),je(i,Le("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}},e.prototype.capture=function(){e.current=this},e.prototype.cancel=function(){this._disposeAll(),this.trigger(ni)},e.prototype.notify=function(t,e){var i,o,r,n,s,a,h,l,p=this.touches,c=t;if(this._isMultiTouch()){switch(c){case oi:c=li;break;case ri:c=pi;break;case si:c=ci}Ze(e,{touches:p},(i=p[0],o=p[1],r=i.x.location,n=i.y.location,h=r-(s=o.x.location),l=n-(a=o.y.location),{center:{x:(r+s)/2,y:(n+a)/2},distance:Math.sqrt(h*h+l*l)}))}return this.trigger(c,Ze(e,{type:c}))},e.prototype.press=function(t,e,i){this._apiCall("_start",t,e,i)},e.prototype.move=function(t,e){this._apiCall("_move",t,e)},e.prototype.end=function(t,e){this._apiCall("_end",t,e)},e.prototype._isMultiTouch=function(){return this.touches.length>1},e.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},e.prototype._disposeAll=function(){for(var t=this.touches;t.length>0;)t.pop().dispose()},e.prototype._isMoved=function(){return At(this.touches,function(t){return t.isMoved()}).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(ei,{event:t})||t.preventDefault()},e.prototype._start=function(t){if(!(t.which&&t.which>1||this._maxTouchesReached())){var i;e.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();for(var o=di(t),r=0;r<o.length&&!this._maxTouchesReached();r++){var n=o[r];if(!(i=this.filter?n.currentTarget:this.element)||0!==i.length){var s=new gi(this,i,n);this.touches.push(s),s.press(),this._isMultiTouch()&&this.notify("gesturestart",{})}}}},e.prototype._move=function(t){this._eachTouch("move",t)},e.prototype._end=function(t){this._eachTouch("end",t)},e.prototype._eachTouch=function(t,e){var i,o,r,n,s={},a=di(e),h=this.touches;for(i=0;i<h.length;i++)s[(o=h[i]).id]=o;for(i=0;i<a.length;i++)(n=s[(r=a[i]).id])&&("move"===t&&"pointer"===r.type&&!this.surface.hasPointerCapture(r.id)&&this.surface.setPointerCapture(r.id),n[t](r))},e.prototype._apiCall=function(t,e,i,o){this[t]({api:!0,pageX:e,pageY:i,clientX:e,clientY:i,target:o||this.element,stopPropagation:He,preventDefault:He})},e.defaultThreshold=function(t){$e=t},e.minHold=function(t){Ke=t},e}(qe);const mi=vi;var xi=function(t,e){this.x=t||0,this.y=e||0};xi.prototype.clone=function(){return new xi(this.x,this.y)},xi.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},xi.prototype.rotate=function(t,e){var i=Qt(e),o=Math.cos(i),r=Math.sin(i),n=t.x,s=t.y,a=this.x,h=this.y;return this.x=Kt(n+(a-n)*o+(h-s)*r,y),this.y=Kt(s+(h-s)*o-(a-n)*r,y),this},xi.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},xi.prototype.distanceTo=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},xi.onCircle=function(t,e,i){var o=Qt(e);return new xi(t.x-i*Math.cos(o),t.y-i*Math.sin(o))};const bi=xi;var _i=function(t,e,i,o){this.x1=t||0,this.y1=e||0,this.x2=i||0,this.y2=o||0};function wi(t,e,i,o,r){var n=Qt(r);return new bi(i+(t-i)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-i)*Math.sin(n)+(e-o)*Math.cos(n))}_i.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},_i.prototype.width=function(){return this.x2-this.x1},_i.prototype.height=function(){return this.y2-this.y1},_i.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},_i.prototype.move=function(t,e){var i=this.height(),o=this.width();return void 0!==t&&(this.x1=t,this.x2=this.x1+o),void 0!==e&&(this.y1=e,this.y2=this.y1+i),this},_i.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},_i.prototype.wrapLimit=function(t,e,i){return this.x1=Math.min(this.x1,Math.max(this.x1-e,t.x1)),this.y1=Math.min(this.y1,Math.max(this.y1-i,t.y1)),this.x2=Math.max(this.x2,Math.min(this.x2+e,t.x2)),this.y2=Math.max(this.y2,Math.min(this.y2+i,t.y2)),this},_i.prototype.wrapPoint=function(t){var e=X(t),i=e?t[0]:t.x,o=e?t[1]:t.y;return this.wrap(new _i(i,o,i,o)),this},_i.prototype.snapTo=function(t,e){return e!==F&&e||(this.x1=t.x1,this.x2=t.x2),e!==H&&e||(this.y1=t.y1,this.y2=t.y2),this},_i.prototype.alignTo=function(t,e){var i=this.height(),o=this.width(),r=e===V||e===d?H:F,n=r===H?i:o;if(e===f){var s=t.center(),a=this.center();this.x1+=s.x-a.x,this.y1+=s.y-a.y}else this[r+1]=e===V||e===C?t[r+1]-n:t[r+2];return this.x2=this.x1+o,this.y2=this.y1+i,this},_i.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},_i.prototype.expand=function(t,e){return this.shrink(-t,-e),this},_i.prototype.pad=function(t){var e=gt(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},_i.prototype.unpad=function(t){var e=gt(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},_i.prototype.clone=function(){return new _i(this.x1,this.y1,this.x2,this.y2)},_i.prototype.center=function(){return new bi(this.x1+this.width()/2,this.y1+this.height()/2)},_i.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},_i.prototype.points=function(){return[new bi(this.x1,this.y1),new bi(this.x2,this.y1),new bi(this.x2,this.y2),new bi(this.x1,this.y2)]},_i.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},_i.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},_i.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,n=o.y,s=wi(0,0,r,n,t),a=wi(e,0,r,n,t),h=wi(e,i,r,n,t),l=wi(0,i,r,n,t);return e=Math.max(s.x,a.x,h.x,l.x)-Math.min(s.x,a.x,h.x,l.x),i=Math.max(s.y,a.y,h.y,l.y)-Math.min(s.y,a.y,h.y,l.y),this.x2=this.x1+e,this.y2=this.y1+i,this},_i.prototype.toRect=function(){return new Q.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},_i.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},_i.prototype.align=function(t,e,i){return e===F?this.alignX(t,i):this.alignY(t,i),this},_i.prototype.alignX=function(t,e){var i=this.width();e===C?(this.x1=t.x1,this.x2=this.x1+i):e===B?(this.x2=t.x2,this.x1=this.x2-i):e===f&&(this.x1=t.x1+(t.width()-i)/2,this.x2=this.x1+i)},_i.prototype.alignY=function(t,e){var i=this.height();e===V?(this.y1=t.y1,this.y2=this.y1+i):e===d?(this.y2=t.y2,this.y1=this.y2-i):e===f&&(this.y1=t.y1+(t.height()-i)/2,this.y2=this.y1+i)};const ki=_i;var Ai=function(t,e,i,o,r){this.center=t,this.innerRadius=e,this.radius=i,this.startAngle=o,this.angle=r};function Si(t,e){return t-e}Ai.prototype.clone=function(){return new Ai(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},Ai.prototype.middle=function(){return this.startAngle+this.angle/2},Ai.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},Ai.prototype.point=function(t,e){var i=Qt(t),o=Math.cos(i),r=Math.sin(i),n=e?this.innerRadius:this.radius,s=Kt(this.center.x-o*n,y),a=Kt(this.center.y-r*n,y);return new bi(s,a)},Ai.prototype.adjacentBox=function(t,e,i){var o=this.clone().expand(t),r=o.middle(),n=o.point(r),s=e/2,a=i/2,h=Math.sin(Qt(r)),l=Math.cos(Qt(r)),p=n.x-s,c=n.y-a;return Math.abs(h)<.9&&(p+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(c+=a*-h/Math.abs(h)),new ki(p,c,p+e,c+i)},Ai.prototype.containsPoint=function(t){var e=this.center,i=this.innerRadius,o=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,h=new bi(s,a),l=this.point(r),p=new bi(l.x-e.x,l.y-e.y),c=this.point(n),u=new bi(c.x-e.x,c.y-e.y),d=Kt(s*s+a*a,y);return(p.equals(h)||$(p,h))&&!$(u,h)&&d>=i*i&&d<=o*o},Ai.prototype.getBBox=function(){var t,e=new ki(P,P,T,T),i=Kt(this.startAngle%360),o=Kt((i+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,i,o].sort(Si),s=n.indexOf(i),a=n.indexOf(o);t=i===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var h=0;h<t.length;h++){var l=this.point(t[h]);e.wrapPoint(l),e.wrapPoint(l,r)}return r||e.wrapPoint(this.center),e},Ai.prototype.expand=function(t){return this.radius+=t,this};const Ci=Ai;var Pi=function(t){function e(e,i,o,r){t.call(this,e,0,i,o,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Ci);const Ti=Pi;var Mi=function(){};Mi.prototype.createRing=function(t,e){var i=t.startAngle+180,o=t.angle+i;(0===t.angle||t.angle>0&&i===o)&&(o+=.001);var r=new Q.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new Q.geometry.Arc(r,{startAngle:i,endAngle:o,radiusX:n,radiusY:n}),h=Q.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(o);h.lineTo(l.x,l.y),h.arc(o,i,s,s,!0)}else h.lineTo(r.x,r.y);return h},Mi.current=new Mi;const Oi=Mi;var Li=function(t){this.children=[],this.initOptions(t)};Li.prototype.initOptions=function(t){this.options=lt({},this.options,this.initUserOptions(t))},Li.prototype.initUserOptions=function(t){return t},Li.prototype.reflow=function(t){for(var e,i=this.children,o=0;o<i.length;o++){var r=i[o];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},Li.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},Li.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},Li.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},Li.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},Li.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},Li.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var i=t[e];this.children.push(i),i.parent=this}},Li.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},Li.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},Li.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},Li.prototype.createVisual=function(){this.visual=new Q.drawing.Group({zIndex:this.options.zIndex,visible:Jt(this.options.visible,!0)})},Li.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=Q.drawing.Animation.create(this.visual,this.options.animation))},Li.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):void 0!==t.options.zIndex?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},Li.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},Li.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},Li.prototype.stackVisual=function(t){var e,i=t.options.zIndex||0,o=this.visual.children,r=o.length;for(e=0;e<r;e++){var n=o[e];if(Jt(n.options.zIndex,0)>i)break}this.visual.insert(e,t)},Li.prototype.traverse=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++){var r=e[o];t(r),r.traverse&&r.traverse(t)}},Li.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},Li.prototype.renderComplete=function(){},Li.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},Li.prototype.toggleHighlight=function(t,e){var i=this,o=(this.options||{}).highlight||{},r=o.visual,n=this._highlight;if(!n){var s={fill:{color:j,opacity:e||.2},stroke:{color:j,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return i.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);void 0===n.options.zIndex&&(n.options.zIndex=Jt(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},Li.prototype.toggleFocusHighlight=function(t){var e=(this.options||{}).focusHighlight||{},i=this._focusHighlight;if(t||i){if(!i){var o=this.getRoot().options.background,r=ye(o),n={fill:{opacity:e.opacity,color:e.color},stroke:Object.assign({},{color:r},e.border),zIndex:e.zIndex};i=this._focusHighlight=this.createFocusHighlight(n),this.appendVisual(i)}i.visible(t)}},Li.prototype.createGradientOverlay=function(t,e,i){var o=new Q.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},Li.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},Li.prototype.supportsPointInactiveOpacity=function(){return!0},Li.prototype.options={};const Bi=Li;var Ii={dots:Q.drawing.dotsPattern,verticalStripes:Q.drawing.verticalStripesPattern,crosshatch:Q.drawing.crosshatchPattern,diagonalStripes:Q.drawing.diagonalStripesPattern,grid:Q.drawing.gridPattern};function Ei(t,e,i){var o=function(t,e){return nt(t)?t(e):t}(t,i),r=o&&Ii[o.type];return r?r(Object.assign({},e,o)):e}var Ri=function(t){function e(e){t.call(this,e),this.options.margin=gt(this.options.margin),this.options.padding=gt(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var i,o=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,h=n&&s,l=r.margin,p=r.padding,c=r.border.width,u=function(){o.align(e,F,r.align),o.align(e,H,r.vAlign),o.paddingBox=i.clone().unpad(l).unpad(c)},d=e.clone();h&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(c).unpad(p),t.prototype.reflow.call(this,d),i=h?this.box=new ki(0,0,n,s):this.box,a&&h?(u(),d=this.contentBox=this.paddingBox.clone().unpad(p)):(d=this.contentBox=i.clone(),i.pad(p).pad(c).pad(l),u()),this.translateChildren(i.x1-d.x1+l.left+c+p.left,i.y1-d.y1+l.top+c+p.top);for(var f=this.children,g=0;g<f.length;g++){var y=f[g];y.reflow(y.box)}},e.prototype.align=function(t,e,i){this.box.align(t,e,i)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(Q.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Jt(e.opacity,t.opacity),dashType:e.dashType},fill:Ei(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}},e}(Bi);ie(Ri,{align:C,vAlign:V,margin:{},padding:{},border:{color:u,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const Vi=Ri;function zi(t,e){e&&(t.options.className=e.className,t.options.role=e.role,t.options.ariaLabel=e.ariaLabel,t.options.ariaRoleDescription=e.ariaRoleDescription,t.options.ariaChecked=e.ariaChecked)}var ji=function(t){function e(e,i){t.call(this,e),this.pointData=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,i=t.type,o=t.rotation,r=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,h=this.visualStyle();if(i===g)a=new Q.drawing.Circle(new Q.geometry.Circle([Kt(e.x1+n,y),Kt(e.y1+s,y)],Math.min(n,s)),h);else if("triangle"===i)a=Q.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],h).close();else if(i===v)(a=new Q.drawing.MultiPath(h)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var l=e.toRect();if(i===I){var p=Jt(t.borderRadius,l.width()/5);l.setCornerRadius(p)}a=Q.drawing.Path.fromRect(l,h)}return o&&a.transform(Q.geometry.transform().rotate(-o,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,i=this.pointData||{};return e?e({value:i.value,dataItem:i.dataItem,sender:this.getSender(),series:i.series,category:i.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement(),zi(this.visual,this.options.accessibilityOptions)},e}(Vi);ie(ji,{type:g,align:f,vAlign:f});const Di=ji;var Fi="radial";const Hi={glass:{type:"linear",rotation:0,stops:[{offset:0,color:j,opacity:0},{offset:.25,color:j,opacity:.3},{offset:1,color:j,opacity:0}]},sharpBevel:{type:Fi,stops:[{offset:0,color:j,opacity:.55},{offset:.65,color:j,opacity:0},{offset:.95,color:j,opacity:.25}]},roundedBevel:{type:Fi,stops:[{offset:.33,color:j,opacity:.06},{offset:.83,color:j,opacity:.2},{offset:.95,color:j,opacity:0}]},roundedGlass:{type:Fi,supportVML:!1,stops:[{offset:0,color:j,opacity:0},{offset:.5,color:j,opacity:.3},{offset:.99,color:j,opacity:0}]},sharpGlass:{type:Fi,supportVML:!1,stops:[{offset:0,color:j,opacity:.2},{offset:.15,color:j,opacity:.15},{offset:.17,color:j,opacity:.35},{offset:.85,color:j,opacity:.05},{offset:.87,color:j,opacity:.15},{offset:.99,color:j,opacity:0}]},bubbleShadow:{type:Fi,center:[.5,.5],radius:.5}};function Ni(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var i=Math.min(t.x1,e.x1),o=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),h=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),p=[];return p[0]=new ki(o,s,r,a),p[1]=new ki(i,a,o,h),p[2]=new ki(r,a,n,h),p[3]=new ki(o,h,r,l),t.x1===i&&t.y1===s||e.x1===i&&e.y1===s?(p[4]=new ki(i,s,o,a),p[5]=new ki(r,h,n,l)):(p[4]=new ki(r,s,n,a),p[5]=new ki(i,h,o,l)),At(p,function(t){return t.height()>0&&t.width()>0})[0]}var Ui=function(t){function e(e){t.call(this,e);var i=this.options;i.width=parseInt(i.width,10),i.height=parseInt(i.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,i=new ki(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(var o=0;o<e.length;o++)e[o].reflow(i),i=Ni(i,e[o].box)||new ki},e.prototype.createVisual=function(){this.visual=new Q.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},i=this.box.clone().pad(t.margin).unpad(e.width),o=Q.drawing.Path.fromRect(i.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,i=this.gradients,o=Zt(t),r=Hi[t.gradient];if(i[o])e=i[o];else{var n=Object.assign({},r,t);"linear"===r.type?e=new Q.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,i=t.innerRadius/t.radius*100,o=e.length,r=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-i)+i)/100,r.push(s)}return r}(n)),(e=new Q.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),i[o]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new ki(0,0,t.width,t.height)},e}(Bi);ie(Ui,{width:600,height:400,background:j,border:{color:u,width:0},margin:gt(5),zIndex:-2});const Gi=Ui;var Wi=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=F,this.elementAxis=H,this.groupSizeField=D,this.elementSizeField=k,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=H,this.elementAxis=F,this.groupSizeField=k,this.elementSizeField=D,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this,e=t.box,i=t.elementAxis,o=t.groupAxis,r=t.elementSizeField,n=t.groupSizeField,s=this.groupOptions(),a=s.groups,h=s.groupsSize,l=s.maxGroupElementsSize,p=a.length,c=e[o+1]+this.alignStart(h,e[n]());if(p){for(var u=c,d=0;d<p;d++){for(var f=a[d],g=f.groupElements,y=e[i+1],v=g.length,m=0;m<v;m++){var x=g[m],b=this.elementSize(x),_=u+this.alignStart(b[n],f.groupSize),w=new ki;w[o+1]=_,w[o+2]=_+b[n],w[i+1]=y,w[i+2]=y+b[r],x.reflow(w),y+=b[r]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}e[o+1]=c,e[o+2]=c+h,e[i+2]=e[i+1]+l}},e.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===B||o===d?i=e-t:o===f&&(i=(e-t)/2),i},e.prototype.groupOptions=function(){for(var t=this,e=t.box,i=t.children,o=t.elementSizeField,r=t.groupSizeField,n=t.elementSpacing,s=t.groupSpacing,a=Kt(e[o]()),h=i.length,l=[],p=0,c=0,u=0,d=0,f=[],g=0;g<h;g++){var y=i[g];y.box||y.reflow(e);var v=this.elementSize(y);this.options.wrap&&Kt(c+n+v[o])>a&&(l.push({groupElements:f,groupSize:p,groupElementsSize:c}),d=Math.max(d,c),u+=s+p,p=0,c=0,f=[]),p=Math.max(p,v[r]),c>0&&(c+=n),c+=v[o],f.push(y)}return l.push({groupElements:f,groupSize:p,groupElementsSize:c}),{groups:l,groupsSize:u+=p,maxGroupElementsSize:d=Math.max(d,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Bi);ie(Wi,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const Xi=Wi;var Yi=Q.drawing.Text,qi=function(t){function e(e,i){t.call(this,i),this.content=e,this.reflow(new ki)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,i=e.size=Q.drawing.util.measureText(this.content,{font:e.font});this.baseline=i.baseline,this.box=new ki(t.x1,t.y1,t.x1+i.width,t.y1+i.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,i=t.color,o=t.opacity,r=t.cursor,n=t.stroke,s=t.paintOrder;this.visual=new Yi(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r,stroke:n,paintOrder:s})},e}(Bi);ie(qi,{font:x,color:u});const Zi=qi;function Qi(t){var e=t.origin,i=t.bottomRight();return new ki(e.x,e.y,i.x,i.y)}var Ki=/\n/m,$i=function(t){function e(e,i,o){t.call(this,i),this.content=e,this.data=o,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new ki)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(Ki),i=new Xi({vertical:!0,align:t.align,wrap:!1}),o=lt({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(var r=0;r<e.length;r++){var n=new Zi(e[r].trim(),o);i.append(n)}},e.prototype.reflow=function(e){var i=this.options,o=i.visual;if(this.container.options.align=i.align,o&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=o(this.visualContext(r));n&&(r=Qi(n.clippedBBox()||new Q.geometry.Rect),n.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype.reflow.call(this,e),i.rotation){var s=gt(i.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new Q.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=Q.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visua