@boldreports/javascript-reporting-controls
Version:
The Bold Reports by Syncfusion controls for JavaScript contains ReportViewer and ReportDesigner HTML5 and JavaScript reporting controls for enterprise web development
1 lines • 94.4 kB
JavaScript
this.ej=this.ej||{},this.ej.circulargauge=function(t,e,i,n){"use strict";function o(t,i){var n=document.getElementById("gauge-measuretext");null===n&&(n=e.createElement("text",{id:"gauge-measuretext"}),document.body.appendChild(n));var o="position: absolute; visibility: hidden;;left: 0px; top: -100px; white-space: nowrap;"+a(i);return n.innerHTML=t,n.setAttribute("style",o),new G(n.clientWidth,n.clientHeight)}function r(t,e){return null!==t&&void 0!==t?-1!==t.indexOf("%")?e/100*parseInt(t,10):parseInt(t,10):null}function a(t){return"font-size:"+t.size+"; font-style:"+t.fontStyle+"; font-weight:"+t.fontWeight+"; font-family:"+t.fontFamily+";opacity:"+t.opacity+"; color:"+t.color+";"}function s(t,i,n){e.setStyleAttribute(t,{stroke:n.color,"stroke-width":n.width,fill:i})}function l(t){var e;return document.body.appendChild(t),e=t.getBoundingClientRect(),T(t.id),e}function h(t,e){return null!==t&&void 0!==t?-1!==t.indexOf("%")?e/100*parseInt(t,10):parseInt(t,10):null}function d(t,e,n,o,r){var a,s={},l=new i.SvgRenderer(""),h=r+" font-size:"+e.size+"; font-style:"+e.fontStyle+" ; font-weight:"+e.fontWeight+"; font-family:"+e.fontFamily+";";return s={id:t.id,x:t.x,y:t.y,fill:n,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine,style:h},a=l.createText(s,t.text),o.appendChild(a),a}function g(t,e,i,n){n=n||"Path";var o=i.renderer["draw"+n](t);return o.setAttribute("transform",t.transform),o.setAttribute("style",t.style),e.appendChild(o),o}function u(t,e,i){for(var n=0,o=i.length;t<o;t++)n+=i[t];return n}function p(t,e,i,n){return-i*Math.cos(t/n*(Math.PI/2))+i+e}function c(t,e,i,n,o,r){var a;return o-=v(n,o)?1e-4:0,n-=90,o-=90,a=r?(t-i)*(m(n,o)/(e-i))+n:(a=o-(t-i)*(m(n,o)/(e-i)))<0?360+a:a,a=Math.round(a)>=360?a-360:Math.round(a)<0?360+a:a}function m(t,e){var i=e-t;return i<0?i+360:i}function y(t,e,i,n,o,r){return o-=v(n,o)?1e-4:0,t=t<n?t+360:t,r?(t-n)/m(n,o)*(e-i)+i:e-((t-n)/m(n,o)*(e-i)+i)}function v(t,e){var i=e-t;return i=i<=0?i+360:i,0!==Math.floor(i/360)}function f(t,e){var i=Math.atan2(e.y-t.y,e.x-t.x);return i=Math.round((i<0?6.283+i:i)*(180/Math.PI))-270,i+=i<0?360:0}function x(t,e,i){var n=t*Math.PI/180;return new U(Math.cos(n)*e+i.x,Math.sin(n)*e+i.y)}function b(t,i,n,o,r,a,s,l){var h=m(i,n-=v(i,n)?1e-4:0),d=e.isNullOrUndefined(s)?o-r:"Outside"===s.position?o+r:"Cross"===s.position&&"AntiClockWise"===l.direction?o-(a+r)/2:o-r,g=e.isNullOrUndefined(s)?o-a:"Outside"===s.position?o+a:"Cross"===s.position&&"ClockWise"===l.direction?o-(a+r)/2:o-a,u=e.isNullOrUndefined(s)?o-(r+a)/2:"Outside"===s.position?o+(r+a)/2:"Cross"===s.position?o-(r+a)/4-("ClockWise"===l.direction?r:a)/2:o-(r+a)/2,p=e.isNullOrUndefined(s)||"Cross"!==s.position?o:o+(r+a)/4-("ClockWise"===l.direction?r:a)/2,c=e.isNullOrUndefined(s)||"Cross"!==s.position||"ClockWise"!==l.direction?o:o-(r-a)/2,y=e.isNullOrUndefined(s)||"Cross"!==s.position||"AntiClockWise"!==l.direction?o:o+(r-a)/2;return void 0!==r&&void 0!==a?P(x(i,y,t),x(n,c,t),x(i,d,t),x(n,g,t),p,u,u,h<180?0:1):R(x(i,o,t),x(n,o,t),o,h<180?0:1)}function P(t,e,i,n,o,r,a,s){return"M "+t.x+" "+t.y+" A "+o+" "+o+" 0 "+s+" 1 "+e.x+" "+e.y+" L "+n.x+" "+n.y+" A "+a+" "+r+" 0 "+s+" 0 "+i.x+" "+i.y+" Z"}function w(t,e,i,n,o,r,a,s){var l=m(e,i-=v(e,i)?1e-4:0),h=r-a,d=r-s,g=r-(a+s)/2;return C(x(e,r,t),x(i,r,t),x(o,r,t),x(o,d,t),x(n,r,t),x(n,h,t),x(e,h,t),x(i,d,t),r,g,g,l<180?0:1)}function C(t,e,i,n,o,r,a,s,l,h,d,g){return"M "+t.x+" "+t.y+" A "+l+" "+l+" 0 "+g+" 1 "+e.x+" "+e.y+" C "+i.x+" "+i.y+" "+n.x+" "+n.y+" "+s.x+" "+s.y+" A "+d+" "+h+" 0 "+g+" 0 "+a.x+" "+a.y+" C "+r.x+" "+r.y+" "+o.x+" "+o.y+" "+t.x+" "+t.y+" Z"}function S(t,e,i,n,o){var r=m(e,i-=v(e,i)?1e-4:0);return A(t,x(e,n,t),x(i,n,t),n,x(e,o,t),x(i,o,t),o,r<180?0:1)}function R(t,e,i,n){return"M "+t.x+" "+t.y+" A "+i+" "+i+" 0 "+n+" 1 "+e.x+" "+e.y}function A(t,e,i,n,o,r,a,s){return"M "+e.x+" "+e.y+" A "+n+" "+n+" 0 "+s+" 1 "+i.x+" "+i.y+" L "+r.x+" "+r.y+" A "+a+" "+a+" 0 "+s+",0 "+o.x+" "+o.y+" Z"}function _(t){return document.getElementById(t)}function M(t,i){var n=null;try{if(i.isBlazor){var o=t.match(/\d+/g).toString();t=-1!==(t=o?t.replace(o,""):t).indexOf("/")?t.replace("/",""):t}document.querySelectorAll(t).length&&("a"===t.charAt(0)&&"A"===t.charAt(0)||1===t.length||(n=e.compile(document.querySelector(t).innerHTML.trim())))}catch(i){n=e.compile(t)}return n}function T(t){var i=_(t);i&&e.remove(i)}function I(t,e){var i;return i=t.replace(e.element.id,"").split("_Axis_")[1],{axisIndex:+i[0],pointerIndex:+i[i.length-1]}}function L(t,i,n){var o,r,a=M(t,i),s=a?a({},null,null,i.element.id+"Template"):[];if(a&&s.length){r=i.createElement("div",{id:i.element.id+"_Measure_Element"}),i.element.appendChild(r);for(var l=a({},null,null,i.element.id+"Template"),h=l.length;h>0;)r.appendChild(l[0]),h--;n.appendChild(r),o=new G(n.getBoundingClientRect().width,n.getBoundingClientRect().height),e.remove(r)}return o}function E(t,e,i){var n=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,r=i.ownerDocument.defaultView.pageYOffset,a=i.ownerDocument.documentElement.clientTop,s=i.ownerDocument.documentElement.clientLeft,l=n.left+o-s,h=n.top+r-a;return new U(t-l,e-h)}function O(t){return t&&null!==t.match("{value}")?"":t}function k(t,i,n,o,r){var a,s=n.width,l=n.height,h=t.x,d=t.y,g=t.x+-s/2,u=t.y+-l/2,p=r.id.indexOf("Shape")>-1;switch(i){case"Circle":e.merge(r,{rx:s/2,ry:l/2,cx:h,cy:d});break;case"Diamond":a="M "+g+" "+d+" L "+h+" "+(d+-l/2)+" L "+(h+s/2)+" "+d+" L "+h+" "+(d+l/2)+" L "+g+" "+d+" Z",e.merge(r,{d:a});break;case"Rectangle":a="M "+g+" "+(d+-l/2)+" L "+(h+s/2)+" "+(d+-l/2)+" L "+(h+s/2)+" "+(d+l/2)+" L "+g+" "+(d+l/2)+" L "+g+" "+(d+-l/2)+" Z",e.merge(r,{d:a});break;case"Triangle":a=p?"M "+(g+s/2)+" "+u+" L "+(g+s)+" "+(u+l)+"L "+g+" "+(u+l)+" Z":"M "+h+" "+d+" L "+(h-l)+" "+(d-s/2)+"L "+(h-l)+" "+(d+s/2)+" Z",e.merge(r,{d:a});break;case"InvertedTriangle":a=p?"M "+(g+s)+" "+u+" L "+(g+s/2)+" "+(u+l)+"L "+g+" "+u+" Z":"M "+h+" "+d+" L "+(h+l)+" "+(d-s/2)+"L "+(h+l)+" "+(d+s/2)+" Z",e.merge(r,{d:a});break;case"Image":e.merge(r,{href:o,height:l,width:s,x:g,y:u});break;case"RightArrow":var c=2;a="M "+(h+-s/2)+" "+(d-l/2)+" L "+(h+s/2)+" "+d+" L "+(h+-s/2)+" "+(d+l/2)+" L "+(h+-s/2)+" "+(d+l/2-c)+" L "+(h+s/2-2*c)+" "+d+" L"+(h+-s/2)+" "+(d-l/2+c)+" Z",e.merge(r,{d:a});break;case"LeftArrow":r.fill=r.stroke,r.stroke="transparent",a="M "+(h+s/2)+" "+(d-l/2)+" L "+(h+-s/2)+" "+d+" L "+(h+s/2)+" "+(d+l/2)+" L "+(h+s/2)+" "+(d+l/2-(c=2))+" L "+(h+-s/2+2*c)+" "+d+" L"+(h+s/2)+" "+(d-l/2+c)+" Z",e.merge(r,{d:a})}return r}function F(t,e,i){var n=0,o=0,r=e.filter(function(e){return n=Math.min(e.start,e.end),o=Math.max(e.start,e.end),t>=n&&o>=t});return r.length?r[0].rangeColor:i}function z(t,e,i){var n=e,r=o(e,i).width;if(r>t)for(var a=e.length-1;a>=0;--a)if(n=e.substring(0,a)+"...",(r=o(n,i).width)<=t)return n;return n}function B(t,i,n,r,a,s){var l=document.getElementById(a),h=o(t,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}).width+5;i=i+h>r?i-h:i,l?(l.innerHTML=t,l.style.top=(n+15).toString()+"px",l.style.left=(i+15).toString()+"px"):(l=e.createElement("div",{innerHTML:t,id:a,styles:"top:"+(n+15).toString()+"px;left:"+(i+15).toString()+'px;background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(112, 112, 112); padding-left : 3px; padding-right : 2px;padding-bottom : 2px; padding-top : 2px; font-size:12px; font-family: "Segoe UI"'}),s.appendChild(l))}function j(t){var e;switch(t.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":e={backgroundColor:"#333232",titleFontColor:"#ffffff",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#000000",labelColor:"#DADADA",lineColor:"#C8C8C8",majorTickColor:"#C8C8C8",minorTickColor:"#9A9A9A",pointerColor:"#9A9A9A",capColor:"#9A9A9A",needleColor:"#9A9A9A",needleTailColor:"#9A9A9A"};break;case"highcontrast":e={backgroundColor:"#000000",titleFontColor:"#FFFFFF",tooltipFillColor:"#ffffff",tooltipFontColor:"#000000",labelColor:"#FFFFFF",lineColor:"#FFFFFF",majorTickColor:"#FFFFFF",minorTickColor:"#FFFFFF",pointerColor:"#FFFFFF",capColor:"#FFFFFF",needleColor:"#FFFFFF",needleTailColor:"#FFFFFF"};break;case"bootstrap4":e={backgroundColor:"#FFFFFF",titleFontColor:"#212529",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",labelColor:"#212529",lineColor:"#DEE2E6",majorTickColor:"#ADB5BD",minorTickColor:"#CED4DA",pointerColor:"#6C757D",capColor:"#6C757D",needleColor:"#6C757D",needleTailColor:"#6C757D",fontFamily:"HelveticaNeue-Medium",fontSize:"16px",labelFontFamily:"HelveticaNeue",tooltipFillOpacity:1,tooltipTextOpacity:.9};break;default:e={backgroundColor:"#FFFFFF",titleFontColor:"#424242",tooltipFillColor:"#363F4C",tooltipFontColor:"#ffffff",labelColor:"#212121",lineColor:"#E0E0E0",majorTickColor:"#9E9E9E",minorTickColor:"#9E9E9E",pointerColor:"#757575",capColor:"#757575",needleColor:"#757575",needleTailColor:"#757575"}}return e}var W,D=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),N=function(){function t(t){this.id=t}return t}(),V=function(t){function e(e,i,n,o,r,a,s,l,h){void 0===l&&(l=""),void 0===h&&(h="");var d=t.call(this,e)||this;return d.opacity=r,d.fill=i,d.stroke=o,d["stroke-width"]=n,d["stroke-dasharray"]=a,d.d=s,d.transform=l,d.style=h,d}return D(e,t),e}(N),H=function(t){function e(e,i,n,o,r){var a=t.call(this,e)||this;return a.y=r.y,a.x=r.x,a.height=r.height,a.width=r.width,a.opacity=o,a.fill=i,a.stroke=n.color,a["stroke-width"]=n.width,a}return D(e,t),e}(N),G=function(){function t(t,e){this.width=t,this.height=e}return t}(),U=function(){function t(t,e){this.x=t,this.y=e}return t}(),X=function(){function t(t,e,i,n){this.x=t,this.y=e,this.width=i,this.height=n}return t}(),Y=function(t){function e(e,i,n,o,r,a,s){void 0===a&&(a="");var l=t.call(this,e)||this;return l.transform="",l.baseLine="auto",l.x=i,l.y=n,l.anchor=o,l.text=r,l.transform=a,l.baseLine=s,l}return D(e,t),e}(N),Z=function(){function t(t,e,i){this.text=t,this.value=e,this.size=i}return t}(),q=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),J=function(t,e,i,n){var o,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},$=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return q(i,t),J([e.Property("")],i.prototype,"color",void 0),J([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),K=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return q(i,t),J([e.Property("16px")],i.prototype,"size",void 0),J([e.Property("")],i.prototype,"color",void 0),J([e.Property("segoe UI")],i.prototype,"fontFamily",void 0),J([e.Property("Normal")],i.prototype,"fontWeight",void 0),J([e.Property("Normal")],i.prototype,"fontStyle",void 0),J([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),Q=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return q(i,t),J([e.Property(null)],i.prototype,"fill",void 0),J([e.Complex({size:"13px"},K)],i.prototype,"textStyle",void 0),J([e.Property(null)],i.prototype,"format",void 0),J([e.Property(null)],i.prototype,"template",void 0),J([e.Property(!0)],i.prototype,"enableAnimation",void 0),J([e.Complex({},$)],i.prototype,"border",void 0),J([e.Property(!1)],i.prototype,"showAtMousePosition",void 0),i}(e.ChildProperty),tt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return q(i,t),J([e.Property(null)],i.prototype,"fill",void 0),J([e.Complex({size:"13px"},K)],i.prototype,"textStyle",void 0),J([e.Property(null)],i.prototype,"format",void 0),J([e.Property(null)],i.prototype,"template",void 0),J([e.Property(!0)],i.prototype,"enableAnimation",void 0),J([e.Complex({},$)],i.prototype,"border",void 0),i}(e.ChildProperty),et=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return q(i,t),J([e.Property(10)],i.prototype,"left",void 0),J([e.Property(10)],i.prototype,"right",void 0),J([e.Property(10)],i.prototype,"top",void 0),J([e.Property(10)],i.prototype,"bottom",void 0),i}(e.ChildProperty),it=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return q(i,t),J([e.Property(!1)],i.prototype,"enable",void 0),J([e.Property(null)],i.prototype,"fill",void 0),J([e.Complex({size:"13px"},K)],i.prototype,"textStyle",void 0),J([e.Complex({},Q)],i.prototype,"rangeSettings",void 0),J([e.Complex({},tt)],i.prototype,"annotationSettings",void 0),J([e.Property(null)],i.prototype,"format",void 0),J([e.Property(null)],i.prototype,"template",void 0),J([e.Property(!0)],i.prototype,"enableAnimation",void 0),J([e.Complex({},$)],i.prototype,"border",void 0),J([e.Property(!1)],i.prototype,"showAtMousePosition",void 0),J([e.Property("Pointer")],i.prototype,"type",void 0),i}(e.ChildProperty);!function(t){t.axisLabelFont={size:"12px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},t.legendLabelFont={size:"12px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"}}(W||(W={}));var nt=function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ot=function(t,e,i,n){var o,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,i,a):o(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a},rt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(2)],i.prototype,"width",void 0),ot([e.Property("")],i.prototype,"dashArray",void 0),ot([e.Property(null)],i.prototype,"color",void 0),i}(e.ChildProperty),at=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Complex(W.axisLabelFont,K)],i.prototype,"font",void 0),ot([e.Property("")],i.prototype,"format",void 0),ot([e.Property("Inside")],i.prototype,"position",void 0),ot([e.Property("None")],i.prototype,"hiddenLabel",void 0),ot([e.Property(!1)],i.prototype,"autoAngle",void 0),ot([e.Property(!1)],i.prototype,"useRangeColor",void 0),ot([e.Property(0)],i.prototype,"offset",void 0),i}(e.ChildProperty),st=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(0)],i.prototype,"start",void 0),ot([e.Property(0)],i.prototype,"end",void 0),ot([e.Property(null)],i.prototype,"radius",void 0),ot([e.Property(10)],i.prototype,"startWidth",void 0),ot([e.Property(10)],i.prototype,"endWidth",void 0),ot([e.Property(null)],i.prototype,"color",void 0),ot([e.Property(0)],i.prototype,"roundedCornerRadius",void 0),ot([e.Property(1)],i.prototype,"opacity",void 0),ot([e.Property("")],i.prototype,"legendText",void 0),ot([e.Property("Auto")],i.prototype,"position",void 0),ot([e.Property(0)],i.prototype,"offset",void 0),i}(e.ChildProperty),lt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(2)],i.prototype,"width",void 0),ot([e.Property(null)],i.prototype,"height",void 0),ot([e.Property(null)],i.prototype,"interval",void 0),ot([e.Property(0)],i.prototype,"offset",void 0),ot([e.Property(null)],i.prototype,"color",void 0),ot([e.Property("Inside")],i.prototype,"position",void 0),ot([e.Property(!1)],i.prototype,"useRangeColor",void 0),i}(e.ChildProperty),ht=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(null)],i.prototype,"color",void 0),ot([e.Complex({color:null,width:8},$)],i.prototype,"border",void 0),ot([e.Property(8)],i.prototype,"radius",void 0),i}(e.ChildProperty),dt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(null)],i.prototype,"color",void 0),ot([e.Complex({color:null,width:0},$)],i.prototype,"border",void 0),ot([e.Property("0%")],i.prototype,"length",void 0),i}(e.ChildProperty),gt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(!0)],i.prototype,"enable",void 0),ot([e.Property(1e3)],i.prototype,"duration",void 0),i}(e.ChildProperty),ut=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(null)],i.prototype,"content",void 0),ot([e.Property(90)],i.prototype,"angle",void 0),ot([e.Property("50%")],i.prototype,"radius",void 0),ot([e.Property("-1")],i.prototype,"zIndex",void 0),ot([e.Property(!1)],i.prototype,"autoAngle",void 0),ot([e.Complex({size:"12px",color:"#686868"},K)],i.prototype,"textStyle",void 0),ot([e.Property(null)],i.prototype,"description",void 0),i}(e.ChildProperty),pt=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return nt(i,t),ot([e.Property(null)],i.prototype,"value",void 0),ot([e.Property("Needle")],i.prototype,"type",void 0),ot([e.Property("Auto")],i.prototype,"position",void 0),ot([e.Property(0)],i.prototype,"roundedCornerRadius",void 0),ot([e.Property(null)],i.prototype,"imageUrl",void 0),ot([e.Property(null)],i.prototype,"radius",void 0),ot([e.Property(20)],i.prototype,"pointerWidth",void 0),ot([e.Complex({},ht)],i.prototype,"cap",void 0),ot([e.Complex({},dt)],i.prototype,"needleTail",void 0),ot([e.Property(null)],i.prototype,"color",void 0),ot([e.Complex({color:"#DDDDDD",width:0},$)],i.prototype,"border",void 0),ot([e.Complex(null,gt)],i.prototype,"animation",void 0),ot([e.Property("Circle")],i.prototype,"markerShape",void 0),ot([e.Property(5)],i.prototype,"markerHeight",void 0),ot([e.Property(null)],i.prototype,"description",void 0),ot([e.Property(5)],i.prototype,"markerWidth",void 0),ot([e.Property(0)],i.prototype,"offset",void 0),i}(e.ChildProperty),ct=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.visibleLabels=[],e}return nt(i,t),ot([e.Property(null)],i.prototype,"minimum",void 0),ot([e.Property(null)],i.prototype,"maximum",void 0),ot([e.Property(!1)],i.prototype,"showLastLabel",void 0),ot([e.Property(!1)],i.prototype,"hideIntersectingLabel",void 0),ot([e.Property(null)],i.prototype,"roundingPlaces",void 0),ot([e.Property(null)],i.prototype,"radius",void 0),ot([e.Complex({},rt)],i.prototype,"lineStyle",void 0),ot([e.Collection([{}],st)],i.prototype,"ranges",void 0),ot([e.Collection([{}],pt)],i.prototype,"pointers",void 0),ot([e.Collection([{}],ut)],i.prototype,"annotations",void 0),ot([e.Complex({width:2,height:10},lt)],i.prototype,"majorTicks",void 0),ot([e.Complex({width:2,height:5},lt)],i.prototype,"minorTicks",void 0),ot([e.Property(200)],i.prototype,"startAngle",void 0),ot([e.Property(160)],i.prototype,"endAngle",void 0),ot([e.Property("ClockWise")],i.prototype,"direction",void 0),ot([e.Property(null)],i.prototype,"background",void 0),ot([e.Property(null)],i.prototype,"rangeGap",void 0),ot([e.Property(!1)],i.prototype,"startAndEndRangeGap",void 0),ot([e.Complex({},at)],i.prototype,"labelStyle",void 0),i}(e.ChildProperty),mt=function(){function t(t){this.gauge=t,this.elementId=t.element.id}return t.prototype.renderAnnotation=function(t,i){var n=this,o=this.gauge.availableSize.width,r=e.createElement("div",{id:this.elementId+"_Annotations_"+i}),a=_(this.elementId+"_Secondary_Element");if(document.getElementById(this.elementId+"_Secondary_Element").style.width=o+"px",t.annotations.map(function(t,e){null!==t.content&&n.createTemplate(r,e,i)}),a&&r.childElementCount&&(a.appendChild(r),this.gauge.isBlazor))for(var s=0;s<this.gauge.axes[i].annotations.length;s++)e.updateBlazorTemplate(this.gauge.element.id+"_Axis"+i+"_ContentTemplate"+s,"ContentTemplate",this.gauge.axes[i].annotations[s])},t.prototype.createTemplate=function(t,i,n){var o=this,r=this.gauge.axes[n],s=r.annotations[i],l=e.createElement("div",{id:this.elementId+"_Axis_"+n+"_Annotation_"+i,styles:"position: absolute; z-index:"+s.zIndex+";transform:"+(s.autoAngle?"rotate("+(s.angle-90)+"deg)":"rotate(0deg)")+";"}),h={cancel:!1,name:"annotationRender",content:s.content,axis:r,annotation:s,textStyle:s.textStyle};if(this.gauge.isBlazor){var d=h.cancel,g=h.name,u=h.content,p=h.textStyle;h={cancel:d,name:g,content:u,annotation:s,textStyle:p}}this.gauge.trigger("annotationRender",h,function(d){var g,u;if(!h.cancel){if((g=M(h.content,o.gauge))&&(o.gauge.isBlazor?{}:g(r,null,null,o.gauge.element.id+"_Axis"+n+"_ContentTemplate"+i).length))for(var p=(u=Array.prototype.slice.call(g(o.gauge.isBlazor?{}:r,null,null,o.gauge.element.id+"_Axis"+n+"_ContentTemplate"+i))).length,c=0;c<p;c++)l.appendChild(u[c]);else l.appendChild(e.createElement("div",{innerHTML:h.content,id:"StringTemplate",styles:a(h.textStyle)}));o.updateLocation(l,r,s),t.appendChild(l)}})},t.prototype.updateLocation=function(t,e,i){var n=x(i.angle-90,h(i.radius,e.currentRadius),this.gauge.midPoint),o=l(t);t.style.left=n.x-o.width/2+"px",t.style.top=n.y-o.height/2+"px",t.setAttribute("aria-label",i.description||"Annotation")},t.prototype.getModuleName=function(){return"Annotations"},t.prototype.destroy=function(t){},t}(),yt=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&(i[n[o]]=t[n[o]]);return i},vt=function(){function t(t){this.gauge=t,this.tooltipId=this.gauge.element.id+"_CircularGauge_Tooltip",this.tooltip=t.tooltip,this.textStyle=this.tooltip.textStyle,this.borderStyle=this.tooltip.border,this.addEventListener()}return t.prototype.renderTooltip=function(t){this.gaugeId=this.gauge.element.getAttribute("id");var e,i,n,o,r,a=!1;if(-1!==t.type.indexOf("touch")?(n=(o=t).target,e=o.changedTouches[0].pageX,i=o.changedTouches[0].pageY):(n=t.target,e=t.pageX,i=t.pageY),this.tooltip.type.indexOf("Pointer")>-1&&n.id.indexOf("_Pointer_")>=0&&n.id.indexOf(this.gaugeId)>=0){null!==this.pointerEle&&(a=this.pointerEle===n);var s=this.gauge.svgObject.getBoundingClientRect(),l=this.gauge.element.getBoundingClientRect(),d=document.getElementById(this.gauge.element.id+"_AxesCollection").getBoundingClientRect(),g=new X(Math.abs(l.left-s.left),Math.abs(l.top-s.top),s.width,s.height),u=I(n.id,this.gauge);this.currentAxis=this.gauge.axes[u.axisIndex],this.currentPointer=this.currentAxis.pointers[u.pointerIndex];var p=c(this.currentPointer.currentValue,this.currentAxis.visibleRange.max,this.currentAxis.visibleRange.min,this.currentAxis.startAngle,this.currentAxis.endAngle,"ClockWise"===this.currentAxis.direction)%360,m=this.gauge.tooltip.format||this.currentAxis.labelStyle.format,y=m&&null!==m.match("{value}"),v=this.gauge.intl.getNumberFormat({format:O(m),useGrouping:this.gauge.useGroupingSeparator});if(this.tooltipElement(),0!==this.tooltipEle.childElementCount&&!this.gauge.enablePointerDrag&&!this.gauge.tooltip.showAtMousePosition)return null;var f=this.roundedValue(this.currentPointer.currentValue),b=y?m.replace(new RegExp("{value}","g"),v(f)):v(f);(r=x(p,this.currentAxis.currentRadius,this.gauge.midPoint)).x=this.tooltip.template&&(p>=150&&p<=250||p>=330&&p<=360||p>=0&&p<=45)?r.x+10:r.x;var P={name:"tooltipRender",cancel:!1,content:b,location:r,axis:this.currentAxis,tooltip:this.tooltip,pointer:this.currentPointer,event:t,gauge:this.gauge,appendInBodyTag:!1};this.gauge.isBlazor&&(P={name:P.name,cancel:P.cancel,content:P.content,location:P.location,tooltip:P.tooltip,event:P.event,appendInBodyTag:P.appendInBodyTag}),this.gauge.trigger("tooltipRender",P);var w=P.tooltip.template;if(null!==w&&1===w.length&&(w=w[w[0]]),this.tooltip.showAtMousePosition)P.location=E(e,i,this.gauge.svgObject),this.tooltipRect=g;else if(w){N=L(w,this.gauge,this.tooltipEle);this.tooltipRect=Math.abs(d.left-s.left)>N.width?this.findPosition(g,p,b,P.location):g}else this.findPosition(g,p,b,P.location);P.cancel||a||(P.tooltip.textStyle.color=P.tooltip.textStyle.color||this.gauge.themeStyle.tooltipFontColor,P.tooltip.textStyle.fontFamily=this.gauge.themeStyle.fontFamily||P.tooltip.textStyle.fontFamily,P.tooltip.textStyle.opacity=this.gauge.themeStyle.tooltipTextOpacity||P.tooltip.textStyle.opacity,this.svgTooltip=this.svgTooltipCreate(this.svgTooltip,P,w,this.arrowInverted,this.tooltipRect,this.gauge,P.tooltip.fill,P.tooltip.textStyle,P.tooltip.border),this.svgTooltip.opacity=this.gauge.themeStyle.tooltipFillOpacity||this.svgTooltip.opacity,this.svgTooltip.appendTo(this.tooltipEle),w&&Math.abs(i-this.tooltipEle.getBoundingClientRect().top)<=0&&(this.tooltipEle.style.top=parseFloat(this.tooltipEle.style.top)+20+"px"))}else if(this.tooltip.type.indexOf("Range")>-1&&n.id.indexOf("_Range_")>=0&&!this.gauge.isDrag&&n.id.indexOf(this.gaugeId)>=0){var C=this.gauge.svgObject.getBoundingClientRect(),S=this.gauge.element.getBoundingClientRect(),R=document.getElementById(this.gauge.element.id+"_AxesCollection").getBoundingClientRect(),g=new X(Math.abs(S.left-C.left),Math.abs(S.top-C.top),C.width,C.height),A=I(n.id,this.gauge);this.currentAxis=this.gauge.axes[A.axisIndex],this.currentRange=this.currentAxis.ranges[A.pointerIndex];var _=c(this.currentRange.end-Math.abs((this.currentRange.end-this.currentRange.start)/2),this.currentAxis.visibleRange.max,this.currentAxis.visibleRange.min,this.currentAxis.startAngle,this.currentAxis.endAngle,"ClockWise"===this.currentAxis.direction)%360,M=this.gauge.tooltip.rangeSettings.format||this.currentAxis.labelStyle.format,y=M&&(null!==M.match("{end}")||null!==M.match("{start}")),T=this.gauge.intl.getNumberFormat({format:O(M),useGrouping:this.gauge.useGroupingSeparator});this.tooltipElement();var k=this.roundedValue(this.currentRange.start),F=this.roundedValue(this.currentRange.end),z=this.currentRange.start.toString(),B=this.currentRange.end.toString(),j=y?M.replace(/{start}/g,z).replace(/{end}/g,B):"Start : "+T(k)+"<br>End : "+T(F);(r=x(_,this.currentRange.currentRadius,this.gauge.midPoint)).x=this.tooltip.rangeSettings.template&&(_>=150&&_<=250||_>=330&&_<=360||_>=0&&_<=45)?r.x+10:r.x;var W={name:"tooltipRender",cancel:!1,content:j,location:r,axis:this.currentAxis,tooltip:this.tooltip,range:this.currentRange,event:t,gauge:this.gauge,appendInBodyTag:!1};if(this.gauge.isBlazor){W.gauge;W=q=yt(W,["gauge"])}this.gauge.trigger("tooltipRender",W);var D=W.tooltip.rangeSettings.template;if(null!==D&&1===D.length&&(D=D[D[0]]),D&&(D=(D=D.replace(/[$]{start}/g,z)).replace(/[$]{end}/g,B)),this.tooltip.rangeSettings.showAtMousePosition)W.location=E(e,i,this.gauge.svgObject),this.tooltipRect=g;else if(D){var N=L(D,this.gauge,this.tooltipEle);this.tooltipRect=Math.abs(R.left-C.left)>N.width?this.findPosition(g,_,j,W.location):g}else this.findPosition(g,_,j,W.location);W.cancel||(W.tooltip.rangeSettings.textStyle.color=W.tooltip.rangeSettings.textStyle.color||this.gauge.themeStyle.tooltipFontColor,W.tooltip.rangeSettings.textStyle.fontFamily=this.gauge.themeStyle.fontFamily||W.tooltip.rangeSettings.textStyle.fontFamily,W.tooltip.rangeSettings.textStyle.opacity=this.gauge.themeStyle.tooltipTextOpacity||W.tooltip.rangeSettings.textStyle.opacity,this.svgTooltip=this.svgTooltipCreate(this.svgTooltip,W,D,this.arrowInverted,this.tooltipRect,this.gauge,W.tooltip.rangeSettings.fill,W.tooltip.rangeSettings.textStyle,W.tooltip.rangeSettings.border),this.svgTooltip.opacity=this.gauge.themeStyle.tooltipFillOpacity||this.svgTooltip.opacity,this.svgTooltip.appendTo(this.tooltipEle),D&&Math.abs(i-this.tooltipEle.getBoundingClientRect().top)<=0&&(this.tooltipEle.style.top=parseFloat(this.tooltipEle.style.top)+20+"px"))}else if(this.tooltip.type.indexOf("Annotation")>-1&&this.checkParentAnnotationId(n)&&!this.gauge.isDrag&&this.annotationTargetElement.id.indexOf(this.gaugeId)>=0){var V=this.gauge.svgObject.getBoundingClientRect(),H=this.gauge.element.getBoundingClientRect(),g=(document.getElementById(this.gauge.element.id+"_AxesCollection").getBoundingClientRect(),new X(Math.abs(H.left-V.left),Math.abs(H.top-V.top),V.width,V.height)),G=I(this.annotationTargetElement.id,this.gauge);this.currentAxis=this.gauge.axes[G.axisIndex],this.currentAnnotation=this.currentAxis.annotations[G.pointerIndex];var U=this.currentAnnotation.angle-90;this.tooltipElement(),document.getElementById(this.gauge.element.id+"_Secondary_Element").appendChild(this.tooltipEle);var Y=null!==this.gauge.tooltip.annotationSettings.format?this.gauge.tooltip.annotationSettings.format:"";(r=x(U,h(this.currentAnnotation.radius,this.currentAxis.currentRadius),this.gauge.midPoint)).x=this.tooltip.annotationSettings.template&&(U>=150&&U<=250||U>=330&&U<=360||U>=0&&U<=45)?r.x+10:r.x;var Z={name:"tooltipRender",cancel:!1,content:Y,location:r,axis:this.currentAxis,tooltip:this.tooltip,annotation:this.currentAnnotation,event:t,gauge:this.gauge,appendInBodyTag:!1};if(this.gauge.isBlazor){Z.gauge;var q=yt(Z,["gauge"]);Z=q}this.gauge.trigger("tooltipRender",Z);var J=Z.tooltip.annotationSettings.template;null!==J&&1===J.length&&(J=J[J[0]]);var $=this.annotationTargetElement.getBoundingClientRect();this.tooltipPosition="RightTop",this.arrowInverted=!0,Z.location.x=Z.location.x+$.width/2,this.tooltipRect=new X(g.x,g.y,g.width,g.height),Z.cancel||null===this.gauge.tooltip.annotationSettings.format&&null===this.gauge.tooltip.annotationSettings.template||(Z.tooltip.annotationSettings.textStyle.color=Z.tooltip.textStyle.color||this.gauge.themeStyle.tooltipFontColor,Z.tooltip.annotationSettings.textStyle.fontFamily=this.gauge.themeStyle.fontFamily||Z.tooltip.textStyle.fontFamily,Z.tooltip.annotationSettings.textStyle.opacity=this.gauge.themeStyle.tooltipTextOpacity||Z.tooltip.textStyle.opacity,this.svgTooltip=this.svgTooltipCreate(this.svgTooltip,Z,J,this.arrowInverted,this.tooltipRect,this.gauge,Z.tooltip.annotationSettings.fill,Z.tooltip.annotationSettings.textStyle,Z.tooltip.annotationSettings.border),this.svgTooltip.opacity=this.gauge.themeStyle.tooltipFillOpacity||this.svgTooltip.opacity,this.svgTooltip.appendTo(this.tooltipEle),J&&Math.abs(i-this.tooltipEle.getBoundingClientRect().top)<=0&&(this.tooltipEle.style.top=parseFloat(this.tooltipEle.style.top)+20+"px"))}else this.removeTooltip()},t.prototype.svgTooltipCreate=function(t,e,n,o,r,a,s,l,h){return new i.Tooltip({enable:!0,data:{value:e.content},template:n,enableAnimation:e.tooltip.enableAnimation,content:[e.content],location:e.location,inverted:o,areaBounds:r,fill:s||a.themeStyle.tooltipFillColor,textStyle:l,availableSize:a.availableSize,border:h,blazorTemplate:{name:"TooltipTemplate",parent:a.tooltip}})},t.prototype.tooltipElement=function(){document.getElementById(this.tooltipId)?this.tooltipEle=document.getElementById(this.tooltipId):(this.tooltipEle=e.createElement("div",{id:this.tooltipId,className:"EJ2-CircularGauge-Tooltip",styles:"position: absolute;pointer-events:none;"}),document.getElementById(this.gauge.element.id+"_Secondary_Element").appendChild(this.tooltipEle))},t.prototype.checkParentAnnotationId=function(t){for(this.annotationTargetElement=t.parentElement;null!=this.annotationTargetElement;){if(this.annotationTargetElement.id.indexOf("_Annotation_")>=0)return t=this.annotationTargetElement,!0;this.annotationTargetElement=this.annotationTargetElement.parentElement}return!1},t.prototype.roundedValue=function(t){return this.currentAxis.roundingPlaces?parseFloat(t.toFixed(this.currentAxis.roundingPlaces)):t},t.prototype.findPosition=function(t,e,i,n){var o,r,a,s;switch(!0){case e>=0&&e<45:this.arrowInverted=!0,o=e>=15&&e<=30?n.y:0,this.tooltipRect=new X(t.x,t.y+r,t.width,t.height),this.tooltipPosition="RightBottom";break;case e>=45&&e<90:this.arrowInverted=!1,this.tooltipRect=new X(t.x,t.y+n.y,t.width,t.height),this.tooltipPosition="BottomRight";break;case e>=90&&e<135:this.arrowInverted=!1,this.tooltipRect=new X(t.x,t.y+n.y,t.width,t.height),this.tooltipPosition="BottomLeft";break;case e>=135&&e<180:this.arrowInverted=!0,r=e>=150&&e<=160?n.y:0,this.tooltipRect=new X(t.x-t.width,t.y+r,t.width,t.height),this.tooltipPosition="LeftBottom";break;case e>=180&&e<225:this.arrowInverted=!0,a=e>=200&&e<=225?Math.abs(t.y-n.y):t.height,this.tooltipRect=new X(t.x-t.width,t.y,t.width,a),this.tooltipPosition="LeftTop";break;case e>=225&&e<270:this.arrowInverted=!1,s=e>=250&&e<=290?t.width:Math.abs(t.x-n.x),this.tooltipRect=new X(t.x,t.y,s,t.height),this.tooltipPosition="TopLeft";break;case e>=270&&e<315:this.arrowInverted=!1,o=e>=270&&e>290?n.x:0,this.tooltipRect=new X(t.x+o,t.y,t.width,t.height),this.tooltipPosition="TopRight";break;case e>=315&&e<=360:this.arrowInverted=!0,a=e>=315&&e<=340?Math.abs(t.y-n.y):t.height,this.tooltipRect=new X(t.x,t.y,t.width,a),this.tooltipPosition="RightTop"}return this.tooltipRect},t.prototype.removeTooltip=function(){if(document.getElementsByClassName("EJ2-CircularGauge-Tooltip").length>0){var t=document.getElementsByClassName("EJ2-CircularGauge-Tooltip")[0];t&&e.remove(t),this.pointerEle=null}},t.prototype.mouseUpHandler=function(t){this.renderTooltip(t),clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)},t.prototype.addEventListener=function(){this.gauge.isDestroyed||(this.gauge.on(e.Browser.touchMoveEvent,this.renderTooltip,this),this.gauge.on(e.Browser.touchEndEvent,this.mouseUpHandler,this))},t.prototype.removeEventListener=function(){this.gauge.isDestroyed||(this.gauge.off(e.Browser.touchMoveEvent,this.renderTooltip),this.gauge.off(e.Browser.touchEndEvent,this.mouseUpHandler))},t.prototype.getModuleName=function(){return"Tooltip"},t.prototype.destroy=function(t){this.removeEventListener()},t}(),ft=function(){function t(t){this.gauge=t}return t.prototype.drawAxisOuterLine=function(t,e,i,n){var o=t.background;this.setRangeColor(t),null!==o&&g(new V(n.element.id+"_AxisOuterLine_"+e,o,0,"transparent",null,"0",b(n.midPoint,0,360,Math.min(t.rect.width,t.rect.height)/2),"","pointer-events:none;"),i,n)},t.prototype.drawAxisLine=function(t,e,i,n){var o=t.startAngle,r=t.endAngle,a=t.lineStyle.color||this.gauge.themeStyle.lineColor;t.lineStyle.width>0&&(o=v(o,r)?[0,r=360][0]:o,g(new V(n.element.id+"_AxisLine_"+e,"transparent",t.lineStyle.width,a,null,t.lineStyle.dashArray,b(n.midPoint,o-90,r-90,t.currentRadius),"","pointer-events:none;"),i,n))},t.prototype.drawAxisLabels=function(t,e,i,n){var o,r,a,s,l,h,g,u,p,m,y,f,b,P,w,C=n.renderer.createGroup({id:n.element.id+"_Axis_Labels_"+e}),S=t.visibleRange.min,R=t.visibleRange.max,A=t.visibleLabels,_=!0,M=t.labelStyle,T=t.currentRadius,I=.1*t.currentRadius,L=M.font.color||this.gauge.themeStyle.labelColor;"Outside"===M.position?T+=t.nearSize-(t.maxLabelSize.height+t.lineStyle.width/2)+I/2:"Cross"===M.position?T=T-t.maxLabelSize.height/2-t.labelStyle.offset:T-=t.farSize-(t.maxLabelSize.height+t.lineStyle.width/2)+(M.autoAngle?I:0),t.hideIntersectingLabel&&(u=x(p=Math.round(c(A[A.length-1].value,R,S,t.startAngle,t.endAngle,"ClockWise"===t.direction)),T,n.midPoint),m=this.findAnchor(u,M,p,A[A.length-1]),y=!t.showLastLabel&&v(t.startAngle,t.endAngle)&&"First"!==M.hiddenLabel?A[0].size.width:A[A.length-1].size.width,f=!t.showLastLabel&&v(t.startAngle,t.endAngle)&&"First"!==M.hiddenLabel?M.autoAngle?A[0].size.width:A[0].size.height:M.autoAngle?A[A.length-1].size.width:A[A.length-1].size.height,f-=this.offsetAxisLabelsize(p,f),u=this.getAxisLabelStartPosition(u,y,M,f,m,p));for(var E=0,O=A.length;E<O;E++)if(w=A[E],P=Math.round(c(w.value,R,S,t.startAngle,t.endAngle,"ClockWise"===t.direction)),o=x(P,T,n.midPoint),b=this.findAnchor(o,M,P,w),t.hideIntersectingLabel&&(g=x(P,T,n.midPoint),s=w.size.width,l=M.autoAngle?s:w.size.height,l-=this.offsetAxisLabelsize(P,l),g=this.getAxisLabelStartPosition(g,s,M,l,b,P),0===E&&(h=x(P,T,n.midPoint),r=w.size.width,a=M.autoAngle?r:w.size.height,a-=this.offsetAxisLabelsize(P,a),h=this.getAxisLabelStartPosition(h,r,M,a,b,P))),!(0===E&&"First"===M.hiddenLabel||E===O-1&&"Last"===M.hiddenLabel)){if(M.font.fontFamily=this.gauge.themeStyle.labelFontFamily||M.font.fontFamily,t.hideIntersectingLabel&&0!==E){var k=E===A.length-1||!v(t.startAngle,t.endAngle)&&!t.showLastLabel||this.FindAxisLabelCollision(u,y,f,g,s,l);_=this.FindAxisLabelCollision(h,r,a,g,s,l)&&k}else _=!0;(_||E===A.length-1)&&(w.text=!t.showLastLabel&&(v(t.startAngle,t.endAngle)&&"First"!==M.hiddenLabel||!_)&&t.hideIntersectingLabel&&E===O-1?"":w.text,w.text=t.showLastLabel&&t.hideIntersectingLabel&&v(t.startAngle,t.endAngle)&&0===E?"":w.text,d(new Y(n.element.id+"_Axis_"+e+"_Label_"+E,o.x,o.y,b,w.text,M.autoAngle?"rotate("+(P+90)+","+o.x+","+o.y+")":"","auto"),M.font,M.useRangeColor?F(w.value,t.ranges,L):L,C,"pointer-events:none;"),t.hideIntersectingLabel&&(r=w.size.width,a=M.autoAngle?r:w.size.height,a-=this.offsetAxisLabelsize(P,a),h.x=g.x,h.y=g.y))}i.appendChild(C)},t.prototype.findAnchor=function(t,e,i,n){if(e.autoAngle)return"middle";var o="Inside"===e.position?i>120&&i<240?"start":300<i||i<60?"end":"middle":i>120&&i<240?"end":300<i||i<60?"start":"middle";return t.y+="Inside"===e.position?i>=240&&i<=300?n.size.height/2:i>=60&&i<=120?0:n.size.height/4:i>=240&&i<=300?0:i>=60&&i<=120?n.size.height/2:n.size.height/4,o},t.prototype.FindAxisLabelCollision=function(t,e,i,n,o,r){return t.x>n.x+o||t.x+e<n.x||t.y+i<n.y||t.y>n.y+r},t.prototype.getAxisLabelStartPosition=function(t,e,i,n,o,r){return t.x="end"===o?t.x-e:"middle"===o?t.x-e/2:t.x,t},t.prototype.offsetAxisLabelsize=function(t,e){return t>=20&&t<=60||t>=120&&t<=160||t>=200&&t<=240||t>=300&&t<=340?e/5:0},t.prototype.drawMinorTickLines=function(t,e,i,n){var o=n.renderer.createGroup({id:n.element.id+"_Axis_MinorTickLines_"+e}),r=t.minorTicks,a=null!==r.interval?r.interval:t.visibleRange.interval/2,s=r.useRangeColor,l=r.color||this.gauge.themeStyle.minorTickColor;if(r.width&&r.height&&a){for(var h=t.visibleRange.min,d=t.visibleRange.max;h<=d;h+=a)this.majorValues.indexOf(+h.toFixed(3))<0&&g(new V(n.element.id+"_Axis_Minor_TickLine_"+e+"_"+h,"transparent",r.width,s?F(h,t.ranges,l):l,null,"0",this.calculateTicks(h,r,t),"","pointer-events:none;"),o,n);i.appendChild(o)}},t.prototype.drawMajorTickLines=function(t,e,i,n){var o=n.renderer.createGroup({id:n.element.id+"_Axis_MajorTickLines_"+e}),r=t.majorTicks,a=r.useRangeColor;this.majorValues=[];var s=r.color||this.gauge.themeStyle.majorTickColor;if(r.width&&r.height&&t.visibleRange.interval){for(var l=t.visibleRange.min,h=t.visibleRange.max,d=t.visibleRange.interval;l<=h;l+=d)this.majorValues.push(+l.toFixed(3)),g(new V(n.element.id+"_Axis_Major_TickLine_"+e+"_"+l,"transparent",r.width,a?F(l,t.ranges,s):s,null,"0",this.calculateTicks(l,r,t),"","pointer-events:none;"),o,n);i.appendChild(o)}},t.prototype.calculateTicks=function(t,e,i){var n=i.lineStyle.width/2+e.offset,o=c(t,i.visibleRange.max,i.visibleRange.min,i.startAngle,i.endAngle,"ClockWise"===i.direction),r=x(o,i.currentRadius+("Outside"===e.position?n:"Cross"===e.position?e.height/2-e.offset:-n),this.gauge.midPoint),a=x(o,i.currentRadius+("Outside"===e.position?n:"Cross"===e.position?e.height/2-e.offset:-n)+("Outside"===e.position?e.height:-e.height),this.gauge.midPoint);return"M "+r.x+" "+r.y+" L "+a.x+" "+a.y+" "},t.prototype.drawAxisRange=function(t,i,n,o){var a,s,l,d,u,p,m,y,v,f,x=this,P=o.renderer.createGroup({id:o.element.id+"_Axis_Ranges_"+i}),C=this.gauge.midPoint,S="ClockWise"===t.direction,R=t.visibleRange.min,A=t.visibleRange.max;t.ranges.map(function(n,_){!e.isNullOrUndefined(n.offset)&&n.offset.length>0?n.currentDistanceFromScale=h(n.offset,t.currentRadius):n.currentDistanceFromScale=n.offset,x.calculateRangeRadius(t,n),u=n.startWidth.length>0?r(n.startWidth,n.currentRadius):n.startWidth,p=n.endWidth.length>0?r(n.endWidth,n.currentRadius):n.endWidth,n.currentRadius=x.calculateRangeRadiusWithPosition(t,n,u),l=Math.min(Math.max(n.start,R),n.end),d=Math.min(Math.max(n.start,n.end),A),a=c(l,A,R,t.startAngle,t.endAngle,S),s=c(d,A,R,t.startAngle,t.endAngle,S);var M=a>s;if(null!=t.rangeGap&&t.rangeGap>0&&(a=0!==_||t.startAndEndRangeGap?a+t.rangeGap/Math.PI:a,s=_!==t.ranges.length-1||t.startAndEndRangeGap?s-t.rangeGap/Math.PI:s),l!==d&&(M?a<s+360:a<s)){s=S?s:[a,a=s][0],p=S?p:[u,u=p][0];var T=n.roundedCornerRadius,I=.25*T;v=((n.currentRadius-u/2)*(a*Math.PI/180)-T/I)/(n.currentRadius-u/2)*180/Math.PI,f=((n.currentRadius-p/2)*(s*Math.PI/180)+T/I)/(n.currentRadius-p/2)*180/Math.PI,m=(n.currentRadius*(a*Math.PI/180)+T)/n.currentRadius*180/Math.PI,y=(n.currentRadius*(s*Math.PI/180)-T)/n.currentRadius*180/Math.PI,n.roundedCornerRadius?g(new V(o.element.id+"_Axis_"+i+"_Range_"+_,n.rangeColor,0,n.rangeColor,n.opacity,"0",w(C,Math.floor(m),Math.ceil(y),v,f,n.currentRadius,u,p),"",""),P,o):g(new V(o.element.id+"_Axis_"+i+"_Range_"+_,n.rangeColor,0,n.rangeColor,n.opacity,"0",b(o.midPoint,Math.floor(a),Math.ceil(s),n.currentRadius,u,p,n,t),"",""),P,o)}}),n.appendChild(P)},t.prototype.calculateRangeRadius=function(t,e){var i=null!==e.radius?e.radius:"100%";e.currentRadius=h(i,t.currentRadius)},t.prototype.calculateRangeRadiusWithPosition=function(t,i,n){return"Auto"!==i.position&&e.isNullOrUndefined(i.radius)?"Outside"===i.position?i.currentRadius+t.lineStyle.width/2+i.currentDistanceFromScale:"Inside"===i.position?i.currentRadius-t.lineStyle.width/2-i.currentDistanceFromScale:i.currentRadius+n/2-i.currentDistanceFromScale:i.currentRadius},t.prototype.setRangeColor=function(t){var e=(this.gauge.theme,["#50c917","#27d5ff","#fcde0b","#ffb133","#ff5985"]);t.ranges.map(function(t,i){t.rangeColor=t.color?t.color:e[i%e.length]})},t}(),xt=function(){function t(t){this.gauge=t}return t.prototype.drawPointers=function(t,i,n,o,r){var a=this;void 0===r&&(r=!0);var s,l,d=o.renderer.createGroup({id:o.element.id+"_Axis_Pointers_"+i});t.pointers.map(function(n,g){!e.isNullOrUndefined(n.offset)&&n.offset.length>0?n.currentDistanceFromScale=h(n.offset,t.currentRadius):n.currentDistanceFromScale=n.offset,l=t.visibleRange,n.pathElement=[],a.calculatePointerRadius(t,n),s=o.renderer.createGroup({id:o.element.id+"_Axis_"+i+"_Pointer_"+g}),a["draw"+n.type+"Pointer"](t,i,g,s,o),a.setPointerValue(t,n,n.currentValue),d.appendChild(s),r&&a.doPointerAnimation(n,t)}),n.appendChild(d)},t.prototype.calculatePointerRadius=function(t,i){i.currentRadius=e.isNullOrUndefined(i.radius)?"Auto"!==i.position?this.pointerRadiusForPosition(t,i):t.currentRadius-(t.farSize+5):h(i.radius,t.currentRadius)},t.prototype.pointerRadiusForPosition=function(t,e){var i="RangeBar"===e.type?e.pointerWidth:0,n="Marker"===e.type?"InvertedTriangle"===e.markerShape||"Triangle"===e.markerShape?"Cross"===e.position?e.markerWidth/2:0:e.markerWidth/2:0;return"Inside"===e.position?t.currentRadius-t.lineStyle.width/2-n-e.currentDistanceFromScale:"Outside"===e.position?t.currentRadius+i+t.lineStyle.width/2+n+e.currentDistanceFromScale:t.currentRadius+i/2-e.currentDistanceFromScale-("InvertedTriangle"===e.markerShape||"Triangle"===e.markerShape?n:0)},t.prototype.drawNeedlePointer=function(t,e,i,n,o){var r,a,s,l,d=t.pointers[i],u=o.midPoint,p=d.pointerWidth/2;a=x(0,d.currentRadius,u);var c=d.color||this.gauge.themeStyle.needleColor;s="M "+u.x+" "+(u.y-p)+" L "+a.x+" "+u.y+" L "+u.x+" "+(u.y+p)+" Z",d.pathElement.push(g(new V(o.element.id+"_Axis_"+e+"_Pointer_Needle_"+i,c,d.border.width,d.border.color,null,"0",s),n,o)),r=h(d.needleTail.length,d.currentRadius),l="M "+u.x+" "+(u.y-p)+" L "+a.x+" "+(u.y-p)+" L "+a.x+" "+(u.y+p)+" L "+u.x+" "+(u.y+p),r&&(a=x(180,r,o.midPoint),s="M "+u.x+" "+(u.y-p)+" L "+a.x+" "+(u.y-p)+" L "+a.x+" "+(u.y+p)+" L "+u.x+" "+(u.y+p)+" Z",d.pathElement.push(g(new V(o.element.id+"_Axis_"+e+"_Pointer_NeedleTail_"+i,d.needleTail.color||this.gauge.themeStyle.needleTailColor,d.needleTail.border.width,d.needleTail.border.color,null,"0",s),n,o)),l+=" L "+a.x+" "+(u.y+p)+" L "+a.x+" "+(u.y-p));var m=d.cap.color||this.gauge.themeStyle.capColor;d.cap.radius&&d.pathElement.push(g(k(u,"Circle",new G(2*d.cap.radius,2*d.cap.radius),"",new V(o.element.id+"_Axis_"+e+"_Pointer_NeedleCap_"+i,m,d.cap.border.width,d.cap.border.color,null,"0","","")),n,o,"Ellipse")),d.pathElement.push(g(new V(o.element.id+"_Axis_"+e+"_Pointer_NeedleRect_"+i,"transparent",0,"transpanret",null,"0",l+" Z"),n,o))},t.prototype.setPointerValue=function(t,i,n){var o=this.gauge.midPoint,r="ClockWise"===t.direction,a=c(t.visibleRange.min,t.visibleRange.max,t.visibleRange.min,t.startAngle,t.endAngle,r),s=c(n,t.visibleRange.max,t.visibleRange.min,t.startAngle,t.endAngle,r);s=r?a===s?s+1:s:a===s?[a,a=s-1][0]:[a,a=s][0];var l,h,d,g,u=i.roundedCornerRadius,p=.25*u;n<=p&&(u=8,p=.25*(u/=2)),d=((i.currentRadius-i.pointerWidth/2)*(a*Math.PI/180)-u/p)/(i.currentRadius-i.pointerWidth/2)*180/Math.PI,g=((i.currentRadius-i.pointerWidth/2)*(s*Math.PI/180)+u/p)/(i.currentRadius-i.pointerWidth/2)*180/Math.PI,l=(i.currentRadius*(a*Math.PI/180)+u)/i.currentRadius*180/Math.PI,h=(i.currentRadius*(s*Math.PI/180)-u)/i.currentRadius*180/Math.PI,e.isNullOrUndefined(i.currentRadius)&&this.calculatePointerRadius(t,i),i.pathElement.map(function(e){"RangeBar"===i.type?i.roundedCornerRadius&&n?(e.setAttribute("d",w(o,Math.floor(l),Math.ceil(h),d,g,i.currentRadius,i.pointerWidth,i.pointerWidth)),u=0):e.setAttribute("d",S(o,a,s,i.currentRadius,i.currentRadius-i.pointerWidth)):e.setAttribute("transform","rotate("+c(n,t.visibleRange.max,t.visibleRange.min,t.startAngle,t.endAngle,r)+","+o.x+","+o.y+")"),e.setAttribute("aria-label",i.description||"Pointer:"+n.toString())})},t.prototype.drawMarkerPointer=function(t,i,n,o,r){var a=t.pointers[n],s=a.markerShape;!e.isNullOrUndefined(a.radius)||e.isNullOrUndefined(a.position)||"InvertedTriangle"!==a.markerShape&&"Triangle"!==a.markerShape||(s="Outside"!==a.position&&"Cross"!==a.position||"Triangle"!==a.markerShape?"Inside"===a.position&&"InvertedTriangle"===a.markerShape?"Triangle":a.markerShape:"InvertedTriangle");var l=x(0,a.currentRadius,r.midPoint);a.pathElement.push(g(k(l,s,new G(a.markerWidth,a.markerHeight),a.imageUrl,new V(r.element.id+"_Axis_"+i+"_Pointer_Marker_"+n,a.color||this.gauge.themeStyle.pointerColor,a.border.width,a.border.color,null,"0","","")),o,r,"Circle"===a.markerShape?"Ellipse":"Image"===a.markerShape?"Image":"Path"))},t.prototype.drawRangeBarPointer=function(t,e,i,n,o){var r=t.pointers[i];r.pathElement.push(g(new V(o.element.id+"_Axis_"+e+"_Pointer_RangeBar_"+i,r.color||this.gauge.themeStyle.pointerColor,r.border.width,r.border.color,1,"0",""),n,o))},t.prototype.doPointerAnimation=function(t,e){var i=this,n=e.visibleRange.min,o=t.currentValue;t.animation.enable&&n!==o&&this.gauge.animatePointer&&t.pathElement.map(function(r){"RangeBar"===t.type?i.performRangeBarAnimation(r,n,o,e,t,t.currentRadius,t.currentRadius-t.pointerWidth):i.performNeedleAnimation(r,n,o,e,t,t.currentRadius,t.currentRadius-t.pointerWidth)})},t.prototype.performNeedleAnimation=function(t,i,n,o,r,a,s){var l,h=this,d="ClockWise"===o.direction,g=c(i,o.visibleRange.max,o.visibleRange.min,o.startAngle,o.endAngle,d),u=c(n,o.visibleRange.max,o.visibleRange.min,o.startAngle,o.endAngle,d),m=g>u?u+360:u;new e.Animation({}).animate(t,{duration:r.animation.duration,progress:function(e){l=i<n||Math.round(g)===Math.round(m)?d?m-g:m-g-360:d?m-g-360:m-g,t.style.animation="None",t.setAttribute("transform","rotate("+p(e.timeStamp,g,l,e.duration)+","+h.gauge.midPoint.x.toString()+","+h.gauge.midPoint.y.toString()+")")},end:function(e){h.setPointerValue(o,r,n),("Marker"===r.type||t.id.indexOf("_Pointer_NeedleCap")>=0)&&h.gauge.trigger("animationComplete",h.gauge.isBlazor?{}:{axis:o,pointer:r})}})},t.prototype.performRangeBarAnimation=function(t,i,n,o,r,a,s){var l,h,d,g=this,u="ClockWise"===o.direction,m=c(i,o.visibleRange.max,o.visibleRange.min,o.startAngle,o.endAngle,u),y=c(o.visibleRange.min,o.visibleRange.max,o.visibleRange.min,o.startAngle,o.endAngle,u),v=c(n,o.visibleRange.max,o.visibleRange.min,o.startAngle,o.endAngle,u),f=r.roundedCornerRadius,x=.25*a;f&&(y=(r.currentRadius*(y*Math.PI/180)+f)/r.currentRadius*180/Math.PI,v=(r.currentRadius*(v*Math.PI/180)-f)/r.currentRadius*180/Math.PI,d=((r.currentRadius-r.pointerWidth/2)*(m*Math.PI/180)-a/x)/(r.currentRadius-r.pointerWidth/2)*180/Math.PI),h=m>v?v+360:v,new e.Animation({}).animate(t,{duration:r.animation.duration,progress:function(e){t.style.animation="None",l=i<n||Math.round(m)===Math.round(h)?u?h-m:h-m-360:u?h-m-360:h-m,u?f?t.setAttribute("d",w(g.gauge.midPoint,Math.floor(y),p(e.timeStamp,Math.floor(y),l,e.duration)+1e-4,d,p(e.timeStamp,Math.floor(y+f/2),l,e.duration)+1e-4,a,r.pointerWidth,r.pointerWidth)):t.setAttribute("d",S(g.gauge.midPoint,y,p(e.timeStamp,m,l,e.duration)+1e-4,a,s)):f?(l+=f,t.setAttribute("d",w(g.gauge.midPoint,p(e.timeStamp,Math.floor(d),l,e.duration),Math.floor(d)+1e-4,p(e.timeStamp,Math.floor(y-f-f/2),l,e.duration),Math.floor(d+f/2)+1e-4,a,r.pointerWidth,r.pointerWidth))):t.setAttribute("d",S(g.gauge.midPoint,p(e.timeStamp,m,l,e.duration),y+1e-4,a,s))},end:function(t){g.setPointerValue(o,r,n),g.gauge.trigger("animationComplete",g.gauge.isBlazor?{}:{axis:o,pointer:r})}})},t}(),bt=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&(i[n[o]]=t[n[o]]);return i},Pt=function(){function t(t){this.gauge=t,this.axisRenderer=new ft(t),this.point