text: /** 
   * Kendo UI v2018.1.221 (http://www.telerik.com/kendo-ui)                                                                                                                                               
   * Copyright 2018 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(e,define){define("util/text-metrics.min",["kendo.core.min"],e)}(function(){!function(e){function n(e){return(e+"").replace(s,l)}function t(e){var n,t=[];for(n in e)t.push(n+e[n]);return t.sort().join("")}function i(e){var n,t=2166136261;for(n=0;n<e.length;++n)t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24),t^=e.charCodeAt(n);return t>>>0}function o(){return{width:0,height:0,baseline:0}}function r(e,n,t){return d.current.measure(e,n,t)}var a,s,l,c,p,d;window.kendo.util=window.kendo.util||{},a=kendo.Class.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,n){var t=this._map,i={key:e,value:n};t[e]=i,this._head?(this._tail.newer=i,i.older=this._tail,this._tail=i):this._head=this._tail=i,this._length>=this._size?(t[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},get:function(e){var n=this._map[e];if(n)return n===this._head&&n!==this._tail&&(this._head=n.newer,this._head.older=null),n!==this._tail&&(n.older&&(n.older.newer=n.newer,n.newer.older=n.older),n.older=this._tail,n.newer=null,this._tail.newer=n,this._tail=n),n.value}}),s=/\r?\n|\r|\t/g,l=" ",c={baselineMarkerSize:1},"undefined"!=typeof document&&(p=document.createElement("div"),p.style.cssText="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: pre!important;"),d=kendo.Class.extend({init:function(n){this._cache=new a(1e3),this.options=e.extend({},c,n)},measure:function(e,r,a){var s,l,c,d,u,h,f,g,m;if(void 0===a&&(a={}),!e)return o();if(s=t(r),l=i(e+s),c=this._cache.get(l))return c;d=o(),u=a.box||p,h=this._baselineMarker().cloneNode(!1);for(f in r)g=r[f],void 0!==g&&(u.style[f]=g);return m=a.normalizeText!==!1?n(e):e+"",u.textContent=m,u.appendChild(h),document.body.appendChild(u),m.length&&(d.width=u.offsetWidth-this.options.baselineMarkerSize,d.height=u.offsetHeight,d.baseline=h.offsetTop+this.options.baselineMarkerSize),d.width>0&&d.height>0&&this._cache.put(l,d),u.parentNode.removeChild(u),d},_baselineMarker:function(){var e=document.createElement("div");return e.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",e}}),d.current=new d,kendo.deepExtend(kendo.util,{LRUCache:a,TextMetrics:d,measureText:r,objectKey:t,hashKey:i,normalizeText:n})}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("kendo.dataviz.gauge.min",["kendo.dataviz.core.min","kendo.drawing.min","kendo.dataviz.themes.min"],e)}(function(){return function(e,n){function t(e,n){var t=e.box,i=e.children[0].box,r=n.border||{},a=n.background||"",s=new S,l=R.fromRect(new j([t.x1,t.y1],[t.width(),t.height()]),{stroke:{}}),c=new P(e.text,new z(i.x1,i.y1),{font:n.font,fill:{color:n.color}}),p=o(c.bbox().clone(),n.padding),d=R.fromRect(p,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:a}});return s.append(l),s.append(d),s.append(c),s}function i(e,n,t){var i=v(e.from)?e.from:O,o=v(e.to)?e.to:D;return e.from=l.max(l.min(o,i),n),e.to=l.min(l.max(o,i),t),e}function o(e,n){var t=e.getOrigin(),i=e.getSize(),o=k(n);return e.setOrigin([t.x-o.left,t.y-o.top]),e.setSize([i.width+(o.left+o.right),i.height+(o.top+o.bottom)]),e}function r(e,n){var t=k(n);return t.left=-t.left,t.top=-t.top,t.right=-t.right,t.bottom=-t.bottom,o(e,t)}var a,s,l=Math,c=window.kendo,p=c.ui.Widget,d=c.deepExtend,u=c.dataviz,h=u.autoMajorUnit,f=u.ChartElement,g=u.NumericAxis,m=u.Axis,w=u.Box2D,x=c.Class,v=u.defined,b=u.isNumber,y=u.interpolateValue,k=u.getSpacing,_=u.round,A=u.geometry,T=u.drawing,z=A.Point,S=T.Group,R=T.Path,j=A.Rect,P=T.Text,U=150,B=250,C="arrow",X="arrowPointer",E="barPointer",M="#000",L=.05,V=u.COORD_PRECISION,D=Number.MAX_VALUE,O=-Number.MAX_VALUE,Y=200,N=.5,G=200,F=60,I=60,J=5,K=l.PI/180,Q=180,W="inside",H="linear",q="needle",Z="outside",$="radialPointer",ee="x",ne="y",te=x.extend({init:function(e,n){var t=this,i=e.options;f.fn.init.call(t,n),n=t.options,n.fill=n.color,t.scale=e,n.value=v(n.value)?l.min(l.max(n.value,i.min),i.max):i.min},options:{color:M},value:function(e){var t=this,i=t.options,o=i.value,r=t.scale.options;return 0===arguments.length?o:(i._oldValue=i._oldValue!==n?i.value:r.min,i.value=l.min(l.max(e,r.min),r.max),t.elements&&t.repaint(),n)}}),ie=te.extend({options:{shape:q,cap:{size:L},arrow:{width:16,height:14},animation:{type:$,duration:U}},setRadius:function(e){var n=this;e&&(n.elements.clear(),n.render(n.parent,n.center,e))},setAngle:function(e){this.elements.transform(A.transform().rotate(e,this.center))},repaint:function(){var e=this,n=e.scale,t=e.options,i=n.slotAngle(t._oldValue),o=n.slotAngle(t.value);t.animation.transitions===!1?e.setAngle(o):new ue(e.elements,d(t.animation,{oldAngle:i,newAngle:o})).play()},render:function(){var e=this,n=e.scale,t=n.arc.center,i=e.options,o=new S;return i.animation!==!1&&d(i.animation,{startAngle:0,center:t,reverse:n.options.reverse}),i.shape===q?o.append(e._renderNeedle(),e._renderCap()):o.append(e._renderArrow()),e.elements=o,e.setAngle(K),o},reflow:function(e){var n=this,t=n.center=e.center,i=n.radius=e.getRadiusX(),o=n.capSize=Math.round(i*n.options.cap.size);n.bbox=j.fromPoints(new z(t.x-o,t.y-o),new z(t.x+o,t.y+o))},_renderNeedle:function(){var e=this,n=e.options,t=e.scale.options.minorTicks.size,i=e.center,o=n.color,r=new R({fill:{color:o},stroke:{color:o,width:N}});return r.moveTo(i.x+e.radius-t,i.y).lineTo(i.x,i.y-e.capSize/2).lineTo(i.x,i.y+e.capSize/2).close(),r},_renderCap:function(){var e=this,n=e.options,t=n.cap.color||n.color,i=new A.Circle(e.center,e.capSize),o=new T.Circle(i,{fill:{color:t},stroke:{color:t}});return o}}),oe=g.extend({init:function(e){var n=this;n.options=d({},n.options,e),n.options.majorUnit=n.options.majorUnit||h(n.options.min,n.options.max),n.options.minorUnit=n.options.minorUnit||n.options.majorUnit/10,m.fn.init.call(n,n.options)},options:{min:0,max:100,majorTicks:{size:15,align:W,color:M,width:N,visible:!0},minorTicks:{size:10,align:W,color:M,width:N,visible:!0},startAngle:-30,endAngle:210,labels:{position:W,padding:2}},render:function(e,n){var t=this,i=t.renderArc(e,n);t.bbox=i.bbox(),t.labelElements=t.renderLabels(),t.ticks=t.renderTicks(),t.ranges=t.renderRanges()},reflow:function(e){var t=this,i=e.center(),o=l.min(e.height(),e.width())/2;return t.bbox===n?t.render(i,o):(t.bbox=t.arc.bbox(),t.radius(t.arc.getRadiusX()),t.repositionRanges(),t.renderLabels(),n)},slotAngle:function(e){var n,t=this.options,i=t.startAngle,o=t.reverse,r=t.endAngle-i,a=t.min,s=t.max;return n=o?t.endAngle-(e-a)/(s-a)*r:(e-a)/(s-a)*r+i,n+Q},renderLabels:function(){var e,i,o,r,a,s,c,p,d,h,f,g,m,w,x=this,v=x.options,b=v.majorTicks.size,y=x.arc.clone(),k=y.getRadiusX(),_=x.tickAngles(y,v.majorUnit),T=x.labels,R=T.length,P=v.labels,U=P.padding,B=.05*k,C=v.rangeSize=v.rangeSize||.1*k,X=v.ranges||[],E=new S;for(x.options.rangeDistance!==n?B=x.options.rangeDistance:x.options.rangeDistance=B,P.position===W&&(k-=b,X.length&&x.labelElements===n&&(k-=C+B),y.setRadiusX(k).setRadiusY(k)),c=0;c<R;c++)a=T[c],e=a.box.width()/2,i=a.box.height()/2,r=_[c],o=(r-Q)*K,h=P.position===W,s=y.pointAt(r),p=s.x+l.cos(o)*(e+U)*(h?1:-1),d=s.y+l.sin(o)*(i+U)*(h?1:-1),a.reflow(new u.Box2D(p-e,d-i,p+e,d+i)),g=new z(a.box.x1,a.box.y1),x.labelElements===n?(f=t(a,v.labels),E.append(f)):(f=x.labelElements.children[c],m=f.bbox().origin,w=f.transform()||A.transform(),w.translate(g.x-m.x,g.y-m.y),f.transform(w)),x.bbox=j.union(x.bbox,f.bbox());return E},repositionRanges:function(){var e,n,t,i=this,o=i.ranges.children,r=i.options.rangeSize,a=i.options.rangeDistance;if(o.length>0){for(e=i.getRangeRadius(),i.options.labels.position===W&&(e+=r+a),n=e+r/2,t=0;t<o.length;t++)o[t]._geometry.setRadiusX(n).setRadiusY(n);i.bbox=j.union(i.bbox,i.ranges.bbox())}},renderRanges:function(){var e,n,t,i,o,r,a=this,s=a.arc,l=new S,c=a.rangeSegments(),p=c.length,d=a.options.reverse,u=a.options.rangeSize,h=a.options.rangeDistance;if(p)for(i=a.getRangeRadius(),a.radius(a.radius()-u-h),r=0;r<p;r++)t=c[r],e=a.slotAngle(t[d?"to":"from"]),n=a.slotAngle(t[d?"from":"to"]),n-e!==0&&(o=new A.Arc(s.center,{radiusX:i+u/2,radiusY:i+u/2,startAngle:e,endAngle:n}),l.append(new T.Arc(o,{stroke:{width:u,color:t.color,opacity:t.opacity}})));return l},rangeSegments:function(){function e(e,n,t,i){return{from:e,to:n,color:t,opacity:i}}var n,t,o,r,a,s=this,l=s.options,c=l.ranges||[],p=c.length,d=l.rangePlaceholderColor,u=[],h=l.min,f=l.max;if(p)for(u.push(e(h,f,d)),r=0;r<p;r++)for(n=i(c[r],h,f),t=u.length,a=0;a<t;a++)if(o=u[a],o.from<=n.from&&n.from<=o.to){u.push(e(n.from,n.to,n.color,n.opacity)),o.from<=n.to&&n.to<=o.to&&u.push(e(n.to,o.to,d,n.opacity)),o.to=n.from;break}return u},getRangeRadius:function(){var e,n=this,t=n.options,i=t.majorTicks.size,o=t.rangeSize,r=t.rangeDistance,a=n.arc;return e=t.labels.position===Z?a.getRadiusX()-i-r-o:a.getRadiusX()-o},renderArc:function(e,n){var t=this,i=t.options,o=t.arc=new A.Arc(e,{radiusX:n,radiusY:n,startAngle:i.startAngle+Q,endAngle:i.endAngle+Q});return o},renderTicks:function(){function e(e,n,t,i){var o,r,a,s=new S,l=e.center,c=e.getRadiusX(),p=i.visible;if(p)for(o=0;o<n.length;o++)r=e.pointAt(n[o]),a=new z(l.x+c-i.size,l.y).rotate(n[o],l),s.append(new R({stroke:{color:i.color,width:i.width}}).moveTo(r).lineTo(a));return s}var n=this,t=n.arc,i=n.options,o=i.labels.position,r=new S,a=i.majorTicks.size,s=i.minorTicks.size,l=t.clone(),c=l.getRadiusX();return n.majorTickAngles=n.tickAngles(t,i.majorUnit),n.majorTicks=e(l,n.majorTickAngles,i.majorUnit,i.majorTicks),r.append(n.majorTicks),n._tickDifference=a-s,o===Z&&l.setRadiusX(c-a+s).setRadiusY(c-a+s),n.minorTickAngles=n.normalizeTickAngles(n.tickAngles(t,i.minorUnit)),n.minorTicks=e(l,n.minorTickAngles,i.minorUnit,i.minorTicks,i.majorUnit),r.append(n.minorTicks),r},normalizeTickAngles:function(e){var n,t=this,i=t.options,o=i.majorUnit/i.minorUnit;for(n=e.length-1;n>=0;n--)n%o===0&&e.splice(n,1);return e},tickAngles:function(e,n){var t,i=this,o=i.options,r=o.reverse,a=o.max-o.min,s=e.endAngle-e.startAngle,l=e.startAngle,c=a/n,p=s/c,d=[];for(r&&(l+=s,p=-p),t=0;t<c;t++)d.push(_(l,V)),l+=p;return _(l)<=e.endAngle&&d.push(l),d},radius:function(e){var t=this;return e?(t.arc.setRadiusX(e).setRadiusY(e),t.repositionTicks(t.majorTicks.children,t.majorTickAngles),t.repositionTicks(t.minorTicks.children,t.minorTickAngles,!0),n):t.arc.getRadiusX()},repositionTicks:function(e,n,t){var i,o,r,a,s,l=this,c=t?l._tickDifference||0:0,p=l.arc,d=p.getRadiusX();for(t&&l.options.labels.position===Z&&0!==c&&(p=l.arc.clone(),p.setRadiusX(d-c).setRadiusY(d-c)),i=0;i<e.length;i++)o=p.pointAt(n[i]),r=e[i].segments,a=o.x-r[0].anchor().x,s=o.y-r[0].anchor().y,e[i].transform((new A.Transformation).translate(a,s))}}),re=p.extend({init:function(n,t){var i,o,r,a,s,l=this,h=u.ui.themes||{};if(c.destroy(n),e(n).empty(),p.fn.init.call(l,n),l.wrapper=l.element,l._originalOptions=d({},t),i=d({},l.options,t),r=i.theme,a=h[r]||h[r.toLowerCase()],o=r&&a?a.gauge:{},l.options=d({},o,i),e.isArray(i.pointer))for(s=0;s<i.pointer.length;s++)l.options.pointer[s]=d({},o.pointer,i.pointer[s]);l.element.addClass("k-gauge"),l.surface=l._createSurface(),l.redraw()},options:{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}},destroy:function(){this.surface.destroy(),p.fn.destroy.call(this)},value:function(e){var t=this,i=t.pointers[0];return 0===arguments.length?i.value():(i.value(e),t._setValueOptions(e),n)},_draw:function(){var e=this.surface;e.clear(),e.draw(this._visuals)},exportVisual:function(){return this._visuals},allValues:function(n){var t,i=this,o=i.pointers,r=[];if(0===arguments.length){for(t=0;t<o.length;t++)r.push(o[t].value());return r}if(e.isArray(n))for(t=0;t<n.length;t++)b(n[t])&&o[t].value(n[t]);i._setValueOptions(n)},_setValueOptions:function(e){var n,t=[].concat(this.options.pointer);for(e=[].concat(e),n=0;n<e.length;n++)t[n].value=e[n]},_resize:function(){var e,n=this,t=n.options.transitions;for(n.options.transitions=!1,e=0;e<n.pointers.length;e++)n.pointers[e].options.animation.transitions=!1;for(n.redraw(),n.options.transitions=t,e=0;e<n.pointers.length;e++)n.pointers[e].options.animation.transitions=t},redraw:function(){var e,n=this,t=d(n._getSize(),n.options.gaugeArea),i=new j([0,0],[t.width,t.height]);n.surface.clear(),n.gaugeArea=n._createGaugeArea(),n.surface.element.css({width:t.width,height:t.height}),n._createModel(),e=r(i.bbox(),n._gaugeAreaMargin),n.reflow(e)},_createGaugeArea:function(){var e,n=this,t=n.options.gaugeArea,i=n.surface.size(),o=t.border||{},a=new j([0,0],[i.width,i.height]);return n._gaugeAreaMargin=t.margin||J,o.width>0&&(a=r(a,o.width)),e=R.fromRect(a,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},_createSurface:function(){var n,t=this,i=t.options,o=t._getSize();return o=i.gaugeArea?d(o,i.gaugeArea):o,n=e("<div></div>").appendTo(t.element).css({width:o.width,height:o.height}),new T.Surface.create(n,{type:i.renderAs})},getSize:function(){return this._getSize()},_getSize:function(){var e=this,n=e.element,t=n.width(),i=n.height();return t||(t=G),i||(i=Y),{width:t,height:i}}}),ae=re.extend({init:function(e,n){var t=this;re.fn.init.call(t,e,n),c.notify(t,u.ui)},options:{name:"RadialGauge",transitions:!0,gaugeArea:{background:""}},reflow:function(e){var n,t=this,i=t.pointers;for(t.scale.reflow(e),t._initialPlotArea=t.scale.bbox,n=0;n<i.length;n++)i[n].reflow(t.scale.arc),t._initialPlotArea=j.union(t._initialPlotArea,i[n].bbox);t.fitScale(e),t.alignScale(e),t._buildVisual(t.gaugeArea,i,t.scale),t._draw()},_buildVisual:function(e,n,t){var i,o,r=new S;for(r.append(e),r.append(t.ticks),r.append(t.ranges),o=0;o<n.length;o++)i=n[o],i.render(),r.append(i.elements),i.value(i.options.value);r.append(t.labelElements),this._visuals=r},fitScale:function(e){for(var n,t,i,o,r,a=this,s=a.scale,c=s.arc,p=a._initialPlotArea,d=l.abs(a.getDiff(p,e)),u=_(d,V),h=_(-d,V),f=0,g=0;!(!(g++<100)||(f=r===i?f+1:0,f>5)||u!=o&&(n=a.getPlotBox(u,e,c),0<=n&&n<=2)||h!=o&&(i=a.getPlotBox(h,e,c),0<=i&&i<=2)||(o=n>0&&i>0?2*u:n<0&&i<0?2*h:_((u+h)/2||1,V),t=a.getPlotBox(o,e,c),0<=t&&t<=2));)r=i,t>0?(h=o,i=t):(u=o,n=t)},getPlotBox:function(e,n,t){var i,o=this,r=o.scale,a=o.pointers,s=t.getRadiusX();for(t=t.clone(),t.setRadiusX(s+e).setRadiusY(s+e),r.arc=t,r.reflow(n),o.plotBbox=r.bbox,i=0;i<a.length;i++)a[i].reflow(t),o.plotBbox=j.union(o.plotBbox,a[i].bbox);return o.getDiff(o.plotBbox,n)},getDiff:function(e,n){return l.min(n.width()-e.width(),n.height()-e.height())},alignScale:function(e){var n,t=this,i=t.plotBbox.center(),o=e.center(),r=i.x-o.x,a=i.y-o.y,s=t.scale,l=t.pointers;for(s.arc.center.x-=r,s.arc.center.y-=a,s.reflow(e),n=0;n<l.length;n++)l[n].reflow(s.arc),t.plotBbox=j.union(s.bbox,l[n].bbox)},_createModel:function(){var n,t,i=this,o=i.options,r=o.pointer,a=i.scale=new oe(o.scale);for(i.pointers=[],r=e.isArray(r)?r:[r],t=0;t<r.length;t++)n=new ie(a,d({},r[t],{animation:{transitions:o.transitions}})),i.pointers.push(n)}}),se=re.extend({init:function(e,n){var t=this;re.fn.init.call(t,e,n),c.notify(t,u.ui)},options:{name:"LinearGauge",transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}},reflow:function(e){var n,t=this,i=t.pointers,o=e.origin.x,r=e.origin.y,a=new u.Box2D(o,r,o+e.width(),r+e.height());for(t.scale.reflow(a),n=0;n<i.length;n++)i[n].reflow();t.bbox=t._getBox(a),t._alignElements(),t._shrinkElements(),t._buildVisual(),t._draw()},_buildVisual:function(){var e,n,t=this,i=new S,o=t.scale.render(),r=t.pointers;for(i.append(t.gaugeArea),i.append(o),n=0;n<r.length;n++)e=r[n],i.append(e.render()),e.value(e.options.value);t._visuals=i},_createModel:function(){var n,t,i,o=this,r=o.options,a=r.pointer,s=o.scale=new le(r.scale);for(o.pointers=[],a=e.isArray(a)?a:[a],i=0;i<a.length;i++)t=d({},a[i],{animation:{transitions:r.transitions}}),n=t.shape===C?new pe(s,t):new de(s,t),o.pointers.push(n)},_getSize:function(){var e=this,n=e.element,t=n.width(),i=n.height(),o=e.options.scale.vertical;return t||(t=o?F:G),i||(i=o?Y:I),{width:t,height:i}},_getBox:function(e){var n,t,i=this,o=i.scale,r=i.pointers,a=e.center(),s=r[0].box.clone().wrap(o.box);for(t=0;t<r.length;t++)s.wrap(r[t].box.clone());return o.options.vertical?(n=s.width()/2,s=new w(a.x-n,e.y1,a.x+n,e.y2)):(n=s.height()/2,s=new w(e.x1,a.y-n,e.x2,a.y+n)),s},_alignElements:function(){var e,n,t=this,i=t.scale,o=t.pointers,r=i.box,a=o[0].box.clone().wrap(i.box),s=t.bbox;for(n=0;n<o.length;n++)a.wrap(o[n].box.clone());for(i.options.vertical?(e=s.center().x-a.center().x,i.reflow(new w(r.x1+e,s.y1,r.x2+e,s.y2))):(e=s.center().y-a.center().y,i.reflow(new w(s.x1,r.y1+e,s.x2,r.y2+e))),n=0;n<o.length;n++)o[n].reflow(t.bbox)},_shrinkElements:function(){var e,n=this,t=n.scale,i=n.pointers,o=t.box.clone(),r=t.options.vertical?"y":"x",a=i[0].box;for(e=0;e<i.length;e++)a.wrap(i[e].box.clone());for(o[r+1]+=l.max(o[r+1]-a[r+1],0),o[r+2]-=l.max(a[r+2]-o[r+2],0),t.reflow(o),e=0;e<i.length;e++)i[e].reflow(n.bbox)}}),le=g.extend({init:function(e){var n=this;n.options=d({},n.options,e),n.options=d({},n.options,{labels:{mirror:n.options.mirror}}),n.options.majorUnit=n.options.majorUnit||h(n.options.min,n.options.max),m.fn.init.call(n,n.options),n.options.minorUnit=n.options.minorUnit||n.options.majorUnit/10},options:{min:0,max:50,majorTicks:{size:15,align:W,color:M,width:N,visible:!0},minorTicks:{size:10,align:W,color:M,width:N,visible:!0},line:{width:N},labels:{position:W,padding:2},mirror:!1,_alignLines:!1},render:function(){var e=this,n=e.elements=new S,t=e.renderLabels(),i=e.renderLine(),o=e.renderTicks(),r=e.renderRanges();return n.append(i,t,o,r),n},renderRanges:function(){var e,n,t,o,r,a=this,s=a.options,l=s.min,c=s.max,p=s.ranges||[],d=s.vertical,u=s.labels.mirror,h=new S,f=p.length,g=s.rangeSize||s.minorTicks.size/2;if(f)for(r=0;r<f;r++)e=i(p[r],l,c),n=a.getSlot(e.from,e.to),t=d?a.lineBox():n,o=d?n:a.lineBox(),d?t.x1-=g*(u?-1:1):o.y2+=g*(u?-1:1),h.append(R.fromRect(new j([t.x1,o.y1],[t.x2-t.x1,o.y2-o.y1]),{fill:{color:e.color,opacity:e.opacity},stroke:{}}));return h},renderLabels:function(){var e,n=this,i=n.options,o=n.labels,r=new S;for(e=0;e<o.length;e++)r.append(t(o[e],i.labels));return r},renderLine:function(){var e,n=this,t=n.options,i=t.line,o=n.lineBox(),r=new S;return i.width>0&&i.visible&&(e=new R({stroke:{color:i.color,dashType:i.dashType,width:i.width}}),e.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),r.append(e)),r},renderTicks:function(){function e(e,i){var a,l=e.length;if(i.visible)for(a=i.skip;a<l;a+=i.step)a%i.skipUnit!==0&&(s.tickX=r?o.x2:o.x2-i.size,s.tickY=r?o.y1-i.size:o.y1,s.position=e[a],t.append(n.renderAxisTick(s,i)))}var n=this,t=new S,i=n.options,o=n.lineBox(),r=i.labels.mirror,a=i.majorTicks.visible?i.majorUnit:0,s={_alignLines:i._alignLines,vertical:i.vertical};return e(n.getMajorTickPositions(),i.majorTicks),e(n.getMinorTickPositions(),d({},{skipUnit:a/i.minorUnit},i.minorTicks)),t},renderAxisTick:function(e,n){var t,i,o,r=e.tickX,a=e.tickY,s=e.position;return e.vertical?(t=new z(r,s),i=new z(r+n.size,s)):(t=new z(s,a),i=new z(s,a+n.size)),o=new R({stroke:{color:n.color,width:n.width}}).moveTo(t).lineTo(i)}}),ce=te.extend({init:function(e,n){var t=this;te.fn.init.call(t,e,n),t.options=d({track:{visible:v(n.track)}},t.options)},options:{shape:E,track:{border:{width:1}},color:M,border:{width:1},opacity:1,margin:k(3),animation:{type:E},visible:!0},reflow:function(){var e,n,t,i=this,o=i.options,r=i.scale,a=r.lineBox(),s=o.track.size||o.size,l=o.size/2,c=r.options.mirror,p=k(o.margin),d=r.options.vertical,u=d?p[c?"left":"right"]:p[c?"bottom":"top"];u=c?-u:u,d?(t=new w(a.x1+u,a.y1,a.x1+u,a.y2),c?t.x1-=s:t.x2+=s,o.shape!==E&&(n=new w(a.x2+u,a.y1-l,a.x2+u,a.y2+l),e=n)):(t=new w(a.x1,a.y1-u,a.x2,a.y1-u),c?t.y2+=s:t.y1-=s,o.shape!==E&&(n=new w(a.x1-l,a.y1-u,a.x2+l,a.y1-u),e=n)),i.trackBox=t,i.pointerRangeBox=n,i.box=e||t.clone().pad(o.border.width)},getElementOptions:function(){var e=this.options;return{fill:{color:e.color,opacity:e.opacity},stroke:v(e.border)?{color:e.border.width?e.border.color||e.color:"",width:e.border.width,dashType:e.border.dashType,opacity:e.opacity}:null}},_margin:function(){var e=this,n=e.options,t=e.scale,i=t.options.mirror,o=k(n.margin),r=t.options.vertical,a=r?o[i?"left":"right"]:o[i?"bottom":"top"];return a}}),pe=ce.extend({init:function(e,t){ce.fn.init.call(this,e,t),this.options.size===n&&(this.options.size=.6*this.scale.options.majorTicks.size)},pointerShape:function(){var e,n,t=this,i=t.options,o=t.scale,r=i.size,a=o.options.vertical,s=r/2,l=o.options.mirror?-1:1,c=o.options.reverse;return a?(e=c?"y2":"y1",n=[new z(0,0-s),new z(0-l*r,0),new z(0,0+s)]):(e=c?"x1":"x2",n=[new z(0-s,0),new z(0,0+l*r),new z(0+s,0)]),n},repaint:function(){var e=this,n=e.scale,t=e.options,i=new a(e.elements,d(t.animation,{vertical:n.options.vertical,mirror:n.options.mirror,margin:e._margin(t.margin),from:n.getSlot(t._oldValue),to:n.getSlot(t.value)}));t.animation.transitions===!1&&(i.options.duration=0),i.setup(),i.play()},render:function(){var e,n=this,t=n.options,i=new S,o=n.scale,r=n.getElementOptions(),a=n.pointerShape(t.value);return t.animation.type=X,i=new R({stroke:r.stroke,fill:r.fill}).moveTo(a[0]).lineTo(a[1]).lineTo(a[2]).close(),e=o.getSlot(t.value),i.transform(A.transform().translate(e.x1,e.y1)),n.elements=i,i}}),de=ce.extend({init:function(e,t){ce.fn.init.call(this,e,t),this.options.size===n&&(this.options.size=.3*this.scale.options.majorTicks.size)},pointerShape:function(e){var n,t,i,o=this,r=o.options,a=o.scale,s=a.options.vertical,l=a.options.mirror,c=l==s?-1:1,p=r.size*c,d=a.getSlot(a.options.min),u=a.getSlot(e),h=s?ne:ee,f=s?ee:ne,g=o._margin()*c,m=new z;return m[h]=d[h+"1"],m[f]=d[f+"1"],n=new z,n[h]=u[h+"1"],n[f]=u[f+"1"],s?(m.translate(g,0),n.translate(g,0)):(m.translate(0,g),n.translate(0,g)),t=n.clone(),i=m.clone(),s?(t.translate(p,0),i.translate(p,0)):(t.translate(0,p),i.translate(0,p)),[m,n,t,i]},repaint:function(){var e,n=this,t=n.scale,i=n.options,o=n.pointerShape(i.value),r=n.elements.children[0],a=n.pointerShape(i._oldValue);r.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close(),e=new s(r,d(i.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[a[1],a[2]],newPoints:[o[1],o[2]]})),i.animation.transitions===!1&&(e.options.duration=0),e.setup(),e.play()},render:function(){var e=this,n=new S,t=e.getElementOptions(),i=new R({stroke:t.stroke,fill:t.fill});return n.append(i),e.elements=n,n}}),ue=T.Animation.extend({init:function(e,n){T.Animation.fn.init.call(this,e,n),n=this.options,n.duration=l.max(l.abs(n.newAngle-n.oldAngle)/n.duration*1e3,1)},options:{easing:H,duration:U},step:function(e){var n=this,t=n.options,i=y(t.oldAngle,t.newAngle,e);n.element.transform(A.transform().rotate(i,t.center))}});T.AnimationFactory.current.register($,ue),a=T.Animation.extend({options:{easing:H,duration:B},setup:function(){var e,n,t=this.options,i=t.margin,o=t.from,r=t.to,a=t.vertical?"x1":"y1";t.mirror==t.vertical?(o[a]-=i,r[a]-=i):(o[a]+=i,r[a]+=i),e=this.fromScale=new z(o.x1,o.y1),n=this.toScale=new z(r.x1,r.y1),0!==t.duration&&(t.duration=l.max(e.distanceTo(n)/t.duration*1e3,1))},step:function(e){var n=y(this.fromScale.x,this.toScale.x,e),t=y(this.fromScale.y,this.toScale.y,e);this.element.transform(A.transform().translate(n,t))}}),T.AnimationFactory.current.register(X,a),s=T.Animation.extend({options:{easing:H,speed:B},setup:function(){var e=this.options,n=e.newPoints,t=e.oldPoints,i=this.axis=e.vertical?ne:ee,o=this.to=n[0][i],r=this.from=t[0][i];0!==e.duration&&(e.duration=l.max(l.abs(o-r)/e.speed*1e3,1)),this._set(r)},step:function(e){var n=y(this.from,this.to,e);this._set(n)},_set:function(e){var n="set"+this.axis.toUpperCase(),t=this.options.newPoints;t[0][n](e),t[1][n](e)}}),T.AnimationFactory.current.register(E,s),u.ui.plugin(ae),u.ui.plugin(se),u.ExportMixin.extend(re.fn),d(u,{Gauge:re,RadialPointer:ie,LinearPointer:ce,ArrowLinearPointer:pe,BarLinearPointer:de,LinearScale:le,RadialScale:oe,LinearGauge:se,RadialGauge:ae})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()});
  //# sourceMappingURL=kendo.dataviz.gauge.min.js.map
  