/** 
 * Kendo UI v2016.3.1118 (http://www.telerik.com/kendo-ui)                                                                                                                                              
 * Copyright 2016 Telerik AD. All rights reserved.                                                                                                                                                      
 *                                                                                                                                                                                                      
 * Kendo UI commercial licenses may be obtained at                                                                                                                                                      
 * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete                                                                                                                                  
 * If you do not own a commercial license, this file shall be governed by the trial license terms.                                                                                                      
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       
                                                                                                                                                                                                       

*/
!function(t,define){define("util/main.min",["kendo.core.min"],t)}(function(){return function(){function t(t){return typeof t!==O}function i(t,i){var e=n(i);return L.round(t*e)/e}function n(t){return t?L.pow(10,t):1}function e(t,i,n){return L.max(L.min(t,n),i)}function o(t){return t*j}function r(t){return t/j}function a(t){return"number"==typeof t&&!isNaN(t)}function s(i,n){return t(i)?i:n}function l(t){return t*t}function u(t){var i,n=[];for(i in t)n.push(i+t[i]);return n.sort().join("")}function c(t){var i,n=2166136261;for(i=0;i<t.length;++i)n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24),n^=t.charCodeAt(i);return n>>>0}function h(t){return c(u(t))}function p(t){var i,n=t.length,e=E,o=U;for(i=0;i<n;i++)o=L.max(o,t[i]),e=L.min(e,t[i]);return{min:e,max:o}}function f(t){return p(t).min}function d(t){return p(t).max}function x(t){return g(t).min}function m(t){return g(t).max}function g(t){var i,n,e,o=E,r=U;for(i=0,n=t.length;i<n;i++)e=t[i],null!==e&&isFinite(e)&&(o=L.min(o,e),r=L.max(r,e));return{min:o===E?void 0:o,max:r===U?void 0:r}}function v(t){if(t)return t[t.length-1]}function y(t,i){return t.push.apply(t,i),t}function b(t){return B.template(t,{useWithBlock:!1,paramName:"d"})}function w(i,n){return t(n)&&null!==n?" "+i+"='"+n+"' ":""}function T(t){var i,n="";for(i=0;i<t.length;i++)n+=w(t[i][0],t[i][1]);return n}function k(i){var n,e,o="";for(n=0;n<i.length;n++)e=i[n][1],t(e)&&(o+=i[n][0]+":"+e+";");if(""!==o)return o}function _(t){return"string"!=typeof t&&(t+="px"),t}function M(t){var i,n,e=[];if(t)for(i=B.toHyphens(t).split("-"),n=0;n<i.length;n++)e.push("k-pos-"+i[n]);return e.join(" ")}function S(i){return""===i||null===i||"none"===i||"transparent"===i||!t(i)}function A(t){for(var i={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"},n=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],e="";t>0;)t<n[0]?n.shift():(e+=i[n[0]],t-=n[0]);return e}function V(t){var i,n,e,o,r;for(t=t.toLowerCase(),i={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},n=0,e=0,o=0;o<t.length;++o){if(r=i[t.charAt(o)],!r)return null;n+=r,r>e&&(n-=2*e),e=r}return n}function R(t){var i=Object.create(null);return function(){var n,e="";for(n=arguments.length;--n>=0;)e+=":"+arguments[n];return e in i?i[e]:i[e]=t.apply(this,arguments)}}function P(t){for(var i,n,e=[],o=0,r=t.length;o<r;)i=t.charCodeAt(o++),i>=55296&&i<=56319&&o<r?(n=t.charCodeAt(o++),56320==(64512&n)?e.push(((1023&i)<<10)+(1023&n)+65536):(e.push(i),o--)):e.push(i);return e}function z(t){return t.map(function(t){var i="";return t>65535&&(t-=65536,i+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),i+=String.fromCharCode(t)}).join("")}function C(t,i){function n(t,n){for(var e=[],o=0,r=0,a=0;o<t.length&&r<n.length;)i(t[o],n[r])<=0?e[a++]=t[o++]:e[a++]=n[r++];return o<t.length&&e.push.apply(e,t.slice(o)),r<n.length&&e.push.apply(e,n.slice(r)),e}return t.length<2?t.slice():function e(t){var i,o,r;return t.length<=1?t:(i=Math.floor(t.length/2),o=t.slice(0,i),r=t.slice(i),o=e(o),r=e(r),n(o,r))}(t)}var L=Math,B=window.kendo,I=B.deepExtend,j=L.PI/180,E=Number.MAX_VALUE,U=-Number.MAX_VALUE,O="undefined",D=Date.now;D||(D=function(){return(new Date).getTime()}),I(B,{util:{MAX_NUM:E,MIN_NUM:U,append:y,arrayLimits:p,arrayMin:f,arrayMax:d,defined:t,deg:r,hashKey:c,hashObject:h,isNumber:a,isTransparent:S,last:v,limitValue:e,now:D,objectKey:u,round:i,rad:o,renderAttr:w,renderAllAttr:T,renderPos:M,renderSize:_,renderStyle:k,renderTemplate:b,sparseArrayLimits:g,sparseArrayMin:x,sparseArrayMax:m,sqr:l,valueOrDefault:s,romanToArabic:V,arabicToRoman:A,memoize:R,ucs2encode:z,ucs2decode:P,mergeSort:C}}),B.drawing.util=B.util,B.dataviz.util=B.util}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,i,n){(n||i)()}),function(t,define){define("util/text-metrics.min",["kendo.core.min","util/main.min"],t)}(function(){!function(t){function i(){return{width:0,height:0,baseline:0}}function n(t,i,n){return h.current.measure(t,i,n)}function e(t,i){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(t){return document.fonts.load(t)})}catch(e){r.logToConsole(e)}Promise.all(n).then(i,i)}else i()}var o=document,r=window.kendo,a=r.Class,s=r.util,l=s.defined,u=a.extend({init:function(t){this._size=t,this._length=0,this._map={}},put:function(t,i){var n=this,e=n._map,o={key:t,value:i};e[t]=o,n._head?(n._tail.newer=o,o.older=n._tail,n._tail=o):n._head=n._tail=o,n._length>=n._size?(e[n._head.key]=null,n._head=n._head.newer,n._head.older=null):n._length++},get:function(t){var i=this,n=i._map[t];if(n)return n===i._head&&n!==i._tail&&(i._head=n.newer,i._head.older=null),n!==i._tail&&(n.older&&(n.older.newer=n.newer,n.newer.older=n.older),n.older=i._tail,n.newer=null,i._tail.newer=n,i._tail=n),n.value}}),c=t("<div style='position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: nowrap!important;' />")[0],h=a.extend({init:function(t){this._cache=new u(1e3),this._initOptions(t)},options:{baselineMarkerSize:1},measure:function(n,e,r){var a,u,h,p,f,d,x,m;if(!n)return i();if(a=s.objectKey(e),u=s.hashKey(n+a),h=this._cache.get(u),h)return h;p=i(),f=r?r:c,d=this._baselineMarker().cloneNode(!1);for(x in e)m=e[x],l(m)&&(f.style[x]=m);return t(f).text(n),f.appendChild(d),o.body.appendChild(f),(n+"").length&&(p.width=f.offsetWidth-this.options.baselineMarkerSize,p.height=f.offsetHeight,p.baseline=d.offsetTop+this.options.baselineMarkerSize),p.width>0&&p.height>0&&this._cache.put(u,p),f.parentNode.removeChild(f),p},_baselineMarker:function(){return t("<div class='k-baseline-marker' style='display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;' />")[0]}});h.current=new h,r.util.TextMetrics=h,r.util.LRUCache=u,r.util.loadFonts=e,r.util.measureText=n}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(t,i,n){(n||i)()}),function(t,define){define("util/base64.min",["util/main.min"],t)}(function(){return function(){function t(t){var n,e,o,a,s,l,u,c="",h=0;for(t=i(t);h<t.length;)n=t.charCodeAt(h++),e=t.charCodeAt(h++),o=t.charCodeAt(h++),a=n>>2,s=(3&n)<<4|e>>4,l=(15&e)<<2|o>>6,u=63&o,isNaN(e)?l=u=64:isNaN(o)&&(u=64),c=c+r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(u);return c}function i(t){var i,n,e="";for(i=0;i<t.length;i++)n=t.charCodeAt(i),n<128?e+=o(n):n<2048?(e+=o(192|n>>>6),e+=o(128|63&n)):n<65536&&(e+=o(224|n>>>12),e+=o(128|n>>>6&63),e+=o(128|63&n));return e}var n=window.kendo,e=n.deepExtend,o=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e(n.util,{encodeBase64:t,encodeUTF8:i})}(),window.kendo},"function"==typeof define&&define.amd?define:function(t,i,n){(n||i)()}),function(t,define){define("mixins/observers.min",["kendo.core.min"],t)}(function(){return function(t){var i=Math,n=window.kendo,e=n.deepExtend,o=t.inArray,r={observers:function(){return this._observers=this._observers||[]},addObserver:function(t){return this._observers?this._observers.push(t):this._observers=[t],this},removeObserver:function(t){var i=this.observers(),n=o(t,i);return n!=-1&&i.splice(n,1),this},trigger:function(t,i){var n,e,o=this._observers;if(o&&!this._suspended)for(e=0;e<o.length;e++)n=o[e],n[t]&&n[t](i);return this},optionsChange:function(t){t=t||{},t.element=this,this.trigger("optionsChange",t)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=i.max((this._suspended||0)-1,0),this},_observerField:function(t,i){this[t]&&this[t].removeObserver(this),this[t]=i,i.addObserver(this)}};e(n,{mixins:{ObserversMixin:r}})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,i,n){(n||i)()}),function(t,define){define("kendo.dataviz.core.min",["kendo.core.min","kendo.drawing.min"],t)}(function(){return function(t,i){function n(t,i){var n={top:0,right:0,bottom:0,left:0};return i=i||0,"number"==typeof t?n[Ot]=n[Ut]=n[ht]=n[Vt]=t:(n[Ot]=t[Ot]||i,n[Ut]=t[Ut]||i,n[ht]=t[ht]||i,n[Vt]=t[Vt]||i),n}function e(t,i){var n=t.tickX,e=t.tickY,o=t.position,r=new $.Path({stroke:{width:i.width,color:i.color}});return t.vertical?r.moveTo(n,o).lineTo(n+i.size,o):r.moveTo(o,e).lineTo(o,e+i.size),w(r),r}function o(t,i){var n=t.lineStart,e=t.lineEnd,o=t.position,r=new $.Path({stroke:{width:i.width,color:i.color,dashType:i.dashType}});return t.vertical?r.moveTo(n,o).lineTo(e,o):r.moveTo(o,n).lineTo(o,e),w(r),r}function r(t,i){var n,e,o,r=h(i-t,bt-1);if(0===r){if(0===i)return.1;r=st.abs(i)}return n=st.pow(10,st.floor(st.log(r)/st.log(10))),e=h(r/n,bt),o=1,o=e<1.904762?.2:e<4.761904?.5:e<9.523809?1:2,h(n*o,bt)}function a(t,i,n,e,o){var r=o*Tt;return new Wt(n+(t-n)*st.cos(r)+(i-e)*st.sin(r),e-(t-n)*st.sin(r)+(i-e)*st.cos(r))}function s(i,n){if(i.x1==n.x1&&i.y1==n.y1&&i.x2==n.x2&&i.y2==n.y2)return n;var e=st.min(i.x1,n.x1),o=st.max(i.x1,n.x1),r=st.min(i.x2,n.x2),a=st.max(i.x2,n.x2),s=st.min(i.y1,n.y1),l=st.max(i.y1,n.y1),u=st.min(i.y2,n.y2),c=st.max(i.y2,n.y2),h=[];return h[0]=S(o,s,r,l),h[1]=S(e,l,o,u),h[2]=S(r,l,a,u),h[3]=S(o,u,r,c),i.x1==e&&i.y1==s||n.x1==e&&n.y1==s?(h[4]=S(e,s,o,l),h[5]=S(r,u,a,c)):(h[4]=S(r,s,a,l),h[5]=S(e,u,o,c)),t.grep(h,function(t){return t.height()>0&&t.width()>0})[0]}function l(t,i){return ot(t,i)!=-1}function u(t,i){return h(st.ceil(t/i)*i,bt)}function c(t,i){return h(st.floor(t/i)*i,bt)}function h(t,i){var n=st.pow(10,i||0);return st.round(t*n)/n}function p(t,i){return st.log(t)/st.log(i)}function f(t,i,n){var e=h(st.abs(t%i),bt),o=i*(1-n);return 0===e||e>o}function d(t,i,n){return h(t+(i-t)*n,ft)}function x(t,i){return t-i}function m(t,i){return t.match(kt)?X.format.apply(this,arguments):X.toString(i,t)}function g(t,i){return-t.x*i.y+t.y*i.x<0}function v(t,i){return t&&i?t.getTime()-i.getTime():-1}function y(t){var i=t.originalEvent,n=0;return i.wheelDelta&&(n=-i.wheelDelta/120,n=n>0?st.ceil(n):st.floor(n)),i.detail&&(n=h(i.detail/3)),n}function b(t){if(!t||!t.indexOf||t.indexOf("&")<0)return t;var i=b._element;return i.innerHTML=t,i.textContent||i.innerText}function w(t){var i,n;if(!X.support.vml)for(i=.5,t.options.stroke&&K(t.options.stroke.width)&&t.options.stroke.width%2===0&&(i=0),n=0;n<t.segments.length;n++)t.segments[n].anchor().round(0).translate(i,i);return t}function T(t){var i,n,e=t.stops,o=t.innerRadius/t.radius*100,r=e.length,a=[];for(i=0;i<r;i++)n=lt({},e[i]),n.offset=(n.offset*(100-o)+o)/100,a.push(n);return a}function k(t){var i=t.origin,n=t.bottomRight();return new S(i.x,i.y,n.x,n.y)}function _(i){i=i||{};var n=t(i.touch?i.touch.initialTouch:i.target);return n}function M(t){return st.max(st.min(t,Mt),-Mt)}var S,A,V,R,P,z,C,L,B,I,j,E,U,O,D,G,N,F,H,X=window.kendo,W=X.util,q=W.append,K=W.defined,Y=W.last,Q=W.valueOrDefault,J=X.dataviz,Z=J.geometry,$=J.drawing,tt=$.util.measureText,it=X.Class,nt=X.template,et=t.noop,ot=t.inArray,rt=t.isPlainObject,at=t.trim,st=Math,lt=X.deepExtend,ut="axisLabelClick",ct="#000",ht="bottom",pt="center",ft=3,dt="clip",xt="circle",mt="cross",gt="12px sans-serif",vt=400,yt=7,bt=10,wt=600,Tt=st.PI/180,kt=/\{\d+:?/,_t="height",Mt=X.support.vml?1e5:3e5,St=600,At="inside",Vt="left",Rt="linear",Pt=Number.MAX_VALUE,zt=-Number.MAX_VALUE,Ct=Math.pow(10,-bt+1),Lt="none",Bt="noteClick",It="noteHover",jt="outside",Et="radial",Ut="right",Ot="top",Dt="triangle",Gt="width",Nt="#fff",Ft="x",Ht="y",Xt=.2,Wt=function(t,n){var e=this;return e instanceof Wt?(e.x=t||0,e.y=n||0,i):new Wt(t,n)};Wt.fn=Wt.prototype={clone:function(){var t=this;return new Wt(t.x,t.y)},equals:function(t){return t&&t.x===this.x&&t.y===this.y},rotate:function(t,i){var n=this,e=i*Tt,o=st.cos(e),r=st.sin(e),a=t.x,s=t.y,l=n.x,u=n.y;return n.x=h(a+(l-a)*o+(u-s)*r,ft),n.y=h(s+(u-s)*o-(l-a)*r,ft),n},multiply:function(t){var i=this;return i.x*=t,i.y*=t,i},distanceTo:function(t){var i=this.x-t.x,n=this.y-t.y;return st.sqrt(i*i+n*n)}},Wt.onCircle=function(t,i,n){return i*=Tt,new Wt(t.x-n*st.cos(i),t.y-n*st.sin(i))},S=function(t,n,e,o){var r=this;return r instanceof S?(r.x1=t||0,r.x2=e||0,r.y1=n||0,r.y2=o||0,i):new S(t,n,e,o)},S.fn=S.prototype={width:function(){return this.x2-this.x1},height:function(){return this.y2-this.y1},translate:function(t,i){var n=this;return n.x1+=t,n.x2+=t,n.y1+=i,n.y2+=i,n},move:function(t,i){var n=this,e=n.height(),o=n.width();return K(t)&&(n.x1=t,n.x2=n.x1+o),K(i)&&(n.y1=i,n.y2=n.y1+e),n},wrap:function(t){var i=this;return i.x1=st.min(i.x1,t.x1),i.y1=st.min(i.y1,t.y1),i.x2=st.max(i.x2,t.x2),i.y2=st.max(i.y2,t.y2),i},wrapPoint:function(t){return this.wrap(new S(t.x,t.y,t.x,t.y)),this},snapTo:function(t,i){var n=this;return i!=Ft&&i||(n.x1=t.x1,n.x2=t.x2),i!=Ht&&i||(n.y1=t.y1,n.y2=t.y2),n},alignTo:function(t,i){var n,e,o=this,r=o.height(),a=o.width(),s=i==Ot||i==ht?Ht:Ft,l=s==Ht?r:a;return i===pt?(n=t.center(),e=o.center(),o.x1+=n.x-e.x,o.y1+=n.y-e.y):o[s+1]=i===Ot||i===Vt?t[s+1]-l:t[s+2],o.x2=o.x1+a,o.y2=o.y1+r,o},shrink:function(t,i){var n=this;return n.x2-=t,n.y2-=i,n},expand:function(t,i){return this.shrink(-t,-i),this},pad:function(t){var i=this,e=n(t);return i.x1-=e.left,i.x2+=e.right,i.y1-=e.top,i.y2+=e.bottom,i},unpad:function(t){var i=this,e=n(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,i.pad(e)},clone:function(){var t=this;return new S(t.x1,t.y1,t.x2,t.y2)},center:function(){var t=this;return new Wt(t.x1+t.width()/2,t.y1+t.height()/2)},containsPoint:function(t){var i=this;return t.x>=i.x1&&t.x<=i.x2&&t.y>=i.y1&&t.y<=i.y2},points:function(){var t=this;return[new Wt(t.x1,t.y1),new Wt(t.x2,t.y1),new Wt(t.x2,t.y2),new Wt(t.x1,t.y2)]},getHash:function(){var t=this;return[t.x1,t.y1,t.x2,t.y2].join(",")},overlaps:function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},rotate:function(t){var i=this,n=i.width(),e=i.height(),o=i.center(),r=o.x,s=o.y,l=a(0,0,r,s,t),u=a(n,0,r,s,t),c=a(n,e,r,s,t),h=a(0,e,r,s,t);return n=st.max(l.x,u.x,c.x,h.x)-st.min(l.x,u.x,c.x,h.x),e=st.max(l.y,u.y,c.y,h.y)-st.min(l.y,u.y,c.y,h.y),i.x2=i.x1+n,i.y2=i.y1+e,i},toRect:function(){return new Z.Rect([this.x1,this.y1],[this.width(),this.height()])},hasSize:function(){return 0!==this.width()&&0!==this.height()},align:function(t,i,n){var e=this,o=i+1,r=i+2,a=i===Ft?Gt:_t,s=e[a]();l(n,[Vt,Ot])?(e[o]=t[o],e[r]=e[o]+s):l(n,[Ut,ht])?(e[r]=t[r],e[o]=e[r]-s):n==pt&&(e[o]=t[o]+(t[a]()-s)/2,e[r]=e[o]+s)}},A=it.extend({init:function(t,i,n,e,o){var r=this;r.c=t,r.ir=i,r.r=n,r.startAngle=e,r.angle=o},clone:function(){var t=this;return new A(t.c,t.ir,t.r,t.startAngle,t.angle)},middle:function(){return this.startAngle+this.angle/2},radius:function(t,i){var n=this;return i?n.ir=t:n.r=t,n},point:function(t,i){var n=this,e=t*Tt,o=st.cos(e),r=st.sin(e),a=i?n.ir:n.r,s=h(n.c.x-o*a,ft),l=h(n.c.y-r*a,ft);return new Wt(s,l)},adjacentBox:function(t,i,n){var e=this.clone().expand(t),o=e.middle(),r=e.point(o),a=i/2,s=n/2,l=r.x-a,u=r.y-s,c=st.sin(o*Tt),h=st.cos(o*Tt);return st.abs(c)<.9&&(l+=a*-h/st.abs(h)),st.abs(h)<.9&&(u+=s*-c/st.abs(c)),new S(l,u,l+i,u+n)},containsPoint:function(t){var i=this,n=i.c,e=i.ir,o=i.r,r=i.startAngle,a=i.startAngle+i.angle,s=t.x-n.x,l=t.y-n.y,u=new Wt(s,l),c=i.point(r),p=new Wt(c.x-n.x,c.y-n.y),f=i.point(a),d=new Wt(f.x-n.x,f.y-n.y),x=h(s*s+l*l,ft);return(p.equals(u)||g(p,u))&&!g(d,u)&&x>=e*e&&x<=o*o},getBBox:function(){var t,i,n,e=this,o=new S(Pt,Pt,zt,zt),r=h(e.startAngle%360),a=h((r+e.angle)%360),s=e.ir,l=[0,90,180,270,r,a].sort(x),u=ot(r,l),c=ot(a,l);for(t=r==a?l:u<c?l.slice(u,c+1):[].concat(l.slice(0,c+1),l.slice(u,l.length)),i=0;i<t.length;i++)n=e.point(t[i]),o.wrapPoint(n),o.wrapPoint(n,s);return s||o.wrapPoint(e.c),o},expand:function(t){return this.r+=t,this}}),V=A.extend({init:function(t,i,n,e){A.fn.init.call(this,t,0,i,n,e)},expand:function(t){return A.fn.expand.call(this,t)},clone:function(){var t=this;return new V(t.c,t.r,t.startAngle,t.angle)},radius:function(t){return A.fn.radius.call(this,t)},point:function(t){return A.fn.point.call(this,t)}}),R=function(){},R.fn=R.prototype={createRing:function(t,i){var n,e=t.startAngle+180,o=t.angle+e,r=new Z.Point(t.c.x,t.c.y),a=st.max(t.r,0),s=st.max(t.ir,0),l=new Z.Arc(r,{startAngle:e,endAngle:o,radiusX:a,radiusY:a}),u=$.Path.fromArc(l,i).close();return s?(l.radiusX=l.radiusY=s,n=l.pointAt(o),u.lineTo(n.x,n.y),u.arc(o,e,s,s,!0)):u.lineTo(r.x,r.y),u}},R.current=new R,P=it.extend({init:function(t){var i=this;i.children=[],i.options=lt({},i.options,t)},reflow:function(t){var i,n,e,o=this,r=o.children;for(n=0;n<r.length;n++)e=r[n],e.reflow(t),i=i?i.wrap(e.box):e.box.clone();o.box=i||t},destroy:function(){var t,i=this,n=i.children;for(this.animation&&this.animation.destroy(),t=0;t<n.length;t++)n[t].destroy()},getRoot:function(){var t=this.parent;return t?t.getRoot():null},getChart:function(){var t=this.getRoot();if(t)return t.chart},translateChildren:function(t,i){var n,e=this,o=e.children,r=o.length;for(n=0;n<r;n++)o[n].box.translate(t,i)},append:function(){q(this.children,arguments);for(var t=0;t<arguments.length;t++)arguments[t].parent=this},renderVisual:function(){this.options.visible!==!1&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},addVisual:function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},renderChildren:function(){var t,i=this.children;for(t=0;t<i.length;t++)i[t].renderVisual()},createVisual:function(){this.visual=new J.drawing.Group({zIndex:this.options.zIndex,visible:Q(this.options.visible,!0)})},createAnimation:function(){this.visual&&(this.animation=$.Animation.create(this.visual,this.options.animation))},appendVisual:function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):K(t.options.zIndex)?this.stackRoot().stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},clipRoot:function(){return this.parent?this.parent.clipRoot():this},stackRoot:function(){return this.parent?this.parent.stackRoot():this},stackVisual:function(t){var i,n,e,o=t.options.zIndex||0,r=this.visual.children;for(i=0;i<r.length&&(n=r[i],e=Q(n.options.zIndex,0),!(e>o));i++);this.visual.insertAt(t,i)},traverse:function(t){var i,n,e=this.children;for(i=0;i<e.length;i++)n=e[i],t(n),n.traverse&&n.traverse(t)},closest:function(t){for(var i=this,n=!1;i&&!n;)n=t(i),n||(i=i.parent);if(n)return i},renderComplete:t.noop,hasHighlight:function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&t.visible===!1)},toggleHighlight:function(i){var n,e=this,o=e._highlight,r=(e.options||{}).highlight,a=(r||{}).visual;if(!o){if(n={fill:{color:Nt,opacity:.2},stroke:{color:Nt,width:1,opacity:.2}},a){if(o=e._highlight=a(t.extend(e.highlightVisualArgs(),{createVisual:function(){return e.createHighlight(n)},sender:e.getChart(),series:e.series,dataItem:e.dataItem,category:e.category,value:e.value,stackValue:e.stackValue,percentage:e.percentage,runningTotal:e.runningTotal,total:e.total})),!o)return}else o=e._highlight=e.createHighlight(n);o.options.zIndex=e.options.zIndex,e.appendVisual(o)}o.visible(i)},createGradientOverlay:function(t,i,n){var e=new $.Path(lt({stroke:{color:Lt},fill:this.createGradient(n),closed:t.options.closed},i));return e.segments.elements(t.segments.elements()),e},createGradient:function(t){if(this.parent)return this.parent.createGradient(t)}}),z=P.extend({init:function(t){var i=this;i.gradients={},P.fn.init.call(i,t)},options:{width:wt,height:vt,background:Nt,border:{color:ct,width:0},margin:n(5),zIndex:-2},reflow:function(){var t,i=this,n=i.options,e=i.children,o=new S(0,0,n.width,n.height);for(i.box=o.unpad(n.margin),t=0;t<e.length;t++)e[t].reflow(o),o=s(o,e[t].box)||S()},createVisual:function(){this.visual=new $.Group,this.createBackground()},createBackground:function(){var t=this.options,i=t.border||{},n=this.box.clone().pad(t.margin).unpad(i.width),e=$.Path.fromRect(n.toRect(),{stroke:{color:i.width?i.color:"",width:i.width,dashType:i.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(e)},getRoot:function(){return this},createGradient:function(t){var i,n,e=this.gradients,o=W.objectKey(t),r=J.Gradients[t.gradient];return e[o]?i=e[o]:(n=lt({},r,t),"linear"==r.type?i=new $.LinearGradient(n):(t.innerRadius&&(n.stops=T(n)),i=new $.RadialGradient(n),i.supportVML=r.supportVML!==!1),e[o]=i),i}}),C=P.extend({options:{align:Vt,vAlign:Ot,margin:{},padding:{},border:{color:ct,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0},reflow:function(t){function i(){s.align(t,Ft,l.align),s.align(t,Ht,l.vAlign),s.paddingBox=e.clone().unpad(f).unpad(x)}var e,o,r,a,s=this,l=s.options,u=l.width,c=l.height,h=u&&c,p=l.shrinkToFit,f=n(l.margin),d=n(l.padding),x=l.border.width,m=s.children;for(o=t.clone(),h&&(o.x2=o.x1+u,o.y2=o.y1+c),p&&o.unpad(f).unpad(x).unpad(d),P.fn.reflow.call(s,o),e=h?s.box=S(0,0,u,c):s.box,p&&h?(i(),o=s.contentBox=s.paddingBox.clone().unpad(d)):(o=s.contentBox=e.clone(),e.pad(d).pad(x).pad(f),i()),s.translateChildren(e.x1-o.x1+f.left+x+d.left,e.y1-o.y1+f.top+x+d.top),r=0;r<m.length;r++)a=m[r],a.reflow(a.box)},align:function(t,i,n){this.box.align(t,i,n)},hasBox:function(){var t=this.options;return t.border.width||t.background},createVisual:function(){P.fn.createVisual.call(this);var t=this.options;t.visible&&this.hasBox()&&this.visual.append($.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},visualStyle:function(){var t=this,i=t.options,n=i.border||{};return{stroke:{width:n.width,color:n.color,opacity:Q(n.opacity,i.opacity),dashType:n.dashType},fill:{color:i.background,opacity:i.opacity},cursor:i.cursor}}}),L=P.extend({init:function(t,i){var n=this;P.fn.init.call(n,i),n.content=t,n.reflow(S())},options:{font:gt,color:ct,align:Vt,vAlign:""},reflow:function(t){var i,n=this,e=n.options;i=e.size=tt(n.content,{font:e.font}),n.baseline=i.baseline,n.box=S(t.x1,t.y1,t.x1+i.width,t.y1+i.height)},createVisual:function(){var t=this.options;this.visual=new $.Text(this.content,this.box.toRect().topLeft(),{font:t.font,fill:{color:t.color,opacity:t.opacity},cursor:t.cursor})}}),B=P.extend({init:function(t){P.fn.init.call(this,t),this._initDirection()},_initDirection:function(){var t=this.options;t.vertical?(this.groupAxis=Ft,this.elementAxis=Ht,this.groupSizeField=Gt,this.elementSizeField=_t,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=Ht,this.elementAxis=Ft,this.groupSizeField=_t,this.elementSizeField=Gt,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},options:{vertical:!0,wrap:!0,vSpacing:0,spacing:0},reflow:function(t){this.box=t.clone(),this.reflowChildren()},reflowChildren:function(){var t,i,n,e,o,r,a,s,l,u,c=this,h=c.box,p=c.elementAxis,f=c.groupAxis,d=c.elementSizeField,x=c.groupSizeField,m=c.groupOptions(),g=m.groups,v=g.length,y=h[f+1]+c.alignStart(m.groupsSize,h[x]()),b=y;if(v){for(a=0;a<v;a++){for(n=g[a],e=n.groupElements,o=e.length,t=h[p+1],r=0;r<o;r++)s=e[r],u=c.elementSize(s),i=b+c.alignStart(u[x],n.groupSize),l=S(),l[f+1]=i,l[f+2]=i+u[x],l[p+1]=t,l[p+2]=t+u[d],s.reflow(l),t+=u[d]+c.elementSpacing;b+=n.groupSize+c.groupSpacing}h[f+1]=y,h[f+2]=y+m.groupsSize,h[p+2]=h[p+1]+m.maxGroupElementsSize}},alignStart:function(t,i){var n=0,e=this.options.align;return e==Ut||e==ht?n=i-t:e==pt&&(n=(i-t)/2),n},groupOptions:function(){var t,i,n=this,e=n.box,o=n.children,r=o.length,a=this.elementSizeField,s=this.groupSizeField,l=this.elementSpacing,u=this.groupSpacing,c=h(e[a]()),p=0,f=0,d=0,x=0,m=[],g=[],v=0;for(p=0;p<r;p++)i=o[p],i.box||i.reflow(e),t=this.elementSize(i),n.options.wrap&&h(d+l+t[a])>c&&(m.push({groupElements:g,groupSize:f,groupElementsSize:d}),v=st.max(v,d),x+=u+f,f=0,d=0,g=[]),f=st.max(f,t[s]),d>0&&(d+=l),d+=t[a],g.push(i);return m.push({groupElements:g,groupSize:f,groupElementsSize:d}),v=st.max(v,d),x+=f,{groups:m,groupsSize:x,maxGroupElementsSize:v}},elementSize:function(t){return{width:t.box.width(),height:t.box.height()}},createVisual:et}),I=C.extend({ROWS_SPLIT_REGEX:/\n|\\n/m,init:function(t,i){var n=this;n.content=t,C.fn.init.call(n,i),n._initContainer(),n.reflow(S())},_initContainer:function(){var t,i,n=this,e=n.options,o=(n.content+"").split(n.ROWS_SPLIT_REGEX),r=new B({vertical:!0,align:e.align,wrap:!1}),a=lt({},e,{opacity:1,animation:null});for(n.container=r,n.append(r),i=0;i<o.length;i++)t=new L(at(o[i]),a),r.append(t)},reflow:function(t){var i,e,o,r=this.options,a=r.visual;this.container.options.align=r.align,a&&!this._boxReflow?(t.hasSize()||(this._boxReflow=!0,this.reflow(t),this._boxReflow=!1,t=this.box),this.visual=a(this.visualContext(t)),i=t,this.visual&&(i=k(this.visual.clippedBBox()||new Z.Rect),this.visual.options.zIndex=r.zIndex,this.visual.options.noclip=r.noclip),this.box=this.contentBox=this.paddingBox=i):(C.fn.reflow.call(this,t),r.rotation&&(e=n(r.margin),o=this.box.unpad(e),this.targetBox=t,this.normalBox=o.clone(),o=this.rotate(),o.translate(e.left-e.right,e.top-e.bottom),this.rotatedBox=o.clone(),o.pad(e)))},createVisual:function(){var t,i=this.options;i.visible&&(this.visual=new J.drawing.Group({transform:this.rotationTransform(),zIndex:i.zIndex,noclip:i.noclip}),this.hasBox()&&(t=$.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()),this.visual.append(t)))},renderVisual:function(){this.options.visual?(this.addVisual(),this.createAnimation()):C.fn.renderVisual.call(this)},visualOptions:function(){var t=this.options;return{background:t.background,border:t.border,color:t.color,font:t.font,margin:t.margin,padding:t.padding,visible:t.visible}},visualContext:function(t){var i=this;return{text:i.content,rect:t.toRect(),sender:this.getChart(),options:i.visualOptions(),createVisual:function(){return i._boxReflow=!0,i.reflow(t),i._boxReflow=!1,i.getDefaultVisual()}}},getDefaultVisual:function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},rotate:function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,Ft,t.align),this.align(this.targetBox,Ht,t.vAlign),this.box},rotationTransform:function(){var t,i,n,e,o=this.options.rotation;return o?(t=this.normalBox.center(),i=t.x,n=t.y,e=this.rotatedBox.center(),Z.transform().translate(e.x-i,e.y-n).rotate(o,[i,n])):null}}),j=P.extend({init:function(t){var i=this;P.fn.init.call(i,t),t=i.options,i.append(new I(t.text,lt({},t,{vAlign:t.position})))},options:{color:ct,position:Ot,align:pt,margin:n(5),padding:n(5)},reflow:function(t){var i=this;P.fn.reflow.call(i,t),i.box.snapTo(t,Ft)}}),j.buildTitle=function(t,i,n){var e;return"string"==typeof t&&(t={text:t}),t=lt({visible:!0},n,t),t&&t.visible&&t.text&&(e=new j(t),i.append(e)),e},E=I.extend({init:function(t,i,n,e,o){var r=this;r.text=i,r.value=t,r.index=n,r.dataItem=e,I.fn.init.call(r,i,o)},visualContext:function(t){var i=I.fn.visualContext.call(this,t);return i.value=this.value,i.dataItem=this.dataItem,i.format=this.options.format,i.culture=this.options.culture,i},click:function(t,i){var n=this;t.trigger(ut,{element:_(i),value:n.value,text:n.text,index:n.index,dataItem:n.dataItem,axis:n.parent.options})},rotate:function(){var t,i;return this.options.alignRotation!=pt?(t=this.normalBox.toRect(),i=this.rotationTransform(),this.box=k(t.bbox(i.matrix()))):I.fn.rotate.call(this),this.box},rotationTransform:function(){var t,i,n,e,o,r,a,s,l,u,c,p,f,d,x,m,g,v,y=this.options,b=y.rotation;return b?y.alignRotation==pt?I.fn.rotationTransform.call(this):(t=Z.transform().rotate(b).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),e=y.rotationOrigin||Ot,o=e==Ot||e==ht?Ft:Ht,r=e==Ot||e==ht?Ht:Ft,a=e==Ot||e==Vt?n.origin:n.bottomRight(),s=i.topLeft().transformCopy(t),l=i.topRight().transformCopy(t),u=i.bottomRight().transformCopy(t),c=i.bottomLeft().transformCopy(t),p=Z.Rect.fromPoints(s,l,u,c),f={},f[r]=n.origin[r]-p.origin[r],d=st.abs(s[r]+f[r]-a[r]),x=st.abs(l[r]+f[r]-a[r]),h(d,bt)===h(x,bt)?(m=s,g=l):x<d?(m=l,g=u):(m=s,g=c),v=m[o]+(g[o]-m[o])/2,f[o]=n.center()[o]-v,Z.transform().translate(f.x,f.y).rotate(b)):null}}),U=P.extend({init:function(t){var i=this;P.fn.init.call(i,t),i.options.visible||(i.options=lt({},i.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),i.options.minorTicks=lt({},{color:i.options.line.color,width:i.options.line.width,visible:i.options.minorTickType!=Lt},i.options.minorTicks,{size:i.options.minorTickSize,align:i.options.minorTickType}),i.options.majorTicks=lt({},{color:i.options.line.color,width:i.options.line.width,visible:i.options.majorTickType!=Lt},i.options.majorTicks,{size:i.options.majorTickSize,align:i.options.majorTickType}),this.options._deferLabels||i.createLabels(),i.createTitle(),i.createNotes()},options:{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:ct,visible:!0},title:{visible:!0,position:pt},majorTicks:{align:jt,size:4,skip:0,step:1},minorTicks:{align:jt,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:jt,minorTickType:Lt,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:ct,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1},labelsRange:function(){return{min:this.options.labels.skip,max:this.labelsCount()}},createLabels:function(){var i,n,e,o,r=this,a=r.options,s=a.vertical?Ut:pt,l=lt({},a.labels,{align:s,zIndex:a.zIndex}),u=st.max(1,l.step);if(r.children=t.grep(r.children,function(t){return!(t instanceof E)}),r.labels=[],l.visible)for(i=r.labelsRange(),n=l.rotation,rt(n)&&(l.alignRotation=n.align,l.rotation=n.angle),"auto"==l.rotation&&(l.rotation=0,a.autoRotateLabels=!0),o=i.min;o<i.max;o+=u)e=r.createAxisLabel(o,l),e&&(r.append(e),r.labels.push(e))},lineBox:function(){var t=this,i=t.options,n=t.box,e=i.vertical,o=i.labels.mirror,r=o?n.x1:n.x2,a=o?n.y2:n.y1,s=i.line.width||0;return e?S(r,n.y1,r,n.y2-s):S(n.x1,a,n.x2-s,a)},createTitle:function(){var t,i=this,n=i.options,e=lt({rotation:n.vertical?-90:0,text:"",zIndex:1,visualSize:!0},n.title);e.visible&&e.text&&(t=new I(e.text,e),i.append(t),i.title=t)},createNotes:function(){var t,i,n,e=this,o=e.options,r=o.notes,a=r.data||[];for(e.notes=[],t=0;t<a.length;t++)i=lt({},r,a[t]),i.value=e.parseNoteValue(i.value),n=new O(i.value,i.label.text,i,null,null,i),n.options.visible&&(K(n.options.position)?o.vertical&&!l(n.options.position,[Vt,Ut])?n.options.position=o.reverse?Vt:Ut:o.vertical||l(n.options.position,[Ot,ht])||(n.options.position=o.reverse?ht:Ot):n.options.position=o.vertical?o.reverse?Vt:Ut:o.reverse?ht:Ot,e.append(n),e.notes.push(n))},parseNoteValue:function(t){return t},renderVisual:function(){P.fn.renderVisual.call(this),this.createPlotBands()},createVisual:function(){P.fn.createVisual.call(this),this.createBackground(),this.createLine()},gridLinesVisual:function(){var t=this._gridLines;return t||(t=this._gridLines=new $.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},createTicks:function(t){function i(i,n,o){var s,u=i.length,c=st.max(1,n.step);if(n.visible)for(s=n.skip;s<u;s+=c)K(o)&&s%o===0||(l.tickX=a?r.x2:r.x2-n.size,l.tickY=a?r.y1-n.size:r.y1,l.position=i[s],t.append(e(l,n)))}var n=this,o=n.options,r=n.lineBox(),a=o.labels.mirror,s=o.majorTicks.visible?o.majorUnit:0,l={vertical:o.vertical};i(n.getMajorTickPositions(),o.majorTicks),i(n.getMinorTickPositions(),o.minorTicks,s/o.minorUnit)},createLine:function(){var t,i,n=this,e=n.options,o=e.line,r=n.lineBox();o.width>0&&o.visible&&(t=new $.Path({stroke:{width:o.width,color:o.color,dashType:o.dashType}}),t.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),e._alignLines&&w(t),i=this._lineGroup=new $.Group,i.append(t),this.visual.append(i),this.createTicks(i))},getActualTickSize:function(){var t=this,i=t.options,n=0;return i.majorTicks.visible&&i.minorTicks.visible?n=st.max(i.majorTicks.size,i.minorTicks.size):i.majorTicks.visible?n=i.majorTicks.size:i.minorTicks.visible&&(n=i.minorTicks.size),
n},createBackground:function(){var t=this,i=t.options,n=i.background,e=t.box;n&&(t._backgroundPath=$.Path.fromRect(e.toRect(),{fill:{color:n},stroke:null}),this.visual.append(t._backgroundPath))},createPlotBands:function(){var i,n,e,o,r,a,s=this,l=s.options,u=l.plotBands||[],c=l.vertical,h=s.plotArea;0!==u.length&&(r=this._plotbandGroup=new $.Group({zIndex:-1}),a=t.grep(s.pane.axes,function(t){return t.options.vertical!==s.options.vertical})[0],t.each(u,function(t,l){var u,p;e=Q(l.from,zt),o=Q(l.to,Pt),c?(i=(a||h.axisX).lineBox(),n=s.getSlot(l.from,l.to,!0)):(i=s.getSlot(l.from,l.to,!0),n=(a||h.axisY).lineBox()),0!==i.width()&&0!==n.height()&&(u=new Z.Rect([i.x1,n.y1],[i.width(),n.height()]),p=$.Path.fromRect(u,{fill:{color:l.color,opacity:l.opacity},stroke:null}),r.append(p))}),s.appendVisual(r))},createGridLines:function(t){function i(t,i,e){var r,s=t.length,u=st.max(1,i.step);if(i.visible)for(r=i.skip;r<s;r+=u)n=h(t[r]),l(n,x)||r%e===0||a&&f===n||(d.position=n,m.append(o(d,i)),x.push(n))}var n,e=this,r=e.options,a=t.options.line.visible,s=r.majorGridLines,u=s.visible?r.majorUnit:0,c=r.vertical,p=t.lineBox(),f=p[c?"y1":"x1"],d={lineStart:p[c?"x1":"y1"],lineEnd:p[c?"x2":"y2"],vertical:c},x=[],m=this.gridLinesVisual();return i(e.getMajorTickPositions(),r.majorGridLines),i(e.getMinorTickPositions(),r.minorGridLines,u/r.minorUnit),m.children},reflow:function(t){var i,n,e=this,o=e.options,r=o.vertical,a=e.labels,s=a.length,l=e.title,u=r?Gt:_t,c=l?l.box[u]():0,h=e.getActualTickSize()+o.margin+c,p=0,f=(this.getRoot()||{}).box||t,d=f[u]();for(n=0;n<s;n++)i=a[n].box[u](),i+h<=d&&(p=st.max(p,i));e.box=r?S(t.x1,t.y1,t.x1+p+h,t.y2):S(t.x1,t.y1,t.x2,t.y1+p+h),e.arrangeTitle(),e.arrangeLabels(),e.arrangeNotes()},getLabelsTickPositions:function(){return this.getMajorTickPositions()},labelTickIndex:function(t){return t.index},arrangeLabels:function(){var t,i,n,e,o,r,a,s,l,u,c,h=this,p=h.options,f=h.labels,d=!p.justified,x=p.vertical,m=h.lineBox(),g=p.labels.mirror,v=h.getLabelsTickPositions(),y=h.getActualTickSize()+p.margin;for(n=0;n<f.length;n++)e=f[n],o=h.labelTickIndex(e),r=x?e.box.height():e.box.width(),a=v[o]-r/2,x?(d&&(s=v[o],l=v[o+1],u=s+(l-s)/2,a=u-r/2),c=m.x2,g?(c+=y,e.options.rotationOrigin=Vt):(c-=y+e.box.width(),e.options.rotationOrigin=Ut),t=e.box.move(c,a)):(d?(s=v[o],l=v[o+1]):(s=a,l=a+r),i=m.y1,g?(i-=y+e.box.height(),e.options.rotationOrigin=ht):(i+=y,e.options.rotationOrigin=Ot),t=S(s,i,l,i+e.box.height())),e.reflow(t)},autoRotateLabels:function(){var t,i,n,e,o,r;if(this.options.autoRotateLabels&&!this.options.vertical){for(t=this.getMajorTickPositions(),i=this.labels,r=0;r<i.length;r++)if(o=t[r+1]-t[r],n=i[r].box,n.width()>o){if(n.height()>o){e=-90;break}e=-45}if(e){for(r=0;r<i.length;r++)i[r].options.rotation=e,i[r].reflow(S());return!0}}},arrangeTitle:function(){var t=this,i=t.options,n=i.labels.mirror,e=i.vertical,o=t.title;o&&(e?(o.options.align=n?Ut:Vt,o.options.vAlign=o.options.position):(o.options.align=o.options.position,o.options.vAlign=n?Ot:ht),o.reflow(t.box))},arrangeNotes:function(){var t,i,n,e,o=this;for(t=0;t<o.notes.length;t++)i=o.notes[t],e=i.options.value,K(e)?(o.shouldRenderNote(e)?i.show():i.hide(),n=o.getSlot(e)):i.hide(),i.reflow(n||o.lineBox())},alignTo:function(t){var i=this,n=t.lineBox(),e=i.options.vertical,o=e?Ht:Ft;i.box.snapTo(n,o),e?i.box.shrink(0,i.lineBox().height()-n.height()):i.box.shrink(i.lineBox().width()-n.width(),0),i.box[o+1]-=i.lineBox()[o+1]-n[o+1],i.box[o+2]-=i.lineBox()[o+2]-n[o+2]},axisLabelText:function(t,i,n){var e,o=t;return n.template?(e=nt(n.template),o=e({value:t,dataItem:i,format:n.format,culture:n.culture})):n.format&&(o=n.format.match(kt)?X.format(n.format,t):X.toString(t,n.format,n.culture)),o},slot:function(t,i,n){var e=this.getSlot(t,i,n);if(e)return e.toRect()},contentBox:function(){var t=this.box.clone(),i=this.labels;return i.length&&(i[0].options.visible&&t.wrap(i[0].box),Y(i).options.visible&&t.wrap(Y(i).box)),t},limitRange:function(t,i,n,e,o){var r,a=this.options;if(!(t<n&&o<0&&(!K(a.min)||a.min<=n)||e<i&&o>0&&(!K(a.max)||e<=a.max)))return i<n&&o>0||e<t&&o<0?{min:t,max:i}:(r=i-t,t<n?(t=W.limitValue(t,n,e),i=W.limitValue(t+r,n+r,e)):i>e&&(i=W.limitValue(i,n,e),t=W.limitValue(i-r,n,e-r)),{min:t,max:i})},valueRange:function(){return{min:this.seriesMin,max:this.seriesMax}}}),O=C.extend({init:function(t,i,n,e,o,r){var a=this;C.fn.init.call(a,r),a.value=t,a.text=i,a.dataItem=n,a.category=e,a.series=o,a.render()},options:{icon:{visible:!0,type:xt},label:{position:At,visible:!0,align:pt,vAlign:pt},line:{visible:!0},visible:!0,position:Ot,zIndex:2},hide:function(){this.options.visible=!1},show:function(){this.options.visible=!0},render:function(){var t,i,n,e,o=this,r=o.options,a=r.label,s=o.text,l=r.icon,u=l.size,c=S();r.visible&&(K(a)&&a.visible&&(a.template?(e=nt(a.template),s=e({dataItem:o.dataItem,category:o.category,value:o.value,text:s,series:o.series})):a.format&&(s=m(a.format,s)),o.label=new I(s,lt({},a)),a.position!==At||K(u)||(l.type===xt?u=st.max(o.label.box.width(),o.label.box.height()):(i=o.label.box.width(),n=o.label.box.height()),c.wrap(o.label.box))),l.width=i||u||yt,l.height=n||u||yt,t=new D(lt({},l)),o.marker=t,o.append(t),o.label&&o.append(o.label),t.reflow(S()),o.wrapperBox=c.wrap(t.box))},reflow:function(t){var i,n,e,o=this,r=o.options,a=t.center(),s=o.wrapperBox,u=r.line.length,c=r.position,h=o.label,p=o.marker;r.visible&&(l(c,[Vt,Ut])?c===Vt?(e=s.alignTo(t,c).translate(-u,t.center().y-s.center().y),r.line.visible&&(i=[t.x1,a.y],o.linePoints=[i,[e.x2,a.y]],n=e.clone().wrapPoint(i))):(e=s.alignTo(t,c).translate(u,t.center().y-s.center().y),r.line.visible&&(i=[t.x2,a.y],o.linePoints=[i,[e.x1,a.y]],n=e.clone().wrapPoint(i))):c===ht?(e=s.alignTo(t,c).translate(t.center().x-s.center().x,u),r.line.visible&&(i=[a.x,t.y2],o.linePoints=[i,[a.x,e.y1]],n=e.clone().wrapPoint(i))):(e=s.alignTo(t,c).translate(t.center().x-s.center().x,-u),r.line.visible&&(i=[a.x,t.y1],o.linePoints=[i,[a.x,e.y2]],n=e.clone().wrapPoint(i))),p&&p.reflow(e),h&&(h.reflow(e),p&&(r.label.position===jt&&h.box.alignTo(p.box,c),h.reflow(h.box))),o.contentBox=e,o.targetBox=t,o.box=n||e)},createVisual:function(){C.fn.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},renderVisual:function(){var t=this,i=t.options,n=i.visual;i.visible&&n?(t.visual=n({dataItem:t.dataItem,category:t.category,value:t.value,text:t.text,sender:t.getChart(),series:t.series,rect:t.targetBox.toRect(),options:{background:i.background,border:i.background,icon:i.icon,label:i.label,line:i.line,position:i.position,visible:i.visible},createVisual:function(){t.createVisual(),t.renderChildren();var i=t.visual;return delete t.visual,i}}),t.addVisual()):C.fn.renderVisual.call(t)},createLine:function(){var t,i=this.options.line;this.linePoints&&(t=$.Path.fromPoints(this.linePoints,{stroke:{color:i.color,width:i.width,dashType:i.dashType}}),w(t),this.visual.append(t))},click:function(t,i){var n=this.eventArgs(i);t.trigger(Bt,n)||i.preventDefault()},hover:function(t,i){var n=this.eventArgs(i);t.trigger(It,n)||i.preventDefault()},leave:function(t){t._unsetActivePoint()},eventArgs:function(t){var i=this,n=i.options;return{element:_(t),text:K(n.label)?n.label.text:"",dataItem:i.dataItem,series:i.series,value:i.value,category:i.category,visual:i.visual}}}),D=C.extend({init:function(t,i){this.pointData=i,C.fn.init.call(this,t)},options:{type:xt,align:pt,vAlign:pt},getElement:function(){var t,i,n=this,e=n.options,o=e.type,r=e.rotation,a=n.paddingBox,s=a.center(),l=a.width()/2;if(e.visible&&n.hasBox())return i=n.visualStyle(),o===xt?t=new $.Circle(new Z.Circle([h(a.x1+l,ft),h(a.y1+a.height()/2,ft)],l),i):o===Dt?t=$.Path.fromPoints([[a.x1+l,a.y1],[a.x1,a.y2],[a.x2,a.y2]],i).close():o===mt?(t=new $.MultiPath(i),t.moveTo(a.x1,a.y1).lineTo(a.x2,a.y2),t.moveTo(a.x1,a.y2).lineTo(a.x2,a.y1)):t=$.Path.fromRect(a.toRect(),i),r&&t.transform(Z.transform().rotate(-r,[s.x,s.y])),t.options.zIndex=this.options.zIndex,t},createElement:function(){var t,i=this,n=i.options.visual,e=i.pointData||{};return t=n?n({value:e.value,dataItem:e.dataItem,sender:i.getChart(),series:e.series,category:e.category,rect:i.paddingBox.toRect(),options:i.visualOptions(),createVisual:function(){return i.getElement()}}):i.getElement()},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}},createVisual:function(){this.visual=this.createElement()}}),G=U.extend({init:function(t,i,n){var e=this,o=e.initDefaults(t,i,n);this.seriesMin=t,this.seriesMax=i,U.fn.init.call(e,o)},startValue:function(){return 0},options:{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:ct},labels:{format:"#.####################"},zIndex:1},initDefaults:function(t,i,n){var e,o=this,a=n.narrowRange,s=o.autoAxisMin(t,i,a),l=o.autoAxisMax(t,i,a),h=r(s,l),p={majorUnit:h};return n.roundToMajorUnit!==!1&&(s<0&&f(s,h,1/3)&&(s-=h),l>0&&f(l,h,1/3)&&(l+=h)),p.min=c(s,h),p.max=u(l,h),this.totalMin=K(n.min)?st.min(p.min,n.min):p.min,this.totalMax=K(n.max)?st.max(p.max,n.max):p.max,this.totalMajorUnit=h,n&&(e=K(n.min)||K(n.max),e&&n.min===n.max&&(n.min>0?n.min=0:n.max=1),n.majorUnit?(p.min=c(p.min,n.majorUnit),p.max=u(p.max,n.majorUnit)):e&&(n=lt(p,n),p.majorUnit=r(n.min,n.max))),p.minorUnit=(n.majorUnit||p.majorUnit)/5,lt(p,n)},range:function(){var t=this.options;return{min:t.min,max:t.max}},autoAxisMax:function(t,i,n){var e,o;if(!t&&!i)return 1;if(t<=0&&i<=0){if(i=t==i?0:i,o=st.abs((i-t)/i),n===!1||!n&&o>Xt)return 0;e=st.min(0,i-(t-i)/2)}else t=t==i?0:t,e=i;return e},autoAxisMin:function(t,i,n){var e,o;if(!t&&!i)return 0;if(t>=0&&i>=0){if(t=t==i?0:t,o=(i-t)/i,n===!1||!n&&o>Xt)return 0;e=st.max(0,t-(i-t)/2)}else i=t==i?0:i,e=t;return e},getDivisions:function(t){if(0===t)return 1;var i=this.options,n=i.max-i.min;return st.floor(h(n/t,ft))+1},getTickPositions:function(t,i){var n,e=this,o=e.options,r=o.vertical,a=o.reverse,s=e.lineBox(),l=r?s.height():s.width(),u=o.max-o.min,c=l/u,p=t*c,f=0,d=e.getDivisions(t),x=(r?-1:1)*(a?-1:1),m=1===x?1:2,g=s[(r?Ht:Ft)+m],v=[];for(i&&(f=i/t),n=0;n<d;n++)n%f!==0&&v.push(h(g,ft)),g+=p*x;return v},getMajorTickPositions:function(){var t=this;return t.getTickPositions(t.options.majorUnit)},getMinorTickPositions:function(){var t=this;return t.getTickPositions(t.options.minorUnit)},getSlot:function(t,i,n){var e,o,r=this,a=r.options,s=a.reverse,l=a.vertical,u=l?Ht:Ft,c=r.lineBox(),h=c[u+(s?2:1)],p=l?c.height():c.width(),f=s?-1:1,d=f*(p/(a.max-a.min)),x=new S(c.x1,c.y1,c.x1,c.y1);return K(t)||(t=i||0),K(i)||(i=t||0),n&&(t=st.max(st.min(t,a.max),a.min),i=st.max(st.min(i,a.max),a.min)),l?(e=a.max-st.max(t,i),o=a.max-st.min(t,i)):(e=st.min(t,i)-a.min,o=st.max(t,i)-a.min),x[u+1]=M(h+d*(s?o:e)),x[u+2]=M(h+d*(s?e:o)),x},getValue:function(t){var i,n=this,e=n.options,o=e.reverse,r=e.vertical,a=1*e.max,s=1*e.min,l=r?Ht:Ft,u=n.lineBox(),c=u[l+(o?2:1)],p=r?u.height():u.width(),f=o?-1:1,d=f*(t[l]-c),x=(a-s)/p,m=d*x;return d<0||d>p?null:(i=r?a-m:s+m,h(i,bt))},translateRange:function(t){var i=this,n=i.options,e=i.lineBox(),o=n.vertical,r=n.reverse,a=o?e.height():e.width(),s=n.max-n.min,l=a/s,u=h(t/l,bt);return!o&&!r||o&&r||(u=-u),{min:n.min+u,max:n.max+u}},scaleRange:function(t){var i=this,n=i.options,e=-t*n.majorUnit;return{min:n.min-e,max:n.max+e}},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(t,i){var n=this,e=n.options,o=h(e.min+t*e.majorUnit,bt),r=n.axisLabelText(o,null,i);return new E(o,r,t,null,i)},shouldRenderNote:function(t){var i=this.range();return i.min<=t&&t<=i.max},pan:function(t){var i=this.translateRange(t);return this.limitRange(i.min,i.max,this.totalMin,this.totalMax)},pointsRange:function(t,i){var n=this.getValue(t),e=this.getValue(i),o=st.min(n,e),r=st.max(n,e);if(this.isValidRange(o,r))return{min:o,max:r}},zoomRange:function(t){var i=this.scaleRange(t),n=this.totalMax,e=this.totalMin,o=W.limitValue(i.min,e,n),r=W.limitValue(i.max,e,n);if(this.isValidRange(o,r))return{min:o,max:r}},isValidRange:function(t,i){return i-t>Ct}}),N=U.extend({init:function(t,i,n){this.options=this._initOptions(t,i,n),this.seriesMin=t,this.seriesMax=i,U.fn.init.call(this,n)},startValue:function(){return this.options.min},options:{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:ct},zIndex:1},getSlot:function(t,i,n){var e,o,r=this,a=r.options,s=a.reverse,l=a.vertical,u=l?Ht:Ft,c=r.lineBox(),h=c[u+(s?2:1)],f=l?c.height():c.width(),d=s?-1:1,x=a.majorUnit,m=r.logMin,g=r.logMax,v=d*(f/(g-m)),y=new S(c.x1,c.y1,c.x1,c.y1);if(K(t)||(t=i||1),K(i)||(i=t||1),!(t<=0||i<=0))return n&&(t=st.max(st.min(t,a.max),a.min),i=st.max(st.min(i,a.max),a.min)),t=p(t,x),i=p(i,x),l?(e=g-st.max(t,i),o=g-st.min(t,i)):(e=st.min(t,i)-m,o=st.max(t,i)-m),y[u+1]=M(h+v*(s?o:e)),y[u+2]=M(h+v*(s?e:o)),y},getValue:function(t){var i,n=this,e=n.options,o=e.reverse,r=e.vertical,a=n.lineBox(),s=e.majorUnit,l=n.logMin,u=n.logMax,c=r===o?1:-1,p=1===c?1:2,f=r?a.height():a.width(),d=(u-l)/f,x=r?Ht:Ft,m=a[x+p],g=c*(t[x]-m),v=g*d;return g<0||g>f?null:(i=l+v,h(st.pow(s,i),bt))},range:function(){var t=this.options;return{min:t.min,max:t.max}},scaleRange:function(t){var i=this,n=i.options,e=n.majorUnit,o=-t;return{min:st.pow(e,i.logMin-o),max:st.pow(e,i.logMax+o)}},translateRange:function(t){var i=this,n=i.options,e=n.majorUnit,o=i.lineBox(),r=n.vertical,a=n.reverse,s=r?o.height():o.width(),l=s/(i.logMax-i.logMin),u=h(t/l,bt);return!r&&!a||r&&a||(u=-u),{min:st.pow(e,i.logMin+u),max:st.pow(e,i.logMax+u)}},labelsCount:function(){var t=this,i=st.floor(t.logMax),n=st.floor(i-t.logMin)+1;return n},getMajorTickPositions:function(){var t=this,i=[];return t.traverseMajorTicksPositions(function(t){i.push(t)},{step:1,skip:0}),i},createTicks:function(t){function i(i,n){c.tickX=s?a.x2:a.x2-n.size,c.tickY=s?a.y1-n.size:a.y1,c.position=i,t.append(e(c,n))}var n=this,o=[],r=n.options,a=n.lineBox(),s=r.labels.mirror,l=r.majorTicks,u=r.minorTicks,c={vertical:r.vertical};return l.visible&&n.traverseMajorTicksPositions(i,l),u.visible&&n.traverseMinorTicksPositions(i,u),o},createGridLines:function(t){function i(t,i){l(t,h)||(c.position=t,p.append(o(c,i)),h.push(t))}var n=this,e=n.options,r=e.majorGridLines,a=e.minorGridLines,s=e.vertical,u=t.lineBox(),c={lineStart:u[s?"x1":"y1"],lineEnd:u[s?"x2":"y2"],vertical:s},h=[],p=this.gridLinesVisual();return r.visible&&n.traverseMajorTicksPositions(i,r),a.visible&&n.traverseMinorTicksPositions(i,a),p.children},traverseMajorTicksPositions:function(t,i){var n,e,o=this,r=o._lineOptions(),a=r.lineStart,s=r.step,l=o.logMin,u=o.logMax;for(n=st.ceil(l)+i.skip;n<=u;n+=i.step)e=h(a+s*(n-l),bt),t(e,i)},traverseMinorTicksPositions:function(t,i){var n,e,o,r,a,s=this,l=s.options,u=s._lineOptions(),c=u.lineStart,f=u.step,d=l.majorUnit,x=s.logMin,m=s.logMax,g=st.floor(x),v=l.max,y=l.min,b=l.minorUnit;for(n=g;n<m;n++)for(r=s._minorIntervalOptions(n),a=i.skip;a<b&&(e=r.value+a*r.minorStep,!(e>v));a+=i.step)e>=y&&(o=h(c+f*(p(e,d)-x),bt),t(o,i))},createAxisLabel:function(t,i){var n=this,e=n.options,o=st.ceil(n.logMin+t),r=Math.pow(e.majorUnit,o),a=n.axisLabelText(r,null,i);return new E(r,a,t,null,i)},shouldRenderNote:function(t){var i=this.range();return i.min<=t&&t<=i.max},_throwNegativeValuesError:function(){throw Error("Non positive values cannot be used for a logarithmic axis")},_initOptions:function(t,i,n){var e=this,o=lt({},e.options,{min:t,max:i},n),r=o.min,a=o.max,s=o.majorUnit,l=this._autoMax(i,s),u=this._autoMin(t,i,o);return o.axisCrossingValue<=0&&e._throwNegativeValuesError(),K(n.max)?n.max<=0&&e._throwNegativeValuesError():a=l,K(n.min)?n.min<=0&&e._throwNegativeValuesError():r=u,this.totalMin=K(n.min)?st.min(u,n.min):u,this.totalMax=K(n.max)?st.max(l,n.max):l,e.logMin=h(p(r,s),bt),e.logMax=h(p(a,s),bt),o.max=a,o.min=r,o.minorUnit=n.minorUnit||h(s-1,bt),o},_autoMin:function(t,i,n){var e=t,o=n.majorUnit;return t<=0?e=i<=1?st.pow(o,-2):1:n.narrowRange||(e=st.pow(o,st.floor(p(t,o)))),e},_autoMax:function(t,i){var n,e=h(p(t,i),bt)%1;return n=t<=0?i:0!==e&&(e<.3||e>.9)?st.pow(i,p(t,i)+.2):st.pow(i,st.ceil(p(t,i)))},pan:function(t){var i=this.translateRange(t);return this.limitRange(i.min,i.max,this.totalMin,this.totalMax,-t)},pointsRange:function(t,i){var n=this.getValue(t),e=this.getValue(i),o=st.min(n,e),r=st.max(n,e);return{min:o,max:r}},zoomRange:function(t){var i=this.options,n=this.scaleRange(t),e=this.totalMax,o=this.totalMin,r=W.limitValue(n.min,o,e),a=W.limitValue(n.max,o,e),s=i.majorUnit,l=a>r&&i.min&&i.max&&h(p(i.max,s)-p(i.min,s),bt)<1,u=!(i.min===o&&i.max===e)&&h(p(a,s)-p(r,s),bt)>=1;if(l||u)return{min:r,max:a}},_minorIntervalOptions:function(t){var i=this.options.majorUnit,n=st.pow(i,t),e=st.pow(i,t+1),o=e-n,r=o/this.options.minorUnit;return{value:n,minorStep:r}},_lineOptions:function(){var t=this,i=t.options,n=i.reverse,e=i.vertical,o=e?Ht:Ft,r=t.lineBox(),a=e===n?1:-1,s=1===a?1:2,l=e?r.height():r.width(),u=a*(l/(t.logMax-t.logMin)),c=r[o+s];return{step:u,lineStart:c,lineBox:r}}}),J.Gradients={glass:{type:Rt,rotation:0,stops:[{offset:0,color:Nt,opacity:0},{offset:.25,color:Nt,opacity:.3},{offset:1,color:Nt,opacity:0}]},sharpBevel:{type:Et,stops:[{offset:0,color:Nt,opacity:.55},{offset:.65,color:Nt,opacity:0},{offset:.95,color:Nt,opacity:.25}]},roundedBevel:{type:Et,stops:[{offset:.33,color:Nt,opacity:.06},{offset:.83,color:Nt,opacity:.2},{offset:.95,color:Nt,opacity:0}]},roundedGlass:{type:Et,supportVML:!1,stops:[{offset:0,color:Nt,opacity:0},{offset:.5,color:Nt,opacity:.3},{offset:.99,color:Nt,opacity:0}]},sharpGlass:{type:Et,supportVML:!1,stops:[{offset:0,color:Nt,opacity:.2},{offset:.15,color:Nt,opacity:.15},{offset:.17,color:Nt,opacity:.35},{offset:.85,color:Nt,opacity:.05},{offset:.87,color:Nt,opacity:.15},{offset:.99,color:Nt,opacity:0}]}},F={extend:function(t,i){if(!t.exportVisual)throw Error("Mixin target has no exportVisual method defined.");t.exportSVG=this.exportSVG,t.exportImage=this.exportImage,t.exportPDF=this.exportPDF,i||(t.svg=this.svg,t.imageDataURL=this.imageDataURL)},exportSVG:function(t){return $.exportSVG(this.exportVisual(),t)},exportImage:function(t){return $.exportImage(this.exportVisual(t),t)},exportPDF:function(t){return $.exportPDF(this.exportVisual(),t)},svg:function(){if($.svg.Surface)return $.svg._exportGroup(this.exportVisual());throw Error("SVG Export failed. Unable to export instantiate kendo.drawing.svg.Surface")},imageDataURL:function(){var i,n,e;if(!X.support.canvas)return null;if($.canvas.Surface)return i=t("<div />").css({display:"none",width:this.element.width(),height:this.element.height()}).appendTo(document.body),n=new $.canvas.Surface(i),n.draw(this.exportVisual()),e=n._rootElement.toDataURL(),n.destroy(),i.remove(),e;throw Error("Image Export failed. Unable to export instantiate kendo.drawing.canvas.Surface")}},H=function(t){this.closed=t},H.prototype=H.fn={WEIGHT:.333,EXTREMUM_ALLOWED_DEVIATION:.01,process:function(t){var i,n,e,o,r,a,s,l,u,c,h=this,p=h.closed,f=t.slice(0),d=f.length,x=[];if(d>2&&(h.removeDuplicates(0,f),d=f.length),d<2||2==d&&f[0].equals(f[1]))return x;for(i=f[0],n=f[1],e=f[2],x.push(new $.Segment(i));i.equals(f[d-1]);)p=!0,f.pop(),d--;if(2==d)return s=h.tangent(i,n,Ft,Ht),Y(x).controlOut(h.firstControlPoint(s,i,n,Ft,Ht)),x.push(new $.Segment(n,h.secondControlPoint(s,i,n,Ft,Ht))),x;for(p?(i=f[d-1],n=f[0],e=f[1],o=h.controlPoints(i,n,e),r=o[1],a=o[0]):(s=h.tangent(i,n,Ft,Ht),r=h.firstControlPoint(s,i,n,Ft,Ht)),l=r,u=0;u<=d-3;u++)h.removeDuplicates(u,f),d=f.length,u+3<=d&&(i=f[u],n=f[u+1],e=f[u+2],o=h.controlPoints(i,n,e),Y(x).controlOut(l),l=o[1],c=o[0],x.push(new $.Segment(n,c)));return p?(i=f[d-2],n=f[d-1],e=f[0],o=h.controlPoints(i,n,e),Y(x).controlOut(l),x.push(new $.Segment(n,o[0])),Y(x).controlOut(o[1]),x.push(new $.Segment(e,a))):(s=h.tangent(n,e,Ft,Ht),Y(x).controlOut(l),x.push(new $.Segment(e,h.secondControlPoint(s,n,e,Ft,Ht)))),x},removeDuplicates:function(t,i){for(;i[t+1]&&(i[t].equals(i[t+1])||i[t+1].equals(i[t+2]));)i.splice(t+1,1)},invertAxis:function(t,i,n){var e,o,r=this,a=!1;return t.x===i.x?a=!0:i.x===n.x?(i.y<n.y&&t.y<=i.y||n.y<i.y&&i.y<=t.y)&&(a=!0):(e=r.lineFunction(t,i),o=r.calculateFunction(e,n.x),t.y<=i.y&&n.y<=o||i.y<=t.y&&n.y>=o||(a=!0)),a},isLine:function(t,i,n){var e=this,o=e.lineFunction(t,i),r=e.calculateFunction(o,n.x);return t.x==i.x&&i.x==n.x||h(r,1)===h(n.y,1)},lineFunction:function(t,i){var n=(i.y-t.y)/(i.x-t.x),e=t.y-n*t.x;return[e,n]},controlPoints:function(t,i,n){var e,o,r,a,s,l,u=this,c=Ft,h=Ht,p=!1,f=!1,d=u.EXTREMUM_ALLOWED_DEVIATION;return u.isLine(t,i,n)?e=u.tangent(t,i,Ft,Ht):(o={x:u.isMonotonicByField(t,i,n,Ft),y:u.isMonotonicByField(t,i,n,Ht)},o.x&&o.y?(e=u.tangent(t,n,Ft,Ht),p=!0):(u.invertAxis(t,i,n)&&(c=Ht,h=Ft),o[c]?e=0:(s=n[h]<t[h]&&t[h]<=i[h]||t[h]<n[h]&&i[h]<=t[h]?u.sign((n[h]-t[h])*(i[c]-t[c])):-u.sign((n[c]-t[c])*(i[h]-t[h])),e=d*s,f=!0))),a=u.secondControlPoint(e,t,i,c,h),f&&(l=c,c=h,h=l),r=u.firstControlPoint(e,i,n,c,h),p&&(u.restrictControlPoint(t,i,a,e),u.restrictControlPoint(i,n,r,e)),[a,r]},sign:function(t){return t<=0?-1:1},restrictControlPoint:function(t,i,n,e){t.y<i.y?i.y<n.y?(n.x=t.x+(i.y-t.y)/e,n.y=i.y):n.y<t.y&&(n.x=i.x-(i.y-t.y)/e,n.y=t.y):n.y<i.y?(n.x=t.x-(t.y-i.y)/e,n.y=i.y):t.y<n.y&&(n.x=i.x+(t.y-i.y)/e,n.y=t.y)},tangent:function(t,i,n,e){var o,r=i[n]-t[n],a=i[e]-t[e];return o=0===r?0:a/r},isMonotonicByField:function(t,i,n,e){return n[e]>i[e]&&i[e]>t[e]||n[e]<i[e]&&i[e]<t[e]},firstControlPoint:function(t,i,n,e,o){var r=this,a=i[e],s=n[e],l=(s-a)*r.WEIGHT;return r.point(a+l,i[o]+l*t,e,o)},secondControlPoint:function(t,i,n,e,o){var r=this,a=i[e],s=n[e],l=(s-a)*r.WEIGHT;return r.point(s-l,n[o]-l*t,e,o)},point:function(t,i,n,e){var o=new Z.Point;return o[n]=t,o[e]=i,o},calculateFunction:function(t,i){var n,e=0,o=t.length;for(n=0;n<o;n++)e+=Math.pow(i,n)*t[n];return e}},b._element=document.createElement("span"),lt(X.dataviz,{AXIS_LABEL_CLICK:ut,COORD_PRECISION:ft,DEFAULT_PRECISION:bt,DEFAULT_WIDTH:wt,DEFAULT_HEIGHT:vt,DEFAULT_FONT:gt,INITIAL_ANIMATION_DURATION:St,NOTE_CLICK:Bt,NOTE_HOVER:It,CLIP:dt,Axis:U,AxisLabel:E,Box2D:S,BoxElement:C,ChartElement:P,CurveProcessor:H,ExportMixin:F,FloatElement:B,LogarithmicAxis:N,Note:O,NumericAxis:G,Point2D:Wt,Ring:A,RootElement:z,Sector:V,ShapeBuilder:R,ShapeElement:D,Text:L,TextBox:I,Title:j,alignPathToPixel:w,autoFormat:m,autoMajorUnit:r,boxDiff:s,dateComparer:v,decodeEntities:b,eventTargetElement:_,getSpacing:n,inArray:l,interpolateValue:d,mwDelta:y,rectToBox:k,rotatePoint:a,round:h,ceil:u,floor:c})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(t,i,n){(n||i)()});
//# sourceMappingURL=kendo.dataviz.core.min.js.map
