text: /*
  * Kendo UI Complete v2014.1.318 (http://kendoui.com)
  * Copyright 2014 Telerik AD. All rights reserved.
  *
  * Kendo UI Complete 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(e,define){define(["./kendo.dataviz.core.min"],e)}(function(){return function(){function e(e){return(e+540)%360*w}function t(e){return r.round(e)+.5}function n(e,t){var n,i,r,o=t.length;for(n=0;o>n;n++)i=t[n],r=new l(i.color),e.addColorStop(i.offset,"rgba("+r.r+","+r.g+","+r.b+","+i.opacity+")")}var i=jQuery,r=Math,o=window.kendo,a=o.dataviz,s=a.Box2D,l=a.Color,d=a.Point2D,c=a.Ring,u=a.ViewBase,p=a.ViewElement,f=o.deepExtend,h=a.round,g=a.renderTemplate,m="butt",v=a.COORD_PRECISION,_=a.DASH_ARRAYS,k=a.DEFAULT_WIDTH,b=a.DEFAULT_HEIGHT,y=a.DEFAULT_FONT,w=r.PI/180,x=2*r.PI,C="linear",T="radial",S="solid",D="square",A=g("<canvas width='#= d.options.width #px' height='#= d.options.height #px' style='position: relative; display: #= d.display #;'></canvas>"),E=u.extend({init:function(e){var t=this;u.fn.init.call(t,e),t.display=t.options.inline?"inline":"block"},options:{width:k,height:b},renderTo:function(e){var t,n=this,r=n.options;return t=e.firstElementChild,t&&"canvas"===t.tagName.toLowerCase()?(i(t).siblings().remove(),t.width=r.width,t.height=r.height):(e.innerHTML=A(this),t=e.firstElementChild),n._viewElement=t,n.renderContent(t.getContext("2d")),t},replace:function(e){var t,n=this,i=n._viewElement,r=e.box;i&&r&&(t=i.getContext("2d"),t.clearRect(r.x1,r.y1,r.width(),r.height()),e.getViewElements(n)[0].render(t))},renderContent:function(e){var t,n=this,i=n.sortChildren(),r=i.length,o=n.clipPath;for(o&&(e.save(),o.render(e)),t=0;r>t;t++)i[t].render(e);o&&e.restore()},applyDefinitions:function(e){return e.options.clipPathId&&(e.clipPath=this.definitions[e.options.clipPathId]),e},createGroup:function(e){return this.applyDefinitions(new I(e))},createClipPath:function(e,t){var n=this,i=n.definitions[e];return i||(i=new F({id:e}),i.children.push(n.createRect(t,{fill:"none"})),n.definitions[e]=i),i},createText:function(e,t){return new B(e,t)},createRect:function(e,t){return new H(e.points(),!0,this.setDefaults(t))},createCubicCurve:function(e,t,n){return new P(e,t,n)},createLine:function(e,t,n,i,r){return new H([new d(e,t),new d(n,i)],!1,this.setDefaults(r))},createMultiLine:function(e,t){return this.decorate(new R(e,!1,this.setDefaults(t)))},createPolyline:function(e,t,n){return new H(e,t,this.setDefaults(n))},createCircle:function(e,t,n){return new O(e,t,n)},createSector:function(e,t){return new M(e,t)},createRing:function(e,t){return new M(e,t)},createPin:function(e,t){return new L(e,t)}}),F=p.extend({render:function(e){var t=this,n=t.children,i=0,r=n.length;for(e.beginPath();r>i;i++)n[i].renderPoints(e);e.clip()}}),I=p.extend({render:function(e){this.renderContent(e)},renderContent:E.fn.renderContent}),z=p.extend({options:{fillOpacity:1,strokeOpacity:1,strokeLineCap:D},render:function(e){var t=this,n=t.options;e.save(),e.beginPath(),t.renderPoints(e),t.setLineDash(e),t.setLineCap(e),n.fill&&"transparent"!==n.fill&&(t.setFill(e),e.globalAlpha=n.fillOpacity,e.fill()),n.stroke&&n.strokeWidth&&(e.strokeStyle=n.stroke,e.lineWidth=n.strokeWidth,e.lineJoin="round",e.globalAlpha=n.strokeOpacity,e.stroke()),t.renderOverlay(e),e.restore()},setLineDash:function(e){var t,n=this.options.dashType;n=n?n.toLowerCase():null,n&&n!=S&&(t=_[n],e.setLineDash?e.setLineDash(t):(e.mozDash=t,e.webkitLineDash=t))},setLineCap:function(e){var t=this.options,n=t.dashType;e.lineCap=n&&n!==S?m:t.strokeLineCap},setFill:function(e){var t=this.options,n=t.fill;e.fillStyle=n},renderOverlay:function(e){var t,n,i=this.options,r=i.overlay;r&&r.gradient&&(n=a.Gradients[r.gradient],t=this.buildGradient(e,n),t&&(e.fillStyle=t,e.fill()))},renderPoints:i.noop,buildGradient:i.noop}),P=z.extend({init:function(e,t,n){var i=this;z.fn.init.call(i,t),i.points=e,i.areaPoints=n},renderPoints:function(e){var t,n=this,i=n.areaPoints,r=n.points;for(e.moveTo(r[0].x,r[0].y),t=1;r.length>t;t+=3)e.bezierCurveTo(h(r[t].x,v),h(r[t].y,v),h(r[t+1].x,v),h(r[t+1].y,v),h(r[t+2].x,v),h(r[t+2].y,v));if(i&&i.length){for(t=0;i.length>t;t++)e.lineTo(h(i[t].x,v),h(i[t].y,v));e.closePath()}}}),H=z.extend({init:function(e,t,n){var i=this;z.fn.init.call(i,n),i.points=e,i.closed=t},options:{rotation:[0,0,0]},renderPoints:function(e){var t=this,n=t.points;t._renderPoints(e,n)},_renderPoints:function(e,n){var i,r,o=this,a=o.options,s=a.strokeWidth,l=a.align!==!1&&s&&s%2!==0,d=l?t:h;if(0!==n.length&&(a.fill||a.stroke)){for(0!==a.rotation[0]&&o.setRotation(e),r=n[0],e.moveTo(d(r.x,v),d(r.y,v)),i=1;n.length>i;i++)r=n[i],e.lineTo(d(r.x,v),d(r.y,v));o.closed&&e.closePath()}},buildGradient:function(e,t){var i,r=this.bbox(),o=this.options.overlay.rotation,a=r.x2,s=r.y1;return 90===o&&(a=r.x1,s=r.y2),t&&t.type===C&&(i=e.createLinearGradient(r.x1,r.y1,a,s),n(i,t.stops)),i},bbox:function(){var e,t=this.points,n=new s;if(t.length>0)for(n.move(t[0].x,t[0].y),e=1;t.length>e;e++)n.wrapPoint(t[e]);return n},setRotation:function(e){var t=this,n=t.options,i=n.rotation,r=i[1],o=i[2];e.translate(r,o),e.rotate(i[0]*w),e.translate(-r,-o)}}),R=H.extend({renderPoints:function(e){var t,n=this,i=n.points;for(t=0;i.length>t;t++)n._renderPoints(e,i[t])}}),M=z.extend({init:function(e,t){var n=this;z.fn.init.call(n,t),n.config=e||{}},options:{strokeLineCap:D},renderPoints:function(t){var n,i,o=this,a=o.config,s=a.startAngle,l=a.angle+s,d=r.max(a.r,0),c=r.max(a.ir,0),u=a.c,p=e(s),f=e(l);p===f&&(s=0,l=360,p=0,f=2*Math.PI),n=a.point(s),i=a.point(l,!0),t.moveTo(n.x,n.y),t.arc(u.x,u.y,d,p,f),c>0?(t.lineTo(i.x,i.y),t.arc(u.x,u.y,c,f,p,!0)):t.lineTo(u.x,u.y)},buildGradient:function(e,t){var i,r=this.config,o=r.c;return t&&t.type===T&&(i=e.createRadialGradient(o.x,o.y,r.ir,o.x,o.y,r.r),n(i,t.stops)),i}}),O=z.extend({init:function(e,t,n){var i=this;z.fn.init.call(i,n),i.config=new c(e,0,t)},renderPoints:function(e){var t=this.config,n=t.c;e.arc(n.x,n.y,t.r,0,x,!1)},buildGradient:M.fn.buildGradient}),L=z.extend({init:function(e,t){var n=this;z.fn.init.call(n,t),n.config=e},renderPoints:function(t){var n=this,i=n.config,o=i.radius,a=r.PI/180,s=i.arcAngle,l=i.height-o*(1-r.cos(s*a/2)),d=i.origin,c=n.options.rotation;t.translate(c[1],c[2]),t.rotate(e(c[0])),t.translate(c[1]-d.x,c[2]-d.y),t.rotate(e(-n.config.rotation)),t.moveTo(0,0),t.arc(0,-l,o,e(90-s/2),e(90+s/2)),t.lineTo(0,0),t.closePath()}}),B=p.extend({init:function(e,t){var n=this;p.fn.init.call(n,t),n.content=e},options:{x:0,y:0,baseline:0,font:y,size:{width:0,height:0},fillOpacity:1},render:function(e){var t=this,n=t.options,i=t.content,r=n.x,o=n.y+n.baseline;e.save(),0!==n.rotation&&t.setRotation(e),e.font=n.font,e.fillStyle=n.color,e.globalAlpha=n.fillOpacity,e.fillText(i,r,o),e.restore()},setRotation:function(e){var t=this,n=t.options,i=n.size,r=n.x+i.normalWidth/2,o=n.y+i.normalHeight/2,a=n.x+i.width/2,s=n.y+i.height/2,l=a-r,d=s-o;e.translate(l,d),e.translate(r,o),e.rotate(n.rotation*w),e.translate(-r,-o)}});a.supportsCanvas()&&a.ViewFactory.current.register("canvas",E,30),f(a,{CanvasCircle:O,CanvasClipPath:F,CanvasGroup:I,CanvasLine:H,CanvasMultiLine:R,CanvasPath:z,CanvasRing:M,CanvasText:B,CanvasView:E})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,t){t()});