/** 
 * 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(e,define){define("util/main.min",["kendo.core.min"],e)}(function(){return function(){function e(e){return typeof e!==O}function n(e,n){var i=t(n);return P.round(e*i)/i}function t(e){return e?P.pow(10,e):1}function i(e,n,t){return P.max(P.min(e,t),n)}function o(e){return e*X}function r(e){return e/X}function a(e){return"number"==typeof e&&!isNaN(e)}function s(n,t){return e(n)?n:t}function l(e){return e*e}function c(e){var n,t=[];for(n in e)t.push(n+e[n]);return t.sort().join("")}function u(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 d(e){return u(c(e))}function p(e){var n,t=e.length,i=E,o=N;for(n=0;n<t;n++)o=P.max(o,e[n]),i=P.min(i,e[n]);return{min:i,max:o}}function h(e){return p(e).min}function f(e){return p(e).max}function g(e){return v(e).min}function m(e){return v(e).max}function v(e){var n,t,i,o=E,r=N;for(n=0,t=e.length;n<t;n++)i=e[n],null!==i&&isFinite(i)&&(o=P.min(o,i),r=P.max(r,i));return{min:o===E?void 0:o,max:r===N?void 0:r}}function w(e){if(e)return e[e.length-1]}function x(e,n){return e.push.apply(e,n),e}function b(e){return B.template(e,{useWithBlock:!1,paramName:"d"})}function y(n,t){return e(t)&&null!==t?" "+n+"='"+t+"' ":""}function k(e){var n,t="";for(n=0;n<e.length;n++)t+=y(e[n][0],e[n][1]);return t}function A(n){var t,i,o="";for(t=0;t<n.length;t++)i=n[t][1],e(i)&&(o+=n[t][0]+":"+i+";");if(""!==o)return o}function _(e){return"string"!=typeof e&&(e+="px"),e}function T(e){var n,t,i=[];if(e)for(n=B.toHyphens(e).split("-"),t=0;t<n.length;t++)i.push("k-pos-"+n[t]);return i.join(" ")}function z(n){return""===n||null===n||"none"===n||"transparent"===n||!e(n)}function S(e){for(var n={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"},t=[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],i="";e>0;)e<t[0]?t.shift():(i+=n[t[0]],e-=t[0]);return i}function R(e){var n,t,i,o,r;for(e=e.toLowerCase(),n={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3},t=0,i=0,o=0;o<e.length;++o){if(r=n[e.charAt(o)],!r)return null;t+=r,r>i&&(t-=2*i),i=r}return t}function j(e){var n=Object.create(null);return function(){var t,i="";for(t=arguments.length;--t>=0;)i+=":"+arguments[t];return i in n?n[i]:n[i]=e.apply(this,arguments)}}function C(e){for(var n,t,i=[],o=0,r=e.length;o<r;)n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<r?(t=e.charCodeAt(o++),56320==(64512&t)?i.push(((1023&n)<<10)+(1023&t)+65536):(i.push(n),o--)):i.push(n);return i}function M(e){return e.map(function(e){var n="";return e>65535&&(e-=65536,n+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),n+=String.fromCharCode(e)}).join("")}function U(e,n){function t(e,t){for(var i=[],o=0,r=0,a=0;o<e.length&&r<t.length;)n(e[o],t[r])<=0?i[a++]=e[o++]:i[a++]=t[r++];return o<e.length&&i.push.apply(i,e.slice(o)),r<t.length&&i.push.apply(i,t.slice(r)),i}return e.length<2?e.slice():function i(e){var n,o,r;return e.length<=1?e:(n=Math.floor(e.length/2),o=e.slice(0,n),r=e.slice(n),o=i(o),r=i(r),t(o,r))}(e)}var P=Math,B=window.kendo,L=B.deepExtend,X=P.PI/180,E=Number.MAX_VALUE,N=-Number.MAX_VALUE,O="undefined",V=Date.now;V||(V=function(){return(new Date).getTime()}),L(B,{util:{MAX_NUM:E,MIN_NUM:N,append:x,arrayLimits:p,arrayMin:h,arrayMax:f,defined:e,deg:r,hashKey:u,hashObject:d,isNumber:a,isTransparent:z,last:w,limitValue:i,now:V,objectKey:c,round:n,rad:o,renderAttr:y,renderAllAttr:k,renderPos:T,renderSize:_,renderStyle:A,renderTemplate:b,sparseArrayLimits:v,sparseArrayMin:g,sparseArrayMax:m,sqr:l,valueOrDefault:s,romanToArabic:R,arabicToRoman:S,memoize:j,ucs2encode:M,ucs2decode:C,mergeSort:U}}),B.drawing.util=B.util,B.dataviz.util=B.util}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("util/text-metrics.min",["kendo.core.min","util/main.min"],e)}(function(){!function(e){function n(){return{width:0,height:0,baseline:0}}function t(e,n,t){return d.current.measure(e,n,t)}function i(e,n){var t=[];if(e.length>0&&document.fonts){try{t=e.map(function(e){return document.fonts.load(e)})}catch(i){r.logToConsole(i)}Promise.all(t).then(n,n)}else n()}var o=document,r=window.kendo,a=r.Class,s=r.util,l=s.defined,c=a.extend({init:function(e){this._size=e,this._length=0,this._map={}},put:function(e,n){var t=this,i=t._map,o={key:e,value:n};i[e]=o,t._head?(t._tail.newer=o,o.older=t._tail,t._tail=o):t._head=t._tail=o,t._length>=t._size?(i[t._head.key]=null,t._head=t._head.newer,t._head.older=null):t._length++},get:function(e){var n=this,t=n._map[e];if(t)return t===n._head&&t!==n._tail&&(n._head=t.newer,n._head.older=null),t!==n._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=n._tail,t.newer=null,n._tail.newer=t,n._tail=t),t.value}}),u=e("<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],d=a.extend({init:function(e){this._cache=new c(1e3),this._initOptions(e)},options:{baselineMarkerSize:1},measure:function(t,i,r){var a,c,d,p,h,f,g,m;if(!t)return n();if(a=s.objectKey(i),c=s.hashKey(t+a),d=this._cache.get(c),d)return d;p=n(),h=r?r:u,f=this._baselineMarker().cloneNode(!1);for(g in i)m=i[g],l(m)&&(h.style[g]=m);return e(h).text(t),h.appendChild(f),o.body.appendChild(h),(t+"").length&&(p.width=h.offsetWidth-this.options.baselineMarkerSize,p.height=h.offsetHeight,p.baseline=f.offsetTop+this.options.baselineMarkerSize),p.width>0&&p.height>0&&this._cache.put(c,p),h.parentNode.removeChild(h),p},_baselineMarker:function(){return e("<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]}});d.current=new d,r.util.TextMetrics=d,r.util.LRUCache=c,r.util.loadFonts=i,r.util.measureText=t}(window.kendo.jQuery)},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("util/base64.min",["util/main.min"],e)}(function(){return function(){function e(e){var t,i,o,a,s,l,c,u="",d=0;for(e=n(e);d<e.length;)t=e.charCodeAt(d++),i=e.charCodeAt(d++),o=e.charCodeAt(d++),a=t>>2,s=(3&t)<<4|i>>4,l=(15&i)<<2|o>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),u=u+r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(c);return u}function n(e){var n,t,i="";for(n=0;n<e.length;n++)t=e.charCodeAt(n),t<128?i+=o(t):t<2048?(i+=o(192|t>>>6),i+=o(128|63&t)):t<65536&&(i+=o(224|t>>>12),i+=o(128|t>>>6&63),i+=o(128|63&t));return i}var t=window.kendo,i=t.deepExtend,o=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i(t.util,{encodeBase64:e,encodeUTF8:n})}(),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()}),function(e,define){define("mixins/observers.min",["kendo.core.min"],e)}(function(){return function(e){var n=Math,t=window.kendo,i=t.deepExtend,o=e.inArray,r={observers:function(){return this._observers=this._observers||[]},addObserver:function(e){return this._observers?this._observers.push(e):this._observers=[e],this},removeObserver:function(e){var n=this.observers(),t=o(e,n);return t!=-1&&n.splice(t,1),this},trigger:function(e,n){var t,i,o=this._observers;if(o&&!this._suspended)for(i=0;i<o.length;i++)t=o[i],t[e]&&t[e](n);return this},optionsChange:function(e){e=e||{},e.element=this,this.trigger("optionsChange",e)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=n.max((this._suspended||0)-1,0),this},_observerField:function(e,n){this[e]&&this[e].removeObserver(this),this[e]=n,n.addObserver(this)}};i(t,{mixins:{ObserversMixin:r}})}(window.kendo.jQuery),window.kendo},"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 R,l=j.fromRect(new C([t.x1,t.y1],[t.width(),t.height()]),{stroke:{}}),c=new M(e.text,new S(i.x1,i.y1),{font:n.font,fill:{color:n.color}}),u=o(c.bbox().clone(),n.padding),d=j.fromRect(u,{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=b(e.from)?e.from:D,o=b(e.to)?e.to:V;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=A(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=A(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,u=c.util,d=c.ui.Widget,p=c.deepExtend,h=c.dataviz,f=h.autoMajorUnit,g=h.ChartElement,m=h.NumericAxis,v=h.Axis,w=h.Box2D,x=c.Class,b=u.defined,y=u.isNumber,k=h.interpolateValue,A=h.getSpacing,_=h.round,T=h.geometry,z=h.drawing,S=T.Point,R=z.Group,j=z.Path,C=T.Rect,M=z.Text,U=150,P=250,B="arrow",L="arrowPointer",X="barPointer",E="#000",N=.05,O=h.COORD_PRECISION,V=Number.MAX_VALUE,D=-Number.MAX_VALUE,Y=200,G=.5,F=200,I=60,K=60,Q=5,W=l.PI/180,H=180,J="inside",q="linear",Z="needle",$="outside",ee="radialPointer",ne="x",te="y",ie=x.extend({init:function(e,n){var t=this,i=e.options;g.fn.init.call(t,n),n=t.options,n.fill=n.color,t.scale=e,n.value=b(n.value)?l.min(l.max(n.value,i.min),i.max):i.min},options:{color:E},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)}}),oe=ie.extend({options:{shape:Z,cap:{size:N},arrow:{width:16,height:14},animation:{type:ee,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(T.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 he(e.elements,p(t.animation,{oldAngle:i,newAngle:o})).play()},render:function(){var e=this,n=e.scale,t=n.arc.center,i=e.options,o=new R;return i.animation!==!1&&p(i.animation,{startAngle:0,center:t,reverse:n.options.reverse}),i.shape===Z?o.append(e._renderNeedle(),e._renderCap()):o.append(e._renderArrow()),e.elements=o,e.setAngle(W),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=C.fromPoints(new S(t.x-o,t.y-o),new S(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 j({fill:{color:o},stroke:{color:o,width:G}});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 T.Circle(e.center,e.capSize),o=new z.Circle(i,{fill:{color:t},stroke:{color:t}});return o}}),re=m.extend({init:function(e){var n=this;n.options=p({},n.options,e),n.options.majorUnit=n.options.majorUnit||f(n.options.min,n.options.max),n.options.minorUnit=n.options.minorUnit||n.options.majorUnit/10,v.fn.init.call(n,n.options)},options:{min:0,max:100,majorTicks:{size:15,align:J,color:E,width:G,visible:!0},minorTicks:{size:10,align:J,color:E,width:G,visible:!0},startAngle:-30,endAngle:210,labels:{position:J,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+H},renderLabels:function(){var e,i,o,r,a,s,c,u,d,p,f,g,m,v,w=this,x=w.options,b=x.majorTicks.size,y=w.arc.clone(),k=y.getRadiusX(),A=w.tickAngles(y,x.majorUnit),_=w.labels,z=_.length,j=x.labels,M=j.padding,U=.05*k,P=x.rangeSize=x.rangeSize||.1*k,B=x.ranges||[],L=new R;for(w.options.rangeDistance!==n?U=w.options.rangeDistance:w.options.rangeDistance=U,j.position===J&&(k-=b,B.length&&w.labelElements===n&&(k-=P+U),y.setRadiusX(k).setRadiusY(k)),c=0;c<z;c++)a=_[c],e=a.box.width()/2,i=a.box.height()/2,r=A[c],o=(r-H)*W,p=j.position===J,s=y.pointAt(r),u=s.x+l.cos(o)*(e+M)*(p?1:-1),d=s.y+l.sin(o)*(i+M)*(p?1:-1),a.reflow(new h.Box2D(u-e,d-i,u+e,d+i)),g=new S(a.box.x1,a.box.y1),w.labelElements===n?(f=t(a,x.labels),L.append(f)):(f=w.labelElements.children[c],m=f.bbox().origin,v=f.transform()||T.transform(),v.translate(g.x-m.x,g.y-m.y),f.transform(v)),w.bbox=C.union(w.bbox,f.bbox());return L},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===J&&(e+=r+a),n=e+r/2,t=0;t<o.length;t++)o[t]._geometry.setRadiusX(n).setRadiusY(n);i.bbox=C.union(i.bbox,i.ranges.bbox())}},renderRanges:function(){var e,n,t,i,o,r,a=this,s=a.arc,l=new R,c=a.rangeSegments(),u=c.length,d=a.options.reverse,p=a.options.rangeSize,h=a.options.rangeDistance;if(u)for(i=a.getRangeRadius(),a.radius(a.radius()-p-h),r=0;r<u;r++)t=c[r],e=a.slotAngle(t[d?"to":"from"]),n=a.slotAngle(t[d?"from":"to"]),n-e!==0&&(o=new T.Arc(s.center,{radiusX:i+p/2,radiusY:i+p/2,startAngle:e,endAngle:n}),l.append(new z.Arc(o,{stroke:{width:p,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||[],u=c.length,d=l.rangePlaceholderColor,p=[],h=l.min,f=l.max;if(u)for(p.push(e(h,f,d)),r=0;r<u;r++)for(n=i(c[r],h,f),t=p.length,a=0;a<t;a++)if(o=p[a],o.from<=n.from&&n.from<=o.to){p.push(e(n.from,n.to,n.color,n.opacity)),o.from<=n.to&&n.to<=o.to&&p.push(e(n.to,o.to,d,n.opacity)),o.to=n.from;break}return p},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===$?a.getRadiusX()-i-r-o:a.getRadiusX()-o},renderArc:function(e,n){var t=this,i=t.options,o=t.arc=new T.Arc(e,{radiusX:n,radiusY:n,startAngle:i.startAngle+H,endAngle:i.endAngle+H});return o},renderTicks:function(){function e(e,n,t,i){var o,r,a,s=new R,l=e.center,c=e.getRadiusX(),u=i.visible;if(u)for(o=0;o<n.length;o++)r=e.pointAt(n[o]),a=new S(l.x+c-i.size,l.y).rotate(n[o],l),s.append(new j({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 R,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===$&&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,u=s/c,d=[];for(r&&(l+=s,u=-u),t=0;t<c;t++)d.push(_(l,O)),l+=u;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,u=l.arc,d=u.getRadiusX();for(t&&l.options.labels.position===$&&0!==c&&(u=l.arc.clone(),u.setRadiusX(d-c).setRadiusY(d-c)),i=0;i<e.length;i++)o=u.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 T.Transformation).translate(a,s))}}),ae=d.extend({init:function(n,t){var i,o,r,a,s,l=this,u=h.ui.themes||{};if(c.destroy(n),e(n).empty(),d.fn.init.call(l,n),l.wrapper=l.element,l._originalOptions=p({},t),i=p({},l.options,t),r=i.theme,a=u[r]||u[r.toLowerCase()],o=r&&a?a.gauge:{},l.options=p({},o,i),e.isArray(i.pointer))for(s=0;s<i.pointer.length;s++)l.options.pointer[s]=p({},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(),d.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++)y(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=p(n._getSize(),n.options.gaugeArea),i=new C([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 C([0,0],[i.width,i.height]);return n._gaugeAreaMargin=t.margin||Q,o.width>0&&(a=r(a,o.width)),e=j.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?p(o,i.gaugeArea):o,n=e("<div></div>").appendTo(t.element).css({width:o.width,height:o.height}),new z.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=F),i||(i=Y),{width:t,height:i}}}),se=ae.extend({init:function(e,n){var t=this;ae.fn.init.call(t,e,n),c.notify(t,h.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=C.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 R;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,u=a._initialPlotArea,d=l.abs(a.getDiff(u,e)),p=_(d,O),h=_(-d,O),f=0,g=0;!(!(g++<100)||(f=r===i?f+1:0,f>5)||p!=o&&(n=a.getPlotBox(p,e,c),0<=n&&n<=2)||h!=o&&(i=a.getPlotBox(h,e,c),0<=i&&i<=2)||(o=n>0&&i>0?2*p:n<0&&i<0?2*h:_((p+h)/2||1,O),t=a.getPlotBox(o,e,c),0<=t&&t<=2));)r=i,t>0?(h=o,i=t):(p=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=C.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=C.union(s.bbox,l[n].bbox)},_createModel:function(){var n,t,i=this,o=i.options,r=o.pointer,a=i.scale=new re(o.scale);for(i.pointers=[],r=e.isArray(r)?r:[r],t=0;t<r.length;t++)n=new oe(a,p({},r[t],{animation:{transitions:o.transitions}})),i.pointers.push(n)}}),le=ae.extend({init:function(e,n){var t=this;ae.fn.init.call(t,e,n),c.notify(t,h.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 h.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 R,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 ce(r.scale);for(o.pointers=[],a=e.isArray(a)?a:[a],i=0;i<a.length;i++)t=p({},a[i],{animation:{transitions:r.transitions}}),n=t.shape===B?new de(s,t):new pe(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?I:F),i||(i=o?Y:K),{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)}}),ce=m.extend({init:function(e){var n=this;n.options=p({},n.options,e),n.options=p({},n.options,{labels:{mirror:n.options.mirror}}),n.options.majorUnit=n.options.majorUnit||f(n.options.min,n.options.max),v.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:J,color:E,width:G,visible:!0},minorTicks:{size:10,align:J,color:E,width:G,visible:!0},line:{width:G},labels:{position:J,padding:2},mirror:!1,_alignLines:!1},render:function(){var e=this,n=e.elements=new R,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,u=s.ranges||[],d=s.vertical,p=s.labels.mirror,h=new R,f=u.length,g=s.rangeSize||s.minorTicks.size/2;if(f)for(r=0;r<f;r++)e=i(u[r],l,c),n=a.getSlot(e.from,e.to),t=d?a.lineBox():n,o=d?n:a.lineBox(),d?t.x1-=g*(p?-1:1):o.y2+=g*(p?-1:1),h.append(j.fromRect(new C([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 R;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 R;return i.width>0&&i.visible&&(e=new j({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 R,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(),p({},{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 S(r,s),i=new S(r+n.size,s)):(t=new S(s,a),i=new S(s,a+n.size)),o=new j({stroke:{color:n.color,width:n.width}}).moveTo(t).lineTo(i)}}),ue=ie.extend({init:function(e,n){var t=this;ie.fn.init.call(t,e,n),t.options=p({track:{visible:b(n.track)}},t.options)},options:{shape:X,track:{border:{width:1}},color:E,border:{width:1},opacity:1,margin:A(3),animation:{type:X},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,u=A(o.margin),d=r.options.vertical,p=d?u[c?"left":"right"]:u[c?"bottom":"top"];p=c?-p:p,d?(t=new w(a.x1+p,a.y1,a.x1+p,a.y2),c?t.x1-=s:t.x2+=s,o.shape!==X&&(n=new w(a.x2+p,a.y1-l,a.x2+p,a.y2+l),e=n)):(t=new w(a.x1,a.y1-p,a.x2,a.y1-p),c?t.y2+=s:t.y1-=s,o.shape!==X&&(n=new w(a.x1-l,a.y1-p,a.x2+l,a.y1-p),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:b(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=A(n.margin),r=t.options.vertical,a=r?o[i?"left":"right"]:o[i?"bottom":"top"];return a}}),de=ue.extend({init:function(e,t){ue.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 S(0,0-s),new S(0-l*r,0),new S(0,0+s)]):(e=c?"x1":"x2",n=[new S(0-s,0),new S(0,0+l*r),new S(0+s,0)]),n},repaint:function(){var e=this,n=e.scale,t=e.options,i=new a(e.elements,p(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 R,o=n.scale,r=n.getElementOptions(),a=n.pointerShape(t.value);return t.animation.type=L,i=new j({stroke:r.stroke,fill:r.fill}).moveTo(a[0]).lineTo(a[1]).lineTo(a[2]).close(),e=o.getSlot(t.value),i.transform(T.transform().translate(e.x1,e.y1)),n.elements=i,i}}),pe=ue.extend({init:function(e,t){ue.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,u=r.size*c,d=a.getSlot(a.options.min),p=a.getSlot(e),h=s?te:ne,f=s?ne:te,g=o._margin()*c,m=new S;return m[h]=d[h+"1"],m[f]=d[f+"1"],n=new S,n[h]=p[h+"1"],n[f]=p[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(u,0),i.translate(u,0)):(t.translate(0,u),i.translate(0,u)),[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,p(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 R,t=e.getElementOptions(),i=new j({stroke:t.stroke,fill:t.fill});return n.append(i),e.elements=n,n}}),he=z.Animation.extend({init:function(e,n){z.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:q,duration:U},step:function(e){var n=this,t=n.options,i=k(t.oldAngle,t.newAngle,e);n.element.transform(T.transform().rotate(i,t.center))}});z.AnimationFactory.current.register(ee,he),a=z.Animation.extend({options:{easing:q,duration:P},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 S(o.x1,o.y1),n=this.toScale=new S(r.x1,r.y1),0!==t.duration&&(t.duration=l.max(e.distanceTo(n)/t.duration*1e3,1))},step:function(e){var n=k(this.fromScale.x,this.toScale.x,e),t=k(this.fromScale.y,this.toScale.y,e);this.element.transform(T.transform().translate(n,t))}}),z.AnimationFactory.current.register(L,a),s=z.Animation.extend({options:{easing:q,speed:P},setup:function(){var e=this.options,n=e.newPoints,t=e.oldPoints,i=this.axis=e.vertical?te:ne,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=k(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)}}),z.AnimationFactory.current.register(X,s),h.ui.plugin(se),h.ui.plugin(le),h.ExportMixin.extend(ae.fn),p(h,{Gauge:ae,RadialPointer:oe,LinearPointer:ue,ArrowLinearPointer:de,BarLinearPointer:pe,LinearScale:ce,RadialScale:re,LinearGauge:le,RadialGauge:se})}(window.kendo.jQuery),window.kendo},"function"==typeof define&&define.amd?define:function(e,n,t){(t||n)()});
//# sourceMappingURL=kendo.dataviz.gauge.min.js.map
